@activepieces/piece-slack 0.17.1 → 0.17.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +7 -15
- package/src/index.js +96 -208
- package/src/index.d.ts +0 -6
- package/src/index.d.ts.map +0 -1
- package/src/index.js.map +0 -1
- package/src/lib/actions/add-reaction-to-message.d.ts +0 -14
- package/src/lib/actions/add-reaction-to-message.d.ts.map +0 -1
- package/src/lib/actions/add-reaction-to-message.js +0 -58
- package/src/lib/actions/add-reaction-to-message.js.map +0 -1
- package/src/lib/actions/create-channel.d.ts +0 -8
- package/src/lib/actions/create-channel.d.ts.map +0 -1
- package/src/lib/actions/create-channel.js +0 -35
- package/src/lib/actions/create-channel.js.map +0 -1
- package/src/lib/actions/delete-message.d.ts +0 -12
- package/src/lib/actions/delete-message.d.ts.map +0 -1
- package/src/lib/actions/delete-message.js +0 -51
- package/src/lib/actions/delete-message.js.map +0 -1
- package/src/lib/actions/find-user-by-email.d.ts +0 -7
- package/src/lib/actions/find-user-by-email.d.ts.map +0 -1
- package/src/lib/actions/find-user-by-email.js +0 -30
- package/src/lib/actions/find-user-by-email.js.map +0 -1
- package/src/lib/actions/find-user-by-handle.d.ts +0 -7
- package/src/lib/actions/find-user-by-handle.d.ts.map +0 -1
- package/src/lib/actions/find-user-by-handle.js +0 -53
- package/src/lib/actions/find-user-by-handle.js.map +0 -1
- package/src/lib/actions/find-user-by-id.d.ts +0 -7
- package/src/lib/actions/find-user-by-id.d.ts.map +0 -1
- package/src/lib/actions/find-user-by-id.js +0 -29
- package/src/lib/actions/find-user-by-id.js.map +0 -1
- package/src/lib/actions/get-channel-history.d.ts +0 -15
- package/src/lib/actions/get-channel-history.d.ts.map +0 -1
- package/src/lib/actions/get-channel-history.js +0 -77
- package/src/lib/actions/get-channel-history.js.map +0 -1
- package/src/lib/actions/get-file.d.ts +0 -7
- package/src/lib/actions/get-file.d.ts.map +0 -1
- package/src/lib/actions/get-file.js +0 -48
- package/src/lib/actions/get-file.js.map +0 -1
- package/src/lib/actions/get-group-by-handle.d.ts +0 -7
- package/src/lib/actions/get-group-by-handle.d.ts.map +0 -1
- package/src/lib/actions/get-group-by-handle.js +0 -36
- package/src/lib/actions/get-group-by-handle.js.map +0 -1
- package/src/lib/actions/get-message.d.ts +0 -12
- package/src/lib/actions/get-message.d.ts.map +0 -1
- package/src/lib/actions/get-message.js +0 -41
- package/src/lib/actions/get-message.js.map +0 -1
- package/src/lib/actions/invite-user-to-channel.d.ts +0 -15
- package/src/lib/actions/invite-user-to-channel.d.ts.map +0 -1
- package/src/lib/actions/invite-user-to-channel.js +0 -30
- package/src/lib/actions/invite-user-to-channel.js.map +0 -1
- package/src/lib/actions/list-users.d.ts +0 -8
- package/src/lib/actions/list-users.d.ts.map +0 -1
- package/src/lib/actions/list-users.js +0 -57
- package/src/lib/actions/list-users.js.map +0 -1
- package/src/lib/actions/markdown-to-slack-format.d.ts +0 -4
- package/src/lib/actions/markdown-to-slack-format.d.ts.map +0 -1
- package/src/lib/actions/markdown-to-slack-format.js +0 -24
- package/src/lib/actions/markdown-to-slack-format.js.map +0 -1
- package/src/lib/actions/request-action-direct-message.d.ts +0 -15
- package/src/lib/actions/request-action-direct-message.d.ts.map +0 -1
- package/src/lib/actions/request-action-direct-message.js +0 -31
- package/src/lib/actions/request-action-direct-message.js.map +0 -1
- package/src/lib/actions/request-action-message.d.ts +0 -18
- package/src/lib/actions/request-action-message.d.ts.map +0 -1
- package/src/lib/actions/request-action-message.js +0 -39
- package/src/lib/actions/request-action-message.js.map +0 -1
- package/src/lib/actions/request-approval-direct-message.d.ts +0 -14
- package/src/lib/actions/request-approval-direct-message.d.ts.map +0 -1
- package/src/lib/actions/request-approval-direct-message.js +0 -128
- package/src/lib/actions/request-approval-direct-message.js.map +0 -1
- package/src/lib/actions/request-approval-message.d.ts +0 -15
- package/src/lib/actions/request-approval-message.d.ts.map +0 -1
- package/src/lib/actions/request-approval-message.js +0 -128
- package/src/lib/actions/request-approval-message.js.map +0 -1
- package/src/lib/actions/retrieve-thread-messages.d.ts +0 -11
- package/src/lib/actions/retrieve-thread-messages.d.ts.map +0 -1
- package/src/lib/actions/retrieve-thread-messages.js +0 -38
- package/src/lib/actions/retrieve-thread-messages.js.map +0 -1
- package/src/lib/actions/search-messages.d.ts +0 -7
- package/src/lib/actions/search-messages.d.ts.map +0 -1
- package/src/lib/actions/search-messages.js +0 -48
- package/src/lib/actions/search-messages.js.map +0 -1
- package/src/lib/actions/send-direct-message-action.d.ts +0 -17
- package/src/lib/actions/send-direct-message-action.d.ts.map +0 -1
- package/src/lib/actions/send-direct-message-action.js +0 -58
- package/src/lib/actions/send-direct-message-action.js.map +0 -1
- package/src/lib/actions/send-message-action.d.ts +0 -22
- package/src/lib/actions/send-message-action.d.ts.map +0 -1
- package/src/lib/actions/send-message-action.js +0 -84
- package/src/lib/actions/send-message-action.js.map +0 -1
- package/src/lib/actions/set-channel-topic.d.ts +0 -12
- package/src/lib/actions/set-channel-topic.d.ts.map +0 -1
- package/src/lib/actions/set-channel-topic.js +0 -34
- package/src/lib/actions/set-channel-topic.js.map +0 -1
- package/src/lib/actions/set-user-status.d.ts +0 -9
- package/src/lib/actions/set-user-status.d.ts.map +0 -1
- package/src/lib/actions/set-user-status.js +0 -48
- package/src/lib/actions/set-user-status.js.map +0 -1
- package/src/lib/actions/update-message.d.ts +0 -15
- package/src/lib/actions/update-message.d.ts.map +0 -1
- package/src/lib/actions/update-message.js +0 -57
- package/src/lib/actions/update-message.js.map +0 -1
- package/src/lib/actions/update-profile.d.ts +0 -10
- package/src/lib/actions/update-profile.d.ts.map +0 -1
- package/src/lib/actions/update-profile.js +0 -48
- package/src/lib/actions/update-profile.js.map +0 -1
- package/src/lib/actions/update-user-groups.d.ts +0 -9
- package/src/lib/actions/update-user-groups.d.ts.map +0 -1
- package/src/lib/actions/update-user-groups.js +0 -61
- package/src/lib/actions/update-user-groups.js.map +0 -1
- package/src/lib/actions/upload-file.d.ts +0 -13
- package/src/lib/actions/upload-file.d.ts.map +0 -1
- package/src/lib/actions/upload-file.js +0 -43
- package/src/lib/actions/upload-file.js.map +0 -1
- package/src/lib/auth.d.ts +0 -6
- package/src/lib/auth.d.ts.map +0 -1
- package/src/lib/auth.js +0 -84
- package/src/lib/auth.js.map +0 -1
- package/src/lib/common/auth-helpers.d.ts +0 -9
- package/src/lib/common/auth-helpers.d.ts.map +0 -1
- package/src/lib/common/auth-helpers.js +0 -82
- package/src/lib/common/auth-helpers.js.map +0 -1
- package/src/lib/common/props.d.ts +0 -37
- package/src/lib/common/props.d.ts.map +0 -1
- package/src/lib/common/props.js +0 -247
- package/src/lib/common/props.js.map +0 -1
- package/src/lib/common/request-action.d.ts +0 -41
- package/src/lib/common/request-action.d.ts.map +0 -1
- package/src/lib/common/request-action.js +0 -114
- package/src/lib/common/request-action.js.map +0 -1
- package/src/lib/common/types.d.ts +0 -10
- package/src/lib/common/types.d.ts.map +0 -1
- package/src/lib/common/types.js +0 -3
- package/src/lib/common/types.js.map +0 -1
- package/src/lib/common/utils.d.ts +0 -41
- package/src/lib/common/utils.d.ts.map +0 -1
- package/src/lib/common/utils.js +0 -134
- package/src/lib/common/utils.js.map +0 -1
- package/src/lib/triggers/new-channel.d.ts +0 -15
- package/src/lib/triggers/new-channel.d.ts.map +0 -1
- package/src/lib/triggers/new-channel.js +0 -63
- package/src/lib/triggers/new-channel.js.map +0 -1
- package/src/lib/triggers/new-command-in-direct-message.d.ts +0 -47
- package/src/lib/triggers/new-command-in-direct-message.d.ts.map +0 -1
- package/src/lib/triggers/new-command-in-direct-message.js +0 -74
- package/src/lib/triggers/new-command-in-direct-message.js.map +0 -1
- package/src/lib/triggers/new-command.d.ts +0 -63
- package/src/lib/triggers/new-command.d.ts.map +0 -1
- package/src/lib/triggers/new-command.js +0 -98
- package/src/lib/triggers/new-command.js.map +0 -1
- package/src/lib/triggers/new-direct-message.d.ts +0 -27
- package/src/lib/triggers/new-direct-message.d.ts.map +0 -1
- package/src/lib/triggers/new-direct-message.js +0 -54
- package/src/lib/triggers/new-direct-message.js.map +0 -1
- package/src/lib/triggers/new-mention-in-direct-message.d.ts +0 -43
- package/src/lib/triggers/new-mention-in-direct-message.d.ts.map +0 -1
- package/src/lib/triggers/new-mention-in-direct-message.js +0 -63
- package/src/lib/triggers/new-mention-in-direct-message.js.map +0 -1
- package/src/lib/triggers/new-mention.d.ts +0 -79
- package/src/lib/triggers/new-mention.d.ts.map +0 -1
- package/src/lib/triggers/new-mention.js +0 -104
- package/src/lib/triggers/new-mention.js.map +0 -1
- package/src/lib/triggers/new-message-in-channel.d.ts +0 -43
- package/src/lib/triggers/new-message-in-channel.d.ts.map +0 -1
- package/src/lib/triggers/new-message-in-channel.js +0 -57
- package/src/lib/triggers/new-message-in-channel.js.map +0 -1
- package/src/lib/triggers/new-message.d.ts +0 -23
- package/src/lib/triggers/new-message.d.ts.map +0 -1
- package/src/lib/triggers/new-message.js +0 -45
- package/src/lib/triggers/new-message.js.map +0 -1
- package/src/lib/triggers/new-modal-interaction.d.ts +0 -23
- package/src/lib/triggers/new-modal-interaction.d.ts.map +0 -1
- package/src/lib/triggers/new-modal-interaction.js +0 -51
- package/src/lib/triggers/new-modal-interaction.js.map +0 -1
- package/src/lib/triggers/new-reaction-added.d.ts +0 -59
- package/src/lib/triggers/new-reaction-added.d.ts.map +0 -1
- package/src/lib/triggers/new-reaction-added.js +0 -80
- package/src/lib/triggers/new-reaction-added.js.map +0 -1
- package/src/lib/triggers/new-reaction-removed.d.ts +0 -59
- package/src/lib/triggers/new-reaction-removed.d.ts.map +0 -1
- package/src/lib/triggers/new-reaction-removed.js +0 -77
- package/src/lib/triggers/new-reaction-removed.js.map +0 -1
- package/src/lib/triggers/new-saved-message.d.ts +0 -15
- package/src/lib/triggers/new-saved-message.d.ts.map +0 -1
- package/src/lib/triggers/new-saved-message.js +0 -35
- package/src/lib/triggers/new-saved-message.js.map +0 -1
- package/src/lib/triggers/new-team-custom-emoji.d.ts +0 -15
- package/src/lib/triggers/new-team-custom-emoji.d.ts.map +0 -1
- package/src/lib/triggers/new-team-custom-emoji.js +0 -50
- package/src/lib/triggers/new-team-custom-emoji.js.map +0 -1
- package/src/lib/triggers/new-user.d.ts +0 -15
- package/src/lib/triggers/new-user.d.ts.map +0 -1
- package/src/lib/triggers/new-user.js +0 -90
- package/src/lib/triggers/new-user.js.map +0 -1
package/src/index.js
CHANGED
|
@@ -1,208 +1,96 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
7
|
-
|
|
8
|
-
const node_crypto_1 = tslib_1.__importDefault(require("node:crypto"));
|
|
9
|
-
const request_action_direct_message_1 = require("./lib/actions/request-action-direct-message");
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
const new_reaction_removed_1 = require("./lib/triggers/new-reaction-removed");
|
|
17
|
-
|
|
18
|
-
const search_messages_1 = require("./lib/actions/search-messages");
|
|
19
|
-
const update_message_1 = require("./lib/actions/update-message");
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
const new_message_1 = require("./lib/triggers/new-message");
|
|
33
|
-
|
|
34
|
-
const new_direct_message_1 = require("./lib/triggers/new-direct-message");
|
|
35
|
-
const retrieve_thread_messages_1 = require("./lib/actions/retrieve-thread-messages");
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
Object.defineProperty(exports, "slackAuth", { enumerable: true, get: function () { return auth_2.slackAuth; } });
|
|
54
|
-
Object.defineProperty(exports, "slackOAuth2Auth", { enumerable: true, get: function () { return auth_2.slackOAuth2Auth; } });
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
const interactionPayloadBody = JSON.parse(payload.body.payload);
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
else {
|
|
98
|
-
const eventPayloadBody = payload.body;
|
|
99
|
-
if (eventPayloadBody.challenge) {
|
|
100
|
-
return {
|
|
101
|
-
reply: {
|
|
102
|
-
body: eventPayloadBody['challenge'],
|
|
103
|
-
headers: {},
|
|
104
|
-
},
|
|
105
|
-
};
|
|
106
|
-
}
|
|
107
|
-
return {
|
|
108
|
-
event: (_c = eventPayloadBody === null || eventPayloadBody === void 0 ? void 0 : eventPayloadBody.event) === null || _c === void 0 ? void 0 : _c.type,
|
|
109
|
-
identifierValue: eventPayloadBody.team_id,
|
|
110
|
-
};
|
|
111
|
-
}
|
|
112
|
-
},
|
|
113
|
-
verify: ({ webhookSecret, payload }) => {
|
|
114
|
-
// Construct the signature base string
|
|
115
|
-
const timestamp = payload.headers['x-slack-request-timestamp'];
|
|
116
|
-
const signature = payload.headers['x-slack-signature'];
|
|
117
|
-
const signatureBaseString = `v0:${timestamp}:${payload.rawBody}`;
|
|
118
|
-
const hmac = node_crypto_1.default.createHmac('sha256', webhookSecret);
|
|
119
|
-
hmac.update(signatureBaseString);
|
|
120
|
-
const computedSignature = `v0=${hmac.digest('hex')}`;
|
|
121
|
-
return signature === computedSignature;
|
|
122
|
-
},
|
|
123
|
-
},
|
|
124
|
-
authors: [
|
|
125
|
-
'rita-gorokhod',
|
|
126
|
-
'AdamSelene',
|
|
127
|
-
'Abdallah-Alwarawreh',
|
|
128
|
-
'kishanprmr',
|
|
129
|
-
'MoShizzle',
|
|
130
|
-
'AbdulTheActivePiecer',
|
|
131
|
-
'khaledmashaly',
|
|
132
|
-
'abuaboud',
|
|
133
|
-
],
|
|
134
|
-
actions: [
|
|
135
|
-
add_reaction_to_message_1.addRectionToMessageAction,
|
|
136
|
-
send_direct_message_action_1.slackSendDirectMessageAction,
|
|
137
|
-
send_message_action_1.slackSendMessageAction,
|
|
138
|
-
request_approval_direct_message_1.requestApprovalDirectMessageAction,
|
|
139
|
-
request_approval_message_1.requestSendApprovalMessageAction,
|
|
140
|
-
request_action_direct_message_1.requestActionDirectMessageAction,
|
|
141
|
-
request_action_message_1.requestActionMessageAction,
|
|
142
|
-
upload_file_1.uploadFile,
|
|
143
|
-
get_file_1.getFileAction,
|
|
144
|
-
search_messages_1.searchMessages,
|
|
145
|
-
find_user_by_email_1.findUserByEmailAction,
|
|
146
|
-
find_user_by_handle_1.findUserByHandleAction,
|
|
147
|
-
find_user_by_id_1.findUserByIdAction,
|
|
148
|
-
list_users_1.listUsers,
|
|
149
|
-
update_message_1.updateMessage,
|
|
150
|
-
delete_message_1.deleteMessageAction,
|
|
151
|
-
create_channel_1.createChannelAction,
|
|
152
|
-
update_profile_1.updateProfileAction,
|
|
153
|
-
get_channel_history_1.getChannelHistory,
|
|
154
|
-
set_user_status_1.setUserStatusAction,
|
|
155
|
-
markdown_to_slack_format_1.markdownToSlackFormat,
|
|
156
|
-
retrieve_thread_messages_1.retrieveThreadMessages,
|
|
157
|
-
set_channel_topic_1.setChannelTopicAction,
|
|
158
|
-
get_message_1.getMessageAction,
|
|
159
|
-
invite_user_to_channel_1.inviteUserToChannelAction,
|
|
160
|
-
get_group_by_handle_1.getGroupByHandleAction,
|
|
161
|
-
update_user_groups_1.updateGroupUsersAction,
|
|
162
|
-
(0, pieces_common_1.createCustomApiCallAction)({
|
|
163
|
-
baseUrl: () => {
|
|
164
|
-
return 'https://slack.com/api';
|
|
165
|
-
},
|
|
166
|
-
auth: auth_1.slackAuth,
|
|
167
|
-
authMapping: (auth, propsValue) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
168
|
-
const typedAuth = auth;
|
|
169
|
-
if (propsValue.useUserToken) {
|
|
170
|
-
const userToken = (0, auth_helpers_1.getUserToken)(typedAuth);
|
|
171
|
-
if (userToken) {
|
|
172
|
-
return {
|
|
173
|
-
Authorization: `Bearer ${userToken}`,
|
|
174
|
-
};
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
return {
|
|
178
|
-
Authorization: `Bearer ${(0, auth_helpers_1.getBotToken)(typedAuth)}`,
|
|
179
|
-
};
|
|
180
|
-
}),
|
|
181
|
-
extraProps: {
|
|
182
|
-
useUserToken: pieces_framework_1.Property.Checkbox({
|
|
183
|
-
displayName: 'Use user token',
|
|
184
|
-
description: 'Use user token instead of bot token',
|
|
185
|
-
required: true,
|
|
186
|
-
defaultValue: false,
|
|
187
|
-
}),
|
|
188
|
-
},
|
|
189
|
-
}),
|
|
190
|
-
],
|
|
191
|
-
triggers: [
|
|
192
|
-
new_message_1.newMessageTrigger,
|
|
193
|
-
new_message_in_channel_1.newMessageInChannelTrigger,
|
|
194
|
-
new_direct_message_1.newDirectMessageTrigger,
|
|
195
|
-
new_mention_1.newMention,
|
|
196
|
-
new_mention_in_direct_message_1.newMentionInDirectMessageTrigger,
|
|
197
|
-
new_reaction_added_1.newReactionAdded,
|
|
198
|
-
new_reaction_removed_1.newReactionRemoved,
|
|
199
|
-
new_channel_1.channelCreated,
|
|
200
|
-
new_command_1.newCommand,
|
|
201
|
-
new_command_in_direct_message_1.newCommandInDirectMessageTrigger,
|
|
202
|
-
new_user_1.newUserTrigger,
|
|
203
|
-
new_saved_message_1.newSavedMessageTrigger,
|
|
204
|
-
new_team_custom_emoji_1.newTeamCustomEmojiTrigger,
|
|
205
|
-
new_modal_interaction_1.newModalInteractionTrigger,
|
|
206
|
-
],
|
|
207
|
-
});
|
|
208
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
"use strict";var TS=Object.create;var Yn=Object.defineProperty;var SS=Object.getOwnPropertyDescriptor;var AS=Object.getOwnPropertyNames;var IS=Object.getPrototypeOf,OS=Object.prototype.hasOwnProperty;var i=(e,t)=>Yn(e,"name",{value:t,configurable:!0});var b=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Uc=(e,t)=>{for(var r in t)Yn(e,r,{get:t[r],enumerable:!0})},Lc=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of AS(t))!OS.call(e,o)&&o!==r&&Yn(e,o,{get:()=>t[o],enumerable:!(n=SS(t,o))||n.enumerable});return e};var de=(e,t,r)=>(r=e!=null?TS(IS(e)):{},Lc(t||!e||!e.__esModule?Yn(r,"default",{value:e,enumerable:!0}):r,e)),CS=e=>Lc(Yn({},"__esModule",{value:!0}),e);var ed=b((Qp,go)=>{(function(e){"use strict";let t="(0?\\d+|0x[a-f0-9]+)",r={fourOctet:new RegExp(`^${t}\\.${t}\\.${t}\\.${t}$`,"i"),threeOctet:new RegExp(`^${t}\\.${t}\\.${t}$`,"i"),twoOctet:new RegExp(`^${t}\\.${t}$`,"i"),longValue:new RegExp(`^${t}$`,"i")},n=new RegExp("^0[0-7]+$","i"),o=new RegExp("^0x[a-f0-9]+$","i"),a="%[0-9a-z]{1,}",s="(?:[0-9a-f]+::?)+",u={zoneIndex:new RegExp(a,"i"),native:new RegExp(`^(::)?(${s})?([0-9a-f]+)?(::)?(${a})?$`,"i"),deprecatedTransitional:new RegExp(`^(?:::)(${t}\\.${t}\\.${t}\\.${t}(${a})?)$`,"i"),transitional:new RegExp(`^((?:${s})|(?:::)(?:${s})?)${t}\\.${t}\\.${t}\\.${t}(${a})?$`,"i")};function l(d,h){if(d.indexOf("::")!==d.lastIndexOf("::"))return null;let x=0,y=-1,v=(d.match(u.zoneIndex)||[])[0],P,w;for(v&&(v=v.substring(1),d=d.replace(/%.+$/,""));(y=d.indexOf(":",y+1))>=0;)x++;if(d.substr(0,2)==="::"&&x--,d.substr(-2,2)==="::"&&x--,x>h)return null;for(w=h-x,P=":";w--;)P+="0:";return d=d.replace("::",P),d[0]===":"&&(d=d.slice(1)),d[d.length-1]===":"&&(d=d.slice(0,-1)),h=function(){let I=d.split(":"),N=[];for(let D=0;D<I.length;D++)N.push(parseInt(I[D],16));return N}(),{parts:h,zoneId:v}}i(l,"expandIPv6");function p(d,h,x,y){if(d.length!==h.length)throw new Error("ipaddr: cannot match CIDR for objects with different lengths");let v=0,P;for(;y>0;){if(P=x-y,P<0&&(P=0),d[v]>>P!==h[v]>>P)return!1;y-=x,v+=1}return!0}i(p,"matchCIDR");function c(d){if(o.test(d))return parseInt(d,16);if(d[0]==="0"&&!isNaN(parseInt(d[1],10))){if(n.test(d))return parseInt(d,8);throw new Error(`ipaddr: cannot parse ${d} as octal`)}return parseInt(d,10)}i(c,"parseIntAuto");function m(d,h){for(;d.length<h;)d=`0${d}`;return d}i(m,"padPart");let f={};f.IPv4=function(){function d(h){if(h.length!==4)throw new Error("ipaddr: ipv4 octet count should be 4");let x,y;for(x=0;x<h.length;x++)if(y=h[x],!(0<=y&&y<=255))throw new Error("ipaddr: ipv4 octet should fit in 8 bits");this.octets=h}return i(d,"IPv4"),d.prototype.SpecialRanges={unspecified:[[new d([0,0,0,0]),8]],broadcast:[[new d([255,255,255,255]),32]],multicast:[[new d([224,0,0,0]),4]],linkLocal:[[new d([169,254,0,0]),16]],loopback:[[new d([127,0,0,0]),8]],carrierGradeNat:[[new d([100,64,0,0]),10]],private:[[new d([10,0,0,0]),8],[new d([172,16,0,0]),12],[new d([192,168,0,0]),16]],reserved:[[new d([192,0,0,0]),24],[new d([192,0,2,0]),24],[new d([192,88,99,0]),24],[new d([198,18,0,0]),15],[new d([198,51,100,0]),24],[new d([203,0,113,0]),24],[new d([240,0,0,0]),4]],as112:[[new d([192,175,48,0]),24],[new d([192,31,196,0]),24]],amt:[[new d([192,52,193,0]),24]]},d.prototype.kind=function(){return"ipv4"},d.prototype.match=function(h,x){let y;if(x===void 0&&(y=h,h=y[0],x=y[1]),h.kind()!=="ipv4")throw new Error("ipaddr: cannot match ipv4 address with non-ipv4 one");return p(this.octets,h.octets,8,x)},d.prototype.prefixLengthFromSubnetMask=function(){let h=0,x=!1,y={0:8,128:7,192:6,224:5,240:4,248:3,252:2,254:1,255:0},v,P,w;for(v=3;v>=0;v-=1)if(P=this.octets[v],P in y){if(w=y[P],x&&w!==0)return null;w!==8&&(x=!0),h+=w}else return null;return 32-h},d.prototype.range=function(){return f.subnetMatch(this,this.SpecialRanges)},d.prototype.toByteArray=function(){return this.octets.slice(0)},d.prototype.toIPv4MappedAddress=function(){return f.IPv6.parse(`::ffff:${this.toString()}`)},d.prototype.toNormalizedString=function(){return this.toString()},d.prototype.toString=function(){return this.octets.join(".")},d}(),f.IPv4.broadcastAddressFromCIDR=function(d){try{let h=this.parseCIDR(d),x=h[0].toByteArray(),y=this.subnetMaskFromPrefixLength(h[1]).toByteArray(),v=[],P=0;for(;P<4;)v.push(parseInt(x[P],10)|parseInt(y[P],10)^255),P++;return new this(v)}catch{throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},f.IPv4.isIPv4=function(d){return this.parser(d)!==null},f.IPv4.isValid=function(d){try{return new this(this.parser(d)),!0}catch{return!1}},f.IPv4.isValidCIDR=function(d){try{return this.parseCIDR(d),!0}catch{return!1}},f.IPv4.isValidFourPartDecimal=function(d){return!!(f.IPv4.isValid(d)&&d.match(/^(0|[1-9]\d*)(\.(0|[1-9]\d*)){3}$/))},f.IPv4.isValidCIDRFourPartDecimal=function(d){let h=d.match(/^(.+)\/(\d+)$/);return!f.IPv4.isValidCIDR(d)||!h?!1:f.IPv4.isValidFourPartDecimal(h[1])},f.IPv4.networkAddressFromCIDR=function(d){let h,x,y,v,P;try{for(h=this.parseCIDR(d),y=h[0].toByteArray(),P=this.subnetMaskFromPrefixLength(h[1]).toByteArray(),v=[],x=0;x<4;)v.push(parseInt(y[x],10)&parseInt(P[x],10)),x++;return new this(v)}catch{throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},f.IPv4.parse=function(d){let h=this.parser(d);if(h===null)throw new Error("ipaddr: string is not formatted like an IPv4 Address");return new this(h)},f.IPv4.parseCIDR=function(d){let h;if(h=d.match(/^(.+)\/(\d+)$/)){let x=parseInt(h[2]);if(x>=0&&x<=32){let y=[this.parse(h[1]),x];return Object.defineProperty(y,"toString",{value:i(function(){return this.join("/")},"value")}),y}}throw new Error("ipaddr: string is not formatted like an IPv4 CIDR range")},f.IPv4.parser=function(d){let h,x,y;if(h=d.match(r.fourOctet))return function(){let v=h.slice(1,6),P=[];for(let w=0;w<v.length;w++)x=v[w],P.push(c(x));return P}();if(h=d.match(r.longValue)){if(y=c(h[1]),y>4294967295||y<0)throw new Error("ipaddr: address outside defined range");return function(){let v=[],P;for(P=0;P<=24;P+=8)v.push(y>>P&255);return v}().reverse()}else return(h=d.match(r.twoOctet))?function(){let v=h.slice(1,4),P=[];if(y=c(v[1]),y>16777215||y<0)throw new Error("ipaddr: address outside defined range");return P.push(c(v[0])),P.push(y>>16&255),P.push(y>>8&255),P.push(y&255),P}():(h=d.match(r.threeOctet))?function(){let v=h.slice(1,5),P=[];if(y=c(v[2]),y>65535||y<0)throw new Error("ipaddr: address outside defined range");return P.push(c(v[0])),P.push(c(v[1])),P.push(y>>8&255),P.push(y&255),P}():null},f.IPv4.subnetMaskFromPrefixLength=function(d){if(d=parseInt(d),d<0||d>32)throw new Error("ipaddr: invalid IPv4 prefix length");let h=[0,0,0,0],x=0,y=Math.floor(d/8);for(;x<y;)h[x]=255,x++;return y<4&&(h[y]=Math.pow(2,d%8)-1<<8-d%8),new this(h)},f.IPv6=function(){function d(h,x){let y,v;if(h.length===16)for(this.parts=[],y=0;y<=14;y+=2)this.parts.push(h[y]<<8|h[y+1]);else if(h.length===8)this.parts=h;else throw new Error("ipaddr: ipv6 part count should be 8 or 16");for(y=0;y<this.parts.length;y++)if(v=this.parts[y],!(0<=v&&v<=65535))throw new Error("ipaddr: ipv6 part should fit in 16 bits");x&&(this.zoneId=x)}return i(d,"IPv6"),d.prototype.SpecialRanges={unspecified:[new d([0,0,0,0,0,0,0,0]),128],linkLocal:[new d([65152,0,0,0,0,0,0,0]),10],multicast:[new d([65280,0,0,0,0,0,0,0]),8],loopback:[new d([0,0,0,0,0,0,0,1]),128],uniqueLocal:[new d([64512,0,0,0,0,0,0,0]),7],ipv4Mapped:[new d([0,0,0,0,0,65535,0,0]),96],discard:[new d([256,0,0,0,0,0,0,0]),64],rfc6145:[new d([0,0,0,0,65535,0,0,0]),96],rfc6052:[new d([100,65435,0,0,0,0,0,0]),96],"6to4":[new d([8194,0,0,0,0,0,0,0]),16],teredo:[new d([8193,0,0,0,0,0,0,0]),32],benchmarking:[new d([8193,2,0,0,0,0,0,0]),48],amt:[new d([8193,3,0,0,0,0,0,0]),32],as112v6:[[new d([8193,4,274,0,0,0,0,0]),48],[new d([9760,79,32768,0,0,0,0,0]),48]],deprecated:[new d([8193,16,0,0,0,0,0,0]),28],orchid2:[new d([8193,32,0,0,0,0,0,0]),28],droneRemoteIdProtocolEntityTags:[new d([8193,48,0,0,0,0,0,0]),28],reserved:[[new d([8193,0,0,0,0,0,0,0]),23],[new d([8193,3512,0,0,0,0,0,0]),32]]},d.prototype.isIPv4MappedAddress=function(){return this.range()==="ipv4Mapped"},d.prototype.kind=function(){return"ipv6"},d.prototype.match=function(h,x){let y;if(x===void 0&&(y=h,h=y[0],x=y[1]),h.kind()!=="ipv6")throw new Error("ipaddr: cannot match ipv6 address with non-ipv6 one");return p(this.parts,h.parts,16,x)},d.prototype.prefixLengthFromSubnetMask=function(){let h=0,x=!1,y={0:16,32768:15,49152:14,57344:13,61440:12,63488:11,64512:10,65024:9,65280:8,65408:7,65472:6,65504:5,65520:4,65528:3,65532:2,65534:1,65535:0},v,P;for(let w=7;w>=0;w-=1)if(v=this.parts[w],v in y){if(P=y[v],x&&P!==0)return null;P!==16&&(x=!0),h+=P}else return null;return 128-h},d.prototype.range=function(){return f.subnetMatch(this,this.SpecialRanges)},d.prototype.toByteArray=function(){let h,x=[],y=this.parts;for(let v=0;v<y.length;v++)h=y[v],x.push(h>>8),x.push(h&255);return x},d.prototype.toFixedLengthString=function(){let h=function(){let y=[];for(let v=0;v<this.parts.length;v++)y.push(m(this.parts[v].toString(16),4));return y}.call(this).join(":"),x="";return this.zoneId&&(x=`%${this.zoneId}`),h+x},d.prototype.toIPv4Address=function(){if(!this.isIPv4MappedAddress())throw new Error("ipaddr: trying to convert a generic ipv6 address to ipv4");let h=this.parts.slice(-2),x=h[0],y=h[1];return new f.IPv4([x>>8,x&255,y>>8,y&255])},d.prototype.toNormalizedString=function(){let h=function(){let y=[];for(let v=0;v<this.parts.length;v++)y.push(this.parts[v].toString(16));return y}.call(this).join(":"),x="";return this.zoneId&&(x=`%${this.zoneId}`),h+x},d.prototype.toRFC5952String=function(){let h=/((^|:)(0(:|$)){2,})/g,x=this.toNormalizedString(),y=0,v=-1,P;for(;P=h.exec(x);)P[0].length>v&&(y=P.index,v=P[0].length);return v<0?x:`${x.substring(0,y)}::${x.substring(y+v)}`},d.prototype.toString=function(){return this.toRFC5952String()},d}(),f.IPv6.broadcastAddressFromCIDR=function(d){try{let h=this.parseCIDR(d),x=h[0].toByteArray(),y=this.subnetMaskFromPrefixLength(h[1]).toByteArray(),v=[],P=0;for(;P<16;)v.push(parseInt(x[P],10)|parseInt(y[P],10)^255),P++;return new this(v)}catch(h){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${h})`)}},f.IPv6.isIPv6=function(d){return this.parser(d)!==null},f.IPv6.isValid=function(d){if(typeof d=="string"&&d.indexOf(":")===-1)return!1;try{let h=this.parser(d);return new this(h.parts,h.zoneId),!0}catch{return!1}},f.IPv6.isValidCIDR=function(d){if(typeof d=="string"&&d.indexOf(":")===-1)return!1;try{return this.parseCIDR(d),!0}catch{return!1}},f.IPv6.networkAddressFromCIDR=function(d){let h,x,y,v,P;try{for(h=this.parseCIDR(d),y=h[0].toByteArray(),P=this.subnetMaskFromPrefixLength(h[1]).toByteArray(),v=[],x=0;x<16;)v.push(parseInt(y[x],10)&parseInt(P[x],10)),x++;return new this(v)}catch(w){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${w})`)}},f.IPv6.parse=function(d){let h=this.parser(d);if(h.parts===null)throw new Error("ipaddr: string is not formatted like an IPv6 Address");return new this(h.parts,h.zoneId)},f.IPv6.parseCIDR=function(d){let h,x,y;if((x=d.match(/^(.+)\/(\d+)$/))&&(h=parseInt(x[2]),h>=0&&h<=128))return y=[this.parse(x[1]),h],Object.defineProperty(y,"toString",{value:i(function(){return this.join("/")},"value")}),y;throw new Error("ipaddr: string is not formatted like an IPv6 CIDR range")},f.IPv6.parser=function(d){let h,x,y,v,P,w;if(y=d.match(u.deprecatedTransitional))return this.parser(`::ffff:${y[1]}`);if(u.native.test(d))return l(d,8);if((y=d.match(u.transitional))&&(w=y[6]||"",h=y[1],y[1].endsWith("::")||(h=h.slice(0,-1)),h=l(h+w,6),h.parts)){for(P=[parseInt(y[2]),parseInt(y[3]),parseInt(y[4]),parseInt(y[5])],x=0;x<P.length;x++)if(v=P[x],!(0<=v&&v<=255))return null;return h.parts.push(P[0]<<8|P[1]),h.parts.push(P[2]<<8|P[3]),{parts:h.parts,zoneId:h.zoneId}}return null},f.IPv6.subnetMaskFromPrefixLength=function(d){if(d=parseInt(d),d<0||d>128)throw new Error("ipaddr: invalid IPv6 prefix length");let h=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],x=0,y=Math.floor(d/8);for(;x<y;)h[x]=255,x++;return y<16&&(h[y]=Math.pow(2,d%8)-1<<8-d%8),new this(h)},f.fromByteArray=function(d){let h=d.length;if(h===4)return new f.IPv4(d);if(h===16)return new f.IPv6(d);throw new Error("ipaddr: the binary input is neither an IPv6 nor IPv4 address")},f.isValid=function(d){return f.IPv6.isValid(d)||f.IPv4.isValid(d)},f.isValidCIDR=function(d){return f.IPv6.isValidCIDR(d)||f.IPv4.isValidCIDR(d)},f.parse=function(d){if(f.IPv6.isValid(d))return f.IPv6.parse(d);if(f.IPv4.isValid(d))return f.IPv4.parse(d);throw new Error("ipaddr: the address has neither IPv6 nor IPv4 format")},f.parseCIDR=function(d){try{return f.IPv6.parseCIDR(d)}catch{try{return f.IPv4.parseCIDR(d)}catch{throw new Error("ipaddr: the address has neither IPv6 nor IPv4 CIDR format")}}},f.process=function(d){let h=this.parse(d);return h.kind()==="ipv6"&&h.isIPv4MappedAddress()?h.toIPv4Address():h},f.subnetMatch=function(d,h,x){let y,v,P,w;x==null&&(x="unicast");for(v in h)if(Object.prototype.hasOwnProperty.call(h,v)){for(P=h[v],P[0]&&!(P[0]instanceof Array)&&(P=[P]),y=0;y<P.length;y++)if(w=P[y],d.kind()===w[0].kind()&&d.match.apply(d,w))return v}return x},typeof go<"u"&&go.exports?go.exports=f:e.ipaddr=f})(Qp)});var Gd=b((B7,Wd)=>{var Zd=require("stream").Stream,aO=require("util");Wd.exports=Kt;function Kt(){this.source=null,this.dataSize=0,this.maxDataSize=1024*1024,this.pauseStream=!0,this._maxDataSizeExceeded=!1,this._released=!1,this._bufferedEvents=[]}i(Kt,"DelayedStream");aO.inherits(Kt,Zd);Kt.create=function(e,t){var r=new this;t=t||{};for(var n in t)r[n]=t[n];r.source=e;var o=e.emit;return e.emit=function(){return r._handleEmit(arguments),o.apply(e,arguments)},e.on("error",function(){}),r.pauseStream&&e.pause(),r};Object.defineProperty(Kt.prototype,"readable",{configurable:!0,enumerable:!0,get:i(function(){return this.source.readable},"get")});Kt.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)};Kt.prototype.resume=function(){this._released||this.release(),this.source.resume()};Kt.prototype.pause=function(){this.source.pause()};Kt.prototype.release=function(){this._released=!0,this._bufferedEvents.forEach(function(e){this.emit.apply(this,e)}.bind(this)),this._bufferedEvents=[]};Kt.prototype.pipe=function(){var e=Zd.prototype.pipe.apply(this,arguments);return this.resume(),e};Kt.prototype._handleEmit=function(e){if(this._released){this.emit.apply(this,e);return}e[0]==="data"&&(this.dataSize+=e[1].length,this._checkIfMaxDataSizeExceeded()),this._bufferedEvents.push(e)};Kt.prototype._checkIfMaxDataSizeExceeded=function(){if(!this._maxDataSizeExceeded&&!(this.dataSize<=this.maxDataSize)){this._maxDataSizeExceeded=!0;var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this.emit("error",new Error(e))}}});var Us=b((V7,Xd)=>{var sO=require("util"),Jd=require("stream").Stream,Kd=Gd();Xd.exports=je;function je(){this.writable=!1,this.readable=!0,this.dataSize=0,this.maxDataSize=2*1024*1024,this.pauseStreams=!0,this._released=!1,this._streams=[],this._currentStream=null,this._insideLoop=!1,this._pendingNext=!1}i(je,"CombinedStream");sO.inherits(je,Jd);je.create=function(e){var t=new this;e=e||{};for(var r in e)t[r]=e[r];return t};je.isStreamLike=function(e){return typeof e!="function"&&typeof e!="string"&&typeof e!="boolean"&&typeof e!="number"&&!Buffer.isBuffer(e)};je.prototype.append=function(e){var t=je.isStreamLike(e);if(t){if(!(e instanceof Kd)){var r=Kd.create(e,{maxDataSize:1/0,pauseStream:this.pauseStreams});e.on("data",this._checkDataSize.bind(this)),e=r}this._handleErrors(e),this.pauseStreams&&e.pause()}return this._streams.push(e),this};je.prototype.pipe=function(e,t){return Jd.prototype.pipe.call(this,e,t),this.resume(),e};je.prototype._getNext=function(){if(this._currentStream=null,this._insideLoop){this._pendingNext=!0;return}this._insideLoop=!0;try{do this._pendingNext=!1,this._realGetNext();while(this._pendingNext)}finally{this._insideLoop=!1}};je.prototype._realGetNext=function(){var e=this._streams.shift();if(typeof e>"u"){this.end();return}if(typeof e!="function"){this._pipeNext(e);return}var t=e;t(function(r){var n=je.isStreamLike(r);n&&(r.on("data",this._checkDataSize.bind(this)),this._handleErrors(r)),this._pipeNext(r)}.bind(this))};je.prototype._pipeNext=function(e){this._currentStream=e;var t=je.isStreamLike(e);if(t){e.on("end",this._getNext.bind(this)),e.pipe(this,{end:!1});return}var r=e;this.write(r),this._getNext()};je.prototype._handleErrors=function(e){var t=this;e.on("error",function(r){t._emitError(r)})};je.prototype.write=function(e){this.emit("data",e)};je.prototype.pause=function(){this.pauseStreams&&(this.pauseStreams&&this._currentStream&&typeof this._currentStream.pause=="function"&&this._currentStream.pause(),this.emit("pause"))};je.prototype.resume=function(){this._released||(this._released=!0,this.writable=!0,this._getNext()),this.pauseStreams&&this._currentStream&&typeof this._currentStream.resume=="function"&&this._currentStream.resume(),this.emit("resume")};je.prototype.end=function(){this._reset(),this.emit("end")};je.prototype.destroy=function(){this._reset(),this.emit("close")};je.prototype._reset=function(){this.writable=!1,this._streams=[],this._currentStream=null};je.prototype._checkDataSize=function(){if(this._updateDataSize(),!(this.dataSize<=this.maxDataSize)){var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(new Error(e))}};je.prototype._updateDataSize=function(){this.dataSize=0;var e=this;this._streams.forEach(function(t){t.dataSize&&(e.dataSize+=t.dataSize)}),this._currentStream&&this._currentStream.dataSize&&(this.dataSize+=this._currentStream.dataSize)};je.prototype._emitError=function(e){this._reset(),this.emit("error",e)}});var Qd=b((Z7,Yd)=>{"use strict";Yd.exports={"application/json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["json","map"]},"application/xml":{source:"iana",compressible:!0,extensions:["xml"]},"application/javascript":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["js","mjs"]},"application/pdf":{source:"iana",compressible:!1,extensions:["pdf"]},"application/zip":{source:"iana",compressible:!1,extensions:["zip"]},"application/gzip":{source:"iana",compressible:!1,extensions:["gz"]},"application/octet-stream":{source:"iana",compressible:!1,extensions:["bin","dat"]},"application/msword":{source:"iana",extensions:["doc"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{source:"iana",extensions:["docx"]},"application/vnd.ms-excel":{source:"iana",extensions:["xls"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{source:"iana",extensions:["xlsx"]},"application/vnd.ms-powerpoint":{source:"iana",extensions:["ppt"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{source:"iana",extensions:["pptx"]},"application/csv":{compressible:!0,extensions:["csv"]},"application/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"application/x-tar":{source:"apache",compressible:!0,extensions:["tar"]},"application/x-7z-compressed":{source:"apache",compressible:!1,extensions:["7z"]},"application/wasm":{source:"iana",compressible:!0,extensions:["wasm"]},"text/plain":{source:"iana",compressible:!0,charset:"UTF-8",extensions:["txt","text","log"]},"text/html":{source:"iana",compressible:!0,charset:"UTF-8",extensions:["html","htm"]},"text/css":{source:"iana",compressible:!0,charset:"UTF-8",extensions:["css"]},"text/csv":{source:"iana",compressible:!0,charset:"UTF-8",extensions:["csv"]},"text/markdown":{source:"iana",compressible:!0,charset:"UTF-8",extensions:["md","markdown"]},"text/xml":{source:"iana",compressible:!0,extensions:["xml"]},"text/yaml":{compressible:!0,extensions:["yaml","yml"]},"image/png":{source:"iana",compressible:!1,extensions:["png"]},"image/jpeg":{source:"iana",compressible:!1,extensions:["jpeg","jpg","jpe"]},"image/gif":{source:"iana",compressible:!1,extensions:["gif"]},"image/webp":{source:"apache",compressible:!1,extensions:["webp"]},"image/svg+xml":{source:"iana",compressible:!0,extensions:["svg","svgz"]},"image/bmp":{source:"iana",compressible:!0,extensions:["bmp"]},"image/tiff":{source:"iana",compressible:!1,extensions:["tiff","tif"]},"image/x-icon":{source:"apache",compressible:!0,extensions:["ico"]},"image/heic":{source:"iana",compressible:!1,extensions:["heic"]},"image/avif":{source:"iana",compressible:!1,extensions:["avif"]},"audio/mpeg":{source:"iana",compressible:!1,extensions:["mp3","mpga"]},"audio/wav":{compressible:!1,extensions:["wav"]},"audio/ogg":{source:"iana",compressible:!1,extensions:["ogg","oga"]},"audio/webm":{source:"apache",compressible:!1,extensions:["weba"]},"audio/mp4":{source:"iana",compressible:!1,extensions:["m4a"]},"video/mp4":{source:"iana",compressible:!1,extensions:["mp4","m4v"]},"video/mpeg":{source:"iana",compressible:!1,extensions:["mpeg","mpg"]},"video/webm":{source:"iana",compressible:!1,extensions:["webm"]},"video/quicktime":{source:"iana",compressible:!1,extensions:["mov","qt"]},"video/x-msvideo":{source:"iana",compressible:!1,extensions:["avi"]},"font/woff":{source:"iana",compressible:!1,extensions:["woff"]},"font/woff2":{source:"iana",compressible:!1,extensions:["woff2"]},"font/ttf":{source:"iana",compressible:!0,extensions:["ttf"]},"font/otf":{source:"iana",compressible:!0,extensions:["otf"]},"application/ld+json":{source:"iana",compressible:!0,extensions:["jsonld"]},"application/x-www-form-urlencoded":{source:"iana",compressible:!0},"multipart/form-data":{source:"iana"},"application/vnd.api+json":{source:"iana",compressible:!0},"application/manifest+json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["webmanifest"]},"application/ics":{compressible:!0,extensions:["ics"]},"text/calendar":{source:"iana",compressible:!0,extensions:["ics","ifb"]},"application/x-ndjson":{compressible:!0,extensions:["ndjson"]}}});var Ls=b(xt=>{"use strict";var Po=Qd(),uO=require("path").extname,ef=/^\s*([^;\s]*)(?:;|\s|$)/,lO=/^text\//i;xt.charset=tf;xt.charsets={lookup:tf};xt.contentType=cO;xt.extension=pO;xt.extensions=Object.create(null);xt.lookup=dO;xt.types=Object.create(null);fO(xt.extensions,xt.types);function tf(e){if(!e||typeof e!="string")return!1;var t=ef.exec(e),r=t&&Po[t[1].toLowerCase()];return r&&r.charset?r.charset:t&&lO.test(t[1])?"UTF-8":!1}i(tf,"charset");function cO(e){if(!e||typeof e!="string")return!1;var t=e.indexOf("/")===-1?xt.lookup(e):e;if(!t)return!1;if(t.indexOf("charset")===-1){var r=xt.charset(t);r&&(t+="; charset="+r.toLowerCase())}return t}i(cO,"contentType");function pO(e){if(!e||typeof e!="string")return!1;var t=ef.exec(e),r=t&&xt.extensions[t[1].toLowerCase()];return!r||!r.length?!1:r[0]}i(pO,"extension");function dO(e){if(!e||typeof e!="string")return!1;var t=uO("x."+e).toLowerCase().substr(1);return t&&xt.types[t]||!1}i(dO,"lookup");function fO(e,t){var r=["nginx","apache",void 0,"iana"];Object.keys(Po).forEach(i(function(o){var a=Po[o],s=a.extensions;if(!(!s||!s.length)){e[o]=s;for(var u=0;u<s.length;u++){var l=s[u];if(t[l]){var p=r.indexOf(Po[t[l]].source),c=r.indexOf(a.source);if(t[l]!=="application/octet-stream"&&(p>c||p===c&&t[l].substr(0,12)==="application/"))continue}t[l]=o}}},"forEachMimeType"))}i(fO,"populateMaps")});var nf=b((K7,rf)=>{rf.exports=mO;function mO(e){var t=typeof setImmediate=="function"?setImmediate:typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:null;t?t(e):setTimeout(e,0)}i(mO,"defer")});var Ms=b((X7,af)=>{var of=nf();af.exports=hO;function hO(e){var t=!1;return of(function(){t=!0}),i(function(n,o){t?e(n,o):of(i(function(){e(n,o)},"nextTick_callback"))},"async_callback")}i(hO,"async")});var qs=b((Q7,sf)=>{sf.exports=gO;function gO(e){Object.keys(e.jobs).forEach(yO.bind(e)),e.jobs={}}i(gO,"abort");function yO(e){typeof this.jobs[e]=="function"&&this.jobs[e]()}i(yO,"clean")});var Fs=b((tY,lf)=>{var uf=Ms(),vO=qs();lf.exports=xO;function xO(e,t,r,n){var o=r.keyedList?r.keyedList[r.index]:r.index;r.jobs[o]=bO(t,o,e[o],function(a,s){o in r.jobs&&(delete r.jobs[o],a?vO(r):r.results[o]=s,n(a,r.results))})}i(xO,"iterate");function bO(e,t,r,n){var o;return e.length==2?o=e(r,uf(n)):o=e(r,t,uf(n)),o}i(bO,"runJob")});var Bs=b((nY,cf)=>{cf.exports=_O;function _O(e,t){var r=!Array.isArray(e),n={index:0,keyedList:r||t?Object.keys(e):null,jobs:{},results:r?{}:[],size:r?Object.keys(e).length:e.length};return t&&n.keyedList.sort(r?t:function(o,a){return t(e[o],e[a])}),n}i(_O,"state")});var js=b((oY,pf)=>{var PO=qs(),wO=Ms();pf.exports=EO;function EO(e){Object.keys(this.jobs).length&&(this.index=this.size,PO(this),wO(e)(null,this.results))}i(EO,"terminator")});var ff=b((sY,df)=>{var kO=Fs(),TO=Bs(),SO=js();df.exports=AO;function AO(e,t,r){for(var n=TO(e);n.index<(n.keyedList||e).length;)kO(e,t,n,function(o,a){if(o){r(o,a);return}if(Object.keys(n.jobs).length===0){r(null,n.results);return}}),n.index++;return SO.bind(n,r)}i(AO,"parallel")});var Vs=b((lY,wo)=>{var mf=Fs(),IO=Bs(),OO=js();wo.exports=CO;wo.exports.ascending=hf;wo.exports.descending=zO;function CO(e,t,r,n){var o=IO(e,r);return mf(e,t,o,i(function a(s,u){if(s){n(s,u);return}if(o.index++,o.index<(o.keyedList||e).length){mf(e,t,o,a);return}n(null,o.results)},"iteratorHandler")),OO.bind(o,n)}i(CO,"serialOrdered");function hf(e,t){return e<t?-1:e>t?1:0}i(hf,"ascending");function zO(e,t){return-1*hf(e,t)}i(zO,"descending")});var yf=b((pY,gf)=>{var $O=Vs();gf.exports=RO;function RO(e,t,r){return $O(e,t,null,r)}i(RO,"serial")});var Hs=b((fY,vf)=>{vf.exports={parallel:ff(),serial:yf(),serialOrdered:Vs()}});var Zs=b((mY,xf)=>{"use strict";xf.exports=Object});var _f=b((hY,bf)=>{"use strict";bf.exports=Error});var wf=b((gY,Pf)=>{"use strict";Pf.exports=EvalError});var kf=b((yY,Ef)=>{"use strict";Ef.exports=RangeError});var Sf=b((vY,Tf)=>{"use strict";Tf.exports=ReferenceError});var If=b((xY,Af)=>{"use strict";Af.exports=SyntaxError});var Eo=b((bY,Of)=>{"use strict";Of.exports=TypeError});var zf=b((_Y,Cf)=>{"use strict";Cf.exports=URIError});var Rf=b((PY,$f)=>{"use strict";$f.exports=Math.abs});var Nf=b((wY,Df)=>{"use strict";Df.exports=Math.floor});var Lf=b((EY,Uf)=>{"use strict";Uf.exports=Math.max});var qf=b((kY,Mf)=>{"use strict";Mf.exports=Math.min});var Bf=b((TY,Ff)=>{"use strict";Ff.exports=Math.pow});var Vf=b((SY,jf)=>{"use strict";jf.exports=Math.round});var Zf=b((AY,Hf)=>{"use strict";Hf.exports=Number.isNaN||i(function(t){return t!==t},"isNaN")});var Gf=b((OY,Wf)=>{"use strict";var DO=Zf();Wf.exports=i(function(t){return DO(t)||t===0?t:t<0?-1:1},"sign")});var Jf=b((zY,Kf)=>{"use strict";Kf.exports=Object.getOwnPropertyDescriptor});var Ws=b(($Y,Xf)=>{"use strict";var ko=Jf();if(ko)try{ko([],"length")}catch{ko=null}Xf.exports=ko});var Qf=b((RY,Yf)=>{"use strict";var To=Object.defineProperty||!1;if(To)try{To({},"a",{value:1})}catch{To=!1}Yf.exports=To});var Gs=b((DY,em)=>{"use strict";em.exports=i(function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var o=42;t[r]=o;for(var a in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var s=Object.getOwnPropertySymbols(t);if(s.length!==1||s[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var u=Object.getOwnPropertyDescriptor(t,r);if(u.value!==o||u.enumerable!==!0)return!1}return!0},"hasSymbols")});var nm=b((UY,rm)=>{"use strict";var tm=typeof Symbol<"u"&&Symbol,NO=Gs();rm.exports=i(function(){return typeof tm!="function"||typeof Symbol!="function"||typeof tm("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:NO()},"hasNativeSymbols")});var Ks=b((MY,im)=>{"use strict";im.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var Js=b((qY,om)=>{"use strict";var UO=Zs();om.exports=UO.getPrototypeOf||null});var um=b((FY,sm)=>{"use strict";var LO="Function.prototype.bind called on incompatible ",MO=Object.prototype.toString,qO=Math.max,FO="[object Function]",am=i(function(t,r){for(var n=[],o=0;o<t.length;o+=1)n[o]=t[o];for(var a=0;a<r.length;a+=1)n[a+t.length]=r[a];return n},"concatty"),BO=i(function(t,r){for(var n=[],o=r||0,a=0;o<t.length;o+=1,a+=1)n[a]=t[o];return n},"slicy"),jO=i(function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r},"joiny");sm.exports=i(function(t){var r=this;if(typeof r!="function"||MO.apply(r)!==FO)throw new TypeError(LO+r);for(var n=BO(arguments,1),o,a=i(function(){if(this instanceof o){var c=r.apply(this,am(n,arguments));return Object(c)===c?c:this}return r.apply(t,am(n,arguments))},"binder"),s=qO(0,r.length-n.length),u=[],l=0;l<s;l++)u[l]="$"+l;if(o=Function("binder","return function ("+jO(u,",")+"){ return binder.apply(this,arguments); }")(a),r.prototype){var p=i(function(){},"Empty");p.prototype=r.prototype,o.prototype=new p,p.prototype=null}return o},"bind")});var vn=b((jY,lm)=>{"use strict";var VO=um();lm.exports=Function.prototype.bind||VO});var So=b((VY,cm)=>{"use strict";cm.exports=Function.prototype.call});var Xs=b((HY,pm)=>{"use strict";pm.exports=Function.prototype.apply});var fm=b((ZY,dm)=>{"use strict";dm.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var hm=b((WY,mm)=>{"use strict";var HO=vn(),ZO=Xs(),WO=So(),GO=fm();mm.exports=GO||HO.call(WO,ZO)});var ym=b((GY,gm)=>{"use strict";var KO=vn(),JO=Eo(),XO=So(),YO=hm();gm.exports=i(function(t){if(t.length<1||typeof t[0]!="function")throw new JO("a function is required");return YO(KO,XO,t)},"callBindBasic")});var wm=b((JY,Pm)=>{"use strict";var QO=ym(),vm=Ws(),bm;try{bm=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var Ys=!!bm&&vm&&vm(Object.prototype,"__proto__"),_m=Object,xm=_m.getPrototypeOf;Pm.exports=Ys&&typeof Ys.get=="function"?QO([Ys.get]):typeof xm=="function"?i(function(t){return xm(t==null?t:_m(t))},"getDunder"):!1});var Am=b((YY,Sm)=>{"use strict";var Em=Ks(),km=Js(),Tm=wm();Sm.exports=Em?i(function(t){return Em(t)},"getProto"):km?i(function(t){if(!t||typeof t!="object"&&typeof t!="function")throw new TypeError("getProto: not an object");return km(t)},"getProto"):Tm?i(function(t){return Tm(t)},"getProto"):null});var Ao=b((eQ,Im)=>{"use strict";var eC=Function.prototype.call,tC=Object.prototype.hasOwnProperty,rC=vn();Im.exports=rC.call(eC,tC)});var Nm=b((tQ,Dm)=>{"use strict";var ce,nC=Zs(),iC=_f(),oC=wf(),aC=kf(),sC=Sf(),Pn=If(),_n=Eo(),uC=zf(),lC=Rf(),cC=Nf(),pC=Lf(),dC=qf(),fC=Bf(),mC=Vf(),hC=Gf(),$m=Function,Qs=i(function(e){try{return $m('"use strict"; return ('+e+").constructor;")()}catch{}},"getEvalledConstructor"),xi=Ws(),gC=Qf(),eu=i(function(){throw new _n},"throwTypeError"),yC=xi?function(){try{return arguments.callee,eu}catch{try{return xi(arguments,"callee").get}catch{return eu}}}():eu,xn=nm()(),ot=Am(),vC=Js(),xC=Ks(),Rm=Xs(),bi=So(),bn={},bC=typeof Uint8Array>"u"||!ot?ce:ot(Uint8Array),Kr={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?ce:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?ce:ArrayBuffer,"%ArrayIteratorPrototype%":xn&&ot?ot([][Symbol.iterator]()):ce,"%AsyncFromSyncIteratorPrototype%":ce,"%AsyncFunction%":bn,"%AsyncGenerator%":bn,"%AsyncGeneratorFunction%":bn,"%AsyncIteratorPrototype%":bn,"%Atomics%":typeof Atomics>"u"?ce:Atomics,"%BigInt%":typeof BigInt>"u"?ce:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?ce:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?ce:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?ce:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":iC,"%eval%":eval,"%EvalError%":oC,"%Float16Array%":typeof Float16Array>"u"?ce:Float16Array,"%Float32Array%":typeof Float32Array>"u"?ce:Float32Array,"%Float64Array%":typeof Float64Array>"u"?ce:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?ce:FinalizationRegistry,"%Function%":$m,"%GeneratorFunction%":bn,"%Int8Array%":typeof Int8Array>"u"?ce:Int8Array,"%Int16Array%":typeof Int16Array>"u"?ce:Int16Array,"%Int32Array%":typeof Int32Array>"u"?ce:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":xn&&ot?ot(ot([][Symbol.iterator]())):ce,"%JSON%":typeof JSON=="object"?JSON:ce,"%Map%":typeof Map>"u"?ce:Map,"%MapIteratorPrototype%":typeof Map>"u"||!xn||!ot?ce:ot(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":nC,"%Object.getOwnPropertyDescriptor%":xi,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?ce:Promise,"%Proxy%":typeof Proxy>"u"?ce:Proxy,"%RangeError%":aC,"%ReferenceError%":sC,"%Reflect%":typeof Reflect>"u"?ce:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?ce:Set,"%SetIteratorPrototype%":typeof Set>"u"||!xn||!ot?ce:ot(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?ce:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":xn&&ot?ot(""[Symbol.iterator]()):ce,"%Symbol%":xn?Symbol:ce,"%SyntaxError%":Pn,"%ThrowTypeError%":yC,"%TypedArray%":bC,"%TypeError%":_n,"%Uint8Array%":typeof Uint8Array>"u"?ce:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?ce:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?ce:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?ce:Uint32Array,"%URIError%":uC,"%WeakMap%":typeof WeakMap>"u"?ce:WeakMap,"%WeakRef%":typeof WeakRef>"u"?ce:WeakRef,"%WeakSet%":typeof WeakSet>"u"?ce:WeakSet,"%Function.prototype.call%":bi,"%Function.prototype.apply%":Rm,"%Object.defineProperty%":gC,"%Object.getPrototypeOf%":vC,"%Math.abs%":lC,"%Math.floor%":cC,"%Math.max%":pC,"%Math.min%":dC,"%Math.pow%":fC,"%Math.round%":mC,"%Math.sign%":hC,"%Reflect.getPrototypeOf%":xC};if(ot)try{null.error}catch(e){Om=ot(ot(e)),Kr["%Error.prototype%"]=Om}var Om,_C=i(function e(t){var r;if(t==="%AsyncFunction%")r=Qs("async function () {}");else if(t==="%GeneratorFunction%")r=Qs("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=Qs("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var o=e("%AsyncGenerator%");o&&ot&&(r=ot(o.prototype))}return Kr[t]=r,r},"doEval"),Cm={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},_i=vn(),Io=Ao(),PC=_i.call(bi,Array.prototype.concat),wC=_i.call(Rm,Array.prototype.splice),zm=_i.call(bi,String.prototype.replace),Oo=_i.call(bi,String.prototype.slice),EC=_i.call(bi,RegExp.prototype.exec),kC=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,TC=/\\(\\)?/g,SC=i(function(t){var r=Oo(t,0,1),n=Oo(t,-1);if(r==="%"&&n!=="%")throw new Pn("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new Pn("invalid intrinsic syntax, expected opening `%`");var o=[];return zm(t,kC,function(a,s,u,l){o[o.length]=u?zm(l,TC,"$1"):s||a}),o},"stringToPath"),AC=i(function(t,r){var n=t,o;if(Io(Cm,n)&&(o=Cm[n],n="%"+o[0]+"%"),Io(Kr,n)){var a=Kr[n];if(a===bn&&(a=_C(n)),typeof a>"u"&&!r)throw new _n("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:o,name:n,value:a}}throw new Pn("intrinsic "+t+" does not exist!")},"getBaseIntrinsic");Dm.exports=i(function(t,r){if(typeof t!="string"||t.length===0)throw new _n("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new _n('"allowMissing" argument must be a boolean');if(EC(/^%?[^%]*%?$/,t)===null)throw new Pn("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=SC(t),o=n.length>0?n[0]:"",a=AC("%"+o+"%",r),s=a.name,u=a.value,l=!1,p=a.alias;p&&(o=p[0],wC(n,PC([0,1],p)));for(var c=1,m=!0;c<n.length;c+=1){var f=n[c],d=Oo(f,0,1),h=Oo(f,-1);if((d==='"'||d==="'"||d==="`"||h==='"'||h==="'"||h==="`")&&d!==h)throw new Pn("property names with quotes must have matching quotes");if((f==="constructor"||!m)&&(l=!0),o+="."+f,s="%"+o+"%",Io(Kr,s))u=Kr[s];else if(u!=null){if(!(f in u)){if(!r)throw new _n("base intrinsic for "+t+" exists, but the property is not available.");return}if(xi&&c+1>=n.length){var x=xi(u,f);m=!!x,m&&"get"in x&&!("originalValue"in x.get)?u=x.get:u=u[f]}else m=Io(u,f),u=u[f];m&&!l&&(Kr[s]=u)}}return u},"GetIntrinsic")});var Lm=b((nQ,Um)=>{"use strict";var IC=Gs();Um.exports=i(function(){return IC()&&!!Symbol.toStringTag},"hasToStringTagShams")});var tu=b((oQ,qm)=>{"use strict";var OC=Nm(),Mm=OC("%Object.defineProperty%",!0),CC=Lm()(),zC=Ao(),$C=Eo(),Co=CC?Symbol.toStringTag:null;qm.exports=i(function(t,r){var n=arguments.length>2&&!!arguments[2]&&arguments[2].force,o=arguments.length>2&&!!arguments[2]&&arguments[2].nonConfigurable;if(typeof n<"u"&&typeof n!="boolean"||typeof o<"u"&&typeof o!="boolean")throw new $C("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");Co&&(n||!zC(t,Co))&&(Mm?Mm(t,Co,{configurable:!o,enumerable:!1,value:r,writable:!1}):t[Co]=r)},"setToStringTag")});var Bm=b((sQ,Fm)=>{"use strict";var RC=Function.prototype.call,DC=Object.prototype.hasOwnProperty,NC=vn();Fm.exports=NC.call(RC,DC)});var Vm=b((uQ,jm)=>{"use strict";jm.exports=function(e,t){return Object.keys(t).forEach(function(r){e[r]=e[r]||t[r]}),e}});var au=b((lQ,Zm)=>{"use strict";var ou=Us(),UC=require("util"),ru=require("path"),LC=require("http"),MC=require("https"),qC=require("url").parse,FC=require("fs"),BC=require("stream").Stream,jC=require("crypto"),nu=Ls(),VC=Hs(),HC=tu(),$r=Bm(),iu=Vm();function Hm(e){return String(e).replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/"/g,"%22")}i(Hm,"escapeHeaderParam");function me(e){if(!(this instanceof me))return new me(e);this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],ou.call(this),e=e||{};for(var t in e)this[t]=e[t]}i(me,"FormData");UC.inherits(me,ou);me.LINE_BREAK=`\r
|
|
2
|
+
`;me.DEFAULT_CONTENT_TYPE="application/octet-stream";me.prototype.append=function(e,t,r){r=r||{},typeof r=="string"&&(r={filename:r});var n=ou.prototype.append.bind(this);if((typeof t=="number"||t==null)&&(t=String(t)),Array.isArray(t)){this._error(new Error("Arrays are not supported."));return}var o=this._multiPartHeader(e,t,r),a=this._multiPartFooter();n(o),n(t),n(a),this._trackLength(o,t,r)};me.prototype._trackLength=function(e,t,r){var n=0;r.knownLength!=null?n+=Number(r.knownLength):Buffer.isBuffer(t)?n=t.length:typeof t=="string"&&(n=Buffer.byteLength(t)),this._valueLength+=n,this._overheadLength+=Buffer.byteLength(e)+me.LINE_BREAK.length,!(!t||!t.path&&!(t.readable&&$r(t,"httpVersion"))&&!(t instanceof BC))&&(r.knownLength||this._valuesToMeasure.push(t))};me.prototype._lengthRetriever=function(e,t){$r(e,"fd")?e.end!=null&&e.end!=1/0&&e.start!=null?t(null,e.end+1-(e.start?e.start:0)):FC.stat(e.path,function(r,n){if(r){t(r);return}var o=n.size-(e.start?e.start:0);t(null,o)}):$r(e,"httpVersion")?t(null,Number(e.headers["content-length"])):$r(e,"httpModule")?(e.on("response",function(r){e.pause(),t(null,Number(r.headers["content-length"]))}),e.resume()):t("Unknown stream")};me.prototype._multiPartHeader=function(e,t,r){if(typeof r.header=="string")return r.header;var n=this._getContentDisposition(t,r),o=this._getContentType(t,r),a="",s={"Content-Disposition":["form-data",'name="'+Hm(e)+'"'].concat(n||[]),"Content-Type":[].concat(o||[])};typeof r.header=="object"&&iu(s,r.header);var u;for(var l in s)if($r(s,l)){if(u=s[l],u==null)continue;Array.isArray(u)||(u=[u]),u.length&&(a+=l+": "+u.join("; ")+me.LINE_BREAK)}return"--"+this.getBoundary()+me.LINE_BREAK+a+me.LINE_BREAK};me.prototype._getContentDisposition=function(e,t){var r;if(typeof t.filepath=="string"?r=ru.normalize(t.filepath).replace(/\\/g,"/"):t.filename||e&&(e.name||e.path)?r=ru.basename(t.filename||e&&(e.name||e.path)):e&&e.readable&&$r(e,"httpVersion")&&(r=ru.basename(e.client._httpMessage.path||"")),r)return'filename="'+Hm(r)+'"'};me.prototype._getContentType=function(e,t){var r=t.contentType;return!r&&e&&e.name&&(r=nu.lookup(e.name)),!r&&e&&e.path&&(r=nu.lookup(e.path)),!r&&e&&e.readable&&$r(e,"httpVersion")&&(r=e.headers["content-type"]),!r&&(t.filepath||t.filename)&&(r=nu.lookup(t.filepath||t.filename)),!r&&e&&typeof e=="object"&&(r=me.DEFAULT_CONTENT_TYPE),r};me.prototype._multiPartFooter=function(){return function(e){var t=me.LINE_BREAK,r=this._streams.length===0;r&&(t+=this._lastBoundary()),e(t)}.bind(this)};me.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+me.LINE_BREAK};me.prototype.getHeaders=function(e){var t,r={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(t in e)$r(e,t)&&(r[t.toLowerCase()]=e[t]);return r};me.prototype.setBoundary=function(e){if(typeof e!="string")throw new TypeError("FormData boundary must be a string");this._boundary=e};me.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary};me.prototype.getBuffer=function(){for(var e=new Buffer.alloc(0),t=this.getBoundary(),r=0,n=this._streams.length;r<n;r++)typeof this._streams[r]!="function"&&(Buffer.isBuffer(this._streams[r])?e=Buffer.concat([e,this._streams[r]]):e=Buffer.concat([e,Buffer.from(this._streams[r])]),(typeof this._streams[r]!="string"||this._streams[r].substring(2,t.length+2)!==t)&&(e=Buffer.concat([e,Buffer.from(me.LINE_BREAK)])));return Buffer.concat([e,Buffer.from(this._lastBoundary())])};me.prototype._generateBoundary=function(){this._boundary="--------------------------"+jC.randomBytes(12).toString("hex")};me.prototype.getLengthSync=function(){var e=this._overheadLength+this._valueLength;return this._streams.length&&(e+=this._lastBoundary().length),this.hasKnownLength()||this._error(new Error("Cannot calculate proper length in synchronous way.")),e};me.prototype.hasKnownLength=function(){var e=!0;return this._valuesToMeasure.length&&(e=!1),e};me.prototype.getLength=function(e){var t=this._overheadLength+this._valueLength;if(this._streams.length&&(t+=this._lastBoundary().length),!this._valuesToMeasure.length){process.nextTick(e.bind(this,null,t));return}VC.parallel(this._valuesToMeasure,this._lengthRetriever,function(r,n){if(r){e(r);return}n.forEach(function(o){t+=o}),e(null,t)})};me.prototype.submit=function(e,t){var r,n,o={method:"post"};return typeof e=="string"?(e=qC(e),n=iu({port:e.port,path:e.pathname,host:e.hostname,protocol:e.protocol},o)):(n=iu(e,o),n.port||(n.port=n.protocol==="https:"?443:80)),n.headers=this.getHeaders(e.headers),n.protocol==="https:"?r=MC.request(n):r=LC.request(n),this.getLength(function(a,s){if(a&&a!=="Unknown stream"){this._error(a);return}if(s&&r.setHeader("Content-Length",s),this.pipe(r),t){var u,l=i(function(p,c){return r.removeListener("error",l),r.removeListener("response",u),t.call(this,p,c)},"callback");u=l.bind(this,null),r.on("error",l),r.on("response",u)}}.bind(this)),r};me.prototype._error=function(e){this.error||(this.error=e,this.pause(),this.emit("error",e))};me.prototype.toString=function(){return"[object FormData]"};HC(me.prototype,"FormData");Zm.exports=me});var Xm=b((RQ,Jm)=>{var wn=1e3,En=wn*60,kn=En*60,Jr=kn*24,ez=Jr*7,tz=Jr*365.25;Jm.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return rz(e);if(r==="number"&&isFinite(e))return t.long?iz(e):nz(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function rz(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]),n=(t[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*tz;case"weeks":case"week":case"w":return r*ez;case"days":case"day":case"d":return r*Jr;case"hours":case"hour":case"hrs":case"hr":case"h":return r*kn;case"minutes":case"minute":case"mins":case"min":case"m":return r*En;case"seconds":case"second":case"secs":case"sec":case"s":return r*wn;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}i(rz,"parse");function nz(e){var t=Math.abs(e);return t>=Jr?Math.round(e/Jr)+"d":t>=kn?Math.round(e/kn)+"h":t>=En?Math.round(e/En)+"m":t>=wn?Math.round(e/wn)+"s":e+"ms"}i(nz,"fmtShort");function iz(e){var t=Math.abs(e);return t>=Jr?zo(e,t,Jr,"day"):t>=kn?zo(e,t,kn,"hour"):t>=En?zo(e,t,En,"minute"):t>=wn?zo(e,t,wn,"second"):e+" ms"}i(iz,"fmtLong");function zo(e,t,r,n){var o=t>=r*1.5;return Math.round(e/r)+" "+n+(o?"s":"")}i(zo,"plural")});var uu=b((NQ,Ym)=>{function oz(e){r.debug=r,r.default=r,r.coerce=l,r.disable=s,r.enable=o,r.enabled=u,r.humanize=Xm(),r.destroy=p,Object.keys(e).forEach(c=>{r[c]=e[c]}),r.names=[],r.skips=[],r.formatters={};function t(c){let m=0;for(let f=0;f<c.length;f++)m=(m<<5)-m+c.charCodeAt(f),m|=0;return r.colors[Math.abs(m)%r.colors.length]}i(t,"selectColor"),r.selectColor=t;function r(c){let m,f=null,d,h;function x(...y){if(!x.enabled)return;let v=x,P=Number(new Date),w=P-(m||P);v.diff=w,v.prev=m,v.curr=P,m=P,y[0]=r.coerce(y[0]),typeof y[0]!="string"&&y.unshift("%O");let I=0;y[0]=y[0].replace(/%([a-zA-Z%])/g,(D,B)=>{if(D==="%%")return"%";I++;let W=r.formatters[B];if(typeof W=="function"){let G=y[I];D=W.call(v,G),y.splice(I,1),I--}return D}),r.formatArgs.call(v,y),(v.log||r.log).apply(v,y)}return i(x,"debug"),x.namespace=c,x.useColors=r.useColors(),x.color=r.selectColor(c),x.extend=n,x.destroy=r.destroy,Object.defineProperty(x,"enabled",{enumerable:!0,configurable:!1,get:i(()=>f!==null?f:(d!==r.namespaces&&(d=r.namespaces,h=r.enabled(c)),h),"get"),set:i(y=>{f=y},"set")}),typeof r.init=="function"&&r.init(x),x}i(r,"createDebug");function n(c,m){let f=r(this.namespace+(typeof m>"u"?":":m)+c);return f.log=this.log,f}i(n,"extend");function o(c){r.save(c),r.namespaces=c,r.names=[],r.skips=[];let m=(typeof c=="string"?c:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let f of m)f[0]==="-"?r.skips.push(f.slice(1)):r.names.push(f)}i(o,"enable");function a(c,m){let f=0,d=0,h=-1,x=0;for(;f<c.length;)if(d<m.length&&(m[d]===c[f]||m[d]==="*"))m[d]==="*"?(h=d,x=f,d++):(f++,d++);else if(h!==-1)d=h+1,x++,f=x;else return!1;for(;d<m.length&&m[d]==="*";)d++;return d===m.length}i(a,"matchesTemplate");function s(){let c=[...r.names,...r.skips.map(m=>"-"+m)].join(",");return r.enable(""),c}i(s,"disable");function u(c){for(let m of r.skips)if(a(c,m))return!1;for(let m of r.names)if(a(c,m))return!0;return!1}i(u,"enabled");function l(c){return c instanceof Error?c.stack||c.message:c}i(l,"coerce");function p(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return i(p,"destroy"),r.enable(r.load()),r}i(oz,"setup");Ym.exports=oz});var Qm=b((bt,$o)=>{bt.formatArgs=sz;bt.save=uz;bt.load=lz;bt.useColors=az;bt.storage=cz();bt.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();bt.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function az(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}i(az,"useColors");function sz(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+$o.exports.humanize(this.diff),!this.useColors)return;let t="color: "+this.color;e.splice(1,0,t,"color: inherit");let r=0,n=0;e[0].replace(/%[a-zA-Z%]/g,o=>{o!=="%%"&&(r++,o==="%c"&&(n=r))}),e.splice(n,0,t)}i(sz,"formatArgs");bt.log=console.debug||console.log||(()=>{});function uz(e){try{e?bt.storage.setItem("debug",e):bt.storage.removeItem("debug")}catch{}}i(uz,"save");function lz(){let e;try{e=bt.storage.getItem("debug")||bt.storage.getItem("DEBUG")}catch{}return!e&&typeof process<"u"&&"env"in process&&(e=process.env.DEBUG),e}i(lz,"load");function cz(){try{return localStorage}catch{}}i(cz,"localstorage");$o.exports=uu()(bt);var{formatters:pz}=$o.exports;pz.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}});var th=b((MQ,eh)=>{"use strict";eh.exports=(e,t=process.argv)=>{let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),o=t.indexOf("--");return n!==-1&&(o===-1||n<o)}});var ih=b((qQ,nh)=>{"use strict";var dz=require("os"),rh=require("tty"),Dt=th(),{env:at}=process,Rr;Dt("no-color")||Dt("no-colors")||Dt("color=false")||Dt("color=never")?Rr=0:(Dt("color")||Dt("colors")||Dt("color=true")||Dt("color=always"))&&(Rr=1);"FORCE_COLOR"in at&&(at.FORCE_COLOR==="true"?Rr=1:at.FORCE_COLOR==="false"?Rr=0:Rr=at.FORCE_COLOR.length===0?1:Math.min(parseInt(at.FORCE_COLOR,10),3));function lu(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}i(lu,"translateLevel");function cu(e,t){if(Rr===0)return 0;if(Dt("color=16m")||Dt("color=full")||Dt("color=truecolor"))return 3;if(Dt("color=256"))return 2;if(e&&!t&&Rr===void 0)return 0;let r=Rr||0;if(at.TERM==="dumb")return r;if(process.platform==="win32"){let n=dz.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in at)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in at)||at.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in at)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(at.TEAMCITY_VERSION)?1:0;if(at.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in at){let n=parseInt((at.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(at.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(at.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(at.TERM)||"COLORTERM"in at?1:r}i(cu,"supportsColor");function fz(e){let t=cu(e,e&&e.isTTY);return lu(t)}i(fz,"getSupportLevel");nh.exports={supportsColor:fz,stdout:lu(cu(!0,rh.isatty(1))),stderr:lu(cu(!0,rh.isatty(2)))}});var ah=b((st,Do)=>{var mz=require("tty"),Ro=require("util");st.init=_z;st.log=vz;st.formatArgs=gz;st.save=xz;st.load=bz;st.useColors=hz;st.destroy=Ro.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");st.colors=[6,2,3,4,5,1];try{let e=ih();e&&(e.stderr||e).level>=2&&(st.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}st.inspectOpts=Object.keys(process.env).filter(e=>/^debug_/i.test(e)).reduce((e,t)=>{let r=t.substring(6).toLowerCase().replace(/_([a-z])/g,(o,a)=>a.toUpperCase()),n=process.env[t];return/^(yes|on|true|enabled)$/i.test(n)?n=!0:/^(no|off|false|disabled)$/i.test(n)?n=!1:n==="null"?n=null:n=Number(n),e[r]=n,e},{});function hz(){return"colors"in st.inspectOpts?!!st.inspectOpts.colors:mz.isatty(process.stderr.fd)}i(hz,"useColors");function gz(e){let{namespace:t,useColors:r}=this;if(r){let n=this.color,o="\x1B[3"+(n<8?n:"8;5;"+n),a=` ${o};1m${t} \x1B[0m`;e[0]=a+e[0].split(`
|
|
3
|
+
`).join(`
|
|
4
|
+
`+a),e.push(o+"m+"+Do.exports.humanize(this.diff)+"\x1B[0m")}else e[0]=yz()+t+" "+e[0]}i(gz,"formatArgs");function yz(){return st.inspectOpts.hideDate?"":new Date().toISOString()+" "}i(yz,"getDate");function vz(...e){return process.stderr.write(Ro.formatWithOptions(st.inspectOpts,...e)+`
|
|
5
|
+
`)}i(vz,"log");function xz(e){e?process.env.DEBUG=e:delete process.env.DEBUG}i(xz,"save");function bz(){return process.env.DEBUG}i(bz,"load");function _z(e){e.inspectOpts={};let t=Object.keys(st.inspectOpts);for(let r=0;r<t.length;r++)e.inspectOpts[t[r]]=st.inspectOpts[t[r]]}i(_z,"init");Do.exports=uu()(st);var{formatters:oh}=Do.exports;oh.o=function(e){return this.inspectOpts.colors=this.useColors,Ro.inspect(e,this.inspectOpts).split(`
|
|
6
|
+
`).map(t=>t.trim()).join(" ")};oh.O=function(e){return this.inspectOpts.colors=this.useColors,Ro.inspect(e,this.inspectOpts)}});var sh=b((jQ,pu)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?pu.exports=Qm():pu.exports=ah()});var lh=b((VQ,uh)=>{var Pi;uh.exports=function(){if(!Pi){try{Pi=sh()("follow-redirects")}catch{}typeof Pi!="function"&&(Pi=i(function(){},"debug"))}Pi.apply(null,arguments)}});var mh=b((ZQ,wu)=>{var Ei=require("url"),wi=Ei.URL,Pz=require("http"),wz=require("https"),gu=require("stream").Writable,yu=require("assert"),ch=lh();i(function(){var t=typeof process<"u",r=typeof window<"u"&&typeof document<"u",n=Yr(Error.captureStackTrace);!t&&(r||!n)&&console.warn("The follow-redirects package should be excluded from browser builds.")},"detectUnsupportedEnvironment")();var vu=!1;try{yu(new wi(""))}catch(e){vu=e.code==="ERR_INVALID_URL"}var Ez=["Authorization","Proxy-Authorization","Cookie"],kz=["auth","host","hostname","href","path","pathname","port","protocol","query","search","hash"],xu=["abort","aborted","connect","error","socket","timeout"],bu=Object.create(null);xu.forEach(function(e){bu[e]=function(t,r,n){this._redirectable.emit(e,t,r,n)}});var fu=ki("ERR_INVALID_URL","Invalid URL",TypeError),mu=ki("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),Tz=ki("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded",mu),Sz=ki("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),Az=ki("ERR_STREAM_WRITE_AFTER_END","write after end"),Iz=gu.prototype.destroy||dh;function _t(e,t){gu.call(this),this._sanitizeOptions(e),this._options=e,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],t&&this.on("response",t);var r=this;this._onNativeResponse=function(n){try{r._processResponse(n)}catch(o){r.emit("error",o instanceof mu?o:new mu({cause:o}))}},this._headerFilter=new RegExp("^(?:"+Ez.concat(e.sensitiveHeaders).map(Dz).join("|")+")$","i"),this._performRequest()}i(_t,"RedirectableRequest");_t.prototype=Object.create(gu.prototype);_t.prototype.abort=function(){Pu(this._currentRequest),this._currentRequest.abort(),this.emit("abort")};_t.prototype.destroy=function(e){return Pu(this._currentRequest,e),Iz.call(this,e),this};_t.prototype.write=function(e,t,r){if(this._ending)throw new Az;if(!Xr(e)&&!$z(e))throw new TypeError("data should be a string, Buffer or Uint8Array");if(Yr(t)&&(r=t,t=null),e.length===0){r&&r();return}this._requestBodyLength+e.length<=this._options.maxBodyLength?(this._requestBodyLength+=e.length,this._requestBodyBuffers.push({data:e,encoding:t}),this._currentRequest.write(e,t,r)):(this.emit("error",new Sz),this.abort())};_t.prototype.end=function(e,t,r){if(Yr(e)?(r=e,e=t=null):Yr(t)&&(r=t,t=null),!e)this._ended=this._ending=!0,this._currentRequest.end(null,null,r);else{var n=this,o=this._currentRequest;this.write(e,t,function(){n._ended=!0,o.end(null,null,r)}),this._ending=!0}};_t.prototype.setHeader=function(e,t){this._options.headers[e]=t,this._currentRequest.setHeader(e,t)};_t.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)};_t.prototype.setTimeout=function(e,t){var r=this;function n(s){s.setTimeout(e),s.removeListener("timeout",s.destroy),s.addListener("timeout",s.destroy)}i(n,"destroyOnTimeout");function o(s){r._timeout&&clearTimeout(r._timeout),r._timeout=setTimeout(function(){r.emit("timeout"),a()},e),n(s)}i(o,"startTimer");function a(){r._timeout&&(clearTimeout(r._timeout),r._timeout=null),r.removeListener("abort",a),r.removeListener("error",a),r.removeListener("response",a),r.removeListener("close",a),t&&r.removeListener("timeout",t),r.socket||r._currentRequest.removeListener("socket",o)}return i(a,"clearTimer"),t&&this.on("timeout",t),this.socket?o(this.socket):this._currentRequest.once("socket",o),this.on("socket",n),this.on("abort",a),this.on("error",a),this.on("response",a),this.on("close",a),this};["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(e){_t.prototype[e]=function(t,r){return this._currentRequest[e](t,r)}});["aborted","connection","socket"].forEach(function(e){Object.defineProperty(_t.prototype,e,{get:i(function(){return this._currentRequest[e]},"get")})});_t.prototype._sanitizeOptions=function(e){if(e.headers||(e.headers={}),zz(e.sensitiveHeaders)||(e.sensitiveHeaders=[]),e.host&&(e.hostname||(e.hostname=e.host),delete e.host),!e.pathname&&e.path){var t=e.path.indexOf("?");t<0?e.pathname=e.path:(e.pathname=e.path.substring(0,t),e.search=e.path.substring(t))}};_t.prototype._performRequest=function(){var e=this._options.protocol,t=this._options.nativeProtocols[e];if(!t)throw new TypeError("Unsupported protocol "+e);if(this._options.agents){var r=e.slice(0,-1);this._options.agent=this._options.agents[r]}var n=this._currentRequest=t.request(this._options,this._onNativeResponse);n._redirectable=this;for(var o of xu)n.on(o,bu[o]);if(this._currentUrl=/^\//.test(this._options.path)?Ei.format(this._options):this._options.path,this._isRedirect){var a=0,s=this,u=this._requestBodyBuffers;i(function l(p){if(n===s._currentRequest)if(p)s.emit("error",p);else if(a<u.length){var c=u[a++];n.finished||n.write(c.data,c.encoding,l)}else s._ended&&n.end()},"writeNext")()}};_t.prototype._processResponse=function(e){var t=e.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:e.headers,statusCode:t});var r=e.headers.location;if(!r||this._options.followRedirects===!1||t<300||t>=400){e.responseUrl=this._currentUrl,e.redirects=this._redirects,this.emit("response",e),this._requestBodyBuffers=[];return}if(Pu(this._currentRequest),e.destroy(),++this._redirectCount>this._options.maxRedirects)throw new Tz;var n,o=this._options.beforeRedirect;o&&(n=Object.assign({Host:e.req.getHeader("host")},this._options.headers));var a=this._options.method;((t===301||t===302)&&this._options.method==="POST"||t===303&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],du(/^content-/i,this._options.headers));var s=du(/^host$/i,this._options.headers),u=_u(this._currentUrl),l=s||u.host,p=/^\w+:/.test(r)?this._currentUrl:Ei.format(Object.assign(u,{host:l})),c=Oz(r,p);if(ch("redirecting to",c.href),this._isRedirect=!0,hu(c,this._options),(c.protocol!==u.protocol&&c.protocol!=="https:"||c.host!==l&&!Cz(c.host,l))&&du(this._headerFilter,this._options.headers),Yr(o)){var m={headers:e.headers,statusCode:t},f={url:p,method:a,headers:n};o(this._options,m,f),this._sanitizeOptions(this._options)}this._performRequest()};function ph(e){var t={maxRedirects:21,maxBodyLength:10485760},r={};return Object.keys(e).forEach(function(n){var o=n+":",a=r[o]=e[n],s=t[n]=Object.create(a);function u(p,c,m){return Rz(p)?p=hu(p):Xr(p)?p=hu(_u(p)):(m=c,c=fh(p),p={protocol:o}),Yr(c)&&(m=c,c=null),c=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},p,c),c.nativeProtocols=r,!Xr(c.host)&&!Xr(c.hostname)&&(c.hostname="::1"),yu.equal(c.protocol,o,"protocol mismatch"),ch("options",c),new _t(c,m)}i(u,"request");function l(p,c,m){var f=s.request(p,c,m);return f.end(),f}i(l,"get"),Object.defineProperties(s,{request:{value:u,configurable:!0,enumerable:!0,writable:!0},get:{value:l,configurable:!0,enumerable:!0,writable:!0}})}),t}i(ph,"wrap");function dh(){}i(dh,"noop");function _u(e){var t;if(vu)t=new wi(e);else if(t=fh(Ei.parse(e)),!Xr(t.protocol))throw new fu({input:e});return t}i(_u,"parseUrl");function Oz(e,t){return vu?new wi(e,t):_u(Ei.resolve(t,e))}i(Oz,"resolveUrl");function fh(e){if(/^\[/.test(e.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(e.hostname))throw new fu({input:e.href||e});if(/^\[/.test(e.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(e.host))throw new fu({input:e.href||e});return e}i(fh,"validateUrl");function hu(e,t){var r=t||{};for(var n of kz)r[n]=e[n];return r.hostname.startsWith("[")&&(r.hostname=r.hostname.slice(1,-1)),r.port!==""&&(r.port=Number(r.port)),r.path=r.search?r.pathname+r.search:r.pathname,r}i(hu,"spreadUrlObject");function du(e,t){var r;for(var n in t)e.test(n)&&(r=t[n],delete t[n]);return r===null||typeof r>"u"?void 0:String(r).trim()}i(du,"removeMatchingHeaders");function ki(e,t,r){function n(o){Yr(Error.captureStackTrace)&&Error.captureStackTrace(this,this.constructor),Object.assign(this,o||{}),this.code=e,this.message=this.cause?t+": "+this.cause.message:t}return i(n,"CustomError"),n.prototype=new(r||Error),Object.defineProperties(n.prototype,{constructor:{value:n,enumerable:!1},name:{value:"Error ["+e+"]",enumerable:!1}}),n}i(ki,"createErrorType");function Pu(e,t){for(var r of xu)e.removeListener(r,bu[r]);e.on("error",dh),e.destroy(t)}i(Pu,"destroyRequest");function Cz(e,t){yu(Xr(e)&&Xr(t));var r=e.length-t.length-1;return r>0&&e[r]==="."&&e.endsWith(t)}i(Cz,"isSubdomain");function zz(e){return e instanceof Array}i(zz,"isArray");function Xr(e){return typeof e=="string"||e instanceof String}i(Xr,"isString");function Yr(e){return typeof e=="function"}i(Yr,"isFunction");function $z(e){return typeof e=="object"&&"length"in e}i($z,"isBuffer");function Rz(e){return wi&&e instanceof wi}i(Rz,"isURL");function Dz(e){return e.replace(/[\]\\/()*+?.$]/g,"\\$&")}i(Dz,"escapeRegex");wu.exports=ph({http:Pz,https:wz});wu.exports.wrap=ph});var cg=b((GQ,lg)=>{"use strict";var Lh=au(),Nz=require("crypto"),Uz=require("url"),Lz=require("http"),Mz=require("https"),Mh=require("http2"),qu=require("util"),hh=require("path"),qz=mh(),Dr=require("zlib"),Pt=require("stream"),Fz=require("events");function qh(e,t){return i(function(){return e.apply(t,arguments)},"wrap")}i(qh,"bind");var{toString:Bz}=Object.prototype,{getPrototypeOf:Ho}=Object,{iterator:Zo,toStringTag:Fh}=Symbol,Wo=(e=>t=>{let r=Bz.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Jt=i(e=>(e=e.toLowerCase(),t=>Wo(t)===e),"kindOfTest"),Go=i(e=>t=>typeof t===e,"typeOfTest"),{isArray:On}=Array,An=Go("undefined");function Ii(e){return e!==null&&!An(e)&&e.constructor!==null&&!An(e.constructor)&&wt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}i(Ii,"isBuffer");var Bh=Jt("ArrayBuffer");function jz(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Bh(e.buffer),t}i(jz,"isArrayBufferView");var Vz=Go("string"),wt=Go("function"),jh=Go("number"),Oi=i(e=>e!==null&&typeof e=="object","isObject"),Hz=i(e=>e===!0||e===!1,"isBoolean"),Lo=i(e=>{if(Wo(e)!=="object")return!1;let t=Ho(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Fh in e)&&!(Zo in e)},"isPlainObject"),Zz=i(e=>{if(!Oi(e)||Ii(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},"isEmptyObject"),Wz=Jt("Date"),Gz=Jt("File"),Kz=i(e=>!!(e&&typeof e.uri<"u"),"isReactNativeBlob"),Jz=i(e=>e&&typeof e.getParts<"u","isReactNative"),Xz=Jt("Blob"),Yz=Jt("FileList"),Qz=i(e=>Oi(e)&&wt(e.pipe),"isStream");function e$(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}i(e$,"getGlobal");var gh=e$(),yh=typeof gh.FormData<"u"?gh.FormData:void 0,t$=i(e=>{if(!e)return!1;if(yh&&e instanceof yh)return!0;let t=Ho(e);if(!t||t===Object.prototype||!wt(e.append))return!1;let r=Wo(e);return r==="formdata"||r==="object"&&wt(e.toString)&&e.toString()==="[object FormData]"},"isFormData"),r$=Jt("URLSearchParams"),[n$,i$,o$,a$]=["ReadableStream","Request","Response","Headers"].map(Jt),s$=i(e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),"trim");function Ci(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,o;if(typeof e!="object"&&(e=[e]),On(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{if(Ii(e))return;let a=r?Object.getOwnPropertyNames(e):Object.keys(e),s=a.length,u;for(n=0;n<s;n++)u=a[n],t.call(null,e[u],u,e)}}i(Ci,"forEach");function Vh(e,t){if(Ii(e))return null;t=t.toLowerCase();let r=Object.keys(e),n=r.length,o;for(;n-- >0;)if(o=r[n],t===o.toLowerCase())return o;return null}i(Vh,"findKey");var Qr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Hh=i(e=>!An(e)&&e!==Qr,"isContextDefined");function Ou(...e){let{caseless:t,skipUndefined:r}=Hh(this)&&this||{},n={},o=i((a,s)=>{if(s==="__proto__"||s==="constructor"||s==="prototype")return;let u=t&&Vh(n,s)||s,l=Cu(n,u)?n[u]:void 0;Lo(l)&&Lo(a)?n[u]=Ou(l,a):Lo(a)?n[u]=Ou({},a):On(a)?n[u]=a.slice():(!r||!An(a))&&(n[u]=a)},"assignValue");for(let a=0,s=e.length;a<s;a++)e[a]&&Ci(e[a],o);return n}i(Ou,"merge");var u$=i((e,t,r,{allOwnKeys:n}={})=>(Ci(t,(o,a)=>{r&&wt(o)?Object.defineProperty(e,a,{__proto__:null,value:qh(o,r),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,a,{__proto__:null,value:o,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:n}),e),"extend"),l$=i(e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),"stripBOM"),c$=i((e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),r&&Object.assign(e.prototype,r)},"inherits"),p$=i((e,t,r,n)=>{let o,a,s,u={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),a=o.length;a-- >0;)s=o[a],(!n||n(s,e,t))&&!u[s]&&(t[s]=e[s],u[s]=!0);e=r!==!1&&Ho(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},"toFlatObject"),d$=i((e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;let n=e.indexOf(t,r);return n!==-1&&n===r},"endsWith"),f$=i(e=>{if(!e)return null;if(On(e))return e;let t=e.length;if(!jh(t))return null;let r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},"toArray"),m$=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Ho(Uint8Array)),h$=i((e,t)=>{let n=(e&&e[Zo]).call(e),o;for(;(o=n.next())&&!o.done;){let a=o.value;t.call(e,a[0],a[1])}},"forEachEntry"),g$=i((e,t)=>{let r,n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},"matchAll"),y$=Jt("HTMLFormElement"),v$=i(e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,i(function(r,n,o){return n.toUpperCase()+o},"replacer")),"toCamelCase"),Cu=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),x$=Jt("RegExp"),Zh=i((e,t)=>{let r=Object.getOwnPropertyDescriptors(e),n={};Ci(r,(o,a)=>{let s;(s=t(o,a,e))!==!1&&(n[a]=s||o)}),Object.defineProperties(e,n)},"reduceDescriptors"),b$=i(e=>{Zh(e,(t,r)=>{if(wt(e)&&["arguments","caller","callee"].includes(r))return!1;let n=e[r];if(wt(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},"freezeMethods"),_$=i((e,t)=>{let r={},n=i(o=>{o.forEach(a=>{r[a]=!0})},"define");return On(e)?n(e):n(String(e).split(t)),r},"toObjectSet"),P$=i(()=>{},"noop"),w$=i((e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,"toFiniteNumber");function E$(e){return!!(e&&wt(e.append)&&e[Fh]==="FormData"&&e[Zo])}i(E$,"isSpecCompliantForm");var k$=i(e=>{let t=new Array(10),r=i((n,o)=>{if(Oi(n)){if(t.indexOf(n)>=0)return;if(Ii(n))return n;if(!("toJSON"in n)){t[o]=n;let a=On(n)?[]:{};return Ci(n,(s,u)=>{let l=r(s,o+1);!An(l)&&(a[u]=l)}),t[o]=void 0,a}}return n},"visit");return r(e,0)},"toJSONObject"),T$=Jt("AsyncFunction"),S$=i(e=>e&&(Oi(e)||wt(e))&&wt(e.then)&&wt(e.catch),"isThenable"),Wh=((e,t)=>e?setImmediate:t?((r,n)=>(Qr.addEventListener("message",({source:o,data:a})=>{o===Qr&&a===r&&n.length&&n.shift()()},!1),o=>{n.push(o),Qr.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",wt(Qr.postMessage)),A$=typeof queueMicrotask<"u"?queueMicrotask.bind(Qr):typeof process<"u"&&process.nextTick||Wh,I$=i(e=>e!=null&&wt(e[Zo]),"isIterable"),k={isArray:On,isArrayBuffer:Bh,isBuffer:Ii,isFormData:t$,isArrayBufferView:jz,isString:Vz,isNumber:jh,isBoolean:Hz,isObject:Oi,isPlainObject:Lo,isEmptyObject:Zz,isReadableStream:n$,isRequest:i$,isResponse:o$,isHeaders:a$,isUndefined:An,isDate:Wz,isFile:Gz,isReactNativeBlob:Kz,isReactNative:Jz,isBlob:Xz,isRegExp:x$,isFunction:wt,isStream:Qz,isURLSearchParams:r$,isTypedArray:m$,isFileList:Yz,forEach:Ci,merge:Ou,extend:u$,trim:s$,stripBOM:l$,inherits:c$,toFlatObject:p$,kindOf:Wo,kindOfTest:Jt,endsWith:d$,toArray:f$,forEachEntry:h$,matchAll:g$,isHTMLForm:y$,hasOwnProperty:Cu,hasOwnProp:Cu,reduceDescriptors:Zh,freezeMethods:b$,toObjectSet:_$,toCamelCase:v$,noop:P$,toFiniteNumber:w$,findKey:Vh,global:Qr,isContextDefined:Hh,isSpecCompliantForm:E$,toJSONObject:k$,isAsyncFn:T$,isThenable:S$,setImmediate:Wh,asap:A$,isIterable:I$},O$=k.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),C$=i(e=>{let t={},r,n,o;return e&&e.split(`
|
|
7
|
+
`).forEach(i(function(s){o=s.indexOf(":"),r=s.substring(0,o).trim().toLowerCase(),n=s.substring(o+1).trim(),!(!r||t[r]&&O$[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)},"parser")),t},"parseHeaders"),vh=Symbol("internals"),z$=/[^\x09\x20-\x7E\x80-\xFF]/g;function $$(e){let t=0,r=e.length;for(;t<r;){let n=e.charCodeAt(t);if(n!==9&&n!==32)break;t+=1}for(;r>t;){let n=e.charCodeAt(r-1);if(n!==9&&n!==32)break;r-=1}return t===0&&r===e.length?e:e.slice(t,r)}i($$,"trimSPorHTAB");function Ti(e){return e&&String(e).trim().toLowerCase()}i(Ti,"normalizeHeader");function R$(e){return $$(e.replace(z$,""))}i(R$,"sanitizeHeaderValue");function Mo(e){return e===!1||e==null?e:k.isArray(e)?e.map(Mo):R$(String(e))}i(Mo,"normalizeValue");function D$(e){let t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}i(D$,"parseTokens");var N$=i(e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()),"isValidHeaderName");function Eu(e,t,r,n,o){if(k.isFunction(n))return n.call(this,t,r);if(o&&(t=r),!!k.isString(t)){if(k.isString(n))return t.indexOf(n)!==-1;if(k.isRegExp(n))return n.test(t)}}i(Eu,"matchHeaderValue");function U$(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}i(U$,"formatHeader");function L$(e,t){let r=k.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{__proto__:null,value:i(function(o,a,s){return this[n].call(this,t,o,a,s)},"value"),configurable:!0})})}i(L$,"buildAccessors");var tt=class{static{i(this,"AxiosHeaders")}constructor(t){t&&this.set(t)}set(t,r,n){let o=this;function a(u,l,p){let c=Ti(l);if(!c)throw new Error("header name must be a non-empty string");let m=k.findKey(o,c);(!m||o[m]===void 0||p===!0||p===void 0&&o[m]!==!1)&&(o[m||l]=Mo(u))}i(a,"setHeader");let s=i((u,l)=>k.forEach(u,(p,c)=>a(p,c,l)),"setHeaders");if(k.isPlainObject(t)||t instanceof this.constructor)s(t,r);else if(k.isString(t)&&(t=t.trim())&&!N$(t))s(C$(t),r);else if(k.isObject(t)&&k.isIterable(t)){let u={},l,p;for(let c of t){if(!k.isArray(c))throw TypeError("Object iterator must return a key-value pair");u[p=c[0]]=(l=u[p])?k.isArray(l)?[...l,c[1]]:[l,c[1]]:c[1]}s(u,r)}else t!=null&&a(r,t,n);return this}get(t,r){if(t=Ti(t),t){let n=k.findKey(this,t);if(n){let o=this[n];if(!r)return o;if(r===!0)return D$(o);if(k.isFunction(r))return r.call(this,o,n);if(k.isRegExp(r))return r.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=Ti(t),t){let n=k.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||Eu(this,this[n],n,r)))}return!1}delete(t,r){let n=this,o=!1;function a(s){if(s=Ti(s),s){let u=k.findKey(n,s);u&&(!r||Eu(n,n[u],u,r))&&(delete n[u],o=!0)}}return i(a,"deleteHeader"),k.isArray(t)?t.forEach(a):a(t),o}clear(t){let r=Object.keys(this),n=r.length,o=!1;for(;n--;){let a=r[n];(!t||Eu(this,this[a],a,t,!0))&&(delete this[a],o=!0)}return o}normalize(t){let r=this,n={};return k.forEach(this,(o,a)=>{let s=k.findKey(n,a);if(s){r[s]=Mo(o),delete r[a];return}let u=t?U$(a):String(a).trim();u!==a&&delete r[a],r[u]=Mo(o),n[u]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){let r=Object.create(null);return k.forEach(this,(n,o)=>{n!=null&&n!==!1&&(r[o]=t&&k.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
|
|
8
|
+
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){let n=new this(t);return r.forEach(o=>n.set(o)),n}static accessor(t){let n=(this[vh]=this[vh]={accessors:{}}).accessors,o=this.prototype;function a(s){let u=Ti(s);n[u]||(L$(o,s),n[u]=!0)}return i(a,"defineAccessor"),k.isArray(t)?t.forEach(a):a(t),this}};tt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);k.reduceDescriptors(tt.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:i(()=>e,"get"),set(n){this[r]=n}}});k.freezeMethods(tt);var M$="[REDACTED ****]";function q$(e){if(k.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(k.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}i(q$,"hasOwnOrPrototypeToJSON");function F$(e,t){let r=new Set(t.map(a=>String(a).toLowerCase())),n=[],o=i(a=>{if(a===null||typeof a!="object"||k.isBuffer(a))return a;if(n.indexOf(a)!==-1)return;a instanceof tt&&(a=a.toJSON()),n.push(a);let s;if(k.isArray(a))s=[],a.forEach((u,l)=>{let p=o(u);k.isUndefined(p)||(s[l]=p)});else{if(!k.isPlainObject(a)&&q$(a))return n.pop(),a;s=Object.create(null);for(let[u,l]of Object.entries(a)){let p=r.has(u.toLowerCase())?M$:o(l);k.isUndefined(p)||(s[u]=p)}}return n.pop(),s},"visit");return o(e)}i(F$,"redactConfig");var $=class e extends Error{static{i(this,"AxiosError")}static from(t,r,n,o,a,s){let u=new e(t.message,r||t.code,n,o,a);return u.cause=t,u.name=t.name,t.status!=null&&u.status==null&&(u.status=t.status),s&&Object.assign(u,s),u}constructor(t,r,n,o,a){super(t),Object.defineProperty(this,"message",{__proto__:null,value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,r&&(this.code=r),n&&(this.config=n),o&&(this.request=o),a&&(this.response=a,this.status=a.status)}toJSON(){let t=this.config,r=t&&k.hasOwnProp(t,"redact")?t.redact:void 0,n=k.isArray(r)&&r.length>0?F$(t,r):k.toJSONObject(t);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:n,code:this.code,status:this.status}}};$.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";$.ERR_BAD_OPTION="ERR_BAD_OPTION";$.ECONNABORTED="ECONNABORTED";$.ETIMEDOUT="ETIMEDOUT";$.ECONNREFUSED="ECONNREFUSED";$.ERR_NETWORK="ERR_NETWORK";$.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";$.ERR_DEPRECATED="ERR_DEPRECATED";$.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";$.ERR_BAD_REQUEST="ERR_BAD_REQUEST";$.ERR_CANCELED="ERR_CANCELED";$.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";$.ERR_INVALID_URL="ERR_INVALID_URL";$.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";function zu(e){return k.isPlainObject(e)||k.isArray(e)}i(zu,"isVisitable");function Gh(e){return k.endsWith(e,"[]")?e.slice(0,-2):e}i(Gh,"removeBrackets");function ku(e,t,r){return e?e.concat(t).map(i(function(o,a){return o=Gh(o),!r&&a?"["+o+"]":o},"each")).join(r?".":""):t}i(ku,"renderKey");function B$(e){return k.isArray(e)&&!e.some(zu)}i(B$,"isFlatArray");var j$=k.toFlatObject(k,{},null,i(function(t){return/^is[A-Z]/.test(t)},"filter"));function Ko(e,t,r){if(!k.isObject(e))throw new TypeError("target must be an object");t=t||new(Lh||FormData),r=k.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,i(function(y,v){return!k.isUndefined(v[y])},"defined"));let n=r.metaTokens,o=r.visitor||m,a=r.dots,s=r.indexes,u=r.Blob||typeof Blob<"u"&&Blob,l=r.maxDepth===void 0?100:r.maxDepth,p=u&&k.isSpecCompliantForm(t);if(!k.isFunction(o))throw new TypeError("visitor must be a function");function c(x){if(x===null)return"";if(k.isDate(x))return x.toISOString();if(k.isBoolean(x))return x.toString();if(!p&&k.isBlob(x))throw new $("Blob is not supported. Use a Buffer instead.");return k.isArrayBuffer(x)||k.isTypedArray(x)?p&&typeof Blob=="function"?new Blob([x]):Buffer.from(x):x}i(c,"convertValue");function m(x,y,v){let P=x;if(k.isReactNative(t)&&k.isReactNativeBlob(x))return t.append(ku(v,y,a),c(x)),!1;if(x&&!v&&typeof x=="object"){if(k.endsWith(y,"{}"))y=n?y:y.slice(0,-2),x=JSON.stringify(x);else if(k.isArray(x)&&B$(x)||(k.isFileList(x)||k.endsWith(y,"[]"))&&(P=k.toArray(x)))return y=Gh(y),P.forEach(i(function(I,N){!(k.isUndefined(I)||I===null)&&t.append(s===!0?ku([y],N,a):s===null?y:y+"[]",c(I))},"each")),!1}return zu(x)?!0:(t.append(ku(v,y,a),c(x)),!1)}i(m,"defaultVisitor");let f=[],d=Object.assign(j$,{defaultVisitor:m,convertValue:c,isVisitable:zu});function h(x,y,v=0){if(!k.isUndefined(x)){if(v>l)throw new $("Object is too deeply nested ("+v+" levels). Max depth: "+l,$.ERR_FORM_DATA_DEPTH_EXCEEDED);if(f.indexOf(x)!==-1)throw Error("Circular reference detected in "+y.join("."));f.push(x),k.forEach(x,i(function(w,I){(!(k.isUndefined(w)||w===null)&&o.call(t,w,k.isString(I)?I.trim():I,y,d))===!0&&h(w,y?y.concat(I):[I],v+1)},"each")),f.pop()}}if(i(h,"build"),!k.isObject(e))throw new TypeError("data must be an object");return h(e),t}i(Ko,"toFormData");function xh(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,i(function(n){return t[n]},"replacer"))}i(xh,"encode$1");function Kh(e,t){this._pairs=[],e&&Ko(e,this,t)}i(Kh,"AxiosURLSearchParams");var Jh=Kh.prototype;Jh.append=i(function(t,r){this._pairs.push([t,r])},"append");Jh.toString=i(function(t){let r=t?function(n){return t.call(this,n,xh)}:xh;return this._pairs.map(i(function(o){return r(o[0])+"="+r(o[1])},"each"),"").join("&")},"toString");function V$(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}i(V$,"encode");function Fu(e,t,r){if(!t)return e;let n=r&&r.encode||V$,o=k.isFunction(r)?{serialize:r}:r,a=o&&o.serialize,s;if(a?s=a(t,o):s=k.isURLSearchParams(t)?t.toString():new Kh(t,o).toString(n),s){let u=e.indexOf("#");u!==-1&&(e=e.slice(0,u)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}i(Fu,"buildURL");var Fo=class{static{i(this,"InterceptorManager")}constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){k.forEach(this.handlers,i(function(n){n!==null&&t(n)},"forEachHandler"))}},Jo={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},H$=Uz.URLSearchParams,Tu="abcdefghijklmnopqrstuvwxyz",bh="0123456789",Xh={DIGIT:bh,ALPHA:Tu,ALPHA_DIGIT:Tu+Tu.toUpperCase()+bh},Z$=i((e=16,t=Xh.ALPHA_DIGIT)=>{let r="",{length:n}=t,o=new Uint32Array(e);Nz.randomFillSync(o);for(let a=0;a<e;a++)r+=t[o[a]%n];return r},"generateString"),W$={isNode:!0,classes:{URLSearchParams:H$,FormData:Lh,Blob:typeof Blob<"u"&&Blob||null},ALPHABET:Xh,generateString:Z$,protocols:["http","https","file","data"]},Bu=typeof window<"u"&&typeof document<"u",$u=typeof navigator=="object"&&navigator||void 0,G$=Bu&&(!$u||["ReactNative","NativeScript","NS"].indexOf($u.product)<0),K$=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",J$=Bu&&window.location.href||"http://localhost",X$=Object.freeze({__proto__:null,hasBrowserEnv:Bu,hasStandardBrowserEnv:G$,hasStandardBrowserWebWorkerEnv:K$,navigator:$u,origin:J$}),Ve={...X$,...W$};function Y$(e,t){return Ko(e,new Ve.classes.URLSearchParams,{visitor:i(function(r,n,o,a){return Ve.isNode&&k.isBuffer(r)?(this.append(n,r.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)},"visitor"),...t})}i(Y$,"toURLEncodedForm");function Q$(e){return k.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}i(Q$,"parsePropPath");function eR(e){let t={},r=Object.keys(e),n,o=r.length,a;for(n=0;n<o;n++)a=r[n],t[a]=e[a];return t}i(eR,"arrayToObject");function Yh(e){function t(r,n,o,a){let s=r[a++];if(s==="__proto__")return!0;let u=Number.isFinite(+s),l=a>=r.length;return s=!s&&k.isArray(o)?o.length:s,l?(k.hasOwnProp(o,s)?o[s]=k.isArray(o[s])?o[s].concat(n):[o[s],n]:o[s]=n,!u):((!o[s]||!k.isObject(o[s]))&&(o[s]=[]),t(r,n,o[s],a)&&k.isArray(o[s])&&(o[s]=eR(o[s])),!u)}if(i(t,"buildPath"),k.isFormData(e)&&k.isFunction(e.entries)){let r={};return k.forEachEntry(e,(n,o)=>{t(Q$(n),o,r,0)}),r}return null}i(Yh,"formDataToJSON");var Tn=i((e,t)=>e!=null&&k.hasOwnProp(e,t)?e[t]:void 0,"own");function tR(e,t,r){if(k.isString(e))try{return(t||JSON.parse)(e),k.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}i(tR,"stringifySafely");var zi={transitional:Jo,adapter:["xhr","http","fetch"],transformRequest:[i(function(t,r){let n=r.getContentType()||"",o=n.indexOf("application/json")>-1,a=k.isObject(t);if(a&&k.isHTMLForm(t)&&(t=new FormData(t)),k.isFormData(t))return o?JSON.stringify(Yh(t)):t;if(k.isArrayBuffer(t)||k.isBuffer(t)||k.isStream(t)||k.isFile(t)||k.isBlob(t)||k.isReadableStream(t))return t;if(k.isArrayBufferView(t))return t.buffer;if(k.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let u;if(a){let l=Tn(this,"formSerializer");if(n.indexOf("application/x-www-form-urlencoded")>-1)return Y$(t,l).toString();if((u=k.isFileList(t))||n.indexOf("multipart/form-data")>-1){let p=Tn(this,"env"),c=p&&p.FormData;return Ko(u?{"files[]":t}:t,c&&new c,l)}}return a||o?(r.setContentType("application/json",!1),tR(t)):t},"transformRequest")],transformResponse:[i(function(t){let r=Tn(this,"transitional")||zi.transitional,n=r&&r.forcedJSONParsing,o=Tn(this,"responseType"),a=o==="json";if(k.isResponse(t)||k.isReadableStream(t))return t;if(t&&k.isString(t)&&(n&&!o||a)){let u=!(r&&r.silentJSONParsing)&&a;try{return JSON.parse(t,Tn(this,"parseReviver"))}catch(l){if(u)throw l.name==="SyntaxError"?$.from(l,$.ERR_BAD_RESPONSE,this,null,Tn(this,"response")):l}}return t},"transformResponse")],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ve.classes.FormData,Blob:Ve.classes.Blob},validateStatus:i(function(t){return t>=200&&t<300},"validateStatus"),headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};k.forEach(["delete","get","head","post","put","patch","query"],e=>{zi.headers[e]={}});function Su(e,t){let r=this||zi,n=t||r,o=tt.from(n.headers),a=n.data;return k.forEach(e,i(function(u){a=u.call(r,a,o.normalize(),t?t.status:void 0)},"transform")),o.normalize(),a}i(Su,"transformData");function Qh(e){return!!(e&&e.__CANCEL__)}i(Qh,"isCancel");var xr=class extends ${static{i(this,"CanceledError")}constructor(t,r,n){super(t??"canceled",$.ERR_CANCELED,r,n),this.name="CanceledError",this.__CANCEL__=!0}};function Sn(e,t,r){let n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new $("Request failed with status code "+r.status,r.status>=400&&r.status<500?$.ERR_BAD_REQUEST:$.ERR_BAD_RESPONSE,r.config,r.request,r))}i(Sn,"settle");function rR(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}i(rR,"isAbsoluteURL");function nR(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}i(nR,"combineURLs");function ju(e,t,r){let n=!rR(t);return e&&(n||r===!1)?nR(e,t):t}i(ju,"buildFullPath");var iR={ftp:21,gopher:70,http:80,https:443,ws:80,wss:443};function oR(e){try{return new URL(e)}catch{return null}}i(oR,"parseUrl");function aR(e){var t=(typeof e=="string"?oR(e):e)||{},r=t.protocol,n=t.host,o=t.port;if(typeof n!="string"||!n||typeof r!="string"||(r=r.split(":",1)[0],n=n.replace(/:\d*$/,""),o=parseInt(o)||iR[r]||0,!sR(n,o)))return"";var a=Ru(r+"_proxy")||Ru("all_proxy");return a&&a.indexOf("://")===-1&&(a=r+"://"+a),a}i(aR,"getProxyForUrl");function sR(e,t){var r=Ru("no_proxy").toLowerCase();return r?r==="*"?!1:r.split(/[,\s]/).every(function(n){if(!n)return!0;var o=n.match(/^(.+):(\d+)$/),a=o?o[1]:n,s=o?parseInt(o[2]):0;return s&&s!==t?!0:/^[.*]/.test(a)?(a.charAt(0)==="*"&&(a=a.slice(1)),!e.endsWith(a)):e!==a}):!0}i(sR,"shouldProxy");function Ru(e){return process.env[e.toLowerCase()]||process.env[e.toUpperCase()]||""}i(Ru,"getEnv");var Si="1.16.0";function eg(e){let t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}i(eg,"parseProtocol");var uR=/^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/;function lR(e,t,r){let n=r&&r.Blob||Ve.classes.Blob,o=eg(e);if(t===void 0&&n&&(t=!0),o==="data"){e=o.length?e.slice(o.length+1):e;let a=uR.exec(e);if(!a)throw new $("Invalid URL",$.ERR_INVALID_URL);let s=a[1],u=a[2],l=a[3],p=Buffer.from(decodeURIComponent(l),u?"base64":"utf8");if(t){if(!n)throw new $("Blob is not supported",$.ERR_NOT_SUPPORT);return new n([p],{type:s})}return p}throw new $("Unsupported protocol "+o,$.ERR_NOT_SUPPORT)}i(lR,"fromDataURI");var Au=Symbol("internals"),Bo=class extends Pt.Transform{static{i(this,"AxiosTransformStream")}constructor(t){t=k.toFlatObject(t,{maxRate:0,chunkSize:64*1024,minChunkSize:100,timeWindow:500,ticksRate:2,samplesCount:15},null,(n,o)=>!k.isUndefined(o[n])),super({readableHighWaterMark:t.chunkSize});let r=this[Au]={timeWindow:t.timeWindow,chunkSize:t.chunkSize,maxRate:t.maxRate,minChunkSize:t.minChunkSize,bytesSeen:0,isCaptured:!1,notifiedBytesLoaded:0,ts:Date.now(),bytes:0,onReadCallback:null};this.on("newListener",n=>{n==="progress"&&(r.isCaptured||(r.isCaptured=!0))})}_read(t){let r=this[Au];return r.onReadCallback&&r.onReadCallback(),super._read(t)}_transform(t,r,n){let o=this[Au],a=o.maxRate,s=this.readableHighWaterMark,u=o.timeWindow,l=1e3/u,p=a/l,c=o.minChunkSize!==!1?Math.max(o.minChunkSize,p*.01):0,m=i((d,h)=>{let x=Buffer.byteLength(d);o.bytesSeen+=x,o.bytes+=x,o.isCaptured&&this.emit("progress",o.bytesSeen),this.push(d)?process.nextTick(h):o.onReadCallback=()=>{o.onReadCallback=null,process.nextTick(h)}},"pushChunk"),f=i((d,h)=>{let x=Buffer.byteLength(d),y=null,v=s,P,w=0;if(a){let I=Date.now();(!o.ts||(w=I-o.ts)>=u)&&(o.ts=I,P=p-o.bytes,o.bytes=P<0?-P:0,w=0),P=p-o.bytes}if(a){if(P<=0)return setTimeout(()=>{h(null,d)},u-w);P<v&&(v=P)}v&&x>v&&x-v>c&&(y=d.subarray(v),d=d.subarray(0,v)),m(d,y?()=>{process.nextTick(h,null,y)}:h)},"transformChunk");f(t,i(function d(h,x){if(h)return n(h);x?f(x,d):n(null)},"transformNextChunk"))}},{asyncIterator:_h}=Symbol,tg=i(async function*(e){e.stream?yield*e.stream():e.arrayBuffer?yield await e.arrayBuffer():e[_h]?yield*e[_h]():yield e},"readBlob"),cR=Ve.ALPHABET.ALPHA_DIGIT+"-_",Ai=typeof TextEncoder=="function"?new TextEncoder:new qu.TextEncoder,en=`\r
|
|
9
|
+
`,pR=Ai.encode(en),dR=2,Du=class{static{i(this,"FormDataPart")}constructor(t,r){let{escapeName:n}=this.constructor,o=k.isString(r),a=`Content-Disposition: form-data; name="${n(t)}"${!o&&r.name?`; filename="${n(r.name)}"`:""}${en}`;if(o)r=Ai.encode(String(r).replace(/\r?\n|\r\n?/g,en));else{let s=String(r.type||"application/octet-stream").replace(/[\r\n]/g,"");a+=`Content-Type: ${s}${en}`}this.headers=Ai.encode(a+en),this.contentLength=o?r.byteLength:r.size,this.size=this.headers.byteLength+this.contentLength+dR,this.name=t,this.value=r}async*encode(){yield this.headers;let{value:t}=this;k.isTypedArray(t)?yield t:yield*tg(t),yield pR}static escapeName(t){return String(t).replace(/[\r\n"]/g,r=>({"\r":"%0D","\n":"%0A",'"':"%22"})[r])}},fR=i((e,t,r)=>{let{tag:n="form-data-boundary",size:o=25,boundary:a=n+"-"+Ve.generateString(o,cR)}=r||{};if(!k.isFormData(e))throw TypeError("FormData instance required");if(a.length<1||a.length>70)throw Error("boundary must be 1-70 characters long");let s=Ai.encode("--"+a+en),u=Ai.encode("--"+a+"--"+en),l=u.byteLength,p=Array.from(e.entries()).map(([m,f])=>{let d=new Du(m,f);return l+=d.size,d});l+=s.byteLength*p.length,l=k.toFiniteNumber(l);let c={"Content-Type":`multipart/form-data; boundary=${a}`};return Number.isFinite(l)&&(c["Content-Length"]=l),t&&t(c),Pt.Readable.from(async function*(){for(let m of p)yield s,yield*m.encode();yield u}())},"formDataToStream"),Nu=class extends Pt.Transform{static{i(this,"ZlibHeaderTransformStream")}__transform(t,r,n){this.push(t),n()}_transform(t,r,n){if(t.length!==0&&(this._transform=this.__transform,t[0]!==120)){let o=Buffer.alloc(2);o[0]=120,o[1]=156,this.push(o,r)}this.__transform(t,r,n)}},mR=i((e,t)=>k.isAsyncFn(e)?function(...r){let n=r.pop();e.apply(this,r).then(o=>{try{t?n(null,...t(o)):n(null,o)}catch(a){n(a)}},n)}:e,"callbackify"),hR=new Set(["localhost"]),rg=i(e=>{let t=e.split(".");return t.length!==4||t[0]!=="127"?!1:t.every(r=>/^\d+$/.test(r)&&Number(r)>=0&&Number(r)<=255)},"isIPv4Loopback"),gR=i(e=>{if(e==="::1")return!0;let t=e.match(/^::ffff:(\d+\.\d+\.\d+\.\d+)$/i);if(t)return rg(t[1]);let r=e.match(/^::ffff:([0-9a-f]{1,4}):([0-9a-f]{1,4})$/i);if(r){let o=parseInt(r[1],16);return o>=32512&&o<=32767}let n=e.split(":");if(n.length===8){for(let o=0;o<7;o++)if(!/^0+$/.test(n[o]))return!1;return/^0*1$/.test(n[7])}return!1},"isIPv6Loopback"),Ph=i(e=>e?hR.has(e)||rg(e)?!0:gR(e):!1,"isLoopback"),yR={http:80,https:443,ws:80,wss:443,ftp:21},vR=i(e=>{let t=e,r=0;if(t.charAt(0)==="["){let a=t.indexOf("]");if(a!==-1){let s=t.slice(1,a),u=t.slice(a+1);return u.charAt(0)===":"&&/^\d+$/.test(u.slice(1))&&(r=Number.parseInt(u.slice(1),10)),[s,r]}}let n=t.indexOf(":"),o=t.lastIndexOf(":");return n!==-1&&n===o&&/^\d+$/.test(t.slice(o+1))&&(r=Number.parseInt(t.slice(o+1),10),t=t.slice(0,o)),[t,r]},"parseNoProxyEntry"),xR=/^(?:::|(?:0{1,4}:){1,4}:|(?:0{1,4}:){5})ffff:(\d+\.\d+\.\d+\.\d+)$/i,bR=/^(?:::|(?:0{1,4}:){1,4}:|(?:0{1,4}:){5})ffff:([0-9a-f]{1,4}):([0-9a-f]{1,4})$/i,_R=i(e=>{if(typeof e!="string"||e.indexOf(":")===-1)return e;let t=e.match(xR);if(t)return t[1];let r=e.match(bR);if(r){let n=parseInt(r[1],16),o=parseInt(r[2],16);return`${n>>8}.${n&255}.${o>>8}.${o&255}`}return e},"unmapIPv4MappedIPv6"),wh=i(e=>e&&(e.charAt(0)==="["&&e.charAt(e.length-1)==="]"&&(e=e.slice(1,-1)),_R(e.replace(/\.+$/,""))),"normalizeNoProxyHost");function PR(e){let t;try{t=new URL(e)}catch{return!1}let r=(process.env.no_proxy||process.env.NO_PROXY||"").toLowerCase();if(!r)return!1;if(r==="*")return!0;let n=Number.parseInt(t.port,10)||yR[t.protocol.split(":",1)[0]]||0,o=wh(t.hostname.toLowerCase());return r.split(/[\s,]+/).some(a=>{if(!a)return!1;let[s,u]=vR(a);return s=wh(s),!s||u&&u!==n?!1:(s.charAt(0)==="*"&&(s=s.slice(1)),s.charAt(0)==="."?o.endsWith(s):o===s||Ph(o)&&Ph(s))})}i(PR,"shouldBypassProxy");function wR(e,t){e=e||10;let r=new Array(e),n=new Array(e),o=0,a=0,s;return t=t!==void 0?t:1e3,i(function(l){let p=Date.now(),c=n[a];s||(s=p),r[o]=l,n[o]=p;let m=a,f=0;for(;m!==o;)f+=r[m++],m=m%e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),p-s<t)return;let d=c&&p-c;return d?Math.round(f*1e3/d):void 0},"push")}i(wR,"speedometer");function ER(e,t){let r=0,n=1e3/t,o,a,s=i((p,c=Date.now())=>{r=c,o=null,a&&(clearTimeout(a),a=null),e(...p)},"invoke");return[i((...p)=>{let c=Date.now(),m=c-r;m>=n?s(p,c):(o=p,a||(a=setTimeout(()=>{a=null,s(o)},n-m)))},"throttled"),i(()=>o&&s(o),"flush")]}i(ER,"throttle");var In=i((e,t,r=3)=>{let n=0,o=wR(50,250);return ER(a=>{let s=a.loaded,u=a.lengthComputable?a.total:void 0,l=u!=null?Math.min(s,u):s,p=Math.max(0,l-n),c=o(p);n=Math.max(n,l);let m={loaded:l,total:u,progress:u?l/u:void 0,bytes:p,rate:c||void 0,estimated:c&&u?(u-l)/c:void 0,event:a,lengthComputable:u!=null,[t?"download":"upload"]:!0};e(m)},r)},"progressEventReducer"),jo=i((e,t)=>{let r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},"progressEventDecorator"),Vo=i(e=>(...t)=>k.asap(()=>e(...t)),"asyncDecorator");function ng(e){if(!e||typeof e!="string"||!e.startsWith("data:"))return 0;let t=e.indexOf(",");if(t<0)return 0;let r=e.slice(5,t),n=e.slice(t+1);if(/;base64/i.test(r)){let s=n.length,u=n.length;for(let d=0;d<u;d++)if(n.charCodeAt(d)===37&&d+2<u){let h=n.charCodeAt(d+1),x=n.charCodeAt(d+2);(h>=48&&h<=57||h>=65&&h<=70||h>=97&&h<=102)&&(x>=48&&x<=57||x>=65&&x<=70||x>=97&&x<=102)&&(s-=2,d+=2)}let l=0,p=u-1,c=i(d=>d>=2&&n.charCodeAt(d-2)===37&&n.charCodeAt(d-1)===51&&(n.charCodeAt(d)===68||n.charCodeAt(d)===100),"tailIsPct3D");p>=0&&(n.charCodeAt(p)===61?(l++,p--):c(p)&&(l++,p-=3)),l===1&&p>=0&&(n.charCodeAt(p)===61||c(p))&&l++;let f=Math.floor(s/4)*3-(l||0);return f>0?f:0}if(typeof Buffer<"u"&&typeof Buffer.byteLength=="function")return Buffer.byteLength(n,"utf8");let a=0;for(let s=0,u=n.length;s<u;s++){let l=n.charCodeAt(s);if(l<128)a+=1;else if(l<2048)a+=2;else if(l>=55296&&l<=56319&&s+1<u){let p=n.charCodeAt(s+1);p>=56320&&p<=57343?(a+=4,s++):a+=3}else a+=3}return a}i(ng,"estimateDataURLDecodedBytes");var Eh={flush:Dr.constants.Z_SYNC_FLUSH,finishFlush:Dr.constants.Z_SYNC_FLUSH},kR={flush:Dr.constants.BROTLI_OPERATION_FLUSH,finishFlush:Dr.constants.BROTLI_OPERATION_FLUSH},kh=k.isFunction(Dr.createBrotliDecompress),{http:TR,https:SR}=qz,AR=/https:?/,IR=["content-type","content-length"];function OR(e,t,r){if(r!=="content-only"){e.set(t);return}Object.entries(t).forEach(([n,o])=>{IR.includes(n.toLowerCase())&&e.set(n,o)})}i(OR,"setFormDataHeaders$1");var Th=Symbol("axios.http.socketListener"),No=Symbol("axios.http.currentReq"),Sh=Ve.protocols.map(e=>e+":"),Ah=i(e=>{if(!k.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},"decodeURIComponentSafe"),Ih=i((e,[t,r])=>(e.on("end",r).on("error",r),t),"flushOnFinish"),Uu=class{static{i(this,"Http2Sessions")}constructor(){this.sessions=Object.create(null)}getSession(t,r){r=Object.assign({sessionTimeout:1e3},r);let n=this.sessions[t];if(n){let c=n.length;for(let m=0;m<c;m++){let[f,d]=n[m];if(!f.destroyed&&!f.closed&&qu.isDeepStrictEqual(d,r))return f}}let o=Mh.connect(t,r),a,s=i(()=>{if(a)return;a=!0;let c=n,m=c.length,f=m;for(;f--;)if(c[f][0]===o){m===1?delete this.sessions[t]:c.splice(f,1),o.closed||o.close();return}},"removeSession"),u=o.request,{sessionTimeout:l}=r;if(l!=null){let c,m=0;o.request=function(){let f=u.apply(this,arguments);return m++,c&&(clearTimeout(c),c=null),f.once("close",()=>{--m||(c=setTimeout(()=>{c=null,s()},l))}),f}}o.once("close",s);let p=[o,r];return n?n.push(p):n=this.sessions[t]=[p],o}},CR=new Uu;function zR(e,t,r){e.beforeRedirects.proxy&&e.beforeRedirects.proxy(e),e.beforeRedirects.config&&e.beforeRedirects.config(e,t,r)}i(zR,"dispatchBeforeRedirect");function ig(e,t,r,n){let o=t;if(!o&&o!==!1){let a=aR(r);a&&(PR(r)||(o=new URL(a)))}if(n&&e.headers)for(let a of Object.keys(e.headers))a.toLowerCase()==="proxy-authorization"&&delete e.headers[a];if(o){let a=o instanceof URL,s=i(d=>a||k.hasOwnProp(o,d)?o[d]:void 0,"readProxyField"),u=s("username"),l=s("password"),p=k.hasOwnProp(o,"auth")?o.auth:void 0;if(u&&(p=(u||"")+":"+(l||"")),p){let d=typeof p=="object",h=d&&k.hasOwnProp(p,"username")?p.username:void 0,x=d&&k.hasOwnProp(p,"password")?p.password:void 0;if(!!(h||x))p=(h||"")+":"+(x||"");else if(d)throw new $("Invalid proxy authorization",$.ERR_BAD_OPTION,{proxy:o});let v=Buffer.from(p,"utf8").toString("base64");e.headers["Proxy-Authorization"]="Basic "+v}let c=!1;for(let d of Object.keys(e.headers))if(d.toLowerCase()==="host"){c=!0;break}c||(e.headers.host=e.hostname+(e.port?":"+e.port:""));let m=s("hostname")||s("host");e.hostname=m,e.host=m,e.port=s("port"),e.path=r;let f=s("protocol");f&&(e.protocol=f.includes(":")?f:`${f}:`)}e.beforeRedirects.proxy=i(function(s){ig(s,t,s.href,!0)},"beforeRedirect")}i(ig,"setProxy");var $R=typeof process<"u"&&k.kindOf(process)==="process",RR=i(e=>new Promise((t,r)=>{let n,o,a=i((l,p)=>{o||(o=!0,n&&n(l,p))},"done"),s=i(l=>{a(l),t(l)},"_resolve"),u=i(l=>{a(l,!0),r(l)},"_reject");e(s,u,l=>n=l).catch(u)}),"wrapAsync"),DR=i(({address:e,family:t})=>{if(!k.isString(e))throw TypeError("address must be a string");return{address:e,family:t||(e.indexOf(".")<0?6:4)}},"resolveFamily"),Oh=i((e,t)=>DR(k.isObject(e)?e:{address:e,family:t}),"buildAddressEntry"),NR={request(e,t){let r=e.protocol+"//"+e.hostname+":"+(e.port||(e.protocol==="https:"?443:80)),{http2Options:n,headers:o}=e,a=CR.getSession(r,n),{HTTP2_HEADER_SCHEME:s,HTTP2_HEADER_METHOD:u,HTTP2_HEADER_PATH:l,HTTP2_HEADER_STATUS:p}=Mh.constants,c={[s]:e.protocol.replace(":",""),[u]:e.method,[l]:e.path};k.forEach(o,(f,d)=>{d.charAt(0)!==":"&&(c[d]=f)});let m=a.request(c);return m.once("response",f=>{let d=m;f=Object.assign({},f);let h=f[p];delete f[p],d.headers=f,d.statusCode=+h,t(d)}),m}},UR=$R&&i(function(t){return RR(i(async function(n,o,a){let s=i(F=>k.hasOwnProp(t,F)?t[F]:void 0,"own"),u=s("data"),l=s("lookup"),p=s("family"),c=s("httpVersion");c===void 0&&(c=1);let m=s("http2Options"),f=s("responseType"),d=s("responseEncoding"),h=t.method.toUpperCase(),x,y=!1,v,P;if(c=+c,Number.isNaN(c))throw TypeError(`Invalid protocol version: '${t.httpVersion}' is not a number`);if(c!==1&&c!==2)throw TypeError(`Unsupported protocol version '${c}'`);let w=c===2;if(l){let F=mR(l,U=>k.isArray(U)?U:[U]);l=i((U,Z,Oe)=>{F(U,Z,(ge,We,pt)=>{if(ge)return Oe(ge);let Ce=k.isArray(We)?We.map(vt=>Oh(vt)):[Oh(We,pt)];Z.all?Oe(ge,Ce):Oe(ge,Ce[0].address,Ce[0].family)})},"lookup")}let I=new Fz.EventEmitter;function N(F){try{I.emit("abort",!F||F.type?new xr(null,t,v):F)}catch(U){console.warn("emit error",U)}}i(N,"abort");function D(){P&&(clearTimeout(P),P=null)}i(D,"clearConnectPhaseTimer");function B(){let F=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded",U=t.transitional||Jo;return t.timeoutErrorMessage&&(F=t.timeoutErrorMessage),new $(F,U.clarifyTimeoutError?$.ETIMEDOUT:$.ECONNABORTED,t,v)}i(B,"createTimeoutError"),I.once("abort",o);let W=i(()=>{D(),t.cancelToken&&t.cancelToken.unsubscribe(N),t.signal&&t.signal.removeEventListener("abort",N),I.removeAllListeners()},"onFinished");(t.cancelToken||t.signal)&&(t.cancelToken&&t.cancelToken.subscribe(N),t.signal&&(t.signal.aborted?N():t.signal.addEventListener("abort",N))),a((F,U)=>{if(x=!0,D(),U){y=!0,W();return}let{data:Z}=F;if(Z instanceof Pt.Readable||Z instanceof Pt.Duplex){let Oe=Pt.finished(Z,()=>{Oe(),W()})}else W()});let G=ju(t.baseURL,t.url,t.allowAbsoluteUrls),M=new URL(G,Ve.hasBrowserEnv?Ve.origin:void 0),z=M.protocol||Sh[0];if(z==="data:"){if(t.maxContentLength>-1){let U=String(t.url||G||"");if(ng(U)>t.maxContentLength)return o(new $("maxContentLength size of "+t.maxContentLength+" exceeded",$.ERR_BAD_RESPONSE,t))}let F;if(h!=="GET")return Sn(n,o,{status:405,statusText:"method not allowed",headers:{},config:t});try{F=lR(t.url,f==="blob",{Blob:t.env&&t.env.Blob})}catch(U){throw $.from(U,$.ERR_BAD_REQUEST,t)}return f==="text"?(F=F.toString(d),(!d||d==="utf8")&&(F=k.stripBOM(F))):f==="stream"&&(F=Pt.Readable.from(F)),Sn(n,o,{data:F,status:200,statusText:"OK",headers:new tt,config:t})}if(Sh.indexOf(z)===-1)return o(new $("Unsupported protocol "+z,$.ERR_BAD_REQUEST,t));let L=tt.from(t.headers).normalize();L.set("User-Agent","axios/"+Si,!1);let{onUploadProgress:ae,onDownloadProgress:se}=t,xe=t.maxRate,De,T;if(k.isSpecCompliantForm(u)){let F=L.getContentType(/boundary=([-_\w\d]{10,70})/i);u=fR(u,U=>{L.set(U)},{tag:`axios-${Si}-boundary`,boundary:F&&F[1]||void 0})}else if(k.isFormData(u)&&k.isFunction(u.getHeaders)&&u.getHeaders!==Object.prototype.getHeaders){if(OR(L,u.getHeaders(),s("formDataHeaderPolicy")),!L.hasContentLength())try{let F=await qu.promisify(u.getLength).call(u);Number.isFinite(F)&&F>=0&&L.setContentLength(F)}catch{}}else if(k.isBlob(u)||k.isFile(u))u.size&&L.setContentType(u.type||"application/octet-stream"),L.setContentLength(u.size||0),u=Pt.Readable.from(tg(u));else if(u&&!k.isStream(u)){if(!Buffer.isBuffer(u))if(k.isArrayBuffer(u))u=Buffer.from(new Uint8Array(u));else if(k.isString(u))u=Buffer.from(u,"utf-8");else return o(new $("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",$.ERR_BAD_REQUEST,t));if(L.setContentLength(u.length,!1),t.maxBodyLength>-1&&u.length>t.maxBodyLength)return o(new $("Request body larger than maxBodyLength limit",$.ERR_BAD_REQUEST,t))}let ke=k.toFiniteNumber(L.getContentLength());k.isArray(xe)?(De=xe[0],T=xe[1]):De=T=xe,u&&(ae||De)&&(k.isStream(u)||(u=Pt.Readable.from(u,{objectMode:!1})),u=Pt.pipeline([u,new Bo({maxRate:k.toFiniteNumber(De)})],k.noop),ae&&u.on("progress",Ih(u,jo(ke,In(Vo(ae),!1,3)))));let Ze,be=s("auth");if(be){let F=be.username||"",U=be.password||"";Ze=F+":"+U}if(!Ze&&M.username){let F=Ah(M.username),U=Ah(M.password);Ze=F+":"+U}Ze&&L.delete("authorization");let g;try{g=Fu(M.pathname+M.search,t.params,t.paramsSerializer).replace(/^\?/,"")}catch(F){let U=new Error(F.message);return U.config=t,U.url=t.url,U.exists=!0,o(U)}L.set("Accept-Encoding","gzip, compress, deflate"+(kh?", br":""),!1);let Te=Object.assign(Object.create(null),{path:g,method:h,headers:L.toJSON(),agents:{http:t.httpAgent,https:t.httpsAgent},auth:Ze,protocol:z,family:p,beforeRedirect:zR,beforeRedirects:Object.create(null),http2Options:m});if(!k.isUndefined(l)&&(Te.lookup=l),t.socketPath){if(typeof t.socketPath!="string")return o(new $("socketPath must be a string",$.ERR_BAD_OPTION_VALUE,t));if(t.allowedSocketPaths!=null){let F=Array.isArray(t.allowedSocketPaths)?t.allowedSocketPaths:[t.allowedSocketPaths],U=hh.resolve(t.socketPath);if(!F.some(Oe=>typeof Oe=="string"&&hh.resolve(Oe)===U))return o(new $(`socketPath "${t.socketPath}" is not permitted by allowedSocketPaths`,$.ERR_BAD_OPTION_VALUE,t))}Te.socketPath=t.socketPath}else Te.hostname=M.hostname.startsWith("[")?M.hostname.slice(1,-1):M.hostname,Te.port=M.port,ig(Te,t.proxy,z+"//"+M.hostname+(M.port?":"+M.port:"")+Te.path);let It,Ne=!1,lt=AR.test(Te.protocol);if(Te.agent=lt?t.httpsAgent:t.httpAgent,w)It=NR;else{let F=s("transport");if(F)It=F;else if(t.maxRedirects===0)It=lt?Mz:Lz,Ne=!0;else{t.maxRedirects&&(Te.maxRedirects=t.maxRedirects);let U=s("beforeRedirect");U&&(Te.beforeRedirects.config=U),It=lt?SR:TR}}t.maxBodyLength>-1?Te.maxBodyLength=t.maxBodyLength:Te.maxBodyLength=1/0,Te.insecureHTTPParser=!!s("insecureHTTPParser"),v=It.request(Te,i(function(U){if(D(),v.destroyed)return;let Z=[U],Oe=k.toFiniteNumber(U.headers["content-length"]);if(se||T){let Ce=new Bo({maxRate:k.toFiniteNumber(T)});se&&Ce.on("progress",Ih(Ce,jo(Oe,In(Vo(se),!0,3)))),Z.push(Ce)}let ge=U,We=U.req||v;if(t.decompress!==!1&&U.headers["content-encoding"])switch((h==="HEAD"||U.statusCode===204)&&delete U.headers["content-encoding"],(U.headers["content-encoding"]||"").toLowerCase()){case"gzip":case"x-gzip":case"compress":case"x-compress":Z.push(Dr.createUnzip(Eh)),delete U.headers["content-encoding"];break;case"deflate":Z.push(new Nu),Z.push(Dr.createUnzip(Eh)),delete U.headers["content-encoding"];break;case"br":kh&&(Z.push(Dr.createBrotliDecompress(kR)),delete U.headers["content-encoding"])}ge=Z.length>1?Pt.pipeline(Z,k.noop):Z[0];let pt={status:U.statusCode,statusText:U.statusMessage,headers:new tt(U.headers),config:t,request:We};if(f==="stream"){if(t.maxContentLength>-1){let Ce=t.maxContentLength,vt=ge;async function*Fr(){let Ye=0;for await(let Kn of vt){if(Ye+=Kn.length,Ye>Ce)throw new $("maxContentLength size of "+Ce+" exceeded",$.ERR_BAD_RESPONSE,t,We);yield Kn}}i(Fr,"enforceMaxContentLength"),ge=Pt.Readable.from(Fr(),{objectMode:!1})}pt.data=ge,Sn(n,o,pt)}else{let Ce=[],vt=0;ge.on("data",i(function(Ye){Ce.push(Ye),vt+=Ye.length,t.maxContentLength>-1&&vt>t.maxContentLength&&(y=!0,ge.destroy(),N(new $("maxContentLength size of "+t.maxContentLength+" exceeded",$.ERR_BAD_RESPONSE,t,We)))},"handleStreamData")),ge.on("aborted",i(function(){if(y)return;let Ye=new $("stream has been aborted",$.ERR_BAD_RESPONSE,t,We,pt);ge.destroy(Ye),o(Ye)},"handlerStreamAborted")),ge.on("error",i(function(Ye){y||o($.from(Ye,null,t,We,pt))},"handleStreamError")),ge.on("end",i(function(){try{let Ye=Ce.length===1?Ce[0]:Buffer.concat(Ce);f!=="arraybuffer"&&(Ye=Ye.toString(d),(!d||d==="utf8")&&(Ye=k.stripBOM(Ye))),pt.data=Ye}catch(Ye){return o($.from(Ye,null,t,pt.request,pt))}Sn(n,o,pt)},"handleStreamEnd"))}I.once("abort",Ce=>{ge.destroyed||(ge.emit("error",Ce),ge.destroy())})},"handleResponse")),I.once("abort",F=>{v.close?v.close():v.destroy(F)}),v.on("error",i(function(U){o($.from(U,null,t,v))},"handleRequestError"));let fe=new Set;if(v.on("socket",i(function(U){U.setKeepAlive(!0,1e3*60),U[Th]||(U.on("error",i(function(Oe){let ge=U[No];ge&&!ge.destroyed&&ge.destroy(Oe)},"handleSocketError")),U[Th]=!0),U[No]=v,fe.add(U)},"handleRequestSocket")),v.once("close",i(function(){D();for(let U of fe)U[No]===v&&(U[No]=null);fe.clear()},"clearCurrentReq")),t.timeout){let F=parseInt(t.timeout,10);if(Number.isNaN(F)){N(new $("error trying to parse `config.timeout` to int",$.ERR_BAD_OPTION_VALUE,t,v));return}let U=i(function(){x||N(B())},"handleTimeout");Ne&&F>0&&(P=setTimeout(U,F)),v.setTimeout(F,U)}else v.setTimeout(0);if(k.isStream(u)){let F=!1,U=!1;u.on("end",()=>{F=!0}),u.once("error",Oe=>{U=!0,v.destroy(Oe)}),u.on("close",()=>{!F&&!U&&N(new xr("Request stream has been aborted",t,v))});let Z=u;if(t.maxBodyLength>-1&&t.maxRedirects===0){let Oe=t.maxBodyLength,ge=0;Z=Pt.pipeline([u,new Pt.Transform({transform(We,pt,Ce){if(ge+=We.length,ge>Oe)return Ce(new $("Request body larger than maxBodyLength limit",$.ERR_BAD_REQUEST,t,v));Ce(null,We)}})],k.noop),Z.on("error",We=>{v.destroyed||v.destroy(We)})}Z.pipe(v)}else u&&v.write(u),v.end()},"dispatchHttpRequest"))},"httpAdapter"),LR=Ve.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,Ve.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(Ve.origin),Ve.navigator&&/(msie|trident)/i.test(Ve.navigator.userAgent)):()=>!0,MR=Ve.hasStandardBrowserEnv?{write(e,t,r,n,o,a,s){if(typeof document>"u")return;let u=[`${e}=${encodeURIComponent(t)}`];k.isNumber(r)&&u.push(`expires=${new Date(r).toUTCString()}`),k.isString(n)&&u.push(`path=${n}`),k.isString(o)&&u.push(`domain=${o}`),a===!0&&u.push("secure"),k.isString(s)&&u.push(`SameSite=${s}`),document.cookie=u.join("; ")},read(e){if(typeof document>"u")return null;let t=document.cookie.split(";");for(let r=0;r<t.length;r++){let n=t[r].replace(/^\s+/,""),o=n.indexOf("=");if(o!==-1&&n.slice(0,o)===e)return decodeURIComponent(n.slice(o+1))}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}},Ch=i(e=>e instanceof tt?{...e}:e,"headersToObject");function tn(e,t){t=t||{};let r=Object.create(null);Object.defineProperty(r,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function n(p,c,m,f){return k.isPlainObject(p)&&k.isPlainObject(c)?k.merge.call({caseless:f},p,c):k.isPlainObject(c)?k.merge({},c):k.isArray(c)?c.slice():c}i(n,"getMergedValue");function o(p,c,m,f){if(k.isUndefined(c)){if(!k.isUndefined(p))return n(void 0,p,m,f)}else return n(p,c,m,f)}i(o,"mergeDeepProperties");function a(p,c){if(!k.isUndefined(c))return n(void 0,c)}i(a,"valueFromConfig2");function s(p,c){if(k.isUndefined(c)){if(!k.isUndefined(p))return n(void 0,p)}else return n(void 0,c)}i(s,"defaultToConfig2");function u(p,c,m){if(k.hasOwnProp(t,m))return n(p,c);if(k.hasOwnProp(e,m))return n(void 0,p)}i(u,"mergeDirectKeys");let l={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,allowedSocketPaths:s,responseEncoding:s,validateStatus:u,headers:i((p,c,m)=>o(Ch(p),Ch(c),m,!0),"headers")};return k.forEach(Object.keys({...e,...t}),i(function(c){if(c==="__proto__"||c==="constructor"||c==="prototype")return;let m=k.hasOwnProp(l,c)?l[c]:o,f=k.hasOwnProp(e,c)?e[c]:void 0,d=k.hasOwnProp(t,c)?t[c]:void 0,h=m(f,d,c);k.isUndefined(h)&&m!==u||(r[c]=h)},"computeConfigValue")),r}i(tn,"mergeConfig");var qR=["content-type","content-length"];function FR(e,t,r){if(r!=="content-only"){e.set(t);return}Object.entries(t).forEach(([n,o])=>{qR.includes(n.toLowerCase())&&e.set(n,o)})}i(FR,"setFormDataHeaders");var BR=i(e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,r)=>String.fromCharCode(parseInt(r,16))),"encodeUTF8"),og=i(e=>{let t=tn({},e),r=i(f=>k.hasOwnProp(t,f)?t[f]:void 0,"own"),n=r("data"),o=r("withXSRFToken"),a=r("xsrfHeaderName"),s=r("xsrfCookieName"),u=r("headers"),l=r("auth"),p=r("baseURL"),c=r("allowAbsoluteUrls"),m=r("url");if(t.headers=u=tt.from(u),t.url=Fu(ju(p,m,c),e.params,e.paramsSerializer),l&&u.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?BR(l.password):""))),k.isFormData(n)&&(Ve.hasStandardBrowserEnv||Ve.hasStandardBrowserWebWorkerEnv?u.setContentType(void 0):k.isFunction(n.getHeaders)&&FR(u,n.getHeaders(),r("formDataHeaderPolicy"))),Ve.hasStandardBrowserEnv&&(k.isFunction(o)&&(o=o(t)),o===!0||o==null&&LR(t.url))){let d=a&&s&&MR.read(s);d&&u.set(a,d)}return t},"resolveConfig"),jR=typeof XMLHttpRequest<"u",VR=jR&&function(e){return new Promise(i(function(r,n){let o=og(e),a=o.data,s=tt.from(o.headers).normalize(),{responseType:u,onUploadProgress:l,onDownloadProgress:p}=o,c,m,f,d,h;function x(){d&&d(),h&&h(),o.cancelToken&&o.cancelToken.unsubscribe(c),o.signal&&o.signal.removeEventListener("abort",c)}i(x,"done");let y=new XMLHttpRequest;y.open(o.method.toUpperCase(),o.url,!0),y.timeout=o.timeout;function v(){if(!y)return;let w=tt.from("getAllResponseHeaders"in y&&y.getAllResponseHeaders()),N={data:!u||u==="text"||u==="json"?y.responseText:y.response,status:y.status,statusText:y.statusText,headers:w,config:e,request:y};Sn(i(function(B){r(B),x()},"_resolve"),i(function(B){n(B),x()},"_reject"),N),y=null}i(v,"onloadend"),"onloadend"in y?y.onloadend=v:y.onreadystatechange=i(function(){!y||y.readyState!==4||y.status===0&&!(y.responseURL&&y.responseURL.startsWith("file:"))||setTimeout(v)},"handleLoad"),y.onabort=i(function(){y&&(n(new $("Request aborted",$.ECONNABORTED,e,y)),x(),y=null)},"handleAbort"),y.onerror=i(function(I){let N=I&&I.message?I.message:"Network Error",D=new $(N,$.ERR_NETWORK,e,y);D.event=I||null,n(D),x(),y=null},"handleError"),y.ontimeout=i(function(){let I=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded",N=o.transitional||Jo;o.timeoutErrorMessage&&(I=o.timeoutErrorMessage),n(new $(I,N.clarifyTimeoutError?$.ETIMEDOUT:$.ECONNABORTED,e,y)),x(),y=null},"handleTimeout"),a===void 0&&s.setContentType(null),"setRequestHeader"in y&&k.forEach(s.toJSON(),i(function(I,N){y.setRequestHeader(N,I)},"setRequestHeader")),k.isUndefined(o.withCredentials)||(y.withCredentials=!!o.withCredentials),u&&u!=="json"&&(y.responseType=o.responseType),p&&([f,h]=In(p,!0),y.addEventListener("progress",f)),l&&y.upload&&([m,d]=In(l),y.upload.addEventListener("progress",m),y.upload.addEventListener("loadend",d)),(o.cancelToken||o.signal)&&(c=i(w=>{y&&(n(!w||w.type?new xr(null,e,y):w),y.abort(),x(),y=null)},"onCanceled"),o.cancelToken&&o.cancelToken.subscribe(c),o.signal&&(o.signal.aborted?c():o.signal.addEventListener("abort",c)));let P=eg(o.url);if(P&&!Ve.protocols.includes(P)){n(new $("Unsupported protocol "+P+":",$.ERR_BAD_REQUEST,e));return}y.send(a||null)},"dispatchXhrRequest"))},HR=i((e,t)=>{let{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,o,a=i(function(p){if(!o){o=!0,u();let c=p instanceof Error?p:this.reason;n.abort(c instanceof $?c:new xr(c instanceof Error?c.message:c))}},"onabort"),s=t&&setTimeout(()=>{s=null,a(new $(`timeout of ${t}ms exceeded`,$.ETIMEDOUT))},t),u=i(()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(p=>{p.unsubscribe?p.unsubscribe(a):p.removeEventListener("abort",a)}),e=null)},"unsubscribe");e.forEach(p=>p.addEventListener("abort",a));let{signal:l}=n;return l.unsubscribe=()=>k.asap(u),l}},"composeSignals"),ZR=i(function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let n=0,o;for(;n<r;)o=n+t,yield e.slice(n,o),n=o},"streamChunk"),WR=i(async function*(e,t){for await(let r of GR(e))yield*ZR(r,t)},"readBytes"),GR=i(async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}let t=e.getReader();try{for(;;){let{done:r,value:n}=await t.read();if(r)break;yield n}}finally{await t.cancel()}},"readStream"),zh=i((e,t,r,n)=>{let o=WR(e,t),a=0,s,u=i(l=>{s||(s=!0,n&&n(l))},"_onFinish");return new ReadableStream({async pull(l){try{let{done:p,value:c}=await o.next();if(p){u(),l.close();return}let m=c.byteLength;if(r){let f=a+=m;r(f)}l.enqueue(new Uint8Array(c))}catch(p){throw u(p),p}},cancel(l){return u(l),o.return()}},{highWaterMark:2})},"trackStream"),$h=64*1024,{isFunction:Uo}=k,Rh=i((e,...t)=>{try{return!!e(...t)}catch{return!1}},"test"),KR=i(e=>{var t;let r=(t=k.global)!==null&&t!==void 0?t:globalThis,{ReadableStream:n,TextEncoder:o}=r;e=k.merge.call({skipUndefined:!0},{Request:r.Request,Response:r.Response},e);let{fetch:a,Request:s,Response:u}=e,l=a?Uo(a):typeof fetch=="function",p=Uo(s),c=Uo(u);if(!l)return!1;let m=l&&Uo(n),f=l&&(typeof o=="function"?(P=>w=>P.encode(w))(new o):async P=>new Uint8Array(await new s(P).arrayBuffer())),d=p&&m&&Rh(()=>{let P=!1,w=new s(Ve.origin,{body:new n,method:"POST",get duplex(){return P=!0,"half"}}),I=w.headers.has("Content-Type");return w.body!=null&&w.body.cancel(),P&&!I}),h=c&&m&&Rh(()=>k.isReadableStream(new u("").body)),x={stream:h&&(P=>P.body)};l&&["text","arrayBuffer","blob","formData","stream"].forEach(P=>{!x[P]&&(x[P]=(w,I)=>{let N=w&&w[P];if(N)return N.call(w);throw new $(`Response type '${P}' is not supported`,$.ERR_NOT_SUPPORT,I)})});let y=i(async P=>{if(P==null)return 0;if(k.isBlob(P))return P.size;if(k.isSpecCompliantForm(P))return(await new s(Ve.origin,{method:"POST",body:P}).arrayBuffer()).byteLength;if(k.isArrayBufferView(P)||k.isArrayBuffer(P))return P.byteLength;if(k.isURLSearchParams(P)&&(P=P+""),k.isString(P))return(await f(P)).byteLength},"getBodyLength"),v=i(async(P,w)=>{let I=k.toFiniteNumber(P.getContentLength());return I??y(w)},"resolveBodyLength");return async P=>{let{url:w,method:I,data:N,signal:D,cancelToken:B,timeout:W,onDownloadProgress:G,onUploadProgress:M,responseType:z,headers:L,withCredentials:ae="same-origin",fetchOptions:se,maxContentLength:xe,maxBodyLength:De}=og(P),T=k.isNumber(xe)&&xe>-1,ke=k.isNumber(De)&&De>-1,Ze=a||fetch;z=z?(z+"").toLowerCase():"text";let be=HR([D,B&&B.toAbortSignal()],W),g=null,Te=be&&be.unsubscribe&&(()=>{be.unsubscribe()}),It;try{if(T&&typeof w=="string"&&w.startsWith("data:")&&ng(w)>xe)throw new $("maxContentLength size of "+xe+" exceeded",$.ERR_BAD_RESPONSE,P,g);if(ke&&I!=="get"&&I!=="head"){let Z=await v(L,N);if(typeof Z=="number"&&isFinite(Z)&&Z>De)throw new $("Request body larger than maxBodyLength limit",$.ERR_BAD_REQUEST,P,g)}if(M&&d&&I!=="get"&&I!=="head"&&(It=await v(L,N))!==0){let Z=new s(w,{method:"POST",body:N,duplex:"half"}),Oe;if(k.isFormData(N)&&(Oe=Z.headers.get("content-type"))&&L.setContentType(Oe),Z.body){let[ge,We]=jo(It,In(Vo(M)));N=zh(Z.body,$h,ge,We)}}k.isString(ae)||(ae=ae?"include":"omit");let Ne=p&&"credentials"in s.prototype;if(k.isFormData(N)){let Z=L.getContentType();Z&&/^multipart\/form-data/i.test(Z)&&!/boundary=/i.test(Z)&&L.delete("content-type")}L.set("User-Agent","axios/"+Si,!1);let lt={...se,signal:be,method:I.toUpperCase(),headers:L.normalize().toJSON(),body:N,duplex:"half",credentials:Ne?ae:void 0};g=p&&new s(w,lt);let fe=await(p?Ze(g,se):Ze(w,lt));if(T){let Z=k.toFiniteNumber(fe.headers.get("content-length"));if(Z!=null&&Z>xe)throw new $("maxContentLength size of "+xe+" exceeded",$.ERR_BAD_RESPONSE,P,g)}let F=h&&(z==="stream"||z==="response");if(h&&fe.body&&(G||T||F&&Te)){let Z={};["status","statusText","headers"].forEach(vt=>{Z[vt]=fe[vt]});let Oe=k.toFiniteNumber(fe.headers.get("content-length")),[ge,We]=G&&jo(Oe,In(Vo(G),!0))||[],pt=0,Ce=i(vt=>{if(T&&(pt=vt,pt>xe))throw new $("maxContentLength size of "+xe+" exceeded",$.ERR_BAD_RESPONSE,P,g);ge&&ge(vt)},"onChunkProgress");fe=new u(zh(fe.body,$h,Ce,()=>{We&&We(),Te&&Te()}),Z)}z=z||"text";let U=await x[k.findKey(x,z)||"text"](fe,P);if(T&&!h&&!F){let Z;if(U!=null&&(typeof U.byteLength=="number"?Z=U.byteLength:typeof U.size=="number"?Z=U.size:typeof U=="string"&&(Z=typeof o=="function"?new o().encode(U).byteLength:U.length)),typeof Z=="number"&&Z>xe)throw new $("maxContentLength size of "+xe+" exceeded",$.ERR_BAD_RESPONSE,P,g)}return!F&&Te&&Te(),await new Promise((Z,Oe)=>{Sn(Z,Oe,{data:U,headers:tt.from(fe.headers),status:fe.status,statusText:fe.statusText,config:P,request:g})})}catch(Ne){if(Te&&Te(),be&&be.aborted&&be.reason instanceof $){let lt=be.reason;throw lt.config=P,g&&(lt.request=g),Ne!==lt&&(lt.cause=Ne),lt}throw Ne&&Ne.name==="TypeError"&&/Load failed|fetch/i.test(Ne.message)?Object.assign(new $("Network Error",$.ERR_NETWORK,P,g,Ne&&Ne.response),{cause:Ne.cause||Ne}):$.from(Ne,Ne&&Ne.code,P,g,Ne&&Ne.response)}}},"factory"),JR=new Map,ag=i(e=>{let t=e&&e.env||{},{fetch:r,Request:n,Response:o}=t,a=[n,o,r],s=a.length,u=s,l,p,c=JR;for(;u--;)l=a[u],p=c.get(l),p===void 0&&c.set(l,p=u?new Map:KR(t)),c=p;return p},"getFetch");ag();var Vu={http:UR,xhr:VR,fetch:{get:ag}};k.forEach(Vu,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});var Dh=i(e=>`- ${e}`,"renderReason"),XR=i(e=>k.isFunction(e)||e===null||e===!1,"isResolvedHandle");function YR(e,t){e=k.isArray(e)?e:[e];let{length:r}=e,n,o,a={};for(let s=0;s<r;s++){n=e[s];let u;if(o=n,!XR(n)&&(o=Vu[(u=String(n)).toLowerCase()],o===void 0))throw new $(`Unknown adapter '${u}'`);if(o&&(k.isFunction(o)||(o=o.get(t))))break;a[u||"#"+s]=o}if(!o){let s=Object.entries(a).map(([l,p])=>`adapter ${l} `+(p===!1?"is not supported by the environment":"is not available in the build")),u=r?s.length>1?`since :
|
|
10
|
+
`+s.map(Dh).join(`
|
|
11
|
+
`):" "+Dh(s[0]):"as no adapter specified";throw new $("There is no suitable adapter to dispatch the request "+u,"ERR_NOT_SUPPORT")}return o}i(YR,"getAdapter");var sg={getAdapter:YR,adapters:Vu};function Iu(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new xr(null,e)}i(Iu,"throwIfCancellationRequested");function Nh(e){return Iu(e),e.headers=tt.from(e.headers),e.data=Su.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),sg.getAdapter(e.adapter||zi.adapter,e)(e).then(i(function(n){Iu(e),e.response=n;try{n.data=Su.call(e,e.transformResponse,n)}finally{delete e.response}return n.headers=tt.from(n.headers),n},"onAdapterResolution"),i(function(n){if(!Qh(n)&&(Iu(e),n&&n.response)){e.response=n.response;try{n.response.data=Su.call(e,e.transformResponse,n.response)}finally{delete e.response}n.response.headers=tt.from(n.response.headers)}return Promise.reject(n)},"onAdapterRejection"))}i(Nh,"dispatchRequest");var Xo={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Xo[e]=i(function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e},"validator")});var Uh={};Xo.transitional=i(function(t,r,n){function o(a,s){return"[Axios v"+Si+"] Transitional option '"+a+"'"+s+(n?". "+n:"")}return i(o,"formatMessage"),(a,s,u)=>{if(t===!1)throw new $(o(s," has been removed"+(r?" in "+r:"")),$.ERR_DEPRECATED);return r&&!Uh[s]&&(Uh[s]=!0,console.warn(o(s," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(a,s,u):!0}},"transitional");Xo.spelling=i(function(t){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)},"spelling");function QR(e,t,r){if(typeof e!="object")throw new $("options must be an object",$.ERR_BAD_OPTION_VALUE);let n=Object.keys(e),o=n.length;for(;o-- >0;){let a=n[o],s=Object.prototype.hasOwnProperty.call(t,a)?t[a]:void 0;if(s){let u=e[a],l=u===void 0||s(u,a,e);if(l!==!0)throw new $("option "+a+" must be "+l,$.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new $("Unknown option "+a,$.ERR_BAD_OPTION)}}i(QR,"assertOptions");var qo={assertOptions:QR,validators:Xo},Nt=qo.validators,vr=class{static{i(this,"Axios")}constructor(t){this.defaults=t||{},this.interceptors={request:new Fo,response:new Fo}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;let a=(()=>{if(!o.stack)return"";let s=o.stack.indexOf(`
|
|
12
|
+
`);return s===-1?"":o.stack.slice(s+1)})();try{if(!n.stack)n.stack=a;else if(a){let s=a.indexOf(`
|
|
13
|
+
`),u=s===-1?-1:a.indexOf(`
|
|
14
|
+
`,s+1),l=u===-1?"":a.slice(u+1);String(n.stack).endsWith(l)||(n.stack+=`
|
|
15
|
+
`+a)}}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=tn(this.defaults,r);let{transitional:n,paramsSerializer:o,headers:a}=r;n!==void 0&&qo.assertOptions(n,{silentJSONParsing:Nt.transitional(Nt.boolean),forcedJSONParsing:Nt.transitional(Nt.boolean),clarifyTimeoutError:Nt.transitional(Nt.boolean),legacyInterceptorReqResOrdering:Nt.transitional(Nt.boolean)},!1),o!=null&&(k.isFunction(o)?r.paramsSerializer={serialize:o}:qo.assertOptions(o,{encode:Nt.function,serialize:Nt.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),qo.assertOptions(r,{baseUrl:Nt.spelling("baseURL"),withXsrfToken:Nt.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let s=a&&k.merge(a.common,a[r.method]);a&&k.forEach(["delete","get","head","post","put","patch","query","common"],h=>{delete a[h]}),r.headers=tt.concat(s,a);let u=[],l=!0;this.interceptors.request.forEach(i(function(x){if(typeof x.runWhen=="function"&&x.runWhen(r)===!1)return;l=l&&x.synchronous;let y=r.transitional||Jo;y&&y.legacyInterceptorReqResOrdering?u.unshift(x.fulfilled,x.rejected):u.push(x.fulfilled,x.rejected)},"unshiftRequestInterceptors"));let p=[];this.interceptors.response.forEach(i(function(x){p.push(x.fulfilled,x.rejected)},"pushResponseInterceptors"));let c,m=0,f;if(!l){let h=[Nh.bind(this),void 0];for(h.unshift(...u),h.push(...p),f=h.length,c=Promise.resolve(r);m<f;)c=c.then(h[m++],h[m++]);return c}f=u.length;let d=r;for(;m<f;){let h=u[m++],x=u[m++];try{d=h(d)}catch(y){x.call(this,y);break}}try{c=Nh.call(this,d)}catch(h){return Promise.reject(h)}for(m=0,f=p.length;m<f;)c=c.then(p[m++],p[m++]);return c}getUri(t){t=tn(this.defaults,t);let r=ju(t.baseURL,t.url,t.allowAbsoluteUrls);return Fu(r,t.params,t.paramsSerializer)}};k.forEach(["delete","get","head","options"],i(function(t){vr.prototype[t]=function(r,n){return this.request(tn(n||{},{method:t,url:r,data:(n||{}).data}))}},"forEachMethodNoData"));k.forEach(["post","put","patch","query"],i(function(t){function r(n){return i(function(a,s,u){return this.request(tn(u||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:a,data:s}))},"httpMethod")}i(r,"generateHTTPMethod"),vr.prototype[t]=r(),t!=="query"&&(vr.prototype[t+"Form"]=r(!0))},"forEachMethodWithData"));var Lu=class e{static{i(this,"CancelToken")}constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(i(function(a){r=a},"promiseExecutor"));let n=this;this.promise.then(o=>{if(!n._listeners)return;let a=n._listeners.length;for(;a-- >0;)n._listeners[a](o);n._listeners=null}),this.promise.then=o=>{let a,s=new Promise(u=>{n.subscribe(u),a=u}).then(o);return s.cancel=i(function(){n.unsubscribe(a)},"reject"),s},t(i(function(a,s,u){n.reason||(n.reason=new xr(a,s,u),r(n.reason))},"cancel"))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;let r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){let t=new AbortController,r=i(n=>{t.abort(n)},"abort");return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new e(i(function(o){t=o},"executor")),cancel:t}}};function eD(e){return i(function(r){return e.apply(null,r)},"wrap")}i(eD,"spread");function tD(e){return k.isObject(e)&&e.isAxiosError===!0}i(tD,"isAxiosError");var Mu={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Mu).forEach(([e,t])=>{Mu[t]=e});function ug(e){let t=new vr(e),r=qh(vr.prototype.request,t);return k.extend(r,vr.prototype,t,{allOwnKeys:!0}),k.extend(r,t,null,{allOwnKeys:!0}),r.create=i(function(o){return ug(tn(e,o))},"create"),r}i(ug,"createInstance");var rt=ug(zi);rt.Axios=vr;rt.CanceledError=xr;rt.CancelToken=Lu;rt.isCancel=Qh;rt.VERSION=Si;rt.toFormData=Ko;rt.AxiosError=$;rt.Cancel=rt.CanceledError;rt.all=i(function(t){return Promise.all(t)},"all");rt.spread=eD;rt.isAxiosError=tD;rt.mergeConfig=tn;rt.AxiosHeaders=tt;rt.formToJSON=e=>Yh(k.isHTMLForm(e)?new FormData(e):e);rt.getAdapter=sg.getAdapter;rt.HttpStatusCode=Mu;rt.default=rt;lg.exports=rt});var dg=b((JQ,pg)=>{"use strict";pg.exports=function(e,t){return Object.keys(t).forEach(function(r){e[r]=e[r]||t[r]}),e}});var mg=b((XQ,fg)=>{"use strict";var Gu=Us(),rD=require("util"),Hu=require("path"),nD=require("http"),iD=require("https"),oD=require("url").parse,aD=require("fs"),sD=require("stream").Stream,uD=require("crypto"),Zu=Ls(),lD=Hs(),cD=tu(),Nr=Ao(),Wu=dg();function he(e){if(!(this instanceof he))return new he(e);this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],Gu.call(this),e=e||{};for(var t in e)this[t]=e[t]}i(he,"FormData");rD.inherits(he,Gu);he.LINE_BREAK=`\r
|
|
16
|
+
`;he.DEFAULT_CONTENT_TYPE="application/octet-stream";he.prototype.append=function(e,t,r){r=r||{},typeof r=="string"&&(r={filename:r});var n=Gu.prototype.append.bind(this);if((typeof t=="number"||t==null)&&(t=String(t)),Array.isArray(t)){this._error(new Error("Arrays are not supported."));return}var o=this._multiPartHeader(e,t,r),a=this._multiPartFooter();n(o),n(t),n(a),this._trackLength(o,t,r)};he.prototype._trackLength=function(e,t,r){var n=0;r.knownLength!=null?n+=Number(r.knownLength):Buffer.isBuffer(t)?n=t.length:typeof t=="string"&&(n=Buffer.byteLength(t)),this._valueLength+=n,this._overheadLength+=Buffer.byteLength(e)+he.LINE_BREAK.length,!(!t||!t.path&&!(t.readable&&Nr(t,"httpVersion"))&&!(t instanceof sD))&&(r.knownLength||this._valuesToMeasure.push(t))};he.prototype._lengthRetriever=function(e,t){Nr(e,"fd")?e.end!=null&&e.end!=1/0&&e.start!=null?t(null,e.end+1-(e.start?e.start:0)):aD.stat(e.path,function(r,n){if(r){t(r);return}var o=n.size-(e.start?e.start:0);t(null,o)}):Nr(e,"httpVersion")?t(null,Number(e.headers["content-length"])):Nr(e,"httpModule")?(e.on("response",function(r){e.pause(),t(null,Number(r.headers["content-length"]))}),e.resume()):t("Unknown stream")};he.prototype._multiPartHeader=function(e,t,r){if(typeof r.header=="string")return r.header;var n=this._getContentDisposition(t,r),o=this._getContentType(t,r),a="",s={"Content-Disposition":["form-data",'name="'+e+'"'].concat(n||[]),"Content-Type":[].concat(o||[])};typeof r.header=="object"&&Wu(s,r.header);var u;for(var l in s)if(Nr(s,l)){if(u=s[l],u==null)continue;Array.isArray(u)||(u=[u]),u.length&&(a+=l+": "+u.join("; ")+he.LINE_BREAK)}return"--"+this.getBoundary()+he.LINE_BREAK+a+he.LINE_BREAK};he.prototype._getContentDisposition=function(e,t){var r;if(typeof t.filepath=="string"?r=Hu.normalize(t.filepath).replace(/\\/g,"/"):t.filename||e&&(e.name||e.path)?r=Hu.basename(t.filename||e&&(e.name||e.path)):e&&e.readable&&Nr(e,"httpVersion")&&(r=Hu.basename(e.client._httpMessage.path||"")),r)return'filename="'+r+'"'};he.prototype._getContentType=function(e,t){var r=t.contentType;return!r&&e&&e.name&&(r=Zu.lookup(e.name)),!r&&e&&e.path&&(r=Zu.lookup(e.path)),!r&&e&&e.readable&&Nr(e,"httpVersion")&&(r=e.headers["content-type"]),!r&&(t.filepath||t.filename)&&(r=Zu.lookup(t.filepath||t.filename)),!r&&e&&typeof e=="object"&&(r=he.DEFAULT_CONTENT_TYPE),r};he.prototype._multiPartFooter=function(){return function(e){var t=he.LINE_BREAK,r=this._streams.length===0;r&&(t+=this._lastBoundary()),e(t)}.bind(this)};he.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+he.LINE_BREAK};he.prototype.getHeaders=function(e){var t,r={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(t in e)Nr(e,t)&&(r[t.toLowerCase()]=e[t]);return r};he.prototype.setBoundary=function(e){if(typeof e!="string")throw new TypeError("FormData boundary must be a string");this._boundary=e};he.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary};he.prototype.getBuffer=function(){for(var e=new Buffer.alloc(0),t=this.getBoundary(),r=0,n=this._streams.length;r<n;r++)typeof this._streams[r]!="function"&&(Buffer.isBuffer(this._streams[r])?e=Buffer.concat([e,this._streams[r]]):e=Buffer.concat([e,Buffer.from(this._streams[r])]),(typeof this._streams[r]!="string"||this._streams[r].substring(2,t.length+2)!==t)&&(e=Buffer.concat([e,Buffer.from(he.LINE_BREAK)])));return Buffer.concat([e,Buffer.from(this._lastBoundary())])};he.prototype._generateBoundary=function(){this._boundary="--------------------------"+uD.randomBytes(12).toString("hex")};he.prototype.getLengthSync=function(){var e=this._overheadLength+this._valueLength;return this._streams.length&&(e+=this._lastBoundary().length),this.hasKnownLength()||this._error(new Error("Cannot calculate proper length in synchronous way.")),e};he.prototype.hasKnownLength=function(){var e=!0;return this._valuesToMeasure.length&&(e=!1),e};he.prototype.getLength=function(e){var t=this._overheadLength+this._valueLength;if(this._streams.length&&(t+=this._lastBoundary().length),!this._valuesToMeasure.length){process.nextTick(e.bind(this,null,t));return}lD.parallel(this._valuesToMeasure,this._lengthRetriever,function(r,n){if(r){e(r);return}n.forEach(function(o){t+=o}),e(null,t)})};he.prototype.submit=function(e,t){var r,n,o={method:"post"};return typeof e=="string"?(e=oD(e),n=Wu({port:e.port,path:e.pathname,host:e.hostname,protocol:e.protocol},o)):(n=Wu(e,o),n.port||(n.port=n.protocol==="https:"?443:80)),n.headers=this.getHeaders(e.headers),n.protocol==="https:"?r=iD.request(n):r=nD.request(n),this.getLength(function(a,s){if(a&&a!=="Unknown stream"){this._error(a);return}if(s&&r.setHeader("Content-Length",s),this.pipe(r),t){var u,l=i(function(p,c){return r.removeListener("error",l),r.removeListener("response",u),t.call(this,p,c)},"callback");u=l.bind(this,null),r.on("error",l),r.on("response",u)}}.bind(this)),r};he.prototype._error=function(e){this.error||(this.error=e,this.pause(),this.emit("error",e))};he.prototype.toString=function(){return"[object FormData]"};cD(he,"FormData");fg.exports=he});var gg=b((QQ,hg)=>{function pD(){return!!(typeof window<"u"&&typeof window.process=="object"&&window.process.type==="renderer"||typeof process<"u"&&typeof process.versions=="object"&&process.versions.electron||typeof navigator=="object"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Electron")>=0)}i(pD,"isElectron");hg.exports=pD});var vg=b((tee,yg)=>{"use strict";var rr=i(e=>e!==null&&typeof e=="object"&&typeof e.pipe=="function","isStream");rr.writable=e=>rr(e)&&e.writable!==!1&&typeof e._write=="function"&&typeof e._writableState=="object";rr.readable=e=>rr(e)&&e.readable!==!1&&typeof e._read=="function"&&typeof e._readableState=="object";rr.duplex=e=>rr.writable(e)&&rr.readable(e);rr.transform=e=>rr.duplex(e)&&typeof e._transform=="function";yg.exports=rr});var bg=b((nee,Ku)=>{"use strict";var dD=Object.prototype.hasOwnProperty,gt="~";function $i(){}i($i,"Events");Object.create&&($i.prototype=Object.create(null),new $i().__proto__||(gt=!1));function fD(e,t,r){this.fn=e,this.context=t,this.once=r||!1}i(fD,"EE");function xg(e,t,r,n,o){if(typeof r!="function")throw new TypeError("The listener must be a function");var a=new fD(r,n||e,o),s=gt?gt+t:t;return e._events[s]?e._events[s].fn?e._events[s]=[e._events[s],a]:e._events[s].push(a):(e._events[s]=a,e._eventsCount++),e}i(xg,"addListener");function Yo(e,t){--e._eventsCount===0?e._events=new $i:delete e._events[t]}i(Yo,"clearEvent");function dt(){this._events=new $i,this._eventsCount=0}i(dt,"EventEmitter");dt.prototype.eventNames=i(function(){var t=[],r,n;if(this._eventsCount===0)return t;for(n in r=this._events)dD.call(r,n)&&t.push(gt?n.slice(1):n);return Object.getOwnPropertySymbols?t.concat(Object.getOwnPropertySymbols(r)):t},"eventNames");dt.prototype.listeners=i(function(t){var r=gt?gt+t:t,n=this._events[r];if(!n)return[];if(n.fn)return[n.fn];for(var o=0,a=n.length,s=new Array(a);o<a;o++)s[o]=n[o].fn;return s},"listeners");dt.prototype.listenerCount=i(function(t){var r=gt?gt+t:t,n=this._events[r];return n?n.fn?1:n.length:0},"listenerCount");dt.prototype.emit=i(function(t,r,n,o,a,s){var u=gt?gt+t:t;if(!this._events[u])return!1;var l=this._events[u],p=arguments.length,c,m;if(l.fn){switch(l.once&&this.removeListener(t,l.fn,void 0,!0),p){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,r),!0;case 3:return l.fn.call(l.context,r,n),!0;case 4:return l.fn.call(l.context,r,n,o),!0;case 5:return l.fn.call(l.context,r,n,o,a),!0;case 6:return l.fn.call(l.context,r,n,o,a,s),!0}for(m=1,c=new Array(p-1);m<p;m++)c[m-1]=arguments[m];l.fn.apply(l.context,c)}else{var f=l.length,d;for(m=0;m<f;m++)switch(l[m].once&&this.removeListener(t,l[m].fn,void 0,!0),p){case 1:l[m].fn.call(l[m].context);break;case 2:l[m].fn.call(l[m].context,r);break;case 3:l[m].fn.call(l[m].context,r,n);break;case 4:l[m].fn.call(l[m].context,r,n,o);break;default:if(!c)for(d=1,c=new Array(p-1);d<p;d++)c[d-1]=arguments[d];l[m].fn.apply(l[m].context,c)}}return!0},"emit");dt.prototype.on=i(function(t,r,n){return xg(this,t,r,n,!1)},"on");dt.prototype.once=i(function(t,r,n){return xg(this,t,r,n,!0)},"once");dt.prototype.removeListener=i(function(t,r,n,o){var a=gt?gt+t:t;if(!this._events[a])return this;if(!r)return Yo(this,a),this;var s=this._events[a];if(s.fn)s.fn===r&&(!o||s.once)&&(!n||s.context===n)&&Yo(this,a);else{for(var u=0,l=[],p=s.length;u<p;u++)(s[u].fn!==r||o&&!s[u].once||n&&s[u].context!==n)&&l.push(s[u]);l.length?this._events[a]=l.length===1?l[0]:l:Yo(this,a)}return this},"removeListener");dt.prototype.removeAllListeners=i(function(t){var r;return t?(r=gt?gt+t:t,this._events[r]&&Yo(this,r)):(this._events=new $i,this._eventsCount=0),this},"removeAllListeners");dt.prototype.off=dt.prototype.removeListener;dt.prototype.addListener=dt.prototype.on;dt.prefixed=gt;dt.EventEmitter=dt;typeof Ku<"u"&&(Ku.exports=dt)});var Pg=b((oee,_g)=>{"use strict";_g.exports=(e,t)=>(t=t||(()=>{}),e.then(r=>new Promise(n=>{n(t())}).then(()=>r),r=>new Promise(n=>{n(t())}).then(()=>{throw r})))});var Eg=b((aee,ea)=>{"use strict";var mD=Pg(),Qo=class extends Error{static{i(this,"TimeoutError")}constructor(t){super(t),this.name="TimeoutError"}},wg=i((e,t,r)=>new Promise((n,o)=>{if(typeof t!="number"||t<0)throw new TypeError("Expected `milliseconds` to be a positive number");if(t===1/0){n(e);return}let a=setTimeout(()=>{if(typeof r=="function"){try{n(r())}catch(l){o(l)}return}let s=typeof r=="string"?r:`Promise timed out after ${t} milliseconds`,u=r instanceof Error?r:new Qo(s);typeof e.cancel=="function"&&e.cancel(),o(u)},t);mD(e.then(n,o),()=>{clearTimeout(a)})}),"pTimeout");ea.exports=wg;ea.exports.default=wg;ea.exports.TimeoutError=Qo});var kg=b(Ju=>{"use strict";Object.defineProperty(Ju,"__esModule",{value:!0});function hD(e,t,r){let n=0,o=e.length;for(;o>0;){let a=o/2|0,s=n+a;r(e[s],t)<=0?(n=++s,o-=a+1):o=a}return n}i(hD,"lowerBound");Ju.default=hD});var Tg=b(Yu=>{"use strict";Object.defineProperty(Yu,"__esModule",{value:!0});var gD=kg(),Xu=class{static{i(this,"PriorityQueue")}constructor(){this._queue=[]}enqueue(t,r){r=Object.assign({priority:0},r);let n={priority:r.priority,run:t};if(this.size&&this._queue[this.size-1].priority>=r.priority){this._queue.push(n);return}let o=gD.default(this._queue,n,(a,s)=>s.priority-a.priority);this._queue.splice(o,0,n)}dequeue(){let t=this._queue.shift();return t?.run}filter(t){return this._queue.filter(r=>r.priority===t.priority).map(r=>r.run)}get size(){return this._queue.length}};Yu.default=Xu});var Ag=b(el=>{"use strict";Object.defineProperty(el,"__esModule",{value:!0});var yD=bg(),Sg=Eg(),vD=Tg(),ta=i(()=>{},"empty"),xD=new Sg.TimeoutError,Qu=class extends yD{static{i(this,"PQueue")}constructor(t){var r,n,o,a;if(super(),this._intervalCount=0,this._intervalEnd=0,this._pendingCount=0,this._resolveEmpty=ta,this._resolveIdle=ta,t=Object.assign({carryoverConcurrencyCount:!1,intervalCap:1/0,interval:0,concurrency:1/0,autoStart:!0,queueClass:vD.default},t),!(typeof t.intervalCap=="number"&&t.intervalCap>=1))throw new TypeError(`Expected \`intervalCap\` to be a number from 1 and up, got \`${(n=(r=t.intervalCap)===null||r===void 0?void 0:r.toString())!==null&&n!==void 0?n:""}\` (${typeof t.intervalCap})`);if(t.interval===void 0||!(Number.isFinite(t.interval)&&t.interval>=0))throw new TypeError(`Expected \`interval\` to be a finite number >= 0, got \`${(a=(o=t.interval)===null||o===void 0?void 0:o.toString())!==null&&a!==void 0?a:""}\` (${typeof t.interval})`);this._carryoverConcurrencyCount=t.carryoverConcurrencyCount,this._isIntervalIgnored=t.intervalCap===1/0||t.interval===0,this._intervalCap=t.intervalCap,this._interval=t.interval,this._queue=new t.queueClass,this._queueClass=t.queueClass,this.concurrency=t.concurrency,this._timeout=t.timeout,this._throwOnTimeout=t.throwOnTimeout===!0,this._isPaused=t.autoStart===!1}get _doesIntervalAllowAnother(){return this._isIntervalIgnored||this._intervalCount<this._intervalCap}get _doesConcurrentAllowAnother(){return this._pendingCount<this._concurrency}_next(){this._pendingCount--,this._tryToStartAnother(),this.emit("next")}_resolvePromises(){this._resolveEmpty(),this._resolveEmpty=ta,this._pendingCount===0&&(this._resolveIdle(),this._resolveIdle=ta,this.emit("idle"))}_onResumeInterval(){this._onInterval(),this._initializeIntervalIfNeeded(),this._timeoutId=void 0}_isIntervalPaused(){let t=Date.now();if(this._intervalId===void 0){let r=this._intervalEnd-t;if(r<0)this._intervalCount=this._carryoverConcurrencyCount?this._pendingCount:0;else return this._timeoutId===void 0&&(this._timeoutId=setTimeout(()=>{this._onResumeInterval()},r)),!0}return!1}_tryToStartAnother(){if(this._queue.size===0)return this._intervalId&&clearInterval(this._intervalId),this._intervalId=void 0,this._resolvePromises(),!1;if(!this._isPaused){let t=!this._isIntervalPaused();if(this._doesIntervalAllowAnother&&this._doesConcurrentAllowAnother){let r=this._queue.dequeue();return r?(this.emit("active"),r(),t&&this._initializeIntervalIfNeeded(),!0):!1}}return!1}_initializeIntervalIfNeeded(){this._isIntervalIgnored||this._intervalId!==void 0||(this._intervalId=setInterval(()=>{this._onInterval()},this._interval),this._intervalEnd=Date.now()+this._interval)}_onInterval(){this._intervalCount===0&&this._pendingCount===0&&this._intervalId&&(clearInterval(this._intervalId),this._intervalId=void 0),this._intervalCount=this._carryoverConcurrencyCount?this._pendingCount:0,this._processQueue()}_processQueue(){for(;this._tryToStartAnother(););}get concurrency(){return this._concurrency}set concurrency(t){if(!(typeof t=="number"&&t>=1))throw new TypeError(`Expected \`concurrency\` to be a number from 1 and up, got \`${t}\` (${typeof t})`);this._concurrency=t,this._processQueue()}async add(t,r={}){return new Promise((n,o)=>{let a=i(async()=>{this._pendingCount++,this._intervalCount++;try{let s=this._timeout===void 0&&r.timeout===void 0?t():Sg.default(Promise.resolve(t()),r.timeout===void 0?this._timeout:r.timeout,()=>{(r.throwOnTimeout===void 0?this._throwOnTimeout:r.throwOnTimeout)&&o(xD)});n(await s)}catch(s){o(s)}this._next()},"run");this._queue.enqueue(a,r),this._tryToStartAnother(),this.emit("add")})}async addAll(t,r){return Promise.all(t.map(async n=>this.add(n,r)))}start(){return this._isPaused?(this._isPaused=!1,this._processQueue(),this):this}pause(){this._isPaused=!0}clear(){this._queue=new this._queueClass}async onEmpty(){if(this._queue.size!==0)return new Promise(t=>{let r=this._resolveEmpty;this._resolveEmpty=()=>{r(),t()}})}async onIdle(){if(!(this._pendingCount===0&&this._queue.size===0))return new Promise(t=>{let r=this._resolveIdle;this._resolveIdle=()=>{r(),t()}})}get size(){return this._queue.size}sizeBy(t){return this._queue.filter(t).length}get pending(){return this._pendingCount}get isPaused(){return this._isPaused}get timeout(){return this._timeout}set timeout(t){this._timeout=t}};el.default=Qu});var Og=b((mee,Ig)=>{function Ut(e,t){typeof t=="boolean"&&(t={forever:t}),this._originalTimeouts=JSON.parse(JSON.stringify(e)),this._timeouts=e,this._options=t||{},this._maxRetryTime=t&&t.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}i(Ut,"RetryOperation");Ig.exports=Ut;Ut.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)};Ut.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null};Ut.prototype.retry=function(e){if(this._timeout&&clearTimeout(this._timeout),!e)return!1;var t=new Date().getTime();if(e&&t-this._operationStart>=this._maxRetryTime)return this._errors.push(e),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(e);var r=this._timeouts.shift();if(r===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),r=this._cachedTimeouts.slice(-1);else return!1;var n=this;return this._timer=setTimeout(function(){n._attempts++,n._operationTimeoutCb&&(n._timeout=setTimeout(function(){n._operationTimeoutCb(n._attempts)},n._operationTimeout),n._options.unref&&n._timeout.unref()),n._fn(n._attempts)},r),this._options.unref&&this._timer.unref(),!0};Ut.prototype.attempt=function(e,t){this._fn=e,t&&(t.timeout&&(this._operationTimeout=t.timeout),t.cb&&(this._operationTimeoutCb=t.cb));var r=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){r._operationTimeoutCb()},r._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)};Ut.prototype.try=function(e){console.log("Using RetryOperation.try() is deprecated"),this.attempt(e)};Ut.prototype.start=function(e){console.log("Using RetryOperation.start() is deprecated"),this.attempt(e)};Ut.prototype.start=Ut.prototype.try;Ut.prototype.errors=function(){return this._errors};Ut.prototype.attempts=function(){return this._attempts};Ut.prototype.mainError=function(){if(this._errors.length===0)return null;for(var e={},t=null,r=0,n=0;n<this._errors.length;n++){var o=this._errors[n],a=o.message,s=(e[a]||0)+1;e[a]=s,s>=r&&(t=o,r=s)}return t}});var Cg=b(rn=>{var bD=Og();rn.operation=function(e){var t=rn.timeouts(e);return new bD(t,{forever:e&&(e.forever||e.retries===1/0),unref:e&&e.unref,maxRetryTime:e&&e.maxRetryTime})};rn.timeouts=function(e){if(e instanceof Array)return[].concat(e);var t={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var r in e)t[r]=e[r];if(t.minTimeout>t.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var n=[],o=0;o<t.retries;o++)n.push(this.createTimeout(o,t));return e&&e.forever&&!n.length&&n.push(this.createTimeout(o,t)),n.sort(function(a,s){return a-s}),n};rn.createTimeout=function(e,t){var r=t.randomize?Math.random()+1:1,n=Math.round(r*Math.max(t.minTimeout,1)*Math.pow(t.factor,e));return n=Math.min(n,t.maxTimeout),n};rn.wrap=function(e,t,r){if(t instanceof Array&&(r=t,t=null),!r){r=[];for(var n in e)typeof e[n]=="function"&&r.push(n)}for(var o=0;o<r.length;o++){var a=r[o],s=e[a];e[a]=i(function(l){var p=rn.operation(t),c=Array.prototype.slice.call(arguments,1),m=c.pop();c.push(function(f){p.retry(f)||(f&&(arguments[0]=p.mainError()),m.apply(this,arguments))}),p.attempt(function(){l.apply(e,c)})},"retryWrapper").bind(e,s),e[a].options=t}}});var $g=b((vee,zg)=>{zg.exports=Cg()});var Dg=b((xee,na)=>{"use strict";var _D=$g(),PD=["Failed to fetch","NetworkError when attempting to fetch resource.","The Internet connection appears to be offline.","Network request failed"],ra=class extends Error{static{i(this,"AbortError")}constructor(t){super(),t instanceof Error?(this.originalError=t,{message:t}=t):(this.originalError=new Error(t),this.originalError.stack=this.stack),this.name="AbortError",this.message=t}},wD=i((e,t,r)=>{let n=r.retries-(t-1);return e.attemptNumber=t,e.retriesLeft=n,e},"decorateErrorWithCounts"),ED=i(e=>PD.includes(e),"isNetworkError"),Rg=i((e,t)=>new Promise((r,n)=>{t={onFailedAttempt:i(()=>{},"onFailedAttempt"),retries:10,...t};let o=_D.operation(t);o.attempt(async a=>{try{r(await e(a))}catch(s){if(!(s instanceof Error)){n(new TypeError(`Non-error was thrown: "${s}". You should only throw errors.`));return}if(s instanceof ra)o.stop(),n(s.originalError);else if(s instanceof TypeError&&!ED(s.message))o.stop(),n(s);else{wD(s,a,t);try{await t.onFailedAttempt(s)}catch(u){n(u);return}o.retry(s)||n(o.mainError())}}})}),"pRetry");na.exports=Rg;na.exports.default=Rg;na.exports.AbortError=ra});var ia=b(Et=>{"use strict";Object.defineProperty(Et,"__esModule",{value:!0});Et.rateLimitedErrorWithDelay=Et.platformErrorFromResult=Et.httpErrorFromResponse=Et.requestErrorWithOriginal=Et.errorWithCode=Et.ErrorCode=void 0;var Cn;(function(e){e.RequestError="slack_webapi_request_error",e.HTTPError="slack_webapi_http_error",e.PlatformError="slack_webapi_platform_error",e.RateLimitedError="slack_webapi_rate_limited_error",e.FileUploadInvalidArgumentsError="slack_webapi_file_upload_invalid_args_error",e.FileUploadReadFileDataError="slack_webapi_file_upload_read_file_data_error"})(Cn||(Et.ErrorCode=Cn={}));function Ri(e,t){let r=e;return r.code=t,r}i(Ri,"errorWithCode");Et.errorWithCode=Ri;function kD(e,t){let r=Ri(new Error(`A request error occurred: ${e.message}`),Cn.RequestError);return t&&(r.original=e),r}i(kD,"requestErrorWithOriginal");Et.requestErrorWithOriginal=kD;function TD(e){let t=Ri(new Error(`An HTTP protocol error occurred: statusCode = ${e.status}`),Cn.HTTPError);t.statusCode=e.status,t.statusMessage=e.statusText;let r={};for(let n of Object.keys(e.headers))n&&e.headers[n]&&(r[n]=e.headers[n]);return t.headers=r,t.body=e.data,t}i(TD,"httpErrorFromResponse");Et.httpErrorFromResponse=TD;function SD(e){let t=Ri(new Error(`An API error occurred: ${e.error}`),Cn.PlatformError);return t.data=e,t}i(SD,"platformErrorFromResult");Et.platformErrorFromResult=SD;function AD(e){let t=Ri(new Error(`A rate-limit has been reached, you may retry this request in ${e} seconds`),Cn.RateLimitedError);return t.retryAfter=e,t}i(AD,"rateLimitedErrorWithDelay");Et.rateLimitedErrorWithDelay=AD});var ty=b(J=>{"use strict";var oa=J&&J.__awaiter||function(e,t,r,n){function o(a){return a instanceof r?a:new r(function(s){s(a)})}return i(o,"adopt"),new(r||(r=Promise))(function(a,s){function u(c){try{p(n.next(c))}catch(m){s(m)}}i(u,"fulfilled");function l(c){try{p(n.throw(c))}catch(m){s(m)}}i(l,"rejected");function p(c){c.done?a(c.value):o(c.value).then(u,l)}i(p,"step"),p((n=n.apply(e,t||[])).next())})};Object.defineProperty(J,"__esModule",{value:!0});J.buildInvalidFilesUploadParamError=J.buildMultipleChannelsErrorMsg=J.buildChannelsWarning=J.buildFilesUploadMissingMessage=J.buildGeneralFilesUploadWarning=J.buildLegacyMethodWarning=J.buildMissingExtensionWarning=J.buildMissingFileNameWarning=J.buildLegacyFileTypeWarning=J.buildFileSizeErrorMsg=J.buildMissingFileIdError=J.warnIfLegacyFileType=J.warnIfMissingOrInvalidFileNameAndDefault=J.errorIfInvalidOrMissingFileData=J.errorIfChannelsCsv=J.warnIfChannels=J.warnIfNotUsingFilesUploadV2=J.getAllFileUploadsToComplete=J.getFileDataAsStream=J.getFileDataLength=J.getFileData=J.getMultipleFileUploadJobs=J.getFileUploadJob=void 0;var ID=require("node:fs"),OD=require("node:stream"),nt=ia();function tl(e,t){var r,n,o,a;return oa(this,void 0,void 0,function*(){jg(e,t),Mg(e,t),qg(e);let s=Bg(e,t),u=yield Ng(e),l=Ug(u),p={alt_text:e.alt_text,channel_id:(r=e.channels)!==null&&r!==void 0?r:e.channel_id,filename:(n=e.filename)!==null&&n!==void 0?n:s,initial_comment:e.initial_comment,snippet_type:e.snippet_type,title:(a=(o=e.title)!==null&&o!==void 0?o:e.filename)!==null&&a!==void 0?a:s,data:u,length:l};if("thread_ts"in e&&(p.thread_ts=e.thread_ts),"token"in e&&(p.token=e.token),"content"in e)return Object.assign({content:e.content},p);if("file"in e)return Object.assign({file:e.file},p);throw(0,nt.errorWithCode)(new Error("Either a file or content field is required for valid file upload. You must supply one"),nt.ErrorCode.FileUploadInvalidArgumentsError)})}i(tl,"getFileUploadJob");J.getFileUploadJob=tl;function CD(e,t){return oa(this,void 0,void 0,function*(){if("file_uploads"in e)return Promise.all(e.file_uploads.map(r=>{let{channel_id:n,channels:o,initial_comment:a,thread_ts:s}=r;if(n||o||a||s)throw(0,nt.errorWithCode)(new Error(ey()),nt.ErrorCode.FileUploadInvalidArgumentsError);let u=Object.assign(Object.assign({},r),{channels:e.channels,channel_id:e.channel_id,initial_comment:e.initial_comment});if("thread_ts"in e&&(u.thread_ts=e.thread_ts),"token"in e&&(u.token=e.token),"content"in r)return tl(Object.assign({content:r.content},u),t);if("file"in r)return tl(Object.assign({file:r.file},u),t);throw(0,nt.errorWithCode)(new Error("Either a file or content field is required for valid file upload. You must supply one"),nt.ErrorCode.FileUploadInvalidArgumentsError)}));throw new Error(Xg())})}i(CD,"getMultipleFileUploadJobs");J.getMultipleFileUploadJobs=CD;function Ng(e){return oa(this,void 0,void 0,function*(){if(Fg(e),"file"in e){let{file:t}=e;if(Buffer.isBuffer(t))return t;if(typeof t=="string")try{return(0,ID.readFileSync)(t)}catch{throw(0,nt.errorWithCode)(new Error(`Unable to resolve file data for ${t}. Please supply a filepath string, or binary data Buffer or String directly.`),nt.ErrorCode.FileUploadInvalidArgumentsError)}let r=yield Lg(t);if(r)return r}if("content"in e)return Buffer.from(e.content);throw(0,nt.errorWithCode)(new Error("There was an issue getting the file data for the file or content supplied"),nt.ErrorCode.FileUploadReadFileDataError)})}i(Ng,"getFileData");J.getFileData=Ng;function Ug(e){if(e)return Buffer.byteLength(e,"utf8");throw(0,nt.errorWithCode)(new Error(Hg()),nt.ErrorCode.FileUploadReadFileDataError)}i(Ug,"getFileDataLength");J.getFileDataLength=Ug;function Lg(e){return oa(this,void 0,void 0,function*(){let t=[];return new Promise((r,n)=>{e.on("readable",()=>{let o;for(;(o=e.read())!==null;)t.push(o)}),e.on("end",()=>{if(t.length>0){let o=Buffer.concat(t);r(o)}else n(Error("No data in supplied file"))})})})}i(Lg,"getFileDataAsStream");J.getFileDataAsStream=Lg;function zD(e){let t={};for(let r of e){let{channel_id:n,thread_ts:o,initial_comment:a,file_id:s,title:u}=r;if(s){let l=`:::${n}:::${o}:::${a}`;Object.prototype.hasOwnProperty.call(t,l)?t[l].files.push({id:s,title:u}):(t[l]={files:[{id:s,title:u}],channel_id:n,initial_comment:a},o&&(t[l].thread_ts=r.thread_ts),"token"in r&&(t[l].token=r.token))}else throw new Error(Vg())}return t}i(zD,"getAllFileUploadsToComplete");J.getAllFileUploadsToComplete=zD;function $D(e,t){let n=["files.upload"].includes(e);e==="files.upload"&&t.warn(Kg(e)),n&&t.info(Jg())}i($D,"warnIfNotUsingFilesUploadV2");J.warnIfNotUsingFilesUploadV2=$D;function Mg(e,t){e.channels&&t.warn(Yg())}i(Mg,"warnIfChannels");J.warnIfChannels=Mg;function qg(e){if((e.channels?e.channels.split(","):[]).length>1)throw(0,nt.errorWithCode)(new Error(Qg()),nt.ErrorCode.FileUploadInvalidArgumentsError)}i(qg,"errorIfChannelsCsv");J.errorIfChannelsCsv=qg;function Fg(e){let t="file"in e,r="content"in e;if(!(t||r)||t&&r)throw(0,nt.errorWithCode)(new Error("Either a file or content field is required for valid file upload. You cannot supply both"),nt.ErrorCode.FileUploadInvalidArgumentsError);if("file"in e){let{file:n}=e;if(n&&!(typeof n=="string"||Buffer.isBuffer(n)||n instanceof OD.Readable))throw(0,nt.errorWithCode)(new Error("file must be a valid string path, buffer or Readable"),nt.ErrorCode.FileUploadInvalidArgumentsError)}if("content"in e&&e.content&&typeof e.content!="string")throw(0,nt.errorWithCode)(new Error("content must be a string"),nt.ErrorCode.FileUploadInvalidArgumentsError)}i(Fg,"errorIfInvalidOrMissingFileData");J.errorIfInvalidOrMissingFileData=Fg;function Bg(e,t){var r;let o=`file.${(r=e.filetype)!==null&&r!==void 0?r:"txt"}`,{filename:a}=e;return a?(a.split(".").length<2&&t.warn(Gg(a)),a):(t.warn(Wg()),o)}i(Bg,"warnIfMissingOrInvalidFileNameAndDefault");J.warnIfMissingOrInvalidFileNameAndDefault=Bg;function jg(e,t){e.filetype&&t.warn(Zg())}i(jg,"warnIfLegacyFileType");J.warnIfLegacyFileType=jg;function Vg(){return"Missing required file id for file upload completion"}i(Vg,"buildMissingFileIdError");J.buildMissingFileIdError=Vg;function Hg(){return"There was an issue calculating the size of your file"}i(Hg,"buildFileSizeErrorMsg");J.buildFileSizeErrorMsg=Hg;function Zg(){return`filetype is no longer a supported field in files.uploadV2.
|
|
17
|
+
Please remove this field. To indicate file type, please do so via the required filename property using the appropriate file extension, e.g. image.png, text.txt`}i(Zg,"buildLegacyFileTypeWarning");J.buildLegacyFileTypeWarning=Zg;function Wg(){return`filename is a required field for files.uploadV2.
|
|
18
|
+
For backwards compatibility and ease of migration, defaulting the filename. For best experience and consistent unfurl behavior, you should set the filename property with correct file extension, e.g. image.png, text.txt`}i(Wg,"buildMissingFileNameWarning");J.buildMissingFileNameWarning=Wg;function Gg(e){return`filename supplied '${e}' may be missing a proper extension. Missing extenions may result in unexpected unfurl behavior when shared`}i(Gg,"buildMissingExtensionWarning");J.buildMissingExtensionWarning=Gg;function Kg(e){return`${e} may cause some issues like timeouts for relatively large files.`}i(Kg,"buildLegacyMethodWarning");J.buildLegacyMethodWarning=Kg;function Jg(){return"Our latest recommendation is to use client.files.uploadV2() method, which is mostly compatible and much stabler, instead."}i(Jg,"buildGeneralFilesUploadWarning");J.buildGeneralFilesUploadWarning=Jg;function Xg(){return"Something went wrong with processing file_uploads"}i(Xg,"buildFilesUploadMissingMessage");J.buildFilesUploadMissingMessage=Xg;function Yg(){return"Although the 'channels' parameter is still supported for smoother migration from legacy files.upload, we recommend using the new channel_id parameter with a single str value instead (e.g. 'C12345')."}i(Yg,"buildChannelsWarning");J.buildChannelsWarning=Yg;function Qg(){return"Sharing files with multiple channels is no longer supported in v2. Share files in each channel separately instead."}i(Qg,"buildMultipleChannelsErrorMsg");J.buildMultipleChannelsErrorMsg=Qg;function ey(){return"You may supply file_uploads only for a single channel, comment, thread respectively. Therefore, please supply any channel_id, initial_comment, thread_ts in the top-layer."}i(ey,"buildInvalidFilesUploadParamError");J.buildInvalidFilesUploadParamError=ey});var ry=b(rl=>{"use strict";Object.defineProperty(rl,"__esModule",{value:!0});function RD(e){return new Promise(t=>{setTimeout(t,e)})}i(RD,"delay");rl.default=RD});var ny=b((See,DD)=>{DD.exports={name:"@slack/web-api",version:"7.9.0",description:"Official library for using the Slack Platform's Web API",author:"Slack Technologies, LLC",license:"MIT",keywords:["slack","web-api","bot","client","http","api","proxy","rate-limiting","pagination"],main:"dist/index.js",types:"./dist/index.d.ts",files:["dist/**/*"],engines:{node:">= 18",npm:">= 8.6.0"},repository:"slackapi/node-slack-sdk",homepage:"https://tools.slack.dev/node-slack-sdk/web-api",publishConfig:{access:"public"},bugs:{url:"https://github.com/slackapi/node-slack-sdk/issues"},scripts:{prepare:"npm run build",build:"npm run build:clean && tsc","build:clean":"shx rm -rf ./dist ./coverage",lint:"npx @biomejs/biome check .","lint:fix":"npx @biomejs/biome check --write .",mocha:'mocha --config ./test/.mocharc.json "./src/**/*.spec.ts"',test:"npm run lint && npm run test:types && npm run test:integration && npm run test:unit","test:integration":"npm run build && node test/integration/commonjs-project/index.js && node test/integration/esm-project/index.mjs && npm run test:integration:ts","test:integration:ts":"cd test/integration/ts-4.7-project && npm i && npm run build","test:unit":"npm run build && c8 --config ./test/.c8rc.json npm run mocha","test:types":"tsd",watch:"npx nodemon --watch 'src' --ext 'ts' --exec npm run build"},dependencies:{"@slack/logger":"^4.0.0","@slack/types":"^2.9.0","@types/node":">=18.0.0","@types/retry":"0.12.0",axios:"^1.8.3",eventemitter3:"^5.0.1","form-data":"^4.0.0","is-electron":"2.2.2","is-stream":"^2","p-queue":"^6","p-retry":"^4",retry:"^0.13.1"},devDependencies:{"@biomejs/biome":"^1.8.3","@tsconfig/recommended":"^1","@types/busboy":"^1.5.4","@types/chai":"^4","@types/mocha":"^10","@types/sinon":"^17",busboy:"^1",c8:"^10.1.2",chai:"^4",mocha:"^11","mocha-junit-reporter":"^2.2.1","mocha-multi-reporters":"^1.5.1",nock:"^13",shx:"^0.4.0",sinon:"^19","source-map-support":"^0.5.21","ts-node":"^10",tsd:"^0.31.1",typescript:"5.3.3"},tsd:{directory:"test/types"}}});var nl=b(Lt=>{"use strict";var ND=Lt&&Lt.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:i(function(){return t[r]},"get")}),Object.defineProperty(e,n,o)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),UD=Lt&&Lt.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),LD=Lt&&Lt.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&ND(t,e,r);return UD(t,e),t};Object.defineProperty(Lt,"__esModule",{value:!0});Lt.getUserAgent=Lt.addAppMetadata=void 0;var iy=LD(require("node:os")),MD=require("node:path"),oy=ny();function ay(e){return e.replace("/",":")}i(ay,"replaceSlashes");var qD=`${ay(oy.name)}/${oy.version} ${(0,MD.basename)(process.title)}/${process.version.replace("v","")} ${iy.platform()}/${iy.release()}`,sy={};function FD({name:e,version:t}){sy[ay(e)]=t}i(FD,"addAppMetadata");Lt.addAppMetadata=FD;function BD(){let e=Object.entries(sy).map(([t,r])=>`${t}/${r}`).join(" ");return(e.length>0?`${e} `:"")+qD}i(BD,"getUserAgent");Lt.getUserAgent=BD});var il=b(zn=>{"use strict";Object.defineProperty(zn,"__esModule",{value:!0});zn.ConsoleLogger=zn.LogLevel=void 0;var ft;(function(e){e.ERROR="error",e.WARN="warn",e.INFO="info",e.DEBUG="debug"})(ft||(zn.LogLevel=ft={}));var Di=class e{static{i(this,"ConsoleLogger")}constructor(){this.level=ft.INFO,this.name=""}getLevel(){return this.level}setLevel(t){this.level=t}setName(t){this.name=t}debug(...t){e.isMoreOrEqualSevere(ft.DEBUG,this.level)&&console.debug(e.labels.get(ft.DEBUG),this.name,...t)}info(...t){e.isMoreOrEqualSevere(ft.INFO,this.level)&&console.info(e.labels.get(ft.INFO),this.name,...t)}warn(...t){e.isMoreOrEqualSevere(ft.WARN,this.level)&&console.warn(e.labels.get(ft.WARN),this.name,...t)}error(...t){e.isMoreOrEqualSevere(ft.ERROR,this.level)&&console.error(e.labels.get(ft.ERROR),this.name,...t)}static isMoreOrEqualSevere(t,r){return e.severity[t]>=e.severity[r]}};zn.ConsoleLogger=Di;Di.labels=(()=>{let t=Object.entries(ft).map(([r,n])=>[n,`[${r}] `]);return new Map(t)})();Di.severity={[ft.ERROR]:400,[ft.WARN]:300,[ft.INFO]:200,[ft.DEBUG]:100}});var ol=b($n=>{"use strict";Object.defineProperty($n,"__esModule",{value:!0});$n.getLogger=$n.LogLevel=void 0;var jD=il(),VD=il();Object.defineProperty($n,"LogLevel",{enumerable:!0,get:i(function(){return VD.LogLevel},"get")});var uy=0;function HD(e,t,r){let n=uy;uy+=1;let o=r!==void 0?r:new jD.ConsoleLogger;return o.setName(`web-api:${e}:${n}`),t!==void 0&&o.setLevel(t),o}i(HD,"getLogger");$n.getLogger=HD});var cy=b((Ree,al)=>{"use strict";var ZD=Object.prototype.hasOwnProperty,yt="~";function Ni(){}i(Ni,"Events");Object.create&&(Ni.prototype=Object.create(null),new Ni().__proto__||(yt=!1));function WD(e,t,r){this.fn=e,this.context=t,this.once=r||!1}i(WD,"EE");function ly(e,t,r,n,o){if(typeof r!="function")throw new TypeError("The listener must be a function");var a=new WD(r,n||e,o),s=yt?yt+t:t;return e._events[s]?e._events[s].fn?e._events[s]=[e._events[s],a]:e._events[s].push(a):(e._events[s]=a,e._eventsCount++),e}i(ly,"addListener");function aa(e,t){--e._eventsCount===0?e._events=new Ni:delete e._events[t]}i(aa,"clearEvent");function mt(){this._events=new Ni,this._eventsCount=0}i(mt,"EventEmitter");mt.prototype.eventNames=i(function(){var t=[],r,n;if(this._eventsCount===0)return t;for(n in r=this._events)ZD.call(r,n)&&t.push(yt?n.slice(1):n);return Object.getOwnPropertySymbols?t.concat(Object.getOwnPropertySymbols(r)):t},"eventNames");mt.prototype.listeners=i(function(t){var r=yt?yt+t:t,n=this._events[r];if(!n)return[];if(n.fn)return[n.fn];for(var o=0,a=n.length,s=new Array(a);o<a;o++)s[o]=n[o].fn;return s},"listeners");mt.prototype.listenerCount=i(function(t){var r=yt?yt+t:t,n=this._events[r];return n?n.fn?1:n.length:0},"listenerCount");mt.prototype.emit=i(function(t,r,n,o,a,s){var u=yt?yt+t:t;if(!this._events[u])return!1;var l=this._events[u],p=arguments.length,c,m;if(l.fn){switch(l.once&&this.removeListener(t,l.fn,void 0,!0),p){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,r),!0;case 3:return l.fn.call(l.context,r,n),!0;case 4:return l.fn.call(l.context,r,n,o),!0;case 5:return l.fn.call(l.context,r,n,o,a),!0;case 6:return l.fn.call(l.context,r,n,o,a,s),!0}for(m=1,c=new Array(p-1);m<p;m++)c[m-1]=arguments[m];l.fn.apply(l.context,c)}else{var f=l.length,d;for(m=0;m<f;m++)switch(l[m].once&&this.removeListener(t,l[m].fn,void 0,!0),p){case 1:l[m].fn.call(l[m].context);break;case 2:l[m].fn.call(l[m].context,r);break;case 3:l[m].fn.call(l[m].context,r,n);break;case 4:l[m].fn.call(l[m].context,r,n,o);break;default:if(!c)for(d=1,c=new Array(p-1);d<p;d++)c[d-1]=arguments[d];l[m].fn.apply(l[m].context,c)}}return!0},"emit");mt.prototype.on=i(function(t,r,n){return ly(this,t,r,n,!1)},"on");mt.prototype.once=i(function(t,r,n){return ly(this,t,r,n,!0)},"once");mt.prototype.removeListener=i(function(t,r,n,o){var a=yt?yt+t:t;if(!this._events[a])return this;if(!r)return aa(this,a),this;var s=this._events[a];if(s.fn)s.fn===r&&(!o||s.once)&&(!n||s.context===n)&&aa(this,a);else{for(var u=0,l=[],p=s.length;u<p;u++)(s[u].fn!==r||o&&!s[u].once||n&&s[u].context!==n)&&l.push(s[u]);l.length?this._events[a]=l.length===1?l[0]:l:aa(this,a)}return this},"removeListener");mt.prototype.removeAllListeners=i(function(t){var r;return t?(r=yt?yt+t:t,this._events[r]&&aa(this,r)):(this._events=new Ni,this._eventsCount=0),this},"removeAllListeners");mt.prototype.off=mt.prototype.removeListener;mt.prototype.addListener=mt.prototype.on;mt.prefixed=yt;mt.EventEmitter=mt;typeof al<"u"&&(al.exports=mt)});var dy=b(py=>{"use strict";Object.defineProperty(py,"__esModule",{value:!0})});var my=b(fy=>{"use strict";Object.defineProperty(fy,"__esModule",{value:!0})});var gy=b(hy=>{"use strict";Object.defineProperty(hy,"__esModule",{value:!0})});var vy=b(yy=>{"use strict";Object.defineProperty(yy,"__esModule",{value:!0})});var by=b(xy=>{"use strict";Object.defineProperty(xy,"__esModule",{value:!0})});var Py=b(_y=>{"use strict";Object.defineProperty(_y,"__esModule",{value:!0})});var Ey=b(wy=>{"use strict";Object.defineProperty(wy,"__esModule",{value:!0})});var Ty=b(ky=>{"use strict";Object.defineProperty(ky,"__esModule",{value:!0})});var Ay=b(Sy=>{"use strict";Object.defineProperty(Sy,"__esModule",{value:!0})});var Oy=b(Iy=>{"use strict";Object.defineProperty(Iy,"__esModule",{value:!0})});var zy=b(Cy=>{"use strict";Object.defineProperty(Cy,"__esModule",{value:!0})});var Ry=b($y=>{"use strict";Object.defineProperty($y,"__esModule",{value:!0})});var Ny=b(Dy=>{"use strict";Object.defineProperty(Dy,"__esModule",{value:!0})});var Ly=b(Uy=>{"use strict";Object.defineProperty(Uy,"__esModule",{value:!0})});var qy=b(My=>{"use strict";Object.defineProperty(My,"__esModule",{value:!0})});var By=b(Fy=>{"use strict";Object.defineProperty(Fy,"__esModule",{value:!0})});var Vy=b(jy=>{"use strict";Object.defineProperty(jy,"__esModule",{value:!0})});var Zy=b(Hy=>{"use strict";Object.defineProperty(Hy,"__esModule",{value:!0})});var Gy=b(Wy=>{"use strict";Object.defineProperty(Wy,"__esModule",{value:!0})});var Jy=b(Ky=>{"use strict";Object.defineProperty(Ky,"__esModule",{value:!0})});var Yy=b(Xy=>{"use strict";Object.defineProperty(Xy,"__esModule",{value:!0})});var ev=b(Qy=>{"use strict";Object.defineProperty(Qy,"__esModule",{value:!0})});var rv=b(tv=>{"use strict";Object.defineProperty(tv,"__esModule",{value:!0})});var iv=b(nv=>{"use strict";Object.defineProperty(nv,"__esModule",{value:!0})});var av=b(ov=>{"use strict";Object.defineProperty(ov,"__esModule",{value:!0})});var uv=b(sv=>{"use strict";Object.defineProperty(sv,"__esModule",{value:!0})});var cv=b(lv=>{"use strict";Object.defineProperty(lv,"__esModule",{value:!0})});var dv=b(pv=>{"use strict";Object.defineProperty(pv,"__esModule",{value:!0})});var mv=b(fv=>{"use strict";Object.defineProperty(fv,"__esModule",{value:!0})});var gv=b(hv=>{"use strict";Object.defineProperty(hv,"__esModule",{value:!0})});var vv=b(yv=>{"use strict";Object.defineProperty(yv,"__esModule",{value:!0})});var bv=b(xv=>{"use strict";Object.defineProperty(xv,"__esModule",{value:!0})});var Pv=b(_v=>{"use strict";Object.defineProperty(_v,"__esModule",{value:!0})});var wv=b(ve=>{"use strict";var GD=ve&&ve.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:i(function(){return t[r]},"get")}),Object.defineProperty(e,n,o)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),Ae=ve&&ve.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&GD(t,e,r)};Object.defineProperty(ve,"__esModule",{value:!0});Ae(Ty(),ve);Ae(Ay(),ve);Ae(Oy(),ve);Ae(zy(),ve);Ae(Ry(),ve);Ae(Ny(),ve);Ae(Ly(),ve);Ae(qy(),ve);Ae(By(),ve);Ae(Vy(),ve);Ae(Zy(),ve);Ae(Gy(),ve);Ae(Jy(),ve);Ae(Yy(),ve);Ae(ev(),ve);Ae(rv(),ve);Ae(iv(),ve);Ae(av(),ve);Ae(uv(),ve);Ae(cv(),ve);Ae(dv(),ve);Ae(mv(),ve);Ae(gv(),ve);Ae(vv(),ve);Ae(bv(),ve);Ae(Pv(),ve)});var kv=b(Ev=>{"use strict";Object.defineProperty(Ev,"__esModule",{value:!0})});var Av=b(Rn=>{"use strict";Object.defineProperty(Rn,"__esModule",{value:!0});Rn.CustomFieldType=Rn.EntityType=void 0;var Tv;(function(e){e.Task="slack#/entities/task",e.File="slack#/entities/file",e.Item="slack#/entities/item",e.Incident="slack#/entities/incident",e.ContentItem="slack#/entities/content_item"})(Tv||(Rn.EntityType=Tv={}));var Sv;(function(e){e.Integer="integer",e.String="string",e.Array="array",e.Date="slack#/types/date",e.Timestamp="slack#/types/timestamp",e.Image="slack#/types/image",e.ChannelId="slack#/types/channel_id",e.User="slack#/types/user",e.EntityRef="slack#/types/entity_ref",e.Boolean="boolean",e.Link="slack#/types/link",e.Email="slack#/types/email"})(Sv||(Rn.CustomFieldType=Sv={}))});var Ov=b(Iv=>{"use strict";Object.defineProperty(Iv,"__esModule",{value:!0})});var Cv=b(ct=>{"use strict";var KD=ct&&ct.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:i(function(){return t[r]},"get")}),Object.defineProperty(e,n,o)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),Xt=ct&&ct.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&KD(t,e,r)};Object.defineProperty(ct,"__esModule",{value:!0});Xt(dy(),ct);Xt(my(),ct);Xt(gy(),ct);Xt(vy(),ct);Xt(by(),ct);Xt(Py(),ct);Xt(Ey(),ct);Xt(wv(),ct);Xt(kv(),ct);Xt(Av(),ct);Xt(Ov(),ct)});var ul=b(br=>{"use strict";var JD=br&&br.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:i(function(){return t[r]},"get")}),Object.defineProperty(e,n,o)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),XD=br&&br.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&JD(t,e,r)};Object.defineProperty(br,"__esModule",{value:!0});br.Methods=void 0;var YD=cy(),zv=ll();function E(e,t){return e.apiCall.bind(e,t)}i(E,"bindApiCall");function pe(e,t){return e.apiCall.bind(e,t)}i(pe,"bindApiCallWithOptionalArgument");function QD(e){return e.filesUploadV2.bind(e)}i(QD,"bindFilesUploadV2");var sl=class extends YD.EventEmitter{static{i(this,"Methods")}constructor(){if(super(),this.admin={analytics:{getFile:E(this,"admin.analytics.getFile")},apps:{activities:{list:pe(this,"admin.apps.activities.list")},approve:E(this,"admin.apps.approve"),approved:{list:E(this,"admin.apps.approved.list")},clearResolution:E(this,"admin.apps.clearResolution"),config:{lookup:E(this,"admin.apps.config.lookup"),set:E(this,"admin.apps.config.set")},requests:{cancel:E(this,"admin.apps.requests.cancel"),list:E(this,"admin.apps.requests.list")},restrict:E(this,"admin.apps.restrict"),restricted:{list:E(this,"admin.apps.restricted.list")},uninstall:E(this,"admin.apps.uninstall")},auth:{policy:{assignEntities:E(this,"admin.auth.policy.assignEntities"),getEntities:E(this,"admin.auth.policy.getEntities"),removeEntities:E(this,"admin.auth.policy.removeEntities")}},barriers:{create:E(this,"admin.barriers.create"),delete:E(this,"admin.barriers.delete"),list:pe(this,"admin.barriers.list"),update:E(this,"admin.barriers.update")},conversations:{archive:E(this,"admin.conversations.archive"),bulkArchive:E(this,"admin.conversations.bulkArchive"),bulkDelete:E(this,"admin.conversations.bulkDelete"),bulkMove:E(this,"admin.conversations.bulkMove"),convertToPrivate:E(this,"admin.conversations.convertToPrivate"),convertToPublic:E(this,"admin.conversations.convertToPublic"),create:E(this,"admin.conversations.create"),delete:E(this,"admin.conversations.delete"),disconnectShared:E(this,"admin.conversations.disconnectShared"),ekm:{listOriginalConnectedChannelInfo:pe(this,"admin.conversations.ekm.listOriginalConnectedChannelInfo")},getConversationPrefs:E(this,"admin.conversations.getConversationPrefs"),getCustomRetention:E(this,"admin.conversations.getCustomRetention"),getTeams:E(this,"admin.conversations.getTeams"),invite:E(this,"admin.conversations.invite"),lookup:E(this,"admin.conversations.lookup"),removeCustomRetention:E(this,"admin.conversations.removeCustomRetention"),rename:E(this,"admin.conversations.rename"),restrictAccess:{addGroup:E(this,"admin.conversations.restrictAccess.addGroup"),listGroups:E(this,"admin.conversations.restrictAccess.listGroups"),removeGroup:E(this,"admin.conversations.restrictAccess.removeGroup")},search:pe(this,"admin.conversations.search"),setConversationPrefs:E(this,"admin.conversations.setConversationPrefs"),setCustomRetention:E(this,"admin.conversations.setCustomRetention"),setTeams:E(this,"admin.conversations.setTeams"),unarchive:E(this,"admin.conversations.unarchive")},emoji:{add:E(this,"admin.emoji.add"),addAlias:E(this,"admin.emoji.addAlias"),list:pe(this,"admin.emoji.list"),remove:E(this,"admin.emoji.remove"),rename:E(this,"admin.emoji.rename")},functions:{list:E(this,"admin.functions.list"),permissions:{lookup:E(this,"admin.functions.permissions.lookup"),set:E(this,"admin.functions.permissions.set")}},inviteRequests:{approve:E(this,"admin.inviteRequests.approve"),approved:{list:E(this,"admin.inviteRequests.approved.list")},denied:{list:E(this,"admin.inviteRequests.denied.list")},deny:E(this,"admin.inviteRequests.deny"),list:E(this,"admin.inviteRequests.list")},roles:{addAssignments:E(this,"admin.roles.addAssignments"),listAssignments:pe(this,"admin.roles.listAssignments"),removeAssignments:E(this,"admin.roles.removeAssignments")},teams:{admins:{list:E(this,"admin.teams.admins.list")},create:E(this,"admin.teams.create"),list:pe(this,"admin.teams.list"),owners:{list:E(this,"admin.teams.owners.list")},settings:{info:E(this,"admin.teams.settings.info"),setDefaultChannels:E(this,"admin.teams.settings.setDefaultChannels"),setDescription:E(this,"admin.teams.settings.setDescription"),setDiscoverability:E(this,"admin.teams.settings.setDiscoverability"),setIcon:E(this,"admin.teams.settings.setIcon"),setName:E(this,"admin.teams.settings.setName")}},usergroups:{addChannels:E(this,"admin.usergroups.addChannels"),addTeams:E(this,"admin.usergroups.addTeams"),listChannels:E(this,"admin.usergroups.listChannels"),removeChannels:E(this,"admin.usergroups.removeChannels")},users:{assign:E(this,"admin.users.assign"),invite:E(this,"admin.users.invite"),list:pe(this,"admin.users.list"),remove:E(this,"admin.users.remove"),session:{clearSettings:E(this,"admin.users.session.clearSettings"),getSettings:E(this,"admin.users.session.getSettings"),invalidate:E(this,"admin.users.session.invalidate"),list:pe(this,"admin.users.session.list"),reset:E(this,"admin.users.session.reset"),resetBulk:E(this,"admin.users.session.resetBulk"),setSettings:E(this,"admin.users.session.setSettings")},setAdmin:E(this,"admin.users.setAdmin"),setExpiration:E(this,"admin.users.setExpiration"),setOwner:E(this,"admin.users.setOwner"),setRegular:E(this,"admin.users.setRegular"),unsupportedVersions:{export:E(this,"admin.users.unsupportedVersions.export")}},workflows:{collaborators:{add:E(this,"admin.workflows.collaborators.add"),remove:E(this,"admin.workflows.collaborators.remove")},permissions:{lookup:E(this,"admin.workflows.permissions.lookup")},search:pe(this,"admin.workflows.search"),unpublish:E(this,"admin.workflows.unpublish")}},this.api={test:pe(this,"api.test")},this.assistant={threads:{setStatus:E(this,"assistant.threads.setStatus"),setSuggestedPrompts:E(this,"assistant.threads.setSuggestedPrompts"),setTitle:E(this,"assistant.threads.setTitle")}},this.apps={connections:{open:pe(this,"apps.connections.open")},event:{authorizations:{list:E(this,"apps.event.authorizations.list")}},manifest:{create:E(this,"apps.manifest.create"),delete:E(this,"apps.manifest.delete"),export:E(this,"apps.manifest.export"),update:E(this,"apps.manifest.update"),validate:E(this,"apps.manifest.validate")},uninstall:E(this,"apps.uninstall")},this.auth={revoke:pe(this,"auth.revoke"),teams:{list:pe(this,"auth.teams.list")},test:pe(this,"auth.test")},this.bookmarks={add:E(this,"bookmarks.add"),edit:E(this,"bookmarks.edit"),list:E(this,"bookmarks.list"),remove:E(this,"bookmarks.remove")},this.bots={info:pe(this,"bots.info")},this.calls={add:E(this,"calls.add"),end:E(this,"calls.end"),info:E(this,"calls.info"),update:E(this,"calls.update"),participants:{add:E(this,"calls.participants.add"),remove:E(this,"calls.participants.remove")}},this.canvases={access:{delete:E(this,"canvases.access.delete"),set:E(this,"canvases.access.set")},create:pe(this,"canvases.create"),delete:E(this,"canvases.delete"),edit:E(this,"canvases.edit"),sections:{lookup:E(this,"canvases.sections.lookup")}},this.chat={delete:E(this,"chat.delete"),deleteScheduledMessage:E(this,"chat.deleteScheduledMessage"),getPermalink:E(this,"chat.getPermalink"),meMessage:E(this,"chat.meMessage"),postEphemeral:E(this,"chat.postEphemeral"),postMessage:E(this,"chat.postMessage"),scheduleMessage:E(this,"chat.scheduleMessage"),scheduledMessages:{list:pe(this,"chat.scheduledMessages.list")},unfurl:E(this,"chat.unfurl"),update:E(this,"chat.update")},this.conversations={acceptSharedInvite:E(this,"conversations.acceptSharedInvite"),approveSharedInvite:E(this,"conversations.approveSharedInvite"),archive:E(this,"conversations.archive"),canvases:{create:E(this,"conversations.canvases.create")},close:E(this,"conversations.close"),create:E(this,"conversations.create"),declineSharedInvite:E(this,"conversations.declineSharedInvite"),externalInvitePermissions:{set:E(this,"conversations.externalInvitePermissions.set")},history:E(this,"conversations.history"),info:E(this,"conversations.info"),invite:E(this,"conversations.invite"),inviteShared:E(this,"conversations.inviteShared"),join:E(this,"conversations.join"),kick:E(this,"conversations.kick"),leave:E(this,"conversations.leave"),list:pe(this,"conversations.list"),listConnectInvites:pe(this,"conversations.listConnectInvites"),mark:E(this,"conversations.mark"),members:E(this,"conversations.members"),open:E(this,"conversations.open"),rename:E(this,"conversations.rename"),replies:E(this,"conversations.replies"),requestSharedInvite:{approve:E(this,"conversations.requestSharedInvite.approve"),deny:E(this,"conversations.requestSharedInvite.deny"),list:pe(this,"conversations.requestSharedInvite.list")},setPurpose:E(this,"conversations.setPurpose"),setTopic:E(this,"conversations.setTopic"),unarchive:E(this,"conversations.unarchive")},this.dialog={open:E(this,"dialog.open")},this.dnd={endDnd:pe(this,"dnd.endDnd"),endSnooze:pe(this,"dnd.endSnooze"),info:pe(this,"dnd.info"),setSnooze:E(this,"dnd.setSnooze"),teamInfo:E(this,"dnd.teamInfo")},this.emoji={list:pe(this,"emoji.list")},this.files={completeUploadExternal:E(this,"files.completeUploadExternal"),delete:E(this,"files.delete"),getUploadURLExternal:E(this,"files.getUploadURLExternal"),info:E(this,"files.info"),list:E(this,"files.list"),revokePublicURL:E(this,"files.revokePublicURL"),sharedPublicURL:E(this,"files.sharedPublicURL"),upload:E(this,"files.upload"),uploadV2:QD(this),comments:{delete:E(this,"files.comments.delete")},remote:{add:E(this,"files.remote.add"),info:E(this,"files.remote.info"),list:E(this,"files.remote.list"),remove:E(this,"files.remote.remove"),share:E(this,"files.remote.share"),update:E(this,"files.remote.update")}},this.functions={completeError:E(this,"functions.completeError"),completeSuccess:E(this,"functions.completeSuccess")},this.migration={exchange:E(this,"migration.exchange")},this.oauth={access:E(this,"oauth.access"),v2:{access:E(this,"oauth.v2.access"),exchange:E(this,"oauth.v2.exchange")}},this.openid={connect:{token:E(this,"openid.connect.token"),userInfo:pe(this,"openid.connect.userInfo")}},this.pins={add:E(this,"pins.add"),list:E(this,"pins.list"),remove:E(this,"pins.remove")},this.reactions={add:E(this,"reactions.add"),get:E(this,"reactions.get"),list:pe(this,"reactions.list"),remove:E(this,"reactions.remove")},this.reminders={add:E(this,"reminders.add"),complete:E(this,"reminders.complete"),delete:E(this,"reminders.delete"),info:E(this,"reminders.info"),list:pe(this,"reminders.list")},this.rtm={connect:pe(this,"rtm.connect"),start:pe(this,"rtm.start")},this.search={all:E(this,"search.all"),files:E(this,"search.files"),messages:E(this,"search.messages")},this.team={accessLogs:pe(this,"team.accessLogs"),billableInfo:pe(this,"team.billableInfo"),billing:{info:E(this,"team.billing.info")},externalTeams:{disconnect:E(this,"team.externalTeams.disconnect"),list:E(this,"team.externalTeams.list")},info:pe(this,"team.info"),integrationLogs:pe(this,"team.integrationLogs"),preferences:{list:pe(this,"team.preferences.list")},profile:{get:pe(this,"team.profile.get")}},this.tooling={tokens:{rotate:E(this,"tooling.tokens.rotate")}},this.usergroups={create:E(this,"usergroups.create"),disable:E(this,"usergroups.disable"),enable:E(this,"usergroups.enable"),list:pe(this,"usergroups.list"),update:E(this,"usergroups.update"),users:{list:E(this,"usergroups.users.list"),update:E(this,"usergroups.users.update")}},this.users={conversations:E(this,"users.conversations"),deletePhoto:E(this,"users.deletePhoto"),discoverableContacts:{lookup:E(this,"users.discoverableContacts.lookup")},getPresence:E(this,"users.getPresence"),identity:E(this,"users.identity"),info:E(this,"users.info"),list:E(this,"users.list"),lookupByEmail:E(this,"users.lookupByEmail"),setPhoto:E(this,"users.setPhoto"),setPresence:E(this,"users.setPresence"),profile:{get:E(this,"users.profile.get"),set:E(this,"users.profile.set")}},this.views={open:E(this,"views.open"),publish:E(this,"views.publish"),push:E(this,"views.push"),update:E(this,"views.update")},this.stars={add:E(this,"stars.add"),list:E(this,"stars.list"),remove:E(this,"stars.remove")},this.workflows={stepCompleted:E(this,"workflows.stepCompleted"),stepFailed:E(this,"workflows.stepFailed"),updateStep:E(this,"workflows.updateStep")},new.target!==zv.WebClient&&!(new.target.prototype instanceof zv.WebClient))throw new Error("Attempt to inherit from WebClient methods without inheriting from WebClient")}};br.Methods=sl;XD(Cv(),br)});var cl=b(Mt=>{"use strict";Object.defineProperty(Mt,"__esModule",{value:!0});Mt.rapidRetryPolicy=Mt.fiveRetriesInFiveMinutes=Mt.tenRetriesInAboutThirtyMinutes=void 0;Mt.tenRetriesInAboutThirtyMinutes={retries:10,factor:1.96821,randomize:!0};Mt.fiveRetriesInFiveMinutes={retries:5,factor:3.86};Mt.rapidRetryPolicy={minTimeout:0,maxTimeout:1};var e0={tenRetriesInAboutThirtyMinutes:Mt.tenRetriesInAboutThirtyMinutes,fiveRetriesInFiveMinutes:Mt.fiveRetriesInFiveMinutes,rapidRetryPolicy:Mt.rapidRetryPolicy};Mt.default=e0});var ll=b($e=>{"use strict";var t0=$e&&$e.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:i(function(){return t[r]},"get")}),Object.defineProperty(e,n,o)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),r0=$e&&$e.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n0=$e&&$e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&t0(t,e,r);return r0(t,e),t},Yt=$e&&$e.__awaiter||function(e,t,r,n){function o(a){return a instanceof r?a:new r(function(s){s(a)})}return i(o,"adopt"),new(r||(r=Promise))(function(a,s){function u(c){try{p(n.next(c))}catch(m){s(m)}}i(u,"fulfilled");function l(c){try{p(n.throw(c))}catch(m){s(m)}}i(l,"rejected");function p(c){c.done?a(c.value):o(c.value).then(u,l)}i(p,"step"),p((n=n.apply(e,t||[])).next())})},Li=$e&&$e.__await||function(e){return this instanceof Li?(this.v=e,this):new Li(e)},i0=$e&&$e.__asyncGenerator||function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(e,t||[]),o,a=[];return o={},u("next"),u("throw"),u("return",s),o[Symbol.asyncIterator]=function(){return this},o;function s(d){return function(h){return Promise.resolve(h).then(d,m)}}function u(d,h){n[d]&&(o[d]=function(x){return new Promise(function(y,v){a.push([d,x,y,v])>1||l(d,x)})},h&&(o[d]=h(o[d])))}function l(d,h){try{p(n[d](h))}catch(x){f(a[0][3],x)}}function p(d){d.value instanceof Li?Promise.resolve(d.value.v).then(c,m):f(a[0][2],d)}function c(d){l("next",d)}function m(d){l("throw",d)}function f(d,h){d(h),a.shift(),a.length&&l(a[0][0],a[0][1])}},o0=$e&&$e.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof __values=="function"?__values(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(a){r[a]=e[a]&&function(s){return new Promise(function(u,l){s=e[a](s),o(u,l,s.done,s.value)})}}function o(a,s,u,l){Promise.resolve(l).then(function(p){a({value:p,done:u})},s)}},nn=$e&&$e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty($e,"__esModule",{value:!0});$e.buildThreadTsWarningMessage=$e.WebClient=$e.WebClientEvent=void 0;var $v=require("node:path"),a0=require("node:querystring"),s0=require("node:util"),u0=nn(require("node:zlib")),l0=nn(cg()),c0=nn(mg()),p0=nn(gg()),dl=nn(vg()),d0=nn(Ag()),pl=n0(Dg()),Ui=ia(),sa=ty(),f0=nn(ry()),m0=nl(),Rv=ol(),h0=ul(),g0=cl(),y0=["delete","common","get","put","head","post","link","patch","purge","unlink","options"],v0="Untitled",x0=200,b0=i(()=>{},"noopPageReducer"),fl;(function(e){e.RATE_LIMITED="rate_limited"})(fl||($e.WebClientEvent=fl={}));var Mi=class e extends h0.Methods{static{i(this,"WebClient")}constructor(t,{slackApiUrl:r="https://slack.com/api/",logger:n=void 0,logLevel:o=void 0,maxRequestConcurrency:a=100,retryConfig:s=g0.tenRetriesInAboutThirtyMinutes,agent:u=void 0,tls:l=void 0,timeout:p=0,rejectRateLimitedCalls:c=!1,headers:m={},teamId:f=void 0,allowAbsoluteUrls:d=!0,attachOriginalToWebAPIRequestError:h=!0,requestInterceptor:x=void 0,adapter:y=void 0}={}){super(),this.token=t,this.slackApiUrl=r,this.retryConfig=s,this.requestQueue=new d0.default({concurrency:a}),this.tlsConfig=l!==void 0?l:{},this.rejectRateLimitedCalls=c,this.teamId=f,this.allowAbsoluteUrls=d,this.attachOriginalToWebAPIRequestError=h,typeof n<"u"?(this.logger=n,typeof o<"u"&&this.logger.debug("The logLevel given to WebClient was ignored as you also gave logger")):this.logger=(0,Rv.getLogger)(e.loggerName,o??Rv.LogLevel.INFO,n),this.token&&!m.Authorization&&(m.Authorization=`Bearer ${this.token}`),this.axios=l0.default.create({adapter:y?v=>y(Object.assign(Object.assign({},v),{adapter:void 0})):void 0,timeout:p,baseURL:r,allowAbsoluteUrls:d,headers:(0,p0.default)()?m:Object.assign({"User-Agent":(0,m0.getUserAgent)()},m),httpAgent:u,httpsAgent:u,validateStatus:i(()=>!0,"validateStatus"),maxRedirects:0,proxy:!1}),this.axios.defaults.headers.post["Content-Type"]=void 0,x&&this.axios.interceptors.request.use(x,null),this.axios.interceptors.request.use(this.serializeApiCallData.bind(this),null),this.logger.debug("initialized")}apiCall(t,r={}){return Yt(this,void 0,void 0,function*(){if(this.logger.debug(`apiCall('${t}') start`),P0(t,this.logger),w0(t,this.logger,r),E0(t,this.logger,r),typeof r=="string"||typeof r=="number"||typeof r=="boolean")throw new TypeError(`Expected an options argument but instead received a ${typeof r}`);if((0,sa.warnIfNotUsingFilesUploadV2)(t,this.logger),t==="files.uploadV2")return this.filesUploadV2(r);let n={};r.token&&(n.Authorization=`Bearer ${r.token}`);let o=yield this.makeRequest(t,Object.assign({team_id:this.teamId},r),n),a=yield this.buildResult(o);if(this.logger.debug(`http request result: ${JSON.stringify(a)}`),a.response_metadata!==void 0&&a.response_metadata.warnings!==void 0&&a.response_metadata.warnings.forEach(this.logger.warn.bind(this.logger)),a.response_metadata!==void 0&&a.response_metadata.messages!==void 0)for(let s of a.response_metadata.messages){let u=/\[ERROR\](.*)/,l=/\[WARN\](.*)/;if(u.test(s)){let p=s.match(u);p!=null&&this.logger.error(p[1].trim())}else if(l.test(s)){let p=s.match(l);p!=null&&this.logger.warn(p[1].trim())}}if(!a.ok&&o.headers["content-type"]!=="application/gzip"||"ok"in a&&a.ok===!1)throw(0,Ui.platformErrorFromResult)(a);return this.logger.debug(`apiCall('${t}') end`),a})}paginate(t,r,n,o){let a=(()=>{if(r!==void 0&&typeof r.limit=="number"){let{limit:p}=r;return r.limit=void 0,p}return x0})();function s(){return i0(this,arguments,i(function*(){let c,m={limit:a};for(r!==void 0&&r.cursor!==void 0&&(m.cursor=r.cursor);c===void 0||m!==void 0;)c=yield Li(this.apiCall(t,Object.assign(r!==void 0?r:{},m))),yield yield Li(c),m=_0(c,a)},"generatePages_1"))}if(i(s,"generatePages"),n===void 0)return s.call(this);let u=o!==void 0?o:b0,l=0;return Yt(this,void 0,void 0,function*(){var p,c,m,f;let d=s.call(this),x=(yield d.next(void 0)).value,y=u(void 0,x,l);if(l+=1,n(x))return y;try{for(var v=!0,P=o0(d),w;w=yield P.next(),p=w.done,!p;v=!0){f=w.value,v=!1;let I=f;if(y=u(y,I,l),n(I))return y;l+=1}}catch(I){c={error:I}}finally{try{!v&&!p&&(m=P.return)&&(yield m.call(P))}finally{if(c)throw c.error}}return y})}filesUploadV2(t){return Yt(this,void 0,void 0,function*(){this.logger.debug("files.uploadV2() start");let r=yield this.getAllFileUploads(t);return(yield this.fetchAllUploadURLExternal(r)).forEach((a,s)=>{r[s].upload_url=a.upload_url,r[s].file_id=a.file_id}),yield this.postFileUploadsToExternalURL(r,t),{ok:!0,files:yield this.completeFileUploads(r)}})}fetchAllUploadURLExternal(t){return Yt(this,void 0,void 0,function*(){return Promise.all(t.map(r=>{let n={filename:r.filename,length:r.length,alt_text:r.alt_text,snippet_type:r.snippet_type};return"token"in r&&(n.token=r.token),this.files.getUploadURLExternal(n)}))})}completeFileUploads(t){return Yt(this,void 0,void 0,function*(){let r=Object.values((0,sa.getAllFileUploadsToComplete)(t));return Promise.all(r.map(n=>this.files.completeUploadExternal(n)))})}postFileUploadsToExternalURL(t,r){return Yt(this,void 0,void 0,function*(){return Promise.all(t.map(n=>Yt(this,void 0,void 0,function*(){let{upload_url:o,file_id:a,filename:s,data:u}=n,l=u;if(o){let p={};r.token&&(p.Authorization=`Bearer ${r.token}`);let c=yield this.makeRequest(o,{body:l},p);if(c.status!==200)return Promise.reject(Error(`Failed to upload file (id:${a}, filename: ${s})`));let m={ok:!0,body:c.data};return Promise.resolve(m)}return Promise.reject(Error(`No upload url found for file (id: ${a}, filename: ${s}`))})))})}getAllFileUploads(t){return Yt(this,void 0,void 0,function*(){let r=[];return("file"in t||"content"in t)&&r.push(yield(0,sa.getFileUploadJob)(t,this.logger)),"file_uploads"in t&&(r=r.concat(yield(0,sa.getMultipleFileUploadJobs)(t,this.logger))),r})}makeRequest(t,r,n={}){return Yt(this,void 0,void 0,function*(){let o=i(()=>this.requestQueue.add(()=>Yt(this,void 0,void 0,function*(){let a=this.deriveRequestUrl(t);try{let s=Object.assign({headers:n},this.tlsConfig);t.endsWith("admin.analytics.getFile")&&(s.responseType="arraybuffer"),t.endsWith("apps.event.authorizations.list")&&(r.token=void 0),this.logger.debug(`http request url: ${a}`),this.logger.debug(`http request body: ${JSON.stringify(Nv(r))}`);let u=Object.keys(this.axios.defaults.headers).reduce((p,c)=>(y0.includes(c)||(p[c]=this.axios.defaults.headers[c]),p),{});u=Object.assign(Object.assign(Object.assign({},this.axios.defaults.headers.common),u),n),this.logger.debug(`http request headers: ${JSON.stringify(Nv(u))}`);let l=yield this.axios.post(t,r,s);if(this.logger.debug("http response received"),l.status===429){let p=Dv(l);throw p!==void 0?(this.emit(fl.RATE_LIMITED,p,{url:t,body:r}),this.rejectRateLimitedCalls?new pl.AbortError((0,Ui.rateLimitedErrorWithDelay)(p)):(this.logger.info(`API Call failed due to rate limiting. Will retry in ${p} seconds.`),this.requestQueue.pause(),yield(0,f0.default)(p*1e3),this.requestQueue.start(),new Error(`A rate limit was exceeded (url: ${t}, retry-after: ${p})`))):new pl.AbortError(new Error(`Retry header did not contain a valid timeout (url: ${t}, retry-after header: ${l.headers["retry-after"]})`))}if(l.status!==200)throw(0,Ui.httpErrorFromResponse)(l);return l}catch(s){let u=s;throw this.logger.warn("http request failed",u.message),u.request?(0,Ui.requestErrorWithOriginal)(u,this.attachOriginalToWebAPIRequestError):s}})),"task");return(0,pl.default)(o,this.retryConfig)})}deriveRequestUrl(t){return(t.startsWith("https://")||t.startsWith("http://"))&&this.allowAbsoluteUrls?t:`${this.axios.getUri()+t}`}serializeApiCallData(t){let{data:r,headers:n}=t,o=!1,a=Object.entries(r).map(([u,l])=>{if(l==null)return[];let p=l;return Buffer.isBuffer(l)||(0,dl.default)(l)?o=!0:typeof l!="string"&&typeof l!="number"&&typeof l!="boolean"&&(p=JSON.stringify(l)),[u,p]});if(o){this.logger.debug("Request arguments contain binary data");let u=a.reduce((l,[p,c])=>{if(Buffer.isBuffer(c)||(0,dl.default)(c)){let m={};m.filename=(()=>{let f=c;return typeof f.name=="string"?(0,$v.basename)(f.name):typeof f.path=="string"?(0,$v.basename)(f.path):v0})(),l.append(p,c,m)}else p!==void 0&&c!==void 0&&l.append(p,c);return l},new c0.default);if(n)for(let[l,p]of Object.entries(u.getHeaders()))n[l]=p;return t.data=u,t.headers=n,t}n&&(n["Content-Type"]="application/x-www-form-urlencoded");let s={};return t.data=(0,a0.stringify)(a.reduce((u,[l,p])=>(l!==void 0&&p!==void 0&&(u[l]=p),u),s)),t.headers=n,t}buildResult(t){return Yt(this,void 0,void 0,function*(){let{data:r}=t,n=t.headers["content-type"]==="application/gzip";if(n)try{let a=yield new Promise((u,l)=>{u0.default.unzip(r,(p,c)=>p?l(p):u(c.toString().split(`
|
|
19
|
+
`)))}).then(u=>u).catch(u=>{throw u}),s=[];if(Array.isArray(a))for(let u of a)u&&u.length>0&&s.push(JSON.parse(u));r={file_data:s}}catch(a){r={ok:!1,error:a}}else!n&&t.request.path==="/api/admin.analytics.getFile"&&(r=JSON.parse(new s0.TextDecoder().decode(r)));if(typeof r=="string")try{r=JSON.parse(r)}catch{r={ok:!1,error:r}}r.response_metadata===void 0&&(r.response_metadata={}),t.headers["x-oauth-scopes"]!==void 0&&(r.response_metadata.scopes=t.headers["x-oauth-scopes"].trim().split(/\s*,\s*/)),t.headers["x-accepted-oauth-scopes"]!==void 0&&(r.response_metadata.acceptedScopes=t.headers["x-accepted-oauth-scopes"].trim().split(/\s*,\s*/));let o=Dv(t);return o!==void 0&&(r.response_metadata.retryAfter=o),r})}};$e.WebClient=Mi;Mi.loggerName="WebClient";$e.default=Mi;function _0(e,t){if(e!==void 0&&e.response_metadata!==void 0&&e.response_metadata.next_cursor!==void 0&&e.response_metadata.next_cursor!=="")return{limit:t,cursor:e.response_metadata.next_cursor}}i(_0,"paginationOptionsForNextPage");function Dv(e){if(e.headers["retry-after"]!==void 0){let t=Number.parseInt(e.headers["retry-after"],10);if(!Number.isNaN(t))return t}}i(Dv,"parseRetryHeaders");function P0(e,t){["workflows."].some(o=>new RegExp(`^${o}`).test(e))&&t.warn(`${e} is deprecated. Please check on https://api.slack.com/methods for an alternative.`)}i(P0,"warnDeprecations");function w0(e,t,r){let o=["chat.postEphemeral","chat.postMessage","chat.scheduleMessage"].includes(e),a=i(c=>Array.isArray(c.attachments)&&c.attachments.length,"hasAttachments"),s=i(c=>Array.isArray(c.attachments)&&c.attachments.some(m=>!m.fallback||m.fallback.trim()===""),"missingAttachmentFallbackDetected"),u=i(c=>c.text===void 0||c.text===null||c.text==="","isEmptyText"),l=i(()=>`The top-level \`text\` argument is missing in the request payload for a ${e} call - It's a best practice to always provide a \`text\` argument when posting a message. The \`text\` is used in places where the content cannot be rendered such as: system push notifications, assistive technology such as screen readers, etc.`,"buildMissingTextWarning"),p=i(()=>`Additionally, the attachment-level \`fallback\` argument is missing in the request payload for a ${e} call - To avoid this warning, it is recommended to always provide a top-level \`text\` argument when posting a message. Alternatively, you can provide an attachment-level \`fallback\` argument, though this is now considered a legacy field (see https://api.slack.com/reference/messaging/attachments#legacy_fields for more details).`,"buildMissingFallbackWarning");o&&typeof r=="object"&&(a(r)?s(r)&&u(r)&&(t.warn(l()),t.warn(p())):u(r)&&t.warn(l()))}i(w0,"warnIfFallbackIsMissing");function E0(e,t,r){["chat.postEphemeral","chat.postMessage","chat.scheduleMessage","files.upload"].includes(e)&&r?.thread_ts!==void 0&&typeof r?.thread_ts!="string"&&t.warn(Uv(e))}i(E0,"warnIfThreadTsIsNotString");function Uv(e){return`The given thread_ts value in the request payload for a ${e} call is a float value. We highly recommend using a string value instead.`}i(Uv,"buildThreadTsWarningMessage");$e.buildThreadTsWarningMessage=Uv;function Nv(e){let t=Object.entries(e).map(([n,o])=>{if(o==null)return[];let a=o;return(n.match(/.*token.*/)!==null||n.match(/[Aa]uthorization/))&&(a="[[REDACTED]]"),Buffer.isBuffer(o)||(0,dl.default)(o)?a="[[BINARY VALUE OMITTED]]":typeof o!="string"&&typeof o!="number"&&typeof o!="boolean"&&(a=JSON.stringify(o)),[n,a]}),r={};return t.reduce((n,[o,a])=>(o!==void 0&&a!==void 0&&(n[o]=a),n),r)}i(Nv,"redact")});var Mv=b(Lv=>{"use strict";Object.defineProperty(Lv,"__esModule",{value:!0})});var Fv=b(qv=>{"use strict";Object.defineProperty(qv,"__esModule",{value:!0})});var we=b(Me=>{"use strict";var k0=Me&&Me.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:i(function(){return t[r]},"get")}),Object.defineProperty(e,n,o)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),ml=Me&&Me.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&k0(t,e,r)},T0=Me&&Me.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Me,"__esModule",{value:!0});Me.addAppMetadata=Me.retryPolicies=Me.ErrorCode=Me.LogLevel=Me.WebClientEvent=Me.WebClient=void 0;var Bv=ll();Object.defineProperty(Me,"WebClient",{enumerable:!0,get:i(function(){return Bv.WebClient},"get")});Object.defineProperty(Me,"WebClientEvent",{enumerable:!0,get:i(function(){return Bv.WebClientEvent},"get")});var S0=ol();Object.defineProperty(Me,"LogLevel",{enumerable:!0,get:i(function(){return S0.LogLevel},"get")});var A0=ia();Object.defineProperty(Me,"ErrorCode",{enumerable:!0,get:i(function(){return A0.ErrorCode},"get")});var I0=cl();Object.defineProperty(Me,"retryPolicies",{enumerable:!0,get:i(function(){return T0(I0).default},"get")});var O0=nl();Object.defineProperty(Me,"addAppMetadata",{enumerable:!0,get:i(function(){return O0.addAppMetadata},"get")});ml(ul(),Me);ml(Mv(),Me);ml(Fv(),Me)});var vl=b((Sie,kx)=>{"use strict";var z0={}.hasOwnProperty;kx.exports=z0});var Sx=b((Aie,Tx)=>{"use strict";var $0=[].splice;Tx.exports=$0});var ir=b((Iie,Ax)=>{"use strict";var xl=Sx();function R0(e,t,r,n){var o=e.length,a=0,s;if(t<0?t=-t>o?0:o+t:t=t>o?o:t,r=r>0?r:0,n.length<1e4)s=Array.from(n),s.unshift(t,r),xl.apply(e,s);else for(r&&xl.apply(e,[t,r]);a<n.length;)s=n.slice(a,a+1e4),s.unshift(t,0),xl.apply(e,s),a+=1e4,t+=1e4}i(R0,"chunkedSplice");Ax.exports=R0});var ha=b((Cie,Ix)=>{"use strict";function D0(e){return e==null?[]:"length"in e?e:[e]}i(D0,"miniflat");Ix.exports=D0});var bl=b(($ie,Cx)=>{"use strict";var Ox=vl(),N0=ir(),U0=ha();function L0(e){for(var t={},r=-1;++r<e.length;)M0(t,e[r]);return t}i(L0,"combineExtensions");function M0(e,t){var r,n,o,a;for(r in t){n=Ox.call(e,r)?e[r]:e[r]={},o=t[r];for(a in o)n[a]=q0(U0(o[a]),Ox.call(n,a)?n[a]:[])}}i(M0,"extension");function q0(e,t){for(var r=-1,n=[];++r<e.length;)(e[r].add==="after"?t:n).push(e[r]);return N0(t,0,0,n),t}i(q0,"constructs");Cx.exports=L0});var Fi=b((Die,zx)=>{"use strict";var F0=String.fromCharCode;zx.exports=F0});var Pr=b((Nie,$x)=>{"use strict";var B0=Fi();function j0(e){return t;function t(r){return e.test(B0(r))}}i(j0,"regexCheck");$x.exports=j0});var Bi=b((Lie,Rx)=>{"use strict";var V0=Pr(),H0=V0(/[A-Za-z]/);Rx.exports=H0});var Un=b((Mie,Dx)=>{"use strict";var Z0=Pr(),W0=Z0(/[\dA-Za-z]/);Dx.exports=W0});var ga=b((qie,Nx)=>{"use strict";function G0(e){return e<32||e===127}i(G0,"asciiControl");Nx.exports=G0});var Je=b((Bie,Ux)=>{"use strict";function K0(e){return e<-2}i(K0,"markdownLineEnding");Ux.exports=K0});var Mx=b((Vie,Lx)=>{"use strict";var J0=/[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/;Lx.exports=J0});var ya=b((Hie,qx)=>{"use strict";var X0=Mx(),Y0=Pr(),Q0=Y0(X0);qx.exports=Q0});var va=b((Zie,Fx)=>{"use strict";var eN=Pr(),tN=eN(/\s/);Fx.exports=tN});var nb=b(rb=>{var jx=Bi(),Vx=Un(),Hx=ga(),rN=Je(),Zx=ya(),Wx=va(),nN={tokenize:sN,partial:!0},Gx={tokenize:uN,partial:!0},Kx={tokenize:lN,partial:!0},Ln={tokenize:pN,partial:!0},Jx={tokenize:cN,partial:!0},Xx={tokenize:oN,previous:eb},Yx={tokenize:aN,previous:Pl},wr={tokenize:iN,previous:tb},or={};rb.text=or;var on=48;for(;on<123;)or[on]=wr,on++,on===58?on=65:on===91&&(on=97);or[43]=wr;or[45]=wr;or[46]=wr;or[95]=wr;or[72]=[wr,Yx];or[104]=[wr,Yx];or[87]=[wr,Xx];or[119]=[wr,Xx];function iN(e,t,r){var n=this,o;return a;function a(f){return!Bx(f)||!tb(n.previous)||wl(n.events)?r(f):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),s(f))}function s(f){return Bx(f)?(e.consume(f),s):f===64?(e.consume(f),u):r(f)}function u(f){return f===46?e.check(Ln,m,l)(f):f===45||f===95?e.check(Ln,r,p)(f):Vx(f)?(e.consume(f),u):m(f)}function l(f){return e.consume(f),o=!0,u}function p(f){return e.consume(f),c}function c(f){return f===46?e.check(Ln,r,l)(f):u(f)}function m(f){return o?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(f)):r(f)}}i(iN,"tokenizeEmailAutolink");function oN(e,t,r){var n=this;return o;function o(s){return s!==87&&s-32!==87||!eb(n.previous)||wl(n.events)?r(s):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(nN,e.attempt(Gx,e.attempt(Kx,a),r),r)(s))}function a(s){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(s)}}i(oN,"tokenizeWwwAutolink");function aN(e,t,r){var n=this;return o;function o(h){return h!==72&&h-32!==72||!Pl(n.previous)||wl(n.events)?r(h):(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),e.consume(h),a)}function a(h){return h===84||h-32===84?(e.consume(h),s):r(h)}function s(h){return h===84||h-32===84?(e.consume(h),u):r(h)}function u(h){return h===80||h-32===80?(e.consume(h),l):r(h)}function l(h){return h===83||h-32===83?(e.consume(h),p):p(h)}function p(h){return h===58?(e.consume(h),c):r(h)}function c(h){return h===47?(e.consume(h),m):r(h)}function m(h){return h===47?(e.consume(h),f):r(h)}function f(h){return Hx(h)||Wx(h)||Zx(h)?r(h):e.attempt(Gx,e.attempt(Kx,d),r)(h)}function d(h){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(h)}}i(aN,"tokenizeHttpAutolink");function sN(e,t,r){return n;function n(l){return e.consume(l),o}function o(l){return l===87||l-32===87?(e.consume(l),a):r(l)}function a(l){return l===87||l-32===87?(e.consume(l),s):r(l)}function s(l){return l===46?(e.consume(l),u):r(l)}function u(l){return l===null||rN(l)?r(l):t(l)}}i(sN,"tokenizeWww");function uN(e,t,r){var n,o;return a;function a(l){return l===38?e.check(Jx,u,s)(l):l===46||l===95?e.check(Ln,u,s)(l):Hx(l)||Wx(l)||l!==45&&Zx(l)?u(l):(e.consume(l),a)}function s(l){return l===46?(o=n,n=void 0,e.consume(l),a):(l===95&&(n=!0),e.consume(l),a)}function u(l){return!o&&!n?t(l):r(l)}}i(uN,"tokenizeDomain");function lN(e,t){var r=0;return n;function n(s){return s===38?e.check(Jx,t,o)(s):(s===40&&r++,s===41?e.check(Ln,a,o)(s):_l(s)?t(s):Qx(s)?e.check(Ln,t,o)(s):(e.consume(s),n))}function o(s){return e.consume(s),n}function a(s){return r--,r<0?t(s):o(s)}}i(lN,"tokenizePath");function cN(e,t,r){return n;function n(s){return e.consume(s),o}function o(s){return jx(s)?(e.consume(s),o):s===59?(e.consume(s),a):r(s)}function a(s){return _l(s)?t(s):r(s)}}i(cN,"tokenizeNamedCharacterReference");function pN(e,t,r){return n;function n(a){return e.consume(a),o}function o(a){return Qx(a)?(e.consume(a),o):_l(a)?t(a):r(a)}}i(pN,"tokenizePunctuation");function Qx(e){return e===33||e===34||e===39||e===41||e===42||e===44||e===46||e===58||e===59||e===60||e===63||e===95||e===126}i(Qx,"trailingPunctuation");function _l(e){return e===null||e<0||e===32||e===60}i(_l,"pathEnd");function Bx(e){return e===43||e===45||e===46||e===95||Vx(e)}i(Bx,"gfmAtext");function eb(e){return e===null||e<0||e===32||e===40||e===42||e===95||e===126}i(eb,"previousWww");function Pl(e){return e===null||!jx(e)}i(Pl,"previousHttp");function tb(e){return e!==47&&Pl(e)}i(tb,"previousEmail");function wl(e){for(var t=e.length;t--;)if((e[t][1].type==="labelLink"||e[t][1].type==="labelImage")&&!e[t][1]._balanced)return!0}i(wl,"previous")});var ob=b((Kie,ib)=>{ib.exports=nb()});var ar=b((Jie,ab)=>{"use strict";function dN(e){return e<0||e===32}i(dN,"markdownLineEndingOrSpace");ab.exports=dN});var El=b((Yie,sb)=>{"use strict";var fN=ar(),mN=ya(),hN=va();function gN(e){if(e===null||fN(e)||hN(e))return 1;if(mN(e))return 2}i(gN,"classifyCharacter");sb.exports=gN});var ji=b((eoe,ub)=>{"use strict";function yN(e,t,r){for(var n=[],o=-1,a;++o<e.length;)a=e[o].resolveAll,a&&n.indexOf(a)<0&&(t=a(t,r),n.push(a));return t}i(yN,"resolveAll");ub.exports=yN});var Mn=b((roe,lb)=>{"use strict";var vN=Object.assign;lb.exports=vN});var Lr=b((noe,cb)=>{"use strict";var xN=Mn();function bN(e){return xN({},e)}i(bN,"shallow");cb.exports=bN});var fb=b((ooe,db)=>{db.exports=PN;var pb=El(),kl=ir(),_N=ji(),xa=Lr();function PN(e){var t=e||{},r=t.singleTilde,n={tokenize:s,resolveAll:o};return r==null&&(r=!0),{text:{126:n},insideSpan:{null:n}};function o(u,l){for(var p=-1,c,m,f,d;++p<u.length;)if(u[p][0]==="enter"&&u[p][1].type==="strikethroughSequenceTemporary"&&u[p][1]._close){for(f=p;f--;)if(u[f][0]==="exit"&&u[f][1].type==="strikethroughSequenceTemporary"&&u[f][1]._open&&u[p][1].end.offset-u[p][1].start.offset===u[f][1].end.offset-u[f][1].start.offset){u[p][1].type="strikethroughSequence",u[f][1].type="strikethroughSequence",c={type:"strikethrough",start:xa(u[f][1].start),end:xa(u[p][1].end)},m={type:"strikethroughText",start:xa(u[f][1].end),end:xa(u[p][1].start)},d=[["enter",c,l],["enter",u[f][1],l],["exit",u[f][1],l],["enter",m,l]],kl(d,d.length,0,_N(l.parser.constructs.insideSpan.null,u.slice(f+1,p),l)),kl(d,d.length,0,[["exit",m,l],["enter",u[p][1],l],["exit",u[p][1],l],["exit",c,l]]),kl(u,f-1,p-f+3,d),p=f+d.length-2;break}}return a(u)}i(o,"resolveAllStrikethrough");function a(u){for(var l=-1,p=u.length;++l<p;)u[l][1].type==="strikethroughSequenceTemporary"&&(u[l][1].type="data");return u}i(a,"removeRemainingSequences");function s(u,l,p){var c=this.previous,m=this.events,f=0;return d;function d(x){return x!==126||c===126&&m[m.length-1][1].type!=="characterEscape"?p(x):(u.enter("strikethroughSequenceTemporary"),h(x))}function h(x){var y=pb(c),v,P;return x===126?f>1?p(x):(u.consume(x),f++,h):f<2&&!r?p(x):(v=u.exit("strikethroughSequenceTemporary"),P=pb(x),v._open=!P||P===2&&y,v._close=!y||y===2&&P,l(x))}}i(s,"tokenizeStrikethrough")}i(PN,"create")});var sr=b((soe,mb)=>{"use strict";function wN(e){return e===-2||e===-1||e===32}i(wN,"markdownSpace");mb.exports=wN});var it=b((loe,gb)=>{"use strict";var hb=sr();function EN(e,t,r,n){var o=n?n-1:1/0,a=0;return s;function s(l){return hb(l)?(e.enter(r),u(l)):t(l)}function u(l){return hb(l)&&a++<o?(e.consume(l),u):(e.exit(r),t(l))}}i(EN,"spaceFactory");gb.exports=EN});var xb=b(vb=>{vb.flow={null:{tokenize:SN,resolve:TN,interruptible:!0}};var Tl=it(),kN={tokenize:AN,partial:!0},yb={tokenize:IN,partial:!0};function TN(e,t){for(var r=e.length,n=-1,o,a,s,u,l,p,c,m,f,d;++n<r;)o=e[n][1],u&&(o.type==="temporaryTableCellContent"&&(m=m||n,f=n),(o.type==="tableCellDivider"||o.type==="tableRow")&&f&&(p={type:"tableContent",start:e[m][1].start,end:e[f][1].end},c={type:"chunkText",start:p.start,end:p.end,contentType:"text"},e.splice(m,f-m+1,["enter",p,t],["enter",c,t],["exit",c,t],["exit",p,t]),n-=f-m-3,r=e.length,m=void 0,f=void 0)),e[n][0]==="exit"&&d&&d+1<n&&(o.type==="tableCellDivider"||o.type==="tableRow"&&(d+3<n||e[d][1].type!=="whitespace"))&&(l={type:s?"tableDelimiter":a?"tableHeader":"tableData",start:e[d][1].start,end:e[n][1].end},e.splice(n+(o.type==="tableCellDivider"?1:0),0,["exit",l,t]),e.splice(d,0,["enter",l,t]),n+=2,r=e.length,d=n+1),o.type==="tableRow"&&(u=e[n][0]==="enter",u&&(d=n+1)),o.type==="tableDelimiterRow"&&(s=e[n][0]==="enter",s&&(d=n+1)),o.type==="tableHead"&&(a=e[n][0]==="enter");return e}i(TN,"resolveTable");function SN(e,t,r){var n=[],o=0,a,s;return u;function u(T){return T===null||T===-5||T===-4||T===-3?r(T):(e.enter("table")._align=n,e.enter("tableHead"),e.enter("tableRow"),T===124?l(T):(o++,e.enter("temporaryTableCellContent"),m(T)))}function l(T){return e.enter("tableCellDivider"),e.consume(T),e.exit("tableCellDivider"),a=!0,p}function p(T){return T===null||T===-5||T===-4||T===-3?d(T):T===-2||T===-1||T===32?(e.enter("whitespace"),e.consume(T),c):(a&&(a=void 0,o++),T===124?l(T):(e.enter("temporaryTableCellContent"),m(T)))}function c(T){return T===-2||T===-1||T===32?(e.consume(T),c):(e.exit("whitespace"),p(T))}function m(T){return T===null||T<0||T===32||T===124?(e.exit("temporaryTableCellContent"),p(T)):(e.consume(T),T===92?f:m)}function f(T){return T===92||T===124?(e.consume(T),m):m(T)}function d(T){return T===null?r(T):(e.exit("tableRow"),e.exit("tableHead"),e.enter("lineEnding"),e.consume(T),e.exit("lineEnding"),e.check(kN,r,Tl(e,h,"linePrefix",4)))}function h(T){return T===null||T<0||T===32?r(T):(e.enter("tableDelimiterRow"),x(T))}function x(T){return T===null||T===-5||T===-4||T===-3?I(T):T===-2||T===-1||T===32?(e.enter("whitespace"),e.consume(T),y):T===45?(e.enter("tableDelimiterFiller"),e.consume(T),s=!0,n.push(null),v):T===58?(e.enter("tableDelimiterAlignment"),e.consume(T),e.exit("tableDelimiterAlignment"),n.push("left"),P):T===124?(e.enter("tableCellDivider"),e.consume(T),e.exit("tableCellDivider"),x):r(T)}function y(T){return T===-2||T===-1||T===32?(e.consume(T),y):(e.exit("whitespace"),x(T))}function v(T){return T===45?(e.consume(T),v):(e.exit("tableDelimiterFiller"),T===58?(e.enter("tableDelimiterAlignment"),e.consume(T),e.exit("tableDelimiterAlignment"),n[n.length-1]=n[n.length-1]==="left"?"center":"right",w):x(T))}function P(T){return T===45?(e.enter("tableDelimiterFiller"),e.consume(T),s=!0,v):r(T)}function w(T){return T===null||T===-5||T===-4||T===-3?I(T):T===-2||T===-1||T===32?(e.enter("whitespace"),e.consume(T),y):T===124?(e.enter("tableCellDivider"),e.consume(T),e.exit("tableCellDivider"),x):r(T)}function I(T){return e.exit("tableDelimiterRow"),!s||o!==n.length?r(T):T===null?N(T):e.check(yb,N,D)(T)}function N(T){return e.exit("table"),t(T)}function D(T){return e.enter("lineEnding"),e.consume(T),e.exit("lineEnding"),Tl(e,B,"linePrefix",4)}function B(T){return e.enter("tableBody"),W(T)}function W(T){return e.enter("tableRow"),T===124?G(T):(e.enter("temporaryTableCellContent"),L(T))}function G(T){return e.enter("tableCellDivider"),e.consume(T),e.exit("tableCellDivider"),M}function M(T){return T===null||T===-5||T===-4||T===-3?se(T):T===-2||T===-1||T===32?(e.enter("whitespace"),e.consume(T),z):T===124?G(T):(e.enter("temporaryTableCellContent"),L(T))}function z(T){return T===-2||T===-1||T===32?(e.consume(T),z):(e.exit("whitespace"),M(T))}function L(T){return T===null||T<0||T===32||T===124?(e.exit("temporaryTableCellContent"),M(T)):(e.consume(T),T===92?ae:L)}function ae(T){return T===92||T===124?(e.consume(T),L):L(T)}function se(T){return e.exit("tableRow"),T===null?xe(T):e.check(yb,xe,De)(T)}function xe(T){return e.exit("tableBody"),N(T)}function De(T){return e.enter("lineEnding"),e.consume(T),e.exit("lineEnding"),Tl(e,W,"linePrefix",4)}}i(SN,"tokenizeTable");function AN(e,t,r){return n;function n(s){return s!==45?r(s):(e.enter("setextUnderline"),o(s))}function o(s){return s===45?(e.consume(s),o):a(s)}function a(s){return s===-2||s===-1||s===32?(e.consume(s),a):s===null||s===-5||s===-4||s===-3?t(s):r(s)}}i(AN,"tokenizeSetextUnderlineMini");function IN(e,t,r){var n=0;return o;function o(s){return e.enter("check"),e.consume(s),a}function a(s){return s===-1||s===32?(e.consume(s),n++,n===4?t:a):s===null||s<0?t(s):r(s)}}i(IN,"tokenizeNextPrefixedOrBlank")});var _b=b((foe,bb)=>{bb.exports=xb()});var Sl=b((moe,Pb)=>{"use strict";function ON(e){for(var t=-1,r=0;++t<e.length;)r+=typeof e[t]=="string"?e[t].length:1;return r}i(ON,"sizeChunks");Pb.exports=ON});var qn=b((goe,wb)=>{"use strict";var CN=Sl();function zN(e,t){var r=e[e.length-1];return!r||r[1].type!==t?0:CN(r[2].sliceStream(r[1]))}i(zN,"prefixSize");wb.exports=zN});var kb=b(Eb=>{var $N=ar(),RN=it(),DN=qn(),NN={tokenize:UN};Eb.text={91:NN};function UN(e,t,r){var n=this;return o;function o(u){return u!==91||n.previous!==null||!n._gfmTasklistFirstContentOfListItem?r(u):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),a)}function a(u){return u===-2||u===32?(e.enter("taskListCheckValueUnchecked"),e.consume(u),e.exit("taskListCheckValueUnchecked"),s):u===88||u===120?(e.enter("taskListCheckValueChecked"),e.consume(u),e.exit("taskListCheckValueChecked"),s):r(u)}function s(u){return u===93?(e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),e.check({tokenize:LN},t,r)):r(u)}}i(UN,"tokenizeTasklistCheck");function LN(e,t,r){var n=this;return RN(e,o,"whitespace");function o(a){return DN(n.events,"whitespace")&&a!==null&&!$N(a)?t(a):r(a)}}i(LN,"spaceThenNonSpace")});var Sb=b((boe,Tb)=>{Tb.exports=kb()});var Ib=b((_oe,Ab)=>{var MN=bl(),qN=ob(),FN=fb(),BN=_b(),jN=Sb();Ab.exports=VN;function VN(e){return MN([qN,FN(e),BN,jN])}i(VN,"create")});var Cb=b((woe,Ob)=>{Ob.exports=Ib()});var $b=b((Eoe,zb)=>{"use strict";zb.exports=HN;function HN(e,t){var r=String(e),n=0,o;if(typeof t!="string")throw new Error("Expected character");for(o=r.indexOf(t);o!==-1;)n++,o=r.indexOf(t,o+t.length);return n}i(HN,"ccount")});var ba=b((Toe,Db)=>{"use strict";Db.exports=Rb;function Rb(e){if(e==null)return KN;if(typeof e=="string")return GN(e);if(typeof e=="object")return"length"in e?WN(e):ZN(e);if(typeof e=="function")return e;throw new Error("Expected function, string, or object as test")}i(Rb,"convert");function ZN(e){return t;function t(r){var n;for(n in e)if(r[n]!==e[n])return!1;return!0}}i(ZN,"allFactory");function WN(e){for(var t=[],r=-1;++r<e.length;)t[r]=Rb(e[r]);return n;function n(){for(var o=-1;++o<t.length;)if(t[o].apply(this,arguments))return!0;return!1}}i(WN,"anyFactory");function GN(e){return t;function t(r){return!!(r&&r.type===e)}}i(GN,"typeFactory");function KN(){return!0}i(KN,"ok")});var Ub=b((Aoe,Nb)=>{Nb.exports=JN;function JN(e){return"\x1B[33m"+e+"\x1B[39m"}i(JN,"color")});var Il=b((Ooe,qb)=>{"use strict";qb.exports=_a;var XN=ba(),YN=Ub(),Lb=!0,Mb="skip",Al=!1;_a.CONTINUE=Lb;_a.SKIP=Mb;_a.EXIT=Al;function _a(e,t,r,n){var o,a;typeof t=="function"&&typeof r!="function"&&(n=r,r=t,t=null),a=XN(t),o=n?-1:1,s(e,null,[])();function s(u,l,p){var c=typeof u=="object"&&u!==null?u:{},m;return typeof c.type=="string"&&(m=typeof c.tagName=="string"?c.tagName:typeof c.name=="string"?c.name:void 0,f.displayName="node ("+YN(c.type+(m?"<"+m+">":""))+")"),f;function f(){var d=p.concat(u),h=[],x,y;if((!t||a(u,l,p[p.length-1]||null))&&(h=QN(r(u,p)),h[0]===Al))return h;if(u.children&&h[0]!==Mb)for(y=(n?u.children.length:-1)+o;y>-1&&y<u.children.length;){if(x=s(u.children[y],y,d)(),x[0]===Al)return x;y=typeof x[1]=="number"?x[1]:y+o}return h}i(f,"visit")}i(s,"factory")}i(_a,"visitParents");function QN(e){return e!==null&&typeof e=="object"&&"length"in e?e:typeof e=="number"?[Lb,e]:[e]}i(QN,"toResult")});var Bb=b((zoe,Fb)=>{"use strict";Fb.exports=e=>{if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}});var Wb=b(($oe,Zb)=>{"use strict";Zb.exports=i1;var e1=Il(),t1=ba(),r1=Bb(),n1=[].splice;function i1(e,t,r,n){var o,a;return typeof t=="string"||t&&typeof t.exec=="function"?a=[[t,r]]:(a=t,n=r),o=n||{},jb(e,o,s(o1(a))),e;function s(u){var l=u[0];return p;function p(c,m){var f=l[0],d=l[1],h=[],x=0,y=m.children.indexOf(c),v,P,w,I;for(f.lastIndex=0,P=f.exec(c.value);P&&(v=P.index,I=d.apply(null,[].concat(P,{index:P.index,input:P.input})),I!==!1&&(x!==v&&h.push({type:"text",value:c.value.slice(x,v)}),typeof I=="string"&&I.length>0&&(I={type:"text",value:I}),I&&(h=[].concat(h,I)),x=v+P[0].length),!!f.global);)P=f.exec(c.value);if(v===void 0?(h=[c],y--):(x<c.value.length&&h.push({type:"text",value:c.value.slice(x)}),h.unshift(y,1),n1.apply(m.children,h)),u.length>1)for(w=s(u.slice(1)),v=-1;++v<h.length;)c=h[v],c.type==="text"?w(c,m):jb(c,o,w);return y+h.length+1}}i(s,"handlerFactory")}i(i1,"findAndReplace");function jb(e,t,r){var n=t1(t.ignore||[]),o=[];return e1(e,"text",a),o;function a(s,u){for(var l=-1,p,c;++l<u.length;){if(p=u[l],n(p,c?c.children.indexOf(p):void 0,c))return;c=p}return r(s,c)}i(a,"visitor")}i(jb,"search");function o1(e){var t=[],r,n;if(typeof e!="object")throw new Error("Expected array or object as schema");if("length"in e)for(n=-1;++n<e.length;)t.push([Vb(e[n][0]),Hb(e[n][1])]);else for(r in e)t.push([Vb(r),Hb(e[r])]);return t}i(o1,"toPairs");function Vb(e){return typeof e=="string"?new RegExp(r1(e),"g"):e}i(Vb,"toExpression");function Hb(e){return typeof e=="function"?e:t;function t(){return e}}i(Hb,"toFunction")});var Jb=b(Pa=>{var Gb=$b(),a1=Wb(),s1=ya(),u1=va();Pa.transforms=[m1];Pa.enter={literalAutolink:l1,literalAutolinkEmail:Ol,literalAutolinkHttp:Ol,literalAutolinkWww:Ol};Pa.exit={literalAutolink:f1,literalAutolinkEmail:d1,literalAutolinkHttp:c1,literalAutolinkWww:p1};function l1(e){this.enter({type:"link",title:null,url:"",children:[]},e)}i(l1,"enterLiteralAutolink");function Ol(e){this.config.enter.autolinkProtocol.call(this,e)}i(Ol,"enterLiteralAutolinkValue");function c1(e){this.config.exit.autolinkProtocol.call(this,e)}i(c1,"exitLiteralAutolinkHttp");function p1(e){this.config.exit.data.call(this,e),this.stack[this.stack.length-1].url="http://"+this.sliceSerialize(e)}i(p1,"exitLiteralAutolinkWww");function d1(e){this.config.exit.autolinkEmail.call(this,e)}i(d1,"exitLiteralAutolinkEmail");function f1(e){this.exit(e)}i(f1,"exitLiteralAutolink");function m1(e){a1(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/i,h1],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/,g1]],{ignore:["link","linkReference"]})}i(m1,"transformGfmAutolinkLiterals");function h1(e,t,r,n,o){var a="",s,u;return!Kb(o)||(/^w/i.test(t)&&(r=t+r,t="",a="http://"),!y1(r))||(s=v1(r+n),!s[0])?!1:(u={type:"link",title:null,url:a+t+s[0],children:[{type:"text",value:t+s[0]}]},s[1]&&(u=[u,{type:"text",value:s[1]}]),u)}i(h1,"findUrl");function g1(e,t,r,n){return!Kb(n,!0)||/[_-]$/.test(r)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+r,children:[{type:"text",value:t+"@"+r}]}}i(g1,"findEmail");function y1(e){var t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}i(y1,"isCorrectDomain");function v1(e){var t=/[!"&'),.:;<>?\]}]+$/.exec(e),r,n,o;if(t)for(e=e.slice(0,t.index),t=t[0],r=t.indexOf(")"),n=Gb(e,"("),o=Gb(e,")");r!==-1&&n>o;)e+=t.slice(0,r+1),t=t.slice(r+1),r=t.indexOf(")"),o++;return[e,t]}i(v1,"splitUrl");function Kb(e,t){var r=e.input.charCodeAt(e.index-1);return(r!==r||u1(r)||s1(r))&&(!t||r!==47)}i(Kb,"previous")});var Xb=b(wa=>{wa.canContainEols=["delete"];wa.enter={strikethrough:x1};wa.exit={strikethrough:b1};function x1(e){this.enter({type:"delete",children:[]},e)}i(x1,"enterStrikethrough");function b1(e){this.exit(e)}i(b1,"exitStrikethrough")});var Qb=b(zl=>{zl.enter={table:_1,tableData:Yb,tableHeader:Yb,tableRow:w1};zl.exit={codeText:E1,table:P1,tableData:Cl,tableHeader:Cl,tableRow:Cl};function _1(e){this.enter({type:"table",align:e._align,children:[]},e),this.setData("inTable",!0)}i(_1,"enterTable");function P1(e){this.exit(e),this.setData("inTable")}i(P1,"exitTable");function w1(e){this.enter({type:"tableRow",children:[]},e)}i(w1,"enterRow");function Cl(e){this.exit(e)}i(Cl,"exit");function Yb(e){this.enter({type:"tableCell",children:[]},e)}i(Yb,"enterCell");function E1(e){var t=this.resume();this.getData("inTable")&&(t=t.replace(/\\([\\|])/g,k1)),this.stack[this.stack.length-1].value=t,this.exit(e)}i(E1,"exitCodeText");function k1(e,t){return t==="|"?t:e}i(k1,"replace")});var r_=b(t_=>{t_.exit={taskListCheckValueChecked:e_,taskListCheckValueUnchecked:e_,paragraph:T1};function e_(e){this.stack[this.stack.length-2].checked=e.type==="taskListCheckValueChecked"}i(e_,"exitCheck");function T1(e){var t=this.stack[this.stack.length-2],r=this.stack[this.stack.length-1],n=t.children,o=r.children[0],a=-1,s;if(t&&t.type==="listItem"&&typeof t.checked=="boolean"&&o&&o.type==="text"){for(;++a<n.length;)if(n[a].type==="paragraph"){s=n[a];break}s===r&&(o.value=o.value.slice(1),o.value.length===0?r.children.shift():(o.position.start.column++,o.position.start.offset++,r.position.start=Object.assign({},o.position.start)))}this.exit(e)}i(T1,"exitParagraphWithTaskListItem")});var i_=b((joe,n_)=>{var S1=Jb(),A1=Xb(),I1=Qb(),O1=r_(),C1={}.hasOwnProperty;n_.exports=z1([S1,A1,I1,O1]);function z1(e){for(var t={transforms:[],canContainEols:[]},r=e.length,n=-1;++n<r;)$1(t,e[n]);return t}i(z1,"configure");function $1(e,t){var r,n,o;for(r in t)n=C1.call(e,r)?e[r]:e[r]={},o=t[r],r==="canContainEols"||r==="transforms"?e[r]=[].concat(n,o):Object.assign(n,o)}i($1,"extension")});var a_=b(o_=>{var $l="phrasing",Rl=["autolink","link","image","label"];o_.unsafe=[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:$l,notInConstruct:Rl},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:$l,notInConstruct:Rl},{character:":",before:"[ps]",after:"\\/",inConstruct:$l,notInConstruct:Rl}]});var ur=b((Zoe,s_)=>{s_.exports=R1;function R1(e,t,r){for(var n=e.children||[],o=[],a=-1,s=r.before,u,l,p;++a<n.length;)p=n[a],a+1<n.length?(l=t.handle.handlers[n[a+1].type],l&&l.peek&&(l=l.peek),u=l?l(n[a+1],e,t,{before:"",after:""}).charAt(0):""):u=r.after,o.length>0&&(s==="\r"||s===`
|
|
20
|
+
`)&&p.type==="html"&&(o[o.length-1]=o[o.length-1].replace(/(\r?\n|\r)$/," "),s=" "),o.push(t.handle(p,e,t,{before:s,after:u})),s=o[o.length-1].slice(-1);return o.join("")}i(R1,"phrasing")});var l_=b(Dl=>{var D1=ur();Dl.unsafe=[{character:"~",inConstruct:"phrasing"}];Dl.handlers={delete:u_};u_.peek=N1;function u_(e,t,r){var n=r.enter("emphasis"),o=D1(e,r,{before:"~",after:"~"});return n(),"~~"+o+"~~"}i(u_,"handleDelete");function N1(){return"~"}i(N1,"peekDelete")});var Nl=b((Joe,c_)=>{c_.exports=U1;function U1(e){var t,r;return e._compiled||(t=e.before?"(?:"+e.before+")":"",r=e.after?"(?:"+e.after+")":"",e.atBreak&&(t="[\\r\\n][\\t ]*"+t),e._compiled=new RegExp((t?"("+t+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(r||""),"g")),e._compiled}i(U1,"patternCompile")});var Ul=b((Yoe,d_)=>{d_.exports=p_;p_.peek=M1;var L1=Nl();function p_(e,t,r){for(var n=e.value||"",o="`",a=-1,s,u,l,p;new RegExp("(^|[^`])"+o+"([^`]|$)").test(n);)o+="`";for(/[^ \r\n]/.test(n)&&(/[ \r\n`]/.test(n.charAt(0))||/[ \r\n`]/.test(n.charAt(n.length-1)))&&(n=" "+n+" ");++a<r.unsafe.length;)if(s=r.unsafe[a],!!s.atBreak)for(u=L1(s);l=u.exec(n);)p=l.index,n.charCodeAt(p)===10&&n.charCodeAt(p-1)===13&&p--,n=n.slice(0,p)+" "+n.slice(l.index+1);return o+n+o}i(p_,"inlineCode");function M1(){return"`"}i(M1,"inlineCodePeek")});var an=b((eae,f_)=>{"use strict";var Er="",Ll;f_.exports=q1;function q1(e,t){if(typeof e!="string")throw new TypeError("expected a string");if(t===1)return e;if(t===2)return e+e;var r=e.length*t;if(Ll!==e||typeof Ll>"u")Ll=e,Er="";else if(Er.length>=r)return Er.substr(0,r);for(;r>Er.length&&t>1;)t&1&&(Er+=e),t>>=1,e+=e;return Er+=e,Er=Er.substr(0,r),Er}i(q1,"repeat")});var v_=b((rae,y_)=>{"use strict";var Fn=an();y_.exports=W1;var F1=/ +$/,sn=" ",B1=`
|
|
21
|
+
`,j1="-",Ea=":",m_="|",h_=0,V1=67,H1=76,Z1=82,ka=99,Ml=108,Ta=114;function W1(e,t){for(var r=t||{},n=r.padding!==!1,o=r.delimiterStart!==!1,a=r.delimiterEnd!==!1,s=(r.align||[]).concat(),u=r.alignDelimiters!==!1,l=[],p=r.stringLength||K1,c=-1,m=e.length,f=[],d=[],h=[],x=[],y=[],v=0,P,w,I,N,D,B,W,G,M,z,L;++c<m;){for(P=e[c],w=-1,I=P.length,h=[],x=[],I>v&&(v=I);++w<I;)B=G1(P[w]),u===!0&&(D=p(B),x[w]=D,N=y[w],(N===void 0||D>N)&&(y[w]=D)),h.push(B);f[c]=h,d[c]=x}if(w=-1,I=v,typeof s=="object"&&"length"in s)for(;++w<I;)l[w]=g_(s[w]);else for(L=g_(s);++w<I;)l[w]=L;for(w=-1,I=v,h=[],x=[];++w<I;)L=l[w],M="",z="",L===Ml?M=Ea:L===Ta?z=Ea:L===ka&&(M=Ea,z=Ea),D=u?Math.max(1,y[w]-M.length-z.length):1,B=M+Fn(j1,D)+z,u===!0&&(D=M.length+D+z.length,D>y[w]&&(y[w]=D),x[w]=D),h[w]=B;for(f.splice(1,0,h),d.splice(1,0,x),c=-1,m=f.length,W=[];++c<m;){for(h=f[c],x=d[c],w=-1,I=v,G=[];++w<I;)B=h[w]||"",M="",z="",u===!0&&(D=y[w]-(x[w]||0),L=l[w],L===Ta?M=Fn(sn,D):L===ka?D%2===0?(M=Fn(sn,D/2),z=M):(M=Fn(sn,D/2+.5),z=Fn(sn,D/2-.5)):z=Fn(sn,D)),o===!0&&w===0&&G.push(m_),n===!0&&!(u===!1&&B==="")&&(o===!0||w!==0)&&G.push(sn),u===!0&&G.push(M),G.push(B),u===!0&&G.push(z),n===!0&&G.push(sn),(a===!0||w!==I-1)&&G.push(m_);G=G.join(""),a===!1&&(G=G.replace(F1,"")),W.push(G)}return W.join(B1)}i(W1,"markdownTable");function G1(e){return e==null?"":String(e)}i(G1,"serialize");function K1(e){return e.length}i(K1,"defaultStringLength");function g_(e){var t=typeof e=="string"?e.charCodeAt(0):h_;return t===H1||t===Ml?Ml:t===Z1||t===Ta?Ta:t===V1||t===ka?ka:h_}i(g_,"toAlignment")});var b_=b((iae,x_)=>{var J1=ur(),X1=Ul(),Y1=v_();x_.exports=Q1;function Q1(e){var t=e||{},r=t.tableCellPadding,n=t.tablePipeAlign,o=t.stringLength,a=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
22
|
+
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{table:s,tableRow:u,tableCell:l,inlineCode:f}};function s(d,h,x){return p(c(d,x),d.align)}function u(d,h,x){var y=m(d,x),v=p([y]);return v.slice(0,v.indexOf(`
|
|
23
|
+
`))}function l(d,h,x){var y=x.enter("tableCell"),v=J1(d,x,{before:a,after:a});return y(),v}function p(d,h){return Y1(d,{align:h,alignDelimiters:n,padding:r,stringLength:o})}function c(d,h){for(var x=d.children,y=-1,v=x.length,P=[],w=h.enter("table");++y<v;)P[y]=m(x[y],h);return w(),P}function m(d,h){for(var x=d.children,y=-1,v=x.length,P=[],w=h.enter("tableRow");++y<v;)P[y]=l(x[y],d,h);return w(),P}function f(d,h,x){var y=X1(d,h,x);return x.stack.indexOf("tableCell")!==-1&&(y=y.replace(/\|/g,"\\$&")),y}}i(Q1,"toMarkdown")});var P_=b((aae,__)=>{__.exports=eU;function eU(e){var t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}i(eU,"checkBullet")});var E_=b((uae,w_)=>{w_.exports=tU;function tU(e){var t=e.options.listItemIndent||"tab";if(t===1||t==="1")return"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}i(tU,"checkListItemIndent")});var Vi=b((cae,k_)=>{k_.exports=nU;var rU=an();function nU(e,t){for(var r=e.children||[],n=[],o=-1,a;++o<r.length;)a=r[o],n.push(t.handle(a,e,t,{before:`
|
|
24
|
+
`,after:`
|
|
25
|
+
`})),o+1<r.length&&n.push(s(a,r[o+1]));return n.join("");function s(u,l){for(var p=-1,c;++p<t.join.length&&(c=t.join[p](u,l,e,t),!(c===!0||c===1));){if(typeof c=="number")return rU(`
|
|
26
|
+
`,1+Number(c));if(c===!1)return`
|
|
27
|
+
|
|
28
|
+
<!---->
|
|
29
|
+
|
|
30
|
+
`}return`
|
|
31
|
+
|
|
32
|
+
`}}i(nU,"flow")});var Sa=b((dae,T_)=>{T_.exports=oU;var iU=/\r?\n|\r/g;function oU(e,t){for(var r=[],n=0,o=0,a;a=iU.exec(e);)s(e.slice(n,a.index)),r.push(a[0]),n=a.index+a[0].length,o++;return s(e.slice(n)),r.join("");function s(u){r.push(t(u,o,!u))}i(s,"one")}i(oU,"indentLines")});var ql=b((mae,A_)=>{A_.exports=cU;var S_=an(),aU=P_(),sU=E_(),uU=Vi(),lU=Sa();function cU(e,t,r){var n=aU(r),o=sU(r),a,s,u;return t&&t.ordered&&(n=(t.start>-1?t.start:1)+(r.options.incrementListMarker===!1?0:t.children.indexOf(e))+"."),a=n.length+1,(o==="tab"||o==="mixed"&&(t&&t.spread||e.spread))&&(a=Math.ceil(a/4)*4),u=r.enter("listItem"),s=lU(uU(e,r),l),u(),s;function l(p,c,m){return c?(m?"":S_(" ",a))+p:(m?n:n+S_(" ",a-n.length))+p}i(l,"map")}i(cU,"listItem")});var I_=b(Fl=>{var pU=ql();Fl.unsafe=[{atBreak:!0,character:"-",after:"[:|-]"}];Fl.handlers={listItem:dU};function dU(e,t,r){var n=pU(e,t,r),o=e.children[0];return typeof e.checked=="boolean"&&o&&o.type==="paragraph"&&(n=n.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,a)),n;function a(s){return s+"["+(e.checked?"x":" ")+"] "}i(a,"check")}i(dU,"listItemWithTaskListItem")});var Bl=b((vae,C_)=>{C_.exports=O_;function O_(e,t){var r=-1,n;if(t.extensions)for(;++r<t.extensions.length;)O_(e,t.extensions[r]);for(n in t)n==="extensions"||(n==="unsafe"||n==="join"?e[n]=e[n].concat(t[n]||[]):n==="handlers"?e[n]=Object.assign(e[n],t[n]||{}):e.options[n]=t[n]);return e}i(O_,"configure")});var $_=b((bae,z_)=>{var fU=a_(),mU=l_(),hU=b_(),gU=I_(),yU=Bl();z_.exports=vU;function vU(e){var t=yU({handlers:{},join:[],unsafe:[],options:{}},{extensions:[fU,mU,hU(e),gU]});return Object.assign(t.options,{handlers:t.handlers,join:t.join,unsafe:t.unsafe})}i(vU,"toMarkdown")});var N_=b((Pae,D_)=>{"use strict";var xU=Cb(),bU=i_(),_U=$_(),R_;D_.exports=PU;function PU(e){var t=this.data();!R_&&(this.Parser&&this.Parser.prototype&&this.Parser.prototype.blockTokenizers||this.Compiler&&this.Compiler.prototype&&this.Compiler.prototype.visitors)&&(R_=!0,console.warn("[remark-gfm] Warning: please upgrade to remark 13 to use this plugin")),r("micromarkExtensions",xU(e)),r("fromMarkdownExtensions",bU),r("toMarkdownExtensions",_U(e));function r(n,o){t[n]?t[n].push(o):t[n]=[o]}i(r,"add")}i(PU,"gfm")});var Aa=b((Eae,M_)=>{"use strict";M_.exports=L_;function L_(e){return e&&(e.value||e.alt||e.title||"children"in e&&U_(e.children)||"length"in e&&U_(e))||""}i(L_,"toString");function U_(e){for(var t=[],r=-1;++r<e.length;)t[r]=L_(e[r]);return t.join("")}i(U_,"all")});var Ia=b((Tae,q_)=>{"use strict";function wU(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}i(wU,"normalizeIdentifier");q_.exports=wU});var B_=b((Aae,F_)=>{"use strict";var EU=Fi();function kU(e,t){var r=parseInt(e,t);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"\uFFFD":EU(r)}i(kU,"safeFromInt");F_.exports=kU});var j_=b(jl=>{"use strict";Object.defineProperty(jl,"__esModule",{value:!0});var TU=Je(),SU=it(),AU=IU;function IU(e){var t=e.attempt(this.parser.constructs.contentInitial,n,o),r;return t;function n(u){if(u===null){e.consume(u);return}return e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),SU(e,t,"linePrefix")}function o(u){return e.enter("paragraph"),a(u)}function a(u){var l=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=l),r=l,s(u)}function s(u){if(u===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(u);return}return TU(u)?(e.consume(u),e.exit("chunkText"),a):(e.consume(u),s)}}i(IU,"initializeContent");jl.tokenize=AU});var Hi=b((zae,V_)=>{"use strict";var OU=Je(),CU=it(),zU={tokenize:$U,partial:!0};function $U(e,t,r){return CU(e,n,"linePrefix");function n(o){return o===null||OU(o)?t(o):r(o)}}i($U,"tokenizePartialBlankLine");V_.exports=zU});var Z_=b(Hl=>{"use strict";Object.defineProperty(Hl,"__esModule",{value:!0});var RU=Je(),H_=it(),DU=Hi(),NU=LU,Vl={tokenize:MU},UU={tokenize:qU};function LU(e){var t=this,r=[],n=0,o={tokenize:v,partial:!0},a,s,u;return l;function l(P){return n<r.length?(t.containerState=r[n][1],e.attempt(r[n][0].continuation,p,c)(P)):c(P)}function p(P){return n++,l(P)}function c(P){return a&&a.flowContinue?f(P):(t.interrupt=s&&s.currentConstruct&&s.currentConstruct.interruptible,t.containerState={},e.attempt(Vl,m,f)(P))}function m(P){return r.push([t.currentConstruct,t.containerState]),t.containerState=void 0,c(P)}function f(P){if(P===null){y(0,!0),e.consume(P);return}return s=s||t.parser.flow(t.now()),e.enter("chunkFlow",{contentType:"flow",previous:u,_tokenizer:s}),d(P)}function d(P){return P===null?(x(e.exit("chunkFlow")),f(P)):RU(P)?(e.consume(P),x(e.exit("chunkFlow")),e.check(o,h)):(e.consume(P),d)}function h(P){return y(a.continued,a&&a.flowEnd),n=0,l(P)}function x(P){u&&(u.next=P),u=P,s.lazy=a&&a.lazy,s.defineSkip(P.start),s.write(t.sliceStream(P))}function y(P,w){var I=r.length;for(s&&w&&(s.write([null]),u=s=void 0);I-- >P;)t.containerState=r[I][1],r[I][0].exit.call(t,e);r.length=P}function v(P,w){var I=0;return a={},N;function N(z){return I<r.length?(t.containerState=r[I][1],P.attempt(r[I][0].continuation,D,B)(z)):s.currentConstruct&&s.currentConstruct.concrete?(a.flowContinue=!0,M(z)):(t.interrupt=s.currentConstruct&&s.currentConstruct.interruptible,t.containerState={},P.attempt(Vl,G,M)(z))}i(N,"inspectStart");function D(z){return I++,t.containerState._closeFlow?G(z):N(z)}i(D,"inspectContinue");function B(z){return s.currentConstruct&&s.currentConstruct.lazy?(t.containerState={},P.attempt(Vl,G,P.attempt(UU,G,P.check(DU,G,W)))(z)):G(z)}i(B,"inspectLess");function W(z){return I=r.length,a.lazy=!0,a.flowContinue=!0,M(z)}i(W,"inspectLazy");function G(z){return a.flowEnd=!0,M(z)}i(G,"inspectFlowEnd");function M(z){return a.continued=I,t.interrupt=t.containerState=void 0,w(z)}i(M,"inspectDone")}}i(LU,"initializeDocument");function MU(e,t,r){return H_(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4)}i(MU,"tokenizeContainer");function qU(e,t,r){return H_(e,e.lazy(this.parser.constructs.flow,t,r),"linePrefix",this.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4)}i(qU,"tokenizeLazyFlow");Hl.tokenize=NU});var Zl=b((Nae,G_)=>{"use strict";var FU=Mn(),W_=ir(),BU=Lr();function jU(e){for(var t={},r=-1,n,o,a,s,u,l,p;++r<e.length;){for(;r in t;)r=t[r];if(n=e[r],r&&n[1].type==="chunkFlow"&&e[r-1][1].type==="listItemPrefix"&&(l=n[1]._tokenizer.events,a=0,a<l.length&&l[a][1].type==="lineEndingBlank"&&(a+=2),a<l.length&&l[a][1].type==="content"))for(;++a<l.length&&l[a][1].type!=="content";)l[a][1].type==="chunkText"&&(l[a][1].isInFirstContentOfListItem=!0,a++);if(n[0]==="enter")n[1].contentType&&(FU(t,VU(e,r)),r=t[r],p=!0);else if(n[1]._container||n[1]._movePreviousLineEndings){for(a=r,o=void 0;a--&&(s=e[a],s[1].type==="lineEnding"||s[1].type==="lineEndingBlank");)s[0]==="enter"&&(o&&(e[o][1].type="lineEndingBlank"),s[1].type="lineEnding",o=a);o&&(n[1].end=BU(e[o][1].start),u=e.slice(o,r),u.unshift(n),W_(e,o,r-o+1,u))}}return!p}i(jU,"subtokenize");function VU(e,t){for(var r=e[t][1],n=e[t][2],o=t-1,a=[],s=r._tokenizer||n.parser[r.contentType](r.start),u=s.events,l=[],p={},c,m,f,d,h,x;r;){for(;e[++o][1]!==r;);a.push(o),r._tokenizer||(c=n.sliceStream(r),r.next||c.push(null),m&&s.defineSkip(r.start),r.isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(c),r.isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),m=r,r=r.next}for(r=m,f=u.length;f--;)u[f][0]==="enter"?d=!0:d&&u[f][1].type===u[f-1][1].type&&u[f][1].start.line!==u[f][1].end.line&&(y(u.slice(f+1,h)),r._tokenizer=r.next=void 0,r=r.previous,h=f+1);for(s.events=r._tokenizer=r.next=void 0,y(u.slice(0,h)),f=-1,x=0;++f<l.length;)p[x+l[f][0]]=x+l[f][1],x+=l[f][1]-l[f][0]-1;return p;function y(v){var P=a.pop();l.unshift([P,P+v.length-1]),W_(e,P,2,v)}}i(VU,"subcontent");G_.exports=jU});var X_=b((Lae,J_)=>{"use strict";var K_=Je(),HU=qn(),ZU=Zl(),WU=it(),GU={tokenize:XU,resolve:JU,interruptible:!0,lazy:!0},KU={tokenize:YU,partial:!0};function JU(e){return ZU(e),e}i(JU,"resolveContent");function XU(e,t){var r;return n;function n(u){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),o(u)}function o(u){return u===null?a(u):K_(u)?e.check(KU,s,a)(u):(e.consume(u),o)}function a(u){return e.exit("chunkContent"),e.exit("content"),t(u)}function s(u){return e.consume(u),e.exit("chunkContent"),r=r.next=e.enter("chunkContent",{contentType:"content",previous:r}),o}}i(XU,"tokenizeContent");function YU(e,t,r){var n=this;return o;function o(s){return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),WU(e,a,"linePrefix")}function a(s){return s===null||K_(s)?r(s):n.parser.constructs.disable.null.indexOf("codeIndented")>-1||HU(n.events,"linePrefix")<4?e.interrupt(n.parser.constructs.flow,r,t)(s):t(s)}}i(YU,"tokenizeContinuation");J_.exports=GU});var Y_=b(Wl=>{"use strict";Object.defineProperty(Wl,"__esModule",{value:!0});var QU=X_(),eL=it(),tL=Hi(),rL=nL;function nL(e){var t=this,r=e.attempt(tL,n,e.attempt(this.parser.constructs.flowInitial,o,eL(e,e.attempt(this.parser.constructs.flow,o,e.attempt(QU,o)),"linePrefix")));return r;function n(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}function o(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,r}}i(nL,"initializeFlow");Wl.tokenize=rL});var Gl=b(Zi=>{"use strict";Object.defineProperty(Zi,"__esModule",{value:!0});var iL=Mn(),Q_=Lr(),oL=eP("text"),aL=eP("string"),sL={resolveAll:tP()};function eP(e){return{tokenize:t,resolveAll:tP(e==="text"?uL:void 0)};function t(r){var n=this,o=this.parser.constructs[e],a=r.attempt(o,s,u);return s;function s(c){return p(c)?a(c):u(c)}function u(c){if(c===null){r.consume(c);return}return r.enter("data"),r.consume(c),l}function l(c){return p(c)?(r.exit("data"),a(c)):(r.consume(c),l)}function p(c){var m=o[c],f=-1;if(c===null)return!0;if(m){for(;++f<m.length;)if(!m[f].previous||m[f].previous.call(n,n.previous))return!0}}}}i(eP,"initializeFactory");function tP(e){return t;function t(r,n){for(var o=-1,a;++o<=r.length;)a===void 0?r[o]&&r[o][1].type==="data"&&(a=o,o++):(!r[o]||r[o][1].type!=="data")&&(o!==a+2&&(r[a][1].end=r[o-1][1].end,r.splice(a+2,o-a-2),o=a+2),a=void 0);return e?e(r,n):r}}i(tP,"createResolver");function uL(e,t){for(var r=-1,n,o,a,s,u,l,p,c;++r<=e.length;)if((r===e.length||e[r][1].type==="lineEnding")&&e[r-1][1].type==="data"){for(o=e[r-1][1],n=t.sliceStream(o),s=n.length,u=-1,l=0,p=void 0;s--;)if(a=n[s],typeof a=="string"){for(u=a.length;a.charCodeAt(u-1)===32;)l++,u--;if(u)break;u=-1}else if(a===-2)p=!0,l++;else if(a!==-1){s++;break}l&&(c={type:r===e.length||p||l<2?"lineSuffix":"hardBreakTrailing",start:{line:o.end.line,column:o.end.column-l,offset:o.end.offset-l,_index:o.start._index+s,_bufferIndex:s?u:o.start._bufferIndex+u},end:Q_(o.end)},o.end=Q_(c.start),o.start.offset===o.end.offset?iL(o,c):(e.splice(r,0,["enter",c,t],["exit",c,t]),r+=2)),r++}return e}i(uL,"resolveAllLineSuffixes");Zi.resolver=sL;Zi.string=aL;Zi.text=oL});var Oa=b((Vae,rP)=>{"use strict";var lL=ir();function cL(e,t){return e.length?(lL(e,e.length,0,t),e):t}i(cL,"chunkedPush");rP.exports=cL});var iP=b((Zae,nP)=>{"use strict";var pL=Fi();function dL(e){for(var t=-1,r=[],n,o,a;++t<e.length;){if(n=e[t],typeof n=="string")o=n;else if(n===-5)o="\r";else if(n===-4)o=`
|
|
33
|
+
`;else if(n===-3)o=`\r
|
|
34
|
+
`;else if(n===-2)o=" ";else if(n===-1){if(a)continue;o=" "}else o=pL(n);a=n===-2,r.push(o)}return r.join("")}i(dL,"serializeChunks");nP.exports=dL});var aP=b((Gae,oP)=>{"use strict";function fL(e,t){var r=t.start._index,n=t.start._bufferIndex,o=t.end._index,a=t.end._bufferIndex,s;return r===o?s=[e[r].slice(n,a)]:(s=e.slice(r,o),n>-1&&(s[0]=s[0].slice(n)),a>0&&s.push(e[o].slice(0,a))),s}i(fL,"sliceChunks");oP.exports=fL});var lP=b((Jae,uP)=>{"use strict";var mL=Mn(),hL=Je(),gL=Oa(),yL=ir(),Kl=ha(),vL=ji(),xL=iP(),sP=Lr(),bL=aP();function _L(e,t,r){var n=r?sP(r):{line:1,column:1,offset:0},o={},a=[],s=[],u=[],l={consume:P,enter:w,exit:I,attempt:B(N),check:B(D),interrupt:B(D,{interrupt:!0}),lazy:B(D,{lazy:!0})},p={previous:null,events:[],parser:e,sliceStream:d,sliceSerialize:f,now:h,defineSkip:x,write:m},c=t.tokenize.call(p,l);return t.resolveAll&&a.push(t),n._index=0,n._bufferIndex=-1,p;function m(z){return s=gL(s,z),y(),s[s.length-1]!==null?[]:(W(t,0),p.events=vL(a,p.events,p),p.events)}i(m,"write");function f(z){return xL(d(z))}i(f,"sliceSerialize");function d(z){return bL(s,z)}i(d,"sliceStream");function h(){return sP(n)}i(h,"now");function x(z){o[z.line]=z.column,M()}i(x,"skip");function y(){for(var z,L;n._index<s.length;)if(L=s[n._index],typeof L=="string")for(z=n._index,n._bufferIndex<0&&(n._bufferIndex=0);n._index===z&&n._bufferIndex<L.length;)v(L.charCodeAt(n._bufferIndex));else v(L)}i(y,"main");function v(z){c=c(z)}i(v,"go");function P(z){hL(z)?(n.line++,n.column=1,n.offset+=z===-3?2:1,M()):z!==-1&&(n.column++,n.offset++),n._bufferIndex<0?n._index++:(n._bufferIndex++,n._bufferIndex===s[n._index].length&&(n._bufferIndex=-1,n._index++)),p.previous=z}i(P,"consume");function w(z,L){var ae=L||{};return ae.type=z,ae.start=h(),p.events.push(["enter",ae,p]),u.push(ae),ae}i(w,"enter");function I(z){var L=u.pop();return L.end=h(),p.events.push(["exit",L,p]),L}i(I,"exit");function N(z,L){W(z,L.from)}i(N,"onsuccessfulconstruct");function D(z,L){L.restore()}i(D,"onsuccessfulcheck");function B(z,L){return ae;function ae(se,xe,De){var T,ke,Ze,be;return se.tokenize||"length"in se?Te(Kl(se)):g;function g(fe){return fe in se||null in se?Te(se.null?Kl(se[fe]).concat(Kl(se.null)):se[fe])(fe):De(fe)}function Te(fe){return T=fe,ke=0,It(fe[ke])}function It(fe){return F;function F(U){return be=G(),Ze=fe,fe.partial||(p.currentConstruct=fe),fe.name&&p.parser.constructs.disable.null.indexOf(fe.name)>-1?lt():fe.tokenize.call(L?mL({},p,L):p,l,Ne,lt)(U)}}function Ne(fe){return z(Ze,be),xe}function lt(fe){return be.restore(),++ke<T.length?It(T[ke]):De}}}i(B,"constructFactory");function W(z,L){z.resolveAll&&a.indexOf(z)<0&&a.push(z),z.resolve&&yL(p.events,L,p.events.length-L,z.resolve(p.events.slice(L),p)),z.resolveTo&&(p.events=z.resolveTo(p.events,p))}i(W,"addResult");function G(){var z=h(),L=p.previous,ae=p.currentConstruct,se=p.events.length,xe=Array.from(u);return{restore:De,from:se};function De(){n=z,p.previous=L,p.currentConstruct=ae,p.events.length=se,u=xe,M()}}i(G,"store");function M(){n.line in o&&n.column<2&&(n.column=o[n.line],n.offset+=o[n.line]-1)}i(M,"accountForPotentialSkip")}i(_L,"createTokenizer");uP.exports=_L});var pP=b((Yae,cP)=>{"use strict";function PL(e,t){return e.column+=t,e.offset+=t,e._bufferIndex+=t,e}i(PL,"movePoint");cP.exports=PL});var hP=b((ese,mP)=>{"use strict";var Wi=Oa(),wL=ir(),dP=El(),fP=pP(),EL=ji(),lr=Lr(),kL={name:"attention",tokenize:SL,resolveAll:TL};function TL(e,t){for(var r=-1,n,o,a,s,u,l,p,c;++r<e.length;)if(e[r][0]==="enter"&&e[r][1].type==="attentionSequence"&&e[r][1]._close){for(n=r;n--;)if(e[n][0]==="exit"&&e[n][1].type==="attentionSequence"&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[r][1]).charCodeAt(0)){if((e[n][1]._close||e[r][1]._open)&&(e[r][1].end.offset-e[r][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[r][1].end.offset-e[r][1].start.offset)%3))continue;l=e[n][1].end.offset-e[n][1].start.offset>1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1,s={type:l>1?"strongSequence":"emphasisSequence",start:fP(lr(e[n][1].end),-l),end:lr(e[n][1].end)},u={type:l>1?"strongSequence":"emphasisSequence",start:lr(e[r][1].start),end:fP(lr(e[r][1].start),l)},a={type:l>1?"strongText":"emphasisText",start:lr(e[n][1].end),end:lr(e[r][1].start)},o={type:l>1?"strong":"emphasis",start:lr(s.start),end:lr(u.end)},e[n][1].end=lr(s.start),e[r][1].start=lr(u.end),p=[],e[n][1].end.offset-e[n][1].start.offset&&(p=Wi(p,[["enter",e[n][1],t],["exit",e[n][1],t]])),p=Wi(p,[["enter",o,t],["enter",s,t],["exit",s,t],["enter",a,t]]),p=Wi(p,EL(t.parser.constructs.insideSpan.null,e.slice(n+1,r),t)),p=Wi(p,[["exit",a,t],["enter",u,t],["exit",u,t],["exit",o,t]]),e[r][1].end.offset-e[r][1].start.offset?(c=2,p=Wi(p,[["enter",e[r][1],t],["exit",e[r][1],t]])):c=0,wL(e,n-1,r-n+3,p),r=n+p.length-c-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}i(TL,"resolveAllAttention");function SL(e,t){var r=dP(this.previous),n;return o;function o(s){return e.enter("attentionSequence"),n=s,a(s)}function a(s){var u,l,p,c;return s===n?(e.consume(s),a):(u=e.exit("attentionSequence"),l=dP(s),p=!l||l===2&&r,c=!r||r===2&&l,u._open=n===42?p:p&&(r||!c),u._close=n===42?c:c&&(l||!p),t(s))}}i(SL,"tokenizeAttention");mP.exports=kL});var yP=b((rse,gP)=>{"use strict";var AL=Pr(),IL=AL(/[#-'*+\--9=?A-Z^-~]/);gP.exports=IL});var bP=b((nse,xP)=>{"use strict";var OL=Bi(),Ca=Un(),vP=yP(),CL=ga(),zL={name:"autolink",tokenize:$L};function $L(e,t,r){var n=1;return o;function o(h){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a}function a(h){return OL(h)?(e.consume(h),s):vP(h)?p(h):r(h)}function s(h){return h===43||h===45||h===46||Ca(h)?u(h):p(h)}function u(h){return h===58?(e.consume(h),l):(h===43||h===45||h===46||Ca(h))&&n++<32?(e.consume(h),u):p(h)}function l(h){return h===62?(e.exit("autolinkProtocol"),d(h)):h===32||h===60||CL(h)?r(h):(e.consume(h),l)}function p(h){return h===64?(e.consume(h),n=0,c):vP(h)?(e.consume(h),p):r(h)}function c(h){return Ca(h)?m(h):r(h)}function m(h){return h===46?(e.consume(h),n=0,c):h===62?(e.exit("autolinkProtocol").type="autolinkEmail",d(h)):f(h)}function f(h){return(h===45||Ca(h))&&n++<63?(e.consume(h),h===45?f:m):r(h)}function d(h){return e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t}}i($L,"tokenizeAutolink");xP.exports=zL});var wP=b((ose,PP)=>{"use strict";var RL=sr(),DL=it(),_P={name:"blockQuote",tokenize:NL,continuation:{tokenize:UL},exit:LL};function NL(e,t,r){var n=this;return o;function o(s){return s===62?(n.containerState.open||(e.enter("blockQuote",{_container:!0}),n.containerState.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(s),e.exit("blockQuoteMarker"),a):r(s)}function a(s){return RL(s)?(e.enter("blockQuotePrefixWhitespace"),e.consume(s),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(s))}}i(NL,"tokenizeBlockQuoteStart");function UL(e,t,r){return DL(e,e.attempt(_P,t,r),"linePrefix",this.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4)}i(UL,"tokenizeBlockQuoteContinuation");function LL(e){e.exit("blockQuote")}i(LL,"exit");PP.exports=_P});var kP=b((sse,EP)=>{"use strict";var ML=Pr(),qL=ML(/[!-/:-@[-`{-~]/);EP.exports=qL});var SP=b((use,TP)=>{"use strict";var FL=kP(),BL={name:"characterEscape",tokenize:jL};function jL(e,t,r){return n;function n(a){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(a),e.exit("escapeMarker"),o}function o(a){return FL(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(a)}}i(jL,"tokenizeCharacterEscape");TP.exports=BL});var AP=b((cse,VL)=>{VL.exports={AEli:"\xC6",AElig:"\xC6",AM:"&",AMP:"&",Aacut:"\xC1",Aacute:"\xC1",Abreve:"\u0102",Acir:"\xC2",Acirc:"\xC2",Acy:"\u0410",Afr:"\u{1D504}",Agrav:"\xC0",Agrave:"\xC0",Alpha:"\u0391",Amacr:"\u0100",And:"\u2A53",Aogon:"\u0104",Aopf:"\u{1D538}",ApplyFunction:"\u2061",Arin:"\xC5",Aring:"\xC5",Ascr:"\u{1D49C}",Assign:"\u2254",Atild:"\xC3",Atilde:"\xC3",Aum:"\xC4",Auml:"\xC4",Backslash:"\u2216",Barv:"\u2AE7",Barwed:"\u2306",Bcy:"\u0411",Because:"\u2235",Bernoullis:"\u212C",Beta:"\u0392",Bfr:"\u{1D505}",Bopf:"\u{1D539}",Breve:"\u02D8",Bscr:"\u212C",Bumpeq:"\u224E",CHcy:"\u0427",COP:"\xA9",COPY:"\xA9",Cacute:"\u0106",Cap:"\u22D2",CapitalDifferentialD:"\u2145",Cayleys:"\u212D",Ccaron:"\u010C",Ccedi:"\xC7",Ccedil:"\xC7",Ccirc:"\u0108",Cconint:"\u2230",Cdot:"\u010A",Cedilla:"\xB8",CenterDot:"\xB7",Cfr:"\u212D",Chi:"\u03A7",CircleDot:"\u2299",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",Colon:"\u2237",Colone:"\u2A74",Congruent:"\u2261",Conint:"\u222F",ContourIntegral:"\u222E",Copf:"\u2102",Coproduct:"\u2210",CounterClockwiseContourIntegral:"\u2233",Cross:"\u2A2F",Cscr:"\u{1D49E}",Cup:"\u22D3",CupCap:"\u224D",DD:"\u2145",DDotrahd:"\u2911",DJcy:"\u0402",DScy:"\u0405",DZcy:"\u040F",Dagger:"\u2021",Darr:"\u21A1",Dashv:"\u2AE4",Dcaron:"\u010E",Dcy:"\u0414",Del:"\u2207",Delta:"\u0394",Dfr:"\u{1D507}",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",Diamond:"\u22C4",DifferentialD:"\u2146",Dopf:"\u{1D53B}",Dot:"\xA8",DotDot:"\u20DC",DotEqual:"\u2250",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVector:"\u21BD",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295F",DownRightVector:"\u21C1",DownRightVectorBar:"\u2957",DownTee:"\u22A4",DownTeeArrow:"\u21A7",Downarrow:"\u21D3",Dscr:"\u{1D49F}",Dstrok:"\u0110",ENG:"\u014A",ET:"\xD0",ETH:"\xD0",Eacut:"\xC9",Eacute:"\xC9",Ecaron:"\u011A",Ecir:"\xCA",Ecirc:"\xCA",Ecy:"\u042D",Edot:"\u0116",Efr:"\u{1D508}",Egrav:"\xC8",Egrave:"\xC8",Element:"\u2208",Emacr:"\u0112",EmptySmallSquare:"\u25FB",EmptyVerySmallSquare:"\u25AB",Eogon:"\u0118",Eopf:"\u{1D53C}",Epsilon:"\u0395",Equal:"\u2A75",EqualTilde:"\u2242",Equilibrium:"\u21CC",Escr:"\u2130",Esim:"\u2A73",Eta:"\u0397",Eum:"\xCB",Euml:"\xCB",Exists:"\u2203",ExponentialE:"\u2147",Fcy:"\u0424",Ffr:"\u{1D509}",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",Fopf:"\u{1D53D}",ForAll:"\u2200",Fouriertrf:"\u2131",Fscr:"\u2131",GJcy:"\u0403",G:">",GT:">",Gamma:"\u0393",Gammad:"\u03DC",Gbreve:"\u011E",Gcedil:"\u0122",Gcirc:"\u011C",Gcy:"\u0413",Gdot:"\u0120",Gfr:"\u{1D50A}",Gg:"\u22D9",Gopf:"\u{1D53E}",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",Gt:"\u226B",HARDcy:"\u042A",Hacek:"\u02C7",Hat:"^",Hcirc:"\u0124",Hfr:"\u210C",HilbertSpace:"\u210B",Hopf:"\u210D",HorizontalLine:"\u2500",Hscr:"\u210B",Hstrok:"\u0126",HumpDownHump:"\u224E",HumpEqual:"\u224F",IEcy:"\u0415",IJlig:"\u0132",IOcy:"\u0401",Iacut:"\xCD",Iacute:"\xCD",Icir:"\xCE",Icirc:"\xCE",Icy:"\u0418",Idot:"\u0130",Ifr:"\u2111",Igrav:"\xCC",Igrave:"\xCC",Im:"\u2111",Imacr:"\u012A",ImaginaryI:"\u2148",Implies:"\u21D2",Int:"\u222C",Integral:"\u222B",Intersection:"\u22C2",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",Iogon:"\u012E",Iopf:"\u{1D540}",Iota:"\u0399",Iscr:"\u2110",Itilde:"\u0128",Iukcy:"\u0406",Ium:"\xCF",Iuml:"\xCF",Jcirc:"\u0134",Jcy:"\u0419",Jfr:"\u{1D50D}",Jopf:"\u{1D541}",Jscr:"\u{1D4A5}",Jsercy:"\u0408",Jukcy:"\u0404",KHcy:"\u0425",KJcy:"\u040C",Kappa:"\u039A",Kcedil:"\u0136",Kcy:"\u041A",Kfr:"\u{1D50E}",Kopf:"\u{1D542}",Kscr:"\u{1D4A6}",LJcy:"\u0409",L:"<",LT:"<",Lacute:"\u0139",Lambda:"\u039B",Lang:"\u27EA",Laplacetrf:"\u2112",Larr:"\u219E",Lcaron:"\u013D",Lcedil:"\u013B",Lcy:"\u041B",LeftAngleBracket:"\u27E8",LeftArrow:"\u2190",LeftArrowBar:"\u21E4",LeftArrowRightArrow:"\u21C6",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21C3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230A",LeftRightArrow:"\u2194",LeftRightVector:"\u294E",LeftTee:"\u22A3",LeftTeeArrow:"\u21A4",LeftTeeVector:"\u295A",LeftTriangle:"\u22B2",LeftTriangleBar:"\u29CF",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21BF",LeftUpVectorBar:"\u2958",LeftVector:"\u21BC",LeftVectorBar:"\u2952",Leftarrow:"\u21D0",Leftrightarrow:"\u21D4",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",LessLess:"\u2AA1",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",Lfr:"\u{1D50F}",Ll:"\u22D8",Lleftarrow:"\u21DA",Lmidot:"\u013F",LongLeftArrow:"\u27F5",LongLeftRightArrow:"\u27F7",LongRightArrow:"\u27F6",Longleftarrow:"\u27F8",Longleftrightarrow:"\u27FA",Longrightarrow:"\u27F9",Lopf:"\u{1D543}",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",Lscr:"\u2112",Lsh:"\u21B0",Lstrok:"\u0141",Lt:"\u226A",Map:"\u2905",Mcy:"\u041C",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",MinusPlus:"\u2213",Mopf:"\u{1D544}",Mscr:"\u2133",Mu:"\u039C",NJcy:"\u040A",Nacute:"\u0143",Ncaron:"\u0147",Ncedil:"\u0145",Ncy:"\u041D",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:`
|
|
35
|
+
`,Nfr:"\u{1D511}",NoBreak:"\u2060",NonBreakingSpace:"\xA0",Nopf:"\u2115",Not:"\u2AEC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",NotLeftTriangle:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangle:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",Nscr:"\u{1D4A9}",Ntild:"\xD1",Ntilde:"\xD1",Nu:"\u039D",OElig:"\u0152",Oacut:"\xD3",Oacute:"\xD3",Ocir:"\xD4",Ocirc:"\xD4",Ocy:"\u041E",Odblac:"\u0150",Ofr:"\u{1D512}",Ograv:"\xD2",Ograve:"\xD2",Omacr:"\u014C",Omega:"\u03A9",Omicron:"\u039F",Oopf:"\u{1D546}",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",Or:"\u2A54",Oscr:"\u{1D4AA}",Oslas:"\xD8",Oslash:"\xD8",Otild:"\xD5",Otilde:"\xD5",Otimes:"\u2A37",Oum:"\xD6",Ouml:"\xD6",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",PartialD:"\u2202",Pcy:"\u041F",Pfr:"\u{1D513}",Phi:"\u03A6",Pi:"\u03A0",PlusMinus:"\xB1",Poincareplane:"\u210C",Popf:"\u2119",Pr:"\u2ABB",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",Prime:"\u2033",Product:"\u220F",Proportion:"\u2237",Proportional:"\u221D",Pscr:"\u{1D4AB}",Psi:"\u03A8",QUO:'"',QUOT:'"',Qfr:"\u{1D514}",Qopf:"\u211A",Qscr:"\u{1D4AC}",RBarr:"\u2910",RE:"\xAE",REG:"\xAE",Racute:"\u0154",Rang:"\u27EB",Rarr:"\u21A0",Rarrtl:"\u2916",Rcaron:"\u0158",Rcedil:"\u0156",Rcy:"\u0420",Re:"\u211C",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",Rfr:"\u211C",Rho:"\u03A1",RightAngleBracket:"\u27E9",RightArrow:"\u2192",RightArrowBar:"\u21E5",RightArrowLeftArrow:"\u21C4",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVector:"\u21C2",RightDownVectorBar:"\u2955",RightFloor:"\u230B",RightTee:"\u22A2",RightTeeArrow:"\u21A6",RightTeeVector:"\u295B",RightTriangle:"\u22B3",RightTriangleBar:"\u29D0",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVector:"\u21BE",RightUpVectorBar:"\u2954",RightVector:"\u21C0",RightVectorBar:"\u2953",Rightarrow:"\u21D2",Ropf:"\u211D",RoundImplies:"\u2970",Rrightarrow:"\u21DB",Rscr:"\u211B",Rsh:"\u21B1",RuleDelayed:"\u29F4",SHCHcy:"\u0429",SHcy:"\u0428",SOFTcy:"\u042C",Sacute:"\u015A",Sc:"\u2ABC",Scaron:"\u0160",Scedil:"\u015E",Scirc:"\u015C",Scy:"\u0421",Sfr:"\u{1D516}",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",Sigma:"\u03A3",SmallCircle:"\u2218",Sopf:"\u{1D54A}",Sqrt:"\u221A",Square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",Sscr:"\u{1D4AE}",Star:"\u22C6",Sub:"\u22D0",Subset:"\u22D0",SubsetEqual:"\u2286",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",SuchThat:"\u220B",Sum:"\u2211",Sup:"\u22D1",Superset:"\u2283",SupersetEqual:"\u2287",Supset:"\u22D1",THOR:"\xDE",THORN:"\xDE",TRADE:"\u2122",TSHcy:"\u040B",TScy:"\u0426",Tab:" ",Tau:"\u03A4",Tcaron:"\u0164",Tcedil:"\u0162",Tcy:"\u0422",Tfr:"\u{1D517}",Therefore:"\u2234",Theta:"\u0398",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",Tilde:"\u223C",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",Topf:"\u{1D54B}",TripleDot:"\u20DB",Tscr:"\u{1D4AF}",Tstrok:"\u0166",Uacut:"\xDA",Uacute:"\xDA",Uarr:"\u219F",Uarrocir:"\u2949",Ubrcy:"\u040E",Ubreve:"\u016C",Ucir:"\xDB",Ucirc:"\xDB",Ucy:"\u0423",Udblac:"\u0170",Ufr:"\u{1D518}",Ugrav:"\xD9",Ugrave:"\xD9",Umacr:"\u016A",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",Uopf:"\u{1D54C}",UpArrow:"\u2191",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21C5",UpDownArrow:"\u2195",UpEquilibrium:"\u296E",UpTee:"\u22A5",UpTeeArrow:"\u21A5",Uparrow:"\u21D1",Updownarrow:"\u21D5",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",Upsi:"\u03D2",Upsilon:"\u03A5",Uring:"\u016E",Uscr:"\u{1D4B0}",Utilde:"\u0168",Uum:"\xDC",Uuml:"\xDC",VDash:"\u22AB",Vbar:"\u2AEB",Vcy:"\u0412",Vdash:"\u22A9",Vdashl:"\u2AE6",Vee:"\u22C1",Verbar:"\u2016",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",Vopf:"\u{1D54D}",Vscr:"\u{1D4B1}",Vvdash:"\u22AA",Wcirc:"\u0174",Wedge:"\u22C0",Wfr:"\u{1D51A}",Wopf:"\u{1D54E}",Wscr:"\u{1D4B2}",Xfr:"\u{1D51B}",Xi:"\u039E",Xopf:"\u{1D54F}",Xscr:"\u{1D4B3}",YAcy:"\u042F",YIcy:"\u0407",YUcy:"\u042E",Yacut:"\xDD",Yacute:"\xDD",Ycirc:"\u0176",Ycy:"\u042B",Yfr:"\u{1D51C}",Yopf:"\u{1D550}",Yscr:"\u{1D4B4}",Yuml:"\u0178",ZHcy:"\u0416",Zacute:"\u0179",Zcaron:"\u017D",Zcy:"\u0417",Zdot:"\u017B",ZeroWidthSpace:"\u200B",Zeta:"\u0396",Zfr:"\u2128",Zopf:"\u2124",Zscr:"\u{1D4B5}",aacut:"\xE1",aacute:"\xE1",abreve:"\u0103",ac:"\u223E",acE:"\u223E\u0333",acd:"\u223F",acir:"\xE2",acirc:"\xE2",acut:"\xB4",acute:"\xB4",acy:"\u0430",aeli:"\xE6",aelig:"\xE6",af:"\u2061",afr:"\u{1D51E}",agrav:"\xE0",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",alpha:"\u03B1",amacr:"\u0101",amalg:"\u2A3F",am:"&",amp:"&",and:"\u2227",andand:"\u2A55",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsd:"\u2221",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",aogon:"\u0105",aopf:"\u{1D552}",ap:"\u2248",apE:"\u2A70",apacir:"\u2A6F",ape:"\u224A",apid:"\u224B",apos:"'",approx:"\u2248",approxeq:"\u224A",arin:"\xE5",aring:"\xE5",ascr:"\u{1D4B6}",ast:"*",asymp:"\u2248",asympeq:"\u224D",atild:"\xE3",atilde:"\xE3",aum:"\xE4",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",bNot:"\u2AED",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",barvee:"\u22BD",barwed:"\u2305",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",beta:"\u03B2",beth:"\u2136",between:"\u226C",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bnot:"\u2310",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxDL:"\u2557",boxDR:"\u2554",boxDl:"\u2556",boxDr:"\u2553",boxH:"\u2550",boxHD:"\u2566",boxHU:"\u2569",boxHd:"\u2564",boxHu:"\u2567",boxUL:"\u255D",boxUR:"\u255A",boxUl:"\u255C",boxUr:"\u2559",boxV:"\u2551",boxVH:"\u256C",boxVL:"\u2563",boxVR:"\u2560",boxVh:"\u256B",boxVl:"\u2562",boxVr:"\u255F",boxbox:"\u29C9",boxdL:"\u2555",boxdR:"\u2552",boxdl:"\u2510",boxdr:"\u250C",boxh:"\u2500",boxhD:"\u2565",boxhU:"\u2568",boxhd:"\u252C",boxhu:"\u2534",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxuL:"\u255B",boxuR:"\u2558",boxul:"\u2518",boxur:"\u2514",boxv:"\u2502",boxvH:"\u256A",boxvL:"\u2561",boxvR:"\u255E",boxvh:"\u253C",boxvl:"\u2524",boxvr:"\u251C",bprime:"\u2035",breve:"\u02D8",brvba:"\xA6",brvbar:"\xA6",bscr:"\u{1D4B7}",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsol:"\\",bsolb:"\u29C5",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",bumpeq:"\u224F",cacute:"\u0107",cap:"\u2229",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",capcup:"\u2A47",capdot:"\u2A40",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",ccaps:"\u2A4D",ccaron:"\u010D",ccedi:"\xE7",ccedil:"\xE7",ccirc:"\u0109",ccups:"\u2A4C",ccupssm:"\u2A50",cdot:"\u010B",cedi:"\xB8",cedil:"\xB8",cemptyv:"\u29B2",cen:"\xA2",cent:"\xA2",centerdot:"\xB7",cfr:"\u{1D520}",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",chi:"\u03C7",cir:"\u25CB",cirE:"\u29C3",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledR:"\xAE",circledS:"\u24C8",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",clubs:"\u2663",clubsuit:"\u2663",colon:":",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",conint:"\u222E",copf:"\u{1D554}",coprod:"\u2210",cop:"\xA9",copy:"\xA9",copysr:"\u2117",crarr:"\u21B5",cross:"\u2717",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",cup:"\u222A",cupbrcap:"\u2A48",cupcap:"\u2A46",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curre:"\xA4",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",dArr:"\u21D3",dHar:"\u2965",dagger:"\u2020",daleth:"\u2138",darr:"\u2193",dash:"\u2010",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",dcaron:"\u010F",dcy:"\u0434",dd:"\u2146",ddagger:"\u2021",ddarr:"\u21CA",ddotseq:"\u2A77",de:"\xB0",deg:"\xB0",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",dfr:"\u{1D521}",dharl:"\u21C3",dharr:"\u21C2",diam:"\u22C4",diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divid:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",dopf:"\u{1D555}",dot:"\u02D9",doteq:"\u2250",doteqdot:"\u2251",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",downarrow:"\u2193",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",dscr:"\u{1D4B9}",dscy:"\u0455",dsol:"\u29F6",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",dzcy:"\u045F",dzigrarr:"\u27FF",eDDot:"\u2A77",eDot:"\u2251",eacut:"\xE9",eacute:"\xE9",easter:"\u2A6E",ecaron:"\u011B",ecir:"\xEA",ecirc:"\xEA",ecolon:"\u2255",ecy:"\u044D",edot:"\u0117",ee:"\u2147",efDot:"\u2252",efr:"\u{1D522}",eg:"\u2A9A",egrav:"\xE8",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",emptyv:"\u2205",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",eng:"\u014B",ensp:"\u2002",eogon:"\u0119",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",equals:"=",equest:"\u225F",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erDot:"\u2253",erarr:"\u2971",escr:"\u212F",esdot:"\u2250",esim:"\u2242",eta:"\u03B7",et:"\xF0",eth:"\xF0",eum:"\xEB",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",expectation:"\u2130",exponentiale:"\u2147",fallingdotseq:"\u2252",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",ffr:"\u{1D523}",filig:"\uFB01",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",fopf:"\u{1D557}",forall:"\u2200",fork:"\u22D4",forkv:"\u2AD9",fpartint:"\u2A0D",frac1:"\xBC",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac3:"\xBE",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",fscr:"\u{1D4BB}",gE:"\u2267",gEl:"\u2A8C",gacute:"\u01F5",gamma:"\u03B3",gammad:"\u03DD",gap:"\u2A86",gbreve:"\u011F",gcirc:"\u011D",gcy:"\u0433",gdot:"\u0121",ge:"\u2265",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",ges:"\u2A7E",gescc:"\u2AA9",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",gfr:"\u{1D524}",gg:"\u226B",ggg:"\u22D9",gimel:"\u2137",gjcy:"\u0453",gl:"\u2277",glE:"\u2A92",gla:"\u2AA5",glj:"\u2AA4",gnE:"\u2269",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",gopf:"\u{1D558}",grave:"`",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",g:">",gt:">",gtcc:"\u2AA7",gtcir:"\u2A7A",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",hArr:"\u21D4",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",hardcy:"\u044A",harr:"\u2194",harrcir:"\u2948",harrw:"\u21AD",hbar:"\u210F",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",hfr:"\u{1D525}",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",hopf:"\u{1D559}",horbar:"\u2015",hscr:"\u{1D4BD}",hslash:"\u210F",hstrok:"\u0127",hybull:"\u2043",hyphen:"\u2010",iacut:"\xED",iacute:"\xED",ic:"\u2063",icir:"\xEE",icirc:"\xEE",icy:"\u0438",iecy:"\u0435",iexc:"\xA1",iexcl:"\xA1",iff:"\u21D4",ifr:"\u{1D526}",igrav:"\xEC",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",ijlig:"\u0133",imacr:"\u012B",image:"\u2111",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",imof:"\u22B7",imped:"\u01B5",in:"\u2208",incare:"\u2105",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",int:"\u222B",intcal:"\u22BA",integers:"\u2124",intercal:"\u22BA",intlarhk:"\u2A17",intprod:"\u2A3C",iocy:"\u0451",iogon:"\u012F",iopf:"\u{1D55A}",iota:"\u03B9",iprod:"\u2A3C",iques:"\xBF",iquest:"\xBF",iscr:"\u{1D4BE}",isin:"\u2208",isinE:"\u22F9",isindot:"\u22F5",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",itilde:"\u0129",iukcy:"\u0456",ium:"\xEF",iuml:"\xEF",jcirc:"\u0135",jcy:"\u0439",jfr:"\u{1D527}",jmath:"\u0237",jopf:"\u{1D55B}",jscr:"\u{1D4BF}",jsercy:"\u0458",jukcy:"\u0454",kappa:"\u03BA",kappav:"\u03F0",kcedil:"\u0137",kcy:"\u043A",kfr:"\u{1D528}",kgreen:"\u0138",khcy:"\u0445",kjcy:"\u045C",kopf:"\u{1D55C}",kscr:"\u{1D4C0}",lAarr:"\u21DA",lArr:"\u21D0",lAtail:"\u291B",lBarr:"\u290E",lE:"\u2266",lEg:"\u2A8B",lHar:"\u2962",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",lambda:"\u03BB",lang:"\u27E8",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",laqu:"\xAB",laquo:"\xAB",larr:"\u2190",larrb:"\u21E4",larrbfs:"\u291F",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",lat:"\u2AAB",latail:"\u2919",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",lcaron:"\u013E",lcedil:"\u013C",lceil:"\u2308",lcub:"{",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",leftarrow:"\u2190",leftarrowtail:"\u21A2",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",leftrightarrow:"\u2194",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",leftthreetimes:"\u22CB",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",les:"\u2A7D",lescc:"\u2AA8",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",lessgtr:"\u2276",lesssim:"\u2272",lfisht:"\u297C",lfloor:"\u230A",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",ljcy:"\u0459",ll:"\u226A",llarr:"\u21C7",llcorner:"\u231E",llhard:"\u296B",lltri:"\u25FA",lmidot:"\u0140",lmoust:"\u23B0",lmoustache:"\u23B0",lnE:"\u2268",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",longleftarrow:"\u27F5",longleftrightarrow:"\u27F7",longmapsto:"\u27FC",longrightarrow:"\u27F6",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\u{1D4C1}",lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",lstrok:"\u0142",l:"<",lt:"<",ltcc:"\u2AA6",ltcir:"\u2A79",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltrPar:"\u2996",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",mDDot:"\u223A",mac:"\xAF",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",mcy:"\u043C",mdash:"\u2014",measuredangle:"\u2221",mfr:"\u{1D52A}",mho:"\u2127",micr:"\xB5",micro:"\xB5",mid:"\u2223",midast:"*",midcir:"\u2AF0",middo:"\xB7",middot:"\xB7",minus:"\u2212",minusb:"\u229F",minusd:"\u2238",minusdu:"\u2A2A",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",mopf:"\u{1D55E}",mp:"\u2213",mscr:"\u{1D4C2}",mstpos:"\u223E",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nGg:"\u22D9\u0338",nGt:"\u226B\u20D2",nGtv:"\u226B\u0338",nLeftarrow:"\u21CD",nLeftrightarrow:"\u21CE",nLl:"\u22D8\u0338",nLt:"\u226A\u20D2",nLtv:"\u226A\u0338",nRightarrow:"\u21CF",nVDash:"\u22AF",nVdash:"\u22AE",nabla:"\u2207",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natur:"\u266E",natural:"\u266E",naturals:"\u2115",nbs:"\xA0",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",ncaron:"\u0148",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",ncy:"\u043D",ndash:"\u2013",ne:"\u2260",neArr:"\u21D7",nearhk:"\u2924",nearr:"\u2197",nearrow:"\u2197",nedot:"\u2250\u0338",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",nexist:"\u2204",nexists:"\u2204",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",ngsim:"\u2275",ngt:"\u226F",ngtr:"\u226F",nhArr:"\u21CE",nharr:"\u21AE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",njcy:"\u045A",nlArr:"\u21CD",nlE:"\u2266\u0338",nlarr:"\u219A",nldr:"\u2025",nle:"\u2270",nleftarrow:"\u219A",nleftrightarrow:"\u21AE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nlsim:"\u2274",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nmid:"\u2224",nopf:"\u{1D55F}",no:"\xAC",not:"\xAC",notin:"\u2209",notinE:"\u22F9\u0338",notindot:"\u22F5\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",npar:"\u2226",nparallel:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",npre:"\u2AAF\u0338",nprec:"\u2280",npreceq:"\u2AAF\u0338",nrArr:"\u21CF",nrarr:"\u219B",nrarrc:"\u2933\u0338",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",ntild:"\xF1",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvDash:"\u22AD",nvHarr:"\u2904",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwArr:"\u21D6",nwarhk:"\u2923",nwarr:"\u2196",nwarrow:"\u2196",nwnear:"\u2927",oS:"\u24C8",oacut:"\xF3",oacute:"\xF3",oast:"\u229B",ocir:"\xF4",ocirc:"\xF4",ocy:"\u043E",odash:"\u229D",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",oelig:"\u0153",ofcir:"\u29BF",ofr:"\u{1D52C}",ogon:"\u02DB",ograv:"\xF2",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",omacr:"\u014D",omega:"\u03C9",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",oopf:"\u{1D560}",opar:"\u29B7",operp:"\u29B9",oplus:"\u2295",or:"\u2228",orarr:"\u21BB",ord:"\xBA",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oscr:"\u2134",oslas:"\xF8",oslash:"\xF8",osol:"\u2298",otild:"\xF5",otilde:"\xF5",otimes:"\u2297",otimesas:"\u2A36",oum:"\xF6",ouml:"\xF6",ovbar:"\u233D",par:"\xB6",para:"\xB6",parallel:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",pfr:"\u{1D52D}",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plus:"+",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",plusm:"\xB1",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",pointint:"\u2A15",popf:"\u{1D561}",poun:"\xA3",pound:"\xA3",pr:"\u227A",prE:"\u2AB3",prap:"\u2AB7",prcue:"\u227C",pre:"\u2AAF",prec:"\u227A",precapprox:"\u2AB7",preccurlyeq:"\u227C",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",precsim:"\u227E",prime:"\u2032",primes:"\u2119",prnE:"\u2AB5",prnap:"\u2AB9",prnsim:"\u22E8",prod:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",pscr:"\u{1D4C5}",psi:"\u03C8",puncsp:"\u2008",qfr:"\u{1D52E}",qint:"\u2A0C",qopf:"\u{1D562}",qprime:"\u2057",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",quo:'"',quot:'"',rAarr:"\u21DB",rArr:"\u21D2",rAtail:"\u291C",rBarr:"\u290F",rHar:"\u2964",race:"\u223D\u0331",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",rang:"\u27E9",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raqu:"\xBB",raquo:"\xBB",rarr:"\u2192",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",rarrtl:"\u21A3",rarrw:"\u219D",ratail:"\u291A",ratio:"\u2236",rationals:"\u211A",rbarr:"\u290D",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",rcaron:"\u0159",rcedil:"\u0157",rceil:"\u2309",rcub:"}",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",rect:"\u25AD",re:"\xAE",reg:"\xAE",rfisht:"\u297D",rfloor:"\u230B",rfr:"\u{1D52F}",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",rho:"\u03C1",rhov:"\u03F1",rightarrow:"\u2192",rightarrowtail:"\u21A3",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",rightthreetimes:"\u22CC",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoust:"\u23B1",rmoustache:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",ropf:"\u{1D563}",roplus:"\u2A2E",rotimes:"\u2A35",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",rsaquo:"\u203A",rscr:"\u{1D4C7}",rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",ruluhar:"\u2968",rx:"\u211E",sacute:"\u015B",sbquo:"\u201A",sc:"\u227B",scE:"\u2AB4",scap:"\u2AB8",scaron:"\u0161",sccue:"\u227D",sce:"\u2AB0",scedil:"\u015F",scirc:"\u015D",scnE:"\u2AB6",scnap:"\u2ABA",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",scy:"\u0441",sdot:"\u22C5",sdotb:"\u22A1",sdote:"\u2A66",seArr:"\u21D8",searhk:"\u2925",searr:"\u2198",searrow:"\u2198",sec:"\xA7",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",shchcy:"\u0449",shcy:"\u0448",shortmid:"\u2223",shortparallel:"\u2225",sh:"\xAD",shy:"\xAD",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",softcy:"\u044C",sol:"/",solb:"\u29C4",solbar:"\u233F",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",squ:"\u25A1",square:"\u25A1",squarf:"\u25AA",squf:"\u25AA",srarr:"\u2192",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",sub:"\u2282",subE:"\u2AC5",subdot:"\u2ABD",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",subset:"\u2282",subseteq:"\u2286",subseteqq:"\u2AC5",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succ:"\u227B",succapprox:"\u2AB8",succcurlyeq:"\u227D",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",sum:"\u2211",sung:"\u266A",sup:"\u2283",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",supE:"\u2AC6",supdot:"\u2ABE",supdsub:"\u2AD8",supe:"\u2287",supedot:"\u2AC4",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",supset:"\u2283",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swArr:"\u21D9",swarhk:"\u2926",swarr:"\u2199",swarrow:"\u2199",swnwar:"\u292A",szli:"\xDF",szlig:"\xDF",target:"\u2316",tau:"\u03C4",tbrk:"\u23B4",tcaron:"\u0165",tcedil:"\u0163",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",tfr:"\u{1D531}",there4:"\u2234",therefore:"\u2234",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",thinsp:"\u2009",thkap:"\u2248",thksim:"\u223C",thor:"\xFE",thorn:"\xFE",tilde:"\u02DC",time:"\xD7",times:"\xD7",timesb:"\u22A0",timesbar:"\u2A31",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",top:"\u22A4",topbot:"\u2336",topcir:"\u2AF1",topf:"\u{1D565}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",tscr:"\u{1D4C9}",tscy:"\u0446",tshcy:"\u045B",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",uArr:"\u21D1",uHar:"\u2963",uacut:"\xFA",uacute:"\xFA",uarr:"\u2191",ubrcy:"\u045E",ubreve:"\u016D",ucir:"\xFB",ucirc:"\xFB",ucy:"\u0443",udarr:"\u21C5",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",ufr:"\u{1D532}",ugrav:"\xF9",ugrave:"\xF9",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",umacr:"\u016B",um:"\xA8",uml:"\xA8",uogon:"\u0173",uopf:"\u{1D566}",uparrow:"\u2191",updownarrow:"\u2195",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",upsi:"\u03C5",upsih:"\u03D2",upsilon:"\u03C5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",uring:"\u016F",urtri:"\u25F9",uscr:"\u{1D4CA}",utdot:"\u22F0",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",uum:"\xFC",uuml:"\xFC",uwangle:"\u29A7",vArr:"\u21D5",vBar:"\u2AE8",vBarv:"\u2AE9",vDash:"\u22A8",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",varr:"\u2195",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",vcy:"\u0432",vdash:"\u22A2",vee:"\u2228",veebar:"\u22BB",veeeq:"\u225A",vellip:"\u22EE",verbar:"|",vert:"|",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",vzigzag:"\u299A",wcirc:"\u0175",wedbar:"\u2A5F",wedge:"\u2227",wedgeq:"\u2259",weierp:"\u2118",wfr:"\u{1D534}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",xfr:"\u{1D535}",xhArr:"\u27FA",xharr:"\u27F7",xi:"\u03BE",xlArr:"\u27F8",xlarr:"\u27F5",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrArr:"\u27F9",xrarr:"\u27F6",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",yacut:"\xFD",yacute:"\xFD",yacy:"\u044F",ycirc:"\u0177",ycy:"\u044B",ye:"\xA5",yen:"\xA5",yfr:"\u{1D536}",yicy:"\u0457",yopf:"\u{1D56A}",yscr:"\u{1D4CE}",yucy:"\u044E",yum:"\xFF",yuml:"\xFF",zacute:"\u017A",zcaron:"\u017E",zcy:"\u0437",zdot:"\u017C",zeetrf:"\u2128",zeta:"\u03B6",zfr:"\u{1D537}",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\u{1D56B}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"}});var za=b((pse,OP)=>{"use strict";var IP=AP();OP.exports=ZL;var HL={}.hasOwnProperty;function ZL(e){return HL.call(IP,e)?IP[e]:!1}i(ZL,"decodeEntity")});var Jl=b((fse,CP)=>{"use strict";var WL=Pr(),GL=WL(/\d/);CP.exports=GL});var $P=b((mse,zP)=>{"use strict";var KL=Pr(),JL=KL(/[\dA-Fa-f]/);zP.exports=JL});var NP=b((hse,DP)=>{"use strict";var XL=za(),RP=Un(),YL=Jl(),QL=$P();function eM(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}i(eM,"_interopDefaultLegacy");var tM=eM(XL),rM={name:"characterReference",tokenize:nM};function nM(e,t,r){var n=this,o=0,a,s;return u;function u(m){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(m),e.exit("characterReferenceMarker"),l}function l(m){return m===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(m),e.exit("characterReferenceMarkerNumeric"),p):(e.enter("characterReferenceValue"),a=31,s=RP,c(m))}function p(m){return m===88||m===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(m),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,s=QL,c):(e.enter("characterReferenceValue"),a=7,s=YL,c(m))}function c(m){var f;return m===59&&o?(f=e.exit("characterReferenceValue"),s===RP&&!tM.default(n.sliceSerialize(f))?r(m):(e.enter("characterReferenceMarker"),e.consume(m),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)):s(m)&&o++<a?(e.consume(m),c):r(m)}}i(nM,"tokenizeCharacterReference");DP.exports=rM});var LP=b((yse,UP)=>{"use strict";var Bn=Je(),iM=ar(),oM=qn(),Gi=it(),aM={name:"codeFenced",tokenize:sM,concrete:!0};function sM(e,t,r){var n=this,o={tokenize:P,partial:!0},a=oM(this.events,"linePrefix"),s=0,u;return l;function l(w){return e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),u=w,p(w)}function p(w){return w===u?(e.consume(w),s++,p):(e.exit("codeFencedFenceSequence"),s<3?r(w):Gi(e,c,"whitespace")(w))}function c(w){return w===null||Bn(w)?h(w):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),m(w))}function m(w){return w===null||iM(w)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Gi(e,f,"whitespace")(w)):w===96&&w===u?r(w):(e.consume(w),m)}function f(w){return w===null||Bn(w)?h(w):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),d(w))}function d(w){return w===null||Bn(w)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),h(w)):w===96&&w===u?r(w):(e.consume(w),d)}function h(w){return e.exit("codeFencedFence"),n.interrupt?t(w):x(w)}function x(w){return w===null?v(w):Bn(w)?(e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),e.attempt(o,v,a?Gi(e,x,"linePrefix",a+1):x)):(e.enter("codeFlowValue"),y(w))}function y(w){return w===null||Bn(w)?(e.exit("codeFlowValue"),x(w)):(e.consume(w),y)}function v(w){return e.exit("codeFenced"),t(w)}function P(w,I,N){var D=0;return Gi(w,B,"linePrefix",this.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4);function B(M){return w.enter("codeFencedFence"),w.enter("codeFencedFenceSequence"),W(M)}function W(M){return M===u?(w.consume(M),D++,W):D<s?N(M):(w.exit("codeFencedFenceSequence"),Gi(w,G,"whitespace")(M))}function G(M){return M===null||Bn(M)?(w.exit("codeFencedFence"),I(M)):N(M)}}}i(sM,"tokenizeCodeFenced");UP.exports=aM});var jP=b((xse,BP)=>{"use strict";var Xl=Je(),MP=ir(),uM=qn(),qP=it(),lM={name:"codeIndented",tokenize:pM,resolve:cM},FP={tokenize:dM,partial:!0};function cM(e,t){var r={type:"codeIndented",start:e[0][1].start,end:e[e.length-1][1].end};return MP(e,0,0,[["enter",r,t]]),MP(e,e.length,0,[["exit",r,t]]),e}i(cM,"resolveCodeIndented");function pM(e,t,r){return e.attempt(FP,n,r);function n(a){return a===null?t(a):Xl(a)?e.attempt(FP,n,t)(a):(e.enter("codeFlowValue"),o(a))}function o(a){return a===null||Xl(a)?(e.exit("codeFlowValue"),n(a)):(e.consume(a),o)}}i(pM,"tokenizeCodeIndented");function dM(e,t,r){var n=this;return qP(e,o,"linePrefix",5);function o(a){return Xl(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),qP(e,o,"linePrefix",5)):uM(n.events,"linePrefix")<4?r(a):t(a)}}i(dM,"tokenizeIndentedContent");BP.exports=lM});var ZP=b((_se,HP)=>{"use strict";var VP=Je(),fM={name:"codeText",tokenize:gM,resolve:mM,previous:hM};function mM(e){var t=e.length-4,r=3,n,o;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(n=r;++n<t;)if(e[n][1].type==="codeTextData"){e[t][1].type=e[r][1].type="codeTextPadding",r+=2,t-=2;break}}for(n=r-1,t++;++n<=t;)o===void 0?n!==t&&e[n][1].type!=="lineEnding"&&(o=n):(n===t||e[n][1].type==="lineEnding")&&(e[o][1].type="codeTextData",n!==o+2&&(e[o][1].end=e[n-1][1].end,e.splice(o+2,n-o-2),t-=n-o-2,n=o+2),o=void 0);return e}i(mM,"resolveCodeText");function hM(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}i(hM,"previous");function gM(e,t,r){var n=0,o,a;return s;function s(m){return e.enter("codeText"),e.enter("codeTextSequence"),u(m)}function u(m){return m===96?(e.consume(m),n++,u):(e.exit("codeTextSequence"),l(m))}function l(m){return m===null?r(m):m===96?(a=e.enter("codeTextSequence"),o=0,c(m)):m===32?(e.enter("space"),e.consume(m),e.exit("space"),l):VP(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),l):(e.enter("codeTextData"),p(m))}function p(m){return m===null||m===32||m===96||VP(m)?(e.exit("codeTextData"),l(m)):(e.consume(m),p)}function c(m){return m===96?(e.consume(m),o++,c):o===n?(e.exit("codeTextSequence"),e.exit("codeText"),t(m)):(a.type="codeTextData",p(m))}}i(gM,"tokenizeCodeText");HP.exports=fM});var Yl=b((wse,GP)=>{"use strict";var WP=ga(),yM=ar(),vM=Je();function xM(e,t,r,n,o,a,s,u,l){var p=l||1/0,c=0;return m;function m(v){return v===60?(e.enter(n),e.enter(o),e.enter(a),e.consume(v),e.exit(a),f):WP(v)||v===41?r(v):(e.enter(n),e.enter(s),e.enter(u),e.enter("chunkString",{contentType:"string"}),x(v))}function f(v){return v===62?(e.enter(a),e.consume(v),e.exit(a),e.exit(o),e.exit(n),t):(e.enter(u),e.enter("chunkString",{contentType:"string"}),d(v))}function d(v){return v===62?(e.exit("chunkString"),e.exit(u),f(v)):v===null||v===60||vM(v)?r(v):(e.consume(v),v===92?h:d)}function h(v){return v===60||v===62||v===92?(e.consume(v),d):d(v)}function x(v){return v===40?++c>p?r(v):(e.consume(v),x):v===41?c--?(e.consume(v),x):(e.exit("chunkString"),e.exit(u),e.exit(s),e.exit(n),t(v)):v===null||yM(v)?c?r(v):(e.exit("chunkString"),e.exit(u),e.exit(s),e.exit(n),t(v)):WP(v)?r(v):(e.consume(v),v===92?y:x)}function y(v){return v===40||v===41||v===92?(e.consume(v),x):x(v)}}i(xM,"destinationFactory");GP.exports=xM});var Ql=b((kse,JP)=>{"use strict";var KP=Je(),bM=sr();function _M(e,t,r,n,o,a){var s=this,u=0,l;return p;function p(d){return e.enter(n),e.enter(o),e.consume(d),e.exit(o),e.enter(a),c}function c(d){return d===null||d===91||d===93&&!l||d===94&&!u&&"_hiddenFootnoteSupport"in s.parser.constructs||u>999?r(d):d===93?(e.exit(a),e.enter(o),e.consume(d),e.exit(o),e.exit(n),t):KP(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),m(d))}function m(d){return d===null||d===91||d===93||KP(d)||u++>999?(e.exit("chunkString"),c(d)):(e.consume(d),l=l||!bM(d),d===92?f:m)}function f(d){return d===91||d===92||d===93?(e.consume(d),u++,m):m(d)}}i(_M,"labelFactory");JP.exports=_M});var ec=b((Sse,XP)=>{"use strict";var PM=Je(),wM=sr(),EM=it();function kM(e,t){var r;return n;function n(o){return PM(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),r=!0,n):wM(o)?EM(e,n,r?"linePrefix":"lineSuffix")(o):t(o)}}i(kM,"whitespaceFactory");XP.exports=kM});var tc=b((Ise,QP)=>{"use strict";var YP=Je(),TM=it();function SM(e,t,r,n,o,a){var s;return u;function u(f){return e.enter(n),e.enter(o),e.consume(f),e.exit(o),s=f===40?41:f,l}function l(f){return f===s?(e.enter(o),e.consume(f),e.exit(o),e.exit(n),t):(e.enter(a),p(f))}function p(f){return f===s?(e.exit(a),l(s)):f===null?r(f):YP(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),TM(e,p,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(f))}function c(f){return f===s||f===null||YP(f)?(e.exit("chunkString"),p(f)):(e.consume(f),f===92?m:c)}function m(f){return f===s||f===92?(e.consume(f),c):c(f)}}i(SM,"titleFactory");QP.exports=SM});var nw=b((Cse,rw)=>{"use strict";var ew=Je(),AM=ar(),IM=Ia(),OM=Yl(),CM=Ql(),rc=it(),tw=ec(),zM=tc(),$M={name:"definition",tokenize:DM},RM={tokenize:NM,partial:!0};function DM(e,t,r){var n=this,o;return a;function a(l){return e.enter("definition"),CM.call(n,e,s,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(l)}function s(l){return o=IM(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)),l===58?(e.enter("definitionMarker"),e.consume(l),e.exit("definitionMarker"),tw(e,OM(e,e.attempt(RM,rc(e,u,"whitespace"),rc(e,u,"whitespace")),r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString"))):r(l)}function u(l){return l===null||ew(l)?(e.exit("definition"),n.parser.defined.indexOf(o)<0&&n.parser.defined.push(o),t(l)):r(l)}}i(DM,"tokenizeDefinition");function NM(e,t,r){return n;function n(s){return AM(s)?tw(e,o)(s):r(s)}function o(s){return s===34||s===39||s===40?zM(e,rc(e,a,"whitespace"),r,"definitionTitle","definitionTitleMarker","definitionTitleString")(s):r(s)}function a(s){return s===null||ew(s)?t(s):r(s)}}i(NM,"tokenizeTitle");rw.exports=$M});var ow=b(($se,iw)=>{"use strict";var UM=Je(),LM={name:"hardBreakEscape",tokenize:MM};function MM(e,t,r){return n;function n(a){return e.enter("hardBreakEscape"),e.enter("escapeMarker"),e.consume(a),o}function o(a){return UM(a)?(e.exit("escapeMarker"),e.exit("hardBreakEscape"),t(a)):r(a)}}i(MM,"tokenizeHardBreakEscape");iw.exports=LM});var uw=b((Dse,sw)=>{"use strict";var qM=Je(),aw=ar(),FM=sr(),BM=ir(),jM=it(),VM={name:"headingAtx",tokenize:ZM,resolve:HM};function HM(e,t){var r=e.length-2,n=3,o,a;return e[n][1].type==="whitespace"&&(n+=2),r-2>n&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(n===r-1||r-4>n&&e[r-2][1].type==="whitespace")&&(r-=n+1===r?2:4),r>n&&(o={type:"atxHeadingText",start:e[n][1].start,end:e[r][1].end},a={type:"chunkText",start:e[n][1].start,end:e[r][1].end,contentType:"text"},BM(e,n,r-n+1,[["enter",o,t],["enter",a,t],["exit",a,t],["exit",o,t]])),e}i(HM,"resolveHeadingAtx");function ZM(e,t,r){var n=this,o=0;return a;function a(c){return e.enter("atxHeading"),e.enter("atxHeadingSequence"),s(c)}function s(c){return c===35&&o++<6?(e.consume(c),s):c===null||aw(c)?(e.exit("atxHeadingSequence"),n.interrupt?t(c):u(c)):r(c)}function u(c){return c===35?(e.enter("atxHeadingSequence"),l(c)):c===null||qM(c)?(e.exit("atxHeading"),t(c)):FM(c)?jM(e,u,"whitespace")(c):(e.enter("atxHeadingText"),p(c))}function l(c){return c===35?(e.consume(c),l):(e.exit("atxHeadingSequence"),u(c))}function p(c){return c===null||c===35||aw(c)?(e.exit("atxHeadingText"),u(c)):(e.consume(c),p)}}i(ZM,"tokenizeHeadingAtx");sw.exports=VM});var cw=b((Use,lw)=>{"use strict";var WM=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"];lw.exports=WM});var dw=b((Lse,pw)=>{"use strict";var GM=["pre","script","style","textarea"];pw.exports=GM});var yw=b((Mse,gw)=>{"use strict";var Ki=Bi(),fw=Un(),jn=Je(),mw=ar(),Vn=sr(),$a=Fi(),KM=cw(),hw=dw(),JM=Hi(),XM={name:"htmlFlow",tokenize:eq,resolveTo:QM,concrete:!0},YM={tokenize:tq,partial:!0};function QM(e){for(var t=e.length;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}i(QM,"resolveToHtmlFlow");function eq(e,t,r){var n=this,o,a,s,u,l;return p;function p(g){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(g),c}function c(g){return g===33?(e.consume(g),m):g===47?(e.consume(g),h):g===63?(e.consume(g),o=3,n.interrupt?t:ke):Ki(g)?(e.consume(g),s=$a(g),a=!0,x):r(g)}function m(g){return g===45?(e.consume(g),o=2,f):g===91?(e.consume(g),o=5,s="CDATA[",u=0,d):Ki(g)?(e.consume(g),o=4,n.interrupt?t:ke):r(g)}function f(g){return g===45?(e.consume(g),n.interrupt?t:ke):r(g)}function d(g){return g===s.charCodeAt(u++)?(e.consume(g),u===s.length?n.interrupt?t:z:d):r(g)}function h(g){return Ki(g)?(e.consume(g),s=$a(g),x):r(g)}function x(g){return g===null||g===47||g===62||mw(g)?g!==47&&a&&hw.indexOf(s.toLowerCase())>-1?(o=1,n.interrupt?t(g):z(g)):KM.indexOf(s.toLowerCase())>-1?(o=6,g===47?(e.consume(g),y):n.interrupt?t(g):z(g)):(o=7,n.interrupt?r(g):a?P(g):v(g)):g===45||fw(g)?(e.consume(g),s+=$a(g),x):r(g)}function y(g){return g===62?(e.consume(g),n.interrupt?t:z):r(g)}function v(g){return Vn(g)?(e.consume(g),v):G(g)}function P(g){return g===47?(e.consume(g),G):g===58||g===95||Ki(g)?(e.consume(g),w):Vn(g)?(e.consume(g),P):G(g)}function w(g){return g===45||g===46||g===58||g===95||fw(g)?(e.consume(g),w):I(g)}function I(g){return g===61?(e.consume(g),N):Vn(g)?(e.consume(g),I):P(g)}function N(g){return g===null||g===60||g===61||g===62||g===96?r(g):g===34||g===39?(e.consume(g),l=g,D):Vn(g)?(e.consume(g),N):(l=void 0,B(g))}function D(g){return g===l?(e.consume(g),W):g===null||jn(g)?r(g):(e.consume(g),D)}function B(g){return g===null||g===34||g===39||g===60||g===61||g===62||g===96||mw(g)?I(g):(e.consume(g),B)}function W(g){return g===47||g===62||Vn(g)?P(g):r(g)}function G(g){return g===62?(e.consume(g),M):r(g)}function M(g){return Vn(g)?(e.consume(g),M):g===null||jn(g)?z(g):r(g)}function z(g){return g===45&&o===2?(e.consume(g),se):g===60&&o===1?(e.consume(g),xe):g===62&&o===4?(e.consume(g),Ze):g===63&&o===3?(e.consume(g),ke):g===93&&o===5?(e.consume(g),T):jn(g)&&(o===6||o===7)?e.check(YM,Ze,L)(g):g===null||jn(g)?L(g):(e.consume(g),z)}function L(g){return e.exit("htmlFlowData"),ae(g)}function ae(g){return g===null?be(g):jn(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),ae):(e.enter("htmlFlowData"),z(g))}function se(g){return g===45?(e.consume(g),ke):z(g)}function xe(g){return g===47?(e.consume(g),s="",De):z(g)}function De(g){return g===62&&hw.indexOf(s.toLowerCase())>-1?(e.consume(g),Ze):Ki(g)&&s.length<8?(e.consume(g),s+=$a(g),De):z(g)}function T(g){return g===93?(e.consume(g),ke):z(g)}function ke(g){return g===62?(e.consume(g),Ze):z(g)}function Ze(g){return g===null||jn(g)?(e.exit("htmlFlowData"),be(g)):(e.consume(g),Ze)}function be(g){return e.exit("htmlFlow"),t(g)}}i(eq,"tokenizeHtmlFlow");function tq(e,t,r){return n;function n(o){return e.exit("htmlFlowData"),e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),e.attempt(JM,t,r)}}i(tq,"tokenizeNextBlank");gw.exports=XM});var xw=b((Fse,vw)=>{"use strict";var Ra=Bi(),nc=Un(),kr=Je(),ic=ar(),Da=sr(),rq=it(),nq={name:"htmlText",tokenize:iq};function iq(e,t,r){var n=this,o,a,s,u;return l;function l(g){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(g),p}function p(g){return g===33?(e.consume(g),c):g===47?(e.consume(g),B):g===63?(e.consume(g),N):Ra(g)?(e.consume(g),M):r(g)}function c(g){return g===45?(e.consume(g),m):g===91?(e.consume(g),a="CDATA[",s=0,y):Ra(g)?(e.consume(g),I):r(g)}function m(g){return g===45?(e.consume(g),f):r(g)}function f(g){return g===null||g===62?r(g):g===45?(e.consume(g),d):h(g)}function d(g){return g===null||g===62?r(g):h(g)}function h(g){return g===null?r(g):g===45?(e.consume(g),x):kr(g)?(u=h,ke(g)):(e.consume(g),h)}function x(g){return g===45?(e.consume(g),be):h(g)}function y(g){return g===a.charCodeAt(s++)?(e.consume(g),s===a.length?v:y):r(g)}function v(g){return g===null?r(g):g===93?(e.consume(g),P):kr(g)?(u=v,ke(g)):(e.consume(g),v)}function P(g){return g===93?(e.consume(g),w):v(g)}function w(g){return g===62?be(g):g===93?(e.consume(g),w):v(g)}function I(g){return g===null||g===62?be(g):kr(g)?(u=I,ke(g)):(e.consume(g),I)}function N(g){return g===null?r(g):g===63?(e.consume(g),D):kr(g)?(u=N,ke(g)):(e.consume(g),N)}function D(g){return g===62?be(g):N(g)}function B(g){return Ra(g)?(e.consume(g),W):r(g)}function W(g){return g===45||nc(g)?(e.consume(g),W):G(g)}function G(g){return kr(g)?(u=G,ke(g)):Da(g)?(e.consume(g),G):be(g)}function M(g){return g===45||nc(g)?(e.consume(g),M):g===47||g===62||ic(g)?z(g):r(g)}function z(g){return g===47?(e.consume(g),be):g===58||g===95||Ra(g)?(e.consume(g),L):kr(g)?(u=z,ke(g)):Da(g)?(e.consume(g),z):be(g)}function L(g){return g===45||g===46||g===58||g===95||nc(g)?(e.consume(g),L):ae(g)}function ae(g){return g===61?(e.consume(g),se):kr(g)?(u=ae,ke(g)):Da(g)?(e.consume(g),ae):z(g)}function se(g){return g===null||g===60||g===61||g===62||g===96?r(g):g===34||g===39?(e.consume(g),o=g,xe):kr(g)?(u=se,ke(g)):Da(g)?(e.consume(g),se):(e.consume(g),o=void 0,T)}function xe(g){return g===o?(e.consume(g),De):g===null?r(g):kr(g)?(u=xe,ke(g)):(e.consume(g),xe)}function De(g){return g===62||g===47||ic(g)?z(g):r(g)}function T(g){return g===null||g===34||g===39||g===60||g===61||g===96?r(g):g===62||ic(g)?z(g):(e.consume(g),T)}function ke(g){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),rq(e,Ze,"linePrefix",n.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4)}function Ze(g){return e.enter("htmlTextData"),u(g)}function be(g){return g===62?(e.consume(g),e.exit("htmlTextData"),e.exit("htmlText"),t):r(g)}}i(iq,"tokenizeHtmlText");vw.exports=nq});var Na=b((jse,_w)=>{"use strict";var oq=ar(),Hn=Oa(),aq=ir(),bw=Ia(),sq=ji(),Zn=Lr(),uq=Yl(),lq=Ql(),cq=tc(),oc=ec(),pq={name:"labelEnd",tokenize:yq,resolveTo:gq,resolveAll:hq},dq={tokenize:vq},fq={tokenize:xq},mq={tokenize:bq};function hq(e){for(var t=-1,r;++t<e.length;)r=e[t][1],!r._used&&(r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd")&&(e.splice(t+1,r.type==="labelImage"?4:2),r.type="data",t++);return e}i(hq,"resolveAllLabelEnd");function gq(e,t){for(var r=e.length,n=0,o,a,s,u,l,p,c;r--;)if(u=e[r][1],l){if(u.type==="link"||u.type==="labelLink"&&u._inactive)break;e[r][0]==="enter"&&u.type==="labelLink"&&(u._inactive=!0)}else if(p){if(e[r][0]==="enter"&&(u.type==="labelImage"||u.type==="labelLink")&&!u._balanced&&(l=r,u.type!=="labelLink")){n=2;break}}else u.type==="labelEnd"&&(p=r);return o={type:e[l][1].type==="labelLink"?"link":"image",start:Zn(e[l][1].start),end:Zn(e[e.length-1][1].end)},a={type:"label",start:Zn(e[l][1].start),end:Zn(e[p][1].end)},s={type:"labelText",start:Zn(e[l+n+2][1].end),end:Zn(e[p-2][1].start)},c=[["enter",o,t],["enter",a,t]],c=Hn(c,e.slice(l+1,l+n+3)),c=Hn(c,[["enter",s,t]]),c=Hn(c,sq(t.parser.constructs.insideSpan.null,e.slice(l+n+4,p-3),t)),c=Hn(c,[["exit",s,t],e[p-2],e[p-1],["exit",a,t]]),c=Hn(c,e.slice(p+1)),c=Hn(c,[["exit",o,t]]),aq(e,l,e.length,c),e}i(gq,"resolveToLabelEnd");function yq(e,t,r){for(var n=this,o=n.events.length,a,s;o--;)if((n.events[o][1].type==="labelImage"||n.events[o][1].type==="labelLink")&&!n.events[o][1]._balanced){a=n.events[o][1];break}return u;function u(c){return a?a._inactive?p(c):(s=n.parser.defined.indexOf(bw(n.sliceSerialize({start:a.end,end:n.now()})))>-1,e.enter("labelEnd"),e.enter("labelMarker"),e.consume(c),e.exit("labelMarker"),e.exit("labelEnd"),l):r(c)}function l(c){return c===40?e.attempt(dq,t,s?t:p)(c):c===91?e.attempt(fq,t,s?e.attempt(mq,t,p):p)(c):s?t(c):p(c)}function p(c){return a._balanced=!0,r(c)}}i(yq,"tokenizeLabelEnd");function vq(e,t,r){return n;function n(l){return e.enter("resource"),e.enter("resourceMarker"),e.consume(l),e.exit("resourceMarker"),oc(e,o)}function o(l){return l===41?u(l):uq(e,a,r,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",3)(l)}function a(l){return oq(l)?oc(e,s)(l):u(l)}function s(l){return l===34||l===39||l===40?cq(e,oc(e,u),r,"resourceTitle","resourceTitleMarker","resourceTitleString")(l):u(l)}function u(l){return l===41?(e.enter("resourceMarker"),e.consume(l),e.exit("resourceMarker"),e.exit("resource"),t):r(l)}}i(vq,"tokenizeResource");function xq(e,t,r){var n=this;return o;function o(s){return lq.call(n,e,a,r,"reference","referenceMarker","referenceString")(s)}function a(s){return n.parser.defined.indexOf(bw(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)))<0?r(s):t(s)}}i(xq,"tokenizeFullReference");function bq(e,t,r){return n;function n(a){return e.enter("reference"),e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),o}function o(a){return a===93?(e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),e.exit("reference"),t):r(a)}}i(bq,"tokenizeCollapsedReference");_w.exports=pq});var ww=b((Hse,Pw)=>{"use strict";var _q=Na(),Pq={name:"labelStartImage",tokenize:wq,resolveAll:_q.resolveAll};function wq(e,t,r){var n=this;return o;function o(u){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(u),e.exit("labelImageMarker"),a}function a(u){return u===91?(e.enter("labelMarker"),e.consume(u),e.exit("labelMarker"),e.exit("labelImage"),s):r(u)}function s(u){return u===94&&"_hiddenFootnoteSupport"in n.parser.constructs?r(u):t(u)}}i(wq,"tokenizeLabelStartImage");Pw.exports=Pq});var kw=b((Wse,Ew)=>{"use strict";var Eq=Na(),kq={name:"labelStartLink",tokenize:Tq,resolveAll:Eq.resolveAll};function Tq(e,t,r){var n=this;return o;function o(s){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelLink"),a}function a(s){return s===94&&"_hiddenFootnoteSupport"in n.parser.constructs?r(s):t(s)}}i(Tq,"tokenizeLabelStartLink");Ew.exports=kq});var Sw=b((Kse,Tw)=>{"use strict";var Sq=it(),Aq={name:"lineEnding",tokenize:Iq};function Iq(e,t){return r;function r(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),Sq(e,t,"linePrefix")}}i(Iq,"tokenizeLineEnding");Tw.exports=Aq});var ac=b((Xse,Aw)=>{"use strict";var Oq=Je(),Cq=sr(),zq=it(),$q={name:"thematicBreak",tokenize:Rq};function Rq(e,t,r){var n=0,o;return a;function a(l){return e.enter("thematicBreak"),o=l,s(l)}function s(l){return l===o?(e.enter("thematicBreakSequence"),u(l)):Cq(l)?zq(e,s,"whitespace")(l):n<3||l!==null&&!Oq(l)?r(l):(e.exit("thematicBreak"),t(l))}function u(l){return l===o?(e.consume(l),n++,u):(e.exit("thematicBreakSequence"),s(l))}}i(Rq,"tokenizeThematicBreak");Aw.exports=$q});var $w=b((Qse,zw)=>{"use strict";var Iw=Jl(),sc=sr(),uc=qn(),Dq=Sl(),Ua=it(),Ow=Hi(),Nq=ac(),Cw={name:"list",tokenize:Mq,continuation:{tokenize:qq},exit:Bq},Uq={tokenize:jq,partial:!0},Lq={tokenize:Fq,partial:!0};function Mq(e,t,r){var n=this,o=uc(n.events,"linePrefix"),a=0;return s;function s(f){var d=n.containerState.type||(f===42||f===43||f===45?"listUnordered":"listOrdered");if(d==="listUnordered"?!n.containerState.marker||f===n.containerState.marker:Iw(f)){if(n.containerState.type||(n.containerState.type=d,e.enter(d,{_container:!0})),d==="listUnordered")return e.enter("listItemPrefix"),f===42||f===45?e.check(Nq,r,l)(f):l(f);if(!n.interrupt||f===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(f)}return r(f)}function u(f){return Iw(f)&&++a<10?(e.consume(f),u):(!n.interrupt||a<2)&&(n.containerState.marker?f===n.containerState.marker:f===41||f===46)?(e.exit("listItemValue"),l(f)):r(f)}function l(f){return e.enter("listItemMarker"),e.consume(f),e.exit("listItemMarker"),n.containerState.marker=n.containerState.marker||f,e.check(Ow,n.interrupt?r:p,e.attempt(Uq,m,c))}function p(f){return n.containerState.initialBlankLine=!0,o++,m(f)}function c(f){return sc(f)?(e.enter("listItemPrefixWhitespace"),e.consume(f),e.exit("listItemPrefixWhitespace"),m):r(f)}function m(f){return n.containerState.size=o+Dq(n.sliceStream(e.exit("listItemPrefix"))),t(f)}}i(Mq,"tokenizeListStart");function qq(e,t,r){var n=this;return n.containerState._closeFlow=void 0,e.check(Ow,o,a);function o(u){return n.containerState.furtherBlankLines=n.containerState.furtherBlankLines||n.containerState.initialBlankLine,Ua(e,t,"listItemIndent",n.containerState.size+1)(u)}i(o,"onBlank");function a(u){return n.containerState.furtherBlankLines||!sc(u)?(n.containerState.furtherBlankLines=n.containerState.initialBlankLine=void 0,s(u)):(n.containerState.furtherBlankLines=n.containerState.initialBlankLine=void 0,e.attempt(Lq,t,s)(u))}i(a,"notBlank");function s(u){return n.containerState._closeFlow=!0,n.interrupt=void 0,Ua(e,e.attempt(Cw,t,r),"linePrefix",n.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4)(u)}i(s,"notInCurrentItem")}i(qq,"tokenizeListContinuation");function Fq(e,t,r){var n=this;return Ua(e,o,"listItemIndent",n.containerState.size+1);function o(a){return uc(n.events,"listItemIndent")===n.containerState.size?t(a):r(a)}}i(Fq,"tokenizeIndent");function Bq(e){e.exit(this.containerState.type)}i(Bq,"tokenizeListEnd");function jq(e,t,r){var n=this;return Ua(e,o,"listItemPrefixWhitespace",n.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:5);function o(a){return sc(a)||!uc(n.events,"listItemPrefixWhitespace")?r(a):t(a)}}i(jq,"tokenizeListItemPrefixWhitespace");zw.exports=Cw});var Dw=b((tue,Rw)=>{"use strict";var Vq=Je(),lc=Lr(),Hq=it(),Zq={name:"setextUnderline",tokenize:Gq,resolveTo:Wq};function Wq(e,t){for(var r=e.length,n,o,a,s;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){n=r;break}e[r][1].type==="paragraph"&&(o=r)}else e[r][1].type==="content"&&e.splice(r,1),!a&&e[r][1].type==="definition"&&(a=r);return s={type:"setextHeading",start:lc(e[o][1].start),end:lc(e[e.length-1][1].end)},e[o][1].type="setextHeadingText",a?(e.splice(o,0,["enter",s,t]),e.splice(a+1,0,["exit",e[n][1],t]),e[n][1].end=lc(e[a][1].end)):e[n][1]=s,e.push(["exit",s,t]),e}i(Wq,"resolveToSetextUnderline");function Gq(e,t,r){for(var n=this,o=n.events.length,a,s;o--;)if(n.events[o][1].type!=="lineEnding"&&n.events[o][1].type!=="linePrefix"&&n.events[o][1].type!=="content"){s=n.events[o][1].type==="paragraph";break}return u;function u(c){return!n.lazy&&(n.interrupt||s)?(e.enter("setextHeadingLine"),e.enter("setextHeadingLineSequence"),a=c,l(c)):r(c)}function l(c){return c===a?(e.consume(c),l):(e.exit("setextHeadingLineSequence"),Hq(e,p,"lineSuffix")(c))}function p(c){return c===null||Vq(c)?(e.exit("setextHeadingLine"),t(c)):r(c)}}i(Gq,"tokenizeSetextUnderline");Rw.exports=Zq});var qw=b(cr=>{"use strict";Object.defineProperty(cr,"__esModule",{value:!0});var Kq=Gl(),fc=hP(),Jq=bP(),Xq=wP(),Lw=SP(),Mw=NP(),Nw=LP(),cc=jP(),Yq=ZP(),Qq=nw(),eF=ow(),tF=uw(),rF=yw(),nF=xw(),iF=Na(),oF=ww(),aF=kw(),pc=Sw(),zt=$w(),Uw=Dw(),dc=ac(),sF={42:zt,43:zt,45:zt,48:zt,49:zt,50:zt,51:zt,52:zt,53:zt,54:zt,55:zt,56:zt,57:zt,62:Xq},uF={91:Qq},lF={"-2":cc,"-1":cc,32:cc},cF={35:tF,42:dc,45:[Uw,dc],60:rF,61:Uw,95:dc,96:Nw,126:Nw},pF={38:Mw,92:Lw},dF={"-5":pc,"-4":pc,"-3":pc,33:oF,38:Mw,42:fc,60:[Jq,nF],91:aF,92:[eF,Lw],93:iF,95:fc,96:Yq},fF={null:[fc,Kq.resolver]},mF={null:[]};cr.contentInitial=uF;cr.disable=mF;cr.document=sF;cr.flow=cF;cr.flowInitial=lF;cr.insideSpan=fF;cr.string=pF;cr.text=dF});var jw=b((iue,Bw)=>{"use strict";var hF=j_(),gF=Z_(),yF=Y_(),Fw=Gl(),vF=bl(),xF=lP(),bF=ha(),_F=qw();function PF(e){var t=e||{},r={defined:[],constructs:vF([_F].concat(bF(t.extensions))),content:n(hF),document:n(gF),flow:n(yF),string:n(Fw.string),text:n(Fw.text)};return r;function n(o){return a;function a(s){return xF(r,o,s)}}}i(PF,"parse");Bw.exports=PF});var Zw=b((aue,Hw)=>{"use strict";var Vw=/[\0\t\n\r]/g;function wF(){var e=!0,t=1,r="",n;return o;function o(a,s,u){var l=[],p,c,m,f,d;for(a=r+a.toString(s),m=0,r="",e&&(a.charCodeAt(0)===65279&&m++,e=void 0);m<a.length;){if(Vw.lastIndex=m,p=Vw.exec(a),f=p?p.index:a.length,d=a.charCodeAt(f),!p){r=a.slice(m);break}if(d===10&&m===f&&n)l.push(-3),n=void 0;else if(n&&(l.push(-5),n=void 0),m<f&&(l.push(a.slice(m,f)),t+=f-m),d===0)l.push(65533),t++;else if(d===9)for(c=Math.ceil(t/4)*4,l.push(-2);t++<c;)l.push(-1);else d===10?(l.push(-4),t=1):(n=!0,t=1);m=f+1}return u&&(n&&l.push(-5),r&&l.push(r),l.push(null)),l}}i(wF,"preprocess");Hw.exports=wF});var Gw=b((uue,Ww)=>{"use strict";var EF=Zl();function kF(e){for(;!EF(e););return e}i(kF,"postprocess");Ww.exports=kF});var hc=b((cue,Xw)=>{"use strict";var Wn={}.hasOwnProperty;Xw.exports=TF;function TF(e){return!e||typeof e!="object"?"":Wn.call(e,"position")||Wn.call(e,"type")?Kw(e.position):Wn.call(e,"start")||Wn.call(e,"end")?Kw(e):Wn.call(e,"line")||Wn.call(e,"column")?mc(e):""}i(TF,"stringify");function mc(e){return(!e||typeof e!="object")&&(e={}),Jw(e.line)+":"+Jw(e.column)}i(mc,"point");function Kw(e){return(!e||typeof e!="object")&&(e={}),mc(e.start)+"-"+mc(e.end)}i(Kw,"position");function Jw(e){return e&&typeof e=="number"?e:1}i(Jw,"index")});var eE=b((due,Qw)=>{"use strict";Qw.exports=RF;var SF=Aa(),AF=Mn(),Yw=vl(),gc=Ia(),IF=B_(),OF=jw(),CF=Zw(),zF=Gw(),$F=za(),La=hc();function RF(e,t,r){return typeof t!="string"&&(r=t,t=void 0),DF(r)(zF(OF(r).document().write(CF()(e,t,!0))))}i(RF,"fromMarkdown");function DF(e){var t=e||{},r=NF({transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:p(Dc),autolinkProtocol:ae,autolinkEmail:ae,atxHeading:p(Kn),blockQuote:p(pt),characterEscape:ae,characterReference:ae,codeFenced:p(Ce),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:p(Ce,c),codeText:p(vt,c),codeTextData:ae,data:ae,codeFlowValue:ae,definition:p(Fr),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:p(Ye),hardBreakEscape:p($c),hardBreakTrailing:p($c),htmlFlow:p(Rc,c),htmlFlowData:ae,htmlText:p(Rc,c),htmlTextData:ae,image:p(bS),label:c,link:p(Dc),listItem:p(_S),listItemValue:y,listOrdered:p(Nc,x),listUnordered:p(Nc),paragraph:p(PS),reference:F,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:p(Kn),strong:p(wS),thematicBreak:p(kS)},exit:{atxHeading:f(),atxHeadingSequence:G,autolink:f(),autolinkEmail:We,autolinkProtocol:ge,blockQuote:f(),characterEscapeValue:se,characterReferenceMarkerHexadecimal:Z,characterReferenceMarkerNumeric:Z,characterReferenceValue:Oe,codeFenced:f(I),codeFencedFence:w,codeFencedFenceInfo:v,codeFencedFenceMeta:P,codeFlowValue:se,codeIndented:f(N),codeText:f(Ze),codeTextData:se,data:se,definition:f(),definitionDestinationString:W,definitionLabelString:D,definitionTitleString:B,emphasis:f(),hardBreakEscape:f(De),hardBreakTrailing:f(De),htmlFlow:f(T),htmlFlowData:se,htmlText:f(ke),htmlTextData:se,image:f(g),label:It,labelText:Te,lineEnding:xe,link:f(be),listItem:f(),listOrdered:f(),listUnordered:f(),paragraph:f(),referenceString:U,resourceDestinationString:Ne,resourceTitleString:lt,resource:fe,setextHeading:f(L),setextHeadingLineSequence:z,setextHeadingText:M,strong:f(),thematicBreak:f()}},t.mdastExtensions||[]),n={};return o;function o(O){for(var ie={type:"root",children:[]},Se=[ie],ze=[],$t=[],Ge=-1,Vt,Br,Ht={stack:Se,tokenStack:ze,config:r,enter:m,exit:d,buffer:c,resume:h,setData:s,getData:u};++Ge<O.length;)(O[Ge][1].type==="listOrdered"||O[Ge][1].type==="listUnordered")&&(O[Ge][0]==="enter"?$t.push(Ge):(Br=$t.pop(Ge),Ge=a(O,Br,Ge)));for(Ge=-1;++Ge<O.length;)Vt=r[O[Ge][0]],Yw.call(Vt,O[Ge][1].type)&&Vt[O[Ge][1].type].call(AF({sliceSerialize:O[Ge][2].sliceSerialize},Ht),O[Ge][1]);if(ze.length)throw new Error("Cannot close document, a token (`"+ze[ze.length-1].type+"`, "+La({start:ze[ze.length-1].start,end:ze[ze.length-1].end})+") is still open");for(ie.position={start:l(O.length?O[0][1].start:{line:1,column:1,offset:0}),end:l(O.length?O[O.length-2][1].end:{line:1,column:1,offset:0})},Ge=-1;++Ge<r.transforms.length;)ie=r.transforms[Ge](ie)||ie;return ie}function a(O,ie,Se){for(var ze=ie-1,$t=-1,Ge=!1,Vt,Br,Ht,Qt,qe,Jn,Xn;++ze<=Se;)if(qe=O[ze],qe[1].type==="listUnordered"||qe[1].type==="listOrdered"||qe[1].type==="blockQuote"?(qe[0]==="enter"?$t++:$t--,Xn=void 0):qe[1].type==="lineEndingBlank"?qe[0]==="enter"&&(Vt&&!Xn&&!$t&&!Jn&&(Jn=ze),Xn=void 0):qe[1].type==="linePrefix"||qe[1].type==="listItemValue"||qe[1].type==="listItemMarker"||qe[1].type==="listItemPrefix"||qe[1].type==="listItemPrefixWhitespace"||(Xn=void 0),!$t&&qe[0]==="enter"&&qe[1].type==="listItemPrefix"||$t===-1&&qe[0]==="exit"&&(qe[1].type==="listUnordered"||qe[1].type==="listOrdered")){if(Vt){for(Br=ze,Ht=void 0;Br--;)if(Qt=O[Br],Qt[1].type==="lineEnding"||Qt[1].type==="lineEndingBlank"){if(Qt[0]==="exit")continue;Ht&&(O[Ht][1].type="lineEndingBlank",Ge=!0),Qt[1].type="lineEnding",Ht=Br}else if(!(Qt[1].type==="linePrefix"||Qt[1].type==="blockQuotePrefix"||Qt[1].type==="blockQuotePrefixWhitespace"||Qt[1].type==="blockQuoteMarker"||Qt[1].type==="listItemIndent"))break;Jn&&(!Ht||Jn<Ht)&&(Vt._spread=!0),Vt.end=l(Ht?O[Ht][1].start:qe[1].end),O.splice(Ht||ze,0,["exit",Vt,qe[2]]),ze++,Se++}qe[1].type==="listItemPrefix"&&(Vt={type:"listItem",_spread:!1,start:l(qe[1].start)},O.splice(ze,0,["enter",Vt,qe[2]]),ze++,Se++,Jn=void 0,Xn=!0)}return O[ie][1]._spread=Ge,Se}function s(O,ie){n[O]=ie}function u(O){return n[O]}function l(O){return{line:O.line,column:O.column,offset:O.offset}}function p(O,ie){return Se;function Se(ze){m.call(this,O(ze),ze),ie&&ie.call(this,ze)}}function c(){this.stack.push({type:"fragment",children:[]})}function m(O,ie){return this.stack[this.stack.length-1].children.push(O),this.stack.push(O),this.tokenStack.push(ie),O.position={start:l(ie.start)},O}function f(O){return ie;function ie(Se){O&&O.call(this,Se),d.call(this,Se)}}function d(O){var ie=this.stack.pop(),Se=this.tokenStack.pop();if(Se){if(Se.type!==O.type)throw new Error("Cannot close `"+O.type+"` ("+La({start:O.start,end:O.end})+"): a different token (`"+Se.type+"`, "+La({start:Se.start,end:Se.end})+") is open")}else throw new Error("Cannot close `"+O.type+"` ("+La({start:O.start,end:O.end})+"): it\u2019s not open");return ie.position.end=l(O.end),ie}function h(){return SF(this.stack.pop())}function x(){s("expectingFirstListItemValue",!0)}function y(O){u("expectingFirstListItemValue")&&(this.stack[this.stack.length-2].start=parseInt(this.sliceSerialize(O),10),s("expectingFirstListItemValue"))}function v(){var O=this.resume();this.stack[this.stack.length-1].lang=O}function P(){var O=this.resume();this.stack[this.stack.length-1].meta=O}function w(){u("flowCodeInside")||(this.buffer(),s("flowCodeInside",!0))}function I(){var O=this.resume();this.stack[this.stack.length-1].value=O.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),s("flowCodeInside")}function N(){var O=this.resume();this.stack[this.stack.length-1].value=O}function D(O){var ie=this.resume();this.stack[this.stack.length-1].label=ie,this.stack[this.stack.length-1].identifier=gc(this.sliceSerialize(O)).toLowerCase()}function B(){var O=this.resume();this.stack[this.stack.length-1].title=O}function W(){var O=this.resume();this.stack[this.stack.length-1].url=O}function G(O){this.stack[this.stack.length-1].depth||(this.stack[this.stack.length-1].depth=this.sliceSerialize(O).length)}function M(){s("setextHeadingSlurpLineEnding",!0)}function z(O){this.stack[this.stack.length-1].depth=this.sliceSerialize(O).charCodeAt(0)===61?1:2}function L(){s("setextHeadingSlurpLineEnding")}function ae(O){var ie=this.stack[this.stack.length-1].children,Se=ie[ie.length-1];(!Se||Se.type!=="text")&&(Se=ES(),Se.position={start:l(O.start)},this.stack[this.stack.length-1].children.push(Se)),this.stack.push(Se)}function se(O){var ie=this.stack.pop();ie.value+=this.sliceSerialize(O),ie.position.end=l(O.end)}function xe(O){var ie=this.stack[this.stack.length-1];if(u("atHardBreak")){ie.children[ie.children.length-1].position.end=l(O.end),s("atHardBreak");return}!u("setextHeadingSlurpLineEnding")&&r.canContainEols.indexOf(ie.type)>-1&&(ae.call(this,O),se.call(this,O))}function De(){s("atHardBreak",!0)}function T(){var O=this.resume();this.stack[this.stack.length-1].value=O}function ke(){var O=this.resume();this.stack[this.stack.length-1].value=O}function Ze(){var O=this.resume();this.stack[this.stack.length-1].value=O}function be(){var O=this.stack[this.stack.length-1];u("inReference")?(O.type+="Reference",O.referenceType=u("referenceType")||"shortcut",delete O.url,delete O.title):(delete O.identifier,delete O.label,delete O.referenceType),s("referenceType")}function g(){var O=this.stack[this.stack.length-1];u("inReference")?(O.type+="Reference",O.referenceType=u("referenceType")||"shortcut",delete O.url,delete O.title):(delete O.identifier,delete O.label,delete O.referenceType),s("referenceType")}function Te(O){this.stack[this.stack.length-2].identifier=gc(this.sliceSerialize(O)).toLowerCase()}function It(){var O=this.stack[this.stack.length-1],ie=this.resume();this.stack[this.stack.length-1].label=ie,s("inReference",!0),this.stack[this.stack.length-1].type==="link"?this.stack[this.stack.length-1].children=O.children:this.stack[this.stack.length-1].alt=ie}function Ne(){var O=this.resume();this.stack[this.stack.length-1].url=O}function lt(){var O=this.resume();this.stack[this.stack.length-1].title=O}function fe(){s("inReference")}function F(){s("referenceType","collapsed")}function U(O){var ie=this.resume();this.stack[this.stack.length-1].label=ie,this.stack[this.stack.length-1].identifier=gc(this.sliceSerialize(O)).toLowerCase(),s("referenceType","full")}function Z(O){s("characterReferenceType",O.type)}function Oe(O){var ie=this.sliceSerialize(O),Se=u("characterReferenceType"),ze,$t;Se?(ze=IF(ie,Se==="characterReferenceMarkerNumeric"?10:16),s("characterReferenceType")):ze=$F(ie),$t=this.stack.pop(),$t.value+=ze,$t.position.end=l(O.end)}function ge(O){se.call(this,O),this.stack[this.stack.length-1].url=this.sliceSerialize(O)}function We(O){se.call(this,O),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(O)}function pt(){return{type:"blockquote",children:[]}}function Ce(){return{type:"code",lang:null,meta:null,value:""}}function vt(){return{type:"inlineCode",value:""}}function Fr(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Ye(){return{type:"emphasis",children:[]}}function Kn(){return{type:"heading",depth:void 0,children:[]}}function $c(){return{type:"break"}}function Rc(){return{type:"html",value:""}}function bS(){return{type:"image",title:null,url:"",alt:null}}function Dc(){return{type:"link",title:null,url:"",children:[]}}function Nc(O){return{type:"list",ordered:O.type==="listOrdered",start:null,spread:O._spread,children:[]}}function _S(O){return{type:"listItem",spread:O._spread,checked:null,children:[]}}function PS(){return{type:"paragraph",children:[]}}function wS(){return{type:"strong",children:[]}}function ES(){return{type:"text",value:""}}function kS(){return{type:"thematicBreak"}}}i(DF,"compiler");function NF(e,t){for(var r=-1;++r<t.length;)UF(e,t[r]);return e}i(NF,"configure");function UF(e,t){var r,n;for(r in t)n=Yw.call(e,r)?e[r]:e[r]={},r==="canContainEols"||r==="transforms"?e[r]=[].concat(n,t[r]):Object.assign(n,t[r])}i(UF,"extension")});var rE=b((mue,tE)=>{"use strict";tE.exports=eE()});var iE=b((hue,nE)=>{"use strict";nE.exports=MF;var LF=rE();function MF(e){var t=this;this.Parser=r;function r(n){return LF(n,Object.assign({},t.data("settings"),e,{extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]}))}i(r,"parse")}i(MF,"parse")});var sE=b((yue,aE)=>{"use strict";aE.exports=FF;var qF=Function.prototype,oE={}.hasOwnProperty;function FF(e,t){var r=t||{};function n(o){var a=n.invalid,s=n.handlers;return o&&oE.call(o,e)&&(a=oE.call(s,o[e])?s[o[e]]:n.unknown),(a||qF).apply(this,arguments)}return i(n,"one"),n.handlers=r.handlers||{},n.invalid=r.invalid,n.unknown=r.unknown,n}i(FF,"factory")});var lE=b((xue,uE)=>{uE.exports=VF;var BF=Vi(),jF=Sa();function VF(e,t,r){var n=r.enter("blockquote"),o=jF(BF(e,r),HF);return n(),o}i(VF,"blockquote");function HF(e,t,r){return">"+(r?"":" ")+e}i(HF,"map")});var yc=b((_ue,pE)=>{pE.exports=ZF;function ZF(e,t){return cE(e,t.inConstruct,!0)&&!cE(e,t.notInConstruct)}i(ZF,"patternInScope");function cE(e,t,r){var n;if(!t)return r;for(typeof t=="string"&&(t=[t]),n=-1;++n<t.length;)if(e.indexOf(t[n])!==-1)return!0;return!1}i(cE,"listInScope")});var vc=b((wue,dE)=>{dE.exports=GF;var WF=yc();function GF(e,t,r,n){for(var o=-1;++o<r.unsafe.length;)if(r.unsafe[o].character===`
|
|
36
|
+
`&&WF(r.stack,r.unsafe[o]))return/[ \t]/.test(n.before)?"":" ";return`\\
|
|
37
|
+
`}i(GF,"hardBreak")});var mE=b((kue,fE)=>{"use strict";fE.exports=KF;function KF(e,t){var r=0,n=0,o,a;if(typeof t!="string"||t.length!==1)throw new Error("Expected character");for(e=String(e),a=e.indexOf(t),o=a;a!==-1;)r++,a===o?r>n&&(n=r):r=1,o=a+1,a=e.indexOf(t,o);return n}i(KF,"longestStreak")});var xc=b((Sue,hE)=>{hE.exports=JF;function JF(e,t){return!t.options.fences&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value)}i(JF,"formatCodeAsIndented")});var yE=b((Iue,gE)=>{gE.exports=XF;function XF(e){var t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}i(XF,"checkFence")});var Mr=b((Cue,xE)=>{xE.exports=eB;var YF=Nl(),QF=yc();function eB(e,t,r){for(var n=(r.before||"")+(t||"")+(r.after||""),o=[],a=[],s={},u=-1,l,p,c,m,f,d,h,x;++u<e.unsafe.length;)if(m=e.unsafe[u],!!QF(e.stack,m))for(f=YF(m);d=f.exec(n);)l="before"in m||m.atBreak,p="after"in m,c=d.index+(l?d[1].length:0),o.indexOf(c)===-1?(o.push(c),s[c]={before:l,after:p}):(s[c].before&&!l&&(s[c].before=!1),s[c].after&&!p&&(s[c].after=!1));for(o.sort(tB),h=r.before?r.before.length:0,x=n.length-(r.after?r.after.length:0),u=-1;++u<o.length;)c=o[u],!(c<h||c>=x)&&(c+1<x&&o[u+1]===c+1&&s[c].after&&!s[c+1].before&&!s[c+1].after||(h!==c&&a.push(vE(n.slice(h,c),"\\")),h=c,/[!-/:-@[-`{-~]/.test(n.charAt(c))&&(!r.encode||r.encode.indexOf(n.charAt(c))===-1)?a.push("\\"):(a.push("&#x"+n.charCodeAt(c).toString(16).toUpperCase()+";"),h++)));return a.push(vE(n.slice(h,x),r.after)),a.join("")}i(eB,"safe");function tB(e,t){return e-t}i(tB,"numerical");function vE(e,t){for(var r=/\\(?=[!-/:-@[-`{-~])/g,n=[],o=[],a=-1,s=0,u=e+t,l;l=r.exec(u);)n.push(l.index);for(;++a<n.length;)s!==n[a]&&o.push(e.slice(s,n[a])),o.push("\\"),s=n[a];return o.push(e.slice(s)),o.join("")}i(vE,"escapeBackslashes")});var PE=b(($ue,_E)=>{_E.exports=sB;var rB=an(),nB=mE(),iB=xc(),oB=yE(),aB=Sa(),bE=Mr();function sB(e,t,r){var n=oB(r),o=e.value||"",a=n==="`"?"GraveAccent":"Tilde",s,u,l,p;return iB(e,r)?(l=r.enter("codeIndented"),s=aB(o,uB)):(u=rB(n,Math.max(nB(o,n)+1,3)),l=r.enter("codeFenced"),s=u,e.lang&&(p=r.enter("codeFencedLang"+a),s+=bE(r,e.lang,{before:"`",after:" ",encode:["`"]}),p()),e.lang&&e.meta&&(p=r.enter("codeFencedMeta"+a),s+=" "+bE(r,e.meta,{before:" ",after:`
|
|
38
|
+
`,encode:["`"]}),p()),s+=`
|
|
39
|
+
`,o&&(s+=o+`
|
|
40
|
+
`),s+=u),l(),s}i(sB,"code");function uB(e,t,r){return(r?"":" ")+e}i(uB,"map")});var Ma=b((Due,wE)=>{wE.exports=dB;var lB=za(),cB=/\\([!-/:-@[-`{-~])/g,pB=/&(#(\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function dB(e){return e.label||!e.identifier?e.label||"":e.identifier.replace(cB,"$1").replace(pB,fB)}i(dB,"association");function fB(e,t){return lB(t)||e}i(fB,"decodeIfPossible")});var qa=b((Uue,EE)=>{EE.exports=mB;function mB(e){var t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}i(mB,"checkQuote")});var TE=b((Mue,kE)=>{kE.exports=yB;var hB=Ma(),gB=qa(),Fa=Mr();function yB(e,t,r){var n=gB(r),o=n==='"'?"Quote":"Apostrophe",a=r.enter("definition"),s=r.enter("label"),u="["+Fa(r,hB(e),{before:"[",after:"]"})+"]: ";return s(),!e.url||/[ \t\r\n]/.test(e.url)?(s=r.enter("destinationLiteral"),u+="<"+Fa(r,e.url,{before:"<",after:">"})+">"):(s=r.enter("destinationRaw"),u+=Fa(r,e.url,{before:" ",after:" "})),s(),e.title&&(s=r.enter("title"+o),u+=" "+n+Fa(r,e.title,{before:n,after:n})+n,s()),a(),u}i(yB,"definition")});var AE=b((Fue,SE)=>{SE.exports=vB;function vB(e){var t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}i(vB,"checkEmphasis")});var CE=b((jue,OE)=>{OE.exports=IE;IE.peek=_B;var xB=AE(),bB=ur();function IE(e,t,r){var n=xB(r),o=r.enter("emphasis"),a=bB(e,r,{before:n,after:n});return o(),n+a+n}i(IE,"emphasis");function _B(e,t,r){return r.options.emphasis||"*"}i(_B,"emphasisPeek")});var bc=b((Hue,zE)=>{zE.exports=wB;var PB=Aa();function wB(e,t){return t.options.setext&&(!e.depth||e.depth<3)&&PB(e)}i(wB,"formatHeadingAsSetext")});var NE=b((Wue,DE)=>{DE.exports=kB;var $E=an(),EB=bc(),RE=ur();function kB(e,t,r){var n=Math.max(Math.min(6,e.depth||1),1),o,a,s,u;return EB(e,r)?(o=r.enter("headingSetext"),a=r.enter("phrasing"),s=RE(e,r,{before:`
|
|
41
|
+
`,after:`
|
|
42
|
+
`}),a(),o(),s+`
|
|
43
|
+
`+$E(n===1?"=":"-",s.length-(Math.max(s.lastIndexOf("\r"),s.lastIndexOf(`
|
|
44
|
+
`))+1))):(u=$E("#",n),o=r.enter("headingAtx"),a=r.enter("phrasing"),s=RE(e,r,{before:"# ",after:`
|
|
45
|
+
`}),s=s?u+" "+s:u,r.options.closeAtx&&(s+=" "+u),a(),o(),s)}i(kB,"heading")});var ME=b((Kue,LE)=>{LE.exports=UE;UE.peek=TB;function UE(e){return e.value||""}i(UE,"html");function TB(){return"<"}i(TB,"htmlPeek")});var BE=b((Xue,FE)=>{FE.exports=qE;qE.peek=AB;var SB=qa(),Ba=Mr();function qE(e,t,r){var n=SB(r),o=n==='"'?"Quote":"Apostrophe",a=r.enter("image"),s=r.enter("label"),u="!["+Ba(r,e.alt,{before:"[",after:"]"})+"](";return s(),!e.url&&e.title||/[ \t\r\n]/.test(e.url)?(s=r.enter("destinationLiteral"),u+="<"+Ba(r,e.url,{before:"<",after:">"})+">"):(s=r.enter("destinationRaw"),u+=Ba(r,e.url,{before:"(",after:e.title?" ":")"})),s(),e.title&&(s=r.enter("title"+o),u+=" "+n+Ba(r,e.title,{before:n,after:n})+n,s()),u+=")",a(),u}i(qE,"image");function AB(){return"!"}i(AB,"imagePeek")});var ZE=b((Que,HE)=>{HE.exports=VE;VE.peek=OB;var IB=Ma(),jE=Mr();function VE(e,t,r){var n=e.referenceType,o=r.enter("imageReference"),a=r.enter("label"),s=jE(r,e.alt,{before:"[",after:"]"}),u="!["+s+"]",l,p;return a(),p=r.stack,r.stack=[],a=r.enter("reference"),l=jE(r,IB(e),{before:"[",after:"]"}),a(),r.stack=p,o(),n==="full"||!s||s!==l?u+="["+l+"]":n!=="shortcut"&&(u+="[]"),u}i(VE,"imageReference");function OB(){return"!"}i(OB,"imageReferencePeek")});var GE=b((tle,WE)=>{WE.exports=zB;var CB=Aa();function zB(e,t){var r=CB(e);return!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(r===e.url||"mailto:"+r===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url)}i(zB,"formatLinkAsAutolink")});var QE=b((nle,YE)=>{YE.exports=XE;XE.peek=RB;var $B=qa(),JE=GE(),KE=ur(),_c=Mr();function XE(e,t,r){var n=$B(r),o=n==='"'?"Quote":"Apostrophe",a,s,u,l;return JE(e,r)?(l=r.stack,r.stack=[],a=r.enter("autolink"),u="<"+KE(e,r,{before:"<",after:">"})+">",a(),r.stack=l,u):(a=r.enter("link"),s=r.enter("label"),u="["+KE(e,r,{before:"[",after:"]"})+"](",s(),!e.url&&e.title||/[ \t\r\n]/.test(e.url)?(s=r.enter("destinationLiteral"),u+="<"+_c(r,e.url,{before:"<",after:">"})+">"):(s=r.enter("destinationRaw"),u+=_c(r,e.url,{before:"(",after:e.title?" ":")"})),s(),e.title&&(s=r.enter("title"+o),u+=" "+n+_c(r,e.title,{before:n,after:n})+n,s()),u+=")",a(),u)}i(XE,"link");function RB(e,t,r){return JE(e,r)?"<":"["}i(RB,"linkPeek")});var rk=b((ole,tk)=>{tk.exports=ek;ek.peek=LB;var DB=Ma(),NB=ur(),UB=Mr();function ek(e,t,r){var n=e.referenceType,o=r.enter("linkReference"),a=r.enter("label"),s=NB(e,r,{before:"[",after:"]"}),u="["+s+"]",l,p;return a(),p=r.stack,r.stack=[],a=r.enter("reference"),l=UB(r,DB(e),{before:"[",after:"]"}),a(),r.stack=p,o(),n==="full"||!s||s!==l?u+="["+l+"]":n!=="shortcut"&&(u+="[]"),u}i(ek,"linkReference");function LB(){return"["}i(LB,"linkReferencePeek")});var ik=b((sle,nk)=>{nk.exports=qB;var MB=Vi();function qB(e,t,r){var n=r.enter("list"),o=MB(e,r);return n(),o}i(qB,"list")});var ak=b((lle,ok)=>{ok.exports=BB;var FB=ur();function BB(e,t,r){var n=r.enter("paragraph"),o=r.enter("phrasing"),a=FB(e,r,{before:`
|
|
46
|
+
`,after:`
|
|
47
|
+
`});return o(),n(),a}i(BB,"paragraph")});var uk=b((ple,sk)=>{sk.exports=VB;var jB=Vi();function VB(e,t,r){return jB(e,r)}i(VB,"root")});var ck=b((fle,lk)=>{lk.exports=HB;function HB(e){var t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}i(HB,"checkStrong")});var fk=b((hle,dk)=>{dk.exports=pk;pk.peek=GB;var ZB=ck(),WB=ur();function pk(e,t,r){var n=ZB(r),o=r.enter("strong"),a=WB(e,r,{before:n,after:n});return o(),n+n+a+n+n}i(pk,"strong");function GB(e,t,r){return r.options.strong||"*"}i(GB,"strongPeek")});var hk=b((yle,mk)=>{mk.exports=JB;var KB=Mr();function JB(e,t,r,n){return KB(r,e.value,n)}i(JB,"text")});var yk=b((xle,gk)=>{gk.exports=XB;function XB(e){var t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}i(XB,"checkRule")});var xk=b((_le,vk)=>{vk.exports=YB;function YB(e){var t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}i(YB,"checkRule")});var _k=b((wle,bk)=>{bk.exports=rj;var QB=an(),ej=yk(),tj=xk();function rj(e,t,r){var n=QB(tj(r)+(r.options.ruleSpaces?" ":""),ej(r));return r.options.ruleSpaces?n.slice(0,-1):n}i(rj,"thematicBreak")});var Pc=b(Xe=>{Xe.blockquote=lE();Xe.break=vc();Xe.code=PE();Xe.definition=TE();Xe.emphasis=CE();Xe.hardBreak=vc();Xe.heading=NE();Xe.html=ME();Xe.image=BE();Xe.imageReference=ZE();Xe.inlineCode=Ul();Xe.link=QE();Xe.linkReference=rk();Xe.list=ik();Xe.listItem=ql();Xe.paragraph=ak();Xe.root=uk();Xe.strong=fk();Xe.text=hk();Xe.thematicBreak=_k()});var Ek=b((Tle,wk)=>{wk.exports=[ij];var Pk=xc(),nj=bc();function ij(e,t,r,n){if(t.type==="list"&&t.type===e.type&&!!e.ordered==!!t.ordered||t.type==="code"&&Pk(t,n)&&(e.type==="list"||e.type===t.type&&Pk(e,n)))return!1;if(typeof r.spread=="boolean")return e.type==="paragraph"&&(e.type===t.type||t.type==="definition"||t.type==="heading"&&nj(t,n))?void 0:r.spread?1:0}i(ij,"joinDefaults")});var Tk=b((Ale,kk)=>{kk.exports=[{character:" ",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"\r",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:`
|
|
48
|
+
`,inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:" ",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"!",after:"\\[",inConstruct:"phrasing"},{character:'"',inConstruct:"titleQuote"},{atBreak:!0,character:"#"},{character:"#",inConstruct:"headingAtx",after:`(?:[\r
|
|
49
|
+
]|$)`},{character:"&",after:"[#A-Za-z]",inConstruct:"phrasing"},{character:"'",inConstruct:"titleApostrophe"},{character:"(",inConstruct:"destinationRaw"},{before:"\\]",character:"(",inConstruct:"phrasing"},{atBreak:!0,before:"\\d+",character:")"},{character:")",inConstruct:"destinationRaw"},{atBreak:!0,character:"*"},{character:"*",inConstruct:"phrasing"},{atBreak:!0,character:"+"},{atBreak:!0,character:"-"},{atBreak:!0,before:"\\d+",character:".",after:`(?:[ \r
|
|
50
|
+
]|$)`},{atBreak:!0,character:"<",after:"[!/?A-Za-z]"},{character:"<",after:"[!/?A-Za-z]",inConstruct:"phrasing"},{character:"<",inConstruct:"destinationLiteral"},{atBreak:!0,character:"="},{atBreak:!0,character:">"},{character:">",inConstruct:"destinationLiteral"},{atBreak:!0,character:"["},{character:"[",inConstruct:["phrasing","label","reference"]},{character:"\\",after:"[\\r\\n]",inConstruct:"phrasing"},{character:"]",inConstruct:["label","reference"]},{atBreak:!0,character:"_"},{before:"[^A-Za-z]",character:"_",inConstruct:"phrasing"},{character:"_",after:"[^A-Za-z]",inConstruct:"phrasing"},{atBreak:!0,character:"`"},{character:"`",inConstruct:["codeFencedLangGraveAccent","codeFencedMetaGraveAccent","phrasing"]},{atBreak:!0,character:"~"}]});var Ik=b((Ile,Ak)=>{Ak.exports=lj;var oj=sE(),Sk=Bl(),aj=Pc(),sj=Ek(),uj=Tk();function lj(e,t){var r=t||{},n={enter:a,stack:[],unsafe:[],join:[],handlers:{},options:{}},o;return Sk(n,{unsafe:uj,join:sj,handlers:aj}),Sk(n,r),n.options.tightDefinitions&&(n.join=[dj].concat(n.join)),n.handle=oj("type",{invalid:cj,unknown:pj,handlers:n.handlers}),o=n.handle(e,null,n,{before:`
|
|
51
|
+
`,after:`
|
|
52
|
+
`}),o&&o.charCodeAt(o.length-1)!==10&&o.charCodeAt(o.length-1)!==13&&(o+=`
|
|
53
|
+
`),o;function a(s){return n.stack.push(s),u;function u(){n.stack.pop()}i(u,"exit")}i(a,"enter")}i(lj,"toMarkdown");function cj(e){throw new Error("Cannot handle value `"+e+"`, expected node")}i(cj,"invalid");function pj(e){throw new Error("Cannot handle unknown node `"+e.type+"`")}i(pj,"unknown");function dj(e,t){if(e.type==="definition"&&e.type===t.type)return 0}i(dj,"joinDefinition")});var Ck=b((Cle,Ok)=>{Ok.exports=Ik()});var $k=b((zle,zk)=>{"use strict";zk.exports=mj;var fj=Ck();function mj(e){var t=this;this.Compiler=r;function r(n){return fj(n,Object.assign({},t.data("settings"),e,{extensions:t.data("toMarkdownExtensions")||[]}))}i(r,"compile")}i(mj,"stringify")});var Dk=b((Rle,Rk)=>{"use strict";Rk.exports=hj;function hj(e){if(e)throw e}i(hj,"bail")});var wc=b((Nle,Nk)=>{Nk.exports=i(function(t){return t!=null&&t.constructor!=null&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)},"isBuffer")});var Hk=b((Lle,Vk)=>{"use strict";var ja=Object.prototype.hasOwnProperty,jk=Object.prototype.toString,Uk=Object.defineProperty,Lk=Object.getOwnPropertyDescriptor,Mk=i(function(t){return typeof Array.isArray=="function"?Array.isArray(t):jk.call(t)==="[object Array]"},"isArray"),qk=i(function(t){if(!t||jk.call(t)!=="[object Object]")return!1;var r=ja.call(t,"constructor"),n=t.constructor&&t.constructor.prototype&&ja.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!r&&!n)return!1;var o;for(o in t);return typeof o>"u"||ja.call(t,o)},"isPlainObject"),Fk=i(function(t,r){Uk&&r.name==="__proto__"?Uk(t,r.name,{enumerable:!0,configurable:!0,value:r.newValue,writable:!0}):t[r.name]=r.newValue},"setProperty"),Bk=i(function(t,r){if(r==="__proto__")if(ja.call(t,r)){if(Lk)return Lk(t,r).value}else return;return t[r]},"getProperty");Vk.exports=i(function e(){var t,r,n,o,a,s,u=arguments[0],l=1,p=arguments.length,c=!1;for(typeof u=="boolean"&&(c=u,u=arguments[1]||{},l=2),(u==null||typeof u!="object"&&typeof u!="function")&&(u={});l<p;++l)if(t=arguments[l],t!=null)for(r in t)n=Bk(u,r),o=Bk(t,r),u!==o&&(c&&o&&(qk(o)||(a=Mk(o)))?(a?(a=!1,s=n&&Mk(n)?n:[]):s=n&&qk(n)?n:{},Fk(u,{name:r,newValue:e(c,s,o)})):typeof o<"u"&&Fk(u,{name:r,newValue:o}));return u},"extend")});var Wk=b((qle,Zk)=>{"use strict";Zk.exports=e=>{if(Object.prototype.toString.call(e)!=="[object Object]")return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}});var Kk=b((Fle,Gk)=>{"use strict";var gj=[].slice;Gk.exports=yj;function yj(e,t){var r;return n;function n(){var s=gj.call(arguments,0),u=e.length>s.length,l;u&&s.push(o);try{l=e.apply(null,s)}catch(p){if(u&&r)throw p;return o(p)}u||(l&&typeof l.then=="function"?l.then(a,o):l instanceof Error?o(l):a(l))}function o(){r||(r=!0,t.apply(null,arguments))}function a(s){o(null,s)}}i(yj,"wrap")});var eT=b((jle,Qk)=>{"use strict";var Xk=Kk();Qk.exports=Yk;Yk.wrap=Xk;var Jk=[].slice;function Yk(){var e=[],t={};return t.run=r,t.use=n,t;function r(){var o=-1,a=Jk.call(arguments,0,-1),s=arguments[arguments.length-1];if(typeof s!="function")throw new Error("Expected function as last argument, not "+s);u.apply(null,[null].concat(a));function u(l){var p=e[++o],c=Jk.call(arguments,0),m=c.slice(1),f=a.length,d=-1;if(l){s(l);return}for(;++d<f;)(m[d]===null||m[d]===void 0)&&(m[d]=a[d]);a=m,p?Xk(p,u).apply(null,a):s.apply(null,[null].concat(a))}i(u,"next")}i(r,"run");function n(o){if(typeof o!="function")throw new Error("Expected `fn` to be a function, not "+o);return e.push(o),t}i(n,"use")}i(Yk,"trough")});var nT=b((Hle,rT)=>{"use strict";var vj=hc();rT.exports=Ec;function tT(){}i(tT,"VMessagePrototype");tT.prototype=Error.prototype;Ec.prototype=new tT;var qr=Ec.prototype;qr.file="";qr.name="";qr.reason="";qr.message="";qr.stack="";qr.fatal=null;qr.column=null;qr.line=null;function Ec(e,t,r){var n,o,a;typeof t=="string"&&(r=t,t=null),n=xj(r),o=vj(t)||"1:1",a={start:{line:null,column:null},end:{line:null,column:null}},t&&t.position&&(t=t.position),t&&(t.start?(a=t,t=t.start):a.start=t),e.stack&&(this.stack=e.stack,e=e.message),this.message=e,this.name=o,this.reason=e,this.line=t?t.line:null,this.column=t?t.column:null,this.location=a,this.source=n[0],this.ruleId=n[1]}i(Ec,"VMessage");function xj(e){var t=[null,null],r;return typeof e=="string"&&(r=e.indexOf(":"),r===-1?t[1]=e:(t[0]=e.slice(0,r),t[1]=e.slice(r+1))),t}i(xj,"parseOrigin")});var oT=b((Wle,iT)=>{"use strict";iT.exports=require("path")});var sT=b((Gle,aT)=>{"use strict";aT.exports=process});var cT=b((Kle,lT)=>{"use strict";var pr=oT(),bj=sT(),_j=wc();lT.exports=Tr;var Pj={}.hasOwnProperty,kc=["history","path","basename","stem","extname","dirname"];Tr.prototype.toString=$j;Object.defineProperty(Tr.prototype,"path",{get:wj,set:Ej});Object.defineProperty(Tr.prototype,"dirname",{get:kj,set:Tj});Object.defineProperty(Tr.prototype,"basename",{get:Sj,set:Aj});Object.defineProperty(Tr.prototype,"extname",{get:Ij,set:Oj});Object.defineProperty(Tr.prototype,"stem",{get:Cj,set:zj});function Tr(e){var t,r;if(!e)e={};else if(typeof e=="string"||_j(e))e={contents:e};else if("message"in e&&"messages"in e)return e;if(!(this instanceof Tr))return new Tr(e);for(this.data={},this.messages=[],this.history=[],this.cwd=bj.cwd(),r=-1;++r<kc.length;)t=kc[r],Pj.call(e,t)&&(this[t]=e[t]);for(t in e)kc.indexOf(t)<0&&(this[t]=e[t])}i(Tr,"VFile");function wj(){return this.history[this.history.length-1]}i(wj,"getPath");function Ej(e){Sc(e,"path"),this.path!==e&&this.history.push(e)}i(Ej,"setPath");function kj(){return typeof this.path=="string"?pr.dirname(this.path):void 0}i(kj,"getDirname");function Tj(e){uT(this.path,"dirname"),this.path=pr.join(e||"",this.basename)}i(Tj,"setDirname");function Sj(){return typeof this.path=="string"?pr.basename(this.path):void 0}i(Sj,"getBasename");function Aj(e){Sc(e,"basename"),Tc(e,"basename"),this.path=pr.join(this.dirname||"",e)}i(Aj,"setBasename");function Ij(){return typeof this.path=="string"?pr.extname(this.path):void 0}i(Ij,"getExtname");function Oj(e){if(Tc(e,"extname"),uT(this.path,"extname"),e){if(e.charCodeAt(0)!==46)throw new Error("`extname` must start with `.`");if(e.indexOf(".",1)>-1)throw new Error("`extname` cannot contain multiple dots")}this.path=pr.join(this.dirname,this.stem+(e||""))}i(Oj,"setExtname");function Cj(){return typeof this.path=="string"?pr.basename(this.path,this.extname):void 0}i(Cj,"getStem");function zj(e){Sc(e,"stem"),Tc(e,"stem"),this.path=pr.join(this.dirname||"",e+(this.extname||""))}i(zj,"setStem");function $j(e){return(this.contents||"").toString(e)}i($j,"toString");function Tc(e,t){if(e&&e.indexOf(pr.sep)>-1)throw new Error("`"+t+"` cannot be a path: did not expect `"+pr.sep+"`")}i(Tc,"assertPart");function Sc(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}i(Sc,"assertNonEmpty");function uT(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}i(uT,"assertPath")});var dT=b((Xle,pT)=>{"use strict";var Rj=nT(),Va=cT();pT.exports=Va;Va.prototype.message=Dj;Va.prototype.info=Uj;Va.prototype.fail=Nj;function Dj(e,t,r){var n=new Rj(e,t,r);return this.path&&(n.name=this.path+":"+n.name,n.file=this.path),n.fatal=!1,this.messages.push(n),n}i(Dj,"message");function Nj(){var e=this.message.apply(this,arguments);throw e.fatal=!0,e}i(Nj,"fail");function Uj(){var e=this.message.apply(this,arguments);return e.fatal=null,e}i(Uj,"info")});var mT=b((Qle,fT)=>{"use strict";fT.exports=dT()});var wT=b((ece,PT)=>{"use strict";var hT=Dk(),Lj=wc(),Ha=Hk(),gT=Wk(),bT=eT(),Ji=mT();PT.exports=_T().freeze();var Mj=[].slice,qj={}.hasOwnProperty,Fj=bT().use(Bj).use(jj).use(Vj);function Bj(e,t){t.tree=e.parse(t.file)}i(Bj,"pipelineParse");function jj(e,t,r){e.run(t.tree,t.file,n);function n(o,a,s){o?r(o):(t.tree=a,t.file=s,r())}i(n,"done")}i(jj,"pipelineRun");function Vj(e,t){var r=e.stringify(t.tree,t.file);r==null||(typeof r=="string"||Lj(r)?("value"in t.file&&(t.file.value=r),t.file.contents=r):t.file.result=r)}i(Vj,"pipelineStringify");function _T(){var e=[],t=bT(),r={},n=-1,o;return a.data=u,a.freeze=s,a.attachers=e,a.use=l,a.parse=c,a.stringify=d,a.run=m,a.runSync=f,a.process=h,a.processSync=x,a;function a(){for(var y=_T(),v=-1;++v<e.length;)y.use.apply(null,e[v]);return y.data(Ha(!0,{},r)),y}i(a,"processor");function s(){var y,v;if(o)return a;for(;++n<e.length;)y=e[n],y[1]!==!1&&(y[1]===!0&&(y[1]=void 0),v=y[0].apply(a,y.slice(1)),typeof v=="function"&&t.use(v));return o=!0,n=1/0,a}i(s,"freeze");function u(y,v){return typeof y=="string"?arguments.length===2?(Oc("data",o),r[y]=v,a):qj.call(r,y)&&r[y]||null:y?(Oc("data",o),r=y,a):r}i(u,"data");function l(y){var v;if(Oc("use",o),y!=null)if(typeof y=="function")N.apply(null,arguments);else if(typeof y=="object")"length"in y?I(y):P(y);else throw new Error("Expected usable value, not `"+y+"`");return v&&(r.settings=Ha(r.settings||{},v)),a;function P(D){I(D.plugins),D.settings&&(v=Ha(v||{},D.settings))}i(P,"addPreset");function w(D){if(typeof D=="function")N(D);else if(typeof D=="object")"length"in D?N.apply(null,D):P(D);else throw new Error("Expected usable value, not `"+D+"`")}i(w,"add");function I(D){var B=-1;if(D!=null)if(typeof D=="object"&&"length"in D)for(;++B<D.length;)w(D[B]);else throw new Error("Expected a list of plugins, not `"+D+"`")}i(I,"addList");function N(D,B){var W=p(D);W?(gT(W[1])&&gT(B)&&(B=Ha(!0,W[1],B)),W[1]=B):e.push(Mj.call(arguments))}i(N,"addPlugin")}i(l,"use");function p(y){for(var v=-1;++v<e.length;)if(e[v][0]===y)return e[v]}i(p,"find");function c(y){var v=Ji(y),P;return s(),P=a.Parser,Ac("parse",P),yT(P,"parse")?new P(String(v),v).parse():P(String(v),v)}i(c,"parse");function m(y,v,P){if(vT(y),s(),!P&&typeof v=="function"&&(P=v,v=null),!P)return new Promise(w);w(null,P);function w(I,N){t.run(y,Ji(v),D);function D(B,W,G){W=W||y,B?N(B):I?I(W):P(null,W,G)}i(D,"done")}i(w,"executor")}i(m,"run");function f(y,v){var P,w;return m(y,v,I),xT("runSync","run",w),P;function I(N,D){w=!0,P=D,hT(N)}i(I,"done")}i(f,"runSync");function d(y,v){var P=Ji(v),w;return s(),w=a.Compiler,Ic("stringify",w),vT(y),yT(w,"compile")?new w(y,P).compile():w(y,P)}i(d,"stringify");function h(y,v){if(s(),Ac("process",a.Parser),Ic("process",a.Compiler),!v)return new Promise(P);P(null,v);function P(w,I){var N=Ji(y);Fj.run(a,{file:N},D);function D(B){B?I(B):w?w(N):v(null,N)}i(D,"done")}i(P,"executor")}i(h,"process");function x(y){var v,P;return s(),Ac("processSync",a.Parser),Ic("processSync",a.Compiler),v=Ji(y),h(v,w),xT("processSync","process",P),v;function w(I){P=!0,hT(I)}i(w,"done")}i(x,"processSync")}i(_T,"unified");function yT(e,t){return typeof e=="function"&&e.prototype&&(Hj(e.prototype)||t in e.prototype)}i(yT,"newable");function Hj(e){var t;for(t in e)return!0;return!1}i(Hj,"keys");function Ac(e,t){if(typeof t!="function")throw new Error("Cannot `"+e+"` without `Parser`")}i(Ac,"assertParser");function Ic(e,t){if(typeof t!="function")throw new Error("Cannot `"+e+"` without `Compiler`")}i(Ic,"assertCompiler");function Oc(e,t){if(t)throw new Error("Cannot invoke `"+e+"` on a frozen processor.\nCreate a new processor first, by invoking it: use `processor()` instead of `processor`.")}i(Oc,"assertUnfrozen");function vT(e){if(!e||typeof e.type!="string")throw new Error("Expected node, got `"+e+"`")}i(vT,"assertNode");function xT(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}i(xT,"assertDone")});var kT=b((rce,ET)=>{"use strict";var Zj=ba();ET.exports=Wj;function Wj(e,t,r){var n=Zj(r||t),o=t.cascade==null?!0:t.cascade;return a(e,null,null);function a(s,u,l){var p=s.children,c=-1,m=0;if(n(s,u,l))return null;if(p&&p.length){for(;++c<p.length;)a(p[c],c,s)&&(p[m++]=p[c]);if(o&&!m)return null;p.length=m}return s}}i(Wj,"remove")});var ST=b((ice,TT)=>{"use strict";TT.exports=Wa;var Za=Il(),Gj=Za.CONTINUE,Kj=Za.SKIP,Jj=Za.EXIT;Wa.CONTINUE=Gj;Wa.SKIP=Kj;Wa.EXIT=Jj;function Wa(e,t,r,n){typeof t=="function"&&typeof r!="function"&&(n=r,r=t,t=null),Za(e,t,o,n);function o(a,s){var u=s[s.length-1],l=u?u.children.indexOf(a):null;return r(a,l,u)}i(o,"overload")}i(Wa,"visit")});var IT=b((ace,AT)=>{var Xj=kT(),Yj=ST(),Qj=i(e=>t=>{Yj(t,"definition",r=>{e[r.identifier]={title:r.title,url:r.url}})},"collectDefinitions"),e4=i(()=>e=>{Xj(e,{cascade:!0},"definition")},"removeDefinitions");AT.exports={collectDefinitions:Qj,removeDefinitions:e4}});var CT=b((uce,OT)=>{OT.exports={wrap(e,...t){return[...t,e,...t.reverse()].join("")},isURL(e){try{return!!new URL(e)}catch{return!1}},isPotentiallyEncoded(e){return e!==decodeURIComponent(e||"")}}});var $T=b((lce,zT)=>{var t4=Pc(),Gn=ur(),{wrap:Xi,isURL:Ga,isPotentiallyEncoded:r4}=CT(),Cc="\u200B",n4=i(e=>e.replace("&","&").replace(/<([^@]|$)/g,(r,n)=>`<${n}`).replace(/^(.*)>/g,(r,n)=>n.match(/<@[A-Z0-9]+$/)?`${n}>`:`${n}>`),"escapeSpecials"),i4=i(e=>({heading:i((t,r,n)=>{let o="*",a=n.enter("heading"),s=Gn(t,n,{before:o,after:o});return a(),Xi(s,o)},"heading"),strong:i((t,r,n)=>{let o="*",a=n.enter("strong"),s=Gn(t,n,{before:o,after:o});return a(),Xi(s,Cc,o)},"strong"),delete(t,r,n){let o="~",a=n.enter("delete"),s=Gn(t,n,{before:o,after:o});return a(),Xi(s,Cc,o)},emphasis:i((t,r,n)=>{let o="_",a=n.enter("emphasis"),s=Gn(t,n,{before:o,after:o});return a(),Xi(s,Cc,o)},"emphasis"),listItem:i((...t)=>t4.listItem(...t).replace(/^\*/,"\u2022"),"listItem"),code(t,r,n){let o=n.enter("code"),a=t.value.replace(/^#![a-z]+\n/,"");return o(),Xi(a,"```",`
|
|
54
|
+
`)},link:i((t,r,n)=>{let o=n.enter("link"),a=Gn(t,n,{before:"|",after:">"})||t.title,s=r4(t.url)?t.url:encodeURI(t.url);return o(),Ga(s)?a?`<${s}|${a}>`:`<${s}>`:a||s},"link"),linkReference:i((t,r,n)=>{let o=n.enter("linkReference"),a=e[t.identifier],s=Gn(t,n,{before:"|",after:">"})||(a?a.title:null);return o(),!a||!Ga(a.url)?s:s?`<${a.url}|${s}>`:`<${a.url}>`},"linkReference"),image:i((t,r,n)=>{let o=n.enter("image"),a=t.alt||t.title,s=encodeURI(t.url);return o(),Ga(s)?a?`<${s}|${a}>`:`<${s}>`:a||s},"image"),imageReference:i((t,r,n)=>{let o=n.enter("imageReference"),a=e[t.identifier],s=t.alt||(a?a.title:null);return o(),!a||!Ga(a.url)?s:s?`<${a.url}|${s}>`:`<${a.url}>`},"imageReference"),text:i((t,r,n)=>{let o=n.enter("text"),a=n4(t.value);return o(),a},"text")}),"createHandlers"),o4=i(e=>({bullet:"*",handlers:i4(e)}),"createOptions");zT.exports=o4});var DT=b((pce,RT)=>{var a4=N_(),s4=iE(),u4=$k(),l4=wT(),{collectDefinitions:c4,removeDefinitions:p4}=IT(),d4=$T();RT.exports=(e,t)=>{let r={},n=d4(r);return l4().use(s4,t).use(a4).use(c4,r).use(p4).use(u4,n).processSync(e).toString()}});var UT=b((dce,NT)=>{NT.exports=DT()});var m4={};Uc(m4,{slack:()=>f4,slackAuth:()=>R,slackOAuth2Auth:()=>su});module.exports=CS(m4);var zS=Object.freeze({status:"aborted"});function j(e,t,r){function n(u,l){if(u._zod||Object.defineProperty(u,"_zod",{value:{def:l,constr:s,traits:new Set},enumerable:!1}),u._zod.traits.has(e))return;u._zod.traits.add(e),t(u,l);let p=s.prototype,c=Object.keys(p);for(let m=0;m<c.length;m++){let f=c[m];f in u||(u[f]=p[f].bind(u))}}i(n,"init");let o=r?.Parent??Object;class a extends o{static{i(this,"Definition")}}Object.defineProperty(a,"name",{value:e});function s(u){var l;let p=r?.Parent?new a:this;n(p,u),(l=p._zod).deferred??(l.deferred=[]);for(let c of p._zod.deferred)c();return p}return i(s,"_"),Object.defineProperty(s,"init",{value:n}),Object.defineProperty(s,Symbol.hasInstance,{value:i(u=>r?.Parent&&u instanceof r.Parent?!0:u?._zod?.traits?.has(e),"value")}),Object.defineProperty(s,"name",{value:e}),s}i(j,"$constructor");var $S=Symbol("zod_brand"),er=class extends Error{static{i(this,"$ZodAsyncError")}constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},Yi=class extends Error{static{i(this,"$ZodEncodeError")}constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}},Ka={};function dr(e){return e&&Object.assign(Ka,e),Ka}i(dr,"config");function Xa(e){let t=Object.values(e).filter(n=>typeof n=="number");return Object.entries(e).filter(([n,o])=>t.indexOf(+n)===-1).map(([n,o])=>o)}i(Xa,"getEnumValues");function qc(e,t){return typeof t=="bigint"?t.toString():t}i(qc,"jsonStringifyReplacer");function eo(e){return{get value(){{let r=e();return Object.defineProperty(this,"value",{value:r}),r}throw new Error("cached value already set")}}}i(eo,"cached");function Ya(e){return e==null}i(Ya,"nullish");function to(e){let t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}i(to,"cleanRegex");var Mc=Symbol("evaluating");function Qe(e,t,r){let n;Object.defineProperty(e,t,{get(){if(n!==Mc)return n===void 0&&(n=Mc,n=r()),n},set(o){Object.defineProperty(e,t,{value:o})},configurable:!0})}i(Qe,"defineLazy");var Qa="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Qn(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}i(Qn,"isObject");var RS=eo(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function Fc(e){if(Qn(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!="function")return!0;let r=t.prototype;return!(Qn(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}i(Fc,"isPlainObject");var Bc=new Set(["string","number","symbol"]);function un(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}i(un,"escapeRegex");function ro(e,t,r){let n=new e._zod.constr(t??e._zod.def);return(!t||r?.parent)&&(n._zod.parent=e),n}i(ro,"clone");function Ue(e){let t=e;if(!t)return{};if(typeof t=="string")return{error:i(()=>t,"error")};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:i(()=>t.error,"error")}:t}i(Ue,"normalizeParams");function jc(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}i(jc,"optionalKeys");var DS={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function ln(e,t=0){if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue!==!0)return!0;return!1}i(ln,"aborted");function Sr(e,t){return t.map(r=>{var n;return(n=r).path??(n.path=[]),r.path.unshift(e),r})}i(Sr,"prefixIssues");function Qi(e){return typeof e=="string"?e:e?.message}i(Qi,"unwrapMessage");function Ar(e,t,r){let n={...e,path:e.path??[]};if(!e.message){let o=Qi(e.inst?._zod.def?.error?.(e))??Qi(t?.error?.(e))??Qi(r.customError?.(e))??Qi(r.localeError?.(e))??"Invalid input";n.message=o}return delete n.inst,delete n.continue,t?.reportInput||delete n.input,n}i(Ar,"finalizeIssue");function es(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}i(es,"getLengthableOrigin");function ts(...e){let[t,r,n]=e;return typeof t=="string"?{message:t,code:"custom",input:r,inst:n}:{...t}}i(ts,"issue");var Vc=i((e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,qc,2),Object.defineProperty(e,"toString",{value:i(()=>e.message,"value"),enumerable:!1})},"initializer"),Hc=j("$ZodError",Vc),ei=j("$ZodError",Vc,{Parent:Error});var US=i(e=>(t,r,n,o)=>{let a=n?Object.assign(n,{async:!1}):{async:!1},s=t._zod.run({value:r,issues:[]},a);if(s instanceof Promise)throw new er;if(s.issues.length){let u=new(o?.Err??e)(s.issues.map(l=>Ar(l,a,dr())));throw Qa(u,o?.callee),u}return s.value},"_parse"),no=US(ei),LS=i(e=>async(t,r,n,o)=>{let a=n?Object.assign(n,{async:!0}):{async:!0},s=t._zod.run({value:r,issues:[]},a);if(s instanceof Promise&&(s=await s),s.issues.length){let u=new(o?.Err??e)(s.issues.map(l=>Ar(l,a,dr())));throw Qa(u,o?.callee),u}return s.value},"_parseAsync"),io=LS(ei),MS=i(e=>(t,r,n)=>{let o=n?{...n,async:!1}:{async:!1},a=t._zod.run({value:r,issues:[]},o);if(a instanceof Promise)throw new er;return a.issues.length?{success:!1,error:new(e??Hc)(a.issues.map(s=>Ar(s,o,dr())))}:{success:!0,data:a.value}},"_safeParse"),ti=MS(ei),qS=i(e=>async(t,r,n)=>{let o=n?Object.assign(n,{async:!0}):{async:!0},a=t._zod.run({value:r,issues:[]},o);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(s=>Ar(s,o,dr())))}:{success:!0,data:a.value}},"_safeParseAsync"),jr=qS(ei);var FS="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",BS=new RegExp(`^${FS}$`);var Zc=i(e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},"string"),Wc=/^-?\d+n?$/;var rs=/^-?\d+(?:\.\d+)?$/,Gc=/^(?:true|false)$/i;var Vr=j("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])});var Kc=j("$ZodCheckMaxLength",(e,t)=>{var r;Vr.init(e,t),(r=e._zod.def).when??(r.when=n=>{let o=n.value;return!Ya(o)&&o.length!==void 0}),e._zod.onattach.push(n=>{let o=n._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<o&&(n._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{let o=n.value;if(o.length<=t.maximum)return;let s=es(o);n.issues.push({origin:s,code:"too_big",maximum:t.maximum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),Jc=j("$ZodCheckMinLength",(e,t)=>{var r;Vr.init(e,t),(r=e._zod.def).when??(r.when=n=>{let o=n.value;return!Ya(o)&&o.length!==void 0}),e._zod.onattach.push(n=>{let o=n._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>o&&(n._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let o=n.value;if(o.length>=t.minimum)return;let s=es(o);n.issues.push({origin:s,code:"too_small",minimum:t.minimum,inclusive:!0,input:o,inst:e,continue:!t.abort})}});var ns=j("$ZodCheckStringFormat",(e,t)=>{var r,n;Vr.init(e,t),e._zod.onattach.push(o=>{let a=o._zod.bag;a.format=t.format,t.pattern&&(a.patterns??(a.patterns=new Set),a.patterns.add(t.pattern))}),t.pattern?(r=e._zod).check??(r.check=o=>{t.pattern.lastIndex=0,!t.pattern.test(o.value)&&o.issues.push({origin:"string",code:"invalid_format",format:t.format,input:o.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(n=e._zod).check??(n.check=()=>{})}),Xc=j("$ZodCheckRegex",(e,t)=>{ns.init(e,t),e._zod.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}});var Qc={major:4,minor:3,patch:6};var Fe=j("$ZodType",(e,t)=>{var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Qc;let n=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&n.unshift(e);for(let o of n)for(let a of o._zod.onattach)a(e);if(n.length===0)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let o=i((s,u,l)=>{let p=ln(s),c;for(let m of u){if(m._zod.def.when){if(!m._zod.def.when(s))continue}else if(p)continue;let f=s.issues.length,d=m._zod.check(s);if(d instanceof Promise&&l?.async===!1)throw new er;if(c||d instanceof Promise)c=(c??Promise.resolve()).then(async()=>{await d,s.issues.length!==f&&(p||(p=ln(s,f)))});else{if(s.issues.length===f)continue;p||(p=ln(s,f))}}return c?c.then(()=>s):s},"runChecks"),a=i((s,u,l)=>{if(ln(s))return s.aborted=!0,s;let p=o(u,n,l);if(p instanceof Promise){if(l.async===!1)throw new er;return p.then(c=>e._zod.parse(c,l))}return e._zod.parse(p,l)},"handleCanaryResult");e._zod.run=(s,u)=>{if(u.skipChecks)return e._zod.parse(s,u);if(u.direction==="backward"){let p=e._zod.parse({value:s.value,issues:[]},{...u,skipChecks:!0});return p instanceof Promise?p.then(c=>a(c,s,u)):a(p,s,u)}let l=e._zod.parse(s,u);if(l instanceof Promise){if(u.async===!1)throw new er;return l.then(p=>o(p,n,u))}return o(l,n,u)}}Qe(e,"~standard",()=>({validate:i(o=>{try{let a=ti(e,o);return a.success?{value:a.data}:{issues:a.error?.issues}}catch{return jr(e,o).then(s=>s.success?{value:s.data}:{issues:s.error?.issues})}},"validate"),vendor:"zod",version:1}))}),so=j("$ZodString",(e,t)=>{Fe.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Zc(e._zod.bag),e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),is=j("$ZodStringFormat",(e,t)=>{ns.init(e,t),so.init(e,t)});var ip=j("$ZodURL",(e,t)=>{is.init(e,t),e._zod.check=r=>{try{let n=r.value.trim(),o=new URL(n);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(o.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:r.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(o.protocol.endsWith(":")?o.protocol.slice(0,-1):o.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:r.value,inst:e,continue:!t.abort})),t.normalize?r.value=o.href:r.value=n;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort})}}});var op=j("$ZodNumber",(e,t)=>{Fe.init(e,t),e._zod.pattern=e._zod.bag.pattern??rs,e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=Number(r.value)}catch{}let o=r.value;if(typeof o=="number"&&!Number.isNaN(o)&&Number.isFinite(o))return r;let a=typeof o=="number"?Number.isNaN(o)?"NaN":Number.isFinite(o)?void 0:"Infinity":void 0;return r.issues.push({expected:"number",code:"invalid_type",input:o,inst:e,...a?{received:a}:{}}),r}});var os=j("$ZodBoolean",(e,t)=>{Fe.init(e,t),e._zod.pattern=Gc,e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=!!r.value}catch{}let o=r.value;return typeof o=="boolean"||r.issues.push({expected:"boolean",code:"invalid_type",input:o,inst:e}),r}}),ap=j("$ZodBigInt",(e,t)=>{Fe.init(e,t),e._zod.pattern=Wc,e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=BigInt(r.value)}catch{}return typeof r.value=="bigint"||r.issues.push({expected:"bigint",code:"invalid_type",input:r.value,inst:e}),r}});var sp=j("$ZodAny",(e,t)=>{Fe.init(e,t),e._zod.parse=r=>r}),up=j("$ZodUnknown",(e,t)=>{Fe.init(e,t),e._zod.parse=r=>r});var lp=j("$ZodVoid",(e,t)=>{Fe.init(e,t),e._zod.parse=(r,n)=>{let o=r.value;return typeof o>"u"||r.issues.push({expected:"void",code:"invalid_type",input:o,inst:e}),r}}),cp=j("$ZodDate",(e,t)=>{Fe.init(e,t),e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=new Date(r.value)}catch{}let o=r.value,a=o instanceof Date;return a&&!Number.isNaN(o.getTime())||r.issues.push({expected:"date",code:"invalid_type",input:o,...a?{received:"Invalid Date"}:{},inst:e}),r}});function ep(e,t,r){e.issues.length&&t.issues.push(...Sr(r,e.issues)),t.value[r]=e.value}i(ep,"handleArrayResult");var pp=j("$ZodArray",(e,t)=>{Fe.init(e,t),e._zod.parse=(r,n)=>{let o=r.value;if(!Array.isArray(o))return r.issues.push({expected:"array",code:"invalid_type",input:o,inst:e}),r;r.value=Array(o.length);let a=[];for(let s=0;s<o.length;s++){let u=o[s],l=t.element._zod.run({value:u,issues:[]},n);l instanceof Promise?a.push(l.then(p=>ep(p,r,s))):ep(l,r,s)}return a.length?Promise.all(a).then(()=>r):r}});function ao(e,t,r,n,o){if(e.issues.length){if(o&&!(r in n))return;t.issues.push(...Sr(r,e.issues))}e.value===void 0?r in n&&(t.value[r]=void 0):t.value[r]=e.value}i(ao,"handlePropertyResult");function jS(e){let t=Object.keys(e.shape);for(let n of t)if(!e.shape?.[n]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${n}": expected a Zod schema`);let r=jc(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(r)}}i(jS,"normalizeDef");function VS(e,t,r,n,o,a){let s=[],u=o.keySet,l=o.catchall._zod,p=l.def.type,c=l.optout==="optional";for(let m in t){if(u.has(m))continue;if(p==="never"){s.push(m);continue}let f=l.run({value:t[m],issues:[]},n);f instanceof Promise?e.push(f.then(d=>ao(d,r,m,t,c))):ao(f,r,m,t,c)}return s.length&&r.issues.push({code:"unrecognized_keys",keys:s,input:t,inst:a}),e.length?Promise.all(e).then(()=>r):r}i(VS,"handleCatchall");var dp=j("$ZodObject",(e,t)=>{if(Fe.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){let u=t.shape;Object.defineProperty(t,"shape",{get:i(()=>{let l={...u};return Object.defineProperty(t,"shape",{value:l}),l},"get")})}let n=eo(()=>jS(t));Qe(e._zod,"propValues",()=>{let u=t.shape,l={};for(let p in u){let c=u[p]._zod;if(c.values){l[p]??(l[p]=new Set);for(let m of c.values)l[p].add(m)}}return l});let o=Qn,a=t.catchall,s;e._zod.parse=(u,l)=>{s??(s=n.value);let p=u.value;if(!o(p))return u.issues.push({expected:"object",code:"invalid_type",input:p,inst:e}),u;u.value={};let c=[],m=s.shape;for(let f of s.keys){let d=m[f],h=d._zod.optout==="optional",x=d._zod.run({value:p[f],issues:[]},l);x instanceof Promise?c.push(x.then(y=>ao(y,u,f,p,h))):ao(x,u,f,p,h)}return a?VS(c,p,u,l,n.value,e):c.length?Promise.all(c).then(()=>u):u}});function tp(e,t,r,n){for(let a of e)if(a.issues.length===0)return t.value=a.value,t;let o=e.filter(a=>!ln(a));return o.length===1?(t.value=o[0].value,o[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(a=>a.issues.map(s=>Ar(s,n,dr())))}),t)}i(tp,"handleUnionResults");var as=j("$ZodUnion",(e,t)=>{Fe.init(e,t),Qe(e._zod,"optin",()=>t.options.some(o=>o._zod.optin==="optional")?"optional":void 0),Qe(e._zod,"optout",()=>t.options.some(o=>o._zod.optout==="optional")?"optional":void 0),Qe(e._zod,"values",()=>{if(t.options.every(o=>o._zod.values))return new Set(t.options.flatMap(o=>Array.from(o._zod.values)))}),Qe(e._zod,"pattern",()=>{if(t.options.every(o=>o._zod.pattern)){let o=t.options.map(a=>a._zod.pattern);return new RegExp(`^(${o.map(a=>to(a.source)).join("|")})$`)}});let r=t.options.length===1,n=t.options[0]._zod.run;e._zod.parse=(o,a)=>{if(r)return n(o,a);let s=!1,u=[];for(let l of t.options){let p=l._zod.run({value:o.value,issues:[]},a);if(p instanceof Promise)u.push(p),s=!0;else{if(p.issues.length===0)return p;u.push(p)}}return s?Promise.all(u).then(l=>tp(l,o,e,a)):tp(u,o,e,a)}});var fp=j("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,as.init(e,t);let r=e._zod.parse;Qe(e._zod,"propValues",()=>{let o={};for(let a of t.options){let s=a._zod.propValues;if(!s||Object.keys(s).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(a)}"`);for(let[u,l]of Object.entries(s)){o[u]||(o[u]=new Set);for(let p of l)o[u].add(p)}}return o});let n=eo(()=>{let o=t.options,a=new Map;for(let s of o){let u=s._zod.propValues?.[t.discriminator];if(!u||u.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(s)}"`);for(let l of u){if(a.has(l))throw new Error(`Duplicate discriminator value "${String(l)}"`);a.set(l,s)}}return a});e._zod.parse=(o,a)=>{let s=o.value;if(!Qn(s))return o.issues.push({code:"invalid_type",expected:"object",input:s,inst:e}),o;let u=n.value.get(s?.[t.discriminator]);return u?u._zod.run(o,a):t.unionFallback?r(o,a):(o.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:s,path:[t.discriminator],inst:e}),o)}});var mp=j("$ZodRecord",(e,t)=>{Fe.init(e,t),e._zod.parse=(r,n)=>{let o=r.value;if(!Fc(o))return r.issues.push({expected:"record",code:"invalid_type",input:o,inst:e}),r;let a=[],s=t.keyType._zod.values;if(s){r.value={};let u=new Set;for(let p of s)if(typeof p=="string"||typeof p=="number"||typeof p=="symbol"){u.add(typeof p=="number"?p.toString():p);let c=t.valueType._zod.run({value:o[p],issues:[]},n);c instanceof Promise?a.push(c.then(m=>{m.issues.length&&r.issues.push(...Sr(p,m.issues)),r.value[p]=m.value})):(c.issues.length&&r.issues.push(...Sr(p,c.issues)),r.value[p]=c.value)}let l;for(let p in o)u.has(p)||(l=l??[],l.push(p));l&&l.length>0&&r.issues.push({code:"unrecognized_keys",input:o,inst:e,keys:l})}else{r.value={};for(let u of Reflect.ownKeys(o)){if(u==="__proto__")continue;let l=t.keyType._zod.run({value:u,issues:[]},n);if(l instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof u=="string"&&rs.test(u)&&l.issues.length){let m=t.keyType._zod.run({value:Number(u),issues:[]},n);if(m instanceof Promise)throw new Error("Async schemas not supported in object keys currently");m.issues.length===0&&(l=m)}if(l.issues.length){t.mode==="loose"?r.value[u]=o[u]:r.issues.push({code:"invalid_key",origin:"record",issues:l.issues.map(m=>Ar(m,n,dr())),input:u,path:[u],inst:e});continue}let c=t.valueType._zod.run({value:o[u],issues:[]},n);c instanceof Promise?a.push(c.then(m=>{m.issues.length&&r.issues.push(...Sr(u,m.issues)),r.value[l.value]=m.value})):(c.issues.length&&r.issues.push(...Sr(u,c.issues)),r.value[l.value]=c.value)}}return a.length?Promise.all(a).then(()=>r):r}});var hp=j("$ZodEnum",(e,t)=>{Fe.init(e,t);let r=Xa(t.entries),n=new Set(r);e._zod.values=n,e._zod.pattern=new RegExp(`^(${r.filter(o=>Bc.has(typeof o)).map(o=>typeof o=="string"?un(o):o.toString()).join("|")})$`),e._zod.parse=(o,a)=>{let s=o.value;return n.has(s)||o.issues.push({code:"invalid_value",values:r,input:s,inst:e}),o}}),gp=j("$ZodLiteral",(e,t)=>{if(Fe.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");let r=new Set(t.values);e._zod.values=r,e._zod.pattern=new RegExp(`^(${t.values.map(n=>typeof n=="string"?un(n):n?un(n.toString()):String(n)).join("|")})$`),e._zod.parse=(n,o)=>{let a=n.value;return r.has(a)||n.issues.push({code:"invalid_value",values:t.values,input:a,inst:e}),n}});var yp=j("$ZodTransform",(e,t)=>{Fe.init(e,t),e._zod.parse=(r,n)=>{if(n.direction==="backward")throw new Yi(e.constructor.name);let o=t.transform(r.value,r);if(n.async)return(o instanceof Promise?o:Promise.resolve(o)).then(s=>(r.value=s,r));if(o instanceof Promise)throw new er;return r.value=o,r}});function rp(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}i(rp,"handleOptionalResult");var vp=j("$ZodOptional",(e,t)=>{Fe.init(e,t),e._zod.optin="optional",e._zod.optout="optional",Qe(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),Qe(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${to(r.source)})?$`):void 0}),e._zod.parse=(r,n)=>{if(t.innerType._zod.optin==="optional"){let o=t.innerType._zod.run(r,n);return o instanceof Promise?o.then(a=>rp(a,r.value)):rp(o,r.value)}return r.value===void 0?r:t.innerType._zod.run(r,n)}});var xp=j("$ZodNullable",(e,t)=>{Fe.init(e,t),Qe(e._zod,"optin",()=>t.innerType._zod.optin),Qe(e._zod,"optout",()=>t.innerType._zod.optout),Qe(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${to(r.source)}|null)$`):void 0}),Qe(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(r,n)=>r.value===null?r:t.innerType._zod.run(r,n)});var bp=j("$ZodPipe",(e,t)=>{Fe.init(e,t),Qe(e._zod,"values",()=>t.in._zod.values),Qe(e._zod,"optin",()=>t.in._zod.optin),Qe(e._zod,"optout",()=>t.out._zod.optout),Qe(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,n)=>{if(n.direction==="backward"){let a=t.out._zod.run(r,n);return a instanceof Promise?a.then(s=>oo(s,t.in,n)):oo(a,t.in,n)}let o=t.in._zod.run(r,n);return o instanceof Promise?o.then(a=>oo(a,t.out,n)):oo(o,t.out,n)}});function oo(e,t,r){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},r)}i(oo,"handlePipeResult");var _p=j("$ZodCustom",(e,t)=>{Vr.init(e,t),Fe.init(e,t),e._zod.parse=(r,n)=>r,e._zod.check=r=>{let n=r.value,o=t.fn(n);if(o instanceof Promise)return o.then(a=>np(a,r,n,e));np(o,r,n,e)}});function np(e,t,r,n){if(!e){let o={code:"custom",input:r,inst:n,path:[...n._zod.def.path??[]],continue:!n._zod.def.abort};n._zod.def.params&&(o.params=n._zod.def.params),t.issues.push(ts(o))}}i(np,"handleRefineResult");var wp,GS=Symbol("ZodOutput"),KS=Symbol("ZodInput"),ss=class{static{i(this,"$ZodRegistry")}constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...r){let n=r[0];return this._map.set(t,n),n&&typeof n=="object"&&"id"in n&&this._idmap.set(n.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){let r=this._map.get(t);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(t),this}get(t){let r=t._zod.parent;if(r){let n={...this.get(r)??{}};delete n.id;let o={...n,...this._map.get(t)};return Object.keys(o).length?o:void 0}return this._map.get(t)}has(t){return this._map.has(t)}};function Ep(){return new ss}i(Ep,"registry");(wp=globalThis).__zod_globalRegistry??(wp.__zod_globalRegistry=Ep());var us=globalThis.__zod_globalRegistry;function kp(e,t){return new e({type:"string",...Ue(t)})}i(kp,"_string");function Tp(e,t){return new e({type:"string",coerce:!0,...Ue(t)})}i(Tp,"_coercedString");function Sp(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...Ue(t)})}i(Sp,"_url");function Ap(e,t){return new e({type:"number",checks:[],...Ue(t)})}i(Ap,"_number");function Ip(e,t){return new e({type:"number",coerce:!0,checks:[],...Ue(t)})}i(Ip,"_coercedNumber");function Op(e,t){return new e({type:"boolean",...Ue(t)})}i(Op,"_boolean");function Cp(e,t){return new e({type:"boolean",coerce:!0,...Ue(t)})}i(Cp,"_coercedBoolean");function zp(e,t){return new e({type:"bigint",coerce:!0,...Ue(t)})}i(zp,"_coercedBigint");function $p(e){return new e({type:"any"})}i($p,"_any");function Rp(e){return new e({type:"unknown"})}i(Rp,"_unknown");function Dp(e,t){return new e({type:"void",...Ue(t)})}i(Dp,"_void");function Np(e,t){return new e({type:"date",coerce:!0,...Ue(t)})}i(Np,"_coercedDate");function ls(e,t){return new Kc({check:"max_length",...Ue(t),maximum:e})}i(ls,"_maxLength");function Zt(e,t){return new Jc({check:"min_length",...Ue(t),minimum:e})}i(Zt,"_minLength");function Ir(e,t){return new Xc({check:"string_format",format:"regex",...Ue(t),pattern:e})}i(Ir,"_regex");function Up(e,t,r){let n=Ue(r);return n.abort??(n.abort=!0),new e({type:"custom",check:"custom",fn:t,...n})}i(Up,"_custom");var et=j("ZodMiniType",(e,t)=>{if(!e._zod)throw new Error("Uninitialized schema in ZodMiniType.");Fe.init(e,t),e.def=t,e.type=t.type,e.parse=(r,n)=>no(e,r,n,{callee:e.parse}),e.safeParse=(r,n)=>ti(e,r,n),e.parseAsync=async(r,n)=>io(e,r,n,{callee:e.parseAsync}),e.safeParseAsync=async(r,n)=>jr(e,r,n),e.check=(...r)=>e.clone({...t,checks:[...t.checks??[],...r.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]},{parent:!0}),e.with=e.check,e.clone=(r,n)=>ro(e,r,n),e.brand=()=>e,e.register=(r,n)=>(r.add(e,n),e),e.apply=r=>r(e)}),lo=j("ZodMiniString",(e,t)=>{so.init(e,t),et.init(e,t)});function _(e){return kp(lo,e)}i(_,"string");var Lp=j("ZodMiniStringFormat",(e,t)=>{is.init(e,t),lo.init(e,t)});var oA=j("ZodMiniURL",(e,t)=>{ip.init(e,t),Lp.init(e,t)});function Mp(e){return Sp(oA,e)}i(Mp,"url");var cs=j("ZodMiniNumber",(e,t)=>{op.init(e,t),et.init(e,t)});function ht(e){return Ap(cs,e)}i(ht,"number");var ps=j("ZodMiniBoolean",(e,t)=>{os.init(e,t),et.init(e,t)});function _e(e){return Op(ps,e)}i(_e,"boolean");var qp=j("ZodMiniBigInt",(e,t)=>{ap.init(e,t),et.init(e,t)});var aA=j("ZodMiniAny",(e,t)=>{sp.init(e,t),et.init(e,t)});function ni(){return $p(aA)}i(ni,"any");var sA=j("ZodMiniUnknown",(e,t)=>{up.init(e,t),et.init(e,t)});function te(){return Rp(sA)}i(te,"unknown");var uA=j("ZodMiniVoid",(e,t)=>{lp.init(e,t),et.init(e,t)});function Fp(e){return Dp(uA,e)}i(Fp,"_void");var Bp=j("ZodMiniDate",(e,t)=>{cp.init(e,t),et.init(e,t)});var lA=j("ZodMiniArray",(e,t)=>{pp.init(e,t),et.init(e,t)});function ne(e,t){return new lA({type:"array",element:e,...Ue(t)})}i(ne,"array");var cA=j("ZodMiniObject",(e,t)=>{dp.init(e,t),et.init(e,t),Qe(e,"shape",()=>t.shape)});function S(e,t){let r={type:"object",shape:e??{},...Ue(t)};return new cA(r)}i(S,"object");var pA=j("ZodMiniUnion",(e,t)=>{as.init(e,t),et.init(e,t)});function oe(e,t){return new pA({type:"union",options:e,...Ue(t)})}i(oe,"union");var dA=j("ZodMiniDiscriminatedUnion",(e,t)=>{fp.init(e,t),et.init(e,t)});function cn(e,t,r){return new dA({type:"union",options:t,discriminator:e,...Ue(r)})}i(cn,"discriminatedUnion");var fA=j("ZodMiniRecord",(e,t)=>{mp.init(e,t),et.init(e,t)});function re(e,t,r){return new fA({type:"record",keyType:e,valueType:t,...Ue(r)})}i(re,"record");var mA=j("ZodMiniEnum",(e,t)=>{hp.init(e,t),et.init(e,t),e.options=Object.values(t.entries)});function le(e,t){let r=Array.isArray(e)?Object.fromEntries(e.map(n=>[n,n])):e;return new mA({type:"enum",entries:r,...Ue(t)})}i(le,"_enum");var hA=j("ZodMiniLiteral",(e,t)=>{gp.init(e,t),et.init(e,t)});function K(e,t){return new hA({type:"literal",values:Array.isArray(e)?e:[e],...Ue(t)})}i(K,"literal");var gA=j("ZodMiniTransform",(e,t)=>{yp.init(e,t),et.init(e,t)});function Or(e){return new gA({type:"transform",transform:e})}i(Or,"transform");var yA=j("ZodMiniOptional",(e,t)=>{vp.init(e,t),et.init(e,t)});function C(e){return new yA({type:"optional",innerType:e})}i(C,"optional");var vA=j("ZodMiniNullable",(e,t)=>{xp.init(e,t),et.init(e,t)});function ii(e){return new vA({type:"nullable",innerType:e})}i(ii,"nullable");var xA=j("ZodMiniPipe",(e,t)=>{bp.init(e,t),et.init(e,t)});function Cr(e,t){return new xA({type:"pipe",in:e,out:t})}i(Cr,"pipe");var bA=j("ZodMiniCustom",(e,t)=>{_p.init(e,t),et.init(e,t)});function co(e,t){return Up(bA,e??(()=>!0),t)}i(co,"custom");var oi={};Uc(oi,{bigint:()=>SA,boolean:()=>TA,date:()=>AA,number:()=>kA,string:()=>EA});function EA(e){return Tp(lo,e)}i(EA,"string");function kA(e){return Ip(cs,e)}i(kA,"number");function TA(e){return Cp(ps,e)}i(TA,"boolean");function SA(e){return zp(qp,e)}i(SA,"bigint");function AA(e){return Np(Bp,e)}i(AA,"date");var fs=S({retryOnFailure:S({defaultValue:C(_e()),hide:C(_e())}),continueOnFailure:S({defaultValue:C(_e()),hide:C(_e())})}),ds=class{constructor(t,r,n,o,a,s,u,l,p,c,m){this.name=t;this.displayName=r;this.description=n;this.props=o;this.run=a;this.test=s;this.requireAuth=u;this.errorHandlingOptions=l;this.outputSchema=p;this.audience=c;this.aiMetadata=m}static{i(this,"IAction")}},H=i(e=>new ds(e.name,e.displayName,e.description,e.props,e.run,e.test??e.run,e.requireAuth??!0,e.errorHandlingOptions??{continueOnFailure:{defaultValue:!1},retryOnFailure:{defaultValue:!1}},e.outputSchema,e.audience,e.aiMetadata),"createAction");var ye=S({displayName:_(),description:C(_())}),ue=i((e,t)=>S({type:K(t),required:_e(),defaultValue:C(ni())}),"TPropertyValue");var Ot=S({...ye.shape,...ue(_(),"SHORT_TEXT").shape}),fr=S({...ye.shape,...ue(_(),"LONG_TEXT").shape});var Vp=S({label:_(),value:te()}),po=S({disabled:C(_e()),placeholder:C(_()),options:ne(Vp)});var Ct=S({...ye.shape,options:po,...ue(te(),"STATIC_DROPDOWN").shape}),mr=S({...ye.shape,options:po,...ue(ne(te()),"STATIC_MULTI_SELECT_DROPDOWN").shape});var ms=S({...ye.shape,...ue(te(),"DROPDOWN").shape,refreshers:ne(_())}),ai=S({...ye.shape,...ue(ne(te()),"MULTI_SELECT_DROPDOWN").shape,refreshers:ne(_())});var hr=S({...ye.shape,...ue(_e(),"CHECKBOX").shape});var gr=S({...ye.shape,...ue(ht(),"NUMBER").shape});var si=S({...ye.shape,...ue(te(),"FILE").shape});var ui=S({...ye.shape,...ue(_(),"DATE_TIME").shape});var Hp=re(_(),oe([Ot,fr,Ct,ai,mr,hr,gr,si,ui])),li=S({...ye.shape,properties:Hp,...ue(ne(te()),"ARRAY").shape});var ci=S({...ye.shape,...ue(oe([re(_(),te())]),"JSON").shape});var Zp=oe([Ot,Ct,ci,li,mr]),OA=re(_(),Zp),hs=S({refreshers:ne(_()),...ye.shape,...ue(te(),"DYNAMIC").shape});var fo=S({...ye.shape,...ue(Fp(),"MARKDOWN").shape});var pi=(r=>(r.ARCHIVE="ARCHIVE",r.REGISTRY="REGISTRY",r))(pi||{}),pn=(r=>(r.CUSTOM="CUSTOM",r.OFFICIAL="OFFICIAL",r))(pn||{}),dn=(v=>(v.ARTIFICIAL_INTELLIGENCE="ARTIFICIAL_INTELLIGENCE",v.COMMUNICATION="COMMUNICATION",v.COMMERCE="COMMERCE",v.CORE="CORE",v.UNIVERSAL_AI="UNIVERSAL_AI",v.FLOW_CONTROL="FLOW_CONTROL",v.BUSINESS_INTELLIGENCE="BUSINESS_INTELLIGENCE",v.ACCOUNTING="ACCOUNTING",v.PRODUCTIVITY="PRODUCTIVITY",v.CONTENT_AND_FILES="CONTENT_AND_FILES",v.DEVELOPER_TOOLS="DEVELOPER_TOOLS",v.CUSTOMER_SUPPORT="CUSTOMER_SUPPORT",v.FORMS_AND_SURVEYS="FORMS_AND_SURVEYS",v.HUMAN_RESOURCES="HUMAN_RESOURCES",v.PAYMENT_PROCESSING="PAYMENT_PROCESSING",v.MARKETING="MARKETING",v.SALES_AND_CRM="SALES_AND_CRM",v))(dn||{});var di=(r=>(r.AUTHORIZATION_CODE="authorization_code",r.CLIENT_CREDENTIALS="client_credentials",r))(di||{}),gs="both_client_credentials_and_authorization_code";var Ke=(o=>(o.POLLING="POLLING",o.WEBHOOK="WEBHOOK",o.APP_WEBHOOK="APP_WEBHOOK",o.MANUAL="MANUAL",o))(Ke||{}),fi=(a=>(a.NONE="NONE",a.HEADER_PRESENT="HEADER_PRESENT",a.QUERY_PRESENT="QUERY_PRESENT",a.BODY_PARAM_PRESENT="BODY_PARAM_PRESENT",a.HEAD_REQUEST="HEAD_REQUEST",a))(fi||{}),CA=S({strategy:le(fi),paramName:C(_())}),mi=(r=>(r.SIMULATION="SIMULATION",r.TEST_FUNCTION="TEST_FUNCTION",r))(mi||{});var mo=(r=>(r.WEBSOCKET="WEBSOCKET",r.NONE="NONE",r))(mo||{}),Wp=S({status:C(ht()),body:C(te()),headers:C(re(_(),_()))}),Gp=S({type:K("DELAY"),resumeDateTime:_(),requestIdToReply:C(_()),handlerId:C(_()),streamStepProgress:C(le(mo))}),Kp=S({type:K("WEBHOOK"),requestId:_(),requestIdToReply:C(_()),response:Wp,handlerId:C(_()),streamStepProgress:C(le(mo))}),zA=oe([Gp,Kp]);var $A=S({body:te(),rawBody:C(te()),headers:re(_(),_()),queryParams:re(_(),_())});function Wt(e){return e==null}i(Wt,"isNil");function hi(e){return e==null?!0:typeof e=="string"||Array.isArray(e)?e.length===0:typeof e=="object"?Object.keys(e).length===0:!1}i(hi,"isEmpty");function Re(e,t){if(e==null)throw new Error(`${t} is null or undefined`)}i(Re,"assertNotNullOrUndefined");var ys=de(require("crypto"),1);var RA=128,Hr,fn,DA=i(e=>{!Hr||Hr.length<e?(Hr=Buffer.allocUnsafe(e*RA),ys.default.randomFillSync(Hr),fn=0):fn+e>Hr.length&&(ys.default.randomFillSync(Hr),fn=0),fn+=e},"fillPool"),NA=i(e=>(DA(e|=0),Hr.subarray(fn-e,fn)),"random"),UA=i((e,t,r)=>{let n=(2<<31-Math.clz32(e.length-1|1))-1,o=Math.ceil(1.6*n*t/e.length);return(a=t)=>{let s="";for(;;){let u=r(o),l=o;for(;l--;)if(s+=e[u[l]&n]||"",s.length===a)return s}}},"customRandom"),Xp=i((e,t=21)=>UA(e,t,NA),"customAlphabet");var LA="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",Yp=21,G9=_().check(Ir(new RegExp(`^[0-9a-zA-Z]{${Yp}}$`))),MA=Xp(LA,Yp);var zr=Cr(Or(e=>e instanceof Date?e.toISOString():e),_()),Rt={id:_(),created:zr,updated:zr},Le=i(e=>C(ii(e)),"Nullable");function vs(e){return C(ii(le(e)))}i(vs,"NullableEnum");var X9=Cr(Or(e=>e==="true"||e===!0?!0:e==="false"||e===!1?!1:void 0),C(_e())),ho=i(e=>Cr(Or(t=>Array.isArray(t)?t:t!==void 0?[t]:void 0),C(ne(e))),"OptionalArrayFromQuery");var e5=re(_(),te());var gi=(c=>(c.OPENAI="openai",c.OPENROUTER="openrouter",c.ANTHROPIC="anthropic",c.AZURE="azure",c.GOOGLE="google",c.ACTIVEPIECES="activepieces",c.CLOUDFLARE_GATEWAY="cloudflare-gateway",c.CUSTOM="custom",c.BEDROCK="bedrock",c.MISTRAL="mistral",c))(gi||{});var d5=_().check(Ir(/^#[0-9A-Fa-f]{6}$/));var m5=S({filename:_(),data:te(),type:K("file"),mimetype:C(_())});var qA=de(ed());var _5=S({...Rt,name:_(),permissions:ne(_()),platformId:Le(_()),type:_(),userCount:C(ht())});var td=(n=>(n.AGENT_DECIDE="agent-decide",n.CHOOSE_YOURSELF="choose-yourself",n.LEAVE_EMPTY="leave-empty",n))(td||{}),xs=(r=>(r.FILE="FILE",r.TABLE="TABLE",r))(xs||{}),bs=(n=>(n.SSE="sse",n.STREAMABLE_HTTP="streamable-http",n.SIMPLE_HTTP="http",n))(bs||{});var _s=(n=>(n.TEXT="text",n.NUMBER="number",n.BOOLEAN="boolean",n))(_s||{});var Ps=(r=>(r.IN_PROGRESS="in-progress",r.COMPLETED="completed",r))(Ps||{});var FA=S({mode:le(td),value:te()}),BA=S({auth:C(_()),fields:re(_(),FA)}),jA=S({pieceName:_(),pieceVersion:_(),actionName:_(),predefinedInput:C(BA)}),VA=S({type:K("PIECE"),toolName:_().check(Zt(1)),pieceMetadata:jA}),HA=S({type:K("none")}),ZA=S({type:K("access_token"),accessToken:_()}),WA=S({type:K("api_key"),apiKey:_(),apiKeyHeader:_()}),GA=S({type:K("headers"),headers:re(_(),_())}),KA=cn("type",[HA,ZA,WA,GA]),rd=S({type:K("FLOW"),toolName:_().check(Zt(1)),externalFlowId:_(),flowDisplayName:C(_())}),nd=S({type:K("MCP"),toolName:_().check(Zt(1)),serverUrl:Mp(),protocol:le(bs),auth:KA}),id=S({type:K("KNOWLEDGE_BASE"),toolName:_().check(Zt(1)),sourceType:le(xs),sourceId:_(),sourceName:_()}),JA=cn("type",[VA,rd,nd,id]),XA=S({displayName:_(),description:C(_()),type:le(_s)}),od=S({type:K("MARKDOWN"),markdown:_()}),mn={type:K("TOOL_CALL"),input:Le(re(_(),te())),output:C(te()),toolName:_(),status:le(Ps),toolCallId:_(),startTime:_(),endTime:C(_())},G5=S(mn),ad=cn("toolCallType",[S({...mn,toolCallType:K("PIECE"),pieceName:_(),pieceVersion:_(),actionName:_()}),S({...mn,toolCallType:K("FLOW"),displayName:_(),externalFlowId:_()}),S({...mn,toolCallType:K("MCP"),displayName:_(),serverUrl:_()}),S({...mn,toolCallType:K("KNOWLEDGE_BASE"),displayName:_(),sourceType:_()}),S({...mn,toolCallType:K("UNKNOWN"),displayName:_()})]),YA=oe([od,ad]);var ws=(r=>(r.IMAGE="image",r.TEXT="text",r))(ws||{}),yr=S({apiKey:_()}),QA=yr,eI=S({apiKey:_(),apiKeyHash:_()}),tI=yr,rI=yr,nI=yr,iI=yr,oI=yr,aI=yr,sI=yr,sd=S({accessKeyId:_().check(Zt(1)),secretAccessKey:_().check(Zt(1))}),uI=S({}),lI=S({}),cI=S({}),pI=S({}),dI=S({}),fI=S({}),ud=S({modelId:_(),modelName:_(),modelType:le(ws)}),ld=S({apiKeyHeader:_(),baseUrl:_(),models:ne(ud),defaultHeaders:C(re(_(),_()))}),cd=S({accountId:_(),gatewayId:_(),models:ne(ud),vertexProject:C(_()),vertexRegion:C(_())}),pd=S({resourceName:_(),apiVersion:Cr(Or(e=>typeof e=="string"&&e.trim().length===0?void 0:e),C(_()))}),dd=S({region:_().check(Zt(1))}),mI=oe([QA,nI,iI,oI,aI,rI,tI,eI,sd,sI]),fd=oe([ld,cd,pd,dd,uI,cI,pI,dI,lI,fI]),hI=S({id:_(),name:_(),type:le(ws)}),gI=S({id:_(),name:_(),provider:le(gi),config:fd,enabledForChat:_e()}),yI=S({provider:le(gi),config:fd,auth:mI,platformId:_()});var Y5={openai:"openai",anthropic:"anthropic","google-ai-studio":"google","google-vertex-ai":"google"};var vI=S({base64Url:_(),fileName:_(),extension:C(_())}),xI=S({mimeType:_(),url:_(),fileName:C(_())}),Es=oe([vI,xI]);var bI=oe([S({type:K("file"),value:Es}),S({type:K("markdown"),value:_(),files:C(ne(Es))})]),_I=S({sessionId:_(),message:_(),files:C(ne(_()))});var hd=(r=>(r.ON_NEW_RECORD="ON_NEW_RECORD",r.ON_UPDATE_RECORD="ON_UPDATE_RECORD",r))(hd||{}),gd=(r=>(r.ENABLED="ENABLED",r.DISABLED="DISABLED",r))(gd||{}),ks=(n=>(n.RECORD_CREATED="RECORD_CREATED",n.RECORD_UPDATED="RECORD_UPDATED",n.RECORD_DELETED="RECORD_DELETED",n))(ks||{});var PI=oe([S({...Rt,name:_(),externalId:_(),type:K("STATIC_DROPDOWN"),tableId:_(),projectId:_(),data:S({options:ne(S({value:_()}))})}),S({...Rt,name:_(),externalId:_(),type:oe([K("TEXT"),K("NUMBER"),K("DATE")]),tableId:_(),projectId:_()})]),wI=S({...Rt,name:_(),folderId:Le(_()),projectId:_(),externalId:_(),status:vs(gd),trigger:vs(hd)}),EI=S({...Rt,tableId:_(),projectId:_(),cells:re(_(),S({updated:_(),created:_(),value:te(),fieldName:_()}))}),kI=S({events:ne(le(ks)),webhookUrl:_(),flowId:_()}),TI=S({fields:ne(S({id:_(),name:_()})),rows:ne(re(_(),_())),name:_()}),SI=S({projectId:_(),limit:C(oi.number()),cursor:C(_()),name:C(_()),externalIds:ho(_()),folderId:C(_()),folderIds:ho(_())}),AI=S({records:ne(ne(S({fieldId:_(),value:vd()}))),tableId:_()}),II=S({cells:C(ne(S({fieldId:_(),value:vd()}))),tableId:_(),agentUpdate:C(_e())}),yd=cn("operator",[Zr("eq"),Zr("neq"),Zr("gt"),Zr("gte"),Zr("lt"),Zr("lte"),Zr("co"),md("exists"),md("not_exists")]),OI=S({tableId:_(),limit:C(oi.number()),cursor:C(_()),filters:ho(yd)});function vd(){return Cr(Or(e=>e==null?e:String(e)),ii(_()))}i(vd,"coerceToString");function Zr(e){return S({fieldId:_(),operator:K(e),value:_()})}i(Zr,"valueFilter");function md(e){return S({fieldId:_(),operator:K(e)})}i(md,"existenceFilter");var CI=S({status:C(ht()),body:C(te()),headers:C(re(_(),_()))}),zI=S({...Rt,deleted:Le(zr),ownerId:_(),displayName:_(),platformId:_(),externalId:Le(_())});var xd=S({name:_(),description:C(_()),type:_(),required:_e()}),$I=S({pieceName:_(),triggerName:_(),input:S({toolName:_(),toolDescription:_(),inputSchema:ne(xd),returnsResponse:_e()})});var bd="^[0-9]+\\.[0-9]+\\.[0-9]+$",y8=new RegExp(bd),DI="^([~^])?[0-9]+\\.[0-9]+\\.[0-9]+$",v8=_().check(Ir(new RegExp(bd))),x8=_().check(Ir(new RegExp(DI))),NI=S({packageType:K("ARCHIVE"),pieceType:le(pn),pieceName:_(),pieceVersion:_(),archiveId:_(),platformId:_()}),_d=S({packageType:K("REGISTRY"),pieceType:K("OFFICIAL"),pieceName:_(),pieceVersion:_()}),Pd=S({packageType:K("REGISTRY"),pieceType:K("CUSTOM"),pieceName:_(),pieceVersion:_(),platformId:_()}),b8=oe([_d,Pd]),_8=oe([NI,_d,Pd]),wd=(t=>(t.CRON_EXPRESSION="CRON_EXPRESSION",t))(wd||{}),UI=S({type:le(wd),cronExpression:_(),timezone:_()}),P8=S({...Rt,type:le(Ke),projectId:_(),flowId:_(),triggerName:_(),schedule:Le(UI),flowVersionId:_(),pieceName:_(),pieceVersion:_(),deleted:Le(_()),simulate:_e()}),Ed=(y=>(y.UNKNOWN="UNKNOWN",y.FLOW_RUN_LOG="FLOW_RUN_LOG",y.FLOW_RUN_LOG_SLICE="FLOW_RUN_LOG_SLICE",y.PACKAGE_ARCHIVE="PACKAGE_ARCHIVE",y.FLOW_STEP_FILE="FLOW_STEP_FILE",y.SAMPLE_DATA="SAMPLE_DATA",y.TRIGGER_PAYLOAD="TRIGGER_PAYLOAD",y.SAMPLE_DATA_INPUT="SAMPLE_DATA_INPUT",y.TRIGGER_EVENT_FILE="TRIGGER_EVENT_FILE",y.PROJECT_RELEASE="PROJECT_RELEASE",y.FLOW_VERSION_BACKUP="FLOW_VERSION_BACKUP",y.PLATFORM_ASSET="PLATFORM_ASSET",y.USER_PROFILE_PICTURE="USER_PROFILE_PICTURE",y.WEBHOOK_PAYLOAD="WEBHOOK_PAYLOAD",y.KNOWLEDGE_BASE="KNOWLEDGE_BASE",y.FLOW_BUNDLE="FLOW_BUNDLE",y))(Ed||{}),kd=(r=>(r.NONE="NONE",r.ZSTD="ZSTD",r))(kd||{}),Td=(r=>(r.S3="S3",r.DB="DB",r))(Td||{}),w8=S({...Rt,projectId:Le(_()),platformId:Le(_()),type:le(Ed),compression:le(kd),data:C(te()),location:le(Td),size:Le(ht()),fileName:Le(_()),s3Key:Le(_()),metadata:Le(re(_(),_()))}),Sd=(n=>(n.ADMIN="ADMIN",n.MEMBER="MEMBER",n.OPERATOR="OPERATOR",n))(Sd||{}),Ad=(r=>(r.ACTIVE="ACTIVE",r.INACTIVE="INACTIVE",r))(Ad||{}),E8=S({id:_(),email:_(),firstName:_(),status:le(Ad),externalId:Le(_()),platformId:Le(_()),platformRole:le(Sd),lastName:_(),created:zr,updated:zr,lastActiveDate:Le(zr),imageUrl:Le(_())});var Ss=S({...ye.shape,...ue(re(_(),te()),"OBJECT").shape});var Od=S({...ye.shape,...ue(_(),"COLOR").shape});var As=oe([Ot,fr,fo,hr,Ct,mr,ms,ai,hs,gr,li,Ss,ci,ui,si,Od]),A={ShortText(e){return{...e,valueSchema:void 0,type:"SHORT_TEXT"}},Checkbox(e){return{...e,valueSchema:void 0,type:"CHECKBOX"}},LongText(e){return{...e,valueSchema:void 0,type:"LONG_TEXT"}},MarkDown(e){return{displayName:"Markdown",required:!1,description:e.value,type:"MARKDOWN",valueSchema:void 0,variant:e.variant??"INFO"}},Number(e){return{...e,valueSchema:void 0,type:"NUMBER"}},Json(e){return{...e,valueSchema:void 0,type:"JSON"}},Array(e){return{...e,valueSchema:void 0,type:"ARRAY"}},Object(e){return{...e,valueSchema:void 0,type:"OBJECT"}},Dropdown(e){return{...e,valueSchema:void 0,type:"DROPDOWN"}},StaticDropdown(e){return{...e,valueSchema:void 0,type:"STATIC_DROPDOWN"}},MultiSelectDropdown(e){return{...e,valueSchema:void 0,type:"MULTI_SELECT_DROPDOWN"}},DynamicProperties(e){return{...e,valueSchema:void 0,type:"DYNAMIC"}},StaticMultiSelectDropdown(e){return{...e,valueSchema:void 0,type:"STATIC_MULTI_SELECT_DROPDOWN"}},DateTime(e){return{...e,valueSchema:void 0,type:"DATE_TIME"}},File(e){return{...e,valueSchema:void 0,type:"FILE"}},Custom(e){let t=e.code.toString();return{...e,code:t,valueSchema:void 0,type:"CUSTOM"}},Color(e){return{...e,valueSchema:void 0,type:"COLOR"}}};var tr=S({displayName:_(),description:C(_())});var Cd=S({username:_(),password:_()}),Is=S({...tr.shape,username:S({displayName:_(),description:C(_())}),password:S({displayName:_(),description:C(_())}),...ue(Cd,"BASIC_AUTH").shape});var FI=re(_(),oe([Ot,fr,gr,hr,Ct])),Os=S({...tr.shape,props:FI,...ue(te(),"CUSTOM_AUTH").shape});var Wr=S({...tr.shape,...ue(S({auth:_()}),"SECRET_TEXT").shape});var BI=re(_(),oe([Ot,fr,Wr,gr,hr,Ct,mr,fo])),zd=S({...tr.shape,props:BI,...ue(te(),"OIDC").shape});var Cs=(r=>(r.HEADER="HEADER",r.BODY="BODY",r))(Cs||{}),$d=oe([Ot,Wr,Ct]),Rd=re(_(),$d),jI=S({props:C(re(_(),$d)),authUrl:_(),tokenUrl:_(),scope:ne(_()),prompt:C(oe([K("none"),K("consent"),K("login"),K("omit")])),pkce:C(_e()),pkceMethod:C(oe([K("plain"),K("S256")])),authorizationMethod:C(le(Cs)),grantType:C(oe([le(di),K(gs)])),extra:C(re(_(),_()))}),Dd=S({access_token:_(),props:C(Rd),data:re(_(),ni())}),zs=S({...tr.shape,...jI.shape,...ue(Dd,"OAUTH2").shape});var hn=oe([Is,Os,zd,zs,Wr]),vi="Connection",gn={SecretText(e){return{...e,valueSchema:void 0,type:"SECRET_TEXT"}},OAuth2(e){return{...e,valueSchema:void 0,type:"OAUTH2",displayName:e.displayName||vi}},BasicAuth(e){return{...e,valueSchema:void 0,type:"BASIC_AUTH",displayName:e.displayName||vi,required:!0}},CustomAuth(e){return{...e,valueSchema:void 0,type:"CUSTOM_AUTH",displayName:e.displayName||vi}},OIDC(e){return{...e,valueSchema:void 0,type:"OIDC",displayName:e.displayName||vi}},None(){}};var rJ={OAUTH2:"OAUTH2",CLOUD_OAUTH2:"OAUTH2",PLATFORM_OAUTH2:"OAUTH2",BASIC_AUTH:"BASIC_AUTH",CUSTOM_AUTH:"CUSTOM_AUTH",OIDC:"OIDC",SECRET_TEXT:"SECRET_TEXT",NO_AUTH:void 0};var VI=S({...ye.shape,...ue(te(),"CUSTOM").shape,code:_()});var HI=oe([As,hn]),$s=re(_(),HI),PJ=re(_(),As);var Nd=oe([S({strategy:K("CRON"),cronExpression:_()}),S({strategy:K("NONE")})]),yn=class{constructor(t,r,n,o,a,s,u,l,p,c,m,f,d,h,x,y,v,P,w){this.name=t;this.displayName=r;this.description=n;this.requireAuth=o;this.props=a;this.type=s;this.handshakeConfiguration=u;this.onHandshake=l;this.renewConfiguration=p;this.onRenew=c;this.onEnable=m;this.onDisable=f;this.onStart=d;this.run=h;this.test=x;this.sampleData=y;this.testStrategy=v;this.outputSchema=P;this.aiMetadata=w}static{i(this,"ITrigger")}},Pe=i(e=>{switch(e.type){case"WEBHOOK":return new yn(e.name,e.displayName,e.description,e.requireAuth??!0,e.props,e.type,e.handshakeConfiguration??{strategy:"NONE"},e.onHandshake??(async()=>({status:200})),e.renewConfiguration??{strategy:"NONE"},e.onRenew??(async()=>Promise.resolve()),e.onEnable,e.onDisable,e.onStart??(async()=>Promise.resolve()),e.run,e.test??(()=>Promise.resolve([e.sampleData])),e.sampleData,e.test?"TEST_FUNCTION":"SIMULATION",e.outputSchema,e.aiMetadata);case"POLLING":return new yn(e.name,e.displayName,e.description,e.requireAuth??!0,e.props,e.type,{strategy:"NONE"},async()=>({status:200}),{strategy:"NONE"},async()=>Promise.resolve(),e.onEnable,e.onDisable,e.onStart??(async()=>Promise.resolve()),e.run,e.test??(()=>Promise.resolve([e.sampleData])),e.sampleData,"TEST_FUNCTION",e.outputSchema,e.aiMetadata);case"MANUAL":return new yn(e.name,e.displayName,e.description,e.requireAuth??!0,e.props,e.type,{strategy:"NONE"},async()=>({status:200}),{strategy:"NONE"},async()=>Promise.resolve(),e.onEnable,e.onDisable,e.onStart??(async()=>Promise.resolve()),e.run,e.test??(()=>Promise.resolve([e.sampleData])),e.sampleData,"TEST_FUNCTION",e.outputSchema,e.aiMetadata);case"APP_WEBHOOK":return new yn(e.name,e.displayName,e.description,e.requireAuth??!0,e.props,e.type,{strategy:"NONE"},async()=>({status:200}),{strategy:"NONE"},async()=>Promise.resolve(),e.onEnable,e.onDisable,e.onStart??(async()=>Promise.resolve()),e.run,e.test??(()=>Promise.resolve([e.sampleData])),e.sampleData,Wt(e.sampleData)&&Wt(e.test)?"SIMULATION":"TEST_FUNCTION",e.outputSchema,e.aiMetadata)}},"createTrigger");var Ud="2",yo="0.82.0";var Rs=class{constructor(t,r,n,o,a,s,u,l,p=yo,c,m=""){this.displayName=t;this.logoUrl=r;this.authors=n;this.events=o;this.categories=u;this.auth=l;this.minimumSupportedRelease=p;this.maximumSupportedRelease=c;this.description=m;this._actions={};this._triggers={};this.getContextInfo=i(()=>({version:Ud}),"getContextInfo");(!ZI(p)||WI(p,yo))&&(this.minimumSupportedRelease=yo),a.forEach(f=>this._actions[f.name]=f),s.forEach(f=>this._triggers[f.name]=f)}static{i(this,"Piece")}metadata(){return{displayName:this.displayName,logoUrl:this.logoUrl,actions:this._actions,triggers:this._triggers,categories:this.categories,description:this.description,authors:this.authors,auth:this.auth,minimumSupportedRelease:this.minimumSupportedRelease,maximumSupportedRelease:this.maximumSupportedRelease,contextInfo:this.getContextInfo?.()}}getAction(t){return this._actions[t]}getTrigger(t){return this._triggers[t]}actions(){return this._actions}triggers(){return this._triggers}},Ld=i(e=>{if(e.auth&&Array.isArray(e.auth)&&!e.auth.every((r,n,o)=>n===o.findIndex(a=>a.type===r.type)))throw new Error("Auth properties must be unique by type");return new Rs(e.displayName,e.logoUrl,e.authors??[],e.events,e.actions,e.triggers,e.categories??[],e.auth,e.minimumSupportedRelease,e.maximumSupportedRelease,e.description)},"createPiece");function ZI(e){return/^\d+\.\d+\.\d+$/.test(e)}i(ZI,"isValidSimpleSemver");function WI(e,t){let[r,n,o]=e.split(".").map(Number),[a,s,u]=t.split(".").map(Number);return r!==a?r<a:n!==s?n<s:o<u}i(WI,"isSemverLessThan");var GI=C(re(_(),re(_(),_()))),Md=S({id:C(_()),name:_(),displayName:_(),logoUrl:_(),description:_(),authors:ne(_()),platformId:C(_()),directoryPath:C(_()),auth:C(oe([hn,ne(hn)])),version:_(),categories:C(ne(le(dn))),minimumSupportedRelease:C(_()),maximumSupportedRelease:C(_()),i18n:GI}),KI=le(["human","ai","both"]),qd=S({description:C(_()),idempotent:C(_e())}),Fd=S({name:_(),displayName:_(),description:_(),props:$s,requireAuth:_e(),errorHandlingOptions:C(fs),outputSchema:C(co()),audience:C(KI),aiMetadata:C(qd)}),Bd=S({name:_(),displayName:_(),description:_(),props:$s,errorHandlingOptions:C(fs),type:le(Ke),sampleData:te(),handshakeConfiguration:C(co()),renewConfiguration:C(Nd),testStrategy:le(mi),outputSchema:C(co()),aiMetadata:C(qd)}),JI=S({...Md.shape,actions:re(_(),Fd),triggers:re(_(),Bd)}),XI=S({...Md.shape,actions:ht(),triggers:ht(),suggestedActions:C(ne(Bd)),suggestedTriggers:C(ne(Fd))}),jd=S({projectUsage:ht(),tags:C(ne(_())),pieceType:le(pn),packageType:le(pi),platformId:C(_()),archiveId:C(_())}),PX=S({...JI.shape,...jd.shape}),wX=S({...XI.shape,...jd.shape}),EX=S({name:_(),version:_()});var YI=de(require("path")),QI=de(require("fs/promises"));var vo=class{constructor(t,r){this.baseUrl=t;this.authenticationConverter=r}static{i(this,"BaseHttpClient")}getUrl(t){let r=new URL(`${this.baseUrl}${t.url}`),n=`${r.origin}${r.pathname}`,o=new URLSearchParams;return r.searchParams.forEach((a,s)=>{o.append(s,a)}),{urlWithoutQueryParams:n,queryParams:o}}getHeaders(t){let r={Accept:"application/json"};if(t.authentication&&this.populateAuthentication(t.authentication,r),t.body)switch(t.headers?.["Content-Type"]){case"text/csv":r["Content-Type"]="text/csv";break;default:r["Content-Type"]="application/json";break}return t.headers&&(r={...r,...t.headers}),r}populateAuthentication(t,r){this.authenticationConverter.convert(t,r)}};var xo=class{static{i(this,"DelegatingAuthenticationConverter")}constructor(t=new Ds,r=new Ns){this.converters={BEARER_TOKEN:t,BASIC:r}}convert(t,r){return this.converters[t.type].convert(t,r)}},Ds=class{static{i(this,"BearerTokenAuthenticationConverter")}convert(t,r){return r.Authorization=`Bearer ${t.token}`,r}},Ns=class{static{i(this,"BasicTokenAuthenticationConverter")}convert(t,r){let n=`${t.username}:${t.password}`,o=Buffer.from(n).toString("base64");return r.Authorization=`Basic ${o}`,r}};var bo=class extends Error{constructor(r,n){let o=n.status||500,a=Buffer.isBuffer(n.responseBody)?n.responseBody.toString():n.responseBody;super(JSON.stringify({response:{status:o,body:a},request:{body:r}}));this.requestBody=r;this.status=o,this.responseBody=a}static{i(this,"HttpError")}errorMessage(){return{response:{status:this.status,body:this.responseBody},request:{body:this.requestBody}}}get response(){return{status:this.status,body:this.responseBody}}get request(){return{body:this.requestBody}}};var _o=class extends vo{static{i(this,"FetchHttpClient")}constructor(t="",r=new xo){super(t,r)}async sendRequest(t,r){process.env.NODE_TLS_REJECT_UNAUTHORIZED="0";let{urlWithoutQueryParams:n,queryParams:o}=this.getUrl(t),a=this.getHeaders(t),s=t.queryParams??{};for(let[w,I]of Object.entries(s))o.append(w,I);let u=o.toString(),l=u?`${n}?${u}`:n,p=t.responseType??"json",c=t.followRedirects??!0,m=t.retries??0,{body:f,extraHeaders:d,isStream:h}=eO(t.body,a),x=rO({...a,...d}),y=await tO(async()=>{let w=new AbortController,I=t.timeout&&t.timeout>0?setTimeout(()=>w.abort(),t.timeout):void 0;try{let N={method:t.method.toString(),headers:x,body:f,redirect:c?"follow":"manual",signal:w.signal};return h&&(N.duplex="half"),r?.dispatcher!==void 0&&(N.dispatcher=r.dispatcher),await fetch(l,N)}finally{I!==void 0&&clearTimeout(I)}},m),v=c?300:400;if(y.status<200||y.status>=v){let w=await Vd(y,p),I=new bo(t.body,{status:y.status,responseBody:w});throw console.error("[HttpClient#(sanitized error message)] Request failed:",I),I}let P=await Vd(y,p);return{status:y.status,headers:nO(y.headers),body:P}}};function eO(e,t){return oO(e)?{body:void 0,extraHeaders:{},isStream:!1}:iO(e)?{body:e,extraHeaders:e.getHeaders(),isStream:!0}:typeof e=="string"||Buffer.isBuffer(e)||e instanceof URLSearchParams||e instanceof ArrayBuffer||typeof FormData<"u"&&e instanceof FormData||typeof Blob<"u"&&e instanceof Blob?{body:e,extraHeaders:{},isStream:!1}:(t["Content-Type"]??t["content-type"]??"").includes("application/x-www-form-urlencoded")?{body:new URLSearchParams(e).toString(),extraHeaders:{},isStream:!1}:{body:JSON.stringify(e),extraHeaders:{},isStream:!1}}i(eO,"serializeBody");async function Vd(e,t){switch(t){case"arraybuffer":return Buffer.from(await e.arrayBuffer());case"blob":return await e.blob();case"text":return await e.text();case"json":default:{let r=await e.text();if(r.length===0)return;try{return JSON.parse(r)}catch{return r}}}}i(Vd,"parseResponseBody");async function tO(e,t){let r;for(let n=0;n<=t;n++)try{let o=await e();if(o.status>=500&&n<t){await Hd(n);continue}return o}catch(o){if(r=o,n<t){await Hd(n);continue}throw o}throw r}i(tO,"sendWithRetries");function Hd(e){let t=Math.min(1e3*2**e,3e4);return new Promise(r=>setTimeout(r,t))}i(Hd,"backoff");function rO(e){let t={};for(let[r,n]of Object.entries(e))n!==void 0&&(t[r]=Array.isArray(n)?n.join(", "):n);return t}i(rO,"normalizeHeaders");function nO(e){let t={};return e.forEach((r,n)=>{t[n]=r}),t}i(nO,"toHttpHeaders");function iO(e){return typeof e=="object"&&e!==null&&typeof e.getHeaders=="function"&&typeof e.pipe=="function"}i(iO,"isNodeFormData");function oO(e){return e==null}i(oO,"isNil");var Gt=new _o;var Gr=(s=>(s.GET="GET",s.POST="POST",s.PATCH="PATCH",s.PUT="PUT",s.DELETE="DELETE",s.HEAD="HEAD",s))(Gr||{});var ZC=de(require("fs")),Wm=de(au());var WC={"application/json":"json","application/pdf":"pdf","application/xml":"xml","text/xml":"xml","application/zip":"zip","application/gzip":"gz","application/x-tar":"tar","application/octet-stream":"bin","application/msword":"doc","application/vnd.openxmlformats-officedocument.wordprocessingml.document":"docx","application/vnd.ms-excel":"xls","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":"xlsx","application/vnd.ms-powerpoint":"ppt","application/vnd.openxmlformats-officedocument.presentationml.presentation":"pptx","application/rtf":"rtf","application/javascript":"js","application/x-www-form-urlencoded":"bin","text/plain":"txt","text/html":"html","text/css":"css","text/csv":"csv","text/calendar":"ics","text/markdown":"md","image/png":"png","image/jpeg":"jpeg","image/jpg":"jpg","image/gif":"gif","image/webp":"webp","image/svg+xml":"svg","image/bmp":"bmp","image/tiff":"tiff","image/x-icon":"ico","image/vnd.microsoft.icon":"ico","image/heic":"heic","audio/mpeg":"mp3","audio/mp4":"m4a","audio/wav":"wav","audio/x-wav":"wav","audio/ogg":"ogg","audio/webm":"weba","video/mp4":"mp4","video/mpeg":"mpeg","video/webm":"webm","video/quicktime":"mov","video/x-msvideo":"avi","font/woff":"woff","font/woff2":"woff2","font/ttf":"ttf","font/otf":"otf"};function GC(e){let t=e.split(";")[0].trim().toLowerCase();return WC[t]??""}i(GC,"contentTypeToExtension");var KC=i(({baseUrl:e,relativePath:t})=>{let r=e.endsWith("/")?e:`${e}/`,n=t.startsWith("/")?t.slice(1):t;return`${r}${n}`},"joinBaseUrlWithRelativePath"),JC=i((e,t)=>{let r="https://api.example.com";try{let n=t?e(t):void 0;return(n?.endsWith("/")?n.slice(0,-1):n)??r}catch{return r}},"getBaseUrlForDescription");function Gm({auth:e,baseUrl:t,authMapping:r,description:n,displayName:o,name:a,props:s,extraProps:u,authLocation:l="headers"}){return H({audience:"human",name:a||"custom_api_call",displayName:o||"Custom API Call",description:n||"Make a custom API call to a specific endpoint",auth:e,requireAuth:!!e,props:{url:A.DynamicProperties({auth:e,displayName:"",required:!0,refreshers:[],props:i(async({auth:p})=>({url:A.ShortText({displayName:"URL",description:`You can either use the full URL or the relative path to the base URL
|
|
55
|
+
i.e ${JC(t,p)}/resource or /resource`,required:!0,defaultValue:p?t(p):"",...s?.url??{}})}),"props")}),method:A.StaticDropdown({displayName:"Method",required:!0,options:{options:Object.values(Gr).map(p=>({label:p,value:p}))},...s?.method??{}}),headers:A.Object({displayName:"Headers",description:"Authorization headers are injected automatically from your connection.",required:!0,...s?.headers??{}}),queryParams:A.Object({displayName:"Query Parameters",required:!0,...s?.queryParams??{}}),body_type:A.StaticDropdown({displayName:"Body Type",required:!1,defaultValue:"none",options:{disabled:!1,options:[{label:"None",value:"none"},{label:"JSON",value:"json"},{label:"Form Data",value:"form_data"},{label:"Raw",value:"raw"}]}}),body:A.DynamicProperties({auth:e,displayName:"Body",refreshers:["body_type"],required:!1,props:i(async({body_type:p})=>{if(!p)return{};let c=p,m={};switch(c){case"none":break;case"json":m.data=A.Json({displayName:"JSON Body",required:!0,...s?.body??{}});break;case"raw":m.data=A.LongText({displayName:"Raw Body",required:!0});break;case"form_data":m.data=A.Array({displayName:"Form Data",required:!0,properties:{fieldName:A.ShortText({displayName:"Field Name",required:!0}),fieldType:A.StaticDropdown({displayName:"Field Type",required:!0,options:{disabled:!1,options:[{label:"Text",value:"text"},{label:"File",value:"file"}]}}),textFieldValue:A.LongText({displayName:"Text Field Value",required:!1}),fileFieldValue:A.File({displayName:"File Field Value",required:!1})}});break}return m},"props")}),response_is_binary:A.Checkbox({displayName:"Response is Binary ?",description:"Enable for files like PDFs, images, etc.",required:!1,defaultValue:!1}),failsafe:A.Checkbox({displayName:"No Error on Failure",required:!1,...s?.failsafe??{}}),timeout:A.Number({displayName:"Timeout (in seconds)",required:!1,...s?.timeout??{}}),followRedirects:A.Checkbox({displayName:"Follow redirects",required:!1,defaultValue:!1}),...u},run:i(async p=>{let{method:c,url:m,headers:f,queryParams:d,body:h,body_type:x,failsafe:y,timeout:v,response_is_binary:P,followRedirects:w}=p.propsValue;Re(c,"Method"),Re(m,"URL");let I=Wt(r)?{}:await r(p.auth,p.propsValue),N=m.url,D=N.startsWith("http://")||N.startsWith("https://")?N:KC({baseUrl:t(p.auth),relativePath:N}),B={method:c,url:D,headers:{...f??{},...l==="headers"||!Wt(l)?I:{}},queryParams:{...l==="queryParams"?I:{},...d??{}},timeout:v?v*1e3:0,followRedirects:w};if(P&&(B.responseType="arraybuffer"),h)if(x&&x!=="none"){let W=h.data;if(x==="form_data"){let G=W,M=new Wm.default;for(let{fieldName:z,fieldType:L,textFieldValue:ae,fileFieldValue:se}of G)L==="text"&&!hi(ae)?M.append(z,ae):L==="file"&&!hi(se)&&M.append(z,se.data,{filename:se?.filename});B.body=M,B.headers={...B.headers,...M.getHeaders()}}else B.body=W}else x||(B.body=h);try{let W=await Gt.sendRequest(B);return await XC(p.files,W.body,W.status,W.headers,P)}catch(W){if(y)return W.errorMessage();throw W}},"run")})}i(Gm,"createCustomApiCallAction");var XC=i(async(e,t,r,n,o)=>{let a;if(o&&YC(t)){let s=Array.isArray(n?.["content-type"])?n["content-type"][0]:n?.["content-type"],u=GC(s??"")||"txt",l;t instanceof ArrayBuffer?l=Buffer.from(new Uint8Array(t)):Buffer.isBuffer(t)?l=t:l=Buffer.from(t),a=await e.write({fileName:`output.${u}`,data:l})}else a=t;return{status:r,headers:n,body:a}},"handleBinaryResponse"),YC=i(e=>e instanceof ArrayBuffer||Buffer.isBuffer(e),"isBinaryBody");var Km={async validateZod(e,t){let r=S(Object.entries(t).reduce((o,[a,s])=>({...o,[a]:s}),{})),n=await jr(r,e);if(!n.success){let o=n.error.issues.reduce((a,s)=>({...a,[s.path.join(".")]:s.message}),{});throw new Error(JSON.stringify({errors:o},null,2))}}};var xS=de(require("node:crypto"));var su=gn.OAuth2({description:"Authenticate via a Slack OAuth flow.",authUrl:"https://slack.com/oauth/v2/authorize?user_scope=search:read,users.profile:write,reactions:read,reactions:write,im:history,stars:read,channels:write,groups:write,im:write,mpim:write,channels:write.invites,groups:write.invites,channels:history,groups:history,chat:write,users:read,usergroups:write",tokenUrl:"https://slack.com/api/oauth.v2.access",required:!0,scope:["channels:read","channels:manage","channels:history","chat:write","groups:read","groups:write","groups:history","reactions:read","mpim:read","mpim:write","mpim:history","im:write","im:read","im:history","users:read","files:write","files:read","users:read.email","reactions:write","usergroups:read","usergroups:write","chat:write.customize","links:read","links:write","emoji:read","users.profile:read","channels:write.invites","groups:write.invites","channels:join","conversations.connect:write"]}),QC=gn.CustomAuth({displayName:"Bot Token",description:"Authenticate using a Slack bot token (and optional user token).",required:!0,props:{botToken:gn.SecretText({displayName:"Bot Token",description:"The bot token for your Slack app (starts with xoxb-)",required:!0}),userToken:gn.SecretText({displayName:"User Token",description:"Optional user token for actions that require user-level access (starts with xoxp-)",required:!1})},validate:i(async({auth:e})=>{try{let t=await Gt.sendRequest({method:"GET",url:"https://slack.com/api/auth.test",headers:{Authorization:`Bearer ${e.botToken}`}});return t.body.ok?{valid:!0}:{valid:!1,error:`Slack auth test failed: ${t.body.error}`}}catch(t){return{valid:!1,error:t.message}}},"validate")}),R=[su,QC];var la=de(we());function ua(e){return e.type==="CUSTOM_AUTH"}i(ua,"isCustomAuth");function q(e){let t=e;return ua(t)?t.props.botToken:t.access_token}i(q,"getBotToken");function hl(e){let t=e;return ua(t)?t.props.userToken||void 0:t.data?.authed_user?.access_token}i(hl,"getUserToken");function kt(e){let t=hl(e);if(!t)throw new Error(JSON.stringify({message:"Missing user token, please re-authenticate"}));return t}i(kt,"requireUserToken");async function Ee(e){let t=e;if(!ua(t))return t.data.team_id??t.data.team.id;let r=await Gt.sendRequest({method:"GET",url:"https://slack.com/api/auth.test",headers:{Authorization:`Bearer ${t.props.botToken}`}});if(!r.body.ok)throw new Error("Failed to get team ID from Slack auth.test");return r.body.team_id}i(Ee,"getTeamId");async function Dn(e){let t=e;if(!ua(t)){let n=t.data.authed_user?.id;if(!n)throw new Error("Failed to get user ID from Slack auth data");return n}let r=await Gt.sendRequest({method:"GET",url:"https://slack.com/api/auth.test",headers:{Authorization:`Bearer ${t.props.botToken}`}});if(!r.body.ok)throw new Error("Failed to get user ID from Slack auth.test");return r.body.user_id}i(Dn,"getUserId");var jv=`
|
|
56
|
+
Please make sure add the bot to the channel by following these steps:
|
|
57
|
+
1. Type /invite in the channel's chat.
|
|
58
|
+
2. Click on Add apps to this channel.
|
|
59
|
+
3. Search for and add the bot.
|
|
60
|
+
`,Ur=A.MarkDown({value:jv+"\n**Note**: If you can't find the channel in the dropdown list (which fetches up to 2000 channels), please click on the **(F)** and type the channel ID directly in an array like this: `{`{ ['your_channel_id_1', 'your_channel_id_2', ...] `}`}"}),He=A.MarkDown({value:jv+`
|
|
61
|
+
**Note**: If you can't find the channel in the dropdown list (which fetches up to 2000 channels), please click on the **(F)** and type the channel ID directly.
|
|
62
|
+
`}),Ie=i(e=>A.Dropdown({auth:R,displayName:"Channel",description:"You can get the Channel ID by right-clicking on the channel and selecting 'View Channel Details.'",required:e,refreshers:[],async options({auth:t}){if(!t)return{disabled:!0,placeholder:"connect slack account",options:[]};let r=q(t);return{disabled:!1,placeholder:"Select channel",options:await _r(r)}}}),"slackChannel"),qt=A.ShortText({displayName:"Username",description:"The username of the bot",required:!1}),Ft=A.ShortText({displayName:"Profile Picture",description:"The profile picture of the bot",required:!1}),ca=A.ShortText({displayName:"Icon Emoji",description:"The icon emoji of the bot",required:!1}),pa=A.ShortText({displayName:"Reply to Thread (Thread Message Link/Timestamp)",description:"Provide the ts (timestamp) or link value of the **parent** message to make this message a reply. Do not use the ts value of the reply itself; use its parent instead. For example `1710304378.475129`.Alternatively, you can easily obtain the message link by clicking on the three dots next to the parent message and selecting the `Copy link` option.",required:!1}),Tt=A.Checkbox({displayName:"Mention flow of origin?",description:"If checked, adds a mention at the end of the Slack message to indicate which flow sent the notification, with a link to said flow.",required:!1,defaultValue:!1}),Nn=A.Json({displayName:"Block Kit blocks",description:"See https://api.slack.com/block-kit for specs",required:!1,defaultValue:[]}),ut=i(e=>A.Dropdown({auth:R,displayName:"User",required:e,refreshers:[],async options({auth:t}){if(!t)return{disabled:!0,placeholder:"connect slack account",options:[]};let r=q(t);return{disabled:!1,placeholder:"Select User",options:await Zv(r)}}}),"userId"),Vv=A.MultiSelectDropdown({auth:R,displayName:"Users",required:!1,refreshers:[],async options({auth:e}){if(!e)return{disabled:!0,placeholder:"connect slack account",options:[]};let t=q(e);return{disabled:!1,placeholder:"Select Users",options:await Zv(t)}}}),Hv=A.MultiSelectDropdown({auth:R,displayName:"User Groups",required:!1,refreshers:[],async options({auth:e}){if(!e)return{disabled:!0,placeholder:"connect slack account",options:[]};let t=q(e);return{disabled:!1,placeholder:"Select User Groups",options:((await new la.WebClient(t).usergroups.list()).usergroups??[]).filter(a=>!a.date_delete).map(a=>({label:a.handle||a.name||"",value:a.id||""}))}}}),Bt=A.LongText({displayName:"Message",required:!0}),da=A.Array({displayName:"Action Buttons",required:!0,properties:{label:A.ShortText({displayName:"Label",required:!0}),style:A.StaticDropdown({displayName:"Style",required:!1,defaultValue:null,options:{options:[{label:"Default",value:null},{label:"Primary",value:"primary"},{label:"Danger",value:"danger"}]}})}});async function Zv(e){let t=new la.WebClient(e),r=[];for await(let n of t.paginate("users.list",{limit:1e3})){let o=n;o.members&&r.push(...o.members.filter(a=>!a.deleted).map(a=>({label:a.name||"",value:a.id||""})))}return r}i(Zv,"getUsers");async function _r(e){let t=new la.WebClient(e),r=[],n=2e3,o;do{let a=await t.conversations.list({types:"public_channel,private_channel",exclude_archived:!0,limit:1e3,cursor:o});a.channels&&r.push(...a.channels.map(s=>({label:s.name||"",value:s.id||""}))),o=a.response_metadata?.next_cursor}while(o&&r.length<n);return r}i(_r,"getChannels");var Wv=de(we());var qi=3e3;function St(e){if(e.length<=qi)return[{type:"section",text:{type:"mrkdwn",text:e}}];let t=[],r=e;for(;r.length>0;){if(r.length<=qi){t.push({type:"section",text:{type:"mrkdwn",text:r}});break}let n=r.lastIndexOf(`
|
|
63
|
+
`,qi);n<=0&&(n=r.lastIndexOf(" ",qi)),n<=0&&(n=qi),t.push({type:"section",text:{type:"mrkdwn",text:r.substring(0,n)}}),r=r.substring(n).trimStart()}return t}i(St,"textToSectionBlocks");function jt(e){return{type:"context",elements:[{type:"mrkdwn",text:`Message sent by <${new URL(e.server.publicUrl).origin}/projects/${e.project.id}/flows/${e.flows.current.id}|this flow>.`}]}}i(jt,"buildFlowOriginContextBlock");var nr=i(async({text:e,conversationId:t,username:r,profilePicture:n,iconEmoji:o,blocks:a,threadTs:s,token:u,file:l,replyBroadcast:p,unfurlLinks:c})=>{let m=new Wv.WebClient(u);if(l)return await m.files.uploadV2({channel_id:t,initial_comment:e,thread_ts:s,file_uploads:[{file:l.data,filename:l.filename}]});{let f={text:e,channel:t,username:r,icon_url:n,icon_emoji:o,blocks:a,thread_ts:s};return p&&(f.reply_broadcast=p),c===!1&&(f.unfurl_links=!1),await m.chat.postMessage(f)}},"slackSendMessage");function At(e){let t=/\/p(\d+)(\d{6})$/,r=e.match(t);if(r)return`${r[1]}.${r[2]}`;let n=/^(\d+)\.(\d{6})$/;if(e.match(n))return e}i(At,"processMessageTimestamp");function fa(e,t,r){if(!t)return null;let n=new RegExp(`<@${t}>\\s+(.+)`,"s"),o=e.match(n);if(!o)return null;let s=o[1].trim().split(/\s+/),u=s[0].toLowerCase(),l=s.slice(1);return r.includes(u)?{command:u,args:l}:null}i(fa,"parseCommand");var ma=i(async(e,t)=>{let{actions:r}=t.propsValue;if(Re(r,"actions"),!r.length)throw new Error("Must have at least one button action");let n=r.map(({label:o,style:a})=>{if(!o)throw new Error("Button text for the action cannot be empty");return{label:o,style:a,actionId:encodeURI(o)}});if(t.executionType==="BEGIN"){let o=await t.run.createWaitpoint({type:"WEBHOOK"}),a=q(t.auth),{text:s,username:u,profilePicture:l,replyBroadcast:p}=t.propsValue;Re(a,"token"),Re(s,"text");let c=n.map(f=>{let d=o.buildResumeUrl({queryParams:{action:f.actionId}});return{type:"button",text:{type:"plain_text",text:f.label},...f.style&&{style:f.style},value:d,action_id:f.actionId}}),m=await nr({token:a,text:`${t.propsValue.text}`,username:u,profilePicture:l,threadTs:t.propsValue.threadTs?At(t.propsValue.threadTs):void 0,replyBroadcast:p,blocks:[...St(`${t.propsValue.text}`),{type:"actions",block_id:"actions",elements:c},...t.propsValue.mentionOriginFlow?[jt(t)]:[]],conversationId:e});return t.run.waitForWaitpoint(o.id),{action:n.at(0)||"N/A",payload:{type:"action_blocks",user:{id:m.message?.user,username:"user.name",name:"john.smith",team_id:m.message?.team},container:{type:"message",message_ts:m.ts,channel_id:m.channel,is_ephemeral:!1},trigger_id:"trigger_id",team:{id:m.message?.team,domain:"team_name"},channel:{id:m.channel,name:"#channel"},message:m.message,state:{},actions:[{action_id:"action_id",block_id:"actions",value:"resume_url",style:"primary",type:"button",action_ts:"action_ts"}]}}}else{let o=t.resumePayload.queryParams;return{action:decodeURI(o.action),payload:t.resumePayload.body}}},"requestAction");var Gv=H({auth:R,name:"request_action_direct_message",displayName:"Request Action from A User",description:"Send a message to a user and wait until the user selects an action",audience:"both",aiMetadata:{description:"Send a direct message with interactive buttons to a user and pause the flow until that user clicks one of the defined actions, then resume with their choice. Use this for a human-in-the-loop decision via DM; use Request Approval in a Channel for a simple approve/disapprove gate in a channel. Sends a new message each run, so it is not idempotent.",idempotent:!1},props:{userId:ut(!0),text:Bt,actions:da,username:qt,profilePicture:Ft,mentionOriginFlow:Tt},async run(e){let{userId:t}=e.propsValue;return Re(t,"userId"),await ma(t,e)}});var Kv=H({auth:R,name:"request_action_message",displayName:"Request Action in A Channel",description:"Send a message in a channel and wait until an action is selected",audience:"both",aiMetadata:{description:"Post a message with interactive action buttons to a Slack channel and pause the flow until a recipient clicks one, then resume with the chosen action. Pick this for human-in-the-loop branching in a shared channel; use Request Approval from A User for a private approve/disapprove DM. Not idempotent: each run posts a new message and creates a fresh wait.",idempotent:!1},props:{info:He,channel:Ie(!0),text:Bt,actions:da,threadTs:pa,username:qt,profilePicture:Ft,replyBroadcast:A.Checkbox({displayName:"Broadcast reply to channel",description:"When replying to a thread, also make the message visible to everyone in the channel (only applicable when Thread Timestamp is provided)",required:!1,defaultValue:!1}),mentionOriginFlow:Tt},async run(e){let{channel:t}=e.propsValue;return Re(t,"channel"),await ma(t,e)}});var gl=de(we());var Jv=H({auth:R,name:"request_approval_direct_message",displayName:"Request Approval from A User",description:"Send approval message to a user and then wait until the message is approved or disapproved",audience:"both",aiMetadata:{description:"Direct-message one Slack user an approval request with Approve/Disapprove buttons and pause the flow until they respond. Pick this for a private one-to-one approval gate; use Request Action in A Channel to ask a whole channel. Not idempotent: each run sends a new DM and creates a fresh wait.",idempotent:!1},props:{userId:ut(!0),text:Bt,username:qt,profilePicture:Ft,mentionOriginFlow:Tt},async run(e){if(e.executionType==="BEGIN"){let t=q(e.auth),{userId:r,username:n,profilePicture:o,mentionOriginFlow:a}=e.propsValue;Re(t,"token"),Re(Bt,"text"),Re(r,"userId");let s=await e.run.createWaitpoint({type:"WEBHOOK"}),u=await nr({token:t,text:`${e.propsValue.text}`,username:n,profilePicture:o,conversationId:r}),l=u.channel,p=u.ts,c=s.buildResumeUrl({queryParams:{action:"approve",channel:l,messageTs:p}}),m=s.buildResumeUrl({queryParams:{action:"disapprove",channel:l,messageTs:p}});return await new gl.WebClient(t).chat.update({ts:p,channel:l,text:e.propsValue.text,blocks:[...St(`${e.propsValue.text}`),{type:"actions",block_id:"actions",elements:[{type:"button",text:{type:"plain_text",text:"Approve"},style:"primary",value:c,action_id:"approve"},{type:"button",text:{type:"plain_text",text:"Disapprove"},style:"danger",value:m,action_id:"disapprove"}]},...a?[jt(e)]:[]]}),e.run.waitForWaitpoint(s.id),{approved:!1,messageTs:p}}else{let t=e.resumePayload.queryParams.action==="approve",r=e.resumePayload.queryParams.channel,n=e.resumePayload.queryParams.messageTs,o=q(e.auth);try{if(o&&r&&n){let a=new gl.WebClient(o),s=t?"Approved":"Disapproved";await a.chat.update({channel:r,ts:n,text:`${e.propsValue.text}
|
|
64
|
+
|
|
65
|
+
${s}`,blocks:[...St(`${e.propsValue.text}`),{type:"section",text:{type:"mrkdwn",text:t?":white_check_mark: *Approved*":":x: *Disapproved*"}}]})}}catch{}return{approved:t,messageTs:n}}}});var yl=de(we());var Xv=H({auth:R,name:"request_approval_message",displayName:"Request Approval in a Channel",description:"Send approval message to a channel and then wait until the message is approved or disapproved",audience:"both",aiMetadata:{description:"Post a message with Approve/Disapprove buttons to a channel and pause the flow until someone clicks one, then resume with the boolean outcome. Use this for a simple approval gate visible to a channel; use Request Action from A User for a private DM with custom action choices. Posts a new message each run, so it is not idempotent.",idempotent:!1},props:{info:He,channel:Ie(!0),text:Bt,username:qt,profilePicture:Ft,mentionOriginFlow:Tt},async run(e){if(e.executionType==="BEGIN"){let t=q(e.auth),{channel:r,username:n,profilePicture:o,mentionOriginFlow:a}=e.propsValue;Re(t,"token"),Re(Bt,"text"),Re(r,"channel");let s=await e.run.createWaitpoint({type:"WEBHOOK"}),l=(await nr({token:t,text:`${e.propsValue.text}`,username:n,profilePicture:o,conversationId:r})).ts,p=s.buildResumeUrl({queryParams:{action:"approve",channel:r,messageTs:l}}),c=s.buildResumeUrl({queryParams:{action:"disapprove",channel:r,messageTs:l}});return await new yl.WebClient(t).chat.update({channel:r,ts:l,text:e.propsValue.text,blocks:[...St(`${e.propsValue.text}`),{type:"actions",block_id:"actions",elements:[{type:"button",text:{type:"plain_text",text:"Approve"},style:"primary",value:p,action_id:"approve"},{type:"button",text:{type:"plain_text",text:"Disapprove"},style:"danger",value:c,action_id:"disapprove"}]},...a?[jt(e)]:[]]}),e.run.waitForWaitpoint(s.id),{approved:!1,messageTs:l}}else{let t=e.resumePayload.queryParams.action==="approve",r=e.resumePayload.queryParams.channel,n=e.resumePayload.queryParams.messageTs,o=q(e.auth);try{if(o&&r&&n){let a=new yl.WebClient(o),s=t?"Approved":"Disapproved";await a.chat.update({channel:r,ts:n,text:`${e.propsValue.text}
|
|
66
|
+
|
|
67
|
+
${s}`,blocks:[...St(`${e.propsValue.text}`),{type:"section",text:{type:"mrkdwn",text:t?":white_check_mark: *Approved*":":x: *Disapproved*"}}]})}}catch{}return{approved:t,messageTs:n}}}});var Yv=H({auth:R,name:"send_direct_message",displayName:"Send Message To A User",description:"Send message to a user",audience:"both",aiMetadata:{description:"Send a direct message to a single user by user ID, with optional Block Kit blocks, custom username/icon, and link unfurling. Each call posts a new DM, so it is not idempotent. Use this to message one person privately; use Send Message To A Channel to post in a channel.",idempotent:!1},props:{userId:ut(!0),text:Bt,username:qt,profilePicture:Ft,iconEmoji:ca,mentionOriginFlow:Tt,blocks:Nn,unfurlLinks:A.Checkbox({displayName:"Unfurl Links",description:"Enable link unfurling for this message",required:!1,defaultValue:!0})},async run(e){let t=q(e.auth),{text:r,userId:n,blocks:o,unfurlLinks:a,mentionOriginFlow:s}=e.propsValue;Re(t,"token"),Re(r,"text"),Re(n,"userId");let u=[...St(r)];return o&&Array.isArray(o)&&u.push(...o),s&&u.push(jt(e)),nr({token:t,text:r,username:e.propsValue.username,profilePicture:e.propsValue.profilePicture,iconEmoji:e.propsValue.iconEmoji,conversationId:n,blocks:u,unfurlLinks:a})}});var Qv=H({auth:R,name:"send_channel_message",displayName:"Send Message To A Channel",description:"Send message to a channel",audience:"both",aiMetadata:{description:"Post a message to a channel, with optional Block Kit blocks, file attachment, custom username/icon, and link unfurling; can post as the bot or as the authenticated user. Provide a thread timestamp to reply within a thread (and optionally broadcast that reply to the channel). Each call posts a new message, so it is not idempotent; requires either message text or blocks. Use Send Message To A User for a private DM.",idempotent:!1},props:{info:He,channel:Ie(!0),text:A.LongText({displayName:"Message",description:"The text of your message. When using Block Kit blocks, this is used as a fallback for notifications.",required:!1}),sendAsBot:A.Checkbox({displayName:"Send as a bot?",required:!0,defaultValue:!0}),threadTs:pa,username:qt,profilePicture:Ft,iconEmoji:ca,file:A.File({displayName:"Attachment",required:!1}),replyBroadcast:A.Checkbox({displayName:"Broadcast reply to channel",description:"When replying to a thread, also make the message visible to everyone in the channel (only applicable when Thread Timestamp is provided)",required:!1,defaultValue:!1}),mentionOriginFlow:Tt,unfurlLinks:A.Checkbox({displayName:"Unfurl Links",description:"Enable link unfurling for this message",required:!1,defaultValue:!0}),blocks:Nn},async run(e){let{text:t,channel:r,sendAsBot:n,username:o,profilePicture:a,iconEmoji:s,threadTs:u,file:l,mentionOriginFlow:p,blocks:c,replyBroadcast:m,unfurlLinks:f}=e.propsValue,d=n?q(e.auth):kt(e.auth);if(!t&&(!c||!Array.isArray(c)||c.length===0))throw new Error("Either Message or Block Kit blocks must be provided");let h=[];return t&&h.push(...St(t)),c&&Array.isArray(c)&&c.length>0&&h.push(...c),p&&h.push(jt(e)),nr({token:d,text:t||void 0,username:o,profilePicture:a,iconEmoji:s,conversationId:r,threadTs:u?At(u):void 0,file:l,blocks:h.length>0?h:void 0,replyBroadcast:m,unfurlLinks:f})}});var ex=Pe({auth:R,name:"new_reaction_added",displayName:"New Reaction",description:"Triggers when a new reaction is added to a message",aiMetadata:{description:"Fires when an emoji reaction is added to a message in the Slack workspace. Can be optionally filtered to specific emojis, a specific user, or specific channels. The event payload identifies the user who added the reaction, the emoji name, and the message item it was added to."},props:{info:Ur,emojis:A.Array({displayName:"Emojis (E.g fire, smile)",description:"Select emojis to trigger on",required:!1}),user:ut(!1),channels:A.MultiSelectDropdown({auth:R,displayName:"Channels",description:"If no channel is selected, the flow will be triggered for reactions in all channels the app has access to",required:!1,refreshers:[],async options({auth:e}){if(!e)return{disabled:!0,placeholder:"connect slack account",options:[]};let t=q(e);return{disabled:!1,placeholder:"Select channels",options:await _r(t)}}})},type:"APP_WEBHOOK",sampleData:void 0,onEnable:i(async e=>{let t=await Ee(e.auth);e.app.createListeners({events:["reaction_added"],identifierValue:t})},"onEnable"),onDisable:i(async e=>{},"onDisable"),run:i(async e=>{let t=e.payload.body,r=e.propsValue.channels??[],n=e.propsValue.emojis??[];return e.propsValue.user&&t.event.user!==e.propsValue.user?[]:n.length>0&&!n.includes(t.event.reaction)?[]:r.length>0&&!r.includes(t.event.item.channel)?[]:[t.event]},"run")});var tx=Pe({auth:R,name:"new_reaction_removed",displayName:"Reaction Removed",description:"Triggers when a reaction is removed from a message",aiMetadata:{description:"Fires when an emoji reaction is removed from a message in the Slack workspace. Can be optionally filtered to specific emojis, a specific user, or specific channels. The event payload identifies the user who removed the reaction, the emoji name, and the message item it was removed from."},props:{info:Ur,emojis:A.Array({displayName:"Emojis (E.g fire, smile)",description:"Select emojis to trigger on",required:!1}),user:ut(!1),channels:A.MultiSelectDropdown({auth:R,displayName:"Channels",description:"If no channel is selected, the flow will be triggered for reactions removed in all channels the app has access to",required:!1,refreshers:[],async options({auth:e}){if(!e)return{disabled:!0,placeholder:"connect slack account",options:[]};let t=q(e);return{disabled:!1,placeholder:"Select channels",options:await _r(t)}}})},type:"APP_WEBHOOK",sampleData:void 0,onEnable:i(async e=>{let t=await Ee(e.auth);e.app.createListeners({events:["reaction_removed"],identifierValue:t})},"onEnable"),onDisable:i(async e=>{},"onDisable"),run:i(async e=>{let t=e.payload.body,r=e.propsValue.channels??[],n=e.propsValue.emojis??[];return e.propsValue.user&&t.event.user!==e.propsValue.user?[]:n.length>0&&!n.includes(t.event.reaction)?[]:r.length>0&&!r.includes(t.event.item.channel)?[]:[t.event]},"run")});var rx=de(we());var nx=H({auth:R,name:"uploadFile",displayName:"Upload file",description:"Upload file without sharing it to a channel or user",audience:"both",aiMetadata:{description:"Upload a file to Slack, optionally sharing it into a channel and setting a title and filename. Each call creates a new file, so it is not idempotent. To attach a file inline with a message instead, use the attachment option on Send Message To A Channel.",idempotent:!1},props:{file:A.File({displayName:"Attachment",required:!0}),title:A.ShortText({displayName:"Title",required:!1}),filename:A.ShortText({displayName:"Filename",required:!1}),channel:Ie(!1)},async run(e){let t=q(e.auth),{file:r,title:n,filename:o,channel:a}=e.propsValue;return await new rx.WebClient(t).files.uploadV2({file_uploads:[{file:r.data,filename:o||r.filename}],title:n,channel_id:a})}});var ix=de(we());var ox=H({name:"searchMessages",displayName:"Search messages",description:"Searches for messages matching a query",audience:"both",aiMetadata:{description:"Search across the workspace for messages matching a query string and return all matching messages, paging through every result; read-only and repeatable. Requires a user token (search is not available to bot tokens). Use this to find messages anywhere by content; use Get channel history or Get Message by Timestamp when you already know the channel.",idempotent:!0},auth:R,props:{query:A.ShortText({displayName:"Search query",required:!0})},async run({auth:e,propsValue:t}){let r=kt(e),n=new ix.WebClient(r),o=[],a="*";do{let s=await n.search.messages({query:t.query,count:100,cursor:a});s.messages?.matches&&o.push(...s.messages.matches),a=s.messages?.pagination?.next_cursor}while(a);return o}});var ax=de(we());var sx=H({name:"updateMessage",displayName:"Update message",description:"Update an existing message",audience:"both",aiMetadata:{description:"Edit an already-posted Slack message in place, replacing its text and blocks, identified by channel and message timestamp (ts). Pick this to revise content the flow previously sent rather than posting a new one; use Delete Message to remove it instead. Idempotent: re-running with the same inputs leaves the message in the same final state.",idempotent:!0},auth:R,props:{info:He,channel:Ie(!0),ts:A.ShortText({displayName:"Message Timestamp",description:"Please provide the timestamp of the message you wish to update, such as `1710304378.475129`. Alternatively, you can easily obtain the message link by clicking on the three dots next to the message and selecting the `Copy link` option.",required:!0}),text:A.LongText({displayName:"Message",description:"The updated text of your message",required:!0}),mentionOriginFlow:Tt,blocks:Nn},async run(e){let{auth:t,propsValue:r}=e,n=At(r.ts);if(!n)throw new Error("Invalid Timestamp Value.");let o=new ax.WebClient(q(t)),a=[...St(r.text)];return r.blocks&&Array.isArray(r.blocks)&&r.blocks.length>0&&a.push(...r.blocks),r.mentionOriginFlow&&a.push(jt(e)),await o.chat.update({channel:r.channel,ts:n,text:r.text,blocks:a})}});var ux=de(we());var lx=H({auth:R,name:"slack-find-user-by-email",displayName:"Find User by Email",description:"Finds a user by matching against their email address.",audience:"both",aiMetadata:{description:"Look up a single Slack user by their exact email address, returning their profile and user ID. Pick this to resolve an email into a Slack user ID before messaging or referencing that user. Read-only and idempotent; errors if no workspace member matches the email.",idempotent:!0},props:{email:A.ShortText({displayName:"Email",required:!0})},async run({auth:e,propsValue:t}){let r=t.email;return await new ux.WebClient(q(e)).users.lookupByEmail({email:r})}});var cx=de(we());var px=H({auth:R,name:"slack-update-profile",displayName:"Update Profile",description:"Update basic profile field such as name or title.",audience:"both",aiMetadata:{description:"Update basic profile fields (first name, last name, email) for the authenticated user, or for another user when an admin specifies a user ID; requires a user token. Setting the same values again is idempotent. Note that changing the email triggers Slack notification emails to both addresses, and editing another user is admin-only on paid teams.",idempotent:!0},props:{firstName:A.ShortText({displayName:"First Name",required:!1}),lastName:A.ShortText({displayName:"Last Name",required:!1}),email:A.ShortText({displayName:"Email",description:"Changing a user's email address will send an email to both the old and new addresses, and also post a slackbot message to the user informing them of the change.",required:!1}),userId:A.ShortText({displayName:"User",description:"ID of user to change. This argument may only be specified by admins on paid teams.You can use **Find User by Email** action to retrieve ID.",required:!1})},async run({auth:e,propsValue:t}){return new cx.WebClient(kt(e)).users.profile.set({profile:{first_name:t.firstName,last_name:t.lastName,email:t.email},user:t.userId})}});var dx=de(we());var fx=H({auth:R,name:"slack-create-channel",displayName:"Create Channel",description:"Creates a new channel.",audience:"both",aiMetadata:{description:"Create a new public or private channel with the given name. Not idempotent: calling again with a name that already exists fails with a name-taken error rather than reusing the existing channel. Channel names are normalized by Slack (lowercased, spaces to hyphens).",idempotent:!1},props:{channelName:A.ShortText({displayName:"Channel Name",required:!0}),isPrivate:A.Checkbox({displayName:"Is Private?",required:!1,defaultValue:!1})},async run({auth:e,propsValue:t}){return await new dx.WebClient(q(e)).conversations.create({name:t.channelName,is_private:t.isPrivate})}});var mx=de(we());var C0={type:"channel_created",channel:{id:"C024BE91L",name:"fun",created:1360782804,creator:"U024BE7LH"}},hx=Pe({auth:R,name:"channel_created",displayName:"Channel created",description:"Triggers when a channel is created",aiMetadata:{description:"Fires when a new public or private channel is created in the connected Slack workspace. The event payload includes the new channel id, name, creation timestamp, and the id of the user who created it."},props:{},type:"APP_WEBHOOK",sampleData:C0,onEnable:i(async e=>{let t=await Ee(e.auth);e.app.createListeners({events:["channel_created"],identifierValue:t})},"onEnable"),onDisable:i(async e=>{},"onDisable"),test:i(async e=>{let r=await new mx.WebClient(q(e.auth)).conversations.list({exclude_archived:!0,limit:10,types:"public_channel,private_channel"});return r.channels?r.channels.map(n=>({type:"channel_created",channel:{id:n.id,name:n.name,created:n.created,creator:n.creator}})):[]},"test"),run:i(async e=>[e.payload.body.event],"run")});var gx=de(we());var yx=H({auth:R,name:"slack-add-reaction-to-message",displayName:"Add Reaction to Message",description:"Add an emoji reaction to a message.",audience:"both",aiMetadata:{description:"Add an emoji reaction to a specific message identified by its channel and timestamp, optionally reacting as the authenticated user instead of the bot. Adding the same reaction twice has no extra effect (Slack returns an already-reacted error), so the end state is stable. Provide the emoji name without colons, e.g. thumbsup.",idempotent:!0},props:{info:He,channel:Ie(!0),ts:A.ShortText({displayName:"Message Timestamp",description:"Please provide the timestamp of the message you wish to react, such as `1710304378.475129`. Alternatively, you can easily obtain the message link by clicking on the three dots next to the message and selecting the `Copy link` option.",required:!0}),reaction:A.ShortText({displayName:"Reaction (emoji) name",required:!0,description:"e.g.`thumbsup`"}),reactAsUser:A.Checkbox({displayName:"React as user?",description:"If enabled, the reaction will be added as the authenticated user instead of the bot.",required:!0,defaultValue:!1})},async run(e){let{channel:t,ts:r,reaction:n,reactAsUser:o}=e.propsValue,a=o?kt(e.auth):q(e.auth),s=new gx.WebClient(a),u=At(r);if(u)return await s.reactions.add({channel:t,timestamp:u,name:n});throw new Error("Invalid Timestamp Value.")}});var vx=de(we());var xx=H({name:"getChannelHistory",auth:R,displayName:"Get channel history",description:'Retrieve all messages from a specific channel ("conversation") between specified timestamps',audience:"both",aiMetadata:{description:"Retrieve top-level messages from a known channel, paging through the full range and optionally bounded by oldest/latest timestamps; read-only and repeatable. Use this to read a channel you already have the ID for; use Search messages to find messages by content across the workspace, or Retrieve Thread Messages to read replies within a thread.",idempotent:!0},props:{info:He,channel:Ie(!0),oldest:A.Number({displayName:"Oldest",description:"Only messages after this timestamp will be included in results",required:!1}),latest:A.Number({displayName:"Latest",description:"Only messages before this timestamp will be included in results. Default is the current time",required:!1}),inclusive:A.Checkbox({displayName:"Inclusive",description:"Include messages with oldest or latest timestamps in results. Ignored unless either timestamp is specified",defaultValue:!1,required:!0}),includeAllMetadata:A.Checkbox({displayName:"Include all metadata",description:"Return all metadata associated with each message",defaultValue:!1,required:!0})},async run({auth:e,propsValue:t}){let r=new vx.WebClient(q(e)),n=[];await r.conversations.history({channel:t.channel});for await(let o of r.paginate("conversations.history",{channel:t.channel,oldest:t.oldest,latest:t.latest,limit:200,include_all_metadata:t.includeAllMetadata,inclusive:t.inclusive})){let a=o;a.messages&&n.push(...a.messages)}return n}});var bx=de(we());var _x=H({auth:R,name:"slack-find-user-by-handle",displayName:"Find User by Handle",description:"Finds a user by matching against their Slack handle.",audience:"both",aiMetadata:{description:"Look up a workspace member by their Slack handle (display name without the leading @) and return that member; read-only and repeatable. Pick this when you only know the handle and need the user object or ID; use Find User by ID when you already have the user ID. Scans the full member list and errors if no exact display-name match is found.",idempotent:!0},props:{handle:A.ShortText({displayName:"Handle",description:"User handle (display name), without the leading @",required:!0})},async run({auth:e,propsValue:t}){let r=t.handle.replace("@",""),n=new bx.WebClient(q(e));for await(let o of n.paginate("users.list",{limit:1e3})){let a=o;if(a.members){let s=a.members.find(u=>u.profile?.display_name===r);if(s)return s}}throw new Error(`Could not find user with handle @${r}`)}});var Px=de(we());var wx=H({auth:R,name:"slack-set-user-status",displayName:"Set User Status",description:"Sets a user's custom status",audience:"both",aiMetadata:{description:"Set the authenticated user's custom status text and optional emoji, optionally with a Unix-timestamp expiration; requires a user token, not a bot token. This overwrites any existing status, so re-running with the same input is idempotent. Status text is capped at 100 characters.",idempotent:!0},props:{text:A.ShortText({displayName:"Text",required:!0}),emoji:A.ShortText({displayName:"Emoji",required:!1,description:"Emoji shortname (standard or custom), e.g. :tada: or :train:"}),expiration:A.Number({displayName:"Expires at",description:"Unix timestamp - if not set, the status will not expire",required:!1})},async run({auth:e,propsValue:t}){return await Km.validateZod(t,{text:_().check(ls(100))}),await new Px.WebClient(kt(e)).users.profile.set({profile:{status_text:t.text,status_emoji:t.emoji,status_expiration:t.expiration}})}});var Ex=Pe({auth:R,name:"new_mention",displayName:"New Mention in Channel",description:"Triggers when a user or user group is mentioned.",aiMetadata:{description:"Fires when a channel or group message @-mentions one of the configured users or user groups. Can be optionally filtered to specific channels, and bot messages can be ignored. When the remove-mention option is enabled, the event payload includes a clean_text field with the mention tokens stripped from the message text; otherwise the raw Slack message event is returned."},props:{info:Ur,users:Vv,usergroups:Hv,channels:A.MultiSelectDropdown({auth:R,displayName:"Channels",description:"If no channel is selected, the flow will be triggered for username mentions in all channels",required:!1,refreshers:[],async options({auth:e}){if(!e)return{disabled:!0,placeholder:"connect slack account",options:[]};let t=q(e);return{disabled:!1,placeholder:"Select channel",options:await _r(t)}}}),ignoreBots:A.Checkbox({displayName:"Ignore Bot Messages ?",required:!0,defaultValue:!1}),removeMention:A.Checkbox({displayName:"Remove Mention from Message",description:"If enabled, provides a clean_text field with the user and user group mentions removed from the message.",required:!0,defaultValue:!1})},type:"APP_WEBHOOK",sampleData:void 0,onEnable:i(async e=>{let t=await Ee(e.auth);e.app.createListeners({events:["message"],identifierValue:t})},"onEnable"),onDisable:i(async e=>{},"onDisable"),run:i(async e=>{let t=e.payload.body,r=e.propsValue.channels??[],n=e.propsValue.users??[],o=e.propsValue.usergroups??[];if(!["channel","group"].includes(t.event.channel_type))return[];if(r.length>0&&!r.includes(t.event.channel))return[];if(e.propsValue.ignoreBots&&t.event.bot_id)return[];let a=t.event.text??"",s=n.some(l=>a.includes(`<@${l}>`)),u=o.some(l=>new RegExp(`<!subteam\\^${l}(\\|[^>]*)?>`).test(a));if(!s&&!u)return[];if(e.propsValue.removeMention){let l=a;for(let p of n)l=l.replace(new RegExp(`<@${p}>`,"g"),"");for(let p of o)l=l.replace(new RegExp(`<!subteam\\^${p}(\\|[^>]*)?>`,"g"),"");return l=l.trim(),[{...t.event,clean_text:l}]}return[t.event]},"run")});var LT=de(UT()),MT=H({name:"markdownToSlackFormat",displayName:"Markdown to Slack format",description:"Convert Markdown-formatted text to Slack's pseudo - markdown syntax",audience:"both",aiMetadata:{description:"Convert standard Markdown into Slack's mrkdwn dialect so links, bold, and lists render correctly in messages; a pure local text transform that needs no auth and is fully repeatable for the same input. Use this to prepare text before sending it through a Slack message action.",idempotent:!0},requireAuth:!1,props:{markdown:A.LongText({displayName:"Markdown text",required:!0})},async run({propsValue:e}){return(0,LT.default)(e.markdown)}});var qT=Pe({auth:R,name:"new_command",displayName:"New Command in Channel",description:"Triggers when a specific command is sent to the bot (e.g., @bot command arg1 arg2)",aiMetadata:{description:'Fires when a channel or group message addressed to the bot contains one of the configured commands (e.g., "@bot help" or "@bot ocr"). Can be optionally filtered to specific channels, and bot messages can be ignored. The event payload includes the original message plus a parsed_command object with the recognized command and its arguments.'},props:{info:Ur,user:ut(!0),commands:A.Array({displayName:"Commands",description:"List of valid commands that the bot should respond to (e.g., help, ocr, remind)",required:!0,defaultValue:["help"]}),channels:A.MultiSelectDropdown({auth:R,displayName:"Channels",description:"If no channel is selected, the flow will be triggered for commands in all channels",required:!1,refreshers:[],async options({auth:e}){if(!e)return{disabled:!0,placeholder:"connect slack account",options:[]};let t=q(e);return{disabled:!1,placeholder:"Select channel",options:await _r(t)}}}),ignoreBots:A.Checkbox({displayName:"Ignore Bot Messages ?",required:!0,defaultValue:!0})},type:"APP_WEBHOOK",sampleData:void 0,onEnable:i(async e=>{let t=await Ee(e.auth);e.app.createListeners({events:["message"],identifierValue:t})},"onEnable"),onDisable:i(async e=>{},"onDisable"),run:i(async e=>{let t=e.payload.body,r=e.propsValue.channels??[],n=e.propsValue.commands??[],o=e.propsValue.user;if(!["channel","group"].includes(t.event.channel_type))return[];if(!(r.length===0||r.includes(t.event.channel)))return[];if(e.propsValue.ignoreBots&&t.event.bot_id)return[];if(o&&t.event.text){let a=fa(t.event.text,o,n);if(a&&n.includes(a.command))return[{...t.event,parsed_command:a}]}return[]},"run")});var FT=de(we());var BT=H({auth:R,name:"get-file",displayName:"Get File",description:"Return information about a given file ID.",audience:"both",aiMetadata:{description:"Look up metadata for a single Slack file by its file ID and download its contents. Pick this when you have a file ID (e.g. from a message trigger payload) and need the file details or bytes. Read-only and idempotent; fails if the file has no accessible download URL.",idempotent:!0},props:{fileId:A.ShortText({displayName:"File ID",required:!0,description:"You can pass the file ID from the New Message Trigger payload."})},async run(e){let t=q(e.auth),n=await new FT.WebClient(t).files.info({file:e.propsValue.fileId}),o=n.file?.url_private_download;if(!o)throw new Error("Unable to find the download URL.");let a=await Gt.sendRequest({method:"GET",url:o,authentication:{type:"BEARER_TOKEN",token:t},responseType:"arraybuffer"});return{...n.file,data:await e.files.write({fileName:n.file?.name||"file",data:Buffer.from(a.body)})}}});var jT=Pe({auth:R,name:"new-message",displayName:"New Public Message Posted Anywhere",description:"Triggers when a new message is posted to any channel.",aiMetadata:{description:"Fires when a new message is posted in any public channel or group the app can access (direct messages are excluded). Bot messages can be optionally ignored. The event payload is the Slack message event, including its channel, text, and sender."},props:{ignoreBots:A.Checkbox({displayName:"Ignore Bot Messages ?",required:!0,defaultValue:!1})},type:"APP_WEBHOOK",sampleData:void 0,onEnable:i(async e=>{let t=await Ee(e.auth);e.app.createListeners({events:["message"],identifierValue:t})},"onEnable"),onDisable:i(async e=>{},"onDisable"),run:i(async e=>{let t=e.payload.body;return["channel","group"].includes(t.event.channel_type)?e.propsValue.ignoreBots&&t.event.bot_id?[]:[t.event]:[]},"run")});var VT=Pe({auth:R,name:"new-message-in-channel",displayName:"New Message Posted to Channel",description:"Triggers when a new message is posted to a specific #channel you choose.",aiMetadata:{description:"Fires when a new message is posted to the specific channel selected in the trigger configuration. Only channel or group messages in the chosen channel fire; bot messages can be optionally ignored. The event payload is the Slack message event, including its channel, text, and sender."},props:{info:He,channel:Ie(!0),ignoreBots:A.Checkbox({displayName:"Ignore Bot Messages ?",required:!0,defaultValue:!1})},type:"APP_WEBHOOK",sampleData:void 0,async onEnable(e){let t=await Ee(e.auth);e.app.createListeners({events:["message"],identifierValue:t})},async onDisable(e){},async run(e){let t=e.payload.body;return["channel","group"].includes(t.event.channel_type)?t.event.channel===e.propsValue.channel?e.propsValue.ignoreBots&&t.event.bot_id?[]:[t.event]:[]:[]}});var HT=Pe({auth:R,name:"new-direct-message",displayName:"New Direct Message",description:"Triggers when a message was posted in a direct message channel.",aiMetadata:{description:"Fires when a new message is posted in a direct message (im) channel with the connected Slack app. Bot messages and the connected user's own messages can be optionally ignored. The event payload is the Slack message event, including its channel, text, and sender."},props:{ignoreBots:A.Checkbox({displayName:"Ignore Bot Messages ?",required:!0,defaultValue:!1}),ignoreSelfMessages:A.Checkbox({displayName:"Ignore Message from Yourself ?",required:!0,defaultValue:!1})},type:"APP_WEBHOOK",sampleData:void 0,onEnable:i(async e=>{let t=await Ee(e.auth);e.app.createListeners({events:["message"],identifierValue:t})},"onEnable"),onDisable:i(async e=>{},"onDisable"),async run(e){let t=e.payload.body,r=await Dn(e.auth);return t.event.channel_type!=="im"?[]:e.propsValue.ignoreBots&&t.event.bot_id||e.propsValue.ignoreSelfMessages&&t.event.user===r?[]:[t.event]}});var ZT=de(we());var WT=H({name:"retrieveThreadMessages",displayName:"Retrieve Thread Messages",description:"Retrieves thread messages by channel and thread timestamp.",audience:"both",aiMetadata:{description:"Retrieve all replies in a thread given the channel and the parent message timestamp; read-only and repeatable. The timestamp must be that of the parent message, not a reply. Use this to read a conversation thread; use Get channel history for top-level channel messages.",idempotent:!0},auth:R,props:{channel:Ie(!0),threadTs:A.ShortText({displayName:"Thread ts",description:"Provide the ts (timestamp) value of the **parent** message to retrieve replies of this message. Do not use the ts value of the reply itself; use its parent instead. For example `1710304378.475129`.Alternatively, you can easily obtain the message link by clicking on the three dots next to the parent message and selecting the `Copy link` option.",required:!0})},async run({auth:e,propsValue:t}){let r=new ZT.WebClient(q(e)),n=At(t.threadTs);if(!n)throw new Error("Invalid Timestamp Value.");return await r.conversations.replies({channel:t.channel,ts:n})}});var GT=Pe({auth:R,name:"new-mention-in-direct-message",displayName:"New Mention in Direct Message",description:"Triggers when a username is mentioned in a direct message channel.",aiMetadata:{description:"Fires when the configured user is @-mentioned in a direct message (im channel). Only messages in DM channels that contain the mention token for the selected user fire; bot messages and the user's own messages can be optionally ignored. The event payload is the Slack message event including its text, channel, and sender."},props:{user:ut(!0),ignoreBots:A.Checkbox({displayName:"Ignore Bot Messages ?",required:!0,defaultValue:!1}),ignoreSelfMessages:A.Checkbox({displayName:"Ignore Message from Yourself ?",required:!0,defaultValue:!1})},type:"APP_WEBHOOK",sampleData:void 0,onEnable:i(async e=>{let t=await Ee(e.auth);e.app.createListeners({events:["message"],identifierValue:t})},"onEnable"),onDisable:i(async e=>{},"onDisable"),async run(e){let t=e.payload.body,r=await Dn(e.auth);return t.event.channel_type!=="im"?[]:e.propsValue.ignoreBots&&t.event.bot_id||e.propsValue.ignoreSelfMessages&&t.event.user===r?[]:e.propsValue.user&&t.event.text?.includes(`<@${e.propsValue.user}>`)?[t.event]:[]}});var KT=Pe({auth:R,name:"new-command-in-direct-message",displayName:"New Command in Direct Message",description:"Triggers when a specific command is sent to the bot (e.g., @bot command arg1 arg2) via Direct Message.",aiMetadata:{description:`Fires when a direct message (im channel) addressed to the bot contains one of the configured commands (e.g., "@bot help" or "@bot remind"). Only messages in DM channels matching the listed commands fire; bot messages and the user's own messages can be optionally ignored. The event payload includes the original message plus a parsed_command object with the recognized command and its arguments.`},props:{user:ut(!0),commands:A.Array({displayName:"Commands",description:"List of valid commands that the bot should respond to (e.g., help, ocr, remind)",required:!0,defaultValue:["help"]}),ignoreBots:A.Checkbox({displayName:"Ignore Bot Messages ?",required:!0,defaultValue:!0}),ignoreSelfMessages:A.Checkbox({displayName:"Ignore Message from Yourself ?",required:!0,defaultValue:!1})},type:"APP_WEBHOOK",sampleData:void 0,onEnable:i(async e=>{let t=await Ee(e.auth);e.app.createListeners({events:["message"],identifierValue:t})},"onEnable"),onDisable:i(async e=>{},"onDisable"),run:i(async e=>{let t=e.payload.body,r=e.propsValue.commands??[],n=e.propsValue.user,o=await Dn(e.auth);if(t.event.channel_type!=="im")return[];if(e.propsValue.ignoreBots&&t.event.bot_id||e.propsValue.ignoreSelfMessages&&t.event.user===o)return[];if(n&&t.event.text){let a=fa(t.event.text,n,r);if(a&&r.includes(a.command))return[{...t.event,parsed_command:a}]}return[]},"run")});var JT=de(we());var XT=H({auth:R,name:"set-channel-topic",displayName:"Set Channel Topic",description:"Sets the topic on a selected channel.",audience:"both",aiMetadata:{description:"Set (overwrite) the topic of a selected channel. Idempotent: re-running with the same topic leaves the channel in the same state. The bot must be a member of the channel.",idempotent:!0},props:{info:He,channel:Ie(!0),topic:A.LongText({displayName:"Topic",required:!0})},async run(e){let{channel:t,topic:r}=e.propsValue;return await new JT.WebClient(q(e.auth)).conversations.setTopic({channel:t,topic:r})}});var YT=de(we());var QT=H({name:"get-message",displayName:"Get Message by Timestamp",description:"Retrieves a specific message from a channel history using the message's timestamp.",audience:"both",aiMetadata:{description:"Fetch a single message from a channel by its exact timestamp; read-only and repeatable. Use this when you already have the message ts and channel; use Get channel history to read a range of messages or Search messages to find one by content.",idempotent:!0},auth:R,props:{info:He,channel:Ie(!0),ts:A.ShortText({displayName:"Message Timestamp",description:"Please provide the timestamp of the message you wish to retrieve, such as `1710304378.475129`. Alternatively, you can easily obtain the message link by clicking on the three dots next to the message and selecting the `Copy link` option.",required:!0})},async run({auth:e,propsValue:t}){let r=At(t.ts);if(!r)throw new Error("Invalid Timestamp Value.");return await new YT.WebClient(q(e)).conversations.history({channel:t.channel,oldest:r,limit:1,inclusive:!0})}});var eS=de(we());var tS=H({auth:R,name:"find-user-by-id",displayName:"Find User by ID",description:"Finds a user by their ID.",audience:"both",aiMetadata:{description:"Fetch a user profile directly by their Slack user ID; read-only and repeatable. Pick this when you already have the user ID (the fastest, exact lookup); use Find User by Handle when you only know the display-name handle.",idempotent:!0},props:{id:A.ShortText({displayName:"ID",required:!0})},async run({auth:e,propsValue:t}){return await new eS.WebClient(q(e)).users.profile.get({user:t.id})}});var nS=de(we());var rS={id:"USLACKBOT",team_id:"T06BTHUEFFF",name:"slackbot",deleted:!1,color:"757575",real_name:"Slackbot",tz:"America/Los_Angeles",tz_label:"Pacific Daylight Time",tz_offset:-25200,profile:{title:"",phone:"",skype:"",real_name:"Slackbot",real_name_normalized:"Slackbot",display_name:"Slackbot",display_name_normalized:"Slackbot",fields:{},status_text:"",status_emoji:"",status_emoji_display_info:[],status_expiration:0,avatar_hash:"sv41d8cd98f0",always_active:!0,first_name:"slackbot",last_name:"",image_24:"https://a.slack-edge.com/80588/img/slackbot_24.png",image_32:"https://a.slack-edge.com/80588/img/slackbot_32.png",image_48:"https://a.slack-edge.com/80588/img/slackbot_48.png",image_72:"https://a.slack-edge.com/80588/img/slackbot_72.png",image_192:"https://a.slack-edge.com/80588/marketing/img/avatars/slackbot/avatar-slackbot.png",image_512:"https://a.slack-edge.com/80588/img/slackbot_512.png",status_text_canonical:"",team:"T06BTHUEFFF"},is_admin:!1,is_owner:!1,is_primary_owner:!1,is_restricted:!1,is_ultra_restricted:!1,is_bot:!1,is_app_user:!1,updated:0,is_email_confirmed:!1,who_can_share_contact_card:"EVERYONE"},iS=Pe({auth:R,name:"new-user",displayName:"New User",description:"Triggers when a new user is created / first joins your org.",aiMetadata:{description:"Fires when a new member joins the Slack workspace (a team_join event). The event payload is the new user object, including their id, name, profile, and account flags."},props:{},type:"APP_WEBHOOK",sampleData:rS,onEnable:i(async e=>{let t=await Ee(e.auth);e.app.createListeners({events:["team_join"],identifierValue:t})},"onEnable"),onDisable:i(async e=>{},"onDisable"),test:i(async e=>{let r=await new nS.WebClient(q(e.auth)).users.list({limit:10});return r.members?r.members:[rS]},"test"),run:i(async e=>{let t=e.payload.body;return t.event.type!=="team_join"?[]:[t.event.user]},"run")});var oS=Pe({auth:R,name:"new-saved-message",displayName:"New Saved Message",description:"Triggers when you save a message.",aiMetadata:{description:"Fires when the connected Slack user saves (stars) a message. Only star_added events whose saved item is a message fire; saving other item types does not trigger. The event payload is the saved item, including its channel and message reference."},props:{},type:"APP_WEBHOOK",sampleData:void 0,onEnable:i(async e=>{let t=await Ee(e.auth);e.app.createListeners({events:["star_added"],identifierValue:t})},"onEnable"),onDisable:i(async e=>{},"onDisable"),run:i(async e=>{let t=e.payload.body;return t.event.type==="star_added"&&t.event.item.type==="message"?[t.event.item]:[]},"run")});var sS=de(we());var aS={id:"heart",image:"https://emoji.slack-edge.com/T06BTHUEFFF/heart/84a171ae62daacc7.jpg"},uS=Pe({auth:R,name:"new-team-custom-emoji",displayName:"New Team Custom Emoji",description:"Triggers when a custom emoji has been added to a team.",aiMetadata:{description:'Fires when a new custom emoji is added to the Slack workspace (an emoji_changed event with the "add" subtype). The event payload includes the emoji id (name) and the image URL of the added emoji.'},props:{},type:"APP_WEBHOOK",sampleData:aS,onEnable:i(async e=>{let t=await Ee(e.auth);e.app.createListeners({events:["emoji_changed"],identifierValue:t})},"onEnable"),onDisable:i(async e=>{},"onDisable"),test:i(async e=>{let r=await new sS.WebClient(q(e.auth)).emoji.list();return r.emoji?Object.entries(r.emoji).map(([n,o])=>({id:n,image:o})):[aS]},"test"),run:i(async e=>{let t=e.payload.body;return t.event.type!=="emoji_changed"&&t.event.subtype!=="add"?[]:[{id:t.event.name,image:t.event.value}]},"run")});var lS=de(we());var cS=H({auth:R,name:"invite-user-to-channel",displayName:"Invite User to Channel",description:"Invites an existing User to an existing channel.",audience:"both",aiMetadata:{description:"Add an existing workspace user to an existing channel as a member. Both the channel and the user must already exist. Effectively idempotent in result since a user already in the channel stays a member, though Slack returns an error if they are already present.",idempotent:!1},props:{info:He,channel:Ie(!0),userId:ut(!0)},async run(e){return await new lS.WebClient(q(e.auth)).conversations.invite({channel:e.propsValue.channel,users:`${e.propsValue.userId}`})}});var pS=de(we());var dS=H({name:"listUsers",displayName:"List users",description:"List all users of the workspace",audience:"both",aiMetadata:{description:"List every member of the workspace, paging through all results, with toggles to include bots and disabled/deactivated users; read-only and repeatable. Use this to enumerate or scan all users; use Find User by ID or Find User by Handle when you already know which single user you want.",idempotent:!0},props:{includeBots:A.Checkbox({displayName:"Include bots?",required:!0,defaultValue:!1}),includeDisabled:A.Checkbox({displayName:"Include disabled users?",required:!0,defaultValue:!1})},auth:R,async run({auth:e,propsValue:t}){let r=new pS.WebClient(q(e)),n=[];for await(let o of r.paginate("users.list",{limit:1e3})){let a=o;a.members&&n.push(...a.members.filter(s=>(t.includeDisabled||!s.deleted)&&(t.includeBots||!s.is_bot)))}return n}});var fS=de(we());var mS=H({name:"delete-message",displayName:"Delete Message",description:"Deletes a specific message from a channel using the message's timestamp.",audience:"both",aiMetadata:{description:"Permanently delete one Slack message from a channel, identified by its timestamp (ts) and channel. Pick this to remove a previously posted message; to instead edit its content use Update Message. Not idempotent in effect though re-deleting an already-gone message errors, and deletion requires a user token with rights to remove that message.",idempotent:!1},auth:R,props:{info:He,channel:Ie(!0),ts:A.ShortText({displayName:"Message Timestamp",description:"Please provide the timestamp of the message you wish to retrieve, such as `1710304378.475129`. Alternatively, you can easily obtain the message link by clicking on the three dots next to the message and selecting the `Copy link` option.",required:!0})},async run({auth:e,propsValue:t}){let r=At(t.ts);if(!r)throw new Error("Invalid Timestamp Value.");let n=kt(e),o=new fS.WebClient(n);if(!(await o.conversations.history({channel:t.channel,oldest:r,limit:1,inclusive:!0})).messages?.[0])throw new Error("No message found for the provided timestamp.");return o.chat.delete({channel:t.channel,ts:r})}});var hS=Pe({auth:R,name:"new-modal-interaction",displayName:"New Modal Interaction",description:"Triggers when a user interacts with a modal.",aiMetadata:{description:"Fires when a user interacts with a Slack modal view, either submitting it (view_submission) or closing it (view_closed) depending on the selected interaction type. The event payload is the Slack interaction payload (with the auth token stripped), including the submitted view, its state values, and the acting user."},props:{interactionType:A.StaticDropdown({displayName:"Interaction Type",description:"Select the type of modal interaction to trigger on.",required:!0,defaultValue:"view_submission",options:{disabled:!1,options:[{label:"View Submission",value:"view_submission"},{label:"View Closed",value:"view_closed"}]}})},type:"APP_WEBHOOK",sampleData:void 0,onEnable:i(async e=>{let t=await Ee(e.auth);e.app.createListeners({events:[e.propsValue.interactionType],identifierValue:t})},"onEnable"),onDisable:i(async e=>{},"onDisable"),run:i(async e=>{let t=e.payload.body,r=JSON.parse(t.payload),n=e.propsValue.interactionType;if(r.type!==n)return[];let{token:o,...a}=r;return[a]},"run")});var zc=de(we());var gS=H({auth:R,name:"update_group_users",displayName:"Update User Group Members",description:"Add users to or overwrite the member list of a Slack user group.",audience:"both",aiMetadata:{description:'Set the membership of a Slack user group, found by its handle, to a given list of user IDs. Defaults to appending the IDs to current members; with "Append" off it replaces the entire member list (clearing it if no IDs are given), which is idempotent. Append mode is not idempotent. Requires a user token and errors if the handle is not found.',idempotent:!1},props:{handle:A.ShortText({displayName:"Group Handle",description:"Group handle without the leading @",required:!0}),userIds:A.Array({displayName:"User IDs",description:"The list of Slack User IDs to update this group with. Leave empty to clear the group (if not appending).",required:!1}),appendUsers:A.Checkbox({displayName:"Append to existing members?",description:"If checked, these users will be added to the current group. If unchecked, the current group members will be completely replaced by these users.",required:!0,defaultValue:!0})},async run(e){let t=e.auth,r=new zc.WebClient(q(t)),n=new zc.WebClient(kt(t)),o=e.propsValue.handle.replace("@","").toLowerCase(),s=(e.propsValue.userIds||[]).filter(d=>d&&d.trim()!==""),u=e.propsValue.appendUsers,p=(await r.usergroups.list({include_users:!0})).usergroups?.find(d=>d.handle&&d.handle.toLowerCase()===o);if(!p||!p.id)throw new Error(`User group with handle '@${o}' not found.`);let c=s;if(u){let d=p.users||[];c=Array.from(new Set([...d,...s]))}let m=c.join(", ");return await n.usergroups.users.update({usergroup:p.id,users:m})}});var yS=de(we());var vS=H({auth:R,name:"get_group_by_handle",displayName:"Get User Group by Handle",description:"Finds a Slack user group by its handle (e.g., @user-group) and returns its details. To mention this group in a message, map the returned ID using the syntax <!subteam^ID>. Read more: https://api.slack.com/reference/surfaces/formatting#mentioning-groups",audience:"both",aiMetadata:{description:"Look up a Slack user group (subteam) by its handle and return the group, including its ID for building an <!subteam^ID> mention; read-only and repeatable. Use this for groups, not individuals (use Find User by Handle/ID for people). Matches case-insensitively on the handle and errors if no group has that handle.",idempotent:!0},props:{handle:A.ShortText({displayName:"Group Handle",description:"Group handle without the leading @",required:!0})},async run(e){let t=q(e.auth),r=new yS.WebClient(t),n=e.propsValue.handle.replace("@","").toLowerCase(),a=(await r.usergroups.list()).usergroups?.find(s=>s.handle&&s.handle.toLowerCase()===n);if(!a)throw new Error(`User group with handle '@${n}' not found.`);return a}});var f4=Ld({displayName:"Slack",description:"Channel-based messaging platform",minimumSupportedRelease:"0.82.0",logoUrl:"https://cdn.activepieces.com/pieces/slack.png",categories:["COMMUNICATION"],auth:R,events:{parseAndReply:i(({payload:e,server:t})=>{if(e.headers["content-type"]==="application/x-www-form-urlencoded"){if(e.body&&typeof e.body=="object"&&"payload"in e.body){let r=JSON.parse(e.body.payload);if(r.type==="block_actions"){let n=r.actions?.[0];n&&n.type==="button"&&n.value?.startsWith(t.publicUrl)&&Gt.sendRequest({url:n.value,method:"POST",body:r})}else if(r.type==="view_submission"||r.type==="view_closed"){let n=r;return{event:n.type,identifierValue:n.team.id}}}return{reply:{headers:{},body:{}}}}else{let r=e.body;return r.challenge?{reply:{body:r.challenge,headers:{}}}:{event:r?.event?.type,identifierValue:r.team_id}}},"parseAndReply"),verify:i(({webhookSecret:e,payload:t})=>{let r=t.headers["x-slack-request-timestamp"],n=t.headers["x-slack-signature"],o=`v0:${r}:${t.rawBody}`,a=xS.default.createHmac("sha256",e);a.update(o);let s=`v0=${a.digest("hex")}`;return n===s},"verify")},authors:["rita-gorokhod","AdamSelene","Abdallah-Alwarawreh","kishanprmr","MoShizzle","AbdulTheActivePiecer","khaledmashaly","abuaboud"],actions:[yx,Yv,Qv,Jv,Xv,Gv,Kv,nx,BT,ox,lx,_x,tS,dS,sx,mS,fx,px,xx,wx,MT,WT,XT,QT,cS,vS,gS,Gm({baseUrl:i(()=>"https://slack.com/api","baseUrl"),auth:R,authMapping:i(async(e,t)=>{let r=e;if(t.useUserToken){let n=hl(r);if(n)return{Authorization:`Bearer ${n}`}}return{Authorization:`Bearer ${q(r)}`}},"authMapping"),extraProps:{useUserToken:A.Checkbox({displayName:"Use user token",description:"Use user token instead of bot token",required:!0,defaultValue:!1})}})],triggers:[jT,VT,HT,Ex,GT,ex,tx,hx,qT,KT,iS,oS,uS,hS]});0&&(module.exports={slack,slackAuth,slackOAuth2Auth});
|
|
68
|
+
/*! Bundled license information:
|
|
69
|
+
|
|
70
|
+
mime-types/index.js:
|
|
71
|
+
(*!
|
|
72
|
+
* mime-types
|
|
73
|
+
* Copyright(c) 2014 Jonathan Ong
|
|
74
|
+
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
75
|
+
* MIT Licensed
|
|
76
|
+
*)
|
|
77
|
+
|
|
78
|
+
axios/dist/node/axios.cjs:
|
|
79
|
+
(*! Axios v1.16.0 Copyright (c) 2026 Matt Zabriskie and contributors *)
|
|
80
|
+
|
|
81
|
+
repeat-string/index.js:
|
|
82
|
+
(*!
|
|
83
|
+
* repeat-string <https://github.com/jonschlinkert/repeat-string>
|
|
84
|
+
*
|
|
85
|
+
* Copyright (c) 2014-2015, Jon Schlinkert.
|
|
86
|
+
* Licensed under the MIT License.
|
|
87
|
+
*)
|
|
88
|
+
|
|
89
|
+
is-buffer/index.js:
|
|
90
|
+
(*!
|
|
91
|
+
* Determine if an object is a Buffer
|
|
92
|
+
*
|
|
93
|
+
* @author Feross Aboukhadijeh <https://feross.org>
|
|
94
|
+
* @license MIT
|
|
95
|
+
*)
|
|
96
|
+
*/
|