@mgdis/mg-components 6.13.1 → 6.14.0
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/dist/cjs/events.utils-D5SAtkpQ.js +0 -3
- package/dist/cjs/index-CwjAofQ1.js +0 -3
- package/dist/cjs/index-DUJwxnoi.js +0 -3
- package/dist/cjs/{index-CATFkm3O.js → index-DzBkSgSK.js} +224 -122
- package/dist/cjs/index.cjs.js +0 -3
- package/dist/cjs/loader.cjs.js +3 -7
- package/dist/cjs/mg-action-more_37.cjs.entry.js +141 -75
- package/dist/cjs/mg-alert.cjs.entry.js +5 -8
- package/dist/cjs/mg-components.cjs.js +4 -8
- package/dist/cjs/mg-input-combobox.cjs.entry.js +7 -10
- package/dist/cjs/mg-input-rich-text-editor.cjs.entry.js +3 -6
- package/dist/cjs/mg-input.conf-WTsvDfpC.js +0 -3
- package/dist/cjs/mg-loader.cjs.entry.js +1 -4
- package/dist/cjs/mg-progress.cjs.entry.js +1 -4
- package/dist/collection/assets/icons/index.js +0 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/atoms/internals/mg-character-left/mg-character-left.js +3 -4
- package/dist/collection/components/atoms/internals/mg-input-title/mg-input-title.js +4 -5
- package/dist/collection/components/atoms/mg-badge/mg-badge.conf.js +0 -1
- package/dist/collection/components/atoms/mg-badge/mg-badge.js +4 -5
- package/dist/collection/components/atoms/mg-button/mg-button.conf.js +0 -1
- package/dist/collection/components/atoms/mg-button/mg-button.js +9 -10
- package/dist/collection/components/atoms/mg-card/mg-card.conf.js +4 -0
- package/dist/collection/components/atoms/mg-card/mg-card.js +104 -2
- package/dist/collection/components/atoms/mg-divider/mg-divider.js +1 -2
- package/dist/collection/components/atoms/mg-icon/mg-icon.conf.js +0 -1
- package/dist/collection/components/atoms/mg-icon/mg-icon.js +6 -7
- package/dist/collection/components/atoms/mg-tag/mg-tag.conf.js +0 -1
- package/dist/collection/components/atoms/mg-tag/mg-tag.js +3 -4
- package/dist/collection/components/atoms/mg-tooltip/mg-tooltip-content/mg-tooltip-content.js +1 -2
- package/dist/collection/components/atoms/mg-tooltip/mg-tooltip.conf.js +0 -1
- package/dist/collection/components/atoms/mg-tooltip/mg-tooltip.js +5 -6
- package/dist/collection/components/molecules/inputs/mg-input/mg-input.conf.js +0 -1
- package/dist/collection/components/molecules/inputs/mg-input/mg-input.js +33 -18
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/MgInputCheckboxList.js +0 -1
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox-paginated/mg-input-checkbox-paginated.js +7 -6
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.conf.js +0 -1
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.js +21 -21
- package/dist/collection/components/molecules/inputs/mg-input-combobox/mg-input-combobox.conf.js +0 -1
- package/dist/collection/components/molecules/inputs/mg-input-combobox/mg-input-combobox.js +22 -20
- package/dist/collection/components/molecules/inputs/mg-input-date/mg-input-date.conf.js +0 -1
- package/dist/collection/components/molecules/inputs/mg-input-date/mg-input-date.js +17 -18
- package/dist/collection/components/molecules/inputs/mg-input-numeric/mg-input-numeric.conf.js +0 -1
- package/dist/collection/components/molecules/inputs/mg-input-numeric/mg-input-numeric.js +26 -27
- package/dist/collection/components/molecules/inputs/mg-input-password/mg-input-password.js +18 -19
- package/dist/collection/components/molecules/inputs/mg-input-radio/mg-input-radio.conf.js +0 -1
- package/dist/collection/components/molecules/inputs/mg-input-radio/mg-input-radio.js +17 -17
- package/dist/collection/components/molecules/inputs/mg-input-rich-text-editor/editor/index.js +0 -1
- package/dist/collection/components/molecules/inputs/mg-input-rich-text-editor/mg-input-rich-text-editor.js +18 -18
- package/dist/collection/components/molecules/inputs/mg-input-select/mg-input-select.conf.js +0 -1
- package/dist/collection/components/molecules/inputs/mg-input-select/mg-input-select.js +38 -32
- package/dist/collection/components/molecules/inputs/mg-input-text/mg-input-text.conf.js +0 -1
- package/dist/collection/components/molecules/inputs/mg-input-text/mg-input-text.js +25 -25
- package/dist/collection/components/molecules/inputs/mg-input-textarea/mg-input-textarea.js +23 -24
- package/dist/collection/components/molecules/inputs/mg-input-toggle/mg-input-toggle.conf.js +0 -1
- package/dist/collection/components/molecules/inputs/mg-input-toggle/mg-input-toggle.js +15 -15
- package/dist/collection/components/molecules/internals/mg-item-more/mg-item-more.conf.js +0 -1
- package/dist/collection/components/molecules/internals/mg-item-more/mg-item-more.js +4 -3
- package/dist/collection/components/molecules/menus/mg-menu/mg-menu.conf.js +0 -1
- package/dist/collection/components/molecules/menus/mg-menu/mg-menu.js +4 -4
- package/dist/collection/components/molecules/menus/mg-menu-item/mg-menu-item.conf.js +0 -1
- package/dist/collection/components/molecules/menus/mg-menu-item/mg-menu-item.js +5 -6
- package/dist/collection/components/molecules/mg-action-more/mg-action-more.conf.js +0 -1
- package/dist/collection/components/molecules/mg-action-more/mg-action-more.js +5 -3
- package/dist/collection/components/molecules/mg-alert/mg-alert.conf.js +0 -1
- package/dist/collection/components/molecules/mg-alert/mg-alert.js +7 -8
- package/dist/collection/components/molecules/mg-details/mg-details.js +4 -5
- package/dist/collection/components/molecules/mg-form/mg-form.conf.js +0 -1
- package/dist/collection/components/molecules/mg-form/mg-form.js +9 -10
- package/dist/collection/components/molecules/mg-illustrated-message/mg-illustrated-message.conf.js +0 -1
- package/dist/collection/components/molecules/mg-illustrated-message/mg-illustrated-message.js +2 -3
- package/dist/collection/components/molecules/mg-loader/mg-loader.js +2 -3
- package/dist/collection/components/molecules/mg-message/mg-message.conf.js +0 -1
- package/dist/collection/components/molecules/mg-message/mg-message.js +4 -5
- package/dist/collection/components/molecules/mg-modal/mg-modal.conf.js +0 -1
- package/dist/collection/components/molecules/mg-modal/mg-modal.js +6 -7
- package/dist/collection/components/molecules/mg-pagination/mg-pagination.conf.js +0 -1
- package/dist/collection/components/molecules/mg-pagination/mg-pagination.js +7 -7
- package/dist/collection/components/molecules/mg-panel/mg-panel.conf.js +0 -1
- package/dist/collection/components/molecules/mg-panel/mg-panel.js +34 -11
- package/dist/collection/components/molecules/mg-popover/mg-popover-content/mg-popover-content.js +2 -3
- package/dist/collection/components/molecules/mg-popover/mg-popover.js +6 -7
- package/dist/collection/components/molecules/mg-progress/mg-progress.conf.js +0 -1
- package/dist/collection/components/molecules/mg-progress/mg-progress.js +5 -6
- package/dist/collection/components/molecules/mg-skip-links/mg-skip-links.conf.js +0 -1
- package/dist/collection/components/molecules/mg-skip-links/mg-skip-links.js +5 -4
- package/dist/collection/components/molecules/mg-table/mg-table.conf.js +0 -1
- package/dist/collection/components/molecules/mg-table/mg-table.js +4 -4
- package/dist/collection/components/molecules/mg-tabs/mg-tabs.conf.js +0 -1
- package/dist/collection/components/molecules/mg-tabs/mg-tabs.js +6 -6
- package/dist/collection/index.js +0 -1
- package/dist/collection/locales/index.conf.js +0 -1
- package/dist/collection/locales/index.js +0 -1
- package/dist/collection/types/index.js +0 -1
- package/dist/collection/utils/behaviors.utils.js +0 -1
- package/dist/collection/utils/events.utils.js +0 -1
- package/dist/collection/utils/playwright.fixture.js +0 -1
- package/dist/collection/utils/unit.test.utils.js +0 -1
- package/dist/components/events.utils.js +0 -3
- package/dist/components/index.js +1 -4
- package/dist/components/index2.js +0 -3
- package/dist/components/index3.js +0 -3
- package/dist/components/mg-action-more.js +0 -3
- package/dist/components/mg-alert.js +4 -7
- package/dist/components/mg-badge.js +0 -3
- package/dist/components/mg-badge2.js +0 -3
- package/dist/components/mg-button.js +0 -3
- package/dist/components/mg-button2.js +0 -3
- package/dist/components/mg-card.js +0 -3
- package/dist/components/mg-card2.js +55 -6
- package/dist/components/mg-character-left.js +0 -3
- package/dist/components/mg-character-left2.js +0 -3
- package/dist/components/mg-details.js +0 -3
- package/dist/components/mg-divider.js +0 -3
- package/dist/components/mg-divider2.js +0 -3
- package/dist/components/mg-form.js +0 -3
- package/dist/components/mg-icon.js +0 -3
- package/dist/components/mg-icon2.js +0 -3
- package/dist/components/mg-illustrated-message.js +0 -3
- package/dist/components/mg-input-checkbox-paginated.js +0 -3
- package/dist/components/mg-input-checkbox-paginated2.js +0 -3
- package/dist/components/mg-input-checkbox.js +1 -4
- package/dist/components/mg-input-combobox.js +1 -4
- package/dist/components/mg-input-date.js +1 -4
- package/dist/components/mg-input-numeric.js +1 -4
- package/dist/components/mg-input-password.js +1 -4
- package/dist/components/mg-input-radio.js +1 -4
- package/dist/components/mg-input-rich-text-editor.js +0 -3
- package/dist/components/mg-input-select.js +0 -3
- package/dist/components/mg-input-select2.js +18 -15
- package/dist/components/mg-input-text.js +0 -3
- package/dist/components/mg-input-text2.js +1 -4
- package/dist/components/mg-input-textarea.js +1 -4
- package/dist/components/mg-input-title.js +0 -3
- package/dist/components/mg-input-title2.js +0 -3
- package/dist/components/mg-input-toggle.js +1 -4
- package/dist/components/mg-input.js +0 -3
- package/dist/components/mg-input2.js +16 -6
- package/dist/components/mg-item-more.js +0 -3
- package/dist/components/mg-item-more2.js +0 -3
- package/dist/components/mg-loader.js +0 -3
- package/dist/components/mg-loader2.js +0 -3
- package/dist/components/mg-menu-item.js +0 -3
- package/dist/components/mg-menu-item2.js +0 -3
- package/dist/components/mg-menu.js +0 -3
- package/dist/components/mg-message.js +0 -3
- package/dist/components/mg-message2.js +2 -5
- package/dist/components/mg-modal.js +1 -4
- package/dist/components/mg-pagination.js +0 -3
- package/dist/components/mg-pagination2.js +0 -3
- package/dist/components/mg-panel.js +7 -5
- package/dist/components/mg-popover-content.js +0 -3
- package/dist/components/mg-popover-content2.js +1 -4
- package/dist/components/mg-popover.js +0 -3
- package/dist/components/mg-popover2.js +0 -3
- package/dist/components/mg-progress.js +0 -3
- package/dist/components/mg-skip-links.js +4 -6
- package/dist/components/mg-table.js +1 -4
- package/dist/components/mg-tabs.js +1 -4
- package/dist/components/mg-tag.js +0 -3
- package/dist/components/mg-tooltip-content.js +0 -3
- package/dist/components/mg-tooltip-content2.js +0 -3
- package/dist/components/mg-tooltip.js +0 -3
- package/dist/components/mg-tooltip2.js +0 -3
- package/dist/components/popper.js +0 -3
- package/dist/esm/events.utils-yMGqY8YG.js +0 -3
- package/dist/esm/index-Bv7NHR-W.js +0 -3
- package/dist/esm/{index-CAuxALt5.js → index-Degtjvph.js} +205 -122
- package/dist/esm/index-Dr7GYvIz.js +0 -3
- package/dist/esm/index.js +0 -3
- package/dist/esm/loader.js +3 -7
- package/dist/esm/mg-action-more_37.entry.js +141 -75
- package/dist/esm/mg-alert.entry.js +5 -8
- package/dist/esm/mg-components.js +4 -8
- package/dist/esm/mg-input-combobox.entry.js +7 -10
- package/dist/esm/mg-input-rich-text-editor.entry.js +3 -6
- package/dist/esm/mg-input.conf-CNgv8hc5.js +0 -3
- package/dist/esm/mg-loader.entry.js +1 -4
- package/dist/esm/mg-progress.entry.js +1 -4
- package/dist/mg-components/index.esm.js +0 -2
- package/dist/mg-components/mg-components.css +1 -1
- package/dist/mg-components/mg-components.esm.js +1 -2
- package/dist/mg-components/p-056ba467.entry.js +1 -0
- package/dist/mg-components/p-625c463c.entry.js +1 -0
- package/dist/mg-components/p-Bv7NHR-W.js +1 -2
- package/dist/mg-components/p-CNgv8hc5.js +1 -2
- package/dist/mg-components/p-Degtjvph.js +2 -0
- package/dist/mg-components/p-Dr7GYvIz.js +1 -2
- package/dist/mg-components/p-c522f3c1.entry.js +1 -0
- package/dist/mg-components/p-cac23bd7.entry.js +1 -0
- package/dist/mg-components/p-d13a6fdc.entry.js +1 -0
- package/dist/mg-components/p-e75f5383.entry.js +10 -0
- package/dist/mg-components/p-yMGqY8YG.js +1 -2
- package/dist/types/components/atoms/mg-card/mg-card.conf.d.ts +9 -0
- package/dist/types/components/atoms/mg-card/mg-card.d.ts +20 -0
- package/dist/types/components/molecules/inputs/mg-input/mg-input.d.ts +1 -1
- package/dist/types/components/molecules/inputs/mg-input-select/mg-input-select.d.ts +5 -4
- package/dist/types/components/molecules/mg-panel/mg-panel.d.ts +4 -0
- package/dist/types/components.d.ts +406 -3
- package/dist/types/stencil-public-runtime.d.ts +34 -6
- package/ide/intellij/web-types.json +263 -35
- package/ide/vscode/css-custom-data.json +3 -3
- package/ide/vscode/html-custom-data.json +88 -34
- package/package.json +16 -16
- package/dist/cjs/app-globals-V2Kpy_OQ.js +0 -8
- package/dist/cjs/app-globals-V2Kpy_OQ.js.map +0 -1
- package/dist/cjs/events.utils-D5SAtkpQ.js.map +0 -1
- package/dist/cjs/index-CATFkm3O.js.map +0 -1
- package/dist/cjs/index-CwjAofQ1.js.map +0 -1
- package/dist/cjs/index-DUJwxnoi.js.map +0 -1
- package/dist/cjs/index.cjs.js.map +0 -1
- package/dist/cjs/loader.cjs.js.map +0 -1
- package/dist/cjs/mg-action-more_37.cjs.entry.js.map +0 -1
- package/dist/cjs/mg-alert.cjs.entry.js.map +0 -1
- package/dist/cjs/mg-alert.entry.cjs.js.map +0 -1
- package/dist/cjs/mg-components.cjs.js.map +0 -1
- package/dist/cjs/mg-input-combobox.cjs.entry.js.map +0 -1
- package/dist/cjs/mg-input-combobox.entry.cjs.js.map +0 -1
- package/dist/cjs/mg-input-rich-text-editor.cjs.entry.js.map +0 -1
- package/dist/cjs/mg-input-rich-text-editor.entry.cjs.js.map +0 -1
- package/dist/cjs/mg-input.conf-WTsvDfpC.js.map +0 -1
- package/dist/cjs/mg-loader.cjs.entry.js.map +0 -1
- package/dist/cjs/mg-loader.entry.cjs.js.map +0 -1
- package/dist/cjs/mg-progress.cjs.entry.js.map +0 -1
- package/dist/cjs/mg-progress.entry.cjs.js.map +0 -1
- package/dist/collection/assets/icons/index.js.map +0 -1
- package/dist/collection/components/atoms/internals/mg-character-left/mg-character-left.js.map +0 -1
- package/dist/collection/components/atoms/internals/mg-input-title/mg-input-title.js.map +0 -1
- package/dist/collection/components/atoms/mg-badge/mg-badge.conf.js.map +0 -1
- package/dist/collection/components/atoms/mg-badge/mg-badge.js.map +0 -1
- package/dist/collection/components/atoms/mg-button/mg-button.conf.js.map +0 -1
- package/dist/collection/components/atoms/mg-button/mg-button.js.map +0 -1
- package/dist/collection/components/atoms/mg-card/mg-card.js.map +0 -1
- package/dist/collection/components/atoms/mg-divider/mg-divider.js.map +0 -1
- package/dist/collection/components/atoms/mg-icon/mg-icon.conf.js.map +0 -1
- package/dist/collection/components/atoms/mg-icon/mg-icon.js.map +0 -1
- package/dist/collection/components/atoms/mg-tag/mg-tag.conf.js.map +0 -1
- package/dist/collection/components/atoms/mg-tag/mg-tag.js.map +0 -1
- package/dist/collection/components/atoms/mg-tooltip/mg-tooltip-content/mg-tooltip-content.js.map +0 -1
- package/dist/collection/components/atoms/mg-tooltip/mg-tooltip.conf.js.map +0 -1
- package/dist/collection/components/atoms/mg-tooltip/mg-tooltip.js.map +0 -1
- package/dist/collection/components/molecules/inputs/mg-input/mg-input.conf.js.map +0 -1
- package/dist/collection/components/molecules/inputs/mg-input/mg-input.js.map +0 -1
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/MgInputCheckboxList.js.map +0 -1
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox-paginated/mg-input-checkbox-paginated.js.map +0 -1
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.conf.js.map +0 -1
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.js.map +0 -1
- package/dist/collection/components/molecules/inputs/mg-input-combobox/mg-input-combobox.conf.js.map +0 -1
- package/dist/collection/components/molecules/inputs/mg-input-combobox/mg-input-combobox.js.map +0 -1
- package/dist/collection/components/molecules/inputs/mg-input-date/mg-input-date.conf.js.map +0 -1
- package/dist/collection/components/molecules/inputs/mg-input-date/mg-input-date.js.map +0 -1
- package/dist/collection/components/molecules/inputs/mg-input-numeric/mg-input-numeric.conf.js.map +0 -1
- package/dist/collection/components/molecules/inputs/mg-input-numeric/mg-input-numeric.js.map +0 -1
- package/dist/collection/components/molecules/inputs/mg-input-password/mg-input-password.js.map +0 -1
- package/dist/collection/components/molecules/inputs/mg-input-radio/mg-input-radio.conf.js.map +0 -1
- package/dist/collection/components/molecules/inputs/mg-input-radio/mg-input-radio.js.map +0 -1
- package/dist/collection/components/molecules/inputs/mg-input-rich-text-editor/editor/index.js.map +0 -1
- package/dist/collection/components/molecules/inputs/mg-input-rich-text-editor/mg-input-rich-text-editor.js.map +0 -1
- package/dist/collection/components/molecules/inputs/mg-input-select/mg-input-select.conf.js.map +0 -1
- package/dist/collection/components/molecules/inputs/mg-input-select/mg-input-select.js.map +0 -1
- package/dist/collection/components/molecules/inputs/mg-input-text/mg-input-text.conf.js.map +0 -1
- package/dist/collection/components/molecules/inputs/mg-input-text/mg-input-text.js.map +0 -1
- package/dist/collection/components/molecules/inputs/mg-input-textarea/mg-input-textarea.js.map +0 -1
- package/dist/collection/components/molecules/inputs/mg-input-toggle/mg-input-toggle.conf.js.map +0 -1
- package/dist/collection/components/molecules/inputs/mg-input-toggle/mg-input-toggle.js.map +0 -1
- package/dist/collection/components/molecules/internals/mg-item-more/mg-item-more.conf.js.map +0 -1
- package/dist/collection/components/molecules/internals/mg-item-more/mg-item-more.js.map +0 -1
- package/dist/collection/components/molecules/menus/mg-menu/mg-menu.conf.js.map +0 -1
- package/dist/collection/components/molecules/menus/mg-menu/mg-menu.js.map +0 -1
- package/dist/collection/components/molecules/menus/mg-menu-item/mg-menu-item.conf.js.map +0 -1
- package/dist/collection/components/molecules/menus/mg-menu-item/mg-menu-item.js.map +0 -1
- package/dist/collection/components/molecules/mg-action-more/mg-action-more.conf.js.map +0 -1
- package/dist/collection/components/molecules/mg-action-more/mg-action-more.js.map +0 -1
- package/dist/collection/components/molecules/mg-alert/mg-alert.conf.js.map +0 -1
- package/dist/collection/components/molecules/mg-alert/mg-alert.js.map +0 -1
- package/dist/collection/components/molecules/mg-details/mg-details.js.map +0 -1
- package/dist/collection/components/molecules/mg-form/mg-form.conf.js.map +0 -1
- package/dist/collection/components/molecules/mg-form/mg-form.js.map +0 -1
- package/dist/collection/components/molecules/mg-illustrated-message/mg-illustrated-message.conf.js.map +0 -1
- package/dist/collection/components/molecules/mg-illustrated-message/mg-illustrated-message.js.map +0 -1
- package/dist/collection/components/molecules/mg-loader/mg-loader.js.map +0 -1
- package/dist/collection/components/molecules/mg-message/mg-message.conf.js.map +0 -1
- package/dist/collection/components/molecules/mg-message/mg-message.js.map +0 -1
- package/dist/collection/components/molecules/mg-modal/mg-modal.conf.js.map +0 -1
- package/dist/collection/components/molecules/mg-modal/mg-modal.js.map +0 -1
- package/dist/collection/components/molecules/mg-pagination/mg-pagination.conf.js.map +0 -1
- package/dist/collection/components/molecules/mg-pagination/mg-pagination.js.map +0 -1
- package/dist/collection/components/molecules/mg-panel/mg-panel.conf.js.map +0 -1
- package/dist/collection/components/molecules/mg-panel/mg-panel.js.map +0 -1
- package/dist/collection/components/molecules/mg-popover/mg-popover-content/mg-popover-content.js.map +0 -1
- package/dist/collection/components/molecules/mg-popover/mg-popover.js.map +0 -1
- package/dist/collection/components/molecules/mg-progress/mg-progress.conf.js.map +0 -1
- package/dist/collection/components/molecules/mg-progress/mg-progress.js.map +0 -1
- package/dist/collection/components/molecules/mg-skip-links/mg-skip-links.conf.js.map +0 -1
- package/dist/collection/components/molecules/mg-skip-links/mg-skip-links.js.map +0 -1
- package/dist/collection/components/molecules/mg-table/mg-table.conf.js.map +0 -1
- package/dist/collection/components/molecules/mg-table/mg-table.js.map +0 -1
- package/dist/collection/components/molecules/mg-tabs/mg-tabs.conf.js.map +0 -1
- package/dist/collection/components/molecules/mg-tabs/mg-tabs.js.map +0 -1
- package/dist/collection/index.js.map +0 -1
- package/dist/collection/locales/index.conf.js.map +0 -1
- package/dist/collection/locales/index.js.map +0 -1
- package/dist/collection/types/index.js.map +0 -1
- package/dist/collection/utils/behaviors.utils.js.map +0 -1
- package/dist/collection/utils/events.utils.js.map +0 -1
- package/dist/collection/utils/playwright.fixture.js.map +0 -1
- package/dist/collection/utils/unit.test.utils.js.map +0 -1
- package/dist/components/events.utils.js.map +0 -1
- package/dist/components/index.js.map +0 -1
- package/dist/components/index2.js.map +0 -1
- package/dist/components/index3.js.map +0 -1
- package/dist/components/mg-action-more.js.map +0 -1
- package/dist/components/mg-alert.js.map +0 -1
- package/dist/components/mg-badge.js.map +0 -1
- package/dist/components/mg-badge2.js.map +0 -1
- package/dist/components/mg-button.js.map +0 -1
- package/dist/components/mg-button2.js.map +0 -1
- package/dist/components/mg-card.js.map +0 -1
- package/dist/components/mg-card2.js.map +0 -1
- package/dist/components/mg-character-left.js.map +0 -1
- package/dist/components/mg-character-left2.js.map +0 -1
- package/dist/components/mg-details.js.map +0 -1
- package/dist/components/mg-divider.js.map +0 -1
- package/dist/components/mg-divider2.js.map +0 -1
- package/dist/components/mg-form.js.map +0 -1
- package/dist/components/mg-icon.js.map +0 -1
- package/dist/components/mg-icon2.js.map +0 -1
- package/dist/components/mg-illustrated-message.js.map +0 -1
- package/dist/components/mg-input-checkbox-paginated.js.map +0 -1
- package/dist/components/mg-input-checkbox-paginated2.js.map +0 -1
- package/dist/components/mg-input-checkbox.js.map +0 -1
- package/dist/components/mg-input-combobox.js.map +0 -1
- package/dist/components/mg-input-date.js.map +0 -1
- package/dist/components/mg-input-numeric.js.map +0 -1
- package/dist/components/mg-input-password.js.map +0 -1
- package/dist/components/mg-input-radio.js.map +0 -1
- package/dist/components/mg-input-rich-text-editor.js.map +0 -1
- package/dist/components/mg-input-select.js.map +0 -1
- package/dist/components/mg-input-select2.js.map +0 -1
- package/dist/components/mg-input-text.js.map +0 -1
- package/dist/components/mg-input-text2.js.map +0 -1
- package/dist/components/mg-input-textarea.js.map +0 -1
- package/dist/components/mg-input-title.js.map +0 -1
- package/dist/components/mg-input-title2.js.map +0 -1
- package/dist/components/mg-input-toggle.js.map +0 -1
- package/dist/components/mg-input.js.map +0 -1
- package/dist/components/mg-input2.js.map +0 -1
- package/dist/components/mg-item-more.js.map +0 -1
- package/dist/components/mg-item-more2.js.map +0 -1
- package/dist/components/mg-loader.js.map +0 -1
- package/dist/components/mg-loader2.js.map +0 -1
- package/dist/components/mg-menu-item.js.map +0 -1
- package/dist/components/mg-menu-item2.js.map +0 -1
- package/dist/components/mg-menu.js.map +0 -1
- package/dist/components/mg-message.js.map +0 -1
- package/dist/components/mg-message2.js.map +0 -1
- package/dist/components/mg-modal.js.map +0 -1
- package/dist/components/mg-pagination.js.map +0 -1
- package/dist/components/mg-pagination2.js.map +0 -1
- package/dist/components/mg-panel.js.map +0 -1
- package/dist/components/mg-popover-content.js.map +0 -1
- package/dist/components/mg-popover-content2.js.map +0 -1
- package/dist/components/mg-popover.js.map +0 -1
- package/dist/components/mg-popover2.js.map +0 -1
- package/dist/components/mg-progress.js.map +0 -1
- package/dist/components/mg-skip-links.js.map +0 -1
- package/dist/components/mg-table.js.map +0 -1
- package/dist/components/mg-tabs.js.map +0 -1
- package/dist/components/mg-tag.js.map +0 -1
- package/dist/components/mg-tooltip-content.js.map +0 -1
- package/dist/components/mg-tooltip-content2.js.map +0 -1
- package/dist/components/mg-tooltip.js.map +0 -1
- package/dist/components/mg-tooltip2.js.map +0 -1
- package/dist/components/popper.js.map +0 -1
- package/dist/esm/app-globals-DQuL1Twl.js +0 -6
- package/dist/esm/app-globals-DQuL1Twl.js.map +0 -1
- package/dist/esm/events.utils-yMGqY8YG.js.map +0 -1
- package/dist/esm/index-Bv7NHR-W.js.map +0 -1
- package/dist/esm/index-CAuxALt5.js.map +0 -1
- package/dist/esm/index-Dr7GYvIz.js.map +0 -1
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/loader.js.map +0 -1
- package/dist/esm/mg-action-more_37.entry.js.map +0 -1
- package/dist/esm/mg-alert.entry.js.map +0 -1
- package/dist/esm/mg-components.js.map +0 -1
- package/dist/esm/mg-input-combobox.entry.js.map +0 -1
- package/dist/esm/mg-input-rich-text-editor.entry.js.map +0 -1
- package/dist/esm/mg-input.conf-CNgv8hc5.js.map +0 -1
- package/dist/esm/mg-loader.entry.js.map +0 -1
- package/dist/esm/mg-progress.entry.js.map +0 -1
- package/dist/mg-components/index.esm.js.map +0 -1
- package/dist/mg-components/loader.esm.js.map +0 -1
- package/dist/mg-components/mg-alert.entry.esm.js.map +0 -1
- package/dist/mg-components/mg-components.esm.js.map +0 -1
- package/dist/mg-components/mg-input-combobox.entry.esm.js.map +0 -1
- package/dist/mg-components/mg-input-rich-text-editor.entry.esm.js.map +0 -1
- package/dist/mg-components/mg-loader.entry.esm.js.map +0 -1
- package/dist/mg-components/mg-progress.entry.esm.js.map +0 -1
- package/dist/mg-components/p-19cbc6e6.entry.js +0 -11
- package/dist/mg-components/p-19cbc6e6.entry.js.map +0 -1
- package/dist/mg-components/p-269e2a80.entry.js +0 -2
- package/dist/mg-components/p-269e2a80.entry.js.map +0 -1
- package/dist/mg-components/p-2dea7d37.entry.js +0 -2
- package/dist/mg-components/p-2dea7d37.entry.js.map +0 -1
- package/dist/mg-components/p-415f14fb.entry.js +0 -2
- package/dist/mg-components/p-415f14fb.entry.js.map +0 -1
- package/dist/mg-components/p-Bv7NHR-W.js.map +0 -1
- package/dist/mg-components/p-CAuxALt5.js +0 -3
- package/dist/mg-components/p-CAuxALt5.js.map +0 -1
- package/dist/mg-components/p-CNgv8hc5.js.map +0 -1
- package/dist/mg-components/p-DQuL1Twl.js +0 -2
- package/dist/mg-components/p-DQuL1Twl.js.map +0 -1
- package/dist/mg-components/p-Dr7GYvIz.js.map +0 -1
- package/dist/mg-components/p-fe974d2b.entry.js +0 -2
- package/dist/mg-components/p-fe974d2b.entry.js.map +0 -1
- package/dist/mg-components/p-fea46548.entry.js +0 -2
- package/dist/mg-components/p-fea46548.entry.js.map +0 -1
- package/dist/mg-components/p-yMGqY8YG.js.map +0 -1
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import{r as t,c as e,h as n,a as r}from"./p-Degtjvph.js";import{c as i,C as o,t as s}from"./p-Dr7GYvIz.js";import{c as l,a as u}from"./p-CNgv8hc5.js";import{i as a}from"./p-Bv7NHR-W.js";var c="object"==typeof global&&global&&global.Object===Object&&global,h="object"==typeof self&&self&&self.Object===Object&&self,f=c||h||Function("return this")(),d=f.Symbol,p=Object.prototype,v=p.hasOwnProperty,b=p.toString,q=d?d.toStringTag:void 0,m=Object.prototype.toString,g=d?d.toStringTag:void 0;function w(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":g&&g in Object(t)?function(t){var e=v.call(t,q),n=t[q];try{t[q]=void 0;var r=!0}catch(t){}var i=b.call(t);return r&&(e?t[q]=n:delete t[q]),i}(t):function(t){return m.call(t)}(t)}function y(t){return null!=t&&"object"==typeof t}function k(t){return"symbol"==typeof t||y(t)&&"[object Symbol]"==w(t)}function x(t){return"number"==typeof t?t:k(t)?NaN:+t}function j(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}var A=Array.isArray,O=d?d.prototype:void 0,M=O?O.toString:void 0;function E(t){if("string"==typeof t)return t;if(A(t))return j(t,E)+"";if(k(t))return M?M.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function _(t,e){return function(n,r){var i;if(void 0===n&&void 0===r)return e;if(void 0!==n&&(i=n),void 0!==r){if(void 0===i)return r;"string"==typeof n||"string"==typeof r?(n=E(n),r=E(r)):(n=x(n),r=x(r)),i=t(n,r)}return i}}var T=_((function(t,e){return t+e}),0),N=/\s/;function L(t){for(var e=t.length;e--&&N.test(t.charAt(e)););return e}var z=/^\s+/;function S(t){return t?t.slice(0,L(t)+1).replace(z,""):t}function $(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}var R=/^[-+]0x[0-9a-f]+$/i,C=/^0b[01]+$/i,B=/^0o[0-7]+$/i,I=parseInt;function D(t){if("number"==typeof t)return t;if(k(t))return NaN;if($(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=$(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=S(t);var n=C.test(t);return n||B.test(t)?I(t.slice(2),n?2:8):R.test(t)?NaN:+t}var H=1/0;function V(t){return t?(t=D(t))===H||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function P(t){var e=V(t),n=e%1;return e==e?n?e-n:e:0}function F(t){return t}function U(t){if(!$(t))return!1;var e=w(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}var W,Z=f["__core-js_shared__"],K=(W=/[^.]+$/.exec(Z&&Z.keys&&Z.keys.IE_PROTO||""))?"Symbol(src)_1."+W:"",G=Function.prototype.toString;function Q(t){if(null!=t){try{return G.call(t)}catch(t){}try{return t+""}catch(t){}}return""}var Y=/^\[object .+?Constructor\]$/,J=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function X(t){return!(!$(t)||function(t){return!!K&&K in t}(t))&&(U(t)?J:Y).test(Q(t))}function tt(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return X(n)?n:void 0}var et=tt(f,"WeakMap"),nt=et&&new et,rt=nt?function(t,e){return nt.set(t,e),t}:F,it=Object.create,ot=function(){function t(){}return function(e){if(!$(e))return{};if(it)return it(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();function st(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var n=ot(t.prototype),r=t.apply(n,e);return $(r)?r:n}}function lt(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}var ut=Math.max;function at(t,e,n,r){for(var i=-1,o=t.length,s=n.length,l=-1,u=e.length,a=ut(o-s,0),c=Array(u+a),h=!r;++l<u;)c[l]=e[l];for(;++i<s;)(h||i<o)&&(c[n[i]]=t[i]);for(;a--;)c[l++]=t[i++];return c}var ct=Math.max;function ht(t,e,n,r){for(var i=-1,o=t.length,s=-1,l=n.length,u=-1,a=e.length,c=ct(o-l,0),h=Array(c+a),f=!r;++i<c;)h[i]=t[i];for(var d=i;++u<a;)h[d+u]=e[u];for(;++s<l;)(f||i<o)&&(h[d+n[s]]=t[i++]);return h}function ft(){}function dt(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function pt(){}(dt.prototype=ot(ft.prototype)).constructor=dt;var vt=nt?function(t){return nt.get(t)}:pt,bt={},qt=Object.prototype.hasOwnProperty;function mt(t){for(var e=t.name+"",n=bt[e],r=qt.call(bt,e)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==t)return i.name}return e}function gt(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=void 0}function wt(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}function yt(t){if(t instanceof dt)return t.clone();var e=new gt(t.__wrapped__,t.__chain__);return e.__actions__=wt(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}(gt.prototype=ot(ft.prototype)).constructor=gt;var kt=Object.prototype.hasOwnProperty;function xt(t){if(y(t)&&!A(t)&&!(t instanceof dt)){if(t instanceof gt)return t;if(kt.call(t,"__wrapped__"))return yt(t)}return new gt(t)}function jt(t){var e=mt(t),n=xt[e];if("function"!=typeof n||!(e in dt.prototype))return!1;if(t===n)return!0;var r=vt(n);return!!r&&t===r[0]}(xt.prototype=ft.prototype).constructor=xt;var At=Date.now;function Ot(t){var e=0,n=0;return function(){var r=At(),i=16-(r-n);if(n=r,i>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var Mt=Ot(rt),Et=/\{\n\/\* \[wrapped with (.+)\] \*/,_t=/,? & /,Tt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function Nt(t){return function(){return t}}var Lt=function(){try{var t=tt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),zt=Lt?function(t,e){return Lt(t,"toString",{configurable:!0,enumerable:!1,value:Nt(e),writable:!0})}:F,St=Ot(zt);function $t(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}function Rt(t,e,n,r){for(var i=t.length,o=n+(r?1:-1);r?o--:++o<i;)if(e(t[o],o,t))return o;return-1}function Ct(t){return t!=t}function Bt(t,e,n){return e==e?function(t,e,n){for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1}(t,e,n):Rt(t,Ct,n)}function It(t,e){return!(null==t||!t.length)&&Bt(t,e,0)>-1}var Dt=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];function Ht(t,e,n){var r=e+"";return St(t,function(t,e){var n=e.length;if(!n)return t;var r=n-1;return e[r]=(n>1?"& ":"")+e[r],e=e.join(n>2?", ":" "),t.replace(Tt,"{\n/* [wrapped with "+e+"] */\n")}(r,function(t,e){return $t(Dt,(function(n){var r="_."+n[0];e&n[1]&&!It(t,r)&&t.push(r)})),t.sort()}(function(t){var e=t.match(Et);return e?e[1].split(_t):[]}(r),n)))}function Vt(t,e,n,r,i,o,s,l,u,a){var c=8&e;e|=c?32:64,4&(e&=~(c?64:32))||(e&=-4);var h=[t,e,i,c?o:void 0,c?s:void 0,c?void 0:o,c?void 0:s,l,u,a],f=n.apply(void 0,h);return jt(t)&&Mt(f,h),f.placeholder=r,Ht(f,t,e)}function Pt(t){return t.placeholder}var Ft=/^(?:0|[1-9]\d*)$/;function Ut(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&Ft.test(t))&&t>-1&&t%1==0&&t<e}var Wt=Math.min,Zt="__lodash_placeholder__";function Kt(t,e){for(var n=-1,r=t.length,i=0,o=[];++n<r;){var s=t[n];s!==e&&s!==Zt||(t[n]=Zt,o[i++]=n)}return o}function Gt(t,e,n,r,i,o,s,l,u,a){var c=128&e,h=1&e,d=2&e,p=24&e,v=512&e,b=d?void 0:st(t);return function q(){for(var m=arguments.length,g=Array(m),w=m;w--;)g[w]=arguments[w];if(p)var y=Pt(q),k=function(t,e){for(var n=t.length,r=0;n--;)t[n]===e&&++r;return r}(g,y);if(r&&(g=at(g,r,i,p)),o&&(g=ht(g,o,s,p)),m-=k,p&&m<a){var x=Kt(g,y);return Vt(t,e,Gt,q.placeholder,n,g,x,l,u,a-m)}var j=h?n:this,A=d?j[t]:t;return m=g.length,l?g=function(t,e){for(var n=t.length,r=Wt(e.length,n),i=wt(t);r--;){var o=e[r];t[r]=Ut(o,n)?i[o]:void 0}return t}(g,l):v&&m>1&&g.reverse(),c&&u<m&&(g.length=u),this&&this!==f&&this instanceof q&&(A=b||st(A)),A.apply(j,g)}}var Qt="__lodash_placeholder__",Yt=Math.min,Jt=Math.max;function Xt(t,e,n,r,i,o,s,l){var u=2&e;if(!u&&"function"!=typeof t)throw new TypeError("Expected a function");var a=r?r.length:0;if(a||(e&=-97,r=i=void 0),s=void 0===s?s:Jt(P(s),0),l=void 0===l?l:P(l),a-=i?i.length:0,64&e){var c=r,h=i;r=i=void 0}var d=u?void 0:vt(t),p=[t,e,n,r,i,c,h,o,s,l];if(d&&function(t,e){var n=t[1],r=e[1],i=n|r;if(!(i<131||128==r&&8==n||128==r&&256==n&&t[7].length<=e[8]||384==r&&e[7].length<=e[8]&&8==n))return t;1&r&&(t[2]=e[2],i|=1&n?0:4);var o=e[3];if(o){var s=t[3];t[3]=s?at(s,o,e[4]):o,t[4]=s?Kt(t[3],Qt):e[4]}(o=e[5])&&(t[5]=(s=t[5])?ht(s,o,e[6]):o,t[6]=s?Kt(t[5],Qt):e[6]),(o=e[7])&&(t[7]=o),128&r&&(t[8]=null==t[8]?e[8]:Yt(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=i}(p,d),t=p[0],e=p[1],n=p[2],r=p[3],i=p[4],!(l=p[9]=void 0===p[9]?u?0:t.length:Jt(p[9]-a,0))&&24&e&&(e&=-25),e&&1!=e)v=8==e||16==e?function(t,e,n){var r=st(t);return function i(){for(var o=arguments.length,s=Array(o),l=o,u=Pt(i);l--;)s[l]=arguments[l];var a=o<3&&s[0]!==u&&s[o-1]!==u?[]:Kt(s,u);return(o-=a.length)<n?Vt(t,e,Gt,i.placeholder,void 0,s,a,void 0,void 0,n-o):lt(this&&this!==f&&this instanceof i?r:t,this,s)}}(t,e,l):32!=e&&33!=e||i.length?Gt.apply(void 0,p):function(t,e,n,r){var i=1&e,o=st(t);return function e(){for(var s=-1,l=arguments.length,u=-1,a=r.length,c=Array(a+l),h=this&&this!==f&&this instanceof e?o:t;++u<a;)c[u]=r[u];for(;l--;)c[u++]=arguments[++s];return lt(h,i?n:this,c)}}(t,e,n,r);else var v=function(t,e,n){var r=1&e,i=st(t);return function e(){return(this&&this!==f&&this instanceof e?i:t).apply(r?n:this,arguments)}}(t,e,n);return Ht((d?rt:Mt)(v,p),t,e)}function te(t,e,n){return e=n?void 0:e,Xt(t,128,void 0,void 0,void 0,void 0,e=t&&null==e?t.length:e)}function ee(t,e,n){"__proto__"==e&&Lt?Lt(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function ne(t,e){return t===e||t!=t&&e!=e}var re=Object.prototype.hasOwnProperty;function ie(t,e,n){var r=t[e];re.call(t,e)&&ne(r,n)&&(void 0!==n||e in t)||ee(t,e,n)}function oe(t,e,n,r){var i=!n;n||(n={});for(var o=-1,s=e.length;++o<s;){var l=e[o],u=r?r(n[l],t[l],l,n,t):void 0;void 0===u&&(u=t[l]),i?ee(n,l,u):ie(n,l,u)}return n}var se=Math.max;function le(t,e,n){return e=se(void 0===e?t.length-1:e,0),function(){for(var r=arguments,i=-1,o=se(r.length-e,0),s=Array(o);++i<o;)s[i]=r[e+i];i=-1;for(var l=Array(e+1);++i<e;)l[i]=r[i];return l[e]=n(s),lt(t,this,l)}}function ue(t,e){return St(le(t,e,F),t+"")}function ae(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}function ce(t){return null!=t&&ae(t.length)&&!U(t)}function he(t,e,n){if(!$(n))return!1;var r=typeof e;return!!("number"==r?ce(n)&&Ut(e,n.length):"string"==r&&e in n)&&ne(n[e],t)}function fe(t){return ue((function(e,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,s=i>2?n[2]:void 0;for(o=t.length>3&&"function"==typeof o?(i--,o):void 0,s&&he(n[0],n[1],s)&&(o=i<3?void 0:o,i=1),e=Object(e);++r<i;){var l=n[r];l&&t(e,l,r,o)}return e}))}var de=Object.prototype;function pe(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||de)}function ve(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}function be(t){return y(t)&&"[object Arguments]"==w(t)}var qe=Object.prototype,me=qe.hasOwnProperty,ge=qe.propertyIsEnumerable,we=be(function(){return arguments}())?be:function(t){return y(t)&&me.call(t,"callee")&&!ge.call(t,"callee")};function ye(){return!1}var ke="object"==typeof exports&&exports&&!exports.nodeType&&exports,xe=ke&&"object"==typeof module&&module&&!module.nodeType&&module,je=xe&&xe.exports===ke?f.Buffer:void 0,Ae=(je?je.isBuffer:void 0)||ye,Oe={};function Me(t){return function(e){return t(e)}}Oe["[object Float32Array]"]=Oe["[object Float64Array]"]=Oe["[object Int8Array]"]=Oe["[object Int16Array]"]=Oe["[object Int32Array]"]=Oe["[object Uint8Array]"]=Oe["[object Uint8ClampedArray]"]=Oe["[object Uint16Array]"]=Oe["[object Uint32Array]"]=!0,Oe["[object Arguments]"]=Oe["[object Array]"]=Oe["[object ArrayBuffer]"]=Oe["[object Boolean]"]=Oe["[object DataView]"]=Oe["[object Date]"]=Oe["[object Error]"]=Oe["[object Function]"]=Oe["[object Map]"]=Oe["[object Number]"]=Oe["[object Object]"]=Oe["[object RegExp]"]=Oe["[object Set]"]=Oe["[object String]"]=Oe["[object WeakMap]"]=!1;var Ee="object"==typeof exports&&exports&&!exports.nodeType&&exports,_e=Ee&&"object"==typeof module&&module&&!module.nodeType&&module,Te=_e&&_e.exports===Ee&&c.process,Ne=function(){try{return _e&&_e.require&&_e.require("util").types||Te&&Te.binding&&Te.binding("util")}catch(t){}}(),Le=Ne&&Ne.isTypedArray,ze=Le?Me(Le):function(t){return y(t)&&ae(t.length)&&!!Oe[w(t)]},Se=Object.prototype.hasOwnProperty;function $e(t,e){var n=A(t),r=!n&&we(t),i=!n&&!r&&Ae(t),o=!n&&!r&&!i&&ze(t),s=n||r||i||o,l=s?ve(t.length,String):[],u=l.length;for(var a in t)!e&&!Se.call(t,a)||s&&("length"==a||i&&("offset"==a||"parent"==a)||o&&("buffer"==a||"byteLength"==a||"byteOffset"==a)||Ut(a,u))||l.push(a);return l}function Re(t,e){return function(n){return t(e(n))}}var Ce=Re(Object.keys,Object),Be=Object.prototype.hasOwnProperty;function Ie(t){if(!pe(t))return Ce(t);var e=[];for(var n in Object(t))Be.call(t,n)&&"constructor"!=n&&e.push(n);return e}function De(t){return ce(t)?$e(t):Ie(t)}var He=Object.prototype.hasOwnProperty,Ve=fe((function(t,e){if(pe(e)||ce(e))oe(e,De(e),t);else for(var n in e)He.call(e,n)&&ie(t,n,e[n])})),Pe=Object.prototype.hasOwnProperty;function Fe(t){return ce(t)?$e(t,!0):function(t){if(!$(t))return function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}(t);var e=pe(t),n=[];for(var r in t)("constructor"!=r||!e&&Pe.call(t,r))&&n.push(r);return n}(t)}var Ue=fe((function(t,e){oe(e,Fe(e),t)})),We=fe((function(t,e,n,r){oe(e,Fe(e),t,r)})),Ze=fe((function(t,e,n,r){oe(e,De(e),t,r)})),Ke=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ge=/^\w*$/;function Qe(t,e){if(A(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!k(t))||Ge.test(t)||!Ke.test(t)||null!=e&&t in Object(e)}var Ye=tt(Object,"create"),Je=Object.prototype.hasOwnProperty,Xe=Object.prototype.hasOwnProperty;function tn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function en(t,e){for(var n=t.length;n--;)if(ne(t[n][0],e))return n;return-1}tn.prototype.clear=function(){this.__data__=Ye?Ye(null):{},this.size=0},tn.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},tn.prototype.get=function(t){var e=this.__data__;if(Ye){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return Je.call(e,t)?e[t]:void 0},tn.prototype.has=function(t){var e=this.__data__;return Ye?void 0!==e[t]:Xe.call(e,t)},tn.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Ye&&void 0===e?"__lodash_hash_undefined__":e,this};var nn=Array.prototype.splice;function rn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}rn.prototype.clear=function(){this.__data__=[],this.size=0},rn.prototype.delete=function(t){var e=this.__data__,n=en(e,t);return!(n<0||(n==e.length-1?e.pop():nn.call(e,n,1),--this.size,0))},rn.prototype.get=function(t){var e=this.__data__,n=en(e,t);return n<0?void 0:e[n][1]},rn.prototype.has=function(t){return en(this.__data__,t)>-1},rn.prototype.set=function(t,e){var n=this.__data__,r=en(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};var on=tt(f,"Map");function sn(t,e){var n,r,i=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof e?"string":"hash"]:i.map}function ln(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function un(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var s=t.apply(this,r);return n.cache=o.set(i,s)||o,s};return n.cache=new(un.Cache||ln),n}ln.prototype.clear=function(){this.size=0,this.__data__={hash:new tn,map:new(on||rn),string:new tn}},ln.prototype.delete=function(t){var e=sn(this,t).delete(t);return this.size-=e?1:0,e},ln.prototype.get=function(t){return sn(this,t).get(t)},ln.prototype.has=function(t){return sn(this,t).has(t)},ln.prototype.set=function(t,e){var n=sn(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this},un.Cache=ln;var an,cn,hn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,fn=/\\(\\)?/g,dn=(an=un((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(hn,(function(t,n,r,i){e.push(r?i.replace(fn,"$1"):n||t)})),e}),(function(t){return 500===cn.size&&cn.clear(),t})),cn=an.cache,an);function pn(t){return null==t?"":E(t)}function vn(t,e){return A(t)?t:Qe(t,e)?[t]:dn(pn(t))}function bn(t){if("string"==typeof t||k(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function qn(t,e){for(var n=0,r=(e=vn(e,t)).length;null!=t&&n<r;)t=t[bn(e[n++])];return n&&n==r?t:void 0}function mn(t,e,n){var r=null==t?void 0:qn(t,e);return void 0===r?n:r}function gn(t,e){for(var n=-1,r=e.length,i=Array(r),o=null==t;++n<r;)i[n]=o?void 0:mn(t,e[n]);return i}function wn(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}var yn=d?d.isConcatSpreadable:void 0;function kn(t){return A(t)||we(t)||!!(yn&&t&&t[yn])}function xn(t,e,n,r,i){var o=-1,s=t.length;for(n||(n=kn),i||(i=[]);++o<s;){var l=t[o];e>0&&n(l)?e>1?xn(l,e-1,n,r,i):wn(i,l):r||(i[i.length]=l)}return i}function jn(t){return null!=t&&t.length?xn(t,1):[]}function An(t){return St(le(t,void 0,jn),t+"")}var On=An(gn),Mn=Re(Object.getPrototypeOf,Object),En=Function.prototype.toString,_n=Object.prototype.hasOwnProperty,Tn=En.call(Object);function Nn(t){if(!y(t)||"[object Object]"!=w(t))return!1;var e=Mn(t);if(null===e)return!0;var n=_n.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&En.call(n)==Tn}function Ln(t){if(!y(t))return!1;var e=w(t);return"[object Error]"==e||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!Nn(t)}var zn=ue((function(t,e){try{return lt(t,void 0,e)}catch(t){return Ln(t)?t:new Error(t)}}));function Sn(t,e){var n;if("function"!=typeof e)throw new TypeError("Expected a function");return t=P(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=void 0),n}}var $n=ue((function(t,e,n){var r=1;if(n.length){var i=Kt(n,Pt($n));r|=32}return Xt(t,r,e,n,i)}));$n.placeholder={};var Rn=An((function(t,e){return $t(e,(function(e){e=bn(e),ee(t,e,$n(t[e],t))})),t})),Cn=ue((function(t,e,n){var r=3;if(n.length){var i=Kt(n,Pt(Cn));r|=32}return Xt(e,r,t,n,i)}));function Bn(t,e,n){var r=-1,i=t.length;e<0&&(e=-e>i?0:i+e),(n=n>i?i:n)<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var o=Array(i);++r<i;)o[r]=t[r+e];return o}function In(t,e,n){var r=t.length;return n=void 0===n?r:n,!e&&n>=r?t:Bn(t,e,n)}Cn.placeholder={};var Dn=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");function Hn(t){return Dn.test(t)}var Vn="\\ud800-\\udfff",Pn="["+Vn+"]",Fn="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Un="\\ud83c[\\udffb-\\udfff]",Wn="[^"+Vn+"]",Zn="(?:\\ud83c[\\udde6-\\uddff]){2}",Kn="[\\ud800-\\udbff][\\udc00-\\udfff]",Gn="(?:"+Fn+"|"+Un+")?",Qn="[\\ufe0e\\ufe0f]?",Yn=Qn+Gn+"(?:\\u200d(?:"+[Wn,Zn,Kn].join("|")+")"+Qn+Gn+")*",Jn="(?:"+[Wn+Fn+"?",Fn,Zn,Kn,Pn].join("|")+")",Xn=RegExp(Un+"(?="+Un+")|"+Jn+Yn,"g");function tr(t){return Hn(t)?function(t){return t.match(Xn)||[]}(t):function(t){return t.split("")}(t)}function er(t){return function(e){var n=Hn(e=pn(e))?tr(e):void 0,r=n?n[0]:e.charAt(0),i=n?In(n,1).join(""):e.slice(1);return r[t]()+i}}var nr=er("toUpperCase");function rr(t){return nr(pn(t).toLowerCase())}function ir(t,e,n,r){var i=-1,o=null==t?0:t.length;for(r&&o&&(n=t[++i]);++i<o;)n=e(n,t[i],i,t);return n}function or(t){return function(e){return null==t?void 0:t[e]}}var sr=or({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),lr=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ur=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");function ar(t){return(t=pn(t))&&t.replace(lr,sr).replace(ur,"")}var cr=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,hr=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,fr="\\ud800-\\udfff",dr="\\u2700-\\u27bf",pr="a-z\\xdf-\\xf6\\xf8-\\xff",vr="A-Z\\xc0-\\xd6\\xd8-\\xde",br="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",qr="["+br+"]",mr="\\d+",gr="["+dr+"]",wr="["+pr+"]",yr="[^"+fr+br+mr+dr+pr+vr+"]",kr="(?:\\ud83c[\\udde6-\\uddff]){2}",xr="[\\ud800-\\udbff][\\udc00-\\udfff]",jr="["+vr+"]",Ar="(?:"+wr+"|"+yr+")",Or="(?:"+jr+"|"+yr+")",Mr="(?:['’](?:d|ll|m|re|s|t|ve))?",Er="(?:['’](?:D|LL|M|RE|S|T|VE))?",_r="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",Tr="[\\ufe0e\\ufe0f]?",Nr=Tr+_r+"(?:\\u200d(?:"+["[^"+fr+"]",kr,xr].join("|")+")"+Tr+_r+")*",Lr="(?:"+[gr,kr,xr].join("|")+")"+Nr,zr=RegExp([jr+"?"+wr+"+"+Mr+"(?="+[qr,jr,"$"].join("|")+")",Or+"+"+Er+"(?="+[qr,jr+Ar,"$"].join("|")+")",jr+"?"+Ar+"+"+Mr,jr+"+"+Er,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",mr,Lr].join("|"),"g");function Sr(t,e,n){return t=pn(t),void 0===(e=n?void 0:e)?function(t){return hr.test(t)}(t)?function(t){return t.match(zr)||[]}(t):function(t){return t.match(cr)||[]}(t):t.match(e)||[]}var $r=RegExp("['’]","g");function Rr(t){return function(e){return ir(Sr(ar(e).replace($r,"")),t,"")}}var Cr=Rr((function(t,e,n){return e=e.toLowerCase(),t+(n?rr(e):e)})),Br=f.isFinite,Ir=Math.min;function Dr(t){var e=Math[t];return function(t,n){if(t=D(t),(n=null==n?0:Ir(P(n),292))&&Br(t)){var r=(pn(t)+"e").split("e");return+((r=(pn(e(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return e(t)}}var Hr=Dr("ceil");function Vr(t){var e=xt(t);return e.__chain__=!0,e}var Pr=Math.ceil,Fr=Math.max;function Ur(t,e,n){return t==t&&(void 0!==n&&(t=t<=n?t:n),void 0!==e&&(t=t>=e?t:e)),t}function Wr(t){var e=this.__data__=new rn(t);this.size=e.size}function Zr(t,e){return t&&oe(e,De(e),t)}Wr.prototype.clear=function(){this.__data__=new rn,this.size=0},Wr.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},Wr.prototype.get=function(t){return this.__data__.get(t)},Wr.prototype.has=function(t){return this.__data__.has(t)},Wr.prototype.set=function(t,e){var n=this.__data__;if(n instanceof rn){var r=n.__data__;if(!on||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new ln(r)}return n.set(t,e),this.size=n.size,this};var Kr="object"==typeof exports&&exports&&!exports.nodeType&&exports,Gr=Kr&&"object"==typeof module&&module&&!module.nodeType&&module,Qr=Gr&&Gr.exports===Kr?f.Buffer:void 0,Yr=Qr?Qr.allocUnsafe:void 0;function Jr(t,e){if(e)return t.slice();var n=t.length,r=Yr?Yr(n):new t.constructor(n);return t.copy(r),r}function Xr(t,e){for(var n=-1,r=null==t?0:t.length,i=0,o=[];++n<r;){var s=t[n];e(s,n,t)&&(o[i++]=s)}return o}function ti(){return[]}var ei=Object.prototype.propertyIsEnumerable,ni=Object.getOwnPropertySymbols,ri=ni?function(t){return null==t?[]:(t=Object(t),Xr(ni(t),(function(e){return ei.call(t,e)})))}:ti,ii=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)wn(e,ri(t)),t=Mn(t);return e}:ti;function oi(t,e,n){var r=e(t);return A(t)?r:wn(r,n(t))}function si(t){return oi(t,De,ri)}function li(t){return oi(t,Fe,ii)}var ui=tt(f,"DataView"),ai=tt(f,"Promise"),ci=tt(f,"Set"),hi="[object Map]",fi="[object Promise]",di="[object Set]",pi="[object WeakMap]",vi="[object DataView]",bi=Q(ui),qi=Q(on),mi=Q(ai),gi=Q(ci),wi=Q(et),yi=w;(ui&&yi(new ui(new ArrayBuffer(1)))!=vi||on&&yi(new on)!=hi||ai&&yi(ai.resolve())!=fi||ci&&yi(new ci)!=di||et&&yi(new et)!=pi)&&(yi=function(t){var e=w(t),n="[object Object]"==e?t.constructor:void 0,r=n?Q(n):"";if(r)switch(r){case bi:return vi;case qi:return hi;case mi:return fi;case gi:return di;case wi:return pi}return e});var ki=yi,xi=Object.prototype.hasOwnProperty,ji=f.Uint8Array;function Ai(t){var e=new t.constructor(t.byteLength);return new ji(e).set(new ji(t)),e}var Oi=/\w*$/,Mi=d?d.prototype:void 0,Ei=Mi?Mi.valueOf:void 0;function _i(t,e){var n=e?Ai(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function Ti(t){return"function"!=typeof t.constructor||pe(t)?{}:ot(Mn(t))}var Ni=Ne&&Ne.isMap,Li=Ni?Me(Ni):function(t){return y(t)&&"[object Map]"==ki(t)},zi=Ne&&Ne.isSet,Si=zi?Me(zi):function(t){return y(t)&&"[object Set]"==ki(t)},$i="[object Arguments]",Ri="[object Function]",Ci="[object Object]",Bi={};function Ii(t,e,n,r,i,o){var s,l=1&e,u=2&e,a=4&e;if(n&&(s=i?n(t,r,i,o):n(t)),void 0!==s)return s;if(!$(t))return t;var c=A(t);if(c){if(s=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&xi.call(t,"index")&&(n.index=t.index,n.input=t.input),n}(t),!l)return wt(t,s)}else{var h=ki(t),f=h==Ri||"[object GeneratorFunction]"==h;if(Ae(t))return Jr(t,l);if(h==Ci||h==$i||f&&!i){if(s=u||f?{}:Ti(t),!l)return u?function(t,e){return oe(t,ii(t),e)}(t,function(t,e){return t&&oe(e,Fe(e),t)}(s,t)):function(t,e){return oe(t,ri(t),e)}(t,Zr(s,t))}else{if(!Bi[h])return i?t:{};s=function(t,e,n){var r=t.constructor;switch(e){case"[object ArrayBuffer]":return Ai(t);case"[object Boolean]":case"[object Date]":return new r(+t);case"[object DataView]":return function(t,e){var n=e?Ai(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return _i(t,n);case"[object Map]":case"[object Set]":return new r;case"[object Number]":case"[object String]":return new r(t);case"[object RegExp]":return function(t){var e=new t.constructor(t.source,Oi.exec(t));return e.lastIndex=t.lastIndex,e}(t);case"[object Symbol]":return Ei?Object(Ei.call(t)):{}}}(t,h,l)}}o||(o=new Wr);var d=o.get(t);if(d)return d;o.set(t,s),Si(t)?t.forEach((function(r){s.add(Ii(r,e,n,r,t,o))})):Li(t)&&t.forEach((function(r,i){s.set(i,Ii(r,e,n,i,t,o))}));var p=c?void 0:(a?u?li:si:u?Fe:De)(t);return $t(p||t,(function(r,i){p&&(r=t[i=r]),ie(s,i,Ii(r,e,n,i,t,o))})),s}function Di(t){return Ii(t,5)}function Hi(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new ln;++e<n;)this.add(t[e])}function Vi(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}function Pi(t,e){return t.has(e)}function Fi(t,e,n,r,i,o){var s=1&n,l=t.length,u=e.length;if(l!=u&&!(s&&u>l))return!1;var a=o.get(t),c=o.get(e);if(a&&c)return a==e&&c==t;var h=-1,f=!0,d=2&n?new Hi:void 0;for(o.set(t,e),o.set(e,t);++h<l;){var p=t[h],v=e[h];if(r)var b=s?r(v,p,h,e,t,o):r(p,v,h,t,e,o);if(void 0!==b){if(b)continue;f=!1;break}if(d){if(!Vi(e,(function(t,e){if(!Pi(d,e)&&(p===t||i(p,t,n,r,o)))return d.push(e)}))){f=!1;break}}else if(p!==v&&!i(p,v,n,r,o)){f=!1;break}}return o.delete(t),o.delete(e),f}function Ui(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}function Wi(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}Bi[$i]=Bi["[object Array]"]=Bi["[object ArrayBuffer]"]=Bi["[object DataView]"]=Bi["[object Boolean]"]=Bi["[object Date]"]=Bi["[object Float32Array]"]=Bi["[object Float64Array]"]=Bi["[object Int8Array]"]=Bi["[object Int16Array]"]=Bi["[object Int32Array]"]=Bi["[object Map]"]=Bi["[object Number]"]=Bi[Ci]=Bi["[object RegExp]"]=Bi["[object Set]"]=Bi["[object String]"]=Bi["[object Symbol]"]=Bi["[object Uint8Array]"]=Bi["[object Uint8ClampedArray]"]=Bi["[object Uint16Array]"]=Bi["[object Uint32Array]"]=!0,Bi["[object Error]"]=Bi[Ri]=Bi["[object WeakMap]"]=!1,Hi.prototype.add=Hi.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},Hi.prototype.has=function(t){return this.__data__.has(t)};var Zi=d?d.prototype:void 0,Ki=Zi?Zi.valueOf:void 0,Gi=Object.prototype.hasOwnProperty,Qi="[object Arguments]",Yi="[object Array]",Ji="[object Object]",Xi=Object.prototype.hasOwnProperty;function to(t,e,n,r,i){return t===e||(null==t||null==e||!y(t)&&!y(e)?t!=t&&e!=e:function(t,e,n,r,i,o){var s=A(t),l=A(e),u=s?Yi:ki(t),a=l?Yi:ki(e),c=(u=u==Qi?Ji:u)==Ji,h=(a=a==Qi?Ji:a)==Ji,f=u==a;if(f&&Ae(t)){if(!Ae(e))return!1;s=!0,c=!1}if(f&&!c)return o||(o=new Wr),s||ze(t)?Fi(t,e,n,r,i,o):function(t,e,n,r,i,o,s){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!o(new ji(t),new ji(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return ne(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var l=Ui;case"[object Set]":if(l||(l=Wi),t.size!=e.size&&!(1&r))return!1;var u=s.get(t);if(u)return u==e;r|=2,s.set(t,e);var a=Fi(l(t),l(e),r,i,o,s);return s.delete(t),a;case"[object Symbol]":if(Ki)return Ki.call(t)==Ki.call(e)}return!1}(t,e,u,n,r,i,o);if(!(1&n)){var d=c&&Xi.call(t,"__wrapped__"),p=h&&Xi.call(e,"__wrapped__");if(d||p){var v=d?t.value():t,b=p?e.value():e;return o||(o=new Wr),i(v,b,n,r,o)}}return!!f&&(o||(o=new Wr),function(t,e,n,r,i,o){var s=1&n,l=si(t),u=l.length;if(u!=si(e).length&&!s)return!1;for(var a=u;a--;){var c=l[a];if(!(s?c in e:Gi.call(e,c)))return!1}var h=o.get(t),f=o.get(e);if(h&&f)return h==e&&f==t;var d=!0;o.set(t,e),o.set(e,t);for(var p=s;++a<u;){var v=t[c=l[a]],b=e[c];if(r)var q=s?r(b,v,c,e,t,o):r(v,b,c,t,e,o);if(!(void 0===q?v===b||i(v,b,n,r,o):q)){d=!1;break}p||(p="constructor"==c)}if(d&&!p){var m=t.constructor,g=e.constructor;m==g||!("constructor"in t)||!("constructor"in e)||"function"==typeof m&&m instanceof m&&"function"==typeof g&&g instanceof g||(d=!1)}return o.delete(t),o.delete(e),d}(t,e,n,r,i,o))}(t,e,n,r,to,i))}function eo(t,e,n,r){var i=n.length,o=i,s=!r;if(null==t)return!o;for(t=Object(t);i--;){var l=n[i];if(s&&l[2]?l[1]!==t[l[0]]:!(l[0]in t))return!1}for(;++i<o;){var u=(l=n[i])[0],a=t[u],c=l[1];if(s&&l[2]){if(void 0===a&&!(u in t))return!1}else{var h=new Wr;if(r)var f=r(a,c,u,t,e,h);if(!(void 0===f?to(c,a,3,r,h):f))return!1}}return!0}function no(t){return t==t&&!$(t)}function ro(t){for(var e=De(t),n=e.length;n--;){var r=e[n],i=t[r];e[n]=[r,i,no(i)]}return e}function io(t,e){return function(n){return null!=n&&n[t]===e&&(void 0!==e||t in Object(n))}}function oo(t){var e=ro(t);return 1==e.length&&e[0][2]?io(e[0][0],e[0][1]):function(n){return n===t||eo(n,t,e)}}function so(t,e){return null!=t&&e in Object(t)}function lo(t,e,n){for(var r=-1,i=(e=vn(e,t)).length,o=!1;++r<i;){var s=bn(e[r]);if(!(o=null!=t&&n(t,s)))break;t=t[s]}return o||++r!=i?o:!!(i=null==t?0:t.length)&&ae(i)&&Ut(s,i)&&(A(t)||we(t))}function uo(t,e){return null!=t&&lo(t,e,so)}function ao(t,e){return Qe(t)&&no(e)?io(bn(t),e):function(n){var r=mn(n,t);return void 0===r&&r===e?uo(n,t):to(e,r,3)}}function co(t){return function(e){return null==e?void 0:e[t]}}function ho(t){return Qe(t)?co(bn(t)):function(t){return function(e){return qn(e,t)}}(t)}function fo(t){return"function"==typeof t?t:null==t?F:"object"==typeof t?A(t)?ao(t[0],t[1]):oo(t):ho(t)}function po(t,e,n){var r=n.length;if(null==t)return!r;for(t=Object(t);r--;){var i=n[r],o=t[i];if(void 0===o&&!(i in t)||!(0,e[i])(o))return!1}return!0}function vo(t,e,n,r){for(var i=-1,o=null==t?0:t.length;++i<o;){var s=t[i];e(r,s,n(s),t)}return r}function bo(t){return function(e,n,r){for(var i=-1,o=Object(e),s=r(e),l=s.length;l--;){var u=s[t?l:++i];if(!1===n(o[u],u,o))break}return e}}var qo=bo();function mo(t,e){return t&&qo(t,e,De)}function go(t,e){return function(n,r){if(null==n)return n;if(!ce(n))return t(n,r);for(var i=n.length,o=e?i:-1,s=Object(n);(e?o--:++o<i)&&!1!==r(s[o],o,s););return n}}var wo=go(mo);function yo(t,e,n,r){return wo(t,(function(t,i,o){e(r,t,n(t),o)})),r}function ko(t,e){return function(n,r){var i=A(n)?vo:yo,o=e?e():{};return i(n,t,fo(r),o)}}var xo=Object.prototype.hasOwnProperty,jo=ko((function(t,e,n){xo.call(t,n)?++t[n]:ee(t,n,1)}));function Ao(t,e,n){var r=Xt(t,8,void 0,void 0,void 0,void 0,void 0,e=n?void 0:e);return r.placeholder=Ao.placeholder,r}function Oo(t,e,n){var r=Xt(t,16,void 0,void 0,void 0,void 0,void 0,e=n?void 0:e);return r.placeholder=Oo.placeholder,r}Ao.placeholder={},Oo.placeholder={};var Mo=function(){return f.Date.now()},Eo=Math.max,_o=Math.min;function To(t,e,n){var r,i,o,s,l,u,a=0,c=!1,h=!1,f=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function d(e){var n=r,o=i;return r=i=void 0,a=e,s=t.apply(o,n)}function p(t){var n=t-u;return void 0===u||n>=e||n<0||h&&t-a>=o}function v(){var t=Mo();if(p(t))return b(t);l=setTimeout(v,function(t){var n=e-(t-u);return h?_o(n,o-(t-a)):n}(t))}function b(t){return l=void 0,f&&r?d(t):(r=i=void 0,s)}function q(){var t=Mo(),n=p(t);if(r=arguments,i=this,u=t,n){if(void 0===l)return function(t){return a=t,l=setTimeout(v,e),c?d(t):s}(u);if(h)return clearTimeout(l),l=setTimeout(v,e),d(u)}return void 0===l&&(l=setTimeout(v,e)),s}return e=D(e)||0,$(n)&&(c=!!n.leading,o=(h="maxWait"in n)?Eo(D(n.maxWait)||0,e):o,f="trailing"in n?!!n.trailing:f),q.cancel=function(){void 0!==l&&clearTimeout(l),a=0,r=u=i=l=void 0},q.flush=function(){return void 0===l?s:b(Mo())},q}var No=Object.prototype,Lo=No.hasOwnProperty,zo=ue((function(t,e){t=Object(t);var n=-1,r=e.length,i=r>2?e[2]:void 0;for(i&&he(e[0],e[1],i)&&(r=1);++n<r;)for(var o=e[n],s=Fe(o),l=-1,u=s.length;++l<u;){var a=s[l],c=t[a];(void 0===c||ne(c,No[a])&&!Lo.call(t,a))&&(t[a]=o[a])}return t}));function So(t,e,n){(void 0!==n&&!ne(t[e],n)||void 0===n&&!(e in t))&&ee(t,e,n)}function $o(t){return y(t)&&ce(t)}function Ro(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}function Co(t){return oe(t,Fe(t))}function Bo(t,e,n,r,i){t!==e&&qo(e,(function(o,s){if(i||(i=new Wr),$(o))!function(t,e,n,r,i,o,s){var l=Ro(t,n),u=Ro(e,n),a=s.get(u);if(a)So(t,n,a);else{var c=o?o(l,u,n+"",t,e,s):void 0,h=void 0===c;if(h){var f=A(u),d=!f&&Ae(u),p=!f&&!d&&ze(u);c=u,f||d||p?A(l)?c=l:$o(l)?c=wt(l):d?(h=!1,c=Jr(u,!0)):p?(h=!1,c=_i(u,!0)):c=[]:Nn(u)||we(u)?(c=l,we(l)?c=Co(l):$(l)&&!U(l)||(c=Ti(u))):h=!1}h&&(s.set(u,c),i(c,u,r,o,s),s.delete(u)),So(t,n,c)}}(t,e,s,n,Bo,r,i);else{var l=r?r(Ro(t,s),o,s+"",t,e,i):void 0;void 0===l&&(l=o),So(t,s,l)}}),Fe)}function Io(t,e,n,r,i,o){return $(t)&&$(e)&&(o.set(e,t),Bo(t,e,void 0,Io,o),o.delete(e)),t}var Do=fe((function(t,e,n,r){Bo(t,e,n,r)})),Ho=ue((function(t){return t.push(void 0,Io),lt(Do,void 0,t)}));function Vo(t,e,n){if("function"!=typeof t)throw new TypeError("Expected a function");return setTimeout((function(){t.apply(void 0,n)}),e)}var Po=ue((function(t,e){return Vo(t,1,e)})),Fo=ue((function(t,e,n){return Vo(t,D(e)||0,n)}));function Uo(t,e,n){for(var r=-1,i=null==t?0:t.length;++r<i;)if(n(e,t[r]))return!0;return!1}function Wo(t,e,n,r){var i=-1,o=It,s=!0,l=t.length,u=[],a=e.length;if(!l)return u;n&&(e=j(e,Me(n))),r?(o=Uo,s=!1):e.length>=200&&(o=Pi,s=!1,e=new Hi(e));t:for(;++i<l;){var c=t[i],h=null==n?c:n(c);if(c=r||0!==c?c:0,s&&h==h){for(var f=a;f--;)if(e[f]===h)continue t;u.push(c)}else o(e,h,r)||u.push(c)}return u}var Zo=ue((function(t,e){return $o(t)?Wo(t,xn(e,1,$o,!0)):[]}));function Ko(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}var Go=ue((function(t,e){var n=Ko(e);return $o(n)&&(n=void 0),$o(t)?Wo(t,xn(e,1,$o,!0),fo(n)):[]})),Qo=ue((function(t,e){var n=Ko(e);return $o(n)&&(n=void 0),$o(t)?Wo(t,xn(e,1,$o,!0),void 0,n):[]})),Yo=_((function(t,e){return t/e}),1);function Jo(t,e,n,r){for(var i=t.length,o=r?i:-1;(r?o--:++o<i)&&e(t[o],o,t););return n?Bn(t,r?0:o,r?o+1:i):Bn(t,r?o+1:0,r?i:o)}function Xo(t){return"function"==typeof t?t:F}function ts(t,e){for(var n=null==t?0:t.length;n--&&!1!==e(t[n],n,t););return t}var es=bo(!0);function ns(t,e){return t&&es(t,e,De)}var rs=go(ns,!0);function is(t){return function(e){var n=ki(e);return"[object Map]"==n?Ui(e):"[object Set]"==n?function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=[t,t]})),n}(e):function(t,e){return j(e,(function(e){return[e,t[e]]}))}(e,t(e))}}var os=is(De),ss=is(Fe),ls=or({"&":"&","<":"<",">":">",'"':""","'":"'"}),us=/[&<>"']/g,as=RegExp(us.source);function cs(t){return(t=pn(t))&&as.test(t)?t.replace(us,ls):t}var hs=/[\\^$.*+?()[\]{}|]/g,fs=RegExp(hs.source);function ds(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(!e(t[n],n,t))return!1;return!0}function ps(t,e){var n=!0;return wo(t,(function(t,r,i){return n=!!e(t,r,i)})),n}function vs(t){return t?Ur(P(t),0,4294967295):0}function bs(t,e){var n=[];return wo(t,(function(t,r,i){e(t,r,i)&&n.push(t)})),n}function qs(t){return function(e,n,r){var i=Object(e);if(!ce(e)){var o=fo(n);e=De(e),n=function(t){return o(i[t],t,i)}}var s=t(e,n,r);return s>-1?i[o?e[s]:s]:void 0}}var ms=Math.max;function gs(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:P(n);return i<0&&(i=ms(r+i,0)),Rt(t,fo(e),i)}var ws=qs(gs);function ys(t,e,n){var r;return n(t,(function(t,n,i){if(e(t,n,i))return r=n,!1})),r}var ks=Math.max,xs=Math.min;function js(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=r-1;return void 0!==n&&(i=P(n),i=n<0?ks(r+i,0):xs(i,r-1)),Rt(t,fo(e),i,!0)}var As=qs(js);function Os(t,e){var n=-1,r=ce(t)?Array(t.length):[];return wo(t,(function(t,i,o){r[++n]=e(t,i,o)})),r}function Ms(t,e){return(A(t)?j:Os)(t,fo(e))}var Es=1/0,_s=1/0,Ts=Dr("floor");function Ns(t){return An((function(e){var n=e.length,r=n,i=gt.prototype.thru;for(t&&e.reverse();r--;){var o=e[r];if("function"!=typeof o)throw new TypeError("Expected a function");if(i&&!s&&"wrapper"==mt(o))var s=new gt([],!0)}for(r=s?r:n;++r<n;){var l=mt(o=e[r]),u="wrapper"==l?vt(o):void 0;s=u&&jt(u[0])&&424==u[1]&&!u[4].length&&1==u[9]?s[mt(u[0])].apply(s,u[3]):1==o.length&&jt(o)?s[l]():s.thru(o)}return function(){var t=arguments,r=t[0];if(s&&1==t.length&&A(r))return s.plant(r).value();for(var i=0,o=n?e[i].apply(this,t):r;++i<n;)o=e[i].call(this,o);return o}}))}var Ls=Ns(),zs=Ns(!0);function Ss(t,e){return Xr(e,(function(e){return U(t[e])}))}var $s=Object.prototype.hasOwnProperty,Rs=ko((function(t,e,n){$s.call(t,n)?t[n].push(e):ee(t,n,[e])}));function Cs(t,e){return t>e}function Bs(t){return function(e,n){return"string"==typeof e&&"string"==typeof n||(e=D(e),n=D(n)),t(e,n)}}var Is=Bs(Cs),Ds=Bs((function(t,e){return t>=e})),Hs=Object.prototype.hasOwnProperty;function Vs(t,e){return null!=t&&Hs.call(t,e)}var Ps=Math.max,Fs=Math.min;function Us(t){return"string"==typeof t||!A(t)&&y(t)&&"[object String]"==w(t)}function Ws(t,e){return j(e,(function(e){return t[e]}))}function Zs(t){return null==t?[]:Ws(t,De(t))}var Ks=Math.max,Gs=Math.max,Qs=Math.min;function Ys(t,e,n){for(var r=n?Uo:It,i=t[0].length,o=t.length,s=o,l=Array(o),u=1/0,a=[];s--;){var c=t[s];s&&e&&(c=j(c,Me(e))),u=Qs(c.length,u),l[s]=!n&&(e||i>=120&&c.length>=120)?new Hi(s&&c):void 0}c=t[0];var h=-1,f=l[0];t:for(;++h<i&&a.length<u;){var d=c[h],p=e?e(d):d;if(d=n||0!==d?d:0,!(f?Pi(f,p):r(a,p,n))){for(s=o;--s;){var v=l[s];if(!(v?Pi(v,p):r(t[s],p,n)))continue t}f&&f.push(p),a.push(d)}}return a}function Js(t){return $o(t)?t:[]}var Xs=ue((function(t){var e=j(t,Js);return e.length&&e[0]===t[0]?Ys(e):[]})),tl=ue((function(t){var e=Ko(t),n=j(t,Js);return e===Ko(n)?e=void 0:n.pop(),n.length&&n[0]===t[0]?Ys(n,fo(e)):[]})),el=ue((function(t){var e=Ko(t),n=j(t,Js);return(e="function"==typeof e?e:void 0)&&n.pop(),n.length&&n[0]===t[0]?Ys(n,void 0,e):[]}));function nl(t,e){return function(n,r){return function(t,e,n,r){return mo(t,(function(t,i,o){e(r,n(t),i,o)})),r}(n,t,e(r),{})}}var rl=Object.prototype.toString,il=nl((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=rl.call(e)),t[e]=n}),Nt(F)),ol=Object.prototype,sl=ol.hasOwnProperty,ll=ol.toString,ul=nl((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=ll.call(e)),sl.call(t,e)?t[e].push(n):t[e]=[n]}),fo);function al(t,e){return e.length<2?t:qn(t,Bn(e,0,-1))}function cl(t,e,n){var r=null==(t=al(t,e=vn(e,t)))?t:t[bn(Ko(e))];return null==r?void 0:lt(r,t,n)}var hl=ue(cl),fl=ue((function(t,e,n){var r=-1,i="function"==typeof e,o=ce(t)?Array(t.length):[];return wo(t,(function(t){o[++r]=i?lt(e,t,n):cl(t,e,n)})),o})),dl=Ne&&Ne.isArrayBuffer,pl=dl?Me(dl):function(t){return y(t)&&"[object ArrayBuffer]"==w(t)},vl=Ne&&Ne.isDate,bl=vl?Me(vl):function(t){return y(t)&&"[object Date]"==w(t)},ql=Object.prototype.hasOwnProperty;function ml(t,e){return to(t,e)}var gl=f.isFinite;function wl(t){return"number"==typeof t&&t==P(t)}function yl(t){return"number"==typeof t||y(t)&&"[object Number]"==w(t)}var kl=Z?U:ye,xl=Ne&&Ne.isRegExp,jl=xl?Me(xl):function(t){return y(t)&&"[object RegExp]"==w(t)},Al=Array.prototype.join,Ol=Rr((function(t,e,n){return t+(n?"-":"")+e.toLowerCase()})),Ml=ko((function(t,e,n){ee(t,n,e)})),El=Math.max,_l=Math.min,Tl=Rr((function(t,e,n){return t+(n?" ":"")+e.toLowerCase()})),Nl=er("toLowerCase");function Ll(t,e){return t<e}var zl=Bs(Ll),Sl=Bs((function(t,e){return t<=e}));function $l(t,e,n){for(var r=-1,i=t.length;++r<i;){var o=t[r],s=e(o);if(null!=s&&(void 0===l?s==s&&!k(s):n(s,l)))var l=s,u=o}return u}function Rl(t,e){for(var n,r=-1,i=t.length;++r<i;){var o=e(t[r]);void 0!==o&&(n=void 0===n?o:n+o)}return n}function Cl(t,e){var n=null==t?0:t.length;return n?Rl(t,e)/n:NaN}var Bl=fe((function(t,e,n){Bo(t,e,n)})),Il=ue((function(t,e){return function(n){return cl(n,t,e)}})),Dl=ue((function(t,e){return function(n){return cl(t,n,e)}})),Hl=_((function(t,e){return t*e}),1);function Vl(t){if("function"!=typeof t)throw new TypeError("Expected a function");return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}var Pl=d?d.iterator:void 0;function Fl(t){if(!t)return[];if(ce(t))return Us(t)?tr(t):wt(t);if(Pl&&t[Pl])return function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}(t[Pl]());var e=ki(t);return("[object Map]"==e?Ui:"[object Set]"==e?Wi:Zs)(t)}function Ul(t,e){var n=t.length;if(n)return Ut(e+=e<0?n:0,n)?t[e]:void 0}function Wl(t,e){return null==(t=al(t,e=vn(e,t)))||delete t[bn(Ko(e))]}function Zl(t){return Nn(t)?void 0:t}var Kl=An((function(t,e){var n={};if(null==t)return n;var r=!1;e=j(e,(function(e){return e=vn(e,t),r||(r=e.length>1),e})),oe(t,li(t),n),r&&(n=Ii(n,7,Zl));for(var i=e.length;i--;)Wl(n,e[i]);return n}));function Gl(t,e,n,r){if(!$(t))return t;for(var i=-1,o=(e=vn(e,t)).length,s=o-1,l=t;null!=l&&++i<o;){var u=bn(e[i]),a=n;if("__proto__"===u||"constructor"===u||"prototype"===u)return t;if(i!=s){var c=l[u];void 0===(a=r?r(c,u,l):void 0)&&(a=$(c)?c:Ut(e[i+1])?[]:{})}ie(l,u,a),l=l[u]}return t}function Ql(t,e,n){for(var r=-1,i=e.length,o={};++r<i;){var s=e[r],l=qn(t,s);n(l,s)&&Gl(o,vn(s,t),l)}return o}function Yl(t,e){if(null==t)return{};var n=j(li(t),(function(t){return[t]}));return e=fo(e),Ql(t,n,(function(t,n){return e(t,n[0])}))}function Jl(t,e){if(t!==e){var n=void 0!==t,r=null===t,i=t==t,o=k(t),s=void 0!==e,l=null===e,u=e==e,a=k(e);if(!l&&!a&&!o&&t>e||o&&s&&u&&!l&&!a||r&&s&&u||!n&&u||!i)return 1;if(!r&&!o&&!a&&t<e||a&&n&&i&&!r&&!o||l&&n&&i||!s&&i||!u)return-1}return 0}function Xl(t,e,n){e=e.length?j(e,(function(t){return A(t)?function(e){return qn(e,1===t.length?t[0]:t)}:t})):[F];var r=-1;return e=j(e,Me(fo)),function(t){var e=t.length;for(t.sort((function(t,e){return function(t,e,n){for(var r=-1,i=t.criteria,o=e.criteria,s=i.length,l=n.length;++r<s;){var u=Jl(i[r],o[r]);if(u)return r>=l?u:u*("desc"==n[r]?-1:1)}return t.index-e.index}(t,e,n)}));e--;)t[e]=t[e].value;return t}(Os(t,(function(t){return{criteria:j(e,(function(e){return e(t)})),index:++r,value:t}})))}function tu(t){return An((function(e){return e=j(e,Me(fo)),ue((function(n){var r=this;return t(e,(function(t){return lt(t,r,n)}))}))}))}var eu=tu(j),nu=Math.min,ru=ue((function(t,e){var n=(e=1==e.length&&A(e[0])?j(e[0],Me(fo)):j(xn(e,1),Me(fo))).length;return ue((function(r){for(var i=-1,o=nu(r.length,n);++i<o;)r[i]=e[i].call(this,r[i]);return lt(t,this,r)}))})),iu=tu(ds),ou=tu(Vi),su=Math.floor;function lu(t,e){var n="";if(!t||e<1||e>9007199254740991)return n;do{e%2&&(n+=t),(e=su(e/2))&&(t+=t)}while(e);return n}var uu=co("length"),au="\\ud800-\\udfff",cu="["+au+"]",hu="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",fu="\\ud83c[\\udffb-\\udfff]",du="[^"+au+"]",pu="(?:\\ud83c[\\udde6-\\uddff]){2}",vu="[\\ud800-\\udbff][\\udc00-\\udfff]",bu="(?:"+hu+"|"+fu+")?",qu="[\\ufe0e\\ufe0f]?",mu=qu+bu+"(?:\\u200d(?:"+[du,pu,vu].join("|")+")"+qu+bu+")*",gu="(?:"+[du+hu+"?",hu,pu,vu,cu].join("|")+")",wu=RegExp(fu+"(?="+fu+")|"+gu+mu,"g");function yu(t){return Hn(t)?function(t){for(var e=wu.lastIndex=0;wu.test(t);)++e;return e}(t):uu(t)}var ku=Math.ceil;function xu(t,e){var n=(e=void 0===e?" ":E(e)).length;if(n<2)return n?lu(e,t):e;var r=lu(e,ku(t/yu(e)));return Hn(e)?In(tr(r),0,t).join(""):r.slice(0,t)}var ju=Math.ceil,Au=Math.floor,Ou=/^\s+/,Mu=f.parseInt,Eu=ue((function(t,e){return Xt(t,32,void 0,e,Kt(e,Pt(Eu)))}));Eu.placeholder={};var _u=ue((function(t,e){return Xt(t,64,void 0,e,Kt(e,Pt(_u)))}));_u.placeholder={};var Tu=ko((function(t,e,n){t[n?0:1].push(e)}),(function(){return[[],[]]})),Nu=An((function(t,e){return null==t?{}:function(t,e){return Ql(t,e,(function(e,n){return uo(t,n)}))}(t,e)}));function Lu(t,e,n,r){for(var i=n-1,o=t.length;++i<o;)if(r(t[i],e))return i;return-1}var zu=Array.prototype.splice;function Su(t,e,n,r){var i=r?Lu:Bt,o=-1,s=e.length,l=t;for(t===e&&(e=wt(e)),n&&(l=j(t,Me(n)));++o<s;)for(var u=0,a=e[o],c=n?n(a):a;(u=i(l,c,u,r))>-1;)l!==t&&zu.call(l,u,1),zu.call(t,u,1);return t}function $u(t,e){return t&&t.length&&e&&e.length?Su(t,e):t}var Ru=ue($u),Cu=Array.prototype.splice;function Bu(t,e){for(var n=t?e.length:0,r=n-1;n--;){var i=e[n];if(n==r||i!==o){var o=i;Ut(i)?Cu.call(t,i,1):Wl(t,i)}}return t}var Iu=An((function(t,e){var n=null==t?0:t.length,r=gn(t,e);return Bu(t,j(e,(function(t){return Ut(t,n)?+t:t})).sort(Jl)),r})),Du=Math.floor,Hu=Math.random;function Vu(t,e){return t+Du(Hu()*(e-t+1))}var Pu=parseFloat,Fu=Math.min,Uu=Math.random,Wu=Math.ceil,Zu=Math.max;function Ku(t){return function(e,n,r){return r&&"number"!=typeof r&&he(e,n,r)&&(n=r=void 0),e=V(e),void 0===n?(n=e,e=0):n=V(n),function(t,e,n,r){for(var i=-1,o=Zu(Wu((e-t)/(n||1)),0),s=Array(o);o--;)s[r?o:++i]=t,t+=n;return s}(e,n,r=void 0===r?e<n?1:-1:V(r),t)}}var Gu=Ku(),Qu=Ku(!0),Yu=An((function(t,e){return Xt(t,256,void 0,void 0,void 0,e)}));function Ju(t,e,n,r,i){return i(t,(function(t,i,o){n=r?(r=!1,t):e(n,t,i,o)})),n}function Xu(t,e,n,r){var i=null==t?0:t.length;for(r&&i&&(n=t[--i]);i--;)n=e(n,t[i],i,t);return n}var ta=Array.prototype.reverse;function ea(t){return null==t?t:ta.call(t)}var na=Dr("round");function ra(t){var e=t.length;return e?t[Vu(0,e-1)]:void 0}function ia(t){return ra(Zs(t))}function oa(t,e){var n=-1,r=t.length,i=r-1;for(e=void 0===e?r:e;++n<e;){var o=Vu(n,i),s=t[o];t[o]=t[n],t[n]=s}return t.length=e,t}function sa(t,e){return oa(wt(t),Ur(e,0,t.length))}function la(t,e){var n=Zs(t);return oa(n,Ur(e,0,n.length))}function ua(t){return oa(wt(t))}function aa(t){return oa(Zs(t))}var ca=Rr((function(t,e,n){return t+(n?"_":"")+e.toLowerCase()}));function ha(t,e){var n;return wo(t,(function(t,r,i){return!(n=e(t,r,i))})),!!n}var fa=ue((function(t,e){if(null==t)return[];var n=e.length;return n>1&&he(t,e[0],e[1])?e=[]:n>2&&he(e[0],e[1],e[2])&&(e=[e[0]]),Xl(t,xn(e,1),[])})),da=Math.floor,pa=Math.min;function va(t,e,n,r){var i=0,o=null==t?0:t.length;if(0===o)return 0;for(var s=(e=n(e))!=e,l=null===e,u=k(e),a=void 0===e;i<o;){var c=da((i+o)/2),h=n(t[c]),f=void 0!==h,d=null===h,p=h==h,v=k(h);if(s)var b=r||p;else b=a?p&&(r||f):l?p&&f&&(r||!d):u?p&&f&&!d&&(r||!v):!d&&!v&&(r?h<=e:h<e);b?i=c+1:o=c}return pa(o,4294967294)}function ba(t,e,n){var r=0,i=null==t?r:t.length;if("number"==typeof e&&e==e&&i<=2147483647){for(;r<i;){var o=r+i>>>1,s=t[o];null!==s&&!k(s)&&(n?s<=e:s<e)?r=o+1:i=o}return i}return va(t,e,F,n)}function qa(t,e){for(var n=-1,r=t.length,i=0,o=[];++n<r;){var s=t[n],l=e?e(s):s;if(!n||!ne(l,u)){var u=l;o[i++]=0===s?0:s}}return o}var ma=Math.max,ga=Rr((function(t,e,n){return t+(n?" ":"")+nr(e)})),wa=_((function(t,e){return t-e}),0),ya=Object.prototype,ka=ya.hasOwnProperty;function xa(t,e,n,r){return void 0===t||ne(t,ya[n])&&!ka.call(r,n)?e:t}var ja={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function Aa(t){return"\\"+ja[t]}var Oa=/<%=([\s\S]+?)%>/g,Ma={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:Oa,variable:"",imports:{_:{escape:cs}}},Ea=/\b__p \+= '';/g,_a=/\b(__p \+=) '' \+/g,Ta=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Na=/[()=,{}\[\]\/\s]/,La=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,za=/($^)/,Sa=/['\n\r\u2028\u2029\\]/g,$a=Object.prototype.hasOwnProperty;function Ra(t,e){return e(t)}var Ca=4294967295,Ba=Math.min;function Ia(t,e){var n=t;return n instanceof dt&&(n=n.value()),ir(e,(function(t,e){return e.func.apply(e.thisArg,wn([t],e.args))}),n)}function Da(t,e){for(var n=t.length;n--&&Bt(e,t[n],0)>-1;);return n}function Ha(t,e){for(var n=-1,r=t.length;++n<r&&Bt(e,t[n],0)>-1;);return n}var Va=/^\s+/,Pa=/\w*$/,Fa=or({"&":"&","<":"<",">":">",""":'"',"'":"'"}),Ua=/&(?:amp|lt|gt|quot|#39);/g,Wa=RegExp(Ua.source),Za=ci&&1/Wi(new ci([,-0]))[1]==1/0?function(t){return new ci(t)}:pt;function Ka(t,e,n){var r=-1,i=It,o=t.length,s=!0,l=[],u=l;if(n)s=!1,i=Uo;else if(o>=200){var a=e?null:Za(t);if(a)return Wi(a);s=!1,i=Pi,u=new Hi}else u=e?[]:l;t:for(;++r<o;){var c=t[r],h=e?e(c):c;if(c=n||0!==c?c:0,s&&h==h){for(var f=u.length;f--;)if(u[f]===h)continue t;e&&u.push(h),l.push(c)}else i(u,h,n)||(u!==l&&u.push(h),l.push(c))}return l}var Ga=ue((function(t){return Ka(xn(t,1,$o,!0))})),Qa=ue((function(t){var e=Ko(t);return $o(e)&&(e=void 0),Ka(xn(t,1,$o,!0),fo(e))})),Ya=ue((function(t){var e=Ko(t);return e="function"==typeof e?e:void 0,Ka(xn(t,1,$o,!0),void 0,e)})),Ja=0,Xa=Math.max;function tc(t){if(!t||!t.length)return[];var e=0;return t=Xr(t,(function(t){if($o(t))return e=Xa(t.length,e),!0})),ve(e,(function(e){return j(t,co(e))}))}function ec(t,e){if(!t||!t.length)return[];var n=tc(t);return null==e?n:j(n,(function(t){return lt(e,void 0,t)}))}function nc(t,e,n,r){return Gl(t,e,n(qn(t,e)),r)}var rc=Rr((function(t,e,n){return t+(n?" ":"")+e.toUpperCase()})),ic=ue((function(t,e){return $o(t)?Wo(t,e):[]})),oc=An((function(t){var e=t.length,n=e?t[0]:0,r=this.__wrapped__,i=function(e){return gn(e,t)};return!(e>1||this.__actions__.length)&&r instanceof dt&&Ut(n)?((r=r.slice(n,+n+(e?1:0))).__actions__.push({func:Ra,args:[i],thisArg:void 0}),new gt(r,this.__chain__).thru((function(t){return e&&!t.length&&t.push(void 0),t}))):this.thru(i)}));function sc(t,e,n){var r=t.length;if(r<2)return r?Ka(t[0]):[];for(var i=-1,o=Array(r);++i<r;)for(var s=t[i],l=-1;++l<r;)l!=i&&(o[i]=Wo(o[i]||s,t[l],e,n));return Ka(xn(o,1),e,n)}var lc=ue((function(t){return sc(Xr(t,$o))})),uc=ue((function(t){var e=Ko(t);return $o(e)&&(e=void 0),sc(Xr(t,$o),fo(e))})),ac=ue((function(t){var e=Ko(t);return e="function"==typeof e?e:void 0,sc(Xr(t,$o),void 0,e)})),cc=ue(tc);function hc(t,e,n){for(var r=-1,i=t.length,o=e.length,s={};++r<i;)n(s,t[r],r<o?e[r]:void 0);return s}var fc,dc=ue((function(t){var e=t.length,n=e>1?t[e-1]:void 0;return n="function"==typeof n?(t.pop(),n):void 0,ec(t,n)})),pc={chunk:function(t,e,n){e=(n?he(t,e,n):void 0===e)?1:Fr(P(e),0);var r=null==t?0:t.length;if(!r||e<1)return[];for(var i=0,o=0,s=Array(Pr(r/e));i<r;)s[o++]=Bn(t,i,i+=e);return s},compact:function(t){for(var e=-1,n=null==t?0:t.length,r=0,i=[];++e<n;){var o=t[e];o&&(i[r++]=o)}return i},concat:function(){var t=arguments.length;if(!t)return[];for(var e=Array(t-1),n=arguments[0],r=t;r--;)e[r-1]=arguments[r];return wn(A(n)?wt(n):[n],xn(e,1))},difference:Zo,differenceBy:Go,differenceWith:Qo,drop:function(t,e,n){var r=null==t?0:t.length;return r?Bn(t,(e=n||void 0===e?1:P(e))<0?0:e,r):[]},dropRight:function(t,e,n){var r=null==t?0:t.length;return r?Bn(t,0,(e=r-(e=n||void 0===e?1:P(e)))<0?0:e):[]},dropRightWhile:function(t,e){return t&&t.length?Jo(t,fo(e),!0,!0):[]},dropWhile:function(t,e){return t&&t.length?Jo(t,fo(e),!0):[]},fill:function(t,e,n,r){var i=null==t?0:t.length;return i?(n&&"number"!=typeof n&&he(t,e,n)&&(n=0,r=i),function(t,e,n,r){var i=t.length;for((n=P(n))<0&&(n=-n>i?0:i+n),(r=void 0===r||r>i?i:P(r))<0&&(r+=i),r=n>r?0:vs(r);n<r;)t[n++]=e;return t}(t,e,n,r)):[]},findIndex:gs,findLastIndex:js,flatten:jn,flattenDeep:function(t){return null!=t&&t.length?xn(t,_s):[]},flattenDepth:function(t,e){return null!=t&&t.length?xn(t,e=void 0===e?1:P(e)):[]},fromPairs:function(t){for(var e=-1,n=null==t?0:t.length,r={};++e<n;){var i=t[e];r[i[0]]=i[1]}return r},head:function(t){return t&&t.length?t[0]:void 0},indexOf:function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:P(n);return i<0&&(i=Gs(r+i,0)),Bt(t,e,i)},initial:function(t){return null!=t&&t.length?Bn(t,0,-1):[]},intersection:Xs,intersectionBy:tl,intersectionWith:el,join:function(t,e){return null==t?"":Al.call(t,e)},lastIndexOf:function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=r;return void 0!==n&&(i=(i=P(n))<0?El(r+i,0):_l(i,r-1)),e==e?function(t,e,n){for(var r=n+1;r--;)if(t[r]===e)return r;return r}(t,e,i):Rt(t,Ct,i,!0)},nth:function(t,e){return t&&t.length?Ul(t,P(e)):void 0},pull:Ru,pullAll:$u,pullAllBy:function(t,e,n){return t&&t.length&&e&&e.length?Su(t,e,fo(n)):t},pullAllWith:function(t,e,n){return t&&t.length&&e&&e.length?Su(t,e,void 0,n):t},pullAt:Iu,remove:function(t,e){var n=[];if(!t||!t.length)return n;var r=-1,i=[],o=t.length;for(e=fo(e);++r<o;){var s=t[r];e(s,r,t)&&(n.push(s),i.push(r))}return Bu(t,i),n},reverse:ea,slice:function(t,e,n){var r=null==t?0:t.length;return r?(n&&"number"!=typeof n&&he(t,e,n)?(e=0,n=r):(e=null==e?0:P(e),n=void 0===n?r:P(n)),Bn(t,e,n)):[]},sortedIndex:function(t,e){return ba(t,e)},sortedIndexBy:function(t,e,n){return va(t,e,fo(n))},sortedIndexOf:function(t,e){var n=null==t?0:t.length;if(n){var r=ba(t,e);if(r<n&&ne(t[r],e))return r}return-1},sortedLastIndex:function(t,e){return ba(t,e,!0)},sortedLastIndexBy:function(t,e,n){return va(t,e,fo(n),!0)},sortedLastIndexOf:function(t,e){if(null!=t&&t.length){var n=ba(t,e,!0)-1;if(ne(t[n],e))return n}return-1},sortedUniq:function(t){return t&&t.length?qa(t):[]},sortedUniqBy:function(t,e){return t&&t.length?qa(t,fo(e)):[]},tail:function(t){var e=null==t?0:t.length;return e?Bn(t,1,e):[]},take:function(t,e,n){return t&&t.length?Bn(t,0,(e=n||void 0===e?1:P(e))<0?0:e):[]},takeRight:function(t,e,n){var r=null==t?0:t.length;return r?Bn(t,(e=r-(e=n||void 0===e?1:P(e)))<0?0:e,r):[]},takeRightWhile:function(t,e){return t&&t.length?Jo(t,fo(e),!1,!0):[]},takeWhile:function(t,e){return t&&t.length?Jo(t,fo(e)):[]},union:Ga,unionBy:Qa,unionWith:Ya,uniq:function(t){return t&&t.length?Ka(t):[]},uniqBy:function(t,e){return t&&t.length?Ka(t,fo(e)):[]},uniqWith:function(t,e){return e="function"==typeof e?e:void 0,t&&t.length?Ka(t,void 0,e):[]},unzip:tc,unzipWith:ec,without:ic,xor:lc,xorBy:uc,xorWith:ac,zip:cc,zipObject:function(t,e){return hc(t||[],e||[],ie)},zipObjectDeep:function(t,e){return hc(t||[],e||[],Gl)},zipWith:dc},vc={countBy:jo,every:function(t,e,n){var r=A(t)?ds:ps;return n&&he(t,e,n)&&(e=void 0),r(t,fo(e))},filter:function(t,e){return(A(t)?Xr:bs)(t,fo(e))},find:ws,findLast:As,flatMap:function(t,e){return xn(Ms(t,e),1)},flatMapDeep:function(t,e){return xn(Ms(t,e),Es)},flatMapDepth:function(t,e,n){return n=void 0===n?1:P(n),xn(Ms(t,e),n)},forEach:function(t,e){return(A(t)?$t:wo)(t,Xo(e))},forEachRight:function(t,e){return(A(t)?ts:rs)(t,Xo(e))},groupBy:Rs,includes:function(t,e,n,r){t=ce(t)?t:Zs(t),n=n&&!r?P(n):0;var i=t.length;return n<0&&(n=Ks(i+n,0)),Us(t)?n<=i&&t.indexOf(e,n)>-1:!!i&&Bt(t,e,n)>-1},invokeMap:fl,keyBy:Ml,map:Ms,orderBy:function(t,e,n,r){return null==t?[]:(A(e)||(e=null==e?[]:[e]),A(n=r?void 0:n)||(n=null==n?[]:[n]),Xl(t,e,n))},partition:Tu,reduce:function(t,e,n){var r=A(t)?ir:Ju,i=arguments.length<3;return r(t,fo(e),n,i,wo)},reduceRight:function(t,e,n){var r=A(t)?Xu:Ju,i=arguments.length<3;return r(t,fo(e),n,i,rs)},reject:function(t,e){return(A(t)?Xr:bs)(t,Vl(fo(e)))},sample:function(t){return(A(t)?ra:ia)(t)},sampleSize:function(t,e,n){return e=(n?he(t,e,n):void 0===e)?1:P(e),(A(t)?sa:la)(t,e)},shuffle:function(t){return(A(t)?ua:aa)(t)},size:function(t){if(null==t)return 0;if(ce(t))return Us(t)?yu(t):t.length;var e=ki(t);return"[object Map]"==e||"[object Set]"==e?t.size:Ie(t).length},some:function(t,e,n){var r=A(t)?Vi:ha;return n&&he(t,e,n)&&(e=void 0),r(t,fo(e))},sortBy:fa},bc=Mo,qc={after:function(t,e){if("function"!=typeof e)throw new TypeError("Expected a function");return t=P(t),function(){if(--t<1)return e.apply(this,arguments)}},ary:te,before:Sn,bind:$n,bindKey:Cn,curry:Ao,curryRight:Oo,debounce:To,defer:Po,delay:Fo,flip:function(t){return Xt(t,512)},memoize:un,once:function(t){return Sn(2,t)},overArgs:ru,partial:Eu,partialRight:_u,rearg:Yu,rest:function(t,e){if("function"!=typeof t)throw new TypeError("Expected a function");return ue(t,e=void 0===e?e:P(e))},spread:function(t,e){if("function"!=typeof t)throw new TypeError("Expected a function");return e=null==e?0:ma(P(e),0),ue((function(n){var r=n[e],i=In(n,0,e);return r&&wn(i,r),lt(t,this,i)}))},throttle:function(t,e,n){var r=!0,i=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return $(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),To(t,e,{leading:r,maxWait:e,trailing:i})},unary:function(t){return te(t,1)},wrap:function(t,e){return Eu(Xo(e),t)}},mc={castArray:function(){if(!arguments.length)return[];var t=arguments[0];return A(t)?t:[t]},clone:function(t){return Ii(t,4)},cloneDeep:Di,cloneDeepWith:function(t,e){return Ii(t,5,e="function"==typeof e?e:void 0)},cloneWith:function(t,e){return Ii(t,4,e="function"==typeof e?e:void 0)},conformsTo:function(t,e){return null==e||po(t,e,De(e))},eq:ne,gt:Is,gte:Ds,isArguments:we,isArrayBuffer:pl,isArrayLike:ce,isArrayLikeObject:$o,isBoolean:function(t){return!0===t||!1===t||y(t)&&"[object Boolean]"==w(t)},isBuffer:Ae,isDate:bl,isElement:function(t){return y(t)&&1===t.nodeType&&!Nn(t)},isEmpty:function(t){if(null==t)return!0;if(ce(t)&&(A(t)||"string"==typeof t||"function"==typeof t.splice||Ae(t)||ze(t)||we(t)))return!t.length;var e=ki(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if(pe(t))return!Ie(t).length;for(var n in t)if(ql.call(t,n))return!1;return!0},isEqual:ml,isEqualWith:function(t,e,n){var r=(n="function"==typeof n?n:void 0)?n(t,e):void 0;return void 0===r?to(t,e,void 0,n):!!r},isError:Ln,isFinite:function(t){return"number"==typeof t&&gl(t)},isFunction:U,isInteger:wl,isLength:ae,isMap:Li,isMatch:function(t,e){return t===e||eo(t,e,ro(e))},isMatchWith:function(t,e,n){return n="function"==typeof n?n:void 0,eo(t,e,ro(e),n)},isNaN:function(t){return yl(t)&&t!=+t},isNative:function(t){if(kl(t))throw new Error("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return X(t)},isNil:function(t){return null==t},isNull:function(t){return null===t},isNumber:yl,isObjectLike:y,isPlainObject:Nn,isRegExp:jl,isSafeInteger:function(t){return wl(t)&&t>=-9007199254740991&&t<=9007199254740991},isSet:Si,isString:Us,isSymbol:k,isTypedArray:ze,isUndefined:function(t){return void 0===t},isWeakMap:function(t){return y(t)&&"[object WeakMap]"==ki(t)},isWeakSet:function(t){return y(t)&&"[object WeakSet]"==w(t)},lt:zl,lte:Sl,toArray:Fl,toFinite:V,toLength:vs,toNumber:D,toPlainObject:Co,toSafeInteger:function(t){return t?Ur(P(t),-9007199254740991,9007199254740991):0===t?t:0},toString:pn},gc={add:T,ceil:Hr,divide:Yo,floor:Ts,max:function(t){return t&&t.length?$l(t,F,Cs):void 0},maxBy:function(t,e){return t&&t.length?$l(t,fo(e),Cs):void 0},mean:function(t){return Cl(t,F)},meanBy:function(t,e){return Cl(t,fo(e))},min:function(t){return t&&t.length?$l(t,F,Ll):void 0},minBy:function(t,e){return t&&t.length?$l(t,fo(e),Ll):void 0},multiply:Hl,round:na,subtract:wa,sum:function(t){return t&&t.length?Rl(t,F):0},sumBy:function(t,e){return t&&t.length?Rl(t,fo(e)):0}},wc={assign:Ve,assignIn:Ue,assignInWith:We,assignWith:Ze,at:On,create:function(t,e){var n=ot(t);return null==e?n:Zr(n,e)},defaults:zo,defaultsDeep:Ho,findKey:function(t,e){return ys(t,fo(e),mo)},findLastKey:function(t,e){return ys(t,fo(e),ns)},forIn:function(t,e){return null==t?t:qo(t,Xo(e),Fe)},forInRight:function(t,e){return null==t?t:es(t,Xo(e),Fe)},forOwn:function(t,e){return t&&mo(t,Xo(e))},forOwnRight:function(t,e){return t&&ns(t,Xo(e))},functions:function(t){return null==t?[]:Ss(t,De(t))},functionsIn:function(t){return null==t?[]:Ss(t,Fe(t))},get:mn,has:function(t,e){return null!=t&&lo(t,e,Vs)},hasIn:uo,invert:il,invertBy:ul,invoke:hl,keysIn:Fe,mapKeys:function(t,e){var n={};return e=fo(e),mo(t,(function(t,r,i){ee(n,e(t,r,i),t)})),n},mapValues:function(t,e){var n={};return e=fo(e),mo(t,(function(t,r,i){ee(n,r,e(t,r,i))})),n},merge:Bl,mergeWith:Do,omit:Kl,omitBy:function(t,e){return Yl(t,Vl(fo(e)))},pick:Nu,pickBy:Yl,result:function(t,e,n){var r=-1,i=(e=vn(e,t)).length;for(i||(i=1,t=void 0);++r<i;){var o=null==t?void 0:t[bn(e[r])];void 0===o&&(r=i,o=n),t=U(o)?o.call(t):o}return t},set:function(t,e,n){return null==t?t:Gl(t,e,n)},setWith:function(t,e,n,r){return r="function"==typeof r?r:void 0,null==t?t:Gl(t,e,n,r)},toPairs:os,toPairsIn:ss,transform:function(t,e,n){var r=A(t),i=r||Ae(t)||ze(t);if(e=fo(e),null==n){var o=t&&t.constructor;n=i?r?new o:[]:$(t)&&U(o)?ot(Mn(t)):{}}return(i?$t:mo)(t,(function(t,r,i){return e(n,t,r,i)})),n},unset:function(t,e){return null==t||Wl(t,e)},update:function(t,e,n){return null==t?t:nc(t,e,Xo(n))},updateWith:function(t,e,n,r){return r="function"==typeof r?r:void 0,null==t?t:nc(t,e,Xo(n),r)},values:Zs,valuesIn:function(t){return null==t?[]:Ws(t,Fe(t))}},yc={at:oc,chain:Vr,commit:function(){return new gt(this.value(),this.__chain__)},next:function(){void 0===this.__values__&&(this.__values__=Fl(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?void 0:this.__values__[this.__index__++]}},plant:function(t){for(var e,n=this;n instanceof ft;){var r=yt(n);r.__index__=0,r.__values__=void 0,e?i.__wrapped__=r:e=r;var i=r;n=n.__wrapped__}return i.__wrapped__=t,e},reverse:function(){var t=this.__wrapped__;if(t instanceof dt){var e=t;return this.__actions__.length&&(e=new dt(this)),(e=e.reverse()).__actions__.push({func:Ra,args:[ea],thisArg:void 0}),new gt(e,this.__chain__)}return this.thru(ea)},tap:function(t,e){return e(t),t},toIterator:function(){return this},value:function(){return Ia(this.__wrapped__,this.__actions__)},wrapperChain:function(){return Vr(this)}},kc={camelCase:Cr,capitalize:rr,deburr:ar,endsWith:function(t,e,n){t=pn(t),e=E(e);var r=t.length,i=n=void 0===n?r:Ur(P(n),0,r);return(n-=e.length)>=0&&t.slice(n,i)==e},escape:cs,escapeRegExp:function(t){return(t=pn(t))&&fs.test(t)?t.replace(hs,"\\$&"):t},kebabCase:Ol,lowerCase:Tl,lowerFirst:Nl,pad:function(t,e,n){t=pn(t);var r=(e=P(e))?yu(t):0;if(!e||r>=e)return t;var i=(e-r)/2;return xu(Au(i),n)+t+xu(ju(i),n)},padEnd:function(t,e,n){t=pn(t);var r=(e=P(e))?yu(t):0;return e&&r<e?t+xu(e-r,n):t},padStart:function(t,e,n){t=pn(t);var r=(e=P(e))?yu(t):0;return e&&r<e?xu(e-r,n)+t:t},parseInt:function(t,e,n){return n||null==e?e=0:e&&(e=+e),Mu(pn(t).replace(Ou,""),e||0)},repeat:function(t,e,n){return e=(n?he(t,e,n):void 0===e)?1:P(e),lu(pn(t),e)},replace:function(){var t=arguments,e=pn(t[0]);return t.length<3?e:e.replace(t[1],t[2])},snakeCase:ca,split:function(t,e,n){return n&&"number"!=typeof n&&he(t,e,n)&&(e=n=void 0),(n=void 0===n?4294967295:n>>>0)?(t=pn(t))&&("string"==typeof e||null!=e&&!jl(e))&&!(e=E(e))&&Hn(t)?In(tr(t),0,n):t.split(e,n):[]},startCase:ga,startsWith:function(t,e,n){return t=pn(t),n=null==n?0:Ur(P(n),0,t.length),e=E(e),t.slice(n,n+e.length)==e},template:function(t,e,n){var r=Ma.imports._.templateSettings||Ma;n&&he(t,e,n)&&(e=void 0),t=pn(t),e=We({},e,r,xa);var i,o,s=We({},e.imports,r.imports,xa),l=De(s),u=Ws(s,l),a=0,c=e.interpolate||za,h="__p += '",f=RegExp((e.escape||za).source+"|"+c.source+"|"+(c===Oa?La:za).source+"|"+(e.evaluate||za).source+"|$","g"),d=$a.call(e,"sourceURL")?"//# sourceURL="+(e.sourceURL+"").replace(/\s/g," ")+"\n":"";t.replace(f,(function(e,n,r,s,l,u){return r||(r=s),h+=t.slice(a,u).replace(Sa,Aa),n&&(i=!0,h+="' +\n__e("+n+") +\n'"),l&&(o=!0,h+="';\n"+l+";\n__p += '"),r&&(h+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),a=u+e.length,e})),h+="';\n";var p=$a.call(e,"variable")&&e.variable;if(p){if(Na.test(p))throw new Error("Invalid `variable` option passed into `_.template`")}else h="with (obj) {\n"+h+"\n}\n";h=(o?h.replace(Ea,""):h).replace(_a,"$1").replace(Ta,"$1;"),h="function("+(p||"obj")+") {\n"+(p?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+h+"return __p\n}";var v=zn((function(){return Function(l,d+"return "+h).apply(void 0,u)}));if(v.source=h,Ln(v))throw v;return v},templateSettings:Ma,toLower:function(t){return pn(t).toLowerCase()},toUpper:function(t){return pn(t).toUpperCase()},trim:function(t,e,n){if((t=pn(t))&&(n||void 0===e))return S(t);if(!t||!(e=E(e)))return t;var r=tr(t),i=tr(e);return In(r,Ha(r,i),Da(r,i)+1).join("")},trimEnd:function(t,e,n){if((t=pn(t))&&(n||void 0===e))return t.slice(0,L(t)+1);if(!t||!(e=E(e)))return t;var r=tr(t);return In(r,0,Da(r,tr(e))+1).join("")},trimStart:function(t,e,n){if((t=pn(t))&&(n||void 0===e))return t.replace(Va,"");if(!t||!(e=E(e)))return t;var r=tr(t);return In(r,Ha(r,tr(e))).join("")},truncate:function(t,e){var n=30,r="...";if($(e)){var i="separator"in e?e.separator:i;n="length"in e?P(e.length):n,r="omission"in e?E(e.omission):r}var o=(t=pn(t)).length;if(Hn(t)){var s=tr(t);o=s.length}if(n>=o)return t;var l=n-yu(r);if(l<1)return r;var u=s?In(s,0,l).join(""):t.slice(0,l);if(void 0===i)return u+r;if(s&&(l+=u.length-l),jl(i)){if(t.slice(l).search(i)){var a,c=u;for(i.global||(i=RegExp(i.source,pn(Pa.exec(i))+"g")),i.lastIndex=0;a=i.exec(c);)var h=a.index;u=u.slice(0,void 0===h?l:h)}}else if(t.indexOf(E(i),l)!=l){var f=u.lastIndexOf(i);f>-1&&(u=u.slice(0,f))}return u+r},unescape:function(t){return(t=pn(t))&&Wa.test(t)?t.replace(Ua,Fa):t},upperCase:rc,upperFirst:nr,words:Sr},xc={attempt:zn,bindAll:Rn,cond:function(t){var e=null==t?0:t.length,n=fo;return t=e?j(t,(function(t){if("function"!=typeof t[1])throw new TypeError("Expected a function");return[n(t[0]),t[1]]})):[],ue((function(n){for(var r=-1;++r<e;){var i=t[r];if(lt(i[0],this,n))return lt(i[1],this,n)}}))},conforms:function(t){return function(t){var e=De(t);return function(n){return po(n,t,e)}}(Ii(t,1))},constant:Nt,defaultTo:function(t,e){return null==t||t!=t?e:t},flow:Ls,flowRight:zs,iteratee:function(t){return fo("function"==typeof t?t:Ii(t,1))},matches:function(t){return oo(Ii(t,1))},matchesProperty:function(t,e){return ao(t,Ii(e,1))},method:Il,methodOf:Dl,noop:pt,nthArg:function(t){return t=P(t),ue((function(e){return Ul(e,t)}))},over:eu,overEvery:iu,overSome:ou,property:ho,propertyOf:function(t){return function(e){return null==t?void 0:qn(t,e)}},range:Gu,rangeRight:Qu,stubArray:ti,stubFalse:ye,stubObject:function(){return{}},stubString:function(){return""},stubTrue:function(){return!0},times:function(t,e){if((t=P(t))<1||t>9007199254740991)return[];var n=Ca,r=Ba(t,Ca);e=Xo(e),t-=Ca;for(var i=ve(r,e);++n<t;)e(n);return i},toPath:function(t){return A(t)?j(t,bn):k(t)?[t]:wt(dn(pn(t)))},uniqueId:function(t){var e=++Ja;return pn(t)+e}},jc=Math.max,Ac=Math.min,Oc=Math.min,Mc=4294967295,Ec=Array.prototype,_c=Object.prototype.hasOwnProperty,Tc=d?d.iterator:void 0,Nc=Math.max,Lc=Math.min,zc=function(t,e,n){if(null==n){var r=$(e),i=r&&De(e),o=i&&i.length&&Ss(e,i);(o?o.length:r)||(n=e,e=t,t=this)}return function(t,e,n){var r=De(e),i=Ss(e,r),o=!($(n)&&"chain"in n&&!n.chain),s=U(t);return $t(i,(function(n){var r=e[n];t[n]=r,s&&(t.prototype[n]=function(){var e=this.__chain__;if(o||e){var n=t(this.__wrapped__);return(n.__actions__=wt(this.__actions__)).push({func:r,args:arguments,thisArg:t}),n.__chain__=e,n}return r.apply(t,wn([this.value()],arguments))})})),t}(t,e,n)};xt.after=qc.after,xt.ary=qc.ary,xt.assign=wc.assign,xt.assignIn=wc.assignIn,xt.assignInWith=wc.assignInWith,xt.assignWith=wc.assignWith,xt.at=wc.at,xt.before=qc.before,xt.bind=qc.bind,xt.bindAll=xc.bindAll,xt.bindKey=qc.bindKey,xt.castArray=mc.castArray,xt.chain=yc.chain,xt.chunk=pc.chunk,xt.compact=pc.compact,xt.concat=pc.concat,xt.cond=xc.cond,xt.conforms=xc.conforms,xt.constant=xc.constant,xt.countBy=vc.countBy,xt.create=wc.create,xt.curry=qc.curry,xt.curryRight=qc.curryRight,xt.debounce=qc.debounce,xt.defaults=wc.defaults,xt.defaultsDeep=wc.defaultsDeep,xt.defer=qc.defer,xt.delay=qc.delay,xt.difference=pc.difference,xt.differenceBy=pc.differenceBy,xt.differenceWith=pc.differenceWith,xt.drop=pc.drop,xt.dropRight=pc.dropRight,xt.dropRightWhile=pc.dropRightWhile,xt.dropWhile=pc.dropWhile,xt.fill=pc.fill,xt.filter=vc.filter,xt.flatMap=vc.flatMap,xt.flatMapDeep=vc.flatMapDeep,xt.flatMapDepth=vc.flatMapDepth,xt.flatten=pc.flatten,xt.flattenDeep=pc.flattenDeep,xt.flattenDepth=pc.flattenDepth,xt.flip=qc.flip,xt.flow=xc.flow,xt.flowRight=xc.flowRight,xt.fromPairs=pc.fromPairs,xt.functions=wc.functions,xt.functionsIn=wc.functionsIn,xt.groupBy=vc.groupBy,xt.initial=pc.initial,xt.intersection=pc.intersection,xt.intersectionBy=pc.intersectionBy,xt.intersectionWith=pc.intersectionWith,xt.invert=wc.invert,xt.invertBy=wc.invertBy,xt.invokeMap=vc.invokeMap,xt.iteratee=xc.iteratee,xt.keyBy=vc.keyBy,xt.keys=De,xt.keysIn=wc.keysIn,xt.map=vc.map,xt.mapKeys=wc.mapKeys,xt.mapValues=wc.mapValues,xt.matches=xc.matches,xt.matchesProperty=xc.matchesProperty,xt.memoize=qc.memoize,xt.merge=wc.merge,xt.mergeWith=wc.mergeWith,xt.method=xc.method,xt.methodOf=xc.methodOf,xt.mixin=zc,xt.negate=Vl,xt.nthArg=xc.nthArg,xt.omit=wc.omit,xt.omitBy=wc.omitBy,xt.once=qc.once,xt.orderBy=vc.orderBy,xt.over=xc.over,xt.overArgs=qc.overArgs,xt.overEvery=xc.overEvery,xt.overSome=xc.overSome,xt.partial=qc.partial,xt.partialRight=qc.partialRight,xt.partition=vc.partition,xt.pick=wc.pick,xt.pickBy=wc.pickBy,xt.property=xc.property,xt.propertyOf=xc.propertyOf,xt.pull=pc.pull,xt.pullAll=pc.pullAll,xt.pullAllBy=pc.pullAllBy,xt.pullAllWith=pc.pullAllWith,xt.pullAt=pc.pullAt,xt.range=xc.range,xt.rangeRight=xc.rangeRight,xt.rearg=qc.rearg,xt.reject=vc.reject,xt.remove=pc.remove,xt.rest=qc.rest,xt.reverse=pc.reverse,xt.sampleSize=vc.sampleSize,xt.set=wc.set,xt.setWith=wc.setWith,xt.shuffle=vc.shuffle,xt.slice=pc.slice,xt.sortBy=vc.sortBy,xt.sortedUniq=pc.sortedUniq,xt.sortedUniqBy=pc.sortedUniqBy,xt.split=kc.split,xt.spread=qc.spread,xt.tail=pc.tail,xt.take=pc.take,xt.takeRight=pc.takeRight,xt.takeRightWhile=pc.takeRightWhile,xt.takeWhile=pc.takeWhile,xt.tap=yc.tap,xt.throttle=qc.throttle,xt.thru=Ra,xt.toArray=mc.toArray,xt.toPairs=wc.toPairs,xt.toPairsIn=wc.toPairsIn,xt.toPath=xc.toPath,xt.toPlainObject=mc.toPlainObject,xt.transform=wc.transform,xt.unary=qc.unary,xt.union=pc.union,xt.unionBy=pc.unionBy,xt.unionWith=pc.unionWith,xt.uniq=pc.uniq,xt.uniqBy=pc.uniqBy,xt.uniqWith=pc.uniqWith,xt.unset=wc.unset,xt.unzip=pc.unzip,xt.unzipWith=pc.unzipWith,xt.update=wc.update,xt.updateWith=wc.updateWith,xt.values=wc.values,xt.valuesIn=wc.valuesIn,xt.without=pc.without,xt.words=kc.words,xt.wrap=qc.wrap,xt.xor=pc.xor,xt.xorBy=pc.xorBy,xt.xorWith=pc.xorWith,xt.zip=pc.zip,xt.zipObject=pc.zipObject,xt.zipObjectDeep=pc.zipObjectDeep,xt.zipWith=pc.zipWith,xt.entries=wc.toPairs,xt.entriesIn=wc.toPairsIn,xt.extend=wc.assignIn,xt.extendWith=wc.assignInWith,zc(xt,xt),xt.add=gc.add,xt.attempt=xc.attempt,xt.camelCase=kc.camelCase,xt.capitalize=kc.capitalize,xt.ceil=gc.ceil,xt.clamp=function(t,e,n){return void 0===n&&(n=e,e=void 0),void 0!==n&&(n=(n=D(n))==n?n:0),void 0!==e&&(e=(e=D(e))==e?e:0),Ur(D(t),e,n)},xt.clone=mc.clone,xt.cloneDeep=mc.cloneDeep,xt.cloneDeepWith=mc.cloneDeepWith,xt.cloneWith=mc.cloneWith,xt.conformsTo=mc.conformsTo,xt.deburr=kc.deburr,xt.defaultTo=xc.defaultTo,xt.divide=gc.divide,xt.endsWith=kc.endsWith,xt.eq=mc.eq,xt.escape=kc.escape,xt.escapeRegExp=kc.escapeRegExp,xt.every=vc.every,xt.find=vc.find,xt.findIndex=pc.findIndex,xt.findKey=wc.findKey,xt.findLast=vc.findLast,xt.findLastIndex=pc.findLastIndex,xt.findLastKey=wc.findLastKey,xt.floor=gc.floor,xt.forEach=vc.forEach,xt.forEachRight=vc.forEachRight,xt.forIn=wc.forIn,xt.forInRight=wc.forInRight,xt.forOwn=wc.forOwn,xt.forOwnRight=wc.forOwnRight,xt.get=wc.get,xt.gt=mc.gt,xt.gte=mc.gte,xt.has=wc.has,xt.hasIn=wc.hasIn,xt.head=pc.head,xt.identity=F,xt.includes=vc.includes,xt.indexOf=pc.indexOf,xt.inRange=function(t,e,n){return e=V(e),void 0===n?(n=e,e=0):n=V(n),function(t,e,n){return t>=Fs(e,n)&&t<Ps(e,n)}(t=D(t),e,n)},xt.invoke=wc.invoke,xt.isArguments=mc.isArguments,xt.isArray=A,xt.isArrayBuffer=mc.isArrayBuffer,xt.isArrayLike=mc.isArrayLike,xt.isArrayLikeObject=mc.isArrayLikeObject,xt.isBoolean=mc.isBoolean,xt.isBuffer=mc.isBuffer,xt.isDate=mc.isDate,xt.isElement=mc.isElement,xt.isEmpty=mc.isEmpty,xt.isEqual=mc.isEqual,xt.isEqualWith=mc.isEqualWith,xt.isError=mc.isError,xt.isFinite=mc.isFinite,xt.isFunction=mc.isFunction,xt.isInteger=mc.isInteger,xt.isLength=mc.isLength,xt.isMap=mc.isMap,xt.isMatch=mc.isMatch,xt.isMatchWith=mc.isMatchWith,xt.isNaN=mc.isNaN,xt.isNative=mc.isNative,xt.isNil=mc.isNil,xt.isNull=mc.isNull,xt.isNumber=mc.isNumber,xt.isObject=$,xt.isObjectLike=mc.isObjectLike,xt.isPlainObject=mc.isPlainObject,xt.isRegExp=mc.isRegExp,xt.isSafeInteger=mc.isSafeInteger,xt.isSet=mc.isSet,xt.isString=mc.isString,xt.isSymbol=mc.isSymbol,xt.isTypedArray=mc.isTypedArray,xt.isUndefined=mc.isUndefined,xt.isWeakMap=mc.isWeakMap,xt.isWeakSet=mc.isWeakSet,xt.join=pc.join,xt.kebabCase=kc.kebabCase,xt.last=Ko,xt.lastIndexOf=pc.lastIndexOf,xt.lowerCase=kc.lowerCase,xt.lowerFirst=kc.lowerFirst,xt.lt=mc.lt,xt.lte=mc.lte,xt.max=gc.max,xt.maxBy=gc.maxBy,xt.mean=gc.mean,xt.meanBy=gc.meanBy,xt.min=gc.min,xt.minBy=gc.minBy,xt.stubArray=xc.stubArray,xt.stubFalse=xc.stubFalse,xt.stubObject=xc.stubObject,xt.stubString=xc.stubString,xt.stubTrue=xc.stubTrue,xt.multiply=gc.multiply,xt.nth=pc.nth,xt.noop=xc.noop,xt.now=bc,xt.pad=kc.pad,xt.padEnd=kc.padEnd,xt.padStart=kc.padStart,xt.parseInt=kc.parseInt,xt.random=function(t,e,n){if(n&&"boolean"!=typeof n&&he(t,e,n)&&(e=n=void 0),void 0===n&&("boolean"==typeof e?(n=e,e=void 0):"boolean"==typeof t&&(n=t,t=void 0)),void 0===t&&void 0===e?(t=0,e=1):(t=V(t),void 0===e?(e=t,t=0):e=V(e)),t>e){var r=t;t=e,e=r}if(n||t%1||e%1){var i=Uu();return Fu(t+i*(e-t+Pu("1e-"+((i+"").length-1))),e)}return Vu(t,e)},xt.reduce=vc.reduce,xt.reduceRight=vc.reduceRight,xt.repeat=kc.repeat,xt.replace=kc.replace,xt.result=wc.result,xt.round=gc.round,xt.sample=vc.sample,xt.size=vc.size,xt.snakeCase=kc.snakeCase,xt.some=vc.some,xt.sortedIndex=pc.sortedIndex,xt.sortedIndexBy=pc.sortedIndexBy,xt.sortedIndexOf=pc.sortedIndexOf,xt.sortedLastIndex=pc.sortedLastIndex,xt.sortedLastIndexBy=pc.sortedLastIndexBy,xt.sortedLastIndexOf=pc.sortedLastIndexOf,xt.startCase=kc.startCase,xt.startsWith=kc.startsWith,xt.subtract=gc.subtract,xt.sum=gc.sum,xt.sumBy=gc.sumBy,xt.template=kc.template,xt.times=xc.times,xt.toFinite=mc.toFinite,xt.toInteger=P,xt.toLength=mc.toLength,xt.toLower=kc.toLower,xt.toNumber=mc.toNumber,xt.toSafeInteger=mc.toSafeInteger,xt.toString=mc.toString,xt.toUpper=kc.toUpper,xt.trim=kc.trim,xt.trimEnd=kc.trimEnd,xt.trimStart=kc.trimStart,xt.truncate=kc.truncate,xt.unescape=kc.unescape,xt.uniqueId=xc.uniqueId,xt.upperCase=kc.upperCase,xt.upperFirst=kc.upperFirst,xt.each=vc.forEach,xt.eachRight=vc.forEachRight,xt.first=pc.head,zc(xt,(fc={},mo(xt,(function(t,e){_c.call(xt.prototype,e)||(fc[e]=t)})),fc),{chain:!1}),xt.VERSION="4.17.21",(xt.templateSettings=kc.templateSettings).imports._=xt,$t(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){xt[t].placeholder=xt})),$t(["drop","take"],(function(t,e){dt.prototype[t]=function(n){n=void 0===n?1:Nc(P(n),0);var r=this.__filtered__&&!e?new dt(this):this.clone();return r.__filtered__?r.__takeCount__=Lc(n,r.__takeCount__):r.__views__.push({size:Lc(n,Mc),type:t+(r.__dir__<0?"Right":"")}),r},dt.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}})),$t(["filter","map","takeWhile"],(function(t,e){var n=e+1,r=1==n||3==n;dt.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:fo(t),type:n}),e.__filtered__=e.__filtered__||r,e}})),$t(["head","last"],(function(t,e){var n="take"+(e?"Right":"");dt.prototype[t]=function(){return this[n](1).value()[0]}})),$t(["initial","tail"],(function(t,e){var n="drop"+(e?"":"Right");dt.prototype[t]=function(){return this.__filtered__?new dt(this):this[n](1)}})),dt.prototype.compact=function(){return this.filter(F)},dt.prototype.find=function(t){return this.filter(t).head()},dt.prototype.findLast=function(t){return this.reverse().find(t)},dt.prototype.invokeMap=ue((function(t,e){return"function"==typeof t?new dt(this):this.map((function(n){return cl(n,t,e)}))})),dt.prototype.reject=function(t){return this.filter(Vl(fo(t)))},dt.prototype.slice=function(t,e){t=P(t);var n=this;return n.__filtered__&&(t>0||e<0)?new dt(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),void 0!==e&&(n=(e=P(e))<0?n.dropRight(-e):n.take(e-t)),n)},dt.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},dt.prototype.toArray=function(){return this.take(Mc)},mo(dt.prototype,(function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),i=xt[r?"take"+("last"==e?"Right":""):e],o=r||/^find/.test(e);i&&(xt.prototype[e]=function(){var e=this.__wrapped__,s=r?[1]:arguments,l=e instanceof dt,u=s[0],a=l||A(e),c=function(t){var e=i.apply(xt,wn([t],s));return r&&h?e[0]:e};a&&n&&"function"==typeof u&&1!=u.length&&(l=a=!1);var h=this.__chain__,f=o&&!h,d=l&&!this.__actions__.length;if(!o&&a){e=d?e:new dt(this);var p=t.apply(e,s);return p.__actions__.push({func:Ra,args:[c],thisArg:void 0}),new gt(p,h)}return f&&d?t.apply(this,s):(p=this.thru(c),f?r?p.value()[0]:p.value():p)})})),$t(["pop","push","shift","sort","splice","unshift"],(function(t){var e=Ec[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);xt.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var i=this.value();return e.apply(A(i)?i:[],t)}return this[n]((function(n){return e.apply(A(n)?n:[],t)}))}})),mo(dt.prototype,(function(t,e){var n=xt[e];if(n){var r=n.name+"";_c.call(bt,r)||(bt[r]=[]),bt[r].push({name:e,func:n})}})),bt[Gt(void 0,2).name]=[{name:"wrapper",func:void 0}],dt.prototype.clone=function(){var t=new dt(this.__wrapped__);return t.__actions__=wt(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=wt(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=wt(this.__views__),t},dt.prototype.reverse=function(){if(this.__filtered__){var t=new dt(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},dt.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,n=A(t),r=e<0,i=n?t.length:0,o=function(t,e,n){for(var r=-1,i=n.length;++r<i;){var o=n[r],s=o.size;switch(o.type){case"drop":t+=s;break;case"dropRight":e-=s;break;case"take":e=Ac(e,t+s);break;case"takeRight":t=jc(t,e-s)}}return{start:t,end:e}}(0,i,this.__views__),s=o.start,l=o.end,u=l-s,a=r?l:s-1,c=this.__iteratees__,h=c.length,f=0,d=Oc(u,this.__takeCount__);if(!n||!r&&i==u&&d==u)return Ia(t,this.__actions__);var p=[];t:for(;u--&&f<d;){for(var v=-1,b=t[a+=e];++v<h;){var q=c[v],m=q.type,g=(0,q.iteratee)(b);if(2==m)b=g;else if(!g){if(1==m)continue t;break t}}p[f++]=b}return p}
|
|
2
|
+
/**
|
|
3
|
+
* @license
|
|
4
|
+
* Lodash (Custom Build) <https://lodash.com/>
|
|
5
|
+
* Build: `lodash modularize exports="es" -o ./`
|
|
6
|
+
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
7
|
+
* Released under MIT license <https://lodash.com/license>
|
|
8
|
+
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
9
|
+
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
10
|
+
*/,xt.prototype.at=yc.at,xt.prototype.chain=yc.wrapperChain,xt.prototype.commit=yc.commit,xt.prototype.next=yc.next,xt.prototype.plant=yc.plant,xt.prototype.reverse=yc.reverse,xt.prototype.toJSON=xt.prototype.valueOf=xt.prototype.value=yc.value,xt.prototype.first=xt.prototype.head,Tc&&(xt.prototype[Tc]=yc.toIterator);var Sc=(t=>(t[t.TYPE=3]="TYPE",t[t.LEVEL=12]="LEVEL",t[t.ATTRIBUTE=13]="ATTRIBUTE",t[t.BLOT=14]="BLOT",t[t.INLINE=7]="INLINE",t[t.BLOCK=11]="BLOCK",t[t.BLOCK_BLOT=10]="BLOCK_BLOT",t[t.INLINE_BLOT=6]="INLINE_BLOT",t[t.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",t[t.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",t[t.ANY=15]="ANY",t))(Sc||{});class $c{constructor(t,e,n={}){this.attrName=t,this.keyName=e,this.scope=null!=n.scope?n.scope&Sc.LEVEL|Sc.TYPE&Sc.ATTRIBUTE:Sc.ATTRIBUTE,null!=n.whitelist&&(this.whitelist=n.whitelist)}static keys(t){return Array.from(t.attributes).map((t=>t.name))}add(t,e){return!!this.canAdd(t,e)&&(t.setAttribute(this.keyName,e),!0)}canAdd(t,e){return null==this.whitelist||("string"==typeof e?this.whitelist.indexOf(e.replace(/["']/g,""))>-1:this.whitelist.indexOf(e)>-1)}remove(t){t.removeAttribute(this.keyName)}value(t){const e=t.getAttribute(this.keyName);return this.canAdd(t,e)&&e?e:""}}class Rc extends Error{constructor(t){super(t="[Parchment] "+t),this.message=t,this.name=this.constructor.name}}const Cc=class t{constructor(){this.attributes={},this.classes={},this.tags={},this.types={}}static find(t,e=!1){if(null==t)return null;if(this.blots.has(t))return this.blots.get(t)||null;if(e){let n=null;try{n=t.parentNode}catch{return null}return this.find(n,e)}return null}create(e,n,r){const i=this.query(n);if(null==i)throw new Rc(`Unable to create ${n} blot`);const o=i,s=n instanceof Node||n.nodeType===Node.TEXT_NODE?n:o.create(r),l=new o(e,s,r);return t.blots.set(l.domNode,l),l}find(e,n=!1){return t.find(e,n)}query(t,e=Sc.ANY){let n;return"string"==typeof t?n=this.types[t]||this.attributes[t]:t instanceof Text||t.nodeType===Node.TEXT_NODE?n=this.types.text:"number"==typeof t?t&Sc.LEVEL&Sc.BLOCK?n=this.types.block:t&Sc.LEVEL&Sc.INLINE&&(n=this.types.inline):t instanceof Element&&((t.getAttribute("class")||"").split(/\s+/).some((t=>(n=this.classes[t],!!n))),n=n||this.tags[t.tagName]),null==n?null:"scope"in n&&e&Sc.LEVEL&n.scope&&e&Sc.TYPE&n.scope?n:null}register(...t){return t.map((t=>{const e="blotName"in t,n="attrName"in t;if(!e&&!n)throw new Rc("Invalid definition");if(e&&"abstract"===t.blotName)throw new Rc("Cannot register abstract class");return this.types[e?t.blotName:n?t.attrName:void 0]=t,n?"string"==typeof t.keyName&&(this.attributes[t.keyName]=t):e&&(t.className&&(this.classes[t.className]=t),t.tagName&&(t.tagName=Array.isArray(t.tagName)?t.tagName.map((t=>t.toUpperCase())):t.tagName.toUpperCase(),(Array.isArray(t.tagName)?t.tagName:[t.tagName]).forEach((e=>{(null==this.tags[e]||null==t.className)&&(this.tags[e]=t)})))),t}))}};Cc.blots=new WeakMap;let Bc=Cc;function Ic(t,e){return(t.getAttribute("class")||"").split(/\s+/).filter((t=>0===t.indexOf(`${e}-`)))}const Dc=class extends $c{static keys(t){return(t.getAttribute("class")||"").split(/\s+/).map((t=>t.split("-").slice(0,-1).join("-")))}add(t,e){return!!this.canAdd(t,e)&&(this.remove(t),t.classList.add(`${this.keyName}-${e}`),!0)}remove(t){Ic(t,this.keyName).forEach((e=>{t.classList.remove(e)})),0===t.classList.length&&t.removeAttribute("class")}value(t){const e=(Ic(t,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(t,e)?e:""}};function Hc(t){const e=t.split("-"),n=e.slice(1).map((t=>t[0].toUpperCase()+t.slice(1))).join("");return e[0]+n}const Vc=class extends $c{static keys(t){return(t.getAttribute("style")||"").split(";").map((t=>t.split(":")[0].trim()))}add(t,e){return!!this.canAdd(t,e)&&(t.style[Hc(this.keyName)]=e,!0)}remove(t){t.style[Hc(this.keyName)]="",t.getAttribute("style")||t.removeAttribute("style")}value(t){const e=t.style[Hc(this.keyName)];return this.canAdd(t,e)?e:""}},Pc=class{constructor(t){this.attributes={},this.domNode=t,this.build()}attribute(t,e){e?t.add(this.domNode,e)&&(null!=t.value(this.domNode)?this.attributes[t.attrName]=t:delete this.attributes[t.attrName]):(t.remove(this.domNode),delete this.attributes[t.attrName])}build(){this.attributes={};const t=Bc.find(this.domNode);if(null==t)return;const e=$c.keys(this.domNode),n=Dc.keys(this.domNode),r=Vc.keys(this.domNode);e.concat(n).concat(r).forEach((e=>{const n=t.scroll.query(e,Sc.ATTRIBUTE);n instanceof $c&&(this.attributes[n.attrName]=n)}))}copy(t){Object.keys(this.attributes).forEach((e=>{const n=this.attributes[e].value(this.domNode);t.format(e,n)}))}move(t){this.copy(t),Object.keys(this.attributes).forEach((t=>{this.attributes[t].remove(this.domNode)})),this.attributes={}}values(){return Object.keys(this.attributes).reduce(((t,e)=>(t[e]=this.attributes[e].value(this.domNode),t)),{})}},Fc=class{constructor(t,e){this.scroll=t,this.domNode=e,Bc.blots.set(e,this),this.prev=null,this.next=null}static create(t){if(null==this.tagName)throw new Rc("Blot definition missing tagName");let e,n;return Array.isArray(this.tagName)?("string"==typeof t?(n=t.toUpperCase(),parseInt(n,10).toString()===n&&(n=parseInt(n,10))):"number"==typeof t&&(n=t),e="number"==typeof n?document.createElement(this.tagName[n-1]):n&&this.tagName.indexOf(n)>-1?document.createElement(n):document.createElement(this.tagName[0])):e=document.createElement(this.tagName),this.className&&e.classList.add(this.className),e}get statics(){return this.constructor}attach(){}clone(){const t=this.domNode.cloneNode(!1);return this.scroll.create(t)}detach(){null!=this.parent&&this.parent.removeChild(this),Bc.blots.delete(this.domNode)}deleteAt(t,e){this.isolate(t,e).remove()}formatAt(t,e,n,r){const i=this.isolate(t,e);if(null!=this.scroll.query(n,Sc.BLOT)&&r)i.wrap(n,r);else if(null!=this.scroll.query(n,Sc.ATTRIBUTE)){const t=this.scroll.create(this.statics.scope);i.wrap(t),t.format(n,r)}}insertAt(t,e,n){const r=null==n?this.scroll.create("text",e):this.scroll.create(e,n),i=this.split(t);this.parent.insertBefore(r,i||void 0)}isolate(t,e){const n=this.split(t);if(null==n)throw new Error("Attempt to isolate at end");return n.split(e),n}length(){return 1}offset(t=this.parent){return null==this.parent||this===t?0:this.parent.children.offset(this)+this.parent.offset(t)}optimize(t){this.statics.requiredContainer&&!(this.parent instanceof this.statics.requiredContainer)&&this.wrap(this.statics.requiredContainer.blotName)}remove(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()}replaceWith(t,e){const n="string"==typeof t?this.scroll.create(t,e):t;return null!=this.parent&&(this.parent.insertBefore(n,this.next||void 0),this.remove()),n}split(t,e){return 0===t?this:this.next}update(t,e){}wrap(t,e){const n="string"==typeof t?this.scroll.create(t,e):t;if(null!=this.parent&&this.parent.insertBefore(n,this.next||void 0),"function"!=typeof n.appendChild)throw new Rc(`Cannot wrap ${t}`);return n.appendChild(this),n}};Fc.blotName="abstract";let Uc=Fc;const Wc=class extends Uc{static value(t){return!0}index(t,e){return this.domNode===t||this.domNode.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(e,1):-1}position(t,e){let n=Array.from(this.parent.domNode.childNodes).indexOf(this.domNode);return t>0&&(n+=1),[this.parent.domNode,n]}value(){return{[this.statics.blotName]:this.statics.value(this.domNode)||!0}}};Wc.scope=Sc.INLINE_BLOT;const Zc=Wc;class Kc{constructor(){this.head=null,this.tail=null,this.length=0}append(...t){if(this.insertBefore(t[0],null),t.length>1){const e=t.slice(1);this.append(...e)}}at(t){const e=this.iterator();let n=e();for(;n&&t>0;)t-=1,n=e();return n}contains(t){const e=this.iterator();let n=e();for(;n;){if(n===t)return!0;n=e()}return!1}indexOf(t){const e=this.iterator();let n=e(),r=0;for(;n;){if(n===t)return r;r+=1,n=e()}return-1}insertBefore(t,e){null!=t&&(this.remove(t),t.next=e,null!=e?(t.prev=e.prev,null!=e.prev&&(e.prev.next=t),e.prev=t,e===this.head&&(this.head=t)):null!=this.tail?(this.tail.next=t,t.prev=this.tail,this.tail=t):(t.prev=null,this.head=this.tail=t),this.length+=1)}offset(t){let e=0,n=this.head;for(;null!=n;){if(n===t)return e;e+=n.length(),n=n.next}return-1}remove(t){this.contains(t)&&(null!=t.prev&&(t.prev.next=t.next),null!=t.next&&(t.next.prev=t.prev),t===this.head&&(this.head=t.next),t===this.tail&&(this.tail=t.prev),this.length-=1)}iterator(t=this.head){return()=>{const e=t;return null!=t&&(t=t.next),e}}find(t,e=!1){const n=this.iterator();let r=n();for(;r;){const i=r.length();if(t<i||e&&t===i&&(null==r.next||0!==r.next.length()))return[r,t];t-=i,r=n()}return[null,0]}forEach(t){const e=this.iterator();let n=e();for(;n;)t(n),n=e()}forEachAt(t,e,n){if(e<=0)return;const[r,i]=this.find(t);let o=t-i;const s=this.iterator(r);let l=s();for(;l&&o<t+e;){const r=l.length();t>o?n(l,t-o,Math.min(e,o+r-t)):n(l,0,Math.min(r,t+e-o)),o+=r,l=s()}}map(t){return this.reduce(((e,n)=>(e.push(t(n)),e)),[])}reduce(t,e){const n=this.iterator();let r=n();for(;r;)e=t(e,r),r=n();return e}}function Gc(t,e){const n=e.find(t);if(n)return n;try{return e.create(t)}catch{const n=e.create(Sc.INLINE);return Array.from(t.childNodes).forEach((t=>{n.domNode.appendChild(t)})),t.parentNode&&t.parentNode.replaceChild(n.domNode,t),n.attach(),n}}const Qc=class t extends Uc{constructor(t,e){super(t,e),this.uiNode=null,this.build()}appendChild(t){this.insertBefore(t)}attach(){super.attach(),this.children.forEach((t=>{t.attach()}))}attachUI(e){null!=this.uiNode&&this.uiNode.remove(),this.uiNode=e,t.uiClass&&this.uiNode.classList.add(t.uiClass),this.uiNode.setAttribute("contenteditable","false"),this.domNode.insertBefore(this.uiNode,this.domNode.firstChild)}build(){this.children=new Kc,Array.from(this.domNode.childNodes).filter((t=>t!==this.uiNode)).reverse().forEach((t=>{try{const e=Gc(t,this.scroll);this.insertBefore(e,this.children.head||void 0)}catch(t){if(t instanceof Rc)return;throw t}}))}deleteAt(t,e){if(0===t&&e===this.length())return this.remove();this.children.forEachAt(t,e,((t,e,n)=>{t.deleteAt(e,n)}))}descendant(e,n=0){const[r,i]=this.children.find(n);return null==e.blotName&&e(r)||null!=e.blotName&&r instanceof e?[r,i]:r instanceof t?r.descendant(e,i):[null,-1]}descendants(e,n=0,r=Number.MAX_VALUE){let i=[],o=r;return this.children.forEachAt(n,r,((n,r,s)=>{(null==e.blotName&&e(n)||null!=e.blotName&&n instanceof e)&&i.push(n),n instanceof t&&(i=i.concat(n.descendants(e,r,o))),o-=s})),i}detach(){this.children.forEach((t=>{t.detach()})),super.detach()}enforceAllowedChildren(){let e=!1;this.children.forEach((n=>{e||this.statics.allowedChildren.some((t=>n instanceof t))||(n.statics.scope===Sc.BLOCK_BLOT?(null!=n.next&&this.splitAfter(n),null!=n.prev&&this.splitAfter(n.prev),n.parent.unwrap(),e=!0):n instanceof t?n.unwrap():n.remove())}))}formatAt(t,e,n,r){this.children.forEachAt(t,e,((t,e,i)=>{t.formatAt(e,i,n,r)}))}insertAt(t,e,n){const[r,i]=this.children.find(t);if(r)r.insertAt(i,e,n);else{const t=null==n?this.scroll.create("text",e):this.scroll.create(e,n);this.appendChild(t)}}insertBefore(t,e){null!=t.parent&&t.parent.children.remove(t);let n=null;this.children.insertBefore(t,e||null),t.parent=this,null!=e&&(n=e.domNode),(this.domNode.parentNode!==t.domNode||this.domNode.nextSibling!==n)&&this.domNode.insertBefore(t.domNode,n),t.attach()}length(){return this.children.reduce(((t,e)=>t+e.length()),0)}moveChildren(t,e){this.children.forEach((n=>{t.insertBefore(n,e)}))}optimize(t){if(super.optimize(t),this.enforceAllowedChildren(),null!=this.uiNode&&this.uiNode!==this.domNode.firstChild&&this.domNode.insertBefore(this.uiNode,this.domNode.firstChild),0===this.children.length)if(null!=this.statics.defaultChild){const t=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(t)}else this.remove()}path(e,n=!1){const[r,i]=this.children.find(e,n),o=[[this,e]];return r instanceof t?o.concat(r.path(i,n)):(null!=r&&o.push([r,i]),o)}removeChild(t){this.children.remove(t)}replaceWith(e,n){const r="string"==typeof e?this.scroll.create(e,n):e;return r instanceof t&&this.moveChildren(r),super.replaceWith(r)}split(t,e=!1){if(!e){if(0===t)return this;if(t===this.length())return this.next}const n=this.clone();return this.parent&&this.parent.insertBefore(n,this.next||void 0),this.children.forEachAt(t,this.length(),((t,r)=>{const i=t.split(r,e);null!=i&&n.appendChild(i)})),n}splitAfter(t){const e=this.clone();for(;null!=t.next;)e.appendChild(t.next);return this.parent&&this.parent.insertBefore(e,this.next||void 0),e}unwrap(){this.parent&&this.moveChildren(this.parent,this.next||void 0),this.remove()}update(t,e){const n=[],r=[];t.forEach((t=>{t.target===this.domNode&&"childList"===t.type&&(n.push(...t.addedNodes),r.push(...t.removedNodes))})),r.forEach((t=>{if(null!=t.parentNode&&"IFRAME"!==t.tagName&&document.body.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)return;const e=this.scroll.find(t);null!=e&&(null==e.domNode.parentNode||e.domNode.parentNode===this.domNode)&&e.detach()})),n.filter((t=>t.parentNode===this.domNode&&t!==this.uiNode)).sort(((t,e)=>t===e?0:t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1)).forEach((t=>{let e=null;null!=t.nextSibling&&(e=this.scroll.find(t.nextSibling));const n=Gc(t,this.scroll);(n.next!==e||null==n.next)&&(null!=n.parent&&n.parent.removeChild(this),this.insertBefore(n,e||void 0))})),this.enforceAllowedChildren()}};Qc.uiClass="";const Yc=Qc,Jc=class t extends Yc{static create(t){return super.create(t)}static formats(e,n){const r=n.query(t.blotName);if(null==r||e.tagName!==r.tagName){if("string"==typeof this.tagName)return!0;if(Array.isArray(this.tagName))return e.tagName.toLowerCase()}}constructor(t,e){super(t,e),this.attributes=new Pc(this.domNode)}format(e,n){if(e!==this.statics.blotName||n){const t=this.scroll.query(e,Sc.INLINE);if(null==t)return;t instanceof $c?this.attributes.attribute(t,n):n&&(e!==this.statics.blotName||this.formats()[e]!==n)&&this.replaceWith(e,n)}else this.children.forEach((e=>{e instanceof t||(e=e.wrap(t.blotName,!0)),this.attributes.copy(e)})),this.unwrap()}formats(){const t=this.attributes.values(),e=this.statics.formats(this.domNode,this.scroll);return null!=e&&(t[this.statics.blotName]=e),t}formatAt(t,e,n,r){null!=this.formats()[n]||this.scroll.query(n,Sc.ATTRIBUTE)?this.isolate(t,e).format(n,r):super.formatAt(t,e,n,r)}optimize(e){super.optimize(e);const n=this.formats();if(0===Object.keys(n).length)return this.unwrap();const r=this.next;r instanceof t&&r.prev===this&&function(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const n in t)if(t[n]!==e[n])return!1;return!0}(n,r.formats())&&(r.moveChildren(this),r.remove())}replaceWith(t,e){const n=super.replaceWith(t,e);return this.attributes.copy(n),n}update(t,e){super.update(t,e),t.some((t=>t.target===this.domNode&&"attributes"===t.type))&&this.attributes.build()}wrap(e,n){const r=super.wrap(e,n);return r instanceof t&&this.attributes.move(r),r}};Jc.allowedChildren=[Jc,Zc],Jc.blotName="inline",Jc.scope=Sc.INLINE_BLOT,Jc.tagName="SPAN";const Xc=Jc,th=class t extends Yc{static create(t){return super.create(t)}static formats(e,n){const r=n.query(t.blotName);if(null==r||e.tagName!==r.tagName){if("string"==typeof this.tagName)return!0;if(Array.isArray(this.tagName))return e.tagName.toLowerCase()}}constructor(t,e){super(t,e),this.attributes=new Pc(this.domNode)}format(e,n){const r=this.scroll.query(e,Sc.BLOCK);null!=r&&(r instanceof $c?this.attributes.attribute(r,n):e!==this.statics.blotName||n?n&&(e!==this.statics.blotName||this.formats()[e]!==n)&&this.replaceWith(e,n):this.replaceWith(t.blotName))}formats(){const t=this.attributes.values(),e=this.statics.formats(this.domNode,this.scroll);return null!=e&&(t[this.statics.blotName]=e),t}formatAt(t,e,n,r){null!=this.scroll.query(n,Sc.BLOCK)?this.format(n,r):super.formatAt(t,e,n,r)}insertAt(t,e,n){if(null==n||null!=this.scroll.query(e,Sc.INLINE))super.insertAt(t,e,n);else{const r=this.split(t);if(null==r)throw new Error("Attempt to insertAt after block boundaries");{const t=this.scroll.create(e,n);r.parent.insertBefore(t,r)}}}replaceWith(t,e){const n=super.replaceWith(t,e);return this.attributes.copy(n),n}update(t,e){super.update(t,e),t.some((t=>t.target===this.domNode&&"attributes"===t.type))&&this.attributes.build()}};th.blotName="block",th.scope=Sc.BLOCK_BLOT,th.tagName="P",th.allowedChildren=[Xc,th,Zc];const eh=th,nh=class extends Yc{checkMerge(){return null!==this.next&&this.next.statics.blotName===this.statics.blotName}deleteAt(t,e){super.deleteAt(t,e),this.enforceAllowedChildren()}formatAt(t,e,n,r){super.formatAt(t,e,n,r),this.enforceAllowedChildren()}insertAt(t,e,n){super.insertAt(t,e,n),this.enforceAllowedChildren()}optimize(t){super.optimize(t),this.children.length>0&&null!=this.next&&this.checkMerge()&&(this.next.moveChildren(this),this.next.remove())}};nh.blotName="container",nh.scope=Sc.BLOCK_BLOT;const rh=nh,ih=class extends Zc{static formats(t,e){}format(t,e){super.formatAt(0,this.length(),t,e)}formatAt(t,e,n,r){0===t&&e===this.length()?this.format(n,r):super.formatAt(t,e,n,r)}formats(){return this.statics.formats(this.domNode,this.scroll)}},oh={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},sh=class extends Yc{constructor(t,e){super(null,e),this.registry=t,this.scroll=this,this.build(),this.observer=new MutationObserver((t=>{this.update(t)})),this.observer.observe(this.domNode,oh),this.attach()}create(t,e){return this.registry.create(this,t,e)}find(t,e=!1){const n=this.registry.find(t,e);return n?n.scroll===this?n:e?this.find(n.scroll.domNode.parentNode,!0):null:null}query(t,e=Sc.ANY){return this.registry.query(t,e)}register(...t){return this.registry.register(...t)}build(){null!=this.scroll&&super.build()}detach(){super.detach(),this.observer.disconnect()}deleteAt(t,e){this.update(),0===t&&e===this.length()?this.children.forEach((t=>{t.remove()})):super.deleteAt(t,e)}formatAt(t,e,n,r){this.update(),super.formatAt(t,e,n,r)}insertAt(t,e,n){this.update(),super.insertAt(t,e,n)}optimize(t=[],e={}){super.optimize(e);const n=e.mutationsMap||new WeakMap;let r=Array.from(this.observer.takeRecords());for(;r.length>0;)t.push(r.pop());const i=(t,e=!0)=>{null==t||t===this||null!=t.domNode.parentNode&&(n.has(t.domNode)||n.set(t.domNode,[]),e&&i(t.parent))},o=t=>{n.has(t.domNode)&&(t instanceof Yc&&t.children.forEach(o),n.delete(t.domNode),t.optimize(e))};let s=t;for(let e=0;s.length>0;e+=1){if(e>=100)throw new Error("[Parchment] Maximum optimize iterations reached");for(s.forEach((t=>{const e=this.find(t.target,!0);null!=e&&(e.domNode===t.target&&("childList"===t.type?(i(this.find(t.previousSibling,!1)),Array.from(t.addedNodes).forEach((t=>{const e=this.find(t,!1);i(e,!1),e instanceof Yc&&e.children.forEach((t=>{i(t,!1)}))}))):"attributes"===t.type&&i(e.prev)),i(e))})),this.children.forEach(o),s=Array.from(this.observer.takeRecords()),r=s.slice();r.length>0;)t.push(r.pop())}}update(t,e={}){t=t||this.observer.takeRecords();const n=new WeakMap;t.map((t=>{const e=this.find(t.target,!0);return null==e?null:n.has(e.domNode)?(n.get(e.domNode).push(t),null):(n.set(e.domNode,[t]),e)})).forEach((t=>{null!=t&&t!==this&&n.has(t.domNode)&&t.update(n.get(t.domNode)||[],e)})),e.mutationsMap=n,n.has(this.domNode)&&super.update(n.get(this.domNode),e),this.optimize(t,e)}};sh.blotName="scroll",sh.defaultChild=eh,sh.allowedChildren=[eh,rh],sh.scope=Sc.BLOCK_BLOT,sh.tagName="DIV";const lh=sh,uh=class t extends Zc{static create(t){return document.createTextNode(t)}static value(t){return t.data}constructor(t,e){super(t,e),this.text=this.statics.value(this.domNode)}deleteAt(t,e){this.domNode.data=this.text=this.text.slice(0,t)+this.text.slice(t+e)}index(t,e){return this.domNode===t?e:-1}insertAt(t,e,n){null==n?(this.text=this.text.slice(0,t)+e+this.text.slice(t),this.domNode.data=this.text):super.insertAt(t,e,n)}length(){return this.text.length}optimize(e){super.optimize(e),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof t&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())}position(t,e=!1){return[this.domNode,t]}split(t,e=!1){if(!e){if(0===t)return this;if(t===this.length())return this.next}const n=this.scroll.create(this.domNode.splitText(t));return this.parent.insertBefore(n,this.next||void 0),this.text=this.statics.value(this.domNode),n}update(t,e){t.some((t=>"characterData"===t.type&&t.target===this.domNode))&&(this.text=this.statics.value(this.domNode))}value(){return this.text}};uh.blotName="text",uh.scope=Sc.INLINE_BLOT;const ah=uh;var ch=Object.freeze({__proto__:null,Attributor:$c,AttributorStore:Pc,BlockBlot:eh,ClassAttributor:Dc,ContainerBlot:rh,EmbedBlot:ih,InlineBlot:Xc,LeafBlot:Zc,ParentBlot:Yc,Registry:Bc,Scope:Sc,ScrollBlot:lh,StyleAttributor:Vc,TextBlot:ah}),hh="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function fh(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var dh,ph,vh={exports:{}};var bh,qh={exports:{}};function mh(){return bh||(bh=1,function(t,e){var n="__lodash_hash_undefined__",r=9007199254740991,i="[object Arguments]",o="[object Boolean]",s="[object Date]",l="[object Function]",u="[object GeneratorFunction]",a="[object Map]",c="[object Number]",h="[object Object]",f="[object Promise]",d="[object RegExp]",p="[object Set]",v="[object String]",b="[object Symbol]",q="[object WeakMap]",m="[object ArrayBuffer]",g="[object DataView]",w="[object Float32Array]",y="[object Float64Array]",k="[object Int8Array]",x="[object Int16Array]",j="[object Int32Array]",A="[object Uint8Array]",O="[object Uint8ClampedArray]",M="[object Uint16Array]",E="[object Uint32Array]",_=/\w*$/,T=/^\[object .+?Constructor\]$/,N=/^(?:0|[1-9]\d*)$/,L={};L[i]=L["[object Array]"]=L[m]=L[g]=L[o]=L[s]=L[w]=L[y]=L[k]=L[x]=L[j]=L[a]=L[c]=L[h]=L[d]=L[p]=L[v]=L[b]=L[A]=L[O]=L[M]=L[E]=!0,L["[object Error]"]=L[l]=L[q]=!1;var z="object"==typeof self&&self&&self.Object===Object&&self,S="object"==typeof hh&&hh&&hh.Object===Object&&hh||z||Function("return this")(),$=e&&!e.nodeType&&e,R=$&&t&&!t.nodeType&&t,C=R&&R.exports===$;function B(t,e){return t.set(e[0],e[1]),t}function I(t,e){return t.add(e),t}function D(t,e,n){for(var r=-1,i=t?t.length:0;++r<i;)n=e(n,t[r],r,t);return n}function H(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}function V(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}function P(t,e){return function(n){return t(e(n))}}function F(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}var U=Array.prototype,W=Function.prototype,Z=Object.prototype,K=S["__core-js_shared__"],G=function(){var t=/[^.]+$/.exec(K&&K.keys&&K.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),Q=W.toString,Y=Z.hasOwnProperty,J=Z.toString,X=RegExp("^"+Q.call(Y).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),tt=C?S.Buffer:void 0,et=S.Symbol,nt=S.Uint8Array,rt=P(Object.getPrototypeOf,Object),it=Object.create,ot=Z.propertyIsEnumerable,st=U.splice,lt=Object.getOwnPropertySymbols,ut=tt?tt.isBuffer:void 0,at=P(Object.keys,Object),ct=zt(S,"DataView"),ht=zt(S,"Map"),ft=zt(S,"Promise"),dt=zt(S,"Set"),pt=zt(S,"WeakMap"),vt=zt(Object,"create"),bt=Bt(ct),qt=Bt(ht),mt=Bt(ft),gt=Bt(dt),wt=Bt(pt),yt=et?et.prototype:void 0,kt=yt?yt.valueOf:void 0;function xt(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function jt(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function At(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Ot(t){this.__data__=new jt(t)}function Mt(t,e,n){var r=t[e];Y.call(t,e)&&It(r,n)&&(void 0!==n||e in t)||(t[e]=n)}function Et(t,e){for(var n=t.length;n--;)if(It(t[n][0],e))return n;return-1}function _t(t,e,n,r,f,q,T){var N;if(r&&(N=q?r(t,f,q,T):r(t)),void 0!==N)return N;if(!Ft(t))return t;var z=Dt(t);if(z){if(N=function(t){var e=t.length,n=t.constructor(e);return e&&"string"==typeof t[0]&&Y.call(t,"index")&&(n.index=t.index,n.input=t.input),n}(t),!e)return function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}(t,N)}else{var S=$t(t),$=S==l||S==u;if(Vt(t))return function(t,e){if(e)return t.slice();var n=new t.constructor(t.length);return t.copy(n),n}(t,e);if(S==h||S==i||$&&!q){if(H(t))return q?t:{};if(N=function(t){return"function"!=typeof t.constructor||Ct(t)?{}:Ft(e=rt(t))?it(e):{};var e}($?{}:t),!e)return function(t,e){return Nt(t,St(t),e)}(t,function(t,e){return t&&Nt(e,Ut(e),t)}(N,t))}else{if(!L[S])return q?t:{};N=function(t,e,n,r){var i=t.constructor;switch(e){case m:return Tt(t);case o:case s:return new i(+t);case g:return function(t,e){var n=e?Tt(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,r);case w:case y:case k:case x:case j:case A:case O:case M:case E:return function(t,e){var n=e?Tt(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}(t,r);case a:return function(t,e,n){return D(e?n(V(t),!0):V(t),B,new t.constructor)}(t,r,n);case c:case v:return new i(t);case d:return function(t){var e=new t.constructor(t.source,_.exec(t));return e.lastIndex=t.lastIndex,e}(t);case p:return function(t,e,n){return D(e?n(F(t),!0):F(t),I,new t.constructor)}(t,r,n);case b:return kt?Object(kt.call(t)):{}}}(t,S,_t,e)}}T||(T=new Ot);var R=T.get(t);if(R)return R;if(T.set(t,N),!z)var C=n?function(t){return function(t,e,n){var r=e(t);return Dt(t)?r:function(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}(r,n(t))}(t,Ut,St)}(t):Ut(t);return function(t,e){for(var n=-1,r=t?t.length:0;++n<r&&!1!==e(t[n],n););}(C||t,(function(i,o){C&&(i=t[o=i]),Mt(N,o,_t(i,e,n,r,o,t,T))})),N}function Tt(t){var e=new t.constructor(t.byteLength);return new nt(e).set(new nt(t)),e}function Nt(t,e,n){n||(n={});for(var r=-1,i=e.length;++r<i;){var o=e[r];Mt(n,o,t[o])}return n}function Lt(t,e){var n,r,i=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof e?"string":"hash"]:i.map}function zt(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return function(t){return!(!Ft(t)||function(t){return!!G&&G in t}(t))&&(Pt(t)||H(t)?X:T).test(Bt(t))}(n)?n:void 0}xt.prototype.clear=function(){this.__data__=vt?vt(null):{}},xt.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},xt.prototype.get=function(t){var e=this.__data__;if(vt){var r=e[t];return r===n?void 0:r}return Y.call(e,t)?e[t]:void 0},xt.prototype.has=function(t){var e=this.__data__;return vt?void 0!==e[t]:Y.call(e,t)},xt.prototype.set=function(t,e){return this.__data__[t]=vt&&void 0===e?n:e,this},jt.prototype.clear=function(){this.__data__=[]},jt.prototype.delete=function(t){var e=this.__data__,n=Et(e,t);return!(n<0||(n==e.length-1?e.pop():st.call(e,n,1),0))},jt.prototype.get=function(t){var e=this.__data__,n=Et(e,t);return n<0?void 0:e[n][1]},jt.prototype.has=function(t){return Et(this.__data__,t)>-1},jt.prototype.set=function(t,e){var n=this.__data__,r=Et(n,t);return r<0?n.push([t,e]):n[r][1]=e,this},At.prototype.clear=function(){this.__data__={hash:new xt,map:new(ht||jt),string:new xt}},At.prototype.delete=function(t){return Lt(this,t).delete(t)},At.prototype.get=function(t){return Lt(this,t).get(t)},At.prototype.has=function(t){return Lt(this,t).has(t)},At.prototype.set=function(t,e){return Lt(this,t).set(t,e),this},Ot.prototype.clear=function(){this.__data__=new jt},Ot.prototype.delete=function(t){return this.__data__.delete(t)},Ot.prototype.get=function(t){return this.__data__.get(t)},Ot.prototype.has=function(t){return this.__data__.has(t)},Ot.prototype.set=function(t,e){var n=this.__data__;if(n instanceof jt){var r=n.__data__;if(!ht||r.length<199)return r.push([t,e]),this;n=this.__data__=new At(r)}return n.set(t,e),this};var St=lt?P(lt,Object):function(){return[]},$t=function(t){return J.call(t)};function Rt(t,e){return!!(e=null==e?r:e)&&("number"==typeof t||N.test(t))&&t>-1&&t%1==0&&t<e}function Ct(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Z)}function Bt(t){if(null!=t){try{return Q.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function It(t,e){return t===e||t!=t&&e!=e}(ct&&$t(new ct(new ArrayBuffer(1)))!=g||ht&&$t(new ht)!=a||ft&&$t(ft.resolve())!=f||dt&&$t(new dt)!=p||pt&&$t(new pt)!=q)&&($t=function(t){var e=J.call(t),n=e==h?t.constructor:void 0,r=n?Bt(n):void 0;if(r)switch(r){case bt:return g;case qt:return a;case mt:return f;case gt:return p;case wt:return q}return e});var Dt=Array.isArray;function Ht(t){return null!=t&&function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=r}(t.length)&&!Pt(t)}var Vt=ut||function(){return!1};function Pt(t){var e=Ft(t)?J.call(t):"";return e==l||e==u}function Ft(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function Ut(t){return Ht(t)?function(t){var e=Dt(t)||function(t){return function(t){return function(t){return!!t&&"object"==typeof t}(t)&&Ht(t)}(t)&&Y.call(t,"callee")&&(!ot.call(t,"callee")||J.call(t)==i)}(t)?function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}(t.length,String):[],n=e.length,r=!!n;for(var o in t)!Y.call(t,o)||r&&("length"==o||Rt(o,n))||e.push(o);return e}(t):function(t){if(!Ct(t))return at(t);var e=[];for(var n in Object(t))Y.call(t,n)&&"constructor"!=n&&e.push(n);return e}(t)}t.exports=function(t){return _t(t,!0,!0)}}(qh,qh.exports)),qh.exports}var gh,wh={exports:{}};function yh(){return gh||(gh=1,function(t,e){var n="__lodash_hash_undefined__",r=9007199254740991,i="[object Arguments]",o="[object Array]",s="[object Boolean]",l="[object Date]",u="[object Error]",a="[object Function]",c="[object Map]",h="[object Number]",f="[object Object]",d="[object Promise]",p="[object RegExp]",v="[object Set]",b="[object String]",q="[object WeakMap]",m="[object ArrayBuffer]",g="[object DataView]",w=/^\[object .+?Constructor\]$/,y=/^(?:0|[1-9]\d*)$/,k={};k["[object Float32Array]"]=k["[object Float64Array]"]=k["[object Int8Array]"]=k["[object Int16Array]"]=k["[object Int32Array]"]=k["[object Uint8Array]"]=k["[object Uint8ClampedArray]"]=k["[object Uint16Array]"]=k["[object Uint32Array]"]=!0,k[i]=k[o]=k[m]=k[s]=k[g]=k[l]=k[u]=k[a]=k[c]=k[h]=k[f]=k[p]=k[v]=k[b]=k[q]=!1;var x="object"==typeof hh&&hh&&hh.Object===Object&&hh,j="object"==typeof self&&self&&self.Object===Object&&self,A=x||j||Function("return this")(),O=e&&!e.nodeType&&e,M=O&&t&&!t.nodeType&&t,E=M&&M.exports===O,_=E&&x.process,T=function(){try{return _&&_.binding&&_.binding("util")}catch(t){}}(),N=T&&T.isTypedArray;function L(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}function z(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}function S(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}var $=Array.prototype,R=Object.prototype,C=A["__core-js_shared__"],B=Function.prototype.toString,I=R.hasOwnProperty,D=function(){var t=/[^.]+$/.exec(C&&C.keys&&C.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),H=R.toString,V=RegExp("^"+B.call(I).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),P=E?A.Buffer:void 0,F=A.Symbol,U=A.Uint8Array,W=R.propertyIsEnumerable,Z=$.splice,K=F?F.toStringTag:void 0,G=Object.getOwnPropertySymbols,Q=P?P.isBuffer:void 0,Y=function(t,e){return function(n){return t(e(n))}}(Object.keys,Object),J=xt(A,"DataView"),X=xt(A,"Map"),tt=xt(A,"Promise"),et=xt(A,"Set"),nt=xt(A,"WeakMap"),rt=xt(Object,"create"),it=Mt(J),ot=Mt(X),st=Mt(tt),lt=Mt(et),ut=Mt(nt),at=F?F.prototype:void 0,ct=at?at.valueOf:void 0;function ht(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function ft(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function dt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function pt(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new dt;++e<n;)this.add(t[e])}function vt(t){var e=this.__data__=new ft(t);this.size=e.size}function bt(t,e){for(var n=t.length;n--;)if(Et(t[n][0],e))return n;return-1}function qt(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":K&&K in Object(t)?function(t){var e=I.call(t,K),n=t[K];try{t[K]=void 0;var r=!0}catch(t){}var i=H.call(t);return r&&(e?t[K]=n:delete t[K]),i}(t):function(t){return H.call(t)}(t)}function mt(t){return $t(t)&&qt(t)==i}function gt(t,e,n,r,a){return t===e||(null==t||null==e||!$t(t)&&!$t(e)?t!=t&&e!=e:function(t,e,n,r,a,d){var q=Tt(t),w=Tt(e),y=q?o:At(t),k=w?o:At(e),x=(y=y==i?f:y)==f,j=(k=k==i?f:k)==f,A=y==k;if(A&&Nt(t)){if(!Nt(e))return!1;q=!0,x=!1}if(A&&!x)return d||(d=new vt),q||Rt(t)?wt(t,e,n,r,a,d):function(t,e,n,r,i,o,a){switch(n){case g:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case m:return!(t.byteLength!=e.byteLength||!o(new U(t),new U(e)));case s:case l:case h:return Et(+t,+e);case u:return t.name==e.name&&t.message==e.message;case p:case b:return t==e+"";case c:var f=z;case v:if(f||(f=S),t.size!=e.size&&!(1&r))return!1;var d=a.get(t);if(d)return d==e;r|=2,a.set(t,e);var q=wt(f(t),f(e),r,i,o,a);return a.delete(t),q;case"[object Symbol]":if(ct)return ct.call(t)==ct.call(e)}return!1}(t,e,y,n,r,a,d);if(!(1&n)){var O=x&&I.call(t,"__wrapped__"),M=j&&I.call(e,"__wrapped__");if(O||M){var E=O?t.value():t,_=M?e.value():e;return d||(d=new vt),a(E,_,n,r,d)}}return!!A&&(d||(d=new vt),function(t,e,n,r,i,o){var s=1&n,l=yt(t),u=l.length;if(u!=yt(e).length&&!s)return!1;for(var a=u;a--;){var c=l[a];if(!(s?c in e:I.call(e,c)))return!1}var h=o.get(t);if(h&&o.get(e))return h==e;var f=!0;o.set(t,e),o.set(e,t);for(var d=s;++a<u;){var p=t[c=l[a]],v=e[c];if(r)var b=s?r(v,p,c,e,t,o):r(p,v,c,t,e,o);if(!(void 0===b?p===v||i(p,v,n,r,o):b)){f=!1;break}d||(d="constructor"==c)}if(f&&!d){var q=t.constructor,m=e.constructor;q==m||!("constructor"in t)||!("constructor"in e)||"function"==typeof q&&q instanceof q&&"function"==typeof m&&m instanceof m||(f=!1)}return o.delete(t),o.delete(e),f}(t,e,n,r,a,d))}(t,e,n,r,gt,a))}function wt(t,e,n,r,i,o){var s=1&n,l=t.length,u=e.length;if(l!=u&&!(s&&u>l))return!1;var a=o.get(t);if(a&&o.get(e))return a==e;var c=-1,h=!0,f=2&n?new pt:void 0;for(o.set(t,e),o.set(e,t);++c<l;){var d=t[c],p=e[c];if(r)var v=s?r(p,d,c,e,t,o):r(d,p,c,t,e,o);if(void 0!==v){if(v)continue;h=!1;break}if(f){if(!L(e,(function(t,e){if(!f.has(e)&&(d===t||i(d,t,n,r,o)))return f.push(e)}))){h=!1;break}}else if(d!==p&&!i(d,p,n,r,o)){h=!1;break}}return o.delete(t),o.delete(e),h}function yt(t){return function(t,e,n){var r=e(t);return Tt(t)?r:function(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}(r,n(t))}(t,Ct,jt)}function kt(t,e){var n,r,i=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof e?"string":"hash"]:i.map}function xt(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return function(t){return!(!St(t)||function(t){return!!D&&D in t}(t))&&(Lt(t)?V:w).test(Mt(t))}(n)?n:void 0}ht.prototype.clear=function(){this.__data__=rt?rt(null):{},this.size=0},ht.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},ht.prototype.get=function(t){var e=this.__data__;if(rt){var r=e[t];return r===n?void 0:r}return I.call(e,t)?e[t]:void 0},ht.prototype.has=function(t){var e=this.__data__;return rt?void 0!==e[t]:I.call(e,t)},ht.prototype.set=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=rt&&void 0===e?n:e,this},ft.prototype.clear=function(){this.__data__=[],this.size=0},ft.prototype.delete=function(t){var e=this.__data__,n=bt(e,t);return!(n<0||(n==e.length-1?e.pop():Z.call(e,n,1),--this.size,0))},ft.prototype.get=function(t){var e=this.__data__,n=bt(e,t);return n<0?void 0:e[n][1]},ft.prototype.has=function(t){return bt(this.__data__,t)>-1},ft.prototype.set=function(t,e){var n=this.__data__,r=bt(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this},dt.prototype.clear=function(){this.size=0,this.__data__={hash:new ht,map:new(X||ft),string:new ht}},dt.prototype.delete=function(t){var e=kt(this,t).delete(t);return this.size-=e?1:0,e},dt.prototype.get=function(t){return kt(this,t).get(t)},dt.prototype.has=function(t){return kt(this,t).has(t)},dt.prototype.set=function(t,e){var n=kt(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this},pt.prototype.add=pt.prototype.push=function(t){return this.__data__.set(t,n),this},pt.prototype.has=function(t){return this.__data__.has(t)},vt.prototype.clear=function(){this.__data__=new ft,this.size=0},vt.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},vt.prototype.get=function(t){return this.__data__.get(t)},vt.prototype.has=function(t){return this.__data__.has(t)},vt.prototype.set=function(t,e){var n=this.__data__;if(n instanceof ft){var r=n.__data__;if(!X||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new dt(r)}return n.set(t,e),this.size=n.size,this};var jt=G?function(t){return null==t?[]:(t=Object(t),function(e){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var s=e[n];W.call(t,s)&&(o[i++]=s)}return o}(G(t)))}:function(){return[]},At=qt;function Ot(t,e){return!!(e=null==e?r:e)&&("number"==typeof t||y.test(t))&&t>-1&&t%1==0&&t<e}function Mt(t){if(null!=t){try{return B.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function Et(t,e){return t===e||t!=t&&e!=e}(J&&At(new J(new ArrayBuffer(1)))!=g||X&&At(new X)!=c||tt&&At(tt.resolve())!=d||et&&At(new et)!=v||nt&&At(new nt)!=q)&&(At=function(t){var e=qt(t),n=e==f?t.constructor:void 0,r=n?Mt(n):"";if(r)switch(r){case it:return g;case ot:return c;case st:return d;case lt:return v;case ut:return q}return e});var _t=mt(function(){return arguments}())?mt:function(t){return $t(t)&&I.call(t,"callee")&&!W.call(t,"callee")},Tt=Array.isArray,Nt=Q||function(){return!1};function Lt(t){if(!St(t))return!1;var e=qt(t);return e==a||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}function zt(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=r}function St(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function $t(t){return null!=t&&"object"==typeof t}var Rt=N?function(t){return function(e){return t(e)}}(N):function(t){return $t(t)&&zt(t.length)&&!!k[qt(t)]};function Ct(t){return null!=(e=t)&&zt(e.length)&&!Lt(e)?function(t){var e=Tt(t),n=!e&&_t(t),r=!e&&!n&&Nt(t),i=!e&&!n&&!r&&Rt(t),o=e||n||r||i,s=o?function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}(t.length,String):[],l=s.length;for(var u in t)!I.call(t,u)||o&&("length"==u||r&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||Ot(u,l))||s.push(u);return s}(t):function(t){if((e=t)!==("function"==typeof(n=e&&e.constructor)&&n.prototype||R))return Y(t);var e,n,r=[];for(var i in Object(t))I.call(t,i)&&"constructor"!=i&&r.push(i);return r}(t);var e}t.exports=function(t,e){return gt(t,e)}}(wh,wh.exports)),wh.exports}var kh,xh,jh={},Ah={};function Oh(){return xh||(xh=1,Object.defineProperty(Ah,"__esModule",{value:!0}),function(t){t.length=function(t){return"number"==typeof t.delete?t.delete:"number"==typeof t.retain?t.retain:"object"==typeof t.retain&&null!==t.retain?1:"string"==typeof t.insert?t.insert.length:1}}(t||(t={})),Ah.default=t),Ah;var t}var Mh,Eh,_h={},Th=(Eh||(Eh=1,function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.AttributeMap=e.OpIterator=e.Op=void 0;const n=function(){if(ph)return dh;ph=1;var t=-1;function e(f,d,p,v,q){if(f===d)return f?[[0,f]]:[];if(null!=p){var m=function(t,e,n){var r="number"==typeof n?{index:n,length:0}:n.oldRange,i="number"==typeof n?null:n.newRange,o=t.length,s=e.length;if(0===r.length&&(null===i||0===i.length)){var l=r.index,u=t.slice(0,l),a=t.slice(l),c=i?i.index:null,h=l+s-o;if((null===c||c===h)&&!(h<0||h>s)){var f=e.slice(0,h);if((v=e.slice(h))===a){var d=Math.min(l,h);if((m=u.slice(0,d))===(w=f.slice(0,d)))return b(m,u.slice(d),f.slice(d),a)}}if(null===c||c===l){var p=l,v=(f=e.slice(0,p),e.slice(p));if(f===u){var q=Math.min(o-p,s-p);if((g=a.slice(a.length-q))===(y=v.slice(v.length-q)))return b(u,a.slice(0,a.length-q),v.slice(0,v.length-q),g)}}}if(r.length>0&&i&&0===i.length){var m=t.slice(0,r.index),g=t.slice(r.index+r.length);if(!(s<(d=m.length)+(q=g.length))){var w=e.slice(0,d),y=e.slice(s-q);if(m===w&&g===y)return b(m,t.slice(d,o-q),e.slice(d,s-q),g)}}return null}(f,d,p);if(m)return m}var g=r(f,d),w=f.substring(0,g);g=o(f=f.substring(g),d=d.substring(g));var y=f.substring(f.length-g),k=function(i,s){var l;if(!i)return[[1,s]];if(!s)return[[t,i]];var u=i.length>s.length?i:s,a=i.length>s.length?s:i,c=u.indexOf(a);if(-1!==c)return l=[[1,u.substring(0,c)],[0,a],[1,u.substring(c+a.length)]],i.length>s.length&&(l[0][0]=l[2][0]=t),l;if(1===a.length)return[[t,i],[1,s]];var h=function(t,e){var n=t.length>e.length?t:e,i=t.length>e.length?e:t;if(n.length<4||2*i.length<n.length)return null;function s(t,e,n){for(var i,s,l,u,a=t.substring(n,n+Math.floor(t.length/4)),c=-1,h="";-1!==(c=e.indexOf(a,c+1));){var f=r(t.substring(n),e.substring(c)),d=o(t.substring(0,n),e.substring(0,c));h.length<d+f&&(h=e.substring(c-d,c)+e.substring(c,c+f),i=t.substring(0,n-d),s=t.substring(n+f),l=e.substring(0,c-d),u=e.substring(c+f))}return 2*h.length>=t.length?[i,s,l,u,h]:null}var l,u,a,c,h,f=s(n,i,Math.ceil(n.length/4)),d=s(n,i,Math.ceil(n.length/2));return f||d?(l=d?f&&f[4].length>d[4].length?f:d:f,t.length>e.length?(u=l[0],a=l[1],c=l[2],h=l[3]):(c=l[0],h=l[1],u=l[2],a=l[3]),[u,a,c,h,l[4]]):null}(i,s);if(h){var f=h[1],d=h[3],p=h[4],v=e(h[0],h[2]),b=e(f,d);return v.concat([[0,p]],b)}return function(e,r){for(var i=e.length,o=r.length,s=Math.ceil((i+o)/2),l=s,u=2*s,a=new Array(u),c=new Array(u),h=0;h<u;h++)a[h]=-1,c[h]=-1;a[l+1]=0,c[l+1]=0;for(var f=i-o,d=f%2!=0,p=0,v=0,b=0,q=0,m=0;m<s;m++){for(var g=-m+p;g<=m-v;g+=2){for(var w=l+g,y=(O=g===-m||g!==m&&a[w-1]<a[w+1]?a[w+1]:a[w-1]+1)-g;O<i&&y<o&&e.charAt(O)===r.charAt(y);)O++,y++;if(a[w]=O,O>i)v+=2;else if(y>o)p+=2;else if(d&&(j=l+f-g)>=0&&j<u&&-1!==c[j]&&O>=(x=i-c[j]))return n(e,r,O,y)}for(var k=-m+b;k<=m-q;k+=2){for(var x,j=l+k,A=(x=k===-m||k!==m&&c[j-1]<c[j+1]?c[j+1]:c[j-1]+1)-k;x<i&&A<o&&e.charAt(i-x-1)===r.charAt(o-A-1);)x++,A++;if(c[j]=x,x>i)q+=2;else if(A>o)b+=2;else if(!d){var O;if((w=l+f-k)>=0&&w<u&&-1!==a[w]&&(y=l+(O=a[w])-w,O>=(x=i-x)))return n(e,r,O,y)}}}return[[t,e],[1,r]]}(i,s)}(f=f.substring(0,f.length-g),d=d.substring(0,d.length-g));return w&&k.unshift([0,w]),y&&k.push([0,y]),h(k,q),v&&function(e){for(var n=!1,r=[],f=0,d=null,p=0,v=0,b=0,q=0,m=0;p<e.length;)0==e[p][0]?(r[f++]=p,v=q,b=m,q=0,m=0,d=e[p][1]):(1==e[p][0]?q+=e[p][1].length:m+=e[p][1].length,d&&d.length<=Math.max(v,b)&&d.length<=Math.max(q,m)&&(e.splice(r[f-1],0,[t,d]),e[r[f-1]+1][0]=1,f--,p=--f>0?r[f-1]:-1,v=0,b=0,q=0,m=0,d=null,n=!0)),p++;for(n&&h(e),function(t){function e(t,e){if(!t||!e)return 6;var n=t.charAt(t.length-1),r=e.charAt(0),i=n.match(s),o=r.match(s),h=i&&n.match(l),f=o&&r.match(l),d=h&&n.match(u),p=f&&r.match(u),v=d&&t.match(a),b=p&&e.match(c);return v||b?5:d||p?4:i&&!h&&f?3:h||f?2:i||o?1:0}for(var n=1;n<t.length-1;){if(0==t[n-1][0]&&0==t[n+1][0]){var r=t[n-1][1],i=t[n][1],h=t[n+1][1],f=o(r,i);if(f){var d=i.substring(i.length-f);r=r.substring(0,r.length-f),i=d+i.substring(0,i.length-f),h=d+h}for(var p=r,v=i,b=h,q=e(r,i)+e(i,h);i.charAt(0)===h.charAt(0);){r+=i.charAt(0),i=i.substring(1)+h.charAt(0),h=h.substring(1);var m=e(r,i)+e(i,h);m>=q&&(q=m,p=r,v=i,b=h)}t[n-1][1]!=p&&(p?t[n-1][1]=p:(t.splice(n-1,1),n--),t[n][1]=v,b?t[n+1][1]=b:(t.splice(n+1,1),n--))}n++}}(e),p=1;p<e.length;){if(e[p-1][0]==t&&1==e[p][0]){var g=e[p-1][1],w=e[p][1],y=i(g,w),k=i(w,g);y>=k?(y>=g.length/2||y>=w.length/2)&&(e.splice(p,0,[0,w.substring(0,y)]),e[p-1][1]=g.substring(0,g.length-y),e[p+1][1]=w.substring(y),p++):(k>=g.length/2||k>=w.length/2)&&(e.splice(p,0,[0,g.substring(0,k)]),e[p-1][0]=1,e[p-1][1]=w.substring(0,w.length-k),e[p+1][0]=t,e[p+1][1]=g.substring(k),p++),p++}p++}}(k),k}function n(t,n,r,i){var o=t.substring(0,r),s=n.substring(0,i),l=t.substring(r),u=n.substring(i),a=e(o,s),c=e(l,u);return a.concat(c)}function r(t,e){if(!t||!e||t.charAt(0)!==e.charAt(0))return 0;for(var n=0,r=Math.min(t.length,e.length),i=r,o=0;n<i;)t.substring(o,i)==e.substring(o,i)?o=n=i:r=i,i=Math.floor((r-n)/2+n);return f(t.charCodeAt(i-1))&&i--,i}function i(t,e){var n=t.length,r=e.length;if(0==n||0==r)return 0;n>r?t=t.substring(n-r):n<r&&(e=e.substring(0,n));var i=Math.min(n,r);if(t==e)return i;for(var o=0,s=1;;){var l=t.substring(i-s),u=e.indexOf(l);if(-1==u)return o;s+=u,0!=u&&t.substring(i-s)!=e.substring(0,s)||(o=s,s++)}}function o(t,e){if(!t||!e||t.slice(-1)!==e.slice(-1))return 0;for(var n=0,r=Math.min(t.length,e.length),i=r,o=0;n<i;)t.substring(t.length-i,t.length-o)==e.substring(e.length-i,e.length-o)?o=n=i:r=i,i=Math.floor((r-n)/2+n);return d(t.charCodeAt(t.length-i))&&i--,i}var s=/[^a-zA-Z0-9]/,l=/\s/,u=/[\r\n]/,a=/\n\r?\n$/,c=/^\r?\n\r?\n/;function h(e,n){e.push([0,""]);for(var i,s=0,l=0,u=0,a="",c="";s<e.length;)if(s<e.length-1&&!e[s][1])e.splice(s,1);else switch(e[s][0]){case 1:u++,c+=e[s][1],s++;break;case t:l++,a+=e[s][1],s++;break;case 0:var f=s-u-l-1;if(n){if(f>=0&&v(e[f][1])){var d=e[f][1].slice(-1);if(e[f][1]=e[f][1].slice(0,-1),a=d+a,c=d+c,!e[f][1]){e.splice(f,1),s--;var b=f-1;e[b]&&1===e[b][0]&&(u++,c=e[b][1]+c,b--),e[b]&&e[b][0]===t&&(l++,a=e[b][1]+a,b--),f=b}}p(e[s][1])&&(d=e[s][1].charAt(0),e[s][1]=e[s][1].slice(1),a+=d,c+=d)}if(s<e.length-1&&!e[s][1]){e.splice(s,1);break}if(a.length>0||c.length>0){a.length>0&&c.length>0&&(0!==(i=r(c,a))&&(f>=0?e[f][1]+=c.substring(0,i):(e.splice(0,0,[0,c.substring(0,i)]),s++),c=c.substring(i),a=a.substring(i)),0!==(i=o(c,a))&&(e[s][1]=c.substring(c.length-i)+e[s][1],c=c.substring(0,c.length-i),a=a.substring(0,a.length-i)));var q=u+l;0===a.length&&0===c.length?(e.splice(s-q,q),s-=q):0===a.length?(e.splice(s-q,q,[1,c]),s=s-q+1):0===c.length?(e.splice(s-q,q,[t,a]),s=s-q+1):(e.splice(s-q,q,[t,a],[1,c]),s=s-q+2)}0!==s&&0===e[s-1][0]?(e[s-1][1]+=e[s][1],e.splice(s,1)):s++,u=0,l=0,a="",c=""}""===e[e.length-1][1]&&e.pop();var m=!1;for(s=1;s<e.length-1;)0===e[s-1][0]&&0===e[s+1][0]&&(e[s][1].substring(e[s][1].length-e[s-1][1].length)===e[s-1][1]?(e[s][1]=e[s-1][1]+e[s][1].substring(0,e[s][1].length-e[s-1][1].length),e[s+1][1]=e[s-1][1]+e[s+1][1],e.splice(s-1,1),m=!0):e[s][1].substring(0,e[s+1][1].length)==e[s+1][1]&&(e[s-1][1]+=e[s+1][1],e[s][1]=e[s][1].substring(e[s+1][1].length)+e[s+1][1],e.splice(s+1,1),m=!0)),s++;m&&h(e,n)}function f(t){return t>=55296&&t<=56319}function d(t){return t>=56320&&t<=57343}function p(t){return d(t.charCodeAt(0))}function v(t){return f(t.charCodeAt(t.length-1))}function b(e,n,r,i){return v(e)||p(i)?null:function(t){for(var e=[],n=0;n<t.length;n++)t[n][1].length>0&&e.push(t[n]);return e}([[0,e],[t,n],[1,r],[0,i]])}function q(t,n,r,i){return e(t,n,r,i,!0)}return q.INSERT=1,q.DELETE=t,q.EQUAL=0,dh=q}(),r=mh(),i=yh(),o=function(){if(kh)return jh;kh=1,Object.defineProperty(jh,"__esModule",{value:!0});const t=mh(),e=yh();var n;return function(n){n.compose=function(e={},n={},r=!1){"object"!=typeof e&&(e={}),"object"!=typeof n&&(n={});let i=t(n);r||(i=Object.keys(i).reduce(((t,e)=>(null!=i[e]&&(t[e]=i[e]),t)),{}));for(const t in e)void 0!==e[t]&&void 0===n[t]&&(i[t]=e[t]);return Object.keys(i).length>0?i:void 0},n.diff=function(t={},n={}){"object"!=typeof t&&(t={}),"object"!=typeof n&&(n={});const r=Object.keys(t).concat(Object.keys(n)).reduce(((r,i)=>(e(t[i],n[i])||(r[i]=void 0===n[i]?null:n[i]),r)),{});return Object.keys(r).length>0?r:void 0},n.invert=function(t={},e={}){t=t||{};const n=Object.keys(e).reduce(((n,r)=>(e[r]!==t[r]&&void 0!==t[r]&&(n[r]=e[r]),n)),{});return Object.keys(t).reduce(((n,r)=>(t[r]!==e[r]&&void 0===e[r]&&(n[r]=null),n)),n)},n.transform=function(t,e,n=!1){if("object"!=typeof t)return e;if("object"!=typeof e)return;if(!n)return e;const r=Object.keys(e).reduce(((n,r)=>(void 0===t[r]&&(n[r]=e[r]),n)),{});return Object.keys(r).length>0?r:void 0}}(n||(n={})),jh.default=n,jh}();e.AttributeMap=o.default;const s=Oh();e.Op=s.default;const l=function(){if(Mh)return _h;Mh=1,Object.defineProperty(_h,"__esModule",{value:!0});const t=Oh();return _h.default=class{constructor(t){this.ops=t,this.index=0,this.offset=0}hasNext(){return this.peekLength()<1/0}next(e){e||(e=1/0);const n=this.ops[this.index];if(n){const r=this.offset,i=t.default.length(n);if(e>=i-r?(e=i-r,this.index+=1,this.offset=0):this.offset+=e,"number"==typeof n.delete)return{delete:e};{const t={};return n.attributes&&(t.attributes=n.attributes),"number"==typeof n.retain?t.retain=e:"object"==typeof n.retain&&null!==n.retain?t.retain=n.retain:t.insert="string"==typeof n.insert?n.insert.substr(r,e):n.insert,t}}return{retain:1/0}}peek(){return this.ops[this.index]}peekLength(){return this.ops[this.index]?t.default.length(this.ops[this.index])-this.offset:1/0}peekType(){const t=this.ops[this.index];return t?"number"==typeof t.delete?"delete":"number"==typeof t.retain||"object"==typeof t.retain&&null!==t.retain?"retain":"insert":"retain"}rest(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);{const t=this.offset,e=this.index,n=this.next(),r=this.ops.slice(this.index);return this.offset=t,this.index=e,[n].concat(r)}}return[]}},_h}();e.OpIterator=l.default;const u=String.fromCharCode(0),a=(t,e)=>{if("object"!=typeof t||null===t)throw new Error("cannot retain a "+typeof t);if("object"!=typeof e||null===e)throw new Error("cannot retain a "+typeof e);const n=Object.keys(t)[0];if(!n||n!==Object.keys(e)[0])throw new Error(`embed types not matched: ${n} != ${Object.keys(e)[0]}`);return[n,t[n],e[n]]};class c{constructor(t){this.ops=Array.isArray(t)?t:null!=t&&Array.isArray(t.ops)?t.ops:[]}static registerEmbed(t,e){this.handlers[t]=e}static unregisterEmbed(t){delete this.handlers[t]}static getHandler(t){const e=this.handlers[t];if(!e)throw new Error(`no handlers for embed type "${t}"`);return e}insert(t,e){const n={};return"string"==typeof t&&0===t.length?this:(n.insert=t,null!=e&&"object"==typeof e&&Object.keys(e).length>0&&(n.attributes=e),this.push(n))}delete(t){return t<=0?this:this.push({delete:t})}retain(t,e){if("number"==typeof t&&t<=0)return this;const n={retain:t};return null!=e&&"object"==typeof e&&Object.keys(e).length>0&&(n.attributes=e),this.push(n)}push(t){let e=this.ops.length,n=this.ops[e-1];if(t=r(t),"object"==typeof n){if("number"==typeof t.delete&&"number"==typeof n.delete)return this.ops[e-1]={delete:n.delete+t.delete},this;if("number"==typeof n.delete&&null!=t.insert&&(e-=1,n=this.ops[e-1],"object"!=typeof n))return this.ops.unshift(t),this;if(i(t.attributes,n.attributes)){if("string"==typeof t.insert&&"string"==typeof n.insert)return this.ops[e-1]={insert:n.insert+t.insert},"object"==typeof t.attributes&&(this.ops[e-1].attributes=t.attributes),this;if("number"==typeof t.retain&&"number"==typeof n.retain)return this.ops[e-1]={retain:n.retain+t.retain},"object"==typeof t.attributes&&(this.ops[e-1].attributes=t.attributes),this}}return e===this.ops.length?this.ops.push(t):this.ops.splice(e,0,t),this}chop(){const t=this.ops[this.ops.length-1];return t&&"number"==typeof t.retain&&!t.attributes&&this.ops.pop(),this}filter(t){return this.ops.filter(t)}forEach(t){this.ops.forEach(t)}map(t){return this.ops.map(t)}partition(t){const e=[],n=[];return this.forEach((r=>{(t(r)?e:n).push(r)})),[e,n]}reduce(t,e){return this.ops.reduce(t,e)}changeLength(){return this.reduce(((t,e)=>e.insert?t+s.default.length(e):e.delete?t-e.delete:t),0)}length(){return this.reduce(((t,e)=>t+s.default.length(e)),0)}slice(t=0,e=1/0){const n=[],r=new l.default(this.ops);let i=0;for(;i<e&&r.hasNext();){let o;i<t?o=r.next(t-i):(o=r.next(e-i),n.push(o)),i+=s.default.length(o)}return new c(n)}compose(t){const e=new l.default(this.ops),n=new l.default(t.ops),r=[],s=n.peek();if(null!=s&&"number"==typeof s.retain&&null==s.attributes){let t=s.retain;for(;"insert"===e.peekType()&&e.peekLength()<=t;)t-=e.peekLength(),r.push(e.next());s.retain-t>0&&n.next(s.retain-t)}const u=new c(r);for(;e.hasNext()||n.hasNext();)if("insert"===n.peekType())u.push(n.next());else if("delete"===e.peekType())u.push(e.next());else{const t=Math.min(e.peekLength(),n.peekLength()),r=e.next(t),s=n.next(t);if(s.retain){const l={};if("number"==typeof r.retain)l.retain="number"==typeof s.retain?t:s.retain;else if("number"==typeof s.retain)null==r.retain?l.insert=r.insert:l.retain=r.retain;else{const t=null==r.retain?"insert":"retain",[e,n,i]=a(r[t],s.retain),o=c.getHandler(e);l[t]={[e]:o.compose(n,i,"retain"===t)}}const h=o.default.compose(r.attributes,s.attributes,"number"==typeof r.retain);if(h&&(l.attributes=h),u.push(l),!n.hasNext()&&i(u.ops[u.ops.length-1],l)){const t=new c(e.rest());return u.concat(t).chop()}}else"number"==typeof s.delete&&("number"==typeof r.retain||"object"==typeof r.retain&&null!==r.retain)&&u.push(s)}return u.chop()}concat(t){const e=new c(this.ops.slice());return t.ops.length>0&&(e.push(t.ops[0]),e.ops=e.ops.concat(t.ops.slice(1))),e}diff(t,e){if(this.ops===t.ops)return new c;const r=[this,t].map((e=>e.map((n=>{if(null!=n.insert)return"string"==typeof n.insert?n.insert:u;throw new Error("diff() called "+(e===t?"on":"with")+" non-document")})).join(""))),s=new c,a=n(r[0],r[1],e,!0),h=new l.default(this.ops),f=new l.default(t.ops);return a.forEach((t=>{let e=t[1].length;for(;e>0;){let r=0;switch(t[0]){case n.INSERT:r=Math.min(f.peekLength(),e),s.push(f.next(r));break;case n.DELETE:r=Math.min(e,h.peekLength()),h.next(r),s.delete(r);break;case n.EQUAL:r=Math.min(h.peekLength(),f.peekLength(),e);const t=h.next(r),l=f.next(r);i(t.insert,l.insert)?s.retain(r,o.default.diff(t.attributes,l.attributes)):s.push(l).delete(r)}e-=r}})),s.chop()}eachLine(t,e="\n"){const n=new l.default(this.ops);let r=new c,i=0;for(;n.hasNext();){if("insert"!==n.peekType())return;const o=n.peek(),l=s.default.length(o)-n.peekLength(),u="string"==typeof o.insert?o.insert.indexOf(e,l)-l:-1;if(u<0)r.push(n.next());else if(u>0)r.push(n.next(u));else{if(!1===t(r,n.next(1).attributes||{},i))return;i+=1,r=new c}}r.length()>0&&t(r,{},i)}invert(t){const e=new c;return this.reduce(((n,r)=>{if(r.insert)e.delete(s.default.length(r));else{if("number"==typeof r.retain&&null==r.attributes)return e.retain(r.retain),n+r.retain;if(r.delete||"number"==typeof r.retain){const i=r.delete||r.retain;return t.slice(n,n+i).forEach((t=>{r.delete?e.push(t):r.retain&&r.attributes&&e.retain(s.default.length(t),o.default.invert(r.attributes,t.attributes))})),n+i}if("object"==typeof r.retain&&null!==r.retain){const i=t.slice(n,n+1),s=new l.default(i.ops).next(),[u,h,f]=a(r.retain,s.insert),d=c.getHandler(u);return e.retain({[u]:d.invert(h,f)},o.default.invert(r.attributes,s.attributes)),n+1}}return n}),0),e.chop()}transform(t,e=!1){if(e=!!e,"number"==typeof t)return this.transformPosition(t,e);const n=t,r=new l.default(this.ops),i=new l.default(n.ops),u=new c;for(;r.hasNext()||i.hasNext();)if("insert"!==r.peekType()||!e&&"insert"===i.peekType())if("insert"===i.peekType())u.push(i.next());else{const t=Math.min(r.peekLength(),i.peekLength()),n=r.next(t),s=i.next(t);if(n.delete)continue;if(s.delete)u.push(s);else{const r=n.retain,i=s.retain;let l="object"==typeof i&&null!==i?i:t;if("object"==typeof r&&null!==r&&"object"==typeof i&&null!==i){const t=Object.keys(r)[0];if(t===Object.keys(i)[0]){const n=c.getHandler(t);n&&(l={[t]:n.transform(r[t],i[t],e)})}}u.retain(l,o.default.transform(n.attributes,s.attributes,e))}}else u.retain(s.default.length(r.next()));return u.chop()}transformPosition(t,e=!1){e=!!e;const n=new l.default(this.ops);let r=0;for(;n.hasNext()&&r<=t;){const i=n.peekLength(),o=n.peekType();n.next(),"delete"!==o?("insert"===o&&(r<t||!e)&&(t+=i),r+=i):t-=Math.min(i,t-r)}return t}}c.Op=s.default,c.OpIterator=l.default,c.AttributeMap=o.default,c.handlers={},e.default=c,t.exports=c,t.exports.default=c}(vh,vh.exports)),vh.exports),Nh=fh(Th);class Lh extends ih{static value(){}optimize(){(this.prev||this.next)&&this.remove()}length(){return 0}value(){return""}}Lh.blotName="break",Lh.tagName="BR";let zh=class extends ah{};const Sh={"&":"&","<":"<",">":">",'"':""","'":"'"};function $h(t){return t.replace(/[&<>"']/g,(t=>Sh[t]))}class Rh extends Xc{static allowedChildren=[Rh,Lh,ih,zh];static order=["cursor","inline","link","underline","strike","italic","bold","script","code"];static compare(t,e){const n=Rh.order.indexOf(t),r=Rh.order.indexOf(e);return n>=0||r>=0?n-r:t===e?0:t<e?-1:1}formatAt(t,e,n,r){if(Rh.compare(this.statics.blotName,n)<0&&this.scroll.query(n,Sc.BLOT)){const i=this.isolate(t,e);r&&i.wrap(n,r)}else super.formatAt(t,e,n,r)}optimize(t){if(super.optimize(t),this.parent instanceof Rh&&Rh.compare(this.statics.blotName,this.parent.statics.blotName)>0){const t=this.parent.isolate(this.offset(),this.length());this.moveChildren(t),t.wrap(this)}}}class Ch extends eh{cache={};delta(){return null==this.cache.delta&&(this.cache.delta=Ih(this)),this.cache.delta}deleteAt(t,e){super.deleteAt(t,e),this.cache={}}formatAt(t,e,n,r){e<=0||(this.scroll.query(n,Sc.BLOCK)?t+e===this.length()&&this.format(n,r):super.formatAt(t,Math.min(e,this.length()-t-1),n,r),this.cache={})}insertAt(t,e,n){if(null!=n)return super.insertAt(t,e,n),void(this.cache={});if(0===e.length)return;const r=e.split("\n"),i=r.shift();i.length>0&&(t<this.length()-1||null==this.children.tail?super.insertAt(Math.min(t,this.length()-1),i):this.children.tail.insertAt(this.children.tail.length(),i),this.cache={});let o=this;r.reduce(((t,e)=>(o=o.split(t,!0),o.insertAt(0,e),e.length)),t+i.length)}insertBefore(t,e){const{head:n}=this.children;super.insertBefore(t,e),n instanceof Lh&&n.remove(),this.cache={}}length(){return null==this.cache.length&&(this.cache.length=super.length()+1),this.cache.length}moveChildren(t,e){super.moveChildren(t,e),this.cache={}}optimize(t){super.optimize(t),this.cache={}}path(t){return super.path(t,!0)}removeChild(t){super.removeChild(t),this.cache={}}split(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e&&(0===t||t>=this.length()-1)){const e=this.clone();return 0===t?(this.parent.insertBefore(e,this),this):(this.parent.insertBefore(e,this.next),e)}const n=super.split(t,e);return this.cache={},n}}Ch.blotName="block",Ch.tagName="P",Ch.defaultChild=Lh,Ch.allowedChildren=[Lh,Rh,ih,zh];class Bh extends ih{attach(){super.attach(),this.attributes=new Pc(this.domNode)}delta(){return(new Nh).insert(this.value(),{...this.formats(),...this.attributes.values()})}format(t,e){const n=this.scroll.query(t,Sc.BLOCK_ATTRIBUTE);null!=n&&this.attributes.attribute(n,e)}formatAt(t,e,n,r){this.format(n,r)}insertAt(t,e,n){if(null!=n)return void super.insertAt(t,e,n);const r=e.split("\n"),i=r.pop(),o=r.map((t=>{const e=this.scroll.create(Ch.blotName);return e.insertAt(0,t),e})),s=this.split(t);o.forEach((t=>{this.parent.insertBefore(t,s)})),i&&this.parent.insertBefore(this.scroll.create("text",i),s)}}function Ih(t){let e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return t.descendants(Zc).reduce(((t,n)=>0===n.length()?t:t.insert(n.value(),Dh(n,{},e))),new Nh).insert("\n",Dh(t))}function Dh(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return null==t?e:("formats"in t&&"function"==typeof t.formats&&(e={...e,...t.formats()},n&&delete e["code-token"]),null==t.parent||"scroll"===t.parent.statics.blotName||t.parent.statics.scope!==t.statics.scope?e:Dh(t.parent,e,n))}Bh.scope=Sc.BLOCK_BLOT;class Hh extends ih{static blotName="cursor";static className="ql-cursor";static tagName="span";static CONTENTS="\ufeff";static value(){}constructor(t,e,n){super(t,e),this.selection=n,this.textNode=document.createTextNode(Hh.CONTENTS),this.domNode.appendChild(this.textNode),this.savedLength=0}detach(){null!=this.parent&&this.parent.removeChild(this)}format(t,e){if(0!==this.savedLength)return void super.format(t,e);let n=this,r=0;for(;null!=n&&n.statics.scope!==Sc.BLOCK_BLOT;)r+=n.offset(n.parent),n=n.parent;null!=n&&(this.savedLength=Hh.CONTENTS.length,n.optimize(),n.formatAt(r,Hh.CONTENTS.length,t,e),this.savedLength=0)}index(t,e){return t===this.textNode?0:super.index(t,e)}length(){return this.savedLength}position(){return[this.textNode,this.textNode.data.length]}remove(){super.remove(),this.parent=null}restore(){if(this.selection.composing||null==this.parent)return null;const t=this.selection.getNativeRange();for(;null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);const e=this.prev instanceof zh?this.prev:null,n=e?e.length():0,r=this.next instanceof zh?this.next:null,i=r?r.text:"",{textNode:o}=this,s=o.data.split(Hh.CONTENTS).join("");let l;if(o.data=Hh.CONTENTS,e)l=e,(s||r)&&(e.insertAt(e.length(),s+i),r&&r.remove());else if(r)l=r,r.insertAt(0,s);else{const t=document.createTextNode(s);l=this.scroll.create(t),this.parent.insertBefore(l,this)}if(this.remove(),t){const i=(t,i)=>e&&t===e.domNode?i:t===o?n+i-1:r&&t===r.domNode?n+s.length+i:null,u=i(t.start.node,t.start.offset),a=i(t.end.node,t.end.offset);if(null!==u&&null!==a)return{startNode:l.domNode,startOffset:u,endNode:l.domNode,endOffset:a}}return null}update(t,e){if(t.some((t=>"characterData"===t.type&&t.target===this.textNode))){const t=this.restore();t&&(e.range=t)}}optimize(t){super.optimize(t);let{parent:e}=this;for(;e;){if("A"===e.domNode.tagName){this.savedLength=Hh.CONTENTS.length,e.isolate(this.offset(e),this.length()).unwrap(),this.savedLength=0;break}e=e.parent}}value(){return""}}var Vh,Ph={exports:{}},Fh=(Vh||(Vh=1,function(t){var e=Object.prototype.hasOwnProperty,n="~";function r(){}function i(t,e,n){this.fn=t,this.context=e,this.once=n||!1}function o(t,e,r,o,s){if("function"!=typeof r)throw new TypeError("The listener must be a function");var l=new i(r,o||t,s),u=n?n+e:e;return t._events[u]?t._events[u].fn?t._events[u]=[t._events[u],l]:t._events[u].push(l):(t._events[u]=l,t._eventsCount++),t}function s(t,e){0==--t._eventsCount?t._events=new r:delete t._events[e]}function l(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),l.prototype.eventNames=function(){var t,r,i=[];if(0===this._eventsCount)return i;for(r in t=this._events)e.call(t,r)&&i.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(t)):i},l.prototype.listeners=function(t){var e=this._events[n?n+t:t];if(!e)return[];if(e.fn)return[e.fn];for(var r=0,i=e.length,o=new Array(i);r<i;r++)o[r]=e[r].fn;return o},l.prototype.listenerCount=function(t){var e=this._events[n?n+t:t];return e?e.fn?1:e.length:0},l.prototype.emit=function(t,e,r,i,o,s){var l=n?n+t:t;if(!this._events[l])return!1;var u,a,c=this._events[l],h=arguments.length;if(c.fn){switch(c.once&&this.removeListener(t,c.fn,void 0,!0),h){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,e),!0;case 3:return c.fn.call(c.context,e,r),!0;case 4:return c.fn.call(c.context,e,r,i),!0;case 5:return c.fn.call(c.context,e,r,i,o),!0;case 6:return c.fn.call(c.context,e,r,i,o,s),!0}for(a=1,u=new Array(h-1);a<h;a++)u[a-1]=arguments[a];c.fn.apply(c.context,u)}else{var f,d=c.length;for(a=0;a<d;a++)switch(c[a].once&&this.removeListener(t,c[a].fn,void 0,!0),h){case 1:c[a].fn.call(c[a].context);break;case 2:c[a].fn.call(c[a].context,e);break;case 3:c[a].fn.call(c[a].context,e,r);break;case 4:c[a].fn.call(c[a].context,e,r,i);break;default:if(!u)for(f=1,u=new Array(h-1);f<h;f++)u[f-1]=arguments[f];c[a].fn.apply(c[a].context,u)}}return!0},l.prototype.on=function(t,e,n){return o(this,t,e,n,!1)},l.prototype.once=function(t,e,n){return o(this,t,e,n,!0)},l.prototype.removeListener=function(t,e,r,i){var o=n?n+t:t;if(!this._events[o])return this;if(!e)return s(this,o),this;var l=this._events[o];if(l.fn)l.fn!==e||i&&!l.once||r&&l.context!==r||s(this,o);else{for(var u=0,a=[],c=l.length;u<c;u++)(l[u].fn!==e||i&&!l[u].once||r&&l[u].context!==r)&&a.push(l[u]);a.length?this._events[o]=1===a.length?a[0]:a:s(this,o)}return this},l.prototype.removeAllListeners=function(t){var e;return t?this._events[e=n?n+t:t]&&s(this,e):(this._events=new r,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prefixed=n,l.EventEmitter=l,t.exports=l}(Ph)),Ph.exports),Uh=fh(Fh),Wh=new WeakMap;const Zh=["error","warn","log","info"];let Kh="warn";function Gh(t){if(Kh&&Zh.indexOf(t)<=Zh.indexOf(Kh)){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];console[t](...n)}}function Qh(t){return Zh.reduce(((e,n)=>(e[n]=Gh.bind(console,n,t),e)),{})}Gh.level=Qh.level=t=>{Kh=t};const Yh=Qh("quill:events");["selectionchange","mousedown","mouseup","click"].forEach((t=>{document.addEventListener(t,(function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];Array.from(document.querySelectorAll(".ql-container")).forEach((t=>{const n=Wh.get(t);n&&n.emitter&&n.emitter.handleDOM(...e)}))}))}));class Jh extends Uh{static events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_BLOT_MOUNT:"scroll-blot-mount",SCROLL_BLOT_UNMOUNT:"scroll-blot-unmount",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SCROLL_EMBED_UPDATE:"scroll-embed-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change",COMPOSITION_BEFORE_START:"composition-before-start",COMPOSITION_START:"composition-start",COMPOSITION_BEFORE_END:"composition-before-end",COMPOSITION_END:"composition-end"};static sources={API:"api",SILENT:"silent",USER:"user"};constructor(){super(),this.domListeners={},this.on("error",Yh.error)}emit(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return Yh.log.call(Yh,...e),super.emit(...e)}handleDOM(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];(this.domListeners[t.type]||[]).forEach((e=>{let{node:r,handler:i}=e;(t.target===r||r.contains(t.target))&&i(t,...n)}))}listenDOM(t,e,n){this.domListeners[t]||(this.domListeners[t]=[]),this.domListeners[t].push({node:e,handler:n})}}const Xh=Qh("quill:selection");class tf{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this.index=t,this.length=e}}class ef{constructor(t,e){this.emitter=e,this.scroll=t,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=this.scroll.create("cursor",this),this.savedRange=new tf(0,0),this.lastRange=this.savedRange,this.lastNative=null,this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,(()=>{this.mouseDown||this.composing||setTimeout(this.update.bind(this,Jh.sources.USER),1)})),this.emitter.on(Jh.events.SCROLL_BEFORE_UPDATE,(()=>{if(!this.hasFocus())return;const t=this.getNativeRange();null!=t&&t.start.node!==this.cursor.textNode&&this.emitter.once(Jh.events.SCROLL_UPDATE,((e,n)=>{try{this.root.contains(t.start.node)&&this.root.contains(t.end.node)&&this.setNativeRange(t.start.node,t.start.offset,t.end.node,t.end.offset);const r=n.some((t=>"characterData"===t.type||"childList"===t.type||"attributes"===t.type&&t.target===this.root));this.update(r?Jh.sources.SILENT:e)}catch(t){}}))})),this.emitter.on(Jh.events.SCROLL_OPTIMIZE,((t,e)=>{if(e.range){const{startNode:t,startOffset:n,endNode:r,endOffset:i}=e.range;this.setNativeRange(t,n,r,i),this.update(Jh.sources.SILENT)}})),this.update(Jh.sources.SILENT)}handleComposition(){this.emitter.on(Jh.events.COMPOSITION_BEFORE_START,(()=>{this.composing=!0})),this.emitter.on(Jh.events.COMPOSITION_END,(()=>{if(this.composing=!1,this.cursor.parent){const t=this.cursor.restore();if(!t)return;setTimeout((()=>{this.setNativeRange(t.startNode,t.startOffset,t.endNode,t.endOffset)}),1)}}))}handleDragging(){this.emitter.listenDOM("mousedown",document.body,(()=>{this.mouseDown=!0})),this.emitter.listenDOM("mouseup",document.body,(()=>{this.mouseDown=!1,this.update(Jh.sources.USER)}))}focus(){this.hasFocus()||(this.root.focus({preventScroll:!0}),this.setRange(this.savedRange))}format(t,e){this.scroll.update();const n=this.getNativeRange();if(null!=n&&n.native.collapsed&&!this.scroll.query(t,Sc.BLOCK)){if(n.start.node!==this.cursor.textNode){const t=this.scroll.find(n.start.node,!1);if(null==t)return;if(t instanceof Zc){const e=t.split(n.start.offset);t.parent.insertBefore(this.cursor,e)}else t.insertBefore(this.cursor,n.start.node);this.cursor.attach()}this.cursor.format(t,e),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}getBounds(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const n=this.scroll.length();let r;t=Math.min(t,n-1),e=Math.min(t+e,n-1)-t;let[i,o]=this.scroll.leaf(t);if(null==i)return null;if(e>0&&o===i.length()){const[e]=this.scroll.leaf(t+1);if(e){const[n]=this.scroll.line(t),[r]=this.scroll.line(t+1);n===r&&(i=e,o=0)}}[r,o]=i.position(o,!0);const s=document.createRange();if(e>0)return s.setStart(r,o),[i,o]=this.scroll.leaf(t+e),null==i?null:([r,o]=i.position(o,!0),s.setEnd(r,o),s.getBoundingClientRect());let l,u="left";if(r instanceof Text){if(!r.data.length)return null;o<r.data.length?(s.setStart(r,o),s.setEnd(r,o+1)):(s.setStart(r,o-1),s.setEnd(r,o),u="right"),l=s.getBoundingClientRect()}else{if(!(i.domNode instanceof Element))return null;l=i.domNode.getBoundingClientRect(),o>0&&(u="right")}return{bottom:l.top+l.height,height:l.height,left:l[u],right:l[u],top:l.top,width:0}}getNativeRange(){const t=document.getSelection();if(null==t||t.rangeCount<=0)return null;const e=t.getRangeAt(0);if(null==e)return null;const n=this.normalizeNative(e);return Xh.info("getNativeRange",n),n}getRange(){const t=this.scroll.domNode;if("isConnected"in t&&!t.isConnected)return[null,null];const e=this.getNativeRange();return null==e?[null,null]:[this.normalizedToRange(e),e]}hasFocus(){return document.activeElement===this.root||null!=document.activeElement&&nf(this.root,document.activeElement)}normalizedToRange(t){const e=[[t.start.node,t.start.offset]];t.native.collapsed||e.push([t.end.node,t.end.offset]);const n=e.map((t=>{const[e,n]=t,r=this.scroll.find(e,!0),i=r.offset(this.scroll);return 0===n?i:r instanceof Zc?i+r.index(e,n):i+r.length()})),r=Math.min(Math.max(...n),this.scroll.length()-1),i=Math.min(r,...n);return new tf(i,r-i)}normalizeNative(t){if(!nf(this.root,t.startContainer)||!t.collapsed&&!nf(this.root,t.endContainer))return null;const e={start:{node:t.startContainer,offset:t.startOffset},end:{node:t.endContainer,offset:t.endOffset},native:t};return[e.start,e.end].forEach((t=>{let{node:e,offset:n}=t;for(;!(e instanceof Text)&&e.childNodes.length>0;)if(e.childNodes.length>n)e=e.childNodes[n],n=0;else{if(e.childNodes.length!==n)break;e=e.lastChild,n=e instanceof Text?e.data.length:e.childNodes.length>0?e.childNodes.length:e.childNodes.length+1}t.node=e,t.offset=n})),e}rangeToNative(t){const e=this.scroll.length(),n=(t,n)=>{t=Math.min(e-1,t);const[r,i]=this.scroll.leaf(t);return r?r.position(i,n):[null,-1]};return[...n(t.index,!1),...n(t.index+t.length,!0)]}setNativeRange(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e,i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(Xh.info("setNativeRange",t,e,n,r),null!=t&&(null==this.root.parentNode||null==t.parentNode||null==n.parentNode))return;const o=document.getSelection();if(null!=o)if(null!=t){this.hasFocus()||this.root.focus({preventScroll:!0});const{native:s}=this.getNativeRange()||{};if(null==s||i||t!==s.startContainer||e!==s.startOffset||n!==s.endContainer||r!==s.endOffset){t instanceof Element&&"BR"===t.tagName&&(e=Array.from(t.parentNode.childNodes).indexOf(t),t=t.parentNode),n instanceof Element&&"BR"===n.tagName&&(r=Array.from(n.parentNode.childNodes).indexOf(n),n=n.parentNode);const i=document.createRange();i.setStart(t,e),i.setEnd(n,r),o.removeAllRanges(),o.addRange(i)}}else o.removeAllRanges(),this.root.blur()}setRange(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Jh.sources.API;if("string"==typeof e&&(n=e,e=!1),Xh.info("setRange",t),null!=t){const n=this.rangeToNative(t);this.setNativeRange(...n,e)}else this.setNativeRange(null);this.update(n)}update(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Jh.sources.USER;const e=this.lastRange,[n,r]=this.getRange();if(this.lastRange=n,this.lastNative=r,null!=this.lastRange&&(this.savedRange=this.lastRange),!ml(e,this.lastRange)){if(!this.composing&&null!=r&&r.native.collapsed&&r.start.node!==this.cursor.textNode){const t=this.cursor.restore();t&&this.setNativeRange(t.startNode,t.startOffset,t.endNode,t.endOffset)}const n=[Jh.events.SELECTION_CHANGE,Di(this.lastRange),Di(e),t];this.emitter.emit(Jh.events.EDITOR_CHANGE,...n),t!==Jh.sources.SILENT&&this.emitter.emit(...n)}}}function nf(t,e){return t.contains(e)}const rf=/^[ -~]*$/;class of{constructor(t){this.scroll=t,this.delta=this.getDelta()}applyDelta(t){this.scroll.update();let e=this.scroll.length();this.scroll.batchStart();const n=cf(t),r=new Nh;return function(t){const e=[];return t.forEach((t=>{"string"==typeof t.insert?t.insert.split("\n").forEach(((n,r)=>{r&&e.push({insert:"\n",attributes:t.attributes}),n&&e.push({insert:n,attributes:t.attributes})})):e.push(t)})),e}(n.ops.slice()).reduce(((t,n)=>{const i=Th.Op.length(n);let o=n.attributes||{},s=!1,l=!1;if(null!=n.insert){if(r.retain(i),"string"==typeof n.insert){const r=n.insert;l=!r.endsWith("\n")&&(e<=t||!!this.scroll.descendant(Bh,t)[0]),this.scroll.insertAt(t,r);const[i,s]=this.scroll.line(t);let u=Bl({},Dh(i));if(i instanceof Ch){const[t]=i.descendant(Zc,s);t&&(u=Bl(u,Dh(t)))}o=Th.AttributeMap.diff(u,o)||{}}else if("object"==typeof n.insert){const r=Object.keys(n.insert)[0];if(null==r)return t;const i=null!=this.scroll.query(r,Sc.INLINE);if(i)(e<=t||this.scroll.descendant(Bh,t)[0])&&(l=!0);else if(t>0){const[e,n]=this.scroll.descendant(Zc,t-1);e instanceof zh?"\n"!==e.value()[n]&&(s=!0):e instanceof ih&&e.statics.scope===Sc.INLINE_BLOT&&(s=!0)}if(this.scroll.insertAt(t,r,n.insert[r]),i){const[e]=this.scroll.descendant(Zc,t);if(e){const t=Bl({},Dh(e));o=Th.AttributeMap.diff(t,o)||{}}}}e+=i}else if(r.push(n),null!==n.retain&&"object"==typeof n.retain){const e=Object.keys(n.retain)[0];if(null==e)return t;this.scroll.updateEmbedAt(t,e,n.retain[e])}Object.keys(o).forEach((e=>{this.scroll.formatAt(t,i,e,o[e])}));const u=s?1:0,a=l?1:0;return e+=u+a,r.retain(u),r.delete(a),t+i+u+a}),0),r.reduce(((t,e)=>"number"==typeof e.delete?(this.scroll.deleteAt(t,e.delete),t):t+Th.Op.length(e)),0),this.scroll.batchEnd(),this.scroll.optimize(),this.update(n)}deleteText(t,e){return this.scroll.deleteAt(t,e),this.update((new Nh).retain(t).delete(e))}formatLine(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.scroll.update(),Object.keys(n).forEach((r=>{this.scroll.lines(t,Math.max(e,1)).forEach((t=>{t.format(r,n[r])}))})),this.scroll.optimize();const r=(new Nh).retain(t).retain(e,Di(n));return this.update(r)}formatText(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Object.keys(n).forEach((r=>{this.scroll.formatAt(t,e,r,n[r])}));const r=(new Nh).retain(t).retain(e,Di(n));return this.update(r)}getContents(t,e){return this.delta.slice(t,t+e)}getDelta(){return this.scroll.lines().reduce(((t,e)=>t.concat(e.delta())),new Nh)}getFormat(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[],r=[];0===e?this.scroll.path(t).forEach((t=>{const[e]=t;e instanceof Ch?n.push(e):e instanceof Zc&&r.push(e)})):(n=this.scroll.lines(t,e),r=this.scroll.descendants(Zc,t,e));const[i,o]=[n,r].map((t=>{const e=t.shift();if(null==e)return{};let n=Dh(e);for(;Object.keys(n).length>0;){const e=t.shift();if(null==e)return n;n=uf(Dh(e),n)}return n}));return{...i,...o}}getHTML(t,e){const[n,r]=this.scroll.line(t);if(n){const i=n.length();return n.length()>=r+e&&(0!==r||e!==i)?lf(n,r,e,!0):lf(this.scroll,t,e,!0)}return""}getText(t,e){return this.getContents(t,e).filter((t=>"string"==typeof t.insert)).map((t=>t.insert)).join("")}insertContents(t,e){const n=cf(e),r=(new Nh).retain(t).concat(n);return this.scroll.insertContents(t,n),this.update(r)}insertEmbed(t,e,n){return this.scroll.insertAt(t,e,n),this.update((new Nh).retain(t).insert({[e]:n}))}insertText(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e=e.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(t,e),Object.keys(n).forEach((r=>{this.scroll.formatAt(t,e.length,r,n[r])})),this.update((new Nh).retain(t).insert(e,Di(n)))}isBlank(){if(0===this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;const t=this.scroll.children.head;return t?.statics.blotName===Ch.blotName&&(!(t.children.length>1)&&t.children.head instanceof Lh)}removeFormat(t,e){const n=this.getText(t,e),[r,i]=this.scroll.line(t+e);let o=0,s=new Nh;null!=r&&(o=r.length()-i,s=r.delta().slice(i,i+o-1).insert("\n"));const l=this.getContents(t,e+o).diff((new Nh).insert(n).concat(s)),u=(new Nh).retain(t).concat(l);return this.applyDelta(u)}update(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;const r=this.delta;if(1===e.length&&"characterData"===e[0].type&&e[0].target.data.match(rf)&&this.scroll.find(e[0].target)){const i=this.scroll.find(e[0].target),o=Dh(i),s=i.offset(this.scroll),l=e[0].oldValue.replace(Hh.CONTENTS,""),u=(new Nh).insert(l),a=(new Nh).insert(i.value()),c=n&&{oldRange:hf(n.oldRange,-s),newRange:hf(n.newRange,-s)};t=(new Nh).retain(s).concat(u.diff(a,c)).reduce(((t,e)=>e.insert?t.insert(e.insert,o):t.push(e)),new Nh),this.delta=r.compose(t)}else this.delta=this.getDelta(),t&&ml(r.compose(t),this.delta)||(t=r.diff(this.delta,n));return t}}function sf(t,e,n){if(0===t.length){const[t]=af(n.pop());return e<=0?`</li></${t}>`:`</li></${t}>${sf([],e-1,n)}`}const[{child:r,offset:i,length:o,indent:s,type:l},...u]=t,[a,c]=af(l);if(s>e)return n.push(l),s===e+1?`<${a}><li${c}>${lf(r,i,o)}${sf(u,s,n)}`:`<${a}><li>${sf(t,e+1,n)}`;if(s===e&&l===n[n.length-1])return`</li><li${c}>${lf(r,i,o)}${sf(u,s,n)}`;const[h]=af(n.pop());return`</li></${h}>${sf(t,e-1,n)}`}function lf(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if("html"in t&&"function"==typeof t.html)return t.html(e,n);if(t instanceof zh)return $h(t.value().slice(e,e+n)).replaceAll(" "," ");if(t instanceof Yc){if("list-container"===t.statics.blotName){const r=[];return t.children.forEachAt(e,n,((t,e,n)=>{const i="formats"in t&&"function"==typeof t.formats?t.formats():{};r.push({child:t,offset:e,length:n,indent:i.indent||0,type:i.list})})),sf(r,-1,[])}const i=[];if(t.children.forEachAt(e,n,((t,e,n)=>{i.push(lf(t,e,n))})),r||"list"===t.statics.blotName)return i.join("");const{outerHTML:o,innerHTML:s}=t.domNode,[l,u]=o.split(`>${s}<`);return"<table"===l?`<table style="border: 1px solid #000;">${i.join("")}<${u}`:`${l}>${i.join("")}<${u}`}return t.domNode instanceof Element?t.domNode.outerHTML:""}function uf(t,e){return Object.keys(e).reduce(((n,r)=>{if(null==t[r])return n;const i=e[r];return n[r]=i===t[r]?i:Array.isArray(i)?i.indexOf(t[r])<0?i.concat([t[r]]):i:[i,t[r]],n}),{})}function af(t){const e="ordered"===t?"ol":"ul";switch(t){case"checked":return[e,' data-list="checked"'];case"unchecked":return[e,' data-list="unchecked"'];default:return[e,""]}}function cf(t){return t.reduce(((t,e)=>{if("string"==typeof e.insert){const n=e.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return t.insert(n,e.attributes)}return t.push(e)}),new Nh)}function hf(t,e){let{index:n,length:r}=t;return new tf(n+e,r)}class ff{static DEFAULTS={};constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.quill=t,this.options=e}}const df="\ufeff";class pf extends ih{constructor(t,e){super(t,e),this.contentNode=document.createElement("span"),this.contentNode.setAttribute("contenteditable","false"),Array.from(this.domNode.childNodes).forEach((t=>{this.contentNode.appendChild(t)})),this.leftGuard=document.createTextNode(df),this.rightGuard=document.createTextNode(df),this.domNode.appendChild(this.leftGuard),this.domNode.appendChild(this.contentNode),this.domNode.appendChild(this.rightGuard)}index(t,e){return t===this.leftGuard?0:t===this.rightGuard?1:super.index(t,e)}restore(t){let e,n=null;const r=t.data.split(df).join("");if(t===this.leftGuard)if(this.prev instanceof zh){const t=this.prev.length();this.prev.insertAt(t,r),n={startNode:this.prev.domNode,startOffset:t+r.length}}else e=document.createTextNode(r),this.parent.insertBefore(this.scroll.create(e),this),n={startNode:e,startOffset:r.length};else t===this.rightGuard&&(this.next instanceof zh?(this.next.insertAt(0,r),n={startNode:this.next.domNode,startOffset:r.length}):(e=document.createTextNode(r),this.parent.insertBefore(this.scroll.create(e),this.next),n={startNode:e,startOffset:r.length}));return t.data=df,n}update(t,e){t.forEach((t=>{if("characterData"===t.type&&(t.target===this.leftGuard||t.target===this.rightGuard)){const n=this.restore(t.target);n&&(e.range=n)}}))}}class vf{isComposing=!1;constructor(t,e){this.scroll=t,this.emitter=e,this.setupListeners()}setupListeners(){this.scroll.domNode.addEventListener("compositionstart",(t=>{this.isComposing||this.handleCompositionStart(t)})),this.scroll.domNode.addEventListener("compositionend",(t=>{this.isComposing&&queueMicrotask((()=>{this.handleCompositionEnd(t)}))}))}handleCompositionStart(t){const e=t.target instanceof Node?this.scroll.find(t.target,!0):null;!e||e instanceof pf||(this.emitter.emit(Jh.events.COMPOSITION_BEFORE_START,t),this.scroll.batchStart(),this.emitter.emit(Jh.events.COMPOSITION_START,t),this.isComposing=!0)}handleCompositionEnd(t){this.emitter.emit(Jh.events.COMPOSITION_BEFORE_END,t),this.scroll.batchEnd(),this.emitter.emit(Jh.events.COMPOSITION_END,t),this.isComposing=!1}}class bf{static DEFAULTS={modules:{}};static themes={default:bf};modules={};constructor(t,e){this.quill=t,this.options=e}init(){Object.keys(this.options.modules).forEach((t=>{null==this.modules[t]&&this.addModule(t)}))}addModule(t){const e=this.quill.constructor.import(`modules/${t}`);return this.modules[t]=new e(this.quill,this.options.modules[t]||{}),this.modules[t]}}const qf=t=>{const e=t.getBoundingClientRect(),n="offsetWidth"in t&&Math.abs(e.width)/t.offsetWidth||1,r="offsetHeight"in t&&Math.abs(e.height)/t.offsetHeight||1;return{top:e.top,right:e.left+t.clientWidth*n,bottom:e.top+t.clientHeight*r,left:e.left}},mf=t=>{const e=parseInt(t,10);return Number.isNaN(e)?0:e},gf=(t,e,n,r,i,o)=>t<n&&e>r?0:t<n?-(n-t+i):e>r?e-t>r-n?t+i-n:e-r+o:0,wf=["block","break","cursor","inline","scroll","text"],yf=Qh("quill"),kf=new Bc;Yc.uiClass="ql-ui";class xf{static DEFAULTS={bounds:null,modules:{clipboard:!0,keyboard:!0,history:!0,uploader:!0},placeholder:"",readOnly:!1,registry:kf,theme:"default"};static events=Jh.events;static sources=Jh.sources;static version="2.0.3";static imports={delta:Nh,parchment:ch,"core/module":ff,"core/theme":bf};static debug(t){!0===t&&(t="log"),Qh.level(t)}static find(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return Wh.get(t)||kf.find(t,e)}static import(t){return null==this.imports[t]&&yf.error(`Cannot import ${t}. Are you sure it was registered?`),this.imports[t]}static register(){if("string"!=typeof(arguments.length<=0?void 0:arguments[0])){const t=arguments.length<=0?void 0:arguments[0],e=!!(arguments.length<=1?void 0:arguments[1]),n="attrName"in t?t.attrName:t.blotName;"string"==typeof n?this.register(`formats/${n}`,t,e):Object.keys(t).forEach((n=>{this.register(n,t[n],e)}))}else{const t=arguments.length<=0?void 0:arguments[0],e=arguments.length<=1?void 0:arguments[1];null==this.imports[t]||!!(arguments.length<=2?void 0:arguments[2])||yf.warn(`Overwriting ${t} with`,e),this.imports[t]=e,(t.startsWith("blots/")||t.startsWith("formats/"))&&e&&"boolean"!=typeof e&&"abstract"!==e.blotName&&kf.register(e),"function"==typeof e.register&&e.register(kf)}}constructor(t){if(this.options=function(t,e){const n=jf(t);if(!n)throw new Error("Invalid Quill container");const r=!e.theme||e.theme===xf.DEFAULTS.theme?bf:xf.import(`themes/${e.theme}`);if(!r)throw new Error(`Invalid theme ${e.theme}. Did you register it?`);const{modules:i,...o}=xf.DEFAULTS,{modules:s,...l}=r.DEFAULTS;let u=Af(e.modules);null!=u&&u.toolbar&&u.toolbar.constructor!==Object&&(u={...u,toolbar:{container:u.toolbar}});const a=Bl({},Af(i),Af(s),u),c={...o,...Of(l),...Of(e)};let h=e.registry;return h?e.formats&&yf.warn('Ignoring "formats" option because "registry" is specified'):h=e.formats?((t,e,n)=>{const r=new Bc;return wf.forEach((t=>{const n=e.query(t);n&&r.register(n)})),t.forEach((t=>{let i=e.query(t);i||n.error(`Cannot register "${t}" specified in "formats" config. Are you sure it was registered?`);let o=0;for(;i;)if(r.register(i),i="blotName"in i?i.requiredContainer??null:null,o+=1,o>100){n.error(`Cycle detected in registering blot requiredContainer: "${t}"`);break}})),r})(e.formats,c.registry,yf):c.registry,{...c,registry:h,container:n,theme:r,modules:Object.entries(a).reduce(((t,e)=>{let[n,r]=e;if(!r)return t;const i=xf.import(`modules/${n}`);return null==i?(yf.error(`Cannot load ${n} module. Are you sure you registered it?`),t):{...t,[n]:Bl({},i.DEFAULTS||{},r)}}),{}),bounds:jf(c.bounds)}}(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}),this.container=this.options.container,null==this.container)return void yf.error("Invalid Quill container",t);this.options.debug&&xf.debug(this.options.debug);const e=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",Wh.set(this.container,this),this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.emitter=new Jh;const n=lh.blotName,r=this.options.registry.query(n);if(!r||!("blotName"in r))throw new Error(`Cannot initialize Quill without "${n}" blot`);if(this.scroll=new r(this.options.registry,this.root,{emitter:this.emitter}),this.editor=new of(this.scroll),this.selection=new ef(this.scroll,this.emitter),this.composition=new vf(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.uploader=this.theme.addModule("uploader"),this.theme.addModule("input"),this.theme.addModule("uiNode"),this.theme.init(),this.emitter.on(Jh.events.EDITOR_CHANGE,(t=>{t===Jh.events.TEXT_CHANGE&&this.root.classList.toggle("ql-blank",this.editor.isBlank())})),this.emitter.on(Jh.events.SCROLL_UPDATE,((t,e)=>{const n=this.selection.lastRange,[r]=this.selection.getRange(),i=n&&r?{oldRange:n,newRange:r}:void 0;Mf.call(this,(()=>this.editor.update(null,e,i)),t)})),this.emitter.on(Jh.events.SCROLL_EMBED_UPDATE,((t,e)=>{const n=this.selection.lastRange,[r]=this.selection.getRange(),i=n&&r?{oldRange:n,newRange:r}:void 0;Mf.call(this,(()=>{const n=(new Nh).retain(t.offset(this)).retain({[t.statics.blotName]:e});return this.editor.update(n,[],i)}),xf.sources.USER)})),e){const t=this.clipboard.convert({html:`${e}<p><br></p>`,text:"\n"});this.setContents(t)}this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable(),this.allowReadOnlyEdits=!1}addContainer(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof t){const e=t;(t=document.createElement("div")).classList.add(e)}return this.container.insertBefore(t,e),t}blur(){this.selection.setRange(null)}deleteText(t,e,n){return[t,e,,n]=Ef(t,e,n),Mf.call(this,(()=>this.editor.deleteText(t,e)),n,t,-1*e)}disable(){this.enable(!1)}editReadOnly(t){this.allowReadOnlyEdits=!0;const e=t();return this.allowReadOnlyEdits=!1,e}enable(){let t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(t),this.container.classList.toggle("ql-disabled",!t)}focus(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.selection.focus(),t.preventScroll||this.scrollSelectionIntoView()}format(t,e){return Mf.call(this,(()=>{const n=this.getSelection(!0);let r=new Nh;if(null==n)return r;if(this.scroll.query(t,Sc.BLOCK))r=this.editor.formatLine(n.index,n.length,{[t]:e});else{if(0===n.length)return this.selection.format(t,e),r;r=this.editor.formatText(n.index,n.length,{[t]:e})}return this.setSelection(n,Jh.sources.SILENT),r}),arguments.length>2&&void 0!==arguments[2]?arguments[2]:Jh.sources.API)}formatLine(t,e,n,r,i){let o;return[t,e,o,i]=Ef(t,e,n,r,i),Mf.call(this,(()=>this.editor.formatLine(t,e,o)),i,t,0)}formatText(t,e,n,r,i){let o;return[t,e,o,i]=Ef(t,e,n,r,i),Mf.call(this,(()=>this.editor.formatText(t,e,o)),i,t,0)}getBounds(t){let e=null;if(e="number"==typeof t?this.selection.getBounds(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0):this.selection.getBounds(t.index,t.length),!e)return null;const n=this.container.getBoundingClientRect();return{bottom:e.bottom-n.top,height:e.height,left:e.left-n.left,right:e.right-n.left,top:e.top-n.top,width:e.width}}getContents(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-t;return[t,e]=Ef(t,e),this.editor.getContents(t,e)}getFormat(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0);return"number"==typeof t?this.editor.getFormat(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0):this.editor.getFormat(t.index,t.length)}getIndex(t){return t.offset(this.scroll)}getLength(){return this.scroll.length()}getLeaf(t){return this.scroll.leaf(t)}getLine(t){return this.scroll.line(t)}getLines(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!=typeof t?this.scroll.lines(t.index,t.length):this.scroll.lines(t,e)}getModule(t){return this.theme.modules[t]}getSelection(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&this.focus(),this.update(),this.selection.getRange()[0]}getSemanticHTML(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1?arguments[1]:void 0;return"number"==typeof t&&(e=e??this.getLength()-t),[t,e]=Ef(t,e),this.editor.getHTML(t,e)}getText(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1?arguments[1]:void 0;return"number"==typeof t&&(e=e??this.getLength()-t),[t,e]=Ef(t,e),this.editor.getText(t,e)}hasFocus(){return this.selection.hasFocus()}insertEmbed(t,e,n){return Mf.call(this,(()=>this.editor.insertEmbed(t,e,n)),arguments.length>3&&void 0!==arguments[3]?arguments[3]:xf.sources.API,t)}insertText(t,e,n,r,i){let o;return[t,,o,i]=Ef(t,0,n,r,i),Mf.call(this,(()=>this.editor.insertText(t,e,o)),i,t,e.length)}isEnabled(){return this.scroll.isEnabled()}off(){return this.emitter.off(...arguments)}on(){return this.emitter.on(...arguments)}once(){return this.emitter.once(...arguments)}removeFormat(t,e,n){return[t,e,,n]=Ef(t,e,n),Mf.call(this,(()=>this.editor.removeFormat(t,e)),n,t)}scrollRectIntoView(t){((t,e)=>{const n=t.ownerDocument;let r=e,i=t;for(;i;){const t=i===n.body,e=t?{top:0,right:window.visualViewport?.width??n.documentElement.clientWidth,bottom:window.visualViewport?.height??n.documentElement.clientHeight,left:0}:qf(i),s=getComputedStyle(i),l=gf(r.left,r.right,e.left,e.right,mf(s.scrollPaddingLeft),mf(s.scrollPaddingRight)),u=gf(r.top,r.bottom,e.top,e.bottom,mf(s.scrollPaddingTop),mf(s.scrollPaddingBottom));if(l||u)if(t)n.defaultView?.scrollBy(l,u);else{const{scrollLeft:t,scrollTop:e}=i;u&&(i.scrollTop+=u),l&&(i.scrollLeft+=l);const n=i.scrollLeft-t,o=i.scrollTop-e;r={left:r.left-n,top:r.top-o,right:r.right-n,bottom:r.bottom-o}}i=t||"fixed"===s.position?null:(o=i).parentElement||o.getRootNode().host||null}var o})(this.root,t)}scrollIntoView(){console.warn("Quill#scrollIntoView() has been deprecated and will be removed in the near future. Please use Quill#scrollSelectionIntoView() instead."),this.scrollSelectionIntoView()}scrollSelectionIntoView(){const t=this.selection.lastRange,e=t&&this.selection.getBounds(t.index,t.length);e&&this.scrollRectIntoView(e)}setContents(t){return Mf.call(this,(()=>{t=new Nh(t);const e=this.getLength(),n=this.editor.deleteText(0,e),r=this.editor.insertContents(0,t),i=this.editor.deleteText(this.getLength()-1,1);return n.compose(r).compose(i)}),arguments.length>1&&void 0!==arguments[1]?arguments[1]:Jh.sources.API)}setSelection(t,e,n){null==t?this.selection.setRange(null,e||xf.sources.API):([t,e,,n]=Ef(t,e,n),this.selection.setRange(new tf(Math.max(0,t),e),n),n!==Jh.sources.SILENT&&this.scrollSelectionIntoView())}setText(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Jh.sources.API;const n=(new Nh).insert(t);return this.setContents(n,e)}update(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Jh.sources.USER;const e=this.scroll.update(t);return this.selection.update(t),e}updateContents(t){return Mf.call(this,(()=>(t=new Nh(t),this.editor.applyDelta(t))),arguments.length>1&&void 0!==arguments[1]?arguments[1]:Jh.sources.API,!0)}}function jf(t){return"string"==typeof t?document.querySelector(t):t}function Af(t){return Object.entries(t??{}).reduce(((t,e)=>{let[n,r]=e;return{...t,[n]:!0===r?{}:r}}),{})}function Of(t){return Object.fromEntries(Object.entries(t).filter((t=>void 0!==t[1])))}function Mf(t,e,n,r){if(!this.isEnabled()&&e===Jh.sources.USER&&!this.allowReadOnlyEdits)return new Nh;let i=null==n?null:this.getSelection();const o=this.editor.delta,s=t();if(null!=i&&(!0===n&&(n=i.index),null==r?i=_f(i,s,e):0!==r&&(i=_f(i,n,r,e)),this.setSelection(i,Jh.sources.SILENT)),s.length()>0){const t=[Jh.events.TEXT_CHANGE,s,o,e];this.emitter.emit(Jh.events.EDITOR_CHANGE,...t),e!==Jh.sources.SILENT&&this.emitter.emit(...t)}return s}function Ef(t,e,n,r,i){let o={};return"number"==typeof t.index&&"number"==typeof t.length?"number"!=typeof e?(i=r,r=n,n=e,e=t.length,t=t.index):(e=t.length,t=t.index):"number"!=typeof e&&(i=r,r=n,n=e,e=0),"object"==typeof n?(o=n,i=r):"string"==typeof n&&(null!=r?o[n]=r:i=n),[t,e,o,i=i||Jh.sources.API]}function _f(t,e,n,r){const i="number"==typeof n?n:0;if(null==t)return null;let o,s;return[o,s]=[t.index,t.index+t.length].map(e&&"function"==typeof e.transformPosition?t=>e.transformPosition(t,r!==Jh.sources.USER):t=>t<e||t===e&&r===Jh.sources.USER?t:i>=0?t+i:Math.max(e,t+i)),new tf(o,s-o)}class Tf extends rh{}function Nf(t){return t instanceof Ch||t instanceof Bh}function Lf(t){return"function"==typeof t.updateContent}function zf(t,e,n){n.reduce(((e,n)=>{const r=Th.Op.length(n);let i=n.attributes||{};if(null!=n.insert)if("string"==typeof n.insert){t.insertAt(e,n.insert);const[r]=t.descendant(Zc,e),o=Dh(r);i=Th.AttributeMap.diff(o,i)||{}}else if("object"==typeof n.insert){const r=Object.keys(n.insert)[0];if(null==r)return e;if(t.insertAt(e,r,n.insert[r]),null!=t.scroll.query(r,Sc.INLINE)){const[n]=t.descendant(Zc,e),r=Dh(n);i=Th.AttributeMap.diff(r,i)||{}}}return Object.keys(i).forEach((n=>{t.formatAt(e,r,n,i[n])})),e+r}),e)}const Sf={scope:Sc.BLOCK,whitelist:["right","center","justify"]},$f=new $c("align","align",Sf),Rf=new Dc("align","ql-align",Sf),Cf=new Vc("align","text-align",Sf);class Bf extends Vc{value(t){let e=super.value(t);return e.startsWith("rgb(")?(e=e.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),`#${e.split(",").map((t=>`00${parseInt(t,10).toString(16)}`.slice(-2))).join("")}`):e}}const If=new Dc("color","ql-color",{scope:Sc.INLINE}),Df=new Bf("color","color",{scope:Sc.INLINE}),Hf=new Dc("background","ql-bg",{scope:Sc.INLINE}),Vf=new Bf("background","background-color",{scope:Sc.INLINE});class Pf extends Tf{static create(t){const e=super.create(t);return e.setAttribute("spellcheck","false"),e}code(t,e){return this.children.map((t=>t.length()<=1?"":t.domNode.innerText)).join("\n").slice(t,t+e)}html(t,e){return`<pre>\n${$h(this.code(t,e))}\n</pre>`}}class Ff extends Ch{static TAB=" ";static register(){xf.register(Pf)}}class Uf extends Rh{}Uf.blotName="code",Uf.tagName="CODE",Ff.blotName="code-block",Ff.className="ql-code-block",Ff.tagName="DIV",Pf.blotName="code-block-container",Pf.className="ql-code-block-container",Pf.tagName="DIV",Pf.allowedChildren=[Ff],Ff.allowedChildren=[zh,Lh,Hh],Ff.requiredContainer=Pf;const Wf={scope:Sc.BLOCK,whitelist:["rtl"]},Zf=new $c("direction","dir",Wf),Kf=new Dc("direction","ql-direction",Wf),Gf=new Vc("direction","direction",Wf),Qf={scope:Sc.INLINE,whitelist:["serif","monospace"]},Yf=new Dc("font","ql-font",Qf),Jf=new class extends Vc{value(t){return super.value(t).replace(/["']/g,"")}}("font","font-family",Qf),Xf=new Dc("size","ql-size",{scope:Sc.INLINE,whitelist:["small","large","huge"]}),td=new Vc("size","font-size",{scope:Sc.INLINE,whitelist:["10px","18px","32px"]}),ed=Qh("quill:keyboard"),nd=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey";class rd extends ff{static match(t,e){return!["altKey","ctrlKey","metaKey","shiftKey"].some((n=>!!e[n]!==t[n]&&null!==e[n]))&&(e.key===t.key||e.key===t.which)}constructor(t,e){super(t,e),this.bindings={},Object.keys(this.options.bindings).forEach((t=>{this.options.bindings[t]&&this.addBinding(this.options.bindings[t])})),this.addBinding({key:"Enter",shiftKey:null},this.handleEnter),this.addBinding({key:"Enter",metaKey:null,ctrlKey:null,altKey:null},(()=>{})),/Firefox/i.test(navigator.userAgent)?(this.addBinding({key:"Backspace"},{collapsed:!0},this.handleBackspace),this.addBinding({key:"Delete"},{collapsed:!0},this.handleDelete)):(this.addBinding({key:"Backspace"},{collapsed:!0,prefix:/^.?$/},this.handleBackspace),this.addBinding({key:"Delete"},{collapsed:!0,suffix:/^.?$/},this.handleDelete)),this.addBinding({key:"Backspace"},{collapsed:!1},this.handleDeleteRange),this.addBinding({key:"Delete"},{collapsed:!1},this.handleDeleteRange),this.addBinding({key:"Backspace",altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},this.handleBackspace),this.listen()}addBinding(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=function(t){if("string"==typeof t||"number"==typeof t)t={key:t};else{if("object"!=typeof t)return null;t=Di(t)}return t.shortKey&&(t[nd]=t.shortKey,delete t.shortKey),t}(t);null!=r?("function"==typeof e&&(e={handler:e}),"function"==typeof n&&(n={handler:n}),(Array.isArray(r.key)?r.key:[r.key]).forEach((t=>{const i={...r,key:t,...e,...n};this.bindings[i.key]=this.bindings[i.key]||[],this.bindings[i.key].push(i)}))):ed.warn("Attempted to add invalid keyboard binding",r)}listen(){this.quill.root.addEventListener("keydown",(t=>{if(t.defaultPrevented||t.isComposing)return;if(229===t.keyCode&&("Enter"===t.key||"Backspace"===t.key))return;const e=(this.bindings[t.key]||[]).concat(this.bindings[t.which]||[]).filter((e=>rd.match(t,e)));if(0===e.length)return;const n=xf.find(t.target,!0);if(n&&n.scroll!==this.quill.scroll)return;const r=this.quill.getSelection();if(null==r||!this.quill.hasFocus())return;const[i,o]=this.quill.getLine(r.index),[s,l]=this.quill.getLeaf(r.index),[u,a]=0===r.length?[s,l]:this.quill.getLeaf(r.index+r.length),c=s instanceof ah?s.value().slice(0,l):"",h=u instanceof ah?u.value().slice(a):"",f={collapsed:0===r.length,empty:0===r.length&&i.length()<=1,format:this.quill.getFormat(r),line:i,offset:o,prefix:c,suffix:h,event:t};e.some((t=>{if(null!=t.collapsed&&t.collapsed!==f.collapsed)return!1;if(null!=t.empty&&t.empty!==f.empty)return!1;if(null!=t.offset&&t.offset!==f.offset)return!1;if(Array.isArray(t.format)){if(t.format.every((t=>null==f.format[t])))return!1}else if("object"==typeof t.format&&!Object.keys(t.format).every((e=>!0===t.format[e]?null!=f.format[e]:!1===t.format[e]?null==f.format[e]:ml(t.format[e],f.format[e]))))return!1;return!(null!=t.prefix&&!t.prefix.test(f.prefix)||null!=t.suffix&&!t.suffix.test(f.suffix)||!0===t.handler.call(this,r,f,t))}))&&t.preventDefault()}))}handleBackspace(t,e){const n=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(e.prefix)?2:1;if(0===t.index||this.quill.getLength()<=1)return;let r={};const[i]=this.quill.getLine(t.index);let o=(new Nh).retain(t.index-n).delete(n);if(0===e.offset){const[e]=this.quill.getLine(t.index-1);if(e&&!("block"===e.statics.blotName&&e.length()<=1)){const e=i.formats(),n=this.quill.getFormat(t.index-1,1);if(r=Th.AttributeMap.diff(e,n)||{},Object.keys(r).length>0){const e=(new Nh).retain(t.index+i.length()-2).retain(1,r);o=o.compose(e)}}}this.quill.updateContents(o,xf.sources.USER),this.quill.focus()}handleDelete(t,e){const n=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(e.suffix)?2:1;if(t.index>=this.quill.getLength()-n)return;let r={};const[i]=this.quill.getLine(t.index);let o=(new Nh).retain(t.index).delete(n);if(e.offset>=i.length()-1){const[e]=this.quill.getLine(t.index+1);if(e){const n=i.formats(),s=this.quill.getFormat(t.index,1);r=Th.AttributeMap.diff(n,s)||{},Object.keys(r).length>0&&(o=o.retain(e.length()-1).retain(1,r))}}this.quill.updateContents(o,xf.sources.USER),this.quill.focus()}handleDeleteRange(t){ad({range:t,quill:this.quill}),this.quill.focus()}handleEnter(t,e){const n=Object.keys(e.format).reduce(((t,n)=>(this.quill.scroll.query(n,Sc.BLOCK)&&!Array.isArray(e.format[n])&&(t[n]=e.format[n]),t)),{}),r=(new Nh).retain(t.index).delete(t.length).insert("\n",n);this.quill.updateContents(r,xf.sources.USER),this.quill.setSelection(t.index+1,xf.sources.SILENT),this.quill.focus()}}const id={bindings:{bold:ld("bold"),italic:ld("italic"),underline:ld("underline"),indent:{key:"Tab",format:["blockquote","indent","list"],handler(t,e){return!(!e.collapsed||0===e.offset)||(this.quill.format("indent","+1",xf.sources.USER),!1)}},outdent:{key:"Tab",shiftKey:!0,format:["blockquote","indent","list"],handler(t,e){return!(!e.collapsed||0===e.offset)||(this.quill.format("indent","-1",xf.sources.USER),!1)}},"outdent backspace":{key:"Backspace",collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler(t,e){null!=e.format.indent?this.quill.format("indent","-1",xf.sources.USER):null!=e.format.list&&this.quill.format("list",!1,xf.sources.USER)}},"indent code-block":od(!0),"outdent code-block":od(!1),"remove tab":{key:"Tab",shiftKey:!0,collapsed:!0,prefix:/\t$/,handler(t){this.quill.deleteText(t.index-1,1,xf.sources.USER)}},tab:{key:"Tab",handler(t,e){if(e.format.table)return!0;this.quill.history.cutoff();const n=(new Nh).retain(t.index).delete(t.length).insert("\t");return this.quill.updateContents(n,xf.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(t.index+1,xf.sources.SILENT),!1}},"blockquote empty enter":{key:"Enter",collapsed:!0,format:["blockquote"],empty:!0,handler(){this.quill.format("blockquote",!1,xf.sources.USER)}},"list empty enter":{key:"Enter",collapsed:!0,format:["list"],empty:!0,handler(t,e){const n={list:!1};e.format.indent&&(n.indent=!1),this.quill.formatLine(t.index,t.length,n,xf.sources.USER)}},"checklist enter":{key:"Enter",collapsed:!0,format:{list:"checked"},handler(t){const[e,n]=this.quill.getLine(t.index),r={...e.formats(),list:"checked"},i=(new Nh).retain(t.index).insert("\n",r).retain(e.length()-n-1).retain(1,{list:"unchecked"});this.quill.updateContents(i,xf.sources.USER),this.quill.setSelection(t.index+1,xf.sources.SILENT),this.quill.scrollSelectionIntoView()}},"header enter":{key:"Enter",collapsed:!0,format:["header"],suffix:/^$/,handler(t,e){const[n,r]=this.quill.getLine(t.index),i=(new Nh).retain(t.index).insert("\n",e.format).retain(n.length()-r-1).retain(1,{header:null});this.quill.updateContents(i,xf.sources.USER),this.quill.setSelection(t.index+1,xf.sources.SILENT),this.quill.scrollSelectionIntoView()}},"table backspace":{key:"Backspace",format:["table"],collapsed:!0,offset:0,handler(){}},"table delete":{key:"Delete",format:["table"],collapsed:!0,suffix:/^$/,handler(){}},"table enter":{key:"Enter",shiftKey:null,format:["table"],handler(t){const e=this.quill.getModule("table");if(e){const[n,r,i,o]=e.getTable(t),s=function(t,e,n,r){return null==e.prev&&null==e.next?null==n.prev&&null==n.next?0===r?-1:1:null==n.prev?-1:1:null==e.prev?-1:null==e.next?1:null}(0,r,i,o);if(null==s)return;let l=n.offset();if(s<0){const e=(new Nh).retain(l).insert("\n");this.quill.updateContents(e,xf.sources.USER),this.quill.setSelection(t.index+1,t.length,xf.sources.SILENT)}else if(s>0){l+=n.length();const t=(new Nh).retain(l).insert("\n");this.quill.updateContents(t,xf.sources.USER),this.quill.setSelection(l,xf.sources.USER)}}}},"table tab":{key:"Tab",shiftKey:null,format:["table"],handler(t,e){const{event:n,line:r}=e,i=r.offset(this.quill.scroll);this.quill.setSelection(n.shiftKey?i-1:i+r.length(),xf.sources.USER)}},"list autofill":{key:" ",shiftKey:null,collapsed:!0,format:{"code-block":!1,blockquote:!1,table:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler(t,e){if(null==this.quill.scroll.query("list"))return!0;const{length:n}=e.prefix,[r,i]=this.quill.getLine(t.index);if(i>n)return!0;let o;switch(e.prefix.trim()){case"[]":case"[ ]":o="unchecked";break;case"[x]":o="checked";break;case"-":case"*":o="bullet";break;default:o="ordered"}this.quill.insertText(t.index," ",xf.sources.USER),this.quill.history.cutoff();const s=(new Nh).retain(t.index-i).delete(n+1).retain(r.length()-2-i).retain(1,{list:o});return this.quill.updateContents(s,xf.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(t.index-n,xf.sources.SILENT),!1}},"code exit":{key:"Enter",collapsed:!0,format:["code-block"],prefix:/^$/,suffix:/^\s*$/,handler(t){const[e,n]=this.quill.getLine(t.index);let r=2,i=e;for(;null!=i&&i.length()<=1&&i.formats()["code-block"];)if(i=i.prev,r-=1,r<=0){const r=(new Nh).retain(t.index+e.length()-n-2).retain(1,{"code-block":null}).delete(1);return this.quill.updateContents(r,xf.sources.USER),this.quill.setSelection(t.index-1,xf.sources.SILENT),!1}return!0}},"embed left":sd("ArrowLeft",!1),"embed left shift":sd("ArrowLeft",!0),"embed right":sd("ArrowRight",!1),"embed right shift":sd("ArrowRight",!0),"table down":ud(!1),"table up":ud(!0)}};function od(t){return{key:"Tab",shiftKey:!t,format:{"code-block":!0},handler(e,n){let{event:r}=n;const i=this.quill.scroll.query("code-block"),{TAB:o}=i;if(0===e.length&&!r.shiftKey)return this.quill.insertText(e.index,o,xf.sources.USER),void this.quill.setSelection(e.index+o.length,xf.sources.SILENT);const s=0===e.length?this.quill.getLines(e.index,1):this.quill.getLines(e);let{index:l,length:u}=e;s.forEach(((e,n)=>{t?(e.insertAt(0,o),0===n?l+=o.length:u+=o.length):e.domNode.textContent.startsWith(o)&&(e.deleteAt(0,o.length),0===n?l-=o.length:u-=o.length)})),this.quill.update(xf.sources.USER),this.quill.setSelection(l,u,xf.sources.SILENT)}}}function sd(t,e){const n="ArrowLeft"===t?"prefix":"suffix";return{key:t,shiftKey:e,altKey:null,[n]:/^$/,handler(n){let{index:r}=n;"ArrowRight"===t&&(r+=n.length+1);const[i]=this.quill.getLeaf(r);return!(i instanceof ih&&("ArrowLeft"===t?e?this.quill.setSelection(n.index-1,n.length+1,xf.sources.USER):this.quill.setSelection(n.index-1,xf.sources.USER):e?this.quill.setSelection(n.index,n.length+1,xf.sources.USER):this.quill.setSelection(n.index+n.length+1,xf.sources.USER),1))}}}function ld(t){return{key:t[0],shortKey:!0,handler(e,n){this.quill.format(t,!n.format[t],xf.sources.USER)}}}function ud(t){return{key:t?"ArrowUp":"ArrowDown",collapsed:!0,format:["table"],handler(e,n){const r=t?"prev":"next",i=n.line,o=i.parent[r];if(null!=o){if("table-row"===o.statics.blotName){let t=o.children.head,e=i;for(;null!=e.prev;)e=e.prev,t=t.next;const r=t.offset(this.quill.scroll)+Math.min(n.offset,t.length()-1);this.quill.setSelection(r,0,xf.sources.USER)}}else{const e=i.table()[r];null!=e&&this.quill.setSelection(t?e.offset(this.quill.scroll)+e.length()-1:e.offset(this.quill.scroll),0,xf.sources.USER)}return!1}}}function ad(t){let{quill:e,range:n}=t;const r=e.getLines(n);let i={};if(r.length>1){const t=r[0].formats(),e=r[r.length-1].formats();i=Th.AttributeMap.diff(e,t)||{}}e.deleteText(n,xf.sources.USER),Object.keys(i).length>0&&e.formatLine(n.index,1,i,xf.sources.USER),e.setSelection(n.index,xf.sources.SILENT)}rd.DEFAULTS=id;const cd=/font-weight:\s*normal/,hd=["P","OL","UL"],fd=t=>t&&hd.includes(t.tagName),dd=/\bmso-list:[^;]*ignore/i,pd=/\bmso-list:[^;]*\bl(\d+)/i,vd=/\bmso-list:[^;]*\blevel(\d+)/i,bd=[function(t){"urn:schemas-microsoft-com:office:word"===t.documentElement.getAttribute("xmlns:w")&&(t=>{const e=Array.from(t.querySelectorAll("[style*=mso-list]")),n=[],r=[];e.forEach((t=>{(t.getAttribute("style")||"").match(dd)?n.push(t):r.push(t)})),n.forEach((t=>t.parentNode?.removeChild(t)));const i=t.documentElement.innerHTML,o=r.map((t=>((t,e)=>{const n=t.getAttribute("style"),r=n?.match(pd);if(!r)return null;const i=Number(r[1]),o=n?.match(vd),s=o?Number(o[1]):1,l=new RegExp(`@list l${i}:level${s}\\s*\\{[^\\}]*mso-level-number-format:\\s*([\\w-]+)`,"i"),u=e.match(l);return{id:i,indent:s,type:u&&"bullet"===u[1]?"bullet":"ordered",element:t}})(t,i))).filter((t=>t));for(;o.length;){const t=[];let e=o.shift();for(;e;)t.push(e),e=o.length&&o[0]?.element===e.element.nextElementSibling&&o[0].id===e.id?o.shift():null;const n=document.createElement("ul");t.forEach((t=>{const e=document.createElement("li");e.setAttribute("data-list",t.type),t.indent>1&&e.setAttribute("class","ql-indent-"+(t.indent-1)),e.innerHTML=t.element.innerHTML,n.appendChild(e)}));const r=t[0]?.element,{parentNode:i}=r??{};r&&i?.replaceChild(n,r),t.slice(1).forEach((t=>{let{element:e}=t;i?.removeChild(e)}))}})(t)},function(t){t.querySelector('[id^="docs-internal-guid-"]')&&((t=>{Array.from(t.querySelectorAll('b[style*="font-weight"]')).filter((t=>t.getAttribute("style")?.match(cd))).forEach((e=>{const n=t.createDocumentFragment();n.append(...e.childNodes),e.parentNode?.replaceChild(n,e)}))})(t),(t=>{Array.from(t.querySelectorAll("br")).filter((t=>fd(t.previousElementSibling)&&fd(t.nextElementSibling))).forEach((t=>{t.parentNode?.removeChild(t)}))})(t))}],qd=Qh("quill:clipboard"),md=[[Node.TEXT_NODE,function(t,e,n){let r=t.data;if("O:P"===t.parentElement?.tagName)return e.insert(r.trim());if(!Ad(t)){if(0===r.trim().length&&r.includes("\n")&&!function(t,e){return t.previousElementSibling&&t.nextElementSibling&&!xd(t.previousElementSibling,e)&&!xd(t.nextElementSibling,e)}(t,n))return e;r=r.replace(/[^\S\u00a0]/g," "),r=r.replace(/ {2,}/g," "),(null==t.previousSibling&&null!=t.parentElement&&xd(t.parentElement,n)||t.previousSibling instanceof Element&&xd(t.previousSibling,n))&&(r=r.replace(/^ /,"")),(null==t.nextSibling&&null!=t.parentElement&&xd(t.parentElement,n)||t.nextSibling instanceof Element&&xd(t.nextSibling,n))&&(r=r.replace(/ $/,"")),r=r.replaceAll(" "," ")}return e.insert(r)}],[Node.TEXT_NODE,Ed],["br",function(t,e){return kd(e,"\n")||e.insert("\n"),e}],[Node.ELEMENT_NODE,Ed],[Node.ELEMENT_NODE,function(t,e,n){const r=n.query(t);if(null==r)return e;if(r.prototype instanceof ih){const e={},i=r.value(t);if(null!=i)return e[r.blotName]=i,(new Nh).insert(e,r.formats(t,n))}else if(r.prototype instanceof eh&&!kd(e,"\n")&&e.insert("\n"),"blotName"in r&&"formats"in r&&"function"==typeof r.formats)return yd(e,r.blotName,r.formats(t,n),n);return e}],[Node.ELEMENT_NODE,function(t,e,n){const r=$c.keys(t),i=Dc.keys(t),o=Vc.keys(t),s={};return r.concat(i).concat(o).forEach((e=>{let r=n.query(e,Sc.ATTRIBUTE);null!=r&&(s[r.attrName]=r.value(t),s[r.attrName])||(r=gd[e],null==r||r.attrName!==e&&r.keyName!==e||(s[r.attrName]=r.value(t)||void 0),r=wd[e],null==r||r.attrName!==e&&r.keyName!==e||(r=wd[e],s[r.attrName]=r.value(t)||void 0))})),Object.entries(s).reduce(((t,e)=>{let[r,i]=e;return yd(t,r,i,n)}),e)}],[Node.ELEMENT_NODE,function(t,e,n){const r={},i=t.style||{};return"italic"===i.fontStyle&&(r.italic=!0),"underline"===i.textDecoration&&(r.underline=!0),"line-through"===i.textDecoration&&(r.strike=!0),(i.fontWeight?.startsWith("bold")||parseInt(i.fontWeight,10)>=700)&&(r.bold=!0),e=Object.entries(r).reduce(((t,e)=>{let[r,i]=e;return yd(t,r,i,n)}),e),parseFloat(i.textIndent||0)>0?(new Nh).insert("\t").concat(e):e}],["li",function(t,e,n){const r=n.query(t);if(null==r||"list"!==r.blotName||!kd(e,"\n"))return e;let i=-1,o=t.parentNode;for(;null!=o;)["OL","UL"].includes(o.tagName)&&(i+=1),o=o.parentNode;return i<=0?e:e.reduce(((t,e)=>e.insert?e.attributes&&"number"==typeof e.attributes.indent?t.push(e):t.insert(e.insert,{indent:i,...e.attributes||{}}):t),new Nh)}],["ol, ul",function(t,e,n){let r="OL"===t.tagName?"ordered":"bullet";const i=t.getAttribute("data-checked");return i&&(r="true"===i?"checked":"unchecked"),yd(e,"list",r,n)}],["pre",function(t,e,n){const r=n.query("code-block");return yd(e,"code-block",!r||!("formats"in r)||"function"!=typeof r.formats||r.formats(t,n),n)}],["tr",function(t,e,n){const r="TABLE"===t.parentElement?.tagName?t.parentElement:t.parentElement?.parentElement;return null!=r?yd(e,"table",Array.from(r.querySelectorAll("tr")).indexOf(t)+1,n):e}],["b",Md("bold")],["i",Md("italic")],["strike",Md("strike")],["style",function(){return new Nh}]],gd=[$f,Zf].reduce(((t,e)=>(t[e.keyName]=e,t)),{}),wd=[Cf,Vf,Df,Gf,Jf,td].reduce(((t,e)=>(t[e.keyName]=e,t)),{});function yd(t,e,n,r){return r.query(e)?t.reduce(((t,r)=>r.insert?r.attributes&&r.attributes[e]?t.push(r):t.insert(r.insert,{...n?{[e]:n}:{},...r.attributes}):t),new Nh):t}function kd(t,e){let n="";for(let r=t.ops.length-1;r>=0&&n.length<e.length;--r){const e=t.ops[r];if("string"!=typeof e.insert)break;n=e.insert+n}return n.slice(-1*e.length)===e}function xd(t,e){if(!(t instanceof Element))return!1;const n=e.query(t);return!(n&&n.prototype instanceof ih)&&["address","article","blockquote","canvas","dd","div","dl","dt","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","iframe","li","main","nav","ol","output","p","pre","section","table","td","tr","ul","video"].includes(t.tagName.toLowerCase())}const jd=new WeakMap;function Ad(t){return null!=t&&(jd.has(t)||jd.set(t,"PRE"===t.tagName||Ad(t.parentNode)),jd.get(t))}function Od(t,e,n,r,i){return e.nodeType===e.TEXT_NODE?r.reduce(((n,r)=>r(e,n,t)),new Nh):e.nodeType===e.ELEMENT_NODE?Array.from(e.childNodes||[]).reduce(((o,s)=>{let l=Od(t,s,n,r,i);return s.nodeType===e.ELEMENT_NODE&&(l=n.reduce(((e,n)=>n(s,e,t)),l),l=(i.get(s)||[]).reduce(((e,n)=>n(s,e,t)),l)),o.concat(l)}),new Nh):new Nh}function Md(t){return(e,n,r)=>yd(n,t,!0,r)}function Ed(t,e,n){if(!kd(e,"\n")){if(xd(t,n)&&(t.childNodes.length>0||t instanceof HTMLParagraphElement))return e.insert("\n");if(e.length()>0&&t.nextSibling){let r=t.nextSibling;for(;null!=r;){if(xd(r,n))return e.insert("\n");const t=n.query(r);if(t&&t.prototype instanceof Bh)return e.insert("\n");r=r.firstChild}}}return e}function _d(t,e){let n=e;for(let e=t.length-1;e>=0;e-=1){const r=t[e];t[e]={delta:n.transform(r.delta,!0),range:r.range&&Td(r.range,n)},n=r.delta.transform(n),0===t[e].delta.length()&&t.splice(e,1)}}function Td(t,e){if(!t)return t;const n=e.transformPosition(t.index);return{index:n,length:e.transformPosition(t.index+t.length)-n}}class Nd extends ff{constructor(t,e){super(t,e),t.root.addEventListener("drop",(e=>{e.preventDefault();let n=null;if(document.caretRangeFromPoint)n=document.caretRangeFromPoint(e.clientX,e.clientY);else if(document.caretPositionFromPoint){const t=document.caretPositionFromPoint(e.clientX,e.clientY);n=document.createRange(),n.setStart(t.offsetNode,t.offset),n.setEnd(t.offsetNode,t.offset)}const r=n&&t.selection.normalizeNative(n);if(r){const n=t.selection.normalizedToRange(r);e.dataTransfer?.files&&this.upload(n,e.dataTransfer.files)}}))}upload(t,e){const n=[];Array.from(e).forEach((t=>{t&&this.options.mimetypes?.includes(t.type)&&n.push(t)})),n.length>0&&this.options.handler.call(this,t,n)}}Nd.DEFAULTS={mimetypes:["image/png","image/jpeg"],handler(t,e){if(!this.quill.scroll.query("image"))return;const n=e.map((t=>new Promise((e=>{const n=new FileReader;n.onload=()=>{e(n.result)},n.readAsDataURL(t)}))));Promise.all(n).then((e=>{const n=e.reduce(((t,e)=>t.insert({image:e})),(new Nh).retain(t.index).delete(t.length));this.quill.updateContents(n,Jh.sources.USER),this.quill.setSelection(t.index+e.length,Jh.sources.SILENT)}))}};const Ld=["insertText","insertReplacementText"],zd=/Mac/i.test(navigator.platform);xf.register({"blots/block":Ch,"blots/block/embed":Bh,"blots/break":Lh,"blots/container":Tf,"blots/cursor":Hh,"blots/embed":pf,"blots/inline":Rh,"blots/scroll":class extends lh{static blotName="scroll";static className="ql-editor";static tagName="DIV";static defaultChild=Ch;static allowedChildren=[Ch,Bh,Tf];constructor(t,e,n){let{emitter:r}=n;super(t,e),this.emitter=r,this.batch=!1,this.optimize(),this.enable(),this.domNode.addEventListener("dragstart",(t=>this.handleDragStart(t)))}batchStart(){Array.isArray(this.batch)||(this.batch=[])}batchEnd(){if(!this.batch)return;const t=this.batch;this.batch=!1,this.update(t)}emitMount(t){this.emitter.emit(Jh.events.SCROLL_BLOT_MOUNT,t)}emitUnmount(t){this.emitter.emit(Jh.events.SCROLL_BLOT_UNMOUNT,t)}emitEmbedUpdate(t,e){this.emitter.emit(Jh.events.SCROLL_EMBED_UPDATE,t,e)}deleteAt(t,e){const[n,r]=this.line(t),[i]=this.line(t+e);if(super.deleteAt(t,e),null!=i&&n!==i&&r>0){if(n instanceof Bh||i instanceof Bh)return void this.optimize();n.moveChildren(i,i.children.head instanceof Lh?null:i.children.head),n.remove()}this.optimize()}enable(){this.domNode.setAttribute("contenteditable",arguments.length>0&&void 0!==arguments[0]&&!arguments[0]?"false":"true")}formatAt(t,e,n,r){super.formatAt(t,e,n,r),this.optimize()}insertAt(t,e,n){if(t>=this.length())if(null==n||null==this.scroll.query(e,Sc.BLOCK)){const t=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(t),null==n&&e.endsWith("\n")?t.insertAt(0,e.slice(0,-1),n):t.insertAt(0,e,n)}else{const t=this.scroll.create(e,n);this.appendChild(t)}else super.insertAt(t,e,n);this.optimize()}insertBefore(t,e){if(t.statics.scope===Sc.INLINE_BLOT){const n=this.scroll.create(this.statics.defaultChild.blotName);n.appendChild(t),super.insertBefore(n,e)}else super.insertBefore(t,e)}insertContents(t,e){const n=this.deltaToRenderBlocks(e.concat((new Nh).insert("\n"))),r=n.pop();if(null==r)return;this.batchStart();const i=n.shift();if(i){const e="block"===i.type&&(0===i.delta.length()||!this.descendant(Bh,t)[0]&&t<this.length()),n="block"===i.type?i.delta:(new Nh).insert({[i.key]:i.value});zf(this,t,n);const r="block"===i.type?1:0,o=t+n.length()+r;e&&this.insertAt(o-1,"\n");const s=Dh(this.line(t)[0]),l=Th.AttributeMap.diff(s,i.attributes)||{};Object.keys(l).forEach((t=>{this.formatAt(o-1,1,t,l[t])})),t=o}let[o,s]=this.children.find(t);n.length&&(o&&(o=o.split(s),s=0),n.forEach((t=>{if("block"===t.type)zf(this.createBlock(t.attributes,o||void 0),0,t.delta);else{const e=this.create(t.key,t.value);this.insertBefore(e,o||void 0),Object.keys(t.attributes).forEach((n=>{e.format(n,t.attributes[n])}))}}))),"block"===r.type&&r.delta.length()&&zf(this,o?o.offset(o.scroll)+s:this.length(),r.delta),this.batchEnd(),this.optimize()}isEnabled(){return"true"===this.domNode.getAttribute("contenteditable")}leaf(t){const e=this.path(t).pop();if(!e)return[null,-1];const[n,r]=e;return n instanceof Zc?[n,r]:[null,-1]}line(t){return t===this.length()?this.line(t-1):this.descendant(Nf,t)}lines(){const t=(e,n,r)=>{let i=[],o=r;return e.children.forEachAt(n,r,((e,n,r)=>{Nf(e)?i.push(e):e instanceof rh&&(i=i.concat(t(e,n,o))),o-=r})),i};return t(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE)}optimize(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.batch||(super.optimize(t,e),t.length>0&&this.emitter.emit(Jh.events.SCROLL_OPTIMIZE,t,e))}path(t){return super.path(t).slice(1)}remove(){}update(t){if(this.batch)return void(Array.isArray(t)&&(this.batch=this.batch.concat(t)));let e=Jh.sources.USER;"string"==typeof t&&(e=t),Array.isArray(t)||(t=this.observer.takeRecords()),(t=t.filter((t=>{let{target:e}=t;const n=this.find(e,!0);return n&&!Lf(n)}))).length>0&&this.emitter.emit(Jh.events.SCROLL_BEFORE_UPDATE,e,t),super.update(t.concat([])),t.length>0&&this.emitter.emit(Jh.events.SCROLL_UPDATE,e,t)}updateEmbedAt(t,e,n){const[r]=this.descendant((t=>t instanceof Bh),t);r&&r.statics.blotName===e&&Lf(r)&&r.updateContent(n)}handleDragStart(t){t.preventDefault()}deltaToRenderBlocks(t){const e=[];let n=new Nh;return t.forEach((t=>{const r=t?.insert;if(r)if("string"==typeof r){const i=r.split("\n");i.slice(0,-1).forEach((r=>{n.insert(r,t.attributes),e.push({type:"block",delta:n,attributes:t.attributes??{}}),n=new Nh}));const o=i[i.length-1];o&&n.insert(o,t.attributes)}else{const i=Object.keys(r)[0];if(!i)return;this.query(i,Sc.INLINE)?n.push(t):(n.length()&&e.push({type:"block",delta:n,attributes:{}}),n=new Nh,e.push({type:"blockEmbed",key:i,value:r[i],attributes:t.attributes??{}}))}})),n.length()&&e.push({type:"block",delta:n,attributes:{}}),e}createBlock(t,e){let n;const r={};Object.entries(t).forEach((t=>{let[e,i]=t;null!=this.query(e,Sc.BLOCK&Sc.BLOT)?n=e:r[e]=i}));const i=this.create(n||this.statics.defaultChild.blotName,n?t[n]:void 0);this.insertBefore(i,e||void 0);const o=i.length();return Object.entries(r).forEach((t=>{let[e,n]=t;i.formatAt(0,o,e,n)})),i}},"blots/text":zh,"modules/clipboard":class extends ff{static DEFAULTS={matchers:[]};constructor(t,e){super(t,e),this.quill.root.addEventListener("copy",(t=>this.onCaptureCopy(t,!1))),this.quill.root.addEventListener("cut",(t=>this.onCaptureCopy(t,!0))),this.quill.root.addEventListener("paste",this.onCapturePaste.bind(this)),this.matchers=[],md.concat(this.options.matchers??[]).forEach((t=>{let[e,n]=t;this.addMatcher(e,n)}))}addMatcher(t,e){this.matchers.push([t,e])}convert(t){let{html:e,text:n}=t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(r[Ff.blotName])return(new Nh).insert(n||"",{[Ff.blotName]:r[Ff.blotName]});if(!e)return(new Nh).insert(n||"",r);const i=this.convertHTML(e);return kd(i,"\n")&&(null==i.ops[i.ops.length-1].attributes||r.table)?i.compose((new Nh).retain(i.length()-1).delete(1)):i}normalizeHTML(t){(t=>{t.documentElement&&bd.forEach((e=>{e(t)}))})(t)}convertHTML(t){const e=(new DOMParser).parseFromString(t,"text/html");this.normalizeHTML(e);const n=e.body,r=new WeakMap,[i,o]=this.prepareMatching(n,r);return Od(this.quill.scroll,n,i,o,r)}dangerouslyPasteHTML(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:xf.sources.API;if("string"==typeof t){const n=this.convert({html:t,text:""});this.quill.setContents(n,e),this.quill.setSelection(0,xf.sources.SILENT)}else{const r=this.convert({html:e,text:""});this.quill.updateContents((new Nh).retain(t).concat(r),n),this.quill.setSelection(t+r.length(),xf.sources.SILENT)}}onCaptureCopy(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(t.defaultPrevented)return;t.preventDefault();const[n]=this.quill.selection.getRange();if(null==n)return;const{html:r,text:i}=this.onCopy(n,e);t.clipboardData?.setData("text/plain",i),t.clipboardData?.setData("text/html",r),e&&ad({range:n,quill:this.quill})}normalizeURIList(t){return t.split(/\r?\n/).filter((t=>"#"!==t[0])).join("\n")}onCapturePaste(t){if(t.defaultPrevented||!this.quill.isEnabled())return;t.preventDefault();const e=this.quill.getSelection(!0);if(null==e)return;const n=t.clipboardData?.getData("text/html");let r=t.clipboardData?.getData("text/plain");if(!n&&!r){const e=t.clipboardData?.getData("text/uri-list");e&&(r=this.normalizeURIList(e))}const i=Array.from(t.clipboardData?.files||[]);if(!n&&i.length>0)this.quill.uploader.upload(e,i);else{if(n&&i.length>0){const t=(new DOMParser).parseFromString(n,"text/html");if(1===t.body.childElementCount&&"IMG"===t.body.firstElementChild?.tagName)return void this.quill.uploader.upload(e,i)}this.onPaste(e,{html:n,text:r})}}onCopy(t){const e=this.quill.getText(t);return{html:this.quill.getSemanticHTML(t),text:e}}onPaste(t,e){let{text:n,html:r}=e;const i=this.quill.getFormat(t.index),o=this.convert({text:n,html:r},i);qd.log("onPaste",o,{text:n,html:r});const s=(new Nh).retain(t.index).delete(t.length).concat(o);this.quill.updateContents(s,xf.sources.USER),this.quill.setSelection(s.length()-t.length,xf.sources.SILENT),this.quill.scrollSelectionIntoView()}prepareMatching(t,e){const n=[],r=[];return this.matchers.forEach((i=>{const[o,s]=i;switch(o){case Node.TEXT_NODE:r.push(s);break;case Node.ELEMENT_NODE:n.push(s);break;default:Array.from(t.querySelectorAll(o)).forEach((t=>{if(e.has(t)){const n=e.get(t);n?.push(s)}else e.set(t,[s])}))}})),[n,r]}},"modules/history":class extends ff{static DEFAULTS={delay:1e3,maxStack:100,userOnly:!1};lastRecorded=0;ignoreChange=!1;stack={undo:[],redo:[]};currentRange=null;constructor(t,e){super(t,e),this.quill.on(xf.events.EDITOR_CHANGE,((t,e,n,r)=>{t===xf.events.SELECTION_CHANGE?e&&r!==xf.sources.SILENT&&(this.currentRange=e):t===xf.events.TEXT_CHANGE&&(this.ignoreChange||(this.options.userOnly&&r!==xf.sources.USER?this.transform(e):this.record(e,n)),this.currentRange=Td(this.currentRange,e))})),this.quill.keyboard.addBinding({key:"z",shortKey:!0},this.undo.bind(this)),this.quill.keyboard.addBinding({key:["z","Z"],shortKey:!0,shiftKey:!0},this.redo.bind(this)),/Win/i.test(navigator.platform)&&this.quill.keyboard.addBinding({key:"y",shortKey:!0},this.redo.bind(this)),this.quill.root.addEventListener("beforeinput",(t=>{"historyUndo"===t.inputType?(this.undo(),t.preventDefault()):"historyRedo"===t.inputType&&(this.redo(),t.preventDefault())}))}change(t,e){if(0===this.stack[t].length)return;const n=this.stack[t].pop();if(!n)return;const r=this.quill.getContents(),i=n.delta.invert(r);this.stack[e].push({delta:i,range:Td(n.range,i)}),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(n.delta,xf.sources.USER),this.ignoreChange=!1,this.restoreSelection(n)}clear(){this.stack={undo:[],redo:[]}}cutoff(){this.lastRecorded=0}record(t,e){if(0===t.ops.length)return;this.stack.redo=[];let n=t.invert(e),r=this.currentRange;const i=Date.now();if(this.lastRecorded+this.options.delay>i&&this.stack.undo.length>0){const t=this.stack.undo.pop();t&&(n=n.compose(t.delta),r=t.range)}else this.lastRecorded=i;0!==n.length()&&(this.stack.undo.push({delta:n,range:r}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift())}redo(){this.change("redo","undo")}transform(t){_d(this.stack.undo,t),_d(this.stack.redo,t)}undo(){this.change("undo","redo")}restoreSelection(t){if(t.range)this.quill.setSelection(t.range,xf.sources.USER);else{const e=function(t,e){const n=e.reduce(((t,e)=>t+(e.delete||0)),0);let r=e.length()-n;return function(t,e){const n=e.ops[e.ops.length-1];return null!=n&&(null!=n.insert?"string"==typeof n.insert&&n.insert.endsWith("\n"):null!=n.attributes&&Object.keys(n.attributes).some((e=>null!=t.query(e,Sc.BLOCK))))}(t,e)&&(r-=1),r}(this.quill.scroll,t.delta);this.quill.setSelection(e,xf.sources.USER)}}},"modules/keyboard":rd,"modules/uploader":Nd,"modules/input":class extends ff{constructor(t,e){super(t,e),t.root.addEventListener("beforeinput",(t=>{this.handleBeforeInput(t)})),/Android/i.test(navigator.userAgent)||t.on(xf.events.COMPOSITION_BEFORE_START,(()=>{this.handleCompositionStart()}))}deleteRange(t){ad({range:t,quill:this.quill})}replaceText(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(0===t.length)return!1;if(e){const n=this.quill.getFormat(t.index,1);this.deleteRange(t),this.quill.updateContents((new Nh).retain(t.index).insert(e,n),xf.sources.USER)}else this.deleteRange(t);return this.quill.setSelection(t.index+e.length,0,xf.sources.SILENT),!0}handleBeforeInput(t){if(this.quill.composition.isComposing||t.defaultPrevented||!Ld.includes(t.inputType))return;const e=t.getTargetRanges?t.getTargetRanges()[0]:null;if(!e||!0===e.collapsed)return;const n=function(t){return"string"==typeof t.data?t.data:t.dataTransfer?.types.includes("text/plain")?t.dataTransfer.getData("text/plain"):null}(t);if(null==n)return;const r=this.quill.selection.normalizeNative(e),i=r?this.quill.selection.normalizedToRange(r):null;i&&this.replaceText(i,n)&&t.preventDefault()}handleCompositionStart(){const t=this.quill.getSelection();t&&this.replaceText(t)}},"modules/uiNode":class extends ff{isListening=!1;selectionChangeDeadline=0;constructor(t,e){super(t,e),this.handleArrowKeys(),this.handleNavigationShortcuts()}handleArrowKeys(){this.quill.keyboard.addBinding({key:["ArrowLeft","ArrowRight"],offset:0,shiftKey:null,handler(t,e){let{line:n,event:r}=e;if(!(n instanceof Yc&&n.uiNode))return!0;const i="rtl"===getComputedStyle(n.domNode).direction;return!!(i&&"ArrowRight"!==r.key||!i&&"ArrowLeft"!==r.key)||(this.quill.setSelection(t.index-1,t.length+(r.shiftKey?1:0),xf.sources.USER),!1)}})}handleNavigationShortcuts(){this.quill.root.addEventListener("keydown",(t=>{!t.defaultPrevented&&(t=>"ArrowLeft"===t.key||"ArrowRight"===t.key||"ArrowUp"===t.key||"ArrowDown"===t.key||"Home"===t.key||!(!zd||"a"!==t.key||!0!==t.ctrlKey))(t)&&this.ensureListeningToSelectionChange()}))}ensureListeningToSelectionChange(){this.selectionChangeDeadline=Date.now()+100,this.isListening||(this.isListening=!0,document.addEventListener("selectionchange",(()=>{this.isListening=!1,Date.now()<=this.selectionChangeDeadline&&this.handleSelectionChange()}),{once:!0}))}handleSelectionChange(){const t=document.getSelection();if(!t)return;const e=t.getRangeAt(0);if(!0!==e.collapsed||0!==e.startOffset)return;const n=this.quill.scroll.find(e.startContainer);if(!(n instanceof Yc&&n.uiNode))return;const r=document.createRange();r.setStartAfter(n.uiNode),r.setEndAfter(n.uiNode),t.removeAllRanges(),t.addRange(r)}}});const Sd=new class extends Dc{add(t,e){let n=0;if("+1"===e||"-1"===e){const r=this.value(t)||0;n="+1"===e?r+1:r-1}else"number"==typeof e&&(n=e);return 0===n?(this.remove(t),!0):super.add(t,n.toString())}canAdd(t,e){return super.canAdd(t,e)||super.canAdd(t,parseInt(e,10))}value(t){return parseInt(super.value(t),10)||void 0}}("indent","ql-indent",{scope:Sc.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});class $d extends Tf{}$d.blotName="list-container",$d.tagName="OL";class Rd extends Ch{static create(t){const e=super.create();return e.setAttribute("data-list",t),e}static formats(t){return t.getAttribute("data-list")||void 0}static register(){xf.register($d)}constructor(t,e){super(t,e);const n=e.ownerDocument.createElement("span"),r=n=>{if(!t.isEnabled())return;const r=this.statics.formats(e,t);"checked"===r?(this.format("list","unchecked"),n.preventDefault()):"unchecked"===r&&(this.format("list","checked"),n.preventDefault())};n.addEventListener("mousedown",r),n.addEventListener("touchstart",r),this.attachUI(n)}format(t,e){t===this.statics.blotName&&e?this.domNode.setAttribute("data-list",e):super.format(t,e)}}Rd.blotName="list",Rd.tagName="LI",$d.allowedChildren=[Rd],Rd.requiredContainer=$d;class Cd extends Rh{static blotName="bold";static tagName=["STRONG","B"];static create(){return super.create()}static formats(){return!0}optimize(t){super.optimize(t),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}class Bd extends Rh{static blotName="link";static tagName="A";static SANITIZED_URL="about:blank";static PROTOCOL_WHITELIST=["http","https","mailto","tel","sms"];static create(t){const e=super.create(t);return e.setAttribute("href",this.sanitize(t)),e.setAttribute("rel","noopener noreferrer"),e.setAttribute("target","_blank"),e}static formats(t){return t.getAttribute("href")}static sanitize(t){return Id(t,this.PROTOCOL_WHITELIST)?t:this.SANITIZED_URL}format(t,e){t===this.statics.blotName&&e?this.domNode.setAttribute("href",this.constructor.sanitize(e)):super.format(t,e)}}function Id(t,e){const n=document.createElement("a");n.href=t;const r=n.href.slice(0,n.href.indexOf(":"));return e.indexOf(r)>-1}const Dd=["alt","height","width"],Hd=["height","width"],Vd=new Dc("code-token","hljs",{scope:Sc.INLINE});class Pd extends Rh{static formats(t,e){for(;null!=t&&t!==e.domNode;){if(t.classList&&t.classList.contains(Ff.className))return super.formats(t,e);t=t.parentNode}}constructor(t,e,n){super(t,e,n),Vd.add(this.domNode,n)}format(t,e){t!==Pd.blotName?super.format(t,e):e?Vd.add(this.domNode,e):(Vd.remove(this.domNode),this.domNode.classList.remove(this.statics.className))}optimize(){super.optimize(...arguments),Vd.value(this.domNode)||this.unwrap()}}Pd.blotName="code-token",Pd.className="ql-token";class Fd extends Ff{static create(t){const e=super.create(t);return"string"==typeof t&&e.setAttribute("data-language",t),e}static formats(t){return t.getAttribute("data-language")||"plain"}static register(){}format(t,e){t===this.statics.blotName&&e?this.domNode.setAttribute("data-language",e):super.format(t,e)}replaceWith(t,e){return this.formatAt(0,this.length(),Pd.blotName,!1),super.replaceWith(t,e)}}class Ud extends Pf{attach(){super.attach(),this.forceNext=!1,this.scroll.emitMount(this)}format(t,e){t===Fd.blotName&&(this.forceNext=!0,this.children.forEach((n=>{n.format(t,e)})))}formatAt(t,e,n,r){n===Fd.blotName&&(this.forceNext=!0),super.formatAt(t,e,n,r)}highlight(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(null==this.children.head)return;const n=`${Array.from(this.domNode.childNodes).filter((t=>t!==this.uiNode)).map((t=>t.textContent)).join("\n")}\n`,r=Fd.formats(this.children.head.domNode);if(e||this.forceNext||this.cachedText!==n){if(n.trim().length>0||null==this.cachedText){const e=this.children.reduce(((t,e)=>t.concat(Ih(e,!1))),new Nh),i=t(n,r);e.diff(i).reduce(((t,e)=>{let{retain:n,attributes:r}=e;return n?(r&&Object.keys(r).forEach((e=>{[Fd.blotName,Pd.blotName].includes(e)&&this.formatAt(t,n,e,r[e])})),t+n):t}),0)}this.cachedText=n,this.forceNext=!1}}html(t,e){const[n]=this.children.find(t);return`<pre data-language="${n?Fd.formats(n.domNode):"plain"}">\n${$h(this.code(t,e))}\n</pre>`}optimize(t){if(super.optimize(t),null!=this.parent&&null!=this.children.head&&null!=this.uiNode){const t=Fd.formats(this.children.head.domNode);t!==this.uiNode.value&&(this.uiNode.value=t)}}}Ud.allowedChildren=[Fd],Fd.requiredContainer=Ud,Fd.allowedChildren=[Pd,Hh,zh,Lh];class Wd extends ff{static register(){xf.register(Pd,!0),xf.register(Fd,!0),xf.register(Ud,!0)}constructor(t,e){if(super(t,e),null==this.options.hljs)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");this.languages=this.options.languages.reduce(((t,e)=>{let{key:n}=e;return t[n]=!0,t}),{}),this.highlightBlot=this.highlightBlot.bind(this),this.initListener(),this.initTimer()}initListener(){this.quill.on(xf.events.SCROLL_BLOT_MOUNT,(t=>{if(!(t instanceof Ud))return;const e=this.quill.root.ownerDocument.createElement("select");this.options.languages.forEach((t=>{let{key:n,label:r}=t;const i=e.ownerDocument.createElement("option");i.textContent=r,i.setAttribute("value",n),e.appendChild(i)})),e.addEventListener("change",(()=>{t.format(Fd.blotName,e.value),this.quill.root.focus(),this.highlight(t,!0)})),null==t.uiNode&&(t.attachUI(e),t.children.head&&(e.value=Fd.formats(t.children.head.domNode)))}))}initTimer(){let t=null;this.quill.on(xf.events.SCROLL_OPTIMIZE,(()=>{t&&clearTimeout(t),t=setTimeout((()=>{this.highlight(),t=null}),this.options.interval)}))}highlight(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this.quill.selection.composing)return;this.quill.update(xf.sources.USER);const n=this.quill.getSelection();(null==t?this.quill.scroll.descendants(Ud):[t]).forEach((t=>{t.highlight(this.highlightBlot,e)})),this.quill.update(xf.sources.SILENT),null!=n&&this.quill.setSelection(n,xf.sources.SILENT)}highlightBlot(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"plain";if(e=this.languages[e]?e:"plain","plain"===e)return $h(t).split("\n").reduce(((t,n,r)=>(0!==r&&t.insert("\n",{[Ff.blotName]:e}),t.insert(n))),new Nh);const n=this.quill.root.ownerDocument.createElement("div");return n.classList.add(Ff.className),n.innerHTML=((t,e,n)=>{if("string"==typeof t.versionString){const r=t.versionString.split(".")[0];if(parseInt(r,10)>=11)return t.highlight(n,{language:e}).value}return t.highlight(e,n).value})(this.options.hljs,e,t),Od(this.quill.scroll,n,[(t,e)=>{const n=Vd.value(t);return n?e.compose((new Nh).retain(e.length(),{[Pd.blotName]:n})):e}],[(t,n)=>t.data.split("\n").reduce(((t,n,r)=>(0!==r&&t.insert("\n",{[Ff.blotName]:e}),t.insert(n))),n)],new WeakMap)}}Wd.DEFAULTS={hljs:window.hljs,interval:1e3,languages:[{key:"plain",label:"Plain"},{key:"bash",label:"Bash"},{key:"cpp",label:"C++"},{key:"cs",label:"C#"},{key:"css",label:"CSS"},{key:"diff",label:"Diff"},{key:"xml",label:"HTML/XML"},{key:"java",label:"Java"},{key:"javascript",label:"JavaScript"},{key:"markdown",label:"Markdown"},{key:"php",label:"PHP"},{key:"python",label:"Python"},{key:"ruby",label:"Ruby"},{key:"sql",label:"SQL"}]};class Zd extends Ch{static blotName="table";static tagName="TD";static create(t){const e=super.create();return e.setAttribute("data-row",t||Yd()),e}static formats(t){if(t.hasAttribute("data-row"))return t.getAttribute("data-row")}cellOffset(){return this.parent?this.parent.children.indexOf(this):-1}format(t,e){t===Zd.blotName&&e?this.domNode.setAttribute("data-row",e):super.format(t,e)}row(){return this.parent}rowOffset(){return this.row()?this.row().rowOffset():-1}table(){return this.row()&&this.row().table()}}class Kd extends Tf{static blotName="table-row";static tagName="TR";checkMerge(){if(super.checkMerge()&&null!=this.next.children.head){const t=this.children.head.formats(),e=this.children.tail.formats(),n=this.next.children.head.formats(),r=this.next.children.tail.formats();return t.table===e.table&&t.table===n.table&&t.table===r.table}return!1}optimize(t){super.optimize(t),this.children.forEach((t=>{if(null==t.next)return;const e=t.formats(),n=t.next.formats();if(e.table!==n.table){const e=this.splitAfter(t);e&&e.optimize(),this.prev&&this.prev.optimize()}}))}rowOffset(){return this.parent?this.parent.children.indexOf(this):-1}table(){return this.parent&&this.parent.parent}}class Gd extends Tf{static blotName="table-body";static tagName="TBODY"}class Qd extends Tf{static blotName="table-container";static tagName="TABLE";balanceCells(){const t=this.descendants(Kd),e=t.reduce(((t,e)=>Math.max(e.children.length,t)),0);t.forEach((t=>{new Array(e-t.children.length).fill(0).forEach((()=>{let e;null!=t.children.head&&(e=Zd.formats(t.children.head.domNode));const n=this.scroll.create(Zd.blotName,e);t.appendChild(n),n.optimize()}))}))}cells(t){return this.rows().map((e=>e.children.at(t)))}deleteColumn(t){const[e]=this.descendant(Gd);null!=e&&null!=e.children.head&&e.children.forEach((e=>{const n=e.children.at(t);null!=n&&n.remove()}))}insertColumn(t){const[e]=this.descendant(Gd);null!=e&&null!=e.children.head&&e.children.forEach((e=>{const n=e.children.at(t),r=Zd.formats(e.children.head.domNode),i=this.scroll.create(Zd.blotName,r);e.insertBefore(i,n)}))}insertRow(t){const[e]=this.descendant(Gd);if(null==e||null==e.children.head)return;const n=Yd(),r=this.scroll.create(Kd.blotName);e.children.head.children.forEach((()=>{const t=this.scroll.create(Zd.blotName,n);r.appendChild(t)}));const i=e.children.at(t);e.insertBefore(r,i)}rows(){const t=this.children.head;return null==t?[]:t.children.map((t=>t))}}function Yd(){return`row-${Math.random().toString(36).slice(2,6)}`}Qd.allowedChildren=[Gd],Gd.requiredContainer=Qd,Gd.allowedChildren=[Kd],Kd.requiredContainer=Gd,Kd.allowedChildren=[Zd],Zd.requiredContainer=Kd;const Jd=Qh("quill:toolbar");class Xd extends ff{constructor(t,e){if(super(t,e),Array.isArray(this.options.container)){const e=document.createElement("div");e.setAttribute("role","toolbar"),function(t,e){Array.isArray(e[0])||(e=[e]),e.forEach((e=>{const n=document.createElement("span");n.classList.add("ql-formats"),e.forEach((t=>{if("string"==typeof t)tp(n,t);else{const e=Object.keys(t)[0],r=t[e];Array.isArray(r)?function(t,e,n){const r=document.createElement("select");r.classList.add(`ql-${e}`),n.forEach((t=>{const e=document.createElement("option");!1!==t?e.setAttribute("value",String(t)):e.setAttribute("selected","selected"),r.appendChild(e)})),t.appendChild(r)}(n,e,r):tp(n,e,r)}})),t.appendChild(n)}))}(e,this.options.container),t.container?.parentNode?.insertBefore(e,t.container),this.container=e}else this.container="string"==typeof this.options.container?document.querySelector(this.options.container):this.options.container;this.container instanceof HTMLElement?(this.container.classList.add("ql-toolbar"),this.controls=[],this.handlers={},this.options.handlers&&Object.keys(this.options.handlers).forEach((t=>{const e=this.options.handlers?.[t];e&&this.addHandler(t,e)})),Array.from(this.container.querySelectorAll("button, select")).forEach((t=>{this.attach(t)})),this.quill.on(xf.events.EDITOR_CHANGE,(()=>{const[t]=this.quill.selection.getRange();this.update(t)}))):Jd.error("Container required for toolbar",this.options)}addHandler(t,e){this.handlers[t]=e}attach(t){let e=Array.from(t.classList).find((t=>0===t.indexOf("ql-")));e&&(e=e.slice(3),"BUTTON"===t.tagName&&t.setAttribute("type","button"),null!=this.handlers[e]||null!=this.quill.scroll.query(e)?(t.addEventListener("SELECT"===t.tagName?"change":"click",(n=>{let r;if("SELECT"===t.tagName){if(t.selectedIndex<0)return;const e=t.options[t.selectedIndex];r=!e.hasAttribute("selected")&&(e.value||!1)}else r=!t.classList.contains("ql-active")&&(t.value||!t.hasAttribute("value")),n.preventDefault();this.quill.focus();const[i]=this.quill.selection.getRange();if(null!=this.handlers[e])this.handlers[e].call(this,r);else if(this.quill.scroll.query(e).prototype instanceof ih){if(r=prompt(`Enter ${e}`),!r)return;this.quill.updateContents((new Nh).retain(i.index).delete(i.length).insert({[e]:r}),xf.sources.USER)}else this.quill.format(e,r,xf.sources.USER);this.update(i)})),this.controls.push([e,t])):Jd.warn("ignoring attaching to nonexistent format",e,t))}update(t){const e=null==t?{}:this.quill.getFormat(t);this.controls.forEach((n=>{const[r,i]=n;if("SELECT"===i.tagName){let n=null;if(null==t)n=null;else if(null==e[r])n=i.querySelector("option[selected]");else if(!Array.isArray(e[r])){let t=e[r];"string"==typeof t&&(t=t.replace(/"/g,'\\"')),n=i.querySelector(`option[value="${t}"]`)}null==n?(i.value="",i.selectedIndex=-1):n.selected=!0}else if(null==t)i.classList.remove("ql-active"),i.setAttribute("aria-pressed","false");else if(i.hasAttribute("value")){const t=e[r],n=t===i.getAttribute("value")||null!=t&&t.toString()===i.getAttribute("value")||null==t&&!i.getAttribute("value");i.classList.toggle("ql-active",n),i.setAttribute("aria-pressed",n.toString())}else{const t=null!=e[r];i.classList.toggle("ql-active",t),i.setAttribute("aria-pressed",t.toString())}}))}}function tp(t,e,n){const r=document.createElement("button");r.setAttribute("type","button"),r.classList.add(`ql-${e}`),r.setAttribute("aria-pressed","false"),null!=n?(r.value=n,r.setAttribute("aria-label",`${e}: ${n}`)):r.setAttribute("aria-label",e),t.appendChild(r)}Xd.DEFAULTS={},Xd.DEFAULTS={container:null,handlers:{clean(){const t=this.quill.getSelection();if(null!=t)if(0===t.length){const t=this.quill.getFormat();Object.keys(t).forEach((t=>{null!=this.quill.scroll.query(t,Sc.INLINE)&&this.quill.format(t,!1,xf.sources.USER)}))}else this.quill.removeFormat(t.index,t.length,xf.sources.USER)},direction(t){const{align:e}=this.quill.getFormat();"rtl"===t&&null==e?this.quill.format("align","right",xf.sources.USER):t||"right"!==e||this.quill.format("align",!1,xf.sources.USER),this.quill.format("direction",t,xf.sources.USER)},indent(t){const e=this.quill.getSelection(),n=this.quill.getFormat(e),r=parseInt(n.indent||0,10);if("+1"===t||"-1"===t){let e="+1"===t?1:-1;"rtl"===n.direction&&(e*=-1),this.quill.format("indent",r+e,xf.sources.USER)}},link(t){!0===t&&(t=prompt("Enter link URL:")),this.quill.format("link",t,xf.sources.USER)},list(t){const e=this.quill.getSelection(),n=this.quill.getFormat(e);this.quill.format("list","check"===t?"checked"!==n.list&&"unchecked"!==n.list&&"unchecked":t,xf.sources.USER)}}};const ep='<svg viewbox="0 0 18 18"><polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"/><polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"/><line class="ql-stroke" x1="10" x2="8" y1="5" y2="13"/></svg>';var np={align:{"":'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="3" x2="13" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="9" y1="4" y2="4"/></svg>',center:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="14" x2="4" y1="14" y2="14"/><line class="ql-stroke" x1="12" x2="6" y1="4" y2="4"/></svg>',right:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="5" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="9" y1="4" y2="4"/></svg>',justify:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="3" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="3" y1="4" y2="4"/></svg>'},background:'<svg viewbox="0 0 18 18"><g class="ql-fill ql-color-label"><polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"/><rect height="1" width="1" x="4" y="4"/><polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"/><rect height="1" width="1" x="2" y="6"/><rect height="1" width="1" x="3" y="5"/><rect height="1" width="1" x="4" y="7"/><polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"/><rect height="1" width="1" x="2" y="12"/><rect height="1" width="1" x="2" y="9"/><rect height="1" width="1" x="2" y="15"/><polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"/><rect height="1" width="1" x="3" y="8"/><path d="M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z"/><path d="M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z"/><path d="M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z"/><rect height="1" width="1" x="12" y="2"/><rect height="1" width="1" x="11" y="3"/><path d="M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z"/><rect height="1" width="1" x="2" y="3"/><rect height="1" width="1" x="6" y="2"/><rect height="1" width="1" x="3" y="2"/><rect height="1" width="1" x="5" y="3"/><rect height="1" width="1" x="9" y="2"/><rect height="1" width="1" x="15" y="14"/><polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"/><rect height="1" width="1" x="13" y="7"/><rect height="1" width="1" x="15" y="5"/><rect height="1" width="1" x="14" y="6"/><rect height="1" width="1" x="15" y="8"/><rect height="1" width="1" x="14" y="9"/><path d="M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z"/><rect height="1" width="1" x="14" y="3"/><polygon points="12 6.868 12 6 11.62 6 12 6.868"/><rect height="1" width="1" x="15" y="2"/><rect height="1" width="1" x="12" y="5"/><rect height="1" width="1" x="13" y="4"/><polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"/><rect height="1" width="1" x="9" y="14"/><rect height="1" width="1" x="8" y="15"/><path d="M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z"/><rect height="1" width="1" x="5" y="15"/><path d="M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z"/><rect height="1" width="1" x="11" y="15"/><path d="M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z"/><rect height="1" width="1" x="14" y="15"/><rect height="1" width="1" x="15" y="11"/></g><polyline class="ql-stroke" points="5.5 13 9 5 12.5 13"/><line class="ql-stroke" x1="11.63" x2="6.38" y1="11" y2="11"/></svg>',blockquote:'<svg viewbox="0 0 18 18"><rect class="ql-fill ql-stroke" height="3" width="3" x="4" y="5"/><rect class="ql-fill ql-stroke" height="3" width="3" x="11" y="5"/><path class="ql-even ql-fill ql-stroke" d="M7,8c0,4.031-3,5-3,5"/><path class="ql-even ql-fill ql-stroke" d="M14,8c0,4.031-3,5-3,5"/></svg>',bold:'<svg viewbox="0 0 18 18"><path class="ql-stroke" d="M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z"/><path class="ql-stroke" d="M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z"/></svg>',clean:'<svg class="" viewbox="0 0 18 18"><line class="ql-stroke" x1="5" x2="13" y1="3" y2="3"/><line class="ql-stroke" x1="6" x2="9.35" y1="12" y2="3"/><line class="ql-stroke" x1="11" x2="15" y1="11" y2="15"/><line class="ql-stroke" x1="15" x2="11" y1="11" y2="15"/><rect class="ql-fill" height="1" rx="0.5" ry="0.5" width="7" x="2" y="14"/></svg>',code:ep,"code-block":ep,color:'<svg viewbox="0 0 18 18"><line class="ql-color-label ql-stroke ql-transparent" x1="3" x2="15" y1="15" y2="15"/><polyline class="ql-stroke" points="5.5 11 9 3 12.5 11"/><line class="ql-stroke" x1="11.63" x2="6.38" y1="9" y2="9"/></svg>',direction:{"":'<svg viewbox="0 0 18 18"><polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"/><line class="ql-stroke ql-fill" x1="15" x2="11" y1="4" y2="4"/><path class="ql-fill" d="M11,3a3,3,0,0,0,0,6h1V3H11Z"/><rect class="ql-fill" height="11" width="1" x="11" y="4"/><rect class="ql-fill" height="11" width="1" x="13" y="4"/></svg>',rtl:'<svg viewbox="0 0 18 18"><polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"/><line class="ql-stroke ql-fill" x1="9" x2="5" y1="4" y2="4"/><path class="ql-fill" d="M5,3A3,3,0,0,0,5,9H6V3H5Z"/><rect class="ql-fill" height="11" width="1" x="5" y="4"/><rect class="ql-fill" height="11" width="1" x="7" y="4"/></svg>'},formula:'<svg viewbox="0 0 18 18"><path class="ql-fill" d="M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z"/><rect class="ql-fill" height="1.6" rx="0.8" ry="0.8" width="5" x="5.15" y="6.2"/><path class="ql-fill" d="M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z"/></svg>',header:{1:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z"/></svg>',2:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',3:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.65186,12.30664a2.6742,2.6742,0,0,1-2.915,2.68457,3.96592,3.96592,0,0,1-2.25537-.6709.56007.56007,0,0,1-.13232-.83594L11.64648,13c.209-.34082.48389-.36328.82471-.1543a2.32654,2.32654,0,0,0,1.12256.33008c.71484,0,1.12207-.35156,1.12207-.78125,0-.61523-.61621-.86816-1.46338-.86816H13.2085a.65159.65159,0,0,1-.68213-.41895l-.05518-.10937a.67114.67114,0,0,1,.14307-.78125l.71533-.86914a8.55289,8.55289,0,0,1,.68213-.7373V8.58887a3.93913,3.93913,0,0,1-.748.05469H11.9873a.54085.54085,0,0,1-.605-.60547V7.59863a.54085.54085,0,0,1,.605-.60547h3.75146a.53773.53773,0,0,1,.60547.59375v.17676a1.03723,1.03723,0,0,1-.27539.748L14.74854,10.0293A2.31132,2.31132,0,0,1,16.65186,12.30664ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',4:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm7.05371,7.96582v.38477c0,.39648-.165.60547-.46191.60547h-.47314v1.29785a.54085.54085,0,0,1-.605.60547h-.69336a.54085.54085,0,0,1-.605-.60547V12.95605H11.333a.5412.5412,0,0,1-.60547-.60547v-.15332a1.199,1.199,0,0,1,.22021-.748l2.56348-4.05957a.7819.7819,0,0,1,.72607-.39648h1.27637a.54085.54085,0,0,1,.605.60547v3.7627h.33008A.54055.54055,0,0,1,17.05371,11.96582ZM14.28125,8.7207h-.022a4.18969,4.18969,0,0,1-.38525.81348l-1.188,1.80469v.02246h1.5293V9.60059A7.04058,7.04058,0,0,1,14.28125,8.7207Z"/></svg>',5:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.74023,12.18555a2.75131,2.75131,0,0,1-2.91553,2.80566,3.908,3.908,0,0,1-2.25537-.68164.54809.54809,0,0,1-.13184-.8252L11.73438,13c.209-.34082.48389-.36328.8252-.1543a2.23757,2.23757,0,0,0,1.1001.33008,1.01827,1.01827,0,0,0,1.1001-.96777c0-.61621-.53906-.97949-1.25439-.97949a2.15554,2.15554,0,0,0-.64893.09961,1.15209,1.15209,0,0,1-.814.01074l-.12109-.04395a.64116.64116,0,0,1-.45117-.71484l.231-3.00391a.56666.56666,0,0,1,.62744-.583H15.541a.54085.54085,0,0,1,.605.60547v.43945a.54085.54085,0,0,1-.605.60547H13.41748l-.04395.72559a1.29306,1.29306,0,0,1-.04395.30859h.022a2.39776,2.39776,0,0,1,.57227-.07715A2.53266,2.53266,0,0,1,16.74023,12.18555ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',6:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M14.51758,9.64453a1.85627,1.85627,0,0,0-1.24316.38477H13.252a1.73532,1.73532,0,0,1,1.72754-1.4082,2.66491,2.66491,0,0,1,.5498.06641c.35254.05469.57227.01074.70508-.40723l.16406-.5166a.53393.53393,0,0,0-.373-.75977,4.83723,4.83723,0,0,0-1.17773-.14258c-2.43164,0-3.7627,2.17773-3.7627,4.43359,0,2.47559,1.60645,3.69629,3.19043,3.69629A2.70585,2.70585,0,0,0,16.96,12.19727,2.43861,2.43861,0,0,0,14.51758,9.64453Zm-.23047,3.58691c-.67187,0-1.22168-.81445-1.22168-1.45215,0-.47363.30762-.583.72559-.583.96875,0,1.27734.59375,1.27734,1.12207A.82182.82182,0,0,1,14.28711,13.23145ZM10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Z"/></svg>'},italic:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="13" y1="4" y2="4"/><line class="ql-stroke" x1="5" x2="11" y1="14" y2="14"/><line class="ql-stroke" x1="8" x2="10" y1="14" y2="4"/></svg>',image:'<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="10" width="12" x="3" y="4"/><circle class="ql-fill" cx="6" cy="7" r="1"/><polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"/></svg>',indent:{"+1":'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"/></svg>',"-1":'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-stroke" points="5 7 5 11 3 9 5 7"/></svg>'},link:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="11" y1="7" y2="11"/><path class="ql-even ql-stroke" d="M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z"/><path class="ql-even ql-stroke" d="M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z"/></svg>',list:{bullet:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="6" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="6" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="6" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="3" y1="4" y2="4"/><line class="ql-stroke" x1="3" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="3" x2="3" y1="14" y2="14"/></svg>',check:'<svg class="" viewbox="0 0 18 18"><line class="ql-stroke" x1="9" x2="15" y1="4" y2="4"/><polyline class="ql-stroke" points="3 4 4 5 6 3"/><line class="ql-stroke" x1="9" x2="15" y1="14" y2="14"/><polyline class="ql-stroke" points="3 14 4 15 6 13"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-stroke" points="3 9 4 10 6 8"/></svg>',ordered:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="7" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="7" x2="15" y1="14" y2="14"/><line class="ql-stroke ql-thin" x1="2.5" x2="4.5" y1="5.5" y2="5.5"/><path class="ql-fill" d="M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z"/><path class="ql-stroke ql-thin" d="M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156"/><path class="ql-stroke ql-thin" d="M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109"/></svg>'},script:{sub:'<svg viewbox="0 0 18 18"><path class="ql-fill" d="M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z"/><path class="ql-fill" d="M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z"/></svg>',super:'<svg viewbox="0 0 18 18"><path class="ql-fill" d="M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z"/><path class="ql-fill" d="M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z"/></svg>'},strike:'<svg viewbox="0 0 18 18"><line class="ql-stroke ql-thin" x1="15.5" x2="2.5" y1="8.5" y2="9.5"/><path class="ql-fill" d="M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z"/><path class="ql-fill" d="M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z"/></svg>',table:'<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="12" width="12" x="3" y="3"/><rect class="ql-fill" height="2" width="3" x="5" y="5"/><rect class="ql-fill" height="2" width="4" x="9" y="5"/><g class="ql-fill ql-transparent"><rect height="2" width="3" x="5" y="8"/><rect height="2" width="4" x="9" y="8"/><rect height="2" width="3" x="5" y="11"/><rect height="2" width="4" x="9" y="11"/></g></svg>',underline:'<svg viewbox="0 0 18 18"><path class="ql-stroke" d="M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3"/><rect class="ql-fill" height="1" rx="0.5" ry="0.5" width="12" x="3" y="15"/></svg>',video:'<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="12" width="12" x="3" y="3"/><rect class="ql-fill" height="12" width="1" x="5" y="3"/><rect class="ql-fill" height="12" width="1" x="12" y="3"/><rect class="ql-fill" height="2" width="8" x="5" y="8"/><rect class="ql-fill" height="1" width="3" x="3" y="5"/><rect class="ql-fill" height="1" width="3" x="3" y="7"/><rect class="ql-fill" height="1" width="3" x="3" y="10"/><rect class="ql-fill" height="1" width="3" x="3" y="12"/><rect class="ql-fill" height="1" width="3" x="12" y="5"/><rect class="ql-fill" height="1" width="3" x="12" y="7"/><rect class="ql-fill" height="1" width="3" x="12" y="10"/><rect class="ql-fill" height="1" width="3" x="12" y="12"/></svg>'};let rp=0;function ip(t,e){t.setAttribute(e,`${!("true"===t.getAttribute(e))}`)}class op{constructor(t){this.select=t,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",(()=>{this.togglePicker()})),this.label.addEventListener("keydown",(t=>{switch(t.key){case"Enter":this.togglePicker();break;case"Escape":this.escape(),t.preventDefault()}})),this.select.addEventListener("change",this.update.bind(this))}togglePicker(){this.container.classList.toggle("ql-expanded"),ip(this.label,"aria-expanded"),ip(this.options,"aria-hidden")}buildItem(t){const e=document.createElement("span");e.tabIndex="0",e.setAttribute("role","button"),e.classList.add("ql-picker-item");const n=t.getAttribute("value");return n&&e.setAttribute("data-value",n),t.textContent&&e.setAttribute("data-label",t.textContent),e.addEventListener("click",(()=>{this.selectItem(e,!0)})),e.addEventListener("keydown",(t=>{switch(t.key){case"Enter":this.selectItem(e,!0),t.preventDefault();break;case"Escape":this.escape(),t.preventDefault()}})),e}buildLabel(){const t=document.createElement("span");return t.classList.add("ql-picker-label"),t.innerHTML='<svg viewbox="0 0 18 18"><polygon class="ql-stroke" points="7 11 9 13 11 11 7 11"/><polygon class="ql-stroke" points="7 7 9 5 11 7 7 7"/></svg>',t.tabIndex="0",t.setAttribute("role","button"),t.setAttribute("aria-expanded","false"),this.container.appendChild(t),t}buildOptions(){const t=document.createElement("span");t.classList.add("ql-picker-options"),t.setAttribute("aria-hidden","true"),t.tabIndex="-1",t.id=`ql-picker-options-${rp}`,rp+=1,this.label.setAttribute("aria-controls",t.id),this.options=t,Array.from(this.select.options).forEach((e=>{const n=this.buildItem(e);t.appendChild(n),!0===e.selected&&this.selectItem(n)})),this.container.appendChild(t)}buildPicker(){Array.from(this.select.attributes).forEach((t=>{this.container.setAttribute(t.name,t.value)})),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}escape(){this.close(),setTimeout((()=>this.label.focus()),1)}close(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}selectItem(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=this.container.querySelector(".ql-selected");t!==n&&(null!=n&&n.classList.remove("ql-selected"),null!=t&&(t.classList.add("ql-selected"),this.select.selectedIndex=Array.from(t.parentNode.children).indexOf(t),t.hasAttribute("data-value")?this.label.setAttribute("data-value",t.getAttribute("data-value")):this.label.removeAttribute("data-value"),t.hasAttribute("data-label")?this.label.setAttribute("data-label",t.getAttribute("data-label")):this.label.removeAttribute("data-label"),e&&(this.select.dispatchEvent(new Event("change")),this.close())))}update(){let t;if(this.select.selectedIndex>-1){const e=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];t=this.select.options[this.select.selectedIndex],this.selectItem(e)}else this.selectItem(null);const e=null!=t&&t!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",e)}}class sp extends op{constructor(t,e){super(t),this.label.innerHTML=e,this.container.classList.add("ql-color-picker"),Array.from(this.container.querySelectorAll(".ql-picker-item")).slice(0,7).forEach((t=>{t.classList.add("ql-primary")}))}buildItem(t){const e=super.buildItem(t);return e.style.backgroundColor=t.getAttribute("value")||"",e}selectItem(t,e){super.selectItem(t,e);const n=this.label.querySelector(".ql-color-label"),r=t&&t.getAttribute("data-value")||"";n&&("line"===n.tagName?n.style.stroke=r:n.style.fill=r)}}class lp extends op{constructor(t,e){super(t),this.container.classList.add("ql-icon-picker"),Array.from(this.container.querySelectorAll(".ql-picker-item")).forEach((t=>{t.innerHTML=e[t.getAttribute("data-value")||""]})),this.defaultItem=this.container.querySelector(".ql-selected"),this.selectItem(this.defaultItem)}selectItem(t,e){super.selectItem(t,e);const n=t||this.defaultItem;if(null!=n){if(this.label.innerHTML===n.innerHTML)return;this.label.innerHTML=n.innerHTML}}}class up{constructor(t,e){this.quill=t,this.boundsContainer=e||document.body,this.root=t.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,(t=>{const{overflowY:e}=getComputedStyle(t,null);return"visible"!==e&&"clip"!==e})(this.quill.root)&&this.quill.root.addEventListener("scroll",(()=>{this.root.style.marginTop=-1*this.quill.root.scrollTop+"px"})),this.hide()}hide(){this.root.classList.add("ql-hidden")}position(t){const e=t.left+t.width/2-this.root.offsetWidth/2,n=t.bottom+this.quill.root.scrollTop;this.root.style.left=`${e}px`,this.root.style.top=`${n}px`,this.root.classList.remove("ql-flip");const r=this.boundsContainer.getBoundingClientRect(),i=this.root.getBoundingClientRect();let o=0;return i.right>r.right&&(o=r.right-i.right,this.root.style.left=`${e+o}px`),i.left<r.left&&(o=r.left-i.left,this.root.style.left=`${e+o}px`),i.bottom>r.bottom&&(this.root.style.top=n-(t.bottom-t.top+(i.bottom-i.top))+"px",this.root.classList.add("ql-flip")),o}show(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}const ap=[!1,"center","right","justify"],cp=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],hp=[!1,"serif","monospace"],fp=["1","2","3",!1],dp=["small",!1,"large","huge"];class pp extends bf{constructor(t,e){super(t,e);const n=e=>{document.body.contains(t.root)?(null==this.tooltip||this.tooltip.root.contains(e.target)||document.activeElement===this.tooltip.textbox||this.quill.hasFocus()||this.tooltip.hide(),null!=this.pickers&&this.pickers.forEach((t=>{t.container.contains(e.target)||t.close()}))):document.body.removeEventListener("click",n)};t.emitter.listenDOM("click",document.body,n)}addModule(t){const e=super.addModule(t);return"toolbar"===t&&this.extendToolbar(e),e}buildButtons(t,e){Array.from(t).forEach((t=>{(t.getAttribute("class")||"").split(/\s+/).forEach((n=>{if(n.startsWith("ql-")&&(n=n.slice(3),null!=e[n]))if("direction"===n)t.innerHTML=e[n][""]+e[n].rtl;else if("string"==typeof e[n])t.innerHTML=e[n];else{const r=t.value||"";null!=r&&e[n][r]&&(t.innerHTML=e[n][r])}}))}))}buildPickers(t,e){this.pickers=Array.from(t).map((t=>{if(t.classList.contains("ql-align")&&(null==t.querySelector("option")&&bp(t,ap),"object"==typeof e.align))return new lp(t,e.align);if(t.classList.contains("ql-background")||t.classList.contains("ql-color")){const n=t.classList.contains("ql-background")?"background":"color";return null==t.querySelector("option")&&bp(t,cp,"background"===n?"#ffffff":"#000000"),new sp(t,e[n])}return null==t.querySelector("option")&&(t.classList.contains("ql-font")?bp(t,hp):t.classList.contains("ql-header")?bp(t,fp):t.classList.contains("ql-size")&&bp(t,dp)),new op(t)})),this.quill.on(Jh.events.EDITOR_CHANGE,(()=>{this.pickers.forEach((t=>{t.update()}))}))}}pp.DEFAULTS=Bl({},bf.DEFAULTS,{modules:{toolbar:{handlers:{formula(){this.quill.theme.tooltip.edit("formula")},image(){let t=this.container.querySelector("input.ql-image[type=file]");null==t&&(t=document.createElement("input"),t.setAttribute("type","file"),t.setAttribute("accept",this.quill.uploader.options.mimetypes.join(", ")),t.classList.add("ql-image"),t.addEventListener("change",(()=>{const e=this.quill.getSelection(!0);this.quill.uploader.upload(e,t.files),t.value=""})),this.container.appendChild(t)),t.click()},video(){this.quill.theme.tooltip.edit("video")}}}}});class vp extends up{constructor(t,e){super(t,e),this.textbox=this.root.querySelector('input[type="text"]'),this.listen()}listen(){this.textbox.addEventListener("keydown",(t=>{"Enter"===t.key?(this.save(),t.preventDefault()):"Escape"===t.key&&(this.cancel(),t.preventDefault())}))}cancel(){this.hide(),this.restoreFocus()}edit(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"link",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null==this.textbox)return;null!=e?this.textbox.value=e:t!==this.root.getAttribute("data-mode")&&(this.textbox.value="");const n=this.quill.getBounds(this.quill.selection.savedRange);null!=n&&this.position(n),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute(`data-${t}`)||""),this.root.setAttribute("data-mode",t)}restoreFocus(){this.quill.focus({preventScroll:!0})}save(){let{value:t}=this.textbox;switch(this.root.getAttribute("data-mode")){case"link":{const{scrollTop:e}=this.quill.root;this.linkRange?(this.quill.formatText(this.linkRange,"link",t,Jh.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",t,Jh.sources.USER)),this.quill.root.scrollTop=e;break}case"video":t=function(t){let e=t.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||t.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return e?`${e[1]||"https"}://www.youtube.com/embed/${e[2]}?showinfo=0`:(e=t.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?`${e[1]||"https"}://player.vimeo.com/video/${e[2]}/`:t}(t);case"formula":{if(!t)break;const e=this.quill.getSelection(!0);if(null!=e){const n=e.index+e.length;this.quill.insertEmbed(n,this.root.getAttribute("data-mode"),t,Jh.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(n+1," ",Jh.sources.USER),this.quill.setSelection(n+2,Jh.sources.USER)}break}}this.textbox.value="",this.hide()}}function bp(t,e){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];e.forEach((e=>{const r=document.createElement("option");e===n?r.setAttribute("selected","selected"):r.setAttribute("value",String(e)),t.appendChild(r)}))}const qp=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]];class mp extends vp{static TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join("");constructor(t,e){super(t,e),this.quill.on(Jh.events.EDITOR_CHANGE,((t,e,n,r)=>{if(t===Jh.events.SELECTION_CHANGE)if(null!=e&&e.length>0&&r===Jh.sources.USER){this.show(),this.root.style.left="0px",this.root.style.width="",this.root.style.width=`${this.root.offsetWidth}px`;const t=this.quill.getLines(e.index,e.length);if(1===t.length){const t=this.quill.getBounds(e);null!=t&&this.position(t)}else{const n=t[t.length-1],r=this.quill.getIndex(n),i=Math.min(n.length()-1,e.index+e.length-r),o=this.quill.getBounds(new tf(r,i));null!=o&&this.position(o)}}else document.activeElement!==this.textbox&&this.quill.hasFocus()&&this.hide()}))}listen(){super.listen(),this.root.querySelector(".ql-close").addEventListener("click",(()=>{this.root.classList.remove("ql-editing")})),this.quill.on(Jh.events.SCROLL_OPTIMIZE,(()=>{setTimeout((()=>{if(this.root.classList.contains("ql-hidden"))return;const t=this.quill.getSelection();if(null!=t){const e=this.quill.getBounds(t);null!=e&&this.position(e)}}),1)}))}cancel(){this.show()}position(t){const e=super.position(t),n=this.root.querySelector(".ql-tooltip-arrow");return n.style.marginLeft="",0!==e&&(n.style.marginLeft=-1*e-n.offsetWidth/2+"px"),e}}class gp extends pp{constructor(t,e){null!=e.modules.toolbar&&null==e.modules.toolbar.container&&(e.modules.toolbar.container=qp),super(t,e),this.quill.container.classList.add("ql-bubble")}extendToolbar(t){this.tooltip=new mp(this.quill,this.options.bounds),null!=t.container&&(this.tooltip.root.appendChild(t.container),this.buildButtons(t.container.querySelectorAll("button"),np),this.buildPickers(t.container.querySelectorAll("select"),np))}}gp.DEFAULTS=Bl({},pp.DEFAULTS,{modules:{toolbar:{handlers:{link(t){t?this.quill.theme.tooltip.edit():this.quill.format("link",!1,xf.sources.USER)}}}}});const wp=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]];class yp extends vp{static TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join("");preview=this.root.querySelector("a.ql-preview");listen(){super.listen(),this.root.querySelector("a.ql-action").addEventListener("click",(t=>{this.root.classList.contains("ql-editing")?this.save():this.edit("link",this.preview.textContent),t.preventDefault()})),this.root.querySelector("a.ql-remove").addEventListener("click",(t=>{if(null!=this.linkRange){const t=this.linkRange;this.restoreFocus(),this.quill.formatText(t,"link",!1,Jh.sources.USER),delete this.linkRange}t.preventDefault(),this.hide()})),this.quill.on(Jh.events.SELECTION_CHANGE,((t,e,n)=>{if(null!=t){if(0===t.length&&n===Jh.sources.USER){const[e,n]=this.quill.scroll.descendant(Bd,t.index);if(null!=e){this.linkRange=new tf(t.index-n,e.length());const r=Bd.formats(e.domNode);this.preview.textContent=r,this.preview.setAttribute("href",r),this.show();const i=this.quill.getBounds(this.linkRange);return void(null!=i&&this.position(i))}}else delete this.linkRange;this.hide()}}))}show(){super.show(),this.root.removeAttribute("data-mode")}}class kp extends pp{constructor(t,e){null!=e.modules.toolbar&&null==e.modules.toolbar.container&&(e.modules.toolbar.container=wp),super(t,e),this.quill.container.classList.add("ql-snow")}extendToolbar(t){null!=t.container&&(t.container.classList.add("ql-snow"),this.buildButtons(t.container.querySelectorAll("button"),np),this.buildPickers(t.container.querySelectorAll("select"),np),this.tooltip=new yp(this.quill,this.options.bounds),t.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"k",shortKey:!0},((e,n)=>{t.handlers.link.call(t,!n.format.link)})))}}kp.DEFAULTS=Bl({},pp.DEFAULTS,{modules:{toolbar:{handlers:{link(t){if(t){const t=this.quill.getSelection();if(null==t||0===t.length)return;let e=this.quill.getText(t);/^\S+@\S+\.\S+$/.test(e)&&0!==e.indexOf("mailto:")&&(e=`mailto:${e}`);const{tooltip:n}=this.quill.theme;n.edit("link",e)}else this.quill.format("link",!1,xf.sources.USER)}}}}}),xf.register({"attributors/attribute/direction":Zf,"attributors/class/align":Rf,"attributors/class/background":Hf,"attributors/class/color":If,"attributors/class/direction":Kf,"attributors/class/font":Yf,"attributors/class/size":Xf,"attributors/style/align":Cf,"attributors/style/background":Vf,"attributors/style/color":Df,"attributors/style/direction":Gf,"attributors/style/font":Jf,"attributors/style/size":td},!0),xf.register({"formats/align":Rf,"formats/direction":Kf,"formats/indent":Sd,"formats/background":Vf,"formats/color":Df,"formats/font":Yf,"formats/size":Xf,"formats/blockquote":class extends Ch{static blotName="blockquote";static tagName="blockquote"},"formats/code-block":Ff,"formats/header":class extends Ch{static blotName="header";static tagName=["H1","H2","H3","H4","H5","H6"];static formats(t){return this.tagName.indexOf(t.tagName)+1}},"formats/list":Rd,"formats/bold":Cd,"formats/code":Uf,"formats/italic":class extends Cd{static blotName="italic";static tagName=["EM","I"]},"formats/link":Bd,"formats/script":class extends Rh{static blotName="script";static tagName=["SUB","SUP"];static create(t){return"super"===t?document.createElement("sup"):"sub"===t?document.createElement("sub"):super.create(t)}static formats(t){return"SUB"===t.tagName?"sub":"SUP"===t.tagName?"super":void 0}},"formats/strike":class extends Cd{static blotName="strike";static tagName=["S","STRIKE"]},"formats/underline":class extends Rh{static blotName="underline";static tagName="U"},"formats/formula":class extends pf{static blotName="formula";static className="ql-formula";static tagName="SPAN";static create(t){if(null==window.katex)throw new Error("Formula module requires KaTeX.");const e=super.create(t);return"string"==typeof t&&(window.katex.render(t,e,{throwOnError:!1,errorColor:"#f00"}),e.setAttribute("data-value",t)),e}static value(t){return t.getAttribute("data-value")}html(){const{formula:t}=this.value();return`<span>${t}</span>`}},"formats/image":class extends ih{static blotName="image";static tagName="IMG";static create(t){const e=super.create(t);return"string"==typeof t&&e.setAttribute("src",this.sanitize(t)),e}static formats(t){return Dd.reduce(((e,n)=>(t.hasAttribute(n)&&(e[n]=t.getAttribute(n)),e)),{})}static match(t){return/\.(jpe?g|gif|png)$/.test(t)||/^data:image\/.+;base64/.test(t)}static sanitize(t){return Id(t,["http","https","data"])?t:"//:0"}static value(t){return t.getAttribute("src")}format(t,e){Dd.indexOf(t)>-1?e?this.domNode.setAttribute(t,e):this.domNode.removeAttribute(t):super.format(t,e)}},"formats/video":class extends Bh{static blotName="video";static className="ql-video";static tagName="IFRAME";static create(t){const e=super.create(t);return e.setAttribute("frameborder","0"),e.setAttribute("allowfullscreen","true"),e.setAttribute("src",this.sanitize(t)),e}static formats(t){return Hd.reduce(((e,n)=>(t.hasAttribute(n)&&(e[n]=t.getAttribute(n)),e)),{})}static sanitize(t){return Bd.sanitize(t)}static value(t){return t.getAttribute("src")}format(t,e){Hd.indexOf(t)>-1?e?this.domNode.setAttribute(t,e):this.domNode.removeAttribute(t):super.format(t,e)}html(){const{video:t}=this.value();return`<a href="${t}">${t}</a>`}},"modules/syntax":Wd,"modules/table":class extends ff{static register(){xf.register(Zd),xf.register(Kd),xf.register(Gd),xf.register(Qd)}constructor(){super(...arguments),this.listenBalanceCells()}balanceTables(){this.quill.scroll.descendants(Qd).forEach((t=>{t.balanceCells()}))}deleteColumn(){const[t,,e]=this.getTable();null!=e&&(t.deleteColumn(e.cellOffset()),this.quill.update(xf.sources.USER))}deleteRow(){const[,t]=this.getTable();null!=t&&(t.remove(),this.quill.update(xf.sources.USER))}deleteTable(){const[t]=this.getTable();if(null==t)return;const e=t.offset();t.remove(),this.quill.update(xf.sources.USER),this.quill.setSelection(e,xf.sources.SILENT)}getTable(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.quill.getSelection();if(null==t)return[null,null,null,-1];const[e,n]=this.quill.getLine(t.index);if(null==e||e.statics.blotName!==Zd.blotName)return[null,null,null,-1];const r=e.parent;return[r.parent.parent,r,e,n]}insertColumn(t){const e=this.quill.getSelection();if(!e)return;const[n,r,i]=this.getTable(e);if(null==i)return;const o=i.cellOffset();n.insertColumn(o+t),this.quill.update(xf.sources.USER);let s=r.rowOffset();0===t&&(s+=1),this.quill.setSelection(e.index+s,e.length,xf.sources.SILENT)}insertColumnLeft(){this.insertColumn(0)}insertColumnRight(){this.insertColumn(1)}insertRow(t){const e=this.quill.getSelection();if(!e)return;const[n,r,i]=this.getTable(e);if(null==i)return;const o=r.rowOffset();n.insertRow(o+t),this.quill.update(xf.sources.USER),t>0?this.quill.setSelection(e,xf.sources.SILENT):this.quill.setSelection(e.index+r.children.length,e.length,xf.sources.SILENT)}insertRowAbove(){this.insertRow(0)}insertRowBelow(){this.insertRow(1)}insertTable(t,e){const n=this.quill.getSelection();if(null==n)return;const r=new Array(t).fill(0).reduce((t=>{const n=new Array(e).fill("\n").join("");return t.insert(n,{table:Yd()})}),(new Nh).retain(n.index));this.quill.updateContents(r,xf.sources.USER),this.quill.setSelection(n.index,xf.sources.SILENT),this.balanceTables()}listenBalanceCells(){this.quill.on(xf.events.SCROLL_OPTIMIZE,(t=>{t.some((t=>!!["TD","TR","TBODY","TABLE"].includes(t.target.tagName)&&(this.quill.once(xf.events.TEXT_CHANGE,((t,e,n)=>{n===xf.sources.USER&&this.balanceTables()})),!0)))}))}},"modules/toolbar":Xd,"themes/bubble":gp,"themes/snow":kp,"ui/icons":np,"ui/picker":op,"ui/icon-picker":lp,"ui/color-picker":sp,"ui/tooltip":up},!0);const xp=t=>Boolean(t.tagName),jp=class{constructor(n){t(this,n),this.inputValid=e(this,"input-valid",7),this.valueChange=e(this,"value-change",7),this.hasDisplayedError=!1,this.classFocus="mg-u-is-focused",this.value="",this.labelOnTop=!1,this.labelHide=!1,this.rows=5,this.required=!1,this.readonly=!1,this.disabled=!1,this.tooltipPosition="input",this.classCollection=new o(["mg-c-input--rich-text-editor"]),this.isEmpty=()=>{const t=this.getTextContent();return!(i(t)&&"\n"!==t)},this.getTextContent=()=>this.value.replace(/<[^>]*>/g,"").trim(),this.getPatternValidity=()=>void 0===this.pattern||new RegExp(`^${this.pattern}$`,"u").test(this.getTextContent()),this.checkValidity=()=>{this.setValidity(this.readonly||this.disabled||(!this.required||!this.isEmpty())&&this.getPatternValidity())},this.setErrorMessage=t=>{this.errorMessage=void 0,this.valid||(i(t)?this.errorMessage=t:this.required&&this.isEmpty()?this.errorMessage=this.messages.errors.required:this.getPatternValidity()||(this.errorMessage=this.patternErrorMessage))},this.handleFocus=()=>{this.classCollection.add(this.classFocus),this.classCollection=new o(this.classCollection.classes)},this.handleBlur=()=>{this.classCollection.delete(this.classFocus),this.classCollection=new o(this.classCollection.classes),this.readonly||(this.checkValidity(),this.setErrorMessage(),this.valid||(this.hasDisplayedError=!0))},this.handleTextChange=()=>{const t=this.editor.getSemanticHTML();this.value=t,this.valueChange.emit(t),this.checkValidity(),this.hasDisplayedError&&this.setErrorMessage()}}watchReadonly(t){t?this.classCollection.add(l):this.classCollection.delete(l)}watchDisabled(t){var e,n;t?(this.classCollection.add(u),null===(e=this.editor)||void 0===e||e.disable()):(this.classCollection.delete(u),null===(n=this.editor)||void 0===n||n.enable())}handleValidityChange(){null!=this.editor&&(this.checkValidity(),this.hasDisplayedError&&(this.setErrorMessage(),this.hasDisplayedError=!1))}validatePattern(t){if(!(void 0===t||i(this.pattern)&&i(this.patternErrorMessage)))throw new Error(`<mg-input-rich-text-editor> props "pattern" and "patternErrorMessage" must be non-empty string and paired. Passed value: "pattern='${s(this.pattern)}'" and "patternErrorMessage='${s(this.patternErrorMessage)}'".`)}async setFocus(){var t;null===(t=this.editor)||void 0===t||t.focus()}async getHTML(){return new Promise((t=>{requestAnimationFrame((()=>{t(this.editor.getSemanticHTML())}))}))}async getText(){return new Promise((t=>{requestAnimationFrame((()=>{t(this.editor.getText())}))}))}async displayError(){return new Promise((t=>{requestAnimationFrame((()=>{this.checkValidity(),this.setErrorMessage(),this.hasDisplayedError=this.invalid,t()}))}))}async setError(t,e){if("boolean"!=typeof t)throw new Error('<mg-input-rich-text-editor> method "setError()" param "valid" must be a boolean.');if(!i(e))throw new Error('<mg-input-rich-text-editor> method "setError()" param "errorMessage" must be a string.');this.setValidity(t),this.setErrorMessage(t?void 0:e),this.hasDisplayedError=this.invalid}async reset(){if(!this.readonly)return this.value="",this.editor.setText(""),new Promise((t=>{requestAnimationFrame((()=>{this.checkValidity(),this.errorMessage=void 0,this.hasDisplayedError=!1,t()}))}))}setValidity(t){const e=this.valid;this.valid=t,this.invalid=!this.valid,this.valid!==e&&this.inputValid.emit(this.valid)}componentWillLoad(){return this.messages=a(this.element).messages,this.element.style.setProperty("--mg-c-input-rich-text-editor-rows",this.rows.toString()),this.validatePattern(this.pattern),this.validatePattern(this.patternErrorMessage),this.watchReadonly(this.readonly),this.watchDisabled(this.disabled),setTimeout((()=>{this.checkValidity()}),0)}componentDidLoad(){this.readonly||(this.editor=((t,{value:e,modules:n,readOnly:r,placeholder:o,handleTextChange:s,handleFocus:l,handleBlur:u})=>{const a=new xf(t.querySelector("div"),{theme:"snow",modules:n||{toolbar:[["bold","italic","underline"],[{list:"ordered"},{list:"bullet"}],["link"],["clean"]]},readOnly:r,placeholder:o});i(e)&&/<[a-z][\s\S]*>/i.test(e)?a.clipboard.dangerouslyPasteHTML(e):i(e)&&a.setText(e);const c=t.querySelector(".ql-editor");return c.addEventListener("focus",l),c.addEventListener("blur",u),a.on("text-change",s),(t=>{const e=()=>t.root.getRootNode();t.selection.hasFocus=()=>e().activeElement===t.root,t.selection.getNativeRange=()=>{const n=(t=>{try{if("function"==typeof document.createElement("div").attachShadow({mode:"open"}).getSelection)return t.getSelection().getRangeAt(0);const e=window.getSelection();return"function"==typeof e.getComposedRanges?e.getComposedRanges(t)[0]:e.getRangeAt(0)}catch(t){return null}})(e());return Boolean(n)?t.selection.normalizeNative(n):null},t.selection.setNativeRange=(e,n,r=e,i=n,o=!1)=>{if([null==e?void 0:e.parentNode,t.root.parentNode,null==r?void 0:r.parentNode].some((t=>null==t)))return;const s=window.getSelection();t.selection.hasFocus()||t.root.focus();const l=(t.selection.getNativeRange()||{}).native;Boolean(l)&&!o&&e===l.startContainer&&n===l.startOffset&&r===l.endContainer&&i===l.endOffset||(xp(e)&&"BR"===e.tagName&&(n=[].indexOf.call(e.parentNode.childNodes,e),e=e.parentNode),xp(r)&&"BR"===r.tagName&&(i=[].indexOf.call(r.parentNode.childNodes,r),r=r.parentNode),s.setBaseAndExtent(e,n,r,i))},document.addEventListener("selectionchange",(()=>{t.selection.update()}))})(a),a})(this.wrapperElement,{modules:this.modules,readOnly:this.readonly||this.disabled,placeholder:this.placeholder,value:this.value,handleTextChange:this.handleTextChange,handleBlur:this.handleBlur,handleFocus:this.handleFocus}))}render(){return n("mg-input",{key:"b11d79ea82720eff4256206374e179efaefa9268",identifier:this.identifier,class:this.classCollection.join(),label:this.label,labelOnTop:this.labelOnTop,labelHide:this.labelHide,required:this.required,tooltip:this.tooltip,tooltipPosition:this.tooltipPosition,helpText:this.helpText,errorMessage:this.hasDisplayedError?this.errorMessage:void 0},this.readonly?n("div",{class:"mg-c-input__readonly-value",innerHTML:this.value}):n("div",{ref:t=>{this.wrapperElement=t},id:this.identifier,class:"mg-c-input__wrapper"},n("div",null)))}get element(){return r(this)}static get watchers(){return{readonly:["watchReadonly","handleValidityChange"],disabled:["watchDisabled","handleValidityChange"],required:["handleValidityChange"],pattern:["validatePattern"],patternErrorMessage:["validatePattern"]}}};jp.style="/*!\n * Quill Editor v2.0.3\n * https://quilljs.com\n * Copyright (c) 2017-2024, Slab\n * Copyright (c) 2014, Jason Chen\n * Copyright (c) 2013, salesforce.com\n */.ql-container{box-sizing:border-box;font-family:Helvetica,Arial,sans-serif;font-size:13px;height:100%;margin:0;position:relative}.ql-container.ql-disabled .ql-tooltip{visibility:hidden}.ql-container:not(.ql-disabled) li[data-list=checked]>.ql-ui,.ql-container:not(.ql-disabled) li[data-list=unchecked]>.ql-ui{cursor:pointer}.ql-clipboard{left:-100000px;height:1px;overflow-y:hidden;position:absolute;top:50%}.ql-clipboard p{margin:0;padding:0}.ql-editor{box-sizing:border-box;counter-reset:list-0 list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;line-height:1.42;height:100%;outline:none;overflow-y:auto;padding:12px 15px;tab-size:4;-moz-tab-size:4;text-align:left;white-space:pre-wrap;word-wrap:break-word}.ql-editor>*{cursor:text}.ql-editor p,.ql-editor ol,.ql-editor pre,.ql-editor blockquote,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6{margin:0;padding:0}@supports (counter-set:none){.ql-editor p,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6{counter-set:list-0 list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor p,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6{counter-reset:list-0 list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor table{border-collapse:collapse}.ql-editor td{border:1px solid #000;padding:2px 5px}.ql-editor ol{padding-left:1.5em}.ql-editor li{list-style-type:none;padding-left:1.5em;position:relative}.ql-editor li>.ql-ui:before{display:inline-block;margin-left:-1.5em;margin-right:.3em;text-align:right;white-space:nowrap;width:1.2em}.ql-editor li[data-list=checked]>.ql-ui,.ql-editor li[data-list=unchecked]>.ql-ui{color:#777}.ql-editor li[data-list=bullet]>.ql-ui:before{content:'\\2022'}.ql-editor li[data-list=checked]>.ql-ui:before{content:'\\2611'}.ql-editor li[data-list=unchecked]>.ql-ui:before{content:'\\2610'}@supports (counter-set:none){.ql-editor li[data-list]{counter-set:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list]{counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered]{counter-increment:list-0}.ql-editor li[data-list=ordered]>.ql-ui:before{content:counter(list-0, decimal) '. '}.ql-editor li[data-list=ordered].ql-indent-1{counter-increment:list-1}.ql-editor li[data-list=ordered].ql-indent-1>.ql-ui:before{content:counter(list-1, lower-alpha) '. '}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-1{counter-set:list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-1{counter-reset:list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-2{counter-increment:list-2}.ql-editor li[data-list=ordered].ql-indent-2>.ql-ui:before{content:counter(list-2, lower-roman) '. '}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-2{counter-set:list-3 list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-2{counter-reset:list-3 list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-3{counter-increment:list-3}.ql-editor li[data-list=ordered].ql-indent-3>.ql-ui:before{content:counter(list-3, decimal) '. '}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-3{counter-set:list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-3{counter-reset:list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-4{counter-increment:list-4}.ql-editor li[data-list=ordered].ql-indent-4>.ql-ui:before{content:counter(list-4, lower-alpha) '. '}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-4{counter-set:list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-4{counter-reset:list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-5{counter-increment:list-5}.ql-editor li[data-list=ordered].ql-indent-5>.ql-ui:before{content:counter(list-5, lower-roman) '. '}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-5{counter-set:list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-5{counter-reset:list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-6{counter-increment:list-6}.ql-editor li[data-list=ordered].ql-indent-6>.ql-ui:before{content:counter(list-6, decimal) '. '}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-6{counter-set:list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-6{counter-reset:list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-7{counter-increment:list-7}.ql-editor li[data-list=ordered].ql-indent-7>.ql-ui:before{content:counter(list-7, lower-alpha) '. '}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-7{counter-set:list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-7{counter-reset:list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-8{counter-increment:list-8}.ql-editor li[data-list=ordered].ql-indent-8>.ql-ui:before{content:counter(list-8, lower-roman) '. '}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-8{counter-set:list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-8{counter-reset:list-9}}.ql-editor li[data-list=ordered].ql-indent-9{counter-increment:list-9}.ql-editor li[data-list=ordered].ql-indent-9>.ql-ui:before{content:counter(list-9, decimal) '. '}.ql-editor .ql-indent-1:not(.ql-direction-rtl){padding-left:3em}.ql-editor li.ql-indent-1:not(.ql-direction-rtl){padding-left:4.5em}.ql-editor .ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:3em}.ql-editor li.ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:4.5em}.ql-editor .ql-indent-2:not(.ql-direction-rtl){padding-left:6em}.ql-editor li.ql-indent-2:not(.ql-direction-rtl){padding-left:7.5em}.ql-editor .ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:6em}.ql-editor li.ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:7.5em}.ql-editor .ql-indent-3:not(.ql-direction-rtl){padding-left:9em}.ql-editor li.ql-indent-3:not(.ql-direction-rtl){padding-left:10.5em}.ql-editor .ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:9em}.ql-editor li.ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:10.5em}.ql-editor .ql-indent-4:not(.ql-direction-rtl){padding-left:12em}.ql-editor li.ql-indent-4:not(.ql-direction-rtl){padding-left:13.5em}.ql-editor .ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:12em}.ql-editor li.ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:13.5em}.ql-editor .ql-indent-5:not(.ql-direction-rtl){padding-left:15em}.ql-editor li.ql-indent-5:not(.ql-direction-rtl){padding-left:16.5em}.ql-editor .ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:15em}.ql-editor li.ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:16.5em}.ql-editor .ql-indent-6:not(.ql-direction-rtl){padding-left:18em}.ql-editor li.ql-indent-6:not(.ql-direction-rtl){padding-left:19.5em}.ql-editor .ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:18em}.ql-editor li.ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:19.5em}.ql-editor .ql-indent-7:not(.ql-direction-rtl){padding-left:21em}.ql-editor li.ql-indent-7:not(.ql-direction-rtl){padding-left:22.5em}.ql-editor .ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:21em}.ql-editor li.ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:22.5em}.ql-editor .ql-indent-8:not(.ql-direction-rtl){padding-left:24em}.ql-editor li.ql-indent-8:not(.ql-direction-rtl){padding-left:25.5em}.ql-editor .ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:24em}.ql-editor li.ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:25.5em}.ql-editor .ql-indent-9:not(.ql-direction-rtl){padding-left:27em}.ql-editor li.ql-indent-9:not(.ql-direction-rtl){padding-left:28.5em}.ql-editor .ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:27em}.ql-editor li.ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:28.5em}.ql-editor li.ql-direction-rtl{padding-right:1.5em}.ql-editor li.ql-direction-rtl>.ql-ui:before{margin-left:.3em;margin-right:-1.5em;text-align:left}.ql-editor table{table-layout:fixed;width:100%}.ql-editor table td{outline:none}.ql-editor .ql-code-block-container{font-family:monospace}.ql-editor .ql-video{display:block;max-width:100%}.ql-editor .ql-video.ql-align-center{margin:0 auto}.ql-editor .ql-video.ql-align-right{margin:0 0 0 auto}.ql-editor .ql-bg-black{background-color:#000}.ql-editor .ql-bg-red{background-color:#e60000}.ql-editor .ql-bg-orange{background-color:#f90}.ql-editor .ql-bg-yellow{background-color:#ff0}.ql-editor .ql-bg-green{background-color:#008a00}.ql-editor .ql-bg-blue{background-color:#06c}.ql-editor .ql-bg-purple{background-color:#93f}.ql-editor .ql-color-white{color:#fff}.ql-editor .ql-color-red{color:#e60000}.ql-editor .ql-color-orange{color:#f90}.ql-editor .ql-color-yellow{color:#ff0}.ql-editor .ql-color-green{color:#008a00}.ql-editor .ql-color-blue{color:#06c}.ql-editor .ql-color-purple{color:#93f}.ql-editor .ql-font-serif{font-family:Georgia,Times New Roman,serif}.ql-editor .ql-font-monospace{font-family:Monaco,Courier New,monospace}.ql-editor .ql-size-small{font-size:.75em}.ql-editor .ql-size-large{font-size:1.5em}.ql-editor .ql-size-huge{font-size:2.5em}.ql-editor .ql-direction-rtl{direction:rtl;text-align:inherit}.ql-editor .ql-align-center{text-align:center}.ql-editor .ql-align-justify{text-align:justify}.ql-editor .ql-align-right{text-align:right}.ql-editor .ql-ui{position:absolute}.ql-editor.ql-blank::before{color:rgba(0,0,0,0.6);content:attr(data-placeholder);font-style:italic;left:15px;pointer-events:none;position:absolute;right:15px}.ql-snow.ql-toolbar:after,.ql-snow .ql-toolbar:after{clear:both;content:'';display:table}.ql-snow.ql-toolbar button,.ql-snow .ql-toolbar button{background:none;border:none;cursor:pointer;display:inline-block;float:left;height:24px;padding:3px 5px;width:28px}.ql-snow.ql-toolbar button svg,.ql-snow .ql-toolbar button svg{float:left;height:100%}.ql-snow.ql-toolbar button:active:hover,.ql-snow .ql-toolbar button:active:hover{outline:none}.ql-snow.ql-toolbar input.ql-image[type=file],.ql-snow .ql-toolbar input.ql-image[type=file]{display:none}.ql-snow.ql-toolbar button:hover,.ql-snow .ql-toolbar button:hover,.ql-snow.ql-toolbar button:focus,.ql-snow .ql-toolbar button:focus,.ql-snow.ql-toolbar button.ql-active,.ql-snow .ql-toolbar button.ql-active,.ql-snow.ql-toolbar .ql-picker-label:hover,.ql-snow .ql-toolbar .ql-picker-label:hover,.ql-snow.ql-toolbar .ql-picker-label.ql-active,.ql-snow .ql-toolbar .ql-picker-label.ql-active,.ql-snow.ql-toolbar .ql-picker-item:hover,.ql-snow .ql-toolbar .ql-picker-item:hover,.ql-snow.ql-toolbar .ql-picker-item.ql-selected,.ql-snow .ql-toolbar .ql-picker-item.ql-selected{color:#06c}.ql-snow.ql-toolbar button:hover .ql-fill,.ql-snow .ql-toolbar button:hover .ql-fill,.ql-snow.ql-toolbar button:focus .ql-fill,.ql-snow .ql-toolbar button:focus .ql-fill,.ql-snow.ql-toolbar button.ql-active .ql-fill,.ql-snow .ql-toolbar button.ql-active .ql-fill,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-fill,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-fill,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-fill,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-fill,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-fill,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-fill,.ql-snow.ql-toolbar button:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar button:focus .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:focus .ql-stroke.ql-fill,.ql-snow.ql-toolbar button.ql-active .ql-stroke.ql-fill,.ql-snow .ql-toolbar button.ql-active .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill{fill:#06c}.ql-snow.ql-toolbar button:hover .ql-stroke,.ql-snow .ql-toolbar button:hover .ql-stroke,.ql-snow.ql-toolbar button:focus .ql-stroke,.ql-snow .ql-toolbar button:focus .ql-stroke,.ql-snow.ql-toolbar button.ql-active .ql-stroke,.ql-snow .ql-toolbar button.ql-active .ql-stroke,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-snow.ql-toolbar button:hover .ql-stroke-miter,.ql-snow .ql-toolbar button:hover .ql-stroke-miter,.ql-snow.ql-toolbar button:focus .ql-stroke-miter,.ql-snow .ql-toolbar button:focus .ql-stroke-miter,.ql-snow.ql-toolbar button.ql-active .ql-stroke-miter,.ql-snow .ql-toolbar button.ql-active .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter{stroke:#06c}@media (pointer:coarse){.ql-snow.ql-toolbar button:hover:not(.ql-active),.ql-snow .ql-toolbar button:hover:not(.ql-active){color:#444}.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-fill,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-fill,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill{fill:#444}.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter{stroke:#444}}.ql-snow{box-sizing:border-box}.ql-snow *{box-sizing:border-box}.ql-snow .ql-hidden{display:none}.ql-snow .ql-out-bottom,.ql-snow .ql-out-top{visibility:hidden}.ql-snow .ql-tooltip{position:absolute;transform:translateY(10px)}.ql-snow .ql-tooltip a{cursor:pointer;text-decoration:none}.ql-snow .ql-tooltip.ql-flip{transform:translateY(-10px)}.ql-snow .ql-formats{display:inline-block;vertical-align:middle}.ql-snow .ql-formats:after{clear:both;content:'';display:table}.ql-snow .ql-stroke{fill:none;stroke:#444;stroke-linecap:round;stroke-linejoin:round;stroke-width:2}.ql-snow .ql-stroke-miter{fill:none;stroke:#444;stroke-miterlimit:10;stroke-width:2}.ql-snow .ql-fill,.ql-snow .ql-stroke.ql-fill{fill:#444}.ql-snow .ql-empty{fill:none}.ql-snow .ql-even{fill-rule:evenodd}.ql-snow .ql-thin,.ql-snow .ql-stroke.ql-thin{stroke-width:1}.ql-snow .ql-transparent{opacity:.4}.ql-snow .ql-direction svg:last-child{display:none}.ql-snow .ql-direction.ql-active svg:last-child{display:inline}.ql-snow .ql-direction.ql-active svg:first-child{display:none}.ql-snow .ql-editor h1{font-size:2em}.ql-snow .ql-editor h2{font-size:1.5em}.ql-snow .ql-editor h3{font-size:1.17em}.ql-snow .ql-editor h4{font-size:1em}.ql-snow .ql-editor h5{font-size:.83em}.ql-snow .ql-editor h6{font-size:.67em}.ql-snow .ql-editor a{text-decoration:underline}.ql-snow .ql-editor blockquote{border-left:4px solid #ccc;margin-bottom:5px;margin-top:5px;padding-left:16px}.ql-snow .ql-editor code,.ql-snow .ql-editor .ql-code-block-container{background-color:#f0f0f0;border-radius:3px}.ql-snow .ql-editor .ql-code-block-container{margin-bottom:5px;margin-top:5px;padding:5px 10px}.ql-snow .ql-editor code{font-size:85%;padding:2px 4px}.ql-snow .ql-editor .ql-code-block-container{background-color:#23241f;color:#f8f8f2;overflow:visible}.ql-snow .ql-editor img{max-width:100%}.ql-snow .ql-picker{color:#444;display:inline-block;float:left;font-size:14px;font-weight:500;height:24px;position:relative;vertical-align:middle}.ql-snow .ql-picker-label{cursor:pointer;display:inline-block;height:100%;padding-left:8px;padding-right:2px;position:relative;width:100%}.ql-snow .ql-picker-label::before{display:inline-block;line-height:22px}.ql-snow .ql-picker-options{background-color:#fff;display:none;min-width:100%;padding:4px 8px;position:absolute;white-space:nowrap}.ql-snow .ql-picker-options .ql-picker-item{cursor:pointer;display:block;padding-bottom:5px;padding-top:5px}.ql-snow .ql-picker.ql-expanded .ql-picker-label{color:#ccc;z-index:2}.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-fill{fill:#ccc}.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-stroke{stroke:#ccc}.ql-snow .ql-picker.ql-expanded .ql-picker-options{display:block;margin-top:-1px;top:100%;z-index:1}.ql-snow .ql-color-picker,.ql-snow .ql-icon-picker{width:28px}.ql-snow .ql-color-picker .ql-picker-label,.ql-snow .ql-icon-picker .ql-picker-label{padding:2px 4px}.ql-snow .ql-color-picker .ql-picker-label svg,.ql-snow .ql-icon-picker .ql-picker-label svg{right:4px}.ql-snow .ql-icon-picker .ql-picker-options{padding:4px 0}.ql-snow .ql-icon-picker .ql-picker-item{height:24px;width:24px;padding:2px 4px}.ql-snow .ql-color-picker .ql-picker-options{padding:3px 5px;width:152px}.ql-snow .ql-color-picker .ql-picker-item{border:1px solid transparent;float:left;height:16px;margin:2px;padding:0;width:16px}.ql-snow .ql-picker:not(.ql-color-picker):not(.ql-icon-picker) svg{position:absolute;margin-top:-9px;right:0;top:50%;width:18px}.ql-snow .ql-picker.ql-header .ql-picker-label[data-label]:not([data-label=''])::before,.ql-snow .ql-picker.ql-font .ql-picker-label[data-label]:not([data-label=''])::before,.ql-snow .ql-picker.ql-size .ql-picker-label[data-label]:not([data-label=''])::before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-label]:not([data-label=''])::before,.ql-snow .ql-picker.ql-font .ql-picker-item[data-label]:not([data-label=''])::before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-label]:not([data-label=''])::before{content:attr(data-label)}.ql-snow .ql-picker.ql-header{width:98px}.ql-snow .ql-picker.ql-header .ql-picker-label::before,.ql-snow .ql-picker.ql-header .ql-picker-item::before{content:'Normal'}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"1\"]::before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"1\"]::before{content:'Heading 1'}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"2\"]::before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"2\"]::before{content:'Heading 2'}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"3\"]::before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"3\"]::before{content:'Heading 3'}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"4\"]::before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"4\"]::before{content:'Heading 4'}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"5\"]::before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"5\"]::before{content:'Heading 5'}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"6\"]::before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"6\"]::before{content:'Heading 6'}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"1\"]::before{font-size:2em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"2\"]::before{font-size:1.5em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"3\"]::before{font-size:1.17em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"4\"]::before{font-size:1em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"5\"]::before{font-size:.83em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"6\"]::before{font-size:.67em}.ql-snow .ql-picker.ql-font{width:108px}.ql-snow .ql-picker.ql-font .ql-picker-label::before,.ql-snow .ql-picker.ql-font .ql-picker-item::before{content:'Sans Serif'}.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=serif]::before,.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]::before{content:'Serif'}.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=monospace]::before,.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]::before{content:'Monospace'}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]::before{font-family:Georgia,Times New Roman,serif}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]::before{font-family:Monaco,Courier New,monospace}.ql-snow .ql-picker.ql-size{width:98px}.ql-snow .ql-picker.ql-size .ql-picker-label::before,.ql-snow .ql-picker.ql-size .ql-picker-item::before{content:'Normal'}.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=small]::before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]::before{content:'Small'}.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=large]::before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]::before{content:'Large'}.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=huge]::before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]::before{content:'Huge'}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]::before{font-size:10px}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]::before{font-size:18px}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]::before{font-size:32px}.ql-snow .ql-color-picker.ql-background .ql-picker-item{background-color:#fff}.ql-snow .ql-color-picker.ql-color .ql-picker-item{background-color:#000}.ql-code-block-container{position:relative}.ql-code-block-container .ql-ui{right:5px;top:5px}.ql-toolbar.ql-snow{border:1px solid #ccc;box-sizing:border-box;font-family:'Helvetica Neue','Helvetica','Arial',sans-serif;padding:8px}.ql-toolbar.ql-snow .ql-formats{margin-right:15px}.ql-toolbar.ql-snow .ql-picker-label{border:1px solid transparent}.ql-toolbar.ql-snow .ql-picker-options{border:1px solid transparent;box-shadow:rgba(0,0,0,0.2) 0 2px 8px}.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-label{border-color:#ccc}.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options{border-color:#ccc}.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item.ql-selected,.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item:hover{border-color:#000}.ql-toolbar.ql-snow+.ql-container.ql-snow{border-top:0}.ql-snow .ql-tooltip{background-color:#fff;border:1px solid #ccc;box-shadow:0 0 5px #ddd;color:#444;padding:5px 12px;white-space:nowrap}.ql-snow .ql-tooltip::before{content:\"Visit URL:\";line-height:26px;margin-right:8px}.ql-snow .ql-tooltip input[type=text]{display:none;border:1px solid #ccc;font-size:13px;height:26px;margin:0;padding:3px 5px;width:170px}.ql-snow .ql-tooltip a.ql-preview{display:inline-block;max-width:200px;overflow-x:hidden;text-overflow:ellipsis;vertical-align:top}.ql-snow .ql-tooltip a.ql-action::after{border-right:1px solid #ccc;content:'Edit';margin-left:16px;padding-right:8px}.ql-snow .ql-tooltip a.ql-remove::before{content:'Remove';margin-left:8px}.ql-snow .ql-tooltip a{line-height:26px}.ql-snow .ql-tooltip.ql-editing a.ql-preview,.ql-snow .ql-tooltip.ql-editing a.ql-remove{display:none}.ql-snow .ql-tooltip.ql-editing input[type=text]{display:inline-block}.ql-snow .ql-tooltip.ql-editing a.ql-action::after{border-right:0;content:'Save';padding-right:0}.ql-snow .ql-tooltip[data-mode=link]::before{content:\"Enter link:\"}.ql-snow .ql-tooltip[data-mode=formula]::before{content:\"Enter formula:\"}.ql-snow .ql-tooltip[data-mode=video]::before{content:\"Enter video:\"}.ql-snow a{color:#06c}.ql-container.ql-snow{border:1px solid #ccc}.mg-c-input__readonly-value{min-height:var(--mg-b-font-size);align-self:flex-start;margin-top:calc((var(--mg-b-size-min-height) - var(--mg-b-font-size)*var(--mg-b-line-height))/2);overflow-wrap:anywhere}.mg-u-visually-hidden{position:absolute !important;overflow:hidden !important;width:.1rem !important;height:.1rem !important;padding:0 !important;border:0 !important;margin:-0.1rem !important;clip:rect(0.1rem, 0.1rem, 0.1rem, 0.1rem) !important;clip-path:inset(50%) !important;white-space:nowrap !important}*:focus:not(:focus-visible){outline:none}@media (prefers-reduced-motion){*{animation:none !important;transition:none !important}}a{color:inherit;text-decoration:underline}a:hover,a:focus,a:active{text-decoration:none}.mg-c-input__wrapper{display:flex;width:100%;flex-direction:column;border-width:var(--mg-c-input-border-width);border-style:solid;border-color:var(--mg-c-input-color-border);border-radius:var(--mg-c-input-border-radius);background-color:var(--mg-b-color-light)}.mg-c-input__wrapper:focus-within{box-shadow:0 0 var(--mg-b-size-4) var(--mg-c-input-color-box-shadow-focus);outline:Highlight auto .1rem;outline:-webkit-focus-ring-color auto .1rem}.mg-c-input--has-error .mg-c-input__wrapper{border-color:var(--mg-b-color-danger)}.mg-c-input--disabled .mg-c-input__wrapper{opacity:var(--mg-b-opacity-element-disabled)}.mg-c-input--rich-text-editor .mg-c-input__readonly-value p{margin:0}.mg-c-input--rich-text-editor .mg-c-input__readonly-value p:not(:first-child){margin-top:1em}.mg-c-input--rich-text-editor .ql-toolbar{display:flex;flex-wrap:wrap;padding:var(--mg-b-size-8);border:0;border-radius:var(--mg-c-input-border-radius) var(--mg-c-input-border-radius) 0 0;background:var(--mg-b-color-neutral-0);border-block-end-width:var(--mg-c-input-border-width);border-block-end-color:var(--mg-c-input-color-border);border-block-end-style:solid}.mg-c-input--rich-text-editor .ql-toolbar .ql-formats{display:inline-flex;margin:inherit;gap:.2rem}.mg-c-input--rich-text-editor .ql-toolbar .ql-formats:not(:last-child)::after{width:.1rem;height:var(--mg-b-size-16);background:var(--mg-c-input-color-border);content:\"\";margin-block:var(--mg-b-size-8);margin-inline:var(--mg-b-size-8)}.mg-c-input--rich-text-editor .ql-toolbar button{display:flex;min-width:var(--mg-b-size-32);height:var(--mg-b-size-32);align-items:center;justify-content:center;padding:var(--mg-b-size-4);border:.1rem solid rgba(0,0,0,0);border-radius:var(--mg-b-size-radius);color:var(--mg-b-color-dark);float:inherit;transition-duration:.2s;transition-property:background-color,border-color;transition-timing-function:ease-in-out}.mg-c-input--rich-text-editor .ql-toolbar button .ql-fill,.mg-c-input--rich-text-editor .ql-toolbar button:hover .ql-fill,.mg-c-input--rich-text-editor .ql-toolbar button:focus .ql-fill,.mg-c-input--rich-text-editor .ql-toolbar button.ql-active .ql-fill{fill:currentcolor}.mg-c-input--rich-text-editor .ql-toolbar button:hover .ql-stroke,.mg-c-input--rich-text-editor .ql-toolbar button:focus .ql-stroke,.mg-c-input--rich-text-editor .ql-toolbar button.ql-active .ql-stroke,.mg-c-input--rich-text-editor .ql-toolbar button .ql-stroke{stroke:currentcolor}.mg-c-input--rich-text-editor .ql-toolbar button svg{width:var(--mg-b-size-20);height:var(--mg-b-size-20)}.mg-c-input--rich-text-editor .ql-toolbar button:focus{color:var(--mg-b-color-dark)}.mg-c-input--rich-text-editor .ql-toolbar button:focus-visible,.mg-c-input--rich-text-editor .ql-toolbar button:hover,.mg-c-input--rich-text-editor .ql-toolbar button.ql-active{border-color:var(--mg-b-color-neutral-70);background:var(--mg-b-color-neutral-20);color:var(--mg-b-color-dark)}.mg-c-input--rich-text-editor .ql-toolbar button .ql-stroke{stroke-width:.12rem}.mg-c-input--rich-text-editor .ql-toolbar button .ql-stroke.ql-thin{stroke-width:.1rem}.mg-c-input--rich-text-editor .ql-toolbar button.ql-bold .ql-stroke{stroke-width:.2rem}.mg-c-input--rich-text-editor .ql-container{border:0;border-radius:0 0 var(--mg-c-input-border-radius) var(--mg-c-input-border-radius);margin:0 .1rem .1rem;background:var(--mg-b-color-neutral-0)}.mg-c-input--rich-text-editor .ql-editor{min-height:calc(calc(var(--mg-b-font-size) * var(--mg-b-line-height) * var(--mg-c-input-rich-text-editor-rows, 3)) + calc((var(--mg-b-size-min-height) - var(--mg-b-font-size) * var(--mg-b-line-height)) / 2));padding:calc((var(--mg-b-size-min-height) - var(--mg-b-font-size)*var(--mg-b-line-height))/2) var(--mg-b-size-8);color:var(--mg-b-color-dark);font-size:var(--mg-b-font-size)}.mg-c-input--rich-text-editor .ql-editor.ql-blank::before{right:var(--mg-b-size-8);left:var(--mg-b-size-8)}.mg-c-input--rich-text-editor .ql-editor p:not(:first-child){margin-top:1em}.mg-c-input--rich-text-editor.mg-c-input--disabled .ql-toolbar{pointer-events:none}.mg-c-input--rich-text-editor.mg-c-input--has-error .ql-toolbar{border-color:var(--mg-b-color-danger)}";export{jp as mg_input_rich_text_editor}
|