@aquera/nile-elements 0.0.81 → 0.0.82
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 +9 -0
- package/demo/filenames.txt +1 -1
- package/demo/variables.css +54 -0
- package/demo/variables_v2.css +51 -0
- package/dist/{fixture-b1476eef.cjs.js → fixture-1a9fb5f1.cjs.js} +5 -5
- package/dist/fixture-1a9fb5f1.cjs.js.map +1 -0
- package/dist/{fixture-6f853cbd.esm.js → fixture-81e5a936.esm.js} +3 -3
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.iife.js +854 -547
- package/dist/internal/animate.cjs.js +1 -1
- package/dist/internal/animate.cjs.js.map +1 -1
- package/dist/internal/animate.esm.js +1 -1
- package/dist/nile-avatar/nile-avatar.css.cjs.js +1 -1
- package/dist/nile-avatar/nile-avatar.css.cjs.js.map +1 -1
- package/dist/nile-avatar/nile-avatar.css.esm.js +7 -8
- package/dist/nile-avatar/nile-avatar.test.cjs.js +2 -0
- package/dist/nile-avatar/nile-avatar.test.cjs.js.map +1 -0
- package/dist/nile-avatar/nile-avatar.test.esm.js +1 -0
- package/dist/nile-badge/index.cjs.js +1 -1
- package/dist/nile-badge/index.esm.js +1 -1
- package/dist/nile-badge/nile-badge.cjs.js +1 -1
- package/dist/nile-badge/nile-badge.cjs.js.map +1 -1
- package/dist/nile-badge/nile-badge.css.cjs.js +1 -1
- package/dist/nile-badge/nile-badge.css.cjs.js.map +1 -1
- package/dist/nile-badge/nile-badge.css.esm.js +47 -47
- package/dist/nile-badge/nile-badge.esm.js +1 -1
- package/dist/nile-badge/nile-badge.test.cjs.js +2 -0
- package/dist/nile-badge/nile-badge.test.cjs.js.map +1 -0
- package/dist/nile-badge/nile-badge.test.esm.js +1 -0
- package/dist/nile-breadcrumb-item/nile-breadcrumb-item.css.cjs.js +1 -1
- package/dist/nile-breadcrumb-item/nile-breadcrumb-item.css.cjs.js.map +1 -1
- package/dist/nile-breadcrumb-item/nile-breadcrumb-item.css.esm.js +3 -4
- package/dist/nile-button/index.cjs.js +1 -1
- package/dist/nile-button/index.esm.js +1 -1
- package/dist/nile-button/nile-button.cjs.js +1 -1
- package/dist/nile-button/nile-button.cjs.js.map +1 -1
- package/dist/nile-button/nile-button.esm.js +1 -1
- package/dist/nile-button/nile-button.test.cjs.js +2 -0
- package/dist/nile-button/nile-button.test.cjs.js.map +1 -0
- package/dist/nile-button/nile-button.test.esm.js +4 -0
- package/dist/nile-button-toggle-group/nile-button-toggle-group.test.cjs.js +2 -0
- package/dist/nile-button-toggle-group/nile-button-toggle-group.test.cjs.js.map +1 -0
- package/dist/nile-button-toggle-group/nile-button-toggle-group.test.esm.js +49 -0
- package/dist/nile-calendar/index.cjs.js +1 -1
- package/dist/nile-calendar/index.esm.js +1 -1
- package/dist/nile-calendar/nile-calendar.cjs.js +1 -1
- package/dist/nile-calendar/nile-calendar.cjs.js.map +1 -1
- package/dist/nile-calendar/nile-calendar.css.cjs.js +1 -1
- package/dist/nile-calendar/nile-calendar.css.cjs.js.map +1 -1
- package/dist/nile-calendar/nile-calendar.css.esm.js +122 -191
- package/dist/nile-calendar/nile-calendar.esm.js +135 -135
- package/dist/nile-card/nile-card.test.cjs.js +2 -0
- package/dist/nile-card/nile-card.test.cjs.js.map +1 -0
- package/dist/nile-card/nile-card.test.esm.js +51 -0
- package/dist/nile-checkbox/nile-checkbox.test.cjs.js +1 -1
- package/dist/nile-checkbox/nile-checkbox.test.esm.js +1 -1
- package/dist/nile-date-picker/nile-date-picker.cjs.js +1 -1
- package/dist/nile-date-picker/nile-date-picker.cjs.js.map +1 -1
- package/dist/nile-date-picker/nile-date-picker.esm.js +1 -1
- package/dist/nile-dialog/index.cjs.js +1 -1
- package/dist/nile-dialog/index.esm.js +1 -1
- package/dist/nile-dialog/nile-dialog.cjs.js +1 -1
- package/dist/nile-dialog/nile-dialog.cjs.js.map +1 -1
- package/dist/nile-dialog/nile-dialog.css.cjs.js +1 -1
- package/dist/nile-dialog/nile-dialog.css.cjs.js.map +1 -1
- package/dist/nile-dialog/nile-dialog.css.esm.js +4 -1
- package/dist/nile-dialog/nile-dialog.esm.js +5 -4
- package/dist/nile-drawer/index.cjs.js +1 -1
- package/dist/nile-drawer/index.esm.js +1 -1
- package/dist/nile-drawer/nile-drawer.cjs.js +1 -1
- package/dist/nile-drawer/nile-drawer.cjs.js.map +1 -1
- package/dist/nile-drawer/nile-drawer.esm.js +1 -1
- package/dist/nile-drawer/nile-drawer.test.cjs.js +2 -0
- package/dist/nile-drawer/nile-drawer.test.cjs.js.map +1 -0
- package/dist/nile-drawer/nile-drawer.test.esm.js +18 -0
- package/dist/nile-empty-state/nile-empty-state.test.cjs.js +1 -1
- package/dist/nile-empty-state/nile-empty-state.test.esm.js +1 -1
- package/dist/nile-error-message/nile-error-message.test.cjs.js +2 -0
- package/dist/nile-error-message/nile-error-message.test.cjs.js.map +1 -0
- package/dist/nile-error-message/nile-error-message.test.esm.js +1 -0
- package/dist/nile-form-group/nile-form-group.test.cjs.js +2 -0
- package/dist/nile-form-group/nile-form-group.test.cjs.js.map +1 -0
- package/dist/nile-form-group/nile-form-group.test.esm.js +1 -0
- package/dist/nile-hero/nile-hero.test.cjs.js +1 -1
- package/dist/nile-hero/nile-hero.test.esm.js +1 -1
- package/dist/nile-icon/icons/svg/alert.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/alert.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/alert.esm.js +1 -0
- package/dist/nile-icon/icons/svg/file-check-02.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/file-check-02.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/file-check-02.esm.js +1 -0
- package/dist/nile-icon/icons/svg/index.cjs.js +1 -1
- package/dist/nile-icon/icons/svg/index.esm.js +1 -1
- package/dist/nile-icon/icons/svg/monitor-01.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/monitor-01.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/monitor-01.esm.js +1 -0
- package/dist/nile-icon/index.cjs.js +1 -1
- package/dist/nile-icon/index.cjs.js.map +1 -1
- package/dist/nile-icon/index.esm.js +1 -1
- package/dist/nile-icon/nile-icon.test.cjs.js +2 -0
- package/dist/nile-icon/nile-icon.test.cjs.js.map +1 -0
- package/dist/nile-icon/nile-icon.test.esm.js +1 -0
- package/dist/nile-icon-button/index.cjs.js +1 -1
- package/dist/nile-icon-button/index.esm.js +1 -1
- package/dist/nile-icon-button/nile-icon-button.cjs.js +1 -1
- package/dist/nile-icon-button/nile-icon-button.cjs.js.map +1 -1
- package/dist/nile-icon-button/nile-icon-button.esm.js +1 -1
- package/dist/nile-input/index.cjs.js +1 -1
- package/dist/nile-input/index.esm.js +1 -1
- package/dist/nile-input/nile-input.cjs.js +1 -1
- package/dist/nile-input/nile-input.cjs.js.map +1 -1
- package/dist/nile-input/nile-input.esm.js +1 -1
- package/dist/nile-input/nile-input.test.cjs.js +2 -0
- package/dist/nile-input/nile-input.test.cjs.js.map +1 -0
- package/dist/nile-input/nile-input.test.esm.js +17 -0
- package/dist/nile-link/nile-link.test.cjs.js +2 -0
- package/dist/nile-link/nile-link.test.cjs.js.map +1 -0
- package/dist/nile-link/nile-link.test.esm.js +1 -0
- package/dist/nile-list/index.cjs.js +2 -0
- package/dist/nile-list/index.cjs.js.map +1 -0
- package/dist/nile-list/index.esm.js +1 -0
- package/dist/nile-list/nile-list.cjs.js +2 -0
- package/dist/nile-list/nile-list.cjs.js.map +1 -0
- package/dist/nile-list/nile-list.css.cjs.js +2 -0
- package/dist/nile-list/nile-list.css.cjs.js.map +1 -0
- package/dist/nile-list/nile-list.css.esm.js +8 -0
- package/dist/nile-list/nile-list.esm.js +3 -0
- package/dist/nile-list-item/index.cjs.js +2 -0
- package/dist/nile-list-item/index.cjs.js.map +1 -0
- package/dist/nile-list-item/index.esm.js +1 -0
- package/dist/nile-list-item/nile-list-item.cjs.js +2 -0
- package/dist/nile-list-item/nile-list-item.cjs.js.map +1 -0
- package/dist/nile-list-item/nile-list-item.css.cjs.js +2 -0
- package/dist/nile-list-item/nile-list-item.css.cjs.js.map +1 -0
- package/dist/nile-list-item/nile-list-item.css.esm.js +54 -0
- package/dist/nile-list-item/nile-list-item.esm.js +21 -0
- package/dist/nile-loader/nile-loader.test.cjs.js +2 -0
- package/dist/nile-loader/nile-loader.test.cjs.js.map +1 -0
- package/dist/nile-loader/nile-loader.test.esm.js +1 -0
- package/dist/nile-menu/nile-menu.cjs.js +1 -1
- package/dist/nile-menu/nile-menu.cjs.js.map +1 -1
- package/dist/nile-menu/nile-menu.css.cjs.js +1 -1
- package/dist/nile-menu/nile-menu.css.cjs.js.map +1 -1
- package/dist/nile-menu/nile-menu.css.esm.js +21 -7
- package/dist/nile-menu/nile-menu.esm.js +17 -15
- package/dist/nile-menu-item/index.cjs.js +1 -1
- package/dist/nile-menu-item/index.esm.js +1 -1
- package/dist/nile-menu-item/nile-menu-item.cjs.js +1 -1
- package/dist/nile-menu-item/nile-menu-item.cjs.js.map +1 -1
- package/dist/nile-menu-item/nile-menu-item.esm.js +1 -1
- package/dist/nile-option/index.cjs.js +1 -1
- package/dist/nile-option/index.esm.js +1 -1
- package/dist/nile-option/nile-option.cjs.js +1 -1
- package/dist/nile-option/nile-option.cjs.js.map +1 -1
- package/dist/nile-option/nile-option.esm.js +1 -1
- package/dist/nile-popover/nile-popover.cjs.js +1 -1
- package/dist/nile-popover/nile-popover.cjs.js.map +1 -1
- package/dist/nile-popover/nile-popover.css.cjs.js +1 -1
- package/dist/nile-popover/nile-popover.css.cjs.js.map +1 -1
- package/dist/nile-popover/nile-popover.css.esm.js +6 -4
- package/dist/nile-popover/nile-popover.esm.js +4 -7
- package/dist/nile-popover/nile-popover.test.cjs.js +2 -0
- package/dist/nile-popover/nile-popover.test.cjs.js.map +1 -0
- package/dist/nile-popover/nile-popover.test.esm.js +21 -0
- package/dist/nile-popup/nile-popup.css.cjs.js +1 -1
- package/dist/nile-popup/nile-popup.css.cjs.js.map +1 -1
- package/dist/nile-popup/nile-popup.css.esm.js +8 -4
- package/dist/nile-progress-bar/nile-progress-bar.test.cjs.js +2 -0
- package/dist/nile-progress-bar/nile-progress-bar.test.cjs.js.map +1 -0
- package/dist/nile-progress-bar/nile-progress-bar.test.esm.js +1 -0
- package/dist/nile-radio/nile-radio.test.cjs.js +2 -0
- package/dist/nile-radio/nile-radio.test.cjs.js.map +1 -0
- package/dist/nile-radio/nile-radio.test.esm.js +1 -0
- package/dist/nile-select/index.cjs.js +1 -1
- package/dist/nile-select/index.esm.js +1 -1
- package/dist/nile-select/nile-select.cjs.js +1 -1
- package/dist/nile-select/nile-select.cjs.js.map +1 -1
- package/dist/nile-select/nile-select.esm.js +3 -3
- package/dist/nile-slide-toggle/nile-slide-toggle.test.cjs.js +2 -0
- package/dist/nile-slide-toggle/nile-slide-toggle.test.cjs.js.map +1 -0
- package/dist/nile-slide-toggle/nile-slide-toggle.test.esm.js +1 -0
- package/dist/nile-tab/index.cjs.js +1 -1
- package/dist/nile-tab/index.esm.js +1 -1
- package/dist/nile-tab/nile-tab.cjs.js +1 -1
- package/dist/nile-tab/nile-tab.cjs.js.map +1 -1
- package/dist/nile-tab/nile-tab.esm.js +1 -1
- package/dist/nile-tab-group/index.cjs.js +1 -1
- package/dist/nile-tab-group/index.esm.js +1 -1
- package/dist/nile-tab-group/nile-tab-group.cjs.js +1 -1
- package/dist/nile-tab-group/nile-tab-group.cjs.js.map +1 -1
- package/dist/nile-tab-group/nile-tab-group.css.cjs.js +1 -1
- package/dist/nile-tab-group/nile-tab-group.css.cjs.js.map +1 -1
- package/dist/nile-tab-group/nile-tab-group.css.esm.js +2 -2
- package/dist/nile-tab-group/nile-tab-group.esm.js +1 -1
- package/dist/nile-table-header-item/nile-table-header-item.css.cjs.js +1 -1
- package/dist/nile-table-header-item/nile-table-header-item.css.cjs.js.map +1 -1
- package/dist/nile-table-header-item/nile-table-header-item.css.esm.js +0 -4
- package/dist/nile-tag/index.cjs.js +1 -1
- package/dist/nile-tag/index.esm.js +1 -1
- package/dist/nile-tag/nile-tag.cjs.js +1 -1
- package/dist/nile-tag/nile-tag.cjs.js.map +1 -1
- package/dist/nile-tag/nile-tag.esm.js +1 -1
- package/dist/nile-textarea/nile-textarea.test.cjs.js +2 -0
- package/dist/nile-textarea/nile-textarea.test.cjs.js.map +1 -0
- package/dist/nile-textarea/nile-textarea.test.esm.js +1 -0
- package/dist/nile-toast/index.cjs.js +1 -1
- package/dist/nile-toast/index.esm.js +1 -1
- package/dist/nile-toast/nile-toast.cjs.js +1 -1
- package/dist/nile-toast/nile-toast.cjs.js.map +1 -1
- package/dist/nile-toast/nile-toast.esm.js +1 -1
- package/dist/nile-tree/index.cjs.js +2 -0
- package/dist/nile-tree/index.cjs.js.map +1 -0
- package/dist/nile-tree/index.esm.js +1 -0
- package/dist/nile-tree/nile-tree.cjs.js +2 -0
- package/dist/nile-tree/nile-tree.cjs.js.map +1 -0
- package/dist/nile-tree/nile-tree.css.cjs.js +2 -0
- package/dist/nile-tree/nile-tree.css.cjs.js.map +1 -0
- package/dist/nile-tree/nile-tree.css.esm.js +36 -0
- package/dist/nile-tree/nile-tree.esm.js +13 -0
- package/dist/nile-tree-item/index.cjs.js +2 -0
- package/dist/nile-tree-item/index.cjs.js.map +1 -0
- package/dist/nile-tree-item/index.esm.js +1 -0
- package/dist/nile-tree-item/nile-tree-item.cjs.js +2 -0
- package/dist/nile-tree-item/nile-tree-item.cjs.js.map +1 -0
- package/dist/nile-tree-item/nile-tree-item.css.cjs.js +2 -0
- package/dist/nile-tree-item/nile-tree-item.css.cjs.js.map +1 -0
- package/dist/nile-tree-item/nile-tree-item.css.esm.js +164 -0
- package/dist/nile-tree-item/nile-tree-item.esm.js +63 -0
- package/dist/src/index.d.ts +4 -0
- package/dist/src/index.js +4 -0
- package/dist/src/index.js.map +1 -1
- package/dist/src/nile-avatar/nile-avatar.css.js +5 -6
- package/dist/src/nile-avatar/nile-avatar.css.js.map +1 -1
- package/dist/src/nile-avatar/nile-avatar.test.d.ts +1 -0
- package/dist/src/nile-avatar/nile-avatar.test.js +58 -0
- package/dist/src/nile-avatar/nile-avatar.test.js.map +1 -0
- package/dist/src/nile-badge/nile-badge.css.js +45 -45
- package/dist/src/nile-badge/nile-badge.css.js.map +1 -1
- package/dist/src/nile-badge/nile-badge.test.d.ts +1 -0
- package/dist/src/nile-badge/nile-badge.test.js +42 -0
- package/dist/src/nile-badge/nile-badge.test.js.map +1 -0
- package/dist/src/nile-breadcrumb-item/nile-breadcrumb-item.css.js +3 -4
- package/dist/src/nile-breadcrumb-item/nile-breadcrumb-item.css.js.map +1 -1
- package/dist/src/nile-button/nile-button.test.d.ts +1 -0
- package/dist/src/nile-button/nile-button.test.js +86 -0
- package/dist/src/nile-button/nile-button.test.js.map +1 -0
- package/dist/src/nile-button-toggle-group/nile-button-toggle-group.test.d.ts +2 -0
- package/dist/src/nile-button-toggle-group/nile-button-toggle-group.test.js +108 -0
- package/dist/src/nile-button-toggle-group/nile-button-toggle-group.test.js.map +1 -0
- package/dist/src/nile-calendar/nile-calendar.css.js +122 -191
- package/dist/src/nile-calendar/nile-calendar.css.js.map +1 -1
- package/dist/src/nile-calendar/nile-calendar.d.ts +8 -0
- package/dist/src/nile-calendar/nile-calendar.js +164 -167
- package/dist/src/nile-calendar/nile-calendar.js.map +1 -1
- package/dist/src/nile-card/nile-card.test.d.ts +1 -0
- package/dist/src/nile-card/nile-card.test.js +69 -0
- package/dist/src/nile-card/nile-card.test.js.map +1 -0
- package/dist/src/nile-date-picker/nile-date-picker.js +1 -0
- package/dist/src/nile-date-picker/nile-date-picker.js.map +1 -1
- package/dist/src/nile-dialog/nile-dialog.css.js +4 -1
- package/dist/src/nile-dialog/nile-dialog.css.js.map +1 -1
- package/dist/src/nile-dialog/nile-dialog.js +4 -3
- package/dist/src/nile-dialog/nile-dialog.js.map +1 -1
- package/dist/src/nile-drawer/nile-drawer.test.d.ts +1 -0
- package/dist/src/nile-drawer/nile-drawer.test.js +88 -0
- package/dist/src/nile-drawer/nile-drawer.test.js.map +1 -0
- package/dist/src/nile-error-message/nile-error-message.test.d.ts +1 -0
- package/dist/src/nile-error-message/nile-error-message.test.js +61 -0
- package/dist/src/nile-error-message/nile-error-message.test.js.map +1 -0
- package/dist/src/nile-form-group/nile-form-group.test.d.ts +1 -0
- package/dist/src/nile-form-group/nile-form-group.test.js +55 -0
- package/dist/src/nile-form-group/nile-form-group.test.js.map +1 -0
- package/dist/src/nile-icon/icons/svg/alert.d.ts +5 -0
- package/dist/src/nile-icon/icons/svg/alert.js +5 -0
- package/dist/src/nile-icon/icons/svg/alert.js.map +1 -0
- package/dist/src/nile-icon/icons/svg/file-check-02.d.ts +5 -0
- package/dist/src/nile-icon/icons/svg/file-check-02.js +5 -0
- package/dist/src/nile-icon/icons/svg/file-check-02.js.map +1 -0
- package/dist/src/nile-icon/icons/svg/index.d.ts +3 -0
- package/dist/src/nile-icon/icons/svg/index.js +3 -0
- package/dist/src/nile-icon/icons/svg/index.js.map +1 -1
- package/dist/src/nile-icon/icons/svg/monitor-01.d.ts +5 -0
- package/dist/src/nile-icon/icons/svg/monitor-01.js +5 -0
- package/dist/src/nile-icon/icons/svg/monitor-01.js.map +1 -0
- package/dist/src/nile-icon/nile-icon.test.d.ts +1 -0
- package/dist/src/nile-icon/nile-icon.test.js +45 -0
- package/dist/src/nile-icon/nile-icon.test.js.map +1 -0
- package/dist/src/nile-input/nile-input.test.d.ts +1 -0
- package/dist/src/nile-input/nile-input.test.js +139 -0
- package/dist/src/nile-input/nile-input.test.js.map +1 -0
- package/dist/src/nile-link/nile-link.test.d.ts +1 -0
- package/dist/src/nile-link/nile-link.test.js +72 -0
- package/dist/src/nile-link/nile-link.test.js.map +1 -0
- package/dist/src/nile-list/index.d.ts +1 -0
- package/dist/src/nile-list/index.js +2 -0
- package/dist/src/nile-list/index.js.map +1 -0
- package/dist/src/nile-list/nile-list.css.d.ts +12 -0
- package/dist/src/nile-list/nile-list.css.js +20 -0
- package/dist/src/nile-list/nile-list.css.js.map +1 -0
- package/dist/src/nile-list/nile-list.d.ts +33 -0
- package/dist/src/nile-list/nile-list.js +47 -0
- package/dist/src/nile-list/nile-list.js.map +1 -0
- package/dist/src/nile-list-item/index.d.ts +1 -0
- package/dist/src/nile-list-item/index.js +2 -0
- package/dist/src/nile-list-item/index.js.map +1 -0
- package/dist/src/nile-list-item/nile-list-item.css.d.ts +12 -0
- package/dist/src/nile-list-item/nile-list-item.css.js +66 -0
- package/dist/src/nile-list-item/nile-list-item.css.js.map +1 -0
- package/dist/src/nile-list-item/nile-list-item.d.ts +38 -0
- package/dist/src/nile-list-item/nile-list-item.js +96 -0
- package/dist/src/nile-list-item/nile-list-item.js.map +1 -0
- package/dist/src/nile-loader/nile-loader.test.d.ts +1 -0
- package/dist/src/nile-loader/nile-loader.test.js +39 -0
- package/dist/src/nile-loader/nile-loader.test.js.map +1 -0
- package/dist/src/nile-menu/nile-menu.css.js +19 -5
- package/dist/src/nile-menu/nile-menu.css.js.map +1 -1
- package/dist/src/nile-menu/nile-menu.d.ts +1 -0
- package/dist/src/nile-menu/nile-menu.js +25 -14
- package/dist/src/nile-menu/nile-menu.js.map +1 -1
- package/dist/src/nile-popover/nile-popover.css.js +6 -4
- package/dist/src/nile-popover/nile-popover.css.js.map +1 -1
- package/dist/src/nile-popover/nile-popover.d.ts +1 -0
- package/dist/src/nile-popover/nile-popover.js +7 -6
- package/dist/src/nile-popover/nile-popover.js.map +1 -1
- package/dist/src/nile-popover/nile-popover.test.d.ts +1 -0
- package/dist/src/nile-popover/nile-popover.test.js +73 -0
- package/dist/src/nile-popover/nile-popover.test.js.map +1 -0
- package/dist/src/nile-popup/nile-popup.css.d.ts +5 -5
- package/dist/src/nile-popup/nile-popup.css.js +13 -9
- package/dist/src/nile-popup/nile-popup.css.js.map +1 -1
- package/dist/src/nile-progress-bar/nile-progress-bar.test.d.ts +1 -0
- package/dist/src/nile-progress-bar/nile-progress-bar.test.js +48 -0
- package/dist/src/nile-progress-bar/nile-progress-bar.test.js.map +1 -0
- package/dist/src/nile-radio/nile-radio.test.d.ts +1 -0
- package/dist/src/nile-radio/nile-radio.test.js +71 -0
- package/dist/src/nile-radio/nile-radio.test.js.map +1 -0
- package/dist/src/nile-select/nile-select.d.ts +1 -0
- package/dist/src/nile-select/nile-select.js +5 -1
- package/dist/src/nile-select/nile-select.js.map +1 -1
- package/dist/src/nile-slide-toggle/nile-slide-toggle.test.d.ts +1 -0
- package/dist/src/nile-slide-toggle/nile-slide-toggle.test.js +54 -0
- package/dist/src/nile-slide-toggle/nile-slide-toggle.test.js.map +1 -0
- package/dist/src/nile-tab-group/nile-tab-group.css.js +2 -2
- package/dist/src/nile-tab-group/nile-tab-group.css.js.map +1 -1
- package/dist/src/nile-tab-group/nile-tab-group.js +16 -15
- package/dist/src/nile-tab-group/nile-tab-group.js.map +1 -1
- package/dist/src/nile-table-header-item/nile-table-header-item.css.js +0 -4
- package/dist/src/nile-table-header-item/nile-table-header-item.css.js.map +1 -1
- package/dist/src/nile-textarea/nile-textarea.test.d.ts +1 -0
- package/dist/src/nile-textarea/nile-textarea.test.js +87 -0
- package/dist/src/nile-textarea/nile-textarea.test.js.map +1 -0
- package/dist/src/nile-tree/index.d.ts +1 -0
- package/dist/src/nile-tree/index.js +2 -0
- package/dist/src/nile-tree/index.js.map +1 -0
- package/dist/src/nile-tree/nile-tree.css.d.ts +12 -0
- package/dist/src/nile-tree/nile-tree.css.js +48 -0
- package/dist/src/nile-tree/nile-tree.css.js.map +1 -0
- package/dist/src/nile-tree/nile-tree.d.ts +69 -0
- package/dist/src/nile-tree/nile-tree.js +376 -0
- package/dist/src/nile-tree/nile-tree.js.map +1 -0
- package/dist/src/nile-tree-item/index.d.ts +1 -0
- package/dist/src/nile-tree-item/index.js +2 -0
- package/dist/src/nile-tree-item/index.js.map +1 -0
- package/dist/src/nile-tree-item/nile-tree-item.css.d.ts +12 -0
- package/dist/src/nile-tree-item/nile-tree-item.css.js +176 -0
- package/dist/src/nile-tree-item/nile-tree-item.css.js.map +1 -0
- package/dist/src/nile-tree-item/nile-tree-item.d.ts +96 -0
- package/dist/src/nile-tree-item/nile-tree-item.js +324 -0
- package/dist/src/nile-tree-item/nile-tree-item.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +71 -2
- package/plopfile.js +11 -0
- package/src/index.ts +5 -1
- package/src/nile-avatar/nile-avatar.css.ts +5 -6
- package/src/nile-avatar/nile-avatar.test.ts +65 -0
- package/src/nile-badge/nile-badge.css.ts +45 -45
- package/src/nile-badge/nile-badge.test.ts +48 -0
- package/src/nile-breadcrumb-item/nile-breadcrumb-item.css.ts +3 -4
- package/src/nile-button/nile-button.test.ts +117 -0
- package/src/nile-button-toggle-group/nile-button-toggle-group.test.ts +130 -0
- package/src/nile-calendar/nile-calendar.css.ts +122 -191
- package/src/nile-calendar/nile-calendar.ts +170 -213
- package/src/nile-card/nile-card.test.ts +74 -0
- package/src/nile-date-picker/nile-date-picker.ts +5 -6
- package/src/nile-dialog/nile-dialog.css.ts +4 -1
- package/src/nile-dialog/nile-dialog.ts +4 -4
- package/src/nile-drawer/nile-drawer.test.ts +106 -0
- package/src/nile-error-message/nile-error-message.test.ts +69 -0
- package/src/nile-form-group/nile-form-group.test.ts +63 -0
- package/src/nile-icon/icons/svg/alert.ts +5 -0
- package/src/nile-icon/icons/svg/file-check-02.ts +5 -0
- package/src/nile-icon/icons/svg/index.ts +3 -0
- package/src/nile-icon/icons/svg/monitor-01.ts +5 -0
- package/src/nile-icon/nile-icon.test.ts +53 -0
- package/src/nile-input/nile-input.test.ts +160 -0
- package/src/nile-link/nile-link.test.ts +83 -0
- package/src/nile-list/index.ts +1 -0
- package/src/nile-list/nile-list.css.ts +22 -0
- package/src/nile-list/nile-list.ts +64 -0
- package/src/nile-list-item/index.ts +1 -0
- package/src/nile-list-item/nile-list-item.css.ts +68 -0
- package/src/nile-list-item/nile-list-item.ts +104 -0
- package/src/nile-loader/nile-loader.test.ts +45 -0
- package/src/nile-menu/nile-menu.css.ts +19 -5
- package/src/nile-menu/nile-menu.ts +27 -17
- package/src/nile-popover/nile-popover.css.ts +6 -4
- package/src/nile-popover/nile-popover.test.ts +86 -0
- package/src/nile-popover/nile-popover.ts +7 -10
- package/src/nile-popup/nile-popup.css.ts +14 -10
- package/src/nile-progress-bar/nile-progress-bar.test.ts +55 -0
- package/src/nile-radio/nile-radio.test.ts +81 -0
- package/src/nile-select/nile-select.ts +3 -1
- package/src/nile-slide-toggle/nile-slide-toggle.test.ts +61 -0
- package/src/nile-tab-group/nile-tab-group.css.ts +2 -2
- package/src/nile-tab-group/nile-tab-group.ts +2 -1
- package/src/nile-table-header-item/nile-table-header-item.css.ts +0 -4
- package/src/nile-textarea/nile-textarea.test.ts +102 -0
- package/src/nile-tree/index.ts +1 -0
- package/src/nile-tree/nile-tree.css.ts +50 -0
- package/src/nile-tree/nile-tree.ts +433 -0
- package/src/nile-tree-item/index.ts +1 -0
- package/src/nile-tree-item/nile-tree-item.css.ts +178 -0
- package/src/nile-tree-item/nile-tree-item.ts +330 -0
- package/dist/fixture-b1476eef.cjs.js.map +0 -1
@@ -108,7 +108,7 @@ Object.defineProperty(r.prototype,"_obj",{get:function(){return o(this,"object")
|
|
108
108
|
* Copyright(c) 2011-2014 Jake Luer <jake@alogicalparadox.com>
|
109
109
|
* MIT Licensed
|
110
110
|
*/
|
111
|
-
e.exports=function(t,e){var n=t.Assertion,i=t.AssertionError,o=e.flag;function r(t,n){n&&o(this,"message",n),t=t.toLowerCase();var i=o(this,"object"),r=~["a","e","i","o","u"].indexOf(t.charAt(0))?"an ":"a ";this.assert(t===e.type(i).toLowerCase(),"expected #{this} to be "+r+t,"expected #{this} not to be "+r+t)}function a(t,n){return e.isNaN(t)&&e.isNaN(n)||t===n}function s(){o(this,"contains",!0)}function c(t,r){r&&o(this,"message",r);var s=o(this,"object"),c=e.type(s).toLowerCase(),u=o(this,"message"),f=o(this,"negate"),h=o(this,"ssfi"),l=o(this,"deep"),d=l?"deep ":"";u=u?u+": ":"";var p=!1;switch(c){case"string":p=-1!==s.indexOf(t);break;case"weakset":if(l)throw new i(u+"unable to use .deep.include with WeakSet",void 0,h);p=s.has(t);break;case"map":var w=l?e.eql:a;s.forEach((function(e){p=p||w(e,t)}));break;case"set":l?s.forEach((function(n){p=p||e.eql(n,t)})):p=s.has(t);break;case"array":p=l?s.some((function(n){return e.eql(n,t)})):-1!==s.indexOf(t);break;default:if(t!==Object(t))throw new i(u+"the given combination of arguments ("+c+" and "+e.type(t).toLowerCase()+") is invalid for this assertion. You can use an array, a map, an object, a set, a string, or a weakset instead of a "+e.type(t).toLowerCase(),void 0,h);var b=Object.keys(t),v=null,m=0;if(b.forEach((function(r){var a=new n(s);if(e.transferFlags(this,a,!0),o(a,"lockSsfi",!0),f&&1!==b.length)try{a.property(r,t[r])}catch(t){if(!e.checkError.compatibleConstructor(t,i))throw t;null===v&&(v=t),m++}else a.property(r,t[r])}),this),f&&b.length>1&&m===b.length)throw v;return}this.assert(p,"expected #{this} to "+d+"include "+e.inspect(t),"expected #{this} to not "+d+"include "+e.inspect(t))}function u(){var t=o(this,"object");this.assert(null!=t,"expected #{this} to exist","expected #{this} to not exist")}function f(){var t=o(this,"object"),n=e.type(t);this.assert("Arguments"===n,"expected #{this} to be arguments but got "+n,"expected #{this} to not be arguments")}function h(t,e){e&&o(this,"message",e);var n=o(this,"object");if(o(this,"deep")){var i=o(this,"lockSsfi");o(this,"lockSsfi",!0),this.eql(t),o(this,"lockSsfi",i)}else this.assert(t===n,"expected #{this} to equal #{exp}","expected #{this} to not equal #{exp}",t,this._obj,!0)}function l(t,n){n&&o(this,"message",n),this.assert(e.eql(t,o(this,"object")),"expected #{this} to deeply equal #{exp}","expected #{this} to not deeply equal #{exp}",t,this._obj,!0)}function d(t,r){r&&o(this,"message",r);var a,s=o(this,"object"),c=o(this,"doLength"),u=o(this,"message"),f=u?u+": ":"",h=o(this,"ssfi"),l=e.type(s).toLowerCase(),d=e.type(t).toLowerCase(),p=!0;if(c&&"map"!==l&&"set"!==l&&new n(s,u,h,!0).to.have.property("length"),c||"date"!==l||"date"===d?"number"===d||!c&&"number"!==l?c||"date"===l||"number"===l?p=!1:a=f+"expected "+("string"===l?"'"+s+"'":s)+" to be a number or a date":a=f+"the argument to above must be a number":a=f+"the argument to above must be a date",p)throw new i(a,void 0,h);if(c){var w,b="length";"map"===l||"set"===l?(b="size",w=s.size):w=s.length,this.assert(w>t,"expected #{this} to have a "+b+" above #{exp} but got #{act}","expected #{this} to not have a "+b+" above #{exp}",t,w)}else this.assert(s>t,"expected #{this} to be above #{exp}","expected #{this} to be at most #{exp}",t)}function p(t,r){r&&o(this,"message",r);var a,s=o(this,"object"),c=o(this,"doLength"),u=o(this,"message"),f=u?u+": ":"",h=o(this,"ssfi"),l=e.type(s).toLowerCase(),d=e.type(t).toLowerCase(),p=!0;if(c&&"map"!==l&&"set"!==l&&new n(s,u,h,!0).to.have.property("length"),c||"date"!==l||"date"===d?"number"===d||!c&&"number"!==l?c||"date"===l||"number"===l?p=!1:a=f+"expected "+("string"===l?"'"+s+"'":s)+" to be a number or a date":a=f+"the argument to least must be a number":a=f+"the argument to least must be a date",p)throw new i(a,void 0,h);if(c){var w,b="length";"map"===l||"set"===l?(b="size",w=s.size):w=s.length,this.assert(w>=t,"expected #{this} to have a "+b+" at least #{exp} but got #{act}","expected #{this} to have a "+b+" below #{exp}",t,w)}else this.assert(s>=t,"expected #{this} to be at least #{exp}","expected #{this} to be below #{exp}",t)}function w(t,r){r&&o(this,"message",r);var a,s=o(this,"object"),c=o(this,"doLength"),u=o(this,"message"),f=u?u+": ":"",h=o(this,"ssfi"),l=e.type(s).toLowerCase(),d=e.type(t).toLowerCase(),p=!0;if(c&&"map"!==l&&"set"!==l&&new n(s,u,h,!0).to.have.property("length"),c||"date"!==l||"date"===d?"number"===d||!c&&"number"!==l?c||"date"===l||"number"===l?p=!1:a=f+"expected "+("string"===l?"'"+s+"'":s)+" to be a number or a date":a=f+"the argument to below must be a number":a=f+"the argument to below must be a date",p)throw new i(a,void 0,h);if(c){var w,b="length";"map"===l||"set"===l?(b="size",w=s.size):w=s.length,this.assert(w<t,"expected #{this} to have a "+b+" below #{exp} but got #{act}","expected #{this} to not have a "+b+" below #{exp}",t,w)}else this.assert(s<t,"expected #{this} to be below #{exp}","expected #{this} to be at least #{exp}",t)}function b(t,r){r&&o(this,"message",r);var a,s=o(this,"object"),c=o(this,"doLength"),u=o(this,"message"),f=u?u+": ":"",h=o(this,"ssfi"),l=e.type(s).toLowerCase(),d=e.type(t).toLowerCase(),p=!0;if(c&&"map"!==l&&"set"!==l&&new n(s,u,h,!0).to.have.property("length"),c||"date"!==l||"date"===d?"number"===d||!c&&"number"!==l?c||"date"===l||"number"===l?p=!1:a=f+"expected "+("string"===l?"'"+s+"'":s)+" to be a number or a date":a=f+"the argument to most must be a number":a=f+"the argument to most must be a date",p)throw new i(a,void 0,h);if(c){var w,b="length";"map"===l||"set"===l?(b="size",w=s.size):w=s.length,this.assert(w<=t,"expected #{this} to have a "+b+" at most #{exp} but got #{act}","expected #{this} to have a "+b+" above #{exp}",t,w)}else this.assert(s<=t,"expected #{this} to be at most #{exp}","expected #{this} to be above #{exp}",t)}function v(t,n){n&&o(this,"message",n);var r=o(this,"object"),a=o(this,"ssfi"),s=o(this,"message");try{var c=r instanceof t}catch(n){if(n instanceof TypeError)throw new i((s=s?s+": ":"")+"The instanceof assertion needs a constructor but "+e.type(t)+" was given.",void 0,a);throw n}var u=e.getName(t);null===u&&(u="an unnamed constructor"),this.assert(c,"expected #{this} to be an instance of "+u,"expected #{this} to not be an instance of "+u)}function m(t,n,r){r&&o(this,"message",r);var a=o(this,"nested"),s=o(this,"own"),c=o(this,"message"),u=o(this,"object"),f=o(this,"ssfi"),h=typeof t;if(c=c?c+": ":"",a){if("string"!==h)throw new i(c+"the argument to property must be a string when using nested syntax",void 0,f)}else if("string"!==h&&"number"!==h&&"symbol"!==h)throw new i(c+"the argument to property must be a string, number, or symbol",void 0,f);if(a&&s)throw new i(c+'The "nested" and "own" flags cannot be combined.',void 0,f);if(null==u)throw new i(c+"Target cannot be null or undefined.",void 0,f);var l,d=o(this,"deep"),p=o(this,"negate"),w=a?e.getPathInfo(u,t):null,b=a?w.value:u[t],v="";d&&(v+="deep "),s&&(v+="own "),a&&(v+="nested "),v+="property ",l=s?Object.prototype.hasOwnProperty.call(u,t):a?w.exists:e.hasProperty(u,t),p&&1!==arguments.length||this.assert(l,"expected #{this} to have "+v+e.inspect(t),"expected #{this} to not have "+v+e.inspect(t)),arguments.length>1&&this.assert(l&&(d?e.eql(n,b):n===b),"expected #{this} to have "+v+e.inspect(t)+" of #{exp}, but got #{act}","expected #{this} to not have "+v+e.inspect(t)+" of #{act}",n,b),o(this,"object",b)}function g(t,e,n){o(this,"own",!0),m.apply(this,arguments)}function y(t,n,i){"string"==typeof n&&(i=n,n=null),i&&o(this,"message",i);var r=o(this,"object"),a=Object.getOwnPropertyDescriptor(Object(r),t);a&&n?this.assert(e.eql(n,a),"expected the own property descriptor for "+e.inspect(t)+" on #{this} to match "+e.inspect(n)+", got "+e.inspect(a),"expected the own property descriptor for "+e.inspect(t)+" on #{this} to not match "+e.inspect(n),n,a,!0):this.assert(a,"expected #{this} to have an own property descriptor for "+e.inspect(t),"expected #{this} to not have an own property descriptor for "+e.inspect(t)),o(this,"object",a)}function x(){o(this,"doLength",!0)}function j(t,i){i&&o(this,"message",i);var r,a=o(this,"object"),s=e.type(a).toLowerCase(),c=o(this,"message"),u=o(this,"ssfi"),f="length";switch(s){case"map":case"set":f="size",r=a.size;break;default:new n(a,c,u,!0).to.have.property("length"),r=a.length}this.assert(r==t,"expected #{this} to have a "+f+" of #{exp} but got #{act}","expected #{this} to not have a "+f+" of #{act}",t,r)}function E(t,e){e&&o(this,"message",e);var n=o(this,"object");this.assert(t.exec(n),"expected #{this} to match "+t,"expected #{this} not to match "+t)}function O(t){var n,r,a=o(this,"object"),s=e.type(a),c=e.type(t),u=o(this,"ssfi"),f=o(this,"deep"),h="",l=!0,d=o(this,"message"),p=(d=d?d+": ":"")+"when testing keys against an object or an array you must give a single Array|Object|String argument or multiple String arguments";if("Map"===s||"Set"===s)h=f?"deeply ":"",r=[],a.forEach((function(t,e){r.push(e)})),"Array"!==c&&(t=Array.prototype.slice.call(arguments));else{switch(r=e.getOwnEnumerableProperties(a),c){case"Array":if(arguments.length>1)throw new i(p,void 0,u);break;case"Object":if(arguments.length>1)throw new i(p,void 0,u);t=Object.keys(t);break;default:t=Array.prototype.slice.call(arguments)}t=t.map((function(t){return"symbol"==typeof t?t:String(t)}))}if(!t.length)throw new i(d+"keys required",void 0,u);var w=t.length,b=o(this,"any"),v=o(this,"all"),m=t;if(b||v||(v=!0),b&&(l=m.some((function(t){return r.some((function(n){return f?e.eql(t,n):t===n}))}))),v&&(l=m.every((function(t){return r.some((function(n){return f?e.eql(t,n):t===n}))})),o(this,"contains")||(l=l&&t.length==r.length)),w>1){var g=(t=t.map((function(t){return e.inspect(t)}))).pop();v&&(n=t.join(", ")+", and "+g),b&&(n=t.join(", ")+", or "+g)}else n=e.inspect(t[0]);n=(w>1?"keys ":"key ")+n,n=(o(this,"contains")?"contain ":"have ")+n,this.assert(l,"expected #{this} to "+h+n,"expected #{this} to not "+h+n,m.slice(0).sort(e.compareByInspect),r.sort(e.compareByInspect),!0)}function S(t,i,r){r&&o(this,"message",r);var a,s=o(this,"object"),c=o(this,"ssfi"),u=o(this,"message"),f=o(this,"negate")||!1;new n(s,u,c,!0).is.a("function"),(t instanceof RegExp||"string"==typeof t)&&(i=t,t=null);try{s()}catch(t){a=t}var h=void 0===t&&void 0===i,l=Boolean(t&&i),d=!1,p=!1;if(h||!h&&!f){var w="an error";t instanceof Error?w="#{exp}":t&&(w=e.checkError.getConstructorName(t)),this.assert(a,"expected #{this} to throw "+w,"expected #{this} to not throw an error but #{act} was thrown",t&&t.toString(),a instanceof Error?a.toString():"string"==typeof a?a:a&&e.checkError.getConstructorName(a))}if(t&&a&&(t instanceof Error&&e.checkError.compatibleInstance(a,t)===f&&(l&&f?d=!0:this.assert(f,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(a&&!f?" but #{act} was thrown":""),t.toString(),a.toString())),e.checkError.compatibleConstructor(a,t)===f&&(l&&f?d=!0:this.assert(f,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(a?" but #{act} was thrown":""),t instanceof Error?t.toString():t&&e.checkError.getConstructorName(t),a instanceof Error?a.toString():a&&e.checkError.getConstructorName(a)))),a&&null!=i){var b="including";i instanceof RegExp&&(b="matching"),e.checkError.compatibleMessage(a,i)===f&&(l&&f?p=!0:this.assert(f,"expected #{this} to throw error "+b+" #{exp} but got #{act}","expected #{this} to throw error not "+b+" #{exp}",i,e.checkError.getMessage(a)))}d&&p&&this.assert(f,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(a?" but #{act} was thrown":""),t instanceof Error?t.toString():t&&e.checkError.getConstructorName(t),a instanceof Error?a.toString():a&&e.checkError.getConstructorName(a)),o(this,"object",a)}function k(t,n){n&&o(this,"message",n);var i=o(this,"object"),r=o(this,"itself"),a="function"!=typeof i||r?i[t]:i.prototype[t];this.assert("function"==typeof a,"expected #{this} to respond to "+e.inspect(t),"expected #{this} to not respond to "+e.inspect(t))}function A(t,n){n&&o(this,"message",n);var i=t(o(this,"object"));this.assert(i,"expected #{this} to satisfy "+e.objDisplay(t),"expected #{this} to not satisfy"+e.objDisplay(t),!o(this,"negate"),i)}function D(t,e,r){r&&o(this,"message",r);var a=o(this,"object"),s=o(this,"message"),c=o(this,"ssfi");if(new n(a,s,c,!0).is.a("number"),"number"!=typeof t||"number"!=typeof e)throw new i((s=s?s+": ":"")+"the arguments to closeTo or approximately must be numbers"+(void 0===e?", and a delta is required":""),void 0,c);this.assert(Math.abs(a-t)<=e,"expected #{this} to be close to "+t+" +/- "+e,"expected #{this} not to be close to "+t+" +/- "+e)}function M(t,e,i){i&&o(this,"message",i);var r,a=o(this,"object"),s=o(this,"message"),c=o(this,"ssfi");new n(a,s,c,!0).is.a("function"),e?(new n(t,s,c,!0).to.have.property(e),r=t[e]):(new n(t,s,c,!0).is.a("function"),r=t()),a();var u=null==e?t():t[e],f=null==e?r:"."+e;o(this,"deltaMsgObj",f),o(this,"initialDeltaValue",r),o(this,"finalDeltaValue",u),o(this,"deltaBehavior","change"),o(this,"realDelta",u!==r),this.assert(r!==u,"expected "+f+" to change","expected "+f+" to not change")}function T(t,e,i){i&&o(this,"message",i);var r,a=o(this,"object"),s=o(this,"message"),c=o(this,"ssfi");new n(a,s,c,!0).is.a("function"),e?(new n(t,s,c,!0).to.have.property(e),r=t[e]):(new n(t,s,c,!0).is.a("function"),r=t()),new n(r,s,c,!0).is.a("number"),a();var u=null==e?t():t[e],f=null==e?r:"."+e;o(this,"deltaMsgObj",f),o(this,"initialDeltaValue",r),o(this,"finalDeltaValue",u),o(this,"deltaBehavior","increase"),o(this,"realDelta",u-r),this.assert(u-r>0,"expected "+f+" to increase","expected "+f+" to not increase")}function q(t,e,i){i&&o(this,"message",i);var r,a=o(this,"object"),s=o(this,"message"),c=o(this,"ssfi");new n(a,s,c,!0).is.a("function"),e?(new n(t,s,c,!0).to.have.property(e),r=t[e]):(new n(t,s,c,!0).is.a("function"),r=t()),new n(r,s,c,!0).is.a("number"),a();var u=null==e?t():t[e],f=null==e?r:"."+e;o(this,"deltaMsgObj",f),o(this,"initialDeltaValue",r),o(this,"finalDeltaValue",u),o(this,"deltaBehavior","decrease"),o(this,"realDelta",r-u),this.assert(u-r<0,"expected "+f+" to decrease","expected "+f+" to not decrease")}["to","be","been","is","and","has","have","with","that","which","at","of","same","but","does","still","also"].forEach((function(t){n.addProperty(t)})),n.addProperty("not",(function(){o(this,"negate",!0)})),n.addProperty("deep",(function(){o(this,"deep",!0)})),n.addProperty("nested",(function(){o(this,"nested",!0)})),n.addProperty("own",(function(){o(this,"own",!0)})),n.addProperty("ordered",(function(){o(this,"ordered",!0)})),n.addProperty("any",(function(){o(this,"any",!0),o(this,"all",!1)})),n.addProperty("all",(function(){o(this,"all",!0),o(this,"any",!1)})),n.addChainableMethod("an",r),n.addChainableMethod("a",r),n.addChainableMethod("include",c,s),n.addChainableMethod("contain",c,s),n.addChainableMethod("contains",c,s),n.addChainableMethod("includes",c,s),n.addProperty("ok",(function(){this.assert(o(this,"object"),"expected #{this} to be truthy","expected #{this} to be falsy")})),n.addProperty("true",(function(){this.assert(!0===o(this,"object"),"expected #{this} to be true","expected #{this} to be false",!o(this,"negate"))})),n.addProperty("false",(function(){this.assert(!1===o(this,"object"),"expected #{this} to be false","expected #{this} to be true",!!o(this,"negate"))})),n.addProperty("null",(function(){this.assert(null===o(this,"object"),"expected #{this} to be null","expected #{this} not to be null")})),n.addProperty("undefined",(function(){this.assert(void 0===o(this,"object"),"expected #{this} to be undefined","expected #{this} not to be undefined")})),n.addProperty("NaN",(function(){this.assert(e.isNaN(o(this,"object")),"expected #{this} to be NaN","expected #{this} not to be NaN")})),n.addProperty("exist",u),n.addProperty("exists",u),n.addProperty("empty",(function(){var t,n=o(this,"object"),r=o(this,"ssfi"),a=o(this,"message");switch(a=a?a+": ":"",e.type(n).toLowerCase()){case"array":case"string":t=n.length;break;case"map":case"set":t=n.size;break;case"weakmap":case"weakset":throw new i(a+".empty was passed a weak collection",void 0,r);case"function":var s=a+".empty was passed a function "+e.getName(n);throw new i(s.trim(),void 0,r);default:if(n!==Object(n))throw new i(a+".empty was passed non-string primitive "+e.inspect(n),void 0,r);t=Object.keys(n).length}this.assert(0===t,"expected #{this} to be empty","expected #{this} not to be empty")})),n.addProperty("arguments",f),n.addProperty("Arguments",f),n.addMethod("equal",h),n.addMethod("equals",h),n.addMethod("eq",h),n.addMethod("eql",l),n.addMethod("eqls",l),n.addMethod("above",d),n.addMethod("gt",d),n.addMethod("greaterThan",d),n.addMethod("least",p),n.addMethod("gte",p),n.addMethod("greaterThanOrEqual",p),n.addMethod("below",w),n.addMethod("lt",w),n.addMethod("lessThan",w),n.addMethod("most",b),n.addMethod("lte",b),n.addMethod("lessThanOrEqual",b),n.addMethod("within",(function(t,r,a){a&&o(this,"message",a);var s,c=o(this,"object"),u=o(this,"doLength"),f=o(this,"message"),h=f?f+": ":"",l=o(this,"ssfi"),d=e.type(c).toLowerCase(),p=e.type(t).toLowerCase(),w=e.type(r).toLowerCase(),b=!0,v="date"===p&&"date"===w?t.toUTCString()+".."+r.toUTCString():t+".."+r;if(u&&"map"!==d&&"set"!==d&&new n(c,f,l,!0).to.have.property("length"),u||"date"!==d||"date"===p&&"date"===w?"number"===p&&"number"===w||!u&&"number"!==d?u||"date"===d||"number"===d?b=!1:s=h+"expected "+("string"===d?"'"+c+"'":c)+" to be a number or a date":s=h+"the arguments to within must be numbers":s=h+"the arguments to within must be dates",b)throw new i(s,void 0,l);if(u){var m,g="length";"map"===d||"set"===d?(g="size",m=c.size):m=c.length,this.assert(m>=t&&m<=r,"expected #{this} to have a "+g+" within "+v,"expected #{this} to not have a "+g+" within "+v)}else this.assert(c>=t&&c<=r,"expected #{this} to be within "+v,"expected #{this} to not be within "+v)})),n.addMethod("instanceof",v),n.addMethod("instanceOf",v),n.addMethod("property",m),n.addMethod("ownProperty",g),n.addMethod("haveOwnProperty",g),n.addMethod("ownPropertyDescriptor",y),n.addMethod("haveOwnPropertyDescriptor",y),n.addChainableMethod("length",j,x),n.addChainableMethod("lengthOf",j,x),n.addMethod("match",E),n.addMethod("matches",E),n.addMethod("string",(function(t,i){i&&o(this,"message",i);var r=o(this,"object"),a=o(this,"message"),s=o(this,"ssfi");new n(r,a,s,!0).is.a("string"),this.assert(~r.indexOf(t),"expected #{this} to contain "+e.inspect(t),"expected #{this} to not contain "+e.inspect(t))})),n.addMethod("keys",O),n.addMethod("key",O),n.addMethod("throw",S),n.addMethod("throws",S),n.addMethod("Throw",S),n.addMethod("respondTo",k),n.addMethod("respondsTo",k),n.addProperty("itself",(function(){o(this,"itself",!0)})),n.addMethod("satisfy",A),n.addMethod("satisfies",A),n.addMethod("closeTo",D),n.addMethod("approximately",D),n.addMethod("members",(function(t,i){i&&o(this,"message",i);var r=o(this,"object"),a=o(this,"message"),s=o(this,"ssfi");new n(r,a,s,!0).to.be.an("array"),new n(t,a,s,!0).to.be.an("array");var c,u,f,h=o(this,"contains"),l=o(this,"ordered");h?(u="expected #{this} to be "+(c=l?"an ordered superset":"a superset")+" of #{exp}",f="expected #{this} to not be "+c+" of #{exp}"):(u="expected #{this} to have the same "+(c=l?"ordered members":"members")+" as #{exp}",f="expected #{this} to not have the same "+c+" as #{exp}");var d=o(this,"deep")?e.eql:void 0;this.assert(function(t,e,n,i,o){if(!i){if(t.length!==e.length)return!1;e=e.slice()}return t.every((function(t,r){if(o)return n?n(t,e[r]):t===e[r];if(!n){var a=e.indexOf(t);return-1!==a&&(i||e.splice(a,1),!0)}return e.some((function(o,r){return!!n(t,o)&&(i||e.splice(r,1),!0)}))}))}(t,r,d,h,l),u,f,t,r,!0)})),n.addMethod("oneOf",(function(t,i){i&&o(this,"message",i);var r=o(this,"object"),a=o(this,"message"),s=o(this,"ssfi"),c=o(this,"contains"),u=o(this,"deep");new n(t,a,s,!0).to.be.an("array"),c?this.assert(t.some((function(t){return r.indexOf(t)>-1})),"expected #{this} to contain one of #{exp}","expected #{this} to not contain one of #{exp}",t,r):u?this.assert(t.some((function(t){return e.eql(r,t)})),"expected #{this} to deeply equal one of #{exp}","expected #{this} to deeply equal one of #{exp}",t,r):this.assert(t.indexOf(r)>-1,"expected #{this} to be one of #{exp}","expected #{this} to not be one of #{exp}",t,r)})),n.addMethod("change",M),n.addMethod("changes",M),n.addMethod("increase",T),n.addMethod("increases",T),n.addMethod("decrease",q),n.addMethod("decreases",q),n.addMethod("by",(function(t,e){e&&o(this,"message",e);var n,i=o(this,"deltaMsgObj"),r=o(this,"initialDeltaValue"),a=o(this,"finalDeltaValue"),s=o(this,"deltaBehavior"),c=o(this,"realDelta");n="change"===s?Math.abs(a-r)===Math.abs(t):c===Math.abs(t),this.assert(n,"expected "+i+" to "+s+" by "+t,"expected "+i+" to not "+s+" by "+t)})),n.addProperty("extensible",(function(){var t=o(this,"object"),e=t===Object(t)&&Object.isExtensible(t);this.assert(e,"expected #{this} to be extensible","expected #{this} to not be extensible")})),n.addProperty("sealed",(function(){var t=o(this,"object"),e=t!==Object(t)||Object.isSealed(t);this.assert(e,"expected #{this} to be sealed","expected #{this} to not be sealed")})),n.addProperty("frozen",(function(){var t=o(this,"object"),e=t!==Object(t)||Object.isFrozen(t);this.assert(e,"expected #{this} to be frozen","expected #{this} to not be frozen")})),n.addProperty("finite",(function(t){var e=o(this,"object");this.assert("number"==typeof e&&isFinite(e),"expected #{this} to be a finite number","expected #{this} to not be a finite number")}))}},{}],6:[function(t,e,n){
|
111
|
+
e.exports=function(t,e){var n=t.Assertion,i=t.AssertionError,o=e.flag;function r(t,n){n&&o(this,"message",n),t=t.toLowerCase();var i=o(this,"object"),r=~["a","e","i","o","u"].indexOf(t.charAt(0))?"an ":"a ";this.assert(t===e.type(i).toLowerCase(),"expected #{this} to be "+r+t,"expected #{this} not to be "+r+t)}function a(t,n){return e.isNaN(t)&&e.isNaN(n)||t===n}function s(){o(this,"contains",!0)}function c(t,r){r&&o(this,"message",r);var s=o(this,"object"),c=e.type(s).toLowerCase(),u=o(this,"message"),f=o(this,"negate"),h=o(this,"ssfi"),l=o(this,"deep"),d=l?"deep ":"";u=u?u+": ":"";var p=!1;switch(c){case"string":p=-1!==s.indexOf(t);break;case"weakset":if(l)throw new i(u+"unable to use .deep.include with WeakSet",void 0,h);p=s.has(t);break;case"map":var w=l?e.eql:a;s.forEach((function(e){p=p||w(e,t)}));break;case"set":l?s.forEach((function(n){p=p||e.eql(n,t)})):p=s.has(t);break;case"array":p=l?s.some((function(n){return e.eql(n,t)})):-1!==s.indexOf(t);break;default:if(t!==Object(t))throw new i(u+"the given combination of arguments ("+c+" and "+e.type(t).toLowerCase()+") is invalid for this assertion. You can use an array, a map, an object, a set, a string, or a weakset instead of a "+e.type(t).toLowerCase(),void 0,h);var b=Object.keys(t),v=null,m=0;if(b.forEach((function(r){var a=new n(s);if(e.transferFlags(this,a,!0),o(a,"lockSsfi",!0),f&&1!==b.length)try{a.property(r,t[r])}catch(t){if(!e.checkError.compatibleConstructor(t,i))throw t;null===v&&(v=t),m++}else a.property(r,t[r])}),this),f&&b.length>1&&m===b.length)throw v;return}this.assert(p,"expected #{this} to "+d+"include "+e.inspect(t),"expected #{this} to not "+d+"include "+e.inspect(t))}function u(){var t=o(this,"object");this.assert(null!=t,"expected #{this} to exist","expected #{this} to not exist")}function f(){var t=o(this,"object"),n=e.type(t);this.assert("Arguments"===n,"expected #{this} to be arguments but got "+n,"expected #{this} to not be arguments")}function h(t,e){e&&o(this,"message",e);var n=o(this,"object");if(o(this,"deep")){var i=o(this,"lockSsfi");o(this,"lockSsfi",!0),this.eql(t),o(this,"lockSsfi",i)}else this.assert(t===n,"expected #{this} to equal #{exp}","expected #{this} to not equal #{exp}",t,this._obj,!0)}function l(t,n){n&&o(this,"message",n),this.assert(e.eql(t,o(this,"object")),"expected #{this} to deeply equal #{exp}","expected #{this} to not deeply equal #{exp}",t,this._obj,!0)}function d(t,r){r&&o(this,"message",r);var a,s=o(this,"object"),c=o(this,"doLength"),u=o(this,"message"),f=u?u+": ":"",h=o(this,"ssfi"),l=e.type(s).toLowerCase(),d=e.type(t).toLowerCase(),p=!0;if(c&&"map"!==l&&"set"!==l&&new n(s,u,h,!0).to.have.property("length"),c||"date"!==l||"date"===d?"number"===d||!c&&"number"!==l?c||"date"===l||"number"===l?p=!1:a=f+"expected "+("string"===l?"'"+s+"'":s)+" to be a number or a date":a=f+"the argument to above must be a number":a=f+"the argument to above must be a date",p)throw new i(a,void 0,h);if(c){var w,b="length";"map"===l||"set"===l?(b="size",w=s.size):w=s.length,this.assert(w>t,"expected #{this} to have a "+b+" above #{exp} but got #{act}","expected #{this} to not have a "+b+" above #{exp}",t,w)}else this.assert(s>t,"expected #{this} to be above #{exp}","expected #{this} to be at most #{exp}",t)}function p(t,r){r&&o(this,"message",r);var a,s=o(this,"object"),c=o(this,"doLength"),u=o(this,"message"),f=u?u+": ":"",h=o(this,"ssfi"),l=e.type(s).toLowerCase(),d=e.type(t).toLowerCase(),p=!0;if(c&&"map"!==l&&"set"!==l&&new n(s,u,h,!0).to.have.property("length"),c||"date"!==l||"date"===d?"number"===d||!c&&"number"!==l?c||"date"===l||"number"===l?p=!1:a=f+"expected "+("string"===l?"'"+s+"'":s)+" to be a number or a date":a=f+"the argument to least must be a number":a=f+"the argument to least must be a date",p)throw new i(a,void 0,h);if(c){var w,b="length";"map"===l||"set"===l?(b="size",w=s.size):w=s.length,this.assert(w>=t,"expected #{this} to have a "+b+" at least #{exp} but got #{act}","expected #{this} to have a "+b+" below #{exp}",t,w)}else this.assert(s>=t,"expected #{this} to be at least #{exp}","expected #{this} to be below #{exp}",t)}function w(t,r){r&&o(this,"message",r);var a,s=o(this,"object"),c=o(this,"doLength"),u=o(this,"message"),f=u?u+": ":"",h=o(this,"ssfi"),l=e.type(s).toLowerCase(),d=e.type(t).toLowerCase(),p=!0;if(c&&"map"!==l&&"set"!==l&&new n(s,u,h,!0).to.have.property("length"),c||"date"!==l||"date"===d?"number"===d||!c&&"number"!==l?c||"date"===l||"number"===l?p=!1:a=f+"expected "+("string"===l?"'"+s+"'":s)+" to be a number or a date":a=f+"the argument to below must be a number":a=f+"the argument to below must be a date",p)throw new i(a,void 0,h);if(c){var w,b="length";"map"===l||"set"===l?(b="size",w=s.size):w=s.length,this.assert(w<t,"expected #{this} to have a "+b+" below #{exp} but got #{act}","expected #{this} to not have a "+b+" below #{exp}",t,w)}else this.assert(s<t,"expected #{this} to be below #{exp}","expected #{this} to be at least #{exp}",t)}function b(t,r){r&&o(this,"message",r);var a,s=o(this,"object"),c=o(this,"doLength"),u=o(this,"message"),f=u?u+": ":"",h=o(this,"ssfi"),l=e.type(s).toLowerCase(),d=e.type(t).toLowerCase(),p=!0;if(c&&"map"!==l&&"set"!==l&&new n(s,u,h,!0).to.have.property("length"),c||"date"!==l||"date"===d?"number"===d||!c&&"number"!==l?c||"date"===l||"number"===l?p=!1:a=f+"expected "+("string"===l?"'"+s+"'":s)+" to be a number or a date":a=f+"the argument to most must be a number":a=f+"the argument to most must be a date",p)throw new i(a,void 0,h);if(c){var w,b="length";"map"===l||"set"===l?(b="size",w=s.size):w=s.length,this.assert(w<=t,"expected #{this} to have a "+b+" at most #{exp} but got #{act}","expected #{this} to have a "+b+" above #{exp}",t,w)}else this.assert(s<=t,"expected #{this} to be at most #{exp}","expected #{this} to be above #{exp}",t)}function v(t,n){n&&o(this,"message",n);var r=o(this,"object"),a=o(this,"ssfi"),s=o(this,"message");try{var c=r instanceof t}catch(n){if(n instanceof TypeError)throw new i((s=s?s+": ":"")+"The instanceof assertion needs a constructor but "+e.type(t)+" was given.",void 0,a);throw n}var u=e.getName(t);null===u&&(u="an unnamed constructor"),this.assert(c,"expected #{this} to be an instance of "+u,"expected #{this} to not be an instance of "+u)}function m(t,n,r){r&&o(this,"message",r);var a=o(this,"nested"),s=o(this,"own"),c=o(this,"message"),u=o(this,"object"),f=o(this,"ssfi"),h=typeof t;if(c=c?c+": ":"",a){if("string"!==h)throw new i(c+"the argument to property must be a string when using nested syntax",void 0,f)}else if("string"!==h&&"number"!==h&&"symbol"!==h)throw new i(c+"the argument to property must be a string, number, or symbol",void 0,f);if(a&&s)throw new i(c+'The "nested" and "own" flags cannot be combined.',void 0,f);if(null==u)throw new i(c+"Target cannot be null or undefined.",void 0,f);var l,d=o(this,"deep"),p=o(this,"negate"),w=a?e.getPathInfo(u,t):null,b=a?w.value:u[t],v="";d&&(v+="deep "),s&&(v+="own "),a&&(v+="nested "),v+="property ",l=s?Object.prototype.hasOwnProperty.call(u,t):a?w.exists:e.hasProperty(u,t),p&&1!==arguments.length||this.assert(l,"expected #{this} to have "+v+e.inspect(t),"expected #{this} to not have "+v+e.inspect(t)),arguments.length>1&&this.assert(l&&(d?e.eql(n,b):n===b),"expected #{this} to have "+v+e.inspect(t)+" of #{exp}, but got #{act}","expected #{this} to not have "+v+e.inspect(t)+" of #{act}",n,b),o(this,"object",b)}function g(t,e,n){o(this,"own",!0),m.apply(this,arguments)}function y(t,n,i){"string"==typeof n&&(i=n,n=null),i&&o(this,"message",i);var r=o(this,"object"),a=Object.getOwnPropertyDescriptor(Object(r),t);a&&n?this.assert(e.eql(n,a),"expected the own property descriptor for "+e.inspect(t)+" on #{this} to match "+e.inspect(n)+", got "+e.inspect(a),"expected the own property descriptor for "+e.inspect(t)+" on #{this} to not match "+e.inspect(n),n,a,!0):this.assert(a,"expected #{this} to have an own property descriptor for "+e.inspect(t),"expected #{this} to not have an own property descriptor for "+e.inspect(t)),o(this,"object",a)}function x(){o(this,"doLength",!0)}function j(t,i){i&&o(this,"message",i);var r,a=o(this,"object"),s=e.type(a).toLowerCase(),c=o(this,"message"),u=o(this,"ssfi"),f="length";switch(s){case"map":case"set":f="size",r=a.size;break;default:new n(a,c,u,!0).to.have.property("length"),r=a.length}this.assert(r==t,"expected #{this} to have a "+f+" of #{exp} but got #{act}","expected #{this} to not have a "+f+" of #{act}",t,r)}function E(t,e){e&&o(this,"message",e);var n=o(this,"object");this.assert(t.exec(n),"expected #{this} to match "+t,"expected #{this} not to match "+t)}function O(t){var n,r,a=o(this,"object"),s=e.type(a),c=e.type(t),u=o(this,"ssfi"),f=o(this,"deep"),h="",l=!0,d=o(this,"message"),p=(d=d?d+": ":"")+"when testing keys against an object or an array you must give a single Array|Object|String argument or multiple String arguments";if("Map"===s||"Set"===s)h=f?"deeply ":"",r=[],a.forEach((function(t,e){r.push(e)})),"Array"!==c&&(t=Array.prototype.slice.call(arguments));else{switch(r=e.getOwnEnumerableProperties(a),c){case"Array":if(arguments.length>1)throw new i(p,void 0,u);break;case"Object":if(arguments.length>1)throw new i(p,void 0,u);t=Object.keys(t);break;default:t=Array.prototype.slice.call(arguments)}t=t.map((function(t){return"symbol"==typeof t?t:String(t)}))}if(!t.length)throw new i(d+"keys required",void 0,u);var w=t.length,b=o(this,"any"),v=o(this,"all"),m=t;if(b||v||(v=!0),b&&(l=m.some((function(t){return r.some((function(n){return f?e.eql(t,n):t===n}))}))),v&&(l=m.every((function(t){return r.some((function(n){return f?e.eql(t,n):t===n}))})),o(this,"contains")||(l=l&&t.length==r.length)),w>1){var g=(t=t.map((function(t){return e.inspect(t)}))).pop();v&&(n=t.join(", ")+", and "+g),b&&(n=t.join(", ")+", or "+g)}else n=e.inspect(t[0]);n=(w>1?"keys ":"key ")+n,n=(o(this,"contains")?"contain ":"have ")+n,this.assert(l,"expected #{this} to "+h+n,"expected #{this} to not "+h+n,m.slice(0).sort(e.compareByInspect),r.sort(e.compareByInspect),!0)}function S(t,i,r){r&&o(this,"message",r);var a,s=o(this,"object"),c=o(this,"ssfi"),u=o(this,"message"),f=o(this,"negate")||!1;new n(s,u,c,!0).is.a("function"),(t instanceof RegExp||"string"==typeof t)&&(i=t,t=null);try{s()}catch(t){a=t}var h=void 0===t&&void 0===i,l=Boolean(t&&i),d=!1,p=!1;if(h||!h&&!f){var w="an error";t instanceof Error?w="#{exp}":t&&(w=e.checkError.getConstructorName(t)),this.assert(a,"expected #{this} to throw "+w,"expected #{this} to not throw an error but #{act} was thrown",t&&t.toString(),a instanceof Error?a.toString():"string"==typeof a?a:a&&e.checkError.getConstructorName(a))}if(t&&a&&(t instanceof Error&&e.checkError.compatibleInstance(a,t)===f&&(l&&f?d=!0:this.assert(f,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(a&&!f?" but #{act} was thrown":""),t.toString(),a.toString())),e.checkError.compatibleConstructor(a,t)===f&&(l&&f?d=!0:this.assert(f,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(a?" but #{act} was thrown":""),t instanceof Error?t.toString():t&&e.checkError.getConstructorName(t),a instanceof Error?a.toString():a&&e.checkError.getConstructorName(a)))),a&&null!=i){var b="including";i instanceof RegExp&&(b="matching"),e.checkError.compatibleMessage(a,i)===f&&(l&&f?p=!0:this.assert(f,"expected #{this} to throw error "+b+" #{exp} but got #{act}","expected #{this} to throw error not "+b+" #{exp}",i,e.checkError.getMessage(a)))}d&&p&&this.assert(f,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(a?" but #{act} was thrown":""),t instanceof Error?t.toString():t&&e.checkError.getConstructorName(t),a instanceof Error?a.toString():a&&e.checkError.getConstructorName(a)),o(this,"object",a)}function k(t,n){n&&o(this,"message",n);var i=o(this,"object"),r=o(this,"itself"),a="function"!=typeof i||r?i[t]:i.prototype[t];this.assert("function"==typeof a,"expected #{this} to respond to "+e.inspect(t),"expected #{this} to not respond to "+e.inspect(t))}function A(t,n){n&&o(this,"message",n);var i=t(o(this,"object"));this.assert(i,"expected #{this} to satisfy "+e.objDisplay(t),"expected #{this} to not satisfy"+e.objDisplay(t),!o(this,"negate"),i)}function D(t,e,r){r&&o(this,"message",r);var a=o(this,"object"),s=o(this,"message"),c=o(this,"ssfi");if(new n(a,s,c,!0).is.a("number"),"number"!=typeof t||"number"!=typeof e)throw new i((s=s?s+": ":"")+"the arguments to closeTo or approximately must be numbers"+(void 0===e?", and a delta is required":""),void 0,c);this.assert(Math.abs(a-t)<=e,"expected #{this} to be close to "+t+" +/- "+e,"expected #{this} not to be close to "+t+" +/- "+e)}function T(t,e,i){i&&o(this,"message",i);var r,a=o(this,"object"),s=o(this,"message"),c=o(this,"ssfi");new n(a,s,c,!0).is.a("function"),e?(new n(t,s,c,!0).to.have.property(e),r=t[e]):(new n(t,s,c,!0).is.a("function"),r=t()),a();var u=null==e?t():t[e],f=null==e?r:"."+e;o(this,"deltaMsgObj",f),o(this,"initialDeltaValue",r),o(this,"finalDeltaValue",u),o(this,"deltaBehavior","change"),o(this,"realDelta",u!==r),this.assert(r!==u,"expected "+f+" to change","expected "+f+" to not change")}function M(t,e,i){i&&o(this,"message",i);var r,a=o(this,"object"),s=o(this,"message"),c=o(this,"ssfi");new n(a,s,c,!0).is.a("function"),e?(new n(t,s,c,!0).to.have.property(e),r=t[e]):(new n(t,s,c,!0).is.a("function"),r=t()),new n(r,s,c,!0).is.a("number"),a();var u=null==e?t():t[e],f=null==e?r:"."+e;o(this,"deltaMsgObj",f),o(this,"initialDeltaValue",r),o(this,"finalDeltaValue",u),o(this,"deltaBehavior","increase"),o(this,"realDelta",u-r),this.assert(u-r>0,"expected "+f+" to increase","expected "+f+" to not increase")}function q(t,e,i){i&&o(this,"message",i);var r,a=o(this,"object"),s=o(this,"message"),c=o(this,"ssfi");new n(a,s,c,!0).is.a("function"),e?(new n(t,s,c,!0).to.have.property(e),r=t[e]):(new n(t,s,c,!0).is.a("function"),r=t()),new n(r,s,c,!0).is.a("number"),a();var u=null==e?t():t[e],f=null==e?r:"."+e;o(this,"deltaMsgObj",f),o(this,"initialDeltaValue",r),o(this,"finalDeltaValue",u),o(this,"deltaBehavior","decrease"),o(this,"realDelta",r-u),this.assert(u-r<0,"expected "+f+" to decrease","expected "+f+" to not decrease")}["to","be","been","is","and","has","have","with","that","which","at","of","same","but","does","still","also"].forEach((function(t){n.addProperty(t)})),n.addProperty("not",(function(){o(this,"negate",!0)})),n.addProperty("deep",(function(){o(this,"deep",!0)})),n.addProperty("nested",(function(){o(this,"nested",!0)})),n.addProperty("own",(function(){o(this,"own",!0)})),n.addProperty("ordered",(function(){o(this,"ordered",!0)})),n.addProperty("any",(function(){o(this,"any",!0),o(this,"all",!1)})),n.addProperty("all",(function(){o(this,"all",!0),o(this,"any",!1)})),n.addChainableMethod("an",r),n.addChainableMethod("a",r),n.addChainableMethod("include",c,s),n.addChainableMethod("contain",c,s),n.addChainableMethod("contains",c,s),n.addChainableMethod("includes",c,s),n.addProperty("ok",(function(){this.assert(o(this,"object"),"expected #{this} to be truthy","expected #{this} to be falsy")})),n.addProperty("true",(function(){this.assert(!0===o(this,"object"),"expected #{this} to be true","expected #{this} to be false",!o(this,"negate"))})),n.addProperty("false",(function(){this.assert(!1===o(this,"object"),"expected #{this} to be false","expected #{this} to be true",!!o(this,"negate"))})),n.addProperty("null",(function(){this.assert(null===o(this,"object"),"expected #{this} to be null","expected #{this} not to be null")})),n.addProperty("undefined",(function(){this.assert(void 0===o(this,"object"),"expected #{this} to be undefined","expected #{this} not to be undefined")})),n.addProperty("NaN",(function(){this.assert(e.isNaN(o(this,"object")),"expected #{this} to be NaN","expected #{this} not to be NaN")})),n.addProperty("exist",u),n.addProperty("exists",u),n.addProperty("empty",(function(){var t,n=o(this,"object"),r=o(this,"ssfi"),a=o(this,"message");switch(a=a?a+": ":"",e.type(n).toLowerCase()){case"array":case"string":t=n.length;break;case"map":case"set":t=n.size;break;case"weakmap":case"weakset":throw new i(a+".empty was passed a weak collection",void 0,r);case"function":var s=a+".empty was passed a function "+e.getName(n);throw new i(s.trim(),void 0,r);default:if(n!==Object(n))throw new i(a+".empty was passed non-string primitive "+e.inspect(n),void 0,r);t=Object.keys(n).length}this.assert(0===t,"expected #{this} to be empty","expected #{this} not to be empty")})),n.addProperty("arguments",f),n.addProperty("Arguments",f),n.addMethod("equal",h),n.addMethod("equals",h),n.addMethod("eq",h),n.addMethod("eql",l),n.addMethod("eqls",l),n.addMethod("above",d),n.addMethod("gt",d),n.addMethod("greaterThan",d),n.addMethod("least",p),n.addMethod("gte",p),n.addMethod("greaterThanOrEqual",p),n.addMethod("below",w),n.addMethod("lt",w),n.addMethod("lessThan",w),n.addMethod("most",b),n.addMethod("lte",b),n.addMethod("lessThanOrEqual",b),n.addMethod("within",(function(t,r,a){a&&o(this,"message",a);var s,c=o(this,"object"),u=o(this,"doLength"),f=o(this,"message"),h=f?f+": ":"",l=o(this,"ssfi"),d=e.type(c).toLowerCase(),p=e.type(t).toLowerCase(),w=e.type(r).toLowerCase(),b=!0,v="date"===p&&"date"===w?t.toUTCString()+".."+r.toUTCString():t+".."+r;if(u&&"map"!==d&&"set"!==d&&new n(c,f,l,!0).to.have.property("length"),u||"date"!==d||"date"===p&&"date"===w?"number"===p&&"number"===w||!u&&"number"!==d?u||"date"===d||"number"===d?b=!1:s=h+"expected "+("string"===d?"'"+c+"'":c)+" to be a number or a date":s=h+"the arguments to within must be numbers":s=h+"the arguments to within must be dates",b)throw new i(s,void 0,l);if(u){var m,g="length";"map"===d||"set"===d?(g="size",m=c.size):m=c.length,this.assert(m>=t&&m<=r,"expected #{this} to have a "+g+" within "+v,"expected #{this} to not have a "+g+" within "+v)}else this.assert(c>=t&&c<=r,"expected #{this} to be within "+v,"expected #{this} to not be within "+v)})),n.addMethod("instanceof",v),n.addMethod("instanceOf",v),n.addMethod("property",m),n.addMethod("ownProperty",g),n.addMethod("haveOwnProperty",g),n.addMethod("ownPropertyDescriptor",y),n.addMethod("haveOwnPropertyDescriptor",y),n.addChainableMethod("length",j,x),n.addChainableMethod("lengthOf",j,x),n.addMethod("match",E),n.addMethod("matches",E),n.addMethod("string",(function(t,i){i&&o(this,"message",i);var r=o(this,"object"),a=o(this,"message"),s=o(this,"ssfi");new n(r,a,s,!0).is.a("string"),this.assert(~r.indexOf(t),"expected #{this} to contain "+e.inspect(t),"expected #{this} to not contain "+e.inspect(t))})),n.addMethod("keys",O),n.addMethod("key",O),n.addMethod("throw",S),n.addMethod("throws",S),n.addMethod("Throw",S),n.addMethod("respondTo",k),n.addMethod("respondsTo",k),n.addProperty("itself",(function(){o(this,"itself",!0)})),n.addMethod("satisfy",A),n.addMethod("satisfies",A),n.addMethod("closeTo",D),n.addMethod("approximately",D),n.addMethod("members",(function(t,i){i&&o(this,"message",i);var r=o(this,"object"),a=o(this,"message"),s=o(this,"ssfi");new n(r,a,s,!0).to.be.an("array"),new n(t,a,s,!0).to.be.an("array");var c,u,f,h=o(this,"contains"),l=o(this,"ordered");h?(u="expected #{this} to be "+(c=l?"an ordered superset":"a superset")+" of #{exp}",f="expected #{this} to not be "+c+" of #{exp}"):(u="expected #{this} to have the same "+(c=l?"ordered members":"members")+" as #{exp}",f="expected #{this} to not have the same "+c+" as #{exp}");var d=o(this,"deep")?e.eql:void 0;this.assert(function(t,e,n,i,o){if(!i){if(t.length!==e.length)return!1;e=e.slice()}return t.every((function(t,r){if(o)return n?n(t,e[r]):t===e[r];if(!n){var a=e.indexOf(t);return-1!==a&&(i||e.splice(a,1),!0)}return e.some((function(o,r){return!!n(t,o)&&(i||e.splice(r,1),!0)}))}))}(t,r,d,h,l),u,f,t,r,!0)})),n.addMethod("oneOf",(function(t,i){i&&o(this,"message",i);var r=o(this,"object"),a=o(this,"message"),s=o(this,"ssfi"),c=o(this,"contains"),u=o(this,"deep");new n(t,a,s,!0).to.be.an("array"),c?this.assert(t.some((function(t){return r.indexOf(t)>-1})),"expected #{this} to contain one of #{exp}","expected #{this} to not contain one of #{exp}",t,r):u?this.assert(t.some((function(t){return e.eql(r,t)})),"expected #{this} to deeply equal one of #{exp}","expected #{this} to deeply equal one of #{exp}",t,r):this.assert(t.indexOf(r)>-1,"expected #{this} to be one of #{exp}","expected #{this} to not be one of #{exp}",t,r)})),n.addMethod("change",T),n.addMethod("changes",T),n.addMethod("increase",M),n.addMethod("increases",M),n.addMethod("decrease",q),n.addMethod("decreases",q),n.addMethod("by",(function(t,e){e&&o(this,"message",e);var n,i=o(this,"deltaMsgObj"),r=o(this,"initialDeltaValue"),a=o(this,"finalDeltaValue"),s=o(this,"deltaBehavior"),c=o(this,"realDelta");n="change"===s?Math.abs(a-r)===Math.abs(t):c===Math.abs(t),this.assert(n,"expected "+i+" to "+s+" by "+t,"expected "+i+" to not "+s+" by "+t)})),n.addProperty("extensible",(function(){var t=o(this,"object"),e=t===Object(t)&&Object.isExtensible(t);this.assert(e,"expected #{this} to be extensible","expected #{this} to not be extensible")})),n.addProperty("sealed",(function(){var t=o(this,"object"),e=t!==Object(t)||Object.isSealed(t);this.assert(e,"expected #{this} to be sealed","expected #{this} to not be sealed")})),n.addProperty("frozen",(function(){var t=o(this,"object"),e=t!==Object(t)||Object.isFrozen(t);this.assert(e,"expected #{this} to be frozen","expected #{this} to not be frozen")})),n.addProperty("finite",(function(t){var e=o(this,"object");this.assert("number"==typeof e&&isFinite(e),"expected #{this} to be a finite number","expected #{this} to not be a finite number")}))}},{}],6:[function(t,e,n){
|
112
112
|
/*!
|
113
113
|
* chai
|
114
114
|
* Copyright(c) 2011-2014 Jake Luer <jake@alogicalparadox.com>
|
@@ -362,7 +362,7 @@ n.isNaN=t("./isNaN"),
|
|
362
362
|
/*!
|
363
363
|
* getOperator method
|
364
364
|
*/
|
365
|
-
n.getOperator=t("./getOperator")},{"./addChainableMethod":9,"./addLengthGuard":10,"./addMethod":11,"./addProperty":12,"./compareByInspect":13,"./expectTypes":14,"./flag":15,"./getActual":16,"./getMessage":18,"./getOperator":19,"./getOwnEnumerableProperties":20,"./getOwnEnumerablePropertySymbols":21,"./inspect":24,"./isNaN":25,"./isProxyEnabled":26,"./objDisplay":27,"./overwriteChainableMethod":28,"./overwriteMethod":29,"./overwriteProperty":30,"./proxify":31,"./test":32,"./transferFlags":33,"check-error":35,"deep-eql":36,"get-func-name":37,pathval:38,"type-detect":39}],24:[function(t,e,n){var i=t("get-func-name"),o=t("./getProperties"),r=t("./getEnumerableProperties"),a=t("../config");e.exports=function(t,e,n,i){return c({showHidden:e,seen:[],stylize:function(t){return t}},t,void 0===n?2:n)};var s=function(t){return"object"==typeof HTMLElement?t instanceof HTMLElement:t&&"object"==typeof t&&"nodeType"in t&&1===t.nodeType&&"string"==typeof t.nodeName};function c(t,e,a){if(e&&"function"==typeof e.inspect&&e.inspect!==n.inspect&&(!e.constructor||e.constructor.prototype!==e)){var v=e.inspect(a,t);return"string"!=typeof v&&(v=c(t,v,a)),v}var m=function(t,e){switch(typeof e){case"undefined":return t.stylize("undefined","undefined");case"string":var n="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(n,"string");case"number":return 0===e&&1/e==-1/0?t.stylize("-0","number"):t.stylize(""+e,"number");case"boolean":return t.stylize(""+e,"boolean");case"symbol":return t.stylize(e.toString(),"symbol");case"bigint":return t.stylize(e.toString()+"n","bigint")}if(null===e)return t.stylize("null","null")}(t,e);if(m)return m;if(s(e)){if("outerHTML"in e)return e.outerHTML;try{if(document.xmlVersion)return(new XMLSerializer).serializeToString(e);var g=document.createElementNS("http://www.w3.org/1999/xhtml","_");g.appendChild(e.cloneNode(!1));var y=g.innerHTML.replace("><",">"+e.innerHTML+"<");return g.innerHTML="",y}catch(t){}}var x,j,E=r(e),O=t.showHidden?o(e):E;if(0===O.length||b(e)&&(1===O.length&&"stack"===O[0]||2===O.length&&"description"===O[0]&&"stack"===O[1])){if("function"==typeof e)return j=(x=i(e))?": "+x:"",t.stylize("[Function"+j+"]","special");if(p(e))return t.stylize(RegExp.prototype.toString.call(e),"regexp");if(w(e))return t.stylize(Date.prototype.toUTCString.call(e),"date");if(b(e))return u(e)}var S,k="",A=!1,D=!1,
|
365
|
+
n.getOperator=t("./getOperator")},{"./addChainableMethod":9,"./addLengthGuard":10,"./addMethod":11,"./addProperty":12,"./compareByInspect":13,"./expectTypes":14,"./flag":15,"./getActual":16,"./getMessage":18,"./getOperator":19,"./getOwnEnumerableProperties":20,"./getOwnEnumerablePropertySymbols":21,"./inspect":24,"./isNaN":25,"./isProxyEnabled":26,"./objDisplay":27,"./overwriteChainableMethod":28,"./overwriteMethod":29,"./overwriteProperty":30,"./proxify":31,"./test":32,"./transferFlags":33,"check-error":35,"deep-eql":36,"get-func-name":37,pathval:38,"type-detect":39}],24:[function(t,e,n){var i=t("get-func-name"),o=t("./getProperties"),r=t("./getEnumerableProperties"),a=t("../config");e.exports=function(t,e,n,i){return c({showHidden:e,seen:[],stylize:function(t){return t}},t,void 0===n?2:n)};var s=function(t){return"object"==typeof HTMLElement?t instanceof HTMLElement:t&&"object"==typeof t&&"nodeType"in t&&1===t.nodeType&&"string"==typeof t.nodeName};function c(t,e,a){if(e&&"function"==typeof e.inspect&&e.inspect!==n.inspect&&(!e.constructor||e.constructor.prototype!==e)){var v=e.inspect(a,t);return"string"!=typeof v&&(v=c(t,v,a)),v}var m=function(t,e){switch(typeof e){case"undefined":return t.stylize("undefined","undefined");case"string":var n="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(n,"string");case"number":return 0===e&&1/e==-1/0?t.stylize("-0","number"):t.stylize(""+e,"number");case"boolean":return t.stylize(""+e,"boolean");case"symbol":return t.stylize(e.toString(),"symbol");case"bigint":return t.stylize(e.toString()+"n","bigint")}if(null===e)return t.stylize("null","null")}(t,e);if(m)return m;if(s(e)){if("outerHTML"in e)return e.outerHTML;try{if(document.xmlVersion)return(new XMLSerializer).serializeToString(e);var g=document.createElementNS("http://www.w3.org/1999/xhtml","_");g.appendChild(e.cloneNode(!1));var y=g.innerHTML.replace("><",">"+e.innerHTML+"<");return g.innerHTML="",y}catch(t){}}var x,j,E=r(e),O=t.showHidden?o(e):E;if(0===O.length||b(e)&&(1===O.length&&"stack"===O[0]||2===O.length&&"description"===O[0]&&"stack"===O[1])){if("function"==typeof e)return j=(x=i(e))?": "+x:"",t.stylize("[Function"+j+"]","special");if(p(e))return t.stylize(RegExp.prototype.toString.call(e),"regexp");if(w(e))return t.stylize(Date.prototype.toUTCString.call(e),"date");if(b(e))return u(e)}var S,k="",A=!1,D=!1,T=["{","}"];if(l(e)&&(D=!0,T=["[","]"]),d(e)&&(A=!0,T=["[","]"]),"function"==typeof e&&(k=" [Function"+(j=(x=i(e))?": "+x:"")+"]"),p(e)&&(k=" "+RegExp.prototype.toString.call(e)),w(e)&&(k=" "+Date.prototype.toUTCString.call(e)),b(e))return u(e);if(0===O.length&&(!A||0==e.length))return T[0]+k+T[1];if(a<0)return p(e)?t.stylize(RegExp.prototype.toString.call(e),"regexp"):t.stylize("[Object]","special");if(t.seen.push(e),A)S=function(t,e,n,i,o){for(var r=[],a=0,s=e.length;a<s;++a)Object.prototype.hasOwnProperty.call(e,String(a))?r.push(h(t,e,n,i,String(a),!0)):r.push("");return o.forEach((function(o){o.match(/^\d+$/)||r.push(h(t,e,n,i,o,!0))})),r}(t,e,a,E,O);else{if(D)return f(e);S=O.map((function(n){return h(t,e,a,E,n,A)}))}return t.seen.pop(),function(t,e,n){return t.reduce((function(t,e){return t+e.length+1}),0)>60?n[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+n[1]:n[0]+e+" "+t.join(", ")+" "+n[1]}(S,k,T)}function u(t){return"["+Error.prototype.toString.call(t)+"]"}function f(t){for(var e="[ ",n=0;n<t.length;++n){if(e.length>=a.truncateThreshold-7){e+="...";break}e+=t[n]+", "}return-1!==(e+=" ]").indexOf(", ]")&&(e=e.replace(", ]"," ]")),e}function h(t,e,n,i,o,r){var a,s,u=Object.getOwnPropertyDescriptor(e,o);if(u&&(u.get?s=u.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):u.set&&(s=t.stylize("[Setter]","special"))),i.indexOf(o)<0&&(a="["+o+"]"),s||(t.seen.indexOf(e[o])<0?(s=c(t,e[o],null===n?null:n-1)).indexOf("\n")>-1&&(s=r?s.split("\n").map((function(t){return" "+t})).join("\n").substr(2):"\n"+s.split("\n").map((function(t){return" "+t})).join("\n")):s=t.stylize("[Circular]","special")),void 0===a){if(r&&o.match(/^\d+$/))return s;(a=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=t.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=t.stylize(a,"string"))}return a+": "+s}function l(t){return"object"==typeof t&&/\w+Array]$/.test(v(t))}function d(t){return Array.isArray(t)||"object"==typeof t&&"[object Array]"===v(t)}function p(t){return"object"==typeof t&&"[object RegExp]"===v(t)}function w(t){return"object"==typeof t&&"[object Date]"===v(t)}function b(t){return"object"==typeof t&&"[object Error]"===v(t)}function v(t){return Object.prototype.toString.call(t)}},{"../config":4,"./getEnumerableProperties":17,"./getProperties":22,"get-func-name":37}],25:[function(t,e,n){e.exports=Number.isNaN||
|
366
366
|
/*!
|
367
367
|
* Chai - isNaN utility
|
368
368
|
* Copyright(c) 2012-2015 Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
|
@@ -566,4 +566,4 @@ function d(t){if(function(t){return"undefined"!=typeof Symbol&&"object"==typeof
|
|
566
566
|
*
|
567
567
|
* @param {Object} target
|
568
568
|
* @returns {Array} an array of own and inherited enumerable keys from the target.
|
569
|
-
*/function w(t){var e=[];for(var n in t)e.push(n);return e}function b(t){return null===t||"object"!=typeof t}e.exports=c,e.exports.MemoizeMap=r},{"type-detect":39}],37:[function(t,e,n){var i=Function.prototype.toString,o=/\s*function(?:\s|\s*\/\*[^(?:*\/)]+\*\/\s*)*([^\s\(\/]+)/;e.exports=function(t){if("function"!=typeof t)return null;var e="";if(void 0===Function.prototype.name&&void 0===t.name){var n=i.call(t).match(o);n&&(e=n[1])}else e=t.name;return e}},{}],38:[function(t,e,n){function i(t,e){return null!=t&&e in Object(t)}function o(t){return t.replace(/([^\\])\[/g,"$1.[").match(/(\\\.|[^.]+?)+/g).map((function(t){if("constructor"===t||"__proto__"===t||"prototype"===t)return{};var e=/^\[(\d+)\]$/.exec(t);return e?{i:parseFloat(e[1])}:{p:t.replace(/\\([.[\]])/g,"$1")}}))}function r(t,e,n){var i=t,o=null;n=void 0===n?e.length:n;for(var r=0;r<n;r++){var a=e[r];i&&(i=void 0===a.p?i[a.i]:i[a.p],r===n-1&&(o=i))}return o}function a(t,e){var n=o(e),a=n[n.length-1],s={parent:n.length>1?r(t,n,n.length-1):t,name:a.p||a.i,value:r(t,n)};return s.exists=i(s.parent,s.name),s}e.exports={hasProperty:i,getPathInfo:a,getPathValue:function(t,e){return a(t,e).value},setPathValue:function(t,e,n){return function(t,e,n){for(var i=t,o=n.length,r=null,a=0;a<o;a++){var s=null,c=null;if(r=n[a],a===o-1)i[s=void 0===r.p?r.i:r.p]=e;else if(void 0!==r.p&&i[r.p])i=i[r.p];else if(void 0!==r.i&&i[r.i])i=i[r.i];else{var u=n[a+1];s=void 0===r.p?r.i:r.p,c=void 0===u.p?[]:{},i[s]=c,i=i[s]}}}(t,n,o(e)),t}}},{}],39:[function(t,e,n){!function(t,i){"object"==typeof n&&void 0!==e?e.exports=i():t.typeDetect=i()}(this,(function(){var t="function"==typeof Promise,e="object"==typeof self?self:o,n="undefined"!=typeof Symbol,i="undefined"!=typeof Map,r="undefined"!=typeof Set,a="undefined"!=typeof WeakMap,s="undefined"!=typeof WeakSet,c="undefined"!=typeof DataView,u=n&&void 0!==Symbol.iterator,f=n&&void 0!==Symbol.toStringTag,h=r&&"function"==typeof Set.prototype.entries,l=i&&"function"==typeof Map.prototype.entries,d=h&&Object.getPrototypeOf((new Set).entries()),p=l&&Object.getPrototypeOf((new Map).entries()),w=u&&"function"==typeof Array.prototype[Symbol.iterator],b=w&&Object.getPrototypeOf([][Symbol.iterator]()),v=u&&"function"==typeof String.prototype[Symbol.iterator],m=v&&Object.getPrototypeOf(""[Symbol.iterator]());return function(n){var o=typeof n;if("object"!==o)return o;if(null===n)return"null";if(n===e)return"global";if(Array.isArray(n)&&(!1===f||!(Symbol.toStringTag in n)))return"Array";if("object"==typeof window&&null!==window){if("object"==typeof window.location&&n===window.location)return"Location";if("object"==typeof window.document&&n===window.document)return"Document";if("object"==typeof window.navigator){if("object"==typeof window.navigator.mimeTypes&&n===window.navigator.mimeTypes)return"MimeTypeArray";if("object"==typeof window.navigator.plugins&&n===window.navigator.plugins)return"PluginArray"}if(("function"==typeof window.HTMLElement||"object"==typeof window.HTMLElement)&&n instanceof window.HTMLElement){if("BLOCKQUOTE"===n.tagName)return"HTMLQuoteElement";if("TD"===n.tagName)return"HTMLTableDataCellElement";if("TH"===n.tagName)return"HTMLTableHeaderCellElement"}}var u=f&&n[Symbol.toStringTag];if("string"==typeof u)return u;var h=Object.getPrototypeOf(n);return h===RegExp.prototype?"RegExp":h===Date.prototype?"Date":t&&h===Promise.prototype?"Promise":r&&h===Set.prototype?"Set":i&&h===Map.prototype?"Map":s&&h===WeakSet.prototype?"WeakSet":a&&h===WeakMap.prototype?"WeakMap":c&&h===DataView.prototype?"DataView":i&&h===p?"Map Iterator":r&&h===d?"Set Iterator":w&&h===b?"Array Iterator":v&&h===m?"String Iterator":null===h?"Object":Object.prototype.toString.call(n).slice(8,-1)}}))},{}]},{},[1])(1);a.version,a.AssertionError,a.use,a.util,a.config,a.Assertion;var s=a.expect;a.should,a.Should,a.assert;const c=["script","style","svg"],u=["class","id"],f=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"];function h(t,e={}){const n=e.ignoreAttributes?e.ignoreAttributes.filter((t=>"string"==typeof t)):[],i=e.ignoreAttributes?e.ignoreAttributes.filter((t=>"string"!=typeof t)):[],o=[...e.ignoreTags||[],...c],r=e.ignoreChildren||[],a=e.stripEmptyAttributes||u,s=/(&|")/g,h=t=>"&"===t?"&":""";let l="",d=-1;const p=new Set,w=new Set;function b(){return" ".repeat(d)}function v(t){return t instanceof Element?t.getAttribute("data-tag-name")||t.localName:t.nodeName.toLowerCase()}function m(t){const e=v(t);return!o.includes(e)&&!r.includes(e)&&!p.has(t)}function g({name:t,value:e}){return a.includes(t)&&""===e.trim()}function y(t,{name:e,value:n}){return g({name:e,value:n})?"":"class"===e?` class="${function(t){return[...t.classList.values()].sort().join(" ")}(t)}"`:` ${e}="${n.replace(s,h)}"`}const x=(t,e)=>t.name.localeCompare(e.name);function j(t){let e="";const o=Array.from(t.attributes).filter((r=function(t){return function(e){return!(!n.includes(e.name)&&!g(e)&&!i.find((n=>{if(!n.tags||!n.attributes)throw new Error("An object entry to ignoreAttributes should contain a 'tags' and an 'attributes' property.");return n.tags.includes(v(t))&&n.attributes.includes(e.name)})))}}(t),(...t)=>!r(...t))).sort(x);var r;if(1===o.length)e=y(t,o[0]);else if(o.length>1){for(let n=0;n<o.length;n+=1)e+=`\n${b()} ${y(t,o[n])}`;e+=`\n${b()}`}return e}function E(t,e){var n;if("diff-container"!==v(t)&&!o.includes(v(t))&&!w.has(t))if(w.add(t),t instanceof Text)!function(t,e){let n="",i=t;for(;i&&i instanceof Text;)n+=i.nodeValue,i=e.nextSibling();i&&e.previousSibling(),n=n.trim(),""!==n&&(l+=`${b()}${n}\n`)}(t,e);else{if(!(t instanceof Element))throw new Error(`Unknown node type: ${t}`);n=t,l+=`${b()}<${v(n)}${j(n)}>\n`}}function O(t){var e;o.includes(v(t))||t instanceof Element&&("diff-container"===v(e=t)||f.includes(v(e))||(l+=`${b()}</${v(e)}>\n`))}let S;if("string"==typeof t)S=document.createElement("diff-container"),S.innerHTML=t,d=-1;else{if(!(t instanceof Node))throw new Error(`Cannot create diffable HTML from: ${t}`);S=t,d=0}const k=document.createTreeWalker(S,NodeFilter.SHOW_TEXT+NodeFilter.SHOW_ELEMENT,null,!1);for(;k.currentNode;){const t=k.currentNode;if(E(t,k),m(t)&&k.firstChild())d+=1;else{O(t);if(!k.nextSibling()){d-=1;const t=k.parentNode();if(!t)break;p.add(t)}}}return l}const l=new URL(window.location.href).searchParams.get("wtr-session-id");function d(t){return null!=t&&"object"==typeof t}async function p(t,e,n){if("string"!=typeof l)throw new Error("Unable to execute server commands in a browser not controlled by the test runner. Use the debug option from the watch menu to debug in a controlled browser.");let i;try{const t=await import("../../../../../../../../__web-dev-server__web-socket.js");({sendMessageWaitForResponse:i}=t)}catch(t){throw new Error("Could not setup web socket connection. Are you executing this test through Web Test Runner?")}try{const o=await i({type:"wtr-command",sessionId:l,command:t,payload:e});if(!o.executed){let e;throw e=n?`Unknown command ${t}. Add the ${n} to your config.`:`Unknown command ${t}. Did you install a plugin to handle this command?`,new Error(e)}return o.result}catch(n){throw new Error(`Error while executing command ${t}${e?` with payload ${JSON.stringify(e)}`:""}: ${n.message}`)}}let w,b;const v=/snapshots\[[^\]]+] = (\n)?(?<content>`[^`]*`)/gm,m=t=>([...t.matchAll(v)].forEach((({groups:{content:e}})=>{t=t.replaceAll(e,encodeURIComponent(e))})),t);async function g({cache:t=!0}={}){if(t&&b)return b;const e=await p("get-snapshots",void 0,"snapshotPlugin from @web/test-runner-commands");if("string"!=typeof e?.content)throw new Error("Expected a result as string");const n=`${m(e.content)}/* ${Math.random()} */`,i=await import(`data:text/javascript;charset=utf-8,${n}`);if(!i||!d(i.snapshots))throw new Error("Expected snapshot result to be a module that exports an object.");return b=i.snapshots,b}function y(t){const e=[];let n;for(n="hook"===t.type?t.ctx.currentTest:t;n&&n.parent;)n.title&&e.push(n.title),n=n.parent;return e.reverse()}function x(...t){switch(t.length){case 2:{const[e,n]=t;return{message:e,options:n}}case 1:{const[n]=t;return(e=n)&&null!==e&&"object"==typeof e&&("ignoreAttributes"in e||"ignoreTags"in e||"ignoreChildren"in e||"stripEmptyAttributes"in e)?{options:n}:{message:n}}default:return{}}var e}let j;async function E(t,e){return j||await async function(){if(window.axe)j=window.axe;else if("function"!=typeof require){if(await import("./axe.min-c4141dd6.esm.js"),!window.axe)throw new Error("Error importing axe-core/axe.min.js, are you using a bundler or build tool that doesnt handle es modules?");j=window.axe}else j=require("axe-core/axe.min.js")}(),new Promise(((n,i)=>{j.run(t,e,((t,e)=>{t?i(new Error(t)):n(e)}))}))}var O,S={};O={get exports(){return S},set exports(t){S=t}},function(t){O.exports=t}((function(t,e){var n=e.flag,i=function(t){var e;return a(t)?0===t.length?"empty NodeList":(e=Array.prototype.slice.call(t,0,5).map(i).join(", "),t.length>5?e+"... (+"+(t.length-5)+" more)":e):r(t)?(e=t.tagName.toLowerCase(),t.id&&(e+="#"+t.id),t.className&&(e+="."+String(t.className).replace(/\s+/g,".")),Array.prototype.forEach.call(t.attributes,(function(t){"class"!==t.name&&"id"!==t.name&&(e+="["+t.name+(t.value?'="'+t.value+'"]':"]"))})),e):String(t)},o=function(t,o){var r=n(this,"object"),a=r.getAttribute(t);n(this,"negate")&&void 0!==o||this.assert(!!r.attributes[t],"expected "+i(r)+" to have an attribute #{exp}","expected "+i(r)+" not to have an attribute #{exp}",t),void 0!==o&&this.assert(o===a,"expected "+i(r)+" to have an attribute "+e.inspect(t)+" with the value #{exp}, but the value was #{act}","expected "+i(r)+" not to have an attribute "+e.inspect(t)+" with the value #{act}",o,a),n(this,"object",a)},r=function(t){return 1===t.nodeType},a=function(t){return"[object NodeList]"===Object.prototype.toString.call(t)};e.elToString=i,t.Assertion.addMethod("attr",o),t.Assertion.addMethod("attribute",o),t.Assertion.addMethod("class",(function(t){var e=n(this,"object");if(t instanceof RegExp)return this.assert(Array.from(e.classList).some((function(e){return t.test(e)})),"expected "+i(e)+" to have class matching #{exp}","expected "+i(e)+" not to have class matching #{exp}",t);this.assert(e.classList.contains(t),"expected "+i(e)+" to have class #{exp}","expected "+i(e)+" not to have class #{exp}",t)})),t.Assertion.addMethod("id",(function(t){var e=n(this,"object");this.assert(e.id==t,"expected "+i(e)+" to have id #{exp}","expected "+i(e)+" not to have id #{exp}",t)})),t.Assertion.addMethod("html",(function(t){var e=n(this,"object"),o=n(this,"object").innerHTML;n(this,"contains")?this.assert(o.indexOf(t)>=0,"expected #{act} to contain HTML #{exp}","expected #{act} not to contain HTML #{exp}",t,o):this.assert(o===t,"expected "+i(e)+" to have HTML #{exp}, but the HTML was #{act}","expected "+i(e)+" not to have HTML #{exp}",t,o)})),t.Assertion.addChainableMethod("trimmed",null,(function(){n(this,"trim-text",!0)})),t.Assertion.addProperty("rendered",(function(){n(this,"rendered-text",!0)})),t.Assertion.addMethod("text",(function(t){var o,r,s=n(this,"object"),c=n(this,"contains"),u=n(this,"trim-text"),f=n(this,"rendered-text")?"innerText":"textContent";a(s)?(o=Array.prototype.map.call(s,(function(t){return u?t[f].trim():t[f]})),Array.isArray(t)?(r=c?t[n(this,"negate")?"some":"every"]((function(t){return Array.prototype.some.call(s,(function(e){return(u?e[f].trim():e[f])===t}))})):e.eql(o,t),o=o.join(),t=t.join()):(o=o.join(""),r=c?o.indexOf(t)>=0:o===t)):(o=u?s[f].trim():s[f],r=c?o.indexOf(t)>=0:o===t);var h=i(s),l="";u&&(l+="trimmed "),n(this,"rendered-text")&&(l+="rendered "),l+="text",c?this.assert(r,"expected "+h+" to contain #{exp}, but the "+l+" was #{act}","expected "+h+" not to contain #{exp}, but the "+l+" was #{act}",t,o):this.assert(r,"expected "+h+" to have "+l+" #{exp}, but the "+l+" was #{act}","expected "+h+" not to have "+l+" #{exp}",t,o)})),t.Assertion.addMethod("value",(function(t){var e=n(this,"object"),o=n(this,"object").value;this.assert(n(this,"object").value===t,"expected "+i(e)+" to have value #{exp}, but the value was #{act}","expected "+i(e)+" not to have value #{exp}",t,o)})),t.Assertion.overwriteProperty("exist",(function(t){return function(){var e=n(this,"object");a(e)?this.assert(e.length>0,"expected an empty NodeList to have nodes","expected "+i(e)+" to not exist"):t.apply(this,arguments)}})),t.Assertion.overwriteProperty("empty",(function(t){return function(){var e=n(this,"object");r(e)?this.assert(0===e.children.length,"expected "+i(e)+" to be empty","expected "+i(e)+" to not be empty"):a(e)?this.assert(0===e.length,"expected "+i(e)+" to be empty","expected "+i(e)+" to not be empty"):t.apply(this,arguments)}})),t.Assertion.overwriteChainableMethod("length",(function(t){return function(e){var o=n(this,"object");if(a(o)||r(o)){var s=o.children?o.children.length:o.length;this.assert(s===e,"expected "+i(o)+" to have #{exp} children but it had #{act} children","expected "+i(o)+" to not have #{exp} children",e,s)}else t.apply(this,arguments)}}),(function(t){return function(){t.call(this)}})),t.Assertion.overwriteMethod("match",(function(t){return function(e){var o=n(this,"object");r(o)?this.assert(o.matches(e),"expected "+i(o)+" to match #{exp}","expected "+i(o)+" to not match #{exp}",e):a(o)?this.assert(!!o.length&&Array.prototype.every.call(o,(function(t){return t.matches(e)})),"expected "+i(o)+" to match #{exp}","expected "+i(o)+" to not match #{exp}",e):t.apply(this,arguments)}})),t.Assertion.overwriteChainableMethod("contain",(function(t){return function(e){var o=n(this,"object");r(o)?"string"==typeof e?this.assert(!!o.querySelector(e),"expected "+i(o)+" to contain #{exp}","expected "+i(o)+" to not contain #{exp}",e):this.assert(o.contains(e),"expected "+i(o)+" to contain "+i(e),"expected "+i(o)+" to not contain "+i(e)):t.apply(this,arguments)}}),(function(t){return function(){t.call(this)}})),t.Assertion.addMethod("descendant",(function(t){var e=n(this,"object"),o=t;"string"==typeof t?(o=e.querySelector(t),this.assert(!!o,"expected "+i(e)+" to have descendant #{exp}","expected "+i(e)+" to not have descendant #{exp}",t)):this.assert(e.contains(t),"expected "+i(e)+" to contain "+i(t),"expected "+i(e)+" to not contain "+i(t)),n(this,"object",o)})),t.Assertion.addMethod("descendants",(function(t){var e=n(this,"object"),o=e.querySelectorAll(t);this.assert(!!o.length,"expected "+i(e)+" to have descendants #{exp}","expected "+i(e)+" to not have descendants #{exp}",t),n(this,"object",o)})),t.Assertion.addProperty("displayed",(function(){var t=n(this,"object"),e=document.body.contains(t)?window.getComputedStyle(t).display:t.style.display;this.assert("none"!==e,"expected "+i(t)+" to be displayed, but it was not","expected "+i(t)+" to not be displayed, but it was as "+e,e)})),t.Assertion.addProperty("visible",(function(){var t=n(this,"object"),e=document.body.contains(t)?window.getComputedStyle(t).visibility:t.style.visibility;this.assert("hidden"!==e&&"collapse"!==e,"expected "+i(t)+" to be visible, but it was "+("hidden"===e?"hidden":"collapsed"),"expected "+i(t)+" to not be visible, but it was",e)})),t.Assertion.addMethod("tagName",(function(t){var e=n(this,"object"),o=e.tagName;this.assert(o.toUpperCase()===t.toUpperCase(),"expected "+i(e)+" to have tagName "+t+", but it was "+o,"expected "+i(e)+" to not have tagName "+t+", but it was "+o,o)})),t.Assertion.addMethod("style",(function(t,e){var o=n(this,"object"),r=window.getComputedStyle(o).getPropertyValue(t).trim();this.assert(r===e,"expected "+i(o)+" to have style property "+t+" equal to "+e+", but it was equal to "+r,"expected "+i(o)+" to not have style property "+t+" equal to "+e+", but it was equal to "+r,r)})),t.Assertion.overwriteProperty("focus",(function(){return function(){var t=n(this,"object"),e=t.ownerDocument.activeElement;this.assert(t===t.ownerDocument.activeElement,"expected #{this} to have focus","expected #{this} not to have focus",t,e)}})),t.Assertion.overwriteProperty("checked",(function(){return function(){var t=n(this,"object");if(!(t instanceof HTMLInputElement)||"checkbox"!==t.type&&"radio"!==t.type)throw new TypeError(i(t)+" is not a checkbox or radio input");this.assert(t.checked,"expected "+i(t)+" to be checked","expected "+i(t)+" to not be checked")}}))}));var k=S;var A={};!function(t,e){!function(e){t.exports=e}((function(t,e){var n,i,o,r=Array.prototype.slice;function a(t){return"function"==typeof t&&"function"==typeof t.getCall&&"function"==typeof t.calledWithExactly}function s(t){switch(t){case 1:return"once";case 2:return"twice";case 3:return"thrice";default:return(t||0)+" times"}}function c(t){if(!a(t._obj)&&(!(n=t._obj)||!a(n.proxy)))throw new TypeError(e.inspect(t._obj)+" is not a spy or a call to a spy!");var n}function u(t,e,n,i,o){var r=i?"always have ":"have ";function s(e){return t.printf.apply(t,e)}return n=n||"",a(t.proxy)&&(t=t.proxy),{affirmative:function(){return s(["expected %n to "+r+e+n].concat(o))},negative:function(){return s(["expected %n to not "+r+e].concat(o))}}}function f(n,i,o){e.addProperty(t.Assertion.prototype,n,(function(){c(this);var t=u(this._obj,i,o,!1);this.assert(this._obj[n],t.affirmative,t.negative)}))}function h(t,n,i){return function(){c(this);var o="always"+t[0].toUpperCase()+t.substring(1),a=e.flag(this,"always")&&"function"==typeof this._obj[o],s=a?o:t,f=u(this._obj,n,i,a,r.call(arguments));this.assert(this._obj[s].apply(this._obj,arguments),f.affirmative,f.negative)}}function l(n,i,o,r){var a=h(i,o,r);e.addMethod(t.Assertion.prototype,n,a)}function d(t,e,n){l(t,t,e,n)}e.addProperty(t.Assertion.prototype,"always",(function(){e.flag(this,"always",!0)})),f("called","been called"," at least once, but it was never called"),n="callCount",i="been called exactly %1",o=", but it was called %c%C",e.addMethod(t.Assertion.prototype,n,(function(t){c(this);var e=u(this._obj,i,o,!1,[s(t)]);this.assert(this._obj[n]===t,e.affirmative,e.negative)})),f("calledOnce","been called exactly once",", but it was called %c%C"),f("calledTwice","been called exactly twice",", but it was called %c%C"),f("calledThrice","been called exactly thrice",", but it was called %c%C"),function(n,i,o){var r=h(n,i,o);e.addProperty(t.Assertion.prototype,n,r)}("calledWithNew","been called with new"),d("calledBefore","been called before %1"),d("calledAfter","been called after %1"),d("calledImmediatelyBefore","been called immediately before %1"),d("calledImmediatelyAfter","been called immediately after %1"),d("calledOn","been called with %1 as this",", but it was called with %t instead"),d("calledWith","been called with arguments %*","%D"),d("calledOnceWith","been called exactly once with arguments %*","%D"),d("calledWithExactly","been called with exact arguments %*","%D"),d("calledOnceWithExactly","been called exactly once with exact arguments %*","%D"),d("calledWithMatch","been called with arguments matching %*","%D"),d("returned","returned %1"),l("thrown","threw","thrown %1")}))}({get exports(){return A},set exports(t){A=t}});var D=A;function M(t,e){return new Promise((n=>{t.addEventListener(e,(function i(o){n(o),t.removeEventListener(e,i)}))}))}a.use(((t,e)=>{t.Assertion.addProperty("lightDom",(function(){new t.Assertion(this._obj.nodeType).to.equal(1),e.flag(this,"lightDom",!0)})),t.Assertion.addProperty("shadowDom",(function(){new t.Assertion(this._obj.nodeType).to.equal(1),e.flag(this,"shadowDom",!0)})),t.Assertion.addProperty("dom",(function(){new t.Assertion(this._obj.nodeType).to.equal(1),e.flag(this,"dom",!0)}));const n=t=>(t=>{if(window.ShadyCSS&&!1===window.ShadyCSS.nativeShadow){const e=t.tagName.toLowerCase();let n=" ";return Array.prototype.slice.call(t.attributes).forEach((t=>{n+=`${t.name}="${t.value}" `})),n=n.slice(0,-1),`<${e}${n}>${t.innerHTML}</${e}>`}return t.outerHTML})(t),i=t=>t.innerHTML,o=t=>(t=>{if(window.ShadyCSS&&!1===window.ShadyCSS.nativeShadow){const e=t.tagName.toLowerCase(),n=new RegExp(e,"g");let i=t.shadowRoot.innerHTML;return i=i.replace(/style-scope/g,""),i=i.replace(n,""),i=i.replace(/(class=".*?)(\s)*"/g,'$1"'),i=i.replace(/ class="\w?"/g,""),i}return t.shadowRoot.innerHTML})(t),r=(e,n,i,...o)=>{const{message:r,options:a}=x(...o),s=new t.Assertion(h(e,a),r),c=h(n,a);i?s.not.equal(c,r):s.equal(c,r)},a=t=>function(a,...s){if(e.flag(this,"lightDom")||e.flag(this,"shadowDom")||e.flag(this,"dom")){let t;t=e.flag(this,"lightDom")?i(this._obj):e.flag(this,"shadowDom")?o(this._obj):n(this._obj),r(t,a,e.flag(this,"negate"),s[0])}else t.apply(this,[a,...s])};function s(e,n,...i){const o=window.__mocha_context__,r=window.__snapshot__,{message:a,options:s}=x(...i),{index:c}=o;o.index+=1;const u=y(o.runnable),f=h(e,s);if(r.update)r.set(u,c,f,"html");else{const e=r.get(u,c);if(e){const i=r.match(f,h(e.code,s));if(i&&n||!i&&!n)throw new t.AssertionError(a||`Received value does not match stored snapshot ${c}`,{actual:f,expected:e.code,showDiff:!0},t.util.flag(this,"ssfi"))}else r.set(u,c,f,"html")}}async function c(e,n,...i){const{message:o,options:r}=x(...i),a=y(window.__WTR_MOCHA_RUNNER__.test).join(" "),s=h(e,r),c=await async function(t){if(!d(t))throw new Error("You must provide a payload object");if("string"!=typeof t.name)throw new Error("You must provide a snapshot name");return(await g(t))[t.name]}({name:a}),u=await async function(){return w||(w=await p("get-snapshot-config",void 0,"snapshotPlugin from @web/test-runner-commands")),w}();if(c&&!u.updateSnapshots){if(n?c===s:c!==s)throw new t.AssertionError(o||`Snapshot ${a} does not match the saved snapshot on disk`,{actual:s,expected:c,showDiff:!0},t.util.flag(this,"ssfi"))}else c!==s&&await async function(t){if(!d(t))throw new Error("You must provide a payload object");if("string"!=typeof t.name)throw new Error("You must provide a snapshot name");if(void 0!==t.content&&"string"!=typeof t.content)throw new Error("You must provide a snapshot content");return(await g())[t.name]=t.content,p("save-snapshot",t,"snapshotPlugin from @web/test-runner-commands")}({name:a,content:s})}function u(t,e,...n){if(window.__mocha_context__&&window.__snapshot__)return s.call(this,t,e,...n);if(window.__WTR_MOCHA_RUNNER__)return c.call(this,t,e,...n);throw new Error("Could not detect test runner environment. Snapshots require either Web Test Runner with mocha, or Karma with mocha and karma mocha snapshot")}function f(n){const r=t.util.flag(this,"object");let a;return a=e.flag(this,"shadowDom")?o(r):e.flag(this,"lightDom")?i(r):r,u.call(this,a,e.flag(this,"negate"),n)}t.Assertion.overwriteMethod("equals",a),t.Assertion.overwriteMethod("equal",a),t.Assertion.overwriteMethod("eq",a),e.addMethod(t.Assertion.prototype,"equalSnapshot",f),e.addMethod(t.Assertion.prototype,"notEqualSnapshot",f),e.addMethod(t.assert,"equalSnapshot",u),e.addMethod(t.assert,"notEqualSnapshot",u),t.assert.dom={equal(t,e,...i){return r.call(this,n(t),e,!1,...i)},notEqual(t,e,...i){return r.call(this,n(t),e,!0,...i)},equalSnapshot(t,...e){return u.call(this,t,!1,...e)},notEqualSnapshot(t,...e){return u.call(this,t,!0,...e)}},t.assert.lightDom={equal(t,e,...n){return r.call(this,i(t),e,!1,...n)},notEqual(t,e,...n){return r.call(this,i(t),e,!0,...n)},equalSnapshot(t,...e){return u.call(this,i(t),!1,...e)},notEqualSnapshot(t,...e){return u.call(this,i(t),!0,...e)}},t.assert.shadowDom={equal(t,e,...n){return r.call(this,o(t),e,!1,...n)},notEqual(t,e,...n){return r.call(this,o(t),e,!0,...n)},equalSnapshot(t,...e){return u.call(this,o(t),!1,...e)},notEqualSnapshot(t,...e){return u.call(this,o(t),!0,...e)}}})),a.use(((t,e)=>{const{assert:n}=t;e.addMethod(t.Assertion.prototype,"accessible",(function(t){const n=this._obj,i=t||{},o=function(t){if(!t||!t.length)return;const e={};return t.forEach((t=>{e[t]={enabled:!1}})),e}(i.ignoredRules),r={resultTypes:["violations"]};o&&(r.rules=o);let a=i.done?i.done:void 0;if(a||(a=()=>{}),i.ignoredTags){n.parentNode.querySelectorAll(i.ignoredTags.toString()).forEach((t=>t.setAttribute("aria-hidden",!0)))}const s=E(n,r).then((t=>function(t,e,n){const{violations:i}=e;if(i.length&&t)return void n();if(!i.length&&!t)return void n();const o=[];i.length&&(o[o.length]="Accessibility Violations",o[o.length]="---",i.forEach((t=>{o[o.length]=`Rule: ${t.id}`,o[o.length]=`Impact: ${t.impact}`,o[o.length]=`${t.help} (${t.helpUrl})`,t.nodes.forEach((t=>{o[o.length]="",t.target&&(o[o.length]=`Issue target: ${t.target}`),o[o.length]=`Context: ${t.html}`,t.failureSummary&&(o[o.length]=`${t.failureSummary}`)})),o[o.length]="---"})));const r=new Error(o.join("\n"));throw n(r),r}(e.flag(this,"negate"),t,a)));return this.then=s.then.bind(s),this})),n.isAccessible=function(e,n){return new t.Assertion(e).to.be.accessible(n)},n.isNotAccessible=function(e,n){return new t.Assertion(e).not.to.be.accessible(n)}})),a.use(k),a.use(D);const T=t=>"object"==typeof t&&Promise.resolve(t)===t;async function q(t){let e=!1,n=t&&t.updateComplete;return T(n)&&(await n,e=!0),n=!(!t||!t.componentOnReady)&&t.componentOnReady(),T(n)&&(await n,e=!0),e||await new Promise((t=>{requestAnimationFrame((()=>t()))})),window.ShadyDOM&&"function"==typeof window.ShadyDOM.flush&&window.ShadyDOM.flush(),t}const $=[];function P(t=document.createElement("div")){return document.body.appendChild(t),$.push(t),t}function N(){$&&$.forEach((t=>{document.body.removeChild(t)})),$.length=0}const F=t=>null!=t&&"function"==typeof t[Symbol.iterator];function L(t){return i(t)||t instanceof Node||"number"==typeof t||"boolean"==typeof t||"string"==typeof t}const C=Object.freeze({ELEMENT_NODE:1,TEXT_NODE:3,COMMENT_NODE:8,DOCUMENT_FRAGMENT_NODE:11}),R=({nodeType:t,textContent:e})=>{switch(t){case C.COMMENT_NODE:return!1;case C.TEXT_NODE:return e.trim();default:return!0}};async function I(t,e={}){const o=function(t,e={},o){const r=P(e.parentNode);if((e.render??n)(e.scopedElements?o(t,e.scopedElements):t,r),i(t))return r.firstElementChild;const[a]=Array.from(r.childNodes).filter(R);return a}(t,e,e.scopedElements?await import("./scopedElementsWrapper-4c29be11.esm.js").then((t=>t.getScopedElementsTemplate)):void 0);if(await q(o),e.scopedElements){const[t]=Array.from(o.shadowRoot.childNodes).filter(R);return await q(t),t}return o}async function _(n,i={}){if(i.scopedElements)return I(t`${e(n)}`,i);const o=function(t,e={}){const n=P(e.parentNode);return n.innerHTML=t,n.children[0]}(n,i);return await q(o),o}async function U(t,e){if("string"==typeof t)return _(t,e);if(e?.render||(F(n=t)?[...n].every(L):L(n)))return I(t,e);var n;throw new Error("Invalid template provided - string or lit-html TemplateResult is supported")}try{"afterEach"in window&&afterEach((()=>{N()})),"teardown"in window&&teardown((()=>{N()}))}catch(t){}export{s as a,U as f,M as o};
|
569
|
+
*/function w(t){var e=[];for(var n in t)e.push(n);return e}function b(t){return null===t||"object"!=typeof t}e.exports=c,e.exports.MemoizeMap=r},{"type-detect":39}],37:[function(t,e,n){var i=Function.prototype.toString,o=/\s*function(?:\s|\s*\/\*[^(?:*\/)]+\*\/\s*)*([^\s\(\/]+)/;e.exports=function(t){if("function"!=typeof t)return null;var e="";if(void 0===Function.prototype.name&&void 0===t.name){var n=i.call(t).match(o);n&&(e=n[1])}else e=t.name;return e}},{}],38:[function(t,e,n){function i(t,e){return null!=t&&e in Object(t)}function o(t){return t.replace(/([^\\])\[/g,"$1.[").match(/(\\\.|[^.]+?)+/g).map((function(t){if("constructor"===t||"__proto__"===t||"prototype"===t)return{};var e=/^\[(\d+)\]$/.exec(t);return e?{i:parseFloat(e[1])}:{p:t.replace(/\\([.[\]])/g,"$1")}}))}function r(t,e,n){var i=t,o=null;n=void 0===n?e.length:n;for(var r=0;r<n;r++){var a=e[r];i&&(i=void 0===a.p?i[a.i]:i[a.p],r===n-1&&(o=i))}return o}function a(t,e){var n=o(e),a=n[n.length-1],s={parent:n.length>1?r(t,n,n.length-1):t,name:a.p||a.i,value:r(t,n)};return s.exists=i(s.parent,s.name),s}e.exports={hasProperty:i,getPathInfo:a,getPathValue:function(t,e){return a(t,e).value},setPathValue:function(t,e,n){return function(t,e,n){for(var i=t,o=n.length,r=null,a=0;a<o;a++){var s=null,c=null;if(r=n[a],a===o-1)i[s=void 0===r.p?r.i:r.p]=e;else if(void 0!==r.p&&i[r.p])i=i[r.p];else if(void 0!==r.i&&i[r.i])i=i[r.i];else{var u=n[a+1];s=void 0===r.p?r.i:r.p,c=void 0===u.p?[]:{},i[s]=c,i=i[s]}}}(t,n,o(e)),t}}},{}],39:[function(t,e,n){!function(t,i){"object"==typeof n&&void 0!==e?e.exports=i():t.typeDetect=i()}(this,(function(){var t="function"==typeof Promise,e="object"==typeof self?self:o,n="undefined"!=typeof Symbol,i="undefined"!=typeof Map,r="undefined"!=typeof Set,a="undefined"!=typeof WeakMap,s="undefined"!=typeof WeakSet,c="undefined"!=typeof DataView,u=n&&void 0!==Symbol.iterator,f=n&&void 0!==Symbol.toStringTag,h=r&&"function"==typeof Set.prototype.entries,l=i&&"function"==typeof Map.prototype.entries,d=h&&Object.getPrototypeOf((new Set).entries()),p=l&&Object.getPrototypeOf((new Map).entries()),w=u&&"function"==typeof Array.prototype[Symbol.iterator],b=w&&Object.getPrototypeOf([][Symbol.iterator]()),v=u&&"function"==typeof String.prototype[Symbol.iterator],m=v&&Object.getPrototypeOf(""[Symbol.iterator]());return function(n){var o=typeof n;if("object"!==o)return o;if(null===n)return"null";if(n===e)return"global";if(Array.isArray(n)&&(!1===f||!(Symbol.toStringTag in n)))return"Array";if("object"==typeof window&&null!==window){if("object"==typeof window.location&&n===window.location)return"Location";if("object"==typeof window.document&&n===window.document)return"Document";if("object"==typeof window.navigator){if("object"==typeof window.navigator.mimeTypes&&n===window.navigator.mimeTypes)return"MimeTypeArray";if("object"==typeof window.navigator.plugins&&n===window.navigator.plugins)return"PluginArray"}if(("function"==typeof window.HTMLElement||"object"==typeof window.HTMLElement)&&n instanceof window.HTMLElement){if("BLOCKQUOTE"===n.tagName)return"HTMLQuoteElement";if("TD"===n.tagName)return"HTMLTableDataCellElement";if("TH"===n.tagName)return"HTMLTableHeaderCellElement"}}var u=f&&n[Symbol.toStringTag];if("string"==typeof u)return u;var h=Object.getPrototypeOf(n);return h===RegExp.prototype?"RegExp":h===Date.prototype?"Date":t&&h===Promise.prototype?"Promise":r&&h===Set.prototype?"Set":i&&h===Map.prototype?"Map":s&&h===WeakSet.prototype?"WeakSet":a&&h===WeakMap.prototype?"WeakMap":c&&h===DataView.prototype?"DataView":i&&h===p?"Map Iterator":r&&h===d?"Set Iterator":w&&h===b?"Array Iterator":v&&h===m?"String Iterator":null===h?"Object":Object.prototype.toString.call(n).slice(8,-1)}}))},{}]},{},[1])(1);a.version,a.AssertionError,a.use,a.util,a.config,a.Assertion;var s=a.expect;a.should,a.Should,a.assert;const c=["script","style","svg"],u=["class","id"],f=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"];function h(t,e={}){const n=e.ignoreAttributes?e.ignoreAttributes.filter((t=>"string"==typeof t)):[],i=e.ignoreAttributes?e.ignoreAttributes.filter((t=>"string"!=typeof t)):[],o=[...e.ignoreTags||[],...c],r=e.ignoreChildren||[],a=e.stripEmptyAttributes||u,s=/(&|")/g,h=t=>"&"===t?"&":""";let l="",d=-1;const p=new Set,w=new Set;function b(){return" ".repeat(d)}function v(t){return t instanceof Element?t.getAttribute("data-tag-name")||t.localName:t.nodeName.toLowerCase()}function m(t){const e=v(t);return!o.includes(e)&&!r.includes(e)&&!p.has(t)}function g({name:t,value:e}){return a.includes(t)&&""===e.trim()}function y(t,{name:e,value:n}){return g({name:e,value:n})?"":"class"===e?` class="${function(t){return[...t.classList.values()].sort().join(" ")}(t)}"`:` ${e}="${n.replace(s,h)}"`}const x=(t,e)=>t.name.localeCompare(e.name);function j(t){let e="";const o=Array.from(t.attributes).filter((r=function(t){return function(e){return!(!n.includes(e.name)&&!g(e)&&!i.find((n=>{if(!n.tags||!n.attributes)throw new Error("An object entry to ignoreAttributes should contain a 'tags' and an 'attributes' property.");return n.tags.includes(v(t))&&n.attributes.includes(e.name)})))}}(t),(...t)=>!r(...t))).sort(x);var r;if(1===o.length)e=y(t,o[0]);else if(o.length>1){for(let n=0;n<o.length;n+=1)e+=`\n${b()} ${y(t,o[n])}`;e+=`\n${b()}`}return e}function E(t,e){var n;if("diff-container"!==v(t)&&!o.includes(v(t))&&!w.has(t))if(w.add(t),t instanceof Text)!function(t,e){let n="",i=t;for(;i&&i instanceof Text;)n+=i.nodeValue,i=e.nextSibling();i&&e.previousSibling(),n=n.trim(),""!==n&&(l+=`${b()}${n}\n`)}(t,e);else{if(!(t instanceof Element))throw new Error(`Unknown node type: ${t}`);n=t,l+=`${b()}<${v(n)}${j(n)}>\n`}}function O(t){var e;o.includes(v(t))||t instanceof Element&&("diff-container"===v(e=t)||f.includes(v(e))||(l+=`${b()}</${v(e)}>\n`))}let S;if("string"==typeof t)S=document.createElement("diff-container"),S.innerHTML=t,d=-1;else{if(!(t instanceof Node))throw new Error(`Cannot create diffable HTML from: ${t}`);S=t,d=0}const k=document.createTreeWalker(S,NodeFilter.SHOW_TEXT+NodeFilter.SHOW_ELEMENT,null,!1);for(;k.currentNode;){const t=k.currentNode;if(E(t,k),m(t)&&k.firstChild())d+=1;else{O(t);if(!k.nextSibling()){d-=1;const t=k.parentNode();if(!t)break;p.add(t)}}}return l}const l=new URL(window.location.href).searchParams.get("wtr-session-id");function d(t){return null!=t&&"object"==typeof t}async function p(t,e,n){if("string"!=typeof l)throw new Error("Unable to execute server commands in a browser not controlled by the test runner. Use the debug option from the watch menu to debug in a controlled browser.");let i;try{const t=await import("../../../../../../../../__web-dev-server__web-socket.js");({sendMessageWaitForResponse:i}=t)}catch(t){throw new Error("Could not setup web socket connection. Are you executing this test through Web Test Runner?")}try{const o=await i({type:"wtr-command",sessionId:l,command:t,payload:e});if(!o.executed){let e;throw e=n?`Unknown command ${t}. Add the ${n} to your config.`:`Unknown command ${t}. Did you install a plugin to handle this command?`,new Error(e)}return o.result}catch(n){throw new Error(`Error while executing command ${t}${e?` with payload ${JSON.stringify(e)}`:""}: ${n.message}`)}}let w,b;const v=/snapshots\[[^\]]+] = (\n)?(?<content>`[^`]*`)/gm,m=t=>([...t.matchAll(v)].forEach((({groups:{content:e}})=>{t=t.replaceAll(e,encodeURIComponent(e))})),t);async function g({cache:t=!0}={}){if(t&&b)return b;const e=await p("get-snapshots",void 0,"snapshotPlugin from @web/test-runner-commands");if("string"!=typeof e?.content)throw new Error("Expected a result as string");const n=`${m(e.content)}/* ${Math.random()} */`,i=await import(`data:text/javascript;charset=utf-8,${n}`);if(!i||!d(i.snapshots))throw new Error("Expected snapshot result to be a module that exports an object.");return b=i.snapshots,b}function y(t){const e=[];let n;for(n="hook"===t.type?t.ctx.currentTest:t;n&&n.parent;)n.title&&e.push(n.title),n=n.parent;return e.reverse()}function x(...t){switch(t.length){case 2:{const[e,n]=t;return{message:e,options:n}}case 1:{const[n]=t;return(e=n)&&null!==e&&"object"==typeof e&&("ignoreAttributes"in e||"ignoreTags"in e||"ignoreChildren"in e||"stripEmptyAttributes"in e)?{options:n}:{message:n}}default:return{}}var e}let j;async function E(t,e){return j||await async function(){if(window.axe)j=window.axe;else if("function"!=typeof require){if(await import("./axe.min-c4141dd6.esm.js"),!window.axe)throw new Error("Error importing axe-core/axe.min.js, are you using a bundler or build tool that doesnt handle es modules?");j=window.axe}else j=require("axe-core/axe.min.js")}(),new Promise(((n,i)=>{j.run(t,e,((t,e)=>{t?i(new Error(t)):n(e)}))}))}var O,S={};O={get exports(){return S},set exports(t){S=t}},function(t){O.exports=t}((function(t,e){var n=e.flag,i=function(t){var e;return a(t)?0===t.length?"empty NodeList":(e=Array.prototype.slice.call(t,0,5).map(i).join(", "),t.length>5?e+"... (+"+(t.length-5)+" more)":e):r(t)?(e=t.tagName.toLowerCase(),t.id&&(e+="#"+t.id),t.className&&(e+="."+String(t.className).replace(/\s+/g,".")),Array.prototype.forEach.call(t.attributes,(function(t){"class"!==t.name&&"id"!==t.name&&(e+="["+t.name+(t.value?'="'+t.value+'"]':"]"))})),e):String(t)},o=function(t,o){var r=n(this,"object"),a=r.getAttribute(t);n(this,"negate")&&void 0!==o||this.assert(!!r.attributes[t],"expected "+i(r)+" to have an attribute #{exp}","expected "+i(r)+" not to have an attribute #{exp}",t),void 0!==o&&this.assert(o===a,"expected "+i(r)+" to have an attribute "+e.inspect(t)+" with the value #{exp}, but the value was #{act}","expected "+i(r)+" not to have an attribute "+e.inspect(t)+" with the value #{act}",o,a),n(this,"object",a)},r=function(t){return 1===t.nodeType},a=function(t){return"[object NodeList]"===Object.prototype.toString.call(t)};e.elToString=i,t.Assertion.addMethod("attr",o),t.Assertion.addMethod("attribute",o),t.Assertion.addMethod("class",(function(t){var e=n(this,"object");if(t instanceof RegExp)return this.assert(Array.from(e.classList).some((function(e){return t.test(e)})),"expected "+i(e)+" to have class matching #{exp}","expected "+i(e)+" not to have class matching #{exp}",t);this.assert(e.classList.contains(t),"expected "+i(e)+" to have class #{exp}","expected "+i(e)+" not to have class #{exp}",t)})),t.Assertion.addMethod("id",(function(t){var e=n(this,"object");this.assert(e.id==t,"expected "+i(e)+" to have id #{exp}","expected "+i(e)+" not to have id #{exp}",t)})),t.Assertion.addMethod("html",(function(t){var e=n(this,"object"),o=n(this,"object").innerHTML;n(this,"contains")?this.assert(o.indexOf(t)>=0,"expected #{act} to contain HTML #{exp}","expected #{act} not to contain HTML #{exp}",t,o):this.assert(o===t,"expected "+i(e)+" to have HTML #{exp}, but the HTML was #{act}","expected "+i(e)+" not to have HTML #{exp}",t,o)})),t.Assertion.addChainableMethod("trimmed",null,(function(){n(this,"trim-text",!0)})),t.Assertion.addProperty("rendered",(function(){n(this,"rendered-text",!0)})),t.Assertion.addMethod("text",(function(t){var o,r,s=n(this,"object"),c=n(this,"contains"),u=n(this,"trim-text"),f=n(this,"rendered-text")?"innerText":"textContent";a(s)?(o=Array.prototype.map.call(s,(function(t){return u?t[f].trim():t[f]})),Array.isArray(t)?(r=c?t[n(this,"negate")?"some":"every"]((function(t){return Array.prototype.some.call(s,(function(e){return(u?e[f].trim():e[f])===t}))})):e.eql(o,t),o=o.join(),t=t.join()):(o=o.join(""),r=c?o.indexOf(t)>=0:o===t)):(o=u?s[f].trim():s[f],r=c?o.indexOf(t)>=0:o===t);var h=i(s),l="";u&&(l+="trimmed "),n(this,"rendered-text")&&(l+="rendered "),l+="text",c?this.assert(r,"expected "+h+" to contain #{exp}, but the "+l+" was #{act}","expected "+h+" not to contain #{exp}, but the "+l+" was #{act}",t,o):this.assert(r,"expected "+h+" to have "+l+" #{exp}, but the "+l+" was #{act}","expected "+h+" not to have "+l+" #{exp}",t,o)})),t.Assertion.addMethod("value",(function(t){var e=n(this,"object"),o=n(this,"object").value;this.assert(n(this,"object").value===t,"expected "+i(e)+" to have value #{exp}, but the value was #{act}","expected "+i(e)+" not to have value #{exp}",t,o)})),t.Assertion.overwriteProperty("exist",(function(t){return function(){var e=n(this,"object");a(e)?this.assert(e.length>0,"expected an empty NodeList to have nodes","expected "+i(e)+" to not exist"):t.apply(this,arguments)}})),t.Assertion.overwriteProperty("empty",(function(t){return function(){var e=n(this,"object");r(e)?this.assert(0===e.children.length,"expected "+i(e)+" to be empty","expected "+i(e)+" to not be empty"):a(e)?this.assert(0===e.length,"expected "+i(e)+" to be empty","expected "+i(e)+" to not be empty"):t.apply(this,arguments)}})),t.Assertion.overwriteChainableMethod("length",(function(t){return function(e){var o=n(this,"object");if(a(o)||r(o)){var s=o.children?o.children.length:o.length;this.assert(s===e,"expected "+i(o)+" to have #{exp} children but it had #{act} children","expected "+i(o)+" to not have #{exp} children",e,s)}else t.apply(this,arguments)}}),(function(t){return function(){t.call(this)}})),t.Assertion.overwriteMethod("match",(function(t){return function(e){var o=n(this,"object");r(o)?this.assert(o.matches(e),"expected "+i(o)+" to match #{exp}","expected "+i(o)+" to not match #{exp}",e):a(o)?this.assert(!!o.length&&Array.prototype.every.call(o,(function(t){return t.matches(e)})),"expected "+i(o)+" to match #{exp}","expected "+i(o)+" to not match #{exp}",e):t.apply(this,arguments)}})),t.Assertion.overwriteChainableMethod("contain",(function(t){return function(e){var o=n(this,"object");r(o)?"string"==typeof e?this.assert(!!o.querySelector(e),"expected "+i(o)+" to contain #{exp}","expected "+i(o)+" to not contain #{exp}",e):this.assert(o.contains(e),"expected "+i(o)+" to contain "+i(e),"expected "+i(o)+" to not contain "+i(e)):t.apply(this,arguments)}}),(function(t){return function(){t.call(this)}})),t.Assertion.addMethod("descendant",(function(t){var e=n(this,"object"),o=t;"string"==typeof t?(o=e.querySelector(t),this.assert(!!o,"expected "+i(e)+" to have descendant #{exp}","expected "+i(e)+" to not have descendant #{exp}",t)):this.assert(e.contains(t),"expected "+i(e)+" to contain "+i(t),"expected "+i(e)+" to not contain "+i(t)),n(this,"object",o)})),t.Assertion.addMethod("descendants",(function(t){var e=n(this,"object"),o=e.querySelectorAll(t);this.assert(!!o.length,"expected "+i(e)+" to have descendants #{exp}","expected "+i(e)+" to not have descendants #{exp}",t),n(this,"object",o)})),t.Assertion.addProperty("displayed",(function(){var t=n(this,"object"),e=document.body.contains(t)?window.getComputedStyle(t).display:t.style.display;this.assert("none"!==e,"expected "+i(t)+" to be displayed, but it was not","expected "+i(t)+" to not be displayed, but it was as "+e,e)})),t.Assertion.addProperty("visible",(function(){var t=n(this,"object"),e=document.body.contains(t)?window.getComputedStyle(t).visibility:t.style.visibility;this.assert("hidden"!==e&&"collapse"!==e,"expected "+i(t)+" to be visible, but it was "+("hidden"===e?"hidden":"collapsed"),"expected "+i(t)+" to not be visible, but it was",e)})),t.Assertion.addMethod("tagName",(function(t){var e=n(this,"object"),o=e.tagName;this.assert(o.toUpperCase()===t.toUpperCase(),"expected "+i(e)+" to have tagName "+t+", but it was "+o,"expected "+i(e)+" to not have tagName "+t+", but it was "+o,o)})),t.Assertion.addMethod("style",(function(t,e){var o=n(this,"object"),r=window.getComputedStyle(o).getPropertyValue(t).trim();this.assert(r===e,"expected "+i(o)+" to have style property "+t+" equal to "+e+", but it was equal to "+r,"expected "+i(o)+" to not have style property "+t+" equal to "+e+", but it was equal to "+r,r)})),t.Assertion.overwriteProperty("focus",(function(){return function(){var t=n(this,"object"),e=t.ownerDocument.activeElement;this.assert(t===t.ownerDocument.activeElement,"expected #{this} to have focus","expected #{this} not to have focus",t,e)}})),t.Assertion.overwriteProperty("checked",(function(){return function(){var t=n(this,"object");if(!(t instanceof HTMLInputElement)||"checkbox"!==t.type&&"radio"!==t.type)throw new TypeError(i(t)+" is not a checkbox or radio input");this.assert(t.checked,"expected "+i(t)+" to be checked","expected "+i(t)+" to not be checked")}}))}));var k=S;var A={};!function(t,e){!function(e){t.exports=e}((function(t,e){var n,i,o,r=Array.prototype.slice;function a(t){return"function"==typeof t&&"function"==typeof t.getCall&&"function"==typeof t.calledWithExactly}function s(t){switch(t){case 1:return"once";case 2:return"twice";case 3:return"thrice";default:return(t||0)+" times"}}function c(t){if(!a(t._obj)&&(!(n=t._obj)||!a(n.proxy)))throw new TypeError(e.inspect(t._obj)+" is not a spy or a call to a spy!");var n}function u(t,e,n,i,o){var r=i?"always have ":"have ";function s(e){return t.printf.apply(t,e)}return n=n||"",a(t.proxy)&&(t=t.proxy),{affirmative:function(){return s(["expected %n to "+r+e+n].concat(o))},negative:function(){return s(["expected %n to not "+r+e].concat(o))}}}function f(n,i,o){e.addProperty(t.Assertion.prototype,n,(function(){c(this);var t=u(this._obj,i,o,!1);this.assert(this._obj[n],t.affirmative,t.negative)}))}function h(t,n,i){return function(){c(this);var o="always"+t[0].toUpperCase()+t.substring(1),a=e.flag(this,"always")&&"function"==typeof this._obj[o],s=a?o:t,f=u(this._obj,n,i,a,r.call(arguments));this.assert(this._obj[s].apply(this._obj,arguments),f.affirmative,f.negative)}}function l(n,i,o,r){var a=h(i,o,r);e.addMethod(t.Assertion.prototype,n,a)}function d(t,e,n){l(t,t,e,n)}e.addProperty(t.Assertion.prototype,"always",(function(){e.flag(this,"always",!0)})),f("called","been called"," at least once, but it was never called"),n="callCount",i="been called exactly %1",o=", but it was called %c%C",e.addMethod(t.Assertion.prototype,n,(function(t){c(this);var e=u(this._obj,i,o,!1,[s(t)]);this.assert(this._obj[n]===t,e.affirmative,e.negative)})),f("calledOnce","been called exactly once",", but it was called %c%C"),f("calledTwice","been called exactly twice",", but it was called %c%C"),f("calledThrice","been called exactly thrice",", but it was called %c%C"),function(n,i,o){var r=h(n,i,o);e.addProperty(t.Assertion.prototype,n,r)}("calledWithNew","been called with new"),d("calledBefore","been called before %1"),d("calledAfter","been called after %1"),d("calledImmediatelyBefore","been called immediately before %1"),d("calledImmediatelyAfter","been called immediately after %1"),d("calledOn","been called with %1 as this",", but it was called with %t instead"),d("calledWith","been called with arguments %*","%D"),d("calledOnceWith","been called exactly once with arguments %*","%D"),d("calledWithExactly","been called with exact arguments %*","%D"),d("calledOnceWithExactly","been called exactly once with exact arguments %*","%D"),d("calledWithMatch","been called with arguments matching %*","%D"),d("returned","returned %1"),l("thrown","threw","thrown %1")}))}({get exports(){return A},set exports(t){A=t}});var D=A;function T(t){return new Promise((e=>{setTimeout(e,t)}))}function M(t,e){return new Promise((n=>{t.addEventListener(e,(function i(o){n(o),t.removeEventListener(e,i)}))}))}function q(t,e,n={}){const{interval:i=50,timeout:o=1e3}=n,{stack:r}=new Error;return new Promise(((n,a)=>{let s;setTimeout((()=>{clearTimeout(s);const t=new Error(e?`Timeout: ${e}`:`waitUntil timed out after ${o}ms`);t.stack=r,a(t)}),o),async function e(){try{await t()?n():s=setTimeout((()=>{e()}),i)}catch(t){a(t)}}()}))}a.use(((t,e)=>{t.Assertion.addProperty("lightDom",(function(){new t.Assertion(this._obj.nodeType).to.equal(1),e.flag(this,"lightDom",!0)})),t.Assertion.addProperty("shadowDom",(function(){new t.Assertion(this._obj.nodeType).to.equal(1),e.flag(this,"shadowDom",!0)})),t.Assertion.addProperty("dom",(function(){new t.Assertion(this._obj.nodeType).to.equal(1),e.flag(this,"dom",!0)}));const n=t=>(t=>{if(window.ShadyCSS&&!1===window.ShadyCSS.nativeShadow){const e=t.tagName.toLowerCase();let n=" ";return Array.prototype.slice.call(t.attributes).forEach((t=>{n+=`${t.name}="${t.value}" `})),n=n.slice(0,-1),`<${e}${n}>${t.innerHTML}</${e}>`}return t.outerHTML})(t),i=t=>t.innerHTML,o=t=>(t=>{if(window.ShadyCSS&&!1===window.ShadyCSS.nativeShadow){const e=t.tagName.toLowerCase(),n=new RegExp(e,"g");let i=t.shadowRoot.innerHTML;return i=i.replace(/style-scope/g,""),i=i.replace(n,""),i=i.replace(/(class=".*?)(\s)*"/g,'$1"'),i=i.replace(/ class="\w?"/g,""),i}return t.shadowRoot.innerHTML})(t),r=(e,n,i,...o)=>{const{message:r,options:a}=x(...o),s=new t.Assertion(h(e,a),r),c=h(n,a);i?s.not.equal(c,r):s.equal(c,r)},a=t=>function(a,...s){if(e.flag(this,"lightDom")||e.flag(this,"shadowDom")||e.flag(this,"dom")){let t;t=e.flag(this,"lightDom")?i(this._obj):e.flag(this,"shadowDom")?o(this._obj):n(this._obj),r(t,a,e.flag(this,"negate"),s[0])}else t.apply(this,[a,...s])};function s(e,n,...i){const o=window.__mocha_context__,r=window.__snapshot__,{message:a,options:s}=x(...i),{index:c}=o;o.index+=1;const u=y(o.runnable),f=h(e,s);if(r.update)r.set(u,c,f,"html");else{const e=r.get(u,c);if(e){const i=r.match(f,h(e.code,s));if(i&&n||!i&&!n)throw new t.AssertionError(a||`Received value does not match stored snapshot ${c}`,{actual:f,expected:e.code,showDiff:!0},t.util.flag(this,"ssfi"))}else r.set(u,c,f,"html")}}async function c(e,n,...i){const{message:o,options:r}=x(...i),a=y(window.__WTR_MOCHA_RUNNER__.test).join(" "),s=h(e,r),c=await async function(t){if(!d(t))throw new Error("You must provide a payload object");if("string"!=typeof t.name)throw new Error("You must provide a snapshot name");return(await g(t))[t.name]}({name:a}),u=await async function(){return w||(w=await p("get-snapshot-config",void 0,"snapshotPlugin from @web/test-runner-commands")),w}();if(c&&!u.updateSnapshots){if(n?c===s:c!==s)throw new t.AssertionError(o||`Snapshot ${a} does not match the saved snapshot on disk`,{actual:s,expected:c,showDiff:!0},t.util.flag(this,"ssfi"))}else c!==s&&await async function(t){if(!d(t))throw new Error("You must provide a payload object");if("string"!=typeof t.name)throw new Error("You must provide a snapshot name");if(void 0!==t.content&&"string"!=typeof t.content)throw new Error("You must provide a snapshot content");return(await g())[t.name]=t.content,p("save-snapshot",t,"snapshotPlugin from @web/test-runner-commands")}({name:a,content:s})}function u(t,e,...n){if(window.__mocha_context__&&window.__snapshot__)return s.call(this,t,e,...n);if(window.__WTR_MOCHA_RUNNER__)return c.call(this,t,e,...n);throw new Error("Could not detect test runner environment. Snapshots require either Web Test Runner with mocha, or Karma with mocha and karma mocha snapshot")}function f(n){const r=t.util.flag(this,"object");let a;return a=e.flag(this,"shadowDom")?o(r):e.flag(this,"lightDom")?i(r):r,u.call(this,a,e.flag(this,"negate"),n)}t.Assertion.overwriteMethod("equals",a),t.Assertion.overwriteMethod("equal",a),t.Assertion.overwriteMethod("eq",a),e.addMethod(t.Assertion.prototype,"equalSnapshot",f),e.addMethod(t.Assertion.prototype,"notEqualSnapshot",f),e.addMethod(t.assert,"equalSnapshot",u),e.addMethod(t.assert,"notEqualSnapshot",u),t.assert.dom={equal(t,e,...i){return r.call(this,n(t),e,!1,...i)},notEqual(t,e,...i){return r.call(this,n(t),e,!0,...i)},equalSnapshot(t,...e){return u.call(this,t,!1,...e)},notEqualSnapshot(t,...e){return u.call(this,t,!0,...e)}},t.assert.lightDom={equal(t,e,...n){return r.call(this,i(t),e,!1,...n)},notEqual(t,e,...n){return r.call(this,i(t),e,!0,...n)},equalSnapshot(t,...e){return u.call(this,i(t),!1,...e)},notEqualSnapshot(t,...e){return u.call(this,i(t),!0,...e)}},t.assert.shadowDom={equal(t,e,...n){return r.call(this,o(t),e,!1,...n)},notEqual(t,e,...n){return r.call(this,o(t),e,!0,...n)},equalSnapshot(t,...e){return u.call(this,o(t),!1,...e)},notEqualSnapshot(t,...e){return u.call(this,o(t),!0,...e)}}})),a.use(((t,e)=>{const{assert:n}=t;e.addMethod(t.Assertion.prototype,"accessible",(function(t){const n=this._obj,i=t||{},o=function(t){if(!t||!t.length)return;const e={};return t.forEach((t=>{e[t]={enabled:!1}})),e}(i.ignoredRules),r={resultTypes:["violations"]};o&&(r.rules=o);let a=i.done?i.done:void 0;if(a||(a=()=>{}),i.ignoredTags){n.parentNode.querySelectorAll(i.ignoredTags.toString()).forEach((t=>t.setAttribute("aria-hidden",!0)))}const s=E(n,r).then((t=>function(t,e,n){const{violations:i}=e;if(i.length&&t)return void n();if(!i.length&&!t)return void n();const o=[];i.length&&(o[o.length]="Accessibility Violations",o[o.length]="---",i.forEach((t=>{o[o.length]=`Rule: ${t.id}`,o[o.length]=`Impact: ${t.impact}`,o[o.length]=`${t.help} (${t.helpUrl})`,t.nodes.forEach((t=>{o[o.length]="",t.target&&(o[o.length]=`Issue target: ${t.target}`),o[o.length]=`Context: ${t.html}`,t.failureSummary&&(o[o.length]=`${t.failureSummary}`)})),o[o.length]="---"})));const r=new Error(o.join("\n"));throw n(r),r}(e.flag(this,"negate"),t,a)));return this.then=s.then.bind(s),this})),n.isAccessible=function(e,n){return new t.Assertion(e).to.be.accessible(n)},n.isNotAccessible=function(e,n){return new t.Assertion(e).not.to.be.accessible(n)}})),a.use(k),a.use(D);const $=t=>"object"==typeof t&&Promise.resolve(t)===t;async function P(t){let e=!1,n=t&&t.updateComplete;return $(n)&&(await n,e=!0),n=!(!t||!t.componentOnReady)&&t.componentOnReady(),$(n)&&(await n,e=!0),e||await new Promise((t=>{requestAnimationFrame((()=>t()))})),window.ShadyDOM&&"function"==typeof window.ShadyDOM.flush&&window.ShadyDOM.flush(),t}const N=[];function F(t=document.createElement("div")){return document.body.appendChild(t),N.push(t),t}function L(){N&&N.forEach((t=>{document.body.removeChild(t)})),N.length=0}const C=t=>null!=t&&"function"==typeof t[Symbol.iterator];function R(t){return i(t)||t instanceof Node||"number"==typeof t||"boolean"==typeof t||"string"==typeof t}const I=Object.freeze({ELEMENT_NODE:1,TEXT_NODE:3,COMMENT_NODE:8,DOCUMENT_FRAGMENT_NODE:11}),_=({nodeType:t,textContent:e})=>{switch(t){case I.COMMENT_NODE:return!1;case I.TEXT_NODE:return e.trim();default:return!0}};async function U(t,e={}){const o=function(t,e={},o){const r=F(e.parentNode);if((e.render??n)(e.scopedElements?o(t,e.scopedElements):t,r),i(t))return r.firstElementChild;const[a]=Array.from(r.childNodes).filter(_);return a}(t,e,e.scopedElements?await import("./scopedElementsWrapper-4c29be11.esm.js").then((t=>t.getScopedElementsTemplate)):void 0);if(await P(o),e.scopedElements){const[t]=Array.from(o.shadowRoot.childNodes).filter(_);return await P(t),t}return o}async function W(n,i={}){if(i.scopedElements)return U(t`${e(n)}`,i);const o=function(t,e={}){const n=F(e.parentNode);return n.innerHTML=t,n.children[0]}(n,i);return await P(o),o}async function z(t,e){if("string"==typeof t)return W(t,e);if(e?.render||(C(n=t)?[...n].every(R):R(n)))return U(t,e);var n;throw new Error("Invalid template provided - string or lit-html TemplateResult is supported")}try{"afterEach"in window&&afterEach((()=>{L()})),"teardown"in window&&teardown((()=>{L()}))}catch(t){}export{s as a,T as b,P as e,z as f,M as o,q as w};
|