@opentiny/tiny-robot 0.1.0-alpha.0 → 0.1.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.
Files changed (234) hide show
  1. package/dist/{bubble-item → bubble}/components/actions/copy.vue.d.ts +3 -3
  2. package/dist/{bubble-item → bubble}/components/actions/refresh.vue.d.ts +1 -1
  3. package/dist/bubble/index.d.ts +12 -0
  4. package/dist/bubble/index.type.d.ts +53 -0
  5. package/dist/bubble/useScroll.d.ts +4 -0
  6. package/dist/index.d.ts +9 -5
  7. package/dist/index.js +25 -18
  8. package/dist/node_modules/.pnpm/@opentiny_utils@1.0.0/node_modules/@opentiny/utils/dist/opentiny-utils.es.js +832 -0
  9. package/dist/node_modules/.pnpm/@opentiny_utils@3.22.0/node_modules/@opentiny/utils/dist/index.es.js +959 -1496
  10. 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
  11. 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
  12. package/dist/node_modules/.pnpm/@opentiny_vue-common@3.21.0/node_modules/@opentiny/vue-common/lib/index.js +727 -0
  13. package/dist/node_modules/.pnpm/@opentiny_vue-common@3.22.0/node_modules/@opentiny/vue-common/lib/index.js +144 -675
  14. 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
  15. 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
  16. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/close.js +29 -0
  17. 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
  18. 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
  19. 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
  20. 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
  21. 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
  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
  23. 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
  24. 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
  25. 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
  26. 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
  27. 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
  28. 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
  29. 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
  30. 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
  31. 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
  32. 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
  33. 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
  34. 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
  35. 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
  36. 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
  37. 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
  38. 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
  39. 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
  40. 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
  41. 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
  42. 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
  43. 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
  44. 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
  45. 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
  46. 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
  47. 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
  48. 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
  49. 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
  50. 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
  51. 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
  52. 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
  53. 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
  54. 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
  55. 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
  56. 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
  57. 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
  58. 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
  59. 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
  60. 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
  61. 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
  62. 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
  63. 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
  64. 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
  65. 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
  66. 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
  67. 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
  68. 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
  69. 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
  70. 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
  71. 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
  72. 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
  73. 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
  74. 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
  75. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/browser.js +36 -0
  76. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/clickoutside.js +47 -0
  77. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/debounce.js +7 -0
  78. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/dom.js +45 -0
  79. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/popper.js +320 -0
  80. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/popup-manager.js +118 -0
  81. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/throttle.js +23 -0
  82. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/useEventListener.js +9 -0
  83. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/useInstanceSlots.js +14 -0
  84. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/useRelation.js +54 -0
  85. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/vue-popper.js +84 -0
  86. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/vue-popup.js +73 -0
  87. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/event.js +13 -0
  88. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/function.js +5 -0
  89. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/index.js +11 -0
  90. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/object.js +84 -0
  91. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/string.js +28 -0
  92. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/type.js +28 -0
  93. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/dialog-box/index.js +136 -0
  94. 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
  95. 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
  96. 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
  97. 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
  98. 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
  99. 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
  100. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/tooltip/vue.js +90 -0
  101. 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
  102. 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
  103. package/dist/packages/components/src/{bubble-list → bubble}/bubble-list.vue.js +2 -2
  104. package/dist/packages/components/src/bubble/bubble-list.vue2.js +38 -0
  105. package/dist/packages/components/src/bubble/bubble.vue.js +7 -0
  106. package/dist/packages/components/src/bubble/bubble.vue2.js +118 -0
  107. package/dist/packages/components/src/bubble/components/actions/copy.vue.js +7 -0
  108. package/dist/packages/components/src/bubble/components/actions/copy.vue2.js +35 -0
  109. package/dist/packages/components/src/bubble/components/actions/refresh.vue.js +7 -0
  110. package/dist/packages/components/src/bubble/components/actions/refresh.vue2.js +16 -0
  111. package/dist/packages/components/src/bubble/index.js +18 -0
  112. package/dist/packages/components/src/bubble/useScroll.js +13 -0
  113. package/dist/packages/components/src/conversations/index.js +1 -1
  114. package/dist/packages/components/src/prompts/index.js +18 -0
  115. package/dist/packages/components/src/prompts/prompt.vue.js +7 -0
  116. package/dist/packages/components/src/prompts/prompt.vue2.js +37 -0
  117. package/dist/packages/components/src/prompts/prompts.vue.js +7 -0
  118. package/dist/packages/components/src/prompts/prompts.vue2.js +36 -0
  119. package/dist/packages/components/src/question/components/CommonQuestions.vue.js +89 -0
  120. package/dist/packages/components/src/question/components/CommonQuestions.vue2.js +4 -0
  121. package/dist/packages/components/src/question/components/HotQuestions.vue.js +140 -0
  122. package/dist/packages/components/src/question/components/HotQuestions.vue2.js +4 -0
  123. package/dist/packages/components/src/question/composables/useQuestions.js +48 -0
  124. package/dist/packages/components/src/question/index.js +9 -0
  125. package/dist/packages/components/src/question/index.vue.js +113 -0
  126. package/dist/packages/components/src/question/index.vue2.js +4 -0
  127. package/dist/packages/components/src/sender/components/ActionButtons.vue.js +105 -123
  128. package/dist/packages/components/src/sender/composables/useInputHandler.js +26 -22
  129. package/dist/packages/components/src/sender/composables/useKeyboardHandler.js +11 -11
  130. package/dist/packages/components/src/sender/composables/useSpeechHandler.js +9 -9
  131. package/dist/packages/components/src/sender/index.vue.js +67 -66
  132. package/dist/packages/components/src/welcome/index.vue.js +5 -7
  133. package/dist/packages/components/src/welcome/index.vue2.js +32 -0
  134. package/dist/packages/svgs/dist/tiny-robot-svgs.js +144 -0
  135. package/dist/prompts/index.d.ts +12 -0
  136. package/dist/prompts/index.type.d.ts +55 -0
  137. package/dist/prompts/prompt.vue.d.ts +3 -0
  138. package/dist/prompts/prompts.vue.d.ts +20 -0
  139. package/dist/question/components/CommonQuestions.vue.d.ts +32 -0
  140. package/dist/question/components/HotQuestions.vue.d.ts +89 -0
  141. package/dist/question/composables/useQuestions.d.ts +17 -0
  142. package/dist/question/index.d.ts +7 -0
  143. package/dist/question/index.type.d.ts +74 -0
  144. package/dist/question/index.vue.d.ts +46 -0
  145. package/dist/sender/components/ActionButtons.vue.d.ts +6 -4
  146. package/dist/sender/composables/useSpeechHandler.d.ts +0 -6
  147. package/dist/sender/index.type.d.ts +1 -1
  148. package/dist/sender/index.vue.d.ts +1 -2
  149. package/dist/style.css +1 -1
  150. package/dist/welcome/index.type.d.ts +10 -0
  151. package/dist/welcome/index.vue.d.ts +17 -1
  152. package/package.json +5 -3
  153. package/src/bubble/bubble-list.vue +44 -0
  154. package/src/bubble/bubble.vue +247 -0
  155. package/src/bubble/components/actions/copy.vue +54 -0
  156. package/src/bubble/components/actions/refresh.vue +31 -0
  157. package/src/bubble/index.ts +23 -0
  158. package/src/bubble/index.type.ts +63 -0
  159. package/src/bubble/useScroll.ts +14 -0
  160. package/src/conversations/index.ts +1 -1
  161. package/src/index.ts +23 -12
  162. package/src/prompts/index.ts +25 -0
  163. package/src/prompts/index.type.ts +59 -0
  164. package/src/prompts/prompt.vue +115 -0
  165. package/src/prompts/prompts.vue +50 -0
  166. package/src/question/components/CommonQuestions.vue +146 -0
  167. package/src/question/components/HotQuestions.vue +148 -0
  168. package/src/question/composables/useQuestions.ts +106 -0
  169. package/src/question/index.less +448 -0
  170. package/src/question/index.ts +12 -0
  171. package/src/question/index.type.ts +86 -0
  172. package/src/question/index.vue +140 -0
  173. package/src/question/vars.less +135 -0
  174. package/src/sender/components/ActionButtons.vue +42 -39
  175. package/src/sender/composables/useInputHandler.ts +15 -10
  176. package/src/sender/composables/useKeyboardHandler.ts +6 -4
  177. package/src/sender/composables/useSpeechHandler.ts +5 -11
  178. package/src/sender/index.less +3 -5
  179. package/src/sender/index.type.ts +1 -1
  180. package/src/sender/index.vue +3 -2
  181. package/src/welcome/index.type.ts +12 -0
  182. package/src/welcome/index.vue +68 -2
  183. package/dist/bubble-item/components/icons/ai.vue.d.ts +0 -2
  184. package/dist/bubble-item/components/icons/index.d.ts +0 -2
  185. package/dist/bubble-item/components/icons/user.vue.d.ts +0 -2
  186. package/dist/bubble-item/index.d.ts +0 -7
  187. package/dist/bubble-list/index.d.ts +0 -8
  188. package/dist/bubble-list/index.type.d.ts +0 -55
  189. package/dist/node_modules/.pnpm/@opentiny_vue-directive@3.22.0/node_modules/@opentiny/vue-directive/index.js +0 -57
  190. package/dist/node_modules/.pnpm/@opentiny_vue-hooks@3.22.0/node_modules/@opentiny/vue-hooks/dist/src/vue-popper.js +0 -85
  191. package/dist/node_modules/.pnpm/@opentiny_vue-hooks@3.22.0/node_modules/@opentiny/vue-hooks/dist/src/vue-popup.js +0 -69
  192. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.22.0/node_modules/@opentiny/vue-renderless/dialog-box/index.js +0 -135
  193. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.22.0/node_modules/@opentiny/vue-renderless/tooltip/vue.js +0 -90
  194. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Symbol.js +0 -5
  195. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGetTag.js +0 -10
  196. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseTrim.js +0 -8
  197. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_freeGlobal.js +0 -4
  198. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getRawTag.js +0 -15
  199. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_objectToString.js +0 -7
  200. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_root.js +0 -5
  201. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_trimmedEndIndex.js +0 -9
  202. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/debounce.js +0 -54
  203. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObject.js +0 -7
  204. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObjectLike.js +0 -6
  205. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isSymbol.js +0 -9
  206. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/now.js +0 -7
  207. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/toNumber.js +0 -22
  208. package/dist/packages/components/src/bubble-item/bubble-item.vue.js +0 -7
  209. package/dist/packages/components/src/bubble-item/bubble-item.vue2.js +0 -111
  210. package/dist/packages/components/src/bubble-item/components/actions/copy.vue.js +0 -46
  211. package/dist/packages/components/src/bubble-item/components/actions/copy.vue2.js +0 -4
  212. package/dist/packages/components/src/bubble-item/components/actions/refresh.vue.js +0 -12
  213. package/dist/packages/components/src/bubble-item/components/icons/ai.vue.js +0 -45
  214. package/dist/packages/components/src/bubble-item/components/icons/user.vue.js +0 -63
  215. package/dist/packages/components/src/bubble-item/index.js +0 -9
  216. package/dist/packages/components/src/bubble-list/bubble-list.vue2.js +0 -52
  217. package/dist/packages/components/src/bubble-list/index.js +0 -9
  218. package/src/bubble-item/bubble-item.vue +0 -264
  219. package/src/bubble-item/components/actions/copy.vue +0 -47
  220. package/src/bubble-item/components/actions/refresh.vue +0 -27
  221. package/src/bubble-item/components/icons/ai.vue +0 -30
  222. package/src/bubble-item/components/icons/index.ts +0 -2
  223. package/src/bubble-item/components/icons/user.vue +0 -78
  224. package/src/bubble-item/index.ts +0 -12
  225. package/src/bubble-list/bubble-list.vue +0 -53
  226. package/src/bubble-list/index.ts +0 -14
  227. package/src/bubble-list/index.type.ts +0 -65
  228. package/src/sender/global.d.ts +0 -44
  229. /package/dist/{bubble-list → bubble}/bubble-list.vue.d.ts +0 -0
  230. /package/dist/{bubble-item → bubble}/components/actions/index.d.ts +0 -0
  231. /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
  232. /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
  233. /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
  234. /package/src/{bubble-item → bubble}/components/actions/index.ts +0 -0
@@ -1,171 +1,171 @@
1
- var $t = Object.defineProperty, Qt = (e, t, s) => t in e ? $t(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s, J = (e, t, s) => Qt(e, typeof t != "symbol" ? t + "" : t, s), _e = { exports: {} }, E = {}, xe = { exports: {} }, X = {}, Ne;
2
- function ht() {
3
- if (Ne) return X;
4
- Ne = 1;
5
- function e() {
6
- var r = {};
7
- return r["align-content"] = !1, r["align-items"] = !1, r["align-self"] = !1, r["alignment-adjust"] = !1, r["alignment-baseline"] = !1, r.all = !1, r["anchor-point"] = !1, r.animation = !1, r["animation-delay"] = !1, r["animation-direction"] = !1, r["animation-duration"] = !1, r["animation-fill-mode"] = !1, r["animation-iteration-count"] = !1, r["animation-name"] = !1, r["animation-play-state"] = !1, r["animation-timing-function"] = !1, r.azimuth = !1, r["backface-visibility"] = !1, r.background = !0, r["background-attachment"] = !0, r["background-clip"] = !0, r["background-color"] = !0, r["background-image"] = !0, r["background-origin"] = !0, r["background-position"] = !0, r["background-repeat"] = !0, r["background-size"] = !0, r["baseline-shift"] = !1, r.binding = !1, r.bleed = !1, r["bookmark-label"] = !1, r["bookmark-level"] = !1, r["bookmark-state"] = !1, r.border = !0, r["border-bottom"] = !0, r["border-bottom-color"] = !0, r["border-bottom-left-radius"] = !0, r["border-bottom-right-radius"] = !0, r["border-bottom-style"] = !0, r["border-bottom-width"] = !0, r["border-collapse"] = !0, r["border-color"] = !0, r["border-image"] = !0, r["border-image-outset"] = !0, r["border-image-repeat"] = !0, r["border-image-slice"] = !0, r["border-image-source"] = !0, r["border-image-width"] = !0, r["border-left"] = !0, r["border-left-color"] = !0, r["border-left-style"] = !0, r["border-left-width"] = !0, r["border-radius"] = !0, r["border-right"] = !0, r["border-right-color"] = !0, r["border-right-style"] = !0, r["border-right-width"] = !0, r["border-spacing"] = !0, r["border-style"] = !0, r["border-top"] = !0, r["border-top-color"] = !0, r["border-top-left-radius"] = !0, r["border-top-right-radius"] = !0, r["border-top-style"] = !0, r["border-top-width"] = !0, r["border-width"] = !0, r.bottom = !1, r["box-decoration-break"] = !0, r["box-shadow"] = !0, r["box-sizing"] = !0, r["box-snap"] = !0, r["box-suppress"] = !0, r["break-after"] = !0, r["break-before"] = !0, r["break-inside"] = !0, r["caption-side"] = !1, r.chains = !1, r.clear = !0, r.clip = !1, r["clip-path"] = !1, r["clip-rule"] = !1, r.color = !0, r["color-interpolation-filters"] = !0, r["column-count"] = !1, r["column-fill"] = !1, r["column-gap"] = !1, r["column-rule"] = !1, r["column-rule-color"] = !1, r["column-rule-style"] = !1, r["column-rule-width"] = !1, r["column-span"] = !1, r["column-width"] = !1, r.columns = !1, r.contain = !1, r.content = !1, r["counter-increment"] = !1, r["counter-reset"] = !1, r["counter-set"] = !1, r.crop = !1, r.cue = !1, r["cue-after"] = !1, r["cue-before"] = !1, r.cursor = !1, r.direction = !1, r.display = !0, r["display-inside"] = !0, r["display-list"] = !0, r["display-outside"] = !0, r["dominant-baseline"] = !1, r.elevation = !1, r["empty-cells"] = !1, r.filter = !1, r.flex = !1, r["flex-basis"] = !1, r["flex-direction"] = !1, r["flex-flow"] = !1, r["flex-grow"] = !1, r["flex-shrink"] = !1, r["flex-wrap"] = !1, r.float = !1, r["float-offset"] = !1, r["flood-color"] = !1, r["flood-opacity"] = !1, r["flow-from"] = !1, r["flow-into"] = !1, r.font = !0, r["font-family"] = !0, r["font-feature-settings"] = !0, r["font-kerning"] = !0, r["font-language-override"] = !0, r["font-size"] = !0, r["font-size-adjust"] = !0, r["font-stretch"] = !0, r["font-style"] = !0, r["font-synthesis"] = !0, r["font-variant"] = !0, r["font-variant-alternates"] = !0, r["font-variant-caps"] = !0, r["font-variant-east-asian"] = !0, r["font-variant-ligatures"] = !0, r["font-variant-numeric"] = !0, r["font-variant-position"] = !0, r["font-weight"] = !0, r.grid = !1, r["grid-area"] = !1, r["grid-auto-columns"] = !1, r["grid-auto-flow"] = !1, r["grid-auto-rows"] = !1, r["grid-column"] = !1, r["grid-column-end"] = !1, r["grid-column-start"] = !1, r["grid-row"] = !1, r["grid-row-end"] = !1, r["grid-row-start"] = !1, r["grid-template"] = !1, r["grid-template-areas"] = !1, r["grid-template-columns"] = !1, r["grid-template-rows"] = !1, r["hanging-punctuation"] = !1, r.height = !0, r.hyphens = !1, r.icon = !1, r["image-orientation"] = !1, r["image-resolution"] = !1, r["ime-mode"] = !1, r["initial-letters"] = !1, r["inline-box-align"] = !1, r["justify-content"] = !1, r["justify-items"] = !1, r["justify-self"] = !1, r.left = !1, r["letter-spacing"] = !0, r["lighting-color"] = !0, r["line-box-contain"] = !1, r["line-break"] = !1, r["line-grid"] = !1, r["line-height"] = !1, r["line-snap"] = !1, r["line-stacking"] = !1, r["line-stacking-ruby"] = !1, r["line-stacking-shift"] = !1, r["line-stacking-strategy"] = !1, r["list-style"] = !0, r["list-style-image"] = !0, r["list-style-position"] = !0, r["list-style-type"] = !0, r.margin = !0, r["margin-bottom"] = !0, r["margin-left"] = !0, r["margin-right"] = !0, r["margin-top"] = !0, r["marker-offset"] = !1, r["marker-side"] = !1, r.marks = !1, r.mask = !1, r["mask-box"] = !1, r["mask-box-outset"] = !1, r["mask-box-repeat"] = !1, r["mask-box-slice"] = !1, r["mask-box-source"] = !1, r["mask-box-width"] = !1, r["mask-clip"] = !1, r["mask-image"] = !1, r["mask-origin"] = !1, r["mask-position"] = !1, r["mask-repeat"] = !1, r["mask-size"] = !1, r["mask-source-type"] = !1, r["mask-type"] = !1, r["max-height"] = !0, r["max-lines"] = !1, r["max-width"] = !0, r["min-height"] = !0, r["min-width"] = !0, r["move-to"] = !1, r["nav-down"] = !1, r["nav-index"] = !1, r["nav-left"] = !1, r["nav-right"] = !1, r["nav-up"] = !1, r["object-fit"] = !1, r["object-position"] = !1, r.opacity = !1, r.order = !1, r.orphans = !1, r.outline = !1, r["outline-color"] = !1, r["outline-offset"] = !1, r["outline-style"] = !1, r["outline-width"] = !1, r.overflow = !1, r["overflow-wrap"] = !1, r["overflow-x"] = !1, r["overflow-y"] = !1, r.padding = !0, r["padding-bottom"] = !0, r["padding-left"] = !0, r["padding-right"] = !0, r["padding-top"] = !0, r.page = !1, r["page-break-after"] = !1, r["page-break-before"] = !1, r["page-break-inside"] = !1, r["page-policy"] = !1, r.pause = !1, r["pause-after"] = !1, r["pause-before"] = !1, r.perspective = !1, r["perspective-origin"] = !1, r.pitch = !1, r["pitch-range"] = !1, r["play-during"] = !1, r.position = !1, r["presentation-level"] = !1, r.quotes = !1, r["region-fragment"] = !1, r.resize = !1, r.rest = !1, r["rest-after"] = !1, r["rest-before"] = !1, r.richness = !1, r.right = !1, r.rotation = !1, r["rotation-point"] = !1, r["ruby-align"] = !1, r["ruby-merge"] = !1, r["ruby-position"] = !1, r["shape-image-threshold"] = !1, r["shape-outside"] = !1, r["shape-margin"] = !1, r.size = !1, r.speak = !1, r["speak-as"] = !1, r["speak-header"] = !1, r["speak-numeral"] = !1, r["speak-punctuation"] = !1, r["speech-rate"] = !1, r.stress = !1, r["string-set"] = !1, r["tab-size"] = !1, r["table-layout"] = !1, r["text-align"] = !0, r["text-align-last"] = !0, r["text-combine-upright"] = !0, r["text-decoration"] = !0, r["text-decoration-color"] = !0, r["text-decoration-line"] = !0, r["text-decoration-skip"] = !0, r["text-decoration-style"] = !0, r["text-emphasis"] = !0, r["text-emphasis-color"] = !0, r["text-emphasis-position"] = !0, r["text-emphasis-style"] = !0, r["text-height"] = !0, r["text-indent"] = !0, r["text-justify"] = !0, r["text-orientation"] = !0, r["text-overflow"] = !0, r["text-shadow"] = !0, r["text-space-collapse"] = !0, r["text-transform"] = !0, r["text-underline-position"] = !0, r["text-wrap"] = !0, r.top = !1, r.transform = !1, r["transform-origin"] = !1, r["transform-style"] = !1, r.transition = !1, r["transition-delay"] = !1, r["transition-duration"] = !1, r["transition-property"] = !1, r["transition-timing-function"] = !1, r["unicode-bidi"] = !1, r["vertical-align"] = !1, r.visibility = !1, r["voice-balance"] = !1, r["voice-duration"] = !1, r["voice-family"] = !1, r["voice-pitch"] = !1, r["voice-range"] = !1, r["voice-rate"] = !1, r["voice-stress"] = !1, r["voice-volume"] = !1, r.volume = !1, r["white-space"] = !1, r.widows = !1, r.width = !0, r["will-change"] = !1, r["word-break"] = !0, r["word-spacing"] = !0, r["word-wrap"] = !0, r["wrap-flow"] = !1, r["wrap-through"] = !1, r["writing-mode"] = !1, r["z-index"] = !1, r;
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 t(r, a, l) {
9
+ function r(e, c, u) {
10
10
  }
11
- function s(r, a, l) {
11
+ function s(e, c, u) {
12
12
  }
13
- var o = /javascript\s*\:/img;
14
- function n(r, a) {
15
- return o.test(a) ? "" : a;
13
+ var n = /javascript\s*\:/img;
14
+ function a(e, c) {
15
+ return n.test(c) ? "" : c;
16
16
  }
17
- return X.whiteList = e(), X.getDefaultWhiteList = e, X.onAttr = t, X.onIgnoreAttr = s, X.safeAttrValue = n, X;
17
+ return G.whiteList = t(), G.getDefaultWhiteList = t, G.onAttr = r, G.onIgnoreAttr = s, G.safeAttrValue = a, G;
18
18
  }
19
- var Ve, Ue;
20
- function mt() {
21
- return Ue || (Ue = 1, Ve = {
22
- indexOf: function(e, t) {
23
- var s, o;
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 e.indexOf(t);
26
- for (s = 0, o = e.length; s < o; s++)
27
- if (e[s] === t)
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(e, t, s) {
32
- var o, n;
31
+ forEach: function(t, r, s) {
32
+ var n, a;
33
33
  if (Array.prototype.forEach)
34
- return e.forEach(t, s);
35
- for (o = 0, n = e.length; o < n; o++)
36
- t.call(s, e[o], o, e);
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(e) {
39
- return String.prototype.trim ? e.trim() : e.replace(/(^\s*)|(\s*$)/g, "");
38
+ trim: function(t) {
39
+ return String.prototype.trim ? t.trim() : t.replace(/(^\s*)|(\s*$)/g, "");
40
40
  },
41
- trimRight: function(e) {
42
- return String.prototype.trimRight ? e.trimRight() : e.replace(/(\s*$)/g, "");
41
+ trimRight: function(t) {
42
+ return String.prototype.trimRight ? t.trimRight() : t.replace(/(\s*$)/g, "");
43
43
  }
44
- }), Ve;
44
+ }), Ce;
45
45
  }
46
- var Oe, qe;
47
- function Zt() {
48
- if (qe) return Oe;
49
- qe = 1;
50
- var e = mt();
51
- function t(s, o) {
52
- s = e.trimRight(s), s[s.length - 1] !== ";" && (s += ";");
53
- var n = s.length, r = !1, a = 0, l = 0, c = "";
54
- function d() {
55
- if (!r) {
56
- var u = e.trim(s.slice(a, l)), f = u.indexOf(":");
57
- if (f !== -1) {
58
- var _ = e.trim(u.slice(0, f)), w = e.trim(u.slice(f + 1));
59
- if (_) {
60
- var g = o(a, c.length, _, w, u);
61
- g && (c += g + "; ");
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
- a = l + 1;
65
+ c = u + 1;
66
66
  }
67
- for (; l < n; l++) {
68
- var m = s[l];
69
- if (m === "/" && s[l + 1] === "*") {
70
- var i = s.indexOf("*/", l + 2);
71
- if (i === -1) break;
72
- l = i + 1, a = l + 1, r = !1;
73
- } else m === "(" ? r = !0 : m === ")" ? r = !1 : m === ";" ? r || d() : m === `
74
- ` && d();
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 e.trim(c);
76
+ return t.trim(g);
77
77
  }
78
- return Oe = t, Oe;
78
+ return pe = r, pe;
79
79
  }
80
- var ke, Ge;
81
- function Jt() {
82
- if (Ge) return ke;
83
- Ge = 1;
84
- var e = ht(), t = Zt();
85
- mt();
86
- function s(r) {
87
- return r == null;
88
- }
89
- function o(r) {
90
- var a = {};
91
- for (var l in r)
92
- a[l] = r[l];
93
- return a;
94
- }
95
- function n(r) {
96
- r = o(r || {}), r.whiteList = r.whiteList || e.whiteList, r.onAttr = r.onAttr || e.onAttr, r.onIgnoreAttr = r.onIgnoreAttr || e.onIgnoreAttr, r.safeAttrValue = r.safeAttrValue || e.safeAttrValue, this.options = r;
97
- }
98
- return n.prototype.process = function(r) {
99
- if (r = r || "", r = r.toString(), !r) return "";
100
- var a = this, l = a.options, c = l.whiteList, d = l.onAttr, m = l.onIgnoreAttr, i = l.safeAttrValue, u = t(r, function(f, _, w, g, F) {
101
- var y = c[w], b = !1;
102
- if (y === !0 ? b = y : typeof y == "function" ? b = y(g) : y instanceof RegExp && (b = y.test(g)), b !== !0 && (b = !1), g = i(w, g), !!g) {
103
- var I = {
104
- position: _,
105
- sourcePosition: f,
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: b
107
+ isWhite: p
108
108
  };
109
- if (b) {
110
- var O = d(w, g, I);
111
- return s(O) ? w + ":" + g : O;
109
+ if (p) {
110
+ var v = A(_, h, C);
111
+ return s(v) ? _ + ":" + h : v;
112
112
  } else {
113
- var O = m(w, g, I);
114
- if (!s(O))
115
- return O;
113
+ var v = E(_, h, C);
114
+ if (!s(v))
115
+ return v;
116
116
  }
117
117
  }
118
118
  });
119
- return u;
120
- }, ke = n, ke;
119
+ return d;
120
+ }, me = a, me;
121
121
  }
122
- var Xe;
123
- function Me() {
124
- return Xe || (Xe = 1, function(e, t) {
125
- var s = ht(), o = Jt();
126
- function n(a, l) {
127
- var c = new o(l);
128
- return c.process(a);
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
- t = e.exports = n, t.FilterCSS = o;
131
- for (var r in s) t[r] = s[r];
132
- typeof window < "u" && (window.filterCSS = e.exports);
133
- }(xe, xe.exports)), xe.exports;
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 Ye, $e;
136
- function Le() {
137
- return $e || ($e = 1, Ye = {
138
- indexOf: function(e, t) {
139
- var s, o;
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 e.indexOf(t);
142
- for (s = 0, o = e.length; s < o; s++)
143
- if (e[s] === t)
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(e, t, s) {
148
- var o, n;
147
+ forEach: function(t, r, s) {
148
+ var n, a;
149
149
  if (Array.prototype.forEach)
150
- return e.forEach(t, s);
151
- for (o = 0, n = e.length; o < n; o++)
152
- t.call(s, e[o], o, e);
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(e) {
155
- return String.prototype.trim ? e.trim() : e.replace(/(^\s*)|(\s*$)/g, "");
154
+ trim: function(t) {
155
+ return String.prototype.trim ? t.trim() : t.replace(/(^\s*)|(\s*$)/g, "");
156
156
  },
157
- spaceIndex: function(e) {
158
- var t = /\s|\n|\t/, s = t.exec(e);
157
+ spaceIndex: function(t) {
158
+ var r = /\s|\n|\t/, s = r.exec(t);
159
159
  return s ? s.index : -1;
160
160
  }
161
- }), Ye;
161
+ }), Re;
162
162
  }
163
- var Qe;
164
- function gt() {
165
- if (Qe) return E;
166
- Qe = 1;
167
- var e = Me().FilterCSS, t = Me().getDefaultWhiteList, s = Le();
168
- function o() {
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 n = new e();
260
- function r(h, v, p) {
259
+ var a = new t();
260
+ function e(f, b, l) {
261
261
  }
262
- function a(h, v, p) {
262
+ function c(f, b, l) {
263
263
  }
264
- function l(h, v, p) {
264
+ function u(f, b, l) {
265
265
  }
266
- function c(h, v, p) {
266
+ function g(f, b, l) {
267
267
  }
268
- function d(h) {
269
- return h.replace(i, "&lt;").replace(u, "&gt;");
268
+ function A(f) {
269
+ return f.replace(o, "&lt;").replace(d, "&gt;");
270
270
  }
271
- function m(h, v, p, k) {
272
- if (p = j(p), v === "href" || v === "src") {
273
- if (p = s.trim(p), p === "#") return "#";
274
- if (!(p.substr(0, 7) === "http://" || p.substr(0, 8) === "https://" || p.substr(0, 7) === "mailto:" || p.substr(0, 4) === "tel:" || p.substr(0, 11) === "data:image/" || p.substr(0, 6) === "ftp://" || p.substr(0, 2) === "./" || p.substr(0, 3) === "../" || p[0] === "#" || p[0] === "/"))
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 (v === "background") {
277
- if (y.lastIndex = 0, y.test(p))
276
+ } else if (b === "background") {
277
+ if (m.lastIndex = 0, m.test(l))
278
278
  return "";
279
- } else if (v === "style") {
280
- if (b.lastIndex = 0, b.test(p) || (I.lastIndex = 0, I.test(p) && (y.lastIndex = 0, y.test(p))))
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
- k !== !1 && (k = k || n, p = k.process(p));
282
+ w !== !1 && (w = w || a, l = w.process(l));
283
283
  }
284
- return p = z(p), p;
284
+ return l = L(l), l;
285
285
  }
286
- var i = /</g, u = />/g, f = /"/g, _ = /&quot;/g, w = /&#([a-zA-Z0-9]*);?/gim, g = /&colon;?/gim, F = /&newline;?/gim, y = /((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, b = /e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi, I = /u\s*r\s*l\s*\(.*/gi;
287
- function O(h) {
288
- return h.replace(f, "&quot;");
286
+ var o = /</g, d = />/g, i = /"/g, x = /&quot;/g, _ = /&#([a-zA-Z0-9]*);?/gim, h = /&colon;?/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, "&quot;");
289
289
  }
290
- function x(h) {
291
- return h.replace(_, '"');
290
+ function y(f) {
291
+ return f.replace(x, '"');
292
292
  }
293
- function M(h) {
294
- return h.replace(w, function(v, p) {
295
- return p[0] === "x" || p[0] === "X" ? String.fromCharCode(parseInt(p.substr(1), 16)) : String.fromCharCode(parseInt(p, 10));
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 L(h) {
299
- return h.replace(g, ":").replace(F, " ");
298
+ function R(f) {
299
+ return f.replace(h, ":").replace(F, " ");
300
300
  }
301
- function U(h) {
302
- for (var v = "", p = 0, k = h.length; p < k; p++)
303
- v += h.charCodeAt(p) < 32 ? " " : h.charAt(p);
304
- return s.trim(v);
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 j(h) {
307
- return h = x(h), h = M(h), h = L(h), h = U(h), h;
306
+ function z(f) {
307
+ return f = y(f), f = T(f), f = R(f), f = W(f), f;
308
308
  }
309
- function z(h) {
310
- return h = O(h), h = d(h), h;
309
+ function L(f) {
310
+ return f = v(f), f = A(f), f;
311
311
  }
312
- function ve() {
312
+ function fe() {
313
313
  return "";
314
314
  }
315
- function Z(h, v) {
316
- typeof v != "function" && (v = function() {
315
+ function Z(f, b) {
316
+ typeof b != "function" && (b = function() {
317
317
  });
318
- var p = !Array.isArray(h);
319
- function k(G) {
320
- return p ? !0 : s.indexOf(h, G) !== -1;
318
+ var l = !Array.isArray(f);
319
+ function w(N) {
320
+ return l ? !0 : s.indexOf(f, N) !== -1;
321
321
  }
322
- var D = [], B = !1;
322
+ var j = [], D = !1;
323
323
  return {
324
- onIgnoreTag: function(G, re, H) {
325
- if (k(G))
326
- if (H.isClosing) {
327
- var se = "[/removed]", Yt = H.position + se.length;
328
- return D.push([
329
- B !== !1 ? B : H.position,
330
- Yt
331
- ]), B = !1, se;
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 B || (B = H.position), "[removed]";
333
+ return D || (D = P.position), "[removed]";
334
334
  else
335
- return v(G, re, H);
335
+ return b(N, U, P);
336
336
  },
337
- remove: function(G) {
338
- var re = "", H = 0;
339
- return s.forEach(D, function(se) {
340
- re += G.slice(H, se[0]), H = se[1];
341
- }), re += G.slice(H), re;
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 q(h) {
346
- for (var v = "", p = 0; p < h.length; ) {
347
- var k = h.indexOf("<!--", p);
348
- if (k === -1) {
349
- v += h.slice(p);
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
- v += h.slice(p, k);
353
- var D = h.indexOf("-->", k);
354
- if (D === -1)
352
+ b += f.slice(l, w);
353
+ var j = f.indexOf("-->", w);
354
+ if (j === -1)
355
355
  break;
356
- p = D + 3;
356
+ l = j + 3;
357
357
  }
358
- return v;
358
+ return b;
359
359
  }
360
- function le(h) {
361
- var v = h.split("");
362
- return v = v.filter(function(p) {
363
- var k = p.charCodeAt(0);
364
- return k === 127 ? !1 : k <= 31 ? k === 10 || k === 13 : !0;
365
- }), v.join("");
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 E.whiteList = o(), E.getDefaultWhiteList = o, E.onTag = r, E.onIgnoreTag = a, E.onTagAttr = l, E.onIgnoreTagAttr = c, E.safeAttrValue = m, E.escapeHtml = d, E.escapeQuote = O, E.unescapeQuote = x, E.escapeHtmlEntities = M, E.escapeDangerHtml5Entities = L, E.clearNonPrintableCharacter = U, E.friendlyAttrValue = j, E.escapeAttrValue = z, E.onIgnoreTagStripAll = ve, E.StripTagBody = Z, E.stripCommentTag = q, E.stripBlankChar = le, E.cssFilter = n, E.getDefaultCSSWhiteList = t, E;
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 fe = {}, Ze;
370
- function bt() {
371
- if (Ze) return fe;
372
- Ze = 1;
373
- var e = Le();
374
- function t(i) {
375
- var u = e.spaceIndex(i), f;
376
- return u === -1 ? f = i.slice(1, -1) : f = i.slice(1, u + 1), f = e.trim(f).toLowerCase(), f.slice(0, 1) === "/" && (f = f.slice(1)), f.slice(-1) === "/" && (f = f.slice(0, -1)), f;
377
- }
378
- function s(i) {
379
- return i.slice(0, 2) === "</";
380
- }
381
- function o(i, u, f) {
382
- var _ = "", w = 0, g = !1, F = !1, y = 0, b = i.length, I = "", O = "";
383
- e: for (y = 0; y < b; y++) {
384
- var x = i.charAt(y);
385
- if (g === !1) {
386
- if (x === "<") {
387
- g = y;
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 (x === "<") {
392
- _ += f(i.slice(w, y)), g = y, w = y;
391
+ if (y === "<") {
392
+ x += i(o.slice(_, m)), h = m, _ = m;
393
393
  continue;
394
394
  }
395
- if (x === ">" || y === b - 1) {
396
- _ += f(i.slice(w, g)), O = i.slice(g, y + 1), I = t(O), _ += u(
397
- g,
398
- _.length,
399
- I,
400
- O,
401
- s(O)
402
- ), w = y + 1, g = !1;
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 (x === '"' || x === "'")
406
- for (var M = 1, L = i.charAt(y - M); L.trim() === "" || L === "="; ) {
407
- if (L === "=") {
408
- F = x;
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
- L = i.charAt(y - ++M);
411
+ R = o.charAt(m - ++T);
412
412
  }
413
- } else if (x === F) {
413
+ } else if (y === F) {
414
414
  F = !1;
415
415
  continue;
416
416
  }
417
417
  }
418
- return w < b && (_ += f(i.substr(w))), _;
419
- }
420
- var n = /[^a-zA-Z0-9\\_:.-]/gim;
421
- function r(i, u) {
422
- var f = 0, _ = 0, w = [], g = !1, F = i.length;
423
- function y(M, L) {
424
- if (M = e.trim(M), M = M.replace(n, "").toLowerCase(), !(M.length < 1)) {
425
- var U = u(M, L || "");
426
- U && w.push(U);
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 b = 0; b < F; b++) {
430
- var I = i.charAt(b), O, x;
431
- if (g === !1 && I === "=") {
432
- g = i.slice(f, b), f = b + 1, _ = i.charAt(f) === '"' || i.charAt(f) === "'" ? f : l(i, b + 1);
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 (g !== !1 && b === _) {
436
- if (x = i.indexOf(I, b + 1), x === -1)
435
+ if (h !== !1 && p === x) {
436
+ if (y = o.indexOf(C, p + 1), y === -1)
437
437
  break;
438
- O = e.trim(i.slice(_ + 1, x)), y(g, O), g = !1, b = x, f = b + 1;
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(I))
442
- if (i = i.replace(/\s|\n|\t/g, " "), g === !1)
443
- if (x = a(i, b), x === -1) {
444
- O = e.trim(i.slice(f, b)), y(O), g = !1, f = b + 1;
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
- b = x - 1;
447
+ p = y - 1;
448
448
  continue;
449
449
  }
450
- else if (x = c(i, b - 1), x === -1) {
451
- O = e.trim(i.slice(f, b)), O = m(O), y(g, O), g = !1, f = b + 1;
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 f < i.length && (g === !1 ? y(i.slice(f)) : y(g, m(e.trim(i.slice(f))))), e.trim(w.join(" "));
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 a(i, u) {
459
- for (; u < i.length; u++) {
460
- var f = i[u];
461
- if (f !== " ")
462
- return f === "=" ? u : -1;
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 l(i, u) {
466
- for (; u < i.length; u++) {
467
- var f = i[u];
468
- if (f !== " ")
469
- return f === "'" || f === '"' ? u : -1;
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 c(i, u) {
473
- for (; u > 0; u--) {
474
- var f = i[u];
475
- if (f !== " ")
476
- return f === "=" ? u : -1;
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 d(i) {
480
- return i[0] === '"' && i[i.length - 1] === '"' || i[0] === "'" && i[i.length - 1] === "'";
479
+ function A(o) {
480
+ return o[0] === '"' && o[o.length - 1] === '"' || o[0] === "'" && o[o.length - 1] === "'";
481
481
  }
482
- function m(i) {
483
- return d(i) ? i.substr(1, i.length - 2) : i;
482
+ function E(o) {
483
+ return A(o) ? o.substr(1, o.length - 2) : o;
484
484
  }
485
- return fe.parseTag = o, fe.parseAttr = r, fe;
485
+ return se.parseTag = n, se.parseAttr = e, se;
486
486
  }
487
- var Ee, Je;
488
- function Kt() {
489
- if (Je) return Ee;
490
- Je = 1;
491
- var e = Me().FilterCSS, t = gt(), s = bt(), o = s.parseTag, n = s.parseAttr, r = Le();
492
- function a(i) {
493
- return i == null;
494
- }
495
- function l(i) {
496
- var u = r.spaceIndex(i);
497
- if (u === -1)
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: i[i.length - 2] === "/"
500
+ closing: o[o.length - 2] === "/"
501
501
  };
502
- i = r.trim(i.slice(u + 1, -1));
503
- var f = i[i.length - 1] === "/";
504
- return f && (i = r.trim(i.slice(0, -1))), {
505
- html: i,
506
- closing: f
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 c(i) {
510
- var u = {};
511
- for (var f in i)
512
- u[f] = i[f];
513
- return u;
514
- }
515
- function d(i) {
516
- var u = {};
517
- for (var f in i)
518
- Array.isArray(i[f]) ? u[f.toLowerCase()] = i[f].map(function(_) {
519
- return _.toLowerCase();
520
- }) : u[f.toLowerCase()] = i[f];
521
- return u;
522
- }
523
- function m(i) {
524
- i = c(i || {}), i.stripIgnoreTag && (i.onIgnoreTag && console.error(
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
- ), i.onIgnoreTag = t.onIgnoreTagStripAll), i.whiteList || i.allowList ? i.whiteList = d(i.whiteList || i.allowList) : i.whiteList = t.whiteList, i.onTag = i.onTag || t.onTag, i.onTagAttr = i.onTagAttr || t.onTagAttr, i.onIgnoreTag = i.onIgnoreTag || t.onIgnoreTag, i.onIgnoreTagAttr = i.onIgnoreTagAttr || t.onIgnoreTagAttr, i.safeAttrValue = i.safeAttrValue || t.safeAttrValue, i.escapeHtml = i.escapeHtml || t.escapeHtml, this.options = i, i.css === !1 ? this.cssFilter = !1 : (i.css = i.css || {}, this.cssFilter = new e(i.css));
527
- }
528
- return m.prototype.process = function(i) {
529
- if (i = i || "", i = i.toString(), !i) return "";
530
- var u = this, f = u.options, _ = f.whiteList, w = f.onTag, g = f.onIgnoreTag, F = f.onTagAttr, y = f.onIgnoreTagAttr, b = f.safeAttrValue, I = f.escapeHtml, O = u.cssFilter;
531
- f.stripBlankChar && (i = t.stripBlankChar(i)), f.allowCommentTag || (i = t.stripCommentTag(i));
532
- var x = !1;
533
- f.stripIgnoreTagBody && (x = t.StripTagBody(
534
- f.stripIgnoreTagBody,
535
- g
536
- ), g = x.onIgnoreTag);
537
- var M = o(
538
- i,
539
- function(L, U, j, z, ve) {
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: L,
542
- position: U,
543
- isClosing: ve,
544
- isWhite: Object.prototype.hasOwnProperty.call(_, j)
545
- }, q = w(j, z, Z);
546
- if (!a(q)) return q;
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 "</" + j + ">";
550
- var le = l(z), h = _[j], v = n(le.html, function(p, k) {
551
- var D = r.indexOf(h, p) !== -1, B = F(j, p, k, D);
552
- return a(B) ? D ? (k = b(j, p, k, O), k ? p + '="' + k + '"' : p) : (B = y(j, p, k, D), a(B) ? void 0 : B) : B;
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 z = "<" + j, v && (z += " " + v), le.closing && (z += " /"), z += ">", z;
554
+ return L = "<" + z, b && (L += " " + b), re.closing && (L += " /"), L += ">", L;
555
555
  } else
556
- return q = g(j, z, Z), a(q) ? I(z) : q;
556
+ return H = h(z, L, Z), c(H) ? C(L) : H;
557
557
  },
558
- I
558
+ C
559
559
  );
560
- return x && (M = x.remove(M)), M;
561
- }, Ee = m, Ee;
560
+ return y && (T = y.remove(T)), T;
561
+ }, ge = E, ge;
562
562
  }
563
- var Ke;
564
- function er() {
565
- return Ke || (Ke = 1, function(e, t) {
566
- var s = gt(), o = bt(), n = Kt();
567
- function r(l, c) {
568
- var d = new n(c);
569
- return d.process(l);
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
- t = e.exports = r, t.filterXSS = r, t.FilterXSS = n, function() {
572
- for (var l in s)
573
- t[l] = s[l];
574
- for (var c in o)
575
- t[c] = o[c];
576
- }(), typeof window < "u" && (window.filterXSS = e.exports);
577
- function a() {
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
- a() && (self.filterXSS = e.exports);
581
- }(_e, _e.exports)), _e.exports;
580
+ c() && (self.filterXSS = t.exports);
581
+ }(de, de.exports)), de.exports;
582
582
  }
583
- var me = er();
584
- let P = {
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 tr = me.getDefaultWhiteList && me.getDefaultWhiteList() || {};
677
- P.html.whiteList = Object.assign(tr, P.html.whiteList);
678
- let yt = new me.FilterXSS(P.html);
679
- const rr = () => P, sr = (e) => {
680
- var t;
681
- let s;
682
- (t = e == null ? void 0 : e.html) != null && t.whiteList && (s = Object.assign(P.html.whiteList, e.html.whiteList)), P = Object.assign(P, e), s && (P.html.whiteList = s), yt = new me.FilterXSS(P.html);
683
- };
684
- let wt = (e) => !P.enableHtml || typeof e != "string" ? e : yt.process(e);
685
- const or = (e) => {
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 (S) return null;
741
- const e = {
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: S,
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
- }, t = /(Android|webOS|iPhone|iPad|iPod|SymbianOS|BlackBerry|Windows Phone)/.test(navigator.userAgent);
755
- e.isMobile = t, e.isPC = !t;
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)) ? (e.name = "chrome", e.chrome = !0, s = navigator.userAgent.match(/chrome\/(\d+)/i), e.version = !!s && !!s[1] && parseInt(s[1], 10), s = void 0) : document.all || document.documentMode ? (e.name = "ie", e.version = cr(), e.ie = !0) : typeof window.InstallTrigger < "u" ? (e.name = "firefox", e.firefox = !0) : Object.prototype.toString.call(window.HTMLElement).indexOf("Constructor") > 0 ? (e.name = "safari", e.safari = !0) : (window.opr && window.opr.addons || window.opera) && (e.name = "opera", e.opera = !0), ur(e), !~["ie", "chrome"].indexOf(e.name)) {
758
- const o = e.name + "/(\\d+)";
759
- s = navigator.userAgent.match(new RegExp(o, "i")), e.version = !!s && !!s[1] && parseInt(s[1], 10), s = void 0;
760
- }
761
- if (e.isDoc) {
762
- const o = document.body || document.documentElement;
763
- ["webkit", "khtml", "moz", "ms", "o"].forEach((n) => {
764
- e["-" + n] = !!o[n + "MatchesSelector"];
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 e;
712
+ return t;
768
713
  })();
769
- const R = (e, t, s, o = !1) => {
770
- e && t && s && e.addEventListener(t, s, o);
771
- }, Y = (e, t, s, o = !1) => {
772
- e && t && e.removeEventListener(t, s, o);
773
- }, ce = (e, t = "") => {
774
- e && t.split(" ").filter((s) => s).forEach((s) => e.classList.add(s));
775
- }, ue = (e, t) => {
776
- !e || !t || t.split(" ").filter((s) => s).forEach((s) => e.classList.remove(s));
777
- }, Ss = () => {
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 e = (t, s) => {
803
- let o = -1;
804
- return t.some((n, r) => n[0] === s ? (o = r, !0) : !1), o;
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 t() {
730
+ function r() {
808
731
  this.__entries__ = [];
809
732
  }
810
- return Object.defineProperty(t.prototype, "size", {
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
- }), t.prototype.get = function(s) {
817
- const o = e(this.__entries__, s), n = this.__entries__[o];
818
- return n && n[1];
819
- }, t.prototype.set = function(s, o) {
820
- const n = e(this.__entries__, s);
821
- ~n ? this.__entries__[n][1] = o : this.__entries__.push([s, o]);
822
- }, t.prototype.delete = function(s) {
823
- const o = this.__entries__, n = e(o, s);
824
- ~n && o.splice(n, 1);
825
- }, t.prototype.clear = function() {
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
- }, t.prototype.has = function(s) {
828
- return !!~e(this.__entries__, s);
829
- }, t.prototype.forEach = function(s, o) {
830
- o === void 0 && (o = null);
831
- for (let n = 0, r = this.__entries__; n < r.length; n++) {
832
- const a = r[n];
833
- s.call(o, a[1], a[0]);
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
- }, t;
758
+ }, r;
836
759
  }();
837
- }(), pr = globalThis.Function, be = function() {
838
- const e = (t) => t.Math === Math;
839
- return typeof global < "u" && e(global) ? global : typeof self < "u" && e(self) ? self : typeof window < "u" && e(window) ? window : pr("return this")();
840
- }(), dr = function() {
841
- return typeof requestAnimationFrame == "function" ? requestAnimationFrame.bind(be) : function(e) {
842
- return setTimeout(() => e(Date.now()), 1e3 / 60);
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 hr = 2;
846
- function mr(e, t) {
847
- let s = !1, o = !1, n = 0, r;
848
- const a = () => {
849
- s && (s = !1, e()), o && r();
850
- }, l = () => {
851
- dr(a);
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 r = () => {
854
- const c = Date.now();
776
+ return e = () => {
777
+ const g = Date.now();
855
778
  if (s) {
856
- if (c - n < hr)
779
+ if (g - a < Ct)
857
780
  return;
858
- o = !0;
781
+ n = !0;
859
782
  } else
860
- s = !0, o = !1, setTimeout(l, t);
861
- n = c;
862
- }, r;
783
+ s = !0, n = !1, setTimeout(u, r);
784
+ a = g;
785
+ }, e;
863
786
  }
864
- const gr = 20, br = ["top", "right", "bottom", "left", "width", "height", "size", "weight"], yr = typeof MutationObserver < "u", wr = function() {
865
- function e() {
866
- this.observers_ = [], this.connected_ = !1, this.mutationEventsAdded_ = !1, this.mutationsObserver_ = null, this.onTransitionEnd_ = this.onTransitionEnd_.bind(this), this.refresh = mr(this.refresh.bind(this), gr);
867
- }
868
- return e.prototype.addObserver = function(t) {
869
- !~this.observers_.indexOf(t) && this.observers_.push(t), !this.connected_ && this.connect_();
870
- }, e.prototype.removeObserver = function(t) {
871
- const s = this.observers_, o = s.indexOf(t);
872
- ~o && s.splice(o, 1), !s.length && this.connected_ && this.disconnect_();
873
- }, e.prototype.refresh = function() {
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
- }, e.prototype.updateObservers_ = function() {
876
- const t = this.observers_.filter((s) => (s.gatherActive(), s.hasActive()));
877
- return t.forEach((s) => s.broadcastActive()), t.length > 0;
878
- }, e.prototype.connect_ = function() {
879
- if (!(S || this.connected_)) {
880
- if (R(document, "transitionend", this.onTransitionEnd_), R(window, "resize", this.refresh), yr) {
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 t = {
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, t);
811
+ this.mutationsObserver_.observe(document, r);
889
812
  } else
890
- R(document, "DOMSubtreeModified", this.refresh), this.mutationEventsAdded_ = !0;
813
+ Q(document, "DOMSubtreeModified", this.refresh), this.mutationEventsAdded_ = !0;
891
814
  this.connected_ = !0;
892
815
  }
893
- }, e.prototype.disconnect_ = function() {
894
- S || !this.connected_ || (Y(document, "transitionend", this.onTransitionEnd_), Y(window, "resize", this.refresh), this.mutationsObserver_ && this.mutationsObserver_.disconnect(), this.mutationEventsAdded_ && Y(document, "DOMSubtreeModified", this.refresh), this.mutationsObserver_ = null, this.mutationEventsAdded_ = !1, this.connected_ = !1);
895
- }, e.prototype.onTransitionEnd_ = function(t) {
896
- const s = t.propertyName, o = s === void 0 ? "" : s;
897
- br.some((n) => !!~o.indexOf(n)) && this.refresh();
898
- }, e.getInstance = function() {
899
- return this._instance || (this._instance = new e()), this._instance;
900
- }, e._instance = null, e;
901
- }(), At = function(e, t) {
902
- for (let s = 0, o = Object.keys(t); s < o.length; s++) {
903
- const n = o[s];
904
- Object.defineProperty(e, n, {
905
- value: t[n],
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 e;
912
- }, we = function(e, t, s, o) {
913
- return { x: e, y: t, width: s, height: o };
914
- }, te = function(e) {
915
- return e && e.ownerDocument && e.ownerDocument.defaultView || be;
916
- }, Tt = we(0, 0, 0, 0), ye = (e) => parseFloat(e) || 0, tt = function(e) {
917
- let t = [];
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
- t[s - 1] = arguments[s];
920
- return t.reduce((s, o) => {
921
- const n = e[`border-${o}-width`];
922
- return s + ye(n);
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
- }, vr = function(e) {
925
- const t = ["top", "right", "bottom", "left"];
847
+ }, Dt = function(t) {
848
+ const r = ["top", "right", "bottom", "left"];
926
849
  let s = {};
927
- for (let o = 0, n = t; o < n.length; o++) {
928
- const r = n[o], a = e[`padding-${r}`];
929
- s[r] = ye(a);
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
- }, _r = function(e) {
933
- const t = e.getBBox();
934
- return we(0, 0, t.width, t.height);
935
- }, xr = function(e) {
936
- return e === te(e).document.documentElement;
937
- }, Or = function(e) {
938
- const t = e.clientWidth, s = e.clientHeight;
939
- if (!s && !t)
940
- return Tt;
941
- const o = te(e).getComputedStyle(e), n = vr(o), r = n.top + n.bottom, a = n.left + n.right;
942
- let l = ye(o.width), c = ye(o.height);
943
- if (o.boxSizing === "border-box" && (Math.round(c + r) !== s && (c -= tt(o, "top", "bottom") + r), Math.round(l + a) !== t && (l -= tt(o, "left", "right") + a)), !xr(e)) {
944
- const d = Math.round(c + r) - s, m = Math.round(l + a) - t;
945
- Math.abs(d) !== 1 && (c -= d), Math.abs(m) !== 1 && (l -= m);
946
- }
947
- return we(n.left, n.top, l, c);
948
- }, kr = /* @__PURE__ */ function() {
949
- return typeof SVGGraphicsElement < "u" ? (e) => e instanceof te(e).SVGGraphicsElement : (e) => e instanceof te(e).SVGElement && typeof e.getBBox == "function";
950
- }(), Er = function(e) {
951
- return S ? Tt : kr(e) ? _r(e) : Or(e);
952
- }, Sr = function(e) {
953
- const t = e.x, s = e.y, o = e.width, n = e.height, r = Object.create((typeof DOMRectReadOnly < "u" ? DOMRectReadOnly : Object).prototype);
954
- return At(r, {
955
- x: t,
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: o,
958
- height: n,
880
+ width: n,
881
+ height: a,
959
882
  top: s,
960
- right: t + o,
961
- bottom: n + s,
962
- left: t
963
- }), r;
964
- }, Ar = function() {
965
- function e(t) {
966
- this.broadcastWidth = 0, this.broadcastHeight = 0, this.contentRect_ = we(0, 0, 0, 0), this.target = t;
967
- }
968
- return e.prototype.broadcastRect = function() {
969
- const t = this.contentRect_;
970
- return this.broadcastWidth = t.width, this.broadcastHeight = t.height, t;
971
- }, e.prototype.isActive = function() {
972
- const t = Er(this.target);
973
- return this.contentRect_ = t, t.width !== this.broadcastWidth || t.height !== this.broadcastHeight;
974
- }, e;
975
- }(), Tr = /* @__PURE__ */ function() {
976
- function e(t, s) {
977
- const o = Sr(s);
978
- At(this, { target: t, contentRect: o });
979
- }
980
- return e;
981
- }(), Fr = function() {
982
- function e(t, s, o) {
983
- if (this.observations_ = new St(), this.activeObservations_ = [], typeof t != "function")
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_ = t, this.controller_ = s, this.callbackCtx_ = o;
908
+ this.callback_ = r, this.controller_ = s, this.callbackCtx_ = n;
986
909
  }
987
- return e.prototype.observe = function(t) {
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 (!(t instanceof te(t).Element))
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(t) || (s.set(t, new Ar(t)), this.controller_.addObserver(this), this.controller_.refresh());
996
- }, e.prototype.unobserve = function(t) {
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 (!(t instanceof te(t).Element))
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(t) && (s.delete(t), !s.size && this.controller_.removeObserver(this));
1005
- }, e.prototype.gatherActive = function() {
1006
- const t = this;
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() && t.activeObservations_.push(s);
931
+ s.isActive() && r.activeObservations_.push(s);
1009
932
  });
1010
- }, e.prototype.disconnect = function() {
933
+ }, t.prototype.disconnect = function() {
1011
934
  this.clearActive(), this.observations_.clear(), this.controller_.removeObserver(this);
1012
- }, e.prototype.broadcastActive = function() {
935
+ }, t.prototype.broadcastActive = function() {
1013
936
  if (!this.hasActive())
1014
937
  return;
1015
- const t = this.callbackCtx_, s = this.activeObservations_.map(
1016
- (o) => new Tr(o.target, o.broadcastRect())
938
+ const r = this.callbackCtx_, s = this.activeObservations_.map(
939
+ (n) => new Nt(n.target, n.broadcastRect())
1017
940
  );
1018
- this.callback_.call(t, s, t), this.clearActive();
1019
- }, e.prototype.hasActive = function() {
941
+ this.callback_.call(r, s, r), this.clearActive();
942
+ }, t.prototype.hasActive = function() {
1020
943
  return this.activeObservations_.length > 0;
1021
- }, e.prototype.clearActive = function() {
944
+ }, t.prototype.clearActive = function() {
1022
945
  this.activeObservations_.splice(0);
1023
- }, e;
1024
- }(), Ft = typeof WeakMap < "u" ? /* @__PURE__ */ new WeakMap() : new St(), Mt = /* @__PURE__ */ function() {
1025
- function e(t) {
1026
- if (!(this instanceof e))
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 = wr.getInstance(), o = new Fr(t, s, this);
1031
- Ft.set(this, o);
953
+ const s = Rt.getInstance(), n = new Gt(r, s, this);
954
+ st.set(this, n);
1032
955
  }
1033
- return e;
956
+ return t;
1034
957
  }();
1035
- ["observe", "unobserve", "disconnect"].forEach((e) => {
1036
- Mt.prototype[e] = function() {
1037
- let t;
1038
- return (t = Ft.get(this))[e].apply(t, arguments);
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 be.ResizeObserver < "u" ? be.ResizeObserver : Mt;
965
+ return typeof le.ResizeObserver < "u" ? le.ResizeObserver : nt;
1043
966
  })();
1044
- const Mr = "tcirzywvqlkjhgfbZQG_FLOWHSUBDNIMYREVKCAJxp57XP043891T62-modnaesu";
1045
- Mr.split("").reverse().join("");
1046
- function Cr(e) {
1047
- return !S && (e.document.all || e.document.documentMode) && !e.crypto && e.msCrypto;
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 Ir(e) {
1050
- if (Cr(e)) {
1051
- e.crypto = e.msCrypto;
1052
- const t = e.crypto.getRandomValues;
1053
- e.crypto.getRandomValues = function(s) {
1054
- const o = t.call(e.crypto, s), n = [];
1055
- for (let r = 0; r < s.length; r++)
1056
- n[r] = o[r];
1057
- return n;
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 jr = globalThis;
1062
- Ir(jr);
1063
- let Re;
1064
- const zr = (e, t, s) => {
1065
- if (!e || !ee(e) || !t || typeof t != "string")
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
- }, He = ["\\d\\d?", "\\d{3}", "\\d{4}"], V = He[0], Vr = He[1], Ur = He[2], oe = "[^\\s]+", rt = () => {
1164
- }, It = (e, t) => {
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 o = 0, n = e.length; o < n; o++)
1167
- s.push(e[o].substr(0, t));
994
+ for (let n = 0, a = t.length; n < a; n++)
995
+ s.push(t[n].substr(0, r));
1168
996
  return s;
1169
- }, st = (e) => (t, s, o) => {
1170
- const n = o[e].indexOf(s.charAt(0).toUpperCase() + s.substr(1).toLowerCase());
1171
- ~n && (t.month = n);
1172
- }, qr = Ct.fullWeeks, Gr = Ct.fullMonths;
1173
- It(Gr, 3);
1174
- It(qr, 3);
1175
- const K = {
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
- V,
1178
- (e, t) => {
1179
- e.day = t;
1005
+ q,
1006
+ (t, r) => {
1007
+ t.day = r;
1180
1008
  }
1181
1009
  ],
1182
1010
  Do: [
1183
- V + oe,
1184
- (e, t) => {
1185
- e.day = parseInt(t, 10);
1011
+ q + ee,
1012
+ (t, r) => {
1013
+ t.day = parseInt(r, 10);
1186
1014
  }
1187
1015
  ],
1188
1016
  M: [
1189
- V,
1190
- (e, t) => {
1191
- e.month = t - 1;
1017
+ q,
1018
+ (t, r) => {
1019
+ t.month = r - 1;
1192
1020
  }
1193
1021
  ],
1194
1022
  yy: [
1195
- V,
1196
- (e, t) => {
1023
+ q,
1024
+ (t, r) => {
1197
1025
  const s = Number(String((/* @__PURE__ */ new Date()).getFullYear()).substr(0, 2));
1198
- e.year = String(t > 68 ? s - 1 : s) + t;
1026
+ t.year = String(r > 68 ? s - 1 : s) + r;
1199
1027
  }
1200
1028
  ],
1201
1029
  h: [
1202
- V,
1203
- (e, t) => {
1204
- e.hour = t;
1030
+ q,
1031
+ (t, r) => {
1032
+ t.hour = r;
1205
1033
  }
1206
1034
  ],
1207
1035
  m: [
1208
- V,
1209
- (e, t) => {
1210
- e.minute = t;
1036
+ q,
1037
+ (t, r) => {
1038
+ t.minute = r;
1211
1039
  }
1212
1040
  ],
1213
1041
  s: [
1214
- V,
1215
- (e, t) => {
1216
- e.second = t;
1042
+ q,
1043
+ (t, r) => {
1044
+ t.second = r;
1217
1045
  }
1218
1046
  ],
1219
1047
  yyyy: [
1220
- Ur,
1221
- (e, t) => {
1222
- e.year = t;
1048
+ Ut,
1049
+ (t, r) => {
1050
+ t.year = r;
1223
1051
  }
1224
1052
  ],
1225
1053
  S: [
1226
1054
  "\\d",
1227
- (e, t) => {
1228
- e.millisecond = t * 100;
1055
+ (t, r) => {
1056
+ t.millisecond = r * 100;
1229
1057
  }
1230
1058
  ],
1231
1059
  SS: [
1232
1060
  "\\d{2}",
1233
- (e, t) => {
1234
- e.millisecond = t * 10;
1061
+ (t, r) => {
1062
+ t.millisecond = r * 10;
1235
1063
  }
1236
1064
  ],
1237
1065
  SSS: [
1238
- Vr,
1239
- (e, t) => {
1240
- e.millisecond = t;
1066
+ Jt,
1067
+ (t, r) => {
1068
+ t.millisecond = r;
1241
1069
  }
1242
1070
  ],
1243
- D: [V, rt],
1244
- ddd: [oe, rt],
1245
- MMM: [oe, st("monthNamesShort")],
1246
- MMMM: [oe, st("monthNames")],
1071
+ D: [q, We],
1072
+ ddd: [ee, We],
1073
+ MMM: [ee, He("monthNamesShort")],
1074
+ MMMM: [ee, He("monthNames")],
1247
1075
  a: [
1248
- oe,
1249
- (e, t, s) => {
1250
- const o = t.toLowerCase();
1251
- o === s.amPm[0] ? e.isPm = !1 : o === s.amPm[1] && (e.isPm = !0);
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
- (e, t) => {
1257
- let s = String(t).match(/([+-]|\d\d)/gi), o;
1258
- s && (o = Number(s[1] * 60) + parseInt(s[2], 10), e.timezoneOffset = s[0] === "+" ? o : -o);
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
- }, Xr = ["A", "DD", "dd", "mm", "hh", "MM", "ss", "hh", "H", "HH"];
1262
- K.dddd = K.ddd;
1263
- Xr.forEach((e) => {
1264
- e === "MM" ? K[e] = K[e.substr(0, 1)] : K[e] = K[e.substr(0, 1).toLowerCase()];
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 js = (e, t, ...s) => {
1267
- let o = !1;
1268
- if (typeof e == "function") {
1269
- const n = document.createEvent("HTMLEvents");
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
- }(), Ce = (e) => {
1281
- e.scheduled || (e.scheduled = !0, e.raf($r.bind(null, e)));
1282
- }, $r = (e) => {
1283
- const { reads: t, writes: s } = e;
1284
- let o;
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
- e.runTasks(t), e.runTasks(s);
1287
- } catch (n) {
1288
- o = n;
1105
+ t.runTasks(r), t.runTasks(s);
1106
+ } catch (a) {
1107
+ n = a;
1289
1108
  }
1290
- if (e.scheduled = !1, (t.length || s.length) && Ce(e), o)
1291
- if (e.catch)
1292
- e.catch(o);
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 o;
1295
- }, ot = (e, t) => {
1296
- const s = e.indexOf(t);
1297
- return !!~s && !!e.splice(s, 1);
1298
- }, Qr = (e, t) => {
1299
- for (let s in t)
1300
- Object.hasOwnProperty.call(t, s) && (e[s] = t[s]);
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 Zr {
1121
+ class or {
1303
1122
  constructor() {
1304
- this.reads = [], this.writes = [], this.raf = Yr.bind(window);
1123
+ this.reads = [], this.writes = [], this.raf = rr.bind(window);
1305
1124
  }
1306
- runTasks(t) {
1125
+ runTasks(r) {
1307
1126
  let s;
1308
- for (; s = t.shift(); ) s();
1127
+ for (; s = r.shift(); ) s();
1309
1128
  }
1310
- measure(t, s) {
1311
- const o = s ? t.bind(s) : t;
1312
- return this.reads.push(o), Ce(this), o;
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(t, s) {
1315
- const o = s ? t.bind(s) : t;
1316
- return this.writes.push(o), Ce(this), o;
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(t) {
1319
- return ot(this.reads, t) || ot(this.writes, t);
1137
+ clear(r) {
1138
+ return Ne(this.reads, r) || Ne(this.writes, r);
1320
1139
  }
1321
- extend(t) {
1322
- if (!t || typeof t != "object") throw new Error("[TINY][FastDom] expected object");
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 Qr(s, t), s.fastdom = this, s.initialize && s.initialize(), s;
1143
+ return nr(s, r), s.fastdom = this, s.initialize && s.initialize(), s;
1325
1144
  }
1326
1145
  }
1327
- const jt = new Zr(), nt = (e, t, s, o) => {
1328
- const n = e._tasks, r = e.fastdom;
1329
- let a;
1330
- const l = new Promise(function(c, d) {
1331
- a = r[t](function() {
1332
- n.delete(l);
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
- c(o ? s.call(o) : s());
1335
- } catch (m) {
1336
- d(m);
1153
+ g(n ? s.call(n) : s());
1154
+ } catch (E) {
1155
+ A(E);
1337
1156
  }
1338
- }, o);
1157
+ }, n);
1339
1158
  });
1340
- return n.set(l, a), l;
1341
- }, Jr = {
1159
+ return a.set(u, c), u;
1160
+ }, ar = {
1342
1161
  initialize() {
1343
1162
  this._tasks = /* @__PURE__ */ new Map();
1344
1163
  },
1345
- mutate(e, t) {
1346
- return nt(this, "mutate", e, t);
1164
+ mutate(t, r) {
1165
+ return Ge(this, "mutate", t, r);
1347
1166
  },
1348
- measure(e, t) {
1349
- return nt(this, "measure", e, t);
1167
+ measure(t, r) {
1168
+ return Ge(this, "measure", t, r);
1350
1169
  },
1351
- clear(e) {
1352
- const t = this._tasks, s = t.get(e);
1353
- this.fastdom.clear(s), t.delete(e);
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
- jt.extend(Jr);
1357
- const Kr = (e, t) => {
1358
- let s = t.length;
1175
+ it.extend(ar);
1176
+ const ir = (t, r) => {
1177
+ let s = r.length;
1359
1178
  for (; s--; )
1360
- e.clear(t[s]), t.splice(s, 1);
1361
- }, es = (e, t) => {
1362
- const s = e.indexOf(t);
1363
- return !!~s && !!e.splice(s, 1);
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 ts {
1366
- constructor(t) {
1367
- this.fastdom = t, this.tasks = [];
1184
+ class ur {
1185
+ constructor(r) {
1186
+ this.fastdom = r, this.tasks = [];
1368
1187
  }
1369
- measure(t, s) {
1370
- const o = this.tasks, n = this.fastdom.measure(function() {
1371
- return o.splice(o.indexOf(n)), t.call(s);
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 o.push(n), n;
1192
+ return n.push(a), a;
1374
1193
  }
1375
- mutate(t, s) {
1376
- const o = this.tasks, n = this.fastdom.mutate(function() {
1377
- return o.splice(o.indexOf(n)), t.call(s);
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(n), n;
1198
+ return this.tasks.push(a), a;
1380
1199
  }
1381
- clear(t) {
1382
- return arguments.length || Kr(this.fastdom, this.tasks), es(this.tasks, t), this.fastdom.clear(t);
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 rs = {
1204
+ const cr = {
1386
1205
  sandbox() {
1387
- return new ts(this.fastdom);
1206
+ return new ur(this.fastdom);
1388
1207
  }
1389
1208
  };
1390
- jt.extend(rs);
1391
- const ss = [
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
- ], os = [
1217
+ ], dr = [
1399
1218
  "mozFullScreenElement",
1400
1219
  "mozFullScreenEnabled",
1401
1220
  "mozRequestFullScreen",
1402
1221
  "mozCancelFullScreen",
1403
1222
  "mozfullscreenchange",
1404
1223
  "mozfullscreenerror"
1405
- ], ns = [
1224
+ ], hr = [
1406
1225
  "webkitFullscreenElement",
1407
1226
  "webkitFullscreenEnabled",
1408
1227
  "webkitRequestFullscreen",
1409
1228
  "webkitExitFullscreen",
1410
1229
  "webkitfullscreenchange",
1411
1230
  "webkitfullscreenerror"
1412
- ], is = [
1231
+ ], pr = [
1413
1232
  "msFullscreenElement",
1414
1233
  "msFullscreenEnabled",
1415
1234
  "msRequestFullscreen",
1416
1235
  "msExitFullscreen",
1417
1236
  "MSFullscreenChange",
1418
1237
  "MSFullscreenError"
1419
- ], Se = [ss, ns, os, is], W = typeof window < "u" && typeof window.document < "u" ? window.document : {};
1420
- let A = null;
1421
- const as = () => {
1422
- if (!S)
1423
- for (let e = 0, t = Se.length; e < t; e++) {
1424
- let s = Se[e];
1425
- if (s && s[1] in W) {
1426
- for (A = {}, e = 0; e < s.length; e++)
1427
- A[Se[0][e]] = s[e];
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
- as();
1433
- const it = {
1434
- change: A && A.fullscreenchange,
1435
- error: A && A.fullscreenerror
1436
- }, Ie = {
1437
- request(e, t) {
1438
- return new Promise((s, o) => {
1439
- const n = () => {
1440
- this.off("change", n), s();
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", n), e = e || (S ? null : W.documentElement), e && A && e[A.requestFullscreen]) {
1443
- const r = e[A.requestFullscreen](t);
1444
- r instanceof Promise && r.then(n).catch(o);
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
- o(new Error("Fullscreen API not supported or element is null."));
1265
+ n(new Error("Fullscreen API not supported or element is null."));
1447
1266
  });
1448
1267
  },
1449
1268
  exit() {
1450
- return new Promise((e, t) => {
1269
+ return new Promise((t, r) => {
1451
1270
  if (!this.isFullscreen) {
1452
- e();
1271
+ t();
1453
1272
  return;
1454
1273
  }
1455
1274
  const s = () => {
1456
- this.off("change", s), e();
1275
+ this.off("change", s), t();
1457
1276
  };
1458
- if (this.on("change", s), !S && A && W[A.exitFullscreen]) {
1459
- const o = W[A.exitFullscreen]();
1460
- o instanceof Promise && o.then(s).catch(t);
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
- t(new Error("Fullscreen API not supported."));
1281
+ r(new Error("Fullscreen API not supported."));
1463
1282
  });
1464
1283
  },
1465
- toggle(e, t) {
1466
- return this.isFullscreen ? this.exit() : this.request(e, t);
1284
+ toggle(t, r) {
1285
+ return this.isFullscreen ? this.exit() : this.request(t, r);
1467
1286
  },
1468
- onchange(e) {
1469
- this.on("change", e);
1287
+ onchange(t) {
1288
+ this.on("change", t);
1470
1289
  },
1471
- onerror(e) {
1472
- this.on("error", e);
1290
+ onerror(t) {
1291
+ this.on("error", t);
1473
1292
  },
1474
- on(e, t) {
1475
- const s = it[e];
1476
- s && !S && R(W, s, t);
1293
+ on(t, r) {
1294
+ const s = Ye[t];
1295
+ s && !O && Q(B, s, r);
1477
1296
  },
1478
- off(e, t) {
1479
- const s = it[e];
1480
- s && !S && Y(W, s, t);
1297
+ off(t, r) {
1298
+ const s = Ye[t];
1299
+ s && !O && ie(B, s, r);
1481
1300
  },
1482
- raw: A || {}
1301
+ raw: S || {}
1483
1302
  };
1484
- S ? Object.defineProperties(Ie, {
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(Ie, {
1321
+ }) : Object.defineProperties(_e, {
1503
1322
  isFullscreen: {
1504
1323
  get() {
1505
- return !!W[A && A.fullscreenElement];
1324
+ return !!B[S && S.fullscreenElement];
1506
1325
  }
1507
1326
  },
1508
1327
  element: {
1509
1328
  enumerable: !0,
1510
1329
  get() {
1511
- return W[A && A.fullscreenElement];
1330
+ return B[S && S.fullscreenElement];
1512
1331
  }
1513
1332
  },
1514
1333
  isEnabled: {
1515
1334
  enumerable: !0,
1516
1335
  get() {
1517
- return !!W[A && A.fullscreenEnabled];
1336
+ return !!B[S && S.fullscreenEnabled];
1518
1337
  }
1519
1338
  }
1520
1339
  });
1521
- Ie.isEnabled;
1522
- function ls(e, t, s, o) {
1523
- let n, r = 0;
1524
- typeof t != "boolean" && (o = s, s = t, t = void 0);
1525
- function a() {
1526
- const c = this, d = (/* @__PURE__ */ new Date()).valueOf() - r, m = arguments;
1527
- function i() {
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 Wt = function(e) {
1553
- clearTimeout(je[e]), delete We[e], delete je[e];
1554
- }, ps = function() {
1555
- Bt = setTimeout(() => {
1556
- $.close();
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
- }, N = function(e, t) {
1559
- let s = cs++;
1560
- if (s = String(s), e.cid = s, !Q) {
1561
- t && setTimeout(t, 0, { ok: !1, message: "eSpace is not logged in." });
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 t == "function" && (We[s] = t, je[s] = setTimeout(() => {
1565
- t({ ok: !1, message: "time out" }), Wt(s);
1566
- }, Pt)), $.send(JSON.stringify(e));
1567
- }, Nt = function() {
1568
- lt = setTimeout(() => {
1569
- Q ? N(
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
- Nt();
1370
+ gt();
1575
1371
  }
1576
- ) : clearTimeout(lt);
1577
- }, us);
1578
- }, ds = function(e) {
1579
- Q = !0, Nt(), clearTimeout(Lt), clearTimeout(Bt), Ht(e);
1580
- }, hs = function(e) {
1581
- let t = e.data;
1582
- if (typeof t == "string" && (t = t.replace(/^\d+/, ""), !!t)) {
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
- t = JSON.parse(t);
1380
+ r = JSON.parse(r);
1585
1381
  } catch (s) {
1586
1382
  return !s;
1587
1383
  }
1588
- if (Q) {
1589
- let s = Rt[t.type];
1384
+ if (X) {
1385
+ let s = dt[r.type];
1590
1386
  if (s)
1591
- return s(t.data);
1592
- let o = t.cid, n = We[o];
1593
- n && (t.ok ? n(null, t.data) : n({ ok: t.ok }), Wt(o));
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
- t.type === "eSpace-ctrl-connection-success" ? ds(t.data) : $.close();
1596
- }
1597
- }, ms = function() {
1598
- $.onopen = ps, $.onclose = gs, $.onmessage = hs;
1599
- }, Vt = function(e) {
1600
- Lt = setTimeout(() => {
1601
- Ae >= at.length && (Ae = 0), $ = new WebSocket(fs + ":" + at[Ae++]), ms();
1602
- }, e || 0);
1603
- }, gs = function() {
1604
- (Q || typeof Q > "u") && (Q = !1, Dt()), Vt(zt);
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
- C.init = function(e) {
1607
- e && (Pt = e.timeout || 3e4, zt = e.pollingInterval || 0), Vt();
1402
+ I.init = function(t) {
1403
+ t && (ut = t.timeout || 3e4, lt = t.pollingInterval || 0), bt();
1608
1404
  };
1609
- C.ready = function(e) {
1610
- Ht = e;
1405
+ I.ready = function(t) {
1406
+ pt = t;
1611
1407
  };
1612
- C.error = function(e) {
1613
- Dt = e;
1408
+ I.error = function(t) {
1409
+ ht = t;
1614
1410
  };
1615
- const ft = function(e, t, s) {
1616
- let o = [];
1617
- for (let n = 0; n < t; n++) {
1618
- let r = e;
1619
- n && (r += n);
1620
- let a = s[r];
1621
- a && o.push(a);
1622
- }
1623
- return o;
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
- C.on = function(e, t) {
1626
- Rt[e] = t;
1421
+ I.on = function(t, r) {
1422
+ dt[t] = r;
1627
1423
  };
1628
- C.getUserInfo = function(e, t) {
1629
- N(
1424
+ I.getUserInfo = function(t, r) {
1425
+ V(
1630
1426
  {
1631
1427
  type: "get-user-info",
1632
- param: e
1428
+ param: t
1633
1429
  },
1634
- function(s, o) {
1430
+ function(s, n) {
1635
1431
  if (s)
1636
- return t(s);
1637
- const n = function(r) {
1432
+ return r(s);
1433
+ const a = function(e) {
1638
1434
  return {
1639
- account: r.account,
1640
- name: r.name,
1641
- mobile: ft("mobile", 6, r),
1642
- office_phone: ft("office_phone", 6, r),
1643
- home_phone: r.home_phone,
1644
- ip_phone: r.ip_phone,
1645
- other_phone: r.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 (o.account)
1649
- t(null, n(o));
1444
+ if (n.account)
1445
+ r(null, a(n));
1650
1446
  else {
1651
- let r = {};
1652
- for (let a in o)
1653
- if (Object.prototype.hasOwnProperty.call(o, a)) {
1654
- let l = o[a];
1655
- r[a] = l && n(l);
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
- t(null, r);
1453
+ r(null, e);
1658
1454
  }
1659
1455
  }
1660
1456
  );
1661
1457
  };
1662
- C.subscribeUserStatus = function(e, t) {
1663
- Array.isArray(e) && e.forEach((s) => {
1664
- }), N(
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: e
1463
+ param: t
1668
1464
  },
1669
- t
1465
+ r
1670
1466
  );
1671
1467
  };
1672
- C.eSpaceCall = function(e, t, s) {
1673
- N(
1468
+ I.eSpaceCall = function(t, r, s) {
1469
+ V(
1674
1470
  {
1675
1471
  type: "espace-call",
1676
1472
  param: {
1677
- account: e,
1678
- number: t
1473
+ account: t,
1474
+ number: r
1679
1475
  }
1680
1476
  },
1681
1477
  s
1682
1478
  );
1683
1479
  };
1684
- C.eSpaceCallByAccount = function(e, t) {
1685
- N(
1480
+ I.eSpaceCallByAccount = function(t, r) {
1481
+ V(
1686
1482
  {
1687
1483
  type: "espace-call",
1688
1484
  param: {
1689
- account: e
1485
+ account: t
1690
1486
  }
1691
1487
  },
1692
- t
1488
+ r
1693
1489
  );
1694
1490
  };
1695
- C.eSpaceCallByNumber = function(e, t) {
1696
- N(
1491
+ I.eSpaceCallByNumber = function(t, r) {
1492
+ V(
1697
1493
  {
1698
1494
  type: "espace-call",
1699
1495
  param: {
1700
- number: e
1496
+ number: t
1701
1497
  }
1702
1498
  },
1703
- t
1499
+ r
1704
1500
  );
1705
1501
  };
1706
- C.showImDialog = function(e, t) {
1707
- N(
1502
+ I.showImDialog = function(t, r) {
1503
+ V(
1708
1504
  {
1709
1505
  type: "show-espace-im-dialog",
1710
- param: e
1506
+ param: t
1711
1507
  },
1712
- t
1508
+ r
1713
1509
  );
1714
1510
  };
1715
- C.showGroupDialog = function(e, t) {
1716
- N(
1511
+ I.showGroupDialog = function(t, r) {
1512
+ V(
1717
1513
  {
1718
1514
  type: "show-espace-im-group-dialog",
1719
- param: e
1515
+ param: t
1720
1516
  },
1721
- t
1517
+ r
1722
1518
  );
1723
1519
  };
1724
- C.addContactList = function(e, t) {
1725
- N(
1520
+ I.addContactList = function(t, r) {
1521
+ V(
1726
1522
  {
1727
1523
  type: "add-contact-list",
1728
- param: e
1524
+ param: t
1729
1525
  },
1730
- t
1526
+ r
1731
1527
  );
1732
1528
  };
1733
- if (S || !window.WebSocket) {
1734
- const e = function() {
1529
+ if (O || !window.WebSocket) {
1530
+ const t = function() {
1735
1531
  };
1736
- for (let t in C)
1737
- Object.prototype.hasOwnProperty.call(C, t) && typeof C[t] == "function" && (C[t] = e);
1532
+ for (let r in I)
1533
+ Object.prototype.hasOwnProperty.call(I, r) && typeof I[r] == "function" && (I[r] = t);
1738
1534
  }
1739
- const pe = {}, ne = {
1535
+ const ae = {}, te = {
1740
1536
  leave: "v-modal-leave",
1741
1537
  enter: "v-modal-enter",
1742
1538
  modal: "v-modal"
1743
- }, bs = (e, t) => {
1744
- for (let s = e.length - 1; s >= 0; s--)
1745
- if (e[s].id === t) {
1746
- e.splice(s, 1);
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 ze;
1751
- const T = {
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 e = window.innerWidth - document.documentElement.clientWidth;
1767
- e && (this.oldBodyBorder = document.documentElement.style.borderRight, document.body.style.borderRight = `${e}px solid transparent`);
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: (e) => {
1774
- e && (pe[e] = null, delete pe[e]);
1569
+ deregister: (t) => {
1570
+ t && (ae[t] = null, delete ae[t]);
1775
1571
  },
1776
1572
  /** 返回全局实例 */
1777
- getInstance: (e) => pe[e],
1573
+ getInstance: (t) => ae[t],
1778
1574
  /** 全局注册 仅vue-popup.ts中使用,instance就是vm, 把vm注册到 vm._popupId 这个键值上 */
1779
- register: (e, t) => {
1780
- e && t && (pe[e] = t);
1575
+ register: (t, r) => {
1576
+ t && r && (ae[t] = r);
1781
1577
  },
1782
1578
  nextZIndex: () => {
1783
- const e = T.zIndex;
1784
- return T.zIndex += T.step, e;
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(e, t, s, o, n) {
1788
- if (S || !e || t === void 0)
1583
+ openModal(t, r, s, n, a) {
1584
+ if (O || !t || r === void 0)
1789
1585
  return;
1790
- this.modalFade = n;
1791
- for (let l = 0, c = this.modalStack.length; l < c; l++)
1792
- if (this.modalStack[l].id === e)
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 r = ze();
1795
- ce(r, ne.modal), this.modalFade && !T.hasModal && ce(r, ne.enter), o && o.trim().split(/\s+/).forEach((l) => ce(r, l)), setTimeout(() => {
1796
- ue(r, ne.enter);
1797
- }, 200), t && (r.style.zIndex = t.toString()), r.style.display = "", r.tabIndex = 0;
1798
- let a;
1799
- s && s.parentNode && s.parentNode.nodeType !== 11 ? a = s.parentNode : a = document.body, a.appendChild(r), this.modalStack.push({ id: e, zIndex: t, modalClass: o });
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 e = T.modalStack, t = e[e.length - 1];
1804
- if (!t)
1599
+ const t = M.modalStack, r = t[t.length - 1];
1600
+ if (!r)
1805
1601
  return;
1806
- const s = T.getInstance(t.id);
1602
+ const s = M.getInstance(r.id);
1807
1603
  s && s.closeOnClickModal && typeof s.close == "function" && s.close();
1808
1604
  },
1809
- closeModal(e) {
1810
- const t = this.modalStack, s = ze();
1811
- if (t.length > 0) {
1812
- const o = t[t.length - 1];
1813
- if (o.id === e) {
1814
- o.modalClass && o.modalClass.trim().split(/\s+/).forEach((r) => ue(s, r)), t.pop();
1815
- const n = t.length;
1816
- n > 0 && (s.style.zIndex = t[n - 1].zIndex.toString());
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
- bs(t, e);
1614
+ Er(r, t);
1819
1615
  }
1820
- t.length === 0 && (this.modalFade && ce(s, ne.leave), ue(document.body, this.popLockClass), this.resetBodyBorder(), setTimeout(() => {
1821
- t.length === 0 && (s.parentNode && s.parentNode.removeChild(s), s.style.display = "none", T.modalDom = null), ue(s, ne.leave);
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
- ze = () => {
1826
- if (S)
1621
+ Se = () => {
1622
+ if (O)
1827
1623
  return null;
1828
- let e = T.modalDom;
1829
- return e ? T.hasModal = !0 : (T.hasModal = !1, e = document.createElement("div"), T.modalDom = e, e.addEventListener(
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
- (t) => {
1832
- t.preventDefault(), t.stopPropagation();
1627
+ (r) => {
1628
+ r.preventDefault(), r.stopPropagation();
1833
1629
  },
1834
1630
  { passive: !0 }
1835
- ), R(e, "click", () => {
1836
- T.doOnModalClick();
1837
- })), e;
1631
+ ), Q(t, "click", () => {
1632
+ M.doOnModalClick();
1633
+ })), t;
1838
1634
  };
1839
- S || R(window, "keydown", (e) => {
1840
- if (e.keyCode === Nr.Escape) {
1841
- const t = T.modalStack;
1842
- if (t.length > 0) {
1843
- const s = t[t.length - 1];
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 o = T.getInstance(s.id);
1847
- o && o.closeOnPressEscape && (o.handleClose ? o.handleClose("esc") : o.handleAction ? o.handleAction("cancel") : o.close());
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
- const ys = ["left", "right", "top", "bottom"], Ut = ["shift", "offset", "preventOverflow", "keepTogether", "arrow", "flip", "applyStyle"], ws = {
1852
- arrowOffset: 0,
1853
- arrowElement: "[x-arrow]",
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
- }) : null;
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
- Ct as DATEPICKER,
2166
- Nr as KEY_CODE,
2167
- Ls as PopperJS,
2168
- T as PopupManager,
2169
- ce as addClass,
2170
- Ts as camelize,
2171
- Fs as capitalize,
2172
- Br as copyArray,
2173
- Lr as copyField,
2174
- Ps as debounce,
2175
- js as emitEvent,
2176
- Re as extend,
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
  };