@aquera/nile-elements 0.1.55-beta-1 → 0.1.55-patch-3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -0
- package/demo/index.html +0 -1
- package/dist/axe.min-2c0b27d0.esm.js +1 -0
- package/dist/axe.min-51d832fe.cjs.js +2 -0
- package/dist/axe.min-51d832fe.cjs.js.map +1 -0
- package/dist/{fixture-cb376a7f.cjs.js → fixture-28d63bc4.cjs.js} +2 -2
- package/dist/fixture-28d63bc4.cjs.js.map +1 -0
- package/dist/{fixture-c1bd203f.cjs.js → fixture-4da0d7ba.cjs.js} +3 -3
- package/dist/fixture-4da0d7ba.cjs.js.map +1 -0
- package/dist/{fixture-add72f26.esm.js → fixture-78a015b8.esm.js} +1 -1
- package/dist/{fixture-f2693d97.esm.js → fixture-aeed6660.esm.js} +2 -2
- package/dist/flow-938d2713.esm.js +17 -0
- package/dist/flow-eb3cbb92.cjs.js +14 -0
- package/dist/flow-eb3cbb92.cjs.js.map +1 -0
- package/dist/index.js +2 -2
- package/dist/internal/resizable-table-helper.cjs.js +2 -0
- package/dist/internal/resizable-table-helper.cjs.js.map +1 -0
- package/dist/internal/resizable-table-helper.esm.js +1 -0
- package/dist/internal/resizable-table-styles.cjs.js +2 -0
- package/dist/internal/resizable-table-styles.cjs.js.map +1 -0
- package/dist/internal/resizable-table-styles.esm.js +132 -0
- package/dist/lit-html-879bd16a.esm.js +7 -0
- package/dist/lit-html-9a84b336.cjs.js +6 -0
- package/dist/lit-html-9a84b336.cjs.js.map +1 -0
- package/dist/nile-code-editor/extensionSetup.cjs.js +3 -3
- package/dist/nile-code-editor/extensionSetup.cjs.js.map +1 -1
- package/dist/nile-code-editor/extensionSetup.esm.js +1 -1
- package/dist/nile-code-editor/nile-code-editor.cjs.js +2 -2
- package/dist/nile-code-editor/nile-code-editor.cjs.js.map +1 -1
- package/dist/nile-code-editor/nile-code-editor.esm.js +2 -2
- package/dist/nile-file-preview/nile-file-preview.cjs.js +1 -1
- package/dist/nile-file-preview/nile-file-preview.cjs.js.map +1 -1
- package/dist/nile-file-preview/nile-file-preview.css.cjs.js +1 -1
- package/dist/nile-file-preview/nile-file-preview.css.cjs.js.map +1 -1
- package/dist/nile-file-preview/nile-file-preview.css.esm.js +25 -48
- package/dist/nile-file-preview/nile-file-preview.esm.js +1 -3
- package/dist/nile-file-preview/nile-file-preview.template.cjs.js +1 -1
- package/dist/nile-file-preview/nile-file-preview.template.cjs.js.map +1 -1
- package/dist/nile-file-preview/nile-file-preview.template.esm.js +22 -22
- package/dist/nile-file-preview/nile-file-preview.test.cjs.js +1 -1
- package/dist/nile-file-preview/nile-file-preview.test.esm.js +1 -1
- package/dist/nile-file-preview/types/nile-file-preview.enums.cjs.js +1 -1
- package/dist/nile-file-preview/types/nile-file-preview.enums.cjs.js.map +1 -1
- package/dist/nile-file-preview/types/nile-file-preview.enums.esm.js +1 -1
- package/dist/nile-file-preview/utils/index.cjs.js +1 -1
- package/dist/nile-file-preview/utils/index.esm.js +1 -1
- package/dist/nile-file-preview/utils/nile-file-preview.util.cjs.js +1 -1
- package/dist/nile-file-preview/utils/nile-file-preview.util.cjs.js.map +1 -1
- package/dist/nile-file-preview/utils/nile-file-preview.util.esm.js +1 -1
- package/dist/nile-file-upload/index.cjs.js +1 -1
- package/dist/nile-file-upload/index.esm.js +1 -1
- package/dist/nile-file-upload/nile-file-upload.cjs.js +1 -1
- package/dist/nile-file-upload/nile-file-upload.cjs.js.map +1 -1
- package/dist/nile-file-upload/nile-file-upload.css.cjs.js +1 -1
- package/dist/nile-file-upload/nile-file-upload.css.cjs.js.map +1 -1
- package/dist/nile-file-upload/nile-file-upload.css.esm.js +9 -4
- package/dist/nile-file-upload/nile-file-upload.esm.js +2 -2
- package/dist/nile-file-upload/nile-file-upload.template.cjs.js +3 -3
- package/dist/nile-file-upload/nile-file-upload.template.cjs.js.map +1 -1
- package/dist/nile-file-upload/nile-file-upload.template.esm.js +31 -31
- package/dist/nile-file-upload/nile-file-upload.test.cjs.js +1 -1
- package/dist/nile-file-upload/nile-file-upload.test.esm.js +1 -1
- package/dist/nile-file-upload/types/file-upload.enums.cjs.js +1 -1
- package/dist/nile-file-upload/types/file-upload.enums.cjs.js.map +1 -1
- package/dist/nile-file-upload/types/file-upload.enums.esm.js +1 -1
- package/dist/nile-file-upload/utils/file-validation.util.cjs.js +2 -2
- package/dist/nile-file-upload/utils/file-validation.util.cjs.js.map +1 -1
- package/dist/nile-file-upload/utils/file-validation.util.esm.js +1 -1
- package/dist/nile-icon/icons/svg/format_align_justify.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/format_align_justify.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/format_align_justify.esm.js +1 -0
- package/dist/nile-icon/icons/svg/format_align_left.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/format_align_left.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/format_align_left.esm.js +1 -0
- package/dist/nile-icon/icons/svg/format_align_middle.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/format_align_middle.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/format_align_middle.esm.js +1 -0
- package/dist/nile-icon/icons/svg/format_align_right.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/format_align_right.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/format_align_right.esm.js +1 -0
- package/dist/nile-icon/icons/svg/format_bold.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/format_bold.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/format_bold.esm.js +1 -0
- package/dist/nile-icon/icons/svg/format_clear.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/format_clear.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/format_clear.esm.js +1 -0
- package/dist/nile-icon/icons/svg/format_italic.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/format_italic.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/format_italic.esm.js +1 -0
- package/dist/nile-icon/icons/svg/format_list_bulleted.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/format_list_bulleted.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/format_list_bulleted.esm.js +1 -0
- package/dist/nile-icon/icons/svg/format_list_numbered.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/format_list_numbered.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/format_list_numbered.esm.js +1 -0
- package/dist/nile-icon/icons/svg/format_underline.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/format_underline.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/format_underline.esm.js +1 -0
- package/dist/nile-icon/icons/svg/image_2.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/image_2.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/image_2.esm.js +1 -0
- package/dist/nile-icon/icons/svg/link_2.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/link_2.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/link_2.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-action.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-action.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-action.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-activity.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-activity.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-activity.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-alert-circle.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-alert-circle.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-alert-circle.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-align-center.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-align-center.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-align-center.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-annotation-x.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-annotation-x.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-annotation-x.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-arrow-down.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-arrow-down.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-arrow-down.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-arrow-narrow-down.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-arrow-narrow-down.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-arrow-narrow-down.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-arrow-narrow-left.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-arrow-narrow-left.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-arrow-narrow-left.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-arrow-narrow-right.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-arrow-narrow-right.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-arrow-narrow-right.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-arrow-up.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-arrow-up.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-arrow-up.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-bar-chart-12.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-bar-chart-12.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-bar-chart-12.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-bell-01.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-bell-01.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-bell-01.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-bell-ringing-04.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-bell-ringing-04.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-bell-ringing-04.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-bold-01.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-bold-01.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-bold-01.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-building-01.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-building-01.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-building-01.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-building-05.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-building-05.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-building-05.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-button-loading-blue-animated.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-button-loading-blue-animated.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-button-loading-blue-animated.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-button-loading-blue.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-button-loading-blue.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-button-loading-blue.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-calendar-plus-02.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-calendar-plus-02.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-calendar-plus-02.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-calendar.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-calendar.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-calendar.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-check-circle-broken.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-check-circle-broken.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-check-circle-broken.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-check-circle.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-check-circle.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-check-circle.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-check-square-broken.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-check-square-broken.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-check-square-broken.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-check.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-check.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-check.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-chevron-down.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-chevron-down.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-chevron-down.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-chevron-left.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-chevron-left.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-chevron-left.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-chevron-right.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-chevron-right.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-chevron-right.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-chevron-selector-vertical.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-chevron-selector-vertical.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-chevron-selector-vertical.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-chevron-up-double.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-chevron-up-double.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-chevron-up-double.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-chevron-up.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-chevron-up.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-chevron-up.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-copy-03.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-copy-03.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-copy-03.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-dataflow-04.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-dataflow-04.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-dataflow-04.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-dots-grid.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-dots-grid.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-dots-grid.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-dots-vertical.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-dots-vertical.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-dots-vertical.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-download-01.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-download-01.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-download-01.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-dropdown.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-dropdown.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-dropdown.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-edit-02.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-edit-02.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-edit-02.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-edit-05.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-edit-05.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-edit-05.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-expand-06.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-expand-06.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-expand-06.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-eye-off.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-eye-off.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-eye-off.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-eye.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-eye.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-eye.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-file-02.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-file-02.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-file-02.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-file-06.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-file-06.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-file-06.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-file-check-02.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-file-check-02.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-file-check-02.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-file-question-03.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-file-question-03.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-file-question-03.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-filter-lines.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-filter-lines.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-filter-lines.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-grid-01.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-grid-01.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-grid-01.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-help-circle.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-help-circle.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-help-circle.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-image-03.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-image-03.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-image-03.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-image-user-left.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-image-user-left.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-image-user-left.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-info-circle.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-info-circle.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-info-circle.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-italic-01.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-italic-01.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-italic-01.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-layers-three-01.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-layers-three-01.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-layers-three-01.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-list.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-list.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-list.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-log-out-01.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-log-out-01.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-log-out-01.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-mail-01.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-mail-01.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-mail-01.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-mail-04.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-mail-04.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-mail-04.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-marker-pin-01.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-marker-pin-01.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-marker-pin-01.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-menu-05.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-menu-05.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-menu-05.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-message-text-square-01.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-message-text-square-01.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-message-text-square-01.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-minimize-02.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-minimize-02.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-minimize-02.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-minus.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-minus.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-minus.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-plus.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-plus.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-plus.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-refresh-cw-02.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-refresh-cw-02.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-refresh-cw-02.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-rocket-02.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-rocket-02.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-rocket-02.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-search-lg.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-search-lg.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-search-lg.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-send-01.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-send-01.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-send-01.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-settings-01.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-settings-01.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-settings-01.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-share-04.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-share-04.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-share-04.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-share-06.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-share-06.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-share-06.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-stars-02.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-stars-02.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-stars-02.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-trash-01.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-trash-01.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-trash-01.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-trash-03.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-trash-03.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-trash-03.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-trend-up-01.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-trend-up-01.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-trend-up-01.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-underline-01.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-underline-01.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-underline-01.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-upload-01.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-upload-01.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-upload-01.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-upload-cloud-02.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-upload-cloud-02.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-upload-cloud-02.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-user-01.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-user-01.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-user-01.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-user-check-02-1.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-user-check-02-1.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-user-check-02-1.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-user-check-02.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-user-check-02.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-user-check-02.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-user-plus-02.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-user-plus-02.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-user-plus-02.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-user-right-01.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-user-right-01.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-user-right-01.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-users-01.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-users-01.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-users-01.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-x-circle.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-x-circle.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-x-circle.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-x-close.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-x-close.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-x-close.esm.js +1 -0
- package/dist/nile-icon/icons/svg/ng-x-square.cjs.js +2 -0
- package/dist/nile-icon/icons/svg/ng-x-square.cjs.js.map +1 -0
- package/dist/nile-icon/icons/svg/ng-x-square.esm.js +1 -0
- package/dist/nile-rich-text-editor/index.cjs.js +2 -0
- package/dist/nile-rich-text-editor/index.cjs.js.map +1 -0
- package/dist/nile-rich-text-editor/index.esm.js +1 -0
- package/dist/nile-rich-text-editor/nile-rich-text-editor.cjs.js +2 -0
- package/dist/nile-rich-text-editor/nile-rich-text-editor.cjs.js.map +1 -0
- package/dist/nile-rich-text-editor/nile-rich-text-editor.css.cjs.js +2 -0
- package/dist/nile-rich-text-editor/nile-rich-text-editor.css.cjs.js.map +1 -0
- package/dist/nile-rich-text-editor/nile-rich-text-editor.css.esm.js +129 -0
- package/dist/nile-rich-text-editor/nile-rich-text-editor.esm.js +1 -0
- package/dist/nile-rich-text-editor/nile-rte-color.cjs.js +2 -0
- package/dist/nile-rich-text-editor/nile-rte-color.cjs.js.map +1 -0
- package/dist/nile-rich-text-editor/nile-rte-color.esm.js +53 -0
- package/dist/nile-rich-text-editor/nile-rte-divider.cjs.js +2 -0
- package/dist/nile-rich-text-editor/nile-rte-divider.cjs.js.map +1 -0
- package/dist/nile-rich-text-editor/nile-rte-divider.esm.js +1 -0
- package/dist/nile-rich-text-editor/nile-rte-link.cjs.js +2 -0
- package/dist/nile-rich-text-editor/nile-rte-link.cjs.js.map +1 -0
- package/dist/nile-rich-text-editor/nile-rte-link.esm.js +19 -0
- package/dist/nile-rich-text-editor/nile-rte-mentions-item.cjs.js +2 -0
- package/dist/nile-rich-text-editor/nile-rte-mentions-item.cjs.js.map +1 -0
- package/dist/nile-rich-text-editor/nile-rte-mentions-item.esm.js +1 -0
- package/dist/nile-rich-text-editor/nile-rte-mentions.cjs.js +3 -0
- package/dist/nile-rich-text-editor/nile-rte-mentions.cjs.js.map +1 -0
- package/dist/nile-rich-text-editor/nile-rte-mentions.esm.js +1 -0
- package/dist/nile-rich-text-editor/nile-rte-preview.cjs.js +2 -0
- package/dist/nile-rich-text-editor/nile-rte-preview.cjs.js.map +1 -0
- package/dist/nile-rich-text-editor/nile-rte-preview.esm.js +1 -0
- package/dist/nile-rich-text-editor/nile-rte-select.cjs.js +2 -0
- package/dist/nile-rich-text-editor/nile-rte-select.cjs.js.map +1 -0
- package/dist/nile-rich-text-editor/nile-rte-select.esm.js +54 -0
- package/dist/nile-rich-text-editor/nile-rte-toolbar-item.cjs.js +2 -0
- package/dist/nile-rich-text-editor/nile-rte-toolbar-item.cjs.js.map +1 -0
- package/dist/nile-rich-text-editor/nile-rte-toolbar-item.esm.js +1 -0
- package/dist/nile-rich-text-editor/nile-rte-toolbar.cjs.js +2 -0
- package/dist/nile-rich-text-editor/nile-rte-toolbar.cjs.js.map +1 -0
- package/dist/nile-rich-text-editor/nile-rte-toolbar.esm.js +1 -0
- package/dist/nile-rich-text-editor/utils.cjs.js +2 -0
- package/dist/nile-rich-text-editor/utils.cjs.js.map +1 -0
- package/dist/nile-rich-text-editor/utils.esm.js +1 -0
- package/dist/nile-select/virtual-scroll-helper.cjs.js +2 -0
- package/dist/nile-select/virtual-scroll-helper.cjs.js.map +1 -0
- package/dist/nile-select/virtual-scroll-helper.esm.js +38 -0
- package/dist/nile-slider/nile-slider.css.cjs.js +1 -1
- package/dist/nile-slider/nile-slider.css.cjs.js.map +1 -1
- package/dist/nile-slider/nile-slider.css.esm.js +1 -1
- package/dist/nile-virtual-select/index.cjs.js +2 -0
- package/dist/nile-virtual-select/index.cjs.js.map +1 -0
- package/dist/nile-virtual-select/index.esm.js +1 -0
- package/dist/nile-virtual-select/nile-virtual-select.cjs.js +2 -0
- package/dist/nile-virtual-select/nile-virtual-select.cjs.js.map +1 -0
- package/dist/nile-virtual-select/nile-virtual-select.css.cjs.js +2 -0
- package/dist/nile-virtual-select/nile-virtual-select.css.cjs.js.map +1 -0
- package/dist/nile-virtual-select/nile-virtual-select.css.esm.js +477 -0
- package/dist/nile-virtual-select/nile-virtual-select.esm.js +227 -0
- package/dist/nile-virtual-select/nile-virtual-select.test.cjs.js +2 -0
- package/dist/nile-virtual-select/nile-virtual-select.test.cjs.js.map +1 -0
- package/dist/nile-virtual-select/nile-virtual-select.test.esm.js +93 -0
- package/dist/nile-virtual-select/renderer.cjs.js +2 -0
- package/dist/nile-virtual-select/renderer.cjs.js.map +1 -0
- package/dist/nile-virtual-select/renderer.esm.js +28 -0
- package/dist/nile-virtual-select/search-manager.cjs.js +2 -0
- package/dist/nile-virtual-select/search-manager.cjs.js.map +1 -0
- package/dist/nile-virtual-select/search-manager.esm.js +1 -0
- package/dist/nile-virtual-select/selection-manager.cjs.js +2 -0
- package/dist/nile-virtual-select/selection-manager.cjs.js.map +1 -0
- package/dist/nile-virtual-select/selection-manager.esm.js +1 -0
- package/dist/nile-virtual-select/types.cjs.js +2 -0
- package/dist/nile-virtual-select/types.cjs.js.map +1 -0
- package/dist/nile-virtual-select/types.esm.js +1 -0
- package/dist/scopedElementsWrapper-24f32095.cjs.js +6 -0
- package/dist/scopedElementsWrapper-24f32095.cjs.js.map +1 -0
- package/dist/scopedElementsWrapper-7a509408.esm.js +7 -0
- package/dist/sinon-esm-69e51168.cjs.js +2 -0
- package/dist/sinon-esm-69e51168.cjs.js.map +1 -0
- package/dist/sinon-esm-73a0cd99.esm.js +1 -0
- package/dist/src/internal/resizable-table-styles.js +0 -12
- package/dist/src/internal/resizable-table-styles.js.map +1 -1
- package/dist/src/nile-calendar/test.d.ts +0 -0
- package/dist/src/nile-calendar/test.js +2 -0
- package/dist/src/nile-calendar/test.js.map +1 -0
- package/dist/src/nile-code-editor/nile-code-editor.d.ts +2 -1
- package/dist/src/nile-code-editor/nile-code-editor.js +14 -5
- package/dist/src/nile-code-editor/nile-code-editor.js.map +1 -1
- package/dist/src/nile-file-preview/nile-file-preview.css.js +21 -44
- package/dist/src/nile-file-preview/nile-file-preview.css.js.map +1 -1
- package/dist/src/nile-file-preview/nile-file-preview.d.ts +5 -1
- package/dist/src/nile-file-preview/nile-file-preview.js +45 -16
- package/dist/src/nile-file-preview/nile-file-preview.js.map +1 -1
- package/dist/src/nile-file-preview/nile-file-preview.template.d.ts +3 -2
- package/dist/src/nile-file-preview/nile-file-preview.template.js +17 -11
- package/dist/src/nile-file-preview/nile-file-preview.template.js.map +1 -1
- package/dist/src/nile-file-preview/types/nile-file-preview.enums.d.ts +2 -1
- package/dist/src/nile-file-preview/types/nile-file-preview.enums.js +1 -0
- package/dist/src/nile-file-preview/types/nile-file-preview.enums.js.map +1 -1
- package/dist/src/nile-file-preview/utils/nile-file-preview.util.d.ts +1 -2
- package/dist/src/nile-file-preview/utils/nile-file-preview.util.js +8 -8
- package/dist/src/nile-file-preview/utils/nile-file-preview.util.js.map +1 -1
- package/dist/src/nile-file-upload/nile-file-upload.css.js +4 -4
- package/dist/src/nile-file-upload/nile-file-upload.css.js.map +1 -1
- package/dist/src/nile-file-upload/nile-file-upload.d.ts +1 -0
- package/dist/src/nile-file-upload/nile-file-upload.js +12 -11
- package/dist/src/nile-file-upload/nile-file-upload.js.map +1 -1
- package/dist/src/nile-file-upload/nile-file-upload.template.d.ts +7 -4
- package/dist/src/nile-file-upload/nile-file-upload.template.js +34 -21
- package/dist/src/nile-file-upload/nile-file-upload.template.js.map +1 -1
- package/dist/src/nile-file-upload/types/file-upload.enums.d.ts +4 -2
- package/dist/src/nile-file-upload/types/file-upload.enums.js +2 -0
- package/dist/src/nile-file-upload/types/file-upload.enums.js.map +1 -1
- package/dist/src/nile-file-upload/utils/file-validation.util.d.ts +1 -0
- package/dist/src/nile-file-upload/utils/file-validation.util.js +10 -0
- package/dist/src/nile-file-upload/utils/file-validation.util.js.map +1 -1
- package/dist/src/nile-icon/icons/svg/format_align_justify.d.ts +5 -0
- package/dist/src/nile-icon/icons/svg/format_align_justify.js +5 -0
- package/dist/src/nile-icon/icons/svg/format_align_justify.js.map +1 -0
- package/dist/src/nile-icon/icons/svg/format_align_left.d.ts +5 -0
- package/dist/src/nile-icon/icons/svg/format_align_left.js +5 -0
- package/dist/src/nile-icon/icons/svg/format_align_left.js.map +1 -0
- package/dist/src/nile-icon/icons/svg/format_align_middle.d.ts +5 -0
- package/dist/src/nile-icon/icons/svg/format_align_middle.js +5 -0
- package/dist/src/nile-icon/icons/svg/format_align_middle.js.map +1 -0
- package/dist/src/nile-icon/icons/svg/format_align_right.d.ts +5 -0
- package/dist/src/nile-icon/icons/svg/format_align_right.js +5 -0
- package/dist/src/nile-icon/icons/svg/format_align_right.js.map +1 -0
- package/dist/src/nile-icon/icons/svg/format_bold.d.ts +5 -0
- package/dist/src/nile-icon/icons/svg/format_bold.js +5 -0
- package/dist/src/nile-icon/icons/svg/format_bold.js.map +1 -0
- package/dist/src/nile-icon/icons/svg/format_clear.d.ts +5 -0
- package/dist/src/nile-icon/icons/svg/format_clear.js +5 -0
- package/dist/src/nile-icon/icons/svg/format_clear.js.map +1 -0
- package/dist/src/nile-icon/icons/svg/format_italic.d.ts +5 -0
- package/dist/src/nile-icon/icons/svg/format_italic.js +5 -0
- package/dist/src/nile-icon/icons/svg/format_italic.js.map +1 -0
- package/dist/src/nile-icon/icons/svg/format_list_bulleted.d.ts +5 -0
- package/dist/src/nile-icon/icons/svg/format_list_bulleted.js +5 -0
- package/dist/src/nile-icon/icons/svg/format_list_bulleted.js.map +1 -0
- package/dist/src/nile-icon/icons/svg/format_list_numbered.d.ts +5 -0
- package/dist/src/nile-icon/icons/svg/format_list_numbered.js +5 -0
- package/dist/src/nile-icon/icons/svg/format_list_numbered.js.map +1 -0
- package/dist/src/nile-icon/icons/svg/format_underline.d.ts +5 -0
- package/dist/src/nile-icon/icons/svg/format_underline.js +5 -0
- package/dist/src/nile-icon/icons/svg/format_underline.js.map +1 -0
- package/dist/src/nile-icon/icons/svg/image_2.d.ts +5 -0
- package/dist/src/nile-icon/icons/svg/image_2.js +5 -0
- package/dist/src/nile-icon/icons/svg/image_2.js.map +1 -0
- package/dist/src/nile-icon/icons/svg/link_2.d.ts +5 -0
- package/dist/src/nile-icon/icons/svg/link_2.js +5 -0
- package/dist/src/nile-icon/icons/svg/link_2.js.map +1 -0
- package/dist/src/nile-icon/icons/svg/ng-action.d.ts +5 -0
- package/dist/src/nile-icon/icons/svg/ng-action.js +5 -0
- package/dist/src/nile-icon/icons/svg/ng-action.js.map +1 -0
- package/dist/src/nile-icon/icons/svg/ng-alert-circle.d.ts +5 -0
- package/dist/src/nile-icon/icons/svg/ng-alert-circle.js +5 -0
- package/dist/src/nile-icon/icons/svg/ng-alert-circle.js.map +1 -0
- package/dist/src/nile-icon/icons/svg/ng-arrow-narrow-right.d.ts +5 -0
- package/dist/src/nile-icon/icons/svg/ng-arrow-narrow-right.js +5 -0
- package/dist/src/nile-icon/icons/svg/ng-arrow-narrow-right.js.map +1 -0
- package/dist/src/nile-icon/icons/svg/ng-button-loading-blue-animated.d.ts +5 -0
- package/dist/src/nile-icon/icons/svg/ng-button-loading-blue-animated.js +5 -0
- package/dist/src/nile-icon/icons/svg/ng-button-loading-blue-animated.js.map +1 -0
- package/dist/src/nile-icon/icons/svg/ng-button-loading-blue.d.ts +5 -0
- package/dist/src/nile-icon/icons/svg/ng-button-loading-blue.js +5 -0
- package/dist/src/nile-icon/icons/svg/ng-button-loading-blue.js.map +1 -0
- package/dist/src/nile-icon/icons/svg/ng-check-circle-broken.d.ts +5 -0
- package/dist/src/nile-icon/icons/svg/ng-check-circle-broken.js +5 -0
- package/dist/src/nile-icon/icons/svg/ng-check-circle-broken.js.map +1 -0
- package/dist/src/nile-icon/icons/svg/ng-check.d.ts +5 -0
- package/dist/src/nile-icon/icons/svg/ng-check.js +5 -0
- package/dist/src/nile-icon/icons/svg/ng-check.js.map +1 -0
- package/dist/src/nile-icon/icons/svg/ng-file-06.d.ts +5 -0
- package/dist/src/nile-icon/icons/svg/ng-file-06.js +5 -0
- package/dist/src/nile-icon/icons/svg/ng-file-06.js.map +1 -0
- package/dist/src/nile-icon/icons/svg/ng-image-03.d.ts +5 -0
- package/dist/src/nile-icon/icons/svg/ng-image-03.js +5 -0
- package/dist/src/nile-icon/icons/svg/ng-image-03.js.map +1 -0
- package/dist/src/nile-icon/icons/svg/ng-minus.d.ts +5 -0
- package/dist/src/nile-icon/icons/svg/ng-minus.js +5 -0
- package/dist/src/nile-icon/icons/svg/ng-minus.js.map +1 -0
- package/dist/src/nile-icon/icons/svg/ng-x-circle.d.ts +5 -0
- package/dist/src/nile-icon/icons/svg/ng-x-circle.js +5 -0
- package/dist/src/nile-icon/icons/svg/ng-x-circle.js.map +1 -0
- package/dist/src/nile-rich-text-editor/index.d.ts +1 -0
- package/dist/src/nile-rich-text-editor/index.js +2 -0
- package/dist/src/nile-rich-text-editor/index.js.map +1 -0
- package/dist/src/nile-rich-text-editor/nile-rich-text-editor.css.d.ts +3 -0
- package/dist/src/nile-rich-text-editor/nile-rich-text-editor.css.js +133 -0
- package/dist/src/nile-rich-text-editor/nile-rich-text-editor.css.js.map +1 -0
- package/dist/src/nile-rich-text-editor/nile-rich-text-editor.d.ts +63 -0
- package/dist/src/nile-rich-text-editor/nile-rich-text-editor.js +693 -0
- package/dist/src/nile-rich-text-editor/nile-rich-text-editor.js.map +1 -0
- package/dist/src/nile-rich-text-editor/nile-rte-color.d.ts +22 -0
- package/dist/src/nile-rich-text-editor/nile-rte-color.js +192 -0
- package/dist/src/nile-rich-text-editor/nile-rte-color.js.map +1 -0
- package/dist/src/nile-rich-text-editor/nile-rte-divider.d.ts +10 -0
- package/dist/src/nile-rich-text-editor/nile-rte-divider.js +12 -0
- package/dist/src/nile-rich-text-editor/nile-rte-divider.js.map +1 -0
- package/dist/src/nile-rich-text-editor/nile-rte-link.d.ts +19 -0
- package/dist/src/nile-rich-text-editor/nile-rte-link.js +172 -0
- package/dist/src/nile-rich-text-editor/nile-rte-link.js.map +1 -0
- package/dist/src/nile-rich-text-editor/nile-rte-mentions-item.d.ts +19 -0
- package/dist/src/nile-rich-text-editor/nile-rte-mentions-item.js +54 -0
- package/dist/src/nile-rich-text-editor/nile-rte-mentions-item.js.map +1 -0
- package/dist/src/nile-rich-text-editor/nile-rte-mentions.d.ts +66 -0
- package/dist/src/nile-rich-text-editor/nile-rte-mentions.js +552 -0
- package/dist/src/nile-rich-text-editor/nile-rte-mentions.js.map +1 -0
- package/dist/src/nile-rich-text-editor/nile-rte-preview.d.ts +10 -0
- package/dist/src/nile-rich-text-editor/nile-rte-preview.js +12 -0
- package/dist/src/nile-rich-text-editor/nile-rte-preview.js.map +1 -0
- package/dist/src/nile-rich-text-editor/nile-rte-select.d.ts +37 -0
- package/dist/src/nile-rich-text-editor/nile-rte-select.js +211 -0
- package/dist/src/nile-rich-text-editor/nile-rte-select.js.map +1 -0
- package/dist/src/nile-rich-text-editor/nile-rte-toolbar-item.d.ts +12 -0
- package/dist/src/nile-rich-text-editor/nile-rte-toolbar-item.js +23 -0
- package/dist/src/nile-rich-text-editor/nile-rte-toolbar-item.js.map +1 -0
- package/dist/src/nile-rich-text-editor/nile-rte-toolbar.d.ts +10 -0
- package/dist/src/nile-rich-text-editor/nile-rte-toolbar.js +12 -0
- package/dist/src/nile-rich-text-editor/nile-rte-toolbar.js.map +1 -0
- package/dist/src/nile-rich-text-editor/rte-utils/content.d.ts +2 -0
- package/dist/src/nile-rich-text-editor/rte-utils/content.js +25 -0
- package/dist/src/nile-rich-text-editor/rte-utils/content.js.map +1 -0
- package/dist/src/nile-rich-text-editor/rte-utils/css.d.ts +1 -0
- package/dist/src/nile-rich-text-editor/rte-utils/css.js +9 -0
- package/dist/src/nile-rich-text-editor/rte-utils/css.js.map +1 -0
- package/dist/src/nile-rich-text-editor/rte-utils/dom.d.ts +2 -0
- package/dist/src/nile-rich-text-editor/rte-utils/dom.js +48 -0
- package/dist/src/nile-rich-text-editor/rte-utils/dom.js.map +1 -0
- package/dist/src/nile-rich-text-editor/rte-utils/formatting.d.ts +2 -0
- package/dist/src/nile-rich-text-editor/rte-utils/formatting.js +69 -0
- package/dist/src/nile-rich-text-editor/rte-utils/formatting.js.map +1 -0
- package/dist/src/nile-rich-text-editor/rte-utils/keys.d.ts +2 -0
- package/dist/src/nile-rich-text-editor/rte-utils/keys.js +38 -0
- package/dist/src/nile-rich-text-editor/rte-utils/keys.js.map +1 -0
- package/dist/src/nile-rich-text-editor/rte-utils/lists.d.ts +2 -0
- package/dist/src/nile-rich-text-editor/rte-utils/lists.js +28 -0
- package/dist/src/nile-rich-text-editor/rte-utils/lists.js.map +1 -0
- package/dist/src/nile-rich-text-editor/rte-utils/selection.d.ts +17 -0
- package/dist/src/nile-rich-text-editor/rte-utils/selection.js +39 -0
- package/dist/src/nile-rich-text-editor/rte-utils/selection.js.map +1 -0
- package/dist/src/nile-rich-text-editor/rte-utils/toolbar.d.ts +28 -0
- package/dist/src/nile-rich-text-editor/rte-utils/toolbar.js +161 -0
- package/dist/src/nile-rich-text-editor/rte-utils/toolbar.js.map +1 -0
- package/dist/src/nile-rich-text-editor/rte-utils/toolbarState.d.ts +13 -0
- package/dist/src/nile-rich-text-editor/rte-utils/toolbarState.js +119 -0
- package/dist/src/nile-rich-text-editor/rte-utils/toolbarState.js.map +1 -0
- package/dist/src/nile-rich-text-editor/rte-utils/vars.d.ts +1 -0
- package/dist/src/nile-rich-text-editor/rte-utils/vars.js +14 -0
- package/dist/src/nile-rich-text-editor/rte-utils/vars.js.map +1 -0
- package/dist/src/nile-rich-text-editor/sanatize.d.ts +1 -0
- package/dist/src/nile-rich-text-editor/sanatize.js +40 -0
- package/dist/src/nile-rich-text-editor/sanatize.js.map +1 -0
- package/dist/src/nile-rich-text-editor/utils.d.ts +13 -0
- package/dist/src/nile-rich-text-editor/utils.js +415 -0
- package/dist/src/nile-rich-text-editor/utils.js.map +1 -0
- package/dist/src/nile-virtual-select/renderer.js +3 -0
- package/dist/src/nile-virtual-select/renderer.js.map +1 -1
- package/dist/src/version.d.ts +9 -0
- package/dist/src/version.js +7 -0
- package/dist/src/version.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/version.cjs.js +2 -0
- package/dist/version.cjs.js.map +1 -0
- package/dist/version.esm.js +1 -0
- package/dist/virtualize-3a6cec69.esm.js +22 -0
- package/dist/virtualize-72f549f4.cjs.js +18 -0
- package/dist/virtualize-72f549f4.cjs.js.map +1 -0
- package/dist/virtualize-a4a40d96.esm.js +22 -0
- package/dist/virtualize-b6a2fbe0.cjs.js +18 -0
- package/dist/virtualize-b6a2fbe0.cjs.js.map +1 -0
- package/package.json +4 -4
- package/src/nile-code-editor/nile-code-editor.ts +17 -4
- package/vscode-html-custom-data.json +3 -3
- package/dist/aquera-nile-elements-0.1.57-beta-2.0.tgz +0 -0
- package/dist/axe.min-2b379f29.cjs.js +0 -12
- package/dist/axe.min-2b379f29.cjs.js.map +0 -1
- package/dist/axe.min-c2cd8733.esm.js +0 -12
- package/dist/fixture-c1bd203f.cjs.js.map +0 -1
- package/dist/fixture-cb376a7f.cjs.js.map +0 -1
@@ -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;var c=a.assert;const u=["script","style","svg"],f=["class","id"],h=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"];function l(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||[],...u],r=e.ignoreChildren||[],a=e.stripEmptyAttributes||f,s=/(&|")/g,c=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,c)}"`}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)||h.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 d=new URL(window.location.href).searchParams.get("wtr-session-id");function p(t){return null!=t&&"object"==typeof t}async function w(t,e,n){if("string"!=typeof d)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:d,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 b,v;const m=/snapshots\[[^\]]+] = (\n)?(?<content>`[^`]*`)/gm;async function g({cache:t=!0}={}){if(t&&v)return v;const e=await w("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=`${(t=>([...t.matchAll(m)].forEach((({groups:{content:e}})=>{t=t.replaceAll(e,encodeURIComponent(e))})),t))(e.content)}/* ${Math.random()} */`,i=await import(`data:text/javascript;charset=utf-8,${n}`);if(!i||!p(i.snapshots))throw new Error("Expected snapshot result to be a module that exports an object.");return v=i.snapshots,v}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-c2cd8733.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){!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(l(e,a),r),c=l(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=l(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,l(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=l(e,r),c=await async function(t){if(!p(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 b||(b=await w("get-snapshot-config",void 0,"snapshotPlugin from @web/test-runner-commands")),b}();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(!p(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,w("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}function C(t){return i(t)||t instanceof Node||"number"==typeof t||"boolean"==typeof t||"string"==typeof t}function R(t){return null!=(e=t)&&"function"==typeof e[Symbol.iterator]?[...t].every(C):C(t);var e}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||R(t))return U(t,e);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,c as h,M as o,q as w};
|
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;var c=a.assert;const u=["script","style","svg"],f=["class","id"],h=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"];function l(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||[],...u],r=e.ignoreChildren||[],a=e.stripEmptyAttributes||f,s=/(&|")/g,c=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,c)}"`}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)||h.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 d=new URL(window.location.href).searchParams.get("wtr-session-id");function p(t){return null!=t&&"object"==typeof t}async function w(t,e,n){if("string"!=typeof d)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:d,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 b,v;const m=/snapshots\[[^\]]+] = (\n)?(?<content>`[^`]*`)/gm;async function g({cache:t=!0}={}){if(t&&v)return v;const e=await w("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=`${(t=>([...t.matchAll(m)].forEach((({groups:{content:e}})=>{t=t.replaceAll(e,encodeURIComponent(e))})),t))(e.content)}/* ${Math.random()} */`,i=await import(`data:text/javascript;charset=utf-8,${n}`);if(!i||!p(i.snapshots))throw new Error("Expected snapshot result to be a module that exports an object.");return v=i.snapshots,v}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-2720cd56.esm.js").then((function(t){return t.a})),!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){!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(l(e,a),r),c=l(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=l(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,l(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=l(e,r),c=await async function(t){if(!p(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 b||(b=await w("get-snapshot-config",void 0,"snapshotPlugin from @web/test-runner-commands")),b}();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(!p(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,w("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}function C(t){return i(t)||t instanceof Node||"number"==typeof t||"boolean"==typeof t||"string"==typeof t}function R(t){return null!=(e=t)&&"function"==typeof e[Symbol.iterator]?[...t].every(C):C(t);var e}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||R(t))return U(t,e);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,c as h,M as o,q as w};
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import{html as t}from"lit";import{unsafeHTML as e}from"lit/directives/unsafe-html.js";import{render as n}from"lit/html.js";import{isTemplateResult as i}from"lit/directive-helpers.js";var o="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var a=function t(e,n,i){function o(s,c){if(!n[s]){if(!e[s]){if(!c&&r)return r(s);if(a)return a(s,!0);var u=new Error("Cannot find module '"+s+"'");throw u.code="MODULE_NOT_FOUND",u}var f=n[s]={exports:{}};e[s][0].call(f.exports,(function(t){return o(e[s][1][t]||t)}),f,f.exports,t,e,n,i)}return n[s].exports}for(var a=r,s=0;s<i.length;s++)o(i[s]);return o}({1:[function(t,e,n){e.exports=t("./lib/chai")},{"./lib/chai":2}],2:[function(t,e,n){
|
1
|
+
(()=>{try{"undefined"!=typeof window&&(window.nile=window.nile||{},window.nile.version="0.1.64")}catch{}})();import{html as t}from"lit";import{unsafeHTML as e}from"lit/directives/unsafe-html.js";import{render as n}from"lit/html.js";import{isTemplateResult as i}from"lit/directive-helpers.js";var o="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var a=function t(e,n,i){function o(s,c){if(!n[s]){if(!e[s]){if(!c&&r)return r(s);if(a)return a(s,!0);var u=new Error("Cannot find module '"+s+"'");throw u.code="MODULE_NOT_FOUND",u}var f=n[s]={exports:{}};e[s][0].call(f.exports,(function(t){return o(e[s][1][t]||t)}),f,f.exports,t,e,n,i)}return n[s].exports}for(var a=r,s=0;s<i.length;s++)o(i[s]);return o}({1:[function(t,e,n){e.exports=t("./lib/chai")},{"./lib/chai":2}],2:[function(t,e,n){
|
2
2
|
/*!
|
3
3
|
* chai
|
4
4
|
* Copyright(c) 2011-2014 Jake Luer <jake@alogicalparadox.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;async function m({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=`${(t=>([...t.matchAll(v)].forEach((({groups:{content:e}})=>{t=t.replaceAll(e,encodeURIComponent(e))})),t))(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 g(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 y(...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 x;async function j(t,e){return x||await async function(){if(window.axe)x=window.axe;else if("function"!=typeof require){if(await import("./axe.min-c2cd8733.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?");x=window.axe}else x=require("axe-core/axe.min.js")}(),new Promise(((n,i)=>{x.run(t,e,((t,e)=>{t?i(new Error(t)):n(e)}))}))}var E,O={};E={get exports(){return O},set exports(t){O=t}},function(t){E.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 S=O;var k={};!function(t){!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 k},set exports(t){k=t}});var A=k;function D(t){return new Promise((e=>{setTimeout(e,t)}))}function T(t,e){return new Promise((n=>{t.addEventListener(e,(function i(o){n(o),t.removeEventListener(e,i)}))}))}function M(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}=y(...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}=y(...i),{index:c}=o;o.index+=1;const u=g(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}=y(...i),a=g(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 m(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 m())[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=j(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(S),a.use(A);const q=t=>"object"==typeof t&&Promise.resolve(t)===t;async function $(t){let e=!1,n=t&&t.updateComplete;return q(n)&&(await n,e=!0),n=!(!t||!t.componentOnReady)&&t.componentOnReady(),q(n)&&(await n,e=!0),e||await new Promise((t=>{requestAnimationFrame((()=>t()))})),window.ShadyDOM&&"function"==typeof window.ShadyDOM.flush&&window.ShadyDOM.flush(),t}const P=[];function N(t=document.createElement("div")){return document.body.appendChild(t),P.push(t),t}function F(){P&&P.forEach((t=>{document.body.removeChild(t)})),P.length=0}function L(t){return i(t)||t instanceof Node||"number"==typeof t||"boolean"==typeof t||"string"==typeof t}function C(t){return null!=(e=t)&&"function"==typeof e[Symbol.iterator]?[...t].every(L):L(t);var e}const R=Object.freeze({ELEMENT_NODE:1,TEXT_NODE:3,COMMENT_NODE:8,DOCUMENT_FRAGMENT_NODE:11}),I=({nodeType:t,textContent:e})=>{switch(t){case R.COMMENT_NODE:return!1;case R.TEXT_NODE:return e.trim();default:return!0}};async function _(t,e={}){const o=function(t,e={},o){const r=N(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(I);return a}(t,e,e.scopedElements?await import("./scopedElementsWrapper-4c29be11.esm.js").then((t=>t.getScopedElementsTemplate)):void 0);if(await $(o),e.scopedElements){const[t]=Array.from(o.shadowRoot.childNodes).filter(I);return await $(t),t}return o}async function U(n,i={}){if(i.scopedElements)return _(t`${e(n)}`,i);const o=function(t,e={}){const n=N(e.parentNode);return n.innerHTML=t,n.children[0]}(n,i);return await $(o),o}async function W(t,e){if("string"==typeof t)return U(t,e);if(e?.render||C(t))return _(t,e);throw new Error("Invalid template provided - string or lit-html TemplateResult is supported")}try{"afterEach"in window&&afterEach((()=>{F()})),"teardown"in window&&teardown((()=>{F()}))}catch(t){}export{s as a,D as b,$ as e,W as f,T as o,M as w};
|
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;var c=a.assert;const u=["script","style","svg"],f=["class","id"],h=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"];function l(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||[],...u],r=e.ignoreChildren||[],a=e.stripEmptyAttributes||f,s=/(&|")/g,c=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,c)}"`}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)||h.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 d=new URL(window.location.href).searchParams.get("wtr-session-id");function p(t){return null!=t&&"object"==typeof t}async function w(t,e,n){if("string"!=typeof d)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:d,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 b,v;const m=/snapshots\[[^\]]+] = (\n)?(?<content>`[^`]*`)/gm;async function g({cache:t=!0}={}){if(t&&v)return v;const e=await w("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=`${(t=>([...t.matchAll(m)].forEach((({groups:{content:e}})=>{t=t.replaceAll(e,encodeURIComponent(e))})),t))(e.content)}/* ${Math.random()} */`,i=await import(`data:text/javascript;charset=utf-8,${n}`);if(!i||!p(i.snapshots))throw new Error("Expected snapshot result to be a module that exports an object.");return v=i.snapshots,v}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-2c0b27d0.esm.js").then((function(t){return t.a})),!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){!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(l(e,a),r),c=l(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=l(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,l(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=l(e,r),c=await async function(t){if(!p(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 b||(b=await w("get-snapshot-config",void 0,"snapshotPlugin from @web/test-runner-commands")),b}();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(!p(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,w("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}function C(t){return i(t)||t instanceof Node||"number"==typeof t||"boolean"==typeof t||"string"==typeof t}function R(t){return null!=(e=t)&&"function"==typeof e[Symbol.iterator]?[...t].every(C):C(t);var e}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-7a509408.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||R(t))return U(t,e);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,c as h,M as o,q as w};
|
@@ -0,0 +1,17 @@
|
|
1
|
+
(()=>{try{"undefined"!=typeof window&&(window.nile=window.nile||{},window.nile.version="0.1.64")}catch{}})();
|
2
|
+
/**
|
3
|
+
* @license
|
4
|
+
* Copyright 2021 Google LLC
|
5
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
6
|
+
*/
|
7
|
+
class t{constructor(t){this._map=new Map,this._roundAverageSize=!1,this.totalSize=0,!0===t?.roundAverageSize&&(this._roundAverageSize=!0)}set(t,i){const s=this._map.get(t)||0;this._map.set(t,i),this.totalSize+=i-s}get averageSize(){if(this._map.size>0){const t=this.totalSize/this._map.size;return this._roundAverageSize?Math.round(t):t}return 0}getSize(t){return this._map.get(t)}clear(){this._map.clear(),this.totalSize=0}}
|
8
|
+
/**
|
9
|
+
* @license
|
10
|
+
* Copyright 2021 Google LLC
|
11
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
12
|
+
*/function i(t){return"horizontal"===t?"width":"height"}class s{_getDefaultConfig(){return{direction:"vertical"}}constructor(t,i){this._latestCoords={left:0,top:0},this._direction=null,this._viewportSize={width:0,height:0},this.totalScrollSize={width:0,height:0},this.offsetWithinScroller={left:0,top:0},this._pendingReflow=!1,this._pendingLayoutUpdate=!1,this._pin=null,this._firstVisible=0,this._lastVisible=0,this._physicalMin=0,this._physicalMax=0,this._first=-1,this._last=-1,this._sizeDim="height",this._secondarySizeDim="width",this._positionDim="top",this._secondaryPositionDim="left",this._scrollPosition=0,this._scrollError=0,this._items=[],this._scrollSize=1,this._overhang=1e3,this._hostSink=t,Promise.resolve().then((()=>this.config=i||this._getDefaultConfig()))}set config(t){Object.assign(this,Object.assign({},this._getDefaultConfig(),t))}get config(){return{direction:this.direction}}get items(){return this._items}set items(t){this._setItems(t)}_setItems(t){t!==this._items&&(this._items=t,this._scheduleReflow())}get direction(){return this._direction}set direction(t){(t="horizontal"===t?t:"vertical")!==this._direction&&(this._direction=t,this._sizeDim="horizontal"===t?"width":"height",this._secondarySizeDim="horizontal"===t?"height":"width",this._positionDim="horizontal"===t?"left":"top",this._secondaryPositionDim="horizontal"===t?"top":"left",this._triggerReflow())}get viewportSize(){return this._viewportSize}set viewportSize(t){const{_viewDim1:i,_viewDim2:s}=this;Object.assign(this._viewportSize,t),s!==this._viewDim2?this._scheduleLayoutUpdate():i!==this._viewDim1&&this._checkThresholds()}get viewportScroll(){return this._latestCoords}set viewportScroll(t){Object.assign(this._latestCoords,t);const i=this._scrollPosition;this._scrollPosition=this._latestCoords[this._positionDim];Math.abs(i-this._scrollPosition)>=1&&this._checkThresholds()}reflowIfNeeded(t=!1){(t||this._pendingReflow)&&(this._pendingReflow=!1,this._reflow())}set pin(t){this._pin=t,this._triggerReflow()}get pin(){if(null!==this._pin){const{index:t,block:i}=this._pin;return{index:Math.max(0,Math.min(t,this.items.length-1)),block:i}}return null}_clampScrollPosition(t){return Math.max(-this.offsetWithinScroller[this._positionDim],Math.min(t,this.totalScrollSize[i(this.direction)]-this._viewDim1))}unpin(){null!==this._pin&&(this._sendUnpinnedMessage(),this._pin=null)}_updateLayout(){}get _viewDim1(){return this._viewportSize[this._sizeDim]}get _viewDim2(){return this._viewportSize[this._secondarySizeDim]}_scheduleReflow(){this._pendingReflow=!0}_scheduleLayoutUpdate(){this._pendingLayoutUpdate=!0,this._scheduleReflow()}_triggerReflow(){this._scheduleLayoutUpdate(),Promise.resolve().then((()=>this.reflowIfNeeded()))}_reflow(){this._pendingLayoutUpdate&&(this._updateLayout(),this._pendingLayoutUpdate=!1),this._updateScrollSize(),this._setPositionFromPin(),this._getActiveItems(),this._updateVisibleIndices(),this._sendStateChangedMessage()}_setPositionFromPin(){if(null!==this.pin){const t=this._scrollPosition,{index:i,block:s}=this.pin;this._scrollPosition=this._calculateScrollIntoViewPosition({index:i,block:s||"start"})-this.offsetWithinScroller[this._positionDim],this._scrollError=t-this._scrollPosition}}_calculateScrollIntoViewPosition(t){const{block:i}=t,s=Math.min(this.items.length,Math.max(0,t.index)),h=this._getItemPosition(s)[this._positionDim];let e=h;if("start"!==i){const t=this._getItemSize(s)[this._sizeDim];if("center"===i)e=h-.5*this._viewDim1+.5*t;else{const s=h-this._viewDim1+t;if("end"===i)e=s;else{const t=this._scrollPosition;e=Math.abs(t-h)<Math.abs(t-s)?h:s}}}return e+=this.offsetWithinScroller[this._positionDim],this._clampScrollPosition(e)}getScrollIntoViewCoordinates(t){return{[this._positionDim]:this._calculateScrollIntoViewPosition(t)}}_sendUnpinnedMessage(){this._hostSink({type:"unpinned"})}_sendVisibilityChangedMessage(){this._hostSink({type:"visibilityChanged",firstVisible:this._firstVisible,lastVisible:this._lastVisible})}_sendStateChangedMessage(){const t=new Map;if(-1!==this._first&&-1!==this._last)for(let i=this._first;i<=this._last;i++)t.set(i,this._getItemPosition(i));const i={type:"stateChanged",scrollSize:{[this._sizeDim]:this._scrollSize,[this._secondarySizeDim]:null},range:{first:this._first,last:this._last,firstVisible:this._firstVisible,lastVisible:this._lastVisible},childPositions:t};this._scrollError&&(i.scrollError={[this._positionDim]:this._scrollError,[this._secondaryPositionDim]:0},this._scrollError=0),this._hostSink(i)}get _num(){return-1===this._first||-1===this._last?0:this._last-this._first+1}_checkThresholds(){if(0===this._viewDim1&&this._num>0||null!==this._pin)this._scheduleReflow();else{const t=Math.max(0,this._scrollPosition-this._overhang),i=Math.min(this._scrollSize,this._scrollPosition+this._viewDim1+this._overhang);this._physicalMin>t||this._physicalMax<i?this._scheduleReflow():this._updateVisibleIndices({emit:!0})}}_updateVisibleIndices(t){if(-1===this._first||-1===this._last)return;let i=this._first;for(;i<this._last&&Math.round(this._getItemPosition(i)[this._positionDim]+this._getItemSize(i)[this._sizeDim])<=Math.round(this._scrollPosition);)i++;let s=this._last;for(;s>this._first&&Math.round(this._getItemPosition(s)[this._positionDim])>=Math.round(this._scrollPosition+this._viewDim1);)s--;i===this._firstVisible&&s===this._lastVisible||(this._firstVisible=i,this._lastVisible=s,t&&t.emit&&this._sendVisibilityChangedMessage())}}
|
13
|
+
/**
|
14
|
+
* @license
|
15
|
+
* Copyright 2021 Google LLC
|
16
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
17
|
+
*/function h(t){return"horizontal"===t?"marginLeft":"marginTop"}function e(t){return"horizontal"===t?"marginRight":"marginBottom"}function n(t){return"horizontal"===t?"xOffset":"yOffset"}function r(t,i){const s=[t,i].sort();return s[1]<=0?Math.min(...s):s[0]>=0?Math.max(...s):s[0]+s[1]}class o{constructor(){this._childSizeCache=new t,this._marginSizeCache=new t,this._metricsCache=new Map}update(t,s){const n=new Set;Object.keys(t).forEach((h=>{const e=Number(h);this._metricsCache.set(e,t[e]),this._childSizeCache.set(e,t[e][i(s)]),n.add(e),n.add(e+1)}));for(const t of n){const i=this._metricsCache.get(t)?.[h(s)]||0,n=this._metricsCache.get(t-1)?.[e(s)]||0;this._marginSizeCache.set(t,r(i,n))}}get averageChildSize(){return this._childSizeCache.averageSize}get totalChildSize(){return this._childSizeCache.totalSize}get averageMarginSize(){return this._marginSizeCache.averageSize}get totalMarginSize(){return this._marginSizeCache.totalSize}getLeadingMarginValue(t,i){return this._metricsCache.get(t)?.[h(i)]||0}getChildSize(t){return this._childSizeCache.getSize(t)}getMarginSize(t){return this._marginSizeCache.getSize(t)}clear(){this._childSizeCache.clear(),this._marginSizeCache.clear(),this._metricsCache.clear()}}class l extends s{constructor(){super(...arguments),this._itemSize={width:100,height:100},this._physicalItems=new Map,this._newPhysicalItems=new Map,this._metricsCache=new o,this._anchorIdx=null,this._anchorPos=null,this._stable=!0,this._measureChildren=!0,this._estimate=!0}get measureChildren(){return this._measureChildren}updateItemSizes(t){this._metricsCache.update(t,this.direction),this._scheduleReflow()}_getPhysicalItem(t){return this._newPhysicalItems.get(t)??this._physicalItems.get(t)}_getSize(t){return this._getPhysicalItem(t)&&this._metricsCache.getChildSize(t)}_getAverageSize(){return this._metricsCache.averageChildSize||this._itemSize[this._sizeDim]}_estimatePosition(t){const i=this._metricsCache;if(-1===this._first||-1===this._last)return i.averageMarginSize+t*(i.averageMarginSize+this._getAverageSize());if(t<this._first){const s=this._first-t;return this._getPhysicalItem(this._first).pos-(i.getMarginSize(this._first-1)||i.averageMarginSize)-(s*i.averageChildSize+(s-1)*i.averageMarginSize)}{const s=t-this._last;return this._getPhysicalItem(this._last).pos+(i.getChildSize(this._last)||i.averageChildSize)+(i.getMarginSize(this._last)||i.averageMarginSize)+s*(i.averageChildSize+i.averageMarginSize)}}_getPosition(t){const i=this._getPhysicalItem(t),{averageMarginSize:s}=this._metricsCache;return 0===t?this._metricsCache.getMarginSize(0)??s:i?i.pos:this._estimatePosition(t)}_calculateAnchor(t,i){return t<=0?0:i>this._scrollSize-this._viewDim1?this.items.length-1:Math.max(0,Math.min(this.items.length-1,Math.floor((t+i)/2/this._delta)))}_getAnchor(t,i){if(0===this._physicalItems.size)return this._calculateAnchor(t,i);if(this._first<0)return this._calculateAnchor(t,i);if(this._last<0)return this._calculateAnchor(t,i);const s=this._getPhysicalItem(this._first),h=this._getPhysicalItem(this._last),e=s.pos;if(h.pos+this._metricsCache.getChildSize(this._last)<t)return this._calculateAnchor(t,i);if(e>i)return this._calculateAnchor(t,i);let n=this._firstVisible-1,r=-1/0;for(;r<t;){r=this._getPhysicalItem(++n).pos+this._metricsCache.getChildSize(n)}return n}_getActiveItems(){0===this._viewDim1||0===this.items.length?this._clearItems():this._getItems()}_clearItems(){this._first=-1,this._last=-1,this._physicalMin=0,this._physicalMax=0;const t=this._newPhysicalItems;this._newPhysicalItems=this._physicalItems,this._newPhysicalItems.clear(),this._physicalItems=t,this._stable=!0}_getItems(){const t=this._newPhysicalItems;let i,s;if(this._stable=!0,null!==this.pin){const{index:t}=this.pin;this._anchorIdx=t,this._anchorPos=this._getPosition(t)}if(i=this._scrollPosition-this._overhang,s=this._scrollPosition+this._viewDim1+this._overhang,s<0||i>this._scrollSize)return void this._clearItems();null!==this._anchorIdx&&null!==this._anchorPos||(this._anchorIdx=this._getAnchor(i,s),this._anchorPos=this._getPosition(this._anchorIdx));let h=this._getSize(this._anchorIdx);void 0===h&&(this._stable=!1,h=this._getAverageSize());const e=this._metricsCache.getMarginSize(this._anchorIdx)??this._metricsCache.averageMarginSize,n=this._metricsCache.getMarginSize(this._anchorIdx+1)??this._metricsCache.averageMarginSize;0===this._anchorIdx&&(this._anchorPos=e),this._anchorIdx===this.items.length-1&&(this._anchorPos=this._scrollSize-n-h);let r=0;for(this._anchorPos+h+n<i&&(r=i-(this._anchorPos+h+n)),this._anchorPos-e>s&&(r=s-(this._anchorPos-e)),r&&(this._scrollPosition-=r,i-=r,s-=r,this._scrollError+=r),t.set(this._anchorIdx,{pos:this._anchorPos,size:h}),this._first=this._last=this._anchorIdx,this._physicalMin=this._anchorPos-e,this._physicalMax=this._anchorPos+h+n;this._physicalMin>i&&this._first>0;){let i=this._getSize(--this._first);void 0===i&&(this._stable=!1,i=this._getAverageSize());let s=this._metricsCache.getMarginSize(this._first);void 0===s&&(this._stable=!1,s=this._metricsCache.averageMarginSize),this._physicalMin-=i;const h=this._physicalMin;if(t.set(this._first,{pos:h,size:i}),this._physicalMin-=s,!1===this._stable&&!1===this._estimate)break}for(;this._physicalMax<s&&this._last<this.items.length-1;){let i=this._getSize(++this._last);void 0===i&&(this._stable=!1,i=this._getAverageSize());let s=this._metricsCache.getMarginSize(this._last);void 0===s&&(this._stable=!1,s=this._metricsCache.averageMarginSize);const h=this._physicalMax;if(t.set(this._last,{pos:h,size:i}),this._physicalMax+=i+s,!this._stable&&!this._estimate)break}const o=this._calculateError();o&&(this._physicalMin-=o,this._physicalMax-=o,this._anchorPos-=o,this._scrollPosition-=o,t.forEach((t=>t.pos-=o)),this._scrollError+=o),this._stable&&(this._newPhysicalItems=this._physicalItems,this._newPhysicalItems.clear(),this._physicalItems=t)}_calculateError(){return 0===this._first?this._physicalMin:this._physicalMin<=0?this._physicalMin-this._first*this._delta:this._last===this.items.length-1?this._physicalMax-this._scrollSize:this._physicalMax>=this._scrollSize?this._physicalMax-this._scrollSize+(this.items.length-1-this._last)*this._delta:0}_reflow(){const{_first:t,_last:i}=this;super._reflow(),(-1===this._first&&-1==this._last||this._first===t&&this._last===i)&&this._resetReflowState()}_resetReflowState(){this._anchorIdx=null,this._anchorPos=null,this._stable=!0}_updateScrollSize(){const{averageMarginSize:t}=this._metricsCache;this._scrollSize=Math.max(1,this.items.length*(t+this._getAverageSize())+t)}get _delta(){const{averageMarginSize:t}=this._metricsCache;return this._getAverageSize()+t}_getItemPosition(t){return{[this._positionDim]:this._getPosition(t),[this._secondaryPositionDim]:0,[n(this.direction)]:-(this._metricsCache.getLeadingMarginValue(t,this.direction)??this._metricsCache.averageMarginSize)}}_getItemSize(t){return{[this._sizeDim]:this._getSize(t)||this._getAverageSize(),[this._secondarySizeDim]:this._itemSize[this._secondarySizeDim]}}_viewDim2Changed(){this._metricsCache.clear(),this._scheduleReflow()}}export{l as FlowLayout};
|
@@ -0,0 +1,14 @@
|
|
1
|
+
System.register([],function(_export,_context){"use strict";var t,s,o,l;function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t;})();}function _superPropGet(t,o,e,r){var p=_get(_getPrototypeOf(1&r?t.prototype:t),o,e);return 2&r&&"function"==typeof p?function(t){return p.apply(e,t);}:p;}function _get(){return _get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var p=_superPropBase(e,t);if(p){var n=Object.getOwnPropertyDescriptor(p,t);return n.get?n.get.call(arguments.length<3?e:r):n.value;}},_get.apply(null,arguments);}function _superPropBase(t,o){for(;!{}.hasOwnProperty.call(t,o)&&null!==(t=_getPrototypeOf(t)););return t;}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}function _createForOfIteratorHelper(r,e){var t="undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(!t){if(Array.isArray(r)||(t=_unsupportedIterableToArray(r))||e&&r&&"number"==typeof r.length){t&&(r=t);var _n2=0,F=function F(){};return{s:F,n:function n(){return _n2>=r.length?{done:!0}:{done:!1,value:r[_n2++]};},e:function e(r){throw r;},f:F};}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var o,a=!0,u=!1;return{s:function s(){t=t.call(r);},n:function n(){var r=t.next();return a=r.done,r;},e:function e(r){u=!0,o=r;},f:function f(){try{a||null==t["return"]||t["return"]();}finally{if(u)throw o;}}};}function _toConsumableArray(r){return _arrayWithoutHoles(r)||_iterableToArray(r)||_unsupportedIterableToArray(r)||_nonIterableSpread();}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0;}}function _iterableToArray(r){if("undefined"!=typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r);}function _arrayWithoutHoles(r){if(Array.isArray(r))return _arrayLikeToArray(r);}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n;}function _defineProperty(e,r,t){return(r=_toPropertyKey(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e;}function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}/**
|
2
|
+
* @license
|
3
|
+
* Copyright 2021 Google LLC
|
4
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
5
|
+
*/function i(t){return"horizontal"===t?"width":"height";}/**
|
6
|
+
* @license
|
7
|
+
* Copyright 2021 Google LLC
|
8
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
9
|
+
*/function h(t){return"horizontal"===t?"marginLeft":"marginTop";}function e(t){return"horizontal"===t?"marginRight":"marginBottom";}function n(t){return"horizontal"===t?"xOffset":"yOffset";}function r(t,i){var s=[t,i].sort();return s[1]<=0?Math.min.apply(Math,_toConsumableArray(s)):s[0]>=0?Math.max.apply(Math,_toConsumableArray(s)):s[0]+s[1];}return{setters:[],execute:function execute(){(function(){try{"undefined"!=typeof window&&(window.nile=window.nile||{},window.nile.version="0.1.64");}catch(_unused){}})();/**
|
10
|
+
* @license
|
11
|
+
* Copyright 2021 Google LLC
|
12
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
13
|
+
*/t=/*#__PURE__*/function(){function t(_t){_classCallCheck(this,t);this._map=new Map(),this._roundAverageSize=!1,this.totalSize=0,!0===(_t===null||_t===void 0?void 0:_t.roundAverageSize)&&(this._roundAverageSize=!0);}return _createClass(t,[{key:"set",value:function set(_t2,i){var s=this._map.get(_t2)||0;this._map.set(_t2,i),this.totalSize+=i-s;}},{key:"averageSize",get:function get(){if(this._map.size>0){var _t3=this.totalSize/this._map.size;return this._roundAverageSize?Math.round(_t3):_t3;}return 0;}},{key:"getSize",value:function getSize(_t4){return this._map.get(_t4);}},{key:"clear",value:function clear(){this._map.clear(),this.totalSize=0;}}]);}();s=/*#__PURE__*/function(){function s(t,i){var _this=this;_classCallCheck(this,s);this._latestCoords={left:0,top:0},this._direction=null,this._viewportSize={width:0,height:0},this.totalScrollSize={width:0,height:0},this.offsetWithinScroller={left:0,top:0},this._pendingReflow=!1,this._pendingLayoutUpdate=!1,this._pin=null,this._firstVisible=0,this._lastVisible=0,this._physicalMin=0,this._physicalMax=0,this._first=-1,this._last=-1,this._sizeDim="height",this._secondarySizeDim="width",this._positionDim="top",this._secondaryPositionDim="left",this._scrollPosition=0,this._scrollError=0,this._items=[],this._scrollSize=1,this._overhang=1e3,this._hostSink=t,Promise.resolve().then(function(){return _this.config=i||_this._getDefaultConfig();});}return _createClass(s,[{key:"_getDefaultConfig",value:function _getDefaultConfig(){return{direction:"vertical"};}},{key:"config",get:function get(){return{direction:this.direction};},set:function set(t){Object.assign(this,Object.assign({},this._getDefaultConfig(),t));}},{key:"items",get:function get(){return this._items;},set:function set(t){this._setItems(t);}},{key:"_setItems",value:function _setItems(t){t!==this._items&&(this._items=t,this._scheduleReflow());}},{key:"direction",get:function get(){return this._direction;},set:function set(t){(t="horizontal"===t?t:"vertical")!==this._direction&&(this._direction=t,this._sizeDim="horizontal"===t?"width":"height",this._secondarySizeDim="horizontal"===t?"height":"width",this._positionDim="horizontal"===t?"left":"top",this._secondaryPositionDim="horizontal"===t?"top":"left",this._triggerReflow());}},{key:"viewportSize",get:function get(){return this._viewportSize;},set:function set(t){var i=this._viewDim1,_s=this._viewDim2;Object.assign(this._viewportSize,t),_s!==this._viewDim2?this._scheduleLayoutUpdate():i!==this._viewDim1&&this._checkThresholds();}},{key:"viewportScroll",get:function get(){return this._latestCoords;},set:function set(t){Object.assign(this._latestCoords,t);var i=this._scrollPosition;this._scrollPosition=this._latestCoords[this._positionDim];Math.abs(i-this._scrollPosition)>=1&&this._checkThresholds();}},{key:"reflowIfNeeded",value:function reflowIfNeeded(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:!1;(t||this._pendingReflow)&&(this._pendingReflow=!1,this._reflow());}},{key:"pin",get:function get(){if(null!==this._pin){var _this$_pin=this._pin,_t5=_this$_pin.index,_i=_this$_pin.block;return{index:Math.max(0,Math.min(_t5,this.items.length-1)),block:_i};}return null;},set:function set(t){this._pin=t,this._triggerReflow();}},{key:"_clampScrollPosition",value:function _clampScrollPosition(t){return Math.max(-this.offsetWithinScroller[this._positionDim],Math.min(t,this.totalScrollSize[i(this.direction)]-this._viewDim1));}},{key:"unpin",value:function unpin(){null!==this._pin&&(this._sendUnpinnedMessage(),this._pin=null);}},{key:"_updateLayout",value:function _updateLayout(){}},{key:"_viewDim1",get:function get(){return this._viewportSize[this._sizeDim];}},{key:"_viewDim2",get:function get(){return this._viewportSize[this._secondarySizeDim];}},{key:"_scheduleReflow",value:function _scheduleReflow(){this._pendingReflow=!0;}},{key:"_scheduleLayoutUpdate",value:function _scheduleLayoutUpdate(){this._pendingLayoutUpdate=!0,this._scheduleReflow();}},{key:"_triggerReflow",value:function _triggerReflow(){var _this2=this;this._scheduleLayoutUpdate(),Promise.resolve().then(function(){return _this2.reflowIfNeeded();});}},{key:"_reflow",value:function _reflow(){this._pendingLayoutUpdate&&(this._updateLayout(),this._pendingLayoutUpdate=!1),this._updateScrollSize(),this._setPositionFromPin(),this._getActiveItems(),this._updateVisibleIndices(),this._sendStateChangedMessage();}},{key:"_setPositionFromPin",value:function _setPositionFromPin(){if(null!==this.pin){var _t6=this._scrollPosition,_this$pin=this.pin,_i2=_this$pin.index,_s2=_this$pin.block;this._scrollPosition=this._calculateScrollIntoViewPosition({index:_i2,block:_s2||"start"})-this.offsetWithinScroller[this._positionDim],this._scrollError=_t6-this._scrollPosition;}}},{key:"_calculateScrollIntoViewPosition",value:function _calculateScrollIntoViewPosition(t){var i=t.block,_s3=Math.min(this.items.length,Math.max(0,t.index)),h=this._getItemPosition(_s3)[this._positionDim];var e=h;if("start"!==i){var _t7=this._getItemSize(_s3)[this._sizeDim];if("center"===i)e=h-.5*this._viewDim1+.5*_t7;else{var _s4=h-this._viewDim1+_t7;if("end"===i)e=_s4;else{var _t8=this._scrollPosition;e=Math.abs(_t8-h)<Math.abs(_t8-_s4)?h:_s4;}}}return e+=this.offsetWithinScroller[this._positionDim],this._clampScrollPosition(e);}},{key:"getScrollIntoViewCoordinates",value:function getScrollIntoViewCoordinates(t){return _defineProperty({},this._positionDim,this._calculateScrollIntoViewPosition(t));}},{key:"_sendUnpinnedMessage",value:function _sendUnpinnedMessage(){this._hostSink({type:"unpinned"});}},{key:"_sendVisibilityChangedMessage",value:function _sendVisibilityChangedMessage(){this._hostSink({type:"visibilityChanged",firstVisible:this._firstVisible,lastVisible:this._lastVisible});}},{key:"_sendStateChangedMessage",value:function _sendStateChangedMessage(){var t=new Map();if(-1!==this._first&&-1!==this._last)for(var _i3=this._first;_i3<=this._last;_i3++)t.set(_i3,this._getItemPosition(_i3));var i={type:"stateChanged",scrollSize:_defineProperty(_defineProperty({},this._sizeDim,this._scrollSize),this._secondarySizeDim,null),range:{first:this._first,last:this._last,firstVisible:this._firstVisible,lastVisible:this._lastVisible},childPositions:t};this._scrollError&&(i.scrollError=_defineProperty(_defineProperty({},this._positionDim,this._scrollError),this._secondaryPositionDim,0),this._scrollError=0),this._hostSink(i);}},{key:"_num",get:function get(){return-1===this._first||-1===this._last?0:this._last-this._first+1;}},{key:"_checkThresholds",value:function _checkThresholds(){if(0===this._viewDim1&&this._num>0||null!==this._pin)this._scheduleReflow();else{var _t9=Math.max(0,this._scrollPosition-this._overhang),_i4=Math.min(this._scrollSize,this._scrollPosition+this._viewDim1+this._overhang);this._physicalMin>_t9||this._physicalMax<_i4?this._scheduleReflow():this._updateVisibleIndices({emit:!0});}}},{key:"_updateVisibleIndices",value:function _updateVisibleIndices(t){if(-1===this._first||-1===this._last)return;var i=this._first;for(;i<this._last&&Math.round(this._getItemPosition(i)[this._positionDim]+this._getItemSize(i)[this._sizeDim])<=Math.round(this._scrollPosition);)i++;var _s5=this._last;for(;_s5>this._first&&Math.round(this._getItemPosition(_s5)[this._positionDim])>=Math.round(this._scrollPosition+this._viewDim1);)_s5--;i===this._firstVisible&&_s5===this._lastVisible||(this._firstVisible=i,this._lastVisible=_s5,t&&t.emit&&this._sendVisibilityChangedMessage());}}]);}();o=/*#__PURE__*/function(){function o(){_classCallCheck(this,o);this._childSizeCache=new t(),this._marginSizeCache=new t(),this._metricsCache=new Map();}return _createClass(o,[{key:"update",value:function update(t,s){var _this3=this;var n=new Set();Object.keys(t).forEach(function(h){var e=Number(h);_this3._metricsCache.set(e,t[e]),_this3._childSizeCache.set(e,t[e][i(s)]),n.add(e),n.add(e+1);});var _iterator=_createForOfIteratorHelper(n),_step;try{for(_iterator.s();!(_step=_iterator.n()).done;){var _this$_metricsCache$g,_this$_metricsCache$g2;var _t10=_step.value;var _i5=((_this$_metricsCache$g=this._metricsCache.get(_t10))===null||_this$_metricsCache$g===void 0?void 0:_this$_metricsCache$g[h(s)])||0,_n=((_this$_metricsCache$g2=this._metricsCache.get(_t10-1))===null||_this$_metricsCache$g2===void 0?void 0:_this$_metricsCache$g2[e(s)])||0;this._marginSizeCache.set(_t10,r(_i5,_n));}}catch(err){_iterator.e(err);}finally{_iterator.f();}}},{key:"averageChildSize",get:function get(){return this._childSizeCache.averageSize;}},{key:"totalChildSize",get:function get(){return this._childSizeCache.totalSize;}},{key:"averageMarginSize",get:function get(){return this._marginSizeCache.averageSize;}},{key:"totalMarginSize",get:function get(){return this._marginSizeCache.totalSize;}},{key:"getLeadingMarginValue",value:function getLeadingMarginValue(t,i){var _this$_metricsCache$g3;return((_this$_metricsCache$g3=this._metricsCache.get(t))===null||_this$_metricsCache$g3===void 0?void 0:_this$_metricsCache$g3[h(i)])||0;}},{key:"getChildSize",value:function getChildSize(t){return this._childSizeCache.getSize(t);}},{key:"getMarginSize",value:function getMarginSize(t){return this._marginSizeCache.getSize(t);}},{key:"clear",value:function clear(){this._childSizeCache.clear(),this._marginSizeCache.clear(),this._metricsCache.clear();}}]);}();_export("FlowLayout",l=/*#__PURE__*/function(_s6){function l(){var _this4;_classCallCheck(this,l);_this4=_callSuper(this,l,arguments),_this4._itemSize={width:100,height:100},_this4._physicalItems=new Map(),_this4._newPhysicalItems=new Map(),_this4._metricsCache=new o(),_this4._anchorIdx=null,_this4._anchorPos=null,_this4._stable=!0,_this4._measureChildren=!0,_this4._estimate=!0;return _this4;}_inherits(l,_s6);return _createClass(l,[{key:"measureChildren",get:function get(){return this._measureChildren;}},{key:"updateItemSizes",value:function updateItemSizes(t){this._metricsCache.update(t,this.direction),this._scheduleReflow();}},{key:"_getPhysicalItem",value:function _getPhysicalItem(t){var _this$_newPhysicalIte;return(_this$_newPhysicalIte=this._newPhysicalItems.get(t))!==null&&_this$_newPhysicalIte!==void 0?_this$_newPhysicalIte:this._physicalItems.get(t);}},{key:"_getSize",value:function _getSize(t){return this._getPhysicalItem(t)&&this._metricsCache.getChildSize(t);}},{key:"_getAverageSize",value:function _getAverageSize(){return this._metricsCache.averageChildSize||this._itemSize[this._sizeDim];}},{key:"_estimatePosition",value:function _estimatePosition(t){var i=this._metricsCache;if(-1===this._first||-1===this._last)return i.averageMarginSize+t*(i.averageMarginSize+this._getAverageSize());if(t<this._first){var _s7=this._first-t;return this._getPhysicalItem(this._first).pos-(i.getMarginSize(this._first-1)||i.averageMarginSize)-(_s7*i.averageChildSize+(_s7-1)*i.averageMarginSize);}{var _s8=t-this._last;return this._getPhysicalItem(this._last).pos+(i.getChildSize(this._last)||i.averageChildSize)+(i.getMarginSize(this._last)||i.averageMarginSize)+_s8*(i.averageChildSize+i.averageMarginSize);}}},{key:"_getPosition",value:function _getPosition(t){var _this$_metricsCache$g4;var i=this._getPhysicalItem(t),s=this._metricsCache.averageMarginSize;return 0===t?(_this$_metricsCache$g4=this._metricsCache.getMarginSize(0))!==null&&_this$_metricsCache$g4!==void 0?_this$_metricsCache$g4:s:i?i.pos:this._estimatePosition(t);}},{key:"_calculateAnchor",value:function _calculateAnchor(t,i){return t<=0?0:i>this._scrollSize-this._viewDim1?this.items.length-1:Math.max(0,Math.min(this.items.length-1,Math.floor((t+i)/2/this._delta)));}},{key:"_getAnchor",value:function _getAnchor(t,i){if(0===this._physicalItems.size)return this._calculateAnchor(t,i);if(this._first<0)return this._calculateAnchor(t,i);if(this._last<0)return this._calculateAnchor(t,i);var s=this._getPhysicalItem(this._first),h=this._getPhysicalItem(this._last),e=s.pos;if(h.pos+this._metricsCache.getChildSize(this._last)<t)return this._calculateAnchor(t,i);if(e>i)return this._calculateAnchor(t,i);var n=this._firstVisible-1,r=-1/0;for(;r<t;){r=this._getPhysicalItem(++n).pos+this._metricsCache.getChildSize(n);}return n;}},{key:"_getActiveItems",value:function _getActiveItems(){0===this._viewDim1||0===this.items.length?this._clearItems():this._getItems();}},{key:"_clearItems",value:function _clearItems(){this._first=-1,this._last=-1,this._physicalMin=0,this._physicalMax=0;var t=this._newPhysicalItems;this._newPhysicalItems=this._physicalItems,this._newPhysicalItems.clear(),this._physicalItems=t,this._stable=!0;}},{key:"_getItems",value:function _getItems(){var _this$_metricsCache$g5,_this$_metricsCache$g6;var t=this._newPhysicalItems;var i,s;if(this._stable=!0,null!==this.pin){var _t11=this.pin.index;this._anchorIdx=_t11,this._anchorPos=this._getPosition(_t11);}if(i=this._scrollPosition-this._overhang,s=this._scrollPosition+this._viewDim1+this._overhang,s<0||i>this._scrollSize)return void this._clearItems();null!==this._anchorIdx&&null!==this._anchorPos||(this._anchorIdx=this._getAnchor(i,s),this._anchorPos=this._getPosition(this._anchorIdx));var h=this._getSize(this._anchorIdx);void 0===h&&(this._stable=!1,h=this._getAverageSize());var e=(_this$_metricsCache$g5=this._metricsCache.getMarginSize(this._anchorIdx))!==null&&_this$_metricsCache$g5!==void 0?_this$_metricsCache$g5:this._metricsCache.averageMarginSize,n=(_this$_metricsCache$g6=this._metricsCache.getMarginSize(this._anchorIdx+1))!==null&&_this$_metricsCache$g6!==void 0?_this$_metricsCache$g6:this._metricsCache.averageMarginSize;0===this._anchorIdx&&(this._anchorPos=e),this._anchorIdx===this.items.length-1&&(this._anchorPos=this._scrollSize-n-h);var r=0;for(this._anchorPos+h+n<i&&(r=i-(this._anchorPos+h+n)),this._anchorPos-e>s&&(r=s-(this._anchorPos-e)),r&&(this._scrollPosition-=r,i-=r,s-=r,this._scrollError+=r),t.set(this._anchorIdx,{pos:this._anchorPos,size:h}),this._first=this._last=this._anchorIdx,this._physicalMin=this._anchorPos-e,this._physicalMax=this._anchorPos+h+n;this._physicalMin>i&&this._first>0;){var _i6=this._getSize(--this._first);void 0===_i6&&(this._stable=!1,_i6=this._getAverageSize());var _s9=this._metricsCache.getMarginSize(this._first);void 0===_s9&&(this._stable=!1,_s9=this._metricsCache.averageMarginSize),this._physicalMin-=_i6;var _h=this._physicalMin;if(t.set(this._first,{pos:_h,size:_i6}),this._physicalMin-=_s9,!1===this._stable&&!1===this._estimate)break;}for(;this._physicalMax<s&&this._last<this.items.length-1;){var _i7=this._getSize(++this._last);void 0===_i7&&(this._stable=!1,_i7=this._getAverageSize());var _s10=this._metricsCache.getMarginSize(this._last);void 0===_s10&&(this._stable=!1,_s10=this._metricsCache.averageMarginSize);var _h2=this._physicalMax;if(t.set(this._last,{pos:_h2,size:_i7}),this._physicalMax+=_i7+_s10,!this._stable&&!this._estimate)break;}var o=this._calculateError();o&&(this._physicalMin-=o,this._physicalMax-=o,this._anchorPos-=o,this._scrollPosition-=o,t.forEach(function(t){return t.pos-=o;}),this._scrollError+=o),this._stable&&(this._newPhysicalItems=this._physicalItems,this._newPhysicalItems.clear(),this._physicalItems=t);}},{key:"_calculateError",value:function _calculateError(){return 0===this._first?this._physicalMin:this._physicalMin<=0?this._physicalMin-this._first*this._delta:this._last===this.items.length-1?this._physicalMax-this._scrollSize:this._physicalMax>=this._scrollSize?this._physicalMax-this._scrollSize+(this.items.length-1-this._last)*this._delta:0;}},{key:"_reflow",value:function _reflow(){var t=this._first,i=this._last;_superPropGet(l,"_reflow",this,3)([]),(-1===this._first&&-1==this._last||this._first===t&&this._last===i)&&this._resetReflowState();}},{key:"_resetReflowState",value:function _resetReflowState(){this._anchorIdx=null,this._anchorPos=null,this._stable=!0;}},{key:"_updateScrollSize",value:function _updateScrollSize(){var t=this._metricsCache.averageMarginSize;this._scrollSize=Math.max(1,this.items.length*(t+this._getAverageSize())+t);}},{key:"_delta",get:function get(){var t=this._metricsCache.averageMarginSize;return this._getAverageSize()+t;}},{key:"_getItemPosition",value:function _getItemPosition(t){var _this$_metricsCache$g7;return _defineProperty(_defineProperty(_defineProperty({},this._positionDim,this._getPosition(t)),this._secondaryPositionDim,0),n(this.direction),-((_this$_metricsCache$g7=this._metricsCache.getLeadingMarginValue(t,this.direction))!==null&&_this$_metricsCache$g7!==void 0?_this$_metricsCache$g7:this._metricsCache.averageMarginSize));}},{key:"_getItemSize",value:function _getItemSize(t){return _defineProperty(_defineProperty({},this._sizeDim,this._getSize(t)||this._getAverageSize()),this._secondarySizeDim,this._itemSize[this._secondarySizeDim]);}},{key:"_viewDim2Changed",value:function _viewDim2Changed(){this._metricsCache.clear(),this._scheduleReflow();}}]);}(s));}};});
|
14
|
+
//# sourceMappingURL=flow-eb3cbb92.cjs.js.map
|