@opentiny/tiny-robot 0.2.0-alpha.0 → 0.2.0-alpha.1

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