@opentiny/tiny-robot 0.1.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (260) hide show
  1. package/.vscode/extensions.json +3 -0
  2. package/README.md +1 -0
  3. package/dist/_virtual/_plugin-vue_export-helper.js +9 -0
  4. package/dist/bubble-item/components/actions/copy.vue.d.ts +10 -0
  5. package/dist/bubble-item/components/actions/index.d.ts +2 -0
  6. package/dist/bubble-item/components/actions/refresh.vue.d.ts +2 -0
  7. package/dist/bubble-item/components/icons/ai.vue.d.ts +2 -0
  8. package/dist/bubble-item/components/icons/index.d.ts +2 -0
  9. package/dist/bubble-item/components/icons/user.vue.d.ts +2 -0
  10. package/dist/bubble-item/index.d.ts +7 -0
  11. package/dist/bubble-list/bubble-list.vue.d.ts +5 -0
  12. package/dist/bubble-list/index.d.ts +8 -0
  13. package/dist/bubble-list/index.type.d.ts +55 -0
  14. package/dist/conversations/index.d.ts +7 -0
  15. package/dist/conversations/index.vue.d.ts +2 -0
  16. package/dist/index.d.ts +12 -0
  17. package/dist/index.js +29 -0
  18. package/dist/node_modules/.pnpm/@opentiny_utils@3.22.0/node_modules/@opentiny/utils/dist/index.es.js +2202 -0
  19. package/dist/node_modules/.pnpm/@opentiny_vue-button@3.22.0/node_modules/@opentiny/vue-button/lib/index.js +113 -0
  20. package/dist/node_modules/.pnpm/@opentiny_vue-button@3.22.0/node_modules/@opentiny/vue-button/lib/pc.js +93 -0
  21. package/dist/node_modules/.pnpm/@opentiny_vue-common@3.22.0/node_modules/@opentiny/vue-common/lib/index.js +725 -0
  22. package/dist/node_modules/.pnpm/@opentiny_vue-dialog-box@3.22.0/node_modules/@opentiny/vue-dialog-box/lib/index.js +198 -0
  23. package/dist/node_modules/.pnpm/@opentiny_vue-dialog-box@3.22.0/node_modules/@opentiny/vue-dialog-box/lib/pc.js +204 -0
  24. package/dist/node_modules/.pnpm/@opentiny_vue-directive@3.22.0/node_modules/@opentiny/vue-directive/index.js +57 -0
  25. package/dist/node_modules/.pnpm/@opentiny_vue-hooks@3.22.0/node_modules/@opentiny/vue-hooks/dist/src/useEventListener.js +10 -0
  26. package/dist/node_modules/.pnpm/@opentiny_vue-hooks@3.22.0/node_modules/@opentiny/vue-hooks/dist/src/useInstanceSlots.js +14 -0
  27. package/dist/node_modules/.pnpm/@opentiny_vue-hooks@3.22.0/node_modules/@opentiny/vue-hooks/dist/src/useRelation.js +54 -0
  28. package/dist/node_modules/.pnpm/@opentiny_vue-hooks@3.22.0/node_modules/@opentiny/vue-hooks/dist/src/vue-popper.js +85 -0
  29. package/dist/node_modules/.pnpm/@opentiny_vue-hooks@3.22.0/node_modules/@opentiny/vue-hooks/dist/src/vue-popup.js +69 -0
  30. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/close.js +29 -0
  31. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/eyeclose.js +42 -0
  32. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/eyeopen.js +43 -0
  33. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/finish.js +34 -0
  34. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/fullscreen.js +30 -0
  35. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/loading-shadow.js +78 -0
  36. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/minscreen.js +30 -0
  37. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-add-column-after.js +24 -0
  38. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-add-column-before.js +24 -0
  39. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-add-row-after.js +24 -0
  40. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-add-row-before.js +24 -0
  41. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-align-center.js +24 -0
  42. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-align-left.js +24 -0
  43. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-align-right.js +24 -0
  44. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-bold.js +24 -0
  45. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-code-block.js +24 -0
  46. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-code-view.js +24 -0
  47. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-color.js +24 -0
  48. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-delete-column.js +24 -0
  49. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-delete-row.js +24 -0
  50. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-delete-table.js +24 -0
  51. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-font-size.js +24 -0
  52. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-format-clear.js +24 -0
  53. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-h1.js +24 -0
  54. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-h2.js +24 -0
  55. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-h3.js +24 -0
  56. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-h4.js +24 -0
  57. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-h5.js +24 -0
  58. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-h6.js +24 -0
  59. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-heading.js +24 -0
  60. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-high-light.js +24 -0
  61. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-image.js +24 -0
  62. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-italic.js +24 -0
  63. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-line-height.js +24 -0
  64. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-link-unlink.js +24 -0
  65. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-link.js +24 -0
  66. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-list-ordered.js +24 -0
  67. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-list-unordered.js +24 -0
  68. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-merge-cells-vertical.js +24 -0
  69. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-merge-cells.js +24 -0
  70. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-node-delete.js +24 -0
  71. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-paragraph.js +24 -0
  72. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-quote-text.js +24 -0
  73. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-redo.js +24 -0
  74. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-split-cells-horizontal.js +24 -0
  75. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-split-cells-vertical.js +24 -0
  76. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-strike-through.js +24 -0
  77. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-subscript.js +24 -0
  78. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-superscript.js +24 -0
  79. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-table.js +24 -0
  80. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-task-list.js +24 -0
  81. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-underline.js +24 -0
  82. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-undo.js +24 -0
  83. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/sub-script.js +29 -0
  84. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/warn.js +26 -0
  85. package/dist/node_modules/.pnpm/@opentiny_vue-input@3.22.0/node_modules/@opentiny/vue-input/lib/index.js +196 -0
  86. package/dist/node_modules/.pnpm/@opentiny_vue-input@3.22.0/node_modules/@opentiny/vue-input/lib/pc.js +568 -0
  87. package/dist/node_modules/.pnpm/@opentiny_vue-locale@3.22.0/node_modules/@opentiny/vue-locale/lib/index.js +1783 -0
  88. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.22.0/node_modules/@opentiny/vue-renderless/button/index.js +13 -0
  89. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.22.0/node_modules/@opentiny/vue-renderless/button/vue.js +34 -0
  90. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.22.0/node_modules/@opentiny/vue-renderless/chunk-G2ADBYYC.js +12 -0
  91. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.22.0/node_modules/@opentiny/vue-renderless/dialog-box/index.js +135 -0
  92. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.22.0/node_modules/@opentiny/vue-renderless/dialog-box/vue.js +149 -0
  93. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.22.0/node_modules/@opentiny/vue-renderless/input/index.js +228 -0
  94. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.22.0/node_modules/@opentiny/vue-renderless/input/vue.js +263 -0
  95. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.22.0/node_modules/@opentiny/vue-renderless/tall-storage/index.js +63 -0
  96. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.22.0/node_modules/@opentiny/vue-renderless/tall-storage/vue-storage-box.js +16 -0
  97. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.22.0/node_modules/@opentiny/vue-renderless/tall-storage/vue.js +23 -0
  98. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.22.0/node_modules/@opentiny/vue-renderless/tooltip/index.js +77 -0
  99. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.22.0/node_modules/@opentiny/vue-renderless/tooltip/vue.js +90 -0
  100. package/dist/node_modules/.pnpm/@opentiny_vue-tooltip@3.22.0/node_modules/@opentiny/vue-tooltip/lib/index.js +176 -0
  101. package/dist/node_modules/.pnpm/@opentiny_vue-tooltip@3.22.0/node_modules/@opentiny/vue-tooltip/lib/pc.js +248 -0
  102. package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/decode.js +277 -0
  103. package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/decode_codepoint.js +46 -0
  104. package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/generated/decode-data-html.js +7 -0
  105. package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/generated/decode-data-xml.js +7 -0
  106. package/dist/node_modules/.pnpm/linkify-it@5.0.0/node_modules/linkify-it/index.js +187 -0
  107. package/dist/node_modules/.pnpm/linkify-it@5.0.0/node_modules/linkify-it/lib/re.js +19 -0
  108. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Symbol.js +5 -0
  109. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGetTag.js +10 -0
  110. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseTrim.js +8 -0
  111. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_freeGlobal.js +4 -0
  112. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getRawTag.js +15 -0
  113. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_objectToString.js +7 -0
  114. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_root.js +5 -0
  115. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_trimmedEndIndex.js +9 -0
  116. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/debounce.js +54 -0
  117. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObject.js +7 -0
  118. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObjectLike.js +6 -0
  119. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isSymbol.js +9 -0
  120. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/now.js +7 -0
  121. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/toNumber.js +22 -0
  122. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/common/html_blocks.js +67 -0
  123. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/common/html_re.js +5 -0
  124. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/common/utils.js +164 -0
  125. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/index.js +8 -0
  126. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/parse_link_destination.js +44 -0
  127. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/parse_link_label.js +21 -0
  128. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/parse_link_title.js +37 -0
  129. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/index.js +112 -0
  130. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/parser_block.js +63 -0
  131. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/parser_core.js +34 -0
  132. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/parser_inline.js +96 -0
  133. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/presets/commonmark.js +78 -0
  134. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/presets/default.js +40 -0
  135. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/presets/zero.js +59 -0
  136. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/renderer.js +127 -0
  137. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/ruler.js +95 -0
  138. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/blockquote.js +59 -0
  139. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/code.js +23 -0
  140. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/fence.js +30 -0
  141. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/heading.js +28 -0
  142. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/hr.js +27 -0
  143. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/html_block.js +37 -0
  144. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/lheading.js +43 -0
  145. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/list.js +110 -0
  146. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/paragraph.js +25 -0
  147. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/reference.js +95 -0
  148. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/state_block.js +84 -0
  149. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/table.js +99 -0
  150. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/block.js +7 -0
  151. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/inline.js +10 -0
  152. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/linkify.js +57 -0
  153. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/normalize.js +9 -0
  154. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/replacements.js +31 -0
  155. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/smartquotes.js +80 -0
  156. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/state_core.js +8 -0
  157. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/text_join.js +16 -0
  158. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/autolink.js +46 -0
  159. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/backticks.js +31 -0
  160. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/balance_pairs.js +34 -0
  161. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/emphasis.js +57 -0
  162. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/entity.js +33 -0
  163. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/escape.js +32 -0
  164. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/fragments_join.js +10 -0
  165. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/html_inline.js +32 -0
  166. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/image.js +48 -0
  167. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/link.js +40 -0
  168. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/linkify.js +28 -0
  169. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/newline.js +23 -0
  170. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/state_inline.js +27 -0
  171. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/strikethrough.js +54 -0
  172. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/text.js +39 -0
  173. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/token.js +31 -0
  174. package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/index.js +10 -0
  175. package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/decode.js +61 -0
  176. package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/encode.js +48 -0
  177. package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/format.js +7 -0
  178. package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/parse.js +74 -0
  179. package/dist/node_modules/.pnpm/punycode.js@2.3.1/node_modules/punycode.js/punycode.es6.js +139 -0
  180. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Cc/regex.js +4 -0
  181. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Cf/regex.js +4 -0
  182. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/P/regex.js +4 -0
  183. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/S/regex.js +4 -0
  184. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Z/regex.js +4 -0
  185. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/index.js +14 -0
  186. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/properties/Any/regex.js +4 -0
  187. package/dist/packages/components/src/assets/icons/accessory.svg.js +4 -0
  188. package/dist/packages/components/src/assets/icons/loading-speech.svg.js +4 -0
  189. package/dist/packages/components/src/assets/icons/loading.svg.js +4 -0
  190. package/dist/packages/components/src/assets/icons/send.svg.js +4 -0
  191. package/dist/packages/components/src/assets/icons/voice.svg.js +4 -0
  192. package/dist/packages/components/src/bubble-item/bubble-item.vue.js +7 -0
  193. package/dist/packages/components/src/bubble-item/bubble-item.vue2.js +111 -0
  194. package/dist/packages/components/src/bubble-item/components/actions/copy.vue.js +46 -0
  195. package/dist/packages/components/src/bubble-item/components/actions/copy.vue2.js +4 -0
  196. package/dist/packages/components/src/bubble-item/components/actions/refresh.vue.js +12 -0
  197. package/dist/packages/components/src/bubble-item/components/icons/ai.vue.js +45 -0
  198. package/dist/packages/components/src/bubble-item/components/icons/user.vue.js +63 -0
  199. package/dist/packages/components/src/bubble-item/index.js +9 -0
  200. package/dist/packages/components/src/bubble-list/bubble-list.vue.js +7 -0
  201. package/dist/packages/components/src/bubble-list/bubble-list.vue2.js +52 -0
  202. package/dist/packages/components/src/bubble-list/index.js +9 -0
  203. package/dist/packages/components/src/conversations/index.js +9 -0
  204. package/dist/packages/components/src/conversations/index.vue.js +9 -0
  205. package/dist/packages/components/src/sender/components/ActionButtons.vue.js +161 -0
  206. package/dist/packages/components/src/sender/components/ActionButtons.vue2.js +4 -0
  207. package/dist/packages/components/src/sender/composables/useInputHandler.js +34 -0
  208. package/dist/packages/components/src/sender/composables/useKeyboardHandler.js +31 -0
  209. package/dist/packages/components/src/sender/composables/useSpeechHandler.js +67 -0
  210. package/dist/packages/components/src/sender/index.js +9 -0
  211. package/dist/packages/components/src/sender/index.vue.js +233 -0
  212. package/dist/packages/components/src/sender/index.vue2.js +4 -0
  213. package/dist/packages/components/src/welcome/index.js +9 -0
  214. package/dist/packages/components/src/welcome/index.vue.js +9 -0
  215. package/dist/sender/components/ActionButtons.vue.d.ts +23 -0
  216. package/dist/sender/composables/useInputHandler.d.ts +17 -0
  217. package/dist/sender/composables/useKeyboardHandler.d.ts +18 -0
  218. package/dist/sender/composables/useSpeechHandler.d.ts +14 -0
  219. package/dist/sender/index.d.ts +7 -0
  220. package/dist/sender/index.type.d.ts +90 -0
  221. package/dist/sender/index.vue.d.ts +948 -0
  222. package/dist/style.css +1 -0
  223. package/dist/welcome/index.d.ts +7 -0
  224. package/dist/welcome/index.vue.d.ts +2 -0
  225. package/package.json +42 -0
  226. package/src/assets/icons/accessory.svg +12 -0
  227. package/src/assets/icons/loading-speech.svg +16 -0
  228. package/src/assets/icons/loading.svg +17 -0
  229. package/src/assets/icons/send.svg +21 -0
  230. package/src/assets/icons/voice.svg +22 -0
  231. package/src/bubble-item/bubble-item.vue +264 -0
  232. package/src/bubble-item/components/actions/copy.vue +47 -0
  233. package/src/bubble-item/components/actions/index.ts +2 -0
  234. package/src/bubble-item/components/actions/refresh.vue +27 -0
  235. package/src/bubble-item/components/icons/ai.vue +30 -0
  236. package/src/bubble-item/components/icons/index.ts +2 -0
  237. package/src/bubble-item/components/icons/user.vue +78 -0
  238. package/src/bubble-item/index.ts +12 -0
  239. package/src/bubble-list/bubble-list.vue +53 -0
  240. package/src/bubble-list/index.ts +14 -0
  241. package/src/bubble-list/index.type.ts +65 -0
  242. package/src/conversations/index.ts +12 -0
  243. package/src/conversations/index.vue +3 -0
  244. package/src/index.ts +30 -0
  245. package/src/sender/components/ActionButtons.vue +165 -0
  246. package/src/sender/composables/useInputHandler.ts +69 -0
  247. package/src/sender/composables/useKeyboardHandler.ts +99 -0
  248. package/src/sender/composables/useSpeechHandler.ts +128 -0
  249. package/src/sender/global.d.ts +44 -0
  250. package/src/sender/index.less +344 -0
  251. package/src/sender/index.ts +12 -0
  252. package/src/sender/index.type.ts +111 -0
  253. package/src/sender/index.vue +289 -0
  254. package/src/sender/vars.less +84 -0
  255. package/src/vite-env.d.ts +1 -0
  256. package/src/welcome/index.ts +12 -0
  257. package/src/welcome/index.vue +3 -0
  258. package/tsconfig.json +37 -0
  259. package/tsconfig.node.json +10 -0
  260. package/vite.config.ts +53 -0
@@ -0,0 +1,2202 @@
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;
8
+ }
9
+ function t(r, a, l) {
10
+ }
11
+ function s(r, a, l) {
12
+ }
13
+ var o = /javascript\s*\:/img;
14
+ function n(r, a) {
15
+ return o.test(a) ? "" : a;
16
+ }
17
+ return X.whiteList = e(), X.getDefaultWhiteList = e, X.onAttr = t, X.onIgnoreAttr = s, X.safeAttrValue = n, X;
18
+ }
19
+ var Ve, Ue;
20
+ function mt() {
21
+ return Ue || (Ue = 1, Ve = {
22
+ indexOf: function(e, t) {
23
+ var s, o;
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)
28
+ return s;
29
+ return -1;
30
+ },
31
+ forEach: function(e, t, s) {
32
+ var o, n;
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);
37
+ },
38
+ trim: function(e) {
39
+ return String.prototype.trim ? e.trim() : e.replace(/(^\s*)|(\s*$)/g, "");
40
+ },
41
+ trimRight: function(e) {
42
+ return String.prototype.trimRight ? e.trimRight() : e.replace(/(\s*$)/g, "");
43
+ }
44
+ }), Ve;
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 + "; ");
62
+ }
63
+ }
64
+ }
65
+ a = l + 1;
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();
75
+ }
76
+ return e.trim(c);
77
+ }
78
+ return Oe = t, Oe;
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,
106
+ source: F,
107
+ isWhite: b
108
+ };
109
+ if (b) {
110
+ var O = d(w, g, I);
111
+ return s(O) ? w + ":" + g : O;
112
+ } else {
113
+ var O = m(w, g, I);
114
+ if (!s(O))
115
+ return O;
116
+ }
117
+ }
118
+ });
119
+ return u;
120
+ }, ke = n, ke;
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);
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;
134
+ }
135
+ var Ye, $e;
136
+ function Le() {
137
+ return $e || ($e = 1, Ye = {
138
+ indexOf: function(e, t) {
139
+ var s, o;
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)
144
+ return s;
145
+ return -1;
146
+ },
147
+ forEach: function(e, t, s) {
148
+ var o, n;
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);
153
+ },
154
+ trim: function(e) {
155
+ return String.prototype.trim ? e.trim() : e.replace(/(^\s*)|(\s*$)/g, "");
156
+ },
157
+ spaceIndex: function(e) {
158
+ var t = /\s|\n|\t/, s = t.exec(e);
159
+ return s ? s.index : -1;
160
+ }
161
+ }), Ye;
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() {
169
+ return {
170
+ a: ["target", "href", "title"],
171
+ abbr: ["title"],
172
+ address: [],
173
+ area: ["shape", "coords", "href", "alt"],
174
+ article: [],
175
+ aside: [],
176
+ audio: [
177
+ "autoplay",
178
+ "controls",
179
+ "crossorigin",
180
+ "loop",
181
+ "muted",
182
+ "preload",
183
+ "src"
184
+ ],
185
+ b: [],
186
+ bdi: ["dir"],
187
+ bdo: ["dir"],
188
+ big: [],
189
+ blockquote: ["cite"],
190
+ br: [],
191
+ caption: [],
192
+ center: [],
193
+ cite: [],
194
+ code: [],
195
+ col: ["align", "valign", "span", "width"],
196
+ colgroup: ["align", "valign", "span", "width"],
197
+ dd: [],
198
+ del: ["datetime"],
199
+ details: ["open"],
200
+ div: [],
201
+ dl: [],
202
+ dt: [],
203
+ em: [],
204
+ figcaption: [],
205
+ figure: [],
206
+ font: ["color", "size", "face"],
207
+ footer: [],
208
+ h1: [],
209
+ h2: [],
210
+ h3: [],
211
+ h4: [],
212
+ h5: [],
213
+ h6: [],
214
+ header: [],
215
+ hr: [],
216
+ i: [],
217
+ img: ["src", "alt", "title", "width", "height"],
218
+ ins: ["datetime"],
219
+ li: [],
220
+ mark: [],
221
+ nav: [],
222
+ ol: [],
223
+ p: [],
224
+ pre: [],
225
+ s: [],
226
+ section: [],
227
+ small: [],
228
+ span: [],
229
+ sub: [],
230
+ summary: [],
231
+ sup: [],
232
+ strong: [],
233
+ strike: [],
234
+ table: ["width", "border", "align", "valign"],
235
+ tbody: ["align", "valign"],
236
+ td: ["width", "rowspan", "colspan", "align", "valign"],
237
+ tfoot: ["align", "valign"],
238
+ th: ["width", "rowspan", "colspan", "align", "valign"],
239
+ thead: ["align", "valign"],
240
+ tr: ["rowspan", "align", "valign"],
241
+ tt: [],
242
+ u: [],
243
+ ul: [],
244
+ video: [
245
+ "autoplay",
246
+ "controls",
247
+ "crossorigin",
248
+ "loop",
249
+ "muted",
250
+ "playsinline",
251
+ "poster",
252
+ "preload",
253
+ "src",
254
+ "height",
255
+ "width"
256
+ ]
257
+ };
258
+ }
259
+ var n = new e();
260
+ function r(h, v, p) {
261
+ }
262
+ function a(h, v, p) {
263
+ }
264
+ function l(h, v, p) {
265
+ }
266
+ function c(h, v, p) {
267
+ }
268
+ function d(h) {
269
+ return h.replace(i, "&lt;").replace(u, "&gt;");
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] === "/"))
275
+ return "";
276
+ } else if (v === "background") {
277
+ if (y.lastIndex = 0, y.test(p))
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))))
281
+ return "";
282
+ k !== !1 && (k = k || n, p = k.process(p));
283
+ }
284
+ return p = z(p), p;
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;");
289
+ }
290
+ function x(h) {
291
+ return h.replace(_, '"');
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));
296
+ });
297
+ }
298
+ function L(h) {
299
+ return h.replace(g, ":").replace(F, " ");
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);
305
+ }
306
+ function j(h) {
307
+ return h = x(h), h = M(h), h = L(h), h = U(h), h;
308
+ }
309
+ function z(h) {
310
+ return h = O(h), h = d(h), h;
311
+ }
312
+ function ve() {
313
+ return "";
314
+ }
315
+ function Z(h, v) {
316
+ typeof v != "function" && (v = function() {
317
+ });
318
+ var p = !Array.isArray(h);
319
+ function k(G) {
320
+ return p ? !0 : s.indexOf(h, G) !== -1;
321
+ }
322
+ var D = [], B = !1;
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;
332
+ } else
333
+ return B || (B = H.position), "[removed]";
334
+ else
335
+ return v(G, re, H);
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;
342
+ }
343
+ };
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);
350
+ break;
351
+ }
352
+ v += h.slice(p, k);
353
+ var D = h.indexOf("-->", k);
354
+ if (D === -1)
355
+ break;
356
+ p = D + 3;
357
+ }
358
+ return v;
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("");
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;
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;
388
+ continue;
389
+ }
390
+ } else if (F === !1) {
391
+ if (x === "<") {
392
+ _ += f(i.slice(w, y)), g = y, w = y;
393
+ continue;
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;
403
+ continue;
404
+ }
405
+ if (x === '"' || x === "'")
406
+ for (var M = 1, L = i.charAt(y - M); L.trim() === "" || L === "="; ) {
407
+ if (L === "=") {
408
+ F = x;
409
+ continue e;
410
+ }
411
+ L = i.charAt(y - ++M);
412
+ }
413
+ } else if (x === F) {
414
+ F = !1;
415
+ continue;
416
+ }
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);
427
+ }
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);
433
+ continue;
434
+ }
435
+ if (g !== !1 && b === _) {
436
+ if (x = i.indexOf(I, b + 1), x === -1)
437
+ break;
438
+ O = e.trim(i.slice(_ + 1, x)), y(g, O), g = !1, b = x, f = b + 1;
439
+ continue;
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;
445
+ continue;
446
+ } else {
447
+ b = x - 1;
448
+ continue;
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;
452
+ continue;
453
+ } else
454
+ continue;
455
+ }
456
+ return f < i.length && (g === !1 ? y(i.slice(f)) : y(g, m(e.trim(i.slice(f))))), e.trim(w.join(" "));
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;
463
+ }
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;
470
+ }
471
+ }
472
+ function c(i, u) {
473
+ for (; u > 0; u--) {
474
+ var f = i[u];
475
+ if (f !== " ")
476
+ return f === "=" ? u : -1;
477
+ }
478
+ }
479
+ function d(i) {
480
+ return i[0] === '"' && i[i.length - 1] === '"' || i[0] === "'" && i[i.length - 1] === "'";
481
+ }
482
+ function m(i) {
483
+ return d(i) ? i.substr(1, i.length - 2) : i;
484
+ }
485
+ return fe.parseTag = o, fe.parseAttr = r, fe;
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)
498
+ return {
499
+ html: "",
500
+ closing: i[i.length - 2] === "/"
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
507
+ };
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(
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) {
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;
547
+ if (Z.isWhite) {
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;
553
+ });
554
+ return z = "<" + j, v && (z += " " + v), le.closing && (z += " /"), z += ">", z;
555
+ } else
556
+ return q = g(j, z, Z), a(q) ? I(z) : q;
557
+ },
558
+ I
559
+ );
560
+ return x && (M = x.remove(M)), M;
561
+ }, Ee = m, Ee;
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);
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() {
578
+ return typeof self < "u" && typeof DedicatedWorkerGlobalScope < "u" && self instanceof DedicatedWorkerGlobalScope;
579
+ }
580
+ a() && (self.filterXSS = e.exports);
581
+ }(_e, _e.exports)), _e.exports;
582
+ }
583
+ var me = er();
584
+ let P = {
585
+ enableAttrs: !0,
586
+ enableHtml: !0,
587
+ enableUrl: !0,
588
+ html: {
589
+ whiteList: {
590
+ a: ["class", "style", "contenteditable", "data-id", "data-title", "data-size", "href", "data-last-modified"],
591
+ address: ["class", "style"],
592
+ area: ["class", "style"],
593
+ article: ["class", "style"],
594
+ aside: ["class", "style"],
595
+ audio: ["class", "style"],
596
+ b: ["class", "style"],
597
+ bdi: ["class", "style"],
598
+ bdo: ["class", "style"],
599
+ big: ["class", "style"],
600
+ blockquote: ["class", "style"],
601
+ br: ["class", "style"],
602
+ caption: ["class", "style"],
603
+ center: ["class", "style"],
604
+ cite: ["class", "style"],
605
+ code: ["class", "style"],
606
+ col: ["class", "style"],
607
+ colgroup: ["class", "style"],
608
+ dd: ["class", "style"],
609
+ del: ["class", "style"],
610
+ details: ["class", "style"],
611
+ div: [
612
+ "class",
613
+ "style",
614
+ "spellcheck",
615
+ "data-gramm",
616
+ "spellcheck",
617
+ "data-mode",
618
+ "data-position",
619
+ "data-row",
620
+ "data-cell",
621
+ "data-rowspan",
622
+ "data-colspan",
623
+ "data-cell-bg",
624
+ "data-parent-bg"
625
+ ],
626
+ dl: ["class", "style"],
627
+ dt: ["class", "style"],
628
+ em: ["class", "style"],
629
+ figcaption: ["class", "style"],
630
+ figure: ["class", "style"],
631
+ font: ["class", "style"],
632
+ footer: ["class", "style"],
633
+ h1: ["class", "style"],
634
+ h2: ["class", "style"],
635
+ h3: ["class", "style"],
636
+ h4: ["class", "style"],
637
+ h5: ["class", "style"],
638
+ h6: ["class", "style"],
639
+ header: ["class", "style"],
640
+ hr: ["class", "style"],
641
+ i: ["class", "style", "data-image-id", "data-image"],
642
+ img: ["class", "style", "devui-editorx-image", "style", "data-image-id", "src"],
643
+ input: ["class", "style", "data-formula", "data-link", "data-video"],
644
+ ins: ["class", "style"],
645
+ li: ["class", "style"],
646
+ mark: ["class", "style"],
647
+ nav: ["class", "style"],
648
+ ol: ["class", "style"],
649
+ p: ["class", "style"],
650
+ pre: ["class", "style"],
651
+ s: ["class", "style"],
652
+ section: ["class", "style"],
653
+ small: ["class", "style"],
654
+ span: ["class", "style", "contenteditable", "color", "style"],
655
+ sub: ["class", "style"],
656
+ summary: ["class", "style"],
657
+ sup: ["class", "style"],
658
+ strong: ["class", "style"],
659
+ strike: ["class", "style"],
660
+ svg: ["class", "style", "t", "viewBox", "viewbox", "version", "xmlns", "p-id", "xmlns:xlink"],
661
+ path: ["d", "p-id"],
662
+ table: ["class", "style"],
663
+ tbody: ["class", "style"],
664
+ td: ["class", "style", "data-row", "data-cell", "data-cell-bg", "data-parent-bg"],
665
+ tfoot: ["class", "style"],
666
+ th: ["class", "style"],
667
+ thead: ["class", "style"],
668
+ tr: ["class", "style", "data-row"],
669
+ tt: ["class", "style"],
670
+ u: ["class", "style"],
671
+ ul: ["class", "style"],
672
+ video: ["class", "style"]
673
+ }
674
+ }
675
+ };
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);
738
+ };
739
+ (() => {
740
+ if (S) return null;
741
+ const e = {
742
+ name: "",
743
+ version: 0,
744
+ isDoc: typeof document < "u",
745
+ isMobile: !1,
746
+ isPC: !0,
747
+ isNode: S,
748
+ chrome: !1,
749
+ ie: !1,
750
+ firefox: !1,
751
+ safari: !1,
752
+ opera: !1,
753
+ edge: !1
754
+ }, t = /(Android|webOS|iPhone|iPad|iPod|SymbianOS|BlackBerry|Windows Phone)/.test(navigator.userAgent);
755
+ e.isMobile = t, e.isPC = !t;
756
+ 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"];
765
+ });
766
+ }
767
+ return e;
768
+ })();
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() {
800
+ if (typeof Map < "u")
801
+ 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;
805
+ };
806
+ return function() {
807
+ function t() {
808
+ this.__entries__ = [];
809
+ }
810
+ return Object.defineProperty(t.prototype, "size", {
811
+ get() {
812
+ return this.__entries__.length;
813
+ },
814
+ enumerable: !0,
815
+ 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() {
826
+ 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]);
834
+ }
835
+ }, t;
836
+ }();
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);
843
+ };
844
+ }();
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);
852
+ };
853
+ return r = () => {
854
+ const c = Date.now();
855
+ if (s) {
856
+ if (c - n < hr)
857
+ return;
858
+ o = !0;
859
+ } else
860
+ s = !0, o = !1, setTimeout(l, t);
861
+ n = c;
862
+ }, r;
863
+ }
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() {
874
+ 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) {
881
+ this.mutationsObserver_ = new MutationObserver(this.refresh);
882
+ const t = {
883
+ attributes: !0,
884
+ childList: !0,
885
+ characterData: !0,
886
+ subtree: !0
887
+ };
888
+ this.mutationsObserver_.observe(document, t);
889
+ } else
890
+ R(document, "DOMSubtreeModified", this.refresh), this.mutationEventsAdded_ = !0;
891
+ this.connected_ = !0;
892
+ }
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],
906
+ configurable: !0,
907
+ writable: !1,
908
+ enumerable: !1
909
+ });
910
+ }
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 = [];
918
+ 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);
923
+ }, 0);
924
+ }, vr = function(e) {
925
+ const t = ["top", "right", "bottom", "left"];
926
+ 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);
930
+ }
931
+ 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,
956
+ y: s,
957
+ width: o,
958
+ height: n,
959
+ 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")
984
+ 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;
986
+ }
987
+ return e.prototype.observe = function(t) {
988
+ if (!arguments.length)
989
+ throw new TypeError("[TINY-Resize] 1 argument required, but only 0 present.");
990
+ if (typeof Element > "u" || !(Element instanceof Object))
991
+ return;
992
+ if (!(t instanceof te(t).Element))
993
+ throw new TypeError('[TINY-Resize] parameter 1 is not of type "Element".');
994
+ 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) {
997
+ if (!arguments.length)
998
+ throw new TypeError("[TINY-Resize]1 argument required, but only 0 present.");
999
+ if (typeof Element > "u" || !(Element instanceof Object))
1000
+ return;
1001
+ if (!(t instanceof te(t).Element))
1002
+ throw new TypeError('[TINY-Resize] parameter 1 is not of type "Element".');
1003
+ 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;
1007
+ this.clearActive(), this.observations_.forEach((s) => {
1008
+ s.isActive() && t.activeObservations_.push(s);
1009
+ });
1010
+ }, e.prototype.disconnect = function() {
1011
+ this.clearActive(), this.observations_.clear(), this.controller_.removeObserver(this);
1012
+ }, e.prototype.broadcastActive = function() {
1013
+ if (!this.hasActive())
1014
+ return;
1015
+ const t = this.callbackCtx_, s = this.activeObservations_.map(
1016
+ (o) => new Tr(o.target, o.broadcastRect())
1017
+ );
1018
+ this.callback_.call(t, s, t), this.clearActive();
1019
+ }, e.prototype.hasActive = function() {
1020
+ return this.activeObservations_.length > 0;
1021
+ }, e.prototype.clearActive = function() {
1022
+ 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))
1027
+ throw new TypeError("[TINY-Resize] Cannot call a class as a function.");
1028
+ if (!arguments.length)
1029
+ 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);
1032
+ }
1033
+ return e;
1034
+ }();
1035
+ ["observe", "unobserve", "disconnect"].forEach((e) => {
1036
+ Mt.prototype[e] = function() {
1037
+ let t;
1038
+ return (t = Ft.get(this))[e].apply(t, arguments);
1039
+ };
1040
+ });
1041
+ (function() {
1042
+ return typeof be.ResizeObserver < "u" ? be.ResizeObserver : Mt;
1043
+ })();
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;
1048
+ }
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;
1058
+ };
1059
+ }
1060
+ }
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 = {
1161
+ fullMonths: "January,February,March,April,May,June,July,August,September,October,November,December".split(","),
1162
+ 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) => {
1165
+ let s = [];
1166
+ for (let o = 0, n = e.length; o < n; o++)
1167
+ s.push(e[o].substr(0, t));
1168
+ 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 = {
1176
+ d: [
1177
+ V,
1178
+ (e, t) => {
1179
+ e.day = t;
1180
+ }
1181
+ ],
1182
+ Do: [
1183
+ V + oe,
1184
+ (e, t) => {
1185
+ e.day = parseInt(t, 10);
1186
+ }
1187
+ ],
1188
+ M: [
1189
+ V,
1190
+ (e, t) => {
1191
+ e.month = t - 1;
1192
+ }
1193
+ ],
1194
+ yy: [
1195
+ V,
1196
+ (e, t) => {
1197
+ const s = Number(String((/* @__PURE__ */ new Date()).getFullYear()).substr(0, 2));
1198
+ e.year = String(t > 68 ? s - 1 : s) + t;
1199
+ }
1200
+ ],
1201
+ h: [
1202
+ V,
1203
+ (e, t) => {
1204
+ e.hour = t;
1205
+ }
1206
+ ],
1207
+ m: [
1208
+ V,
1209
+ (e, t) => {
1210
+ e.minute = t;
1211
+ }
1212
+ ],
1213
+ s: [
1214
+ V,
1215
+ (e, t) => {
1216
+ e.second = t;
1217
+ }
1218
+ ],
1219
+ yyyy: [
1220
+ Ur,
1221
+ (e, t) => {
1222
+ e.year = t;
1223
+ }
1224
+ ],
1225
+ S: [
1226
+ "\\d",
1227
+ (e, t) => {
1228
+ e.millisecond = t * 100;
1229
+ }
1230
+ ],
1231
+ SS: [
1232
+ "\\d{2}",
1233
+ (e, t) => {
1234
+ e.millisecond = t * 10;
1235
+ }
1236
+ ],
1237
+ SSS: [
1238
+ Vr,
1239
+ (e, t) => {
1240
+ e.millisecond = t;
1241
+ }
1242
+ ],
1243
+ D: [V, rt],
1244
+ ddd: [oe, rt],
1245
+ MMM: [oe, st("monthNamesShort")],
1246
+ MMMM: [oe, st("monthNames")],
1247
+ 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);
1252
+ }
1253
+ ],
1254
+ ZZ: [
1255
+ "[^\\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);
1259
+ }
1260
+ ]
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()];
1265
+ });
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);
1279
+ } : 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;
1285
+ try {
1286
+ e.runTasks(t), e.runTasks(s);
1287
+ } catch (n) {
1288
+ o = n;
1289
+ }
1290
+ if (e.scheduled = !1, (t.length || s.length) && Ce(e), o)
1291
+ if (e.catch)
1292
+ e.catch(o);
1293
+ 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]);
1301
+ };
1302
+ class Zr {
1303
+ constructor() {
1304
+ this.reads = [], this.writes = [], this.raf = Yr.bind(window);
1305
+ }
1306
+ runTasks(t) {
1307
+ let s;
1308
+ for (; s = t.shift(); ) s();
1309
+ }
1310
+ measure(t, s) {
1311
+ const o = s ? t.bind(s) : t;
1312
+ return this.reads.push(o), Ce(this), o;
1313
+ }
1314
+ mutate(t, s) {
1315
+ const o = s ? t.bind(s) : t;
1316
+ return this.writes.push(o), Ce(this), o;
1317
+ }
1318
+ clear(t) {
1319
+ return ot(this.reads, t) || ot(this.writes, t);
1320
+ }
1321
+ extend(t) {
1322
+ if (!t || typeof t != "object") throw new Error("[TINY][FastDom] expected object");
1323
+ const s = Object.create(this);
1324
+ return Qr(s, t), s.fastdom = this, s.initialize && s.initialize(), s;
1325
+ }
1326
+ }
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);
1333
+ try {
1334
+ c(o ? s.call(o) : s());
1335
+ } catch (m) {
1336
+ d(m);
1337
+ }
1338
+ }, o);
1339
+ });
1340
+ return n.set(l, a), l;
1341
+ }, Jr = {
1342
+ initialize() {
1343
+ this._tasks = /* @__PURE__ */ new Map();
1344
+ },
1345
+ mutate(e, t) {
1346
+ return nt(this, "mutate", e, t);
1347
+ },
1348
+ measure(e, t) {
1349
+ return nt(this, "measure", e, t);
1350
+ },
1351
+ clear(e) {
1352
+ const t = this._tasks, s = t.get(e);
1353
+ this.fastdom.clear(s), t.delete(e);
1354
+ }
1355
+ };
1356
+ jt.extend(Jr);
1357
+ const Kr = (e, t) => {
1358
+ let s = t.length;
1359
+ 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);
1364
+ };
1365
+ class ts {
1366
+ constructor(t) {
1367
+ this.fastdom = t, this.tasks = [];
1368
+ }
1369
+ measure(t, s) {
1370
+ const o = this.tasks, n = this.fastdom.measure(function() {
1371
+ return o.splice(o.indexOf(n)), t.call(s);
1372
+ });
1373
+ return o.push(n), n;
1374
+ }
1375
+ mutate(t, s) {
1376
+ const o = this.tasks, n = this.fastdom.mutate(function() {
1377
+ return o.splice(o.indexOf(n)), t.call(s);
1378
+ });
1379
+ return this.tasks.push(n), n;
1380
+ }
1381
+ clear(t) {
1382
+ return arguments.length || Kr(this.fastdom, this.tasks), es(this.tasks, t), this.fastdom.clear(t);
1383
+ }
1384
+ }
1385
+ const rs = {
1386
+ sandbox() {
1387
+ return new ts(this.fastdom);
1388
+ }
1389
+ };
1390
+ jt.extend(rs);
1391
+ const ss = [
1392
+ "fullscreenElement",
1393
+ "fullscreenEnabled",
1394
+ "requestFullscreen",
1395
+ "exitFullscreen",
1396
+ "fullscreenchange",
1397
+ "fullscreenerror"
1398
+ ], os = [
1399
+ "mozFullScreenElement",
1400
+ "mozFullScreenEnabled",
1401
+ "mozRequestFullScreen",
1402
+ "mozCancelFullScreen",
1403
+ "mozfullscreenchange",
1404
+ "mozfullscreenerror"
1405
+ ], ns = [
1406
+ "webkitFullscreenElement",
1407
+ "webkitFullscreenEnabled",
1408
+ "webkitRequestFullscreen",
1409
+ "webkitExitFullscreen",
1410
+ "webkitfullscreenchange",
1411
+ "webkitfullscreenerror"
1412
+ ], is = [
1413
+ "msFullscreenElement",
1414
+ "msFullscreenEnabled",
1415
+ "msRequestFullscreen",
1416
+ "msExitFullscreen",
1417
+ "MSFullscreenChange",
1418
+ "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];
1428
+ return;
1429
+ }
1430
+ }
1431
+ };
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();
1441
+ };
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);
1445
+ } else
1446
+ o(new Error("Fullscreen API not supported or element is null."));
1447
+ });
1448
+ },
1449
+ exit() {
1450
+ return new Promise((e, t) => {
1451
+ if (!this.isFullscreen) {
1452
+ e();
1453
+ return;
1454
+ }
1455
+ const s = () => {
1456
+ this.off("change", s), e();
1457
+ };
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);
1461
+ } else
1462
+ t(new Error("Fullscreen API not supported."));
1463
+ });
1464
+ },
1465
+ toggle(e, t) {
1466
+ return this.isFullscreen ? this.exit() : this.request(e, t);
1467
+ },
1468
+ onchange(e) {
1469
+ this.on("change", e);
1470
+ },
1471
+ onerror(e) {
1472
+ this.on("error", e);
1473
+ },
1474
+ on(e, t) {
1475
+ const s = it[e];
1476
+ s && !S && R(W, s, t);
1477
+ },
1478
+ off(e, t) {
1479
+ const s = it[e];
1480
+ s && !S && Y(W, s, t);
1481
+ },
1482
+ raw: A || {}
1483
+ };
1484
+ S ? Object.defineProperties(Ie, {
1485
+ isFullscreen: {
1486
+ get() {
1487
+ return !1;
1488
+ }
1489
+ },
1490
+ element: {
1491
+ enumerable: !0,
1492
+ get() {
1493
+ return null;
1494
+ }
1495
+ },
1496
+ isEnabled: {
1497
+ enumerable: !0,
1498
+ get() {
1499
+ return !1;
1500
+ }
1501
+ }
1502
+ }) : Object.defineProperties(Ie, {
1503
+ isFullscreen: {
1504
+ get() {
1505
+ return !!W[A && A.fullscreenElement];
1506
+ }
1507
+ },
1508
+ element: {
1509
+ enumerable: !0,
1510
+ get() {
1511
+ return W[A && A.fullscreenElement];
1512
+ }
1513
+ },
1514
+ isEnabled: {
1515
+ enumerable: !0,
1516
+ get() {
1517
+ return !!W[A && A.fullscreenEnabled];
1518
+ }
1519
+ }
1520
+ });
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 = () => {
1551
+ };
1552
+ const Wt = function(e) {
1553
+ clearTimeout(je[e]), delete We[e], delete je[e];
1554
+ }, ps = function() {
1555
+ Bt = setTimeout(() => {
1556
+ $.close();
1557
+ }, 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." });
1562
+ return;
1563
+ }
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(
1570
+ {
1571
+ type: "heartbeat"
1572
+ },
1573
+ () => {
1574
+ Nt();
1575
+ }
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)) {
1583
+ try {
1584
+ t = JSON.parse(t);
1585
+ } catch (s) {
1586
+ return !s;
1587
+ }
1588
+ if (Q) {
1589
+ let s = Rt[t.type];
1590
+ 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));
1594
+ } 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);
1605
+ };
1606
+ C.init = function(e) {
1607
+ e && (Pt = e.timeout || 3e4, zt = e.pollingInterval || 0), Vt();
1608
+ };
1609
+ C.ready = function(e) {
1610
+ Ht = e;
1611
+ };
1612
+ C.error = function(e) {
1613
+ Dt = e;
1614
+ };
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;
1624
+ };
1625
+ C.on = function(e, t) {
1626
+ Rt[e] = t;
1627
+ };
1628
+ C.getUserInfo = function(e, t) {
1629
+ N(
1630
+ {
1631
+ type: "get-user-info",
1632
+ param: e
1633
+ },
1634
+ function(s, o) {
1635
+ if (s)
1636
+ return t(s);
1637
+ const n = function(r) {
1638
+ 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
1646
+ };
1647
+ };
1648
+ if (o.account)
1649
+ t(null, n(o));
1650
+ 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);
1656
+ }
1657
+ t(null, r);
1658
+ }
1659
+ }
1660
+ );
1661
+ };
1662
+ C.subscribeUserStatus = function(e, t) {
1663
+ Array.isArray(e) && e.forEach((s) => {
1664
+ }), N(
1665
+ {
1666
+ type: "subscribe-user-status",
1667
+ param: e
1668
+ },
1669
+ t
1670
+ );
1671
+ };
1672
+ C.eSpaceCall = function(e, t, s) {
1673
+ N(
1674
+ {
1675
+ type: "espace-call",
1676
+ param: {
1677
+ account: e,
1678
+ number: t
1679
+ }
1680
+ },
1681
+ s
1682
+ );
1683
+ };
1684
+ C.eSpaceCallByAccount = function(e, t) {
1685
+ N(
1686
+ {
1687
+ type: "espace-call",
1688
+ param: {
1689
+ account: e
1690
+ }
1691
+ },
1692
+ t
1693
+ );
1694
+ };
1695
+ C.eSpaceCallByNumber = function(e, t) {
1696
+ N(
1697
+ {
1698
+ type: "espace-call",
1699
+ param: {
1700
+ number: e
1701
+ }
1702
+ },
1703
+ t
1704
+ );
1705
+ };
1706
+ C.showImDialog = function(e, t) {
1707
+ N(
1708
+ {
1709
+ type: "show-espace-im-dialog",
1710
+ param: e
1711
+ },
1712
+ t
1713
+ );
1714
+ };
1715
+ C.showGroupDialog = function(e, t) {
1716
+ N(
1717
+ {
1718
+ type: "show-espace-im-group-dialog",
1719
+ param: e
1720
+ },
1721
+ t
1722
+ );
1723
+ };
1724
+ C.addContactList = function(e, t) {
1725
+ N(
1726
+ {
1727
+ type: "add-contact-list",
1728
+ param: e
1729
+ },
1730
+ t
1731
+ );
1732
+ };
1733
+ if (S || !window.WebSocket) {
1734
+ const e = function() {
1735
+ };
1736
+ for (let t in C)
1737
+ Object.prototype.hasOwnProperty.call(C, t) && typeof C[t] == "function" && (C[t] = e);
1738
+ }
1739
+ const pe = {}, ne = {
1740
+ leave: "v-modal-leave",
1741
+ enter: "v-modal-enter",
1742
+ 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);
1747
+ break;
1748
+ }
1749
+ };
1750
+ let ze;
1751
+ const T = {
1752
+ step: 2,
1753
+ zIndex: 2e3,
1754
+ globalScroll: !1,
1755
+ // 是否打开全局滚动监听
1756
+ modalFade: !0,
1757
+ modalStack: [],
1758
+ modalDom: null,
1759
+ // 当前model挂载的div.
1760
+ hasModal: !1,
1761
+ // 当前是否有Modal
1762
+ popLockClass: "popup-parent--hidden",
1763
+ oldBodyBorder: "",
1764
+ viewportWindow: null,
1765
+ 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`);
1768
+ },
1769
+ resetBodyBorder() {
1770
+ document.body.style.borderRight = this.oldBodyBorder, this.oldBodyBorder = "";
1771
+ },
1772
+ /** 全局反注册 */
1773
+ deregister: (e) => {
1774
+ e && (pe[e] = null, delete pe[e]);
1775
+ },
1776
+ /** 返回全局实例 */
1777
+ getInstance: (e) => pe[e],
1778
+ /** 全局注册 仅vue-popup.ts中使用,instance就是vm, 把vm注册到 vm._popupId 这个键值上 */
1779
+ register: (e, t) => {
1780
+ e && t && (pe[e] = t);
1781
+ },
1782
+ nextZIndex: () => {
1783
+ const e = T.zIndex;
1784
+ return T.zIndex += T.step, e;
1785
+ },
1786
+ /** 打开遮罩层, 仅vue-popup.ts中使用。 dom = vm.$el 或者 undefined (appendtoBody时) */
1787
+ openModal(e, t, s, o, n) {
1788
+ if (S || !e || t === void 0)
1789
+ return;
1790
+ this.modalFade = n;
1791
+ for (let l = 0, c = this.modalStack.length; l < c; l++)
1792
+ if (this.modalStack[l].id === e)
1793
+ 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 });
1800
+ },
1801
+ /** 点击背景遮罩层时,调用栈顶的popup,调用它的close() */
1802
+ doOnModalClick: () => {
1803
+ const e = T.modalStack, t = e[e.length - 1];
1804
+ if (!t)
1805
+ return;
1806
+ const s = T.getInstance(t.id);
1807
+ s && s.closeOnClickModal && typeof s.close == "function" && s.close();
1808
+ },
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());
1817
+ } else
1818
+ bs(t, e);
1819
+ }
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);
1822
+ }, 200));
1823
+ }
1824
+ };
1825
+ ze = () => {
1826
+ if (S)
1827
+ 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(
1830
+ "touchmove",
1831
+ (t) => {
1832
+ t.preventDefault(), t.stopPropagation();
1833
+ },
1834
+ { passive: !0 }
1835
+ ), R(e, "click", () => {
1836
+ T.doOnModalClick();
1837
+ })), e;
1838
+ };
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];
1844
+ if (!s)
1845
+ return;
1846
+ const o = T.getInstance(s.id);
1847
+ o && o.closeOnPressEscape && (o.handleClose ? o.handleClose("esc") : o.handleAction ? o.handleAction("cancel") : o.close());
1848
+ }
1849
+ }
1850
+ });
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();
1962
+ });
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
+ }
2164
+ 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
2202
+ };