Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 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 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 | 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 11x 11x 1x 1x 10x 11x 10x 11x 11x 1x 1x 1x 1x 1x 1x 1x 1x 2x 2x 2x 2x 2x 2x 1x 1x 1x 1x 2x 1x 1x 1x 1x 1x 1x 1x 1x 6x 6x 6x 6x 1x 1x 6x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 6x 6x 6x 6x 6x 6x 6x 6x 6x 6x 6x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 7x 7x 7x 7x 7x 7x 7x 5x 7x 7x 7x 7x 7x 7x 7x 7x 7x 7x 7x 7x 7x 7x 7x 7x 7x 7x 7x 7x 5x 5x 5x 5x 5x 5x 5x 5x 5x 5x 5x 5x 5x 5x 5x 5x 7x 5x 5x 5x 7x 7x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 1x 1x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 2x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 2x 1x 1x 2x 2x 2x 2x 2x 1x 1x 1x 1x 1x 1x 1x 8x 8x 8x 8x 85x 85x 8x 8x 8x 1x 1x 1x 1x 1x 1x 1x 1x 8x 8x 8x 8x 8x 8x 8x 8x 8x 8x 8x 8x 8x 7x 7x 7x 7x 7x 7x 8x 8x 8x 8x 8x 8x 8x 1x 1x 1x 1x 1x 1x 1x 6x 6x 6x 6x 6x 6x 6x 6x 6x 6x 6x 6x 6x 6x 6x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 8x 8x 8x 8x 8x 8x 8x 8x 8x 8x 8x 8x 8x 8x 8x 8x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 4x 4x 4x 4x 4x 4x 4x 4x 4x 4x 4x 4x 4x 4x 4x 4x 4x 4x 4x 4x 4x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 4x 4x 4x 4x 4x 4x 4x 4x 4x 4x 4x 4x 4x 4x 4x 4x 4x 4x 4x 4x 4x 4x 4x 4x 4x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 4x 4x 4x 4x 4x 4x 4x 4x 4x 4x 3x 3x 3x 3x 3x 3x 6x 6x 6x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 4x 4x 4x 4x 4x 4x 4x 4x 4x 1x 1x 1x 1x 1x 1x 1x 1x 1x 4x 4x 4x 4x 4x 4x 4x 4x 4x 1x 1x 1x 1x 1x 1x 1x 1x 1x 4x 4x 4x 4x 4x 4x 4x 4x 4x 1x 1x 1x 1x 1x 1x 1x 1x 1x 4x 1x 1x 1x 1x 1x 1x 1x | import {
SlackConfig,
SlackMessage,
SlackResponse,
SlackNotificationOptions,
SlackWebhookConfig,
SlackWebhookMessage,
SlackBlock,
SlackElement,
SlackField,
SlackAttachment,
SlackAttachmentField,
} from './types'
const DEFAULT_RETRY_CONFIG = {
maxAttempts: 3,
delayMs: 1000,
}
/**
* Provides user-friendly error messages for common Slack API errors.
*
* @param {string | undefined} error - The error code from Slack API.
* @returns {string} A user-friendly error message.
*/
function getSlackErrorMessage(error: string | undefined): string {
if (!error) return 'Unknown error from Slack API'
const errorMessages: Record<string, string> = {
not_in_channel:
'Bot is not in the channel. Add the bot to the channel or use a public channel.',
channel_not_found:
'Channel not found. Verify that the channel name is correct.',
invalid_auth:
'Invalid authentication token. Verify that the token is correct.',
account_inactive: 'Bot account is inactive. Check the bot settings.',
token_revoked: 'Token has been revoked. Generate a new token.',
no_permission:
'Bot does not have permission to send messages to this channel.',
is_archived: 'Channel is archived and cannot receive messages.',
msg_too_long: 'Message too long. Reduce the message size.',
rate_limited: 'Rate limit exceeded. Try again in a few seconds.',
fatal_error: 'Fatal Slack error. Try again later.',
}
return errorMessages[error] || `Slack error: ${error}`
}
/**
* Checks if the bot is a member of the specified channel.
*
* @param {string} channel - The channel name or ID.
* @param {SlackConfig} config - The Slack configuration.
* @returns {Promise<boolean>} True if the bot is in the channel, false otherwise.
*/
async function isBotInChannel(
channel: string,
config: SlackConfig
): Promise<boolean> {
try {
const baseUrl = config.baseUrl || 'https://slack.com/api'
const response = await fetch(`${baseUrl}/conversations.info`, {
method: 'POST',
headers: {
'Content-Type': 'application/json',
Authorization: `Bearer ${config.token}`,
},
body: JSON.stringify({ channel }),
})
if (!response.ok) {
console.warn(
`Failed to check channel membership for ${channel}: HTTP ${response.status}`
)
return false
}
const data = (await response.json()) as {
ok: boolean
channel?: { is_member?: boolean }
error?: string
}
if (!data.ok) {
console.warn(`Slack API error checking channel ${channel}: ${data.error}`)
return false
}
const isMember = data.channel?.is_member === true
/* eslint-disable */console.log(...oo_oo(`2545316166_90_4_90_67_4`,`Bot membership check for ${channel}: ${isMember}`))
return isMember
} catch (error) {
console.warn(`Error checking channel membership for ${channel}:`, error)
return false
}
}
/**
* Validates the Slack configuration.
*
* @param {SlackConfig} config - The Slack configuration.
* @returns {void}
* @throws {Error} If the configuration is invalid.
*/
function validateSlackConfig(config: SlackConfig): void {
if (!config.token) {
throw new Error('Slack token is required')
}
if (typeof config.token !== 'string') {
throw new Error('Slack token must be a string')
}
if (!config.token.startsWith('xoxb-')) {
console.warn(
'Slack token does not appear to be a valid Bot User OAuth Token'
)
}
}
/**
* Validates the Slack webhook configuration.
*
* @param {SlackWebhookConfig} config - The webhook configuration.
* @returns {void}
* @throws {Error} If the configuration is invalid.
*/
function validateWebhookConfig(config: SlackWebhookConfig): void {
if (!config.webhookUrl) {
throw new Error('Slack webhook URL is required')
}
if (typeof config.webhookUrl !== 'string') {
throw new Error('Slack webhook URL must be a string')
}
if (!config.webhookUrl.startsWith('https://hooks.slack.com/')) {
throw new Error(
'Slack webhook URL must start with https://hooks.slack.com/'
)
}
}
/**
* Validates a Slack message.
*
* @param {SlackMessage} message - The message to validate.
* @returns {void}
* @throws {Error} If the message is invalid.
*/
function validateSlackMessage(message: SlackMessage): void {
if (!message.channel) {
throw new Error('Channel is required')
}
if (!message.text && !message.blocks && !message.attachments) {
throw new Error('Message must contain text, blocks, or attachments')
}
}
/**
* Waits for a given number of milliseconds.
*
* @param {number} ms - Number of milliseconds to wait.
* @returns {Promise<void>} Promise that resolves after the delay.
*/
async function delay(ms: number): Promise<void> {
return new Promise((resolve) => setTimeout(resolve, ms))
}
/**
* Executes an operation with retry and exponential backoff.
*
* @param {() => Promise<T>} operation - The operation to execute.
* @param {object} retryConfig - Retry configuration.
* @returns {Promise<T>} Result of the operation.
*/
async function retryWithBackoff<T>(
operation: () => Promise<T>,
retryConfig = DEFAULT_RETRY_CONFIG
): Promise<T> {
let lastError: Error
for (let attempt = 1; attempt <= retryConfig.maxAttempts; attempt++) {
try {
return await operation()
} catch (error) {
lastError = error instanceof Error ? error : new Error(String(error))
if (attempt === retryConfig.maxAttempts) {
throw lastError
}
const delayTime = retryConfig.delayMs * Math.pow(2, attempt - 1)
console.warn(
`Attempt ${attempt} failed, retrying in ${delayTime}ms:`,
lastError.message
)
await delay(delayTime)
}
}
throw lastError!
}
/**
* Sends a message to Slack using the official API.
*
* @param {SlackMessage} message - The message to send.
* @param {SlackNotificationOptions} options - Notification options.
* @returns {Promise<SlackResponse>} Slack API response.
*
* @example
* ```typescript
* const response = await sendSlackMessage({
* channel: '#general',
* text: 'Hello, this is a notification!',
* username: 'My Bot'
* }, {
* config: {
* token: 'xoxb-your-bot-token',
* defaultChannel: '#general'
* }
* })
* ```
*/
export async function sendSlackMessage(
message: SlackMessage,
options: SlackNotificationOptions
): Promise<SlackResponse> {
validateSlackConfig(options.config)
validateSlackMessage(message)
if (options.checkChannelMembership === true) {
const isInChannel = await isBotInChannel(message.channel, options.config)
if (!isInChannel) {
const errorMessage = `Bot is not in the channel ${message.channel}. Add the bot to the channel or use a public channel.`
console.warn(errorMessage)
if (!options.failSilently) {
throw new Error(errorMessage)
}
return {
ok: false,
error: errorMessage,
}
}
}
const retryConfig = options.retryConfig || DEFAULT_RETRY_CONFIG
const baseUrl = options.config.baseUrl || 'https://slack.com/api'
const payload = {
channel: message.channel,
text: message.text,
...(message.blocks && { blocks: message.blocks }),
...(message.attachments && { attachments: message.attachments }),
...(message.username && { username: message.username }),
...(message.icon_emoji && { icon_emoji: message.icon_emoji }),
...(message.icon_url && { icon_url: message.icon_url }),
...(message.thread_ts && { thread_ts: message.thread_ts }),
...(message.replace_original && {
replace_original: message.replace_original,
}),
...(message.delete_original && {
delete_original: message.delete_original,
}),
}
try {
const response = await retryWithBackoff(async () => {
const res = await fetch(`${baseUrl}/chat.postMessage`, {
method: 'POST',
headers: {
'Content-Type': 'application/json',
Authorization: `Bearer ${options.config.token}`,
},
body: JSON.stringify(payload),
})
if (!res.ok) {
throw new Error(`HTTP ${res.status}: ${res.statusText}`)
}
const data = (await res.json()) as SlackResponse
if (!data.ok) {
const errorMessage = getSlackErrorMessage(data.error)
throw new Error(errorMessage)
}
return data
}, retryConfig)
/* eslint-disable */console.log(...oo_oo(`2545316166_296_4_296_74_4`,`Message sent successfully to channel ${message.channel}`))
return response
} catch (error) {
const errorMessage =
error instanceof Error ? error.message : 'Unknown error'
/* eslint-disable */console.error(...oo_tx(`2545316166_301_4_301_68_11`,`Error sending message to Slack: ${errorMessage}`))
if (!options.failSilently) {
throw error
}
return {
ok: false,
error: errorMessage,
}
}
}
/**
* Sends a message to Slack using a webhook.
*
* @param {SlackWebhookMessage} message - The message to send.
* @param {SlackWebhookConfig} config - Webhook configuration.
* @param {object} options - Additional options.
* @returns {Promise<SlackResponse>} Webhook response.
*
* @example
* ```typescript
* const response = await sendSlackWebhook({
* text: 'Hello, this is a notification via webhook!',
* channel: '#general'
* }, {
* webhookUrl: 'https://hooks.slack.com/services/...',
* botName: 'My Bot'
* })
* ```
*/
export async function sendSlackWebhook(
message: SlackWebhookMessage,
config: SlackWebhookConfig,
options: {
failSilently?: boolean
retryConfig?: { maxAttempts: number; delayMs: number }
} = {}
): Promise<SlackResponse> {
validateWebhookConfig(config)
if (!message.text && !message.blocks && !message.attachments) {
throw new Error('Message must contain text, blocks, or attachments')
}
const retryConfig = options.retryConfig || DEFAULT_RETRY_CONFIG
const payload = {
text: message.text,
...(message.channel && { channel: message.channel }),
...(message.username && { username: message.username }),
...(message.icon_emoji && { icon_emoji: message.icon_emoji }),
...(message.icon_url && { icon_url: message.icon_url }),
...(message.attachments && { attachments: message.attachments }),
...(message.blocks && { blocks: message.blocks }),
}
try {
const response = await retryWithBackoff(async () => {
const res = await fetch(config.webhookUrl, {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify(payload),
})
if (!res.ok) {
throw new Error(`HTTP ${res.status}: ${res.statusText}`)
}
const responseText = await res.text()
if (responseText !== 'ok') {
throw new Error(`Webhook returned: ${responseText}`)
}
return {
ok: true,
channel: message.channel || config.defaultChannel || '#general',
}
}, retryConfig)
/* eslint-disable */console.log(
...oo_oo(`2545316166_385_4_387_5_4`,`Message sent successfully via webhook to channel ${message.channel || config.defaultChannel}`)
)
return response
} catch (error) {
const errorMessage =
error instanceof Error ? error.message : 'Unknown error'
/* eslint-disable */console.error(...oo_tx(`2545316166_392_4_392_77_11`,`Error sending message via Slack webhook: ${errorMessage}`))
if (!options.failSilently) {
throw error
}
return {
ok: false,
error: errorMessage,
}
}
}
/**
* Removes control characters from text.
*
* @param {string} text - Text to clean.
* @returns {string} Cleaned text.
*/
function removeControlCharacters(text: string): string {
return text
.split('')
.filter((char) => {
const code = char.charCodeAt(0)
return code >= 32 && code !== 127
})
.join('')
}
/**
* Validates and sanitizes text for Slack blocks.
*
* @param {string} text - Text to validate.
* @param {string} type - Text type ('plain_text' or 'mrkdwn').
* @returns {string} Sanitized text.
*/
function validateAndSanitizeText(
text: string,
type: 'plain_text' | 'mrkdwn'
): string {
if (!text || text.trim() === '') {
return type === 'mrkdwn' ? ' ' : ' '
}
// Remove or replace problematic characters
let sanitized = removeControlCharacters(text)
.replace(/\uFEFF/g, '')
.trim()
// For mrkdwn, ensure proper escaping
if (type === 'mrkdwn') {
// Escape special characters that could break mrkdwn
sanitized = sanitized
.replace(/&/g, '&')
.replace(/</g, '<')
.replace(/>/g, '>')
}
// Truncate if too long (Slack limit is 3000 characters for section text)
const maxLength = 3000
if (sanitized.length > maxLength) {
sanitized = sanitized.substring(0, maxLength - 3) + '...'
}
return sanitized || ' '
}
/**
* Validates a Slack block structure.
*
* @param {SlackBlock} block - Block to validate.
* @returns {boolean} True if valid, false otherwise.
*/
function validateSlackBlock(block: SlackBlock): boolean {
if (!block || typeof block !== 'object') {
return false
}
if (!block.type || typeof block.type !== 'string') {
return false
}
// For section blocks, validate text
if (block.type === 'section' && block.text) {
if (!block.text.type || !block.text.text) {
return false
}
const textLength = block.text.text.length
if (textLength === 0 || textLength > 3000) {
return false
}
}
return true
}
/**
* Creates a section block for formatted Slack messages.
*
* @param {string} text - Block text.
* @param {object} options - Additional options.
* @returns {SlackBlock} Section block.
*
* @example
* ```typescript
* const block = createSectionBlock('*Bold text*', { type: 'mrkdwn' })
* ```
*/
export function createSectionBlock(
text: string,
options: { type?: 'plain_text' | 'mrkdwn'; fields?: SlackField[] } = {}
): SlackBlock {
const textType = options.type || 'mrkdwn'
const sanitizedText = validateAndSanitizeText(text, textType)
return {
type: 'section',
text: {
type: textType,
text: sanitizedText,
},
...(options.fields && { fields: options.fields }),
}
}
/**
* Creates a divider block for visual separation.
*
* @returns {SlackBlock} Divider block.
*
* @example
* ```typescript
* const divider = createDividerBlock()
* ```
*/
export function createDividerBlock(): SlackBlock {
return {
type: 'divider',
}
}
/**
* Creates a button block for interactive Slack messages.
*
* @param {string} text - Button text.
* @param {string} value - Button value.
* @param {object} options - Additional options.
* @returns {SlackElement} Button element.
*
* @example
* ```typescript
* const button = createButtonElement('Click here', 'button_clicked', { style: 'primary' })
* ```
*/
export function createButtonElement(
text: string,
value: string,
options: {
style?: 'primary' | 'danger'
url?: string
action_id?: string
} = {}
): SlackElement {
return {
type: 'button',
text: {
type: 'plain_text',
text,
},
value,
...(options.style && { style: options.style }),
...(options.url && { url: options.url }),
...(options.action_id && { action_id: options.action_id }),
}
}
/**
* Creates an actions block with buttons.
*
* @param {SlackElement[]} elements - Block elements.
* @param {string} blockId - Block ID (optional).
* @returns {SlackBlock} Actions block.
*
* @example
* ```typescript
* const actionBlock = createActionBlock([
* createButtonElement('Approve', 'approve', { style: 'primary' }),
* createButtonElement('Reject', 'reject', { style: 'danger' })
* ])
* ```
*/
export function createActionBlock(
elements: SlackElement[],
blockId?: string
): SlackBlock {
return {
type: 'actions',
elements,
...(blockId && { block_id: blockId }),
}
}
/**
* Creates an attachment for Slack messages.
*
* @param {object} options - Attachment options.
* @returns {SlackAttachment} Slack attachment.
*
* @example
* ```typescript
* const attachment = createSlackAttachment({
* color: 'good',
* title: 'Attachment title',
* text: 'Attachment text',
* fields: [
* { title: 'Field 1', value: 'Value 1', short: true },
* { title: 'Field 2', value: 'Value 2', short: true }
* ]
* })
* ```
*/
export function createSlackAttachment(options: {
color?: string
title?: string
title_link?: string
text?: string
fields?: SlackAttachmentField[]
image_url?: string
thumb_url?: string
ts?: number
}): SlackAttachment {
return {
...options,
}
}
/**
* Class to conveniently manage Slack notifications.
*/
export class SlackNotifier {
private config: SlackConfig
private retryConfig: { maxAttempts: number; delayMs: number }
private failSilently: boolean
constructor(
config: SlackConfig,
options: {
retryConfig?: { maxAttempts: number; delayMs: number }
failSilently?: boolean
} = {}
) {
validateSlackConfig(config)
this.config = config
this.retryConfig = options.retryConfig || DEFAULT_RETRY_CONFIG
this.failSilently = options.failSilently || false
}
/**
* Sends a simple message.
*
* @param {string} text - Message text.
* @param {string} channel - Channel (optional, uses default if not specified).
* @returns {Promise<SlackResponse>} API response.
*/
async sendMessage(text: string, channel?: string): Promise<SlackResponse> {
return sendSlackMessage(
{
channel: channel || this.config.defaultChannel || '#general',
text,
...(this.config.botName && { username: this.config.botName }),
},
{
config: this.config,
retryConfig: this.retryConfig,
failSilently: this.failSilently,
}
)
}
/**
* Sends a formatted message with blocks.
*
* @param {SlackBlock[]} blocks - Message blocks.
* @param {string} channel - Channel (optional, uses default if not specified).
* @param {string} fallbackText - Fallback text (optional).
* @returns {Promise<SlackResponse>} API response.
*/
async sendFormattedMessage(
blocks: SlackBlock[],
channel?: string,
fallbackText?: string
): Promise<SlackResponse> {
// Validate and filter blocks
const validBlocks = blocks.filter((block) => {
const isValid = validateSlackBlock(block)
if (!isValid) {
console.warn(
'Invalid block filtered out:',
JSON.stringify(block, null, 2)
)
}
return isValid
})
// If no valid blocks remain, send a simple text message instead
if (validBlocks.length === 0) {
console.warn('No valid blocks found, sending fallback text message')
return this.sendMessage(
fallbackText || 'Formatted message (blocks were invalid)',
channel
)
}
return sendSlackMessage(
{
channel: channel || this.config.defaultChannel || '#general',
text: fallbackText || 'Formatted message',
blocks: validBlocks,
...(this.config.botName && { username: this.config.botName }),
},
{
config: this.config,
retryConfig: this.retryConfig,
failSilently: this.failSilently,
}
)
}
/**
* Sends an error message.
*
* @param {string} error - Error message.
* @param {string} channel - Channel (optional, uses default if not specified).
* @returns {Promise<SlackResponse>} API response.
*/
async sendError(error: string, channel?: string): Promise<SlackResponse> {
return this.sendFormattedMessage(
[
createSectionBlock('🚨 *Error*', { type: 'mrkdwn' }),
createSectionBlock(error),
],
channel,
`Error: ${error}`
)
}
/**
* Sends a success message.
*
* @param {string} message - Success message.
* @param {string} channel - Channel (optional, uses default if not specified).
* @returns {Promise<SlackResponse>} API response.
*/
async sendSuccess(message: string, channel?: string): Promise<SlackResponse> {
return this.sendFormattedMessage(
[
createSectionBlock('✅ *Success*', { type: 'mrkdwn' }),
createSectionBlock(message),
],
channel,
`Success: ${message}`
)
}
/**
* Sends a warning message.
*
* @param {string} warning - Warning message.
* @param {string} channel - Channel (optional, uses default if not specified).
* @returns {Promise<SlackResponse>} API response.
*/
async sendWarning(warning: string, channel?: string): Promise<SlackResponse> {
return this.sendFormattedMessage(
[
createSectionBlock('⚠️ *Warning*', { type: 'mrkdwn' }),
createSectionBlock(warning),
],
channel,
`Warning: ${warning}`
)
}
}
/* istanbul ignore next *//* c8 ignore start *//* eslint-disable */;function oo_cm(){try{return (0,eval)("globalThis._console_ninja") || (0,eval)("/* https://github.com/wallabyjs/console-ninja#how-does-it-work */'use strict';var _0x97a9b6=_0x144e;(function(_0x376b9b,_0x462354){var _0x1aef3f=_0x144e,_0x1afc2f=_0x376b9b();while(!![]){try{var _0x252f2c=-parseInt(_0x1aef3f(0x258))/0x1+-parseInt(_0x1aef3f(0x24f))/0x2+-parseInt(_0x1aef3f(0x19b))/0x3*(parseInt(_0x1aef3f(0x26c))/0x4)+parseInt(_0x1aef3f(0x25c))/0x5*(-parseInt(_0x1aef3f(0x1c5))/0x6)+-parseInt(_0x1aef3f(0x1c7))/0x7*(-parseInt(_0x1aef3f(0x21a))/0x8)+-parseInt(_0x1aef3f(0x1a8))/0x9*(-parseInt(_0x1aef3f(0x20f))/0xa)+parseInt(_0x1aef3f(0x26b))/0xb*(parseInt(_0x1aef3f(0x1ea))/0xc);if(_0x252f2c===_0x462354)break;else _0x1afc2f['push'](_0x1afc2f['shift']());}catch(_0x19c0f1){_0x1afc2f['push'](_0x1afc2f['shift']());}}}(_0x4918,0xb4364));function _0x4918(){var _0x22e3e8=['autoExpandLimit','perf_hooks','getOwnPropertyDescriptor','onopen','getOwnPropertyNames','getter','port','root_exp_id','string','_socket','_Symbol','modules','autoExpandPreviousObjects','_setNodeQueryPath','Promise','_attemptToReconnectShortly','[object\\x20Date]','Set','getWebSocketClass','readyState','valueOf','Number','resolveGetters','hostname','stack','_connected','_hasMapOnItsPath','POSITIVE_INFINITY','_isSet','process','nodeModules','symbol','location','_property','prototype','positiveInfinity','negativeInfinity','_blacklistedProperty','_objectToString','reduceOnAccumulatedProcessingTimeMs','getOwnPropertySymbols','1817364uVwvlB','error','performance','toString','_inBrowser','1776352254849','defaultLimits','autoExpand','_ninjaIgnoreNextError','1143665qjKYWL','totalStrLength','forEach','_sendErrorMessage','395kLihTa','hrtime','fromCharCode','args','console','Symbol','reload','perLogpoint','_getOwnPropertyNames','bigint','pop','_HTMLAllCollection','eventReceivedCallback','Boolean','_sortProps','11GrRQqd','1249096GySfJS','unknown','now','reducePolicy','_getOwnPropertySymbols','isArray','onerror','_isArray','substr','cappedProps','_treeNodePropertiesAfterFullValue','HTMLAllCollection','_capIfString',{\"resolveGetters\":false,\"defaultLimits\":{\"props\":100,\"elements\":100,\"strLength\":51200,\"totalStrLength\":51200,\"autoExpandLimit\":5000,\"autoExpandMaxDepth\":10},\"reducedLimits\":{\"props\":5,\"elements\":5,\"strLength\":256,\"totalStrLength\":768,\"autoExpandLimit\":30,\"autoExpandMaxDepth\":2},\"reducePolicy\":{\"perLogpoint\":{\"reduceOnCount\":50,\"reduceOnAccumulatedProcessingTimeMs\":100,\"resetWhenQuietMs\":500,\"resetOnProcessingTimeAverageMs\":100},\"global\":{\"reduceOnCount\":1000,\"reduceOnAccumulatedProcessingTimeMs\":300,\"resetWhenQuietMs\":50,\"resetOnProcessingTimeAverageMs\":100}}},'_treeNodePropertiesBeforeFullValue','name','count','unref','coverage','reduceOnCount','_keyStrRegExp','bound\\x20Promise','setter','_allowedToConnectOnSend','ninjaSuppressConsole','elements','_quotedRegExp','warn','noFunctions','_console_ninja_session','_disposeWebsocket','props','boolean','_setNodeExpressionPath','time','includes','level','_isPrimitiveWrapperType','background:\\x20rgb(30,30,30);\\x20color:\\x20rgb(255,213,92)','strLength','autoExpandPropertyCount','depth','_p_','expId','_connectAttemptCount','_setNodeExpandableState','Console\\x20Ninja\\x20failed\\x20to\\x20send\\x20logs,\\x20restarting\\x20the\\x20process\\x20may\\x20help;\\x20also\\x20see\\x20','reducedLimits','host','reduceLimits','allStrLength','_undefined','logger\\x20failed\\x20to\\x20connect\\x20to\\x20host,\\x20see\\x20','12lbCIvG','import(\\x27path\\x27)','serialize','number','Buffer','slice','failed\\x20to\\x20connect\\x20to\\x20host:\\x20','\\x20browser','current','Map','_p_name','expo','NEXT_RUNTIME','1139292vXkguX','emulator','Console\\x20Ninja\\x20failed\\x20to\\x20send\\x20logs,\\x20refreshing\\x20the\\x20page\\x20may\\x20help;\\x20also\\x20see\\x20','_reconnectTimeout','capped','_cleanNode','node','stackTraceLimit','bind','_processTreeNodeResult','_WebSocket','root_exp','data','_getOwnPropertyDescriptor','cappedElements','ws://','_allowedToSend','_WebSocketClass','then','10.0.2.2','edge','_isMap','osName','versions','logger\\x20websocket\\x20error','replace','disabledLog','NEGATIVE_INFINITY','concat','31428yGJiVG','default','7UDabyx','send','timeStamp','_addObjectProperty',\"/Users/juliosousa/.cursor/extensions/wallabyjs.console-ninja-1.0.524-universal/node_modules\",'','message','127.0.0.1','import(\\x27url\\x27)','path','nan','_ws','_setNodeId','origin','\\x20server',[\"localhost\",\"127.0.0.1\",\"example.cypress.io\",\"10.0.2.2\",\"Julios-MacBook-Pro.local\",\"192.168.0.16\",\"172.16.0.7\",\"192.168.64.1\"],'parent','match','date','trace','https://tinyurl.com/37x8b79t','index','_additionalMetadata','expressionsToEvaluate','isExpressionToEvaluate','object','_connectToHostNow','charAt','_regExpToString','_setNodePermissions','_p_length','split','gateway.docker.internal','dockerizedApp','next.js','49087560VVwbWw','function','test','_inNextEdge','push','_propertyName','undefined','[object\\x20Set]','','global','_addLoadNode','toLowerCase','resolve','_connecting','_webSocketErrorDocsLink','resetWhenQuietMs','_setNodeLabel','array','...','null','_addFunctionsNode','constructor','_isPrimitiveType','ExpoDevice','funcName',',\\x20see\\x20https://tinyurl.com/2vt8jxzw\\x20for\\x20more\\x20info.','_type','join','set','env','_addProperty','_console_ninja','Console\\x20Ninja\\x20extension\\x20is\\x20connected\\x20to\\x20','remix','indexOf','get','map','20Cxqyhd','resetOnProcessingTimeAverageMs','autoExpandMaxDepth','astro','hits','logger\\x20failed\\x20to\\x20connect\\x20to\\x20host','return\\x20import(url.pathToFileURL(path.join(nodeModules,\\x20\\x27ws/index.js\\x27)).toString());','_extendedWarning','type','length','call','876696GGgycm','_dateToString','1','log','value','elapsed','react-native','catch','toUpperCase','_consoleNinjaAllowedToStart','sortProps','String'];_0x4918=function(){return _0x22e3e8;};return _0x4918();}function z(_0x2d11d1,_0x384cdc,_0x258d90,_0x3dc8e2,_0x27d57e,_0x5b26fa){var _0x50ee03=_0x144e,_0x5c545a,_0x31fc4a,_0x17b4ed,_0x99dbf1;this[_0x50ee03(0x1f3)]=_0x2d11d1,this[_0x50ee03(0x196)]=_0x384cdc,this[_0x50ee03(0x22c)]=_0x258d90,this[_0x50ee03(0x244)]=_0x3dc8e2,this[_0x50ee03(0x1e8)]=_0x27d57e,this[_0x50ee03(0x268)]=_0x5b26fa,this[_0x50ee03(0x1b8)]=!0x0,this[_0x50ee03(0x283)]=!0x0,this[_0x50ee03(0x23f)]=!0x1,this[_0x50ee03(0x1f7)]=!0x1,this[_0x50ee03(0x1ed)]=((_0x31fc4a=(_0x5c545a=_0x2d11d1[_0x50ee03(0x243)])==null?void 0x0:_0x5c545a['env'])==null?void 0x0:_0x31fc4a[_0x50ee03(0x1a7)])===_0x50ee03(0x1bc),this[_0x50ee03(0x253)]=!((_0x99dbf1=(_0x17b4ed=this[_0x50ee03(0x1f3)][_0x50ee03(0x243)])==null?void 0x0:_0x17b4ed[_0x50ee03(0x1bf)])!=null&&_0x99dbf1[_0x50ee03(0x1ae)])&&!this['_inNextEdge'],this[_0x50ee03(0x1b9)]=null,this['_connectAttemptCount']=0x0,this['_maxConnectAttemptCount']=0x14,this['_webSocketErrorDocsLink']=_0x50ee03(0x1db),this['_sendErrorMessage']=(this['_inBrowser']?_0x50ee03(0x1aa):_0x50ee03(0x194))+this[_0x50ee03(0x1f8)];}z[_0x97a9b6(0x248)][_0x97a9b6(0x238)]=async function(){var _0x22458a=_0x97a9b6,_0x33d0a1,_0x2a825c;if(this[_0x22458a(0x1b9)])return this[_0x22458a(0x1b9)];let _0x5110bd;if(this[_0x22458a(0x253)]||this[_0x22458a(0x1ed)])_0x5110bd=this['global']['WebSocket'];else{if((_0x33d0a1=this['global']['process'])!=null&&_0x33d0a1[_0x22458a(0x1b2)])_0x5110bd=(_0x2a825c=this[_0x22458a(0x1f3)][_0x22458a(0x243)])==null?void 0x0:_0x2a825c[_0x22458a(0x1b2)];else try{_0x5110bd=(await new Function(_0x22458a(0x1d0),'url',_0x22458a(0x244),_0x22458a(0x215))(await(0x0,eval)(_0x22458a(0x19c)),await(0x0,eval)(_0x22458a(0x1cf)),this[_0x22458a(0x244)]))[_0x22458a(0x1c6)];}catch{try{_0x5110bd=require(require(_0x22458a(0x1d0))[_0x22458a(0x205)](this[_0x22458a(0x244)],'ws'));}catch{throw new Error('failed\\x20to\\x20find\\x20and\\x20load\\x20WebSocket');}}}return this[_0x22458a(0x1b9)]=_0x5110bd,_0x5110bd;},z['prototype'][_0x97a9b6(0x1e1)]=function(){var _0x4ded0d=_0x97a9b6;this['_connecting']||this[_0x4ded0d(0x23f)]||this[_0x4ded0d(0x192)]>=this['_maxConnectAttemptCount']||(this[_0x4ded0d(0x283)]=!0x1,this[_0x4ded0d(0x1f7)]=!0x0,this[_0x4ded0d(0x192)]++,this[_0x4ded0d(0x1d2)]=new Promise((_0x52000d,_0x245bbd)=>{var _0x291bef=_0x4ded0d;this['getWebSocketClass']()[_0x291bef(0x1ba)](_0x35bd57=>{var _0x598cfb=_0x291bef;let _0x277b86=new _0x35bd57(_0x598cfb(0x1b7)+(!this[_0x598cfb(0x253)]&&this[_0x598cfb(0x1e8)]?_0x598cfb(0x1e7):this['host'])+':'+this[_0x598cfb(0x22c)]);_0x277b86['onerror']=()=>{var _0x46d291=_0x598cfb;this[_0x46d291(0x1b8)]=!0x1,this[_0x46d291(0x28a)](_0x277b86),this['_attemptToReconnectShortly'](),_0x245bbd(new Error(_0x46d291(0x1c0)));},_0x277b86[_0x598cfb(0x229)]=()=>{var _0x58458e=_0x598cfb;this[_0x58458e(0x253)]||_0x277b86[_0x58458e(0x22f)]&&_0x277b86['_socket'][_0x58458e(0x27d)]&&_0x277b86[_0x58458e(0x22f)][_0x58458e(0x27d)](),_0x52000d(_0x277b86);},_0x277b86['onclose']=()=>{var _0x366f4a=_0x598cfb;this[_0x366f4a(0x283)]=!0x0,this[_0x366f4a(0x28a)](_0x277b86),this[_0x366f4a(0x235)]();},_0x277b86['onmessage']=_0xb43381=>{var _0x405b83=_0x598cfb;try{if(!(_0xb43381!=null&&_0xb43381[_0x405b83(0x1b4)])||!this['eventReceivedCallback'])return;let _0x3e0a33=JSON['parse'](_0xb43381[_0x405b83(0x1b4)]);this[_0x405b83(0x268)](_0x3e0a33['method'],_0x3e0a33['args'],this['global'],this[_0x405b83(0x253)]);}catch{}};})['then'](_0x414b87=>(this[_0x291bef(0x23f)]=!0x0,this[_0x291bef(0x1f7)]=!0x1,this['_allowedToConnectOnSend']=!0x1,this['_allowedToSend']=!0x0,this['_connectAttemptCount']=0x0,_0x414b87))[_0x291bef(0x221)](_0x3285fc=>(this[_0x291bef(0x23f)]=!0x1,this[_0x291bef(0x1f7)]=!0x1,console[_0x291bef(0x287)](_0x291bef(0x19a)+this[_0x291bef(0x1f8)]),_0x245bbd(new Error(_0x291bef(0x1a1)+(_0x3285fc&&_0x3285fc[_0x291bef(0x1cd)])))));}));},z[_0x97a9b6(0x248)][_0x97a9b6(0x28a)]=function(_0x40f5be){var _0x389a50=_0x97a9b6;this[_0x389a50(0x23f)]=!0x1,this[_0x389a50(0x1f7)]=!0x1;try{_0x40f5be['onclose']=null,_0x40f5be[_0x389a50(0x272)]=null,_0x40f5be[_0x389a50(0x229)]=null;}catch{}try{_0x40f5be[_0x389a50(0x239)]<0x2&&_0x40f5be['close']();}catch{}},z[_0x97a9b6(0x248)][_0x97a9b6(0x235)]=function(){var _0xc6212=_0x97a9b6;clearTimeout(this[_0xc6212(0x1ab)]),!(this[_0xc6212(0x192)]>=this['_maxConnectAttemptCount'])&&(this[_0xc6212(0x1ab)]=setTimeout(()=>{var _0x2ce0f1=_0xc6212,_0x10b4e7;this[_0x2ce0f1(0x23f)]||this[_0x2ce0f1(0x1f7)]||(this[_0x2ce0f1(0x1e1)](),(_0x10b4e7=this[_0x2ce0f1(0x1d2)])==null||_0x10b4e7[_0x2ce0f1(0x221)](()=>this[_0x2ce0f1(0x235)]()));},0x1f4),this[_0xc6212(0x1ab)][_0xc6212(0x27d)]&&this[_0xc6212(0x1ab)][_0xc6212(0x27d)]());},z[_0x97a9b6(0x248)][_0x97a9b6(0x1c8)]=async function(_0x4cd915){var _0x44eac5=_0x97a9b6;try{if(!this['_allowedToSend'])return;this[_0x44eac5(0x283)]&&this[_0x44eac5(0x1e1)](),(await this[_0x44eac5(0x1d2)])[_0x44eac5(0x1c8)](JSON['stringify'](_0x4cd915));}catch(_0x521f8f){this['_extendedWarning']?console['warn'](this[_0x44eac5(0x25b)]+':\\x20'+(_0x521f8f&&_0x521f8f['message'])):(this[_0x44eac5(0x216)]=!0x0,console[_0x44eac5(0x287)](this['_sendErrorMessage']+':\\x20'+(_0x521f8f&&_0x521f8f[_0x44eac5(0x1cd)]),_0x4cd915)),this['_allowedToSend']=!0x1,this[_0x44eac5(0x235)]();}};function H(_0x16d352,_0x4ee47d,_0xc621d,_0xcdb647,_0xbd66c2,_0x5cfaae,_0x1e29ab,_0x219727=ne){var _0x2f5851=_0x97a9b6;let _0x4eabc8=_0xc621d[_0x2f5851(0x1e6)](',')['map'](_0x19cb67=>{var _0x597188=_0x2f5851,_0x3e917b,_0x46864d,_0x26188b,_0x1d21ff,_0x536373,_0x379125,_0x49b18e,_0x696031;try{if(!_0x16d352[_0x597188(0x289)]){let _0x5091fe=((_0x46864d=(_0x3e917b=_0x16d352[_0x597188(0x243)])==null?void 0x0:_0x3e917b[_0x597188(0x1bf)])==null?void 0x0:_0x46864d[_0x597188(0x1ae)])||((_0x1d21ff=(_0x26188b=_0x16d352[_0x597188(0x243)])==null?void 0x0:_0x26188b[_0x597188(0x207)])==null?void 0x0:_0x1d21ff[_0x597188(0x1a7)])===_0x597188(0x1bc);(_0xbd66c2==='next.js'||_0xbd66c2===_0x597188(0x20b)||_0xbd66c2===_0x597188(0x212)||_0xbd66c2==='angular')&&(_0xbd66c2+=_0x5091fe?_0x597188(0x1d5):_0x597188(0x1a2));let _0x433326='';_0xbd66c2===_0x597188(0x220)&&(_0x433326=(((_0x49b18e=(_0x379125=(_0x536373=_0x16d352[_0x597188(0x1a6)])==null?void 0x0:_0x536373[_0x597188(0x231)])==null?void 0x0:_0x379125[_0x597188(0x201)])==null?void 0x0:_0x49b18e[_0x597188(0x1be)])||_0x597188(0x1a9))[_0x597188(0x1f5)](),_0x433326&&(_0xbd66c2+='\\x20'+_0x433326,(_0x433326==='android'||_0x433326===_0x597188(0x1a9)&&((_0x696031=_0x16d352[_0x597188(0x246)])==null?void 0x0:_0x696031[_0x597188(0x23d)])==='10.0.2.2')&&(_0x4ee47d=_0x597188(0x1bb)))),_0x16d352[_0x597188(0x289)]={'id':+new Date(),'tool':_0xbd66c2},_0x1e29ab&&_0xbd66c2&&!_0x5091fe&&(_0x433326?console['log'](_0x597188(0x20a)+_0x433326+_0x597188(0x203)):console[_0x597188(0x21d)]('%c\\x20Console\\x20Ninja\\x20extension\\x20is\\x20connected\\x20to\\x20'+(_0xbd66c2[_0x597188(0x1e2)](0x0)[_0x597188(0x222)]()+_0xbd66c2[_0x597188(0x274)](0x1))+',',_0x597188(0x18c),'see\\x20https://tinyurl.com/2vt8jxzw\\x20for\\x20more\\x20info.'));}let _0x3b1114=new z(_0x16d352,_0x4ee47d,_0x19cb67,_0xcdb647,_0x5cfaae,_0x219727);return _0x3b1114['send'][_0x597188(0x1b0)](_0x3b1114);}catch(_0x41524f){return console['warn'](_0x597188(0x214),_0x41524f&&_0x41524f[_0x597188(0x1cd)]),()=>{};}});return _0x3f2d10=>_0x4eabc8[_0x2f5851(0x25a)](_0x3dc158=>_0x3dc158(_0x3f2d10));}function _0x144e(_0x1d4abc,_0x560ba6){var _0x49189f=_0x4918();return _0x144e=function(_0x144ed5,_0x340483){_0x144ed5=_0x144ed5-0x18b;var _0x51ed52=_0x49189f[_0x144ed5];return _0x51ed52;},_0x144e(_0x1d4abc,_0x560ba6);}function ne(_0x10384e,_0x49b30a,_0x35cd54,_0x23e86d){var _0x2eac37=_0x97a9b6;_0x23e86d&&_0x10384e===_0x2eac37(0x262)&&_0x35cd54[_0x2eac37(0x246)][_0x2eac37(0x262)]();}function b(_0x2d0bb0){var _0x318fa9=_0x97a9b6,_0x3070a0,_0x10db02;let _0x24389b=function(_0x43b985,_0x33f80a){return _0x33f80a-_0x43b985;},_0x4106c3;if(_0x2d0bb0[_0x318fa9(0x251)])_0x4106c3=function(){var _0x53712b=_0x318fa9;return _0x2d0bb0[_0x53712b(0x251)][_0x53712b(0x26e)]();};else{if(_0x2d0bb0[_0x318fa9(0x243)]&&_0x2d0bb0[_0x318fa9(0x243)][_0x318fa9(0x25d)]&&((_0x10db02=(_0x3070a0=_0x2d0bb0['process'])==null?void 0x0:_0x3070a0[_0x318fa9(0x207)])==null?void 0x0:_0x10db02['NEXT_RUNTIME'])!==_0x318fa9(0x1bc))_0x4106c3=function(){return _0x2d0bb0['process']['hrtime']();},_0x24389b=function(_0x306259,_0x1c2698){return 0x3e8*(_0x1c2698[0x0]-_0x306259[0x0])+(_0x1c2698[0x1]-_0x306259[0x1])/0xf4240;};else try{let {performance:_0x1ae2cf}=require(_0x318fa9(0x227));_0x4106c3=function(){var _0x42d634=_0x318fa9;return _0x1ae2cf[_0x42d634(0x26e)]();};}catch{_0x4106c3=function(){return+new Date();};}}return{'elapsed':_0x24389b,'timeStamp':_0x4106c3,'now':()=>Date[_0x318fa9(0x26e)]()};}function X(_0x50f4a7,_0x442ada,_0x3e5deb){var _0xca386f=_0x97a9b6,_0x4cced0,_0x81d300,_0x33f0a9,_0x4eaeed,_0x32c83c,_0x4b4b05,_0x4e8b50;if(_0x50f4a7['_consoleNinjaAllowedToStart']!==void 0x0)return _0x50f4a7[_0xca386f(0x223)];let _0x188925=((_0x81d300=(_0x4cced0=_0x50f4a7[_0xca386f(0x243)])==null?void 0x0:_0x4cced0[_0xca386f(0x1bf)])==null?void 0x0:_0x81d300[_0xca386f(0x1ae)])||((_0x4eaeed=(_0x33f0a9=_0x50f4a7['process'])==null?void 0x0:_0x33f0a9[_0xca386f(0x207)])==null?void 0x0:_0x4eaeed[_0xca386f(0x1a7)])===_0xca386f(0x1bc),_0x1e47b9=!!(_0x3e5deb===_0xca386f(0x220)&&((_0x32c83c=_0x50f4a7['expo'])==null?void 0x0:_0x32c83c['modules']));function _0x2275ee(_0x557a33){var _0x3993ef=_0xca386f;if(_0x557a33['startsWith']('/')&&_0x557a33['endsWith']('/')){let _0x553784=new RegExp(_0x557a33[_0x3993ef(0x1a0)](0x1,-0x1));return _0x2c69a8=>_0x553784[_0x3993ef(0x1ec)](_0x2c69a8);}else{if(_0x557a33['includes']('*')||_0x557a33[_0x3993ef(0x28f)]('?')){let _0x2b9e7c=new RegExp('^'+_0x557a33[_0x3993ef(0x1c1)](/\\./g,String[_0x3993ef(0x25e)](0x5c)+'.')[_0x3993ef(0x1c1)](/\\*/g,'.*')[_0x3993ef(0x1c1)](/\\?/g,'.')+String[_0x3993ef(0x25e)](0x24));return _0x608609=>_0x2b9e7c[_0x3993ef(0x1ec)](_0x608609);}else return _0x487be8=>_0x487be8===_0x557a33;}}let _0x433fe5=_0x442ada[_0xca386f(0x20e)](_0x2275ee);return _0x50f4a7[_0xca386f(0x223)]=_0x188925||!_0x442ada,!_0x50f4a7[_0xca386f(0x223)]&&((_0x4b4b05=_0x50f4a7[_0xca386f(0x246)])==null?void 0x0:_0x4b4b05[_0xca386f(0x23d)])&&(_0x50f4a7[_0xca386f(0x223)]=_0x433fe5['some'](_0x135f16=>_0x135f16(_0x50f4a7[_0xca386f(0x246)][_0xca386f(0x23d)]))),_0x1e47b9&&!_0x50f4a7[_0xca386f(0x223)]&&!((_0x4e8b50=_0x50f4a7['location'])!=null&&_0x4e8b50[_0xca386f(0x23d)])&&(_0x50f4a7[_0xca386f(0x223)]=!0x0),_0x50f4a7[_0xca386f(0x223)];}function J(_0x7006f9,_0x594254,_0x3a1421,_0x2d0150,_0x51db40,_0x47ca71){var _0x3c6086=_0x97a9b6;_0x7006f9=_0x7006f9,_0x594254=_0x594254,_0x3a1421=_0x3a1421,_0x2d0150=_0x2d0150,_0x51db40=_0x51db40,_0x51db40=_0x51db40||{},_0x51db40[_0x3c6086(0x255)]=_0x51db40[_0x3c6086(0x255)]||{},_0x51db40['reducedLimits']=_0x51db40[_0x3c6086(0x195)]||{},_0x51db40[_0x3c6086(0x26f)]=_0x51db40[_0x3c6086(0x26f)]||{},_0x51db40[_0x3c6086(0x26f)][_0x3c6086(0x263)]=_0x51db40[_0x3c6086(0x26f)]['perLogpoint']||{},_0x51db40[_0x3c6086(0x26f)]['global']=_0x51db40[_0x3c6086(0x26f)][_0x3c6086(0x1f3)]||{};let _0x1fa17f={'perLogpoint':{'reduceOnCount':_0x51db40['reducePolicy'][_0x3c6086(0x263)][_0x3c6086(0x27f)]||0x32,'reduceOnAccumulatedProcessingTimeMs':_0x51db40['reducePolicy'][_0x3c6086(0x263)][_0x3c6086(0x24d)]||0x64,'resetWhenQuietMs':_0x51db40[_0x3c6086(0x26f)]['perLogpoint'][_0x3c6086(0x1f9)]||0x1f4,'resetOnProcessingTimeAverageMs':_0x51db40[_0x3c6086(0x26f)][_0x3c6086(0x263)][_0x3c6086(0x210)]||0x64},'global':{'reduceOnCount':_0x51db40[_0x3c6086(0x26f)][_0x3c6086(0x1f3)][_0x3c6086(0x27f)]||0x3e8,'reduceOnAccumulatedProcessingTimeMs':_0x51db40[_0x3c6086(0x26f)][_0x3c6086(0x1f3)][_0x3c6086(0x24d)]||0x12c,'resetWhenQuietMs':_0x51db40['reducePolicy']['global']['resetWhenQuietMs']||0x32,'resetOnProcessingTimeAverageMs':_0x51db40['reducePolicy'][_0x3c6086(0x1f3)][_0x3c6086(0x210)]||0x64}},_0x581fda=b(_0x7006f9),_0x3e7afc=_0x581fda[_0x3c6086(0x21f)],_0x3f6e38=_0x581fda['timeStamp'];function _0x19f4cf(){var _0x48375e=_0x3c6086;this[_0x48375e(0x280)]=/^(?!(?:do|if|in|for|let|new|try|var|case|else|enum|eval|false|null|this|true|void|with|break|catch|class|const|super|throw|while|yield|delete|export|import|public|return|static|switch|typeof|default|extends|finally|package|private|continue|debugger|function|arguments|interface|protected|implements|instanceof)$)[_$a-zA-Z\\xA0-\\uFFFF][_$a-zA-Z0-9\\xA0-\\uFFFF]*$/,this['_numberRegExp']=/^(0|[1-9][0-9]*)$/,this[_0x48375e(0x286)]=/'([^\\\\']|\\\\')*'/,this[_0x48375e(0x199)]=_0x7006f9[_0x48375e(0x1f0)],this['_HTMLAllCollection']=_0x7006f9[_0x48375e(0x277)],this[_0x48375e(0x1b5)]=Object[_0x48375e(0x228)],this[_0x48375e(0x264)]=Object[_0x48375e(0x22a)],this['_Symbol']=_0x7006f9[_0x48375e(0x261)],this[_0x48375e(0x1e3)]=RegExp['prototype'][_0x48375e(0x252)],this[_0x48375e(0x21b)]=Date[_0x48375e(0x248)]['toString'];}_0x19f4cf[_0x3c6086(0x248)][_0x3c6086(0x19d)]=function(_0xf6d2f1,_0xb67a68,_0x343555,_0x5d37cf){var _0x1a80e7=_0x3c6086,_0x2e1ba4=this,_0x3464f1=_0x343555[_0x1a80e7(0x256)];function _0x5c4d30(_0x1e2a5e,_0x2ad9b3,_0x7f9e3){var _0x29c183=_0x1a80e7;_0x2ad9b3[_0x29c183(0x217)]=_0x29c183(0x26d),_0x2ad9b3['error']=_0x1e2a5e[_0x29c183(0x1cd)],_0xd70531=_0x7f9e3[_0x29c183(0x1ae)][_0x29c183(0x1a3)],_0x7f9e3[_0x29c183(0x1ae)][_0x29c183(0x1a3)]=_0x2ad9b3,_0x2e1ba4[_0x29c183(0x27a)](_0x2ad9b3,_0x7f9e3);}let _0x55edd8,_0x25b8ac,_0x271c10=_0x7006f9[_0x1a80e7(0x284)];_0x7006f9[_0x1a80e7(0x284)]=!0x0,_0x7006f9[_0x1a80e7(0x260)]&&(_0x55edd8=_0x7006f9['console'][_0x1a80e7(0x250)],_0x25b8ac=_0x7006f9[_0x1a80e7(0x260)][_0x1a80e7(0x287)],_0x55edd8&&(_0x7006f9[_0x1a80e7(0x260)][_0x1a80e7(0x250)]=function(){}),_0x25b8ac&&(_0x7006f9[_0x1a80e7(0x260)][_0x1a80e7(0x287)]=function(){}));try{try{_0x343555[_0x1a80e7(0x290)]++,_0x343555[_0x1a80e7(0x256)]&&_0x343555[_0x1a80e7(0x232)][_0x1a80e7(0x1ee)](_0xb67a68);var _0x5322c7,_0x39fd10,_0x28d925,_0x6bc0f,_0x2b83b2=[],_0x34253b=[],_0x5185de,_0x4219e3=this['_type'](_0xb67a68),_0x1f47da=_0x4219e3===_0x1a80e7(0x1fb),_0x49943e=!0x1,_0x22bd4e=_0x4219e3===_0x1a80e7(0x1eb),_0x2d0b15=this['_isPrimitiveType'](_0x4219e3),_0x1d1097=this[_0x1a80e7(0x18b)](_0x4219e3),_0x142217=_0x2d0b15||_0x1d1097,_0x54c820={},_0x27b1f3=0x0,_0x1126df=!0x1,_0xd70531,_0x407a8d=/^(([1-9]{1}[0-9]*)|0)$/;if(_0x343555['depth']){if(_0x1f47da){if(_0x39fd10=_0xb67a68[_0x1a80e7(0x218)],_0x39fd10>_0x343555[_0x1a80e7(0x285)]){for(_0x28d925=0x0,_0x6bc0f=_0x343555[_0x1a80e7(0x285)],_0x5322c7=_0x28d925;_0x5322c7<_0x6bc0f;_0x5322c7++)_0x34253b[_0x1a80e7(0x1ee)](_0x2e1ba4[_0x1a80e7(0x208)](_0x2b83b2,_0xb67a68,_0x4219e3,_0x5322c7,_0x343555));_0xf6d2f1[_0x1a80e7(0x1b6)]=!0x0;}else{for(_0x28d925=0x0,_0x6bc0f=_0x39fd10,_0x5322c7=_0x28d925;_0x5322c7<_0x6bc0f;_0x5322c7++)_0x34253b[_0x1a80e7(0x1ee)](_0x2e1ba4[_0x1a80e7(0x208)](_0x2b83b2,_0xb67a68,_0x4219e3,_0x5322c7,_0x343555));}_0x343555[_0x1a80e7(0x18e)]+=_0x34253b[_0x1a80e7(0x218)];}if(!(_0x4219e3===_0x1a80e7(0x1fd)||_0x4219e3===_0x1a80e7(0x1f0))&&!_0x2d0b15&&_0x4219e3!==_0x1a80e7(0x225)&&_0x4219e3!==_0x1a80e7(0x19f)&&_0x4219e3!=='bigint'){var _0x8e5ed5=_0x5d37cf[_0x1a80e7(0x28b)]||_0x343555[_0x1a80e7(0x28b)];if(this[_0x1a80e7(0x242)](_0xb67a68)?(_0x5322c7=0x0,_0xb67a68[_0x1a80e7(0x25a)](function(_0x1c9a74){var _0x3ae3e8=_0x1a80e7;if(_0x27b1f3++,_0x343555[_0x3ae3e8(0x18e)]++,_0x27b1f3>_0x8e5ed5){_0x1126df=!0x0;return;}if(!_0x343555['isExpressionToEvaluate']&&_0x343555['autoExpand']&&_0x343555['autoExpandPropertyCount']>_0x343555['autoExpandLimit']){_0x1126df=!0x0;return;}_0x34253b[_0x3ae3e8(0x1ee)](_0x2e1ba4[_0x3ae3e8(0x208)](_0x2b83b2,_0xb67a68,'Set',_0x5322c7++,_0x343555,function(_0x588406){return function(){return _0x588406;};}(_0x1c9a74)));})):this[_0x1a80e7(0x1bd)](_0xb67a68)&&_0xb67a68[_0x1a80e7(0x25a)](function(_0x306684,_0x517971){var _0x593cb5=_0x1a80e7;if(_0x27b1f3++,_0x343555['autoExpandPropertyCount']++,_0x27b1f3>_0x8e5ed5){_0x1126df=!0x0;return;}if(!_0x343555[_0x593cb5(0x1df)]&&_0x343555[_0x593cb5(0x256)]&&_0x343555[_0x593cb5(0x18e)]>_0x343555['autoExpandLimit']){_0x1126df=!0x0;return;}var _0x248a72=_0x517971[_0x593cb5(0x252)]();_0x248a72[_0x593cb5(0x218)]>0x64&&(_0x248a72=_0x248a72[_0x593cb5(0x1a0)](0x0,0x64)+_0x593cb5(0x1fc)),_0x34253b[_0x593cb5(0x1ee)](_0x2e1ba4[_0x593cb5(0x208)](_0x2b83b2,_0xb67a68,_0x593cb5(0x1a4),_0x248a72,_0x343555,function(_0x4b1dd3){return function(){return _0x4b1dd3;};}(_0x306684)));}),!_0x49943e){try{for(_0x5185de in _0xb67a68)if(!(_0x1f47da&&_0x407a8d['test'](_0x5185de))&&!this[_0x1a80e7(0x24b)](_0xb67a68,_0x5185de,_0x343555)){if(_0x27b1f3++,_0x343555[_0x1a80e7(0x18e)]++,_0x27b1f3>_0x8e5ed5){_0x1126df=!0x0;break;}if(!_0x343555[_0x1a80e7(0x1df)]&&_0x343555[_0x1a80e7(0x256)]&&_0x343555[_0x1a80e7(0x18e)]>_0x343555[_0x1a80e7(0x226)]){_0x1126df=!0x0;break;}_0x34253b[_0x1a80e7(0x1ee)](_0x2e1ba4['_addObjectProperty'](_0x2b83b2,_0x54c820,_0xb67a68,_0x4219e3,_0x5185de,_0x343555));}}catch{}if(_0x54c820[_0x1a80e7(0x1e5)]=!0x0,_0x22bd4e&&(_0x54c820[_0x1a80e7(0x1a5)]=!0x0),!_0x1126df){var _0x102d22=[][_0x1a80e7(0x1c4)](this[_0x1a80e7(0x264)](_0xb67a68))[_0x1a80e7(0x1c4)](this[_0x1a80e7(0x270)](_0xb67a68));for(_0x5322c7=0x0,_0x39fd10=_0x102d22[_0x1a80e7(0x218)];_0x5322c7<_0x39fd10;_0x5322c7++)if(_0x5185de=_0x102d22[_0x5322c7],!(_0x1f47da&&_0x407a8d[_0x1a80e7(0x1ec)](_0x5185de['toString']()))&&!this[_0x1a80e7(0x24b)](_0xb67a68,_0x5185de,_0x343555)&&!_0x54c820[typeof _0x5185de!=_0x1a80e7(0x245)?_0x1a80e7(0x190)+_0x5185de[_0x1a80e7(0x252)]():_0x5185de]){if(_0x27b1f3++,_0x343555['autoExpandPropertyCount']++,_0x27b1f3>_0x8e5ed5){_0x1126df=!0x0;break;}if(!_0x343555[_0x1a80e7(0x1df)]&&_0x343555[_0x1a80e7(0x256)]&&_0x343555[_0x1a80e7(0x18e)]>_0x343555[_0x1a80e7(0x226)]){_0x1126df=!0x0;break;}_0x34253b[_0x1a80e7(0x1ee)](_0x2e1ba4['_addObjectProperty'](_0x2b83b2,_0x54c820,_0xb67a68,_0x4219e3,_0x5185de,_0x343555));}}}}}if(_0xf6d2f1['type']=_0x4219e3,_0x142217?(_0xf6d2f1['value']=_0xb67a68[_0x1a80e7(0x23a)](),this[_0x1a80e7(0x278)](_0x4219e3,_0xf6d2f1,_0x343555,_0x5d37cf)):_0x4219e3===_0x1a80e7(0x1d9)?_0xf6d2f1[_0x1a80e7(0x21e)]=this[_0x1a80e7(0x21b)]['call'](_0xb67a68):_0x4219e3===_0x1a80e7(0x265)?_0xf6d2f1[_0x1a80e7(0x21e)]=_0xb67a68[_0x1a80e7(0x252)]():_0x4219e3==='RegExp'?_0xf6d2f1[_0x1a80e7(0x21e)]=this[_0x1a80e7(0x1e3)]['call'](_0xb67a68):_0x4219e3===_0x1a80e7(0x245)&&this[_0x1a80e7(0x230)]?_0xf6d2f1[_0x1a80e7(0x21e)]=this[_0x1a80e7(0x230)][_0x1a80e7(0x248)][_0x1a80e7(0x252)]['call'](_0xb67a68):!_0x343555[_0x1a80e7(0x18f)]&&!(_0x4219e3==='null'||_0x4219e3===_0x1a80e7(0x1f0))&&(delete _0xf6d2f1[_0x1a80e7(0x21e)],_0xf6d2f1[_0x1a80e7(0x1ac)]=!0x0),_0x1126df&&(_0xf6d2f1[_0x1a80e7(0x275)]=!0x0),_0xd70531=_0x343555[_0x1a80e7(0x1ae)][_0x1a80e7(0x1a3)],_0x343555[_0x1a80e7(0x1ae)][_0x1a80e7(0x1a3)]=_0xf6d2f1,this[_0x1a80e7(0x27a)](_0xf6d2f1,_0x343555),_0x34253b[_0x1a80e7(0x218)]){for(_0x5322c7=0x0,_0x39fd10=_0x34253b[_0x1a80e7(0x218)];_0x5322c7<_0x39fd10;_0x5322c7++)_0x34253b[_0x5322c7](_0x5322c7);}_0x2b83b2[_0x1a80e7(0x218)]&&(_0xf6d2f1[_0x1a80e7(0x28b)]=_0x2b83b2);}catch(_0x2a9b1c){_0x5c4d30(_0x2a9b1c,_0xf6d2f1,_0x343555);}this['_additionalMetadata'](_0xb67a68,_0xf6d2f1),this['_treeNodePropertiesAfterFullValue'](_0xf6d2f1,_0x343555),_0x343555['node'][_0x1a80e7(0x1a3)]=_0xd70531,_0x343555[_0x1a80e7(0x290)]--,_0x343555[_0x1a80e7(0x256)]=_0x3464f1,_0x343555[_0x1a80e7(0x256)]&&_0x343555['autoExpandPreviousObjects'][_0x1a80e7(0x266)]();}finally{_0x55edd8&&(_0x7006f9[_0x1a80e7(0x260)][_0x1a80e7(0x250)]=_0x55edd8),_0x25b8ac&&(_0x7006f9[_0x1a80e7(0x260)][_0x1a80e7(0x287)]=_0x25b8ac),_0x7006f9['ninjaSuppressConsole']=_0x271c10;}return _0xf6d2f1;},_0x19f4cf[_0x3c6086(0x248)][_0x3c6086(0x270)]=function(_0x4f33b9){var _0x2f7f50=_0x3c6086;return Object['getOwnPropertySymbols']?Object[_0x2f7f50(0x24e)](_0x4f33b9):[];},_0x19f4cf[_0x3c6086(0x248)][_0x3c6086(0x242)]=function(_0x7a62c5){var _0x243c5b=_0x3c6086;return!!(_0x7a62c5&&_0x7006f9[_0x243c5b(0x237)]&&this[_0x243c5b(0x24c)](_0x7a62c5)===_0x243c5b(0x1f1)&&_0x7a62c5[_0x243c5b(0x25a)]);},_0x19f4cf[_0x3c6086(0x248)]['_blacklistedProperty']=function(_0x214a0f,_0xafeeb7,_0x13f15c){var _0xd845a3=_0x3c6086;if(!_0x13f15c['resolveGetters']){let _0x139fd5=this[_0xd845a3(0x1b5)](_0x214a0f,_0xafeeb7);if(_0x139fd5&&_0x139fd5[_0xd845a3(0x20d)])return!0x0;}return _0x13f15c[_0xd845a3(0x288)]?typeof _0x214a0f[_0xafeeb7]=='function':!0x1;},_0x19f4cf[_0x3c6086(0x248)][_0x3c6086(0x204)]=function(_0x2185c0){var _0xe9c7c7=_0x3c6086,_0x16bc00='';return _0x16bc00=typeof _0x2185c0,_0x16bc00===_0xe9c7c7(0x1e0)?this[_0xe9c7c7(0x24c)](_0x2185c0)==='[object\\x20Array]'?_0x16bc00=_0xe9c7c7(0x1fb):this[_0xe9c7c7(0x24c)](_0x2185c0)===_0xe9c7c7(0x236)?_0x16bc00=_0xe9c7c7(0x1d9):this[_0xe9c7c7(0x24c)](_0x2185c0)==='[object\\x20BigInt]'?_0x16bc00=_0xe9c7c7(0x265):_0x2185c0===null?_0x16bc00=_0xe9c7c7(0x1fd):_0x2185c0[_0xe9c7c7(0x1ff)]&&(_0x16bc00=_0x2185c0[_0xe9c7c7(0x1ff)][_0xe9c7c7(0x27b)]||_0x16bc00):_0x16bc00===_0xe9c7c7(0x1f0)&&this[_0xe9c7c7(0x267)]&&_0x2185c0 instanceof this['_HTMLAllCollection']&&(_0x16bc00=_0xe9c7c7(0x277)),_0x16bc00;},_0x19f4cf[_0x3c6086(0x248)][_0x3c6086(0x24c)]=function(_0x3bdddc){var _0x1f3713=_0x3c6086;return Object[_0x1f3713(0x248)][_0x1f3713(0x252)][_0x1f3713(0x219)](_0x3bdddc);},_0x19f4cf[_0x3c6086(0x248)]['_isPrimitiveType']=function(_0x58d909){var _0x41529c=_0x3c6086;return _0x58d909===_0x41529c(0x28c)||_0x58d909==='string'||_0x58d909===_0x41529c(0x19e);},_0x19f4cf[_0x3c6086(0x248)]['_isPrimitiveWrapperType']=function(_0x365e9b){var _0x121bda=_0x3c6086;return _0x365e9b===_0x121bda(0x269)||_0x365e9b===_0x121bda(0x225)||_0x365e9b===_0x121bda(0x23b);},_0x19f4cf[_0x3c6086(0x248)][_0x3c6086(0x208)]=function(_0x4b6879,_0x38e8f7,_0x460795,_0x5471e5,_0x2ea0bb,_0x4db368){var _0x348daa=this;return function(_0x101d0d){var _0xafc02e=_0x144e,_0x4a4c38=_0x2ea0bb['node']['current'],_0x34fdd6=_0x2ea0bb[_0xafc02e(0x1ae)][_0xafc02e(0x1dc)],_0x2d01b3=_0x2ea0bb[_0xafc02e(0x1ae)]['parent'];_0x2ea0bb[_0xafc02e(0x1ae)][_0xafc02e(0x1d7)]=_0x4a4c38,_0x2ea0bb[_0xafc02e(0x1ae)][_0xafc02e(0x1dc)]=typeof _0x5471e5==_0xafc02e(0x19e)?_0x5471e5:_0x101d0d,_0x4b6879[_0xafc02e(0x1ee)](_0x348daa[_0xafc02e(0x247)](_0x38e8f7,_0x460795,_0x5471e5,_0x2ea0bb,_0x4db368)),_0x2ea0bb[_0xafc02e(0x1ae)]['parent']=_0x2d01b3,_0x2ea0bb['node'][_0xafc02e(0x1dc)]=_0x34fdd6;};},_0x19f4cf[_0x3c6086(0x248)][_0x3c6086(0x1ca)]=function(_0x1be84c,_0x49343b,_0x191a06,_0x287134,_0x5b7200,_0x52d6d2,_0x529cab){var _0x3917a7=_0x3c6086,_0xf24cbd=this;return _0x49343b[typeof _0x5b7200!='symbol'?_0x3917a7(0x190)+_0x5b7200[_0x3917a7(0x252)]():_0x5b7200]=!0x0,function(_0x43cd49){var _0x5762cb=_0x3917a7,_0x342023=_0x52d6d2[_0x5762cb(0x1ae)][_0x5762cb(0x1a3)],_0xb50d39=_0x52d6d2[_0x5762cb(0x1ae)][_0x5762cb(0x1dc)],_0x10d2a0=_0x52d6d2['node'][_0x5762cb(0x1d7)];_0x52d6d2[_0x5762cb(0x1ae)]['parent']=_0x342023,_0x52d6d2['node']['index']=_0x43cd49,_0x1be84c['push'](_0xf24cbd['_property'](_0x191a06,_0x287134,_0x5b7200,_0x52d6d2,_0x529cab)),_0x52d6d2['node']['parent']=_0x10d2a0,_0x52d6d2[_0x5762cb(0x1ae)][_0x5762cb(0x1dc)]=_0xb50d39;};},_0x19f4cf[_0x3c6086(0x248)]['_property']=function(_0x635d3f,_0x21db98,_0x10dd1e,_0x7749b7,_0x5a54da){var _0x218fd7=_0x3c6086,_0x506641=this;_0x5a54da||(_0x5a54da=function(_0x2ec64f,_0x4ad5a9){return _0x2ec64f[_0x4ad5a9];});var _0x1ec329=_0x10dd1e[_0x218fd7(0x252)](),_0x15a99b=_0x7749b7[_0x218fd7(0x1de)]||{},_0x74035d=_0x7749b7['depth'],_0x4ea28c=_0x7749b7[_0x218fd7(0x1df)];try{var _0x458c9d=this[_0x218fd7(0x1bd)](_0x635d3f),_0x2ce9fd=_0x1ec329;_0x458c9d&&_0x2ce9fd[0x0]==='\\x27'&&(_0x2ce9fd=_0x2ce9fd['substr'](0x1,_0x2ce9fd[_0x218fd7(0x218)]-0x2));var _0x59a7f7=_0x7749b7[_0x218fd7(0x1de)]=_0x15a99b[_0x218fd7(0x190)+_0x2ce9fd];_0x59a7f7&&(_0x7749b7['depth']=_0x7749b7['depth']+0x1),_0x7749b7[_0x218fd7(0x1df)]=!!_0x59a7f7;var _0x3e6b0c=typeof _0x10dd1e=='symbol',_0x64350a={'name':_0x3e6b0c||_0x458c9d?_0x1ec329:this['_propertyName'](_0x1ec329)};if(_0x3e6b0c&&(_0x64350a[_0x218fd7(0x245)]=!0x0),!(_0x21db98===_0x218fd7(0x1fb)||_0x21db98==='Error')){var _0x12d22a=this['_getOwnPropertyDescriptor'](_0x635d3f,_0x10dd1e);if(_0x12d22a&&(_0x12d22a[_0x218fd7(0x206)]&&(_0x64350a[_0x218fd7(0x282)]=!0x0),_0x12d22a[_0x218fd7(0x20d)]&&!_0x59a7f7&&!_0x7749b7[_0x218fd7(0x23c)]))return _0x64350a[_0x218fd7(0x22b)]=!0x0,this[_0x218fd7(0x1b1)](_0x64350a,_0x7749b7),_0x64350a;}var _0x339f14;try{_0x339f14=_0x5a54da(_0x635d3f,_0x10dd1e);}catch(_0x169762){return _0x64350a={'name':_0x1ec329,'type':_0x218fd7(0x26d),'error':_0x169762[_0x218fd7(0x1cd)]},this[_0x218fd7(0x1b1)](_0x64350a,_0x7749b7),_0x64350a;}var _0x441eba=this[_0x218fd7(0x204)](_0x339f14),_0x494119=this[_0x218fd7(0x200)](_0x441eba);if(_0x64350a['type']=_0x441eba,_0x494119)this['_processTreeNodeResult'](_0x64350a,_0x7749b7,_0x339f14,function(){var _0x1f1099=_0x218fd7;_0x64350a['value']=_0x339f14[_0x1f1099(0x23a)](),!_0x59a7f7&&_0x506641[_0x1f1099(0x278)](_0x441eba,_0x64350a,_0x7749b7,{});});else{var _0x24e191=_0x7749b7[_0x218fd7(0x256)]&&_0x7749b7['level']<_0x7749b7['autoExpandMaxDepth']&&_0x7749b7[_0x218fd7(0x232)][_0x218fd7(0x20c)](_0x339f14)<0x0&&_0x441eba!==_0x218fd7(0x1eb)&&_0x7749b7[_0x218fd7(0x18e)]<_0x7749b7[_0x218fd7(0x226)];_0x24e191||_0x7749b7['level']<_0x74035d||_0x59a7f7?this[_0x218fd7(0x19d)](_0x64350a,_0x339f14,_0x7749b7,_0x59a7f7||{}):this[_0x218fd7(0x1b1)](_0x64350a,_0x7749b7,_0x339f14,function(){var _0x58cb29=_0x218fd7;_0x441eba===_0x58cb29(0x1fd)||_0x441eba===_0x58cb29(0x1f0)||(delete _0x64350a[_0x58cb29(0x21e)],_0x64350a[_0x58cb29(0x1ac)]=!0x0);});}return _0x64350a;}finally{_0x7749b7[_0x218fd7(0x1de)]=_0x15a99b,_0x7749b7[_0x218fd7(0x18f)]=_0x74035d,_0x7749b7['isExpressionToEvaluate']=_0x4ea28c;}},_0x19f4cf[_0x3c6086(0x248)][_0x3c6086(0x278)]=function(_0x1af9b9,_0x3b9fcc,_0x2e957e,_0x18c38e){var _0x464e50=_0x3c6086,_0x110c7e=_0x18c38e[_0x464e50(0x18d)]||_0x2e957e[_0x464e50(0x18d)];if((_0x1af9b9===_0x464e50(0x22e)||_0x1af9b9===_0x464e50(0x225))&&_0x3b9fcc[_0x464e50(0x21e)]){let _0x2d55b4=_0x3b9fcc[_0x464e50(0x21e)][_0x464e50(0x218)];_0x2e957e[_0x464e50(0x198)]+=_0x2d55b4,_0x2e957e['allStrLength']>_0x2e957e['totalStrLength']?(_0x3b9fcc[_0x464e50(0x1ac)]='',delete _0x3b9fcc[_0x464e50(0x21e)]):_0x2d55b4>_0x110c7e&&(_0x3b9fcc[_0x464e50(0x1ac)]=_0x3b9fcc[_0x464e50(0x21e)][_0x464e50(0x274)](0x0,_0x110c7e),delete _0x3b9fcc['value']);}},_0x19f4cf[_0x3c6086(0x248)][_0x3c6086(0x1bd)]=function(_0x5e7ca0){var _0x59035c=_0x3c6086;return!!(_0x5e7ca0&&_0x7006f9[_0x59035c(0x1a4)]&&this[_0x59035c(0x24c)](_0x5e7ca0)==='[object\\x20Map]'&&_0x5e7ca0[_0x59035c(0x25a)]);},_0x19f4cf[_0x3c6086(0x248)][_0x3c6086(0x1ef)]=function(_0x5eb789){var _0x59c4af=_0x3c6086;if(_0x5eb789[_0x59c4af(0x1d8)](/^\\d+$/))return _0x5eb789;var _0x6f4049;try{_0x6f4049=JSON['stringify'](''+_0x5eb789);}catch{_0x6f4049='\\x22'+this['_objectToString'](_0x5eb789)+'\\x22';}return _0x6f4049[_0x59c4af(0x1d8)](/^\"([a-zA-Z_][a-zA-Z_0-9]*)\"$/)?_0x6f4049=_0x6f4049[_0x59c4af(0x274)](0x1,_0x6f4049[_0x59c4af(0x218)]-0x2):_0x6f4049=_0x6f4049[_0x59c4af(0x1c1)](/'/g,'\\x5c\\x27')[_0x59c4af(0x1c1)](/\\\\\"/g,'\\x22')[_0x59c4af(0x1c1)](/(^\"|\"$)/g,'\\x27'),_0x6f4049;},_0x19f4cf[_0x3c6086(0x248)][_0x3c6086(0x1b1)]=function(_0x12236f,_0x323a87,_0x3b934c,_0x1e9718){var _0x481556=_0x3c6086;this[_0x481556(0x27a)](_0x12236f,_0x323a87),_0x1e9718&&_0x1e9718(),this['_additionalMetadata'](_0x3b934c,_0x12236f),this[_0x481556(0x276)](_0x12236f,_0x323a87);},_0x19f4cf['prototype'][_0x3c6086(0x27a)]=function(_0x9b7d7,_0x531a32){var _0x39a3d2=_0x3c6086;this[_0x39a3d2(0x1d3)](_0x9b7d7,_0x531a32),this[_0x39a3d2(0x233)](_0x9b7d7,_0x531a32),this[_0x39a3d2(0x28d)](_0x9b7d7,_0x531a32),this[_0x39a3d2(0x1e4)](_0x9b7d7,_0x531a32);},_0x19f4cf[_0x3c6086(0x248)][_0x3c6086(0x1d3)]=function(_0x2c56fa,_0x1dc65d){},_0x19f4cf[_0x3c6086(0x248)][_0x3c6086(0x233)]=function(_0x41e9f0,_0x3d4648){},_0x19f4cf['prototype'][_0x3c6086(0x1fa)]=function(_0x76a824,_0x28a743){},_0x19f4cf[_0x3c6086(0x248)]['_isUndefined']=function(_0x5e0272){var _0x39897e=_0x3c6086;return _0x5e0272===this[_0x39897e(0x199)];},_0x19f4cf['prototype'][_0x3c6086(0x276)]=function(_0x43a195,_0x3d767d){var _0x12bbf2=_0x3c6086;this[_0x12bbf2(0x1fa)](_0x43a195,_0x3d767d),this[_0x12bbf2(0x193)](_0x43a195),_0x3d767d[_0x12bbf2(0x224)]&&this['_sortProps'](_0x43a195),this['_addFunctionsNode'](_0x43a195,_0x3d767d),this[_0x12bbf2(0x1f4)](_0x43a195,_0x3d767d),this[_0x12bbf2(0x1ad)](_0x43a195);},_0x19f4cf[_0x3c6086(0x248)][_0x3c6086(0x1dd)]=function(_0x56ec12,_0x20a37b){var _0x56654b=_0x3c6086;try{_0x56ec12&&typeof _0x56ec12['length']==_0x56654b(0x19e)&&(_0x20a37b[_0x56654b(0x218)]=_0x56ec12[_0x56654b(0x218)]);}catch{}if(_0x20a37b[_0x56654b(0x217)]===_0x56654b(0x19e)||_0x20a37b['type']==='Number'){if(isNaN(_0x20a37b[_0x56654b(0x21e)]))_0x20a37b[_0x56654b(0x1d1)]=!0x0,delete _0x20a37b[_0x56654b(0x21e)];else switch(_0x20a37b[_0x56654b(0x21e)]){case Number[_0x56654b(0x241)]:_0x20a37b[_0x56654b(0x249)]=!0x0,delete _0x20a37b[_0x56654b(0x21e)];break;case Number[_0x56654b(0x1c3)]:_0x20a37b[_0x56654b(0x24a)]=!0x0,delete _0x20a37b[_0x56654b(0x21e)];break;case 0x0:this['_isNegativeZero'](_0x20a37b[_0x56654b(0x21e)])&&(_0x20a37b['negativeZero']=!0x0);break;}}else _0x20a37b[_0x56654b(0x217)]===_0x56654b(0x1eb)&&typeof _0x56ec12[_0x56654b(0x27b)]=='string'&&_0x56ec12[_0x56654b(0x27b)]&&_0x20a37b[_0x56654b(0x27b)]&&_0x56ec12[_0x56654b(0x27b)]!==_0x20a37b[_0x56654b(0x27b)]&&(_0x20a37b[_0x56654b(0x202)]=_0x56ec12[_0x56654b(0x27b)]);},_0x19f4cf[_0x3c6086(0x248)]['_isNegativeZero']=function(_0x238f88){var _0x288ca6=_0x3c6086;return 0x1/_0x238f88===Number[_0x288ca6(0x1c3)];},_0x19f4cf['prototype'][_0x3c6086(0x26a)]=function(_0x1b952c){var _0x35562f=_0x3c6086;!_0x1b952c[_0x35562f(0x28b)]||!_0x1b952c[_0x35562f(0x28b)]['length']||_0x1b952c[_0x35562f(0x217)]===_0x35562f(0x1fb)||_0x1b952c[_0x35562f(0x217)]===_0x35562f(0x1a4)||_0x1b952c[_0x35562f(0x217)]===_0x35562f(0x237)||_0x1b952c['props']['sort'](function(_0x87d449,_0x3c0095){var _0x3dd97a=_0x35562f,_0x5f2d30=_0x87d449['name']['toLowerCase'](),_0x102b84=_0x3c0095[_0x3dd97a(0x27b)][_0x3dd97a(0x1f5)]();return _0x5f2d30<_0x102b84?-0x1:_0x5f2d30>_0x102b84?0x1:0x0;});},_0x19f4cf['prototype'][_0x3c6086(0x1fe)]=function(_0x42af9a,_0x497934){var _0x56ff00=_0x3c6086;if(!(_0x497934[_0x56ff00(0x288)]||!_0x42af9a[_0x56ff00(0x28b)]||!_0x42af9a[_0x56ff00(0x28b)][_0x56ff00(0x218)])){for(var _0xa45576=[],_0x21e8dd=[],_0x5cd0fd=0x0,_0x3ff8a6=_0x42af9a[_0x56ff00(0x28b)]['length'];_0x5cd0fd<_0x3ff8a6;_0x5cd0fd++){var _0x20b80e=_0x42af9a[_0x56ff00(0x28b)][_0x5cd0fd];_0x20b80e[_0x56ff00(0x217)]==='function'?_0xa45576['push'](_0x20b80e):_0x21e8dd[_0x56ff00(0x1ee)](_0x20b80e);}if(!(!_0x21e8dd['length']||_0xa45576[_0x56ff00(0x218)]<=0x1)){_0x42af9a[_0x56ff00(0x28b)]=_0x21e8dd;var _0x5d3200={'functionsNode':!0x0,'props':_0xa45576};this[_0x56ff00(0x1d3)](_0x5d3200,_0x497934),this[_0x56ff00(0x1fa)](_0x5d3200,_0x497934),this[_0x56ff00(0x193)](_0x5d3200),this[_0x56ff00(0x1e4)](_0x5d3200,_0x497934),_0x5d3200['id']+='\\x20f',_0x42af9a[_0x56ff00(0x28b)]['unshift'](_0x5d3200);}}},_0x19f4cf[_0x3c6086(0x248)][_0x3c6086(0x1f4)]=function(_0x5e3bc5,_0x5940e2){},_0x19f4cf[_0x3c6086(0x248)][_0x3c6086(0x193)]=function(_0x449a71){},_0x19f4cf['prototype'][_0x3c6086(0x273)]=function(_0x596d8d){var _0x1c830a=_0x3c6086;return Array[_0x1c830a(0x271)](_0x596d8d)||typeof _0x596d8d==_0x1c830a(0x1e0)&&this[_0x1c830a(0x24c)](_0x596d8d)==='[object\\x20Array]';},_0x19f4cf[_0x3c6086(0x248)][_0x3c6086(0x1e4)]=function(_0x5bc2a8,_0x3ab987){},_0x19f4cf['prototype'][_0x3c6086(0x1ad)]=function(_0x40ae0f){var _0x5a152a=_0x3c6086;delete _0x40ae0f['_hasSymbolPropertyOnItsPath'],delete _0x40ae0f['_hasSetOnItsPath'],delete _0x40ae0f[_0x5a152a(0x240)];},_0x19f4cf[_0x3c6086(0x248)][_0x3c6086(0x28d)]=function(_0x2b9c3f,_0x4da4ff){};let _0x4438b4=new _0x19f4cf(),_0x5118ca={'props':_0x51db40[_0x3c6086(0x255)]['props']||0x64,'elements':_0x51db40[_0x3c6086(0x255)][_0x3c6086(0x285)]||0x64,'strLength':_0x51db40[_0x3c6086(0x255)][_0x3c6086(0x18d)]||0x400*0x32,'totalStrLength':_0x51db40[_0x3c6086(0x255)]['totalStrLength']||0x400*0x32,'autoExpandLimit':_0x51db40[_0x3c6086(0x255)]['autoExpandLimit']||0x1388,'autoExpandMaxDepth':_0x51db40[_0x3c6086(0x255)][_0x3c6086(0x211)]||0xa},_0x466042={'props':_0x51db40[_0x3c6086(0x195)]['props']||0x5,'elements':_0x51db40['reducedLimits'][_0x3c6086(0x285)]||0x5,'strLength':_0x51db40[_0x3c6086(0x195)][_0x3c6086(0x18d)]||0x100,'totalStrLength':_0x51db40[_0x3c6086(0x195)][_0x3c6086(0x259)]||0x100*0x3,'autoExpandLimit':_0x51db40['reducedLimits'][_0x3c6086(0x226)]||0x1e,'autoExpandMaxDepth':_0x51db40['reducedLimits']['autoExpandMaxDepth']||0x2};if(_0x47ca71){let _0x50c280=_0x4438b4[_0x3c6086(0x19d)][_0x3c6086(0x1b0)](_0x4438b4);_0x4438b4[_0x3c6086(0x19d)]=function(_0x1edab9,_0xf28fb1,_0x5c6f61,_0x406d25){return _0x50c280(_0x1edab9,_0x47ca71(_0xf28fb1),_0x5c6f61,_0x406d25);};}function _0x4ca450(_0x14f75c,_0x268784,_0x3b71c1,_0x900401,_0x12f238,_0x17f652){var _0x300ae7=_0x3c6086;let _0x586238,_0x39c563;try{_0x39c563=_0x3f6e38(),_0x586238=_0x3a1421[_0x268784],!_0x586238||_0x39c563-_0x586238['ts']>_0x1fa17f[_0x300ae7(0x263)][_0x300ae7(0x1f9)]&&_0x586238[_0x300ae7(0x27c)]&&_0x586238[_0x300ae7(0x28e)]/_0x586238['count']<_0x1fa17f['perLogpoint'][_0x300ae7(0x210)]?(_0x3a1421[_0x268784]=_0x586238={'count':0x0,'time':0x0,'ts':_0x39c563},_0x3a1421[_0x300ae7(0x213)]={}):_0x39c563-_0x3a1421[_0x300ae7(0x213)]['ts']>_0x1fa17f[_0x300ae7(0x1f3)][_0x300ae7(0x1f9)]&&_0x3a1421[_0x300ae7(0x213)]['count']&&_0x3a1421[_0x300ae7(0x213)]['time']/_0x3a1421[_0x300ae7(0x213)][_0x300ae7(0x27c)]<_0x1fa17f['global'][_0x300ae7(0x210)]&&(_0x3a1421['hits']={});let _0x2acf1b=[],_0x7b7d=_0x586238[_0x300ae7(0x197)]||_0x3a1421[_0x300ae7(0x213)][_0x300ae7(0x197)]?_0x466042:_0x5118ca,_0x4b552a=_0x1a2023=>{var _0x18ffaf=_0x300ae7;let _0x4cf528={};return _0x4cf528[_0x18ffaf(0x28b)]=_0x1a2023[_0x18ffaf(0x28b)],_0x4cf528[_0x18ffaf(0x285)]=_0x1a2023['elements'],_0x4cf528[_0x18ffaf(0x18d)]=_0x1a2023[_0x18ffaf(0x18d)],_0x4cf528['totalStrLength']=_0x1a2023['totalStrLength'],_0x4cf528[_0x18ffaf(0x226)]=_0x1a2023[_0x18ffaf(0x226)],_0x4cf528[_0x18ffaf(0x211)]=_0x1a2023[_0x18ffaf(0x211)],_0x4cf528['sortProps']=!0x1,_0x4cf528['noFunctions']=!_0x594254,_0x4cf528[_0x18ffaf(0x18f)]=0x1,_0x4cf528[_0x18ffaf(0x290)]=0x0,_0x4cf528[_0x18ffaf(0x191)]=_0x18ffaf(0x22d),_0x4cf528['rootExpression']=_0x18ffaf(0x1b3),_0x4cf528[_0x18ffaf(0x256)]=!0x0,_0x4cf528['autoExpandPreviousObjects']=[],_0x4cf528[_0x18ffaf(0x18e)]=0x0,_0x4cf528[_0x18ffaf(0x23c)]=_0x51db40[_0x18ffaf(0x23c)],_0x4cf528['allStrLength']=0x0,_0x4cf528[_0x18ffaf(0x1ae)]={'current':void 0x0,'parent':void 0x0,'index':0x0},_0x4cf528;};for(var _0x44c190=0x0;_0x44c190<_0x12f238['length'];_0x44c190++)_0x2acf1b['push'](_0x4438b4['serialize']({'timeNode':_0x14f75c===_0x300ae7(0x28e)||void 0x0},_0x12f238[_0x44c190],_0x4b552a(_0x7b7d),{}));if(_0x14f75c===_0x300ae7(0x1da)||_0x14f75c==='error'){let _0x3d6956=Error['stackTraceLimit'];try{Error[_0x300ae7(0x1af)]=0x1/0x0,_0x2acf1b[_0x300ae7(0x1ee)](_0x4438b4['serialize']({'stackNode':!0x0},new Error()[_0x300ae7(0x23e)],_0x4b552a(_0x7b7d),{'strLength':0x1/0x0}));}finally{Error[_0x300ae7(0x1af)]=_0x3d6956;}}return{'method':'log','version':_0x2d0150,'args':[{'ts':_0x3b71c1,'session':_0x900401,'args':_0x2acf1b,'id':_0x268784,'context':_0x17f652}]};}catch(_0x36cd2b){return{'method':_0x300ae7(0x21d),'version':_0x2d0150,'args':[{'ts':_0x3b71c1,'session':_0x900401,'args':[{'type':_0x300ae7(0x26d),'error':_0x36cd2b&&_0x36cd2b[_0x300ae7(0x1cd)]}],'id':_0x268784,'context':_0x17f652}]};}finally{try{if(_0x586238&&_0x39c563){let _0x47bfe5=_0x3f6e38();_0x586238[_0x300ae7(0x27c)]++,_0x586238[_0x300ae7(0x28e)]+=_0x3e7afc(_0x39c563,_0x47bfe5),_0x586238['ts']=_0x47bfe5,_0x3a1421[_0x300ae7(0x213)][_0x300ae7(0x27c)]++,_0x3a1421[_0x300ae7(0x213)][_0x300ae7(0x28e)]+=_0x3e7afc(_0x39c563,_0x47bfe5),_0x3a1421['hits']['ts']=_0x47bfe5,(_0x586238[_0x300ae7(0x27c)]>_0x1fa17f['perLogpoint']['reduceOnCount']||_0x586238[_0x300ae7(0x28e)]>_0x1fa17f[_0x300ae7(0x263)][_0x300ae7(0x24d)])&&(_0x586238[_0x300ae7(0x197)]=!0x0),(_0x3a1421[_0x300ae7(0x213)]['count']>_0x1fa17f[_0x300ae7(0x1f3)][_0x300ae7(0x27f)]||_0x3a1421[_0x300ae7(0x213)][_0x300ae7(0x28e)]>_0x1fa17f['global'][_0x300ae7(0x24d)])&&(_0x3a1421[_0x300ae7(0x213)]['reduceLimits']=!0x0);}}catch{}}}return _0x4ca450;}function G(_0x4efc78){var _0x1798af=_0x97a9b6;if(_0x4efc78&&typeof _0x4efc78==_0x1798af(0x1e0)&&_0x4efc78[_0x1798af(0x1ff)])switch(_0x4efc78['constructor']['name']){case _0x1798af(0x234):return _0x4efc78['hasOwnProperty'](Symbol['iterator'])?Promise[_0x1798af(0x1f6)]():_0x4efc78;case _0x1798af(0x281):return Promise[_0x1798af(0x1f6)]();}return _0x4efc78;}((_0x2db4c5,_0x5411b0,_0x43f106,_0x3209ba,_0x3793e6,_0x47e341,_0xb8a422,_0x37f6f4,_0x52346a,_0x1596eb,_0x5ec18f,_0x1e14be)=>{var _0x3a0371=_0x97a9b6;if(_0x2db4c5[_0x3a0371(0x209)])return _0x2db4c5[_0x3a0371(0x209)];let _0x490a28={'consoleLog':()=>{},'consoleTrace':()=>{},'consoleTime':()=>{},'consoleTimeEnd':()=>{},'autoLog':()=>{},'autoLogMany':()=>{},'autoTraceMany':()=>{},'coverage':()=>{},'autoTrace':()=>{},'autoTime':()=>{},'autoTimeEnd':()=>{}};if(!X(_0x2db4c5,_0x37f6f4,_0x3793e6))return _0x2db4c5[_0x3a0371(0x209)]=_0x490a28,_0x2db4c5[_0x3a0371(0x209)];let _0x1bcacb=b(_0x2db4c5),_0x17d074=_0x1bcacb[_0x3a0371(0x21f)],_0x34ac9a=_0x1bcacb[_0x3a0371(0x1c9)],_0x52fcb7=_0x1bcacb['now'],_0x1ec08d={'hits':{},'ts':{}},_0x18b4dd=J(_0x2db4c5,_0x52346a,_0x1ec08d,_0x47e341,_0x1e14be,_0x3793e6===_0x3a0371(0x1e9)?G:void 0x0),_0x191985=(_0xa45646,_0x1de4f0,_0x3af546,_0x51d75f,_0x197f58,_0x24c737)=>{var _0x3891c0=_0x3a0371;let _0x427599=_0x2db4c5[_0x3891c0(0x209)];try{return _0x2db4c5[_0x3891c0(0x209)]=_0x490a28,_0x18b4dd(_0xa45646,_0x1de4f0,_0x3af546,_0x51d75f,_0x197f58,_0x24c737);}finally{_0x2db4c5[_0x3891c0(0x209)]=_0x427599;}},_0x446d3b=_0x3f009a=>{_0x1ec08d['ts'][_0x3f009a]=_0x34ac9a();},_0x5cca3e=(_0x4bf3fb,_0x49260f)=>{var _0x144555=_0x3a0371;let _0xa694d1=_0x1ec08d['ts'][_0x49260f];if(delete _0x1ec08d['ts'][_0x49260f],_0xa694d1){let _0x23557b=_0x17d074(_0xa694d1,_0x34ac9a());_0x41354c(_0x191985(_0x144555(0x28e),_0x4bf3fb,_0x52fcb7(),_0x3794e8,[_0x23557b],_0x49260f));}},_0x45a4e2=_0x46248a=>{var _0x5c084e=_0x3a0371,_0x324883;return _0x3793e6===_0x5c084e(0x1e9)&&_0x2db4c5[_0x5c084e(0x1d4)]&&((_0x324883=_0x46248a==null?void 0x0:_0x46248a[_0x5c084e(0x25f)])==null?void 0x0:_0x324883['length'])&&(_0x46248a[_0x5c084e(0x25f)][0x0][_0x5c084e(0x1d4)]=_0x2db4c5[_0x5c084e(0x1d4)]),_0x46248a;};_0x2db4c5[_0x3a0371(0x209)]={'consoleLog':(_0x9f7081,_0x45fd7d)=>{var _0x54f953=_0x3a0371;_0x2db4c5[_0x54f953(0x260)]['log'][_0x54f953(0x27b)]!==_0x54f953(0x1c2)&&_0x41354c(_0x191985('log',_0x9f7081,_0x52fcb7(),_0x3794e8,_0x45fd7d));},'consoleTrace':(_0x5233a3,_0x4346cc)=>{var _0x2b4567=_0x3a0371,_0x2de76b,_0xd69dfe;_0x2db4c5[_0x2b4567(0x260)][_0x2b4567(0x21d)][_0x2b4567(0x27b)]!=='disabledTrace'&&((_0xd69dfe=(_0x2de76b=_0x2db4c5[_0x2b4567(0x243)])==null?void 0x0:_0x2de76b[_0x2b4567(0x1bf)])!=null&&_0xd69dfe['node']&&(_0x2db4c5[_0x2b4567(0x257)]=!0x0),_0x41354c(_0x45a4e2(_0x191985(_0x2b4567(0x1da),_0x5233a3,_0x52fcb7(),_0x3794e8,_0x4346cc))));},'consoleError':(_0x56b664,_0x2b5454)=>{var _0x15042f=_0x3a0371;_0x2db4c5['_ninjaIgnoreNextError']=!0x0,_0x41354c(_0x45a4e2(_0x191985(_0x15042f(0x250),_0x56b664,_0x52fcb7(),_0x3794e8,_0x2b5454)));},'consoleTime':_0x11af1e=>{_0x446d3b(_0x11af1e);},'consoleTimeEnd':(_0x4ebaea,_0x48c859)=>{_0x5cca3e(_0x48c859,_0x4ebaea);},'autoLog':(_0x22135d,_0x1eefa8)=>{_0x41354c(_0x191985('log',_0x1eefa8,_0x52fcb7(),_0x3794e8,[_0x22135d]));},'autoLogMany':(_0x4bbb09,_0x5c2d39)=>{var _0x177ddd=_0x3a0371;_0x41354c(_0x191985(_0x177ddd(0x21d),_0x4bbb09,_0x52fcb7(),_0x3794e8,_0x5c2d39));},'autoTrace':(_0x66f99,_0x2e2e01)=>{var _0x387322=_0x3a0371;_0x41354c(_0x45a4e2(_0x191985(_0x387322(0x1da),_0x2e2e01,_0x52fcb7(),_0x3794e8,[_0x66f99])));},'autoTraceMany':(_0x2b4410,_0x25e267)=>{var _0x209e04=_0x3a0371;_0x41354c(_0x45a4e2(_0x191985(_0x209e04(0x1da),_0x2b4410,_0x52fcb7(),_0x3794e8,_0x25e267)));},'autoTime':(_0x24107f,_0x5badd8,_0x3d58d5)=>{_0x446d3b(_0x3d58d5);},'autoTimeEnd':(_0x16bbf6,_0x362b46,_0x10b761)=>{_0x5cca3e(_0x362b46,_0x10b761);},'coverage':_0x4f8dbd=>{var _0x32f2b4=_0x3a0371;_0x41354c({'method':_0x32f2b4(0x27e),'version':_0x47e341,'args':[{'id':_0x4f8dbd}]});}};let _0x41354c=H(_0x2db4c5,_0x5411b0,_0x43f106,_0x3209ba,_0x3793e6,_0x1596eb,_0x5ec18f),_0x3794e8=_0x2db4c5['_console_ninja_session'];return _0x2db4c5[_0x3a0371(0x209)];})(globalThis,_0x97a9b6(0x1ce),'51865',_0x97a9b6(0x1cb),'jest','1.0.0',_0x97a9b6(0x254),_0x97a9b6(0x1d6),_0x97a9b6(0x1cc),_0x97a9b6(0x1f2),_0x97a9b6(0x21c),_0x97a9b6(0x279));");}catch(e){console.error(e);}};/* istanbul ignore next */function oo_oo(i:string,...v:any[]){try{oo_cm().consoleLog(i, v);}catch(e){} return v};oo_oo;/* istanbul ignore next */function oo_tr(i:string,...v:any[]){try{oo_cm().consoleTrace(i, v);}catch(e){} return v};oo_tr;/* istanbul ignore next */function oo_tx(i:string,...v:any[]){try{oo_cm().consoleError(i, v);}catch(e){} return v};oo_tx;/* istanbul ignore next */function oo_ts(v?:string):string{try{oo_cm().consoleTime(v);}catch(e){} return v as string;};oo_ts;/* istanbul ignore next */function oo_te(v:string|undefined, i:string):string{try{oo_cm().consoleTimeEnd(v, i);}catch(e){} return v as string;};oo_te;/*eslint unicorn/no-abusive-eslint-disable:,eslint-comments/disable-enable-pair:,eslint-comments/no-unlimited-disable:,eslint-comments/no-aggregating-enable:,eslint-comments/no-duplicate-disable:,eslint-comments/no-unused-disable:,eslint-comments/no-unused-enable:,*/ |