@opentiny/tiny-robot 0.1.0-alpha.0 → 0.2.0-alpha.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/{bubble-item → bubble}/components/actions/copy.vue.d.ts +3 -3
- package/dist/{bubble-item → bubble}/components/actions/refresh.vue.d.ts +1 -1
- package/dist/bubble/index.d.ts +12 -0
- package/dist/bubble/index.type.d.ts +53 -0
- package/dist/bubble/useScroll.d.ts +4 -0
- package/dist/container/index.d.ts +7 -0
- package/dist/container/index.type.d.ts +16 -0
- package/dist/container/index.vue.d.ts +26 -0
- package/dist/index.d.ts +10 -5
- package/dist/index.js +31 -20
- package/dist/node_modules/.pnpm/@opentiny_utils@1.0.0/node_modules/@opentiny/utils/dist/opentiny-utils.es.js +832 -0
- package/dist/node_modules/.pnpm/@opentiny_utils@3.22.0/node_modules/@opentiny/utils/dist/index.es.js +959 -1496
- package/dist/node_modules/.pnpm/{@opentiny_vue-button@3.22.0 → @opentiny_vue-button@3.21.0}/node_modules/@opentiny/vue-button/lib/index.js +21 -21
- package/dist/node_modules/.pnpm/{@opentiny_vue-button@3.22.0 → @opentiny_vue-button@3.21.0}/node_modules/@opentiny/vue-button/lib/pc.js +3 -3
- package/dist/node_modules/.pnpm/@opentiny_vue-common@3.21.0/node_modules/@opentiny/vue-common/lib/index.js +727 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-common@3.22.0/node_modules/@opentiny/vue-common/lib/index.js +144 -675
- package/dist/node_modules/.pnpm/{@opentiny_vue-dialog-box@3.22.0 → @opentiny_vue-dialog-box@3.21.0}/node_modules/@opentiny/vue-dialog-box/lib/index.js +9 -9
- package/dist/node_modules/.pnpm/{@opentiny_vue-dialog-box@3.22.0 → @opentiny_vue-dialog-box@3.21.0}/node_modules/@opentiny/vue-dialog-box/lib/pc.js +5 -5
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/close.js +29 -0
- package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/eyeclose.js +1 -1
- package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/eyeopen.js +1 -1
- package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/finish.js +1 -1
- package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/fullscreen.js +1 -1
- package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/loading-shadow.js +21 -22
- package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/minscreen.js +1 -1
- package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-add-column-after.js +1 -1
- package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-add-column-before.js +1 -1
- package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-add-row-after.js +1 -1
- package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-add-row-before.js +1 -1
- package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-align-center.js +1 -1
- package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-align-left.js +1 -1
- package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-align-right.js +1 -1
- package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-bold.js +1 -1
- package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-code-block.js +1 -1
- package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-code-view.js +1 -1
- package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-color.js +1 -1
- package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-delete-column.js +1 -1
- package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-delete-row.js +1 -1
- package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-delete-table.js +1 -1
- package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-font-size.js +1 -1
- package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-format-clear.js +1 -1
- package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-h1.js +1 -1
- package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-h2.js +1 -1
- package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-h3.js +1 -1
- package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-h4.js +1 -1
- package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-h5.js +1 -1
- package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-h6.js +1 -1
- package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-heading.js +1 -1
- package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-high-light.js +1 -1
- package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-image.js +1 -1
- package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-italic.js +1 -1
- package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-line-height.js +1 -1
- package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-link-unlink.js +1 -1
- package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-link.js +1 -1
- package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-list-ordered.js +1 -1
- package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-list-unordered.js +1 -1
- package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-merge-cells-vertical.js +1 -1
- package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-merge-cells.js +1 -1
- package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-node-delete.js +1 -1
- package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-paragraph.js +1 -1
- package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-quote-text.js +1 -1
- package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-redo.js +1 -1
- package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-split-cells-horizontal.js +1 -1
- package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-split-cells-vertical.js +1 -1
- package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-strike-through.js +1 -1
- package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-subscript.js +1 -1
- package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-superscript.js +1 -1
- package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-table.js +1 -1
- package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-task-list.js +1 -1
- package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-underline.js +1 -1
- package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-undo.js +1 -1
- package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/sub-script.js +1 -1
- package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/warn.js +1 -1
- package/dist/node_modules/.pnpm/{@opentiny_vue-input@3.22.0 → @opentiny_vue-input@3.21.0}/node_modules/@opentiny/vue-input/lib/index.js +3 -3
- package/dist/node_modules/.pnpm/{@opentiny_vue-input@3.22.0 → @opentiny_vue-input@3.21.0}/node_modules/@opentiny/vue-input/lib/pc.js +36 -36
- package/dist/node_modules/.pnpm/{@opentiny_vue-locale@3.22.0 → @opentiny_vue-locale@3.21.0}/node_modules/@opentiny/vue-locale/lib/index.js +63 -63
- package/dist/node_modules/.pnpm/{@opentiny_vue-renderless@3.22.0 → @opentiny_vue-renderless@3.21.2}/node_modules/@opentiny/vue-renderless/button/index.js +1 -1
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/browser.js +36 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/clickoutside.js +47 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/debounce.js +7 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/dom.js +45 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/popper.js +320 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/popup-manager.js +118 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/throttle.js +23 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/useEventListener.js +9 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/useInstanceSlots.js +14 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/useRelation.js +54 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/vue-popper.js +84 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/vue-popup.js +73 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/event.js +13 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/function.js +5 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/index.js +11 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/object.js +84 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/string.js +28 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/type.js +28 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/dialog-box/index.js +136 -0
- package/dist/node_modules/.pnpm/{@opentiny_vue-renderless@3.22.0 → @opentiny_vue-renderless@3.21.2}/node_modules/@opentiny/vue-renderless/dialog-box/vue.js +33 -34
- package/dist/node_modules/.pnpm/{@opentiny_vue-renderless@3.22.0 → @opentiny_vue-renderless@3.21.2}/node_modules/@opentiny/vue-renderless/input/index.js +22 -22
- package/dist/node_modules/.pnpm/{@opentiny_vue-renderless@3.22.0 → @opentiny_vue-renderless@3.21.2}/node_modules/@opentiny/vue-renderless/input/vue.js +9 -9
- package/dist/node_modules/.pnpm/{@opentiny_vue-renderless@3.22.0 → @opentiny_vue-renderless@3.21.2}/node_modules/@opentiny/vue-renderless/tall-storage/index.js +1 -1
- package/dist/node_modules/.pnpm/{@opentiny_vue-renderless@3.22.0 → @opentiny_vue-renderless@3.21.2}/node_modules/@opentiny/vue-renderless/tall-storage/vue.js +5 -5
- package/dist/node_modules/.pnpm/{@opentiny_vue-renderless@3.22.0 → @opentiny_vue-renderless@3.21.2}/node_modules/@opentiny/vue-renderless/tooltip/index.js +41 -40
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/tooltip/vue.js +90 -0
- package/dist/node_modules/.pnpm/{@opentiny_vue-tooltip@3.22.0 → @opentiny_vue-tooltip@3.21.0}/node_modules/@opentiny/vue-tooltip/lib/index.js +3 -6
- package/dist/node_modules/.pnpm/{@opentiny_vue-tooltip@3.22.0 → @opentiny_vue-tooltip@3.21.0}/node_modules/@opentiny/vue-tooltip/lib/pc.js +2 -2
- package/dist/packages/components/src/{bubble-list → bubble}/bubble-list.vue.js +2 -2
- package/dist/packages/components/src/bubble/bubble-list.vue2.js +37 -0
- package/dist/packages/components/src/bubble/bubble.vue.js +7 -0
- package/dist/packages/components/src/bubble/bubble.vue2.js +118 -0
- package/dist/packages/components/src/bubble/components/actions/copy.vue.js +7 -0
- package/dist/packages/components/src/bubble/components/actions/copy.vue2.js +35 -0
- package/dist/packages/components/src/bubble/components/actions/refresh.vue.js +7 -0
- package/dist/packages/components/src/bubble/components/actions/refresh.vue2.js +16 -0
- package/dist/packages/components/src/bubble/index.js +18 -0
- package/dist/packages/components/src/bubble/useScroll.js +13 -0
- package/dist/packages/components/src/container/index.js +9 -0
- package/dist/packages/components/src/container/index.vue.js +7 -0
- package/dist/packages/components/src/container/index.vue2.js +55 -0
- package/dist/packages/components/src/conversations/index.js +1 -1
- package/dist/packages/components/src/prompts/index.js +18 -0
- package/dist/packages/components/src/prompts/prompt.vue.js +7 -0
- package/dist/packages/components/src/prompts/prompt.vue2.js +37 -0
- package/dist/packages/components/src/prompts/prompts.vue.js +7 -0
- package/dist/packages/components/src/prompts/prompts.vue2.js +36 -0
- package/dist/packages/components/src/question/components/CommonQuestions.vue.js +89 -0
- package/dist/packages/components/src/question/components/CommonQuestions.vue2.js +4 -0
- package/dist/packages/components/src/question/components/HotQuestions.vue.js +140 -0
- package/dist/packages/components/src/question/components/HotQuestions.vue2.js +4 -0
- package/dist/packages/components/src/question/composables/useQuestions.js +48 -0
- package/dist/packages/components/src/question/index.js +9 -0
- package/dist/packages/components/src/question/index.vue.js +113 -0
- package/dist/packages/components/src/question/index.vue2.js +4 -0
- package/dist/packages/components/src/sender/components/ActionButtons.vue.js +105 -123
- package/dist/packages/components/src/sender/composables/useInputHandler.js +26 -22
- package/dist/packages/components/src/sender/composables/useKeyboardHandler.js +11 -11
- package/dist/packages/components/src/sender/composables/useSpeechHandler.js +9 -9
- package/dist/packages/components/src/sender/index.vue.js +67 -66
- package/dist/packages/components/src/welcome/index.vue.js +5 -7
- package/dist/packages/components/src/welcome/index.vue2.js +32 -0
- package/dist/packages/svgs/dist/tiny-robot-svgs.js +223 -0
- package/dist/prompts/index.d.ts +12 -0
- package/dist/prompts/index.type.d.ts +55 -0
- package/dist/prompts/prompt.vue.d.ts +3 -0
- package/dist/prompts/prompts.vue.d.ts +20 -0
- package/dist/question/components/CommonQuestions.vue.d.ts +32 -0
- package/dist/question/components/HotQuestions.vue.d.ts +89 -0
- package/dist/question/composables/useQuestions.d.ts +17 -0
- package/dist/question/index.d.ts +7 -0
- package/dist/question/index.type.d.ts +74 -0
- package/dist/question/index.vue.d.ts +46 -0
- package/dist/sender/components/ActionButtons.vue.d.ts +6 -4
- package/dist/sender/composables/useSpeechHandler.d.ts +0 -6
- package/dist/sender/index.type.d.ts +1 -1
- package/dist/sender/index.vue.d.ts +3 -4
- package/dist/style.css +1 -1
- package/dist/welcome/index.type.d.ts +10 -0
- package/dist/welcome/index.vue.d.ts +17 -1
- package/package.json +6 -5
- package/src/bubble/bubble-list.vue +42 -0
- package/src/bubble/bubble.vue +247 -0
- package/src/bubble/components/actions/copy.vue +54 -0
- package/src/bubble/components/actions/refresh.vue +31 -0
- package/src/bubble/index.ts +23 -0
- package/src/bubble/index.type.ts +63 -0
- package/src/bubble/useScroll.ts +14 -0
- package/src/container/index.ts +12 -0
- package/src/container/index.type.ts +17 -0
- package/src/container/index.vue +135 -0
- package/src/conversations/index.ts +1 -1
- package/src/index.ts +26 -12
- package/src/prompts/index.ts +25 -0
- package/src/prompts/index.type.ts +59 -0
- package/src/prompts/prompt.vue +115 -0
- package/src/prompts/prompts.vue +50 -0
- package/src/question/components/CommonQuestions.vue +146 -0
- package/src/question/components/HotQuestions.vue +148 -0
- package/src/question/composables/useQuestions.ts +106 -0
- package/src/question/index.less +448 -0
- package/src/question/index.ts +12 -0
- package/src/question/index.type.ts +86 -0
- package/src/question/index.vue +140 -0
- package/src/question/vars.less +135 -0
- package/src/sender/components/ActionButtons.vue +42 -39
- package/src/sender/composables/useInputHandler.ts +15 -10
- package/src/sender/composables/useKeyboardHandler.ts +6 -4
- package/src/sender/composables/useSpeechHandler.ts +5 -11
- package/src/sender/index.less +3 -5
- package/src/sender/index.type.ts +1 -1
- package/src/sender/index.vue +3 -2
- package/src/welcome/index.type.ts +12 -0
- package/src/welcome/index.vue +68 -2
- package/.vscode/extensions.json +0 -3
- package/dist/bubble-item/components/icons/ai.vue.d.ts +0 -2
- package/dist/bubble-item/components/icons/index.d.ts +0 -2
- package/dist/bubble-item/components/icons/user.vue.d.ts +0 -2
- package/dist/bubble-item/index.d.ts +0 -7
- package/dist/bubble-list/index.d.ts +0 -8
- package/dist/bubble-list/index.type.d.ts +0 -55
- package/dist/node_modules/.pnpm/@opentiny_vue-directive@3.22.0/node_modules/@opentiny/vue-directive/index.js +0 -57
- package/dist/node_modules/.pnpm/@opentiny_vue-hooks@3.22.0/node_modules/@opentiny/vue-hooks/dist/src/vue-popper.js +0 -85
- package/dist/node_modules/.pnpm/@opentiny_vue-hooks@3.22.0/node_modules/@opentiny/vue-hooks/dist/src/vue-popup.js +0 -69
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.22.0/node_modules/@opentiny/vue-renderless/dialog-box/index.js +0 -135
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.22.0/node_modules/@opentiny/vue-renderless/tooltip/vue.js +0 -90
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Symbol.js +0 -5
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGetTag.js +0 -10
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseTrim.js +0 -8
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_freeGlobal.js +0 -4
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getRawTag.js +0 -15
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_objectToString.js +0 -7
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_root.js +0 -5
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_trimmedEndIndex.js +0 -9
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/debounce.js +0 -54
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObject.js +0 -7
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObjectLike.js +0 -6
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isSymbol.js +0 -9
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/now.js +0 -7
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/toNumber.js +0 -22
- package/dist/packages/components/src/bubble-item/bubble-item.vue.js +0 -7
- package/dist/packages/components/src/bubble-item/bubble-item.vue2.js +0 -111
- package/dist/packages/components/src/bubble-item/components/actions/copy.vue.js +0 -46
- package/dist/packages/components/src/bubble-item/components/actions/copy.vue2.js +0 -4
- package/dist/packages/components/src/bubble-item/components/actions/refresh.vue.js +0 -12
- package/dist/packages/components/src/bubble-item/components/icons/ai.vue.js +0 -45
- package/dist/packages/components/src/bubble-item/components/icons/user.vue.js +0 -63
- package/dist/packages/components/src/bubble-item/index.js +0 -9
- package/dist/packages/components/src/bubble-list/bubble-list.vue2.js +0 -52
- package/dist/packages/components/src/bubble-list/index.js +0 -9
- package/src/bubble-item/bubble-item.vue +0 -264
- package/src/bubble-item/components/actions/copy.vue +0 -47
- package/src/bubble-item/components/actions/refresh.vue +0 -27
- package/src/bubble-item/components/icons/ai.vue +0 -30
- package/src/bubble-item/components/icons/index.ts +0 -2
- package/src/bubble-item/components/icons/user.vue +0 -78
- package/src/bubble-item/index.ts +0 -12
- package/src/bubble-list/bubble-list.vue +0 -53
- package/src/bubble-list/index.ts +0 -14
- package/src/bubble-list/index.type.ts +0 -65
- package/src/sender/global.d.ts +0 -44
- /package/dist/{bubble-list → bubble}/bubble-list.vue.d.ts +0 -0
- /package/dist/{bubble-item → bubble}/components/actions/index.d.ts +0 -0
- /package/dist/node_modules/.pnpm/{@opentiny_vue-renderless@3.22.0 → @opentiny_vue-renderless@3.21.2}/node_modules/@opentiny/vue-renderless/button/vue.js +0 -0
- /package/dist/node_modules/.pnpm/{@opentiny_vue-renderless@3.22.0 → @opentiny_vue-renderless@3.21.2}/node_modules/@opentiny/vue-renderless/chunk-G2ADBYYC.js +0 -0
- /package/dist/node_modules/.pnpm/{@opentiny_vue-renderless@3.22.0 → @opentiny_vue-renderless@3.21.2}/node_modules/@opentiny/vue-renderless/tall-storage/vue-storage-box.js +0 -0
- /package/src/{bubble-item → bubble}/components/actions/index.ts +0 -0
package/dist/node_modules/.pnpm/@opentiny_utils@3.22.0/node_modules/@opentiny/utils/dist/index.es.js
CHANGED
|
@@ -1,171 +1,171 @@
|
|
|
1
|
-
var
|
|
2
|
-
function
|
|
3
|
-
if (
|
|
4
|
-
|
|
5
|
-
function
|
|
6
|
-
var
|
|
7
|
-
return
|
|
1
|
+
var de = { exports: {} }, k = {}, he = { exports: {} }, G = {}, Ie;
|
|
2
|
+
function Qe() {
|
|
3
|
+
if (Ie) return G;
|
|
4
|
+
Ie = 1;
|
|
5
|
+
function t() {
|
|
6
|
+
var e = {};
|
|
7
|
+
return e["align-content"] = !1, e["align-items"] = !1, e["align-self"] = !1, e["alignment-adjust"] = !1, e["alignment-baseline"] = !1, e.all = !1, e["anchor-point"] = !1, e.animation = !1, e["animation-delay"] = !1, e["animation-direction"] = !1, e["animation-duration"] = !1, e["animation-fill-mode"] = !1, e["animation-iteration-count"] = !1, e["animation-name"] = !1, e["animation-play-state"] = !1, e["animation-timing-function"] = !1, e.azimuth = !1, e["backface-visibility"] = !1, e.background = !0, e["background-attachment"] = !0, e["background-clip"] = !0, e["background-color"] = !0, e["background-image"] = !0, e["background-origin"] = !0, e["background-position"] = !0, e["background-repeat"] = !0, e["background-size"] = !0, e["baseline-shift"] = !1, e.binding = !1, e.bleed = !1, e["bookmark-label"] = !1, e["bookmark-level"] = !1, e["bookmark-state"] = !1, e.border = !0, e["border-bottom"] = !0, e["border-bottom-color"] = !0, e["border-bottom-left-radius"] = !0, e["border-bottom-right-radius"] = !0, e["border-bottom-style"] = !0, e["border-bottom-width"] = !0, e["border-collapse"] = !0, e["border-color"] = !0, e["border-image"] = !0, e["border-image-outset"] = !0, e["border-image-repeat"] = !0, e["border-image-slice"] = !0, e["border-image-source"] = !0, e["border-image-width"] = !0, e["border-left"] = !0, e["border-left-color"] = !0, e["border-left-style"] = !0, e["border-left-width"] = !0, e["border-radius"] = !0, e["border-right"] = !0, e["border-right-color"] = !0, e["border-right-style"] = !0, e["border-right-width"] = !0, e["border-spacing"] = !0, e["border-style"] = !0, e["border-top"] = !0, e["border-top-color"] = !0, e["border-top-left-radius"] = !0, e["border-top-right-radius"] = !0, e["border-top-style"] = !0, e["border-top-width"] = !0, e["border-width"] = !0, e.bottom = !1, e["box-decoration-break"] = !0, e["box-shadow"] = !0, e["box-sizing"] = !0, e["box-snap"] = !0, e["box-suppress"] = !0, e["break-after"] = !0, e["break-before"] = !0, e["break-inside"] = !0, e["caption-side"] = !1, e.chains = !1, e.clear = !0, e.clip = !1, e["clip-path"] = !1, e["clip-rule"] = !1, e.color = !0, e["color-interpolation-filters"] = !0, e["column-count"] = !1, e["column-fill"] = !1, e["column-gap"] = !1, e["column-rule"] = !1, e["column-rule-color"] = !1, e["column-rule-style"] = !1, e["column-rule-width"] = !1, e["column-span"] = !1, e["column-width"] = !1, e.columns = !1, e.contain = !1, e.content = !1, e["counter-increment"] = !1, e["counter-reset"] = !1, e["counter-set"] = !1, e.crop = !1, e.cue = !1, e["cue-after"] = !1, e["cue-before"] = !1, e.cursor = !1, e.direction = !1, e.display = !0, e["display-inside"] = !0, e["display-list"] = !0, e["display-outside"] = !0, e["dominant-baseline"] = !1, e.elevation = !1, e["empty-cells"] = !1, e.filter = !1, e.flex = !1, e["flex-basis"] = !1, e["flex-direction"] = !1, e["flex-flow"] = !1, e["flex-grow"] = !1, e["flex-shrink"] = !1, e["flex-wrap"] = !1, e.float = !1, e["float-offset"] = !1, e["flood-color"] = !1, e["flood-opacity"] = !1, e["flow-from"] = !1, e["flow-into"] = !1, e.font = !0, e["font-family"] = !0, e["font-feature-settings"] = !0, e["font-kerning"] = !0, e["font-language-override"] = !0, e["font-size"] = !0, e["font-size-adjust"] = !0, e["font-stretch"] = !0, e["font-style"] = !0, e["font-synthesis"] = !0, e["font-variant"] = !0, e["font-variant-alternates"] = !0, e["font-variant-caps"] = !0, e["font-variant-east-asian"] = !0, e["font-variant-ligatures"] = !0, e["font-variant-numeric"] = !0, e["font-variant-position"] = !0, e["font-weight"] = !0, e.grid = !1, e["grid-area"] = !1, e["grid-auto-columns"] = !1, e["grid-auto-flow"] = !1, e["grid-auto-rows"] = !1, e["grid-column"] = !1, e["grid-column-end"] = !1, e["grid-column-start"] = !1, e["grid-row"] = !1, e["grid-row-end"] = !1, e["grid-row-start"] = !1, e["grid-template"] = !1, e["grid-template-areas"] = !1, e["grid-template-columns"] = !1, e["grid-template-rows"] = !1, e["hanging-punctuation"] = !1, e.height = !0, e.hyphens = !1, e.icon = !1, e["image-orientation"] = !1, e["image-resolution"] = !1, e["ime-mode"] = !1, e["initial-letters"] = !1, e["inline-box-align"] = !1, e["justify-content"] = !1, e["justify-items"] = !1, e["justify-self"] = !1, e.left = !1, e["letter-spacing"] = !0, e["lighting-color"] = !0, e["line-box-contain"] = !1, e["line-break"] = !1, e["line-grid"] = !1, e["line-height"] = !1, e["line-snap"] = !1, e["line-stacking"] = !1, e["line-stacking-ruby"] = !1, e["line-stacking-shift"] = !1, e["line-stacking-strategy"] = !1, e["list-style"] = !0, e["list-style-image"] = !0, e["list-style-position"] = !0, e["list-style-type"] = !0, e.margin = !0, e["margin-bottom"] = !0, e["margin-left"] = !0, e["margin-right"] = !0, e["margin-top"] = !0, e["marker-offset"] = !1, e["marker-side"] = !1, e.marks = !1, e.mask = !1, e["mask-box"] = !1, e["mask-box-outset"] = !1, e["mask-box-repeat"] = !1, e["mask-box-slice"] = !1, e["mask-box-source"] = !1, e["mask-box-width"] = !1, e["mask-clip"] = !1, e["mask-image"] = !1, e["mask-origin"] = !1, e["mask-position"] = !1, e["mask-repeat"] = !1, e["mask-size"] = !1, e["mask-source-type"] = !1, e["mask-type"] = !1, e["max-height"] = !0, e["max-lines"] = !1, e["max-width"] = !0, e["min-height"] = !0, e["min-width"] = !0, e["move-to"] = !1, e["nav-down"] = !1, e["nav-index"] = !1, e["nav-left"] = !1, e["nav-right"] = !1, e["nav-up"] = !1, e["object-fit"] = !1, e["object-position"] = !1, e.opacity = !1, e.order = !1, e.orphans = !1, e.outline = !1, e["outline-color"] = !1, e["outline-offset"] = !1, e["outline-style"] = !1, e["outline-width"] = !1, e.overflow = !1, e["overflow-wrap"] = !1, e["overflow-x"] = !1, e["overflow-y"] = !1, e.padding = !0, e["padding-bottom"] = !0, e["padding-left"] = !0, e["padding-right"] = !0, e["padding-top"] = !0, e.page = !1, e["page-break-after"] = !1, e["page-break-before"] = !1, e["page-break-inside"] = !1, e["page-policy"] = !1, e.pause = !1, e["pause-after"] = !1, e["pause-before"] = !1, e.perspective = !1, e["perspective-origin"] = !1, e.pitch = !1, e["pitch-range"] = !1, e["play-during"] = !1, e.position = !1, e["presentation-level"] = !1, e.quotes = !1, e["region-fragment"] = !1, e.resize = !1, e.rest = !1, e["rest-after"] = !1, e["rest-before"] = !1, e.richness = !1, e.right = !1, e.rotation = !1, e["rotation-point"] = !1, e["ruby-align"] = !1, e["ruby-merge"] = !1, e["ruby-position"] = !1, e["shape-image-threshold"] = !1, e["shape-outside"] = !1, e["shape-margin"] = !1, e.size = !1, e.speak = !1, e["speak-as"] = !1, e["speak-header"] = !1, e["speak-numeral"] = !1, e["speak-punctuation"] = !1, e["speech-rate"] = !1, e.stress = !1, e["string-set"] = !1, e["tab-size"] = !1, e["table-layout"] = !1, e["text-align"] = !0, e["text-align-last"] = !0, e["text-combine-upright"] = !0, e["text-decoration"] = !0, e["text-decoration-color"] = !0, e["text-decoration-line"] = !0, e["text-decoration-skip"] = !0, e["text-decoration-style"] = !0, e["text-emphasis"] = !0, e["text-emphasis-color"] = !0, e["text-emphasis-position"] = !0, e["text-emphasis-style"] = !0, e["text-height"] = !0, e["text-indent"] = !0, e["text-justify"] = !0, e["text-orientation"] = !0, e["text-overflow"] = !0, e["text-shadow"] = !0, e["text-space-collapse"] = !0, e["text-transform"] = !0, e["text-underline-position"] = !0, e["text-wrap"] = !0, e.top = !1, e.transform = !1, e["transform-origin"] = !1, e["transform-style"] = !1, e.transition = !1, e["transition-delay"] = !1, e["transition-duration"] = !1, e["transition-property"] = !1, e["transition-timing-function"] = !1, e["unicode-bidi"] = !1, e["vertical-align"] = !1, e.visibility = !1, e["voice-balance"] = !1, e["voice-duration"] = !1, e["voice-family"] = !1, e["voice-pitch"] = !1, e["voice-range"] = !1, e["voice-rate"] = !1, e["voice-stress"] = !1, e["voice-volume"] = !1, e.volume = !1, e["white-space"] = !1, e.widows = !1, e.width = !0, e["will-change"] = !1, e["word-break"] = !0, e["word-spacing"] = !0, e["word-wrap"] = !0, e["wrap-flow"] = !1, e["wrap-through"] = !1, e["writing-mode"] = !1, e["z-index"] = !1, e;
|
|
8
8
|
}
|
|
9
|
-
function
|
|
9
|
+
function r(e, c, u) {
|
|
10
10
|
}
|
|
11
|
-
function s(
|
|
11
|
+
function s(e, c, u) {
|
|
12
12
|
}
|
|
13
|
-
var
|
|
14
|
-
function
|
|
15
|
-
return
|
|
13
|
+
var n = /javascript\s*\:/img;
|
|
14
|
+
function a(e, c) {
|
|
15
|
+
return n.test(c) ? "" : c;
|
|
16
16
|
}
|
|
17
|
-
return
|
|
17
|
+
return G.whiteList = t(), G.getDefaultWhiteList = t, G.onAttr = r, G.onIgnoreAttr = s, G.safeAttrValue = a, G;
|
|
18
18
|
}
|
|
19
|
-
var
|
|
20
|
-
function
|
|
21
|
-
return
|
|
22
|
-
indexOf: function(
|
|
23
|
-
var s,
|
|
19
|
+
var Ce, Me;
|
|
20
|
+
function Je() {
|
|
21
|
+
return Me || (Me = 1, Ce = {
|
|
22
|
+
indexOf: function(t, r) {
|
|
23
|
+
var s, n;
|
|
24
24
|
if (Array.prototype.indexOf)
|
|
25
|
-
return
|
|
26
|
-
for (s = 0,
|
|
27
|
-
if (
|
|
25
|
+
return t.indexOf(r);
|
|
26
|
+
for (s = 0, n = t.length; s < n; s++)
|
|
27
|
+
if (t[s] === r)
|
|
28
28
|
return s;
|
|
29
29
|
return -1;
|
|
30
30
|
},
|
|
31
|
-
forEach: function(
|
|
32
|
-
var
|
|
31
|
+
forEach: function(t, r, s) {
|
|
32
|
+
var n, a;
|
|
33
33
|
if (Array.prototype.forEach)
|
|
34
|
-
return
|
|
35
|
-
for (
|
|
36
|
-
|
|
34
|
+
return t.forEach(r, s);
|
|
35
|
+
for (n = 0, a = t.length; n < a; n++)
|
|
36
|
+
r.call(s, t[n], n, t);
|
|
37
37
|
},
|
|
38
|
-
trim: function(
|
|
39
|
-
return String.prototype.trim ?
|
|
38
|
+
trim: function(t) {
|
|
39
|
+
return String.prototype.trim ? t.trim() : t.replace(/(^\s*)|(\s*$)/g, "");
|
|
40
40
|
},
|
|
41
|
-
trimRight: function(
|
|
42
|
-
return String.prototype.trimRight ?
|
|
41
|
+
trimRight: function(t) {
|
|
42
|
+
return String.prototype.trimRight ? t.trimRight() : t.replace(/(\s*$)/g, "");
|
|
43
43
|
}
|
|
44
|
-
}),
|
|
44
|
+
}), Ce;
|
|
45
45
|
}
|
|
46
|
-
var
|
|
47
|
-
function
|
|
48
|
-
if (
|
|
49
|
-
|
|
50
|
-
var
|
|
51
|
-
function
|
|
52
|
-
s =
|
|
53
|
-
var
|
|
54
|
-
function
|
|
55
|
-
if (!
|
|
56
|
-
var
|
|
57
|
-
if (
|
|
58
|
-
var
|
|
59
|
-
if (
|
|
60
|
-
var
|
|
61
|
-
|
|
46
|
+
var pe, Fe;
|
|
47
|
+
function vt() {
|
|
48
|
+
if (Fe) return pe;
|
|
49
|
+
Fe = 1;
|
|
50
|
+
var t = Je();
|
|
51
|
+
function r(s, n) {
|
|
52
|
+
s = t.trimRight(s), s[s.length - 1] !== ";" && (s += ";");
|
|
53
|
+
var a = s.length, e = !1, c = 0, u = 0, g = "";
|
|
54
|
+
function A() {
|
|
55
|
+
if (!e) {
|
|
56
|
+
var d = t.trim(s.slice(c, u)), i = d.indexOf(":");
|
|
57
|
+
if (i !== -1) {
|
|
58
|
+
var x = t.trim(d.slice(0, i)), _ = t.trim(d.slice(i + 1));
|
|
59
|
+
if (x) {
|
|
60
|
+
var h = n(c, g.length, x, _, d);
|
|
61
|
+
h && (g += h + "; ");
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
|
-
|
|
65
|
+
c = u + 1;
|
|
66
66
|
}
|
|
67
|
-
for (;
|
|
68
|
-
var
|
|
69
|
-
if (
|
|
70
|
-
var
|
|
71
|
-
if (
|
|
72
|
-
|
|
73
|
-
} else
|
|
74
|
-
` &&
|
|
67
|
+
for (; u < a; u++) {
|
|
68
|
+
var E = s[u];
|
|
69
|
+
if (E === "/" && s[u + 1] === "*") {
|
|
70
|
+
var o = s.indexOf("*/", u + 2);
|
|
71
|
+
if (o === -1) break;
|
|
72
|
+
u = o + 1, c = u + 1, e = !1;
|
|
73
|
+
} else E === "(" ? e = !0 : E === ")" ? e = !1 : E === ";" ? e || A() : E === `
|
|
74
|
+
` && A();
|
|
75
75
|
}
|
|
76
|
-
return
|
|
76
|
+
return t.trim(g);
|
|
77
77
|
}
|
|
78
|
-
return
|
|
78
|
+
return pe = r, pe;
|
|
79
79
|
}
|
|
80
|
-
var
|
|
81
|
-
function
|
|
82
|
-
if (
|
|
83
|
-
|
|
84
|
-
var
|
|
85
|
-
|
|
86
|
-
function s(
|
|
87
|
-
return
|
|
88
|
-
}
|
|
89
|
-
function
|
|
90
|
-
var
|
|
91
|
-
for (var
|
|
92
|
-
|
|
93
|
-
return
|
|
94
|
-
}
|
|
95
|
-
function
|
|
96
|
-
|
|
97
|
-
}
|
|
98
|
-
return
|
|
99
|
-
if (
|
|
100
|
-
var
|
|
101
|
-
var
|
|
102
|
-
if (
|
|
103
|
-
var
|
|
104
|
-
position:
|
|
105
|
-
sourcePosition:
|
|
80
|
+
var me, ze;
|
|
81
|
+
function wt() {
|
|
82
|
+
if (ze) return me;
|
|
83
|
+
ze = 1;
|
|
84
|
+
var t = Qe(), r = vt();
|
|
85
|
+
Je();
|
|
86
|
+
function s(e) {
|
|
87
|
+
return e == null;
|
|
88
|
+
}
|
|
89
|
+
function n(e) {
|
|
90
|
+
var c = {};
|
|
91
|
+
for (var u in e)
|
|
92
|
+
c[u] = e[u];
|
|
93
|
+
return c;
|
|
94
|
+
}
|
|
95
|
+
function a(e) {
|
|
96
|
+
e = n(e || {}), e.whiteList = e.whiteList || t.whiteList, e.onAttr = e.onAttr || t.onAttr, e.onIgnoreAttr = e.onIgnoreAttr || t.onIgnoreAttr, e.safeAttrValue = e.safeAttrValue || t.safeAttrValue, this.options = e;
|
|
97
|
+
}
|
|
98
|
+
return a.prototype.process = function(e) {
|
|
99
|
+
if (e = e || "", e = e.toString(), !e) return "";
|
|
100
|
+
var c = this, u = c.options, g = u.whiteList, A = u.onAttr, E = u.onIgnoreAttr, o = u.safeAttrValue, d = r(e, function(i, x, _, h, F) {
|
|
101
|
+
var m = g[_], p = !1;
|
|
102
|
+
if (m === !0 ? p = m : typeof m == "function" ? p = m(h) : m instanceof RegExp && (p = m.test(h)), p !== !0 && (p = !1), h = o(_, h), !!h) {
|
|
103
|
+
var C = {
|
|
104
|
+
position: x,
|
|
105
|
+
sourcePosition: i,
|
|
106
106
|
source: F,
|
|
107
|
-
isWhite:
|
|
107
|
+
isWhite: p
|
|
108
108
|
};
|
|
109
|
-
if (
|
|
110
|
-
var
|
|
111
|
-
return s(
|
|
109
|
+
if (p) {
|
|
110
|
+
var v = A(_, h, C);
|
|
111
|
+
return s(v) ? _ + ":" + h : v;
|
|
112
112
|
} else {
|
|
113
|
-
var
|
|
114
|
-
if (!s(
|
|
115
|
-
return
|
|
113
|
+
var v = E(_, h, C);
|
|
114
|
+
if (!s(v))
|
|
115
|
+
return v;
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
118
|
});
|
|
119
|
-
return
|
|
120
|
-
},
|
|
119
|
+
return d;
|
|
120
|
+
}, me = a, me;
|
|
121
121
|
}
|
|
122
|
-
var
|
|
123
|
-
function
|
|
124
|
-
return
|
|
125
|
-
var s =
|
|
126
|
-
function
|
|
127
|
-
var
|
|
128
|
-
return
|
|
122
|
+
var Le;
|
|
123
|
+
function ve() {
|
|
124
|
+
return Le || (Le = 1, function(t, r) {
|
|
125
|
+
var s = Qe(), n = wt();
|
|
126
|
+
function a(c, u) {
|
|
127
|
+
var g = new n(u);
|
|
128
|
+
return g.process(c);
|
|
129
129
|
}
|
|
130
|
-
|
|
131
|
-
for (var
|
|
132
|
-
typeof window < "u" && (window.filterCSS =
|
|
133
|
-
}(
|
|
130
|
+
r = t.exports = a, r.FilterCSS = n;
|
|
131
|
+
for (var e in s) r[e] = s[e];
|
|
132
|
+
typeof window < "u" && (window.filterCSS = t.exports);
|
|
133
|
+
}(he, he.exports)), he.exports;
|
|
134
134
|
}
|
|
135
|
-
var
|
|
136
|
-
function
|
|
137
|
-
return
|
|
138
|
-
indexOf: function(
|
|
139
|
-
var s,
|
|
135
|
+
var Re, De;
|
|
136
|
+
function Ae() {
|
|
137
|
+
return De || (De = 1, Re = {
|
|
138
|
+
indexOf: function(t, r) {
|
|
139
|
+
var s, n;
|
|
140
140
|
if (Array.prototype.indexOf)
|
|
141
|
-
return
|
|
142
|
-
for (s = 0,
|
|
143
|
-
if (
|
|
141
|
+
return t.indexOf(r);
|
|
142
|
+
for (s = 0, n = t.length; s < n; s++)
|
|
143
|
+
if (t[s] === r)
|
|
144
144
|
return s;
|
|
145
145
|
return -1;
|
|
146
146
|
},
|
|
147
|
-
forEach: function(
|
|
148
|
-
var
|
|
147
|
+
forEach: function(t, r, s) {
|
|
148
|
+
var n, a;
|
|
149
149
|
if (Array.prototype.forEach)
|
|
150
|
-
return
|
|
151
|
-
for (
|
|
152
|
-
|
|
150
|
+
return t.forEach(r, s);
|
|
151
|
+
for (n = 0, a = t.length; n < a; n++)
|
|
152
|
+
r.call(s, t[n], n, t);
|
|
153
153
|
},
|
|
154
|
-
trim: function(
|
|
155
|
-
return String.prototype.trim ?
|
|
154
|
+
trim: function(t) {
|
|
155
|
+
return String.prototype.trim ? t.trim() : t.replace(/(^\s*)|(\s*$)/g, "");
|
|
156
156
|
},
|
|
157
|
-
spaceIndex: function(
|
|
158
|
-
var
|
|
157
|
+
spaceIndex: function(t) {
|
|
158
|
+
var r = /\s|\n|\t/, s = r.exec(t);
|
|
159
159
|
return s ? s.index : -1;
|
|
160
160
|
}
|
|
161
|
-
}),
|
|
161
|
+
}), Re;
|
|
162
162
|
}
|
|
163
|
-
var
|
|
164
|
-
function
|
|
165
|
-
if (
|
|
166
|
-
|
|
167
|
-
var
|
|
168
|
-
function
|
|
163
|
+
var je;
|
|
164
|
+
function Ue() {
|
|
165
|
+
if (je) return k;
|
|
166
|
+
je = 1;
|
|
167
|
+
var t = ve().FilterCSS, r = ve().getDefaultWhiteList, s = Ae();
|
|
168
|
+
function n() {
|
|
169
169
|
return {
|
|
170
170
|
a: ["target", "href", "title"],
|
|
171
171
|
abbr: ["title"],
|
|
@@ -256,335 +256,332 @@ function gt() {
|
|
|
256
256
|
]
|
|
257
257
|
};
|
|
258
258
|
}
|
|
259
|
-
var
|
|
260
|
-
function
|
|
259
|
+
var a = new t();
|
|
260
|
+
function e(f, b, l) {
|
|
261
261
|
}
|
|
262
|
-
function
|
|
262
|
+
function c(f, b, l) {
|
|
263
263
|
}
|
|
264
|
-
function
|
|
264
|
+
function u(f, b, l) {
|
|
265
265
|
}
|
|
266
|
-
function
|
|
266
|
+
function g(f, b, l) {
|
|
267
267
|
}
|
|
268
|
-
function
|
|
269
|
-
return
|
|
268
|
+
function A(f) {
|
|
269
|
+
return f.replace(o, "<").replace(d, ">");
|
|
270
270
|
}
|
|
271
|
-
function
|
|
272
|
-
if (
|
|
273
|
-
if (
|
|
274
|
-
if (!(
|
|
271
|
+
function E(f, b, l, w) {
|
|
272
|
+
if (l = z(l), b === "href" || b === "src") {
|
|
273
|
+
if (l = s.trim(l), l === "#") return "#";
|
|
274
|
+
if (!(l.substr(0, 7) === "http://" || l.substr(0, 8) === "https://" || l.substr(0, 7) === "mailto:" || l.substr(0, 4) === "tel:" || l.substr(0, 11) === "data:image/" || l.substr(0, 6) === "ftp://" || l.substr(0, 2) === "./" || l.substr(0, 3) === "../" || l[0] === "#" || l[0] === "/"))
|
|
275
275
|
return "";
|
|
276
|
-
} else if (
|
|
277
|
-
if (
|
|
276
|
+
} else if (b === "background") {
|
|
277
|
+
if (m.lastIndex = 0, m.test(l))
|
|
278
278
|
return "";
|
|
279
|
-
} else if (
|
|
280
|
-
if (
|
|
279
|
+
} else if (b === "style") {
|
|
280
|
+
if (p.lastIndex = 0, p.test(l) || (C.lastIndex = 0, C.test(l) && (m.lastIndex = 0, m.test(l))))
|
|
281
281
|
return "";
|
|
282
|
-
|
|
282
|
+
w !== !1 && (w = w || a, l = w.process(l));
|
|
283
283
|
}
|
|
284
|
-
return
|
|
284
|
+
return l = L(l), l;
|
|
285
285
|
}
|
|
286
|
-
var
|
|
287
|
-
function
|
|
288
|
-
return
|
|
286
|
+
var o = /</g, d = />/g, i = /"/g, x = /"/g, _ = /&#([a-zA-Z0-9]*);?/gim, h = /:?/gim, F = /&newline;?/gim, m = /((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi, p = /e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi, C = /u\s*r\s*l\s*\(.*/gi;
|
|
287
|
+
function v(f) {
|
|
288
|
+
return f.replace(i, """);
|
|
289
289
|
}
|
|
290
|
-
function
|
|
291
|
-
return
|
|
290
|
+
function y(f) {
|
|
291
|
+
return f.replace(x, '"');
|
|
292
292
|
}
|
|
293
|
-
function
|
|
294
|
-
return
|
|
295
|
-
return
|
|
293
|
+
function T(f) {
|
|
294
|
+
return f.replace(_, function(b, l) {
|
|
295
|
+
return l[0] === "x" || l[0] === "X" ? String.fromCharCode(parseInt(l.substr(1), 16)) : String.fromCharCode(parseInt(l, 10));
|
|
296
296
|
});
|
|
297
297
|
}
|
|
298
|
-
function
|
|
299
|
-
return
|
|
298
|
+
function R(f) {
|
|
299
|
+
return f.replace(h, ":").replace(F, " ");
|
|
300
300
|
}
|
|
301
|
-
function
|
|
302
|
-
for (var
|
|
303
|
-
|
|
304
|
-
return s.trim(
|
|
301
|
+
function W(f) {
|
|
302
|
+
for (var b = "", l = 0, w = f.length; l < w; l++)
|
|
303
|
+
b += f.charCodeAt(l) < 32 ? " " : f.charAt(l);
|
|
304
|
+
return s.trim(b);
|
|
305
305
|
}
|
|
306
|
-
function
|
|
307
|
-
return
|
|
306
|
+
function z(f) {
|
|
307
|
+
return f = y(f), f = T(f), f = R(f), f = W(f), f;
|
|
308
308
|
}
|
|
309
|
-
function
|
|
310
|
-
return
|
|
309
|
+
function L(f) {
|
|
310
|
+
return f = v(f), f = A(f), f;
|
|
311
311
|
}
|
|
312
|
-
function
|
|
312
|
+
function fe() {
|
|
313
313
|
return "";
|
|
314
314
|
}
|
|
315
|
-
function Z(
|
|
316
|
-
typeof
|
|
315
|
+
function Z(f, b) {
|
|
316
|
+
typeof b != "function" && (b = function() {
|
|
317
317
|
});
|
|
318
|
-
var
|
|
319
|
-
function
|
|
320
|
-
return
|
|
318
|
+
var l = !Array.isArray(f);
|
|
319
|
+
function w(N) {
|
|
320
|
+
return l ? !0 : s.indexOf(f, N) !== -1;
|
|
321
321
|
}
|
|
322
|
-
var
|
|
322
|
+
var j = [], D = !1;
|
|
323
323
|
return {
|
|
324
|
-
onIgnoreTag: function(
|
|
325
|
-
if (
|
|
326
|
-
if (
|
|
327
|
-
var
|
|
328
|
-
return
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
]),
|
|
324
|
+
onIgnoreTag: function(N, U, P) {
|
|
325
|
+
if (w(N))
|
|
326
|
+
if (P.isClosing) {
|
|
327
|
+
var K = "[/removed]", yt = P.position + K.length;
|
|
328
|
+
return j.push([
|
|
329
|
+
D !== !1 ? D : P.position,
|
|
330
|
+
yt
|
|
331
|
+
]), D = !1, K;
|
|
332
332
|
} else
|
|
333
|
-
return
|
|
333
|
+
return D || (D = P.position), "[removed]";
|
|
334
334
|
else
|
|
335
|
-
return
|
|
335
|
+
return b(N, U, P);
|
|
336
336
|
},
|
|
337
|
-
remove: function(
|
|
338
|
-
var
|
|
339
|
-
return s.forEach(
|
|
340
|
-
|
|
341
|
-
}),
|
|
337
|
+
remove: function(N) {
|
|
338
|
+
var U = "", P = 0;
|
|
339
|
+
return s.forEach(j, function(K) {
|
|
340
|
+
U += N.slice(P, K[0]), P = K[1];
|
|
341
|
+
}), U += N.slice(P), U;
|
|
342
342
|
}
|
|
343
343
|
};
|
|
344
344
|
}
|
|
345
|
-
function
|
|
346
|
-
for (var
|
|
347
|
-
var
|
|
348
|
-
if (
|
|
349
|
-
|
|
345
|
+
function H(f) {
|
|
346
|
+
for (var b = "", l = 0; l < f.length; ) {
|
|
347
|
+
var w = f.indexOf("<!--", l);
|
|
348
|
+
if (w === -1) {
|
|
349
|
+
b += f.slice(l);
|
|
350
350
|
break;
|
|
351
351
|
}
|
|
352
|
-
|
|
353
|
-
var
|
|
354
|
-
if (
|
|
352
|
+
b += f.slice(l, w);
|
|
353
|
+
var j = f.indexOf("-->", w);
|
|
354
|
+
if (j === -1)
|
|
355
355
|
break;
|
|
356
|
-
|
|
356
|
+
l = j + 3;
|
|
357
357
|
}
|
|
358
|
-
return
|
|
358
|
+
return b;
|
|
359
359
|
}
|
|
360
|
-
function
|
|
361
|
-
var
|
|
362
|
-
return
|
|
363
|
-
var
|
|
364
|
-
return
|
|
365
|
-
}),
|
|
360
|
+
function re(f) {
|
|
361
|
+
var b = f.split("");
|
|
362
|
+
return b = b.filter(function(l) {
|
|
363
|
+
var w = l.charCodeAt(0);
|
|
364
|
+
return w === 127 ? !1 : w <= 31 ? w === 10 || w === 13 : !0;
|
|
365
|
+
}), b.join("");
|
|
366
366
|
}
|
|
367
|
-
return
|
|
367
|
+
return k.whiteList = n(), k.getDefaultWhiteList = n, k.onTag = e, k.onIgnoreTag = c, k.onTagAttr = u, k.onIgnoreTagAttr = g, k.safeAttrValue = E, k.escapeHtml = A, k.escapeQuote = v, k.unescapeQuote = y, k.escapeHtmlEntities = T, k.escapeDangerHtml5Entities = R, k.clearNonPrintableCharacter = W, k.friendlyAttrValue = z, k.escapeAttrValue = L, k.onIgnoreTagStripAll = fe, k.StripTagBody = Z, k.stripCommentTag = H, k.stripBlankChar = re, k.cssFilter = a, k.getDefaultCSSWhiteList = r, k;
|
|
368
368
|
}
|
|
369
|
-
var
|
|
370
|
-
function
|
|
371
|
-
if (
|
|
372
|
-
|
|
373
|
-
var
|
|
374
|
-
function
|
|
375
|
-
var
|
|
376
|
-
return
|
|
377
|
-
}
|
|
378
|
-
function s(
|
|
379
|
-
return
|
|
380
|
-
}
|
|
381
|
-
function o
|
|
382
|
-
var
|
|
383
|
-
e: for (
|
|
384
|
-
var
|
|
385
|
-
if (
|
|
386
|
-
if (
|
|
387
|
-
|
|
369
|
+
var se = {}, Pe;
|
|
370
|
+
function Ke() {
|
|
371
|
+
if (Pe) return se;
|
|
372
|
+
Pe = 1;
|
|
373
|
+
var t = Ae();
|
|
374
|
+
function r(o) {
|
|
375
|
+
var d = t.spaceIndex(o), i;
|
|
376
|
+
return d === -1 ? i = o.slice(1, -1) : i = o.slice(1, d + 1), i = t.trim(i).toLowerCase(), i.slice(0, 1) === "/" && (i = i.slice(1)), i.slice(-1) === "/" && (i = i.slice(0, -1)), i;
|
|
377
|
+
}
|
|
378
|
+
function s(o) {
|
|
379
|
+
return o.slice(0, 2) === "</";
|
|
380
|
+
}
|
|
381
|
+
function n(o, d, i) {
|
|
382
|
+
var x = "", _ = 0, h = !1, F = !1, m = 0, p = o.length, C = "", v = "";
|
|
383
|
+
e: for (m = 0; m < p; m++) {
|
|
384
|
+
var y = o.charAt(m);
|
|
385
|
+
if (h === !1) {
|
|
386
|
+
if (y === "<") {
|
|
387
|
+
h = m;
|
|
388
388
|
continue;
|
|
389
389
|
}
|
|
390
390
|
} else if (F === !1) {
|
|
391
|
-
if (
|
|
392
|
-
|
|
391
|
+
if (y === "<") {
|
|
392
|
+
x += i(o.slice(_, m)), h = m, _ = m;
|
|
393
393
|
continue;
|
|
394
394
|
}
|
|
395
|
-
if (
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
s(
|
|
402
|
-
),
|
|
395
|
+
if (y === ">" || m === p - 1) {
|
|
396
|
+
x += i(o.slice(_, h)), v = o.slice(h, m + 1), C = r(v), x += d(
|
|
397
|
+
h,
|
|
398
|
+
x.length,
|
|
399
|
+
C,
|
|
400
|
+
v,
|
|
401
|
+
s(v)
|
|
402
|
+
), _ = m + 1, h = !1;
|
|
403
403
|
continue;
|
|
404
404
|
}
|
|
405
|
-
if (
|
|
406
|
-
for (var
|
|
407
|
-
if (
|
|
408
|
-
F =
|
|
405
|
+
if (y === '"' || y === "'")
|
|
406
|
+
for (var T = 1, R = o.charAt(m - T); R.trim() === "" || R === "="; ) {
|
|
407
|
+
if (R === "=") {
|
|
408
|
+
F = y;
|
|
409
409
|
continue e;
|
|
410
410
|
}
|
|
411
|
-
|
|
411
|
+
R = o.charAt(m - ++T);
|
|
412
412
|
}
|
|
413
|
-
} else if (
|
|
413
|
+
} else if (y === F) {
|
|
414
414
|
F = !1;
|
|
415
415
|
continue;
|
|
416
416
|
}
|
|
417
417
|
}
|
|
418
|
-
return
|
|
419
|
-
}
|
|
420
|
-
var
|
|
421
|
-
function
|
|
422
|
-
var
|
|
423
|
-
function
|
|
424
|
-
if (
|
|
425
|
-
var
|
|
426
|
-
|
|
418
|
+
return _ < p && (x += i(o.substr(_))), x;
|
|
419
|
+
}
|
|
420
|
+
var a = /[^a-zA-Z0-9\\_:.-]/gim;
|
|
421
|
+
function e(o, d) {
|
|
422
|
+
var i = 0, x = 0, _ = [], h = !1, F = o.length;
|
|
423
|
+
function m(T, R) {
|
|
424
|
+
if (T = t.trim(T), T = T.replace(a, "").toLowerCase(), !(T.length < 1)) {
|
|
425
|
+
var W = d(T, R || "");
|
|
426
|
+
W && _.push(W);
|
|
427
427
|
}
|
|
428
428
|
}
|
|
429
|
-
for (var
|
|
430
|
-
var
|
|
431
|
-
if (
|
|
432
|
-
|
|
429
|
+
for (var p = 0; p < F; p++) {
|
|
430
|
+
var C = o.charAt(p), v, y;
|
|
431
|
+
if (h === !1 && C === "=") {
|
|
432
|
+
h = o.slice(i, p), i = p + 1, x = o.charAt(i) === '"' || o.charAt(i) === "'" ? i : u(o, p + 1);
|
|
433
433
|
continue;
|
|
434
434
|
}
|
|
435
|
-
if (
|
|
436
|
-
if (
|
|
435
|
+
if (h !== !1 && p === x) {
|
|
436
|
+
if (y = o.indexOf(C, p + 1), y === -1)
|
|
437
437
|
break;
|
|
438
|
-
|
|
438
|
+
v = t.trim(o.slice(x + 1, y)), m(h, v), h = !1, p = y, i = p + 1;
|
|
439
439
|
continue;
|
|
440
440
|
}
|
|
441
|
-
if (/\s|\n|\t/.test(
|
|
442
|
-
if (
|
|
443
|
-
if (
|
|
444
|
-
|
|
441
|
+
if (/\s|\n|\t/.test(C))
|
|
442
|
+
if (o = o.replace(/\s|\n|\t/g, " "), h === !1)
|
|
443
|
+
if (y = c(o, p), y === -1) {
|
|
444
|
+
v = t.trim(o.slice(i, p)), m(v), h = !1, i = p + 1;
|
|
445
445
|
continue;
|
|
446
446
|
} else {
|
|
447
|
-
|
|
447
|
+
p = y - 1;
|
|
448
448
|
continue;
|
|
449
449
|
}
|
|
450
|
-
else if (
|
|
451
|
-
|
|
450
|
+
else if (y = g(o, p - 1), y === -1) {
|
|
451
|
+
v = t.trim(o.slice(i, p)), v = E(v), m(h, v), h = !1, i = p + 1;
|
|
452
452
|
continue;
|
|
453
453
|
} else
|
|
454
454
|
continue;
|
|
455
455
|
}
|
|
456
|
-
return
|
|
456
|
+
return i < o.length && (h === !1 ? m(o.slice(i)) : m(h, E(t.trim(o.slice(i))))), t.trim(_.join(" "));
|
|
457
457
|
}
|
|
458
|
-
function
|
|
459
|
-
for (;
|
|
460
|
-
var
|
|
461
|
-
if (
|
|
462
|
-
return
|
|
458
|
+
function c(o, d) {
|
|
459
|
+
for (; d < o.length; d++) {
|
|
460
|
+
var i = o[d];
|
|
461
|
+
if (i !== " ")
|
|
462
|
+
return i === "=" ? d : -1;
|
|
463
463
|
}
|
|
464
464
|
}
|
|
465
|
-
function
|
|
466
|
-
for (;
|
|
467
|
-
var
|
|
468
|
-
if (
|
|
469
|
-
return
|
|
465
|
+
function u(o, d) {
|
|
466
|
+
for (; d < o.length; d++) {
|
|
467
|
+
var i = o[d];
|
|
468
|
+
if (i !== " ")
|
|
469
|
+
return i === "'" || i === '"' ? d : -1;
|
|
470
470
|
}
|
|
471
471
|
}
|
|
472
|
-
function
|
|
473
|
-
for (;
|
|
474
|
-
var
|
|
475
|
-
if (
|
|
476
|
-
return
|
|
472
|
+
function g(o, d) {
|
|
473
|
+
for (; d > 0; d--) {
|
|
474
|
+
var i = o[d];
|
|
475
|
+
if (i !== " ")
|
|
476
|
+
return i === "=" ? d : -1;
|
|
477
477
|
}
|
|
478
478
|
}
|
|
479
|
-
function
|
|
480
|
-
return
|
|
479
|
+
function A(o) {
|
|
480
|
+
return o[0] === '"' && o[o.length - 1] === '"' || o[0] === "'" && o[o.length - 1] === "'";
|
|
481
481
|
}
|
|
482
|
-
function
|
|
483
|
-
return
|
|
482
|
+
function E(o) {
|
|
483
|
+
return A(o) ? o.substr(1, o.length - 2) : o;
|
|
484
484
|
}
|
|
485
|
-
return
|
|
485
|
+
return se.parseTag = n, se.parseAttr = e, se;
|
|
486
486
|
}
|
|
487
|
-
var
|
|
488
|
-
function
|
|
489
|
-
if (
|
|
490
|
-
|
|
491
|
-
var
|
|
492
|
-
function
|
|
493
|
-
return
|
|
494
|
-
}
|
|
495
|
-
function
|
|
496
|
-
var
|
|
497
|
-
if (
|
|
487
|
+
var ge, Be;
|
|
488
|
+
function kt() {
|
|
489
|
+
if (Be) return ge;
|
|
490
|
+
Be = 1;
|
|
491
|
+
var t = ve().FilterCSS, r = Ue(), s = Ke(), n = s.parseTag, a = s.parseAttr, e = Ae();
|
|
492
|
+
function c(o) {
|
|
493
|
+
return o == null;
|
|
494
|
+
}
|
|
495
|
+
function u(o) {
|
|
496
|
+
var d = e.spaceIndex(o);
|
|
497
|
+
if (d === -1)
|
|
498
498
|
return {
|
|
499
499
|
html: "",
|
|
500
|
-
closing:
|
|
500
|
+
closing: o[o.length - 2] === "/"
|
|
501
501
|
};
|
|
502
|
-
|
|
503
|
-
var
|
|
504
|
-
return
|
|
505
|
-
html:
|
|
506
|
-
closing:
|
|
502
|
+
o = e.trim(o.slice(d + 1, -1));
|
|
503
|
+
var i = o[o.length - 1] === "/";
|
|
504
|
+
return i && (o = e.trim(o.slice(0, -1))), {
|
|
505
|
+
html: o,
|
|
506
|
+
closing: i
|
|
507
507
|
};
|
|
508
508
|
}
|
|
509
|
-
function
|
|
510
|
-
var
|
|
511
|
-
for (var
|
|
512
|
-
|
|
513
|
-
return
|
|
514
|
-
}
|
|
515
|
-
function
|
|
516
|
-
var
|
|
517
|
-
for (var
|
|
518
|
-
Array.isArray(i
|
|
519
|
-
return
|
|
520
|
-
}) :
|
|
521
|
-
return
|
|
522
|
-
}
|
|
523
|
-
function
|
|
524
|
-
|
|
509
|
+
function g(o) {
|
|
510
|
+
var d = {};
|
|
511
|
+
for (var i in o)
|
|
512
|
+
d[i] = o[i];
|
|
513
|
+
return d;
|
|
514
|
+
}
|
|
515
|
+
function A(o) {
|
|
516
|
+
var d = {};
|
|
517
|
+
for (var i in o)
|
|
518
|
+
Array.isArray(o[i]) ? d[i.toLowerCase()] = o[i].map(function(x) {
|
|
519
|
+
return x.toLowerCase();
|
|
520
|
+
}) : d[i.toLowerCase()] = o[i];
|
|
521
|
+
return d;
|
|
522
|
+
}
|
|
523
|
+
function E(o) {
|
|
524
|
+
o = g(o || {}), o.stripIgnoreTag && (o.onIgnoreTag && console.error(
|
|
525
525
|
'Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'
|
|
526
|
-
),
|
|
527
|
-
}
|
|
528
|
-
return
|
|
529
|
-
if (
|
|
530
|
-
var
|
|
531
|
-
|
|
532
|
-
var
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
),
|
|
537
|
-
var
|
|
538
|
-
|
|
539
|
-
function(
|
|
526
|
+
), o.onIgnoreTag = r.onIgnoreTagStripAll), o.whiteList || o.allowList ? o.whiteList = A(o.whiteList || o.allowList) : o.whiteList = r.whiteList, o.onTag = o.onTag || r.onTag, o.onTagAttr = o.onTagAttr || r.onTagAttr, o.onIgnoreTag = o.onIgnoreTag || r.onIgnoreTag, o.onIgnoreTagAttr = o.onIgnoreTagAttr || r.onIgnoreTagAttr, o.safeAttrValue = o.safeAttrValue || r.safeAttrValue, o.escapeHtml = o.escapeHtml || r.escapeHtml, this.options = o, o.css === !1 ? this.cssFilter = !1 : (o.css = o.css || {}, this.cssFilter = new t(o.css));
|
|
527
|
+
}
|
|
528
|
+
return E.prototype.process = function(o) {
|
|
529
|
+
if (o = o || "", o = o.toString(), !o) return "";
|
|
530
|
+
var d = this, i = d.options, x = i.whiteList, _ = i.onTag, h = i.onIgnoreTag, F = i.onTagAttr, m = i.onIgnoreTagAttr, p = i.safeAttrValue, C = i.escapeHtml, v = d.cssFilter;
|
|
531
|
+
i.stripBlankChar && (o = r.stripBlankChar(o)), i.allowCommentTag || (o = r.stripCommentTag(o));
|
|
532
|
+
var y = !1;
|
|
533
|
+
i.stripIgnoreTagBody && (y = r.StripTagBody(
|
|
534
|
+
i.stripIgnoreTagBody,
|
|
535
|
+
h
|
|
536
|
+
), h = y.onIgnoreTag);
|
|
537
|
+
var T = n(
|
|
538
|
+
o,
|
|
539
|
+
function(R, W, z, L, fe) {
|
|
540
540
|
var Z = {
|
|
541
|
-
sourcePosition:
|
|
542
|
-
position:
|
|
543
|
-
isClosing:
|
|
544
|
-
isWhite: Object.prototype.hasOwnProperty.call(
|
|
545
|
-
},
|
|
546
|
-
if (!
|
|
541
|
+
sourcePosition: R,
|
|
542
|
+
position: W,
|
|
543
|
+
isClosing: fe,
|
|
544
|
+
isWhite: Object.prototype.hasOwnProperty.call(x, z)
|
|
545
|
+
}, H = _(z, L, Z);
|
|
546
|
+
if (!c(H)) return H;
|
|
547
547
|
if (Z.isWhite) {
|
|
548
548
|
if (Z.isClosing)
|
|
549
|
-
return "</" +
|
|
550
|
-
var
|
|
551
|
-
var
|
|
552
|
-
return
|
|
549
|
+
return "</" + z + ">";
|
|
550
|
+
var re = u(L), f = x[z], b = a(re.html, function(l, w) {
|
|
551
|
+
var j = e.indexOf(f, l) !== -1, D = F(z, l, w, j);
|
|
552
|
+
return c(D) ? j ? (w = p(z, l, w, v), w ? l + '="' + w + '"' : l) : (D = m(z, l, w, j), c(D) ? void 0 : D) : D;
|
|
553
553
|
});
|
|
554
|
-
return
|
|
554
|
+
return L = "<" + z, b && (L += " " + b), re.closing && (L += " /"), L += ">", L;
|
|
555
555
|
} else
|
|
556
|
-
return
|
|
556
|
+
return H = h(z, L, Z), c(H) ? C(L) : H;
|
|
557
557
|
},
|
|
558
|
-
|
|
558
|
+
C
|
|
559
559
|
);
|
|
560
|
-
return
|
|
561
|
-
},
|
|
560
|
+
return y && (T = y.remove(T)), T;
|
|
561
|
+
}, ge = E, ge;
|
|
562
562
|
}
|
|
563
|
-
var
|
|
564
|
-
function
|
|
565
|
-
return
|
|
566
|
-
var s =
|
|
567
|
-
function
|
|
568
|
-
var
|
|
569
|
-
return
|
|
563
|
+
var Ve;
|
|
564
|
+
function xt() {
|
|
565
|
+
return Ve || (Ve = 1, function(t, r) {
|
|
566
|
+
var s = Ue(), n = Ke(), a = kt();
|
|
567
|
+
function e(u, g) {
|
|
568
|
+
var A = new a(g);
|
|
569
|
+
return A.process(u);
|
|
570
570
|
}
|
|
571
|
-
|
|
572
|
-
for (var
|
|
573
|
-
|
|
574
|
-
for (var
|
|
575
|
-
|
|
576
|
-
}(), typeof window < "u" && (window.filterXSS =
|
|
577
|
-
function
|
|
571
|
+
r = t.exports = e, r.filterXSS = e, r.FilterXSS = a, function() {
|
|
572
|
+
for (var u in s)
|
|
573
|
+
r[u] = s[u];
|
|
574
|
+
for (var g in n)
|
|
575
|
+
r[g] = n[g];
|
|
576
|
+
}(), typeof window < "u" && (window.filterXSS = t.exports);
|
|
577
|
+
function c() {
|
|
578
578
|
return typeof self < "u" && typeof DedicatedWorkerGlobalScope < "u" && self instanceof DedicatedWorkerGlobalScope;
|
|
579
579
|
}
|
|
580
|
-
|
|
581
|
-
}(
|
|
580
|
+
c() && (self.filterXSS = t.exports);
|
|
581
|
+
}(de, de.exports)), de.exports;
|
|
582
582
|
}
|
|
583
|
-
var
|
|
584
|
-
let
|
|
585
|
-
enableAttrs: !0,
|
|
586
|
-
enableHtml: !0,
|
|
587
|
-
enableUrl: !0,
|
|
583
|
+
var we = xt();
|
|
584
|
+
let ke = {
|
|
588
585
|
html: {
|
|
589
586
|
whiteList: {
|
|
590
587
|
a: ["class", "style", "contenteditable", "data-id", "data-title", "data-size", "href", "data-last-modified"],
|
|
@@ -673,815 +670,637 @@ let P = {
|
|
|
673
670
|
}
|
|
674
671
|
}
|
|
675
672
|
};
|
|
676
|
-
const
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
const
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
wt = e;
|
|
687
|
-
};
|
|
688
|
-
let vt = (e) => !P.enableAttrs || typeof e != "string" ? e : e.replace(/<.*?>/gi, "").replace(/on[a-z]+=/gi, "");
|
|
689
|
-
const nr = (e) => {
|
|
690
|
-
vt = e;
|
|
691
|
-
};
|
|
692
|
-
let _t = (e) => {
|
|
693
|
-
if (!P.enableUrl || typeof e != "string")
|
|
694
|
-
return e;
|
|
695
|
-
const t = e.replace(/&#(\w+)(^\w|;)?/g, (o, n) => String.fromCharCode(n)).replace(/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim, "").trim();
|
|
696
|
-
if (!t)
|
|
697
|
-
return "";
|
|
698
|
-
if ([".", "/"].includes(t[0]))
|
|
699
|
-
return t;
|
|
700
|
-
const s = t.match(/^([^:]+):/gm);
|
|
701
|
-
return s && /^([^\w]*)(javascript|data|vbscript)/im.test(s[0]) ? "" : t;
|
|
702
|
-
};
|
|
703
|
-
const ir = (e) => {
|
|
704
|
-
_t = e;
|
|
705
|
-
}, Es = {
|
|
706
|
-
getXssOption: rr,
|
|
707
|
-
setXssOption: sr,
|
|
708
|
-
filterHtml: wt,
|
|
709
|
-
setFilterHtml: or,
|
|
710
|
-
filterAttrs: vt,
|
|
711
|
-
setFilterAttrs: nr,
|
|
712
|
-
filterUrl: _t,
|
|
713
|
-
setFilterUrl: ir
|
|
714
|
-
}, xt = Object.prototype.toString, Be = Object.prototype.hasOwnProperty, ar = Object.getPrototypeOf, Ot = Be.toString, lr = Ot.call(Object), fr = {
|
|
715
|
-
"[object Error]": "error",
|
|
716
|
-
"[object Object]": "object",
|
|
717
|
-
"[object RegExp]": "regExp",
|
|
718
|
-
"[object Date]": "date",
|
|
719
|
-
"[object Array]": "array",
|
|
720
|
-
"[object Function]": "function",
|
|
721
|
-
"[object AsyncFunction]": "asyncFunction",
|
|
722
|
-
"[object String]": "string",
|
|
723
|
-
"[object Number]": "number",
|
|
724
|
-
"[object Boolean]": "boolean"
|
|
725
|
-
}, kt = (e) => e == null, ge = (e) => kt(e) ? String(e) : fr[xt.call(e)] || "object", et = (e) => ge(e) === "object", ee = (e) => {
|
|
726
|
-
if (!e || xt.call(e) !== "[object Object]")
|
|
727
|
-
return !1;
|
|
728
|
-
const t = ar(e);
|
|
729
|
-
if (!t)
|
|
730
|
-
return !0;
|
|
731
|
-
const s = Be.call(t, "constructor") && t.constructor;
|
|
732
|
-
return typeof s == "function" && Ot.call(s) === lr;
|
|
733
|
-
}, S = typeof window > "u", cr = () => {
|
|
734
|
-
let e = 8;
|
|
735
|
-
return document.addEventListener && window.performance && (e = 9, window.atob && window.matchMedia && (e = 10, !window.attachEvent && !document.all && (e = 11))), e;
|
|
736
|
-
}, ur = (e) => {
|
|
737
|
-
e.chrome && ~navigator.userAgent.indexOf("Edg") ? (e.name = "edge", e.edge = !0, delete e.chrome) : !document.documentMode && window.StyleMedia && (e.name = "edge", e.edge = !0);
|
|
673
|
+
const _t = we.getDefaultWhiteList && we.getDefaultWhiteList() || {};
|
|
674
|
+
ke.html.whiteList = Object.assign(_t, ke.html.whiteList);
|
|
675
|
+
new we.FilterXSS(ke.html);
|
|
676
|
+
const Et = Object.prototype.hasOwnProperty, St = Et.toString;
|
|
677
|
+
St.call(Object);
|
|
678
|
+
const O = typeof window > "u", At = () => {
|
|
679
|
+
let t = 8;
|
|
680
|
+
return document.addEventListener && window.performance && (t = 9, window.atob && window.matchMedia && (t = 10, !window.attachEvent && !document.all && (t = 11))), t;
|
|
681
|
+
}, Ot = (t) => {
|
|
682
|
+
t.chrome && ~navigator.userAgent.indexOf("Edg") ? (t.name = "edge", t.edge = !0, delete t.chrome) : !document.documentMode && window.StyleMedia && (t.name = "edge", t.edge = !0);
|
|
738
683
|
};
|
|
739
684
|
(() => {
|
|
740
|
-
if (
|
|
741
|
-
const
|
|
685
|
+
if (O) return null;
|
|
686
|
+
const t = {
|
|
742
687
|
name: "",
|
|
743
688
|
version: 0,
|
|
744
689
|
isDoc: typeof document < "u",
|
|
745
690
|
isMobile: !1,
|
|
746
691
|
isPC: !0,
|
|
747
|
-
isNode:
|
|
692
|
+
isNode: O,
|
|
748
693
|
chrome: !1,
|
|
749
694
|
ie: !1,
|
|
750
695
|
firefox: !1,
|
|
751
696
|
safari: !1,
|
|
752
697
|
opera: !1,
|
|
753
698
|
edge: !1
|
|
754
|
-
},
|
|
755
|
-
|
|
699
|
+
}, r = /(Android|webOS|iPhone|iPad|iPod|SymbianOS|BlackBerry|Windows Phone)/.test(navigator.userAgent);
|
|
700
|
+
t.isMobile = r, t.isPC = !r;
|
|
756
701
|
let s;
|
|
757
|
-
if (window.chrome && (window.chrome.webstore || /^Google\b/.test(window.navigator.vendor)) ? (
|
|
758
|
-
const
|
|
759
|
-
s = navigator.userAgent.match(new RegExp(
|
|
760
|
-
}
|
|
761
|
-
if (
|
|
762
|
-
const
|
|
763
|
-
["webkit", "khtml", "moz", "ms", "o"].forEach((
|
|
764
|
-
|
|
702
|
+
if (window.chrome && (window.chrome.webstore || /^Google\b/.test(window.navigator.vendor)) ? (t.name = "chrome", t.chrome = !0, s = navigator.userAgent.match(/chrome\/(\d+)/i), t.version = !!s && !!s[1] && parseInt(s[1], 10), s = void 0) : document.all || document.documentMode ? (t.name = "ie", t.version = At(), t.ie = !0) : typeof window.InstallTrigger < "u" ? (t.name = "firefox", t.firefox = !0) : Object.prototype.toString.call(window.HTMLElement).indexOf("Constructor") > 0 ? (t.name = "safari", t.safari = !0) : (window.opr && window.opr.addons || window.opera) && (t.name = "opera", t.opera = !0), Ot(t), !~["ie", "chrome"].indexOf(t.name)) {
|
|
703
|
+
const n = t.name + "/(\\d+)";
|
|
704
|
+
s = navigator.userAgent.match(new RegExp(n, "i")), t.version = !!s && !!s[1] && parseInt(s[1], 10), s = void 0;
|
|
705
|
+
}
|
|
706
|
+
if (t.isDoc) {
|
|
707
|
+
const n = document.body || document.documentElement;
|
|
708
|
+
["webkit", "khtml", "moz", "ms", "o"].forEach((a) => {
|
|
709
|
+
t["-" + a] = !!n[a + "MatchesSelector"];
|
|
765
710
|
});
|
|
766
711
|
}
|
|
767
|
-
return
|
|
712
|
+
return t;
|
|
768
713
|
})();
|
|
769
|
-
const
|
|
770
|
-
|
|
771
|
-
},
|
|
772
|
-
|
|
773
|
-
},
|
|
774
|
-
|
|
775
|
-
},
|
|
776
|
-
!
|
|
777
|
-
},
|
|
778
|
-
const e = window;
|
|
779
|
-
let t = e.document.documentElement, s = e.document.body;
|
|
780
|
-
return {
|
|
781
|
-
scrollTop: t.scrollTop || s.scrollTop,
|
|
782
|
-
scrollLeft: t.scrollLeft || s.scrollLeft,
|
|
783
|
-
visibleHeight: t.clientHeight || s.clientHeight,
|
|
784
|
-
visibleWidth: t.clientWidth || s.clientWidth
|
|
785
|
-
};
|
|
786
|
-
}, Et = (e) => {
|
|
787
|
-
if (S) return !1;
|
|
788
|
-
if (e) {
|
|
789
|
-
const t = getComputedStyle(e);
|
|
790
|
-
if (t.getPropertyValue("position") === "fixed") {
|
|
791
|
-
if (t.getPropertyValue("display") === "none")
|
|
792
|
-
return !0;
|
|
793
|
-
if (e.parentNode !== document.body)
|
|
794
|
-
return Et(e.parentNode);
|
|
795
|
-
} else
|
|
796
|
-
return e.offsetParent === null;
|
|
797
|
-
}
|
|
798
|
-
return !1;
|
|
799
|
-
}, St = function() {
|
|
714
|
+
const Q = (t, r, s, n = !1) => {
|
|
715
|
+
t && r && s && t.addEventListener(r, s, n);
|
|
716
|
+
}, ie = (t, r, s, n = !1) => {
|
|
717
|
+
t && r && t.removeEventListener(r, s, n);
|
|
718
|
+
}, ne = (t, r = "") => {
|
|
719
|
+
t && r.split(" ").filter((s) => s).forEach((s) => t.classList.add(s));
|
|
720
|
+
}, oe = (t, r) => {
|
|
721
|
+
!t || !r || r.split(" ").filter((s) => s).forEach((s) => t.classList.remove(s));
|
|
722
|
+
}, et = function() {
|
|
800
723
|
if (typeof Map < "u")
|
|
801
724
|
return Map;
|
|
802
|
-
const
|
|
803
|
-
let
|
|
804
|
-
return
|
|
725
|
+
const t = (r, s) => {
|
|
726
|
+
let n = -1;
|
|
727
|
+
return r.some((a, e) => a[0] === s ? (n = e, !0) : !1), n;
|
|
805
728
|
};
|
|
806
729
|
return function() {
|
|
807
|
-
function
|
|
730
|
+
function r() {
|
|
808
731
|
this.__entries__ = [];
|
|
809
732
|
}
|
|
810
|
-
return Object.defineProperty(
|
|
733
|
+
return Object.defineProperty(r.prototype, "size", {
|
|
811
734
|
get() {
|
|
812
735
|
return this.__entries__.length;
|
|
813
736
|
},
|
|
814
737
|
enumerable: !0,
|
|
815
738
|
configurable: !0
|
|
816
|
-
}),
|
|
817
|
-
const
|
|
818
|
-
return
|
|
819
|
-
},
|
|
820
|
-
const
|
|
821
|
-
~
|
|
822
|
-
},
|
|
823
|
-
const
|
|
824
|
-
~
|
|
825
|
-
},
|
|
739
|
+
}), r.prototype.get = function(s) {
|
|
740
|
+
const n = t(this.__entries__, s), a = this.__entries__[n];
|
|
741
|
+
return a && a[1];
|
|
742
|
+
}, r.prototype.set = function(s, n) {
|
|
743
|
+
const a = t(this.__entries__, s);
|
|
744
|
+
~a ? this.__entries__[a][1] = n : this.__entries__.push([s, n]);
|
|
745
|
+
}, r.prototype.delete = function(s) {
|
|
746
|
+
const n = this.__entries__, a = t(n, s);
|
|
747
|
+
~a && n.splice(a, 1);
|
|
748
|
+
}, r.prototype.clear = function() {
|
|
826
749
|
this.__entries__.splice(0);
|
|
827
|
-
},
|
|
828
|
-
return !!~
|
|
829
|
-
},
|
|
830
|
-
|
|
831
|
-
for (let
|
|
832
|
-
const
|
|
833
|
-
s.call(
|
|
750
|
+
}, r.prototype.has = function(s) {
|
|
751
|
+
return !!~t(this.__entries__, s);
|
|
752
|
+
}, r.prototype.forEach = function(s, n) {
|
|
753
|
+
n === void 0 && (n = null);
|
|
754
|
+
for (let a = 0, e = this.__entries__; a < e.length; a++) {
|
|
755
|
+
const c = e[a];
|
|
756
|
+
s.call(n, c[1], c[0]);
|
|
834
757
|
}
|
|
835
|
-
},
|
|
758
|
+
}, r;
|
|
836
759
|
}();
|
|
837
|
-
}(),
|
|
838
|
-
const
|
|
839
|
-
return typeof global < "u" &&
|
|
840
|
-
}(),
|
|
841
|
-
return typeof requestAnimationFrame == "function" ? requestAnimationFrame.bind(
|
|
842
|
-
return setTimeout(() =>
|
|
760
|
+
}(), Tt = globalThis.Function, le = function() {
|
|
761
|
+
const t = (r) => r.Math === Math;
|
|
762
|
+
return typeof global < "u" && t(global) ? global : typeof self < "u" && t(self) ? self : typeof window < "u" && t(window) ? window : Tt("return this")();
|
|
763
|
+
}(), It = function() {
|
|
764
|
+
return typeof requestAnimationFrame == "function" ? requestAnimationFrame.bind(le) : function(t) {
|
|
765
|
+
return setTimeout(() => t(Date.now()), 1e3 / 60);
|
|
843
766
|
};
|
|
844
767
|
}();
|
|
845
|
-
let
|
|
846
|
-
function
|
|
847
|
-
let s = !1,
|
|
848
|
-
const
|
|
849
|
-
s && (s = !1,
|
|
850
|
-
},
|
|
851
|
-
|
|
768
|
+
let Ct = 2;
|
|
769
|
+
function Mt(t, r) {
|
|
770
|
+
let s = !1, n = !1, a = 0, e;
|
|
771
|
+
const c = () => {
|
|
772
|
+
s && (s = !1, t()), n && e();
|
|
773
|
+
}, u = () => {
|
|
774
|
+
It(c);
|
|
852
775
|
};
|
|
853
|
-
return
|
|
854
|
-
const
|
|
776
|
+
return e = () => {
|
|
777
|
+
const g = Date.now();
|
|
855
778
|
if (s) {
|
|
856
|
-
if (
|
|
779
|
+
if (g - a < Ct)
|
|
857
780
|
return;
|
|
858
|
-
|
|
781
|
+
n = !0;
|
|
859
782
|
} else
|
|
860
|
-
s = !0,
|
|
861
|
-
|
|
862
|
-
},
|
|
783
|
+
s = !0, n = !1, setTimeout(u, r);
|
|
784
|
+
a = g;
|
|
785
|
+
}, e;
|
|
863
786
|
}
|
|
864
|
-
const
|
|
865
|
-
function
|
|
866
|
-
this.observers_ = [], this.connected_ = !1, this.mutationEventsAdded_ = !1, this.mutationsObserver_ = null, this.onTransitionEnd_ = this.onTransitionEnd_.bind(this), this.refresh =
|
|
867
|
-
}
|
|
868
|
-
return
|
|
869
|
-
!~this.observers_.indexOf(
|
|
870
|
-
},
|
|
871
|
-
const s = this.observers_,
|
|
872
|
-
~
|
|
873
|
-
},
|
|
787
|
+
const Ft = 20, zt = ["top", "right", "bottom", "left", "width", "height", "size", "weight"], Lt = typeof MutationObserver < "u", Rt = function() {
|
|
788
|
+
function t() {
|
|
789
|
+
this.observers_ = [], this.connected_ = !1, this.mutationEventsAdded_ = !1, this.mutationsObserver_ = null, this.onTransitionEnd_ = this.onTransitionEnd_.bind(this), this.refresh = Mt(this.refresh.bind(this), Ft);
|
|
790
|
+
}
|
|
791
|
+
return t.prototype.addObserver = function(r) {
|
|
792
|
+
!~this.observers_.indexOf(r) && this.observers_.push(r), !this.connected_ && this.connect_();
|
|
793
|
+
}, t.prototype.removeObserver = function(r) {
|
|
794
|
+
const s = this.observers_, n = s.indexOf(r);
|
|
795
|
+
~n && s.splice(n, 1), !s.length && this.connected_ && this.disconnect_();
|
|
796
|
+
}, t.prototype.refresh = function() {
|
|
874
797
|
this.updateObservers_() && this.refresh();
|
|
875
|
-
},
|
|
876
|
-
const
|
|
877
|
-
return
|
|
878
|
-
},
|
|
879
|
-
if (!(
|
|
880
|
-
if (
|
|
798
|
+
}, t.prototype.updateObservers_ = function() {
|
|
799
|
+
const r = this.observers_.filter((s) => (s.gatherActive(), s.hasActive()));
|
|
800
|
+
return r.forEach((s) => s.broadcastActive()), r.length > 0;
|
|
801
|
+
}, t.prototype.connect_ = function() {
|
|
802
|
+
if (!(O || this.connected_)) {
|
|
803
|
+
if (Q(document, "transitionend", this.onTransitionEnd_), Q(window, "resize", this.refresh), Lt) {
|
|
881
804
|
this.mutationsObserver_ = new MutationObserver(this.refresh);
|
|
882
|
-
const
|
|
805
|
+
const r = {
|
|
883
806
|
attributes: !0,
|
|
884
807
|
childList: !0,
|
|
885
808
|
characterData: !0,
|
|
886
809
|
subtree: !0
|
|
887
810
|
};
|
|
888
|
-
this.mutationsObserver_.observe(document,
|
|
811
|
+
this.mutationsObserver_.observe(document, r);
|
|
889
812
|
} else
|
|
890
|
-
|
|
813
|
+
Q(document, "DOMSubtreeModified", this.refresh), this.mutationEventsAdded_ = !0;
|
|
891
814
|
this.connected_ = !0;
|
|
892
815
|
}
|
|
893
|
-
},
|
|
894
|
-
|
|
895
|
-
},
|
|
896
|
-
const s =
|
|
897
|
-
|
|
898
|
-
},
|
|
899
|
-
return this._instance || (this._instance = new
|
|
900
|
-
},
|
|
901
|
-
}(),
|
|
902
|
-
for (let s = 0,
|
|
903
|
-
const
|
|
904
|
-
Object.defineProperty(
|
|
905
|
-
value:
|
|
816
|
+
}, t.prototype.disconnect_ = function() {
|
|
817
|
+
O || !this.connected_ || (ie(document, "transitionend", this.onTransitionEnd_), ie(window, "resize", this.refresh), this.mutationsObserver_ && this.mutationsObserver_.disconnect(), this.mutationEventsAdded_ && ie(document, "DOMSubtreeModified", this.refresh), this.mutationsObserver_ = null, this.mutationEventsAdded_ = !1, this.connected_ = !1);
|
|
818
|
+
}, t.prototype.onTransitionEnd_ = function(r) {
|
|
819
|
+
const s = r.propertyName, n = s === void 0 ? "" : s;
|
|
820
|
+
zt.some((a) => !!~n.indexOf(a)) && this.refresh();
|
|
821
|
+
}, t.getInstance = function() {
|
|
822
|
+
return this._instance || (this._instance = new t()), this._instance;
|
|
823
|
+
}, t._instance = null, t;
|
|
824
|
+
}(), tt = function(t, r) {
|
|
825
|
+
for (let s = 0, n = Object.keys(r); s < n.length; s++) {
|
|
826
|
+
const a = n[s];
|
|
827
|
+
Object.defineProperty(t, a, {
|
|
828
|
+
value: r[a],
|
|
906
829
|
configurable: !0,
|
|
907
830
|
writable: !1,
|
|
908
831
|
enumerable: !1
|
|
909
832
|
});
|
|
910
833
|
}
|
|
911
|
-
return
|
|
912
|
-
},
|
|
913
|
-
return { x:
|
|
914
|
-
},
|
|
915
|
-
return
|
|
916
|
-
},
|
|
917
|
-
let
|
|
834
|
+
return t;
|
|
835
|
+
}, ce = function(t, r, s, n) {
|
|
836
|
+
return { x: t, y: r, width: s, height: n };
|
|
837
|
+
}, J = function(t) {
|
|
838
|
+
return t && t.ownerDocument && t.ownerDocument.defaultView || le;
|
|
839
|
+
}, rt = ce(0, 0, 0, 0), ue = (t) => parseFloat(t) || 0, qe = function(t) {
|
|
840
|
+
let r = [];
|
|
918
841
|
for (let s = 1; s < arguments.length; s++)
|
|
919
|
-
|
|
920
|
-
return
|
|
921
|
-
const
|
|
922
|
-
return s +
|
|
842
|
+
r[s - 1] = arguments[s];
|
|
843
|
+
return r.reduce((s, n) => {
|
|
844
|
+
const a = t[`border-${n}-width`];
|
|
845
|
+
return s + ue(a);
|
|
923
846
|
}, 0);
|
|
924
|
-
},
|
|
925
|
-
const
|
|
847
|
+
}, Dt = function(t) {
|
|
848
|
+
const r = ["top", "right", "bottom", "left"];
|
|
926
849
|
let s = {};
|
|
927
|
-
for (let
|
|
928
|
-
const
|
|
929
|
-
s[
|
|
850
|
+
for (let n = 0, a = r; n < a.length; n++) {
|
|
851
|
+
const e = a[n], c = t[`padding-${e}`];
|
|
852
|
+
s[e] = ue(c);
|
|
930
853
|
}
|
|
931
854
|
return s;
|
|
932
|
-
},
|
|
933
|
-
const
|
|
934
|
-
return
|
|
935
|
-
},
|
|
936
|
-
return
|
|
937
|
-
},
|
|
938
|
-
const
|
|
939
|
-
if (!s && !
|
|
940
|
-
return
|
|
941
|
-
const
|
|
942
|
-
let
|
|
943
|
-
if (
|
|
944
|
-
const
|
|
945
|
-
Math.abs(
|
|
946
|
-
}
|
|
947
|
-
return
|
|
948
|
-
},
|
|
949
|
-
return typeof SVGGraphicsElement < "u" ? (
|
|
950
|
-
}(),
|
|
951
|
-
return
|
|
952
|
-
},
|
|
953
|
-
const
|
|
954
|
-
return
|
|
955
|
-
x:
|
|
855
|
+
}, jt = function(t) {
|
|
856
|
+
const r = t.getBBox();
|
|
857
|
+
return ce(0, 0, r.width, r.height);
|
|
858
|
+
}, Pt = function(t) {
|
|
859
|
+
return t === J(t).document.documentElement;
|
|
860
|
+
}, Bt = function(t) {
|
|
861
|
+
const r = t.clientWidth, s = t.clientHeight;
|
|
862
|
+
if (!s && !r)
|
|
863
|
+
return rt;
|
|
864
|
+
const n = J(t).getComputedStyle(t), a = Dt(n), e = a.top + a.bottom, c = a.left + a.right;
|
|
865
|
+
let u = ue(n.width), g = ue(n.height);
|
|
866
|
+
if (n.boxSizing === "border-box" && (Math.round(g + e) !== s && (g -= qe(n, "top", "bottom") + e), Math.round(u + c) !== r && (u -= qe(n, "left", "right") + c)), !Pt(t)) {
|
|
867
|
+
const A = Math.round(g + e) - s, E = Math.round(u + c) - r;
|
|
868
|
+
Math.abs(A) !== 1 && (g -= A), Math.abs(E) !== 1 && (u -= E);
|
|
869
|
+
}
|
|
870
|
+
return ce(a.left, a.top, u, g);
|
|
871
|
+
}, Vt = /* @__PURE__ */ function() {
|
|
872
|
+
return typeof SVGGraphicsElement < "u" ? (t) => t instanceof J(t).SVGGraphicsElement : (t) => t instanceof J(t).SVGElement && typeof t.getBBox == "function";
|
|
873
|
+
}(), qt = function(t) {
|
|
874
|
+
return O ? rt : Vt(t) ? jt(t) : Bt(t);
|
|
875
|
+
}, Wt = function(t) {
|
|
876
|
+
const r = t.x, s = t.y, n = t.width, a = t.height, e = Object.create((typeof DOMRectReadOnly < "u" ? DOMRectReadOnly : Object).prototype);
|
|
877
|
+
return tt(e, {
|
|
878
|
+
x: r,
|
|
956
879
|
y: s,
|
|
957
|
-
width:
|
|
958
|
-
height:
|
|
880
|
+
width: n,
|
|
881
|
+
height: a,
|
|
959
882
|
top: s,
|
|
960
|
-
right:
|
|
961
|
-
bottom:
|
|
962
|
-
left:
|
|
963
|
-
}),
|
|
964
|
-
},
|
|
965
|
-
function
|
|
966
|
-
this.broadcastWidth = 0, this.broadcastHeight = 0, this.contentRect_ =
|
|
967
|
-
}
|
|
968
|
-
return
|
|
969
|
-
const
|
|
970
|
-
return this.broadcastWidth =
|
|
971
|
-
},
|
|
972
|
-
const
|
|
973
|
-
return this.contentRect_ =
|
|
974
|
-
},
|
|
975
|
-
}(),
|
|
976
|
-
function
|
|
977
|
-
const
|
|
978
|
-
|
|
979
|
-
}
|
|
980
|
-
return
|
|
981
|
-
}(),
|
|
982
|
-
function
|
|
983
|
-
if (this.observations_ = new
|
|
883
|
+
right: r + n,
|
|
884
|
+
bottom: a + s,
|
|
885
|
+
left: r
|
|
886
|
+
}), e;
|
|
887
|
+
}, Ht = function() {
|
|
888
|
+
function t(r) {
|
|
889
|
+
this.broadcastWidth = 0, this.broadcastHeight = 0, this.contentRect_ = ce(0, 0, 0, 0), this.target = r;
|
|
890
|
+
}
|
|
891
|
+
return t.prototype.broadcastRect = function() {
|
|
892
|
+
const r = this.contentRect_;
|
|
893
|
+
return this.broadcastWidth = r.width, this.broadcastHeight = r.height, r;
|
|
894
|
+
}, t.prototype.isActive = function() {
|
|
895
|
+
const r = qt(this.target);
|
|
896
|
+
return this.contentRect_ = r, r.width !== this.broadcastWidth || r.height !== this.broadcastHeight;
|
|
897
|
+
}, t;
|
|
898
|
+
}(), Nt = /* @__PURE__ */ function() {
|
|
899
|
+
function t(r, s) {
|
|
900
|
+
const n = Wt(s);
|
|
901
|
+
tt(this, { target: r, contentRect: n });
|
|
902
|
+
}
|
|
903
|
+
return t;
|
|
904
|
+
}(), Gt = function() {
|
|
905
|
+
function t(r, s, n) {
|
|
906
|
+
if (this.observations_ = new et(), this.activeObservations_ = [], typeof r != "function")
|
|
984
907
|
throw new TypeError("[TINY-Resize] The callback provided as parameter 1 is not a function.");
|
|
985
|
-
this.callback_ =
|
|
908
|
+
this.callback_ = r, this.controller_ = s, this.callbackCtx_ = n;
|
|
986
909
|
}
|
|
987
|
-
return
|
|
910
|
+
return t.prototype.observe = function(r) {
|
|
988
911
|
if (!arguments.length)
|
|
989
912
|
throw new TypeError("[TINY-Resize] 1 argument required, but only 0 present.");
|
|
990
913
|
if (typeof Element > "u" || !(Element instanceof Object))
|
|
991
914
|
return;
|
|
992
|
-
if (!(
|
|
915
|
+
if (!(r instanceof J(r).Element))
|
|
993
916
|
throw new TypeError('[TINY-Resize] parameter 1 is not of type "Element".');
|
|
994
917
|
const s = this.observations_;
|
|
995
|
-
s.has(
|
|
996
|
-
},
|
|
918
|
+
s.has(r) || (s.set(r, new Ht(r)), this.controller_.addObserver(this), this.controller_.refresh());
|
|
919
|
+
}, t.prototype.unobserve = function(r) {
|
|
997
920
|
if (!arguments.length)
|
|
998
921
|
throw new TypeError("[TINY-Resize]1 argument required, but only 0 present.");
|
|
999
922
|
if (typeof Element > "u" || !(Element instanceof Object))
|
|
1000
923
|
return;
|
|
1001
|
-
if (!(
|
|
924
|
+
if (!(r instanceof J(r).Element))
|
|
1002
925
|
throw new TypeError('[TINY-Resize] parameter 1 is not of type "Element".');
|
|
1003
926
|
const s = this.observations_;
|
|
1004
|
-
s.has(
|
|
1005
|
-
},
|
|
1006
|
-
const
|
|
927
|
+
s.has(r) && (s.delete(r), !s.size && this.controller_.removeObserver(this));
|
|
928
|
+
}, t.prototype.gatherActive = function() {
|
|
929
|
+
const r = this;
|
|
1007
930
|
this.clearActive(), this.observations_.forEach((s) => {
|
|
1008
|
-
s.isActive() &&
|
|
931
|
+
s.isActive() && r.activeObservations_.push(s);
|
|
1009
932
|
});
|
|
1010
|
-
},
|
|
933
|
+
}, t.prototype.disconnect = function() {
|
|
1011
934
|
this.clearActive(), this.observations_.clear(), this.controller_.removeObserver(this);
|
|
1012
|
-
},
|
|
935
|
+
}, t.prototype.broadcastActive = function() {
|
|
1013
936
|
if (!this.hasActive())
|
|
1014
937
|
return;
|
|
1015
|
-
const
|
|
1016
|
-
(
|
|
938
|
+
const r = this.callbackCtx_, s = this.activeObservations_.map(
|
|
939
|
+
(n) => new Nt(n.target, n.broadcastRect())
|
|
1017
940
|
);
|
|
1018
|
-
this.callback_.call(
|
|
1019
|
-
},
|
|
941
|
+
this.callback_.call(r, s, r), this.clearActive();
|
|
942
|
+
}, t.prototype.hasActive = function() {
|
|
1020
943
|
return this.activeObservations_.length > 0;
|
|
1021
|
-
},
|
|
944
|
+
}, t.prototype.clearActive = function() {
|
|
1022
945
|
this.activeObservations_.splice(0);
|
|
1023
|
-
},
|
|
1024
|
-
}(),
|
|
1025
|
-
function
|
|
1026
|
-
if (!(this instanceof
|
|
946
|
+
}, t;
|
|
947
|
+
}(), st = typeof WeakMap < "u" ? /* @__PURE__ */ new WeakMap() : new et(), nt = /* @__PURE__ */ function() {
|
|
948
|
+
function t(r) {
|
|
949
|
+
if (!(this instanceof t))
|
|
1027
950
|
throw new TypeError("[TINY-Resize] Cannot call a class as a function.");
|
|
1028
951
|
if (!arguments.length)
|
|
1029
952
|
throw new TypeError("[TINY-Resize] 1 argument required, but only 0 present.");
|
|
1030
|
-
const s =
|
|
1031
|
-
|
|
953
|
+
const s = Rt.getInstance(), n = new Gt(r, s, this);
|
|
954
|
+
st.set(this, n);
|
|
1032
955
|
}
|
|
1033
|
-
return
|
|
956
|
+
return t;
|
|
1034
957
|
}();
|
|
1035
|
-
["observe", "unobserve", "disconnect"].forEach((
|
|
1036
|
-
|
|
1037
|
-
let
|
|
1038
|
-
return (
|
|
958
|
+
["observe", "unobserve", "disconnect"].forEach((t) => {
|
|
959
|
+
nt.prototype[t] = function() {
|
|
960
|
+
let r;
|
|
961
|
+
return (r = st.get(this))[t].apply(r, arguments);
|
|
1039
962
|
};
|
|
1040
963
|
});
|
|
1041
964
|
(function() {
|
|
1042
|
-
return typeof
|
|
965
|
+
return typeof le.ResizeObserver < "u" ? le.ResizeObserver : nt;
|
|
1043
966
|
})();
|
|
1044
|
-
const
|
|
1045
|
-
|
|
1046
|
-
function
|
|
1047
|
-
return !
|
|
967
|
+
const Yt = "tcirzywvqlkjhgfbZQG_FLOWHSUBDNIMYREVKCAJxp57XP043891T62-modnaesu";
|
|
968
|
+
Yt.split("").reverse().join("");
|
|
969
|
+
function Xt(t) {
|
|
970
|
+
return !O && (t.document.all || t.document.documentMode) && !t.crypto && t.msCrypto;
|
|
1048
971
|
}
|
|
1049
|
-
function
|
|
1050
|
-
if (
|
|
1051
|
-
|
|
1052
|
-
const
|
|
1053
|
-
|
|
1054
|
-
const
|
|
1055
|
-
for (let
|
|
1056
|
-
|
|
1057
|
-
return
|
|
972
|
+
function Zt(t) {
|
|
973
|
+
if (Xt(t)) {
|
|
974
|
+
t.crypto = t.msCrypto;
|
|
975
|
+
const r = t.crypto.getRandomValues;
|
|
976
|
+
t.crypto.getRandomValues = function(s) {
|
|
977
|
+
const n = r.call(t.crypto, s), a = [];
|
|
978
|
+
for (let e = 0; e < s.length; e++)
|
|
979
|
+
a[e] = n[e];
|
|
980
|
+
return a;
|
|
1058
981
|
};
|
|
1059
982
|
}
|
|
1060
983
|
}
|
|
1061
|
-
const
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
return;
|
|
1067
|
-
const o = t.split(".");
|
|
1068
|
-
let n = e;
|
|
1069
|
-
const r = o.length;
|
|
1070
|
-
if (r > 1) {
|
|
1071
|
-
for (let l = 0; l < r; l++)
|
|
1072
|
-
if (n = n[o[l]], kt(n))
|
|
1073
|
-
return n;
|
|
1074
|
-
return n;
|
|
1075
|
-
} else
|
|
1076
|
-
return n[o[0]];
|
|
1077
|
-
}, Pr = (e, t, s, o) => {
|
|
1078
|
-
if (!e || !ee(e) || !t || typeof t != "string")
|
|
1079
|
-
return e;
|
|
1080
|
-
const n = t.split("."), r = e;
|
|
1081
|
-
let a = n.length, l = n[0];
|
|
1082
|
-
if (a > 1) {
|
|
1083
|
-
a--;
|
|
1084
|
-
let c = r, d, m;
|
|
1085
|
-
for (let i = 0; i < a; i++)
|
|
1086
|
-
d = n[i], m = c[d], (m === null || !ee(m)) && (c[d] = {}, m = c[d]), c = m;
|
|
1087
|
-
l = n[a], c[l] = s;
|
|
1088
|
-
} else
|
|
1089
|
-
r[l] = s;
|
|
1090
|
-
return r;
|
|
1091
|
-
}, Lr = (e, t, s, o) => {
|
|
1092
|
-
const n = (r, a, l, c) => {
|
|
1093
|
-
const d = {};
|
|
1094
|
-
return a.forEach((m) => Pr(d, m, zr(r, m))), d;
|
|
1095
|
-
};
|
|
1096
|
-
return ee(e) ? Array.isArray(t) ? n(e, t) : Re(s !== !1, {}, e) : e;
|
|
1097
|
-
}, Br = (e) => Array.isArray(e) ? e.map((t) => Lr(t)) : e, Rr = (e, t, s, o, n) => {
|
|
1098
|
-
let r;
|
|
1099
|
-
if (s && o && (ee(o) || (r = Array.isArray(o))))
|
|
1100
|
-
if (r)
|
|
1101
|
-
r = !1, e[t] = Br(o);
|
|
1102
|
-
else {
|
|
1103
|
-
const a = n && ee(n) ? n : {};
|
|
1104
|
-
e[t] = Re(s, a, o);
|
|
1105
|
-
}
|
|
1106
|
-
else if (o !== void 0)
|
|
1107
|
-
try {
|
|
1108
|
-
e[t] = o;
|
|
1109
|
-
} catch {
|
|
1110
|
-
}
|
|
1111
|
-
};
|
|
1112
|
-
Re = function(...e) {
|
|
1113
|
-
const t = e.length;
|
|
1114
|
-
let s = e[0] || {}, o = 1, n = !1;
|
|
1115
|
-
for (ge(s) === "boolean" && (n = s, s = e[o] || {}, o++), !et(s) && ge(s) !== "function" && (s = {}); o < t; o++) {
|
|
1116
|
-
const r = e[o];
|
|
1117
|
-
if (r !== null && et(r)) {
|
|
1118
|
-
const a = Object.keys(r);
|
|
1119
|
-
for (const l of a) {
|
|
1120
|
-
const c = s[l], d = r[l];
|
|
1121
|
-
s !== d && Rr(s, l, n, d, c);
|
|
1122
|
-
}
|
|
1123
|
-
}
|
|
1124
|
-
}
|
|
1125
|
-
return s;
|
|
1126
|
-
};
|
|
1127
|
-
const As = function(e, ...t) {
|
|
1128
|
-
for (let s = 0, o = t.length; s < o; s++) {
|
|
1129
|
-
const n = t[s] || {};
|
|
1130
|
-
for (const r in n)
|
|
1131
|
-
if (Be.call(n, r)) {
|
|
1132
|
-
const a = n[r];
|
|
1133
|
-
a !== void 0 && (e[r] = a);
|
|
1134
|
-
}
|
|
1135
|
-
}
|
|
1136
|
-
return e;
|
|
1137
|
-
};
|
|
1138
|
-
function De(e) {
|
|
1139
|
-
let t = /* @__PURE__ */ Object.create(null);
|
|
1140
|
-
return function(s) {
|
|
1141
|
-
return t[s] || (t[s] = e(s));
|
|
1142
|
-
};
|
|
1143
|
-
}
|
|
1144
|
-
const Dr = /-(\w)/g, Ts = De((e) => e.replace(Dr, (t, s) => s ? s.toUpperCase() : "")), Fs = De((e) => e.charAt(0).toUpperCase() + e.slice(1)), Hr = /\B([A-Z])/g, Ms = De((e) => e.replace(Hr, "-$1").toLowerCase()), Wr = () => globalThis.crypto.getRandomValues(new Uint32Array(1))[0] / 4294967296, Cs = (e = "", t = 8) => e + Wr().toString().substr(2, t), Is = (e, t, s) => {
|
|
1145
|
-
let o;
|
|
1146
|
-
if (S) return { t: e, o: !1 };
|
|
1147
|
-
const n = document.createElement("canvas").getContext("2d");
|
|
1148
|
-
n.font = t;
|
|
1149
|
-
let r = n.measureText(e);
|
|
1150
|
-
if (r.width < s)
|
|
1151
|
-
return { t: e, o: !1 };
|
|
1152
|
-
for (let a = -1; ; a--)
|
|
1153
|
-
if (o = e.slice(0, a) + "...", r = n.measureText(o), r.width < s)
|
|
1154
|
-
return { t: o, o: !0 };
|
|
1155
|
-
}, Nr = {
|
|
1156
|
-
Escape: 27,
|
|
1157
|
-
ArrowUp: 38,
|
|
1158
|
-
ArrowDown: 40,
|
|
1159
|
-
NumpadEnter: 13
|
|
1160
|
-
}, Ct = {
|
|
984
|
+
const $t = globalThis;
|
|
985
|
+
Zt($t);
|
|
986
|
+
const Qt = {
|
|
987
|
+
Escape: 27
|
|
988
|
+
}, ot = {
|
|
1161
989
|
fullMonths: "January,February,March,April,May,June,July,August,September,October,November,December".split(","),
|
|
1162
990
|
fullWeeks: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]
|
|
1163
|
-
},
|
|
1164
|
-
},
|
|
991
|
+
}, Oe = ["\\d\\d?", "\\d{3}", "\\d{4}"], q = Oe[0], Jt = Oe[1], Ut = Oe[2], ee = "[^\\s]+", We = () => {
|
|
992
|
+
}, at = (t, r) => {
|
|
1165
993
|
let s = [];
|
|
1166
|
-
for (let
|
|
1167
|
-
s.push(
|
|
994
|
+
for (let n = 0, a = t.length; n < a; n++)
|
|
995
|
+
s.push(t[n].substr(0, r));
|
|
1168
996
|
return s;
|
|
1169
|
-
},
|
|
1170
|
-
const
|
|
1171
|
-
~
|
|
1172
|
-
},
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
const
|
|
997
|
+
}, He = (t) => (r, s, n) => {
|
|
998
|
+
const a = n[t].indexOf(s.charAt(0).toUpperCase() + s.substr(1).toLowerCase());
|
|
999
|
+
~a && (r.month = a);
|
|
1000
|
+
}, Kt = ot.fullWeeks, er = ot.fullMonths;
|
|
1001
|
+
at(er, 3);
|
|
1002
|
+
at(Kt, 3);
|
|
1003
|
+
const $ = {
|
|
1176
1004
|
d: [
|
|
1177
|
-
|
|
1178
|
-
(
|
|
1179
|
-
|
|
1005
|
+
q,
|
|
1006
|
+
(t, r) => {
|
|
1007
|
+
t.day = r;
|
|
1180
1008
|
}
|
|
1181
1009
|
],
|
|
1182
1010
|
Do: [
|
|
1183
|
-
|
|
1184
|
-
(
|
|
1185
|
-
|
|
1011
|
+
q + ee,
|
|
1012
|
+
(t, r) => {
|
|
1013
|
+
t.day = parseInt(r, 10);
|
|
1186
1014
|
}
|
|
1187
1015
|
],
|
|
1188
1016
|
M: [
|
|
1189
|
-
|
|
1190
|
-
(
|
|
1191
|
-
|
|
1017
|
+
q,
|
|
1018
|
+
(t, r) => {
|
|
1019
|
+
t.month = r - 1;
|
|
1192
1020
|
}
|
|
1193
1021
|
],
|
|
1194
1022
|
yy: [
|
|
1195
|
-
|
|
1196
|
-
(
|
|
1023
|
+
q,
|
|
1024
|
+
(t, r) => {
|
|
1197
1025
|
const s = Number(String((/* @__PURE__ */ new Date()).getFullYear()).substr(0, 2));
|
|
1198
|
-
|
|
1026
|
+
t.year = String(r > 68 ? s - 1 : s) + r;
|
|
1199
1027
|
}
|
|
1200
1028
|
],
|
|
1201
1029
|
h: [
|
|
1202
|
-
|
|
1203
|
-
(
|
|
1204
|
-
|
|
1030
|
+
q,
|
|
1031
|
+
(t, r) => {
|
|
1032
|
+
t.hour = r;
|
|
1205
1033
|
}
|
|
1206
1034
|
],
|
|
1207
1035
|
m: [
|
|
1208
|
-
|
|
1209
|
-
(
|
|
1210
|
-
|
|
1036
|
+
q,
|
|
1037
|
+
(t, r) => {
|
|
1038
|
+
t.minute = r;
|
|
1211
1039
|
}
|
|
1212
1040
|
],
|
|
1213
1041
|
s: [
|
|
1214
|
-
|
|
1215
|
-
(
|
|
1216
|
-
|
|
1042
|
+
q,
|
|
1043
|
+
(t, r) => {
|
|
1044
|
+
t.second = r;
|
|
1217
1045
|
}
|
|
1218
1046
|
],
|
|
1219
1047
|
yyyy: [
|
|
1220
|
-
|
|
1221
|
-
(
|
|
1222
|
-
|
|
1048
|
+
Ut,
|
|
1049
|
+
(t, r) => {
|
|
1050
|
+
t.year = r;
|
|
1223
1051
|
}
|
|
1224
1052
|
],
|
|
1225
1053
|
S: [
|
|
1226
1054
|
"\\d",
|
|
1227
|
-
(
|
|
1228
|
-
|
|
1055
|
+
(t, r) => {
|
|
1056
|
+
t.millisecond = r * 100;
|
|
1229
1057
|
}
|
|
1230
1058
|
],
|
|
1231
1059
|
SS: [
|
|
1232
1060
|
"\\d{2}",
|
|
1233
|
-
(
|
|
1234
|
-
|
|
1061
|
+
(t, r) => {
|
|
1062
|
+
t.millisecond = r * 10;
|
|
1235
1063
|
}
|
|
1236
1064
|
],
|
|
1237
1065
|
SSS: [
|
|
1238
|
-
|
|
1239
|
-
(
|
|
1240
|
-
|
|
1066
|
+
Jt,
|
|
1067
|
+
(t, r) => {
|
|
1068
|
+
t.millisecond = r;
|
|
1241
1069
|
}
|
|
1242
1070
|
],
|
|
1243
|
-
D: [
|
|
1244
|
-
ddd: [
|
|
1245
|
-
MMM: [
|
|
1246
|
-
MMMM: [
|
|
1071
|
+
D: [q, We],
|
|
1072
|
+
ddd: [ee, We],
|
|
1073
|
+
MMM: [ee, He("monthNamesShort")],
|
|
1074
|
+
MMMM: [ee, He("monthNames")],
|
|
1247
1075
|
a: [
|
|
1248
|
-
|
|
1249
|
-
(
|
|
1250
|
-
const
|
|
1251
|
-
|
|
1076
|
+
ee,
|
|
1077
|
+
(t, r, s) => {
|
|
1078
|
+
const n = r.toLowerCase();
|
|
1079
|
+
n === s.amPm[0] ? t.isPm = !1 : n === s.amPm[1] && (t.isPm = !0);
|
|
1252
1080
|
}
|
|
1253
1081
|
],
|
|
1254
1082
|
ZZ: [
|
|
1255
1083
|
"[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z",
|
|
1256
|
-
(
|
|
1257
|
-
let s = String(
|
|
1258
|
-
s && (
|
|
1084
|
+
(t, r) => {
|
|
1085
|
+
let s = String(r).match(/([+-]|\d\d)/gi), n;
|
|
1086
|
+
s && (n = Number(s[1] * 60) + parseInt(s[2], 10), t.timezoneOffset = s[0] === "+" ? n : -n);
|
|
1259
1087
|
}
|
|
1260
1088
|
]
|
|
1261
|
-
},
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1089
|
+
}, tr = ["A", "DD", "dd", "mm", "hh", "MM", "ss", "hh", "H", "HH"];
|
|
1090
|
+
$.dddd = $.ddd;
|
|
1091
|
+
tr.forEach((t) => {
|
|
1092
|
+
t === "MM" ? $[t] = $[t.substr(0, 1)] : $[t] = $[t.substr(0, 1).toLowerCase()];
|
|
1265
1093
|
});
|
|
1266
|
-
const
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
n.initEvent(t, !1, !0), n.preventDefault = () => {
|
|
1271
|
-
o = !0;
|
|
1272
|
-
}, s.unshift(n), s.unshift(t), e.apply(null, s);
|
|
1273
|
-
}
|
|
1274
|
-
return !o;
|
|
1275
|
-
}, zs = () => {
|
|
1276
|
-
}, Yr = function() {
|
|
1277
|
-
return S ? function(e) {
|
|
1278
|
-
setTimeout(() => e(Date.now()), 1e3 / 60);
|
|
1094
|
+
const Sr = () => {
|
|
1095
|
+
}, rr = function() {
|
|
1096
|
+
return O ? function(t) {
|
|
1097
|
+
setTimeout(() => t(Date.now()), 1e3 / 60);
|
|
1279
1098
|
} : window.requestAnimationFrame.bind(window);
|
|
1280
|
-
}(),
|
|
1281
|
-
|
|
1282
|
-
},
|
|
1283
|
-
const { reads:
|
|
1284
|
-
let
|
|
1099
|
+
}(), xe = (t) => {
|
|
1100
|
+
t.scheduled || (t.scheduled = !0, t.raf(sr.bind(null, t)));
|
|
1101
|
+
}, sr = (t) => {
|
|
1102
|
+
const { reads: r, writes: s } = t;
|
|
1103
|
+
let n;
|
|
1285
1104
|
try {
|
|
1286
|
-
|
|
1287
|
-
} catch (
|
|
1288
|
-
|
|
1105
|
+
t.runTasks(r), t.runTasks(s);
|
|
1106
|
+
} catch (a) {
|
|
1107
|
+
n = a;
|
|
1289
1108
|
}
|
|
1290
|
-
if (
|
|
1291
|
-
if (
|
|
1292
|
-
|
|
1109
|
+
if (t.scheduled = !1, (r.length || s.length) && xe(t), n)
|
|
1110
|
+
if (t.catch)
|
|
1111
|
+
t.catch(n);
|
|
1293
1112
|
else
|
|
1294
|
-
throw
|
|
1295
|
-
},
|
|
1296
|
-
const s =
|
|
1297
|
-
return !!~s && !!
|
|
1298
|
-
},
|
|
1299
|
-
for (let s in
|
|
1300
|
-
Object.hasOwnProperty.call(
|
|
1113
|
+
throw n;
|
|
1114
|
+
}, Ne = (t, r) => {
|
|
1115
|
+
const s = t.indexOf(r);
|
|
1116
|
+
return !!~s && !!t.splice(s, 1);
|
|
1117
|
+
}, nr = (t, r) => {
|
|
1118
|
+
for (let s in r)
|
|
1119
|
+
Object.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
1301
1120
|
};
|
|
1302
|
-
class
|
|
1121
|
+
class or {
|
|
1303
1122
|
constructor() {
|
|
1304
|
-
this.reads = [], this.writes = [], this.raf =
|
|
1123
|
+
this.reads = [], this.writes = [], this.raf = rr.bind(window);
|
|
1305
1124
|
}
|
|
1306
|
-
runTasks(
|
|
1125
|
+
runTasks(r) {
|
|
1307
1126
|
let s;
|
|
1308
|
-
for (; s =
|
|
1127
|
+
for (; s = r.shift(); ) s();
|
|
1309
1128
|
}
|
|
1310
|
-
measure(
|
|
1311
|
-
const
|
|
1312
|
-
return this.reads.push(
|
|
1129
|
+
measure(r, s) {
|
|
1130
|
+
const n = s ? r.bind(s) : r;
|
|
1131
|
+
return this.reads.push(n), xe(this), n;
|
|
1313
1132
|
}
|
|
1314
|
-
mutate(
|
|
1315
|
-
const
|
|
1316
|
-
return this.writes.push(
|
|
1133
|
+
mutate(r, s) {
|
|
1134
|
+
const n = s ? r.bind(s) : r;
|
|
1135
|
+
return this.writes.push(n), xe(this), n;
|
|
1317
1136
|
}
|
|
1318
|
-
clear(
|
|
1319
|
-
return
|
|
1137
|
+
clear(r) {
|
|
1138
|
+
return Ne(this.reads, r) || Ne(this.writes, r);
|
|
1320
1139
|
}
|
|
1321
|
-
extend(
|
|
1322
|
-
if (!
|
|
1140
|
+
extend(r) {
|
|
1141
|
+
if (!r || typeof r != "object") throw new Error("[TINY][FastDom] expected object");
|
|
1323
1142
|
const s = Object.create(this);
|
|
1324
|
-
return
|
|
1143
|
+
return nr(s, r), s.fastdom = this, s.initialize && s.initialize(), s;
|
|
1325
1144
|
}
|
|
1326
1145
|
}
|
|
1327
|
-
const
|
|
1328
|
-
const
|
|
1329
|
-
let
|
|
1330
|
-
const
|
|
1331
|
-
|
|
1332
|
-
|
|
1146
|
+
const it = new or(), Ge = (t, r, s, n) => {
|
|
1147
|
+
const a = t._tasks, e = t.fastdom;
|
|
1148
|
+
let c;
|
|
1149
|
+
const u = new Promise(function(g, A) {
|
|
1150
|
+
c = e[r](function() {
|
|
1151
|
+
a.delete(u);
|
|
1333
1152
|
try {
|
|
1334
|
-
|
|
1335
|
-
} catch (
|
|
1336
|
-
|
|
1153
|
+
g(n ? s.call(n) : s());
|
|
1154
|
+
} catch (E) {
|
|
1155
|
+
A(E);
|
|
1337
1156
|
}
|
|
1338
|
-
},
|
|
1157
|
+
}, n);
|
|
1339
1158
|
});
|
|
1340
|
-
return
|
|
1341
|
-
},
|
|
1159
|
+
return a.set(u, c), u;
|
|
1160
|
+
}, ar = {
|
|
1342
1161
|
initialize() {
|
|
1343
1162
|
this._tasks = /* @__PURE__ */ new Map();
|
|
1344
1163
|
},
|
|
1345
|
-
mutate(
|
|
1346
|
-
return
|
|
1164
|
+
mutate(t, r) {
|
|
1165
|
+
return Ge(this, "mutate", t, r);
|
|
1347
1166
|
},
|
|
1348
|
-
measure(
|
|
1349
|
-
return
|
|
1167
|
+
measure(t, r) {
|
|
1168
|
+
return Ge(this, "measure", t, r);
|
|
1350
1169
|
},
|
|
1351
|
-
clear(
|
|
1352
|
-
const
|
|
1353
|
-
this.fastdom.clear(s),
|
|
1170
|
+
clear(t) {
|
|
1171
|
+
const r = this._tasks, s = r.get(t);
|
|
1172
|
+
this.fastdom.clear(s), r.delete(t);
|
|
1354
1173
|
}
|
|
1355
1174
|
};
|
|
1356
|
-
|
|
1357
|
-
const
|
|
1358
|
-
let s =
|
|
1175
|
+
it.extend(ar);
|
|
1176
|
+
const ir = (t, r) => {
|
|
1177
|
+
let s = r.length;
|
|
1359
1178
|
for (; s--; )
|
|
1360
|
-
|
|
1361
|
-
},
|
|
1362
|
-
const s =
|
|
1363
|
-
return !!~s && !!
|
|
1179
|
+
t.clear(r[s]), r.splice(s, 1);
|
|
1180
|
+
}, lr = (t, r) => {
|
|
1181
|
+
const s = t.indexOf(r);
|
|
1182
|
+
return !!~s && !!t.splice(s, 1);
|
|
1364
1183
|
};
|
|
1365
|
-
class
|
|
1366
|
-
constructor(
|
|
1367
|
-
this.fastdom =
|
|
1184
|
+
class ur {
|
|
1185
|
+
constructor(r) {
|
|
1186
|
+
this.fastdom = r, this.tasks = [];
|
|
1368
1187
|
}
|
|
1369
|
-
measure(
|
|
1370
|
-
const
|
|
1371
|
-
return
|
|
1188
|
+
measure(r, s) {
|
|
1189
|
+
const n = this.tasks, a = this.fastdom.measure(function() {
|
|
1190
|
+
return n.splice(n.indexOf(a)), r.call(s);
|
|
1372
1191
|
});
|
|
1373
|
-
return
|
|
1192
|
+
return n.push(a), a;
|
|
1374
1193
|
}
|
|
1375
|
-
mutate(
|
|
1376
|
-
const
|
|
1377
|
-
return
|
|
1194
|
+
mutate(r, s) {
|
|
1195
|
+
const n = this.tasks, a = this.fastdom.mutate(function() {
|
|
1196
|
+
return n.splice(n.indexOf(a)), r.call(s);
|
|
1378
1197
|
});
|
|
1379
|
-
return this.tasks.push(
|
|
1198
|
+
return this.tasks.push(a), a;
|
|
1380
1199
|
}
|
|
1381
|
-
clear(
|
|
1382
|
-
return arguments.length ||
|
|
1200
|
+
clear(r) {
|
|
1201
|
+
return arguments.length || ir(this.fastdom, this.tasks), lr(this.tasks, r), this.fastdom.clear(r);
|
|
1383
1202
|
}
|
|
1384
1203
|
}
|
|
1385
|
-
const
|
|
1204
|
+
const cr = {
|
|
1386
1205
|
sandbox() {
|
|
1387
|
-
return new
|
|
1206
|
+
return new ur(this.fastdom);
|
|
1388
1207
|
}
|
|
1389
1208
|
};
|
|
1390
|
-
|
|
1391
|
-
const
|
|
1209
|
+
it.extend(cr);
|
|
1210
|
+
const fr = [
|
|
1392
1211
|
"fullscreenElement",
|
|
1393
1212
|
"fullscreenEnabled",
|
|
1394
1213
|
"requestFullscreen",
|
|
1395
1214
|
"exitFullscreen",
|
|
1396
1215
|
"fullscreenchange",
|
|
1397
1216
|
"fullscreenerror"
|
|
1398
|
-
],
|
|
1217
|
+
], dr = [
|
|
1399
1218
|
"mozFullScreenElement",
|
|
1400
1219
|
"mozFullScreenEnabled",
|
|
1401
1220
|
"mozRequestFullScreen",
|
|
1402
1221
|
"mozCancelFullScreen",
|
|
1403
1222
|
"mozfullscreenchange",
|
|
1404
1223
|
"mozfullscreenerror"
|
|
1405
|
-
],
|
|
1224
|
+
], hr = [
|
|
1406
1225
|
"webkitFullscreenElement",
|
|
1407
1226
|
"webkitFullscreenEnabled",
|
|
1408
1227
|
"webkitRequestFullscreen",
|
|
1409
1228
|
"webkitExitFullscreen",
|
|
1410
1229
|
"webkitfullscreenchange",
|
|
1411
1230
|
"webkitfullscreenerror"
|
|
1412
|
-
],
|
|
1231
|
+
], pr = [
|
|
1413
1232
|
"msFullscreenElement",
|
|
1414
1233
|
"msFullscreenEnabled",
|
|
1415
1234
|
"msRequestFullscreen",
|
|
1416
1235
|
"msExitFullscreen",
|
|
1417
1236
|
"MSFullscreenChange",
|
|
1418
1237
|
"MSFullscreenError"
|
|
1419
|
-
],
|
|
1420
|
-
let
|
|
1421
|
-
const
|
|
1422
|
-
if (!
|
|
1423
|
-
for (let
|
|
1424
|
-
let s =
|
|
1425
|
-
if (s && s[1] in
|
|
1426
|
-
for (
|
|
1427
|
-
|
|
1238
|
+
], be = [fr, hr, dr, pr], B = typeof window < "u" && typeof window.document < "u" ? window.document : {};
|
|
1239
|
+
let S = null;
|
|
1240
|
+
const mr = () => {
|
|
1241
|
+
if (!O)
|
|
1242
|
+
for (let t = 0, r = be.length; t < r; t++) {
|
|
1243
|
+
let s = be[t];
|
|
1244
|
+
if (s && s[1] in B) {
|
|
1245
|
+
for (S = {}, t = 0; t < s.length; t++)
|
|
1246
|
+
S[be[0][t]] = s[t];
|
|
1428
1247
|
return;
|
|
1429
1248
|
}
|
|
1430
1249
|
}
|
|
1431
1250
|
};
|
|
1432
|
-
|
|
1433
|
-
const
|
|
1434
|
-
change:
|
|
1435
|
-
error:
|
|
1436
|
-
},
|
|
1437
|
-
request(
|
|
1438
|
-
return new Promise((s,
|
|
1439
|
-
const
|
|
1440
|
-
this.off("change",
|
|
1251
|
+
mr();
|
|
1252
|
+
const Ye = {
|
|
1253
|
+
change: S && S.fullscreenchange,
|
|
1254
|
+
error: S && S.fullscreenerror
|
|
1255
|
+
}, _e = {
|
|
1256
|
+
request(t, r) {
|
|
1257
|
+
return new Promise((s, n) => {
|
|
1258
|
+
const a = () => {
|
|
1259
|
+
this.off("change", a), s();
|
|
1441
1260
|
};
|
|
1442
|
-
if (this.on("change",
|
|
1443
|
-
const
|
|
1444
|
-
|
|
1261
|
+
if (this.on("change", a), t = t || (O ? null : B.documentElement), t && S && t[S.requestFullscreen]) {
|
|
1262
|
+
const e = t[S.requestFullscreen](r);
|
|
1263
|
+
e instanceof Promise && e.then(a).catch(n);
|
|
1445
1264
|
} else
|
|
1446
|
-
|
|
1265
|
+
n(new Error("Fullscreen API not supported or element is null."));
|
|
1447
1266
|
});
|
|
1448
1267
|
},
|
|
1449
1268
|
exit() {
|
|
1450
|
-
return new Promise((
|
|
1269
|
+
return new Promise((t, r) => {
|
|
1451
1270
|
if (!this.isFullscreen) {
|
|
1452
|
-
|
|
1271
|
+
t();
|
|
1453
1272
|
return;
|
|
1454
1273
|
}
|
|
1455
1274
|
const s = () => {
|
|
1456
|
-
this.off("change", s),
|
|
1275
|
+
this.off("change", s), t();
|
|
1457
1276
|
};
|
|
1458
|
-
if (this.on("change", s), !
|
|
1459
|
-
const
|
|
1460
|
-
|
|
1277
|
+
if (this.on("change", s), !O && S && B[S.exitFullscreen]) {
|
|
1278
|
+
const n = B[S.exitFullscreen]();
|
|
1279
|
+
n instanceof Promise && n.then(s).catch(r);
|
|
1461
1280
|
} else
|
|
1462
|
-
|
|
1281
|
+
r(new Error("Fullscreen API not supported."));
|
|
1463
1282
|
});
|
|
1464
1283
|
},
|
|
1465
|
-
toggle(
|
|
1466
|
-
return this.isFullscreen ? this.exit() : this.request(
|
|
1284
|
+
toggle(t, r) {
|
|
1285
|
+
return this.isFullscreen ? this.exit() : this.request(t, r);
|
|
1467
1286
|
},
|
|
1468
|
-
onchange(
|
|
1469
|
-
this.on("change",
|
|
1287
|
+
onchange(t) {
|
|
1288
|
+
this.on("change", t);
|
|
1470
1289
|
},
|
|
1471
|
-
onerror(
|
|
1472
|
-
this.on("error",
|
|
1290
|
+
onerror(t) {
|
|
1291
|
+
this.on("error", t);
|
|
1473
1292
|
},
|
|
1474
|
-
on(
|
|
1475
|
-
const s =
|
|
1476
|
-
s && !
|
|
1293
|
+
on(t, r) {
|
|
1294
|
+
const s = Ye[t];
|
|
1295
|
+
s && !O && Q(B, s, r);
|
|
1477
1296
|
},
|
|
1478
|
-
off(
|
|
1479
|
-
const s =
|
|
1480
|
-
s && !
|
|
1297
|
+
off(t, r) {
|
|
1298
|
+
const s = Ye[t];
|
|
1299
|
+
s && !O && ie(B, s, r);
|
|
1481
1300
|
},
|
|
1482
|
-
raw:
|
|
1301
|
+
raw: S || {}
|
|
1483
1302
|
};
|
|
1484
|
-
|
|
1303
|
+
O ? Object.defineProperties(_e, {
|
|
1485
1304
|
isFullscreen: {
|
|
1486
1305
|
get() {
|
|
1487
1306
|
return !1;
|
|
@@ -1499,256 +1318,233 @@ S ? Object.defineProperties(Ie, {
|
|
|
1499
1318
|
return !1;
|
|
1500
1319
|
}
|
|
1501
1320
|
}
|
|
1502
|
-
}) : Object.defineProperties(
|
|
1321
|
+
}) : Object.defineProperties(_e, {
|
|
1503
1322
|
isFullscreen: {
|
|
1504
1323
|
get() {
|
|
1505
|
-
return !!
|
|
1324
|
+
return !!B[S && S.fullscreenElement];
|
|
1506
1325
|
}
|
|
1507
1326
|
},
|
|
1508
1327
|
element: {
|
|
1509
1328
|
enumerable: !0,
|
|
1510
1329
|
get() {
|
|
1511
|
-
return
|
|
1330
|
+
return B[S && S.fullscreenElement];
|
|
1512
1331
|
}
|
|
1513
1332
|
},
|
|
1514
1333
|
isEnabled: {
|
|
1515
1334
|
enumerable: !0,
|
|
1516
1335
|
get() {
|
|
1517
|
-
return !!
|
|
1336
|
+
return !!B[S && S.fullscreenEnabled];
|
|
1518
1337
|
}
|
|
1519
1338
|
}
|
|
1520
1339
|
});
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
r = (/* @__PURE__ */ new Date()).valueOf(), s.apply(c, m);
|
|
1529
|
-
}
|
|
1530
|
-
function u() {
|
|
1531
|
-
n = void 0;
|
|
1532
|
-
}
|
|
1533
|
-
o && !n && i(), n && clearTimeout(n);
|
|
1534
|
-
const f = o === void 0;
|
|
1535
|
-
f && d > e ? i() : t !== !0 && (n = setTimeout(o ? u : i, f ? e - d : e));
|
|
1536
|
-
}
|
|
1537
|
-
function l() {
|
|
1538
|
-
n && (clearTimeout(n), n = null);
|
|
1539
|
-
}
|
|
1540
|
-
return a._cancel = l, a;
|
|
1541
|
-
}
|
|
1542
|
-
function Ps(e, t, s) {
|
|
1543
|
-
return ls(e, t, !1);
|
|
1544
|
-
}
|
|
1545
|
-
let $ = null;
|
|
1546
|
-
const fs = "ws://localhost", at = [27197, 27198, 27199];
|
|
1547
|
-
let Ae = 0, Q, zt = 1e3, Pt = 3e4, cs = 0, We = {}, Lt;
|
|
1548
|
-
const us = 20 * 1e3;
|
|
1549
|
-
let lt = null, Bt = null, je = {}, Rt = {}, C = {}, Dt = () => {
|
|
1550
|
-
}, Ht = () => {
|
|
1340
|
+
_e.isEnabled;
|
|
1341
|
+
let Y = null;
|
|
1342
|
+
const gr = "ws://localhost", Xe = [27197, 27198, 27199];
|
|
1343
|
+
let ye = 0, X, lt = 1e3, ut = 3e4, br = 0, Te = {}, ct;
|
|
1344
|
+
const yr = 20 * 1e3;
|
|
1345
|
+
let Ze = null, ft = null, Ee = {}, dt = {}, I = {}, ht = () => {
|
|
1346
|
+
}, pt = () => {
|
|
1551
1347
|
};
|
|
1552
|
-
const
|
|
1553
|
-
clearTimeout(
|
|
1554
|
-
},
|
|
1555
|
-
|
|
1556
|
-
|
|
1348
|
+
const mt = function(t) {
|
|
1349
|
+
clearTimeout(Ee[t]), delete Te[t], delete Ee[t];
|
|
1350
|
+
}, vr = function() {
|
|
1351
|
+
ft = setTimeout(() => {
|
|
1352
|
+
Y.close();
|
|
1557
1353
|
}, 5e3);
|
|
1558
|
-
},
|
|
1559
|
-
let s =
|
|
1560
|
-
if (s = String(s),
|
|
1561
|
-
|
|
1354
|
+
}, V = function(t, r) {
|
|
1355
|
+
let s = br++;
|
|
1356
|
+
if (s = String(s), t.cid = s, !X) {
|
|
1357
|
+
r && setTimeout(r, 0, { ok: !1, message: "eSpace is not logged in." });
|
|
1562
1358
|
return;
|
|
1563
1359
|
}
|
|
1564
|
-
typeof
|
|
1565
|
-
|
|
1566
|
-
},
|
|
1567
|
-
},
|
|
1568
|
-
|
|
1569
|
-
|
|
1360
|
+
typeof r == "function" && (Te[s] = r, Ee[s] = setTimeout(() => {
|
|
1361
|
+
r({ ok: !1, message: "time out" }), mt(s);
|
|
1362
|
+
}, ut)), Y.send(JSON.stringify(t));
|
|
1363
|
+
}, gt = function() {
|
|
1364
|
+
Ze = setTimeout(() => {
|
|
1365
|
+
X ? V(
|
|
1570
1366
|
{
|
|
1571
1367
|
type: "heartbeat"
|
|
1572
1368
|
},
|
|
1573
1369
|
() => {
|
|
1574
|
-
|
|
1370
|
+
gt();
|
|
1575
1371
|
}
|
|
1576
|
-
) : clearTimeout(
|
|
1577
|
-
},
|
|
1578
|
-
},
|
|
1579
|
-
|
|
1580
|
-
},
|
|
1581
|
-
let
|
|
1582
|
-
if (typeof
|
|
1372
|
+
) : clearTimeout(Ze);
|
|
1373
|
+
}, yr);
|
|
1374
|
+
}, wr = function(t) {
|
|
1375
|
+
X = !0, gt(), clearTimeout(ct), clearTimeout(ft), pt(t);
|
|
1376
|
+
}, kr = function(t) {
|
|
1377
|
+
let r = t.data;
|
|
1378
|
+
if (typeof r == "string" && (r = r.replace(/^\d+/, ""), !!r)) {
|
|
1583
1379
|
try {
|
|
1584
|
-
|
|
1380
|
+
r = JSON.parse(r);
|
|
1585
1381
|
} catch (s) {
|
|
1586
1382
|
return !s;
|
|
1587
1383
|
}
|
|
1588
|
-
if (
|
|
1589
|
-
let s =
|
|
1384
|
+
if (X) {
|
|
1385
|
+
let s = dt[r.type];
|
|
1590
1386
|
if (s)
|
|
1591
|
-
return s(
|
|
1592
|
-
let
|
|
1593
|
-
|
|
1387
|
+
return s(r.data);
|
|
1388
|
+
let n = r.cid, a = Te[n];
|
|
1389
|
+
a && (r.ok ? a(null, r.data) : a({ ok: r.ok }), mt(n));
|
|
1594
1390
|
} else
|
|
1595
|
-
|
|
1596
|
-
}
|
|
1597
|
-
},
|
|
1598
|
-
|
|
1599
|
-
},
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
},
|
|
1603
|
-
},
|
|
1604
|
-
(
|
|
1391
|
+
r.type === "eSpace-ctrl-connection-success" ? wr(r.data) : Y.close();
|
|
1392
|
+
}
|
|
1393
|
+
}, xr = function() {
|
|
1394
|
+
Y.onopen = vr, Y.onclose = _r, Y.onmessage = kr;
|
|
1395
|
+
}, bt = function(t) {
|
|
1396
|
+
ct = setTimeout(() => {
|
|
1397
|
+
ye >= Xe.length && (ye = 0), Y = new WebSocket(gr + ":" + Xe[ye++]), xr();
|
|
1398
|
+
}, t || 0);
|
|
1399
|
+
}, _r = function() {
|
|
1400
|
+
(X || typeof X > "u") && (X = !1, ht()), bt(lt);
|
|
1605
1401
|
};
|
|
1606
|
-
|
|
1607
|
-
|
|
1402
|
+
I.init = function(t) {
|
|
1403
|
+
t && (ut = t.timeout || 3e4, lt = t.pollingInterval || 0), bt();
|
|
1608
1404
|
};
|
|
1609
|
-
|
|
1610
|
-
|
|
1405
|
+
I.ready = function(t) {
|
|
1406
|
+
pt = t;
|
|
1611
1407
|
};
|
|
1612
|
-
|
|
1613
|
-
|
|
1408
|
+
I.error = function(t) {
|
|
1409
|
+
ht = t;
|
|
1614
1410
|
};
|
|
1615
|
-
const
|
|
1616
|
-
let
|
|
1617
|
-
for (let
|
|
1618
|
-
let
|
|
1619
|
-
|
|
1620
|
-
let
|
|
1621
|
-
|
|
1622
|
-
}
|
|
1623
|
-
return
|
|
1411
|
+
const $e = function(t, r, s) {
|
|
1412
|
+
let n = [];
|
|
1413
|
+
for (let a = 0; a < r; a++) {
|
|
1414
|
+
let e = t;
|
|
1415
|
+
a && (e += a);
|
|
1416
|
+
let c = s[e];
|
|
1417
|
+
c && n.push(c);
|
|
1418
|
+
}
|
|
1419
|
+
return n;
|
|
1624
1420
|
};
|
|
1625
|
-
|
|
1626
|
-
|
|
1421
|
+
I.on = function(t, r) {
|
|
1422
|
+
dt[t] = r;
|
|
1627
1423
|
};
|
|
1628
|
-
|
|
1629
|
-
|
|
1424
|
+
I.getUserInfo = function(t, r) {
|
|
1425
|
+
V(
|
|
1630
1426
|
{
|
|
1631
1427
|
type: "get-user-info",
|
|
1632
|
-
param:
|
|
1428
|
+
param: t
|
|
1633
1429
|
},
|
|
1634
|
-
function(s,
|
|
1430
|
+
function(s, n) {
|
|
1635
1431
|
if (s)
|
|
1636
|
-
return
|
|
1637
|
-
const
|
|
1432
|
+
return r(s);
|
|
1433
|
+
const a = function(e) {
|
|
1638
1434
|
return {
|
|
1639
|
-
account:
|
|
1640
|
-
name:
|
|
1641
|
-
mobile:
|
|
1642
|
-
office_phone:
|
|
1643
|
-
home_phone:
|
|
1644
|
-
ip_phone:
|
|
1645
|
-
other_phone:
|
|
1435
|
+
account: e.account,
|
|
1436
|
+
name: e.name,
|
|
1437
|
+
mobile: $e("mobile", 6, e),
|
|
1438
|
+
office_phone: $e("office_phone", 6, e),
|
|
1439
|
+
home_phone: e.home_phone,
|
|
1440
|
+
ip_phone: e.ip_phone,
|
|
1441
|
+
other_phone: e.other_phone
|
|
1646
1442
|
};
|
|
1647
1443
|
};
|
|
1648
|
-
if (
|
|
1649
|
-
|
|
1444
|
+
if (n.account)
|
|
1445
|
+
r(null, a(n));
|
|
1650
1446
|
else {
|
|
1651
|
-
let
|
|
1652
|
-
for (let
|
|
1653
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
1654
|
-
let
|
|
1655
|
-
|
|
1447
|
+
let e = {};
|
|
1448
|
+
for (let c in n)
|
|
1449
|
+
if (Object.prototype.hasOwnProperty.call(n, c)) {
|
|
1450
|
+
let u = n[c];
|
|
1451
|
+
e[c] = u && a(u);
|
|
1656
1452
|
}
|
|
1657
|
-
|
|
1453
|
+
r(null, e);
|
|
1658
1454
|
}
|
|
1659
1455
|
}
|
|
1660
1456
|
);
|
|
1661
1457
|
};
|
|
1662
|
-
|
|
1663
|
-
Array.isArray(
|
|
1664
|
-
}),
|
|
1458
|
+
I.subscribeUserStatus = function(t, r) {
|
|
1459
|
+
Array.isArray(t) && t.forEach((s) => {
|
|
1460
|
+
}), V(
|
|
1665
1461
|
{
|
|
1666
1462
|
type: "subscribe-user-status",
|
|
1667
|
-
param:
|
|
1463
|
+
param: t
|
|
1668
1464
|
},
|
|
1669
|
-
|
|
1465
|
+
r
|
|
1670
1466
|
);
|
|
1671
1467
|
};
|
|
1672
|
-
|
|
1673
|
-
|
|
1468
|
+
I.eSpaceCall = function(t, r, s) {
|
|
1469
|
+
V(
|
|
1674
1470
|
{
|
|
1675
1471
|
type: "espace-call",
|
|
1676
1472
|
param: {
|
|
1677
|
-
account:
|
|
1678
|
-
number:
|
|
1473
|
+
account: t,
|
|
1474
|
+
number: r
|
|
1679
1475
|
}
|
|
1680
1476
|
},
|
|
1681
1477
|
s
|
|
1682
1478
|
);
|
|
1683
1479
|
};
|
|
1684
|
-
|
|
1685
|
-
|
|
1480
|
+
I.eSpaceCallByAccount = function(t, r) {
|
|
1481
|
+
V(
|
|
1686
1482
|
{
|
|
1687
1483
|
type: "espace-call",
|
|
1688
1484
|
param: {
|
|
1689
|
-
account:
|
|
1485
|
+
account: t
|
|
1690
1486
|
}
|
|
1691
1487
|
},
|
|
1692
|
-
|
|
1488
|
+
r
|
|
1693
1489
|
);
|
|
1694
1490
|
};
|
|
1695
|
-
|
|
1696
|
-
|
|
1491
|
+
I.eSpaceCallByNumber = function(t, r) {
|
|
1492
|
+
V(
|
|
1697
1493
|
{
|
|
1698
1494
|
type: "espace-call",
|
|
1699
1495
|
param: {
|
|
1700
|
-
number:
|
|
1496
|
+
number: t
|
|
1701
1497
|
}
|
|
1702
1498
|
},
|
|
1703
|
-
|
|
1499
|
+
r
|
|
1704
1500
|
);
|
|
1705
1501
|
};
|
|
1706
|
-
|
|
1707
|
-
|
|
1502
|
+
I.showImDialog = function(t, r) {
|
|
1503
|
+
V(
|
|
1708
1504
|
{
|
|
1709
1505
|
type: "show-espace-im-dialog",
|
|
1710
|
-
param:
|
|
1506
|
+
param: t
|
|
1711
1507
|
},
|
|
1712
|
-
|
|
1508
|
+
r
|
|
1713
1509
|
);
|
|
1714
1510
|
};
|
|
1715
|
-
|
|
1716
|
-
|
|
1511
|
+
I.showGroupDialog = function(t, r) {
|
|
1512
|
+
V(
|
|
1717
1513
|
{
|
|
1718
1514
|
type: "show-espace-im-group-dialog",
|
|
1719
|
-
param:
|
|
1515
|
+
param: t
|
|
1720
1516
|
},
|
|
1721
|
-
|
|
1517
|
+
r
|
|
1722
1518
|
);
|
|
1723
1519
|
};
|
|
1724
|
-
|
|
1725
|
-
|
|
1520
|
+
I.addContactList = function(t, r) {
|
|
1521
|
+
V(
|
|
1726
1522
|
{
|
|
1727
1523
|
type: "add-contact-list",
|
|
1728
|
-
param:
|
|
1524
|
+
param: t
|
|
1729
1525
|
},
|
|
1730
|
-
|
|
1526
|
+
r
|
|
1731
1527
|
);
|
|
1732
1528
|
};
|
|
1733
|
-
if (
|
|
1734
|
-
const
|
|
1529
|
+
if (O || !window.WebSocket) {
|
|
1530
|
+
const t = function() {
|
|
1735
1531
|
};
|
|
1736
|
-
for (let
|
|
1737
|
-
Object.prototype.hasOwnProperty.call(
|
|
1532
|
+
for (let r in I)
|
|
1533
|
+
Object.prototype.hasOwnProperty.call(I, r) && typeof I[r] == "function" && (I[r] = t);
|
|
1738
1534
|
}
|
|
1739
|
-
const
|
|
1535
|
+
const ae = {}, te = {
|
|
1740
1536
|
leave: "v-modal-leave",
|
|
1741
1537
|
enter: "v-modal-enter",
|
|
1742
1538
|
modal: "v-modal"
|
|
1743
|
-
},
|
|
1744
|
-
for (let s =
|
|
1745
|
-
if (
|
|
1746
|
-
|
|
1539
|
+
}, Er = (t, r) => {
|
|
1540
|
+
for (let s = t.length - 1; s >= 0; s--)
|
|
1541
|
+
if (t[s].id === r) {
|
|
1542
|
+
t.splice(s, 1);
|
|
1747
1543
|
break;
|
|
1748
1544
|
}
|
|
1749
1545
|
};
|
|
1750
|
-
let
|
|
1751
|
-
const
|
|
1546
|
+
let Se;
|
|
1547
|
+
const M = {
|
|
1752
1548
|
step: 2,
|
|
1753
1549
|
zIndex: 2e3,
|
|
1754
1550
|
globalScroll: !1,
|
|
@@ -1763,440 +1559,107 @@ const T = {
|
|
|
1763
1559
|
oldBodyBorder: "",
|
|
1764
1560
|
viewportWindow: null,
|
|
1765
1561
|
fixBodyBorder() {
|
|
1766
|
-
const
|
|
1767
|
-
|
|
1562
|
+
const t = window.innerWidth - document.documentElement.clientWidth;
|
|
1563
|
+
t && (this.oldBodyBorder = document.documentElement.style.borderRight, document.body.style.borderRight = `${t}px solid transparent`);
|
|
1768
1564
|
},
|
|
1769
1565
|
resetBodyBorder() {
|
|
1770
1566
|
document.body.style.borderRight = this.oldBodyBorder, this.oldBodyBorder = "";
|
|
1771
1567
|
},
|
|
1772
1568
|
/** 全局反注册 */
|
|
1773
|
-
deregister: (
|
|
1774
|
-
|
|
1569
|
+
deregister: (t) => {
|
|
1570
|
+
t && (ae[t] = null, delete ae[t]);
|
|
1775
1571
|
},
|
|
1776
1572
|
/** 返回全局实例 */
|
|
1777
|
-
getInstance: (
|
|
1573
|
+
getInstance: (t) => ae[t],
|
|
1778
1574
|
/** 全局注册 仅vue-popup.ts中使用,instance就是vm, 把vm注册到 vm._popupId 这个键值上 */
|
|
1779
|
-
register: (
|
|
1780
|
-
|
|
1575
|
+
register: (t, r) => {
|
|
1576
|
+
t && r && (ae[t] = r);
|
|
1781
1577
|
},
|
|
1782
1578
|
nextZIndex: () => {
|
|
1783
|
-
const
|
|
1784
|
-
return
|
|
1579
|
+
const t = M.zIndex;
|
|
1580
|
+
return M.zIndex += M.step, t;
|
|
1785
1581
|
},
|
|
1786
1582
|
/** 打开遮罩层, 仅vue-popup.ts中使用。 dom = vm.$el 或者 undefined (appendtoBody时) */
|
|
1787
|
-
openModal(
|
|
1788
|
-
if (
|
|
1583
|
+
openModal(t, r, s, n, a) {
|
|
1584
|
+
if (O || !t || r === void 0)
|
|
1789
1585
|
return;
|
|
1790
|
-
this.modalFade =
|
|
1791
|
-
for (let
|
|
1792
|
-
if (this.modalStack[
|
|
1586
|
+
this.modalFade = a;
|
|
1587
|
+
for (let u = 0, g = this.modalStack.length; u < g; u++)
|
|
1588
|
+
if (this.modalStack[u].id === t)
|
|
1793
1589
|
return;
|
|
1794
|
-
const
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
}, 200),
|
|
1798
|
-
let
|
|
1799
|
-
s && s.parentNode && s.parentNode.nodeType !== 11 ?
|
|
1590
|
+
const e = Se();
|
|
1591
|
+
ne(e, te.modal), this.modalFade && !M.hasModal && ne(e, te.enter), n && n.trim().split(/\s+/).forEach((u) => ne(e, u)), setTimeout(() => {
|
|
1592
|
+
oe(e, te.enter);
|
|
1593
|
+
}, 200), r && (e.style.zIndex = r.toString()), e.style.display = "", e.tabIndex = 0;
|
|
1594
|
+
let c;
|
|
1595
|
+
s && s.parentNode && s.parentNode.nodeType !== 11 ? c = s.parentNode : c = document.body, c.appendChild(e), this.modalStack.push({ id: t, zIndex: r, modalClass: n });
|
|
1800
1596
|
},
|
|
1801
1597
|
/** 点击背景遮罩层时,调用栈顶的popup,调用它的close() */
|
|
1802
1598
|
doOnModalClick: () => {
|
|
1803
|
-
const
|
|
1804
|
-
if (!
|
|
1599
|
+
const t = M.modalStack, r = t[t.length - 1];
|
|
1600
|
+
if (!r)
|
|
1805
1601
|
return;
|
|
1806
|
-
const s =
|
|
1602
|
+
const s = M.getInstance(r.id);
|
|
1807
1603
|
s && s.closeOnClickModal && typeof s.close == "function" && s.close();
|
|
1808
1604
|
},
|
|
1809
|
-
closeModal(
|
|
1810
|
-
const
|
|
1811
|
-
if (
|
|
1812
|
-
const
|
|
1813
|
-
if (
|
|
1814
|
-
|
|
1815
|
-
const
|
|
1816
|
-
|
|
1605
|
+
closeModal(t) {
|
|
1606
|
+
const r = this.modalStack, s = Se();
|
|
1607
|
+
if (r.length > 0) {
|
|
1608
|
+
const n = r[r.length - 1];
|
|
1609
|
+
if (n.id === t) {
|
|
1610
|
+
n.modalClass && n.modalClass.trim().split(/\s+/).forEach((e) => oe(s, e)), r.pop();
|
|
1611
|
+
const a = r.length;
|
|
1612
|
+
a > 0 && (s.style.zIndex = r[a - 1].zIndex.toString());
|
|
1817
1613
|
} else
|
|
1818
|
-
|
|
1614
|
+
Er(r, t);
|
|
1819
1615
|
}
|
|
1820
|
-
|
|
1821
|
-
|
|
1616
|
+
r.length === 0 && (this.modalFade && ne(s, te.leave), oe(document.body, this.popLockClass), this.resetBodyBorder(), setTimeout(() => {
|
|
1617
|
+
r.length === 0 && (s.parentNode && s.parentNode.removeChild(s), s.style.display = "none", M.modalDom = null), oe(s, te.leave);
|
|
1822
1618
|
}, 200));
|
|
1823
1619
|
}
|
|
1824
1620
|
};
|
|
1825
|
-
|
|
1826
|
-
if (
|
|
1621
|
+
Se = () => {
|
|
1622
|
+
if (O)
|
|
1827
1623
|
return null;
|
|
1828
|
-
let
|
|
1829
|
-
return
|
|
1624
|
+
let t = M.modalDom;
|
|
1625
|
+
return t ? M.hasModal = !0 : (M.hasModal = !1, t = document.createElement("div"), M.modalDom = t, t.addEventListener(
|
|
1830
1626
|
"touchmove",
|
|
1831
|
-
(
|
|
1832
|
-
|
|
1627
|
+
(r) => {
|
|
1628
|
+
r.preventDefault(), r.stopPropagation();
|
|
1833
1629
|
},
|
|
1834
1630
|
{ passive: !0 }
|
|
1835
|
-
),
|
|
1836
|
-
|
|
1837
|
-
})),
|
|
1631
|
+
), Q(t, "click", () => {
|
|
1632
|
+
M.doOnModalClick();
|
|
1633
|
+
})), t;
|
|
1838
1634
|
};
|
|
1839
|
-
|
|
1840
|
-
if (
|
|
1841
|
-
const
|
|
1842
|
-
if (
|
|
1843
|
-
const s =
|
|
1635
|
+
O || Q(window, "keydown", (t) => {
|
|
1636
|
+
if (t.keyCode === Qt.Escape) {
|
|
1637
|
+
const r = M.modalStack;
|
|
1638
|
+
if (r.length > 0) {
|
|
1639
|
+
const s = r[r.length - 1];
|
|
1844
1640
|
if (!s)
|
|
1845
1641
|
return;
|
|
1846
|
-
const
|
|
1847
|
-
|
|
1642
|
+
const n = M.getInstance(s.id);
|
|
1643
|
+
n && n.closeOnPressEscape && (n.handleClose ? n.handleClose("esc") : n.handleAction ? n.handleAction("cancel") : n.close());
|
|
1848
1644
|
}
|
|
1849
1645
|
}
|
|
1850
1646
|
});
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
boundariesElement: "viewport",
|
|
1855
|
-
boundariesPadding: 5,
|
|
1856
|
-
flipBehavior: "flip",
|
|
1857
|
-
// 全局没有修改过它,所以它一直是flip
|
|
1858
|
-
forceAbsolute: !1,
|
|
1859
|
-
gpuAcceleration: !0,
|
|
1860
|
-
offset: 0,
|
|
1861
|
-
placement: "bottom",
|
|
1862
|
-
preventOverflowOrder: ys,
|
|
1863
|
-
modifiers: Ut,
|
|
1864
|
-
// 此处是string数组, 构造函数调用之后转为函数数组
|
|
1865
|
-
updateHiddenPopperOnScroll: !1
|
|
1866
|
-
// 滚动过程中是否更新隐藏的弹出层位置
|
|
1867
|
-
}, de = (e, t) => {
|
|
1868
|
-
const s = (o) => o !== "" && !isNaN(parseFloat(o)) && isFinite(o);
|
|
1869
|
-
Object.keys(t).forEach((o) => {
|
|
1870
|
-
let n = "";
|
|
1871
|
-
~["width", "height", "top", "right", "bottom", "left"].indexOf(o) && s(t[o]) && (n = "px"), e.style[o] = t[o] + n;
|
|
1872
|
-
});
|
|
1873
|
-
}, Te = (e) => {
|
|
1874
|
-
let t = e.offsetParent;
|
|
1875
|
-
return t === window.document.body || !t ? window.document.documentElement : t;
|
|
1876
|
-
}, ae = (e, t) => !e || e.nodeType !== 1 ? void 0 : window.getComputedStyle(e, null)[t], qt = (e) => e === window.document.body ? !1 : ae(e, "position") === "fixed" ? !0 : (e.host && (e = e.host), e.parentNode ? qt(e.parentNode) : !1), Pe = (e) => {
|
|
1877
|
-
let t = e.getBoundingClientRect();
|
|
1878
|
-
return {
|
|
1879
|
-
left: t.left,
|
|
1880
|
-
top: t.top,
|
|
1881
|
-
right: t.right,
|
|
1882
|
-
bottom: t.bottom,
|
|
1883
|
-
width: t.right - t.left,
|
|
1884
|
-
height: t.bottom - t.top
|
|
1885
|
-
};
|
|
1886
|
-
}, Gt = (e) => {
|
|
1887
|
-
const t = ["scroll", "auto"];
|
|
1888
|
-
return t.includes(ae(e, "overflow")) || t.includes(ae(e, "overflow-x")) || t.includes(ae(e, "overflow-y"));
|
|
1889
|
-
}, vs = (e) => {
|
|
1890
|
-
const t = document.createElement("div");
|
|
1891
|
-
de(t, {
|
|
1892
|
-
opacity: 0,
|
|
1893
|
-
position: "fixed",
|
|
1894
|
-
width: 1,
|
|
1895
|
-
height: 1,
|
|
1896
|
-
top: 0,
|
|
1897
|
-
left: 0,
|
|
1898
|
-
"z-index": "-99"
|
|
1899
|
-
}), e.appendChild(t);
|
|
1900
|
-
const s = Pe(t);
|
|
1901
|
-
return e.removeChild(t), s;
|
|
1902
|
-
}, he = (e) => {
|
|
1903
|
-
let t = e.parentNode;
|
|
1904
|
-
return t ? t === window.document ? window.document.body.scrollTop || window.document.body.scrollLeft ? window.document.body : window.document.documentElement : Gt(t) ? t : he(t) : e;
|
|
1905
|
-
}, _s = (e, t, s, o) => {
|
|
1906
|
-
let { top: n, left: r, width: a, height: l } = Pe(e);
|
|
1907
|
-
if (s) {
|
|
1908
|
-
if (o.parentElement) {
|
|
1909
|
-
const { top: d, left: m } = vs(o.parentElement);
|
|
1910
|
-
n -= d, r -= m;
|
|
1911
|
-
}
|
|
1912
|
-
return {
|
|
1913
|
-
top: n,
|
|
1914
|
-
left: r,
|
|
1915
|
-
bottom: n + l,
|
|
1916
|
-
right: r + a,
|
|
1917
|
-
width: a,
|
|
1918
|
-
height: l
|
|
1919
|
-
};
|
|
1920
|
-
}
|
|
1921
|
-
let c = Pe(t);
|
|
1922
|
-
return {
|
|
1923
|
-
top: n - c.top,
|
|
1924
|
-
left: r - c.left,
|
|
1925
|
-
bottom: n - c.top + l,
|
|
1926
|
-
right: r - c.left + a,
|
|
1927
|
-
width: a,
|
|
1928
|
-
height: l
|
|
1929
|
-
};
|
|
1930
|
-
}, xs = (e) => e === document.body ? Math.max(document.documentElement.scrollTop, document.body.scrollTop) : e.scrollTop, Os = (e) => e === document.body ? Math.max(document.documentElement.scrollLeft, document.body.scrollLeft) : e.scrollLeft, ks = (e, t) => {
|
|
1931
|
-
const s = Math.max(e.scrollHeight, e.offsetHeight, t.clientHeight, t.scrollHeight, t.offsetHeight);
|
|
1932
|
-
return { width: Math.max(e.scrollWidth, e.offsetWidth, t.clientWidth, t.scrollWidth, t.offsetWidth), height: s };
|
|
1933
|
-
}, Fe = (e) => {
|
|
1934
|
-
let t = e.style.display, s = e.style.visibility;
|
|
1935
|
-
e.style.display = "block", e.style.visibility = "hidden";
|
|
1936
|
-
let o = window.getComputedStyle(e), n = parseFloat(o.marginTop) + parseFloat(o.marginBottom), r = parseFloat(o.marginLeft) + parseFloat(o.marginRight), a = { width: e.offsetWidth + r, height: e.offsetHeight + n };
|
|
1937
|
-
return e.style.display = t, e.style.visibility = s, a;
|
|
1938
|
-
}, ct = (e) => {
|
|
1939
|
-
let t = { left: "right", right: "left", bottom: "top", top: "bottom" };
|
|
1940
|
-
return e.replace(/left|right|bottom|top/g, (s) => t[s]);
|
|
1941
|
-
}, ie = (e) => {
|
|
1942
|
-
let t = { ...e };
|
|
1943
|
-
return t.right = t.left + t.width, t.bottom = t.top + t.height, t;
|
|
1944
|
-
}, Xt = (e, t = []) => {
|
|
1945
|
-
const s = e.parentNode;
|
|
1946
|
-
return s ? (Gt(s) && t.push(s), ae(s, "position") === "fixed" ? t : Xt(s, t)) : t;
|
|
1947
|
-
}, ut = (e) => {
|
|
1948
|
-
const t = {
|
|
1949
|
-
width: e.offsetWidth,
|
|
1950
|
-
height: e.offsetHeight,
|
|
1951
|
-
left: e.offsetLeft,
|
|
1952
|
-
top: e.offsetTop,
|
|
1953
|
-
right: 0,
|
|
1954
|
-
bottom: 0
|
|
1955
|
-
};
|
|
1956
|
-
return t.right = t.left + t.width, t.bottom = t.top + t.height, t;
|
|
1957
|
-
}, pt = (e) => {
|
|
1958
|
-
e.stopPropagation();
|
|
1959
|
-
}, dt = !S && typeof ResizeObserver == "function" ? new ResizeObserver((e) => {
|
|
1960
|
-
e.forEach((t) => {
|
|
1961
|
-
t.target.popperVm && t.contentRect.height > 50 && t.target.popperVm.update();
|
|
1647
|
+
!O && typeof ResizeObserver == "function" && new ResizeObserver((t) => {
|
|
1648
|
+
t.forEach((r) => {
|
|
1649
|
+
r.target.popperVm && r.contentRect.height > 50 && r.target.popperVm.update();
|
|
1962
1650
|
});
|
|
1963
|
-
})
|
|
1964
|
-
class Ls {
|
|
1965
|
-
constructor(t, s, o) {
|
|
1966
|
-
J(this, "_reference"), J(this, "_popper"), J(this, "state"), J(this, "_options"), J(this, "modifiers", {}), J(this, "popperOuterSize", null), this._reference = t, this._popper = s, this.state = {}, this._options = { ...ws, ...o }, this._options.modifierFns = Ut.map((n) => this[n]), S || (this._popper.setAttribute("x-placement", this._options.placement), this.state.position = this._getPopperPositionByRefernce(this._reference), de(this._popper, { position: this.state.position, top: 0 }), this._popper && (this._popper.popperVm = this, dt && dt.observe(this._popper)), this.update(), this._setupEventListeners());
|
|
1967
|
-
}
|
|
1968
|
-
destroy() {
|
|
1969
|
-
return this._popper.removeAttribute("x-placement"), this._popper.style.display = "none", this._removeEventListeners(), this._options.removeOnDestroy && this._popper.remove(), this;
|
|
1970
|
-
}
|
|
1971
|
-
onUpdate(t) {
|
|
1972
|
-
return this.state.updateCallback = t, this;
|
|
1973
|
-
}
|
|
1974
|
-
update() {
|
|
1975
|
-
let t = { instance: this, styles: {} };
|
|
1976
|
-
this.stopEventBubble(), this.popperOuterSize = null, t.placement = t._originalPlacement = this._options.placement, t.offsets = this._getRefPopOffsets(this._popper, this._reference, t.placement), t.boundaries = this._getBoundaries(t, this._options.boundariesPadding, this._options.boundariesElement), t = this.runModifiers(t, this._options.modifierFns), typeof this.state.updateCallback == "function" && this.state.updateCallback(t);
|
|
1977
|
-
}
|
|
1978
|
-
// 阻止popper的mousewheel等事件冒泡。 通过 onxxx 绑定,是为了避免重复绑定事件
|
|
1979
|
-
stopEventBubble() {
|
|
1980
|
-
this._popper && (this._popper.onmousewheel || (this._popper.onmousewheel = pt), this._popper.onwheel || (this._popper.onwheel = pt));
|
|
1981
|
-
}
|
|
1982
|
-
/** 按顺序执行Modifiers, 如果传入终点modifier,则执行到指定位置 */
|
|
1983
|
-
runModifiers(t, s, o) {
|
|
1984
|
-
let n = s.slice();
|
|
1985
|
-
const r = this._options;
|
|
1986
|
-
return o !== void 0 && (n = this._options.modifierFns.slice(
|
|
1987
|
-
0,
|
|
1988
|
-
r.modifierFns.findIndex((a) => a === o)
|
|
1989
|
-
)), n.forEach((a) => {
|
|
1990
|
-
ge(a) === "function" && (t = a.call(this, t));
|
|
1991
|
-
}), t;
|
|
1992
|
-
}
|
|
1993
|
-
// 此时才把offsets.popper 赋值给popper dom, offsets.array赋值给array dom
|
|
1994
|
-
applyStyle(t) {
|
|
1995
|
-
let s = { position: t.offsets.popper.position }, o = Math.round(t.offsets.popper.left), n = Math.round(t.offsets.popper.top);
|
|
1996
|
-
return this._options.gpuAcceleration ? (s.transform = `translate3d(${o}px, ${n}px, 0)`, Object.assign(s, { top: 0, left: 0 })) : Object.assign(s, { top: n, left: o }), Object.assign(s, t.styles), de(this._popper, s), this._popper.setAttribute("x-placement", t.placement), t.offsets.arrow && de(t.arrowElement, t.offsets.arrow), t;
|
|
1997
|
-
}
|
|
1998
|
-
// 判断 placement是不是2段式的,是则处理一下偏移。 修改data.offsets.popper的值
|
|
1999
|
-
shift(t) {
|
|
2000
|
-
let s = t.placement, o = s.split("-")[0], n = s.split("-")[1];
|
|
2001
|
-
if (n) {
|
|
2002
|
-
let { top: r, left: a, height: l, width: c } = t.offsets.reference, d = ie(t.offsets.popper), m = {
|
|
2003
|
-
y: {
|
|
2004
|
-
start: { top: r },
|
|
2005
|
-
end: { top: r + l - d.height }
|
|
2006
|
-
},
|
|
2007
|
-
x: {
|
|
2008
|
-
start: { left: a },
|
|
2009
|
-
end: { left: a + c - d.width }
|
|
2010
|
-
}
|
|
2011
|
-
}, i = ~["bottom", "top"].indexOf(o) ? "x" : "y";
|
|
2012
|
-
t.offsets.popper = Object.assign(d, m[i][n]);
|
|
2013
|
-
}
|
|
2014
|
-
return t;
|
|
2015
|
-
}
|
|
2016
|
-
// 校正popper的位置在boundaries 的内部
|
|
2017
|
-
preventOverflow(t) {
|
|
2018
|
-
if (this._options.ignoreBoundaries)
|
|
2019
|
-
return t;
|
|
2020
|
-
let s = this._options.preventOverflowOrder, o = ie(t.offsets.popper), n = {
|
|
2021
|
-
top: () => {
|
|
2022
|
-
let { top: r } = o;
|
|
2023
|
-
return r < t.boundaries.top && (r = Math.max(r, t.boundaries.top)), { top: r };
|
|
2024
|
-
},
|
|
2025
|
-
right: () => {
|
|
2026
|
-
let { left: r } = o;
|
|
2027
|
-
return o.right > t.boundaries.right && (r = Math.min(r, t.boundaries.right - o.width)), { left: r };
|
|
2028
|
-
},
|
|
2029
|
-
bottom: () => {
|
|
2030
|
-
let { top: r } = o;
|
|
2031
|
-
return o.bottom > t.boundaries.bottom && (r = Math.min(r, t.boundaries.bottom - o.height)), { top: r };
|
|
2032
|
-
},
|
|
2033
|
-
left: () => {
|
|
2034
|
-
let { left: r } = o;
|
|
2035
|
-
return o.left < t.boundaries.left && (r = Math.max(r, t.boundaries.left)), { left: r };
|
|
2036
|
-
}
|
|
2037
|
-
};
|
|
2038
|
-
return s.forEach((r) => {
|
|
2039
|
-
t.offsets.popper = Object.assign(o, n[r]());
|
|
2040
|
-
}), t;
|
|
2041
|
-
}
|
|
2042
|
-
// 校正popper的位置在reference的边上。 如果2个分离了,重新调整popper的位置。 可能是担心 modifiers.offset 带来的副作用吧
|
|
2043
|
-
keepTogether(t) {
|
|
2044
|
-
let s = ie(t.offsets.popper), o = t.offsets.reference;
|
|
2045
|
-
return s.right < Math.floor(o.left) && (t.offsets.popper.left = Math.floor(o.left) - s.width), s.left > Math.floor(o.right) && (t.offsets.popper.left = Math.floor(o.right)), s.bottom < Math.floor(o.top) && (t.offsets.popper.top = Math.floor(o.top) - s.height), s.top > Math.floor(o.bottom) && (t.offsets.popper.top = Math.floor(o.bottom)), t;
|
|
2046
|
-
}
|
|
2047
|
-
// 根据flip的策略,计算当前应该显示的位置。 空间不够要计算出flip的位置。 可能是担心preventOverflow 时,造成pop, reference会重叠。 重叠了就要flip一下
|
|
2048
|
-
flip(t) {
|
|
2049
|
-
if (t.flipped && t.placement === t._originalPlacement)
|
|
2050
|
-
return t;
|
|
2051
|
-
const s = t.placement.split("-");
|
|
2052
|
-
let o = s[0], n = ct(o), r = s[1] || "", a = [o, n];
|
|
2053
|
-
return a.forEach((l, c) => {
|
|
2054
|
-
if (o !== l || a.length === c + 1)
|
|
2055
|
-
return;
|
|
2056
|
-
o = t.placement.split("-")[0], n = ct(o);
|
|
2057
|
-
let d = ie(t.offsets.popper), m = ~["right", "bottom"].indexOf(o), i = Math.floor(t.offsets.reference[o]), u = Math.floor(d[n]);
|
|
2058
|
-
(m && i > u || !m && i < u) && (t.flipped = !0, t.placement = a[c + 1], r && (t.placement += `-${r}`), t.offsets.popper = this._getRefPopOffsets(this._popper, this._reference, t.placement).popper, t = this.runModifiers(t, this._options.modifierFns, this.flip));
|
|
2059
|
-
}), t;
|
|
2060
|
-
}
|
|
2061
|
-
// 根据入参option上的offset, 给data.offset.popper进行校正
|
|
2062
|
-
offset(t) {
|
|
2063
|
-
let s = this._options.offset, o = t.offsets.popper;
|
|
2064
|
-
return ~t.placement.indexOf("left") ? o.top -= s : ~t.placement.indexOf("right") ? o.top += s : ~t.placement.indexOf("top") ? o.left -= s : ~t.placement.indexOf("bottom") && (o.left += s), t;
|
|
2065
|
-
}
|
|
2066
|
-
// 计算arrow的位置,保存在data.offsets.arrow ={top,left}
|
|
2067
|
-
arrow(t) {
|
|
2068
|
-
let s = this._options.arrowElement, o = this._options.arrowOffset;
|
|
2069
|
-
if (typeof s == "string" && (s = this._popper.querySelector(s)), !s || !this._popper.contains(s))
|
|
2070
|
-
return t;
|
|
2071
|
-
let n = {}, r = t.placement.split("-")[0], a = ie(t.offsets.popper), l = t.offsets.reference, c = ~["left", "right"].indexOf(r), d = c ? "height" : "width", m = c ? "bottom" : "right", i = c ? "left" : "top", u = c ? "top" : "left", f = this.popperOuterSize ? this.popperOuterSize : this.popperOuterSize = Fe(this._popper), _ = Fe(s), w = _[d];
|
|
2072
|
-
l[m] - w < a[u] && (t.offsets.popper[u] -= a[u] - (l[m] - w)), l[u] + w > a[m] && (t.offsets.popper[u] += l[u] + w - a[m]);
|
|
2073
|
-
let g = l[u] + (o || l[d] / 2 - w / 2) - a[u];
|
|
2074
|
-
g = Math.max(Math.min(a[d] - w - 8, g), 8), n[u] = g, n[i] = "";
|
|
2075
|
-
const F = this._options.placement.split("-");
|
|
2076
|
-
return this._options.adjustArrow && ~["top", "bottom"].indexOf(F[0]) && u === "left" && (F[1] === "start" ? n.left = 8 : F[1] || (n.left = (f.width - _.width) / 2)), t.offsets.arrow = n, t.arrowElement = s, t;
|
|
2077
|
-
}
|
|
2078
|
-
/** 判断 reference 的 offsetParent 元素是fix还是abs, 这个值会赋值给popper 的dom */
|
|
2079
|
-
_getPopperPositionByRefernce(t) {
|
|
2080
|
-
return this._options.forceAbsolute ? "absolute" : qt(t) ? "fixed" : "absolute";
|
|
2081
|
-
}
|
|
2082
|
-
/** 实时计算一下popper, reference的 位置信息, 用于 */
|
|
2083
|
-
_getRefPopOffsets(t, s, o) {
|
|
2084
|
-
o = o.split("-")[0];
|
|
2085
|
-
let n = { position: this.state.position }, r = n.position === "fixed", a = _s(
|
|
2086
|
-
s,
|
|
2087
|
-
Te(t),
|
|
2088
|
-
r,
|
|
2089
|
-
t
|
|
2090
|
-
);
|
|
2091
|
-
const { width: l, height: c } = this.popperOuterSize ? this.popperOuterSize : this.popperOuterSize = Fe(t);
|
|
2092
|
-
return ~["right", "left"].indexOf(o) ? (n.top = a.top + a.height / 2 - c / 2, o === "left" ? n.left = a.left - l : n.left = a.right) : (n.left = a.left + a.width / 2 - l / 2, o === "top" ? n.top = a.top - c : n.top = a.bottom), n.width = l, n.height = c, {
|
|
2093
|
-
popper: n,
|
|
2094
|
-
reference: a
|
|
2095
|
-
};
|
|
2096
|
-
}
|
|
2097
|
-
_setupEventListeners() {
|
|
2098
|
-
var t, s;
|
|
2099
|
-
if (this.state.updateBoundFn = this.update.bind(this), this.state.scrollUpdate = () => {
|
|
2100
|
-
if (this._options.updateHiddenPopperOnScroll)
|
|
2101
|
-
this.state.updateBoundFn();
|
|
2102
|
-
else {
|
|
2103
|
-
if (Et(this._reference)) return;
|
|
2104
|
-
this.state.updateBoundFn();
|
|
2105
|
-
}
|
|
2106
|
-
}, R(window, "resize", this.state.updateBoundFn), this._options.boundariesElement !== "window") {
|
|
2107
|
-
let o = this._options.scrollParent || he(this._reference);
|
|
2108
|
-
const n = [];
|
|
2109
|
-
if ((s = (t = o == null ? void 0 : o.dataset) == null ? void 0 : t.tag) != null && s.includes("-form")) {
|
|
2110
|
-
n.push(o);
|
|
2111
|
-
let r = he(o);
|
|
2112
|
-
(r === window.document.body || r === window.document.documentElement) && (r = window), n.push(r);
|
|
2113
|
-
}
|
|
2114
|
-
if ((o === window.document.body || o === window.document.documentElement) && (o = window), this.state.scrollTarget = o, this._options.bubbling || T.globalScroll) {
|
|
2115
|
-
let r = Xt(this._reference);
|
|
2116
|
-
this.state.scrollTargets = r || [], r.forEach((a) => {
|
|
2117
|
-
R(a, "scroll", this.state.scrollUpdate);
|
|
2118
|
-
});
|
|
2119
|
-
} else
|
|
2120
|
-
n.length ? (this.state.scrollTargets = n, n.forEach((r) => {
|
|
2121
|
-
R(r, "scroll", this.state.scrollUpdate);
|
|
2122
|
-
})) : R(o, "scroll", this.state.scrollUpdate);
|
|
2123
|
-
}
|
|
2124
|
-
}
|
|
2125
|
-
_removeEventListeners() {
|
|
2126
|
-
Y(window, "resize", this.state.updateBoundFn), this._options.boundariesElement !== "window" && this.state.scrollTarget && (Y(this.state.scrollTarget, "scroll", this.state.scrollUpdate), this.state.scrollTarget = null, (this._options.bubbling || T.globalScroll) && ((this.state.scrollTargets || []).forEach((t) => {
|
|
2127
|
-
Y(t, "scroll", this.state.scrollUpdate);
|
|
2128
|
-
}), this.state.scrollTargets = null)), this.state.updateBoundFn = null, this.state.scrollUpdate = null;
|
|
2129
|
-
}
|
|
2130
|
-
/** 实时计算一下Boundary的位置 */
|
|
2131
|
-
_getBoundaries(t, s, o) {
|
|
2132
|
-
let n = { right: 0, left: 0, top: 0, bottom: 0 };
|
|
2133
|
-
if (o === "window" || o === "body") {
|
|
2134
|
-
let r = window.document.body, a = window.document.documentElement, { width: l, height: c } = ks(r, a);
|
|
2135
|
-
n = { top: 0, right: l, bottom: c, left: 0 };
|
|
2136
|
-
} else if (o === "viewport") {
|
|
2137
|
-
let r = Te(this._popper), a = he(this._popper), l = ut(r);
|
|
2138
|
-
const c = t.offsets.popper.position === "fixed" || !this._options.appendToBody && ["right", "left"].includes(this._options.placement);
|
|
2139
|
-
let d = c ? 0 : xs(a), m = c ? 0 : Os(a);
|
|
2140
|
-
const i = T.viewportWindow || window;
|
|
2141
|
-
n = {
|
|
2142
|
-
top: 0 - (l.top - d),
|
|
2143
|
-
right: i.document.documentElement.clientWidth - (l.left - m),
|
|
2144
|
-
bottom: i.document.documentElement.clientHeight - (l.top - d),
|
|
2145
|
-
left: 0 - (l.left - m)
|
|
2146
|
-
};
|
|
2147
|
-
} else if (Te(this._popper) === o) {
|
|
2148
|
-
const { clientWidth: r, clientHeight: a } = o;
|
|
2149
|
-
n = {
|
|
2150
|
-
right: r,
|
|
2151
|
-
bottom: a,
|
|
2152
|
-
top: 0,
|
|
2153
|
-
left: 0
|
|
2154
|
-
};
|
|
2155
|
-
} else
|
|
2156
|
-
n = ut(o);
|
|
2157
|
-
return n.right -= s, n.left += s, n.bottom = n.bottom - s, n.top = n.top + s, n;
|
|
2158
|
-
}
|
|
2159
|
-
// https://popper.js.org/docs/v2/lifecycle/#set-new-options
|
|
2160
|
-
setOptions(t) {
|
|
2161
|
-
Object.assign(this._options, t);
|
|
2162
|
-
}
|
|
2163
|
-
}
|
|
1651
|
+
});
|
|
2164
1652
|
export {
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
jt as fastdom,
|
|
2178
|
-
Ss as getDomNode,
|
|
2179
|
-
zr as getObj,
|
|
2180
|
-
he as getScrollParent1,
|
|
2181
|
-
Cs as guid,
|
|
2182
|
-
Be as hasOwn,
|
|
2183
|
-
Ms as hyphenate,
|
|
2184
|
-
Et as isDisplayNone,
|
|
2185
|
-
kt as isNull,
|
|
2186
|
-
et as isObject,
|
|
2187
|
-
ee as isPlainObject,
|
|
2188
|
-
S as isServer,
|
|
2189
|
-
As as merge,
|
|
2190
|
-
zs as noop,
|
|
2191
|
-
Y as off,
|
|
2192
|
-
Is as omitText,
|
|
2193
|
-
R as on,
|
|
2194
|
-
Wr as random,
|
|
2195
|
-
ue as removeClass,
|
|
2196
|
-
Pr as setObj,
|
|
2197
|
-
Ie as sf,
|
|
2198
|
-
ls as throttle,
|
|
2199
|
-
xt as toString,
|
|
2200
|
-
ge as typeOf,
|
|
2201
|
-
Es as xss
|
|
1653
|
+
ot as DATEPICKER,
|
|
1654
|
+
Qt as KEY_CODE,
|
|
1655
|
+
M as PopupManager,
|
|
1656
|
+
ne as addClass,
|
|
1657
|
+
it as fastdom,
|
|
1658
|
+
Et as hasOwn,
|
|
1659
|
+
O as isServer,
|
|
1660
|
+
Sr as noop,
|
|
1661
|
+
ie as off,
|
|
1662
|
+
Q as on,
|
|
1663
|
+
oe as removeClass,
|
|
1664
|
+
_e as sf
|
|
2202
1665
|
};
|