@maggioli-design-system/magma 2.0.0-beta.3 → 2.0.0-beta.5
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/README.md +35 -3
- package/dist/cjs/date-B28IitWe.js +24 -0
- package/dist/cjs/floating-controller-Cd_vNLLD.js +369 -0
- package/dist/cjs/floating-ui.dom-DflSHZIo.js +1688 -0
- package/dist/cjs/form-DTCBh5WK.js +22 -0
- package/dist/cjs/index--6wz7eWi.js +5183 -0
- package/dist/cjs/index.cjs.js +17 -0
- package/dist/cjs/keyboard-manager-C_Eaxw-C.js +52 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/locale-CB5_Z7PE.js +816 -0
- package/dist/cjs/magma-components.cjs.js +31 -4
- package/dist/cjs/mds-accordion-item.cjs.entry.js +7 -28
- package/dist/cjs/mds-accordion-timer-item.cjs.entry.js +8 -17
- package/dist/cjs/mds-accordion-timer.cjs.entry.js +3 -3
- package/dist/cjs/mds-accordion.cjs.entry.js +5 -22
- package/dist/cjs/mds-author.cjs.entry.js +9 -4
- package/dist/cjs/mds-avatar-stack-item.cjs.entry.js +2 -2
- package/dist/cjs/mds-avatar-stack.cjs.entry.js +5 -4
- package/dist/cjs/mds-avatar.cjs.entry.js +8 -21
- package/dist/cjs/mds-badge.cjs.entry.js +5 -26
- package/dist/cjs/mds-banner_3.cjs.entry.js +35 -70
- package/dist/cjs/mds-benchmark-bar.cjs.entry.js +2 -2
- package/dist/cjs/mds-bibliography.cjs.entry.js +2 -2
- package/dist/cjs/mds-breadcrumb-item.cjs.entry.js +3 -3
- package/dist/cjs/mds-breadcrumb.cjs.entry.js +7 -15
- package/dist/cjs/mds-button-dropdown.cjs.entry.js +3 -3
- package/dist/cjs/mds-button-group.cjs.entry.js +3 -3
- package/dist/cjs/mds-button_3.cjs.entry.js +10 -32
- package/dist/cjs/mds-calendar_2.cjs.entry.js +123 -102
- package/dist/cjs/mds-card-content.cjs.entry.js +2 -2
- package/dist/cjs/mds-card-footer.cjs.entry.js +2 -2
- package/dist/cjs/mds-card-header.cjs.entry.js +9 -4
- package/dist/cjs/mds-card-media.cjs.entry.js +2 -2
- package/dist/cjs/mds-card.cjs.entry.js +4 -21
- package/dist/cjs/mds-details.cjs.entry.js +8 -18
- package/dist/cjs/mds-dropdown.cjs.entry.js +184 -58
- package/dist/cjs/mds-emoji.cjs.entry.js +301 -181
- package/dist/cjs/mds-entity.cjs.entry.js +11 -23
- package/dist/cjs/mds-file-preview.cjs.entry.js +8 -36
- package/dist/cjs/mds-file.cjs.entry.js +6 -34
- package/dist/cjs/mds-filter-item.cjs.entry.js +6 -25
- package/dist/cjs/mds-filter.cjs.entry.js +19 -32
- package/dist/cjs/mds-header-bar.cjs.entry.js +11 -27
- package/dist/cjs/mds-header.cjs.entry.js +8 -22
- package/dist/cjs/mds-horizontal-scroll.cjs.entry.js +2 -2
- package/dist/cjs/mds-hr.cjs.entry.js +4 -17
- package/dist/cjs/mds-img.cjs.entry.js +8 -16
- package/dist/cjs/mds-input-date-range-preselection.cjs.entry.js +2 -2
- package/dist/cjs/mds-input-date-range.cjs.entry.js +57 -43
- package/dist/cjs/mds-input-date.cjs.entry.js +14 -44
- package/dist/cjs/mds-input-field.cjs.entry.js +42 -6
- package/dist/cjs/mds-input-otp.cjs.entry.js +37 -3
- package/dist/cjs/mds-input-range.cjs.entry.js +9 -29
- package/dist/cjs/mds-input-select.cjs.entry.js +11 -41
- package/dist/cjs/mds-input-switch_2.cjs.entry.js +19 -55
- package/dist/cjs/mds-input-tip_2.cjs.entry.js +8 -40
- package/dist/cjs/mds-input-upload.cjs.entry.js +34 -36
- package/dist/cjs/mds-input.cjs.entry.js +23 -52
- package/dist/cjs/mds-keyboard-key.cjs.entry.js +5 -14
- package/dist/cjs/mds-keyboard.cjs.entry.js +5 -25
- package/dist/cjs/mds-kpi-item.cjs.entry.js +12 -25
- package/dist/cjs/mds-kpi.cjs.entry.js +2 -2
- package/dist/cjs/mds-label.cjs.entry.js +7 -29
- package/dist/cjs/mds-list-item.cjs.entry.js +4 -13
- package/dist/cjs/mds-list.cjs.entry.js +1 -1
- package/dist/cjs/mds-mention.cjs.entry.js +38 -4
- package/dist/cjs/mds-modal.cjs.entry.js +54 -47
- package/dist/cjs/mds-note.cjs.entry.js +7 -35
- package/dist/cjs/mds-notification.cjs.entry.js +12 -14
- package/dist/cjs/mds-paginator-item.cjs.entry.js +5 -20
- package/dist/cjs/mds-paginator.cjs.entry.js +27 -32
- package/dist/cjs/mds-policy-ai.cjs.entry.js +5 -15
- package/dist/cjs/mds-pref-animation.cjs.entry.js +7 -23
- package/dist/cjs/mds-pref-consumption.cjs.entry.js +7 -23
- package/dist/cjs/mds-pref-contrast.cjs.entry.js +10 -24
- package/dist/cjs/mds-pref-language-item.cjs.entry.js +27 -15
- package/dist/cjs/mds-pref-language.cjs.entry.js +38 -28
- package/dist/cjs/mds-pref-mode.cjs.entry.js +273 -0
- package/dist/cjs/mds-pref-theme-item.cjs.entry.js +43 -0
- package/dist/cjs/mds-pref-theme.cjs.entry.js +147 -230
- package/dist/cjs/mds-pref.cjs.entry.js +40 -17
- package/dist/cjs/mds-price-table-features-cell.cjs.entry.js +4 -25
- package/dist/cjs/mds-price-table-features-row.cjs.entry.js +4 -25
- package/dist/cjs/mds-price-table-features.cjs.entry.js +4 -25
- package/dist/cjs/mds-price-table-header.cjs.entry.js +2 -2
- package/dist/cjs/mds-price-table-list-item.cjs.entry.js +3 -3
- package/dist/cjs/mds-price-table-list.cjs.entry.js +4 -25
- package/dist/cjs/mds-price-table.cjs.entry.js +2 -2
- package/dist/cjs/mds-progress_2.cjs.entry.js +7 -33
- package/dist/cjs/mds-push-notification-item.cjs.entry.js +16 -39
- package/dist/cjs/mds-push-notification.cjs.entry.js +7 -20
- package/dist/cjs/mds-quote.cjs.entry.js +4 -13
- package/dist/cjs/mds-radial-menu-item.cjs.entry.js +3 -3
- package/dist/cjs/mds-radial-menu.cjs.entry.js +7 -6
- package/dist/cjs/mds-separator.cjs.entry.js +4 -21
- package/dist/cjs/mds-status-bar.cjs.entry.js +4 -25
- package/dist/cjs/mds-stepper-bar-item.cjs.entry.js +14 -25
- package/dist/cjs/mds-stepper-bar.cjs.entry.js +21 -12
- package/dist/cjs/mds-tab-bar-item.cjs.entry.js +6 -27
- package/dist/cjs/mds-tab-bar.cjs.entry.js +5 -26
- package/dist/cjs/mds-tab_2.cjs.entry.js +14 -47
- package/dist/cjs/mds-table-body.cjs.entry.js +4 -13
- package/dist/cjs/mds-table-footer.cjs.entry.js +4 -13
- package/dist/cjs/mds-table-header-cell.cjs.entry.js +4 -13
- package/dist/cjs/mds-table-header.cjs.entry.js +19 -31
- package/dist/cjs/mds-table-row.cjs.entry.js +20 -29
- package/dist/cjs/mds-table.cjs.entry.js +60 -50
- package/dist/cjs/mds-text.cjs.entry.js +36 -21
- package/dist/cjs/mds-toast.cjs.entry.js +10 -27
- package/dist/cjs/mds-tooltip.cjs.entry.js +16 -27
- package/dist/cjs/mds-tree-item.cjs.entry.js +12 -14
- package/dist/cjs/mds-tree.cjs.entry.js +12 -6
- package/dist/cjs/mds-url-view.cjs.entry.js +21 -41
- package/dist/cjs/mds-usage.cjs.entry.js +5 -33
- package/dist/cjs/mds-video-wall.cjs.entry.js +8 -4
- package/dist/cjs/mds-zero.cjs.entry.js +4 -25
- package/dist/cjs/preference-eJcbLLAn.js +389 -0
- package/dist/cjs/slot-RmXfgH4P.js +69 -0
- package/dist/collection/collection-manifest.json +3 -3
- package/dist/collection/common/date.js +9 -1
- package/dist/collection/common/floating-controller.js +175 -9
- package/dist/collection/common/form.js +18 -0
- package/dist/collection/common/keyboard-manager.js +5 -5
- package/dist/collection/common/locale.js +9 -31
- package/dist/collection/common/preference.js +83 -59
- package/dist/collection/common/slot.js +14 -1
- package/dist/collection/common/yugop/random-text.js +12 -3
- package/dist/collection/components/mds-accordion/mds-accordion.css +9 -65
- package/dist/collection/components/mds-accordion/mds-accordion.js +3 -27
- package/dist/collection/components/mds-accordion-item/mds-accordion-item.css +63 -81
- package/dist/collection/components/mds-accordion-item/mds-accordion-item.js +2 -31
- package/dist/collection/components/mds-accordion-timer/mds-accordion-timer.css +2 -26
- package/dist/collection/components/mds-accordion-timer-item/mds-accordion-timer-item.css +50 -36
- package/dist/collection/components/mds-accordion-timer-item/mds-accordion-timer-item.js +2 -16
- package/dist/collection/components/mds-author/mds-author.css +4 -0
- package/dist/collection/components/mds-author/mds-author.js +14 -2
- package/dist/collection/components/mds-avatar/mds-avatar.css +125 -111
- package/dist/collection/components/mds-avatar/mds-avatar.js +6 -21
- package/dist/collection/components/mds-avatar-stack/mds-avatar-stack.css +12 -84
- package/dist/collection/components/mds-avatar-stack/mds-avatar-stack.js +3 -2
- package/dist/collection/components/mds-avatar-stack-item/mds-avatar-stack-item.css +6 -24
- package/dist/collection/components/mds-badge/mds-badge.css +168 -155
- package/dist/collection/components/mds-badge/mds-badge.js +2 -31
- package/dist/collection/components/mds-banner/mds-banner.css +149 -192
- package/dist/collection/components/mds-banner/mds-banner.js +10 -58
- package/dist/collection/components/mds-bibliography/mds-bibliography.css +6 -24
- package/dist/collection/components/mds-breadcrumb/mds-breadcrumb.css +6 -70
- package/dist/collection/components/mds-breadcrumb/mds-breadcrumb.js +2 -37
- package/dist/collection/components/mds-breadcrumb-item/mds-breadcrumb-item.css +15 -67
- package/dist/collection/components/mds-button/mds-button.css +285 -333
- package/dist/collection/components/mds-button/mds-button.js +4 -24
- package/dist/collection/components/mds-button-dropdown/mds-button-dropdown.css +24 -34
- package/dist/collection/components/mds-button-dropdown/mds-button-dropdown.js +1 -1
- package/dist/collection/components/mds-button-group/mds-button-group.css +13 -4
- package/dist/collection/components/mds-button-group/mds-button-group.js +2 -2
- package/dist/collection/components/mds-calendar/mds-calendar.css +13 -69
- package/dist/collection/components/mds-calendar/mds-calendar.js +150 -127
- package/dist/collection/components/mds-calendar-cell/mds-calendar-cell.css +88 -299
- package/dist/collection/components/mds-card/mds-card.css +11 -35
- package/dist/collection/components/mds-card/mds-card.js +2 -22
- package/dist/collection/components/mds-card-content/mds-card-content.css +1 -0
- package/dist/collection/components/mds-card-footer/mds-card-footer.css +1 -0
- package/dist/collection/components/mds-card-header/mds-card-header.css +5 -0
- package/dist/collection/components/mds-card-header/mds-card-header.js +14 -2
- package/dist/collection/components/mds-card-media/mds-card-media.css +1 -1
- package/dist/collection/components/mds-chip/mds-chip.css +317 -278
- package/dist/collection/components/mds-chip/mds-chip.js +19 -61
- package/dist/collection/components/mds-details/mds-details.css +52 -28
- package/dist/collection/components/mds-details/mds-details.js +4 -16
- package/dist/collection/components/mds-dropdown/mds-dropdown.css +102 -121
- package/dist/collection/components/mds-dropdown/mds-dropdown.js +179 -59
- package/dist/collection/components/mds-emoji/asset/mia.svg +3 -3
- package/dist/collection/components/mds-emoji/mds-emoji.css +15 -179
- package/dist/collection/components/mds-emoji/mds-emoji.js +297 -177
- package/dist/collection/components/mds-entity/mds-entity.css +25 -76
- package/dist/collection/components/mds-entity/mds-entity.js +13 -24
- package/dist/collection/components/mds-file/mds-file.css +103 -79
- package/dist/collection/components/mds-file/mds-file.js +2 -56
- package/dist/collection/components/mds-file-preview/mds-file-preview.css +277 -218
- package/dist/collection/components/mds-file-preview/mds-file-preview.js +4 -62
- package/dist/collection/components/mds-filter/mds-filter.css +66 -78
- package/dist/collection/components/mds-filter/mds-filter.js +16 -33
- package/dist/collection/components/mds-filter-item/mds-filter-item.css +73 -53
- package/dist/collection/components/mds-filter-item/mds-filter-item.js +2 -29
- package/dist/collection/components/mds-header/mds-header.css +15 -68
- package/dist/collection/components/mds-header/mds-header.js +5 -22
- package/dist/collection/components/mds-header-bar/mds-header-bar.css +60 -31
- package/dist/collection/components/mds-header-bar/mds-header-bar.js +9 -28
- package/dist/collection/components/mds-help/mds-help.css +1 -19
- package/dist/collection/components/mds-horizontal-scroll/mds-horizontal-scroll.css +13 -104
- package/dist/collection/components/mds-hr/mds-hr.css +6 -18
- package/dist/collection/components/mds-hr/mds-hr.js +2 -21
- package/dist/collection/components/mds-icon/services/icons-set.service.js +16 -0
- package/dist/collection/components/mds-img/mds-img.css +12 -48
- package/dist/collection/components/mds-img/mds-img.js +5 -36
- package/dist/collection/components/mds-input/mds-input.css +120 -158
- package/dist/collection/components/mds-input/mds-input.js +33 -65
- package/dist/collection/components/mds-input-date/mds-input-date.css +107 -124
- package/dist/collection/components/mds-input-date/mds-input-date.js +49 -62
- package/dist/collection/components/mds-input-date-range/mds-input-date-range.css +100 -90
- package/dist/collection/components/mds-input-date-range/mds-input-date-range.js +77 -62
- package/dist/collection/components/mds-input-date-range-preselection/mds-input-date-range-preselection.css +19 -73
- package/dist/collection/components/mds-input-field/mds-input-field.css +33 -45
- package/dist/collection/components/mds-input-field/mds-input-field.js +41 -4
- package/dist/collection/components/mds-input-otp/mds-input-otp.js +38 -2
- package/dist/collection/components/mds-input-range/mds-input-range.css +61 -19
- package/dist/collection/components/mds-input-range/mds-input-range.js +7 -31
- package/dist/collection/components/mds-input-select/mds-input-select.css +123 -156
- package/dist/collection/components/mds-input-select/mds-input-select.js +28 -61
- package/dist/collection/components/mds-input-switch/mds-input-switch.css +91 -250
- package/dist/collection/components/mds-input-switch/mds-input-switch.js +12 -63
- package/dist/collection/components/mds-input-tip/mds-input-tip.css +45 -31
- package/dist/collection/components/mds-input-tip/mds-input-tip.js +2 -16
- package/dist/collection/components/mds-input-tip-item/mds-input-tip-item.css +84 -56
- package/dist/collection/components/mds-input-tip-item/mds-input-tip-item.js +3 -54
- package/dist/collection/components/mds-input-upload/mds-input-upload.css +26 -37
- package/dist/collection/components/mds-input-upload/mds-input-upload.js +30 -51
- package/dist/collection/components/mds-keyboard/mds-keyboard.css +32 -126
- package/dist/collection/components/mds-keyboard/mds-keyboard.js +2 -46
- package/dist/collection/components/mds-keyboard-key/mds-keyboard-key.css +4 -28
- package/dist/collection/components/mds-keyboard-key/mds-keyboard-key.js +1 -37
- package/dist/collection/components/mds-kpi/mds-kpi.css +6 -11
- package/dist/collection/components/mds-kpi-item/mds-kpi-item.css +103 -40
- package/dist/collection/components/mds-kpi-item/mds-kpi-item.js +10 -27
- package/dist/collection/components/mds-label/mds-label.css +265 -354
- package/dist/collection/components/mds-label/mds-label.js +3 -54
- package/dist/collection/components/mds-list-item/mds-list-item.css +3 -9
- package/dist/collection/components/mds-list-item/mds-list-item.js +2 -16
- package/dist/collection/components/mds-mention/mds-mention.css +19 -10
- package/dist/collection/components/mds-mention/mds-mention.js +62 -2
- package/dist/collection/components/mds-modal/mds-modal.css +71 -101
- package/dist/collection/components/mds-modal/mds-modal.js +72 -45
- package/dist/collection/components/mds-note/mds-note.css +220 -198
- package/dist/collection/components/mds-note/mds-note.js +3 -61
- package/dist/collection/components/mds-notification/mds-notification.css +55 -89
- package/dist/collection/components/mds-notification/mds-notification.js +9 -16
- package/dist/collection/components/mds-paginator/mds-paginator.css +71 -35
- package/dist/collection/components/mds-paginator/mds-paginator.js +24 -37
- package/dist/collection/components/mds-paginator-item/mds-paginator-item.css +78 -96
- package/dist/collection/components/mds-paginator-item/mds-paginator-item.js +2 -24
- package/dist/collection/components/mds-policy-ai/mds-policy-ai.css +9 -9
- package/dist/collection/components/mds-policy-ai/mds-policy-ai.js +1 -38
- package/dist/collection/components/mds-pref/mds-pref.js +40 -40
- package/dist/collection/components/mds-pref-animation/mds-pref-animation.css +50 -6
- package/dist/collection/components/mds-pref-animation/mds-pref-animation.js +4 -47
- package/dist/collection/components/mds-pref-consumption/mds-pref-consumption.css +12 -12
- package/dist/collection/components/mds-pref-consumption/mds-pref-consumption.js +4 -47
- package/dist/collection/components/mds-pref-contrast/mds-pref-contrast.css +4 -4
- package/dist/collection/components/mds-pref-contrast/mds-pref-contrast.js +7 -48
- package/dist/collection/components/mds-pref-language/mds-pref-language.css +3 -3
- package/dist/collection/components/mds-pref-language/mds-pref-language.js +35 -46
- package/dist/collection/components/mds-pref-language-item/mds-pref-language-item.js +24 -38
- package/dist/collection/components/mds-pref-mode/mds-pref-mode.css +79 -0
- package/dist/collection/components/mds-pref-mode/mds-pref-mode.js +372 -0
- package/dist/collection/components/mds-pref-mode/meta/dictionary.js +3 -0
- package/dist/collection/components/mds-pref-theme/mds-pref-theme.css +12 -77
- package/dist/collection/components/mds-pref-theme/mds-pref-theme.js +183 -239
- package/dist/collection/components/mds-pref-theme/meta/dictionary.js +2 -3
- package/dist/collection/components/mds-pref-theme-item/mds-pref-theme-item.css +70 -0
- package/dist/collection/components/mds-pref-theme-item/mds-pref-theme-item.js +160 -0
- package/dist/collection/components/mds-price-table/mds-price-table.js +1 -1
- package/dist/collection/components/mds-price-table-features/mds-price-table-features.css +56 -47
- package/dist/collection/components/mds-price-table-features/mds-price-table-features.js +2 -31
- package/dist/collection/components/mds-price-table-features-cell/mds-price-table-features-cell.css +71 -67
- package/dist/collection/components/mds-price-table-features-cell/mds-price-table-features-cell.js +2 -31
- package/dist/collection/components/mds-price-table-features-row/mds-price-table-features-row.css +66 -42
- package/dist/collection/components/mds-price-table-features-row/mds-price-table-features-row.js +3 -28
- package/dist/collection/components/mds-price-table-header/mds-price-table-header.js +1 -1
- package/dist/collection/components/mds-price-table-list/mds-price-table-list.css +63 -25
- package/dist/collection/components/mds-price-table-list/mds-price-table-list.js +3 -28
- package/dist/collection/components/mds-price-table-list-item/mds-price-table-list-item.css +5 -31
- package/dist/collection/components/mds-price-table-list-item/mds-price-table-list-item.js +1 -1
- package/dist/collection/components/mds-progress/mds-progress.css +100 -94
- package/dist/collection/components/mds-progress/mds-progress.js +2 -27
- package/dist/collection/components/mds-push-notification/mds-push-notification.css +7 -37
- package/dist/collection/components/mds-push-notification/mds-push-notification.js +2 -21
- package/dist/collection/components/mds-push-notification-item/mds-push-notification-item.css +172 -136
- package/dist/collection/components/mds-push-notification-item/mds-push-notification-item.js +13 -60
- package/dist/collection/components/mds-quote/mds-quote.css +2 -2
- package/dist/collection/components/mds-quote/mds-quote.js +2 -16
- package/dist/collection/components/mds-radial-menu/mds-radial-menu.css +6 -60
- package/dist/collection/components/mds-radial-menu/mds-radial-menu.js +3 -2
- package/dist/collection/components/mds-radial-menu-item/mds-radial-menu-item.css +1 -7
- package/dist/collection/components/mds-radial-menu-item/mds-radial-menu-item.js +1 -1
- package/dist/collection/components/mds-radial-progress/mds-radial-progress.css +24 -30
- package/dist/collection/components/mds-radial-progress/mds-radial-progress.js +3 -7
- package/dist/collection/components/mds-separator/mds-separator.css +12 -42
- package/dist/collection/components/mds-separator/mds-separator.js +2 -26
- package/dist/collection/components/mds-spinner/mds-spinner.css +3 -9
- package/dist/collection/components/mds-spinner/mds-spinner.js +2 -16
- package/dist/collection/components/mds-status-bar/mds-status-bar.css +13 -23
- package/dist/collection/components/mds-status-bar/mds-status-bar.js +2 -31
- package/dist/collection/components/mds-stepper-bar/mds-stepper-bar.css +8 -56
- package/dist/collection/components/mds-stepper-bar/mds-stepper-bar.js +18 -9
- package/dist/collection/components/mds-stepper-bar-item/mds-stepper-bar-item.css +68 -120
- package/dist/collection/components/mds-stepper-bar-item/mds-stepper-bar-item.js +10 -44
- package/dist/collection/components/mds-tab/mds-tab.css +85 -189
- package/dist/collection/components/mds-tab/mds-tab.js +5 -27
- package/dist/collection/components/mds-tab-bar/mds-tab-bar.css +54 -10
- package/dist/collection/components/mds-tab-bar/mds-tab-bar.js +2 -31
- package/dist/collection/components/mds-tab-bar-item/mds-tab-bar-item.css +62 -44
- package/dist/collection/components/mds-tab-bar-item/mds-tab-bar-item.js +2 -27
- package/dist/collection/components/mds-tab-item/mds-tab-item.css +22 -37
- package/dist/collection/components/mds-tab-item/mds-tab-item.js +23 -22
- package/dist/collection/components/mds-table/mds-table.css +86 -130
- package/dist/collection/components/mds-table/mds-table.js +57 -52
- package/dist/collection/components/mds-table-body/mds-table-body.css +54 -40
- package/dist/collection/components/mds-table-body/mds-table-body.js +2 -16
- package/dist/collection/components/mds-table-cell/mds-table-cell.css +62 -32
- package/dist/collection/components/mds-table-cell/mds-table-cell.js +2 -16
- package/dist/collection/components/mds-table-footer/mds-table-footer.css +44 -0
- package/dist/collection/components/mds-table-footer/mds-table-footer.js +2 -16
- package/dist/collection/components/mds-table-header/mds-table-header.css +44 -0
- package/dist/collection/components/mds-table-header/mds-table-header.js +17 -48
- package/dist/collection/components/mds-table-header-cell/mds-table-header-cell.css +47 -7
- package/dist/collection/components/mds-table-header-cell/mds-table-header-cell.js +3 -13
- package/dist/collection/components/mds-table-row/mds-table-row.css +67 -49
- package/dist/collection/components/mds-table-row/mds-table-row.js +19 -50
- package/dist/collection/components/mds-text/mds-text.css +18 -38
- package/dist/collection/components/mds-text/mds-text.js +23 -22
- package/dist/collection/components/mds-toast/mds-toast.css +99 -90
- package/dist/collection/components/mds-toast/mds-toast.js +8 -28
- package/dist/collection/components/mds-tooltip/mds-tooltip.css +68 -85
- package/dist/collection/components/mds-tooltip/mds-tooltip.js +12 -31
- package/dist/collection/components/mds-tree/mds-tree.css +20 -212
- package/dist/collection/components/mds-tree/mds-tree.js +10 -4
- package/dist/collection/components/mds-tree-item/mds-tree-item.css +146 -267
- package/dist/collection/components/mds-tree-item/mds-tree-item.js +7 -28
- package/dist/collection/components/mds-url-view/mds-url-view.css +59 -33
- package/dist/collection/components/mds-url-view/mds-url-view.js +17 -67
- package/dist/collection/components/mds-usage/mds-usage.css +80 -95
- package/dist/collection/components/mds-usage/mds-usage.js +2 -60
- package/dist/collection/components/mds-video-wall/mds-video-wall.css +11 -26
- package/dist/collection/components/mds-video-wall/mds-video-wall.js +11 -2
- package/dist/collection/components/mds-zero/mds-zero.css +56 -18
- package/dist/collection/components/mds-zero/mds-zero.js +2 -31
- package/dist/collection/event-detail/theme.js +1 -0
- package/dist/collection/type/preference.js +22 -3
- package/dist/components/index.d.ts +230 -0
- package/dist/components/index.js +1 -1
- package/dist/components/mds-accordion-item.js +1 -1
- package/dist/components/mds-accordion-timer-item.js +1 -1
- package/dist/components/mds-accordion-timer.js +1 -1
- package/dist/components/mds-accordion.js +1 -1
- package/dist/components/mds-author.js +1 -1
- package/dist/components/mds-avatar-stack-item.js +1 -1
- package/dist/components/mds-avatar-stack.js +1 -1
- package/dist/components/mds-avatar.js +1 -1
- package/dist/components/mds-badge.js +1 -1
- package/dist/components/mds-banner.js +1 -1
- package/dist/components/mds-benchmark-bar.js +1 -1
- package/dist/components/mds-bibliography.js +1 -1
- package/dist/components/mds-breadcrumb-item.js +1 -1
- package/dist/components/mds-breadcrumb.js +1 -1
- package/dist/components/mds-button-dropdown.js +1 -1
- package/dist/components/mds-button-group.js +1 -1
- package/dist/components/mds-button.js +1 -1
- package/dist/components/mds-calendar-cell.js +1 -1
- package/dist/components/mds-calendar.js +1 -1
- package/dist/components/mds-card-content.js +1 -1
- package/dist/components/mds-card-footer.js +1 -1
- package/dist/components/mds-card-header.js +1 -1
- package/dist/components/mds-card-media.js +1 -1
- package/dist/components/mds-card.js +1 -1
- package/dist/components/mds-chip.js +1 -1
- package/dist/components/mds-details.js +1 -1
- package/dist/components/mds-dropdown.js +1 -1
- package/dist/components/mds-emoji.js +3 -3
- package/dist/components/mds-entity.js +1 -1
- package/dist/components/mds-file-preview.js +1 -1
- package/dist/components/mds-file.js +3 -3
- package/dist/components/mds-filter-item.js +1 -1
- package/dist/components/mds-filter.js +1 -1
- package/dist/components/mds-header-bar.js +1 -1
- package/dist/components/mds-header.js +1 -1
- package/dist/components/mds-help.js +1 -1
- package/dist/components/mds-horizontal-scroll.js +1 -1
- package/dist/components/mds-hr.js +1 -1
- package/dist/components/mds-icon.js +1 -1
- package/dist/components/mds-img.js +1 -1
- package/dist/components/mds-input-date-range-preselection.js +1 -1
- package/dist/components/mds-input-date-range.js +1 -1
- package/dist/components/mds-input-date.js +1 -1
- package/dist/components/mds-input-field.js +1 -1
- package/dist/components/mds-input-otp.js +1 -1
- package/dist/components/mds-input-range.js +1 -1
- package/dist/components/mds-input-select.js +1 -1
- package/dist/components/mds-input-switch.js +1 -1
- package/dist/components/mds-input-tip-item.js +1 -1
- package/dist/components/mds-input-tip.js +1 -1
- package/dist/components/mds-input-upload.js +1 -1
- package/dist/components/mds-input.js +1 -1
- package/dist/components/mds-keyboard-key.js +1 -1
- package/dist/components/mds-keyboard.js +1 -1
- package/dist/components/mds-kpi-item.js +1 -1
- package/dist/components/mds-kpi.js +1 -1
- package/dist/components/mds-label.js +1 -1
- package/dist/components/mds-list-item.js +1 -1
- package/dist/components/mds-list.js +1 -1
- package/dist/components/mds-mention.js +1 -1
- package/dist/components/mds-modal.js +1 -1
- package/dist/components/mds-note.js +1 -1
- package/dist/components/mds-notification.js +1 -1
- package/dist/components/mds-paginator-item.js +1 -1
- package/dist/components/mds-paginator.js +1 -1
- package/dist/components/mds-policy-ai.js +1 -1
- package/dist/components/mds-pref-animation.js +1 -1
- package/dist/components/mds-pref-consumption.js +1 -1
- package/dist/components/mds-pref-contrast.js +1 -1
- package/dist/components/mds-pref-language-item.js +1 -1
- package/dist/components/mds-pref-language.js +1 -1
- package/dist/components/mds-pref-mode.d.ts +11 -0
- package/dist/components/mds-pref-mode.js +1 -0
- package/dist/components/mds-pref-theme-item.d.ts +11 -0
- package/dist/components/mds-pref-theme-item.js +1 -0
- package/dist/components/mds-pref-theme.js +1 -1
- package/dist/components/mds-pref.js +1 -1
- package/dist/components/mds-price-table-features-cell.js +1 -1
- package/dist/components/mds-price-table-features-row.js +1 -1
- package/dist/components/mds-price-table-features.js +1 -1
- package/dist/components/mds-price-table-header.js +1 -1
- package/dist/components/mds-price-table-list-item.js +1 -1
- package/dist/components/mds-price-table-list.js +1 -1
- package/dist/components/mds-price-table.js +1 -1
- package/dist/components/mds-progress.js +1 -1
- package/dist/components/mds-push-notification-item.js +1 -1
- package/dist/components/mds-push-notification.js +1 -1
- package/dist/components/mds-quote.js +1 -1
- package/dist/components/mds-radial-menu-item.js +1 -1
- package/dist/components/mds-radial-menu.js +1 -1
- package/dist/components/mds-radial-progress.js +1 -1
- package/dist/components/mds-separator.js +1 -1
- package/dist/components/mds-spinner.js +1 -1
- package/dist/components/mds-status-bar.js +1 -1
- package/dist/components/mds-stepper-bar-item.js +1 -1
- package/dist/components/mds-stepper-bar.js +1 -1
- package/dist/components/mds-tab-bar-item.js +1 -1
- package/dist/components/mds-tab-bar.js +1 -1
- package/dist/components/mds-tab-item.js +1 -1
- package/dist/components/mds-tab.js +1 -1
- package/dist/components/mds-table-body.js +1 -1
- package/dist/components/mds-table-cell.js +1 -1
- package/dist/components/mds-table-footer.js +1 -1
- package/dist/components/mds-table-header-cell.js +1 -1
- package/dist/components/mds-table-header.js +1 -1
- package/dist/components/mds-table-row.js +1 -1
- package/dist/components/mds-table.js +1 -1
- package/dist/components/mds-text.js +1 -1
- package/dist/components/mds-toast.js +1 -1
- package/dist/components/mds-tooltip.js +1 -1
- package/dist/components/mds-tree-item.js +1 -1
- package/dist/components/mds-tree.js +1 -1
- package/dist/components/mds-url-view.js +1 -1
- package/dist/components/mds-usage.js +1 -1
- package/dist/components/mds-video-wall.js +1 -1
- package/dist/components/mds-zero.js +1 -1
- package/dist/components/p--8aaJX-p.js +1 -0
- package/dist/components/p-A9TZf0Ii.js +1 -0
- package/dist/components/p-B14Ci2fO.js +1 -0
- package/dist/components/p-B2A_hlV2.js +1 -0
- package/dist/components/p-B9DJLgwr.js +1 -0
- package/dist/components/p-BH3bWzRT.js +1 -0
- package/dist/components/p-BJNK4p33.js +1 -0
- package/dist/components/p-BNHXZ-JR.js +1 -0
- package/dist/components/p-BSxuG1vZ.js +1 -0
- package/dist/components/p-BTHR4xXu.js +1 -0
- package/dist/components/p-BhFTcUD0.js +3 -0
- package/dist/components/p-BouRLCYL.js +1 -0
- package/dist/components/p-Bss3F51Q.js +5 -0
- package/dist/components/p-Bt4xX5ww.js +1 -0
- package/dist/components/p-C03KYHGv.js +1 -0
- package/dist/components/p-C58NKMEE.js +1 -0
- package/dist/components/p-CACEYk42.js +1 -0
- package/dist/components/p-CBLAz3_J.js +1 -0
- package/dist/components/p-CHAGzQT-.js +1 -0
- package/dist/components/p-CVgKDZPF.js +1 -0
- package/dist/components/p-CVpjH8Un.js +1 -0
- package/dist/components/p-Caksrfcd.js +1 -0
- package/dist/components/p-CatD1iUY.js +1 -0
- package/dist/components/p-CbufYCNj.js +1 -0
- package/dist/components/p-Cehcn85x.js +1 -0
- package/dist/components/p-CsgCQiHG.js +1 -0
- package/dist/components/p-CvIFS8oA.js +1 -0
- package/dist/components/p-D3-GP4KF.js +1 -0
- package/dist/components/p-D8I1RblC.js +1 -0
- package/dist/components/p-DLE5TNTp.js +1 -0
- package/dist/components/p-DaI5QqNu.js +1 -0
- package/dist/components/p-Deh5Aia-.js +1 -0
- package/dist/components/p-Dj_oN194.js +1 -0
- package/dist/components/p-DmELzfvf.js +1 -0
- package/dist/components/p-DtxB7DYE.js +1 -0
- package/dist/components/p-KRu9I7dw.js +1 -0
- package/dist/components/p-cBZsPiMJ.js +1 -0
- package/dist/components/p-sUKtonkE.js +8 -0
- package/dist/components/p-sqRs6oj4.js +1 -0
- package/dist/components/p-wq6nWuWE.js +1 -0
- package/dist/documentation.json +750 -1137
- package/dist/esm/date-CACEYk42.js +22 -0
- package/dist/esm/floating-controller-DVldZ5mh.js +366 -0
- package/dist/esm/floating-ui.dom-CHAGzQT-.js +1680 -0
- package/dist/esm/form-A9TZf0Ii.js +19 -0
- package/dist/esm/index-DIiEV39g.js +5149 -0
- package/dist/esm/index.js +17 -0
- package/dist/esm/keyboard-manager-KRu9I7dw.js +50 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/locale-CbJbTW_c.js +814 -0
- package/dist/esm/magma-components.js +32 -5
- package/dist/esm/mds-accordion-item.entry.js +7 -28
- package/dist/esm/mds-accordion-timer-item.entry.js +8 -17
- package/dist/esm/mds-accordion-timer.entry.js +3 -3
- package/dist/esm/mds-accordion.entry.js +5 -22
- package/dist/esm/mds-author.entry.js +9 -4
- package/dist/esm/mds-avatar-stack-item.entry.js +2 -2
- package/dist/esm/mds-avatar-stack.entry.js +5 -4
- package/dist/esm/mds-avatar.entry.js +8 -21
- package/dist/esm/mds-badge.entry.js +5 -26
- package/dist/esm/mds-banner_3.entry.js +35 -70
- package/dist/esm/mds-benchmark-bar.entry.js +2 -2
- package/dist/esm/mds-bibliography.entry.js +2 -2
- package/dist/esm/mds-breadcrumb-item.entry.js +3 -3
- package/dist/esm/mds-breadcrumb.entry.js +7 -15
- package/dist/esm/mds-button-dropdown.entry.js +3 -3
- package/dist/esm/mds-button-group.entry.js +3 -3
- package/dist/esm/mds-button_3.entry.js +10 -32
- package/dist/esm/mds-calendar_2.entry.js +123 -102
- package/dist/esm/mds-card-content.entry.js +2 -2
- package/dist/esm/mds-card-footer.entry.js +2 -2
- package/dist/esm/mds-card-header.entry.js +9 -4
- package/dist/esm/mds-card-media.entry.js +2 -2
- package/dist/esm/mds-card.entry.js +4 -21
- package/dist/esm/mds-details.entry.js +8 -18
- package/dist/esm/mds-dropdown.entry.js +184 -58
- package/dist/esm/mds-emoji.entry.js +301 -181
- package/dist/esm/mds-entity.entry.js +11 -23
- package/dist/esm/mds-file-preview.entry.js +8 -36
- package/dist/esm/mds-file.entry.js +6 -34
- package/dist/esm/mds-filter-item.entry.js +6 -25
- package/dist/esm/mds-filter.entry.js +19 -32
- package/dist/esm/mds-header-bar.entry.js +11 -27
- package/dist/esm/mds-header.entry.js +8 -22
- package/dist/esm/mds-horizontal-scroll.entry.js +2 -2
- package/dist/esm/mds-hr.entry.js +4 -17
- package/dist/esm/mds-img.entry.js +8 -16
- package/dist/esm/mds-input-date-range-preselection.entry.js +2 -2
- package/dist/esm/mds-input-date-range.entry.js +57 -43
- package/dist/esm/mds-input-date.entry.js +14 -44
- package/dist/esm/mds-input-field.entry.js +42 -6
- package/dist/esm/mds-input-otp.entry.js +37 -3
- package/dist/esm/mds-input-range.entry.js +9 -29
- package/dist/esm/mds-input-select.entry.js +11 -41
- package/dist/esm/mds-input-switch_2.entry.js +19 -55
- package/dist/esm/mds-input-tip_2.entry.js +8 -40
- package/dist/esm/mds-input-upload.entry.js +34 -36
- package/dist/esm/mds-input.entry.js +23 -52
- package/dist/esm/mds-keyboard-key.entry.js +5 -14
- package/dist/esm/mds-keyboard.entry.js +5 -25
- package/dist/esm/mds-kpi-item.entry.js +12 -25
- package/dist/esm/mds-kpi.entry.js +2 -2
- package/dist/esm/mds-label.entry.js +7 -29
- package/dist/esm/mds-list-item.entry.js +4 -13
- package/dist/esm/mds-list.entry.js +1 -1
- package/dist/esm/mds-mention.entry.js +38 -4
- package/dist/esm/mds-modal.entry.js +54 -47
- package/dist/esm/mds-note.entry.js +7 -35
- package/dist/esm/mds-notification.entry.js +12 -14
- package/dist/esm/mds-paginator-item.entry.js +5 -20
- package/dist/esm/mds-paginator.entry.js +27 -32
- package/dist/esm/mds-policy-ai.entry.js +5 -15
- package/dist/esm/mds-pref-animation.entry.js +7 -23
- package/dist/esm/mds-pref-consumption.entry.js +7 -23
- package/dist/esm/mds-pref-contrast.entry.js +10 -24
- package/dist/esm/mds-pref-language-item.entry.js +27 -15
- package/dist/esm/mds-pref-language.entry.js +38 -28
- package/dist/esm/mds-pref-mode.entry.js +271 -0
- package/dist/esm/mds-pref-theme-item.entry.js +41 -0
- package/dist/esm/mds-pref-theme.entry.js +147 -230
- package/dist/esm/mds-pref.entry.js +40 -17
- package/dist/esm/mds-price-table-features-cell.entry.js +4 -25
- package/dist/esm/mds-price-table-features-row.entry.js +4 -25
- package/dist/esm/mds-price-table-features.entry.js +4 -25
- package/dist/esm/mds-price-table-header.entry.js +2 -2
- package/dist/esm/mds-price-table-list-item.entry.js +3 -3
- package/dist/esm/mds-price-table-list.entry.js +4 -25
- package/dist/esm/mds-price-table.entry.js +2 -2
- package/dist/esm/mds-progress_2.entry.js +7 -33
- package/dist/esm/mds-push-notification-item.entry.js +16 -39
- package/dist/esm/mds-push-notification.entry.js +7 -20
- package/dist/esm/mds-quote.entry.js +4 -13
- package/dist/esm/mds-radial-menu-item.entry.js +3 -3
- package/dist/esm/mds-radial-menu.entry.js +7 -6
- package/dist/esm/mds-separator.entry.js +4 -21
- package/dist/esm/mds-status-bar.entry.js +4 -25
- package/dist/esm/mds-stepper-bar-item.entry.js +14 -25
- package/dist/esm/mds-stepper-bar.entry.js +21 -12
- package/dist/esm/mds-tab-bar-item.entry.js +6 -27
- package/dist/esm/mds-tab-bar.entry.js +5 -26
- package/dist/esm/mds-tab_2.entry.js +14 -47
- package/dist/esm/mds-table-body.entry.js +4 -13
- package/dist/esm/mds-table-footer.entry.js +4 -13
- package/dist/esm/mds-table-header-cell.entry.js +4 -13
- package/dist/esm/mds-table-header.entry.js +19 -31
- package/dist/esm/mds-table-row.entry.js +20 -29
- package/dist/esm/mds-table.entry.js +60 -50
- package/dist/esm/mds-text.entry.js +36 -21
- package/dist/esm/mds-toast.entry.js +10 -27
- package/dist/esm/mds-tooltip.entry.js +16 -27
- package/dist/esm/mds-tree-item.entry.js +12 -14
- package/dist/esm/mds-tree.entry.js +12 -6
- package/dist/esm/mds-url-view.entry.js +21 -41
- package/dist/esm/mds-usage.entry.js +5 -33
- package/dist/esm/mds-video-wall.entry.js +8 -4
- package/dist/esm/mds-zero.entry.js +4 -25
- package/dist/esm/preference-CKerJx2M.js +385 -0
- package/dist/esm/slot-C0o_l0td.js +61 -0
- package/dist/esm-es5/date-CACEYk42.js +6 -0
- package/dist/esm-es5/datetime-BJtA1qmE.js +2732 -1
- package/dist/esm-es5/floating-controller-DVldZ5mh.js +66 -0
- package/dist/esm-es5/floating-ui.dom-CHAGzQT-.js +201 -0
- package/dist/esm-es5/form-A9TZf0Ii.js +8 -0
- package/dist/esm-es5/index-DIiEV39g.js +371 -0
- package/dist/esm-es5/index.js +79 -1
- package/dist/esm-es5/keyboard-manager-KRu9I7dw.js +5 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/locale-CbJbTW_c.js +230 -0
- package/dist/esm-es5/magma-components.js +4 -1
- package/dist/esm-es5/mds-accordion-item.entry.js +4 -1
- package/dist/esm-es5/mds-accordion-timer-item.entry.js +17 -1
- package/dist/esm-es5/mds-accordion-timer.entry.js +4 -1
- package/dist/esm-es5/mds-accordion.entry.js +7 -1
- package/dist/esm-es5/mds-author.entry.js +1 -1
- package/dist/esm-es5/mds-avatar-stack-item.entry.js +4 -1
- package/dist/esm-es5/mds-avatar-stack.entry.js +1 -1
- package/dist/esm-es5/mds-avatar.entry.js +8 -1
- package/dist/esm-es5/mds-badge.entry.js +12 -1
- package/dist/esm-es5/mds-banner_3.entry.js +40 -1
- package/dist/esm-es5/mds-benchmark-bar.entry.js +15 -1
- package/dist/esm-es5/mds-bibliography.entry.js +14 -1
- package/dist/esm-es5/mds-breadcrumb-item.entry.js +1 -1
- package/dist/esm-es5/mds-breadcrumb.entry.js +4 -1
- package/dist/esm-es5/mds-button-dropdown.entry.js +19 -1
- package/dist/esm-es5/mds-button-group.entry.js +1 -1
- package/dist/esm-es5/mds-button_3.entry.js +42 -1
- package/dist/esm-es5/mds-calendar_2.entry.js +81 -1
- package/dist/esm-es5/mds-card-content.entry.js +1 -1
- package/dist/esm-es5/mds-card-footer.entry.js +1 -1
- package/dist/esm-es5/mds-card-header.entry.js +1 -1
- package/dist/esm-es5/mds-card-media.entry.js +1 -1
- package/dist/esm-es5/mds-card.entry.js +7 -1
- package/dist/esm-es5/mds-details.entry.js +4 -1
- package/dist/esm-es5/mds-dropdown.entry.js +102 -1
- package/dist/esm-es5/mds-emoji.entry.js +899 -3
- package/dist/esm-es5/mds-entity.entry.js +1 -1
- package/dist/esm-es5/mds-file-preview.entry.js +23 -2
- package/dist/esm-es5/mds-file.entry.js +2823 -3
- package/dist/esm-es5/mds-filter-item.entry.js +1 -1
- package/dist/esm-es5/mds-filter.entry.js +11 -1
- package/dist/esm-es5/mds-header-bar.entry.js +11 -1
- package/dist/esm-es5/mds-header.entry.js +30 -1
- package/dist/esm-es5/mds-horizontal-scroll.entry.js +45 -1
- package/dist/esm-es5/mds-hr.entry.js +1 -1
- package/dist/esm-es5/mds-img.entry.js +15 -1
- package/dist/esm-es5/mds-input-date-range-preselection.entry.js +1 -1
- package/dist/esm-es5/mds-input-date-range.entry.js +39 -1
- package/dist/esm-es5/mds-input-date.entry.js +50 -1
- package/dist/esm-es5/mds-input-field.entry.js +22 -1
- package/dist/esm-es5/mds-input-otp.entry.js +13 -1
- package/dist/esm-es5/mds-input-range.entry.js +24 -1
- package/dist/esm-es5/mds-input-select.entry.js +39 -1
- package/dist/esm-es5/mds-input-switch_2.entry.js +27 -1
- package/dist/esm-es5/mds-input-tip_2.entry.js +10 -1
- package/dist/esm-es5/mds-input-upload.entry.js +63 -1
- package/dist/esm-es5/mds-input.entry.js +134 -1
- package/dist/esm-es5/mds-keyboard-key.entry.js +1 -1
- package/dist/esm-es5/mds-keyboard.entry.js +11 -1
- package/dist/esm-es5/mds-kpi-item.entry.js +11 -1
- package/dist/esm-es5/mds-kpi.entry.js +1 -1
- package/dist/esm-es5/mds-label.entry.js +16 -1
- package/dist/esm-es5/mds-list-item.entry.js +7 -1
- package/dist/esm-es5/mds-list.entry.js +1 -1
- package/dist/esm-es5/mds-mention.entry.js +4 -1
- package/dist/esm-es5/mds-modal.entry.js +68 -1
- package/dist/esm-es5/mds-note.entry.js +7 -1
- package/dist/esm-es5/mds-notification.entry.js +13 -1
- package/dist/esm-es5/mds-paginator-item.entry.js +1 -1
- package/dist/esm-es5/mds-paginator.entry.js +14 -1
- package/dist/esm-es5/mds-policy-ai.entry.js +7 -1
- package/dist/esm-es5/mds-pref-animation.entry.js +1 -1
- package/dist/esm-es5/mds-pref-consumption.entry.js +1 -1
- package/dist/esm-es5/mds-pref-contrast.entry.js +4 -1
- package/dist/esm-es5/mds-pref-language-item.entry.js +13 -1
- package/dist/esm-es5/mds-pref-language.entry.js +15 -1
- package/dist/esm-es5/mds-pref-mode.entry.js +4 -0
- package/dist/esm-es5/mds-pref-theme-item.entry.js +13 -0
- package/dist/esm-es5/mds-pref-theme.entry.js +38 -1
- package/dist/esm-es5/mds-pref.entry.js +9 -1
- package/dist/esm-es5/mds-price-table-features-cell.entry.js +4 -1
- package/dist/esm-es5/mds-price-table-features-row.entry.js +1 -1
- package/dist/esm-es5/mds-price-table-features.entry.js +1 -1
- package/dist/esm-es5/mds-price-table-header.entry.js +1 -1
- package/dist/esm-es5/mds-price-table-list-item.entry.js +7 -1
- package/dist/esm-es5/mds-price-table-list.entry.js +1 -1
- package/dist/esm-es5/mds-price-table.entry.js +1 -1
- package/dist/esm-es5/mds-progress_2.entry.js +32 -1
- package/dist/esm-es5/mds-push-notification-item.entry.js +16 -1
- package/dist/esm-es5/mds-push-notification.entry.js +49 -1
- package/dist/esm-es5/mds-quote.entry.js +7 -1
- package/dist/esm-es5/mds-radial-menu-item.entry.js +10 -1
- package/dist/esm-es5/mds-radial-menu.entry.js +28 -1
- package/dist/esm-es5/mds-separator.entry.js +1 -1
- package/dist/esm-es5/mds-status-bar.entry.js +10 -1
- package/dist/esm-es5/mds-stepper-bar-item.entry.js +16 -1
- package/dist/esm-es5/mds-stepper-bar.entry.js +19 -1
- package/dist/esm-es5/mds-tab-bar-item.entry.js +9 -1
- package/dist/esm-es5/mds-tab-bar.entry.js +1 -1
- package/dist/esm-es5/mds-tab_2.entry.js +26 -1
- package/dist/esm-es5/mds-table-body.entry.js +1 -1
- package/dist/esm-es5/mds-table-footer.entry.js +1 -1
- package/dist/esm-es5/mds-table-header-cell.entry.js +4 -1
- package/dist/esm-es5/mds-table-header.entry.js +14 -1
- package/dist/esm-es5/mds-table-row.entry.js +8 -1
- package/dist/esm-es5/mds-table.entry.js +15 -1
- package/dist/esm-es5/mds-text.entry.js +27 -1
- package/dist/esm-es5/mds-toast.entry.js +15 -1
- package/dist/esm-es5/mds-tooltip.entry.js +37 -1
- package/dist/esm-es5/mds-tree-item.entry.js +16 -1
- package/dist/esm-es5/mds-tree.entry.js +20 -1
- package/dist/esm-es5/mds-url-view.entry.js +7 -1
- package/dist/esm-es5/mds-usage.entry.js +4 -1
- package/dist/esm-es5/mds-video-wall.entry.js +16 -1
- package/dist/esm-es5/mds-zero.entry.js +1 -1
- package/dist/esm-es5/preference-CKerJx2M.js +58 -0
- package/dist/esm-es5/slot-C0o_l0td.js +23 -0
- package/dist/hydrate/index.js +4268 -3165
- package/dist/hydrate/index.mjs +4268 -3165
- package/dist/magma-components/index.esm.js +1 -1
- package/dist/magma-components/magma-components.esm.js +1 -1
- package/dist/magma-components/magma-components.js +1 -1
- package/dist/magma-components/p-03be5c0c.entry.js +1 -0
- package/dist/magma-components/p-0715a2cb.system.entry.js +12 -0
- package/dist/magma-components/p-071f18c6.system.entry.js +27 -0
- package/dist/magma-components/p-0798b0bf.system.entry.js +24 -0
- package/dist/magma-components/p-07fde74d.system.entry.js +39 -0
- package/dist/magma-components/p-086fb3aa.entry.js +1 -0
- package/dist/magma-components/p-0a088e7d.system.entry.js +10 -0
- package/dist/magma-components/p-0a691082.entry.js +1 -0
- package/dist/magma-components/p-0ad3b4da.system.entry.js +102 -0
- package/dist/magma-components/p-0af8d821.entry.js +1 -0
- package/dist/magma-components/p-0ec21574.system.entry.js +10 -0
- package/dist/magma-components/p-0f6bb54d.system.entry.js +22 -0
- package/dist/magma-components/p-102d3bd3.system.entry.js +1 -0
- package/dist/magma-components/p-10704ede.system.entry.js +4 -0
- package/dist/magma-components/p-15f63bf3.entry.js +1 -0
- package/dist/magma-components/p-16e9fb14.system.entry.js +7 -0
- package/dist/magma-components/p-1780b8ba.entry.js +1 -0
- package/dist/magma-components/p-181dfb04.entry.js +1 -0
- package/dist/magma-components/p-184720be.system.entry.js +1 -0
- package/dist/magma-components/p-18f7b970.system.entry.js +4 -0
- package/dist/magma-components/p-1a8c5086.system.entry.js +19 -0
- package/dist/magma-components/p-1afc0452.entry.js +1 -0
- package/dist/magma-components/p-1c0a7e24.system.entry.js +30 -0
- package/dist/magma-components/p-1cce738a.system.entry.js +32 -0
- package/dist/magma-components/p-1dcfb13e.entry.js +1 -0
- package/dist/magma-components/p-1df6ac96.system.entry.js +7 -0
- package/dist/magma-components/p-209063b6.system.entry.js +50 -0
- package/dist/magma-components/p-216f95cc.system.entry.js +1 -0
- package/dist/magma-components/p-21891a24.entry.js +1 -0
- package/dist/magma-components/p-21d6687a.system.entry.js +7 -0
- package/dist/magma-components/p-231505e8.entry.js +1 -0
- package/dist/magma-components/p-23e61db9.system.entry.js +4 -0
- package/dist/magma-components/p-241dbf61.entry.js +1 -0
- package/dist/magma-components/p-25935d33.system.entry.js +1 -0
- package/dist/magma-components/p-284c40cd.system.entry.js +4 -0
- package/dist/magma-components/p-29684655.system.entry.js +16 -0
- package/dist/magma-components/p-2b73fee6.entry.js +1 -0
- package/dist/magma-components/p-2d5aadba.system.entry.js +7 -0
- package/dist/magma-components/p-2de17848.entry.js +1 -0
- package/dist/magma-components/p-34482514.entry.js +1 -0
- package/dist/magma-components/p-34c0890e.entry.js +1 -0
- package/dist/magma-components/p-3635eca6.system.entry.js +1 -0
- package/dist/magma-components/p-3b0c1202.entry.js +1 -0
- package/dist/magma-components/p-3d8e63a2.system.entry.js +63 -0
- package/dist/magma-components/p-3db23b5f.system.entry.js +16 -0
- package/dist/magma-components/p-3ec7d3ea.entry.js +1 -0
- package/dist/magma-components/p-3f7d3060.system.entry.js +42 -0
- package/dist/magma-components/p-40563e33.entry.js +1 -0
- package/dist/magma-components/p-41bf6f25.system.entry.js +81 -0
- package/dist/magma-components/p-421a630e.entry.js +1 -0
- package/dist/magma-components/p-4297da23.system.entry.js +1 -0
- package/dist/magma-components/p-4299b76b.system.entry.js +4 -0
- package/dist/magma-components/p-4543501c.entry.js +1 -0
- package/dist/magma-components/p-454c4774.entry.js +1 -0
- package/dist/magma-components/p-4616bc07.entry.js +1 -0
- package/dist/magma-components/p-46786d71.system.entry.js +14 -0
- package/dist/magma-components/p-470e5ac8.system.entry.js +1 -0
- package/dist/magma-components/p-481008e9.system.entry.js +13 -0
- package/dist/magma-components/p-48d37230.entry.js +1 -0
- package/dist/magma-components/p-4b3a8132.system.entry.js +13 -0
- package/dist/magma-components/p-4c8316a8.entry.js +1 -0
- package/dist/magma-components/p-4c95442e.entry.js +1 -0
- package/dist/magma-components/p-4e4bdbf8.entry.js +1 -0
- package/dist/magma-components/p-4e5ab0e4.system.entry.js +16 -0
- package/dist/magma-components/p-54b995c2.system.entry.js +4 -0
- package/dist/magma-components/p-56ad5bf2.entry.js +1 -0
- package/dist/magma-components/p-59de81ac.entry.js +1 -0
- package/dist/magma-components/p-5a7ead55.system.entry.js +37 -0
- package/dist/magma-components/p-5e43274a.system.entry.js +15 -0
- package/dist/magma-components/p-5f545f85.system.entry.js +1 -0
- package/dist/magma-components/p-61a5ac3d.system.entry.js +17 -0
- package/dist/magma-components/p-636cc471.entry.js +1 -0
- package/dist/magma-components/p-66ce2dee.entry.js +1 -0
- package/dist/magma-components/p-67d80d37.system.entry.js +1 -0
- package/dist/magma-components/p-6937f340.entry.js +1 -0
- package/dist/magma-components/p-69d1b815.entry.js +1 -0
- package/dist/magma-components/p-6b7e449f.entry.js +1 -0
- package/dist/magma-components/p-6c417ea1.system.entry.js +913 -0
- package/dist/magma-components/p-6cd7cfe3.entry.js +1 -0
- package/dist/magma-components/p-6ce60d59.entry.js +1 -0
- package/dist/magma-components/p-6cf760ea.system.entry.js +45 -0
- package/dist/magma-components/p-6dc27543.entry.js +1 -0
- package/dist/magma-components/p-6de37588.entry.js +1 -0
- package/dist/magma-components/p-6edc4f16.system.entry.js +14 -0
- package/dist/magma-components/p-6f6b5eb5.entry.js +1 -0
- package/dist/magma-components/p-7090184f.entry.js +1 -0
- package/dist/magma-components/p-716ad14c.entry.js +1 -0
- package/dist/magma-components/p-71804224.entry.js +1 -0
- package/dist/magma-components/p-735dc594.system.entry.js +1 -0
- package/dist/magma-components/p-739fdf76.system.entry.js +1 -0
- package/dist/magma-components/p-74b0902a.entry.js +1 -0
- package/dist/magma-components/p-7530a2f2.entry.js +1 -0
- package/dist/magma-components/p-75dd012a.system.entry.js +11 -0
- package/dist/magma-components/p-75fcf1a4.entry.js +1 -0
- package/dist/magma-components/p-76ae22d6.entry.js +1 -0
- package/dist/magma-components/p-78248693.entry.js +1 -0
- package/dist/magma-components/p-78fef00a.entry.js +1 -0
- package/dist/magma-components/p-7c0d202c.entry.js +1 -0
- package/dist/magma-components/p-7d317ff0.entry.js +8 -0
- package/dist/magma-components/p-7f2e3b74.system.entry.js +2838 -0
- package/dist/magma-components/p-7fc29447.entry.js +1 -0
- package/dist/magma-components/p-8103d4d4.system.entry.js +30 -0
- package/dist/magma-components/p-81b72b6e.entry.js +1 -0
- package/dist/magma-components/p-859ab5a2.entry.js +18 -0
- package/dist/magma-components/p-896ae0ee.entry.js +1 -0
- package/dist/magma-components/p-89a3bc7a.system.entry.js +16 -0
- package/dist/magma-components/p-8b7fa8d7.entry.js +1 -0
- package/dist/magma-components/p-8dff6606.system.entry.js +11 -0
- package/dist/magma-components/p-8e40eda3.system.entry.js +9 -0
- package/dist/magma-components/p-91b9d4e7.system.entry.js +4 -0
- package/dist/magma-components/p-92e1001f.entry.js +1 -0
- package/dist/magma-components/p-9378b373.system.entry.js +49 -0
- package/dist/magma-components/p-960dc9b5.system.entry.js +15 -0
- package/dist/magma-components/p-9626eaff.system.entry.js +134 -0
- package/dist/magma-components/p-9741d95e.system.entry.js +7 -0
- package/dist/magma-components/p-97ea9e6e.system.entry.js +68 -0
- package/dist/magma-components/p-9846fe89.system.entry.js +1 -0
- package/dist/magma-components/p-998721b9.system.entry.js +1 -0
- package/dist/magma-components/p-9a5296c0.system.entry.js +7 -0
- package/dist/magma-components/p-9b2ee3fe.entry.js +1 -0
- package/dist/magma-components/p-9be4a736.entry.js +1 -0
- package/dist/magma-components/p-9ca7932d.system.entry.js +8 -0
- package/dist/magma-components/p-9d86477d.system.entry.js +1 -0
- package/dist/magma-components/p-9d9a947b.entry.js +18 -0
- package/dist/magma-components/p-9e3bc553.system.entry.js +26 -0
- package/dist/magma-components/p-9e58467e.system.entry.js +10 -0
- package/dist/magma-components/p-9e9a1ebd.system.entry.js +15 -0
- package/dist/magma-components/p-A9TZf0Ii.js +1 -0
- package/dist/magma-components/p-BFnx_0hM.js +5 -0
- package/dist/magma-components/p-BJKToXNf.system.js +2733 -1
- package/dist/magma-components/p-BbMKuVem.js +1 -0
- package/dist/magma-components/p-C0o_l0td.js +1 -0
- package/dist/magma-components/p-C2FHijr2.system.js +231 -0
- package/dist/magma-components/p-CACEYk42.js +1 -0
- package/dist/magma-components/p-CBam2PI8.system.js +79 -0
- package/dist/magma-components/p-CDTiTqY0.system.js +58 -0
- package/dist/magma-components/p-CHAGzQT-.js +1 -0
- package/dist/magma-components/p-CI85vVs8.system.js +9 -0
- package/dist/magma-components/p-CnXBPjmc.system.js +5 -0
- package/dist/magma-components/p-DB8Rm54c.js +1 -0
- package/dist/magma-components/p-DIiEV39g.js +3 -0
- package/dist/magma-components/p-Dg8nxRUX.system.js +201 -0
- package/dist/magma-components/p-DmC-b-ZK.system.js +67 -0
- package/dist/magma-components/p-KRu9I7dw.js +1 -0
- package/dist/magma-components/p-LerCJgfP.system.js +5 -0
- package/dist/magma-components/p-MGv0i39Y.system.js +162 -0
- package/dist/magma-components/p-RJ5ZA1kY.system.js +23 -0
- package/dist/magma-components/p-a3279a73.system.entry.js +11 -0
- package/dist/magma-components/p-a3b0f586.entry.js +1 -0
- package/dist/magma-components/p-a3fc2ea4.system.entry.js +39 -0
- package/dist/magma-components/p-a5ac5e0b.entry.js +1 -0
- package/dist/magma-components/p-a8ec3080.system.entry.js +27 -0
- package/dist/magma-components/p-a906a02f.system.entry.js +16 -0
- package/dist/magma-components/p-a93b2a39.entry.js +1 -0
- package/dist/magma-components/p-aa267e7b.entry.js +1 -0
- package/dist/magma-components/p-ab9095ae.system.entry.js +4 -0
- package/dist/magma-components/p-ac544ab1.entry.js +1 -0
- package/dist/magma-components/p-ace198e9.entry.js +1 -0
- package/dist/magma-components/p-ad3983b2.entry.js +1 -0
- package/dist/magma-components/p-af41c8b8.system.entry.js +1 -0
- package/dist/magma-components/p-af45f0a5.system.entry.js +20 -0
- package/dist/magma-components/p-b23a6c83.entry.js +1 -0
- package/dist/magma-components/p-b3a3578c.entry.js +1 -0
- package/dist/magma-components/p-b49e0321.system.entry.js +1 -0
- package/dist/magma-components/p-b71e0d51.entry.js +1 -0
- package/dist/magma-components/p-b8d4a14e.entry.js +1 -0
- package/dist/magma-components/p-b9fecfd5.entry.js +1 -0
- package/dist/magma-components/p-ba035f90.entry.js +1 -0
- package/dist/magma-components/p-bc51d310.system.entry.js +1 -0
- package/dist/magma-components/p-bd490a8e.entry.js +1 -0
- package/dist/magma-components/p-be198039.system.entry.js +4 -0
- package/dist/magma-components/p-be692266.system.entry.js +13 -0
- package/dist/magma-components/p-bf7168b4.entry.js +1 -0
- package/dist/magma-components/p-bf84d9fa.entry.js +1 -0
- package/dist/magma-components/p-c1fb2eb7.entry.js +1 -0
- package/dist/magma-components/p-c4e58240.entry.js +1 -0
- package/dist/magma-components/p-c573de10.entry.js +1 -0
- package/dist/magma-components/p-c6be3db7.system.entry.js +1 -0
- package/dist/magma-components/p-c70d7159.entry.js +1 -0
- package/dist/magma-components/p-c7517884.system.entry.js +38 -0
- package/dist/magma-components/p-c9be79bd.entry.js +1 -0
- package/dist/magma-components/p-c9e12c2b.system.entry.js +7 -0
- package/dist/magma-components/p-cb6a1908.entry.js +1 -0
- package/dist/magma-components/p-cbd5aef4.system.entry.js +14 -0
- package/dist/magma-components/p-cd21137b.system.entry.js +1 -0
- package/dist/magma-components/p-cd5866c8.entry.js +1 -0
- package/dist/magma-components/p-ce0ecc75.system.entry.js +15 -0
- package/dist/magma-components/p-ce4e1a41.system.entry.js +1 -0
- package/dist/magma-components/p-d3116844.entry.js +1 -0
- package/dist/magma-components/p-d38165ed.system.entry.js +1 -0
- package/dist/magma-components/p-d3933a22.entry.js +1 -0
- package/dist/magma-components/p-d44c49d6.system.entry.js +8 -0
- package/dist/magma-components/p-d4a529ce.entry.js +1 -0
- package/dist/magma-components/p-d6d4aa1a.entry.js +1 -0
- package/dist/magma-components/p-d81e7100.system.entry.js +15 -0
- package/dist/magma-components/p-d8c27f4b.entry.js +1 -0
- package/dist/magma-components/p-d921d876.entry.js +1 -0
- package/dist/magma-components/p-da1ac3e1.entry.js +1 -0
- package/dist/magma-components/p-ddbdce09.entry.js +1 -0
- package/dist/magma-components/p-de6bc3c8.entry.js +1 -0
- package/dist/magma-components/p-df2b7607.system.entry.js +4 -0
- package/dist/magma-components/p-e05d2df8.system.entry.js +4 -0
- package/dist/magma-components/p-e0b2ef8f.system.entry.js +1 -0
- package/dist/magma-components/p-e0c50a2d.entry.js +1 -0
- package/dist/magma-components/p-e1277efe.system.entry.js +1 -0
- package/dist/magma-components/p-e1e6dd97.entry.js +1 -0
- package/dist/magma-components/p-e2f7a9bd.system.entry.js +1 -0
- package/dist/magma-components/p-e3e893c4.entry.js +1 -0
- package/dist/magma-components/p-e4868ade.entry.js +1 -0
- package/dist/magma-components/p-e5c6f9a9.system.entry.js +7 -0
- package/dist/magma-components/p-e5da7036.entry.js +1 -0
- package/dist/magma-components/p-e6dccab5.system.entry.js +1 -0
- package/dist/magma-components/p-ec59ec9a.entry.js +1 -0
- package/dist/magma-components/p-eddcef53.system.entry.js +1 -0
- package/dist/magma-components/p-eed00e7f.system.entry.js +1 -0
- package/dist/magma-components/p-ef8cb401.entry.js +1 -0
- package/dist/magma-components/p-efe8d359.entry.js +1 -0
- package/dist/magma-components/p-f070a5b5.system.entry.js +11 -0
- package/dist/magma-components/p-f0a168f4.system.entry.js +13 -0
- package/dist/magma-components/p-f1462410.system.entry.js +9 -0
- package/dist/magma-components/p-f23d4974.entry.js +1 -0
- package/dist/magma-components/p-f542246f.system.entry.js +1 -0
- package/dist/magma-components/p-f5c680dd.entry.js +1 -0
- package/dist/magma-components/p-f60c6e8e.system.entry.js +40 -0
- package/dist/magma-components/p-f8369939.entry.js +1 -0
- package/dist/magma-components/p-f97ede3e.system.entry.js +19 -0
- package/dist/magma-components/p-f97ff5b2.entry.js +1 -0
- package/dist/magma-components/p-fe1662e8.system.entry.js +28 -0
- package/dist/magma-components/p-ff133cbd.entry.js +1 -0
- package/dist/magma-components/p-fff44704.entry.js +1 -0
- package/dist/magma-components/p-opeIIa7t.system.js +7 -0
- package/dist/stats.json +5337 -7124
- package/dist/types/common/date.d.ts +5 -1
- package/dist/types/common/floating-controller.d.ts +56 -2
- package/dist/types/common/form.d.ts +10 -0
- package/dist/types/common/locale.d.ts +0 -5
- package/dist/types/common/preference.d.ts +48 -16
- package/dist/types/common/slot.d.ts +11 -1
- package/dist/types/common/yugop/random-text.d.ts +8 -0
- package/dist/types/components/mds-accordion/mds-accordion.d.ts +0 -8
- package/dist/types/components/mds-accordion-item/mds-accordion-item.d.ts +0 -10
- package/dist/types/components/mds-accordion-timer-item/mds-accordion-timer-item.d.ts +0 -4
- package/dist/types/components/mds-author/mds-author.d.ts +2 -1
- package/dist/types/components/mds-avatar/mds-avatar.d.ts +0 -6
- package/dist/types/components/mds-badge/mds-badge.d.ts +0 -10
- package/dist/types/components/mds-banner/mds-banner.d.ts +2 -16
- package/dist/types/components/mds-breadcrumb/mds-breadcrumb.d.ts +0 -6
- package/dist/types/components/mds-button/mds-button.d.ts +0 -7
- package/dist/types/components/mds-button-group/mds-button-group.d.ts +1 -1
- package/dist/types/components/mds-calendar/mds-calendar.d.ts +27 -18
- package/dist/types/components/mds-card/mds-card.d.ts +0 -8
- package/dist/types/components/mds-card-header/mds-card-header.d.ts +2 -1
- package/dist/types/components/mds-chip/mds-chip.d.ts +0 -15
- package/dist/types/components/mds-details/mds-details.d.ts +0 -5
- package/dist/types/components/mds-dropdown/mds-dropdown.d.ts +33 -12
- package/dist/types/components/mds-emoji/mds-emoji.d.ts +9 -2
- package/dist/types/components/mds-entity/mds-entity.d.ts +3 -10
- package/dist/types/components/mds-file/mds-file.d.ts +0 -15
- package/dist/types/components/mds-file-preview/mds-file-preview.d.ts +0 -15
- package/dist/types/components/mds-filter/mds-filter.d.ts +10 -10
- package/dist/types/components/mds-filter-item/mds-filter-item.d.ts +0 -9
- package/dist/types/components/mds-header/mds-header.d.ts +0 -7
- package/dist/types/components/mds-header-bar/mds-header-bar.d.ts +2 -11
- package/dist/types/components/mds-hr/mds-hr.d.ts +0 -6
- package/dist/types/components/mds-img/mds-img.d.ts +1 -7
- package/dist/types/components/mds-input/mds-input.d.ts +7 -15
- package/dist/types/components/mds-input-date/mds-input-date.d.ts +9 -14
- package/dist/types/components/mds-input-date-range/mds-input-date-range.d.ts +9 -12
- package/dist/types/components/mds-input-field/mds-input-field.d.ts +3 -0
- package/dist/types/components/mds-input-otp/mds-input-otp.d.ts +7 -0
- package/dist/types/components/mds-input-range/mds-input-range.d.ts +0 -10
- package/dist/types/components/mds-input-select/mds-input-select.d.ts +5 -14
- package/dist/types/components/mds-input-switch/mds-input-switch.d.ts +0 -11
- package/dist/types/components/mds-input-tip/mds-input-tip.d.ts +0 -4
- package/dist/types/components/mds-input-tip-item/mds-input-tip-item.d.ts +0 -13
- package/dist/types/components/mds-input-upload/mds-input-upload.d.ts +2 -7
- package/dist/types/components/mds-input-upload/meta/types.d.ts +1 -1
- package/dist/types/components/mds-keyboard/mds-keyboard.d.ts +0 -11
- package/dist/types/components/mds-keyboard-key/mds-keyboard-key.d.ts +0 -7
- package/dist/types/components/mds-keyboard-key/meta/icons.d.ts +1 -1
- package/dist/types/components/mds-kpi-item/mds-kpi-item.d.ts +8 -10
- package/dist/types/components/mds-label/mds-label.d.ts +0 -12
- package/dist/types/components/mds-list-item/mds-list-item.d.ts +0 -4
- package/dist/types/components/mds-mention/mds-mention.d.ts +13 -0
- package/dist/types/components/mds-mention/meta/interface.d.ts +5 -0
- package/dist/types/components/mds-modal/mds-modal.d.ts +17 -16
- package/dist/types/components/mds-note/mds-note.d.ts +0 -15
- package/dist/types/components/mds-notification/mds-notification.d.ts +0 -3
- package/dist/types/components/mds-paginator/mds-paginator.d.ts +9 -11
- package/dist/types/components/mds-paginator-item/mds-paginator-item.d.ts +0 -7
- package/dist/types/components/mds-policy-ai/mds-policy-ai.d.ts +0 -7
- package/dist/types/components/mds-pref/mds-pref.d.ts +12 -8
- package/dist/types/components/mds-pref-animation/mds-pref-animation.d.ts +0 -10
- package/dist/types/components/mds-pref-consumption/mds-pref-consumption.d.ts +0 -10
- package/dist/types/components/mds-pref-contrast/mds-pref-contrast.d.ts +0 -10
- package/dist/types/components/mds-pref-language/mds-pref-language.d.ts +3 -9
- package/dist/types/components/mds-pref-language-item/mds-pref-language-item.d.ts +3 -7
- package/dist/types/components/mds-pref-mode/mds-pref-mode.d.ts +62 -0
- package/dist/types/components/mds-pref-mode/meta/dictionary.d.ts +3 -0
- package/dist/types/components/mds-pref-theme/mds-pref-theme.d.ts +63 -45
- package/dist/types/components/mds-pref-theme/meta/dictionary.d.ts +2 -3
- package/dist/types/components/mds-pref-theme-item/mds-pref-theme-item.d.ts +28 -0
- package/dist/types/components/mds-price-table-features/mds-price-table-features.d.ts +0 -10
- package/dist/types/components/mds-price-table-features-cell/mds-price-table-features-cell.d.ts +0 -10
- package/dist/types/components/mds-price-table-features-row/mds-price-table-features-row.d.ts +0 -10
- package/dist/types/components/mds-price-table-list/mds-price-table-list.d.ts +0 -10
- package/dist/types/components/mds-progress/mds-progress.d.ts +0 -10
- package/dist/types/components/mds-push-notification/mds-push-notification.d.ts +0 -6
- package/dist/types/components/mds-push-notification-item/mds-push-notification-item.d.ts +3 -17
- package/dist/types/components/mds-quote/mds-quote.d.ts +0 -4
- package/dist/types/components/mds-radial-progress/mds-radial-progress.d.ts +0 -1
- package/dist/types/components/mds-separator/mds-separator.d.ts +0 -8
- package/dist/types/components/mds-spinner/mds-spinner.d.ts +0 -4
- package/dist/types/components/mds-status-bar/mds-status-bar.d.ts +0 -10
- package/dist/types/components/mds-stepper-bar/mds-stepper-bar.d.ts +10 -0
- package/dist/types/components/mds-stepper-bar-item/mds-stepper-bar-item.d.ts +0 -9
- package/dist/types/components/mds-tab/mds-tab.d.ts +0 -9
- package/dist/types/components/mds-tab-bar/mds-tab-bar.d.ts +0 -10
- package/dist/types/components/mds-tab-bar-item/mds-tab-bar-item.d.ts +0 -10
- package/dist/types/components/mds-tab-item/mds-tab-item.d.ts +5 -8
- package/dist/types/components/mds-table/mds-table.d.ts +10 -14
- package/dist/types/components/mds-table-body/mds-table-body.d.ts +0 -4
- package/dist/types/components/mds-table-cell/mds-table-cell.d.ts +0 -4
- package/dist/types/components/mds-table-footer/mds-table-footer.d.ts +0 -4
- package/dist/types/components/mds-table-header/mds-table-header.d.ts +0 -9
- package/dist/types/components/mds-table-header-cell/mds-table-header-cell.d.ts +0 -4
- package/dist/types/components/mds-table-row/mds-table-row.d.ts +3 -10
- package/dist/types/components/mds-text/mds-text.d.ts +0 -4
- package/dist/types/components/mds-toast/mds-toast.d.ts +2 -11
- package/dist/types/components/mds-tooltip/mds-tooltip.d.ts +0 -9
- package/dist/types/components/mds-tree-item/mds-tree-item.d.ts +1 -5
- package/dist/types/components/mds-url-view/mds-url-view.d.ts +0 -15
- package/dist/types/components/mds-usage/mds-usage.d.ts +0 -16
- package/dist/types/components/mds-video-wall/mds-video-wall.d.ts +2 -1
- package/dist/types/components/mds-zero/mds-zero.d.ts +0 -10
- package/dist/types/components.d.ts +243 -239
- package/dist/types/event-detail/preference.d.ts +2 -2
- package/dist/types/event-detail/theme.d.ts +5 -0
- package/dist/types/stencil-public-runtime.d.ts +12 -0
- package/dist/types/type/preference.d.ts +16 -3
- package/loader/index.d.ts +1 -1
- package/package.json +58 -64
- package/dist/cjs/date-dnDGaLCn.js +0 -16
- package/dist/cjs/floating-controller-CXEVR1wX.js +0 -203
- package/dist/cjs/floating-ui.dom-DW-02Mib.js +0 -1703
- package/dist/cjs/index-CNuKb6Lv.js +0 -2896
- package/dist/cjs/keyboard-manager-BXKT5TGW.js +0 -52
- package/dist/cjs/locale-oGW3SvGJ.js +0 -837
- package/dist/cjs/mds-pref-theme-variant-item.cjs.entry.js +0 -63
- package/dist/cjs/mds-pref-theme-variant.cjs.entry.js +0 -149
- package/dist/cjs/preference-BdpIXWLP.js +0 -81
- package/dist/cjs/slot-CI0KpgtY.js +0 -52
- package/dist/collection/components/mds-accordion/test/mds-accordion.stories.js +0 -39
- package/dist/collection/components/mds-accordion-item/test/mds-accordion-item.stories.js +0 -35
- package/dist/collection/components/mds-accordion-timer/test/mds-accordion-timer.stories.js +0 -51
- package/dist/collection/components/mds-accordion-timer-item/test/mds-accordion-timer-item.stories.js +0 -52
- package/dist/collection/components/mds-author/test/mds-author.stories.js +0 -12
- package/dist/collection/components/mds-avatar/test/mds-avatar.stories.js +0 -71
- package/dist/collection/components/mds-avatar-stack/test/mds-avatar-stack.stories.js +0 -34
- package/dist/collection/components/mds-avatar-stack-item/test/mds-avatar-stack-item.stories.js +0 -60
- package/dist/collection/components/mds-badge/test/mds-badge.stories.js +0 -46
- package/dist/collection/components/mds-banner/test/mds-banner.stories.js +0 -106
- package/dist/collection/components/mds-benchmark-bar/test/mds-benchmark-bar.stories.js +0 -64
- package/dist/collection/components/mds-bibliography/test/mds-bibliography.stories.js +0 -104
- package/dist/collection/components/mds-breadcrumb/test/mds-breadcrumb.stories.js +0 -14
- package/dist/collection/components/mds-breadcrumb-item/test/mds-breadcrumb-item.stories.js +0 -24
- package/dist/collection/components/mds-button/test/mds-button.stories.js +0 -346
- package/dist/collection/components/mds-button-dropdown/test/mds-button-dropdown.stories.js +0 -73
- package/dist/collection/components/mds-button-group/test/mds-button-group.stories.js +0 -12
- package/dist/collection/components/mds-calendar/test/mds-calendar.stories.js +0 -24
- package/dist/collection/components/mds-card/test/mds-card.stories.js +0 -82
- package/dist/collection/components/mds-chip/test/mds-chip.stories.js +0 -120
- package/dist/collection/components/mds-details/test/mds-details.stories.js +0 -20
- package/dist/collection/components/mds-dropdown/test/mds-dropdown.stories.js +0 -256
- package/dist/collection/components/mds-emoji/test/mds-emoji.stories.js +0 -87
- package/dist/collection/components/mds-entity/test/mds-entity.stories.js +0 -101
- package/dist/collection/components/mds-file/test/mds-file.stories.js +0 -73
- package/dist/collection/components/mds-file-preview/test/mds-file-preview.stories.js +0 -154
- package/dist/collection/components/mds-filter/test/mds-filter.stories.js +0 -49
- package/dist/collection/components/mds-filter-item/test/mds-filter-item.stories.js +0 -36
- package/dist/collection/components/mds-header/test/mds-header.stories.js +0 -71
- package/dist/collection/components/mds-header-bar/test/mds-header-bar.stories.js +0 -21
- package/dist/collection/components/mds-help/test/mds-help.stories.js +0 -23
- package/dist/collection/components/mds-horizontal-scroll/test/mds-horizontal-scroll.stories.js +0 -48
- package/dist/collection/components/mds-hr/test/mds-hr.stories.js +0 -14
- package/dist/collection/components/mds-icon/test/mds-icon.stories.js +0 -76
- package/dist/collection/components/mds-img/test/mds-img-accessibility.stories.js +0 -34
- package/dist/collection/components/mds-img/test/mds-img.stories.js +0 -62
- package/dist/collection/components/mds-input/test/mds-input.stories.js +0 -302
- package/dist/collection/components/mds-input-date/test/mds-input-date.stories.js +0 -70
- package/dist/collection/components/mds-input-date-range/test/mds-input-date-range.stories.js +0 -109
- package/dist/collection/components/mds-input-field/test/mds-input-field.stories.js +0 -90
- package/dist/collection/components/mds-input-otp/test/mds-input-otp.stories.js +0 -68
- package/dist/collection/components/mds-input-range/test/mds-input-range.stories.js +0 -92
- package/dist/collection/components/mds-input-select/test/mds-input-select.stories.js +0 -97
- package/dist/collection/components/mds-input-switch/test/mds-input-switch.stories.js +0 -169
- package/dist/collection/components/mds-input-tip/test/mds-input-tip.stories.js +0 -20
- package/dist/collection/components/mds-input-tip-item/test/mds-input-tip.stories.js +0 -20
- package/dist/collection/components/mds-input-upload/test/mds-input-upload.stories.js +0 -48
- package/dist/collection/components/mds-keyboard/test/mds-keyboard.stories.js +0 -30
- package/dist/collection/components/mds-keyboard-key/test/mds-keyboard-key.stories.js +0 -20
- package/dist/collection/components/mds-kpi/test/mds-kpi.stories.js +0 -22
- package/dist/collection/components/mds-kpi-item/test/mds-kpi-item.stories.js +0 -34
- package/dist/collection/components/mds-label/test/mds-label.stories.js +0 -72
- package/dist/collection/components/mds-list/test/mds-list.stories.js +0 -8
- package/dist/collection/components/mds-list-item/test/mds-list-item.stories.js +0 -29
- package/dist/collection/components/mds-mention/test/mds-mention.stories.js +0 -31
- package/dist/collection/components/mds-modal/test/mds-modal.stories.js +0 -388
- package/dist/collection/components/mds-note/test/mds-note.stories.js +0 -31
- package/dist/collection/components/mds-notification/test/mds-notification.stories.js +0 -64
- package/dist/collection/components/mds-paginator/test/mds-paginator.stories.js +0 -28
- package/dist/collection/components/mds-policy-ai/test/mds-policy.stories.js +0 -82
- package/dist/collection/components/mds-pref/test/mds-pref.stories.js +0 -26
- package/dist/collection/components/mds-pref-animation/test/mds-pref-animation.stories.js +0 -18
- package/dist/collection/components/mds-pref-consumption/test/mds-pref-consumption.stories.js +0 -18
- package/dist/collection/components/mds-pref-contrast/test/mds-pref-contrast.stories.js +0 -18
- package/dist/collection/components/mds-pref-language/test/mds-pref-language.stories.js +0 -18
- package/dist/collection/components/mds-pref-theme/test/mds-pref-theme.stories.js +0 -24
- package/dist/collection/components/mds-pref-theme-variant/mds-pref-theme-variant.css +0 -40
- package/dist/collection/components/mds-pref-theme-variant/mds-pref-theme-variant.js +0 -288
- package/dist/collection/components/mds-pref-theme-variant/meta/dictionary.js +0 -2
- package/dist/collection/components/mds-pref-theme-variant/test/mds-pref-theme-variant.stories.js +0 -27
- package/dist/collection/components/mds-pref-theme-variant-item/mds-pref-theme-variant-item.css +0 -100
- package/dist/collection/components/mds-pref-theme-variant-item/mds-pref-theme-variant-item.js +0 -198
- package/dist/collection/components/mds-price-table/test/mds-price-table.stories.js +0 -11
- package/dist/collection/components/mds-price-table-features/test/mds-price-table-features.stories.js +0 -11
- package/dist/collection/components/mds-price-table-features-cell/test/mds-price-table-features-cell.stories.js +0 -11
- package/dist/collection/components/mds-price-table-header/test/mds-price-table-header.stories.js +0 -8
- package/dist/collection/components/mds-price-table-list/test/mds-price-table-list.stories.js +0 -12
- package/dist/collection/components/mds-progress/test/mds-progress.stories.js +0 -66
- package/dist/collection/components/mds-push-notification/test/mds-push-notification.stories.js +0 -104
- package/dist/collection/components/mds-push-notification-item/test/mds-push-notification-item.stories.js +0 -194
- package/dist/collection/components/mds-quote/test/mds-quote.stories.js +0 -33
- package/dist/collection/components/mds-radial-menu/test/mds-radial-menu.stories.js +0 -98
- package/dist/collection/components/mds-radial-menu-item/test/mds-radial-menu-item.stories.js +0 -37
- package/dist/collection/components/mds-radial-progress/test/mds-radial-progress.stories.js +0 -45
- package/dist/collection/components/mds-separator/test/mds-separator.stories.js +0 -8
- package/dist/collection/components/mds-spinner/test/mds-spinner.stories.js +0 -20
- package/dist/collection/components/mds-status-bar/test/mds-status-bar.stories.js +0 -80
- package/dist/collection/components/mds-stepper-bar/test/mds-stepper-bar.stories.js +0 -100
- package/dist/collection/components/mds-stepper-bar-item/test/mds-stepper-bar-item.stories.js +0 -70
- package/dist/collection/components/mds-tab/test/mds-tab.stories.js +0 -152
- package/dist/collection/components/mds-tab-bar/test/mds-tab-bar.stories.js +0 -8
- package/dist/collection/components/mds-tab-bar-item/test/mds-tab-bar-item.stories.js +0 -21
- package/dist/collection/components/mds-tab-item/test/mds-tab-item.stories.js +0 -54
- package/dist/collection/components/mds-table/test/mds-table.stories.js +0 -107
- package/dist/collection/components/mds-text/test/mds-text.stories.js +0 -183
- package/dist/collection/components/mds-toast/test/mds-toast.stories.js +0 -52
- package/dist/collection/components/mds-tooltip/test/mds-tooltip.stories.js +0 -155
- package/dist/collection/components/mds-tree/test/mds-tree-apk.stories.js +0 -66
- package/dist/collection/components/mds-tree/test/mds-tree.stories.js +0 -83
- package/dist/collection/components/mds-tree-item/test/mds-tree-item.stories.js +0 -71
- package/dist/collection/components/mds-url-view/test/mds-url-view.stories.js +0 -75
- package/dist/collection/components/mds-usage/test/mds-usage.stories.js +0 -33
- package/dist/collection/components/mds-video-wall/test/mds-video-wall.stories.js +0 -104
- package/dist/collection/components/mds-zero/test/mds-zero.stories.js +0 -8
- package/dist/collection/storybook/box-shadows.stories.js +0 -53
- package/dist/collection/storybook/color-scale.stories.js +0 -465
- package/dist/collection/storybook/components-preview.stories.js +0 -36
- package/dist/collection/storybook/example-page.stories.js +0 -10
- package/dist/collection/storybook/fouc-hydrated.stories.js +0 -20
- package/dist/collection/storybook/input-form.stories.js +0 -40
- package/dist/collection/storybook/same-childrend-slot-names.stories.js +0 -10
- package/dist/collection/test/file.js +0 -53
- package/dist/collection/test/mock.js +0 -19
- package/dist/components/date.js +0 -1
- package/dist/components/floating-controller.js +0 -1
- package/dist/components/floating-ui.dom.js +0 -1
- package/dist/components/icons-set.service.js +0 -1
- package/dist/components/keyboard-manager.js +0 -1
- package/dist/components/locale.it.js +0 -1
- package/dist/components/locale.js +0 -5
- package/dist/components/mds-avatar-stack-item2.js +0 -1
- package/dist/components/mds-avatar2.js +0 -1
- package/dist/components/mds-badge2.js +0 -1
- package/dist/components/mds-banner2.js +0 -1
- package/dist/components/mds-button2.js +0 -1
- package/dist/components/mds-calendar-cell2.js +0 -1
- package/dist/components/mds-calendar2.js +0 -1
- package/dist/components/mds-chip2.js +0 -1
- package/dist/components/mds-dropdown2.js +0 -1
- package/dist/components/mds-file-preview2.js +0 -8
- package/dist/components/mds-filter-item2.js +0 -1
- package/dist/components/mds-help2.js +0 -1
- package/dist/components/mds-icon2.js +0 -1
- package/dist/components/mds-img2.js +0 -1
- package/dist/components/mds-input-switch2.js +0 -1
- package/dist/components/mds-input-tip-item2.js +0 -1
- package/dist/components/mds-input-tip2.js +0 -1
- package/dist/components/mds-input2.js +0 -1
- package/dist/components/mds-modal2.js +0 -1
- package/dist/components/mds-paginator-item2.js +0 -1
- package/dist/components/mds-pref-theme-variant-item.d.ts +0 -11
- package/dist/components/mds-pref-theme-variant-item.js +0 -1
- package/dist/components/mds-pref-theme-variant.d.ts +0 -11
- package/dist/components/mds-pref-theme-variant.js +0 -1
- package/dist/components/mds-progress2.js +0 -1
- package/dist/components/mds-radial-progress2.js +0 -1
- package/dist/components/mds-separator2.js +0 -1
- package/dist/components/mds-spinner2.js +0 -1
- package/dist/components/mds-tab-item2.js +0 -1
- package/dist/components/mds-tab2.js +0 -1
- package/dist/components/mds-table-cell2.js +0 -1
- package/dist/components/mds-table-header-cell2.js +0 -1
- package/dist/components/mds-text2.js +0 -1
- package/dist/components/mds-tooltip2.js +0 -1
- package/dist/components/preference.js +0 -1
- package/dist/components/slot.js +0 -1
- package/dist/esm/date-C1oxPa_J.js +0 -14
- package/dist/esm/floating-controller-D5eXU5Mk.js +0 -200
- package/dist/esm/floating-ui.dom-8RYXTPXs.js +0 -1695
- package/dist/esm/index-CAd5312P.js +0 -2869
- package/dist/esm/keyboard-manager-BudfaWhu.js +0 -50
- package/dist/esm/locale-a4oAcjYG.js +0 -835
- package/dist/esm/mds-pref-theme-variant-item.entry.js +0 -61
- package/dist/esm/mds-pref-theme-variant.entry.js +0 -147
- package/dist/esm/preference-fMwnXhio.js +0 -79
- package/dist/esm/slot-ttrRC6OE.js +0 -48
- package/dist/esm-es5/date-C1oxPa_J.js +0 -1
- package/dist/esm-es5/floating-controller-D5eXU5Mk.js +0 -1
- package/dist/esm-es5/floating-ui.dom-8RYXTPXs.js +0 -1
- package/dist/esm-es5/index-CAd5312P.js +0 -1
- package/dist/esm-es5/keyboard-manager-BudfaWhu.js +0 -1
- package/dist/esm-es5/locale-a4oAcjYG.js +0 -5
- package/dist/esm-es5/mds-pref-theme-variant-item.entry.js +0 -1
- package/dist/esm-es5/mds-pref-theme-variant.entry.js +0 -1
- package/dist/esm-es5/preference-fMwnXhio.js +0 -1
- package/dist/esm-es5/slot-ttrRC6OE.js +0 -1
- package/dist/magma-components/p-0105d7c7.entry.js +0 -8
- package/dist/magma-components/p-022defe8.entry.js +0 -1
- package/dist/magma-components/p-02d858d0.entry.js +0 -1
- package/dist/magma-components/p-0607a2b3.entry.js +0 -1
- package/dist/magma-components/p-0af4d0ef.entry.js +0 -1
- package/dist/magma-components/p-0b91aae4.entry.js +0 -1
- package/dist/magma-components/p-0bb29dbd.system.entry.js +0 -1
- package/dist/magma-components/p-0c1a5df0.entry.js +0 -1
- package/dist/magma-components/p-0e986d85.entry.js +0 -18
- package/dist/magma-components/p-0ea42813.entry.js +0 -1
- package/dist/magma-components/p-0fe5aeaf.system.entry.js +0 -1
- package/dist/magma-components/p-10ddec99.system.entry.js +0 -1
- package/dist/magma-components/p-11567740.entry.js +0 -1
- package/dist/magma-components/p-116238cf.system.entry.js +0 -1
- package/dist/magma-components/p-1239667c.system.entry.js +0 -1
- package/dist/magma-components/p-1518fda3.system.entry.js +0 -1
- package/dist/magma-components/p-16c94506.system.entry.js +0 -1
- package/dist/magma-components/p-18823bfc.system.entry.js +0 -1
- package/dist/magma-components/p-188e94ef.system.entry.js +0 -1
- package/dist/magma-components/p-19446c9e.entry.js +0 -1
- package/dist/magma-components/p-1a73c7b0.system.entry.js +0 -1
- package/dist/magma-components/p-1ad03ee9.entry.js +0 -1
- package/dist/magma-components/p-1c4038f7.system.entry.js +0 -1
- package/dist/magma-components/p-2035564c.system.entry.js +0 -1
- package/dist/magma-components/p-2128ce5a.system.entry.js +0 -1
- package/dist/magma-components/p-21ee64ec.entry.js +0 -1
- package/dist/magma-components/p-224d2f55.entry.js +0 -1
- package/dist/magma-components/p-23791e85.system.entry.js +0 -1
- package/dist/magma-components/p-248c1b2c.system.entry.js +0 -1
- package/dist/magma-components/p-249b80a5.entry.js +0 -1
- package/dist/magma-components/p-262daf4f.entry.js +0 -1
- package/dist/magma-components/p-288ce251.entry.js +0 -1
- package/dist/magma-components/p-2a804b82.entry.js +0 -1
- package/dist/magma-components/p-2aff9851.system.entry.js +0 -1
- package/dist/magma-components/p-2b0667f6.system.entry.js +0 -1
- package/dist/magma-components/p-2bd03b3d.system.entry.js +0 -1
- package/dist/magma-components/p-2bfa7ed9.system.entry.js +0 -1
- package/dist/magma-components/p-2c6c80e8.entry.js +0 -1
- package/dist/magma-components/p-2e88e014.system.entry.js +0 -1
- package/dist/magma-components/p-2f5cc981.system.entry.js +0 -1
- package/dist/magma-components/p-31403b12.entry.js +0 -1
- package/dist/magma-components/p-31616d0b.entry.js +0 -1
- package/dist/magma-components/p-33b03c17.system.entry.js +0 -1
- package/dist/magma-components/p-353f30cc.system.entry.js +0 -1
- package/dist/magma-components/p-35482f9d.system.entry.js +0 -1
- package/dist/magma-components/p-35b5889a.system.entry.js +0 -1
- package/dist/magma-components/p-36d9d329.system.entry.js +0 -1
- package/dist/magma-components/p-36fd1ed7.system.entry.js +0 -1
- package/dist/magma-components/p-377c94ee.system.entry.js +0 -1
- package/dist/magma-components/p-385f395d.system.entry.js +0 -1
- package/dist/magma-components/p-39c09a42.system.entry.js +0 -1
- package/dist/magma-components/p-3_AKUQtJ.system.js +0 -1
- package/dist/magma-components/p-3c306ed0.system.entry.js +0 -1
- package/dist/magma-components/p-3de6fa18.entry.js +0 -1
- package/dist/magma-components/p-41da539f.entry.js +0 -1
- package/dist/magma-components/p-422bb9e2.system.entry.js +0 -1
- package/dist/magma-components/p-447c2d1b.entry.js +0 -1
- package/dist/magma-components/p-44e2965d.entry.js +0 -1
- package/dist/magma-components/p-46266f27.entry.js +0 -1
- package/dist/magma-components/p-4630472f.entry.js +0 -1
- package/dist/magma-components/p-4671336c.entry.js +0 -1
- package/dist/magma-components/p-4803d24f.system.entry.js +0 -1
- package/dist/magma-components/p-4a929c1c.entry.js +0 -1
- package/dist/magma-components/p-4bc7756a.system.entry.js +0 -1
- package/dist/magma-components/p-4f8ae676.system.entry.js +0 -1
- package/dist/magma-components/p-50c922ad.system.entry.js +0 -1
- package/dist/magma-components/p-50cdb70c.system.entry.js +0 -1
- package/dist/magma-components/p-52c10dbf.system.entry.js +0 -1
- package/dist/magma-components/p-52e35c13.system.entry.js +0 -1
- package/dist/magma-components/p-56a8f1d0.system.entry.js +0 -1
- package/dist/magma-components/p-5724212b.entry.js +0 -1
- package/dist/magma-components/p-5be1c273.entry.js +0 -1
- package/dist/magma-components/p-5d05fa1a.entry.js +0 -1
- package/dist/magma-components/p-5de4bf4f.entry.js +0 -1
- package/dist/magma-components/p-5e626696.entry.js +0 -1
- package/dist/magma-components/p-5f1532c0.system.entry.js +0 -1
- package/dist/magma-components/p-5fe8c814.entry.js +0 -1
- package/dist/magma-components/p-60e8812c.system.entry.js +0 -17
- package/dist/magma-components/p-611fa0a4.entry.js +0 -1
- package/dist/magma-components/p-61fefe1b.system.entry.js +0 -1
- package/dist/magma-components/p-62c9216f.system.entry.js +0 -1
- package/dist/magma-components/p-652b4e43.entry.js +0 -1
- package/dist/magma-components/p-6a92f533.entry.js +0 -1
- package/dist/magma-components/p-6b3569a0.entry.js +0 -1
- package/dist/magma-components/p-6b9175f1.system.entry.js +0 -1
- package/dist/magma-components/p-6ecfec17.entry.js +0 -1
- package/dist/magma-components/p-6ed096d3.system.entry.js +0 -1
- package/dist/magma-components/p-6ee86191.entry.js +0 -1
- package/dist/magma-components/p-70719b58.entry.js +0 -1
- package/dist/magma-components/p-70e1a436.entry.js +0 -1
- package/dist/magma-components/p-725d9e09.entry.js +0 -1
- package/dist/magma-components/p-726a76f0.entry.js +0 -1
- package/dist/magma-components/p-72d91c6f.system.entry.js +0 -1
- package/dist/magma-components/p-73926a10.entry.js +0 -1
- package/dist/magma-components/p-7499262d.system.entry.js +0 -1
- package/dist/magma-components/p-750214a3.entry.js +0 -1
- package/dist/magma-components/p-7590a160.entry.js +0 -1
- package/dist/magma-components/p-75fa7e6f.system.entry.js +0 -1
- package/dist/magma-components/p-765447d4.system.entry.js +0 -1
- package/dist/magma-components/p-76cb480d.entry.js +0 -1
- package/dist/magma-components/p-79e12ac8.entry.js +0 -1
- package/dist/magma-components/p-7b4b9b88.system.entry.js +0 -1
- package/dist/magma-components/p-7c464f28.entry.js +0 -1
- package/dist/magma-components/p-7d338f59.system.entry.js +0 -1
- package/dist/magma-components/p-81e16f90.system.entry.js +0 -1
- package/dist/magma-components/p-82c6cdb9.system.entry.js +0 -1
- package/dist/magma-components/p-83b01f8e.system.entry.js +0 -1
- package/dist/magma-components/p-8546f46f.system.entry.js +0 -1
- package/dist/magma-components/p-85a2d99d.entry.js +0 -1
- package/dist/magma-components/p-8620f425.entry.js +0 -1
- package/dist/magma-components/p-89581b08.system.entry.js +0 -1
- package/dist/magma-components/p-8964a9fe.entry.js +0 -1
- package/dist/magma-components/p-899cd759.entry.js +0 -1
- package/dist/magma-components/p-8RYXTPXs.js +0 -1
- package/dist/magma-components/p-8b2408b2.entry.js +0 -1
- package/dist/magma-components/p-8b9f6896.entry.js +0 -1
- package/dist/magma-components/p-8bde0c42.entry.js +0 -1
- package/dist/magma-components/p-8d5955ca.system.entry.js +0 -1
- package/dist/magma-components/p-91a1d3d5.entry.js +0 -1
- package/dist/magma-components/p-93538408.system.entry.js +0 -1
- package/dist/magma-components/p-94ff105b.system.entry.js +0 -1
- package/dist/magma-components/p-96f7ec63.entry.js +0 -1
- package/dist/magma-components/p-97144490.entry.js +0 -1
- package/dist/magma-components/p-999b0698.system.entry.js +0 -1
- package/dist/magma-components/p-9e533765.system.entry.js +0 -18
- package/dist/magma-components/p-BMAK4u5Y.system.js +0 -1
- package/dist/magma-components/p-Bh89IjzU.system.js +0 -1
- package/dist/magma-components/p-BudfaWhu.js +0 -1
- package/dist/magma-components/p-C1oxPa_J.js +0 -1
- package/dist/magma-components/p-CAd5312P.js +0 -2
- package/dist/magma-components/p-CJPnuGyH.system.js +0 -1
- package/dist/magma-components/p-DI5DWqw4.system.js +0 -2
- package/dist/magma-components/p-DTZViJWJ.system.js +0 -1
- package/dist/magma-components/p-DcKeJ0td.system.js +0 -6
- package/dist/magma-components/p-DssKRrAV.system.js +0 -1
- package/dist/magma-components/p-MSUJeuJp.js +0 -1
- package/dist/magma-components/p-a24d6d4a.system.entry.js +0 -1
- package/dist/magma-components/p-a24dadaa.system.entry.js +0 -1
- package/dist/magma-components/p-a2b84011.system.entry.js +0 -1
- package/dist/magma-components/p-a2d761d6.entry.js +0 -1
- package/dist/magma-components/p-a379adca.entry.js +0 -1
- package/dist/magma-components/p-a46f7424.system.entry.js +0 -1
- package/dist/magma-components/p-a47708f1.system.entry.js +0 -1
- package/dist/magma-components/p-a4d11055.system.entry.js +0 -1
- package/dist/magma-components/p-a4oAcjYG.js +0 -5
- package/dist/magma-components/p-a5ef9d32.entry.js +0 -18
- package/dist/magma-components/p-a6103622.entry.js +0 -1
- package/dist/magma-components/p-a6b8b861.entry.js +0 -1
- package/dist/magma-components/p-a6bdaa85.entry.js +0 -1
- package/dist/magma-components/p-a716833c.system.entry.js +0 -1
- package/dist/magma-components/p-a877906d.system.entry.js +0 -1
- package/dist/magma-components/p-a8a2d90e.system.entry.js +0 -1
- package/dist/magma-components/p-a92edada.entry.js +0 -1
- package/dist/magma-components/p-aafec5fe.entry.js +0 -1
- package/dist/magma-components/p-abce0c57.system.entry.js +0 -1
- package/dist/magma-components/p-ac2ee475.entry.js +0 -1
- package/dist/magma-components/p-ac5baffa.system.entry.js +0 -1
- package/dist/magma-components/p-ad1ad433.system.entry.js +0 -1
- package/dist/magma-components/p-ae433eb9.entry.js +0 -1
- package/dist/magma-components/p-afaef9a1.entry.js +0 -1
- package/dist/magma-components/p-b257222c.system.entry.js +0 -1
- package/dist/magma-components/p-b472ed3c.entry.js +0 -1
- package/dist/magma-components/p-b4fc19e9.entry.js +0 -1
- package/dist/magma-components/p-b53ef2c1.entry.js +0 -1
- package/dist/magma-components/p-b7dedc9f.entry.js +0 -1
- package/dist/magma-components/p-b97edfb5.entry.js +0 -1
- package/dist/magma-components/p-bc851caf.entry.js +0 -1
- package/dist/magma-components/p-bc8ef479.system.entry.js +0 -9
- package/dist/magma-components/p-bdc54840.system.entry.js +0 -1
- package/dist/magma-components/p-bf29ca5a.entry.js +0 -1
- package/dist/magma-components/p-bfc29d3b.system.entry.js +0 -1
- package/dist/magma-components/p-bff1e84c.system.entry.js +0 -1
- package/dist/magma-components/p-c01c49b6.entry.js +0 -1
- package/dist/magma-components/p-c0296d86.system.entry.js +0 -1
- package/dist/magma-components/p-c036f516.entry.js +0 -1
- package/dist/magma-components/p-c3d8aa52.entry.js +0 -1
- package/dist/magma-components/p-c4e7b103.system.entry.js +0 -1
- package/dist/magma-components/p-c7a0a746.system.entry.js +0 -1
- package/dist/magma-components/p-c92a772e.entry.js +0 -1
- package/dist/magma-components/p-ca09ab1d.system.entry.js +0 -1
- package/dist/magma-components/p-cc9212ce.system.entry.js +0 -1
- package/dist/magma-components/p-cc95225c.system.entry.js +0 -1
- package/dist/magma-components/p-cd49c455.entry.js +0 -1
- package/dist/magma-components/p-d0542487.entry.js +0 -1
- package/dist/magma-components/p-d0dfe659.entry.js +0 -1
- package/dist/magma-components/p-d0eb94ea.system.entry.js +0 -1
- package/dist/magma-components/p-d3e5c4eb.system.entry.js +0 -1
- package/dist/magma-components/p-d4295773.entry.js +0 -1
- package/dist/magma-components/p-d5700423.system.entry.js +0 -1
- package/dist/magma-components/p-d838cb1c.system.entry.js +0 -1
- package/dist/magma-components/p-d9605a5d.system.entry.js +0 -1
- package/dist/magma-components/p-daa8f835.entry.js +0 -1
- package/dist/magma-components/p-db4e2a0b.system.entry.js +0 -1
- package/dist/magma-components/p-de0dac8f.entry.js +0 -1
- package/dist/magma-components/p-de8204f9.entry.js +0 -1
- package/dist/magma-components/p-e0b841e3.entry.js +0 -1
- package/dist/magma-components/p-e35ab355.entry.js +0 -1
- package/dist/magma-components/p-e44e2652.system.entry.js +0 -1
- package/dist/magma-components/p-e48d23f4.system.entry.js +0 -1
- package/dist/magma-components/p-e570aec5.system.entry.js +0 -1
- package/dist/magma-components/p-e57698df.system.entry.js +0 -1
- package/dist/magma-components/p-e669739e.entry.js +0 -1
- package/dist/magma-components/p-e8fa7a07.entry.js +0 -1
- package/dist/magma-components/p-ea2c8dd1.entry.js +0 -1
- package/dist/magma-components/p-ea881c45.system.entry.js +0 -1
- package/dist/magma-components/p-ebfb6963.system.entry.js +0 -1
- package/dist/magma-components/p-eca8523b.system.entry.js +0 -1
- package/dist/magma-components/p-ef142420.system.entry.js +0 -1
- package/dist/magma-components/p-ef56af85.system.entry.js +0 -1
- package/dist/magma-components/p-f0762290.entry.js +0 -1
- package/dist/magma-components/p-f1832c1e.system.entry.js +0 -1
- package/dist/magma-components/p-f4b1974a.entry.js +0 -1
- package/dist/magma-components/p-f7cfc9a7.system.entry.js +0 -1
- package/dist/magma-components/p-f83a9e08.entry.js +0 -1
- package/dist/magma-components/p-f8ee5fec.system.entry.js +0 -1
- package/dist/magma-components/p-f91dab2b.entry.js +0 -1
- package/dist/magma-components/p-fMwnXhio.js +0 -1
- package/dist/magma-components/p-fa61d03c.entry.js +0 -1
- package/dist/magma-components/p-fbf423a7.system.entry.js +0 -1
- package/dist/magma-components/p-fbfb589c.entry.js +0 -1
- package/dist/magma-components/p-fc56d9ae.entry.js +0 -1
- package/dist/magma-components/p-fc862fe2.system.entry.js +0 -1
- package/dist/magma-components/p-fd574e21.entry.js +0 -1
- package/dist/magma-components/p-fd649ac2.entry.js +0 -1
- package/dist/magma-components/p-fed36619.entry.js +0 -1
- package/dist/magma-components/p-oCzRm29V.system.js +0 -1
- package/dist/magma-components/p-ttrRC6OE.js +0 -1
- package/dist/magma-components/p-vYOT2M2B.system.js +0 -1
- package/dist/types/components/mds-accordion/test/mds-accordion.stories.d.ts +0 -40
- package/dist/types/components/mds-accordion-item/test/mds-accordion-item.stories.d.ts +0 -41
- package/dist/types/components/mds-accordion-timer/test/mds-accordion-timer.stories.d.ts +0 -45
- package/dist/types/components/mds-accordion-timer-item/test/mds-accordion-timer-item.stories.d.ts +0 -67
- package/dist/types/components/mds-author/test/mds-author.stories.d.ts +0 -10
- package/dist/types/components/mds-avatar/test/mds-avatar.stories.d.ts +0 -82
- package/dist/types/components/mds-avatar-stack/test/mds-avatar-stack.stories.d.ts +0 -38
- package/dist/types/components/mds-avatar-stack-item/test/mds-avatar-stack-item.stories.d.ts +0 -71
- package/dist/types/components/mds-badge/test/mds-badge.stories.d.ts +0 -56
- package/dist/types/components/mds-banner/test/mds-banner.stories.d.ts +0 -115
- package/dist/types/components/mds-benchmark-bar/test/mds-benchmark-bar.stories.d.ts +0 -85
- package/dist/types/components/mds-bibliography/test/mds-bibliography.stories.d.ts +0 -129
- package/dist/types/components/mds-breadcrumb/test/mds-breadcrumb.stories.d.ts +0 -16
- package/dist/types/components/mds-breadcrumb-item/test/mds-breadcrumb-item.stories.d.ts +0 -26
- package/dist/types/components/mds-button/test/mds-button.stories.d.ts +0 -253
- package/dist/types/components/mds-button-dropdown/test/mds-button-dropdown.stories.d.ts +0 -104
- package/dist/types/components/mds-button-group/test/mds-button-group.stories.d.ts +0 -10
- package/dist/types/components/mds-calendar/test/mds-calendar.stories.d.ts +0 -23
- package/dist/types/components/mds-card/test/mds-card.stories.d.ts +0 -66
- package/dist/types/components/mds-chip/test/mds-chip.stories.d.ts +0 -121
- package/dist/types/components/mds-details/test/mds-details.stories.d.ts +0 -21
- package/dist/types/components/mds-dropdown/test/mds-dropdown.stories.d.ts +0 -275
- package/dist/types/components/mds-emoji/test/mds-emoji.stories.d.ts +0 -19
- package/dist/types/components/mds-entity/test/mds-entity.stories.d.ts +0 -84
- package/dist/types/components/mds-file/test/mds-file.stories.d.ts +0 -145
- package/dist/types/components/mds-file-preview/test/mds-file-preview.stories.d.ts +0 -157
- package/dist/types/components/mds-filter/test/mds-filter.stories.d.ts +0 -56
- package/dist/types/components/mds-filter-item/test/mds-filter-item.stories.d.ts +0 -43
- package/dist/types/components/mds-header/test/mds-header.stories.d.ts +0 -68
- package/dist/types/components/mds-header-bar/test/mds-header-bar.stories.d.ts +0 -23
- package/dist/types/components/mds-help/test/mds-help.stories.d.ts +0 -25
- package/dist/types/components/mds-horizontal-scroll/test/mds-horizontal-scroll.stories.d.ts +0 -57
- package/dist/types/components/mds-hr/test/mds-hr.stories.d.ts +0 -13
- package/dist/types/components/mds-icon/test/mds-icon.stories.d.ts +0 -55
- package/dist/types/components/mds-img/test/mds-img-accessibility.stories.d.ts +0 -93
- package/dist/types/components/mds-img/test/mds-img.stories.d.ts +0 -122
- package/dist/types/components/mds-input/test/mds-input.stories.d.ts +0 -332
- package/dist/types/components/mds-input-date/test/mds-input-date.stories.d.ts +0 -73
- package/dist/types/components/mds-input-date-range/test/mds-input-date-range.stories.d.ts +0 -70
- package/dist/types/components/mds-input-field/test/mds-input-field.stories.d.ts +0 -86
- package/dist/types/components/mds-input-otp/test/mds-input-otp.stories.d.ts +0 -36
- package/dist/types/components/mds-input-range/test/mds-input-range.stories.d.ts +0 -75
- package/dist/types/components/mds-input-select/test/mds-input-select.stories.d.ts +0 -105
- package/dist/types/components/mds-input-switch/test/mds-input-switch.stories.d.ts +0 -195
- package/dist/types/components/mds-input-tip/test/mds-input-tip.stories.d.ts +0 -22
- package/dist/types/components/mds-input-tip-item/test/mds-input-tip.stories.d.ts +0 -22
- package/dist/types/components/mds-input-upload/test/mds-input-upload.stories.d.ts +0 -55
- package/dist/types/components/mds-keyboard/test/mds-keyboard.stories.d.ts +0 -27
- package/dist/types/components/mds-keyboard-key/test/mds-keyboard-key.stories.d.ts +0 -22
- package/dist/types/components/mds-kpi/test/mds-kpi.stories.d.ts +0 -26
- package/dist/types/components/mds-kpi-item/test/mds-kpi-item.stories.d.ts +0 -42
- package/dist/types/components/mds-label/test/mds-label.stories.d.ts +0 -86
- package/dist/types/components/mds-list/test/mds-list.stories.d.ts +0 -7
- package/dist/types/components/mds-list-item/test/mds-list-item.stories.d.ts +0 -38
- package/dist/types/components/mds-mention/test/mds-mention.stories.d.ts +0 -38
- package/dist/types/components/mds-modal/test/mds-modal.stories.d.ts +0 -156
- package/dist/types/components/mds-note/test/mds-note.stories.d.ts +0 -34
- package/dist/types/components/mds-notification/test/mds-notification.stories.d.ts +0 -68
- package/dist/types/components/mds-paginator/test/mds-paginator.stories.d.ts +0 -33
- package/dist/types/components/mds-policy-ai/test/mds-policy.stories.d.ts +0 -83
- package/dist/types/components/mds-pref/test/mds-pref.stories.d.ts +0 -29
- package/dist/types/components/mds-pref-animation/test/mds-pref-animation.stories.d.ts +0 -20
- package/dist/types/components/mds-pref-consumption/test/mds-pref-consumption.stories.d.ts +0 -20
- package/dist/types/components/mds-pref-contrast/test/mds-pref-contrast.stories.d.ts +0 -20
- package/dist/types/components/mds-pref-language/test/mds-pref-language.stories.d.ts +0 -20
- package/dist/types/components/mds-pref-theme/test/mds-pref-theme.stories.d.ts +0 -30
- package/dist/types/components/mds-pref-theme-variant/mds-pref-theme-variant.d.ts +0 -62
- package/dist/types/components/mds-pref-theme-variant/meta/dictionary.d.ts +0 -2
- package/dist/types/components/mds-pref-theme-variant/test/mds-pref-theme-variant.stories.d.ts +0 -30
- package/dist/types/components/mds-pref-theme-variant-item/mds-pref-theme-variant-item.d.ts +0 -35
- package/dist/types/components/mds-price-table/test/mds-price-table.stories.d.ts +0 -10
- package/dist/types/components/mds-price-table-features/test/mds-price-table-features.stories.d.ts +0 -10
- package/dist/types/components/mds-price-table-features-cell/test/mds-price-table-features-cell.stories.d.ts +0 -10
- package/dist/types/components/mds-price-table-header/test/mds-price-table-header.stories.d.ts +0 -7
- package/dist/types/components/mds-price-table-list/test/mds-price-table-list.stories.d.ts +0 -10
- package/dist/types/components/mds-progress/test/mds-progress.stories.d.ts +0 -89
- package/dist/types/components/mds-push-notification/test/mds-push-notification.stories.d.ts +0 -28
- package/dist/types/components/mds-push-notification-item/test/mds-push-notification-item.stories.d.ts +0 -210
- package/dist/types/components/mds-quote/test/mds-quote.stories.d.ts +0 -34
- package/dist/types/components/mds-radial-menu/test/mds-radial-menu.stories.d.ts +0 -123
- package/dist/types/components/mds-radial-menu-item/test/mds-radial-menu-item.stories.d.ts +0 -48
- package/dist/types/components/mds-radial-progress/test/mds-radial-progress.stories.d.ts +0 -68
- package/dist/types/components/mds-separator/test/mds-separator.stories.d.ts +0 -7
- package/dist/types/components/mds-spinner/test/mds-spinner.stories.d.ts +0 -21
- package/dist/types/components/mds-status-bar/test/mds-status-bar.stories.d.ts +0 -34
- package/dist/types/components/mds-stepper-bar/test/mds-stepper-bar.stories.d.ts +0 -45
- package/dist/types/components/mds-stepper-bar-item/test/mds-stepper-bar-item.stories.d.ts +0 -102
- package/dist/types/components/mds-tab/test/mds-tab.stories.d.ts +0 -111
- package/dist/types/components/mds-tab-bar/test/mds-tab-bar.stories.d.ts +0 -7
- package/dist/types/components/mds-tab-bar-item/test/mds-tab-bar-item.stories.d.ts +0 -25
- package/dist/types/components/mds-tab-item/test/mds-tab-item.stories.d.ts +0 -69
- package/dist/types/components/mds-table/test/mds-table.stories.d.ts +0 -63
- package/dist/types/components/mds-text/test/mds-text.stories.d.ts +0 -181
- package/dist/types/components/mds-toast/test/mds-toast.stories.d.ts +0 -59
- package/dist/types/components/mds-tooltip/test/mds-tooltip.stories.d.ts +0 -192
- package/dist/types/components/mds-tree/test/mds-tree-apk.stories.d.ts +0 -16
- package/dist/types/components/mds-tree/test/mds-tree.stories.d.ts +0 -86
- package/dist/types/components/mds-tree-item/test/mds-tree-item.stories.d.ts +0 -48
- package/dist/types/components/mds-url-view/test/mds-url-view.stories.d.ts +0 -63
- package/dist/types/components/mds-usage/test/mds-usage.stories.d.ts +0 -37
- package/dist/types/components/mds-video-wall/test/mds-video-wall.stories.d.ts +0 -119
- package/dist/types/components/mds-zero/test/mds-zero.stories.d.ts +0 -7
- package/dist/types/event-detail/theme-variant.d.ts +0 -5
- package/dist/types/storybook/box-shadows.stories.d.ts +0 -7
- package/dist/types/storybook/color-scale.stories.d.ts +0 -7
- package/dist/types/storybook/components-preview.stories.d.ts +0 -33
- package/dist/types/storybook/example-page.stories.d.ts +0 -7
- package/dist/types/storybook/fouc-hydrated.stories.d.ts +0 -7
- package/dist/types/storybook/input-form.stories.d.ts +0 -7
- package/dist/types/storybook/same-childrend-slot-names.stories.d.ts +0 -7
- package/dist/types/test/file.d.ts +0 -35
- package/dist/types/test/mock.d.ts +0 -2
- /package/dist/collection/{event-detail/theme-variant.js → components/mds-mention/meta/interface.js} +0 -0
- /package/dist/components/{broken-image.js → p-0FAG3rkw.js} +0 -0
- /package/dist/components/{horizontal-rule.js → p-BE8xuIpS.js} +0 -0
- /package/dist/components/{check-circle.js → p-BFhO-KUe.js} +0 -0
- /package/dist/components/{cancel.js → p-BJ8rpzfj.js} +0 -0
- /package/dist/components/{calendar-today.js → p-BVQMG7KJ.js} +0 -0
- /package/dist/components/{arrow-forward.js → p-Bd0uuNDE.js} +0 -0
- /package/dist/components/{keys.js → p-C4ckbXOl.js} +0 -0
- /package/dist/components/{panorama.js → p-CGFwoK_U.js} +0 -0
- /package/dist/components/{aria.js → p-CSCy6TMW.js} +0 -0
- /package/dist/components/{keyboard-arrow-up.js → p-Ccz0jCNB.js} +0 -0
- /package/dist/components/{clsx.js → p-ChV9xqsO.js} +0 -0
- /package/dist/components/{done.js → p-CvUz9jjh.js} +0 -0
- /package/dist/components/{remove.js → p-D17B058a.js} +0 -0
- /package/dist/components/{unit.js → p-D8eZRaSQ.js} +0 -0
- /package/dist/components/{keyboard-arrow-right.js → p-DFyAGAnn.js} +0 -0
- /package/dist/components/{keyboard-arrow-down.js → p-DiWN48aq.js} +0 -0
- /package/dist/components/{browser.js → p-Dje8Mggf.js} +0 -0
- /package/dist/components/{arrow-back.js → p-DnEUG7st.js} +0 -0
- /package/dist/components/{_commonjsHelpers.js → p-E-ZsRS8r.js} +0 -0
- /package/dist/components/{close.js → p-J-ikDhyq.js} +0 -0
- /package/dist/components/{settings.js → p-XQgkfNpn.js} +0 -0
- /package/dist/components/{circle.js → p-lZldSMeV.js} +0 -0
|
@@ -1,4 +1,1383 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(r,e,a,i){function t(r){return r instanceof a?r:new a((function(e){e(r)}))}return new(a||(a=Promise))((function(a,n){function o(r){try{v(i.next(r))}catch(r){n(r)}}function s(r){try{v(i["throw"](r))}catch(r){n(r)}}function v(r){r.done?a(r.value):t(r.value).then(o,s)}v((i=i.apply(r,e||[])).next())}))};var __generator=this&&this.__generator||function(r,e){var a={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},i,t,n,o=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return o.next=s(0),o["throw"]=s(1),o["return"]=s(2),typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(r){return function(e){return v([r,e])}}function v(s){if(i)throw new TypeError("Generator is already executing.");while(o&&(o=0,s[0]&&(a=0)),a)try{if(i=1,t&&(n=s[0]&2?t["return"]:s[0]?t["throw"]||((n=t["return"])&&n.call(t),0):t.next)&&!(n=n.call(t,s[1])).done)return n;if(t=0,n)s=[s[0]&2,n.value];switch(s[0]){case 0:case 1:n=s;break;case 4:a.label++;return{value:s[1],done:false};case 5:a.label++;t=s[1];s=[0];continue;case 7:s=a.ops.pop();a.trys.pop();continue;default:if(!(n=a.trys,n=n.length>0&&n[n.length-1])&&(s[0]===6||s[0]===2)){a=0;continue}if(s[0]===3&&(!n||s[1]>n[0]&&s[1]<n[3])){a.label=s[1];break}if(s[0]===6&&a.label<n[1]){a.label=n[1];n=s;break}if(n&&a.label<n[2]){a.label=n[2];a.ops.push(s);break}if(n[2])a.ops.pop();a.trys.pop();continue}s=e.call(r,a)}catch(r){s=[6,r];t=0}finally{i=n=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-CAd5312P.js";import{a as getAugmentedNamespace,c as commonjsGlobal}from"./_commonjsHelpers-E-ZsRS8r.js";import{f as fileDescriptionLocaleIt,a as fileDescriptionLocaleEs,b as fileDescriptionLocaleEn,c as fileDescriptionLocaleEl,g as getExtensionInfos,d as getSuffix,h as getName,e as getFormatsVariant}from"./locale.it-Dj8sWDfj.js";import{L as Locale}from"./locale-a4oAcjYG.js";import{s as subscribePreference}from"./preference-fMwnXhio.js";import"./file-extensions-BxIk5ZFV.js";import"./panorama-b1ORvfSX.js";var cryptoJs$1={exports:{}};function commonjsRequire(r){throw new Error('Could not dynamically require "'+r+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var core$1={exports:{}};var _nodeResolve_empty={};var _nodeResolve_empty$1=Object.freeze({__proto__:null,default:_nodeResolve_empty});var require$$0=getAugmentedNamespace(_nodeResolve_empty$1);var core=core$1.exports;var hasRequiredCore;function requireCore(){if(hasRequiredCore)return core$1.exports;hasRequiredCore=1;(function(r,e){(function(e,a){{r.exports=a()}})(core,(function(){var r=r||function(r,e){var a;if(typeof window!=="undefined"&&window.crypto){a=window.crypto}if(typeof self!=="undefined"&&self.crypto){a=self.crypto}if(typeof globalThis!=="undefined"&&globalThis.crypto){a=globalThis.crypto}if(!a&&typeof window!=="undefined"&&window.msCrypto){a=window.msCrypto}if(!a&&typeof commonjsGlobal!=="undefined"&&commonjsGlobal.crypto){a=commonjsGlobal.crypto}if(!a&&typeof commonjsRequire==="function"){try{a=require$$0}catch(r){}}var i=function(){if(a){if(typeof a.getRandomValues==="function"){try{return a.getRandomValues(new Uint32Array(1))[0]}catch(r){}}if(typeof a.randomBytes==="function"){try{return a.randomBytes(4).readInt32LE()}catch(r){}}}throw new Error("Native crypto module could not be used to get secure random number.")};var t=Object.create||function(){function r(){}return function(e){var a;r.prototype=e;a=new r;r.prototype=null;return a}}();var n={};var o=n.lib={};var s=o.Base=function(){return{extend:function(r){var e=t(this);if(r){e.mixIn(r)}if(!e.hasOwnProperty("init")||this.init===e.init){e.init=function(){e.$super.init.apply(this,arguments)}}e.init.prototype=e;e.$super=this;return e},create:function(){var r=this.extend();r.init.apply(r,arguments);return r},init:function(){},mixIn:function(r){for(var e in r){if(r.hasOwnProperty(e)){this[e]=r[e]}}if(r.hasOwnProperty("toString")){this.toString=r.toString}},clone:function(){return this.init.prototype.extend(this)}}}();var v=o.WordArray=s.extend({init:function(r,a){r=this.words=r||[];if(a!=e){this.sigBytes=a}else{this.sigBytes=r.length*4}},toString:function(r){return(r||f).stringify(this)},concat:function(r){var e=this.words;var a=r.words;var i=this.sigBytes;var t=r.sigBytes;this.clamp();if(i%4){for(var n=0;n<t;n++){var o=a[n>>>2]>>>24-n%4*8&255;e[i+n>>>2]|=o<<24-(i+n)%4*8}}else{for(var s=0;s<t;s+=4){e[i+s>>>2]=a[s>>>2]}}this.sigBytes+=t;return this},clamp:function(){var e=this.words;var a=this.sigBytes;e[a>>>2]&=4294967295<<32-a%4*8;e.length=r.ceil(a/4)},clone:function(){var r=s.clone.call(this);r.words=this.words.slice(0);return r},random:function(r){var e=[];for(var a=0;a<r;a+=4){e.push(i())}return new v.init(e,r)}});var u=n.enc={};var f=u.Hex={stringify:function(r){var e=r.words;var a=r.sigBytes;var i=[];for(var t=0;t<a;t++){var n=e[t>>>2]>>>24-t%4*8&255;i.push((n>>>4).toString(16));i.push((n&15).toString(16))}return i.join("")},parse:function(r){var e=r.length;var a=[];for(var i=0;i<e;i+=2){a[i>>>3]|=parseInt(r.substr(i,2),16)<<24-i%8*4}return new v.init(a,e/2)}};var c=u.Latin1={stringify:function(r){var e=r.words;var a=r.sigBytes;var i=[];for(var t=0;t<a;t++){var n=e[t>>>2]>>>24-t%4*8&255;i.push(String.fromCharCode(n))}return i.join("")},parse:function(r){var e=r.length;var a=[];for(var i=0;i<e;i++){a[i>>>2]|=(r.charCodeAt(i)&255)<<24-i%4*8}return new v.init(a,e)}};var d=u.Utf8={stringify:function(r){try{return decodeURIComponent(escape(c.stringify(r)))}catch(r){throw new Error("Malformed UTF-8 data")}},parse:function(r){return c.parse(unescape(encodeURIComponent(r)))}};var h=o.BufferedBlockAlgorithm=s.extend({reset:function(){this._data=new v.init;this._nDataBytes=0},_append:function(r){if(typeof r=="string"){r=d.parse(r)}this._data.concat(r);this._nDataBytes+=r.sigBytes},_process:function(e){var a;var i=this._data;var t=i.words;var n=i.sigBytes;var o=this.blockSize;var s=o*4;var u=n/s;if(e){u=r.ceil(u)}else{u=r.max((u|0)-this._minBufferSize,0)}var f=u*o;var c=r.min(f*4,n);if(f){for(var d=0;d<f;d+=o){this._doProcessBlock(t,d)}a=t.splice(0,f);i.sigBytes-=c}return new v.init(a,c)},clone:function(){var r=s.clone.call(this);r._data=this._data.clone();return r},_minBufferSize:0});o.Hasher=h.extend({cfg:s.extend(),init:function(r){this.cfg=this.cfg.extend(r);this.reset()},reset:function(){h.reset.call(this);this._doReset()},update:function(r){this._append(r);this._process();return this},finalize:function(r){if(r){this._append(r)}var e=this._doFinalize();return e},blockSize:512/32,_createHelper:function(r){return function(e,a){return new r.init(a).finalize(e)}},_createHmacHelper:function(r){return function(e,a){return new l.HMAC.init(r,a).finalize(e)}}});var l=n.algo={};return n}(Math);return r}))})(core$1);return core$1.exports}var x64Core$1={exports:{}};var x64Core=x64Core$1.exports;var hasRequiredX64Core;function requireX64Core(){if(hasRequiredX64Core)return x64Core$1.exports;hasRequiredX64Core=1;(function(r,e){(function(e,a){{r.exports=a(requireCore())}})(x64Core,(function(r){(function(e){var a=r;var i=a.lib;var t=i.Base;var n=i.WordArray;var o=a.x64={};o.Word=t.extend({init:function(r,e){this.high=r;this.low=e}});o.WordArray=t.extend({init:function(r,a){r=this.words=r||[];if(a!=e){this.sigBytes=a}else{this.sigBytes=r.length*8}},toX32:function(){var r=this.words;var e=r.length;var a=[];for(var i=0;i<e;i++){var t=r[i];a.push(t.high);a.push(t.low)}return n.create(a,this.sigBytes)},clone:function(){var r=t.clone.call(this);var e=r.words=this.words.slice(0);var a=e.length;for(var i=0;i<a;i++){e[i]=e[i].clone()}return r}})})();return r}))})(x64Core$1);return x64Core$1.exports}var libTypedarrays$1={exports:{}};var libTypedarrays=libTypedarrays$1.exports;var hasRequiredLibTypedarrays;function requireLibTypedarrays(){if(hasRequiredLibTypedarrays)return libTypedarrays$1.exports;hasRequiredLibTypedarrays=1;(function(r,e){(function(e,a){{r.exports=a(requireCore())}})(libTypedarrays,(function(r){(function(){if(typeof ArrayBuffer!="function"){return}var e=r;var a=e.lib;var i=a.WordArray;var t=i.init;var n=i.init=function(r){if(r instanceof ArrayBuffer){r=new Uint8Array(r)}if(r instanceof Int8Array||typeof Uint8ClampedArray!=="undefined"&&r instanceof Uint8ClampedArray||r instanceof Int16Array||r instanceof Uint16Array||r instanceof Int32Array||r instanceof Uint32Array||r instanceof Float32Array||r instanceof Float64Array){r=new Uint8Array(r.buffer,r.byteOffset,r.byteLength)}if(r instanceof Uint8Array){var e=r.byteLength;var a=[];for(var i=0;i<e;i++){a[i>>>2]|=r[i]<<24-i%4*8}t.call(this,a,e)}else{t.apply(this,arguments)}};n.prototype=i})();return r.lib.WordArray}))})(libTypedarrays$1);return libTypedarrays$1.exports}var encUtf16$1={exports:{}};var encUtf16=encUtf16$1.exports;var hasRequiredEncUtf16;function requireEncUtf16(){if(hasRequiredEncUtf16)return encUtf16$1.exports;hasRequiredEncUtf16=1;(function(r,e){(function(e,a){{r.exports=a(requireCore())}})(encUtf16,(function(r){(function(){var e=r;var a=e.lib;var i=a.WordArray;var t=e.enc;t.Utf16=t.Utf16BE={stringify:function(r){var e=r.words;var a=r.sigBytes;var i=[];for(var t=0;t<a;t+=2){var n=e[t>>>2]>>>16-t%4*8&65535;i.push(String.fromCharCode(n))}return i.join("")},parse:function(r){var e=r.length;var a=[];for(var t=0;t<e;t++){a[t>>>1]|=r.charCodeAt(t)<<16-t%2*16}return i.create(a,e*2)}};t.Utf16LE={stringify:function(r){var e=r.words;var a=r.sigBytes;var i=[];for(var t=0;t<a;t+=2){var o=n(e[t>>>2]>>>16-t%4*8&65535);i.push(String.fromCharCode(o))}return i.join("")},parse:function(r){var e=r.length;var a=[];for(var t=0;t<e;t++){a[t>>>1]|=n(r.charCodeAt(t)<<16-t%2*16)}return i.create(a,e*2)}};function n(r){return r<<8&4278255360|r>>>8&16711935}})();return r.enc.Utf16}))})(encUtf16$1);return encUtf16$1.exports}var encBase64$1={exports:{}};var encBase64=encBase64$1.exports;var hasRequiredEncBase64;function requireEncBase64(){if(hasRequiredEncBase64)return encBase64$1.exports;hasRequiredEncBase64=1;(function(r,e){(function(e,a){{r.exports=a(requireCore())}})(encBase64,(function(r){(function(){var e=r;var a=e.lib;var i=a.WordArray;var t=e.enc;t.Base64={stringify:function(r){var e=r.words;var a=r.sigBytes;var i=this._map;r.clamp();var t=[];for(var n=0;n<a;n+=3){var o=e[n>>>2]>>>24-n%4*8&255;var s=e[n+1>>>2]>>>24-(n+1)%4*8&255;var v=e[n+2>>>2]>>>24-(n+2)%4*8&255;var u=o<<16|s<<8|v;for(var f=0;f<4&&n+f*.75<a;f++){t.push(i.charAt(u>>>6*(3-f)&63))}}var c=i.charAt(64);if(c){while(t.length%4){t.push(c)}}return t.join("")},parse:function(r){var e=r.length;var a=this._map;var i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var t=0;t<a.length;t++){i[a.charCodeAt(t)]=t}}var o=a.charAt(64);if(o){var s=r.indexOf(o);if(s!==-1){e=s}}return n(r,e,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function n(r,e,a){var t=[];var n=0;for(var o=0;o<e;o++){if(o%4){var s=a[r.charCodeAt(o-1)]<<o%4*2;var v=a[r.charCodeAt(o)]>>>6-o%4*2;var u=s|v;t[n>>>2]|=u<<24-n%4*8;n++}}return i.create(t,n)}})();return r.enc.Base64}))})(encBase64$1);return encBase64$1.exports}var encBase64url$1={exports:{}};var encBase64url=encBase64url$1.exports;var hasRequiredEncBase64url;function requireEncBase64url(){if(hasRequiredEncBase64url)return encBase64url$1.exports;hasRequiredEncBase64url=1;(function(r,e){(function(e,a){{r.exports=a(requireCore())}})(encBase64url,(function(r){(function(){var e=r;var a=e.lib;var i=a.WordArray;var t=e.enc;t.Base64url={stringify:function(r,e){if(e===undefined){e=true}var a=r.words;var i=r.sigBytes;var t=e?this._safe_map:this._map;r.clamp();var n=[];for(var o=0;o<i;o+=3){var s=a[o>>>2]>>>24-o%4*8&255;var v=a[o+1>>>2]>>>24-(o+1)%4*8&255;var u=a[o+2>>>2]>>>24-(o+2)%4*8&255;var f=s<<16|v<<8|u;for(var c=0;c<4&&o+c*.75<i;c++){n.push(t.charAt(f>>>6*(3-c)&63))}}var d=t.charAt(64);if(d){while(n.length%4){n.push(d)}}return n.join("")},parse:function(r,e){if(e===undefined){e=true}var a=r.length;var i=e?this._safe_map:this._map;var t=this._reverseMap;if(!t){t=this._reverseMap=[];for(var o=0;o<i.length;o++){t[i.charCodeAt(o)]=o}}var s=i.charAt(64);if(s){var v=r.indexOf(s);if(v!==-1){a=v}}return n(r,a,t)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function n(r,e,a){var t=[];var n=0;for(var o=0;o<e;o++){if(o%4){var s=a[r.charCodeAt(o-1)]<<o%4*2;var v=a[r.charCodeAt(o)]>>>6-o%4*2;var u=s|v;t[n>>>2]|=u<<24-n%4*8;n++}}return i.create(t,n)}})();return r.enc.Base64url}))})(encBase64url$1);return encBase64url$1.exports}var md5$1={exports:{}};var md5=md5$1.exports;var hasRequiredMd5;function requireMd5(){if(hasRequiredMd5)return md5$1.exports;hasRequiredMd5=1;(function(r,e){(function(e,a){{r.exports=a(requireCore())}})(md5,(function(r){(function(e){var a=r;var i=a.lib;var t=i.WordArray;var n=i.Hasher;var o=a.algo;var s=[];(function(){for(var r=0;r<64;r++){s[r]=e.abs(e.sin(r+1))*4294967296|0}})();var v=o.MD5=n.extend({_doReset:function(){this._hash=new t.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(r,e){for(var a=0;a<16;a++){var i=e+a;var t=r[i];r[i]=(t<<8|t>>>24)&16711935|(t<<24|t>>>8)&4278255360}var n=this._hash.words;var o=r[e+0];var v=r[e+1];var h=r[e+2];var l=r[e+3];var p=r[e+4];var m=r[e+5];var b=r[e+6];var q=r[e+7];var w=r[e+8];var g=r[e+9];var y=r[e+10];var x=r[e+11];var $=r[e+12];var C=r[e+13];var R=r[e+14];var k=r[e+15];var E=n[0];var S=n[1];var _=n[2];var B=n[3];E=u(E,S,_,B,o,7,s[0]);B=u(B,E,S,_,v,12,s[1]);_=u(_,B,E,S,h,17,s[2]);S=u(S,_,B,E,l,22,s[3]);E=u(E,S,_,B,p,7,s[4]);B=u(B,E,S,_,m,12,s[5]);_=u(_,B,E,S,b,17,s[6]);S=u(S,_,B,E,q,22,s[7]);E=u(E,S,_,B,w,7,s[8]);B=u(B,E,S,_,g,12,s[9]);_=u(_,B,E,S,y,17,s[10]);S=u(S,_,B,E,x,22,s[11]);E=u(E,S,_,B,$,7,s[12]);B=u(B,E,S,_,C,12,s[13]);_=u(_,B,E,S,R,17,s[14]);S=u(S,_,B,E,k,22,s[15]);E=f(E,S,_,B,v,5,s[16]);B=f(B,E,S,_,b,9,s[17]);_=f(_,B,E,S,x,14,s[18]);S=f(S,_,B,E,o,20,s[19]);E=f(E,S,_,B,m,5,s[20]);B=f(B,E,S,_,y,9,s[21]);_=f(_,B,E,S,k,14,s[22]);S=f(S,_,B,E,p,20,s[23]);E=f(E,S,_,B,g,5,s[24]);B=f(B,E,S,_,R,9,s[25]);_=f(_,B,E,S,l,14,s[26]);S=f(S,_,B,E,w,20,s[27]);E=f(E,S,_,B,C,5,s[28]);B=f(B,E,S,_,h,9,s[29]);_=f(_,B,E,S,q,14,s[30]);S=f(S,_,B,E,$,20,s[31]);E=c(E,S,_,B,m,4,s[32]);B=c(B,E,S,_,w,11,s[33]);_=c(_,B,E,S,x,16,s[34]);S=c(S,_,B,E,R,23,s[35]);E=c(E,S,_,B,v,4,s[36]);B=c(B,E,S,_,p,11,s[37]);_=c(_,B,E,S,q,16,s[38]);S=c(S,_,B,E,y,23,s[39]);E=c(E,S,_,B,C,4,s[40]);B=c(B,E,S,_,o,11,s[41]);_=c(_,B,E,S,l,16,s[42]);S=c(S,_,B,E,b,23,s[43]);E=c(E,S,_,B,g,4,s[44]);B=c(B,E,S,_,$,11,s[45]);_=c(_,B,E,S,k,16,s[46]);S=c(S,_,B,E,h,23,s[47]);E=d(E,S,_,B,o,6,s[48]);B=d(B,E,S,_,q,10,s[49]);_=d(_,B,E,S,R,15,s[50]);S=d(S,_,B,E,m,21,s[51]);E=d(E,S,_,B,$,6,s[52]);B=d(B,E,S,_,l,10,s[53]);_=d(_,B,E,S,y,15,s[54]);S=d(S,_,B,E,v,21,s[55]);E=d(E,S,_,B,w,6,s[56]);B=d(B,E,S,_,k,10,s[57]);_=d(_,B,E,S,b,15,s[58]);S=d(S,_,B,E,C,21,s[59]);E=d(E,S,_,B,p,6,s[60]);B=d(B,E,S,_,x,10,s[61]);_=d(_,B,E,S,h,15,s[62]);S=d(S,_,B,E,g,21,s[63]);n[0]=n[0]+E|0;n[1]=n[1]+S|0;n[2]=n[2]+_|0;n[3]=n[3]+B|0},_doFinalize:function(){var r=this._data;var a=r.words;var i=this._nDataBytes*8;var t=r.sigBytes*8;a[t>>>5]|=128<<24-t%32;var n=e.floor(i/4294967296);var o=i;a[(t+64>>>9<<4)+15]=(n<<8|n>>>24)&16711935|(n<<24|n>>>8)&4278255360;a[(t+64>>>9<<4)+14]=(o<<8|o>>>24)&16711935|(o<<24|o>>>8)&4278255360;r.sigBytes=(a.length+1)*4;this._process();var s=this._hash;var v=s.words;for(var u=0;u<4;u++){var f=v[u];v[u]=(f<<8|f>>>24)&16711935|(f<<24|f>>>8)&4278255360}return s},clone:function(){var r=n.clone.call(this);r._hash=this._hash.clone();return r}});function u(r,e,a,i,t,n,o){var s=r+(e&a|~e&i)+t+o;return(s<<n|s>>>32-n)+e}function f(r,e,a,i,t,n,o){var s=r+(e&i|a&~i)+t+o;return(s<<n|s>>>32-n)+e}function c(r,e,a,i,t,n,o){var s=r+(e^a^i)+t+o;return(s<<n|s>>>32-n)+e}function d(r,e,a,i,t,n,o){var s=r+(a^(e|~i))+t+o;return(s<<n|s>>>32-n)+e}a.MD5=n._createHelper(v);a.HmacMD5=n._createHmacHelper(v)})(Math);return r.MD5}))})(md5$1);return md5$1.exports}var sha1$1={exports:{}};var sha1=sha1$1.exports;var hasRequiredSha1;function requireSha1(){if(hasRequiredSha1)return sha1$1.exports;hasRequiredSha1=1;(function(r,e){(function(e,a){{r.exports=a(requireCore())}})(sha1,(function(r){(function(){var e=r;var a=e.lib;var i=a.WordArray;var t=a.Hasher;var n=e.algo;var o=[];var s=n.SHA1=t.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(r,e){var a=this._hash.words;var i=a[0];var t=a[1];var n=a[2];var s=a[3];var v=a[4];for(var u=0;u<80;u++){if(u<16){o[u]=r[e+u]|0}else{var f=o[u-3]^o[u-8]^o[u-14]^o[u-16];o[u]=f<<1|f>>>31}var c=(i<<5|i>>>27)+v+o[u];if(u<20){c+=(t&n|~t&s)+1518500249}else if(u<40){c+=(t^n^s)+1859775393}else if(u<60){c+=(t&n|t&s|n&s)-1894007588}else{c+=(t^n^s)-899497514}v=s;s=n;n=t<<30|t>>>2;t=i;i=c}a[0]=a[0]+i|0;a[1]=a[1]+t|0;a[2]=a[2]+n|0;a[3]=a[3]+s|0;a[4]=a[4]+v|0},_doFinalize:function(){var r=this._data;var e=r.words;var a=this._nDataBytes*8;var i=r.sigBytes*8;e[i>>>5]|=128<<24-i%32;e[(i+64>>>9<<4)+14]=Math.floor(a/4294967296);e[(i+64>>>9<<4)+15]=a;r.sigBytes=e.length*4;this._process();return this._hash},clone:function(){var r=t.clone.call(this);r._hash=this._hash.clone();return r}});e.SHA1=t._createHelper(s);e.HmacSHA1=t._createHmacHelper(s)})();return r.SHA1}))})(sha1$1);return sha1$1.exports}var sha256$1={exports:{}};var sha256=sha256$1.exports;var hasRequiredSha256;function requireSha256(){if(hasRequiredSha256)return sha256$1.exports;hasRequiredSha256=1;(function(r,e){(function(e,a){{r.exports=a(requireCore())}})(sha256,(function(r){(function(e){var a=r;var i=a.lib;var t=i.WordArray;var n=i.Hasher;var o=a.algo;var s=[];var v=[];(function(){function r(r){var a=e.sqrt(r);for(var i=2;i<=a;i++){if(!(r%i)){return false}}return true}function a(r){return(r-(r|0))*4294967296|0}var i=2;var t=0;while(t<64){if(r(i)){if(t<8){s[t]=a(e.pow(i,1/2))}v[t]=a(e.pow(i,1/3));t++}i++}})();var u=[];var f=o.SHA256=n.extend({_doReset:function(){this._hash=new t.init(s.slice(0))},_doProcessBlock:function(r,e){var a=this._hash.words;var i=a[0];var t=a[1];var n=a[2];var o=a[3];var s=a[4];var f=a[5];var c=a[6];var d=a[7];for(var h=0;h<64;h++){if(h<16){u[h]=r[e+h]|0}else{var l=u[h-15];var p=(l<<25|l>>>7)^(l<<14|l>>>18)^l>>>3;var m=u[h-2];var b=(m<<15|m>>>17)^(m<<13|m>>>19)^m>>>10;u[h]=p+u[h-7]+b+u[h-16]}var q=s&f^~s&c;var w=i&t^i&n^t&n;var g=(i<<30|i>>>2)^(i<<19|i>>>13)^(i<<10|i>>>22);var y=(s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25);var x=d+y+q+v[h]+u[h];var $=g+w;d=c;c=f;f=s;s=o+x|0;o=n;n=t;t=i;i=x+$|0}a[0]=a[0]+i|0;a[1]=a[1]+t|0;a[2]=a[2]+n|0;a[3]=a[3]+o|0;a[4]=a[4]+s|0;a[5]=a[5]+f|0;a[6]=a[6]+c|0;a[7]=a[7]+d|0},_doFinalize:function(){var r=this._data;var a=r.words;var i=this._nDataBytes*8;var t=r.sigBytes*8;a[t>>>5]|=128<<24-t%32;a[(t+64>>>9<<4)+14]=e.floor(i/4294967296);a[(t+64>>>9<<4)+15]=i;r.sigBytes=a.length*4;this._process();return this._hash},clone:function(){var r=n.clone.call(this);r._hash=this._hash.clone();return r}});a.SHA256=n._createHelper(f);a.HmacSHA256=n._createHmacHelper(f)})(Math);return r.SHA256}))})(sha256$1);return sha256$1.exports}var sha224$1={exports:{}};var sha224=sha224$1.exports;var hasRequiredSha224;function requireSha224(){if(hasRequiredSha224)return sha224$1.exports;hasRequiredSha224=1;(function(r,e){(function(e,a,i){{r.exports=a(requireCore(),requireSha256())}})(sha224,(function(r){(function(){var e=r;var a=e.lib;var i=a.WordArray;var t=e.algo;var n=t.SHA256;var o=t.SHA224=n.extend({_doReset:function(){this._hash=new i.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var r=n._doFinalize.call(this);r.sigBytes-=4;return r}});e.SHA224=n._createHelper(o);e.HmacSHA224=n._createHmacHelper(o)})();return r.SHA224}))})(sha224$1);return sha224$1.exports}var sha512$1={exports:{}};var sha512=sha512$1.exports;var hasRequiredSha512;function requireSha512(){if(hasRequiredSha512)return sha512$1.exports;hasRequiredSha512=1;(function(r,e){(function(e,a,i){{r.exports=a(requireCore(),requireX64Core())}})(sha512,(function(r){(function(){var e=r;var a=e.lib;var i=a.Hasher;var t=e.x64;var n=t.Word;var o=t.WordArray;var s=e.algo;function v(){return n.create.apply(n,arguments)}var u=[v(1116352408,3609767458),v(1899447441,602891725),v(3049323471,3964484399),v(3921009573,2173295548),v(961987163,4081628472),v(1508970993,3053834265),v(2453635748,2937671579),v(2870763221,3664609560),v(3624381080,2734883394),v(310598401,1164996542),v(607225278,1323610764),v(1426881987,3590304994),v(1925078388,4068182383),v(2162078206,991336113),v(2614888103,633803317),v(3248222580,3479774868),v(3835390401,2666613458),v(4022224774,944711139),v(264347078,2341262773),v(604807628,2007800933),v(770255983,1495990901),v(1249150122,1856431235),v(1555081692,3175218132),v(1996064986,2198950837),v(2554220882,3999719339),v(2821834349,766784016),v(2952996808,2566594879),v(3210313671,3203337956),v(3336571891,1034457026),v(3584528711,2466948901),v(113926993,3758326383),v(338241895,168717936),v(666307205,1188179964),v(773529912,1546045734),v(1294757372,1522805485),v(1396182291,2643833823),v(1695183700,2343527390),v(1986661051,1014477480),v(2177026350,1206759142),v(2456956037,344077627),v(2730485921,1290863460),v(2820302411,3158454273),v(3259730800,3505952657),v(3345764771,106217008),v(3516065817,3606008344),v(3600352804,1432725776),v(4094571909,1467031594),v(275423344,851169720),v(430227734,3100823752),v(506948616,1363258195),v(659060556,3750685593),v(883997877,3785050280),v(958139571,3318307427),v(1322822218,3812723403),v(1537002063,2003034995),v(1747873779,3602036899),v(1955562222,1575990012),v(2024104815,1125592928),v(2227730452,2716904306),v(2361852424,442776044),v(2428436474,593698344),v(2756734187,3733110249),v(3204031479,2999351573),v(3329325298,3815920427),v(3391569614,3928383900),v(3515267271,566280711),v(3940187606,3454069534),v(4118630271,4000239992),v(116418474,1914138554),v(174292421,2731055270),v(289380356,3203993006),v(460393269,320620315),v(685471733,587496836),v(852142971,1086792851),v(1017036298,365543100),v(1126000580,2618297676),v(1288033470,3409855158),v(1501505948,4234509866),v(1607167915,987167468),v(1816402316,1246189591)];var f=[];(function(){for(var r=0;r<80;r++){f[r]=v()}})();var c=s.SHA512=i.extend({_doReset:function(){this._hash=new o.init([new n.init(1779033703,4089235720),new n.init(3144134277,2227873595),new n.init(1013904242,4271175723),new n.init(2773480762,1595750129),new n.init(1359893119,2917565137),new n.init(2600822924,725511199),new n.init(528734635,4215389547),new n.init(1541459225,327033209)])},_doProcessBlock:function(r,e){var a=this._hash.words;var i=a[0];var t=a[1];var n=a[2];var o=a[3];var s=a[4];var v=a[5];var c=a[6];var d=a[7];var h=i.high;var l=i.low;var p=t.high;var m=t.low;var b=n.high;var q=n.low;var w=o.high;var g=o.low;var y=s.high;var x=s.low;var $=v.high;var C=v.low;var R=c.high;var k=c.low;var E=d.high;var S=d.low;var _=h;var B=l;var M=p;var z=m;var P=b;var I=q;var D=w;var F=g;var A=y;var j=x;var L=$;var O=C;var H=R;var T=k;var U=E;var G=S;for(var N=0;N<80;N++){var J;var Z;var X=f[N];if(N<16){Z=X.high=r[e+N*2]|0;J=X.low=r[e+N*2+1]|0}else{var Y=f[N-15];var V=Y.high;var W=Y.low;var K=(V>>>1|W<<31)^(V>>>8|W<<24)^V>>>7;var Q=(W>>>1|V<<31)^(W>>>8|V<<24)^(W>>>7|V<<25);var rr=f[N-2];var er=rr.high;var ar=rr.low;var ir=(er>>>19|ar<<13)^(er<<3|ar>>>29)^er>>>6;var tr=(ar>>>19|er<<13)^(ar<<3|er>>>29)^(ar>>>6|er<<26);var nr=f[N-7];var or=nr.high;var sr=nr.low;var vr=f[N-16];var ur=vr.high;var fr=vr.low;J=Q+sr;Z=K+or+(J>>>0<Q>>>0?1:0);J=J+tr;Z=Z+ir+(J>>>0<tr>>>0?1:0);J=J+fr;Z=Z+ur+(J>>>0<fr>>>0?1:0);X.high=Z;X.low=J}var cr=A&L^~A&H;var dr=j&O^~j&T;var hr=_&M^_&P^M&P;var lr=B&z^B&I^z&I;var pr=(_>>>28|B<<4)^(_<<30|B>>>2)^(_<<25|B>>>7);var mr=(B>>>28|_<<4)^(B<<30|_>>>2)^(B<<25|_>>>7);var br=(A>>>14|j<<18)^(A>>>18|j<<14)^(A<<23|j>>>9);var qr=(j>>>14|A<<18)^(j>>>18|A<<14)^(j<<23|A>>>9);var wr=u[N];var gr=wr.high;var yr=wr.low;var xr=G+qr;var $r=U+br+(xr>>>0<G>>>0?1:0);var xr=xr+dr;var $r=$r+cr+(xr>>>0<dr>>>0?1:0);var xr=xr+yr;var $r=$r+gr+(xr>>>0<yr>>>0?1:0);var xr=xr+J;var $r=$r+Z+(xr>>>0<J>>>0?1:0);var Cr=mr+lr;var Rr=pr+hr+(Cr>>>0<mr>>>0?1:0);U=H;G=T;H=L;T=O;L=A;O=j;j=F+xr|0;A=D+$r+(j>>>0<F>>>0?1:0)|0;D=P;F=I;P=M;I=z;M=_;z=B;B=xr+Cr|0;_=$r+Rr+(B>>>0<xr>>>0?1:0)|0}l=i.low=l+B;i.high=h+_+(l>>>0<B>>>0?1:0);m=t.low=m+z;t.high=p+M+(m>>>0<z>>>0?1:0);q=n.low=q+I;n.high=b+P+(q>>>0<I>>>0?1:0);g=o.low=g+F;o.high=w+D+(g>>>0<F>>>0?1:0);x=s.low=x+j;s.high=y+A+(x>>>0<j>>>0?1:0);C=v.low=C+O;v.high=$+L+(C>>>0<O>>>0?1:0);k=c.low=k+T;c.high=R+H+(k>>>0<T>>>0?1:0);S=d.low=S+G;d.high=E+U+(S>>>0<G>>>0?1:0)},_doFinalize:function(){var r=this._data;var e=r.words;var a=this._nDataBytes*8;var i=r.sigBytes*8;e[i>>>5]|=128<<24-i%32;e[(i+128>>>10<<5)+30]=Math.floor(a/4294967296);e[(i+128>>>10<<5)+31]=a;r.sigBytes=e.length*4;this._process();var t=this._hash.toX32();return t},clone:function(){var r=i.clone.call(this);r._hash=this._hash.clone();return r},blockSize:1024/32});e.SHA512=i._createHelper(c);e.HmacSHA512=i._createHmacHelper(c)})();return r.SHA512}))})(sha512$1);return sha512$1.exports}var sha384$1={exports:{}};var sha384=sha384$1.exports;var hasRequiredSha384;function requireSha384(){if(hasRequiredSha384)return sha384$1.exports;hasRequiredSha384=1;(function(r,e){(function(e,a,i){{r.exports=a(requireCore(),requireX64Core(),requireSha512())}})(sha384,(function(r){(function(){var e=r;var a=e.x64;var i=a.Word;var t=a.WordArray;var n=e.algo;var o=n.SHA512;var s=n.SHA384=o.extend({_doReset:function(){this._hash=new t.init([new i.init(3418070365,3238371032),new i.init(1654270250,914150663),new i.init(2438529370,812702999),new i.init(355462360,4144912697),new i.init(1731405415,4290775857),new i.init(2394180231,1750603025),new i.init(3675008525,1694076839),new i.init(1203062813,3204075428)])},_doFinalize:function(){var r=o._doFinalize.call(this);r.sigBytes-=16;return r}});e.SHA384=o._createHelper(s);e.HmacSHA384=o._createHmacHelper(s)})();return r.SHA384}))})(sha384$1);return sha384$1.exports}var sha3$1={exports:{}};var sha3=sha3$1.exports;var hasRequiredSha3;function requireSha3(){if(hasRequiredSha3)return sha3$1.exports;hasRequiredSha3=1;(function(r,e){(function(e,a,i){{r.exports=a(requireCore(),requireX64Core())}})(sha3,(function(r){(function(e){var a=r;var i=a.lib;var t=i.WordArray;var n=i.Hasher;var o=a.x64;var s=o.Word;var v=a.algo;var u=[];var f=[];var c=[];(function(){var r=1,e=0;for(var a=0;a<24;a++){u[r+5*e]=(a+1)*(a+2)/2%64;var i=e%5;var t=(2*r+3*e)%5;r=i;e=t}for(var r=0;r<5;r++){for(var e=0;e<5;e++){f[r+5*e]=e+(2*r+3*e)%5*5}}var n=1;for(var o=0;o<24;o++){var v=0;var d=0;for(var h=0;h<7;h++){if(n&1){var l=(1<<h)-1;if(l<32){d^=1<<l}else{v^=1<<l-32}}if(n&128){n=n<<1^113}else{n<<=1}}c[o]=s.create(v,d)}})();var d=[];(function(){for(var r=0;r<25;r++){d[r]=s.create()}})();var h=v.SHA3=n.extend({cfg:n.cfg.extend({outputLength:512}),_doReset:function(){var r=this._state=[];for(var e=0;e<25;e++){r[e]=new s.init}this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(r,e){var a=this._state;var i=this.blockSize/2;for(var t=0;t<i;t++){var n=r[e+2*t];var o=r[e+2*t+1];n=(n<<8|n>>>24)&16711935|(n<<24|n>>>8)&4278255360;o=(o<<8|o>>>24)&16711935|(o<<24|o>>>8)&4278255360;var s=a[t];s.high^=o;s.low^=n}for(var v=0;v<24;v++){for(var h=0;h<5;h++){var l=0,p=0;for(var m=0;m<5;m++){var s=a[h+5*m];l^=s.high;p^=s.low}var b=d[h];b.high=l;b.low=p}for(var h=0;h<5;h++){var q=d[(h+4)%5];var w=d[(h+1)%5];var g=w.high;var y=w.low;var l=q.high^(g<<1|y>>>31);var p=q.low^(y<<1|g>>>31);for(var m=0;m<5;m++){var s=a[h+5*m];s.high^=l;s.low^=p}}for(var x=1;x<25;x++){var l;var p;var s=a[x];var $=s.high;var C=s.low;var R=u[x];if(R<32){l=$<<R|C>>>32-R;p=C<<R|$>>>32-R}else{l=C<<R-32|$>>>64-R;p=$<<R-32|C>>>64-R}var k=d[f[x]];k.high=l;k.low=p}var E=d[0];var S=a[0];E.high=S.high;E.low=S.low;for(var h=0;h<5;h++){for(var m=0;m<5;m++){var x=h+5*m;var s=a[x];var _=d[x];var B=d[(h+1)%5+5*m];var M=d[(h+2)%5+5*m];s.high=_.high^~B.high&M.high;s.low=_.low^~B.low&M.low}}var s=a[0];var z=c[v];s.high^=z.high;s.low^=z.low}},_doFinalize:function(){var r=this._data;var a=r.words;var i=r.sigBytes*8;var n=this.blockSize*32;a[i>>>5]|=1<<24-i%32;a[(e.ceil((i+1)/n)*n>>>5)-1]|=128;r.sigBytes=a.length*4;this._process();var o=this._state;var s=this.cfg.outputLength/8;var v=s/8;var u=[];for(var f=0;f<v;f++){var c=o[f];var d=c.high;var h=c.low;d=(d<<8|d>>>24)&16711935|(d<<24|d>>>8)&4278255360;h=(h<<8|h>>>24)&16711935|(h<<24|h>>>8)&4278255360;u.push(h);u.push(d)}return new t.init(u,s)},clone:function(){var r=n.clone.call(this);var e=r._state=this._state.slice(0);for(var a=0;a<25;a++){e[a]=e[a].clone()}return r}});a.SHA3=n._createHelper(h);a.HmacSHA3=n._createHmacHelper(h)})(Math);return r.SHA3}))})(sha3$1);return sha3$1.exports}var ripemd160$1={exports:{}};var ripemd160=ripemd160$1.exports;var hasRequiredRipemd160;function requireRipemd160(){if(hasRequiredRipemd160)return ripemd160$1.exports;hasRequiredRipemd160=1;(function(r,e){(function(e,a){{r.exports=a(requireCore())}})(ripemd160,(function(r){
|
|
1
|
+
import{r as registerInstance,d as createEvent,h,e as Host,g as getElement}from"./index-DIiEV39g.js";import{a as getAugmentedNamespace,c as commonjsGlobal}from"./_commonjsHelpers-E-ZsRS8r.js";import{f as fileDescriptionLocaleIt,a as fileDescriptionLocaleEs,b as fileDescriptionLocaleEn,c as fileDescriptionLocaleEl,g as getExtensionInfos,d as getSuffix,h as getName,e as getFormatsVariant}from"./locale.it-Dj8sWDfj.js";import{L as Locale}from"./locale-CbJbTW_c.js";import{p as preferenceStore}from"./preference-CKerJx2M.js";import"./file-extensions-BxIk5ZFV.js";import"./panorama-b1ORvfSX.js";var cryptoJs$1={exports:{}};function commonjsRequire(r){throw new Error('Could not dynamically require "'+r+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var core$1={exports:{}};var _nodeResolve_empty={};var _nodeResolve_empty$1=Object.freeze({__proto__:null,default:_nodeResolve_empty});var require$$0=getAugmentedNamespace(_nodeResolve_empty$1);var core=core$1.exports;var hasRequiredCore;function requireCore(){if(hasRequiredCore)return core$1.exports;hasRequiredCore=1;(function(r,e){(function(e,a){{
|
|
2
|
+
// CommonJS
|
|
3
|
+
r.exports=a()}})(core,(function(){
|
|
4
|
+
/*globals window, global, require*/
|
|
5
|
+
/**
|
|
6
|
+
* CryptoJS core components.
|
|
7
|
+
*/
|
|
8
|
+
var r=r||function(r,e){var a;
|
|
9
|
+
// Native crypto from window (Browser)
|
|
10
|
+
if(typeof window!=="undefined"&&window.crypto){a=window.crypto}
|
|
11
|
+
// Native crypto in web worker (Browser)
|
|
12
|
+
if(typeof self!=="undefined"&&self.crypto){a=self.crypto}
|
|
13
|
+
// Native crypto from worker
|
|
14
|
+
if(typeof globalThis!=="undefined"&&globalThis.crypto){a=globalThis.crypto}
|
|
15
|
+
// Native (experimental IE 11) crypto from window (Browser)
|
|
16
|
+
if(!a&&typeof window!=="undefined"&&window.msCrypto){a=window.msCrypto}
|
|
17
|
+
// Native crypto from global (NodeJS)
|
|
18
|
+
if(!a&&typeof commonjsGlobal!=="undefined"&&commonjsGlobal.crypto){a=commonjsGlobal.crypto}
|
|
19
|
+
// Native crypto import via require (NodeJS)
|
|
20
|
+
if(!a&&typeof commonjsRequire==="function"){try{a=require$$0}catch(r){}}
|
|
21
|
+
/*
|
|
22
|
+
* Cryptographically secure pseudorandom number generator
|
|
23
|
+
*
|
|
24
|
+
* As Math.random() is cryptographically not safe to use
|
|
25
|
+
*/var i=function(){if(a){
|
|
26
|
+
// Use getRandomValues method (Browser)
|
|
27
|
+
if(typeof a.getRandomValues==="function"){try{return a.getRandomValues(new Uint32Array(1))[0]}catch(r){}}
|
|
28
|
+
// Use randomBytes method (NodeJS)
|
|
29
|
+
if(typeof a.randomBytes==="function"){try{return a.randomBytes(4).readInt32LE()}catch(r){}}}throw new Error("Native crypto module could not be used to get secure random number.")};
|
|
30
|
+
/*
|
|
31
|
+
* Local polyfill of Object.create
|
|
32
|
+
|
|
33
|
+
*/var t=Object.create||function(){function r(){}return function(e){var a;r.prototype=e;a=new r;r.prototype=null;return a}}();
|
|
34
|
+
/**
|
|
35
|
+
* CryptoJS namespace.
|
|
36
|
+
*/var n={};
|
|
37
|
+
/**
|
|
38
|
+
* Library namespace.
|
|
39
|
+
*/var o=n.lib={};
|
|
40
|
+
/**
|
|
41
|
+
* Base object for prototypal inheritance.
|
|
42
|
+
*/var s=o.Base=function(){return{
|
|
43
|
+
/**
|
|
44
|
+
* Creates a new object that inherits from this object.
|
|
45
|
+
*
|
|
46
|
+
* @param {Object} overrides Properties to copy into the new object.
|
|
47
|
+
*
|
|
48
|
+
* @return {Object} The new object.
|
|
49
|
+
*
|
|
50
|
+
* @static
|
|
51
|
+
*
|
|
52
|
+
* @example
|
|
53
|
+
*
|
|
54
|
+
* var MyType = CryptoJS.lib.Base.extend({
|
|
55
|
+
* field: 'value',
|
|
56
|
+
*
|
|
57
|
+
* method: function () {
|
|
58
|
+
* }
|
|
59
|
+
* });
|
|
60
|
+
*/
|
|
61
|
+
extend:function(r){
|
|
62
|
+
// Spawn
|
|
63
|
+
var e=t(this);
|
|
64
|
+
// Augment
|
|
65
|
+
if(r){e.mixIn(r)}
|
|
66
|
+
// Create default initializer
|
|
67
|
+
if(!e.hasOwnProperty("init")||this.init===e.init){e.init=function(){e.$super.init.apply(this,arguments)}}
|
|
68
|
+
// Initializer's prototype is the subtype object
|
|
69
|
+
e.init.prototype=e;
|
|
70
|
+
// Reference supertype
|
|
71
|
+
e.$super=this;return e},
|
|
72
|
+
/**
|
|
73
|
+
* Extends this object and runs the init method.
|
|
74
|
+
* Arguments to create() will be passed to init().
|
|
75
|
+
*
|
|
76
|
+
* @return {Object} The new object.
|
|
77
|
+
*
|
|
78
|
+
* @static
|
|
79
|
+
*
|
|
80
|
+
* @example
|
|
81
|
+
*
|
|
82
|
+
* var instance = MyType.create();
|
|
83
|
+
*/
|
|
84
|
+
create:function(){var r=this.extend();r.init.apply(r,arguments);return r},
|
|
85
|
+
/**
|
|
86
|
+
* Initializes a newly created object.
|
|
87
|
+
* Override this method to add some logic when your objects are created.
|
|
88
|
+
*
|
|
89
|
+
* @example
|
|
90
|
+
*
|
|
91
|
+
* var MyType = CryptoJS.lib.Base.extend({
|
|
92
|
+
* init: function () {
|
|
93
|
+
* // ...
|
|
94
|
+
* }
|
|
95
|
+
* });
|
|
96
|
+
*/
|
|
97
|
+
init:function(){},
|
|
98
|
+
/**
|
|
99
|
+
* Copies properties into this object.
|
|
100
|
+
*
|
|
101
|
+
* @param {Object} properties The properties to mix in.
|
|
102
|
+
*
|
|
103
|
+
* @example
|
|
104
|
+
*
|
|
105
|
+
* MyType.mixIn({
|
|
106
|
+
* field: 'value'
|
|
107
|
+
* });
|
|
108
|
+
*/
|
|
109
|
+
mixIn:function(r){for(var e in r){if(r.hasOwnProperty(e)){this[e]=r[e]}}
|
|
110
|
+
// IE won't copy toString using the loop above
|
|
111
|
+
if(r.hasOwnProperty("toString")){this.toString=r.toString}},
|
|
112
|
+
/**
|
|
113
|
+
* Creates a copy of this object.
|
|
114
|
+
*
|
|
115
|
+
* @return {Object} The clone.
|
|
116
|
+
*
|
|
117
|
+
* @example
|
|
118
|
+
*
|
|
119
|
+
* var clone = instance.clone();
|
|
120
|
+
*/
|
|
121
|
+
clone:function(){return this.init.prototype.extend(this)}}}();
|
|
122
|
+
/**
|
|
123
|
+
* An array of 32-bit words.
|
|
124
|
+
*
|
|
125
|
+
* @property {Array} words The array of 32-bit words.
|
|
126
|
+
* @property {number} sigBytes The number of significant bytes in this word array.
|
|
127
|
+
*/var v=o.WordArray=s.extend({
|
|
128
|
+
/**
|
|
129
|
+
* Initializes a newly created word array.
|
|
130
|
+
*
|
|
131
|
+
* @param {Array} words (Optional) An array of 32-bit words.
|
|
132
|
+
* @param {number} sigBytes (Optional) The number of significant bytes in the words.
|
|
133
|
+
*
|
|
134
|
+
* @example
|
|
135
|
+
*
|
|
136
|
+
* var wordArray = CryptoJS.lib.WordArray.create();
|
|
137
|
+
* var wordArray = CryptoJS.lib.WordArray.create([0x00010203, 0x04050607]);
|
|
138
|
+
* var wordArray = CryptoJS.lib.WordArray.create([0x00010203, 0x04050607], 6);
|
|
139
|
+
*/
|
|
140
|
+
init:function(r,a){r=this.words=r||[];if(a!=e){this.sigBytes=a}else{this.sigBytes=r.length*4}},
|
|
141
|
+
/**
|
|
142
|
+
* Converts this word array to a string.
|
|
143
|
+
*
|
|
144
|
+
* @param {Encoder} encoder (Optional) The encoding strategy to use. Default: CryptoJS.enc.Hex
|
|
145
|
+
*
|
|
146
|
+
* @return {string} The stringified word array.
|
|
147
|
+
*
|
|
148
|
+
* @example
|
|
149
|
+
*
|
|
150
|
+
* var string = wordArray + '';
|
|
151
|
+
* var string = wordArray.toString();
|
|
152
|
+
* var string = wordArray.toString(CryptoJS.enc.Utf8);
|
|
153
|
+
*/
|
|
154
|
+
toString:function(r){return(r||f).stringify(this)},
|
|
155
|
+
/**
|
|
156
|
+
* Concatenates a word array to this word array.
|
|
157
|
+
*
|
|
158
|
+
* @param {WordArray} wordArray The word array to append.
|
|
159
|
+
*
|
|
160
|
+
* @return {WordArray} This word array.
|
|
161
|
+
*
|
|
162
|
+
* @example
|
|
163
|
+
*
|
|
164
|
+
* wordArray1.concat(wordArray2);
|
|
165
|
+
*/
|
|
166
|
+
concat:function(r){
|
|
167
|
+
// Shortcuts
|
|
168
|
+
var e=this.words;var a=r.words;var i=this.sigBytes;var t=r.sigBytes;
|
|
169
|
+
// Clamp excess bits
|
|
170
|
+
this.clamp();
|
|
171
|
+
// Concat
|
|
172
|
+
if(i%4){
|
|
173
|
+
// Copy one byte at a time
|
|
174
|
+
for(var n=0;n<t;n++){var o=a[n>>>2]>>>24-n%4*8&255;e[i+n>>>2]|=o<<24-(i+n)%4*8}}else{
|
|
175
|
+
// Copy one word at a time
|
|
176
|
+
for(var s=0;s<t;s+=4){e[i+s>>>2]=a[s>>>2]}}this.sigBytes+=t;
|
|
177
|
+
// Chainable
|
|
178
|
+
return this},
|
|
179
|
+
/**
|
|
180
|
+
* Removes insignificant bits.
|
|
181
|
+
*
|
|
182
|
+
* @example
|
|
183
|
+
*
|
|
184
|
+
* wordArray.clamp();
|
|
185
|
+
*/
|
|
186
|
+
clamp:function(){
|
|
187
|
+
// Shortcuts
|
|
188
|
+
var e=this.words;var a=this.sigBytes;
|
|
189
|
+
// Clamp
|
|
190
|
+
e[a>>>2]&=4294967295<<32-a%4*8;e.length=r.ceil(a/4)},
|
|
191
|
+
/**
|
|
192
|
+
* Creates a copy of this word array.
|
|
193
|
+
*
|
|
194
|
+
* @return {WordArray} The clone.
|
|
195
|
+
*
|
|
196
|
+
* @example
|
|
197
|
+
*
|
|
198
|
+
* var clone = wordArray.clone();
|
|
199
|
+
*/
|
|
200
|
+
clone:function(){var r=s.clone.call(this);r.words=this.words.slice(0);return r},
|
|
201
|
+
/**
|
|
202
|
+
* Creates a word array filled with random bytes.
|
|
203
|
+
*
|
|
204
|
+
* @param {number} nBytes The number of random bytes to generate.
|
|
205
|
+
*
|
|
206
|
+
* @return {WordArray} The random word array.
|
|
207
|
+
*
|
|
208
|
+
* @static
|
|
209
|
+
*
|
|
210
|
+
* @example
|
|
211
|
+
*
|
|
212
|
+
* var wordArray = CryptoJS.lib.WordArray.random(16);
|
|
213
|
+
*/
|
|
214
|
+
random:function(r){var e=[];for(var a=0;a<r;a+=4){e.push(i())}return new v.init(e,r)}});
|
|
215
|
+
/**
|
|
216
|
+
* Encoder namespace.
|
|
217
|
+
*/var u=n.enc={};
|
|
218
|
+
/**
|
|
219
|
+
* Hex encoding strategy.
|
|
220
|
+
*/var f=u.Hex={
|
|
221
|
+
/**
|
|
222
|
+
* Converts a word array to a hex string.
|
|
223
|
+
*
|
|
224
|
+
* @param {WordArray} wordArray The word array.
|
|
225
|
+
*
|
|
226
|
+
* @return {string} The hex string.
|
|
227
|
+
*
|
|
228
|
+
* @static
|
|
229
|
+
*
|
|
230
|
+
* @example
|
|
231
|
+
*
|
|
232
|
+
* var hexString = CryptoJS.enc.Hex.stringify(wordArray);
|
|
233
|
+
*/
|
|
234
|
+
stringify:function(r){
|
|
235
|
+
// Shortcuts
|
|
236
|
+
var e=r.words;var a=r.sigBytes;
|
|
237
|
+
// Convert
|
|
238
|
+
var i=[];for(var t=0;t<a;t++){var n=e[t>>>2]>>>24-t%4*8&255;i.push((n>>>4).toString(16));i.push((n&15).toString(16))}return i.join("")},
|
|
239
|
+
/**
|
|
240
|
+
* Converts a hex string to a word array.
|
|
241
|
+
*
|
|
242
|
+
* @param {string} hexStr The hex string.
|
|
243
|
+
*
|
|
244
|
+
* @return {WordArray} The word array.
|
|
245
|
+
*
|
|
246
|
+
* @static
|
|
247
|
+
*
|
|
248
|
+
* @example
|
|
249
|
+
*
|
|
250
|
+
* var wordArray = CryptoJS.enc.Hex.parse(hexString);
|
|
251
|
+
*/
|
|
252
|
+
parse:function(r){
|
|
253
|
+
// Shortcut
|
|
254
|
+
var e=r.length;
|
|
255
|
+
// Convert
|
|
256
|
+
var a=[];for(var i=0;i<e;i+=2){a[i>>>3]|=parseInt(r.substr(i,2),16)<<24-i%8*4}return new v.init(a,e/2)}};
|
|
257
|
+
/**
|
|
258
|
+
* Latin1 encoding strategy.
|
|
259
|
+
*/var c=u.Latin1={
|
|
260
|
+
/**
|
|
261
|
+
* Converts a word array to a Latin1 string.
|
|
262
|
+
*
|
|
263
|
+
* @param {WordArray} wordArray The word array.
|
|
264
|
+
*
|
|
265
|
+
* @return {string} The Latin1 string.
|
|
266
|
+
*
|
|
267
|
+
* @static
|
|
268
|
+
*
|
|
269
|
+
* @example
|
|
270
|
+
*
|
|
271
|
+
* var latin1String = CryptoJS.enc.Latin1.stringify(wordArray);
|
|
272
|
+
*/
|
|
273
|
+
stringify:function(r){
|
|
274
|
+
// Shortcuts
|
|
275
|
+
var e=r.words;var a=r.sigBytes;
|
|
276
|
+
// Convert
|
|
277
|
+
var i=[];for(var t=0;t<a;t++){var n=e[t>>>2]>>>24-t%4*8&255;i.push(String.fromCharCode(n))}return i.join("")},
|
|
278
|
+
/**
|
|
279
|
+
* Converts a Latin1 string to a word array.
|
|
280
|
+
*
|
|
281
|
+
* @param {string} latin1Str The Latin1 string.
|
|
282
|
+
*
|
|
283
|
+
* @return {WordArray} The word array.
|
|
284
|
+
*
|
|
285
|
+
* @static
|
|
286
|
+
*
|
|
287
|
+
* @example
|
|
288
|
+
*
|
|
289
|
+
* var wordArray = CryptoJS.enc.Latin1.parse(latin1String);
|
|
290
|
+
*/
|
|
291
|
+
parse:function(r){
|
|
292
|
+
// Shortcut
|
|
293
|
+
var e=r.length;
|
|
294
|
+
// Convert
|
|
295
|
+
var a=[];for(var i=0;i<e;i++){a[i>>>2]|=(r.charCodeAt(i)&255)<<24-i%4*8}return new v.init(a,e)}};
|
|
296
|
+
/**
|
|
297
|
+
* UTF-8 encoding strategy.
|
|
298
|
+
*/var d=u.Utf8={
|
|
299
|
+
/**
|
|
300
|
+
* Converts a word array to a UTF-8 string.
|
|
301
|
+
*
|
|
302
|
+
* @param {WordArray} wordArray The word array.
|
|
303
|
+
*
|
|
304
|
+
* @return {string} The UTF-8 string.
|
|
305
|
+
*
|
|
306
|
+
* @static
|
|
307
|
+
*
|
|
308
|
+
* @example
|
|
309
|
+
*
|
|
310
|
+
* var utf8String = CryptoJS.enc.Utf8.stringify(wordArray);
|
|
311
|
+
*/
|
|
312
|
+
stringify:function(r){try{return decodeURIComponent(escape(c.stringify(r)))}catch(r){throw new Error("Malformed UTF-8 data")}},
|
|
313
|
+
/**
|
|
314
|
+
* Converts a UTF-8 string to a word array.
|
|
315
|
+
*
|
|
316
|
+
* @param {string} utf8Str The UTF-8 string.
|
|
317
|
+
*
|
|
318
|
+
* @return {WordArray} The word array.
|
|
319
|
+
*
|
|
320
|
+
* @static
|
|
321
|
+
*
|
|
322
|
+
* @example
|
|
323
|
+
*
|
|
324
|
+
* var wordArray = CryptoJS.enc.Utf8.parse(utf8String);
|
|
325
|
+
*/
|
|
326
|
+
parse:function(r){return c.parse(unescape(encodeURIComponent(r)))}};
|
|
327
|
+
/**
|
|
328
|
+
* Abstract buffered block algorithm template.
|
|
329
|
+
*
|
|
330
|
+
* The property blockSize must be implemented in a concrete subtype.
|
|
331
|
+
*
|
|
332
|
+
* @property {number} _minBufferSize The number of blocks that should be kept unprocessed in the buffer. Default: 0
|
|
333
|
+
*/var h=o.BufferedBlockAlgorithm=s.extend({
|
|
334
|
+
/**
|
|
335
|
+
* Resets this block algorithm's data buffer to its initial state.
|
|
336
|
+
*
|
|
337
|
+
* @example
|
|
338
|
+
*
|
|
339
|
+
* bufferedBlockAlgorithm.reset();
|
|
340
|
+
*/
|
|
341
|
+
reset:function(){
|
|
342
|
+
// Initial values
|
|
343
|
+
this._data=new v.init;this._nDataBytes=0},
|
|
344
|
+
/**
|
|
345
|
+
* Adds new data to this block algorithm's buffer.
|
|
346
|
+
*
|
|
347
|
+
* @param {WordArray|string} data The data to append. Strings are converted to a WordArray using UTF-8.
|
|
348
|
+
*
|
|
349
|
+
* @example
|
|
350
|
+
*
|
|
351
|
+
* bufferedBlockAlgorithm._append('data');
|
|
352
|
+
* bufferedBlockAlgorithm._append(wordArray);
|
|
353
|
+
*/
|
|
354
|
+
_append:function(r){
|
|
355
|
+
// Convert string to WordArray, else assume WordArray already
|
|
356
|
+
if(typeof r=="string"){r=d.parse(r)}
|
|
357
|
+
// Append
|
|
358
|
+
this._data.concat(r);this._nDataBytes+=r.sigBytes},
|
|
359
|
+
/**
|
|
360
|
+
* Processes available data blocks.
|
|
361
|
+
*
|
|
362
|
+
* This method invokes _doProcessBlock(offset), which must be implemented by a concrete subtype.
|
|
363
|
+
*
|
|
364
|
+
* @param {boolean} doFlush Whether all blocks and partial blocks should be processed.
|
|
365
|
+
*
|
|
366
|
+
* @return {WordArray} The processed data.
|
|
367
|
+
*
|
|
368
|
+
* @example
|
|
369
|
+
*
|
|
370
|
+
* var processedData = bufferedBlockAlgorithm._process();
|
|
371
|
+
* var processedData = bufferedBlockAlgorithm._process(!!'flush');
|
|
372
|
+
*/
|
|
373
|
+
_process:function(e){var a;
|
|
374
|
+
// Shortcuts
|
|
375
|
+
var i=this._data;var t=i.words;var n=i.sigBytes;var o=this.blockSize;var s=o*4;
|
|
376
|
+
// Count blocks ready
|
|
377
|
+
var u=n/s;if(e){
|
|
378
|
+
// Round up to include partial blocks
|
|
379
|
+
u=r.ceil(u)}else{
|
|
380
|
+
// Round down to include only full blocks,
|
|
381
|
+
// less the number of blocks that must remain in the buffer
|
|
382
|
+
u=r.max((u|0)-this._minBufferSize,0)}
|
|
383
|
+
// Count words ready
|
|
384
|
+
var f=u*o;
|
|
385
|
+
// Count bytes ready
|
|
386
|
+
var c=r.min(f*4,n);
|
|
387
|
+
// Process blocks
|
|
388
|
+
if(f){for(var d=0;d<f;d+=o){
|
|
389
|
+
// Perform concrete-algorithm logic
|
|
390
|
+
this._doProcessBlock(t,d)}
|
|
391
|
+
// Remove processed words
|
|
392
|
+
a=t.splice(0,f);i.sigBytes-=c}
|
|
393
|
+
// Return processed words
|
|
394
|
+
return new v.init(a,c)},
|
|
395
|
+
/**
|
|
396
|
+
* Creates a copy of this object.
|
|
397
|
+
*
|
|
398
|
+
* @return {Object} The clone.
|
|
399
|
+
*
|
|
400
|
+
* @example
|
|
401
|
+
*
|
|
402
|
+
* var clone = bufferedBlockAlgorithm.clone();
|
|
403
|
+
*/
|
|
404
|
+
clone:function(){var r=s.clone.call(this);r._data=this._data.clone();return r},_minBufferSize:0});
|
|
405
|
+
/**
|
|
406
|
+
* Abstract hasher template.
|
|
407
|
+
*
|
|
408
|
+
* @property {number} blockSize The number of 32-bit words this hasher operates on. Default: 16 (512 bits)
|
|
409
|
+
*/o.Hasher=h.extend({
|
|
410
|
+
/**
|
|
411
|
+
* Configuration options.
|
|
412
|
+
*/
|
|
413
|
+
cfg:s.extend(),
|
|
414
|
+
/**
|
|
415
|
+
* Initializes a newly created hasher.
|
|
416
|
+
*
|
|
417
|
+
* @param {Object} cfg (Optional) The configuration options to use for this hash computation.
|
|
418
|
+
*
|
|
419
|
+
* @example
|
|
420
|
+
*
|
|
421
|
+
* var hasher = CryptoJS.algo.SHA256.create();
|
|
422
|
+
*/
|
|
423
|
+
init:function(r){
|
|
424
|
+
// Apply config defaults
|
|
425
|
+
this.cfg=this.cfg.extend(r);
|
|
426
|
+
// Set initial values
|
|
427
|
+
this.reset()},
|
|
428
|
+
/**
|
|
429
|
+
* Resets this hasher to its initial state.
|
|
430
|
+
*
|
|
431
|
+
* @example
|
|
432
|
+
*
|
|
433
|
+
* hasher.reset();
|
|
434
|
+
*/
|
|
435
|
+
reset:function(){
|
|
436
|
+
// Reset data buffer
|
|
437
|
+
h.reset.call(this);
|
|
438
|
+
// Perform concrete-hasher logic
|
|
439
|
+
this._doReset()},
|
|
440
|
+
/**
|
|
441
|
+
* Updates this hasher with a message.
|
|
442
|
+
*
|
|
443
|
+
* @param {WordArray|string} messageUpdate The message to append.
|
|
444
|
+
*
|
|
445
|
+
* @return {Hasher} This hasher.
|
|
446
|
+
*
|
|
447
|
+
* @example
|
|
448
|
+
*
|
|
449
|
+
* hasher.update('message');
|
|
450
|
+
* hasher.update(wordArray);
|
|
451
|
+
*/
|
|
452
|
+
update:function(r){
|
|
453
|
+
// Append
|
|
454
|
+
this._append(r);
|
|
455
|
+
// Update the hash
|
|
456
|
+
this._process();
|
|
457
|
+
// Chainable
|
|
458
|
+
return this},
|
|
459
|
+
/**
|
|
460
|
+
* Finalizes the hash computation.
|
|
461
|
+
* Note that the finalize operation is effectively a destructive, read-once operation.
|
|
462
|
+
*
|
|
463
|
+
* @param {WordArray|string} messageUpdate (Optional) A final message update.
|
|
464
|
+
*
|
|
465
|
+
* @return {WordArray} The hash.
|
|
466
|
+
*
|
|
467
|
+
* @example
|
|
468
|
+
*
|
|
469
|
+
* var hash = hasher.finalize();
|
|
470
|
+
* var hash = hasher.finalize('message');
|
|
471
|
+
* var hash = hasher.finalize(wordArray);
|
|
472
|
+
*/
|
|
473
|
+
finalize:function(r){
|
|
474
|
+
// Final message update
|
|
475
|
+
if(r){this._append(r)}
|
|
476
|
+
// Perform concrete-hasher logic
|
|
477
|
+
var e=this._doFinalize();return e},blockSize:512/32,
|
|
478
|
+
/**
|
|
479
|
+
* Creates a shortcut function to a hasher's object interface.
|
|
480
|
+
*
|
|
481
|
+
* @param {Hasher} hasher The hasher to create a helper for.
|
|
482
|
+
*
|
|
483
|
+
* @return {Function} The shortcut function.
|
|
484
|
+
*
|
|
485
|
+
* @static
|
|
486
|
+
*
|
|
487
|
+
* @example
|
|
488
|
+
*
|
|
489
|
+
* var SHA256 = CryptoJS.lib.Hasher._createHelper(CryptoJS.algo.SHA256);
|
|
490
|
+
*/
|
|
491
|
+
_createHelper:function(r){return function(e,a){return new r.init(a).finalize(e)}},
|
|
492
|
+
/**
|
|
493
|
+
* Creates a shortcut function to the HMAC's object interface.
|
|
494
|
+
*
|
|
495
|
+
* @param {Hasher} hasher The hasher to use in this HMAC helper.
|
|
496
|
+
*
|
|
497
|
+
* @return {Function} The shortcut function.
|
|
498
|
+
*
|
|
499
|
+
* @static
|
|
500
|
+
*
|
|
501
|
+
* @example
|
|
502
|
+
*
|
|
503
|
+
* var HmacSHA256 = CryptoJS.lib.Hasher._createHmacHelper(CryptoJS.algo.SHA256);
|
|
504
|
+
*/
|
|
505
|
+
_createHmacHelper:function(r){return function(e,a){return new l.HMAC.init(r,a).finalize(e)}}});
|
|
506
|
+
/**
|
|
507
|
+
* Algorithm namespace.
|
|
508
|
+
*/var l=n.algo={};return n}(Math);return r}))})(core$1);return core$1.exports}var x64Core$1={exports:{}};var x64Core=x64Core$1.exports;var hasRequiredX64Core;function requireX64Core(){if(hasRequiredX64Core)return x64Core$1.exports;hasRequiredX64Core=1;(function(r,e){(function(e,a){{
|
|
509
|
+
// CommonJS
|
|
510
|
+
r.exports=a(requireCore())}})(x64Core,(function(r){(function(e){
|
|
511
|
+
// Shortcuts
|
|
512
|
+
var a=r;var i=a.lib;var t=i.Base;var n=i.WordArray;
|
|
513
|
+
/**
|
|
514
|
+
* x64 namespace.
|
|
515
|
+
*/var o=a.x64={};
|
|
516
|
+
/**
|
|
517
|
+
* A 64-bit word.
|
|
518
|
+
*/o.Word=t.extend({
|
|
519
|
+
/**
|
|
520
|
+
* Initializes a newly created 64-bit word.
|
|
521
|
+
*
|
|
522
|
+
* @param {number} high The high 32 bits.
|
|
523
|
+
* @param {number} low The low 32 bits.
|
|
524
|
+
*
|
|
525
|
+
* @example
|
|
526
|
+
*
|
|
527
|
+
* var x64Word = CryptoJS.x64.Word.create(0x00010203, 0x04050607);
|
|
528
|
+
*/
|
|
529
|
+
init:function(r,e){this.high=r;this.low=e}
|
|
530
|
+
/**
|
|
531
|
+
* Bitwise NOTs this word.
|
|
532
|
+
*
|
|
533
|
+
* @return {X64Word} A new x64-Word object after negating.
|
|
534
|
+
*
|
|
535
|
+
* @example
|
|
536
|
+
*
|
|
537
|
+
* var negated = x64Word.not();
|
|
538
|
+
*/
|
|
539
|
+
// not: function () {
|
|
540
|
+
// var high = ~this.high;
|
|
541
|
+
// var low = ~this.low;
|
|
542
|
+
// return X64Word.create(high, low);
|
|
543
|
+
// },
|
|
544
|
+
/**
|
|
545
|
+
* Bitwise ANDs this word with the passed word.
|
|
546
|
+
*
|
|
547
|
+
* @param {X64Word} word The x64-Word to AND with this word.
|
|
548
|
+
*
|
|
549
|
+
* @return {X64Word} A new x64-Word object after ANDing.
|
|
550
|
+
*
|
|
551
|
+
* @example
|
|
552
|
+
*
|
|
553
|
+
* var anded = x64Word.and(anotherX64Word);
|
|
554
|
+
*/
|
|
555
|
+
// and: function (word) {
|
|
556
|
+
// var high = this.high & word.high;
|
|
557
|
+
// var low = this.low & word.low;
|
|
558
|
+
// return X64Word.create(high, low);
|
|
559
|
+
// },
|
|
560
|
+
/**
|
|
561
|
+
* Bitwise ORs this word with the passed word.
|
|
562
|
+
*
|
|
563
|
+
* @param {X64Word} word The x64-Word to OR with this word.
|
|
564
|
+
*
|
|
565
|
+
* @return {X64Word} A new x64-Word object after ORing.
|
|
566
|
+
*
|
|
567
|
+
* @example
|
|
568
|
+
*
|
|
569
|
+
* var ored = x64Word.or(anotherX64Word);
|
|
570
|
+
*/
|
|
571
|
+
// or: function (word) {
|
|
572
|
+
// var high = this.high | word.high;
|
|
573
|
+
// var low = this.low | word.low;
|
|
574
|
+
// return X64Word.create(high, low);
|
|
575
|
+
// },
|
|
576
|
+
/**
|
|
577
|
+
* Bitwise XORs this word with the passed word.
|
|
578
|
+
*
|
|
579
|
+
* @param {X64Word} word The x64-Word to XOR with this word.
|
|
580
|
+
*
|
|
581
|
+
* @return {X64Word} A new x64-Word object after XORing.
|
|
582
|
+
*
|
|
583
|
+
* @example
|
|
584
|
+
*
|
|
585
|
+
* var xored = x64Word.xor(anotherX64Word);
|
|
586
|
+
*/
|
|
587
|
+
// xor: function (word) {
|
|
588
|
+
// var high = this.high ^ word.high;
|
|
589
|
+
// var low = this.low ^ word.low;
|
|
590
|
+
// return X64Word.create(high, low);
|
|
591
|
+
// },
|
|
592
|
+
/**
|
|
593
|
+
* Shifts this word n bits to the left.
|
|
594
|
+
*
|
|
595
|
+
* @param {number} n The number of bits to shift.
|
|
596
|
+
*
|
|
597
|
+
* @return {X64Word} A new x64-Word object after shifting.
|
|
598
|
+
*
|
|
599
|
+
* @example
|
|
600
|
+
*
|
|
601
|
+
* var shifted = x64Word.shiftL(25);
|
|
602
|
+
*/
|
|
603
|
+
// shiftL: function (n) {
|
|
604
|
+
// if (n < 32) {
|
|
605
|
+
// var high = (this.high << n) | (this.low >>> (32 - n));
|
|
606
|
+
// var low = this.low << n;
|
|
607
|
+
// } else {
|
|
608
|
+
// var high = this.low << (n - 32);
|
|
609
|
+
// var low = 0;
|
|
610
|
+
// }
|
|
611
|
+
// return X64Word.create(high, low);
|
|
612
|
+
// },
|
|
613
|
+
/**
|
|
614
|
+
* Shifts this word n bits to the right.
|
|
615
|
+
*
|
|
616
|
+
* @param {number} n The number of bits to shift.
|
|
617
|
+
*
|
|
618
|
+
* @return {X64Word} A new x64-Word object after shifting.
|
|
619
|
+
*
|
|
620
|
+
* @example
|
|
621
|
+
*
|
|
622
|
+
* var shifted = x64Word.shiftR(7);
|
|
623
|
+
*/
|
|
624
|
+
// shiftR: function (n) {
|
|
625
|
+
// if (n < 32) {
|
|
626
|
+
// var low = (this.low >>> n) | (this.high << (32 - n));
|
|
627
|
+
// var high = this.high >>> n;
|
|
628
|
+
// } else {
|
|
629
|
+
// var low = this.high >>> (n - 32);
|
|
630
|
+
// var high = 0;
|
|
631
|
+
// }
|
|
632
|
+
// return X64Word.create(high, low);
|
|
633
|
+
// },
|
|
634
|
+
/**
|
|
635
|
+
* Rotates this word n bits to the left.
|
|
636
|
+
*
|
|
637
|
+
* @param {number} n The number of bits to rotate.
|
|
638
|
+
*
|
|
639
|
+
* @return {X64Word} A new x64-Word object after rotating.
|
|
640
|
+
*
|
|
641
|
+
* @example
|
|
642
|
+
*
|
|
643
|
+
* var rotated = x64Word.rotL(25);
|
|
644
|
+
*/
|
|
645
|
+
// rotL: function (n) {
|
|
646
|
+
// return this.shiftL(n).or(this.shiftR(64 - n));
|
|
647
|
+
// },
|
|
648
|
+
/**
|
|
649
|
+
* Rotates this word n bits to the right.
|
|
650
|
+
*
|
|
651
|
+
* @param {number} n The number of bits to rotate.
|
|
652
|
+
*
|
|
653
|
+
* @return {X64Word} A new x64-Word object after rotating.
|
|
654
|
+
*
|
|
655
|
+
* @example
|
|
656
|
+
*
|
|
657
|
+
* var rotated = x64Word.rotR(7);
|
|
658
|
+
*/
|
|
659
|
+
// rotR: function (n) {
|
|
660
|
+
// return this.shiftR(n).or(this.shiftL(64 - n));
|
|
661
|
+
// },
|
|
662
|
+
/**
|
|
663
|
+
* Adds this word with the passed word.
|
|
664
|
+
*
|
|
665
|
+
* @param {X64Word} word The x64-Word to add with this word.
|
|
666
|
+
*
|
|
667
|
+
* @return {X64Word} A new x64-Word object after adding.
|
|
668
|
+
*
|
|
669
|
+
* @example
|
|
670
|
+
*
|
|
671
|
+
* var added = x64Word.add(anotherX64Word);
|
|
672
|
+
*/
|
|
673
|
+
// add: function (word) {
|
|
674
|
+
// var low = (this.low + word.low) | 0;
|
|
675
|
+
// var carry = (low >>> 0) < (this.low >>> 0) ? 1 : 0;
|
|
676
|
+
// var high = (this.high + word.high + carry) | 0;
|
|
677
|
+
// return X64Word.create(high, low);
|
|
678
|
+
// }
|
|
679
|
+
});
|
|
680
|
+
/**
|
|
681
|
+
* An array of 64-bit words.
|
|
682
|
+
*
|
|
683
|
+
* @property {Array} words The array of CryptoJS.x64.Word objects.
|
|
684
|
+
* @property {number} sigBytes The number of significant bytes in this word array.
|
|
685
|
+
*/o.WordArray=t.extend({
|
|
686
|
+
/**
|
|
687
|
+
* Initializes a newly created word array.
|
|
688
|
+
*
|
|
689
|
+
* @param {Array} words (Optional) An array of CryptoJS.x64.Word objects.
|
|
690
|
+
* @param {number} sigBytes (Optional) The number of significant bytes in the words.
|
|
691
|
+
*
|
|
692
|
+
* @example
|
|
693
|
+
*
|
|
694
|
+
* var wordArray = CryptoJS.x64.WordArray.create();
|
|
695
|
+
*
|
|
696
|
+
* var wordArray = CryptoJS.x64.WordArray.create([
|
|
697
|
+
* CryptoJS.x64.Word.create(0x00010203, 0x04050607),
|
|
698
|
+
* CryptoJS.x64.Word.create(0x18191a1b, 0x1c1d1e1f)
|
|
699
|
+
* ]);
|
|
700
|
+
*
|
|
701
|
+
* var wordArray = CryptoJS.x64.WordArray.create([
|
|
702
|
+
* CryptoJS.x64.Word.create(0x00010203, 0x04050607),
|
|
703
|
+
* CryptoJS.x64.Word.create(0x18191a1b, 0x1c1d1e1f)
|
|
704
|
+
* ], 10);
|
|
705
|
+
*/
|
|
706
|
+
init:function(r,a){r=this.words=r||[];if(a!=e){this.sigBytes=a}else{this.sigBytes=r.length*8}},
|
|
707
|
+
/**
|
|
708
|
+
* Converts this 64-bit word array to a 32-bit word array.
|
|
709
|
+
*
|
|
710
|
+
* @return {CryptoJS.lib.WordArray} This word array's data as a 32-bit word array.
|
|
711
|
+
*
|
|
712
|
+
* @example
|
|
713
|
+
*
|
|
714
|
+
* var x32WordArray = x64WordArray.toX32();
|
|
715
|
+
*/
|
|
716
|
+
toX32:function(){
|
|
717
|
+
// Shortcuts
|
|
718
|
+
var r=this.words;var e=r.length;
|
|
719
|
+
// Convert
|
|
720
|
+
var a=[];for(var i=0;i<e;i++){var t=r[i];a.push(t.high);a.push(t.low)}return n.create(a,this.sigBytes)},
|
|
721
|
+
/**
|
|
722
|
+
* Creates a copy of this word array.
|
|
723
|
+
*
|
|
724
|
+
* @return {X64WordArray} The clone.
|
|
725
|
+
*
|
|
726
|
+
* @example
|
|
727
|
+
*
|
|
728
|
+
* var clone = x64WordArray.clone();
|
|
729
|
+
*/
|
|
730
|
+
clone:function(){var r=t.clone.call(this);
|
|
731
|
+
// Clone "words" array
|
|
732
|
+
var e=r.words=this.words.slice(0);
|
|
733
|
+
// Clone each X64Word object
|
|
734
|
+
var a=e.length;for(var i=0;i<a;i++){e[i]=e[i].clone()}return r}})})();return r}))})(x64Core$1);return x64Core$1.exports}var libTypedarrays$1={exports:{}};var libTypedarrays=libTypedarrays$1.exports;var hasRequiredLibTypedarrays;function requireLibTypedarrays(){if(hasRequiredLibTypedarrays)return libTypedarrays$1.exports;hasRequiredLibTypedarrays=1;(function(r,e){(function(e,a){{
|
|
735
|
+
// CommonJS
|
|
736
|
+
r.exports=a(requireCore())}})(libTypedarrays,(function(r){(function(){
|
|
737
|
+
// Check if typed arrays are supported
|
|
738
|
+
if(typeof ArrayBuffer!="function"){return}
|
|
739
|
+
// Shortcuts
|
|
740
|
+
var e=r;var a=e.lib;var i=a.WordArray;
|
|
741
|
+
// Reference original init
|
|
742
|
+
var t=i.init;
|
|
743
|
+
// Augment WordArray.init to handle typed arrays
|
|
744
|
+
var n=i.init=function(r){
|
|
745
|
+
// Convert buffers to uint8
|
|
746
|
+
if(r instanceof ArrayBuffer){r=new Uint8Array(r)}
|
|
747
|
+
// Convert other array views to uint8
|
|
748
|
+
if(r instanceof Int8Array||typeof Uint8ClampedArray!=="undefined"&&r instanceof Uint8ClampedArray||r instanceof Int16Array||r instanceof Uint16Array||r instanceof Int32Array||r instanceof Uint32Array||r instanceof Float32Array||r instanceof Float64Array){r=new Uint8Array(r.buffer,r.byteOffset,r.byteLength)}
|
|
749
|
+
// Handle Uint8Array
|
|
750
|
+
if(r instanceof Uint8Array){
|
|
751
|
+
// Shortcut
|
|
752
|
+
var e=r.byteLength;
|
|
753
|
+
// Extract bytes
|
|
754
|
+
var a=[];for(var i=0;i<e;i++){a[i>>>2]|=r[i]<<24-i%4*8}
|
|
755
|
+
// Initialize this word array
|
|
756
|
+
t.call(this,a,e)}else{
|
|
757
|
+
// Else call normal init
|
|
758
|
+
t.apply(this,arguments)}};n.prototype=i})();return r.lib.WordArray}))})(libTypedarrays$1);return libTypedarrays$1.exports}var encUtf16$1={exports:{}};var encUtf16=encUtf16$1.exports;var hasRequiredEncUtf16;function requireEncUtf16(){if(hasRequiredEncUtf16)return encUtf16$1.exports;hasRequiredEncUtf16=1;(function(r,e){(function(e,a){{
|
|
759
|
+
// CommonJS
|
|
760
|
+
r.exports=a(requireCore())}})(encUtf16,(function(r){(function(){
|
|
761
|
+
// Shortcuts
|
|
762
|
+
var e=r;var a=e.lib;var i=a.WordArray;var t=e.enc;
|
|
763
|
+
/**
|
|
764
|
+
* UTF-16 BE encoding strategy.
|
|
765
|
+
*/t.Utf16=t.Utf16BE={
|
|
766
|
+
/**
|
|
767
|
+
* Converts a word array to a UTF-16 BE string.
|
|
768
|
+
*
|
|
769
|
+
* @param {WordArray} wordArray The word array.
|
|
770
|
+
*
|
|
771
|
+
* @return {string} The UTF-16 BE string.
|
|
772
|
+
*
|
|
773
|
+
* @static
|
|
774
|
+
*
|
|
775
|
+
* @example
|
|
776
|
+
*
|
|
777
|
+
* var utf16String = CryptoJS.enc.Utf16.stringify(wordArray);
|
|
778
|
+
*/
|
|
779
|
+
stringify:function(r){
|
|
780
|
+
// Shortcuts
|
|
781
|
+
var e=r.words;var a=r.sigBytes;
|
|
782
|
+
// Convert
|
|
783
|
+
var i=[];for(var t=0;t<a;t+=2){var n=e[t>>>2]>>>16-t%4*8&65535;i.push(String.fromCharCode(n))}return i.join("")},
|
|
784
|
+
/**
|
|
785
|
+
* Converts a UTF-16 BE string to a word array.
|
|
786
|
+
*
|
|
787
|
+
* @param {string} utf16Str The UTF-16 BE string.
|
|
788
|
+
*
|
|
789
|
+
* @return {WordArray} The word array.
|
|
790
|
+
*
|
|
791
|
+
* @static
|
|
792
|
+
*
|
|
793
|
+
* @example
|
|
794
|
+
*
|
|
795
|
+
* var wordArray = CryptoJS.enc.Utf16.parse(utf16String);
|
|
796
|
+
*/
|
|
797
|
+
parse:function(r){
|
|
798
|
+
// Shortcut
|
|
799
|
+
var e=r.length;
|
|
800
|
+
// Convert
|
|
801
|
+
var a=[];for(var t=0;t<e;t++){a[t>>>1]|=r.charCodeAt(t)<<16-t%2*16}return i.create(a,e*2)}};
|
|
802
|
+
/**
|
|
803
|
+
* UTF-16 LE encoding strategy.
|
|
804
|
+
*/t.Utf16LE={
|
|
805
|
+
/**
|
|
806
|
+
* Converts a word array to a UTF-16 LE string.
|
|
807
|
+
*
|
|
808
|
+
* @param {WordArray} wordArray The word array.
|
|
809
|
+
*
|
|
810
|
+
* @return {string} The UTF-16 LE string.
|
|
811
|
+
*
|
|
812
|
+
* @static
|
|
813
|
+
*
|
|
814
|
+
* @example
|
|
815
|
+
*
|
|
816
|
+
* var utf16Str = CryptoJS.enc.Utf16LE.stringify(wordArray);
|
|
817
|
+
*/
|
|
818
|
+
stringify:function(r){
|
|
819
|
+
// Shortcuts
|
|
820
|
+
var e=r.words;var a=r.sigBytes;
|
|
821
|
+
// Convert
|
|
822
|
+
var i=[];for(var t=0;t<a;t+=2){var o=n(e[t>>>2]>>>16-t%4*8&65535);i.push(String.fromCharCode(o))}return i.join("")},
|
|
823
|
+
/**
|
|
824
|
+
* Converts a UTF-16 LE string to a word array.
|
|
825
|
+
*
|
|
826
|
+
* @param {string} utf16Str The UTF-16 LE string.
|
|
827
|
+
*
|
|
828
|
+
* @return {WordArray} The word array.
|
|
829
|
+
*
|
|
830
|
+
* @static
|
|
831
|
+
*
|
|
832
|
+
* @example
|
|
833
|
+
*
|
|
834
|
+
* var wordArray = CryptoJS.enc.Utf16LE.parse(utf16Str);
|
|
835
|
+
*/
|
|
836
|
+
parse:function(r){
|
|
837
|
+
// Shortcut
|
|
838
|
+
var e=r.length;
|
|
839
|
+
// Convert
|
|
840
|
+
var a=[];for(var t=0;t<e;t++){a[t>>>1]|=n(r.charCodeAt(t)<<16-t%2*16)}return i.create(a,e*2)}};function n(r){return r<<8&4278255360|r>>>8&16711935}})();return r.enc.Utf16}))})(encUtf16$1);return encUtf16$1.exports}var encBase64$1={exports:{}};var encBase64=encBase64$1.exports;var hasRequiredEncBase64;function requireEncBase64(){if(hasRequiredEncBase64)return encBase64$1.exports;hasRequiredEncBase64=1;(function(r,e){(function(e,a){{
|
|
841
|
+
// CommonJS
|
|
842
|
+
r.exports=a(requireCore())}})(encBase64,(function(r){(function(){
|
|
843
|
+
// Shortcuts
|
|
844
|
+
var e=r;var a=e.lib;var i=a.WordArray;var t=e.enc;
|
|
845
|
+
/**
|
|
846
|
+
* Base64 encoding strategy.
|
|
847
|
+
*/t.Base64={
|
|
848
|
+
/**
|
|
849
|
+
* Converts a word array to a Base64 string.
|
|
850
|
+
*
|
|
851
|
+
* @param {WordArray} wordArray The word array.
|
|
852
|
+
*
|
|
853
|
+
* @return {string} The Base64 string.
|
|
854
|
+
*
|
|
855
|
+
* @static
|
|
856
|
+
*
|
|
857
|
+
* @example
|
|
858
|
+
*
|
|
859
|
+
* var base64String = CryptoJS.enc.Base64.stringify(wordArray);
|
|
860
|
+
*/
|
|
861
|
+
stringify:function(r){
|
|
862
|
+
// Shortcuts
|
|
863
|
+
var e=r.words;var a=r.sigBytes;var i=this._map;
|
|
864
|
+
// Clamp excess bits
|
|
865
|
+
r.clamp();
|
|
866
|
+
// Convert
|
|
867
|
+
var t=[];for(var n=0;n<a;n+=3){var o=e[n>>>2]>>>24-n%4*8&255;var s=e[n+1>>>2]>>>24-(n+1)%4*8&255;var v=e[n+2>>>2]>>>24-(n+2)%4*8&255;var u=o<<16|s<<8|v;for(var f=0;f<4&&n+f*.75<a;f++){t.push(i.charAt(u>>>6*(3-f)&63))}}
|
|
868
|
+
// Add padding
|
|
869
|
+
var c=i.charAt(64);if(c){while(t.length%4){t.push(c)}}return t.join("")},
|
|
870
|
+
/**
|
|
871
|
+
* Converts a Base64 string to a word array.
|
|
872
|
+
*
|
|
873
|
+
* @param {string} base64Str The Base64 string.
|
|
874
|
+
*
|
|
875
|
+
* @return {WordArray} The word array.
|
|
876
|
+
*
|
|
877
|
+
* @static
|
|
878
|
+
*
|
|
879
|
+
* @example
|
|
880
|
+
*
|
|
881
|
+
* var wordArray = CryptoJS.enc.Base64.parse(base64String);
|
|
882
|
+
*/
|
|
883
|
+
parse:function(r){
|
|
884
|
+
// Shortcuts
|
|
885
|
+
var e=r.length;var a=this._map;var i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var t=0;t<a.length;t++){i[a.charCodeAt(t)]=t}}
|
|
886
|
+
// Ignore padding
|
|
887
|
+
var o=a.charAt(64);if(o){var s=r.indexOf(o);if(s!==-1){e=s}}
|
|
888
|
+
// Convert
|
|
889
|
+
return n(r,e,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function n(r,e,a){var t=[];var n=0;for(var o=0;o<e;o++){if(o%4){var s=a[r.charCodeAt(o-1)]<<o%4*2;var v=a[r.charCodeAt(o)]>>>6-o%4*2;var u=s|v;t[n>>>2]|=u<<24-n%4*8;n++}}return i.create(t,n)}})();return r.enc.Base64}))})(encBase64$1);return encBase64$1.exports}var encBase64url$1={exports:{}};var encBase64url=encBase64url$1.exports;var hasRequiredEncBase64url;function requireEncBase64url(){if(hasRequiredEncBase64url)return encBase64url$1.exports;hasRequiredEncBase64url=1;(function(r,e){(function(e,a){{
|
|
890
|
+
// CommonJS
|
|
891
|
+
r.exports=a(requireCore())}})(encBase64url,(function(r){(function(){
|
|
892
|
+
// Shortcuts
|
|
893
|
+
var e=r;var a=e.lib;var i=a.WordArray;var t=e.enc;
|
|
894
|
+
/**
|
|
895
|
+
* Base64url encoding strategy.
|
|
896
|
+
*/t.Base64url={
|
|
897
|
+
/**
|
|
898
|
+
* Converts a word array to a Base64url string.
|
|
899
|
+
*
|
|
900
|
+
* @param {WordArray} wordArray The word array.
|
|
901
|
+
*
|
|
902
|
+
* @param {boolean} urlSafe Whether to use url safe
|
|
903
|
+
*
|
|
904
|
+
* @return {string} The Base64url string.
|
|
905
|
+
*
|
|
906
|
+
* @static
|
|
907
|
+
*
|
|
908
|
+
* @example
|
|
909
|
+
*
|
|
910
|
+
* var base64String = CryptoJS.enc.Base64url.stringify(wordArray);
|
|
911
|
+
*/
|
|
912
|
+
stringify:function(r,e){if(e===undefined){e=true}
|
|
913
|
+
// Shortcuts
|
|
914
|
+
var a=r.words;var i=r.sigBytes;var t=e?this._safe_map:this._map;
|
|
915
|
+
// Clamp excess bits
|
|
916
|
+
r.clamp();
|
|
917
|
+
// Convert
|
|
918
|
+
var n=[];for(var o=0;o<i;o+=3){var s=a[o>>>2]>>>24-o%4*8&255;var v=a[o+1>>>2]>>>24-(o+1)%4*8&255;var u=a[o+2>>>2]>>>24-(o+2)%4*8&255;var f=s<<16|v<<8|u;for(var c=0;c<4&&o+c*.75<i;c++){n.push(t.charAt(f>>>6*(3-c)&63))}}
|
|
919
|
+
// Add padding
|
|
920
|
+
var d=t.charAt(64);if(d){while(n.length%4){n.push(d)}}return n.join("")},
|
|
921
|
+
/**
|
|
922
|
+
* Converts a Base64url string to a word array.
|
|
923
|
+
*
|
|
924
|
+
* @param {string} base64Str The Base64url string.
|
|
925
|
+
*
|
|
926
|
+
* @param {boolean} urlSafe Whether to use url safe
|
|
927
|
+
*
|
|
928
|
+
* @return {WordArray} The word array.
|
|
929
|
+
*
|
|
930
|
+
* @static
|
|
931
|
+
*
|
|
932
|
+
* @example
|
|
933
|
+
*
|
|
934
|
+
* var wordArray = CryptoJS.enc.Base64url.parse(base64String);
|
|
935
|
+
*/
|
|
936
|
+
parse:function(r,e){if(e===undefined){e=true}
|
|
937
|
+
// Shortcuts
|
|
938
|
+
var a=r.length;var i=e?this._safe_map:this._map;var t=this._reverseMap;if(!t){t=this._reverseMap=[];for(var o=0;o<i.length;o++){t[i.charCodeAt(o)]=o}}
|
|
939
|
+
// Ignore padding
|
|
940
|
+
var s=i.charAt(64);if(s){var v=r.indexOf(s);if(v!==-1){a=v}}
|
|
941
|
+
// Convert
|
|
942
|
+
return n(r,a,t)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function n(r,e,a){var t=[];var n=0;for(var o=0;o<e;o++){if(o%4){var s=a[r.charCodeAt(o-1)]<<o%4*2;var v=a[r.charCodeAt(o)]>>>6-o%4*2;var u=s|v;t[n>>>2]|=u<<24-n%4*8;n++}}return i.create(t,n)}})();return r.enc.Base64url}))})(encBase64url$1);return encBase64url$1.exports}var md5$1={exports:{}};var md5=md5$1.exports;var hasRequiredMd5;function requireMd5(){if(hasRequiredMd5)return md5$1.exports;hasRequiredMd5=1;(function(r,e){(function(e,a){{
|
|
943
|
+
// CommonJS
|
|
944
|
+
r.exports=a(requireCore())}})(md5,(function(r){(function(e){
|
|
945
|
+
// Shortcuts
|
|
946
|
+
var a=r;var i=a.lib;var t=i.WordArray;var n=i.Hasher;var o=a.algo;
|
|
947
|
+
// Constants table
|
|
948
|
+
var s=[];
|
|
949
|
+
// Compute constants
|
|
950
|
+
(function(){for(var r=0;r<64;r++){s[r]=e.abs(e.sin(r+1))*4294967296|0}})();
|
|
951
|
+
/**
|
|
952
|
+
* MD5 hash algorithm.
|
|
953
|
+
*/var v=o.MD5=n.extend({_doReset:function(){this._hash=new t.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(r,e){
|
|
954
|
+
// Swap endian
|
|
955
|
+
for(var a=0;a<16;a++){
|
|
956
|
+
// Shortcuts
|
|
957
|
+
var i=e+a;var t=r[i];r[i]=(t<<8|t>>>24)&16711935|(t<<24|t>>>8)&4278255360}
|
|
958
|
+
// Shortcuts
|
|
959
|
+
var n=this._hash.words;var o=r[e+0];var v=r[e+1];var h=r[e+2];var l=r[e+3];var p=r[e+4];var m=r[e+5];var b=r[e+6];var g=r[e+7];var q=r[e+8];var w=r[e+9];var x=r[e+10];var y=r[e+11];var $=r[e+12];var C=r[e+13];var R=r[e+14];var k=r[e+15];
|
|
960
|
+
// Working variables
|
|
961
|
+
var S=n[0];var E=n[1];var B=n[2];var _=n[3];
|
|
962
|
+
// Computation
|
|
963
|
+
S=u(S,E,B,_,o,7,s[0]);_=u(_,S,E,B,v,12,s[1]);B=u(B,_,S,E,h,17,s[2]);E=u(E,B,_,S,l,22,s[3]);S=u(S,E,B,_,p,7,s[4]);_=u(_,S,E,B,m,12,s[5]);B=u(B,_,S,E,b,17,s[6]);E=u(E,B,_,S,g,22,s[7]);S=u(S,E,B,_,q,7,s[8]);_=u(_,S,E,B,w,12,s[9]);B=u(B,_,S,E,x,17,s[10]);E=u(E,B,_,S,y,22,s[11]);S=u(S,E,B,_,$,7,s[12]);_=u(_,S,E,B,C,12,s[13]);B=u(B,_,S,E,R,17,s[14]);E=u(E,B,_,S,k,22,s[15]);S=f(S,E,B,_,v,5,s[16]);_=f(_,S,E,B,b,9,s[17]);B=f(B,_,S,E,y,14,s[18]);E=f(E,B,_,S,o,20,s[19]);S=f(S,E,B,_,m,5,s[20]);_=f(_,S,E,B,x,9,s[21]);B=f(B,_,S,E,k,14,s[22]);E=f(E,B,_,S,p,20,s[23]);S=f(S,E,B,_,w,5,s[24]);_=f(_,S,E,B,R,9,s[25]);B=f(B,_,S,E,l,14,s[26]);E=f(E,B,_,S,q,20,s[27]);S=f(S,E,B,_,C,5,s[28]);_=f(_,S,E,B,h,9,s[29]);B=f(B,_,S,E,g,14,s[30]);E=f(E,B,_,S,$,20,s[31]);S=c(S,E,B,_,m,4,s[32]);_=c(_,S,E,B,q,11,s[33]);B=c(B,_,S,E,y,16,s[34]);E=c(E,B,_,S,R,23,s[35]);S=c(S,E,B,_,v,4,s[36]);_=c(_,S,E,B,p,11,s[37]);B=c(B,_,S,E,g,16,s[38]);E=c(E,B,_,S,x,23,s[39]);S=c(S,E,B,_,C,4,s[40]);_=c(_,S,E,B,o,11,s[41]);B=c(B,_,S,E,l,16,s[42]);E=c(E,B,_,S,b,23,s[43]);S=c(S,E,B,_,w,4,s[44]);_=c(_,S,E,B,$,11,s[45]);B=c(B,_,S,E,k,16,s[46]);E=c(E,B,_,S,h,23,s[47]);S=d(S,E,B,_,o,6,s[48]);_=d(_,S,E,B,g,10,s[49]);B=d(B,_,S,E,R,15,s[50]);E=d(E,B,_,S,m,21,s[51]);S=d(S,E,B,_,$,6,s[52]);_=d(_,S,E,B,l,10,s[53]);B=d(B,_,S,E,x,15,s[54]);E=d(E,B,_,S,v,21,s[55]);S=d(S,E,B,_,q,6,s[56]);_=d(_,S,E,B,k,10,s[57]);B=d(B,_,S,E,b,15,s[58]);E=d(E,B,_,S,C,21,s[59]);S=d(S,E,B,_,p,6,s[60]);_=d(_,S,E,B,y,10,s[61]);B=d(B,_,S,E,h,15,s[62]);E=d(E,B,_,S,w,21,s[63]);
|
|
964
|
+
// Intermediate hash value
|
|
965
|
+
n[0]=n[0]+S|0;n[1]=n[1]+E|0;n[2]=n[2]+B|0;n[3]=n[3]+_|0},_doFinalize:function(){
|
|
966
|
+
// Shortcuts
|
|
967
|
+
var r=this._data;var a=r.words;var i=this._nDataBytes*8;var t=r.sigBytes*8;
|
|
968
|
+
// Add padding
|
|
969
|
+
a[t>>>5]|=128<<24-t%32;var n=e.floor(i/4294967296);var o=i;a[(t+64>>>9<<4)+15]=(n<<8|n>>>24)&16711935|(n<<24|n>>>8)&4278255360;a[(t+64>>>9<<4)+14]=(o<<8|o>>>24)&16711935|(o<<24|o>>>8)&4278255360;r.sigBytes=(a.length+1)*4;
|
|
970
|
+
// Hash final blocks
|
|
971
|
+
this._process();
|
|
972
|
+
// Shortcuts
|
|
973
|
+
var s=this._hash;var v=s.words;
|
|
974
|
+
// Swap endian
|
|
975
|
+
for(var u=0;u<4;u++){
|
|
976
|
+
// Shortcut
|
|
977
|
+
var f=v[u];v[u]=(f<<8|f>>>24)&16711935|(f<<24|f>>>8)&4278255360}
|
|
978
|
+
// Return final computed hash
|
|
979
|
+
return s},clone:function(){var r=n.clone.call(this);r._hash=this._hash.clone();return r}});function u(r,e,a,i,t,n,o){var s=r+(e&a|~e&i)+t+o;return(s<<n|s>>>32-n)+e}function f(r,e,a,i,t,n,o){var s=r+(e&i|a&~i)+t+o;return(s<<n|s>>>32-n)+e}function c(r,e,a,i,t,n,o){var s=r+(e^a^i)+t+o;return(s<<n|s>>>32-n)+e}function d(r,e,a,i,t,n,o){var s=r+(a^(e|~i))+t+o;return(s<<n|s>>>32-n)+e}
|
|
980
|
+
/**
|
|
981
|
+
* Shortcut function to the hasher's object interface.
|
|
982
|
+
*
|
|
983
|
+
* @param {WordArray|string} message The message to hash.
|
|
984
|
+
*
|
|
985
|
+
* @return {WordArray} The hash.
|
|
986
|
+
*
|
|
987
|
+
* @static
|
|
988
|
+
*
|
|
989
|
+
* @example
|
|
990
|
+
*
|
|
991
|
+
* var hash = CryptoJS.MD5('message');
|
|
992
|
+
* var hash = CryptoJS.MD5(wordArray);
|
|
993
|
+
*/a.MD5=n._createHelper(v);
|
|
994
|
+
/**
|
|
995
|
+
* Shortcut function to the HMAC's object interface.
|
|
996
|
+
*
|
|
997
|
+
* @param {WordArray|string} message The message to hash.
|
|
998
|
+
* @param {WordArray|string} key The secret key.
|
|
999
|
+
*
|
|
1000
|
+
* @return {WordArray} The HMAC.
|
|
1001
|
+
*
|
|
1002
|
+
* @static
|
|
1003
|
+
*
|
|
1004
|
+
* @example
|
|
1005
|
+
*
|
|
1006
|
+
* var hmac = CryptoJS.HmacMD5(message, key);
|
|
1007
|
+
*/a.HmacMD5=n._createHmacHelper(v)})(Math);return r.MD5}))})(md5$1);return md5$1.exports}var sha1$1={exports:{}};var sha1=sha1$1.exports;var hasRequiredSha1;function requireSha1(){if(hasRequiredSha1)return sha1$1.exports;hasRequiredSha1=1;(function(r,e){(function(e,a){{
|
|
1008
|
+
// CommonJS
|
|
1009
|
+
r.exports=a(requireCore())}})(sha1,(function(r){(function(){
|
|
1010
|
+
// Shortcuts
|
|
1011
|
+
var e=r;var a=e.lib;var i=a.WordArray;var t=a.Hasher;var n=e.algo;
|
|
1012
|
+
// Reusable object
|
|
1013
|
+
var o=[];
|
|
1014
|
+
/**
|
|
1015
|
+
* SHA-1 hash algorithm.
|
|
1016
|
+
*/var s=n.SHA1=t.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(r,e){
|
|
1017
|
+
// Shortcut
|
|
1018
|
+
var a=this._hash.words;
|
|
1019
|
+
// Working variables
|
|
1020
|
+
var i=a[0];var t=a[1];var n=a[2];var s=a[3];var v=a[4];
|
|
1021
|
+
// Computation
|
|
1022
|
+
for(var u=0;u<80;u++){if(u<16){o[u]=r[e+u]|0}else{var f=o[u-3]^o[u-8]^o[u-14]^o[u-16];o[u]=f<<1|f>>>31}var c=(i<<5|i>>>27)+v+o[u];if(u<20){c+=(t&n|~t&s)+1518500249}else if(u<40){c+=(t^n^s)+1859775393}else if(u<60){c+=(t&n|t&s|n&s)-1894007588}else/* if (i < 80) */{c+=(t^n^s)-899497514}v=s;s=n;n=t<<30|t>>>2;t=i;i=c}
|
|
1023
|
+
// Intermediate hash value
|
|
1024
|
+
a[0]=a[0]+i|0;a[1]=a[1]+t|0;a[2]=a[2]+n|0;a[3]=a[3]+s|0;a[4]=a[4]+v|0},_doFinalize:function(){
|
|
1025
|
+
// Shortcuts
|
|
1026
|
+
var r=this._data;var e=r.words;var a=this._nDataBytes*8;var i=r.sigBytes*8;
|
|
1027
|
+
// Add padding
|
|
1028
|
+
e[i>>>5]|=128<<24-i%32;e[(i+64>>>9<<4)+14]=Math.floor(a/4294967296);e[(i+64>>>9<<4)+15]=a;r.sigBytes=e.length*4;
|
|
1029
|
+
// Hash final blocks
|
|
1030
|
+
this._process();
|
|
1031
|
+
// Return final computed hash
|
|
1032
|
+
return this._hash},clone:function(){var r=t.clone.call(this);r._hash=this._hash.clone();return r}});
|
|
1033
|
+
/**
|
|
1034
|
+
* Shortcut function to the hasher's object interface.
|
|
1035
|
+
*
|
|
1036
|
+
* @param {WordArray|string} message The message to hash.
|
|
1037
|
+
*
|
|
1038
|
+
* @return {WordArray} The hash.
|
|
1039
|
+
*
|
|
1040
|
+
* @static
|
|
1041
|
+
*
|
|
1042
|
+
* @example
|
|
1043
|
+
*
|
|
1044
|
+
* var hash = CryptoJS.SHA1('message');
|
|
1045
|
+
* var hash = CryptoJS.SHA1(wordArray);
|
|
1046
|
+
*/e.SHA1=t._createHelper(s);
|
|
1047
|
+
/**
|
|
1048
|
+
* Shortcut function to the HMAC's object interface.
|
|
1049
|
+
*
|
|
1050
|
+
* @param {WordArray|string} message The message to hash.
|
|
1051
|
+
* @param {WordArray|string} key The secret key.
|
|
1052
|
+
*
|
|
1053
|
+
* @return {WordArray} The HMAC.
|
|
1054
|
+
*
|
|
1055
|
+
* @static
|
|
1056
|
+
*
|
|
1057
|
+
* @example
|
|
1058
|
+
*
|
|
1059
|
+
* var hmac = CryptoJS.HmacSHA1(message, key);
|
|
1060
|
+
*/e.HmacSHA1=t._createHmacHelper(s)})();return r.SHA1}))})(sha1$1);return sha1$1.exports}var sha256$1={exports:{}};var sha256=sha256$1.exports;var hasRequiredSha256;function requireSha256(){if(hasRequiredSha256)return sha256$1.exports;hasRequiredSha256=1;(function(r,e){(function(e,a){{
|
|
1061
|
+
// CommonJS
|
|
1062
|
+
r.exports=a(requireCore())}})(sha256,(function(r){(function(e){
|
|
1063
|
+
// Shortcuts
|
|
1064
|
+
var a=r;var i=a.lib;var t=i.WordArray;var n=i.Hasher;var o=a.algo;
|
|
1065
|
+
// Initialization and round constants tables
|
|
1066
|
+
var s=[];var v=[];
|
|
1067
|
+
// Compute constants
|
|
1068
|
+
(function(){function r(r){var a=e.sqrt(r);for(var i=2;i<=a;i++){if(!(r%i)){return false}}return true}function a(r){return(r-(r|0))*4294967296|0}var i=2;var t=0;while(t<64){if(r(i)){if(t<8){s[t]=a(e.pow(i,1/2))}v[t]=a(e.pow(i,1/3));t++}i++}})();
|
|
1069
|
+
// Reusable object
|
|
1070
|
+
var u=[];
|
|
1071
|
+
/**
|
|
1072
|
+
* SHA-256 hash algorithm.
|
|
1073
|
+
*/var f=o.SHA256=n.extend({_doReset:function(){this._hash=new t.init(s.slice(0))},_doProcessBlock:function(r,e){
|
|
1074
|
+
// Shortcut
|
|
1075
|
+
var a=this._hash.words;
|
|
1076
|
+
// Working variables
|
|
1077
|
+
var i=a[0];var t=a[1];var n=a[2];var o=a[3];var s=a[4];var f=a[5];var c=a[6];var d=a[7];
|
|
1078
|
+
// Computation
|
|
1079
|
+
for(var h=0;h<64;h++){if(h<16){u[h]=r[e+h]|0}else{var l=u[h-15];var p=(l<<25|l>>>7)^(l<<14|l>>>18)^l>>>3;var m=u[h-2];var b=(m<<15|m>>>17)^(m<<13|m>>>19)^m>>>10;u[h]=p+u[h-7]+b+u[h-16]}var g=s&f^~s&c;var q=i&t^i&n^t&n;var w=(i<<30|i>>>2)^(i<<19|i>>>13)^(i<<10|i>>>22);var x=(s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25);var y=d+x+g+v[h]+u[h];var $=w+q;d=c;c=f;f=s;s=o+y|0;o=n;n=t;t=i;i=y+$|0}
|
|
1080
|
+
// Intermediate hash value
|
|
1081
|
+
a[0]=a[0]+i|0;a[1]=a[1]+t|0;a[2]=a[2]+n|0;a[3]=a[3]+o|0;a[4]=a[4]+s|0;a[5]=a[5]+f|0;a[6]=a[6]+c|0;a[7]=a[7]+d|0},_doFinalize:function(){
|
|
1082
|
+
// Shortcuts
|
|
1083
|
+
var r=this._data;var a=r.words;var i=this._nDataBytes*8;var t=r.sigBytes*8;
|
|
1084
|
+
// Add padding
|
|
1085
|
+
a[t>>>5]|=128<<24-t%32;a[(t+64>>>9<<4)+14]=e.floor(i/4294967296);a[(t+64>>>9<<4)+15]=i;r.sigBytes=a.length*4;
|
|
1086
|
+
// Hash final blocks
|
|
1087
|
+
this._process();
|
|
1088
|
+
// Return final computed hash
|
|
1089
|
+
return this._hash},clone:function(){var r=n.clone.call(this);r._hash=this._hash.clone();return r}});
|
|
1090
|
+
/**
|
|
1091
|
+
* Shortcut function to the hasher's object interface.
|
|
1092
|
+
*
|
|
1093
|
+
* @param {WordArray|string} message The message to hash.
|
|
1094
|
+
*
|
|
1095
|
+
* @return {WordArray} The hash.
|
|
1096
|
+
*
|
|
1097
|
+
* @static
|
|
1098
|
+
*
|
|
1099
|
+
* @example
|
|
1100
|
+
*
|
|
1101
|
+
* var hash = CryptoJS.SHA256('message');
|
|
1102
|
+
* var hash = CryptoJS.SHA256(wordArray);
|
|
1103
|
+
*/a.SHA256=n._createHelper(f);
|
|
1104
|
+
/**
|
|
1105
|
+
* Shortcut function to the HMAC's object interface.
|
|
1106
|
+
*
|
|
1107
|
+
* @param {WordArray|string} message The message to hash.
|
|
1108
|
+
* @param {WordArray|string} key The secret key.
|
|
1109
|
+
*
|
|
1110
|
+
* @return {WordArray} The HMAC.
|
|
1111
|
+
*
|
|
1112
|
+
* @static
|
|
1113
|
+
*
|
|
1114
|
+
* @example
|
|
1115
|
+
*
|
|
1116
|
+
* var hmac = CryptoJS.HmacSHA256(message, key);
|
|
1117
|
+
*/a.HmacSHA256=n._createHmacHelper(f)})(Math);return r.SHA256}))})(sha256$1);return sha256$1.exports}var sha224$1={exports:{}};var sha224=sha224$1.exports;var hasRequiredSha224;function requireSha224(){if(hasRequiredSha224)return sha224$1.exports;hasRequiredSha224=1;(function(r,e){(function(e,a,i){{
|
|
1118
|
+
// CommonJS
|
|
1119
|
+
r.exports=a(requireCore(),requireSha256())}})(sha224,(function(r){(function(){
|
|
1120
|
+
// Shortcuts
|
|
1121
|
+
var e=r;var a=e.lib;var i=a.WordArray;var t=e.algo;var n=t.SHA256;
|
|
1122
|
+
/**
|
|
1123
|
+
* SHA-224 hash algorithm.
|
|
1124
|
+
*/var o=t.SHA224=n.extend({_doReset:function(){this._hash=new i.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var r=n._doFinalize.call(this);r.sigBytes-=4;return r}});
|
|
1125
|
+
/**
|
|
1126
|
+
* Shortcut function to the hasher's object interface.
|
|
1127
|
+
*
|
|
1128
|
+
* @param {WordArray|string} message The message to hash.
|
|
1129
|
+
*
|
|
1130
|
+
* @return {WordArray} The hash.
|
|
1131
|
+
*
|
|
1132
|
+
* @static
|
|
1133
|
+
*
|
|
1134
|
+
* @example
|
|
1135
|
+
*
|
|
1136
|
+
* var hash = CryptoJS.SHA224('message');
|
|
1137
|
+
* var hash = CryptoJS.SHA224(wordArray);
|
|
1138
|
+
*/e.SHA224=n._createHelper(o);
|
|
1139
|
+
/**
|
|
1140
|
+
* Shortcut function to the HMAC's object interface.
|
|
1141
|
+
*
|
|
1142
|
+
* @param {WordArray|string} message The message to hash.
|
|
1143
|
+
* @param {WordArray|string} key The secret key.
|
|
1144
|
+
*
|
|
1145
|
+
* @return {WordArray} The HMAC.
|
|
1146
|
+
*
|
|
1147
|
+
* @static
|
|
1148
|
+
*
|
|
1149
|
+
* @example
|
|
1150
|
+
*
|
|
1151
|
+
* var hmac = CryptoJS.HmacSHA224(message, key);
|
|
1152
|
+
*/e.HmacSHA224=n._createHmacHelper(o)})();return r.SHA224}))})(sha224$1);return sha224$1.exports}var sha512$1={exports:{}};var sha512=sha512$1.exports;var hasRequiredSha512;function requireSha512(){if(hasRequiredSha512)return sha512$1.exports;hasRequiredSha512=1;(function(r,e){(function(e,a,i){{
|
|
1153
|
+
// CommonJS
|
|
1154
|
+
r.exports=a(requireCore(),requireX64Core())}})(sha512,(function(r){(function(){
|
|
1155
|
+
// Shortcuts
|
|
1156
|
+
var e=r;var a=e.lib;var i=a.Hasher;var t=e.x64;var n=t.Word;var o=t.WordArray;var s=e.algo;function v(){return n.create.apply(n,arguments)}
|
|
1157
|
+
// Constants
|
|
1158
|
+
var u=[v(1116352408,3609767458),v(1899447441,602891725),v(3049323471,3964484399),v(3921009573,2173295548),v(961987163,4081628472),v(1508970993,3053834265),v(2453635748,2937671579),v(2870763221,3664609560),v(3624381080,2734883394),v(310598401,1164996542),v(607225278,1323610764),v(1426881987,3590304994),v(1925078388,4068182383),v(2162078206,991336113),v(2614888103,633803317),v(3248222580,3479774868),v(3835390401,2666613458),v(4022224774,944711139),v(264347078,2341262773),v(604807628,2007800933),v(770255983,1495990901),v(1249150122,1856431235),v(1555081692,3175218132),v(1996064986,2198950837),v(2554220882,3999719339),v(2821834349,766784016),v(2952996808,2566594879),v(3210313671,3203337956),v(3336571891,1034457026),v(3584528711,2466948901),v(113926993,3758326383),v(338241895,168717936),v(666307205,1188179964),v(773529912,1546045734),v(1294757372,1522805485),v(1396182291,2643833823),v(1695183700,2343527390),v(1986661051,1014477480),v(2177026350,1206759142),v(2456956037,344077627),v(2730485921,1290863460),v(2820302411,3158454273),v(3259730800,3505952657),v(3345764771,106217008),v(3516065817,3606008344),v(3600352804,1432725776),v(4094571909,1467031594),v(275423344,851169720),v(430227734,3100823752),v(506948616,1363258195),v(659060556,3750685593),v(883997877,3785050280),v(958139571,3318307427),v(1322822218,3812723403),v(1537002063,2003034995),v(1747873779,3602036899),v(1955562222,1575990012),v(2024104815,1125592928),v(2227730452,2716904306),v(2361852424,442776044),v(2428436474,593698344),v(2756734187,3733110249),v(3204031479,2999351573),v(3329325298,3815920427),v(3391569614,3928383900),v(3515267271,566280711),v(3940187606,3454069534),v(4118630271,4000239992),v(116418474,1914138554),v(174292421,2731055270),v(289380356,3203993006),v(460393269,320620315),v(685471733,587496836),v(852142971,1086792851),v(1017036298,365543100),v(1126000580,2618297676),v(1288033470,3409855158),v(1501505948,4234509866),v(1607167915,987167468),v(1816402316,1246189591)];
|
|
1159
|
+
// Reusable objects
|
|
1160
|
+
var f=[];(function(){for(var r=0;r<80;r++){f[r]=v()}})();
|
|
1161
|
+
/**
|
|
1162
|
+
* SHA-512 hash algorithm.
|
|
1163
|
+
*/var c=s.SHA512=i.extend({_doReset:function(){this._hash=new o.init([new n.init(1779033703,4089235720),new n.init(3144134277,2227873595),new n.init(1013904242,4271175723),new n.init(2773480762,1595750129),new n.init(1359893119,2917565137),new n.init(2600822924,725511199),new n.init(528734635,4215389547),new n.init(1541459225,327033209)])},_doProcessBlock:function(r,e){
|
|
1164
|
+
// Shortcuts
|
|
1165
|
+
var a=this._hash.words;var i=a[0];var t=a[1];var n=a[2];var o=a[3];var s=a[4];var v=a[5];var c=a[6];var d=a[7];var h=i.high;var l=i.low;var p=t.high;var m=t.low;var b=n.high;var g=n.low;var q=o.high;var w=o.low;var x=s.high;var y=s.low;var $=v.high;var C=v.low;var R=c.high;var k=c.low;var S=d.high;var E=d.low;
|
|
1166
|
+
// Working variables
|
|
1167
|
+
var B=h;var _=l;var M=p;var z=m;var I=b;var P=g;var D=q;var F=w;var L=x;var A=y;var j=$;var H=C;var O=R;var T=k;var U=S;var N=E;
|
|
1168
|
+
// Rounds
|
|
1169
|
+
for(var J=0;J<80;J++){var G;var Z;
|
|
1170
|
+
// Shortcut
|
|
1171
|
+
var X=f[J];
|
|
1172
|
+
// Extend message
|
|
1173
|
+
if(J<16){Z=X.high=r[e+J*2]|0;G=X.low=r[e+J*2+1]|0}else{
|
|
1174
|
+
// Gamma0
|
|
1175
|
+
var Y=f[J-15];var V=Y.high;var W=Y.low;var K=(V>>>1|W<<31)^(V>>>8|W<<24)^V>>>7;var Q=(W>>>1|V<<31)^(W>>>8|V<<24)^(W>>>7|V<<25);
|
|
1176
|
+
// Gamma1
|
|
1177
|
+
var rr=f[J-2];var er=rr.high;var ar=rr.low;var ir=(er>>>19|ar<<13)^(er<<3|ar>>>29)^er>>>6;var tr=(ar>>>19|er<<13)^(ar<<3|er>>>29)^(ar>>>6|er<<26);
|
|
1178
|
+
// W[i] = gamma0 + W[i - 7] + gamma1 + W[i - 16]
|
|
1179
|
+
var nr=f[J-7];var or=nr.high;var sr=nr.low;var vr=f[J-16];var ur=vr.high;var fr=vr.low;G=Q+sr;Z=K+or+(G>>>0<Q>>>0?1:0);G=G+tr;Z=Z+ir+(G>>>0<tr>>>0?1:0);G=G+fr;Z=Z+ur+(G>>>0<fr>>>0?1:0);X.high=Z;X.low=G}var cr=L&j^~L&O;var dr=A&H^~A&T;var hr=B&M^B&I^M&I;var lr=_&z^_&P^z&P;var pr=(B>>>28|_<<4)^(B<<30|_>>>2)^(B<<25|_>>>7);var mr=(_>>>28|B<<4)^(_<<30|B>>>2)^(_<<25|B>>>7);var br=(L>>>14|A<<18)^(L>>>18|A<<14)^(L<<23|A>>>9);var gr=(A>>>14|L<<18)^(A>>>18|L<<14)^(A<<23|L>>>9);
|
|
1180
|
+
// t1 = h + sigma1 + ch + K[i] + W[i]
|
|
1181
|
+
var qr=u[J];var wr=qr.high;var xr=qr.low;var yr=N+gr;var $r=U+br+(yr>>>0<N>>>0?1:0);var yr=yr+dr;var $r=$r+cr+(yr>>>0<dr>>>0?1:0);var yr=yr+xr;var $r=$r+wr+(yr>>>0<xr>>>0?1:0);var yr=yr+G;var $r=$r+Z+(yr>>>0<G>>>0?1:0);
|
|
1182
|
+
// t2 = sigma0 + maj
|
|
1183
|
+
var Cr=mr+lr;var Rr=pr+hr+(Cr>>>0<mr>>>0?1:0);
|
|
1184
|
+
// Update working variables
|
|
1185
|
+
U=O;N=T;O=j;T=H;j=L;H=A;A=F+yr|0;L=D+$r+(A>>>0<F>>>0?1:0)|0;D=I;F=P;I=M;P=z;M=B;z=_;_=yr+Cr|0;B=$r+Rr+(_>>>0<yr>>>0?1:0)|0}
|
|
1186
|
+
// Intermediate hash value
|
|
1187
|
+
l=i.low=l+_;i.high=h+B+(l>>>0<_>>>0?1:0);m=t.low=m+z;t.high=p+M+(m>>>0<z>>>0?1:0);g=n.low=g+P;n.high=b+I+(g>>>0<P>>>0?1:0);w=o.low=w+F;o.high=q+D+(w>>>0<F>>>0?1:0);y=s.low=y+A;s.high=x+L+(y>>>0<A>>>0?1:0);C=v.low=C+H;v.high=$+j+(C>>>0<H>>>0?1:0);k=c.low=k+T;c.high=R+O+(k>>>0<T>>>0?1:0);E=d.low=E+N;d.high=S+U+(E>>>0<N>>>0?1:0)},_doFinalize:function(){
|
|
1188
|
+
// Shortcuts
|
|
1189
|
+
var r=this._data;var e=r.words;var a=this._nDataBytes*8;var i=r.sigBytes*8;
|
|
1190
|
+
// Add padding
|
|
1191
|
+
e[i>>>5]|=128<<24-i%32;e[(i+128>>>10<<5)+30]=Math.floor(a/4294967296);e[(i+128>>>10<<5)+31]=a;r.sigBytes=e.length*4;
|
|
1192
|
+
// Hash final blocks
|
|
1193
|
+
this._process();
|
|
1194
|
+
// Convert hash to 32-bit word array before returning
|
|
1195
|
+
var t=this._hash.toX32();
|
|
1196
|
+
// Return final computed hash
|
|
1197
|
+
return t},clone:function(){var r=i.clone.call(this);r._hash=this._hash.clone();return r},blockSize:1024/32});
|
|
1198
|
+
/**
|
|
1199
|
+
* Shortcut function to the hasher's object interface.
|
|
1200
|
+
*
|
|
1201
|
+
* @param {WordArray|string} message The message to hash.
|
|
1202
|
+
*
|
|
1203
|
+
* @return {WordArray} The hash.
|
|
1204
|
+
*
|
|
1205
|
+
* @static
|
|
1206
|
+
*
|
|
1207
|
+
* @example
|
|
1208
|
+
*
|
|
1209
|
+
* var hash = CryptoJS.SHA512('message');
|
|
1210
|
+
* var hash = CryptoJS.SHA512(wordArray);
|
|
1211
|
+
*/e.SHA512=i._createHelper(c);
|
|
1212
|
+
/**
|
|
1213
|
+
* Shortcut function to the HMAC's object interface.
|
|
1214
|
+
*
|
|
1215
|
+
* @param {WordArray|string} message The message to hash.
|
|
1216
|
+
* @param {WordArray|string} key The secret key.
|
|
1217
|
+
*
|
|
1218
|
+
* @return {WordArray} The HMAC.
|
|
1219
|
+
*
|
|
1220
|
+
* @static
|
|
1221
|
+
*
|
|
1222
|
+
* @example
|
|
1223
|
+
*
|
|
1224
|
+
* var hmac = CryptoJS.HmacSHA512(message, key);
|
|
1225
|
+
*/e.HmacSHA512=i._createHmacHelper(c)})();return r.SHA512}))})(sha512$1);return sha512$1.exports}var sha384$1={exports:{}};var sha384=sha384$1.exports;var hasRequiredSha384;function requireSha384(){if(hasRequiredSha384)return sha384$1.exports;hasRequiredSha384=1;(function(r,e){(function(e,a,i){{
|
|
1226
|
+
// CommonJS
|
|
1227
|
+
r.exports=a(requireCore(),requireX64Core(),requireSha512())}})(sha384,(function(r){(function(){
|
|
1228
|
+
// Shortcuts
|
|
1229
|
+
var e=r;var a=e.x64;var i=a.Word;var t=a.WordArray;var n=e.algo;var o=n.SHA512;
|
|
1230
|
+
/**
|
|
1231
|
+
* SHA-384 hash algorithm.
|
|
1232
|
+
*/var s=n.SHA384=o.extend({_doReset:function(){this._hash=new t.init([new i.init(3418070365,3238371032),new i.init(1654270250,914150663),new i.init(2438529370,812702999),new i.init(355462360,4144912697),new i.init(1731405415,4290775857),new i.init(2394180231,1750603025),new i.init(3675008525,1694076839),new i.init(1203062813,3204075428)])},_doFinalize:function(){var r=o._doFinalize.call(this);r.sigBytes-=16;return r}});
|
|
1233
|
+
/**
|
|
1234
|
+
* Shortcut function to the hasher's object interface.
|
|
1235
|
+
*
|
|
1236
|
+
* @param {WordArray|string} message The message to hash.
|
|
1237
|
+
*
|
|
1238
|
+
* @return {WordArray} The hash.
|
|
1239
|
+
*
|
|
1240
|
+
* @static
|
|
1241
|
+
*
|
|
1242
|
+
* @example
|
|
1243
|
+
*
|
|
1244
|
+
* var hash = CryptoJS.SHA384('message');
|
|
1245
|
+
* var hash = CryptoJS.SHA384(wordArray);
|
|
1246
|
+
*/e.SHA384=o._createHelper(s);
|
|
1247
|
+
/**
|
|
1248
|
+
* Shortcut function to the HMAC's object interface.
|
|
1249
|
+
*
|
|
1250
|
+
* @param {WordArray|string} message The message to hash.
|
|
1251
|
+
* @param {WordArray|string} key The secret key.
|
|
1252
|
+
*
|
|
1253
|
+
* @return {WordArray} The HMAC.
|
|
1254
|
+
*
|
|
1255
|
+
* @static
|
|
1256
|
+
*
|
|
1257
|
+
* @example
|
|
1258
|
+
*
|
|
1259
|
+
* var hmac = CryptoJS.HmacSHA384(message, key);
|
|
1260
|
+
*/e.HmacSHA384=o._createHmacHelper(s)})();return r.SHA384}))})(sha384$1);return sha384$1.exports}var sha3$1={exports:{}};var sha3=sha3$1.exports;var hasRequiredSha3;function requireSha3(){if(hasRequiredSha3)return sha3$1.exports;hasRequiredSha3=1;(function(r,e){(function(e,a,i){{
|
|
1261
|
+
// CommonJS
|
|
1262
|
+
r.exports=a(requireCore(),requireX64Core())}})(sha3,(function(r){(function(e){
|
|
1263
|
+
// Shortcuts
|
|
1264
|
+
var a=r;var i=a.lib;var t=i.WordArray;var n=i.Hasher;var o=a.x64;var s=o.Word;var v=a.algo;
|
|
1265
|
+
// Constants tables
|
|
1266
|
+
var u=[];var f=[];var c=[];
|
|
1267
|
+
// Compute Constants
|
|
1268
|
+
(function(){
|
|
1269
|
+
// Compute rho offset constants
|
|
1270
|
+
var r=1,e=0;for(var a=0;a<24;a++){u[r+5*e]=(a+1)*(a+2)/2%64;var i=e%5;var t=(2*r+3*e)%5;r=i;e=t}
|
|
1271
|
+
// Compute pi index constants
|
|
1272
|
+
for(var r=0;r<5;r++){for(var e=0;e<5;e++){f[r+5*e]=e+(2*r+3*e)%5*5}}
|
|
1273
|
+
// Compute round constants
|
|
1274
|
+
var n=1;for(var o=0;o<24;o++){var v=0;var d=0;for(var h=0;h<7;h++){if(n&1){var l=(1<<h)-1;if(l<32){d^=1<<l}else/* if (bitPosition >= 32) */{v^=1<<l-32}}
|
|
1275
|
+
// Compute next LFSR
|
|
1276
|
+
if(n&128){
|
|
1277
|
+
// Primitive polynomial over GF(2): x^8 + x^6 + x^5 + x^4 + 1
|
|
1278
|
+
n=n<<1^113}else{n<<=1}}c[o]=s.create(v,d)}})();
|
|
1279
|
+
// Reusable objects for temporary values
|
|
1280
|
+
var d=[];(function(){for(var r=0;r<25;r++){d[r]=s.create()}})();
|
|
1281
|
+
/**
|
|
1282
|
+
* SHA-3 hash algorithm.
|
|
1283
|
+
*/var h=v.SHA3=n.extend({
|
|
1284
|
+
/**
|
|
1285
|
+
* Configuration options.
|
|
1286
|
+
*
|
|
1287
|
+
* @property {number} outputLength
|
|
1288
|
+
* The desired number of bits in the output hash.
|
|
1289
|
+
* Only values permitted are: 224, 256, 384, 512.
|
|
1290
|
+
* Default: 512
|
|
1291
|
+
*/
|
|
1292
|
+
cfg:n.cfg.extend({outputLength:512}),_doReset:function(){var r=this._state=[];for(var e=0;e<25;e++){r[e]=new s.init}this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(r,e){
|
|
1293
|
+
// Shortcuts
|
|
1294
|
+
var a=this._state;var i=this.blockSize/2;
|
|
1295
|
+
// Absorb
|
|
1296
|
+
for(var t=0;t<i;t++){
|
|
1297
|
+
// Shortcuts
|
|
1298
|
+
var n=r[e+2*t];var o=r[e+2*t+1];
|
|
1299
|
+
// Swap endian
|
|
1300
|
+
n=(n<<8|n>>>24)&16711935|(n<<24|n>>>8)&4278255360;o=(o<<8|o>>>24)&16711935|(o<<24|o>>>8)&4278255360;
|
|
1301
|
+
// Absorb message into state
|
|
1302
|
+
var s=a[t];s.high^=o;s.low^=n}
|
|
1303
|
+
// Rounds
|
|
1304
|
+
for(var v=0;v<24;v++){
|
|
1305
|
+
// Theta
|
|
1306
|
+
for(var h=0;h<5;h++){
|
|
1307
|
+
// Mix column lanes
|
|
1308
|
+
var l=0,p=0;for(var m=0;m<5;m++){var s=a[h+5*m];l^=s.high;p^=s.low}
|
|
1309
|
+
// Temporary values
|
|
1310
|
+
var b=d[h];b.high=l;b.low=p}for(var h=0;h<5;h++){
|
|
1311
|
+
// Shortcuts
|
|
1312
|
+
var g=d[(h+4)%5];var q=d[(h+1)%5];var w=q.high;var x=q.low;
|
|
1313
|
+
// Mix surrounding columns
|
|
1314
|
+
var l=g.high^(w<<1|x>>>31);var p=g.low^(x<<1|w>>>31);for(var m=0;m<5;m++){var s=a[h+5*m];s.high^=l;s.low^=p}}
|
|
1315
|
+
// Rho Pi
|
|
1316
|
+
for(var y=1;y<25;y++){var l;var p;
|
|
1317
|
+
// Shortcuts
|
|
1318
|
+
var s=a[y];var $=s.high;var C=s.low;var R=u[y];
|
|
1319
|
+
// Rotate lanes
|
|
1320
|
+
if(R<32){l=$<<R|C>>>32-R;p=C<<R|$>>>32-R}else/* if (rhoOffset >= 32) */{l=C<<R-32|$>>>64-R;p=$<<R-32|C>>>64-R}
|
|
1321
|
+
// Transpose lanes
|
|
1322
|
+
var k=d[f[y]];k.high=l;k.low=p}
|
|
1323
|
+
// Rho pi at x = y = 0
|
|
1324
|
+
var S=d[0];var E=a[0];S.high=E.high;S.low=E.low;
|
|
1325
|
+
// Chi
|
|
1326
|
+
for(var h=0;h<5;h++){for(var m=0;m<5;m++){
|
|
1327
|
+
// Shortcuts
|
|
1328
|
+
var y=h+5*m;var s=a[y];var B=d[y];var _=d[(h+1)%5+5*m];var M=d[(h+2)%5+5*m];
|
|
1329
|
+
// Mix rows
|
|
1330
|
+
s.high=B.high^~_.high&M.high;s.low=B.low^~_.low&M.low}}
|
|
1331
|
+
// Iota
|
|
1332
|
+
var s=a[0];var z=c[v];s.high^=z.high;s.low^=z.low}},_doFinalize:function(){
|
|
1333
|
+
// Shortcuts
|
|
1334
|
+
var r=this._data;var a=r.words;var i=r.sigBytes*8;var n=this.blockSize*32;
|
|
1335
|
+
// Add padding
|
|
1336
|
+
a[i>>>5]|=1<<24-i%32;a[(e.ceil((i+1)/n)*n>>>5)-1]|=128;r.sigBytes=a.length*4;
|
|
1337
|
+
// Hash final blocks
|
|
1338
|
+
this._process();
|
|
1339
|
+
// Shortcuts
|
|
1340
|
+
var o=this._state;var s=this.cfg.outputLength/8;var v=s/8;
|
|
1341
|
+
// Squeeze
|
|
1342
|
+
var u=[];for(var f=0;f<v;f++){
|
|
1343
|
+
// Shortcuts
|
|
1344
|
+
var c=o[f];var d=c.high;var h=c.low;
|
|
1345
|
+
// Swap endian
|
|
1346
|
+
d=(d<<8|d>>>24)&16711935|(d<<24|d>>>8)&4278255360;h=(h<<8|h>>>24)&16711935|(h<<24|h>>>8)&4278255360;
|
|
1347
|
+
// Squeeze state to retrieve hash
|
|
1348
|
+
u.push(h);u.push(d)}
|
|
1349
|
+
// Return final computed hash
|
|
1350
|
+
return new t.init(u,s)},clone:function(){var r=n.clone.call(this);var e=r._state=this._state.slice(0);for(var a=0;a<25;a++){e[a]=e[a].clone()}return r}});
|
|
1351
|
+
/**
|
|
1352
|
+
* Shortcut function to the hasher's object interface.
|
|
1353
|
+
*
|
|
1354
|
+
* @param {WordArray|string} message The message to hash.
|
|
1355
|
+
*
|
|
1356
|
+
* @return {WordArray} The hash.
|
|
1357
|
+
*
|
|
1358
|
+
* @static
|
|
1359
|
+
*
|
|
1360
|
+
* @example
|
|
1361
|
+
*
|
|
1362
|
+
* var hash = CryptoJS.SHA3('message');
|
|
1363
|
+
* var hash = CryptoJS.SHA3(wordArray);
|
|
1364
|
+
*/a.SHA3=n._createHelper(h);
|
|
1365
|
+
/**
|
|
1366
|
+
* Shortcut function to the HMAC's object interface.
|
|
1367
|
+
*
|
|
1368
|
+
* @param {WordArray|string} message The message to hash.
|
|
1369
|
+
* @param {WordArray|string} key The secret key.
|
|
1370
|
+
*
|
|
1371
|
+
* @return {WordArray} The HMAC.
|
|
1372
|
+
*
|
|
1373
|
+
* @static
|
|
1374
|
+
*
|
|
1375
|
+
* @example
|
|
1376
|
+
*
|
|
1377
|
+
* var hmac = CryptoJS.HmacSHA3(message, key);
|
|
1378
|
+
*/a.HmacSHA3=n._createHmacHelper(h)})(Math);return r.SHA3}))})(sha3$1);return sha3$1.exports}var ripemd160$1={exports:{}};var ripemd160=ripemd160$1.exports;var hasRequiredRipemd160;function requireRipemd160(){if(hasRequiredRipemd160)return ripemd160$1.exports;hasRequiredRipemd160=1;(function(r,e){(function(e,a){{
|
|
1379
|
+
// CommonJS
|
|
1380
|
+
r.exports=a(requireCore())}})(ripemd160,(function(r){
|
|
2
1381
|
/** @preserve
|
|
3
1382
|
(c) 2012 by Cédric Mesnil. All rights reserved.
|
|
4
1383
|
|
|
@@ -9,10 +1388,1451 @@ var __awaiter=this&&this.__awaiter||function(r,e,a,i){function t(r){return r ins
|
|
|
9
1388
|
|
|
10
1389
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
11
1390
|
*/
|
|
12
|
-
(function(e){var a=r;var i=a.lib;var t=i.WordArray;var n=i.Hasher;var o=a.algo;var s=t.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]);var v=t.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]);var u=t.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]);var f=t.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]);var c=t.create([0,1518500249,1859775393,2400959708,2840853838]);var d=t.create([1352829926,1548603684,1836072691,2053994217,0]);var h=o.RIPEMD160=n.extend({_doReset:function(){this._hash=t.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(r,e){for(var a=0;a<16;a++){var i=e+a;var t=r[i];r[i]=(t<<8|t>>>24)&16711935|(t<<24|t>>>8)&4278255360}var n=this._hash.words;var o=c.words;var h=d.words;var g=s.words;var y=v.words;var x=u.words;var $=f.words;var C,R,k,E,S;var _,B,M,z,P;_=C=n[0];B=R=n[1];M=k=n[2];z=E=n[3];P=S=n[4];var I;for(var a=0;a<80;a+=1){I=C+r[e+g[a]]|0;if(a<16){I+=l(R,k,E)+o[0]}else if(a<32){I+=p(R,k,E)+o[1]}else if(a<48){I+=m(R,k,E)+o[2]}else if(a<64){I+=b(R,k,E)+o[3]}else{I+=q(R,k,E)+o[4]}I=I|0;I=w(I,x[a]);I=I+S|0;C=S;S=E;E=w(k,10);k=R;R=I;I=_+r[e+y[a]]|0;if(a<16){I+=q(B,M,z)+h[0]}else if(a<32){I+=b(B,M,z)+h[1]}else if(a<48){I+=m(B,M,z)+h[2]}else if(a<64){I+=p(B,M,z)+h[3]}else{I+=l(B,M,z)+h[4]}I=I|0;I=w(I,$[a]);I=I+P|0;_=P;P=z;z=w(M,10);M=B;B=I}I=n[1]+k+z|0;n[1]=n[2]+E+P|0;n[2]=n[3]+S+_|0;n[3]=n[4]+C+B|0;n[4]=n[0]+R+M|0;n[0]=I},_doFinalize:function(){var r=this._data;var e=r.words;var a=this._nDataBytes*8;var i=r.sigBytes*8;e[i>>>5]|=128<<24-i%32;e[(i+64>>>9<<4)+14]=(a<<8|a>>>24)&16711935|(a<<24|a>>>8)&4278255360;r.sigBytes=(e.length+1)*4;this._process();var t=this._hash;var n=t.words;for(var o=0;o<5;o++){var s=n[o];n[o]=(s<<8|s>>>24)&16711935|(s<<24|s>>>8)&4278255360}return t},clone:function(){var r=n.clone.call(this);r._hash=this._hash.clone();return r}});function l(r,e,a){return r^e^a}function p(r,e,a){return r&e|~r&a}function m(r,e,a){return(r|~e)^a}function b(r,e,a){return r&a|e&~a}function q(r,e,a){return r^(e|~a)}function w(r,e){return r<<e|r>>>32-e}a.RIPEMD160=n._createHelper(h);a.HmacRIPEMD160=n._createHmacHelper(h)})();return r.RIPEMD160}))})(ripemd160$1);return ripemd160$1.exports}var hmac$1={exports:{}};var hmac=hmac$1.exports;var hasRequiredHmac;function requireHmac(){if(hasRequiredHmac)return hmac$1.exports;hasRequiredHmac=1;(function(r,e){(function(e,a){{r.exports=a(requireCore())}})(hmac,(function(r){(function(){var e=r;var a=e.lib;var i=a.Base;var t=e.enc;var n=t.Utf8;var o=e.algo;o.HMAC=i.extend({init:function(r,e){r=this._hasher=new r.init;if(typeof e=="string"){e=n.parse(e)}var a=r.blockSize;var i=a*4;if(e.sigBytes>i){e=r.finalize(e)}e.clamp();var t=this._oKey=e.clone();var o=this._iKey=e.clone();var s=t.words;var v=o.words;for(var u=0;u<a;u++){s[u]^=1549556828;v[u]^=909522486}t.sigBytes=o.sigBytes=i;this.reset()},reset:function(){var r=this._hasher;r.reset();r.update(this._iKey)},update:function(r){this._hasher.update(r);return this},finalize:function(r){var e=this._hasher;var a=e.finalize(r);e.reset();var i=e.finalize(this._oKey.clone().concat(a));return i}})})()}))})(hmac$1);return hmac$1.exports}var pbkdf2$1={exports:{}};var pbkdf2=pbkdf2$1.exports;var hasRequiredPbkdf2;function requirePbkdf2(){if(hasRequiredPbkdf2)return pbkdf2$1.exports;hasRequiredPbkdf2=1;(function(r,e){(function(e,a,i){{r.exports=a(requireCore(),requireSha256(),requireHmac())}})(pbkdf2,(function(r){(function(){var e=r;var a=e.lib;var i=a.Base;var t=a.WordArray;var n=e.algo;var o=n.SHA256;var s=n.HMAC;var v=n.PBKDF2=i.extend({cfg:i.extend({keySize:128/32,hasher:o,iterations:25e4}),init:function(r){this.cfg=this.cfg.extend(r)},compute:function(r,e){var a=this.cfg;var i=s.create(a.hasher,r);var n=t.create();var o=t.create([1]);var v=n.words;var u=o.words;var f=a.keySize;var c=a.iterations;while(v.length<f){var d=i.update(e).finalize(o);i.reset();var h=d.words;var l=h.length;var p=d;for(var m=1;m<c;m++){p=i.finalize(p);i.reset();var b=p.words;for(var q=0;q<l;q++){h[q]^=b[q]}}n.concat(d);u[0]++}n.sigBytes=f*4;return n}});e.PBKDF2=function(r,e,a){return v.create(a).compute(r,e)}})();return r.PBKDF2}))})(pbkdf2$1);return pbkdf2$1.exports}var evpkdf$1={exports:{}};var evpkdf=evpkdf$1.exports;var hasRequiredEvpkdf;function requireEvpkdf(){if(hasRequiredEvpkdf)return evpkdf$1.exports;hasRequiredEvpkdf=1;(function(r,e){(function(e,a,i){{r.exports=a(requireCore(),requireSha1(),requireHmac())}})(evpkdf,(function(r){(function(){var e=r;var a=e.lib;var i=a.Base;var t=a.WordArray;var n=e.algo;var o=n.MD5;var s=n.EvpKDF=i.extend({cfg:i.extend({keySize:128/32,hasher:o,iterations:1}),init:function(r){this.cfg=this.cfg.extend(r)},compute:function(r,e){var a;var i=this.cfg;var n=i.hasher.create();var o=t.create();var s=o.words;var v=i.keySize;var u=i.iterations;while(s.length<v){if(a){n.update(a)}a=n.update(r).finalize(e);n.reset();for(var f=1;f<u;f++){a=n.finalize(a);n.reset()}o.concat(a)}o.sigBytes=v*4;return o}});e.EvpKDF=function(r,e,a){return s.create(a).compute(r,e)}})();return r.EvpKDF}))})(evpkdf$1);return evpkdf$1.exports}var cipherCore$1={exports:{}};var cipherCore=cipherCore$1.exports;var hasRequiredCipherCore;function requireCipherCore(){if(hasRequiredCipherCore)return cipherCore$1.exports;hasRequiredCipherCore=1;(function(r,e){(function(e,a,i){{r.exports=a(requireCore(),requireEvpkdf())}})(cipherCore,(function(r){r.lib.Cipher||function(e){var a=r;var i=a.lib;var t=i.Base;var n=i.WordArray;var o=i.BufferedBlockAlgorithm;var s=a.enc;var v=s.Base64;var u=a.algo;var f=u.EvpKDF;var c=i.Cipher=o.extend({cfg:t.extend(),createEncryptor:function(r,e){return this.create(this._ENC_XFORM_MODE,r,e)},createDecryptor:function(r,e){return this.create(this._DEC_XFORM_MODE,r,e)},init:function(r,e,a){this.cfg=this.cfg.extend(a);this._xformMode=r;this._key=e;this.reset()},reset:function(){o.reset.call(this);this._doReset()},process:function(r){this._append(r);return this._process()},finalize:function(r){if(r){this._append(r)}var e=this._doFinalize();return e},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function r(r){if(typeof r=="string"){return $}else{return g}}return function(e){return{encrypt:function(a,i,t){return r(i).encrypt(e,a,i,t)},decrypt:function(a,i,t){return r(i).decrypt(e,a,i,t)}}}}()});i.StreamCipher=c.extend({_doFinalize:function(){var r=this._process(true);return r},blockSize:1});var d=a.mode={};var h=i.BlockCipherMode=t.extend({createEncryptor:function(r,e){return this.Encryptor.create(r,e)},createDecryptor:function(r,e){return this.Decryptor.create(r,e)},init:function(r,e){this._cipher=r;this._iv=e}});var l=d.CBC=function(){var r=h.extend();r.Encryptor=r.extend({processBlock:function(r,e){var i=this._cipher;var t=i.blockSize;a.call(this,r,e,t);i.encryptBlock(r,e);this._prevBlock=r.slice(e,e+t)}});r.Decryptor=r.extend({processBlock:function(r,e){var i=this._cipher;var t=i.blockSize;var n=r.slice(e,e+t);i.decryptBlock(r,e);a.call(this,r,e,t);this._prevBlock=n}});function a(r,a,i){var t;var n=this._iv;if(n){t=n;this._iv=e}else{t=this._prevBlock}for(var o=0;o<i;o++){r[a+o]^=t[o]}}return r}();var p=a.pad={};var m=p.Pkcs7={pad:function(r,e){var a=e*4;var i=a-r.sigBytes%a;var t=i<<24|i<<16|i<<8|i;var o=[];for(var s=0;s<i;s+=4){o.push(t)}var v=n.create(o,i);r.concat(v)},unpad:function(r){var e=r.words[r.sigBytes-1>>>2]&255;r.sigBytes-=e}};i.BlockCipher=c.extend({cfg:c.cfg.extend({mode:l,padding:m}),reset:function(){var r;c.reset.call(this);var e=this.cfg;var a=e.iv;var i=e.mode;if(this._xformMode==this._ENC_XFORM_MODE){r=i.createEncryptor}else{r=i.createDecryptor;this._minBufferSize=1}if(this._mode&&this._mode.__creator==r){this._mode.init(this,a&&a.words)}else{this._mode=r.call(i,this,a&&a.words);this._mode.__creator=r}},_doProcessBlock:function(r,e){this._mode.processBlock(r,e)},_doFinalize:function(){var r;var e=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){e.pad(this._data,this.blockSize);r=this._process(true)}else{r=this._process(true);e.unpad(r)}return r},blockSize:128/32});var b=i.CipherParams=t.extend({init:function(r){this.mixIn(r)},toString:function(r){return(r||this.formatter).stringify(this)}});var q=a.format={};var w=q.OpenSSL={stringify:function(r){var e;var a=r.ciphertext;var i=r.salt;if(i){e=n.create([1398893684,1701076831]).concat(i).concat(a)}else{e=a}return e.toString(v)},parse:function(r){var e;var a=v.parse(r);var i=a.words;if(i[0]==1398893684&&i[1]==1701076831){e=n.create(i.slice(2,4));i.splice(0,4);a.sigBytes-=16}return b.create({ciphertext:a,salt:e})}};var g=i.SerializableCipher=t.extend({cfg:t.extend({format:w}),encrypt:function(r,e,a,i){i=this.cfg.extend(i);var t=r.createEncryptor(a,i);var n=t.finalize(e);var o=t.cfg;return b.create({ciphertext:n,key:a,iv:o.iv,algorithm:r,mode:o.mode,padding:o.padding,blockSize:r.blockSize,formatter:i.format})},decrypt:function(r,e,a,i){i=this.cfg.extend(i);e=this._parse(e,i.format);var t=r.createDecryptor(a,i).finalize(e.ciphertext);return t},_parse:function(r,e){if(typeof r=="string"){return e.parse(r,this)}else{return r}}});var y=a.kdf={};var x=y.OpenSSL={execute:function(r,e,a,i,t){if(!i){i=n.random(64/8)}if(!t){var o=f.create({keySize:e+a}).compute(r,i)}else{var o=f.create({keySize:e+a,hasher:t}).compute(r,i)}var s=n.create(o.words.slice(e),a*4);o.sigBytes=e*4;return b.create({key:o,iv:s,salt:i})}};var $=i.PasswordBasedCipher=g.extend({cfg:g.cfg.extend({kdf:x}),encrypt:function(r,e,a,i){i=this.cfg.extend(i);var t=i.kdf.execute(a,r.keySize,r.ivSize,i.salt,i.hasher);i.iv=t.iv;var n=g.encrypt.call(this,r,e,t.key,i);n.mixIn(t);return n},decrypt:function(r,e,a,i){i=this.cfg.extend(i);e=this._parse(e,i.format);var t=i.kdf.execute(a,r.keySize,r.ivSize,e.salt,i.hasher);i.iv=t.iv;var n=g.decrypt.call(this,r,e,t.key,i);return n}})}()}))})(cipherCore$1);return cipherCore$1.exports}var modeCfb$1={exports:{}};var modeCfb=modeCfb$1.exports;var hasRequiredModeCfb;function requireModeCfb(){if(hasRequiredModeCfb)return modeCfb$1.exports;hasRequiredModeCfb=1;(function(r,e){(function(e,a,i){{r.exports=a(requireCore(),requireCipherCore())}})(modeCfb,(function(r){r.mode.CFB=function(){var e=r.lib.BlockCipherMode.extend();e.Encryptor=e.extend({processBlock:function(r,e){var i=this._cipher;var t=i.blockSize;a.call(this,r,e,t,i);this._prevBlock=r.slice(e,e+t)}});e.Decryptor=e.extend({processBlock:function(r,e){var i=this._cipher;var t=i.blockSize;var n=r.slice(e,e+t);a.call(this,r,e,t,i);this._prevBlock=n}});function a(r,e,a,i){var t;var n=this._iv;if(n){t=n.slice(0);this._iv=undefined}else{t=this._prevBlock}i.encryptBlock(t,0);for(var o=0;o<a;o++){r[e+o]^=t[o]}}return e}();return r.mode.CFB}))})(modeCfb$1);return modeCfb$1.exports}var modeCtr$1={exports:{}};var modeCtr=modeCtr$1.exports;var hasRequiredModeCtr;function requireModeCtr(){if(hasRequiredModeCtr)return modeCtr$1.exports;hasRequiredModeCtr=1;(function(r,e){(function(e,a,i){{r.exports=a(requireCore(),requireCipherCore())}})(modeCtr,(function(r){r.mode.CTR=function(){var e=r.lib.BlockCipherMode.extend();var a=e.Encryptor=e.extend({processBlock:function(r,e){var a=this._cipher;var i=a.blockSize;var t=this._iv;var n=this._counter;if(t){n=this._counter=t.slice(0);this._iv=undefined}var o=n.slice(0);a.encryptBlock(o,0);n[i-1]=n[i-1]+1|0;for(var s=0;s<i;s++){r[e+s]^=o[s]}}});e.Decryptor=a;return e}();return r.mode.CTR}))})(modeCtr$1);return modeCtr$1.exports}var modeCtrGladman$1={exports:{}};var modeCtrGladman=modeCtrGladman$1.exports;var hasRequiredModeCtrGladman;function requireModeCtrGladman(){if(hasRequiredModeCtrGladman)return modeCtrGladman$1.exports;hasRequiredModeCtrGladman=1;(function(r,e){(function(e,a,i){{r.exports=a(requireCore(),requireCipherCore())}})(modeCtrGladman,(function(r){
|
|
1391
|
+
(function(e){
|
|
1392
|
+
// Shortcuts
|
|
1393
|
+
var a=r;var i=a.lib;var t=i.WordArray;var n=i.Hasher;var o=a.algo;
|
|
1394
|
+
// Constants table
|
|
1395
|
+
var s=t.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]);var v=t.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]);var u=t.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]);var f=t.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]);var c=t.create([0,1518500249,1859775393,2400959708,2840853838]);var d=t.create([1352829926,1548603684,1836072691,2053994217,0]);
|
|
1396
|
+
/**
|
|
1397
|
+
* RIPEMD160 hash algorithm.
|
|
1398
|
+
*/var h=o.RIPEMD160=n.extend({_doReset:function(){this._hash=t.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(r,e){
|
|
1399
|
+
// Swap endian
|
|
1400
|
+
for(var a=0;a<16;a++){
|
|
1401
|
+
// Shortcuts
|
|
1402
|
+
var i=e+a;var t=r[i];
|
|
1403
|
+
// Swap
|
|
1404
|
+
r[i]=(t<<8|t>>>24)&16711935|(t<<24|t>>>8)&4278255360}
|
|
1405
|
+
// Shortcut
|
|
1406
|
+
var n=this._hash.words;var o=c.words;var h=d.words;var w=s.words;var x=v.words;var y=u.words;var $=f.words;
|
|
1407
|
+
// Working variables
|
|
1408
|
+
var C,R,k,S,E;var B,_,M,z,I;B=C=n[0];_=R=n[1];M=k=n[2];z=S=n[3];I=E=n[4];
|
|
1409
|
+
// Computation
|
|
1410
|
+
var P;for(var a=0;a<80;a+=1){P=C+r[e+w[a]]|0;if(a<16){P+=l(R,k,S)+o[0]}else if(a<32){P+=p(R,k,S)+o[1]}else if(a<48){P+=m(R,k,S)+o[2]}else if(a<64){P+=b(R,k,S)+o[3]}else{// if (i<80) {
|
|
1411
|
+
P+=g(R,k,S)+o[4]}P=P|0;P=q(P,y[a]);P=P+E|0;C=E;E=S;S=q(k,10);k=R;R=P;P=B+r[e+x[a]]|0;if(a<16){P+=g(_,M,z)+h[0]}else if(a<32){P+=b(_,M,z)+h[1]}else if(a<48){P+=m(_,M,z)+h[2]}else if(a<64){P+=p(_,M,z)+h[3]}else{// if (i<80) {
|
|
1412
|
+
P+=l(_,M,z)+h[4]}P=P|0;P=q(P,$[a]);P=P+I|0;B=I;I=z;z=q(M,10);M=_;_=P}
|
|
1413
|
+
// Intermediate hash value
|
|
1414
|
+
P=n[1]+k+z|0;n[1]=n[2]+S+I|0;n[2]=n[3]+E+B|0;n[3]=n[4]+C+_|0;n[4]=n[0]+R+M|0;n[0]=P},_doFinalize:function(){
|
|
1415
|
+
// Shortcuts
|
|
1416
|
+
var r=this._data;var e=r.words;var a=this._nDataBytes*8;var i=r.sigBytes*8;
|
|
1417
|
+
// Add padding
|
|
1418
|
+
e[i>>>5]|=128<<24-i%32;e[(i+64>>>9<<4)+14]=(a<<8|a>>>24)&16711935|(a<<24|a>>>8)&4278255360;r.sigBytes=(e.length+1)*4;
|
|
1419
|
+
// Hash final blocks
|
|
1420
|
+
this._process();
|
|
1421
|
+
// Shortcuts
|
|
1422
|
+
var t=this._hash;var n=t.words;
|
|
1423
|
+
// Swap endian
|
|
1424
|
+
for(var o=0;o<5;o++){
|
|
1425
|
+
// Shortcut
|
|
1426
|
+
var s=n[o];
|
|
1427
|
+
// Swap
|
|
1428
|
+
n[o]=(s<<8|s>>>24)&16711935|(s<<24|s>>>8)&4278255360}
|
|
1429
|
+
// Return final computed hash
|
|
1430
|
+
return t},clone:function(){var r=n.clone.call(this);r._hash=this._hash.clone();return r}});function l(r,e,a){return r^e^a}function p(r,e,a){return r&e|~r&a}function m(r,e,a){return(r|~e)^a}function b(r,e,a){return r&a|e&~a}function g(r,e,a){return r^(e|~a)}function q(r,e){return r<<e|r>>>32-e}
|
|
1431
|
+
/**
|
|
1432
|
+
* Shortcut function to the hasher's object interface.
|
|
1433
|
+
*
|
|
1434
|
+
* @param {WordArray|string} message The message to hash.
|
|
1435
|
+
*
|
|
1436
|
+
* @return {WordArray} The hash.
|
|
1437
|
+
*
|
|
1438
|
+
* @static
|
|
1439
|
+
*
|
|
1440
|
+
* @example
|
|
1441
|
+
*
|
|
1442
|
+
* var hash = CryptoJS.RIPEMD160('message');
|
|
1443
|
+
* var hash = CryptoJS.RIPEMD160(wordArray);
|
|
1444
|
+
*/a.RIPEMD160=n._createHelper(h);
|
|
1445
|
+
/**
|
|
1446
|
+
* Shortcut function to the HMAC's object interface.
|
|
1447
|
+
*
|
|
1448
|
+
* @param {WordArray|string} message The message to hash.
|
|
1449
|
+
* @param {WordArray|string} key The secret key.
|
|
1450
|
+
*
|
|
1451
|
+
* @return {WordArray} The HMAC.
|
|
1452
|
+
*
|
|
1453
|
+
* @static
|
|
1454
|
+
*
|
|
1455
|
+
* @example
|
|
1456
|
+
*
|
|
1457
|
+
* var hmac = CryptoJS.HmacRIPEMD160(message, key);
|
|
1458
|
+
*/a.HmacRIPEMD160=n._createHmacHelper(h)})();return r.RIPEMD160}))})(ripemd160$1);return ripemd160$1.exports}var hmac$1={exports:{}};var hmac=hmac$1.exports;var hasRequiredHmac;function requireHmac(){if(hasRequiredHmac)return hmac$1.exports;hasRequiredHmac=1;(function(r,e){(function(e,a){{
|
|
1459
|
+
// CommonJS
|
|
1460
|
+
r.exports=a(requireCore())}})(hmac,(function(r){(function(){
|
|
1461
|
+
// Shortcuts
|
|
1462
|
+
var e=r;var a=e.lib;var i=a.Base;var t=e.enc;var n=t.Utf8;var o=e.algo;
|
|
1463
|
+
/**
|
|
1464
|
+
* HMAC algorithm.
|
|
1465
|
+
*/o.HMAC=i.extend({
|
|
1466
|
+
/**
|
|
1467
|
+
* Initializes a newly created HMAC.
|
|
1468
|
+
*
|
|
1469
|
+
* @param {Hasher} hasher The hash algorithm to use.
|
|
1470
|
+
* @param {WordArray|string} key The secret key.
|
|
1471
|
+
*
|
|
1472
|
+
* @example
|
|
1473
|
+
*
|
|
1474
|
+
* var hmacHasher = CryptoJS.algo.HMAC.create(CryptoJS.algo.SHA256, key);
|
|
1475
|
+
*/
|
|
1476
|
+
init:function(r,e){
|
|
1477
|
+
// Init hasher
|
|
1478
|
+
r=this._hasher=new r.init;
|
|
1479
|
+
// Convert string to WordArray, else assume WordArray already
|
|
1480
|
+
if(typeof e=="string"){e=n.parse(e)}
|
|
1481
|
+
// Shortcuts
|
|
1482
|
+
var a=r.blockSize;var i=a*4;
|
|
1483
|
+
// Allow arbitrary length keys
|
|
1484
|
+
if(e.sigBytes>i){e=r.finalize(e)}
|
|
1485
|
+
// Clamp excess bits
|
|
1486
|
+
e.clamp();
|
|
1487
|
+
// Clone key for inner and outer pads
|
|
1488
|
+
var t=this._oKey=e.clone();var o=this._iKey=e.clone();
|
|
1489
|
+
// Shortcuts
|
|
1490
|
+
var s=t.words;var v=o.words;
|
|
1491
|
+
// XOR keys with pad constants
|
|
1492
|
+
for(var u=0;u<a;u++){s[u]^=1549556828;v[u]^=909522486}t.sigBytes=o.sigBytes=i;
|
|
1493
|
+
// Set initial values
|
|
1494
|
+
this.reset()},
|
|
1495
|
+
/**
|
|
1496
|
+
* Resets this HMAC to its initial state.
|
|
1497
|
+
*
|
|
1498
|
+
* @example
|
|
1499
|
+
*
|
|
1500
|
+
* hmacHasher.reset();
|
|
1501
|
+
*/
|
|
1502
|
+
reset:function(){
|
|
1503
|
+
// Shortcut
|
|
1504
|
+
var r=this._hasher;
|
|
1505
|
+
// Reset
|
|
1506
|
+
r.reset();r.update(this._iKey)},
|
|
1507
|
+
/**
|
|
1508
|
+
* Updates this HMAC with a message.
|
|
1509
|
+
*
|
|
1510
|
+
* @param {WordArray|string} messageUpdate The message to append.
|
|
1511
|
+
*
|
|
1512
|
+
* @return {HMAC} This HMAC instance.
|
|
1513
|
+
*
|
|
1514
|
+
* @example
|
|
1515
|
+
*
|
|
1516
|
+
* hmacHasher.update('message');
|
|
1517
|
+
* hmacHasher.update(wordArray);
|
|
1518
|
+
*/
|
|
1519
|
+
update:function(r){this._hasher.update(r);
|
|
1520
|
+
// Chainable
|
|
1521
|
+
return this},
|
|
1522
|
+
/**
|
|
1523
|
+
* Finalizes the HMAC computation.
|
|
1524
|
+
* Note that the finalize operation is effectively a destructive, read-once operation.
|
|
1525
|
+
*
|
|
1526
|
+
* @param {WordArray|string} messageUpdate (Optional) A final message update.
|
|
1527
|
+
*
|
|
1528
|
+
* @return {WordArray} The HMAC.
|
|
1529
|
+
*
|
|
1530
|
+
* @example
|
|
1531
|
+
*
|
|
1532
|
+
* var hmac = hmacHasher.finalize();
|
|
1533
|
+
* var hmac = hmacHasher.finalize('message');
|
|
1534
|
+
* var hmac = hmacHasher.finalize(wordArray);
|
|
1535
|
+
*/
|
|
1536
|
+
finalize:function(r){
|
|
1537
|
+
// Shortcut
|
|
1538
|
+
var e=this._hasher;
|
|
1539
|
+
// Compute HMAC
|
|
1540
|
+
var a=e.finalize(r);e.reset();var i=e.finalize(this._oKey.clone().concat(a));return i}})})()}))})(hmac$1);return hmac$1.exports}var pbkdf2$1={exports:{}};var pbkdf2=pbkdf2$1.exports;var hasRequiredPbkdf2;function requirePbkdf2(){if(hasRequiredPbkdf2)return pbkdf2$1.exports;hasRequiredPbkdf2=1;(function(r,e){(function(e,a,i){{
|
|
1541
|
+
// CommonJS
|
|
1542
|
+
r.exports=a(requireCore(),requireSha256(),requireHmac())}})(pbkdf2,(function(r){(function(){
|
|
1543
|
+
// Shortcuts
|
|
1544
|
+
var e=r;var a=e.lib;var i=a.Base;var t=a.WordArray;var n=e.algo;var o=n.SHA256;var s=n.HMAC;
|
|
1545
|
+
/**
|
|
1546
|
+
* Password-Based Key Derivation Function 2 algorithm.
|
|
1547
|
+
*/var v=n.PBKDF2=i.extend({
|
|
1548
|
+
/**
|
|
1549
|
+
* Configuration options.
|
|
1550
|
+
*
|
|
1551
|
+
* @property {number} keySize The key size in words to generate. Default: 4 (128 bits)
|
|
1552
|
+
* @property {Hasher} hasher The hasher to use. Default: SHA256
|
|
1553
|
+
* @property {number} iterations The number of iterations to perform. Default: 250000
|
|
1554
|
+
*/
|
|
1555
|
+
cfg:i.extend({keySize:128/32,hasher:o,iterations:25e4}),
|
|
1556
|
+
/**
|
|
1557
|
+
* Initializes a newly created key derivation function.
|
|
1558
|
+
*
|
|
1559
|
+
* @param {Object} cfg (Optional) The configuration options to use for the derivation.
|
|
1560
|
+
*
|
|
1561
|
+
* @example
|
|
1562
|
+
*
|
|
1563
|
+
* var kdf = CryptoJS.algo.PBKDF2.create();
|
|
1564
|
+
* var kdf = CryptoJS.algo.PBKDF2.create({ keySize: 8 });
|
|
1565
|
+
* var kdf = CryptoJS.algo.PBKDF2.create({ keySize: 8, iterations: 1000 });
|
|
1566
|
+
*/
|
|
1567
|
+
init:function(r){this.cfg=this.cfg.extend(r)},
|
|
1568
|
+
/**
|
|
1569
|
+
* Computes the Password-Based Key Derivation Function 2.
|
|
1570
|
+
*
|
|
1571
|
+
* @param {WordArray|string} password The password.
|
|
1572
|
+
* @param {WordArray|string} salt A salt.
|
|
1573
|
+
*
|
|
1574
|
+
* @return {WordArray} The derived key.
|
|
1575
|
+
*
|
|
1576
|
+
* @example
|
|
1577
|
+
*
|
|
1578
|
+
* var key = kdf.compute(password, salt);
|
|
1579
|
+
*/
|
|
1580
|
+
compute:function(r,e){
|
|
1581
|
+
// Shortcut
|
|
1582
|
+
var a=this.cfg;
|
|
1583
|
+
// Init HMAC
|
|
1584
|
+
var i=s.create(a.hasher,r);
|
|
1585
|
+
// Initial values
|
|
1586
|
+
var n=t.create();var o=t.create([1]);
|
|
1587
|
+
// Shortcuts
|
|
1588
|
+
var v=n.words;var u=o.words;var f=a.keySize;var c=a.iterations;
|
|
1589
|
+
// Generate key
|
|
1590
|
+
while(v.length<f){var d=i.update(e).finalize(o);i.reset();
|
|
1591
|
+
// Shortcuts
|
|
1592
|
+
var h=d.words;var l=h.length;
|
|
1593
|
+
// Iterations
|
|
1594
|
+
var p=d;for(var m=1;m<c;m++){p=i.finalize(p);i.reset();
|
|
1595
|
+
// Shortcut
|
|
1596
|
+
var b=p.words;
|
|
1597
|
+
// XOR intermediate with block
|
|
1598
|
+
for(var g=0;g<l;g++){h[g]^=b[g]}}n.concat(d);u[0]++}n.sigBytes=f*4;return n}});
|
|
1599
|
+
/**
|
|
1600
|
+
* Computes the Password-Based Key Derivation Function 2.
|
|
1601
|
+
*
|
|
1602
|
+
* @param {WordArray|string} password The password.
|
|
1603
|
+
* @param {WordArray|string} salt A salt.
|
|
1604
|
+
* @param {Object} cfg (Optional) The configuration options to use for this computation.
|
|
1605
|
+
*
|
|
1606
|
+
* @return {WordArray} The derived key.
|
|
1607
|
+
*
|
|
1608
|
+
* @static
|
|
1609
|
+
*
|
|
1610
|
+
* @example
|
|
1611
|
+
*
|
|
1612
|
+
* var key = CryptoJS.PBKDF2(password, salt);
|
|
1613
|
+
* var key = CryptoJS.PBKDF2(password, salt, { keySize: 8 });
|
|
1614
|
+
* var key = CryptoJS.PBKDF2(password, salt, { keySize: 8, iterations: 1000 });
|
|
1615
|
+
*/e.PBKDF2=function(r,e,a){return v.create(a).compute(r,e)}})();return r.PBKDF2}))})(pbkdf2$1);return pbkdf2$1.exports}var evpkdf$1={exports:{}};var evpkdf=evpkdf$1.exports;var hasRequiredEvpkdf;function requireEvpkdf(){if(hasRequiredEvpkdf)return evpkdf$1.exports;hasRequiredEvpkdf=1;(function(r,e){(function(e,a,i){{
|
|
1616
|
+
// CommonJS
|
|
1617
|
+
r.exports=a(requireCore(),requireSha1(),requireHmac())}})(evpkdf,(function(r){(function(){
|
|
1618
|
+
// Shortcuts
|
|
1619
|
+
var e=r;var a=e.lib;var i=a.Base;var t=a.WordArray;var n=e.algo;var o=n.MD5;
|
|
1620
|
+
/**
|
|
1621
|
+
* This key derivation function is meant to conform with EVP_BytesToKey.
|
|
1622
|
+
* www.openssl.org/docs/crypto/EVP_BytesToKey.html
|
|
1623
|
+
*/var s=n.EvpKDF=i.extend({
|
|
1624
|
+
/**
|
|
1625
|
+
* Configuration options.
|
|
1626
|
+
*
|
|
1627
|
+
* @property {number} keySize The key size in words to generate. Default: 4 (128 bits)
|
|
1628
|
+
* @property {Hasher} hasher The hash algorithm to use. Default: MD5
|
|
1629
|
+
* @property {number} iterations The number of iterations to perform. Default: 1
|
|
1630
|
+
*/
|
|
1631
|
+
cfg:i.extend({keySize:128/32,hasher:o,iterations:1}),
|
|
1632
|
+
/**
|
|
1633
|
+
* Initializes a newly created key derivation function.
|
|
1634
|
+
*
|
|
1635
|
+
* @param {Object} cfg (Optional) The configuration options to use for the derivation.
|
|
1636
|
+
*
|
|
1637
|
+
* @example
|
|
1638
|
+
*
|
|
1639
|
+
* var kdf = CryptoJS.algo.EvpKDF.create();
|
|
1640
|
+
* var kdf = CryptoJS.algo.EvpKDF.create({ keySize: 8 });
|
|
1641
|
+
* var kdf = CryptoJS.algo.EvpKDF.create({ keySize: 8, iterations: 1000 });
|
|
1642
|
+
*/
|
|
1643
|
+
init:function(r){this.cfg=this.cfg.extend(r)},
|
|
1644
|
+
/**
|
|
1645
|
+
* Derives a key from a password.
|
|
1646
|
+
*
|
|
1647
|
+
* @param {WordArray|string} password The password.
|
|
1648
|
+
* @param {WordArray|string} salt A salt.
|
|
1649
|
+
*
|
|
1650
|
+
* @return {WordArray} The derived key.
|
|
1651
|
+
*
|
|
1652
|
+
* @example
|
|
1653
|
+
*
|
|
1654
|
+
* var key = kdf.compute(password, salt);
|
|
1655
|
+
*/
|
|
1656
|
+
compute:function(r,e){var a;
|
|
1657
|
+
// Shortcut
|
|
1658
|
+
var i=this.cfg;
|
|
1659
|
+
// Init hasher
|
|
1660
|
+
var n=i.hasher.create();
|
|
1661
|
+
// Initial values
|
|
1662
|
+
var o=t.create();
|
|
1663
|
+
// Shortcuts
|
|
1664
|
+
var s=o.words;var v=i.keySize;var u=i.iterations;
|
|
1665
|
+
// Generate key
|
|
1666
|
+
while(s.length<v){if(a){n.update(a)}a=n.update(r).finalize(e);n.reset();
|
|
1667
|
+
// Iterations
|
|
1668
|
+
for(var f=1;f<u;f++){a=n.finalize(a);n.reset()}o.concat(a)}o.sigBytes=v*4;return o}});
|
|
1669
|
+
/**
|
|
1670
|
+
* Derives a key from a password.
|
|
1671
|
+
*
|
|
1672
|
+
* @param {WordArray|string} password The password.
|
|
1673
|
+
* @param {WordArray|string} salt A salt.
|
|
1674
|
+
* @param {Object} cfg (Optional) The configuration options to use for this computation.
|
|
1675
|
+
*
|
|
1676
|
+
* @return {WordArray} The derived key.
|
|
1677
|
+
*
|
|
1678
|
+
* @static
|
|
1679
|
+
*
|
|
1680
|
+
* @example
|
|
1681
|
+
*
|
|
1682
|
+
* var key = CryptoJS.EvpKDF(password, salt);
|
|
1683
|
+
* var key = CryptoJS.EvpKDF(password, salt, { keySize: 8 });
|
|
1684
|
+
* var key = CryptoJS.EvpKDF(password, salt, { keySize: 8, iterations: 1000 });
|
|
1685
|
+
*/e.EvpKDF=function(r,e,a){return s.create(a).compute(r,e)}})();return r.EvpKDF}))})(evpkdf$1);return evpkdf$1.exports}var cipherCore$1={exports:{}};var cipherCore=cipherCore$1.exports;var hasRequiredCipherCore;function requireCipherCore(){if(hasRequiredCipherCore)return cipherCore$1.exports;hasRequiredCipherCore=1;(function(r,e){(function(e,a,i){{
|
|
1686
|
+
// CommonJS
|
|
1687
|
+
r.exports=a(requireCore(),requireEvpkdf())}})(cipherCore,(function(r){
|
|
1688
|
+
/**
|
|
1689
|
+
* Cipher core components.
|
|
1690
|
+
*/
|
|
1691
|
+
r.lib.Cipher||function(e){
|
|
1692
|
+
// Shortcuts
|
|
1693
|
+
var a=r;var i=a.lib;var t=i.Base;var n=i.WordArray;var o=i.BufferedBlockAlgorithm;var s=a.enc;var v=s.Base64;var u=a.algo;var f=u.EvpKDF;
|
|
1694
|
+
/**
|
|
1695
|
+
* Abstract base cipher template.
|
|
1696
|
+
*
|
|
1697
|
+
* @property {number} keySize This cipher's key size. Default: 4 (128 bits)
|
|
1698
|
+
* @property {number} ivSize This cipher's IV size. Default: 4 (128 bits)
|
|
1699
|
+
* @property {number} _ENC_XFORM_MODE A constant representing encryption mode.
|
|
1700
|
+
* @property {number} _DEC_XFORM_MODE A constant representing decryption mode.
|
|
1701
|
+
*/var c=i.Cipher=o.extend({
|
|
1702
|
+
/**
|
|
1703
|
+
* Configuration options.
|
|
1704
|
+
*
|
|
1705
|
+
* @property {WordArray} iv The IV to use for this operation.
|
|
1706
|
+
*/
|
|
1707
|
+
cfg:t.extend(),
|
|
1708
|
+
/**
|
|
1709
|
+
* Creates this cipher in encryption mode.
|
|
1710
|
+
*
|
|
1711
|
+
* @param {WordArray} key The key.
|
|
1712
|
+
* @param {Object} cfg (Optional) The configuration options to use for this operation.
|
|
1713
|
+
*
|
|
1714
|
+
* @return {Cipher} A cipher instance.
|
|
1715
|
+
*
|
|
1716
|
+
* @static
|
|
1717
|
+
*
|
|
1718
|
+
* @example
|
|
1719
|
+
*
|
|
1720
|
+
* var cipher = CryptoJS.algo.AES.createEncryptor(keyWordArray, { iv: ivWordArray });
|
|
1721
|
+
*/
|
|
1722
|
+
createEncryptor:function(r,e){return this.create(this._ENC_XFORM_MODE,r,e)},
|
|
1723
|
+
/**
|
|
1724
|
+
* Creates this cipher in decryption mode.
|
|
1725
|
+
*
|
|
1726
|
+
* @param {WordArray} key The key.
|
|
1727
|
+
* @param {Object} cfg (Optional) The configuration options to use for this operation.
|
|
1728
|
+
*
|
|
1729
|
+
* @return {Cipher} A cipher instance.
|
|
1730
|
+
*
|
|
1731
|
+
* @static
|
|
1732
|
+
*
|
|
1733
|
+
* @example
|
|
1734
|
+
*
|
|
1735
|
+
* var cipher = CryptoJS.algo.AES.createDecryptor(keyWordArray, { iv: ivWordArray });
|
|
1736
|
+
*/
|
|
1737
|
+
createDecryptor:function(r,e){return this.create(this._DEC_XFORM_MODE,r,e)},
|
|
1738
|
+
/**
|
|
1739
|
+
* Initializes a newly created cipher.
|
|
1740
|
+
*
|
|
1741
|
+
* @param {number} xformMode Either the encryption or decryption transormation mode constant.
|
|
1742
|
+
* @param {WordArray} key The key.
|
|
1743
|
+
* @param {Object} cfg (Optional) The configuration options to use for this operation.
|
|
1744
|
+
*
|
|
1745
|
+
* @example
|
|
1746
|
+
*
|
|
1747
|
+
* var cipher = CryptoJS.algo.AES.create(CryptoJS.algo.AES._ENC_XFORM_MODE, keyWordArray, { iv: ivWordArray });
|
|
1748
|
+
*/
|
|
1749
|
+
init:function(r,e,a){
|
|
1750
|
+
// Apply config defaults
|
|
1751
|
+
this.cfg=this.cfg.extend(a);
|
|
1752
|
+
// Store transform mode and key
|
|
1753
|
+
this._xformMode=r;this._key=e;
|
|
1754
|
+
// Set initial values
|
|
1755
|
+
this.reset()},
|
|
1756
|
+
/**
|
|
1757
|
+
* Resets this cipher to its initial state.
|
|
1758
|
+
*
|
|
1759
|
+
* @example
|
|
1760
|
+
*
|
|
1761
|
+
* cipher.reset();
|
|
1762
|
+
*/
|
|
1763
|
+
reset:function(){
|
|
1764
|
+
// Reset data buffer
|
|
1765
|
+
o.reset.call(this);
|
|
1766
|
+
// Perform concrete-cipher logic
|
|
1767
|
+
this._doReset()},
|
|
1768
|
+
/**
|
|
1769
|
+
* Adds data to be encrypted or decrypted.
|
|
1770
|
+
*
|
|
1771
|
+
* @param {WordArray|string} dataUpdate The data to encrypt or decrypt.
|
|
1772
|
+
*
|
|
1773
|
+
* @return {WordArray} The data after processing.
|
|
1774
|
+
*
|
|
1775
|
+
* @example
|
|
1776
|
+
*
|
|
1777
|
+
* var encrypted = cipher.process('data');
|
|
1778
|
+
* var encrypted = cipher.process(wordArray);
|
|
1779
|
+
*/
|
|
1780
|
+
process:function(r){
|
|
1781
|
+
// Append
|
|
1782
|
+
this._append(r);
|
|
1783
|
+
// Process available blocks
|
|
1784
|
+
return this._process()},
|
|
1785
|
+
/**
|
|
1786
|
+
* Finalizes the encryption or decryption process.
|
|
1787
|
+
* Note that the finalize operation is effectively a destructive, read-once operation.
|
|
1788
|
+
*
|
|
1789
|
+
* @param {WordArray|string} dataUpdate The final data to encrypt or decrypt.
|
|
1790
|
+
*
|
|
1791
|
+
* @return {WordArray} The data after final processing.
|
|
1792
|
+
*
|
|
1793
|
+
* @example
|
|
1794
|
+
*
|
|
1795
|
+
* var encrypted = cipher.finalize();
|
|
1796
|
+
* var encrypted = cipher.finalize('data');
|
|
1797
|
+
* var encrypted = cipher.finalize(wordArray);
|
|
1798
|
+
*/
|
|
1799
|
+
finalize:function(r){
|
|
1800
|
+
// Final data update
|
|
1801
|
+
if(r){this._append(r)}
|
|
1802
|
+
// Perform concrete-cipher logic
|
|
1803
|
+
var e=this._doFinalize();return e},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,
|
|
1804
|
+
/**
|
|
1805
|
+
* Creates shortcut functions to a cipher's object interface.
|
|
1806
|
+
*
|
|
1807
|
+
* @param {Cipher} cipher The cipher to create a helper for.
|
|
1808
|
+
*
|
|
1809
|
+
* @return {Object} An object with encrypt and decrypt shortcut functions.
|
|
1810
|
+
*
|
|
1811
|
+
* @static
|
|
1812
|
+
*
|
|
1813
|
+
* @example
|
|
1814
|
+
*
|
|
1815
|
+
* var AES = CryptoJS.lib.Cipher._createHelper(CryptoJS.algo.AES);
|
|
1816
|
+
*/
|
|
1817
|
+
_createHelper:function(){function r(r){if(typeof r=="string"){return $}else{return w}}return function(e){return{encrypt:function(a,i,t){return r(i).encrypt(e,a,i,t)},decrypt:function(a,i,t){return r(i).decrypt(e,a,i,t)}}}}()});
|
|
1818
|
+
/**
|
|
1819
|
+
* Abstract base stream cipher template.
|
|
1820
|
+
*
|
|
1821
|
+
* @property {number} blockSize The number of 32-bit words this cipher operates on. Default: 1 (32 bits)
|
|
1822
|
+
*/i.StreamCipher=c.extend({_doFinalize:function(){
|
|
1823
|
+
// Process partial blocks
|
|
1824
|
+
var r=this._process(true);return r},blockSize:1});
|
|
1825
|
+
/**
|
|
1826
|
+
* Mode namespace.
|
|
1827
|
+
*/var d=a.mode={};
|
|
1828
|
+
/**
|
|
1829
|
+
* Abstract base block cipher mode template.
|
|
1830
|
+
*/var h=i.BlockCipherMode=t.extend({
|
|
1831
|
+
/**
|
|
1832
|
+
* Creates this mode for encryption.
|
|
1833
|
+
*
|
|
1834
|
+
* @param {Cipher} cipher A block cipher instance.
|
|
1835
|
+
* @param {Array} iv The IV words.
|
|
1836
|
+
*
|
|
1837
|
+
* @static
|
|
1838
|
+
*
|
|
1839
|
+
* @example
|
|
1840
|
+
*
|
|
1841
|
+
* var mode = CryptoJS.mode.CBC.createEncryptor(cipher, iv.words);
|
|
1842
|
+
*/
|
|
1843
|
+
createEncryptor:function(r,e){return this.Encryptor.create(r,e)},
|
|
1844
|
+
/**
|
|
1845
|
+
* Creates this mode for decryption.
|
|
1846
|
+
*
|
|
1847
|
+
* @param {Cipher} cipher A block cipher instance.
|
|
1848
|
+
* @param {Array} iv The IV words.
|
|
1849
|
+
*
|
|
1850
|
+
* @static
|
|
1851
|
+
*
|
|
1852
|
+
* @example
|
|
1853
|
+
*
|
|
1854
|
+
* var mode = CryptoJS.mode.CBC.createDecryptor(cipher, iv.words);
|
|
1855
|
+
*/
|
|
1856
|
+
createDecryptor:function(r,e){return this.Decryptor.create(r,e)},
|
|
1857
|
+
/**
|
|
1858
|
+
* Initializes a newly created mode.
|
|
1859
|
+
*
|
|
1860
|
+
* @param {Cipher} cipher A block cipher instance.
|
|
1861
|
+
* @param {Array} iv The IV words.
|
|
1862
|
+
*
|
|
1863
|
+
* @example
|
|
1864
|
+
*
|
|
1865
|
+
* var mode = CryptoJS.mode.CBC.Encryptor.create(cipher, iv.words);
|
|
1866
|
+
*/
|
|
1867
|
+
init:function(r,e){this._cipher=r;this._iv=e}});
|
|
1868
|
+
/**
|
|
1869
|
+
* Cipher Block Chaining mode.
|
|
1870
|
+
*/var l=d.CBC=function(){
|
|
1871
|
+
/**
|
|
1872
|
+
* Abstract base CBC mode.
|
|
1873
|
+
*/
|
|
1874
|
+
var r=h.extend();
|
|
1875
|
+
/**
|
|
1876
|
+
* CBC encryptor.
|
|
1877
|
+
*/r.Encryptor=r.extend({
|
|
1878
|
+
/**
|
|
1879
|
+
* Processes the data block at offset.
|
|
1880
|
+
*
|
|
1881
|
+
* @param {Array} words The data words to operate on.
|
|
1882
|
+
* @param {number} offset The offset where the block starts.
|
|
1883
|
+
*
|
|
1884
|
+
* @example
|
|
1885
|
+
*
|
|
1886
|
+
* mode.processBlock(data.words, offset);
|
|
1887
|
+
*/
|
|
1888
|
+
processBlock:function(r,e){
|
|
1889
|
+
// Shortcuts
|
|
1890
|
+
var i=this._cipher;var t=i.blockSize;
|
|
1891
|
+
// XOR and encrypt
|
|
1892
|
+
a.call(this,r,e,t);i.encryptBlock(r,e);
|
|
1893
|
+
// Remember this block to use with next block
|
|
1894
|
+
this._prevBlock=r.slice(e,e+t)}});
|
|
1895
|
+
/**
|
|
1896
|
+
* CBC decryptor.
|
|
1897
|
+
*/r.Decryptor=r.extend({
|
|
1898
|
+
/**
|
|
1899
|
+
* Processes the data block at offset.
|
|
1900
|
+
*
|
|
1901
|
+
* @param {Array} words The data words to operate on.
|
|
1902
|
+
* @param {number} offset The offset where the block starts.
|
|
1903
|
+
*
|
|
1904
|
+
* @example
|
|
1905
|
+
*
|
|
1906
|
+
* mode.processBlock(data.words, offset);
|
|
1907
|
+
*/
|
|
1908
|
+
processBlock:function(r,e){
|
|
1909
|
+
// Shortcuts
|
|
1910
|
+
var i=this._cipher;var t=i.blockSize;
|
|
1911
|
+
// Remember this block to use with next block
|
|
1912
|
+
var n=r.slice(e,e+t);
|
|
1913
|
+
// Decrypt and XOR
|
|
1914
|
+
i.decryptBlock(r,e);a.call(this,r,e,t);
|
|
1915
|
+
// This block becomes the previous block
|
|
1916
|
+
this._prevBlock=n}});function a(r,a,i){var t;
|
|
1917
|
+
// Shortcut
|
|
1918
|
+
var n=this._iv;
|
|
1919
|
+
// Choose mixing block
|
|
1920
|
+
if(n){t=n;
|
|
1921
|
+
// Remove IV for subsequent blocks
|
|
1922
|
+
this._iv=e}else{t=this._prevBlock}
|
|
1923
|
+
// XOR blocks
|
|
1924
|
+
for(var o=0;o<i;o++){r[a+o]^=t[o]}}return r}();
|
|
1925
|
+
/**
|
|
1926
|
+
* Padding namespace.
|
|
1927
|
+
*/var p=a.pad={};
|
|
1928
|
+
/**
|
|
1929
|
+
* PKCS #5/7 padding strategy.
|
|
1930
|
+
*/var m=p.Pkcs7={
|
|
1931
|
+
/**
|
|
1932
|
+
* Pads data using the algorithm defined in PKCS #5/7.
|
|
1933
|
+
*
|
|
1934
|
+
* @param {WordArray} data The data to pad.
|
|
1935
|
+
* @param {number} blockSize The multiple that the data should be padded to.
|
|
1936
|
+
*
|
|
1937
|
+
* @static
|
|
1938
|
+
*
|
|
1939
|
+
* @example
|
|
1940
|
+
*
|
|
1941
|
+
* CryptoJS.pad.Pkcs7.pad(wordArray, 4);
|
|
1942
|
+
*/
|
|
1943
|
+
pad:function(r,e){
|
|
1944
|
+
// Shortcut
|
|
1945
|
+
var a=e*4;
|
|
1946
|
+
// Count padding bytes
|
|
1947
|
+
var i=a-r.sigBytes%a;
|
|
1948
|
+
// Create padding word
|
|
1949
|
+
var t=i<<24|i<<16|i<<8|i;
|
|
1950
|
+
// Create padding
|
|
1951
|
+
var o=[];for(var s=0;s<i;s+=4){o.push(t)}var v=n.create(o,i);
|
|
1952
|
+
// Add padding
|
|
1953
|
+
r.concat(v)},
|
|
1954
|
+
/**
|
|
1955
|
+
* Unpads data that had been padded using the algorithm defined in PKCS #5/7.
|
|
1956
|
+
*
|
|
1957
|
+
* @param {WordArray} data The data to unpad.
|
|
1958
|
+
*
|
|
1959
|
+
* @static
|
|
1960
|
+
*
|
|
1961
|
+
* @example
|
|
1962
|
+
*
|
|
1963
|
+
* CryptoJS.pad.Pkcs7.unpad(wordArray);
|
|
1964
|
+
*/
|
|
1965
|
+
unpad:function(r){
|
|
1966
|
+
// Get number of padding bytes from last byte
|
|
1967
|
+
var e=r.words[r.sigBytes-1>>>2]&255;
|
|
1968
|
+
// Remove padding
|
|
1969
|
+
r.sigBytes-=e}};
|
|
1970
|
+
/**
|
|
1971
|
+
* Abstract base block cipher template.
|
|
1972
|
+
*
|
|
1973
|
+
* @property {number} blockSize The number of 32-bit words this cipher operates on. Default: 4 (128 bits)
|
|
1974
|
+
*/i.BlockCipher=c.extend({
|
|
1975
|
+
/**
|
|
1976
|
+
* Configuration options.
|
|
1977
|
+
*
|
|
1978
|
+
* @property {Mode} mode The block mode to use. Default: CBC
|
|
1979
|
+
* @property {Padding} padding The padding strategy to use. Default: Pkcs7
|
|
1980
|
+
*/
|
|
1981
|
+
cfg:c.cfg.extend({mode:l,padding:m}),reset:function(){var r;
|
|
1982
|
+
// Reset cipher
|
|
1983
|
+
c.reset.call(this);
|
|
1984
|
+
// Shortcuts
|
|
1985
|
+
var e=this.cfg;var a=e.iv;var i=e.mode;
|
|
1986
|
+
// Reset block mode
|
|
1987
|
+
if(this._xformMode==this._ENC_XFORM_MODE){r=i.createEncryptor}else/* if (this._xformMode == this._DEC_XFORM_MODE) */{r=i.createDecryptor;
|
|
1988
|
+
// Keep at least one block in the buffer for unpadding
|
|
1989
|
+
this._minBufferSize=1}if(this._mode&&this._mode.__creator==r){this._mode.init(this,a&&a.words)}else{this._mode=r.call(i,this,a&&a.words);this._mode.__creator=r}},_doProcessBlock:function(r,e){this._mode.processBlock(r,e)},_doFinalize:function(){var r;
|
|
1990
|
+
// Shortcut
|
|
1991
|
+
var e=this.cfg.padding;
|
|
1992
|
+
// Finalize
|
|
1993
|
+
if(this._xformMode==this._ENC_XFORM_MODE){
|
|
1994
|
+
// Pad data
|
|
1995
|
+
e.pad(this._data,this.blockSize);
|
|
1996
|
+
// Process final blocks
|
|
1997
|
+
r=this._process(true)}else/* if (this._xformMode == this._DEC_XFORM_MODE) */{
|
|
1998
|
+
// Process final blocks
|
|
1999
|
+
r=this._process(true);
|
|
2000
|
+
// Unpad data
|
|
2001
|
+
e.unpad(r)}return r},blockSize:128/32});
|
|
2002
|
+
/**
|
|
2003
|
+
* A collection of cipher parameters.
|
|
2004
|
+
*
|
|
2005
|
+
* @property {WordArray} ciphertext The raw ciphertext.
|
|
2006
|
+
* @property {WordArray} key The key to this ciphertext.
|
|
2007
|
+
* @property {WordArray} iv The IV used in the ciphering operation.
|
|
2008
|
+
* @property {WordArray} salt The salt used with a key derivation function.
|
|
2009
|
+
* @property {Cipher} algorithm The cipher algorithm.
|
|
2010
|
+
* @property {Mode} mode The block mode used in the ciphering operation.
|
|
2011
|
+
* @property {Padding} padding The padding scheme used in the ciphering operation.
|
|
2012
|
+
* @property {number} blockSize The block size of the cipher.
|
|
2013
|
+
* @property {Format} formatter The default formatting strategy to convert this cipher params object to a string.
|
|
2014
|
+
*/var b=i.CipherParams=t.extend({
|
|
2015
|
+
/**
|
|
2016
|
+
* Initializes a newly created cipher params object.
|
|
2017
|
+
*
|
|
2018
|
+
* @param {Object} cipherParams An object with any of the possible cipher parameters.
|
|
2019
|
+
*
|
|
2020
|
+
* @example
|
|
2021
|
+
*
|
|
2022
|
+
* var cipherParams = CryptoJS.lib.CipherParams.create({
|
|
2023
|
+
* ciphertext: ciphertextWordArray,
|
|
2024
|
+
* key: keyWordArray,
|
|
2025
|
+
* iv: ivWordArray,
|
|
2026
|
+
* salt: saltWordArray,
|
|
2027
|
+
* algorithm: CryptoJS.algo.AES,
|
|
2028
|
+
* mode: CryptoJS.mode.CBC,
|
|
2029
|
+
* padding: CryptoJS.pad.PKCS7,
|
|
2030
|
+
* blockSize: 4,
|
|
2031
|
+
* formatter: CryptoJS.format.OpenSSL
|
|
2032
|
+
* });
|
|
2033
|
+
*/
|
|
2034
|
+
init:function(r){this.mixIn(r)},
|
|
2035
|
+
/**
|
|
2036
|
+
* Converts this cipher params object to a string.
|
|
2037
|
+
*
|
|
2038
|
+
* @param {Format} formatter (Optional) The formatting strategy to use.
|
|
2039
|
+
*
|
|
2040
|
+
* @return {string} The stringified cipher params.
|
|
2041
|
+
*
|
|
2042
|
+
* @throws Error If neither the formatter nor the default formatter is set.
|
|
2043
|
+
*
|
|
2044
|
+
* @example
|
|
2045
|
+
*
|
|
2046
|
+
* var string = cipherParams + '';
|
|
2047
|
+
* var string = cipherParams.toString();
|
|
2048
|
+
* var string = cipherParams.toString(CryptoJS.format.OpenSSL);
|
|
2049
|
+
*/
|
|
2050
|
+
toString:function(r){return(r||this.formatter).stringify(this)}});
|
|
2051
|
+
/**
|
|
2052
|
+
* Format namespace.
|
|
2053
|
+
*/var g=a.format={};
|
|
2054
|
+
/**
|
|
2055
|
+
* OpenSSL formatting strategy.
|
|
2056
|
+
*/var q=g.OpenSSL={
|
|
2057
|
+
/**
|
|
2058
|
+
* Converts a cipher params object to an OpenSSL-compatible string.
|
|
2059
|
+
*
|
|
2060
|
+
* @param {CipherParams} cipherParams The cipher params object.
|
|
2061
|
+
*
|
|
2062
|
+
* @return {string} The OpenSSL-compatible string.
|
|
2063
|
+
*
|
|
2064
|
+
* @static
|
|
2065
|
+
*
|
|
2066
|
+
* @example
|
|
2067
|
+
*
|
|
2068
|
+
* var openSSLString = CryptoJS.format.OpenSSL.stringify(cipherParams);
|
|
2069
|
+
*/
|
|
2070
|
+
stringify:function(r){var e;
|
|
2071
|
+
// Shortcuts
|
|
2072
|
+
var a=r.ciphertext;var i=r.salt;
|
|
2073
|
+
// Format
|
|
2074
|
+
if(i){e=n.create([1398893684,1701076831]).concat(i).concat(a)}else{e=a}return e.toString(v)},
|
|
2075
|
+
/**
|
|
2076
|
+
* Converts an OpenSSL-compatible string to a cipher params object.
|
|
2077
|
+
*
|
|
2078
|
+
* @param {string} openSSLStr The OpenSSL-compatible string.
|
|
2079
|
+
*
|
|
2080
|
+
* @return {CipherParams} The cipher params object.
|
|
2081
|
+
*
|
|
2082
|
+
* @static
|
|
2083
|
+
*
|
|
2084
|
+
* @example
|
|
2085
|
+
*
|
|
2086
|
+
* var cipherParams = CryptoJS.format.OpenSSL.parse(openSSLString);
|
|
2087
|
+
*/
|
|
2088
|
+
parse:function(r){var e;
|
|
2089
|
+
// Parse base64
|
|
2090
|
+
var a=v.parse(r);
|
|
2091
|
+
// Shortcut
|
|
2092
|
+
var i=a.words;
|
|
2093
|
+
// Test for salt
|
|
2094
|
+
if(i[0]==1398893684&&i[1]==1701076831){
|
|
2095
|
+
// Extract salt
|
|
2096
|
+
e=n.create(i.slice(2,4));
|
|
2097
|
+
// Remove salt from ciphertext
|
|
2098
|
+
i.splice(0,4);a.sigBytes-=16}return b.create({ciphertext:a,salt:e})}};
|
|
2099
|
+
/**
|
|
2100
|
+
* A cipher wrapper that returns ciphertext as a serializable cipher params object.
|
|
2101
|
+
*/var w=i.SerializableCipher=t.extend({
|
|
2102
|
+
/**
|
|
2103
|
+
* Configuration options.
|
|
2104
|
+
*
|
|
2105
|
+
* @property {Formatter} format The formatting strategy to convert cipher param objects to and from a string. Default: OpenSSL
|
|
2106
|
+
*/
|
|
2107
|
+
cfg:t.extend({format:q}),
|
|
2108
|
+
/**
|
|
2109
|
+
* Encrypts a message.
|
|
2110
|
+
*
|
|
2111
|
+
* @param {Cipher} cipher The cipher algorithm to use.
|
|
2112
|
+
* @param {WordArray|string} message The message to encrypt.
|
|
2113
|
+
* @param {WordArray} key The key.
|
|
2114
|
+
* @param {Object} cfg (Optional) The configuration options to use for this operation.
|
|
2115
|
+
*
|
|
2116
|
+
* @return {CipherParams} A cipher params object.
|
|
2117
|
+
*
|
|
2118
|
+
* @static
|
|
2119
|
+
*
|
|
2120
|
+
* @example
|
|
2121
|
+
*
|
|
2122
|
+
* var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key);
|
|
2123
|
+
* var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key, { iv: iv });
|
|
2124
|
+
* var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key, { iv: iv, format: CryptoJS.format.OpenSSL });
|
|
2125
|
+
*/
|
|
2126
|
+
encrypt:function(r,e,a,i){
|
|
2127
|
+
// Apply config defaults
|
|
2128
|
+
i=this.cfg.extend(i);
|
|
2129
|
+
// Encrypt
|
|
2130
|
+
var t=r.createEncryptor(a,i);var n=t.finalize(e);
|
|
2131
|
+
// Shortcut
|
|
2132
|
+
var o=t.cfg;
|
|
2133
|
+
// Create and return serializable cipher params
|
|
2134
|
+
return b.create({ciphertext:n,key:a,iv:o.iv,algorithm:r,mode:o.mode,padding:o.padding,blockSize:r.blockSize,formatter:i.format})},
|
|
2135
|
+
/**
|
|
2136
|
+
* Decrypts serialized ciphertext.
|
|
2137
|
+
*
|
|
2138
|
+
* @param {Cipher} cipher The cipher algorithm to use.
|
|
2139
|
+
* @param {CipherParams|string} ciphertext The ciphertext to decrypt.
|
|
2140
|
+
* @param {WordArray} key The key.
|
|
2141
|
+
* @param {Object} cfg (Optional) The configuration options to use for this operation.
|
|
2142
|
+
*
|
|
2143
|
+
* @return {WordArray} The plaintext.
|
|
2144
|
+
*
|
|
2145
|
+
* @static
|
|
2146
|
+
*
|
|
2147
|
+
* @example
|
|
2148
|
+
*
|
|
2149
|
+
* var plaintext = CryptoJS.lib.SerializableCipher.decrypt(CryptoJS.algo.AES, formattedCiphertext, key, { iv: iv, format: CryptoJS.format.OpenSSL });
|
|
2150
|
+
* var plaintext = CryptoJS.lib.SerializableCipher.decrypt(CryptoJS.algo.AES, ciphertextParams, key, { iv: iv, format: CryptoJS.format.OpenSSL });
|
|
2151
|
+
*/
|
|
2152
|
+
decrypt:function(r,e,a,i){
|
|
2153
|
+
// Apply config defaults
|
|
2154
|
+
i=this.cfg.extend(i);
|
|
2155
|
+
// Convert string to CipherParams
|
|
2156
|
+
e=this._parse(e,i.format);
|
|
2157
|
+
// Decrypt
|
|
2158
|
+
var t=r.createDecryptor(a,i).finalize(e.ciphertext);return t},
|
|
2159
|
+
/**
|
|
2160
|
+
* Converts serialized ciphertext to CipherParams,
|
|
2161
|
+
* else assumed CipherParams already and returns ciphertext unchanged.
|
|
2162
|
+
*
|
|
2163
|
+
* @param {CipherParams|string} ciphertext The ciphertext.
|
|
2164
|
+
* @param {Formatter} format The formatting strategy to use to parse serialized ciphertext.
|
|
2165
|
+
*
|
|
2166
|
+
* @return {CipherParams} The unserialized ciphertext.
|
|
2167
|
+
*
|
|
2168
|
+
* @static
|
|
2169
|
+
*
|
|
2170
|
+
* @example
|
|
2171
|
+
*
|
|
2172
|
+
* var ciphertextParams = CryptoJS.lib.SerializableCipher._parse(ciphertextStringOrParams, format);
|
|
2173
|
+
*/
|
|
2174
|
+
_parse:function(r,e){if(typeof r=="string"){return e.parse(r,this)}else{return r}}});
|
|
2175
|
+
/**
|
|
2176
|
+
* Key derivation function namespace.
|
|
2177
|
+
*/var x=a.kdf={};
|
|
2178
|
+
/**
|
|
2179
|
+
* OpenSSL key derivation function.
|
|
2180
|
+
*/var y=x.OpenSSL={
|
|
2181
|
+
/**
|
|
2182
|
+
* Derives a key and IV from a password.
|
|
2183
|
+
*
|
|
2184
|
+
* @param {string} password The password to derive from.
|
|
2185
|
+
* @param {number} keySize The size in words of the key to generate.
|
|
2186
|
+
* @param {number} ivSize The size in words of the IV to generate.
|
|
2187
|
+
* @param {WordArray|string} salt (Optional) A 64-bit salt to use. If omitted, a salt will be generated randomly.
|
|
2188
|
+
*
|
|
2189
|
+
* @return {CipherParams} A cipher params object with the key, IV, and salt.
|
|
2190
|
+
*
|
|
2191
|
+
* @static
|
|
2192
|
+
*
|
|
2193
|
+
* @example
|
|
2194
|
+
*
|
|
2195
|
+
* var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32);
|
|
2196
|
+
* var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32, 'saltsalt');
|
|
2197
|
+
*/
|
|
2198
|
+
execute:function(r,e,a,i,t){
|
|
2199
|
+
// Generate random salt
|
|
2200
|
+
if(!i){i=n.random(64/8)}
|
|
2201
|
+
// Derive key and IV
|
|
2202
|
+
if(!t){var o=f.create({keySize:e+a}).compute(r,i)}else{var o=f.create({keySize:e+a,hasher:t}).compute(r,i)}
|
|
2203
|
+
// Separate key and IV
|
|
2204
|
+
var s=n.create(o.words.slice(e),a*4);o.sigBytes=e*4;
|
|
2205
|
+
// Return params
|
|
2206
|
+
return b.create({key:o,iv:s,salt:i})}};
|
|
2207
|
+
/**
|
|
2208
|
+
* A serializable cipher wrapper that derives the key from a password,
|
|
2209
|
+
* and returns ciphertext as a serializable cipher params object.
|
|
2210
|
+
*/var $=i.PasswordBasedCipher=w.extend({
|
|
2211
|
+
/**
|
|
2212
|
+
* Configuration options.
|
|
2213
|
+
*
|
|
2214
|
+
* @property {KDF} kdf The key derivation function to use to generate a key and IV from a password. Default: OpenSSL
|
|
2215
|
+
*/
|
|
2216
|
+
cfg:w.cfg.extend({kdf:y}),
|
|
2217
|
+
/**
|
|
2218
|
+
* Encrypts a message using a password.
|
|
2219
|
+
*
|
|
2220
|
+
* @param {Cipher} cipher The cipher algorithm to use.
|
|
2221
|
+
* @param {WordArray|string} message The message to encrypt.
|
|
2222
|
+
* @param {string} password The password.
|
|
2223
|
+
* @param {Object} cfg (Optional) The configuration options to use for this operation.
|
|
2224
|
+
*
|
|
2225
|
+
* @return {CipherParams} A cipher params object.
|
|
2226
|
+
*
|
|
2227
|
+
* @static
|
|
2228
|
+
*
|
|
2229
|
+
* @example
|
|
2230
|
+
*
|
|
2231
|
+
* var ciphertextParams = CryptoJS.lib.PasswordBasedCipher.encrypt(CryptoJS.algo.AES, message, 'password');
|
|
2232
|
+
* var ciphertextParams = CryptoJS.lib.PasswordBasedCipher.encrypt(CryptoJS.algo.AES, message, 'password', { format: CryptoJS.format.OpenSSL });
|
|
2233
|
+
*/
|
|
2234
|
+
encrypt:function(r,e,a,i){
|
|
2235
|
+
// Apply config defaults
|
|
2236
|
+
i=this.cfg.extend(i);
|
|
2237
|
+
// Derive key and other params
|
|
2238
|
+
var t=i.kdf.execute(a,r.keySize,r.ivSize,i.salt,i.hasher);
|
|
2239
|
+
// Add IV to config
|
|
2240
|
+
i.iv=t.iv;
|
|
2241
|
+
// Encrypt
|
|
2242
|
+
var n=w.encrypt.call(this,r,e,t.key,i);
|
|
2243
|
+
// Mix in derived params
|
|
2244
|
+
n.mixIn(t);return n},
|
|
2245
|
+
/**
|
|
2246
|
+
* Decrypts serialized ciphertext using a password.
|
|
2247
|
+
*
|
|
2248
|
+
* @param {Cipher} cipher The cipher algorithm to use.
|
|
2249
|
+
* @param {CipherParams|string} ciphertext The ciphertext to decrypt.
|
|
2250
|
+
* @param {string} password The password.
|
|
2251
|
+
* @param {Object} cfg (Optional) The configuration options to use for this operation.
|
|
2252
|
+
*
|
|
2253
|
+
* @return {WordArray} The plaintext.
|
|
2254
|
+
*
|
|
2255
|
+
* @static
|
|
2256
|
+
*
|
|
2257
|
+
* @example
|
|
2258
|
+
*
|
|
2259
|
+
* var plaintext = CryptoJS.lib.PasswordBasedCipher.decrypt(CryptoJS.algo.AES, formattedCiphertext, 'password', { format: CryptoJS.format.OpenSSL });
|
|
2260
|
+
* var plaintext = CryptoJS.lib.PasswordBasedCipher.decrypt(CryptoJS.algo.AES, ciphertextParams, 'password', { format: CryptoJS.format.OpenSSL });
|
|
2261
|
+
*/
|
|
2262
|
+
decrypt:function(r,e,a,i){
|
|
2263
|
+
// Apply config defaults
|
|
2264
|
+
i=this.cfg.extend(i);
|
|
2265
|
+
// Convert string to CipherParams
|
|
2266
|
+
e=this._parse(e,i.format);
|
|
2267
|
+
// Derive key and other params
|
|
2268
|
+
var t=i.kdf.execute(a,r.keySize,r.ivSize,e.salt,i.hasher);
|
|
2269
|
+
// Add IV to config
|
|
2270
|
+
i.iv=t.iv;
|
|
2271
|
+
// Decrypt
|
|
2272
|
+
var n=w.decrypt.call(this,r,e,t.key,i);return n}})}()}))})(cipherCore$1);return cipherCore$1.exports}var modeCfb$1={exports:{}};var modeCfb=modeCfb$1.exports;var hasRequiredModeCfb;function requireModeCfb(){if(hasRequiredModeCfb)return modeCfb$1.exports;hasRequiredModeCfb=1;(function(r,e){(function(e,a,i){{
|
|
2273
|
+
// CommonJS
|
|
2274
|
+
r.exports=a(requireCore(),requireCipherCore())}})(modeCfb,(function(r){
|
|
2275
|
+
/**
|
|
2276
|
+
* Cipher Feedback block mode.
|
|
2277
|
+
*/
|
|
2278
|
+
r.mode.CFB=function(){var e=r.lib.BlockCipherMode.extend();e.Encryptor=e.extend({processBlock:function(r,e){
|
|
2279
|
+
// Shortcuts
|
|
2280
|
+
var i=this._cipher;var t=i.blockSize;a.call(this,r,e,t,i);
|
|
2281
|
+
// Remember this block to use with next block
|
|
2282
|
+
this._prevBlock=r.slice(e,e+t)}});e.Decryptor=e.extend({processBlock:function(r,e){
|
|
2283
|
+
// Shortcuts
|
|
2284
|
+
var i=this._cipher;var t=i.blockSize;
|
|
2285
|
+
// Remember this block to use with next block
|
|
2286
|
+
var n=r.slice(e,e+t);a.call(this,r,e,t,i);
|
|
2287
|
+
// This block becomes the previous block
|
|
2288
|
+
this._prevBlock=n}});function a(r,e,a,i){var t;
|
|
2289
|
+
// Shortcut
|
|
2290
|
+
var n=this._iv;
|
|
2291
|
+
// Generate keystream
|
|
2292
|
+
if(n){t=n.slice(0);
|
|
2293
|
+
// Remove IV for subsequent blocks
|
|
2294
|
+
this._iv=undefined}else{t=this._prevBlock}i.encryptBlock(t,0);
|
|
2295
|
+
// Encrypt
|
|
2296
|
+
for(var o=0;o<a;o++){r[e+o]^=t[o]}}return e}();return r.mode.CFB}))})(modeCfb$1);return modeCfb$1.exports}var modeCtr$1={exports:{}};var modeCtr=modeCtr$1.exports;var hasRequiredModeCtr;function requireModeCtr(){if(hasRequiredModeCtr)return modeCtr$1.exports;hasRequiredModeCtr=1;(function(r,e){(function(e,a,i){{
|
|
2297
|
+
// CommonJS
|
|
2298
|
+
r.exports=a(requireCore(),requireCipherCore())}})(modeCtr,(function(r){
|
|
2299
|
+
/**
|
|
2300
|
+
* Counter block mode.
|
|
2301
|
+
*/
|
|
2302
|
+
r.mode.CTR=function(){var e=r.lib.BlockCipherMode.extend();var a=e.Encryptor=e.extend({processBlock:function(r,e){
|
|
2303
|
+
// Shortcuts
|
|
2304
|
+
var a=this._cipher;var i=a.blockSize;var t=this._iv;var n=this._counter;
|
|
2305
|
+
// Generate keystream
|
|
2306
|
+
if(t){n=this._counter=t.slice(0);
|
|
2307
|
+
// Remove IV for subsequent blocks
|
|
2308
|
+
this._iv=undefined}var o=n.slice(0);a.encryptBlock(o,0);
|
|
2309
|
+
// Increment counter
|
|
2310
|
+
n[i-1]=n[i-1]+1|0;
|
|
2311
|
+
// Encrypt
|
|
2312
|
+
for(var s=0;s<i;s++){r[e+s]^=o[s]}}});e.Decryptor=a;return e}();return r.mode.CTR}))})(modeCtr$1);return modeCtr$1.exports}var modeCtrGladman$1={exports:{}};var modeCtrGladman=modeCtrGladman$1.exports;var hasRequiredModeCtrGladman;function requireModeCtrGladman(){if(hasRequiredModeCtrGladman)return modeCtrGladman$1.exports;hasRequiredModeCtrGladman=1;(function(r,e){(function(e,a,i){{
|
|
2313
|
+
// CommonJS
|
|
2314
|
+
r.exports=a(requireCore(),requireCipherCore())}})(modeCtrGladman,(function(r){
|
|
13
2315
|
/** @preserve
|
|
14
2316
|
* Counter block mode compatible with Dr Brian Gladman fileenc.c
|
|
15
2317
|
* derived from CryptoJS.mode.CTR
|
|
16
2318
|
* Jan Hruby jhruby.web@gmail.com
|
|
17
2319
|
*/
|
|
18
|
-
r.mode.CTRGladman=function(){var e=r.lib.BlockCipherMode.extend();function a(r){if((r>>24&255)===255){var e=r>>16&255;var a=r>>8&255;var i=r&255;if(e===255){e=0;if(a===255){a=0;if(i===255){i=0}else{++i}}else{++a}}else{++e}r=0;r+=e<<16;r+=a<<8;r+=i}else{r+=1<<24}return r}function i(r){if((r[0]=a(r[0]))===0){r[1]=a(r[1])}return r}var t=e.Encryptor=e.extend({processBlock:function(r,e){var a=this._cipher;var t=a.blockSize;var n=this._iv;var o=this._counter;if(n){o=this._counter=n.slice(0);this._iv=undefined}i(o);var s=o.slice(0);a.encryptBlock(s,0);for(var v=0;v<t;v++){r[e+v]^=s[v]}}});e.Decryptor=t;return e}();return r.mode.CTRGladman}))})(modeCtrGladman$1);return modeCtrGladman$1.exports}var modeOfb$1={exports:{}};var modeOfb=modeOfb$1.exports;var hasRequiredModeOfb;function requireModeOfb(){if(hasRequiredModeOfb)return modeOfb$1.exports;hasRequiredModeOfb=1;(function(r,e){(function(e,a,i){{r.exports=a(requireCore(),requireCipherCore())}})(modeOfb,(function(r){r.mode.OFB=function(){var e=r.lib.BlockCipherMode.extend();var a=e.Encryptor=e.extend({processBlock:function(r,e){var a=this._cipher;var i=a.blockSize;var t=this._iv;var n=this._keystream;if(t){n=this._keystream=t.slice(0);this._iv=undefined}a.encryptBlock(n,0);for(var o=0;o<i;o++){r[e+o]^=n[o]}}});e.Decryptor=a;return e}();return r.mode.OFB}))})(modeOfb$1);return modeOfb$1.exports}var modeEcb$1={exports:{}};var modeEcb=modeEcb$1.exports;var hasRequiredModeEcb;function requireModeEcb(){if(hasRequiredModeEcb)return modeEcb$1.exports;hasRequiredModeEcb=1;(function(r,e){(function(e,a,i){{r.exports=a(requireCore(),requireCipherCore())}})(modeEcb,(function(r){r.mode.ECB=function(){var e=r.lib.BlockCipherMode.extend();e.Encryptor=e.extend({processBlock:function(r,e){this._cipher.encryptBlock(r,e)}});e.Decryptor=e.extend({processBlock:function(r,e){this._cipher.decryptBlock(r,e)}});return e}();return r.mode.ECB}))})(modeEcb$1);return modeEcb$1.exports}var padAnsix923$1={exports:{}};var padAnsix923=padAnsix923$1.exports;var hasRequiredPadAnsix923;function requirePadAnsix923(){if(hasRequiredPadAnsix923)return padAnsix923$1.exports;hasRequiredPadAnsix923=1;(function(r,e){(function(e,a,i){{r.exports=a(requireCore(),requireCipherCore())}})(padAnsix923,(function(r){r.pad.AnsiX923={pad:function(r,e){var a=r.sigBytes;var i=e*4;var t=i-a%i;var n=a+t-1;r.clamp();r.words[n>>>2]|=t<<24-n%4*8;r.sigBytes+=t},unpad:function(r){var e=r.words[r.sigBytes-1>>>2]&255;r.sigBytes-=e}};return r.pad.Ansix923}))})(padAnsix923$1);return padAnsix923$1.exports}var padIso10126$1={exports:{}};var padIso10126=padIso10126$1.exports;var hasRequiredPadIso10126;function requirePadIso10126(){if(hasRequiredPadIso10126)return padIso10126$1.exports;hasRequiredPadIso10126=1;(function(r,e){(function(e,a,i){{r.exports=a(requireCore(),requireCipherCore())}})(padIso10126,(function(r){r.pad.Iso10126={pad:function(e,a){var i=a*4;var t=i-e.sigBytes%i;e.concat(r.lib.WordArray.random(t-1)).concat(r.lib.WordArray.create([t<<24],1))},unpad:function(r){var e=r.words[r.sigBytes-1>>>2]&255;r.sigBytes-=e}};return r.pad.Iso10126}))})(padIso10126$1);return padIso10126$1.exports}var padIso97971$1={exports:{}};var padIso97971=padIso97971$1.exports;var hasRequiredPadIso97971;function requirePadIso97971(){if(hasRequiredPadIso97971)return padIso97971$1.exports;hasRequiredPadIso97971=1;(function(r,e){(function(e,a,i){{r.exports=a(requireCore(),requireCipherCore())}})(padIso97971,(function(r){r.pad.Iso97971={pad:function(e,a){e.concat(r.lib.WordArray.create([2147483648],1));r.pad.ZeroPadding.pad(e,a)},unpad:function(e){r.pad.ZeroPadding.unpad(e);e.sigBytes--}};return r.pad.Iso97971}))})(padIso97971$1);return padIso97971$1.exports}var padZeropadding$1={exports:{}};var padZeropadding=padZeropadding$1.exports;var hasRequiredPadZeropadding;function requirePadZeropadding(){if(hasRequiredPadZeropadding)return padZeropadding$1.exports;hasRequiredPadZeropadding=1;(function(r,e){(function(e,a,i){{r.exports=a(requireCore(),requireCipherCore())}})(padZeropadding,(function(r){r.pad.ZeroPadding={pad:function(r,e){var a=e*4;r.clamp();r.sigBytes+=a-(r.sigBytes%a||a)},unpad:function(r){var e=r.words;var a=r.sigBytes-1;for(var a=r.sigBytes-1;a>=0;a--){if(e[a>>>2]>>>24-a%4*8&255){r.sigBytes=a+1;break}}}};return r.pad.ZeroPadding}))})(padZeropadding$1);return padZeropadding$1.exports}var padNopadding$1={exports:{}};var padNopadding=padNopadding$1.exports;var hasRequiredPadNopadding;function requirePadNopadding(){if(hasRequiredPadNopadding)return padNopadding$1.exports;hasRequiredPadNopadding=1;(function(r,e){(function(e,a,i){{r.exports=a(requireCore(),requireCipherCore())}})(padNopadding,(function(r){r.pad.NoPadding={pad:function(){},unpad:function(){}};return r.pad.NoPadding}))})(padNopadding$1);return padNopadding$1.exports}var formatHex$1={exports:{}};var formatHex=formatHex$1.exports;var hasRequiredFormatHex;function requireFormatHex(){if(hasRequiredFormatHex)return formatHex$1.exports;hasRequiredFormatHex=1;(function(r,e){(function(e,a,i){{r.exports=a(requireCore(),requireCipherCore())}})(formatHex,(function(r){(function(e){var a=r;var i=a.lib;var t=i.CipherParams;var n=a.enc;var o=n.Hex;var s=a.format;s.Hex={stringify:function(r){return r.ciphertext.toString(o)},parse:function(r){var e=o.parse(r);return t.create({ciphertext:e})}}})();return r.format.Hex}))})(formatHex$1);return formatHex$1.exports}var aes$1={exports:{}};var aes=aes$1.exports;var hasRequiredAes;function requireAes(){if(hasRequiredAes)return aes$1.exports;hasRequiredAes=1;(function(r,e){(function(e,a,i){{r.exports=a(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore())}})(aes,(function(r){(function(){var e=r;var a=e.lib;var i=a.BlockCipher;var t=e.algo;var n=[];var o=[];var s=[];var v=[];var u=[];var f=[];var c=[];var d=[];var h=[];var l=[];(function(){var r=[];for(var e=0;e<256;e++){if(e<128){r[e]=e<<1}else{r[e]=e<<1^283}}var a=0;var i=0;for(var e=0;e<256;e++){var t=i^i<<1^i<<2^i<<3^i<<4;t=t>>>8^t&255^99;n[a]=t;o[t]=a;var p=r[a];var m=r[p];var b=r[m];var q=r[t]*257^t*16843008;s[a]=q<<24|q>>>8;v[a]=q<<16|q>>>16;u[a]=q<<8|q>>>24;f[a]=q;var q=b*16843009^m*65537^p*257^a*16843008;c[t]=q<<24|q>>>8;d[t]=q<<16|q>>>16;h[t]=q<<8|q>>>24;l[t]=q;if(!a){a=i=1}else{a=p^r[r[r[b^p]]];i^=r[r[i]]}}})();var p=[0,1,2,4,8,16,32,64,128,27,54];var m=t.AES=i.extend({_doReset:function(){var r;if(this._nRounds&&this._keyPriorReset===this._key){return}var e=this._keyPriorReset=this._key;var a=e.words;var i=e.sigBytes/4;var t=this._nRounds=i+6;var o=(t+1)*4;var s=this._keySchedule=[];for(var v=0;v<o;v++){if(v<i){s[v]=a[v]}else{r=s[v-1];if(!(v%i)){r=r<<8|r>>>24;r=n[r>>>24]<<24|n[r>>>16&255]<<16|n[r>>>8&255]<<8|n[r&255];r^=p[v/i|0]<<24}else if(i>6&&v%i==4){r=n[r>>>24]<<24|n[r>>>16&255]<<16|n[r>>>8&255]<<8|n[r&255]}s[v]=s[v-i]^r}}var u=this._invKeySchedule=[];for(var f=0;f<o;f++){var v=o-f;if(f%4){var r=s[v]}else{var r=s[v-4]}if(f<4||v<=4){u[f]=r}else{u[f]=c[n[r>>>24]]^d[n[r>>>16&255]]^h[n[r>>>8&255]]^l[n[r&255]]}}},encryptBlock:function(r,e){this._doCryptBlock(r,e,this._keySchedule,s,v,u,f,n)},decryptBlock:function(r,e){var a=r[e+1];r[e+1]=r[e+3];r[e+3]=a;this._doCryptBlock(r,e,this._invKeySchedule,c,d,h,l,o);var a=r[e+1];r[e+1]=r[e+3];r[e+3]=a},_doCryptBlock:function(r,e,a,i,t,n,o,s){var v=this._nRounds;var u=r[e]^a[0];var f=r[e+1]^a[1];var c=r[e+2]^a[2];var d=r[e+3]^a[3];var h=4;for(var l=1;l<v;l++){var p=i[u>>>24]^t[f>>>16&255]^n[c>>>8&255]^o[d&255]^a[h++];var m=i[f>>>24]^t[c>>>16&255]^n[d>>>8&255]^o[u&255]^a[h++];var b=i[c>>>24]^t[d>>>16&255]^n[u>>>8&255]^o[f&255]^a[h++];var q=i[d>>>24]^t[u>>>16&255]^n[f>>>8&255]^o[c&255]^a[h++];u=p;f=m;c=b;d=q}var p=(s[u>>>24]<<24|s[f>>>16&255]<<16|s[c>>>8&255]<<8|s[d&255])^a[h++];var m=(s[f>>>24]<<24|s[c>>>16&255]<<16|s[d>>>8&255]<<8|s[u&255])^a[h++];var b=(s[c>>>24]<<24|s[d>>>16&255]<<16|s[u>>>8&255]<<8|s[f&255])^a[h++];var q=(s[d>>>24]<<24|s[u>>>16&255]<<16|s[f>>>8&255]<<8|s[c&255])^a[h++];r[e]=p;r[e+1]=m;r[e+2]=b;r[e+3]=q},keySize:256/32});e.AES=i._createHelper(m)})();return r.AES}))})(aes$1);return aes$1.exports}var tripledes$1={exports:{}};var tripledes=tripledes$1.exports;var hasRequiredTripledes;function requireTripledes(){if(hasRequiredTripledes)return tripledes$1.exports;hasRequiredTripledes=1;(function(r,e){(function(e,a,i){{r.exports=a(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore())}})(tripledes,(function(r){(function(){var e=r;var a=e.lib;var i=a.WordArray;var t=a.BlockCipher;var n=e.algo;var o=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4];var s=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32];var v=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28];var u=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}];var f=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679];var c=n.DES=t.extend({_doReset:function(){var r=this._key;var e=r.words;var a=[];for(var i=0;i<56;i++){var t=o[i]-1;a[i]=e[t>>>5]>>>31-t%32&1}var n=this._subKeys=[];for(var u=0;u<16;u++){var f=n[u]=[];var c=v[u];for(var i=0;i<24;i++){f[i/6|0]|=a[(s[i]-1+c)%28]<<31-i%6;f[4+(i/6|0)]|=a[28+(s[i+24]-1+c)%28]<<31-i%6}f[0]=f[0]<<1|f[0]>>>31;for(var i=1;i<7;i++){f[i]=f[i]>>>(i-1)*4+3}f[7]=f[7]<<5|f[7]>>>27}var d=this._invSubKeys=[];for(var i=0;i<16;i++){d[i]=n[15-i]}},encryptBlock:function(r,e){this._doCryptBlock(r,e,this._subKeys)},decryptBlock:function(r,e){this._doCryptBlock(r,e,this._invSubKeys)},_doCryptBlock:function(r,e,a){this._lBlock=r[e];this._rBlock=r[e+1];d.call(this,4,252645135);d.call(this,16,65535);h.call(this,2,858993459);h.call(this,8,16711935);d.call(this,1,1431655765);for(var i=0;i<16;i++){var t=a[i];var n=this._lBlock;var o=this._rBlock;var s=0;for(var v=0;v<8;v++){s|=u[v][((o^t[v])&f[v])>>>0]}this._lBlock=o;this._rBlock=n^s}var c=this._lBlock;this._lBlock=this._rBlock;this._rBlock=c;d.call(this,1,1431655765);h.call(this,8,16711935);h.call(this,2,858993459);d.call(this,16,65535);d.call(this,4,252645135);r[e]=this._lBlock;r[e+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function d(r,e){var a=(this._lBlock>>>r^this._rBlock)&e;this._rBlock^=a;this._lBlock^=a<<r}function h(r,e){var a=(this._rBlock>>>r^this._lBlock)&e;this._lBlock^=a;this._rBlock^=a<<r}e.DES=t._createHelper(c);var l=n.TripleDES=t.extend({_doReset:function(){var r=this._key;var e=r.words;if(e.length!==2&&e.length!==4&&e.length<6){throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.")}var a=e.slice(0,2);var t=e.length<4?e.slice(0,2):e.slice(2,4);var n=e.length<6?e.slice(0,2):e.slice(4,6);this._des1=c.createEncryptor(i.create(a));this._des2=c.createEncryptor(i.create(t));this._des3=c.createEncryptor(i.create(n))},encryptBlock:function(r,e){this._des1.encryptBlock(r,e);this._des2.decryptBlock(r,e);this._des3.encryptBlock(r,e)},decryptBlock:function(r,e){this._des3.decryptBlock(r,e);this._des2.encryptBlock(r,e);this._des1.decryptBlock(r,e)},keySize:192/32,ivSize:64/32,blockSize:64/32});e.TripleDES=t._createHelper(l)})();return r.TripleDES}))})(tripledes$1);return tripledes$1.exports}var rc4$1={exports:{}};var rc4=rc4$1.exports;var hasRequiredRc4;function requireRc4(){if(hasRequiredRc4)return rc4$1.exports;hasRequiredRc4=1;(function(r,e){(function(e,a,i){{r.exports=a(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore())}})(rc4,(function(r){(function(){var e=r;var a=e.lib;var i=a.StreamCipher;var t=e.algo;var n=t.RC4=i.extend({_doReset:function(){var r=this._key;var e=r.words;var a=r.sigBytes;var i=this._S=[];for(var t=0;t<256;t++){i[t]=t}for(var t=0,n=0;t<256;t++){var o=t%a;var s=e[o>>>2]>>>24-o%4*8&255;n=(n+i[t]+s)%256;var v=i[t];i[t]=i[n];i[n]=v}this._i=this._j=0},_doProcessBlock:function(r,e){r[e]^=o.call(this)},keySize:256/32,ivSize:0});function o(){var r=this._S;var e=this._i;var a=this._j;var i=0;for(var t=0;t<4;t++){e=(e+1)%256;a=(a+r[e])%256;var n=r[e];r[e]=r[a];r[a]=n;i|=r[(r[e]+r[a])%256]<<24-t*8}this._i=e;this._j=a;return i}e.RC4=i._createHelper(n);var s=t.RC4Drop=n.extend({cfg:n.cfg.extend({drop:192}),_doReset:function(){n._doReset.call(this);for(var r=this.cfg.drop;r>0;r--){o.call(this)}}});e.RC4Drop=i._createHelper(s)})();return r.RC4}))})(rc4$1);return rc4$1.exports}var rabbit$1={exports:{}};var rabbit=rabbit$1.exports;var hasRequiredRabbit;function requireRabbit(){if(hasRequiredRabbit)return rabbit$1.exports;hasRequiredRabbit=1;(function(r,e){(function(e,a,i){{r.exports=a(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore())}})(rabbit,(function(r){(function(){var e=r;var a=e.lib;var i=a.StreamCipher;var t=e.algo;var n=[];var o=[];var s=[];var v=t.Rabbit=i.extend({_doReset:function(){var r=this._key.words;var e=this.cfg.iv;for(var a=0;a<4;a++){r[a]=(r[a]<<8|r[a]>>>24)&16711935|(r[a]<<24|r[a]>>>8)&4278255360}var i=this._X=[r[0],r[3]<<16|r[2]>>>16,r[1],r[0]<<16|r[3]>>>16,r[2],r[1]<<16|r[0]>>>16,r[3],r[2]<<16|r[1]>>>16];var t=this._C=[r[2]<<16|r[2]>>>16,r[0]&4294901760|r[1]&65535,r[3]<<16|r[3]>>>16,r[1]&4294901760|r[2]&65535,r[0]<<16|r[0]>>>16,r[2]&4294901760|r[3]&65535,r[1]<<16|r[1]>>>16,r[3]&4294901760|r[0]&65535];this._b=0;for(var a=0;a<4;a++){u.call(this)}for(var a=0;a<8;a++){t[a]^=i[a+4&7]}if(e){var n=e.words;var o=n[0];var s=n[1];var v=(o<<8|o>>>24)&16711935|(o<<24|o>>>8)&4278255360;var f=(s<<8|s>>>24)&16711935|(s<<24|s>>>8)&4278255360;var c=v>>>16|f&4294901760;var d=f<<16|v&65535;t[0]^=v;t[1]^=c;t[2]^=f;t[3]^=d;t[4]^=v;t[5]^=c;t[6]^=f;t[7]^=d;for(var a=0;a<4;a++){u.call(this)}}},_doProcessBlock:function(r,e){var a=this._X;u.call(this);n[0]=a[0]^a[5]>>>16^a[3]<<16;n[1]=a[2]^a[7]>>>16^a[5]<<16;n[2]=a[4]^a[1]>>>16^a[7]<<16;n[3]=a[6]^a[3]>>>16^a[1]<<16;for(var i=0;i<4;i++){n[i]=(n[i]<<8|n[i]>>>24)&16711935|(n[i]<<24|n[i]>>>8)&4278255360;r[e+i]^=n[i]}},blockSize:128/32,ivSize:64/32});function u(){var r=this._X;var e=this._C;for(var a=0;a<8;a++){o[a]=e[a]}e[0]=e[0]+1295307597+this._b|0;e[1]=e[1]+3545052371+(e[0]>>>0<o[0]>>>0?1:0)|0;e[2]=e[2]+886263092+(e[1]>>>0<o[1]>>>0?1:0)|0;e[3]=e[3]+1295307597+(e[2]>>>0<o[2]>>>0?1:0)|0;e[4]=e[4]+3545052371+(e[3]>>>0<o[3]>>>0?1:0)|0;e[5]=e[5]+886263092+(e[4]>>>0<o[4]>>>0?1:0)|0;e[6]=e[6]+1295307597+(e[5]>>>0<o[5]>>>0?1:0)|0;e[7]=e[7]+3545052371+(e[6]>>>0<o[6]>>>0?1:0)|0;this._b=e[7]>>>0<o[7]>>>0?1:0;for(var a=0;a<8;a++){var i=r[a]+e[a];var t=i&65535;var n=i>>>16;var v=((t*t>>>17)+t*n>>>15)+n*n;var u=((i&4294901760)*i|0)+((i&65535)*i|0);s[a]=v^u}r[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|0;r[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0;r[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|s[0]>>>16)|0;r[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0;r[4]=s[4]+(s[3]<<16|s[3]>>>16)+(s[2]<<16|s[2]>>>16)|0;r[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0;r[6]=s[6]+(s[5]<<16|s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0;r[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|0}e.Rabbit=i._createHelper(v)})();return r.Rabbit}))})(rabbit$1);return rabbit$1.exports}var rabbitLegacy$1={exports:{}};var rabbitLegacy=rabbitLegacy$1.exports;var hasRequiredRabbitLegacy;function requireRabbitLegacy(){if(hasRequiredRabbitLegacy)return rabbitLegacy$1.exports;hasRequiredRabbitLegacy=1;(function(r,e){(function(e,a,i){{r.exports=a(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore())}})(rabbitLegacy,(function(r){(function(){var e=r;var a=e.lib;var i=a.StreamCipher;var t=e.algo;var n=[];var o=[];var s=[];var v=t.RabbitLegacy=i.extend({_doReset:function(){var r=this._key.words;var e=this.cfg.iv;var a=this._X=[r[0],r[3]<<16|r[2]>>>16,r[1],r[0]<<16|r[3]>>>16,r[2],r[1]<<16|r[0]>>>16,r[3],r[2]<<16|r[1]>>>16];var i=this._C=[r[2]<<16|r[2]>>>16,r[0]&4294901760|r[1]&65535,r[3]<<16|r[3]>>>16,r[1]&4294901760|r[2]&65535,r[0]<<16|r[0]>>>16,r[2]&4294901760|r[3]&65535,r[1]<<16|r[1]>>>16,r[3]&4294901760|r[0]&65535];this._b=0;for(var t=0;t<4;t++){u.call(this)}for(var t=0;t<8;t++){i[t]^=a[t+4&7]}if(e){var n=e.words;var o=n[0];var s=n[1];var v=(o<<8|o>>>24)&16711935|(o<<24|o>>>8)&4278255360;var f=(s<<8|s>>>24)&16711935|(s<<24|s>>>8)&4278255360;var c=v>>>16|f&4294901760;var d=f<<16|v&65535;i[0]^=v;i[1]^=c;i[2]^=f;i[3]^=d;i[4]^=v;i[5]^=c;i[6]^=f;i[7]^=d;for(var t=0;t<4;t++){u.call(this)}}},_doProcessBlock:function(r,e){var a=this._X;u.call(this);n[0]=a[0]^a[5]>>>16^a[3]<<16;n[1]=a[2]^a[7]>>>16^a[5]<<16;n[2]=a[4]^a[1]>>>16^a[7]<<16;n[3]=a[6]^a[3]>>>16^a[1]<<16;for(var i=0;i<4;i++){n[i]=(n[i]<<8|n[i]>>>24)&16711935|(n[i]<<24|n[i]>>>8)&4278255360;r[e+i]^=n[i]}},blockSize:128/32,ivSize:64/32});function u(){var r=this._X;var e=this._C;for(var a=0;a<8;a++){o[a]=e[a]}e[0]=e[0]+1295307597+this._b|0;e[1]=e[1]+3545052371+(e[0]>>>0<o[0]>>>0?1:0)|0;e[2]=e[2]+886263092+(e[1]>>>0<o[1]>>>0?1:0)|0;e[3]=e[3]+1295307597+(e[2]>>>0<o[2]>>>0?1:0)|0;e[4]=e[4]+3545052371+(e[3]>>>0<o[3]>>>0?1:0)|0;e[5]=e[5]+886263092+(e[4]>>>0<o[4]>>>0?1:0)|0;e[6]=e[6]+1295307597+(e[5]>>>0<o[5]>>>0?1:0)|0;e[7]=e[7]+3545052371+(e[6]>>>0<o[6]>>>0?1:0)|0;this._b=e[7]>>>0<o[7]>>>0?1:0;for(var a=0;a<8;a++){var i=r[a]+e[a];var t=i&65535;var n=i>>>16;var v=((t*t>>>17)+t*n>>>15)+n*n;var u=((i&4294901760)*i|0)+((i&65535)*i|0);s[a]=v^u}r[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|0;r[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0;r[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|s[0]>>>16)|0;r[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0;r[4]=s[4]+(s[3]<<16|s[3]>>>16)+(s[2]<<16|s[2]>>>16)|0;r[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0;r[6]=s[6]+(s[5]<<16|s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0;r[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|0}e.RabbitLegacy=i._createHelper(v)})();return r.RabbitLegacy}))})(rabbitLegacy$1);return rabbitLegacy$1.exports}var blowfish$1={exports:{}};var blowfish=blowfish$1.exports;var hasRequiredBlowfish;function requireBlowfish(){if(hasRequiredBlowfish)return blowfish$1.exports;hasRequiredBlowfish=1;(function(r,e){(function(e,a,i){{r.exports=a(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore())}})(blowfish,(function(r){(function(){var e=r;var a=e.lib;var i=a.BlockCipher;var t=e.algo;var n=16;var o=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731];var s=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var v={pbox:[],sbox:[]};function u(r,e){var a=e>>24&255;var i=e>>16&255;var t=e>>8&255;var n=e&255;var o=r.sbox[0][a]+r.sbox[1][i];o=o^r.sbox[2][t];o=o+r.sbox[3][n];return o}function f(r,e,a){var i=e;var t=a;var o;for(var s=0;s<n;++s){i=i^r.pbox[s];t=u(r,i)^t;o=i;i=t;t=o}o=i;i=t;t=o;t=t^r.pbox[n];i=i^r.pbox[n+1];return{left:i,right:t}}function c(r,e,a){var i=e;var t=a;var o;for(var s=n+1;s>1;--s){i=i^r.pbox[s];t=u(r,i)^t;o=i;i=t;t=o}o=i;i=t;t=o;t=t^r.pbox[1];i=i^r.pbox[0];return{left:i,right:t}}function d(r,e,a){for(var i=0;i<4;i++){r.sbox[i]=[];for(var t=0;t<256;t++){r.sbox[i][t]=s[i][t]}}var v=0;for(var u=0;u<n+2;u++){r.pbox[u]=o[u]^e[v];v++;if(v>=a){v=0}}var c=0;var d=0;var h=0;for(var l=0;l<n+2;l+=2){h=f(r,c,d);c=h.left;d=h.right;r.pbox[l]=c;r.pbox[l+1]=d}for(var l=0;l<4;l++){for(var p=0;p<256;p+=2){h=f(r,c,d);c=h.left;d=h.right;r.sbox[l][p]=c;r.sbox[l][p+1]=d}}return true}var h=t.Blowfish=i.extend({_doReset:function(){if(this._keyPriorReset===this._key){return}var r=this._keyPriorReset=this._key;var e=r.words;var a=r.sigBytes/4;d(v,e,a)},encryptBlock:function(r,e){var a=f(v,r[e],r[e+1]);r[e]=a.left;r[e+1]=a.right},decryptBlock:function(r,e){var a=c(v,r[e],r[e+1]);r[e]=a.left;r[e+1]=a.right},blockSize:64/32,keySize:128/32,ivSize:64/32});e.Blowfish=i._createHelper(h)})();return r.Blowfish}))})(blowfish$1);return blowfish$1.exports}var cryptoJs=cryptoJs$1.exports;var hasRequiredCryptoJs;function requireCryptoJs(){if(hasRequiredCryptoJs)return cryptoJs$1.exports;hasRequiredCryptoJs=1;(function(r,e){(function(e,a,i){{r.exports=a(requireCore(),requireX64Core(),requireLibTypedarrays(),requireEncUtf16(),requireEncBase64(),requireEncBase64url(),requireMd5(),requireSha1(),requireSha256(),requireSha224(),requireSha512(),requireSha384(),requireSha3(),requireRipemd160(),requireHmac(),requirePbkdf2(),requireEvpkdf(),requireCipherCore(),requireModeCfb(),requireModeCtr(),requireModeCtrGladman(),requireModeOfb(),requireModeEcb(),requirePadAnsix923(),requirePadIso10126(),requirePadIso97971(),requirePadZeropadding(),requirePadNopadding(),requireFormatHex(),requireAes(),requireTripledes(),requireRc4(),requireRabbit(),requireRabbitLegacy(),requireBlowfish())}})(cryptoJs,(function(r){return r}))})(cryptoJs$1);return cryptoJs$1.exports}var cryptoJsExports=requireCryptoJs();var miBaselineFileDownloadDone='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M5 18h14v2H5v-2zm4.6-2.7L5 10.7l2-1.9l2.6 2.6L17 4l2 2l-9.4 9.3z"/></svg>';var miOutlineFileDownload='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3h-2zm-1-4l-1.41-1.41L13 12.17V4h-2v8.17L8.41 9.59L7 11l5 5l5-5z"/></svg>';var alreadyDownloaded$3="Έχετε ήδη κατεβάσει αυτό το αρχείο";var localeEl={alreadyDownloaded:alreadyDownloaded$3};var alreadyDownloaded$2="You have already downloaded this file";var localeEn={alreadyDownloaded:alreadyDownloaded$2};var alreadyDownloaded$1="Ya has descargado este archivo";var localeEs={alreadyDownloaded:alreadyDownloaded$1};var alreadyDownloaded="Hai già scaricato questo file";var localeIt={alreadyDownloaded:alreadyDownloaded};var mdsFileCss=function(){return"@layer reset,vendor,theme,base,components,utilities;@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,::backdrop,:after,:before{--mds-file-preview-icon-color:rgb(var(--tone-neutral-04,218 218 218));--mds-file-preview-color:rgb(var(--tone-neutral-04,218 218 218));--mds-file-preview-icon-bacground:rgb(var(--tone-neutral-10,60 60 60))}}}@keyframes focus-bounce{0%,75%,to{outline-offset:var(--magma-outline-focus-offset,6px)}50%{outline-offset:var(--magma-outline-blur-offset,2px)}}:host(:not(:is([hydrated],.hydrated))),:is(mds-badge,mds-icon,mds-text):not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-file-preview-icon-color:rgb(var(--tone-neutral-04,218 218 218));--mds-file-preview-color:rgb(var(--tone-neutral-04,218 218 218));--mds-file-preview-icon-bacground:rgb(var(--tone-neutral-10,60 60 60));--mds-file-transition-duration:var(--duration-200,.2s);--private-file-transition-duration:var(--mds-file-transition-duration);--private-icon-download-offset:10%;animation-duration:var(--magma-outline-animation-duration,1s);animation-fill-mode:forwards;animation-iteration-count:infinite;animation-name:focus-bounce;animation-play-state:paused;animation-timing-function:var(--ease-out,cubic-bezier(0,0,.2,1));background-color:rgb(var(--tone-neutral,0 0 0));border-radius:var(--radius-xl,20px);-webkit-box-shadow:var(--shadow-outline-weak,0 0 0 1px #0000000d,0 1px 2px 0 #0000000d);box-shadow:var(--shadow-outline-weak,0 0 0 1px #0000000d,0 1px 2px 0 #0000000d);color:rgb(var(--tone-neutral-04,218 218 218));outline:var(--magma-outline-blur,2px solid var(--magma-outline-blur-color,#0000));transition-duration:.2s;transition-property:background-color,border-color,box-shadow,color,fill,outline,outline-offset,transform;transition-timing-function:ease-in-out;corner-shape:var(--magma-corner-shape,round);align-items:stretch;cursor:pointer;display:inline-flex;overflow:hidden;-webkit-transition-duration:var(--private-file-transition-duration);transition-duration:var(--private-file-transition-duration);transition-property:box-shadow,outline,outline-offset;-webkit-transition-timing-function:var(--ease-out);transition-timing-function:var(--ease-out);width:100%}:host:focus-visible{--magma-outline-blur:var(--magma-outline-focus);animation-play-state:running}:host(:focus-visible){--magma-outline-blur:var(--magma-outline-focus);animation-play-state:running}:host(:hover){-webkit-box-shadow:var(--shadow-box-md,#0000000f 0 0 0 1px,#00000008 0 1px 1px -.5px,#0000000a 0 2px 2px -1px,#0000000a 0 3px 3px -1.5px,#00000008 0 5px 5px -2.5px,#00000008 0 10px 10px -5px,#00000008 0 24px 24px -8px);box-shadow:var(--shadow-box-md,#0000000f 0 0 0 1px,#00000008 0 1px 1px -.5px,#0000000a 0 2px 2px -1px,#0000000a 0 3px 3px -1.5px,#00000008 0 5px 5px -2.5px,#00000008 0 10px 10px -5px,#00000008 0 24px 24px -8px)}:host(:hover) .download-icon{opacity:1;transform:translateY(0)}:host(:hover) :is(.icon-preview,.image-preview){opacity:0;-webkit-transform:translateY(var(--private-icon-download-offset));transform:translateY(var(--private-icon-download-offset))}.download-icon{inset:0;opacity:0;position:absolute;-webkit-transform:translateY(calc(var(--private-icon-download-offset)*-1));transform:translateY(calc(var(--private-icon-download-offset)*-1));-webkit-transition-duration:inherit;transition-duration:inherit;transition-property:opacity,transform;-webkit-transition-timing-function:inherit;transition-timing-function:inherit}.download-icon,.preview{align-items:center;display:flex;justify-content:center}.preview{background-color:var(--mds-file-preview-icon-bacground,rgb(var(--tone-neutral-10,60 60 60)));color:var(--mds-file-preview-color,rgb(var(--tone-neutral-03,233 233 233)));fill:var(--mds-file-preview-icon-color,var(--mds-file-preview-color,rgb(var(--tone-neutral-03,233 233 233))));flex-shrink:0;position:relative;-webkit-transition-duration:inherit;transition-duration:inherit;transition-property:color,background-color,fill;-webkit-transition-timing-function:var(--ease-in-out);transition-timing-function:var(--ease-in-out);width:calc(var(--spacing,.0025rem)*1400)}.image-preview{background-position:50%;background-repeat:no-repeat;background-size:contain;inset:calc(var(--spacing,.0025rem)*300);position:absolute}.icon-preview,.image-preview{-webkit-transition-duration:inherit;transition-duration:inherit;transition-property:opacity,transform;-webkit-transition-timing-function:inherit;transition-timing-function:inherit}.info{flex-direction:column;flex-grow:1;gap:calc(var(--spacing,.0025rem)*100);height:calc(var(--spacing,.0025rem)*1400);justify-content:center;padding:0 calc(var(--spacing,.0025rem)*300)}.filename,.info{display:flex;min-width:0}.name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.extension{flex-shrink:0}.detail{align-items:baseline;display:flex;gap:calc(var(--spacing,.0025rem)*200);min-width:0}.suffix{flex-shrink:0;pointer-events:none}.description{color:rgb(var(--tone-neutral-05,197 197 197));min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.indicator{align-items:center;display:flex;justify-content:center;padding-right:calc(var(--spacing,.0025rem)*400)}.downloaded{display:flex;fill:rgb(var(--status-success-06,0 171 97))}.downloaded svg{aspect-ratio:var(--aspect-square,1/1);height:100%;width:100%}:host([format=archive]),:host([format=executable]){--mds-file-preview-icon-color:rgb(var(--label-amaranth-04,251 192 203));--mds-file-preview-color:rgb(var(--label-amaranth-04,251 192 203));--mds-file-preview-icon-bacground:rgb(var(--label-amaranth-10,114 7 25))}:host([format=attachment]){--mds-file-preview-icon-color:rgb(var(--tone-neutral-04,218 218 218));--mds-file-preview-color:rgb(var(--tone-neutral-04,218 218 218));--mds-file-preview-icon-bacground:rgb(var(--tone-neutral-10,60 60 60))}:host([format=audio]),:host([format=video]){--mds-file-preview-icon-color:rgb(var(--label-violet-04,216 200 252));--mds-file-preview-color:rgb(var(--label-violet-04,216 200 252));--mds-file-preview-icon-bacground:rgb(var(--label-violet-10,57 9 165))}:host([format=code]),:host([format=data]),:host([format=markup]){--mds-file-preview-icon-color:rgb(var(--label-yellow-04,248 202 60));--mds-file-preview-color:rgb(var(--label-yellow-04,248 202 60));--mds-file-preview-icon-bacground:rgb(var(--label-yellow-10,75 57 3))}:host([format=certificate]),:host([format=document]){--mds-file-preview-icon-color:rgb(var(--label-orange-04,252 196 158));--mds-file-preview-color:rgb(var(--label-orange-04,252 196 158));--mds-file-preview-icon-bacground:rgb(var(--label-orange-10,99 42 3))}:host([format=email]),:host([format=text]){--mds-file-preview-icon-color:rgb(var(--label-blue-04,196 206 253));--mds-file-preview-color:rgb(var(--label-blue-04,196 206 253));--mds-file-preview-icon-bacground:rgb(var(--label-blue-10,6 34 166))}:host([format=image]){--mds-file-preview-icon-color:rgb(var(--label-green-04,113 230 156));--mds-file-preview-color:rgb(var(--label-green-04,113 230 156));--mds-file-preview-icon-bacground:rgb(var(--label-green-10,12 68 33))}:host([format=slide]){--mds-file-preview-icon-color:rgb(var(--label-orchid-04,248 192 220));--mds-file-preview-color:rgb(var(--label-orchid-04,248 192 220));--mds-file-preview-icon-bacground:rgb(var(--label-orchid-10,111 12 61))}:host([format=spreadsheet]){--mds-file-preview-icon-color:rgb(var(--label-lime-04,148 229 25));--mds-file-preview-color:rgb(var(--label-lime-04,148 229 25));--mds-file-preview-icon-bacground:rgb(var(--label-lime-10,43 66 7))}:host([format=vector]){--mds-file-preview-icon-color:rgb(var(--label-aqua-04,81 225 250));--mds-file-preview-color:rgb(var(--label-aqua-04,81 225 250));--mds-file-preview-icon-bacground:rgb(var(--label-aqua-10,2 65 76))}:host([pref-animation=reduce]){--private-file-transition-duration:0s}:host([pref-theme=dark]:not([pref-theme-scheme=light])){-webkit-box-shadow:var(--shadow-outline);box-shadow:var(--shadow-outline)}:host([pref-theme=dark]:not([pref-theme-scheme=light])):host(:hover){-webkit-box-shadow:var(--shadow-outline-50);box-shadow:var(--shadow-outline-50)}:host([pref-contrast=more]){background-color:rgb(var(--tone-neutral,0 0 0));-webkit-box-shadow:var(--shadow-outline-50);box-shadow:var(--shadow-outline-50);color:rgb(var(--tone-neutral-01,255 255 255))}:host([pref-contrast=more]):host(:hover){-webkit-box-shadow:var(--shadow-outline-strong-100);box-shadow:var(--shadow-outline-strong-100)}@media (prefers-reduced-motion:reduce){:host(:not([pref-animation])),:host([pref-animation=system]){--private-file-transition-duration:0s}}@media (prefers-color-scheme:dark){:host(:not([pref-theme])),:host([pref-theme=system]:not([pref-theme-scheme=light])){-webkit-box-shadow:var(--shadow-outline);box-shadow:var(--shadow-outline)}:is(:host([pref-theme=system]:not([pref-theme-scheme=light])),:host(:not([pref-theme]))):host(:hover){-webkit-box-shadow:var(--shadow-outline-50);box-shadow:var(--shadow-outline-50)}}@media (prefers-contrast:more){:host(:not([pref-contrast])),:host([pref-contrast=system]){background-color:rgb(var(--tone-neutral,0 0 0));-webkit-box-shadow:var(--shadow-outline-50);box-shadow:var(--shadow-outline-50);color:rgb(var(--tone-neutral-01,255 255 255))}:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))):host(:hover){-webkit-box-shadow:var(--shadow-outline-strong-100);box-shadow:var(--shadow-outline-strong-100)}}"};var MdsFile=function(){function r(r){var e=this;registerInstance(this,r);this.downloadedEvent=createEvent(this,"mdsFileDownload");this.t=new Locale({el:Object.assign(Object.assign({},localeEl),fileDescriptionLocaleEl),en:Object.assign(Object.assign({},localeEn),fileDescriptionLocaleEn),es:Object.assign(Object.assign({},localeEs),fileDescriptionLocaleEs),it:Object.assign(Object.assign({},localeIt),fileDescriptionLocaleIt)});this.wasDownloaded=false;this.hideDownloadedIcon=false;this.handleOnClick=function(){var r;var a=getExtensionInfos(e.filename,e.suffix),i=a.format,t=a.description;e.downloadedEvent.emit({description:(r=e.description)!==null&&r!==void 0?r:t,extension:getSuffix(e.filename,e.suffix),filename:e.filename,target:e.host,type:i});localStorage.setItem("mdsFile".concat(cryptoJsExports.MD5(e.filename).toString()),"downloaded");e.checkWasDownloaded()};this.checkWasDownloaded=function(){var r="mdsFile/".concat(cryptoJsExports.MD5(e.filename).toString());e.wasDownloaded=localStorage.getItem(r)==="downloaded"};this.getDefaultDescription=function(){return getExtensionInfos(e.filename,e.suffix).description}}r.prototype.updateLang=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(r){this.language=this.t.lang(this.host);return[2]}))}))};r.prototype.connectedCallback=function(){var r=this;this.unsubscribePrefAnimation=subscribePreference("animation",(function(e){r.prefAnimation=e}));this.unsubscribePrefContrast=subscribePreference("contrast",(function(e){r.prefContrast=e}));this.unsubscribePrefTheme=subscribePreference("theme",(function(e){r.prefTheme=e}));this.unsubscribePrefThemeScheme=subscribePreference("theme-scheme",(function(e){r.prefThemeScheme=e}))};r.prototype.disconnectedCallback=function(){var r,e,a,i;(r=this.unsubscribePrefAnimation)===null||r===void 0?void 0:r.call(this);(e=this.unsubscribePrefContrast)===null||e===void 0?void 0:e.call(this);(a=this.unsubscribePrefTheme)===null||a===void 0?void 0:a.call(this);(i=this.unsubscribePrefThemeScheme)===null||i===void 0?void 0:i.call(this)};r.prototype.componentWillLoad=function(){this.checkWasDownloaded();this.t.lang(this.host);this.format=getExtensionInfos(this.filename,this.suffix).format};r.prototype.componentDidUpdate=function(){this.checkWasDownloaded()};r.prototype.handleFilename=function(r){this.format=getExtensionInfos(r,this.suffix).format};r.prototype.render=function(){var r,e;return h(Host,{key:"711fefbaa2906d91c9d0383310bf312c52df078b",tabindex:"0",onClick:this.handleOnClick,"pref-animation":this.prefAnimation,"pref-contrast":this.prefContrast,"pref-theme":this.prefTheme,"pref-theme-scheme":this.prefThemeScheme},h("div",{key:"8d28d65986c17add1ca6368ccf2b5a10e58058d4",class:"preview"},this.preview!==undefined?h("div",{class:"image-preview",style:{backgroundImage:"url(".concat(this.preview,")")}}):h("mds-icon",{class:"icon-preview",name:getFormatsVariant(this.filename,this.suffix).icon}),h("div",{key:"7fbaeada2247cea64aff5b21714dc5ef540229de",class:"download-icon"},h("mds-icon",{key:"b86c2349ced351a6d86f43e6e3a51cd5f9729254",name:miOutlineFileDownload}))),h("div",{key:"9749f541e33c934d8d4beb9a92e1238f8b1146cc",class:"info"},h("div",{key:"d16f79e79a544bbab2bd02d9ef130654c5737f78",class:"filename",title:this.filename},h("mds-text",{key:"fb91eeb270e446cd871b97c6a8048cd0e7209ca6",truncate:"word",typography:"h6",class:"name"},getName(this.filename)),this.suffix===undefined&&getSuffix(this.filename,this.suffix)&&h("mds-text",{key:"6d3f3e6d6def65dbf20ba578f2ba7ccd7701ee3e",typography:"h6",class:"extension"},".",getSuffix(this.filename,this.suffix))),h("div",{key:"dea8f443f6c3b5fb286689bf6899ac63ca6d7cdc",class:"detail"},getSuffix(this.filename,this.suffix)&&h("mds-badge",{key:"7d943721238ef3f1fe159ba29aabdd0a15ed5dad",variant:getFormatsVariant(this.filename,this.suffix).variant,tone:"weak",class:"suffix"},getSuffix(this.filename,this.suffix)),h("mds-text",{key:"876049351686a33037a3c621dbcd4d7c414478d5",truncate:"word",typography:"caption",class:"description",title:(r=this.description)!==null&&r!==void 0?r:this.t.get(this.getDefaultDescription())},(e=this.description)!==null&&e!==void 0?e:this.t.get(this.getDefaultDescription())))),this.wasDownloaded&&!this.hideDownloadedIcon&&h("div",{key:"2bec5d1651a5819b5bce22740fc9163c70f9f388",class:"indicator"},h("i",{key:"e3311e52eda56c0eec42fdfd0b6ea84016c2ecd3",class:"downloaded",innerHTML:miBaselineFileDownloadDone,title:this.t.get("alreadyDownloaded")})))};Object.defineProperty(r.prototype,"host",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(r,"watchers",{get:function(){return{filename:[{handleFilename:0}]}},enumerable:false,configurable:true});return r}();MdsFile.style=mdsFileCss();export{MdsFile as mds_file};
|
|
2320
|
+
r.mode.CTRGladman=function(){var e=r.lib.BlockCipherMode.extend();function a(r){if((r>>24&255)===255){//overflow
|
|
2321
|
+
var e=r>>16&255;var a=r>>8&255;var i=r&255;if(e===255)// overflow b1
|
|
2322
|
+
{e=0;if(a===255){a=0;if(i===255){i=0}else{++i}}else{++a}}else{++e}r=0;r+=e<<16;r+=a<<8;r+=i}else{r+=1<<24}return r}function i(r){if((r[0]=a(r[0]))===0){
|
|
2323
|
+
// encr_data in fileenc.c from Dr Brian Gladman's counts only with DWORD j < 8
|
|
2324
|
+
r[1]=a(r[1])}return r}var t=e.Encryptor=e.extend({processBlock:function(r,e){
|
|
2325
|
+
// Shortcuts
|
|
2326
|
+
var a=this._cipher;var t=a.blockSize;var n=this._iv;var o=this._counter;
|
|
2327
|
+
// Generate keystream
|
|
2328
|
+
if(n){o=this._counter=n.slice(0);
|
|
2329
|
+
// Remove IV for subsequent blocks
|
|
2330
|
+
this._iv=undefined}i(o);var s=o.slice(0);a.encryptBlock(s,0);
|
|
2331
|
+
// Encrypt
|
|
2332
|
+
for(var v=0;v<t;v++){r[e+v]^=s[v]}}});e.Decryptor=t;return e}();return r.mode.CTRGladman}))})(modeCtrGladman$1);return modeCtrGladman$1.exports}var modeOfb$1={exports:{}};var modeOfb=modeOfb$1.exports;var hasRequiredModeOfb;function requireModeOfb(){if(hasRequiredModeOfb)return modeOfb$1.exports;hasRequiredModeOfb=1;(function(r,e){(function(e,a,i){{
|
|
2333
|
+
// CommonJS
|
|
2334
|
+
r.exports=a(requireCore(),requireCipherCore())}})(modeOfb,(function(r){
|
|
2335
|
+
/**
|
|
2336
|
+
* Output Feedback block mode.
|
|
2337
|
+
*/
|
|
2338
|
+
r.mode.OFB=function(){var e=r.lib.BlockCipherMode.extend();var a=e.Encryptor=e.extend({processBlock:function(r,e){
|
|
2339
|
+
// Shortcuts
|
|
2340
|
+
var a=this._cipher;var i=a.blockSize;var t=this._iv;var n=this._keystream;
|
|
2341
|
+
// Generate keystream
|
|
2342
|
+
if(t){n=this._keystream=t.slice(0);
|
|
2343
|
+
// Remove IV for subsequent blocks
|
|
2344
|
+
this._iv=undefined}a.encryptBlock(n,0);
|
|
2345
|
+
// Encrypt
|
|
2346
|
+
for(var o=0;o<i;o++){r[e+o]^=n[o]}}});e.Decryptor=a;return e}();return r.mode.OFB}))})(modeOfb$1);return modeOfb$1.exports}var modeEcb$1={exports:{}};var modeEcb=modeEcb$1.exports;var hasRequiredModeEcb;function requireModeEcb(){if(hasRequiredModeEcb)return modeEcb$1.exports;hasRequiredModeEcb=1;(function(r,e){(function(e,a,i){{
|
|
2347
|
+
// CommonJS
|
|
2348
|
+
r.exports=a(requireCore(),requireCipherCore())}})(modeEcb,(function(r){
|
|
2349
|
+
/**
|
|
2350
|
+
* Electronic Codebook block mode.
|
|
2351
|
+
*/
|
|
2352
|
+
r.mode.ECB=function(){var e=r.lib.BlockCipherMode.extend();e.Encryptor=e.extend({processBlock:function(r,e){this._cipher.encryptBlock(r,e)}});e.Decryptor=e.extend({processBlock:function(r,e){this._cipher.decryptBlock(r,e)}});return e}();return r.mode.ECB}))})(modeEcb$1);return modeEcb$1.exports}var padAnsix923$1={exports:{}};var padAnsix923=padAnsix923$1.exports;var hasRequiredPadAnsix923;function requirePadAnsix923(){if(hasRequiredPadAnsix923)return padAnsix923$1.exports;hasRequiredPadAnsix923=1;(function(r,e){(function(e,a,i){{
|
|
2353
|
+
// CommonJS
|
|
2354
|
+
r.exports=a(requireCore(),requireCipherCore())}})(padAnsix923,(function(r){
|
|
2355
|
+
/**
|
|
2356
|
+
* ANSI X.923 padding strategy.
|
|
2357
|
+
*/
|
|
2358
|
+
r.pad.AnsiX923={pad:function(r,e){
|
|
2359
|
+
// Shortcuts
|
|
2360
|
+
var a=r.sigBytes;var i=e*4;
|
|
2361
|
+
// Count padding bytes
|
|
2362
|
+
var t=i-a%i;
|
|
2363
|
+
// Compute last byte position
|
|
2364
|
+
var n=a+t-1;
|
|
2365
|
+
// Pad
|
|
2366
|
+
r.clamp();r.words[n>>>2]|=t<<24-n%4*8;r.sigBytes+=t},unpad:function(r){
|
|
2367
|
+
// Get number of padding bytes from last byte
|
|
2368
|
+
var e=r.words[r.sigBytes-1>>>2]&255;
|
|
2369
|
+
// Remove padding
|
|
2370
|
+
r.sigBytes-=e}};return r.pad.Ansix923}))})(padAnsix923$1);return padAnsix923$1.exports}var padIso10126$1={exports:{}};var padIso10126=padIso10126$1.exports;var hasRequiredPadIso10126;function requirePadIso10126(){if(hasRequiredPadIso10126)return padIso10126$1.exports;hasRequiredPadIso10126=1;(function(r,e){(function(e,a,i){{
|
|
2371
|
+
// CommonJS
|
|
2372
|
+
r.exports=a(requireCore(),requireCipherCore())}})(padIso10126,(function(r){
|
|
2373
|
+
/**
|
|
2374
|
+
* ISO 10126 padding strategy.
|
|
2375
|
+
*/
|
|
2376
|
+
r.pad.Iso10126={pad:function(e,a){
|
|
2377
|
+
// Shortcut
|
|
2378
|
+
var i=a*4;
|
|
2379
|
+
// Count padding bytes
|
|
2380
|
+
var t=i-e.sigBytes%i;
|
|
2381
|
+
// Pad
|
|
2382
|
+
e.concat(r.lib.WordArray.random(t-1)).concat(r.lib.WordArray.create([t<<24],1))},unpad:function(r){
|
|
2383
|
+
// Get number of padding bytes from last byte
|
|
2384
|
+
var e=r.words[r.sigBytes-1>>>2]&255;
|
|
2385
|
+
// Remove padding
|
|
2386
|
+
r.sigBytes-=e}};return r.pad.Iso10126}))})(padIso10126$1);return padIso10126$1.exports}var padIso97971$1={exports:{}};var padIso97971=padIso97971$1.exports;var hasRequiredPadIso97971;function requirePadIso97971(){if(hasRequiredPadIso97971)return padIso97971$1.exports;hasRequiredPadIso97971=1;(function(r,e){(function(e,a,i){{
|
|
2387
|
+
// CommonJS
|
|
2388
|
+
r.exports=a(requireCore(),requireCipherCore())}})(padIso97971,(function(r){
|
|
2389
|
+
/**
|
|
2390
|
+
* ISO/IEC 9797-1 Padding Method 2.
|
|
2391
|
+
*/
|
|
2392
|
+
r.pad.Iso97971={pad:function(e,a){
|
|
2393
|
+
// Add 0x80 byte
|
|
2394
|
+
e.concat(r.lib.WordArray.create([2147483648],1));
|
|
2395
|
+
// Zero pad the rest
|
|
2396
|
+
r.pad.ZeroPadding.pad(e,a)},unpad:function(e){
|
|
2397
|
+
// Remove zero padding
|
|
2398
|
+
r.pad.ZeroPadding.unpad(e);
|
|
2399
|
+
// Remove one more byte -- the 0x80 byte
|
|
2400
|
+
e.sigBytes--}};return r.pad.Iso97971}))})(padIso97971$1);return padIso97971$1.exports}var padZeropadding$1={exports:{}};var padZeropadding=padZeropadding$1.exports;var hasRequiredPadZeropadding;function requirePadZeropadding(){if(hasRequiredPadZeropadding)return padZeropadding$1.exports;hasRequiredPadZeropadding=1;(function(r,e){(function(e,a,i){{
|
|
2401
|
+
// CommonJS
|
|
2402
|
+
r.exports=a(requireCore(),requireCipherCore())}})(padZeropadding,(function(r){
|
|
2403
|
+
/**
|
|
2404
|
+
* Zero padding strategy.
|
|
2405
|
+
*/
|
|
2406
|
+
r.pad.ZeroPadding={pad:function(r,e){
|
|
2407
|
+
// Shortcut
|
|
2408
|
+
var a=e*4;
|
|
2409
|
+
// Pad
|
|
2410
|
+
r.clamp();r.sigBytes+=a-(r.sigBytes%a||a)},unpad:function(r){
|
|
2411
|
+
// Shortcut
|
|
2412
|
+
var e=r.words;
|
|
2413
|
+
// Unpad
|
|
2414
|
+
var a=r.sigBytes-1;for(var a=r.sigBytes-1;a>=0;a--){if(e[a>>>2]>>>24-a%4*8&255){r.sigBytes=a+1;break}}}};return r.pad.ZeroPadding}))})(padZeropadding$1);return padZeropadding$1.exports}var padNopadding$1={exports:{}};var padNopadding=padNopadding$1.exports;var hasRequiredPadNopadding;function requirePadNopadding(){if(hasRequiredPadNopadding)return padNopadding$1.exports;hasRequiredPadNopadding=1;(function(r,e){(function(e,a,i){{
|
|
2415
|
+
// CommonJS
|
|
2416
|
+
r.exports=a(requireCore(),requireCipherCore())}})(padNopadding,(function(r){
|
|
2417
|
+
/**
|
|
2418
|
+
* A noop padding strategy.
|
|
2419
|
+
*/
|
|
2420
|
+
r.pad.NoPadding={pad:function(){},unpad:function(){}};return r.pad.NoPadding}))})(padNopadding$1);return padNopadding$1.exports}var formatHex$1={exports:{}};var formatHex=formatHex$1.exports;var hasRequiredFormatHex;function requireFormatHex(){if(hasRequiredFormatHex)return formatHex$1.exports;hasRequiredFormatHex=1;(function(r,e){(function(e,a,i){{
|
|
2421
|
+
// CommonJS
|
|
2422
|
+
r.exports=a(requireCore(),requireCipherCore())}})(formatHex,(function(r){(function(e){
|
|
2423
|
+
// Shortcuts
|
|
2424
|
+
var a=r;var i=a.lib;var t=i.CipherParams;var n=a.enc;var o=n.Hex;var s=a.format;s.Hex={
|
|
2425
|
+
/**
|
|
2426
|
+
* Converts the ciphertext of a cipher params object to a hexadecimally encoded string.
|
|
2427
|
+
*
|
|
2428
|
+
* @param {CipherParams} cipherParams The cipher params object.
|
|
2429
|
+
*
|
|
2430
|
+
* @return {string} The hexadecimally encoded string.
|
|
2431
|
+
*
|
|
2432
|
+
* @static
|
|
2433
|
+
*
|
|
2434
|
+
* @example
|
|
2435
|
+
*
|
|
2436
|
+
* var hexString = CryptoJS.format.Hex.stringify(cipherParams);
|
|
2437
|
+
*/
|
|
2438
|
+
stringify:function(r){return r.ciphertext.toString(o)},
|
|
2439
|
+
/**
|
|
2440
|
+
* Converts a hexadecimally encoded ciphertext string to a cipher params object.
|
|
2441
|
+
*
|
|
2442
|
+
* @param {string} input The hexadecimally encoded string.
|
|
2443
|
+
*
|
|
2444
|
+
* @return {CipherParams} The cipher params object.
|
|
2445
|
+
*
|
|
2446
|
+
* @static
|
|
2447
|
+
*
|
|
2448
|
+
* @example
|
|
2449
|
+
*
|
|
2450
|
+
* var cipherParams = CryptoJS.format.Hex.parse(hexString);
|
|
2451
|
+
*/
|
|
2452
|
+
parse:function(r){var e=o.parse(r);return t.create({ciphertext:e})}}})();return r.format.Hex}))})(formatHex$1);return formatHex$1.exports}var aes$1={exports:{}};var aes=aes$1.exports;var hasRequiredAes;function requireAes(){if(hasRequiredAes)return aes$1.exports;hasRequiredAes=1;(function(r,e){(function(e,a,i){{
|
|
2453
|
+
// CommonJS
|
|
2454
|
+
r.exports=a(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore())}})(aes,(function(r){(function(){
|
|
2455
|
+
// Shortcuts
|
|
2456
|
+
var e=r;var a=e.lib;var i=a.BlockCipher;var t=e.algo;
|
|
2457
|
+
// Lookup tables
|
|
2458
|
+
var n=[];var o=[];var s=[];var v=[];var u=[];var f=[];var c=[];var d=[];var h=[];var l=[];
|
|
2459
|
+
// Compute lookup tables
|
|
2460
|
+
(function(){
|
|
2461
|
+
// Compute double table
|
|
2462
|
+
var r=[];for(var e=0;e<256;e++){if(e<128){r[e]=e<<1}else{r[e]=e<<1^283}}
|
|
2463
|
+
// Walk GF(2^8)
|
|
2464
|
+
var a=0;var i=0;for(var e=0;e<256;e++){
|
|
2465
|
+
// Compute sbox
|
|
2466
|
+
var t=i^i<<1^i<<2^i<<3^i<<4;t=t>>>8^t&255^99;n[a]=t;o[t]=a;
|
|
2467
|
+
// Compute multiplication
|
|
2468
|
+
var p=r[a];var m=r[p];var b=r[m];
|
|
2469
|
+
// Compute sub bytes, mix columns tables
|
|
2470
|
+
var g=r[t]*257^t*16843008;s[a]=g<<24|g>>>8;v[a]=g<<16|g>>>16;u[a]=g<<8|g>>>24;f[a]=g;
|
|
2471
|
+
// Compute inv sub bytes, inv mix columns tables
|
|
2472
|
+
var g=b*16843009^m*65537^p*257^a*16843008;c[t]=g<<24|g>>>8;d[t]=g<<16|g>>>16;h[t]=g<<8|g>>>24;l[t]=g;
|
|
2473
|
+
// Compute next counter
|
|
2474
|
+
if(!a){a=i=1}else{a=p^r[r[r[b^p]]];i^=r[r[i]]}}})();
|
|
2475
|
+
// Precomputed Rcon lookup
|
|
2476
|
+
var p=[0,1,2,4,8,16,32,64,128,27,54];
|
|
2477
|
+
/**
|
|
2478
|
+
* AES block cipher algorithm.
|
|
2479
|
+
*/var m=t.AES=i.extend({_doReset:function(){var r;
|
|
2480
|
+
// Skip reset of nRounds has been set before and key did not change
|
|
2481
|
+
if(this._nRounds&&this._keyPriorReset===this._key){return}
|
|
2482
|
+
// Shortcuts
|
|
2483
|
+
var e=this._keyPriorReset=this._key;var a=e.words;var i=e.sigBytes/4;
|
|
2484
|
+
// Compute number of rounds
|
|
2485
|
+
var t=this._nRounds=i+6;
|
|
2486
|
+
// Compute number of key schedule rows
|
|
2487
|
+
var o=(t+1)*4;
|
|
2488
|
+
// Compute key schedule
|
|
2489
|
+
var s=this._keySchedule=[];for(var v=0;v<o;v++){if(v<i){s[v]=a[v]}else{r=s[v-1];if(!(v%i)){
|
|
2490
|
+
// Rot word
|
|
2491
|
+
r=r<<8|r>>>24;
|
|
2492
|
+
// Sub word
|
|
2493
|
+
r=n[r>>>24]<<24|n[r>>>16&255]<<16|n[r>>>8&255]<<8|n[r&255];
|
|
2494
|
+
// Mix Rcon
|
|
2495
|
+
r^=p[v/i|0]<<24}else if(i>6&&v%i==4){
|
|
2496
|
+
// Sub word
|
|
2497
|
+
r=n[r>>>24]<<24|n[r>>>16&255]<<16|n[r>>>8&255]<<8|n[r&255]}s[v]=s[v-i]^r}}
|
|
2498
|
+
// Compute inv key schedule
|
|
2499
|
+
var u=this._invKeySchedule=[];for(var f=0;f<o;f++){var v=o-f;if(f%4){var r=s[v]}else{var r=s[v-4]}if(f<4||v<=4){u[f]=r}else{u[f]=c[n[r>>>24]]^d[n[r>>>16&255]]^h[n[r>>>8&255]]^l[n[r&255]]}}},encryptBlock:function(r,e){this._doCryptBlock(r,e,this._keySchedule,s,v,u,f,n)},decryptBlock:function(r,e){
|
|
2500
|
+
// Swap 2nd and 4th rows
|
|
2501
|
+
var a=r[e+1];r[e+1]=r[e+3];r[e+3]=a;this._doCryptBlock(r,e,this._invKeySchedule,c,d,h,l,o);
|
|
2502
|
+
// Inv swap 2nd and 4th rows
|
|
2503
|
+
var a=r[e+1];r[e+1]=r[e+3];r[e+3]=a},_doCryptBlock:function(r,e,a,i,t,n,o,s){
|
|
2504
|
+
// Shortcut
|
|
2505
|
+
var v=this._nRounds;
|
|
2506
|
+
// Get input, add round key
|
|
2507
|
+
var u=r[e]^a[0];var f=r[e+1]^a[1];var c=r[e+2]^a[2];var d=r[e+3]^a[3];
|
|
2508
|
+
// Key schedule row counter
|
|
2509
|
+
var h=4;
|
|
2510
|
+
// Rounds
|
|
2511
|
+
for(var l=1;l<v;l++){
|
|
2512
|
+
// Shift rows, sub bytes, mix columns, add round key
|
|
2513
|
+
var p=i[u>>>24]^t[f>>>16&255]^n[c>>>8&255]^o[d&255]^a[h++];var m=i[f>>>24]^t[c>>>16&255]^n[d>>>8&255]^o[u&255]^a[h++];var b=i[c>>>24]^t[d>>>16&255]^n[u>>>8&255]^o[f&255]^a[h++];var g=i[d>>>24]^t[u>>>16&255]^n[f>>>8&255]^o[c&255]^a[h++];
|
|
2514
|
+
// Update state
|
|
2515
|
+
u=p;f=m;c=b;d=g}
|
|
2516
|
+
// Shift rows, sub bytes, add round key
|
|
2517
|
+
var p=(s[u>>>24]<<24|s[f>>>16&255]<<16|s[c>>>8&255]<<8|s[d&255])^a[h++];var m=(s[f>>>24]<<24|s[c>>>16&255]<<16|s[d>>>8&255]<<8|s[u&255])^a[h++];var b=(s[c>>>24]<<24|s[d>>>16&255]<<16|s[u>>>8&255]<<8|s[f&255])^a[h++];var g=(s[d>>>24]<<24|s[u>>>16&255]<<16|s[f>>>8&255]<<8|s[c&255])^a[h++];
|
|
2518
|
+
// Set output
|
|
2519
|
+
r[e]=p;r[e+1]=m;r[e+2]=b;r[e+3]=g},keySize:256/32});
|
|
2520
|
+
/**
|
|
2521
|
+
* Shortcut functions to the cipher's object interface.
|
|
2522
|
+
*
|
|
2523
|
+
* @example
|
|
2524
|
+
*
|
|
2525
|
+
* var ciphertext = CryptoJS.AES.encrypt(message, key, cfg);
|
|
2526
|
+
* var plaintext = CryptoJS.AES.decrypt(ciphertext, key, cfg);
|
|
2527
|
+
*/e.AES=i._createHelper(m)})();return r.AES}))})(aes$1);return aes$1.exports}var tripledes$1={exports:{}};var tripledes=tripledes$1.exports;var hasRequiredTripledes;function requireTripledes(){if(hasRequiredTripledes)return tripledes$1.exports;hasRequiredTripledes=1;(function(r,e){(function(e,a,i){{
|
|
2528
|
+
// CommonJS
|
|
2529
|
+
r.exports=a(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore())}})(tripledes,(function(r){(function(){
|
|
2530
|
+
// Shortcuts
|
|
2531
|
+
var e=r;var a=e.lib;var i=a.WordArray;var t=a.BlockCipher;var n=e.algo;
|
|
2532
|
+
// Permuted Choice 1 constants
|
|
2533
|
+
var o=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4];
|
|
2534
|
+
// Permuted Choice 2 constants
|
|
2535
|
+
var s=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32];
|
|
2536
|
+
// Cumulative bit shift constants
|
|
2537
|
+
var v=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28];
|
|
2538
|
+
// SBOXes and round permutation constants
|
|
2539
|
+
var u=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}];
|
|
2540
|
+
// Masks that select the SBOX input
|
|
2541
|
+
var f=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679];
|
|
2542
|
+
/**
|
|
2543
|
+
* DES block cipher algorithm.
|
|
2544
|
+
*/var c=n.DES=t.extend({_doReset:function(){
|
|
2545
|
+
// Shortcuts
|
|
2546
|
+
var r=this._key;var e=r.words;
|
|
2547
|
+
// Select 56 bits according to PC1
|
|
2548
|
+
var a=[];for(var i=0;i<56;i++){var t=o[i]-1;a[i]=e[t>>>5]>>>31-t%32&1}
|
|
2549
|
+
// Assemble 16 subkeys
|
|
2550
|
+
var n=this._subKeys=[];for(var u=0;u<16;u++){
|
|
2551
|
+
// Create subkey
|
|
2552
|
+
var f=n[u]=[];
|
|
2553
|
+
// Shortcut
|
|
2554
|
+
var c=v[u];
|
|
2555
|
+
// Select 48 bits according to PC2
|
|
2556
|
+
for(var i=0;i<24;i++){
|
|
2557
|
+
// Select from the left 28 key bits
|
|
2558
|
+
f[i/6|0]|=a[(s[i]-1+c)%28]<<31-i%6;
|
|
2559
|
+
// Select from the right 28 key bits
|
|
2560
|
+
f[4+(i/6|0)]|=a[28+(s[i+24]-1+c)%28]<<31-i%6}
|
|
2561
|
+
// Since each subkey is applied to an expanded 32-bit input,
|
|
2562
|
+
// the subkey can be broken into 8 values scaled to 32-bits,
|
|
2563
|
+
// which allows the key to be used without expansion
|
|
2564
|
+
f[0]=f[0]<<1|f[0]>>>31;for(var i=1;i<7;i++){f[i]=f[i]>>>(i-1)*4+3}f[7]=f[7]<<5|f[7]>>>27}
|
|
2565
|
+
// Compute inverse subkeys
|
|
2566
|
+
var d=this._invSubKeys=[];for(var i=0;i<16;i++){d[i]=n[15-i]}},encryptBlock:function(r,e){this._doCryptBlock(r,e,this._subKeys)},decryptBlock:function(r,e){this._doCryptBlock(r,e,this._invSubKeys)},_doCryptBlock:function(r,e,a){
|
|
2567
|
+
// Get input
|
|
2568
|
+
this._lBlock=r[e];this._rBlock=r[e+1];
|
|
2569
|
+
// Initial permutation
|
|
2570
|
+
d.call(this,4,252645135);d.call(this,16,65535);h.call(this,2,858993459);h.call(this,8,16711935);d.call(this,1,1431655765);
|
|
2571
|
+
// Rounds
|
|
2572
|
+
for(var i=0;i<16;i++){
|
|
2573
|
+
// Shortcuts
|
|
2574
|
+
var t=a[i];var n=this._lBlock;var o=this._rBlock;
|
|
2575
|
+
// Feistel function
|
|
2576
|
+
var s=0;for(var v=0;v<8;v++){s|=u[v][((o^t[v])&f[v])>>>0]}this._lBlock=o;this._rBlock=n^s}
|
|
2577
|
+
// Undo swap from last round
|
|
2578
|
+
var c=this._lBlock;this._lBlock=this._rBlock;this._rBlock=c;
|
|
2579
|
+
// Final permutation
|
|
2580
|
+
d.call(this,1,1431655765);h.call(this,8,16711935);h.call(this,2,858993459);d.call(this,16,65535);d.call(this,4,252645135);
|
|
2581
|
+
// Set output
|
|
2582
|
+
r[e]=this._lBlock;r[e+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});
|
|
2583
|
+
// Swap bits across the left and right words
|
|
2584
|
+
function d(r,e){var a=(this._lBlock>>>r^this._rBlock)&e;this._rBlock^=a;this._lBlock^=a<<r}function h(r,e){var a=(this._rBlock>>>r^this._lBlock)&e;this._lBlock^=a;this._rBlock^=a<<r}
|
|
2585
|
+
/**
|
|
2586
|
+
* Shortcut functions to the cipher's object interface.
|
|
2587
|
+
*
|
|
2588
|
+
* @example
|
|
2589
|
+
*
|
|
2590
|
+
* var ciphertext = CryptoJS.DES.encrypt(message, key, cfg);
|
|
2591
|
+
* var plaintext = CryptoJS.DES.decrypt(ciphertext, key, cfg);
|
|
2592
|
+
*/e.DES=t._createHelper(c);
|
|
2593
|
+
/**
|
|
2594
|
+
* Triple-DES block cipher algorithm.
|
|
2595
|
+
*/var l=n.TripleDES=t.extend({_doReset:function(){
|
|
2596
|
+
// Shortcuts
|
|
2597
|
+
var r=this._key;var e=r.words;
|
|
2598
|
+
// Make sure the key length is valid (64, 128 or >= 192 bit)
|
|
2599
|
+
if(e.length!==2&&e.length!==4&&e.length<6){throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.")}
|
|
2600
|
+
// Extend the key according to the keying options defined in 3DES standard
|
|
2601
|
+
var a=e.slice(0,2);var t=e.length<4?e.slice(0,2):e.slice(2,4);var n=e.length<6?e.slice(0,2):e.slice(4,6);
|
|
2602
|
+
// Create DES instances
|
|
2603
|
+
this._des1=c.createEncryptor(i.create(a));this._des2=c.createEncryptor(i.create(t));this._des3=c.createEncryptor(i.create(n))},encryptBlock:function(r,e){this._des1.encryptBlock(r,e);this._des2.decryptBlock(r,e);this._des3.encryptBlock(r,e)},decryptBlock:function(r,e){this._des3.decryptBlock(r,e);this._des2.encryptBlock(r,e);this._des1.decryptBlock(r,e)},keySize:192/32,ivSize:64/32,blockSize:64/32});
|
|
2604
|
+
/**
|
|
2605
|
+
* Shortcut functions to the cipher's object interface.
|
|
2606
|
+
*
|
|
2607
|
+
* @example
|
|
2608
|
+
*
|
|
2609
|
+
* var ciphertext = CryptoJS.TripleDES.encrypt(message, key, cfg);
|
|
2610
|
+
* var plaintext = CryptoJS.TripleDES.decrypt(ciphertext, key, cfg);
|
|
2611
|
+
*/e.TripleDES=t._createHelper(l)})();return r.TripleDES}))})(tripledes$1);return tripledes$1.exports}var rc4$1={exports:{}};var rc4=rc4$1.exports;var hasRequiredRc4;function requireRc4(){if(hasRequiredRc4)return rc4$1.exports;hasRequiredRc4=1;(function(r,e){(function(e,a,i){{
|
|
2612
|
+
// CommonJS
|
|
2613
|
+
r.exports=a(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore())}})(rc4,(function(r){(function(){
|
|
2614
|
+
// Shortcuts
|
|
2615
|
+
var e=r;var a=e.lib;var i=a.StreamCipher;var t=e.algo;
|
|
2616
|
+
/**
|
|
2617
|
+
* RC4 stream cipher algorithm.
|
|
2618
|
+
*/var n=t.RC4=i.extend({_doReset:function(){
|
|
2619
|
+
// Shortcuts
|
|
2620
|
+
var r=this._key;var e=r.words;var a=r.sigBytes;
|
|
2621
|
+
// Init sbox
|
|
2622
|
+
var i=this._S=[];for(var t=0;t<256;t++){i[t]=t}
|
|
2623
|
+
// Key setup
|
|
2624
|
+
for(var t=0,n=0;t<256;t++){var o=t%a;var s=e[o>>>2]>>>24-o%4*8&255;n=(n+i[t]+s)%256;
|
|
2625
|
+
// Swap
|
|
2626
|
+
var v=i[t];i[t]=i[n];i[n]=v}
|
|
2627
|
+
// Counters
|
|
2628
|
+
this._i=this._j=0},_doProcessBlock:function(r,e){r[e]^=o.call(this)},keySize:256/32,ivSize:0});function o(){
|
|
2629
|
+
// Shortcuts
|
|
2630
|
+
var r=this._S;var e=this._i;var a=this._j;
|
|
2631
|
+
// Generate keystream word
|
|
2632
|
+
var i=0;for(var t=0;t<4;t++){e=(e+1)%256;a=(a+r[e])%256;
|
|
2633
|
+
// Swap
|
|
2634
|
+
var n=r[e];r[e]=r[a];r[a]=n;i|=r[(r[e]+r[a])%256]<<24-t*8}
|
|
2635
|
+
// Update counters
|
|
2636
|
+
this._i=e;this._j=a;return i}
|
|
2637
|
+
/**
|
|
2638
|
+
* Shortcut functions to the cipher's object interface.
|
|
2639
|
+
*
|
|
2640
|
+
* @example
|
|
2641
|
+
*
|
|
2642
|
+
* var ciphertext = CryptoJS.RC4.encrypt(message, key, cfg);
|
|
2643
|
+
* var plaintext = CryptoJS.RC4.decrypt(ciphertext, key, cfg);
|
|
2644
|
+
*/e.RC4=i._createHelper(n);
|
|
2645
|
+
/**
|
|
2646
|
+
* Modified RC4 stream cipher algorithm.
|
|
2647
|
+
*/var s=t.RC4Drop=n.extend({
|
|
2648
|
+
/**
|
|
2649
|
+
* Configuration options.
|
|
2650
|
+
*
|
|
2651
|
+
* @property {number} drop The number of keystream words to drop. Default 192
|
|
2652
|
+
*/
|
|
2653
|
+
cfg:n.cfg.extend({drop:192}),_doReset:function(){n._doReset.call(this);
|
|
2654
|
+
// Drop
|
|
2655
|
+
for(var r=this.cfg.drop;r>0;r--){o.call(this)}}});
|
|
2656
|
+
/**
|
|
2657
|
+
* Shortcut functions to the cipher's object interface.
|
|
2658
|
+
*
|
|
2659
|
+
* @example
|
|
2660
|
+
*
|
|
2661
|
+
* var ciphertext = CryptoJS.RC4Drop.encrypt(message, key, cfg);
|
|
2662
|
+
* var plaintext = CryptoJS.RC4Drop.decrypt(ciphertext, key, cfg);
|
|
2663
|
+
*/e.RC4Drop=i._createHelper(s)})();return r.RC4}))})(rc4$1);return rc4$1.exports}var rabbit$1={exports:{}};var rabbit=rabbit$1.exports;var hasRequiredRabbit;function requireRabbit(){if(hasRequiredRabbit)return rabbit$1.exports;hasRequiredRabbit=1;(function(r,e){(function(e,a,i){{
|
|
2664
|
+
// CommonJS
|
|
2665
|
+
r.exports=a(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore())}})(rabbit,(function(r){(function(){
|
|
2666
|
+
// Shortcuts
|
|
2667
|
+
var e=r;var a=e.lib;var i=a.StreamCipher;var t=e.algo;
|
|
2668
|
+
// Reusable objects
|
|
2669
|
+
var n=[];var o=[];var s=[];
|
|
2670
|
+
/**
|
|
2671
|
+
* Rabbit stream cipher algorithm
|
|
2672
|
+
*/var v=t.Rabbit=i.extend({_doReset:function(){
|
|
2673
|
+
// Shortcuts
|
|
2674
|
+
var r=this._key.words;var e=this.cfg.iv;
|
|
2675
|
+
// Swap endian
|
|
2676
|
+
for(var a=0;a<4;a++){r[a]=(r[a]<<8|r[a]>>>24)&16711935|(r[a]<<24|r[a]>>>8)&4278255360}
|
|
2677
|
+
// Generate initial state values
|
|
2678
|
+
var i=this._X=[r[0],r[3]<<16|r[2]>>>16,r[1],r[0]<<16|r[3]>>>16,r[2],r[1]<<16|r[0]>>>16,r[3],r[2]<<16|r[1]>>>16];
|
|
2679
|
+
// Generate initial counter values
|
|
2680
|
+
var t=this._C=[r[2]<<16|r[2]>>>16,r[0]&4294901760|r[1]&65535,r[3]<<16|r[3]>>>16,r[1]&4294901760|r[2]&65535,r[0]<<16|r[0]>>>16,r[2]&4294901760|r[3]&65535,r[1]<<16|r[1]>>>16,r[3]&4294901760|r[0]&65535];
|
|
2681
|
+
// Carry bit
|
|
2682
|
+
this._b=0;
|
|
2683
|
+
// Iterate the system four times
|
|
2684
|
+
for(var a=0;a<4;a++){u.call(this)}
|
|
2685
|
+
// Modify the counters
|
|
2686
|
+
for(var a=0;a<8;a++){t[a]^=i[a+4&7]}
|
|
2687
|
+
// IV setup
|
|
2688
|
+
if(e){
|
|
2689
|
+
// Shortcuts
|
|
2690
|
+
var n=e.words;var o=n[0];var s=n[1];
|
|
2691
|
+
// Generate four subvectors
|
|
2692
|
+
var v=(o<<8|o>>>24)&16711935|(o<<24|o>>>8)&4278255360;var f=(s<<8|s>>>24)&16711935|(s<<24|s>>>8)&4278255360;var c=v>>>16|f&4294901760;var d=f<<16|v&65535;
|
|
2693
|
+
// Modify counter values
|
|
2694
|
+
t[0]^=v;t[1]^=c;t[2]^=f;t[3]^=d;t[4]^=v;t[5]^=c;t[6]^=f;t[7]^=d;
|
|
2695
|
+
// Iterate the system four times
|
|
2696
|
+
for(var a=0;a<4;a++){u.call(this)}}},_doProcessBlock:function(r,e){
|
|
2697
|
+
// Shortcut
|
|
2698
|
+
var a=this._X;
|
|
2699
|
+
// Iterate the system
|
|
2700
|
+
u.call(this);
|
|
2701
|
+
// Generate four keystream words
|
|
2702
|
+
n[0]=a[0]^a[5]>>>16^a[3]<<16;n[1]=a[2]^a[7]>>>16^a[5]<<16;n[2]=a[4]^a[1]>>>16^a[7]<<16;n[3]=a[6]^a[3]>>>16^a[1]<<16;for(var i=0;i<4;i++){
|
|
2703
|
+
// Swap endian
|
|
2704
|
+
n[i]=(n[i]<<8|n[i]>>>24)&16711935|(n[i]<<24|n[i]>>>8)&4278255360;
|
|
2705
|
+
// Encrypt
|
|
2706
|
+
r[e+i]^=n[i]}},blockSize:128/32,ivSize:64/32});function u(){
|
|
2707
|
+
// Shortcuts
|
|
2708
|
+
var r=this._X;var e=this._C;
|
|
2709
|
+
// Save old counter values
|
|
2710
|
+
for(var a=0;a<8;a++){o[a]=e[a]}
|
|
2711
|
+
// Calculate new counter values
|
|
2712
|
+
e[0]=e[0]+1295307597+this._b|0;e[1]=e[1]+3545052371+(e[0]>>>0<o[0]>>>0?1:0)|0;e[2]=e[2]+886263092+(e[1]>>>0<o[1]>>>0?1:0)|0;e[3]=e[3]+1295307597+(e[2]>>>0<o[2]>>>0?1:0)|0;e[4]=e[4]+3545052371+(e[3]>>>0<o[3]>>>0?1:0)|0;e[5]=e[5]+886263092+(e[4]>>>0<o[4]>>>0?1:0)|0;e[6]=e[6]+1295307597+(e[5]>>>0<o[5]>>>0?1:0)|0;e[7]=e[7]+3545052371+(e[6]>>>0<o[6]>>>0?1:0)|0;this._b=e[7]>>>0<o[7]>>>0?1:0;
|
|
2713
|
+
// Calculate the g-values
|
|
2714
|
+
for(var a=0;a<8;a++){var i=r[a]+e[a];
|
|
2715
|
+
// Construct high and low argument for squaring
|
|
2716
|
+
var t=i&65535;var n=i>>>16;
|
|
2717
|
+
// Calculate high and low result of squaring
|
|
2718
|
+
var v=((t*t>>>17)+t*n>>>15)+n*n;var u=((i&4294901760)*i|0)+((i&65535)*i|0);
|
|
2719
|
+
// High XOR low
|
|
2720
|
+
s[a]=v^u}
|
|
2721
|
+
// Calculate new state values
|
|
2722
|
+
r[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|0;r[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0;r[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|s[0]>>>16)|0;r[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0;r[4]=s[4]+(s[3]<<16|s[3]>>>16)+(s[2]<<16|s[2]>>>16)|0;r[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0;r[6]=s[6]+(s[5]<<16|s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0;r[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|0}
|
|
2723
|
+
/**
|
|
2724
|
+
* Shortcut functions to the cipher's object interface.
|
|
2725
|
+
*
|
|
2726
|
+
* @example
|
|
2727
|
+
*
|
|
2728
|
+
* var ciphertext = CryptoJS.Rabbit.encrypt(message, key, cfg);
|
|
2729
|
+
* var plaintext = CryptoJS.Rabbit.decrypt(ciphertext, key, cfg);
|
|
2730
|
+
*/e.Rabbit=i._createHelper(v)})();return r.Rabbit}))})(rabbit$1);return rabbit$1.exports}var rabbitLegacy$1={exports:{}};var rabbitLegacy=rabbitLegacy$1.exports;var hasRequiredRabbitLegacy;function requireRabbitLegacy(){if(hasRequiredRabbitLegacy)return rabbitLegacy$1.exports;hasRequiredRabbitLegacy=1;(function(r,e){(function(e,a,i){{
|
|
2731
|
+
// CommonJS
|
|
2732
|
+
r.exports=a(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore())}})(rabbitLegacy,(function(r){(function(){
|
|
2733
|
+
// Shortcuts
|
|
2734
|
+
var e=r;var a=e.lib;var i=a.StreamCipher;var t=e.algo;
|
|
2735
|
+
// Reusable objects
|
|
2736
|
+
var n=[];var o=[];var s=[];
|
|
2737
|
+
/**
|
|
2738
|
+
* Rabbit stream cipher algorithm.
|
|
2739
|
+
*
|
|
2740
|
+
* This is a legacy version that neglected to convert the key to little-endian.
|
|
2741
|
+
* This error doesn't affect the cipher's security,
|
|
2742
|
+
* but it does affect its compatibility with other implementations.
|
|
2743
|
+
*/var v=t.RabbitLegacy=i.extend({_doReset:function(){
|
|
2744
|
+
// Shortcuts
|
|
2745
|
+
var r=this._key.words;var e=this.cfg.iv;
|
|
2746
|
+
// Generate initial state values
|
|
2747
|
+
var a=this._X=[r[0],r[3]<<16|r[2]>>>16,r[1],r[0]<<16|r[3]>>>16,r[2],r[1]<<16|r[0]>>>16,r[3],r[2]<<16|r[1]>>>16];
|
|
2748
|
+
// Generate initial counter values
|
|
2749
|
+
var i=this._C=[r[2]<<16|r[2]>>>16,r[0]&4294901760|r[1]&65535,r[3]<<16|r[3]>>>16,r[1]&4294901760|r[2]&65535,r[0]<<16|r[0]>>>16,r[2]&4294901760|r[3]&65535,r[1]<<16|r[1]>>>16,r[3]&4294901760|r[0]&65535];
|
|
2750
|
+
// Carry bit
|
|
2751
|
+
this._b=0;
|
|
2752
|
+
// Iterate the system four times
|
|
2753
|
+
for(var t=0;t<4;t++){u.call(this)}
|
|
2754
|
+
// Modify the counters
|
|
2755
|
+
for(var t=0;t<8;t++){i[t]^=a[t+4&7]}
|
|
2756
|
+
// IV setup
|
|
2757
|
+
if(e){
|
|
2758
|
+
// Shortcuts
|
|
2759
|
+
var n=e.words;var o=n[0];var s=n[1];
|
|
2760
|
+
// Generate four subvectors
|
|
2761
|
+
var v=(o<<8|o>>>24)&16711935|(o<<24|o>>>8)&4278255360;var f=(s<<8|s>>>24)&16711935|(s<<24|s>>>8)&4278255360;var c=v>>>16|f&4294901760;var d=f<<16|v&65535;
|
|
2762
|
+
// Modify counter values
|
|
2763
|
+
i[0]^=v;i[1]^=c;i[2]^=f;i[3]^=d;i[4]^=v;i[5]^=c;i[6]^=f;i[7]^=d;
|
|
2764
|
+
// Iterate the system four times
|
|
2765
|
+
for(var t=0;t<4;t++){u.call(this)}}},_doProcessBlock:function(r,e){
|
|
2766
|
+
// Shortcut
|
|
2767
|
+
var a=this._X;
|
|
2768
|
+
// Iterate the system
|
|
2769
|
+
u.call(this);
|
|
2770
|
+
// Generate four keystream words
|
|
2771
|
+
n[0]=a[0]^a[5]>>>16^a[3]<<16;n[1]=a[2]^a[7]>>>16^a[5]<<16;n[2]=a[4]^a[1]>>>16^a[7]<<16;n[3]=a[6]^a[3]>>>16^a[1]<<16;for(var i=0;i<4;i++){
|
|
2772
|
+
// Swap endian
|
|
2773
|
+
n[i]=(n[i]<<8|n[i]>>>24)&16711935|(n[i]<<24|n[i]>>>8)&4278255360;
|
|
2774
|
+
// Encrypt
|
|
2775
|
+
r[e+i]^=n[i]}},blockSize:128/32,ivSize:64/32});function u(){
|
|
2776
|
+
// Shortcuts
|
|
2777
|
+
var r=this._X;var e=this._C;
|
|
2778
|
+
// Save old counter values
|
|
2779
|
+
for(var a=0;a<8;a++){o[a]=e[a]}
|
|
2780
|
+
// Calculate new counter values
|
|
2781
|
+
e[0]=e[0]+1295307597+this._b|0;e[1]=e[1]+3545052371+(e[0]>>>0<o[0]>>>0?1:0)|0;e[2]=e[2]+886263092+(e[1]>>>0<o[1]>>>0?1:0)|0;e[3]=e[3]+1295307597+(e[2]>>>0<o[2]>>>0?1:0)|0;e[4]=e[4]+3545052371+(e[3]>>>0<o[3]>>>0?1:0)|0;e[5]=e[5]+886263092+(e[4]>>>0<o[4]>>>0?1:0)|0;e[6]=e[6]+1295307597+(e[5]>>>0<o[5]>>>0?1:0)|0;e[7]=e[7]+3545052371+(e[6]>>>0<o[6]>>>0?1:0)|0;this._b=e[7]>>>0<o[7]>>>0?1:0;
|
|
2782
|
+
// Calculate the g-values
|
|
2783
|
+
for(var a=0;a<8;a++){var i=r[a]+e[a];
|
|
2784
|
+
// Construct high and low argument for squaring
|
|
2785
|
+
var t=i&65535;var n=i>>>16;
|
|
2786
|
+
// Calculate high and low result of squaring
|
|
2787
|
+
var v=((t*t>>>17)+t*n>>>15)+n*n;var u=((i&4294901760)*i|0)+((i&65535)*i|0);
|
|
2788
|
+
// High XOR low
|
|
2789
|
+
s[a]=v^u}
|
|
2790
|
+
// Calculate new state values
|
|
2791
|
+
r[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|0;r[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0;r[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|s[0]>>>16)|0;r[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0;r[4]=s[4]+(s[3]<<16|s[3]>>>16)+(s[2]<<16|s[2]>>>16)|0;r[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0;r[6]=s[6]+(s[5]<<16|s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0;r[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|0}
|
|
2792
|
+
/**
|
|
2793
|
+
* Shortcut functions to the cipher's object interface.
|
|
2794
|
+
*
|
|
2795
|
+
* @example
|
|
2796
|
+
*
|
|
2797
|
+
* var ciphertext = CryptoJS.RabbitLegacy.encrypt(message, key, cfg);
|
|
2798
|
+
* var plaintext = CryptoJS.RabbitLegacy.decrypt(ciphertext, key, cfg);
|
|
2799
|
+
*/e.RabbitLegacy=i._createHelper(v)})();return r.RabbitLegacy}))})(rabbitLegacy$1);return rabbitLegacy$1.exports}var blowfish$1={exports:{}};var blowfish=blowfish$1.exports;var hasRequiredBlowfish;function requireBlowfish(){if(hasRequiredBlowfish)return blowfish$1.exports;hasRequiredBlowfish=1;(function(r,e){(function(e,a,i){{
|
|
2800
|
+
// CommonJS
|
|
2801
|
+
r.exports=a(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore())}})(blowfish,(function(r){(function(){
|
|
2802
|
+
// Shortcuts
|
|
2803
|
+
var e=r;var a=e.lib;var i=a.BlockCipher;var t=e.algo;var n=16;
|
|
2804
|
+
//Origin pbox and sbox, derived from PI
|
|
2805
|
+
var o=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731];var s=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var v={pbox:[],sbox:[]};function u(r,e){var a=e>>24&255;var i=e>>16&255;var t=e>>8&255;var n=e&255;var o=r.sbox[0][a]+r.sbox[1][i];o=o^r.sbox[2][t];o=o+r.sbox[3][n];return o}function f(r,e,a){var i=e;var t=a;var o;for(var s=0;s<n;++s){i=i^r.pbox[s];t=u(r,i)^t;o=i;i=t;t=o}o=i;i=t;t=o;t=t^r.pbox[n];i=i^r.pbox[n+1];return{left:i,right:t}}function c(r,e,a){var i=e;var t=a;var o;for(var s=n+1;s>1;--s){i=i^r.pbox[s];t=u(r,i)^t;o=i;i=t;t=o}o=i;i=t;t=o;t=t^r.pbox[1];i=i^r.pbox[0];return{left:i,right:t}}
|
|
2806
|
+
/**
|
|
2807
|
+
* Initialization ctx's pbox and sbox.
|
|
2808
|
+
*
|
|
2809
|
+
* @param {Object} ctx The object has pbox and sbox.
|
|
2810
|
+
* @param {Array} key An array of 32-bit words.
|
|
2811
|
+
* @param {int} keysize The length of the key.
|
|
2812
|
+
*
|
|
2813
|
+
* @example
|
|
2814
|
+
*
|
|
2815
|
+
* BlowFishInit(BLOWFISH_CTX, key, 128/32);
|
|
2816
|
+
*/function d(r,e,a){for(var i=0;i<4;i++){r.sbox[i]=[];for(var t=0;t<256;t++){r.sbox[i][t]=s[i][t]}}var v=0;for(var u=0;u<n+2;u++){r.pbox[u]=o[u]^e[v];v++;if(v>=a){v=0}}var c=0;var d=0;var h=0;for(var l=0;l<n+2;l+=2){h=f(r,c,d);c=h.left;d=h.right;r.pbox[l]=c;r.pbox[l+1]=d}for(var l=0;l<4;l++){for(var p=0;p<256;p+=2){h=f(r,c,d);c=h.left;d=h.right;r.sbox[l][p]=c;r.sbox[l][p+1]=d}}return true}
|
|
2817
|
+
/**
|
|
2818
|
+
* Blowfish block cipher algorithm.
|
|
2819
|
+
*/var h=t.Blowfish=i.extend({_doReset:function(){
|
|
2820
|
+
// Skip reset of nRounds has been set before and key did not change
|
|
2821
|
+
if(this._keyPriorReset===this._key){return}
|
|
2822
|
+
// Shortcuts
|
|
2823
|
+
var r=this._keyPriorReset=this._key;var e=r.words;var a=r.sigBytes/4;
|
|
2824
|
+
//Initialization pbox and sbox
|
|
2825
|
+
d(v,e,a)},encryptBlock:function(r,e){var a=f(v,r[e],r[e+1]);r[e]=a.left;r[e+1]=a.right},decryptBlock:function(r,e){var a=c(v,r[e],r[e+1]);r[e]=a.left;r[e+1]=a.right},blockSize:64/32,keySize:128/32,ivSize:64/32});
|
|
2826
|
+
/**
|
|
2827
|
+
* Shortcut functions to the cipher's object interface.
|
|
2828
|
+
*
|
|
2829
|
+
* @example
|
|
2830
|
+
*
|
|
2831
|
+
* var ciphertext = CryptoJS.Blowfish.encrypt(message, key, cfg);
|
|
2832
|
+
* var plaintext = CryptoJS.Blowfish.decrypt(ciphertext, key, cfg);
|
|
2833
|
+
*/e.Blowfish=i._createHelper(h)})();return r.Blowfish}))})(blowfish$1);return blowfish$1.exports}var cryptoJs=cryptoJs$1.exports;var hasRequiredCryptoJs;function requireCryptoJs(){if(hasRequiredCryptoJs)return cryptoJs$1.exports;hasRequiredCryptoJs=1;(function(r,e){(function(e,a,i){{
|
|
2834
|
+
// CommonJS
|
|
2835
|
+
r.exports=a(requireCore(),requireX64Core(),requireLibTypedarrays(),requireEncUtf16(),requireEncBase64(),requireEncBase64url(),requireMd5(),requireSha1(),requireSha256(),requireSha224(),requireSha512(),requireSha384(),requireSha3(),requireRipemd160(),requireHmac(),requirePbkdf2(),requireEvpkdf(),requireCipherCore(),requireModeCfb(),requireModeCtr(),requireModeCtrGladman(),requireModeOfb(),requireModeEcb(),requirePadAnsix923(),requirePadIso10126(),requirePadIso97971(),requirePadZeropadding(),requirePadNopadding(),requireFormatHex(),requireAes(),requireTripledes(),requireRc4(),requireRabbit(),requireRabbitLegacy(),requireBlowfish())}})(cryptoJs,(function(r){return r}))})(cryptoJs$1);return cryptoJs$1.exports}var cryptoJsExports=requireCryptoJs();var miBaselineFileDownloadDone='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M5 18h14v2H5v-2zm4.6-2.7L5 10.7l2-1.9l2.6 2.6L17 4l2 2l-9.4 9.3z"/></svg>';var miOutlineFileDownload='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3h-2zm-1-4l-1.41-1.41L13 12.17V4h-2v8.17L8.41 9.59L7 11l5 5l5-5z"/></svg>';var alreadyDownloaded$3="Έχετε ήδη κατεβάσει αυτό το αρχείο";var localeEl={alreadyDownloaded:alreadyDownloaded$3};var alreadyDownloaded$2="You have already downloaded this file";var localeEn={alreadyDownloaded:alreadyDownloaded$2};var alreadyDownloaded$1="Ya has descargado este archivo";var localeEs={alreadyDownloaded:alreadyDownloaded$1};var alreadyDownloaded="Hai già scaricato questo file";var localeIt={alreadyDownloaded:alreadyDownloaded};var mdsFileCss=function(){return"@layer reset,vendor,theme,base,components,utilities;@keyframes focus-bounce{0%,75%,to{outline-offset:var(--magma-outline-focus-offset,2px)}50%{outline-offset:var(--magma-outline-blur-offset,6px)}}:host(:not(:is([hydrated],.hydrated))),:is(mds-badge,mds-icon,mds-text):not(:is([hydrated],.hydrated)){animation-duration:0s;border-color:#0000;box-shadow:0 0 #0000;opacity:0;outline-color:#0000;transition-delay:.1s;transition-duration:0s;visibility:hidden}:host{--mds-file-preview-icon-color:rgb(var(--magma-text-subtle,var(--magma-tint-text-subtle,var(--text-neutral-subtle,99 99 99))));--mds-file-preview-color:rgb(var(--magma-text-subtle,var(--magma-tint-text-subtle,var(--text-neutral-subtle,99 99 99))));--mds-file-preview-icon-background:rgb(var(--magma-wash-soft,var(--magma-tint-scale-10,var(--tone-neutral-10,237 237 237))));--mds-file-transition-duration:var(--duration-200,.2s);--private-file-transition-duration:var(--mds-file-transition-duration);--private-icon-download-offset:10%;animation-duration:var(--magma-outline-animation-duration,1s);animation-fill-mode:forwards;animation-iteration-count:infinite;animation-name:focus-bounce;animation-play-state:paused;animation-timing-function:var(--ease-out,cubic-bezier(0,0,.2,1));background-color:rgb(var(--magma-surface-raised,var(--magma-tint-raised,var(--surface-neutral-raised,248 248 248))));border-radius:var(--magma-radius-xl,var(--radius-squircle-xl,36px));-webkit-box-shadow:var(--shadow-outline-weak,0 0 0 1px #0000000d,0 1px 2px 0 #0000000d);box-shadow:var(--shadow-outline-weak,0 0 0 1px #0000000d,0 1px 2px 0 #0000000d);color:rgb(var(--magma-text-subtle,var(--magma-tint-text-subtle,var(--text-neutral-subtle,99 99 99))));outline:var(--magma-outline-blur,2px solid var(--magma-outline-blur-color,#0000));transition-duration:.2s;transition-property:background-color,border-color,box-shadow,color,fill,outline,outline-offset,transform;transition-timing-function:ease-in-out;corner-shape:var(--magma-corner-shape,squircle);align-items:stretch;cursor:pointer;display:inline-flex;overflow:hidden;-webkit-transition-duration:var(--private-file-transition-duration);transition-duration:var(--private-file-transition-duration);transition-property:box-shadow,outline,outline-offset;-webkit-transition-timing-function:var(--ease-out);transition-timing-function:var(--ease-out);width:100%}:host:focus-visible{--magma-outline-blur:var(--magma-outline-focus);animation-play-state:running}:host(:focus-visible){--magma-outline-blur:var(--magma-outline-focus);animation-play-state:running}:host(:hover){-webkit-box-shadow:var(--shadow-box-md,#0000000f 0 0 0 1px,#00000008 0 1px 1px -.5px,#0000000a 0 2px 2px -1px,#0000000a 0 3px 3px -1.5px,#00000008 0 5px 5px -2.5px,#00000008 0 10px 10px -5px,#00000008 0 24px 24px -8px);box-shadow:var(--shadow-box-md,#0000000f 0 0 0 1px,#00000008 0 1px 1px -.5px,#0000000a 0 2px 2px -1px,#0000000a 0 3px 3px -1.5px,#00000008 0 5px 5px -2.5px,#00000008 0 10px 10px -5px,#00000008 0 24px 24px -8px)}:host(:hover) .download-icon{opacity:1;transform:translateY(0)}:host(:hover) :is(.icon-preview,.image-preview){opacity:0;-webkit-transform:translateY(var(--private-icon-download-offset));transform:translateY(var(--private-icon-download-offset))}.download-icon{inset:0;opacity:0;position:absolute;-webkit-transform:translateY(calc(var(--private-icon-download-offset)*-1));transform:translateY(calc(var(--private-icon-download-offset)*-1));-webkit-transition-duration:inherit;transition-duration:inherit;transition-property:opacity,transform;-webkit-transition-timing-function:inherit;transition-timing-function:inherit}.download-icon,.preview{align-items:center;display:flex;justify-content:center}.preview{background-color:var(--mds-file-preview-icon-background);color:var(--mds-file-preview-color,rgb(var(--magma-text-muted,var(--magma-tint-text-muted,var(--text-neutral-muted,73 73 73)))));fill:var(--mds-file-preview-icon-color,rgb(var(--magma-text-muted,var(--magma-tint-text-muted,var(--text-neutral-muted,73 73 73)))));flex-shrink:0;position:relative;-webkit-transition-duration:inherit;transition-duration:inherit;transition-property:color,background-color,fill;-webkit-transition-timing-function:var(--ease-in-out);transition-timing-function:var(--ease-in-out);width:calc(var(--spacing,.0025rem)*1400)}.image-preview{background-position:50%;background-repeat:no-repeat;background-size:contain;inset:calc(var(--spacing,.0025rem)*300);position:absolute}.icon-preview,.image-preview{-webkit-transition-duration:inherit;transition-duration:inherit;transition-property:opacity,transform;-webkit-transition-timing-function:inherit;transition-timing-function:inherit}.info{flex-direction:column;flex-grow:1;gap:calc(var(--spacing,.0025rem)*100);height:calc(var(--spacing,.0025rem)*1400);justify-content:center;padding:0 calc(var(--spacing,.0025rem)*300)}.filename,.info{display:flex;min-width:0}.name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.extension{flex-shrink:0}.detail{align-items:baseline;display:flex;gap:calc(var(--spacing,.0025rem)*200);min-width:0}.suffix{flex-shrink:0;pointer-events:none}.description{color:rgb(var(--magma-text-disabled,var(--magma-tint-text-disabled,var(--text-neutral-disabled,119 119 119))));min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.indicator{align-items:center;display:flex;justify-content:center;padding-right:calc(var(--spacing,.0025rem)*400)}.downloaded{display:flex;fill:rgb(var(--magma-success-emphasis,var(--status-success-04,0 128 57)))}.downloaded svg{aspect-ratio:var(--aspect-square,1/1);height:100%;width:100%}:host([format=archive]),:host([format=executable]){--mds-file-preview-icon-color:rgb(var(--label-amaranth-04,213 12 47));--mds-file-preview-color:rgb(var(--label-amaranth-04,213 12 47));--mds-file-preview-icon-background:rgb(var(--label-amaranth-10,254 232 236))}:host([format=attachment]){--mds-file-preview-icon-color:rgb(var(--magma-text-subtle,var(--magma-tint-text-subtle,var(--text-neutral-subtle,99 99 99))));--mds-file-preview-color:rgb(var(--magma-text-subtle,var(--magma-tint-text-subtle,var(--text-neutral-subtle,99 99 99))));--mds-file-preview-icon-background:rgb(var(--magma-wash-soft,var(--magma-tint-scale-10,var(--tone-neutral-10,237 237 237))))}:host([format=audio]),:host([format=video]){--mds-file-preview-icon-color:rgb(var(--label-violet-04,126 73 245));--mds-file-preview-color:rgb(var(--label-violet-04,126 73 245));--mds-file-preview-icon-background:rgb(var(--label-violet-10,240 234 254))}:host([format=code]),:host([format=data]),:host([format=markup]){--mds-file-preview-icon-color:rgb(var(--label-yellow-04,141 107 5));--mds-file-preview-color:rgb(var(--label-yellow-04,141 107 5));--mds-file-preview-icon-background:rgb(var(--label-yellow-10,253 236 186))}:host([format=certificate]),:host([format=document]){--mds-file-preview-icon-color:rgb(var(--label-orange-04,185 78 5));--mds-file-preview-color:rgb(var(--label-orange-04,185 78 5));--mds-file-preview-icon-background:rgb(var(--label-orange-10,254 233 219))}:host([format=email]),:host([format=text]){--mds-file-preview-icon-color:rgb(var(--label-blue-04,63 94 248));--mds-file-preview-color:rgb(var(--label-blue-04,63 94 248));--mds-file-preview-icon-background:rgb(var(--label-blue-10,233 236 254))}:host([format=image]){--mds-file-preview-icon-color:rgb(var(--label-green-04,22 128 61));--mds-file-preview-color:rgb(var(--label-green-04,22 128 61));--mds-file-preview-icon-background:rgb(var(--label-green-10,206 247 221))}:host([format=slide]){--mds-file-preview-icon-color:rgb(var(--label-orchid-04,206 21 113));--mds-file-preview-color:rgb(var(--label-orchid-04,206 21 113));--mds-file-preview-icon-background:rgb(var(--label-orchid-10,253 231 242))}:host([format=spreadsheet]){--mds-file-preview-icon-color:rgb(var(--label-lime-04,81 124 13));--mds-file-preview-color:rgb(var(--label-lime-04,81 124 13));--mds-file-preview-icon-background:rgb(var(--label-lime-10,219 247 178))}:host([format=vector]){--mds-file-preview-icon-color:rgb(var(--label-aqua-04,4 122 143));--mds-file-preview-color:rgb(var(--label-aqua-04,4 122 143));--mds-file-preview-icon-background:rgb(var(--label-aqua-10,199 245 253))}:host([pref-animation=reduce]),:host([pref-animation=reduce]) *,:host([pref-animation=reduce]) :after,:host([pref-animation=reduce]) :before{transition-duration:.01ms!important}:host([pref-animation=reduce]){--private-file-transition-duration:0s}:host([pref-mode=dark]:not([pref-theme-scheme=light])){-webkit-box-shadow:var(--shadow-ring,0 0 0 1px rgb(var(--tone-neutral-01,5 5 5)/.3));box-shadow:var(--shadow-ring,0 0 0 1px rgb(var(--tone-neutral-01,5 5 5)/.3))}:host([pref-mode=dark]:not([pref-theme-scheme=light])):host(:hover){-webkit-box-shadow:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3));box-shadow:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3))}:host([pref-contrast=more]){-webkit-box-shadow:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3));box-shadow:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3));color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))))}:host([pref-contrast=more]):host(:hover){-webkit-box-shadow:var(--shadow-ring-strong-4,0 0 0 4px rgb(var(--tone-neutral-01,5 5 5)/.6));box-shadow:var(--shadow-ring-strong-4,0 0 0 4px rgb(var(--tone-neutral-01,5 5 5)/.6))}@media (prefers-reduced-motion:reduce){:host(:not([pref-animation])),:host(:not([pref-animation])) *,:host(:not([pref-animation])) :after,:host(:not([pref-animation])) :before,:host([pref-animation=system]),:host([pref-animation=system]) *,:host([pref-animation=system]) :after,:host([pref-animation=system]) :before{transition-duration:.01ms!important}:host(:not([pref-animation])),:host([pref-animation=system]){--private-file-transition-duration:0s}}@media (prefers-color-scheme:dark){:host(:not([pref-mode])),:host([pref-mode=system]:not([pref-theme-scheme=light])){-webkit-box-shadow:var(--shadow-ring,0 0 0 1px rgb(var(--tone-neutral-01,5 5 5)/.3));box-shadow:var(--shadow-ring,0 0 0 1px rgb(var(--tone-neutral-01,5 5 5)/.3))}:is(:host([pref-mode=system]:not([pref-theme-scheme=light])),:host(:not([pref-mode]))):host(:hover){-webkit-box-shadow:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3));box-shadow:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3))}}@media (prefers-contrast:more){:host(:not([pref-contrast])),:host([pref-contrast=system]){-webkit-box-shadow:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3));box-shadow:var(--shadow-ring-2,0 0 0 2px rgb(var(--tone-neutral-01,5 5 5)/.3));color:rgb(var(--magma-text-default,var(--magma-tint-text-default,var(--text-neutral-default,5 5 5))))}:is(:host([pref-contrast=system]),:host(:not([pref-contrast]))):host(:hover){-webkit-box-shadow:var(--shadow-ring-strong-4,0 0 0 4px rgb(var(--tone-neutral-01,5 5 5)/.6));box-shadow:var(--shadow-ring-strong-4,0 0 0 4px rgb(var(--tone-neutral-01,5 5 5)/.6))}}"};var MdsFile=/** @class */function(){function r(r){var e=this;registerInstance(this,r);this.downloadedEvent=createEvent(this,"mdsFileDownload",7);this.t=new Locale({el:Object.assign(Object.assign({},localeEl),fileDescriptionLocaleEl),en:Object.assign(Object.assign({},localeEn),fileDescriptionLocaleEn),es:Object.assign(Object.assign({},localeEs),fileDescriptionLocaleEs),it:Object.assign(Object.assign({},localeIt),fileDescriptionLocaleIt)});this.wasDownloaded=false;
|
|
2836
|
+
/**
|
|
2837
|
+
* Hides the download icon
|
|
2838
|
+
*/this.hideDownloadedIcon=false;this.handleOnClick=function(){var r;var a=getExtensionInfos(e.filename,e.suffix),i=a.format,t=a.description;e.downloadedEvent.emit({description:(r=e.description)!==null&&r!==void 0?r:t,extension:getSuffix(e.filename,e.suffix),filename:e.filename,target:e.host,type:i});localStorage.setItem("mdsFile".concat(cryptoJsExports.MD5(e.filename).toString()),"downloaded");e.checkWasDownloaded()};this.checkWasDownloaded=function(){var r="mdsFile/".concat(cryptoJsExports.MD5(e.filename).toString());e.wasDownloaded=localStorage.getItem(r)==="downloaded"};this.getDefaultDescription=function(){return getExtensionInfos(e.filename,e.suffix).description}}r.prototype.componentWillLoad=function(){this.checkWasDownloaded();this.format=getExtensionInfos(this.filename,this.suffix).format};r.prototype.componentDidUpdate=function(){this.checkWasDownloaded()};r.prototype.handleFilename=function(r){this.format=getExtensionInfos(r,this.suffix).format};r.prototype.render=function(){var r,e;return h(Host,{key:"8a7d7748c23239b50d4c37d964f13063d5e49ec9",tabindex:"0",onClick:this.handleOnClick,"pref-animation":preferenceStore.state.animation,"pref-contrast":preferenceStore.state.contrast,"pref-mode":preferenceStore.state.mode,"pref-theme-scheme":preferenceStore.state["theme-scheme"]},h("div",{key:"76aba9185620945d48d49925ff541ba02cfc5589",class:"preview"},this.preview!==undefined?h("div",{class:"image-preview",style:{backgroundImage:"url(".concat(this.preview,")")}}):h("mds-icon",{class:"icon-preview",name:getFormatsVariant(this.filename,this.suffix).icon}),h("div",{key:"941e38b59816e8bc922df0100c9e6fb592b9a3a7",class:"download-icon"},h("mds-icon",{key:"2df4fee611dbe5c04d48db8cb076956c138caf41",name:miOutlineFileDownload}))),h("div",{key:"9f31aee487c2474fa4cdedf2a65537561e4f33dd",class:"info"},h("div",{key:"72d1936efbc18a2ffcd925455a92813d36473b04",class:"filename",title:this.filename},h("mds-text",{key:"f0cdbde4761e336443896b007370b8627cf7c13d",truncate:"word",typography:"h6",class:"name"},getName(this.filename)),this.suffix===undefined&&getSuffix(this.filename,this.suffix)&&h("mds-text",{key:"9f3a91dee2b7a74f53cb5b5c82cf6ee2907fae1c",typography:"h6",class:"extension"},".",getSuffix(this.filename,this.suffix))),h("div",{key:"88353b1eca9f70f9e8299033117f860f86887c37",class:"detail"},getSuffix(this.filename,this.suffix)&&h("mds-badge",{key:"0f39cadf78668484118351f4857efa3e8cace2fc",variant:getFormatsVariant(this.filename,this.suffix).variant,tone:"weak",class:"suffix"},getSuffix(this.filename,this.suffix)),h("mds-text",{key:"4c4416ff676f9a86187170f3e12d9f062d44459e",truncate:"word",typography:"caption",class:"description",title:(r=this.description)!==null&&r!==void 0?r:this.t.get(this.getDefaultDescription())},(e=this.description)!==null&&e!==void 0?e:this.t.get(this.getDefaultDescription())))),this.wasDownloaded&&!this.hideDownloadedIcon&&h("div",{key:"3228d642251f2232ab903ac1737ae464dac26618",class:"indicator"},h("i",{key:"3e0a2c984d07b53d3e26d73f22c3dfe6bad7d232",class:"downloaded",innerHTML:miBaselineFileDownloadDone,title:this.t.get("alreadyDownloaded")})))};Object.defineProperty(r.prototype,"host",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(r,"watchers",{get:function(){return{filename:[{handleFilename:0}]}},enumerable:false,configurable:true});return r}();MdsFile.style=mdsFileCss();export{MdsFile as mds_file};
|