@opendesign-plus/components 0.0.1-rc.103 → 0.0.1-rc.105

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 (1169) hide show
  1. package/dist/chunk-element-plus.cjs.js +1 -0
  2. package/dist/chunk-element-plus.es.js +1442 -0
  3. package/dist/components/article-anchor/components/ArticleAnchorPad.vue.d.ts +2 -6
  4. package/dist/components/community-updates/OCommunityUpdates.vue.d.ts +46 -0
  5. package/dist/components/community-updates/OCommunityUpdatesCard.vue.d.ts +7 -0
  6. package/dist/components/community-updates/index.d.ts +91 -0
  7. package/dist/components/community-updates/types.d.ts +36 -0
  8. package/dist/components/doc-layout/ODocLayout.vue.d.ts +8 -4
  9. package/dist/components/doc-layout/index.d.ts +9 -0
  10. package/dist/components/meeting/config.d.ts +0 -2
  11. package/dist/components/search-doc-result/OSearchDocResult.vue.d.ts +2 -0
  12. package/dist/components/search-doc-result/index.d.ts +6 -0
  13. package/dist/components.cjs.js +55 -89
  14. package/dist/components.css +2 -9
  15. package/dist/components.element.cjs.js +1 -1
  16. package/dist/components.element.es.js +1 -4
  17. package/dist/components.es.js +48365 -66118
  18. package/dist/index.d.ts +1 -0
  19. package/dist/treeshaking/_virtual/@babel/runtime/helpers/esm/extends.js.mjs +9 -10
  20. package/dist/treeshaking/_virtual/@babel/runtime/helpers/extends.js.mjs +16 -22
  21. package/dist/treeshaking/_virtual/@videojs/vhs-utils/es/byte-helpers.js.mjs +133 -128
  22. package/dist/treeshaking/_virtual/@videojs/vhs-utils/es/codec-helpers.js.mjs +1 -0
  23. package/dist/treeshaking/_virtual/@videojs/vhs-utils/es/codecs.js.mjs +152 -146
  24. package/dist/treeshaking/_virtual/@videojs/vhs-utils/es/containers.js.mjs +176 -150
  25. package/dist/treeshaking/_virtual/@videojs/vhs-utils/es/decode-b64-to-uint8-array.js.mjs +11 -12
  26. package/dist/treeshaking/_virtual/@videojs/vhs-utils/es/ebml-helpers.js.mjs +157 -118
  27. package/dist/treeshaking/_virtual/@videojs/vhs-utils/es/id3-helpers.js.mjs +21 -30
  28. package/dist/treeshaking/_virtual/@videojs/vhs-utils/es/media-groups.js.mjs +20 -12
  29. package/dist/treeshaking/_virtual/@videojs/vhs-utils/es/media-types.js.mjs +18 -14
  30. package/dist/treeshaking/_virtual/@videojs/vhs-utils/es/mp4-helpers.js.mjs +150 -53
  31. package/dist/treeshaking/_virtual/@videojs/vhs-utils/es/nal-helpers.js.mjs +78 -74
  32. package/dist/treeshaking/_virtual/@videojs/vhs-utils/es/opus-helpers.js.mjs +10 -0
  33. package/dist/treeshaking/_virtual/@videojs/vhs-utils/es/resolve-url.js.mjs +15 -21
  34. package/dist/treeshaking/_virtual/@videojs/vhs-utils/es/stream.js.mjs +55 -51
  35. package/dist/treeshaking/_virtual/@videojs/xhr/lib/http-handler.js.mjs +40 -55
  36. package/dist/treeshaking/_virtual/@videojs/xhr/lib/index.js.mjs +242 -7
  37. package/dist/treeshaking/_virtual/@videojs/xhr/lib/interceptors.js.mjs +94 -109
  38. package/dist/treeshaking/_virtual/@videojs/xhr/lib/retry.js.mjs +100 -104
  39. package/dist/treeshaking/_virtual/@xmldom/xmldom/lib/conventions.js.mjs +177 -142
  40. package/dist/treeshaking/_virtual/@xmldom/xmldom/lib/dom-parser.js.mjs +244 -224
  41. package/dist/treeshaking/_virtual/@xmldom/xmldom/lib/dom.js.mjs +1443 -1449
  42. package/dist/treeshaking/_virtual/@xmldom/xmldom/lib/entities.js.mjs +2168 -2149
  43. package/dist/treeshaking/_virtual/@xmldom/xmldom/lib/index.js.mjs +12 -5
  44. package/dist/treeshaking/_virtual/@xmldom/xmldom/lib/sax.js.mjs +489 -594
  45. package/dist/treeshaking/_virtual/__vite-browser-external.mjs +7 -4
  46. package/dist/treeshaking/_virtual/_plugin-vue_export-helper.mjs +6 -9
  47. package/dist/treeshaking/_virtual/_rolldown/runtime.mjs +27 -0
  48. package/dist/treeshaking/_virtual/cropperjs/dist/cropper.js.mjs +2575 -0
  49. package/dist/treeshaking/_virtual/crypto-js/aes.js.mjs +163 -162
  50. package/dist/treeshaking/_virtual/crypto-js/blowfish.js.mjs +1214 -1197
  51. package/dist/treeshaking/_virtual/crypto-js/cipher-core.js.mjs +683 -649
  52. package/dist/treeshaking/_virtual/crypto-js/core.js.mjs +589 -614
  53. package/dist/treeshaking/_virtual/crypto-js/enc-base64.js.mjs +90 -112
  54. package/dist/treeshaking/_virtual/crypto-js/enc-base64url.js.mjs +97 -123
  55. package/dist/treeshaking/_virtual/crypto-js/enc-utf16.js.mjs +113 -122
  56. package/dist/treeshaking/_virtual/crypto-js/evpkdf.js.mjs +113 -97
  57. package/dist/treeshaking/_virtual/crypto-js/format-hex.js.mjs +56 -65
  58. package/dist/treeshaking/_virtual/crypto-js/hmac.js.mjs +97 -111
  59. package/dist/treeshaking/_virtual/crypto-js/index.js.mjs +84 -7
  60. package/dist/treeshaking/_virtual/crypto-js/lib-typedarrays.js.mjs +30 -49
  61. package/dist/treeshaking/_virtual/crypto-js/md5.js.mjs +205 -183
  62. package/dist/treeshaking/_virtual/crypto-js/mode-cfb.js.mjs +45 -57
  63. package/dist/treeshaking/_virtual/crypto-js/mode-ctr-gladman.js.mjs +62 -85
  64. package/dist/treeshaking/_virtual/crypto-js/mode-ctr.js.mjs +36 -45
  65. package/dist/treeshaking/_virtual/crypto-js/mode-ecb.js.mjs +28 -36
  66. package/dist/treeshaking/_virtual/crypto-js/mode-ofb.js.mjs +34 -43
  67. package/dist/treeshaking/_virtual/crypto-js/pad-ansix923.js.mjs +33 -37
  68. package/dist/treeshaking/_virtual/crypto-js/pad-iso10126.js.mjs +29 -33
  69. package/dist/treeshaking/_virtual/crypto-js/pad-iso97971.js.mjs +28 -32
  70. package/dist/treeshaking/_virtual/crypto-js/pad-nopadding.js.mjs +22 -28
  71. package/dist/treeshaking/_virtual/crypto-js/pad-zeropadding.js.mjs +33 -39
  72. package/dist/treeshaking/_virtual/crypto-js/pbkdf2.js.mjs +119 -104
  73. package/dist/treeshaking/_virtual/crypto-js/rabbit-legacy.js.mjs +139 -134
  74. package/dist/treeshaking/_virtual/crypto-js/rabbit.js.mjs +136 -137
  75. package/dist/treeshaking/_virtual/crypto-js/rc4.js.mjs +105 -91
  76. package/dist/treeshaking/_virtual/crypto-js/ripemd160.js.mjs +510 -485
  77. package/dist/treeshaking/_virtual/crypto-js/sha1.js.mjs +113 -95
  78. package/dist/treeshaking/_virtual/crypto-js/sha224.js.mjs +73 -50
  79. package/dist/treeshaking/_virtual/crypto-js/sha256.js.mjs +142 -125
  80. package/dist/treeshaking/_virtual/crypto-js/sha3.js.mjs +210 -207
  81. package/dist/treeshaking/_virtual/crypto-js/sha384.js.mjs +80 -52
  82. package/dist/treeshaking/_virtual/crypto-js/sha512.js.mjs +307 -287
  83. package/dist/treeshaking/_virtual/crypto-js/tripledes.js.mjs +817 -789
  84. package/dist/treeshaking/_virtual/crypto-js/x64-core.js.mjs +102 -261
  85. package/dist/treeshaking/_virtual/global/document.js.mjs +16 -7
  86. package/dist/treeshaking/_virtual/global/window.js.mjs +12 -7
  87. package/dist/treeshaking/_virtual/is-function/index.js.mjs +13 -20
  88. package/dist/treeshaking/_virtual/m3u8-parser/dist/m3u8-parser.es.js.mjs +1145 -1380
  89. package/dist/treeshaking/_virtual/mpd-parser/dist/mpd-parser.es.js.mjs +1723 -1628
  90. package/dist/treeshaking/_virtual/mux.js/lib/tools/parse-sidx.js.mjs +39 -7
  91. package/dist/treeshaking/_virtual/mux.js/lib/utils/clock.js.mjs +44 -5
  92. package/dist/treeshaking/_virtual/mux.js/lib/utils/numbers.js.mjs +21 -27
  93. package/dist/treeshaking/_virtual/rxjs/dist/esm5/internal/NotificationFactories.js.mjs +18 -0
  94. package/dist/treeshaking/_virtual/rxjs/dist/esm5/internal/Observable.js.mjs +86 -91
  95. package/dist/treeshaking/_virtual/rxjs/dist/esm5/internal/Subscriber.js.mjs +141 -136
  96. package/dist/treeshaking/_virtual/rxjs/dist/esm5/internal/Subscription.js.mjs +105 -131
  97. package/dist/treeshaking/_virtual/rxjs/dist/esm5/internal/config.js.mjs +7 -4
  98. package/dist/treeshaking/_virtual/rxjs/dist/esm5/internal/scheduler/timeoutProvider.js.mjs +15 -15
  99. package/dist/treeshaking/_virtual/rxjs/dist/esm5/internal/symbol/observable.js.mjs +3 -4
  100. package/dist/treeshaking/_virtual/rxjs/dist/esm5/internal/util/UnsubscriptionError.js.mjs +10 -11
  101. package/dist/treeshaking/_virtual/rxjs/dist/esm5/internal/util/arrRemove.js.mjs +6 -7
  102. package/dist/treeshaking/_virtual/rxjs/dist/esm5/internal/util/createErrorClass.js.mjs +10 -11
  103. package/dist/treeshaking/_virtual/rxjs/dist/esm5/internal/util/errorContext.js.mjs +23 -6
  104. package/dist/treeshaking/_virtual/rxjs/dist/esm5/internal/util/identity.js.mjs +3 -4
  105. package/dist/treeshaking/_virtual/rxjs/dist/esm5/internal/util/isFunction.js.mjs +3 -4
  106. package/dist/treeshaking/_virtual/rxjs/dist/esm5/internal/util/noop.js.mjs +3 -5
  107. package/dist/treeshaking/_virtual/rxjs/dist/esm5/internal/util/pipe.js.mjs +9 -14
  108. package/dist/treeshaking/_virtual/rxjs/dist/esm5/internal/util/reportUnhandledError.js.mjs +8 -8
  109. package/dist/treeshaking/_virtual/tslib/tslib.es6.mjs.mjs +60 -54
  110. package/dist/treeshaking/_virtual/video.js/dist/video.es.js.mjs +41510 -39526
  111. package/dist/treeshaking/_virtual/videojs-vtt.js/lib/browser-index.js.mjs +46 -7
  112. package/dist/treeshaking/_virtual/videojs-vtt.js/lib/vtt.js.mjs +911 -1082
  113. package/dist/treeshaking/_virtual/videojs-vtt.js/lib/vttcue.js.mjs +238 -235
  114. package/dist/treeshaking/_virtual/videojs-vtt.js/lib/vttregion.js.mjs +115 -122
  115. package/dist/treeshaking/_virtual/~icons/components/icon-address.mjs +21 -0
  116. package/dist/treeshaking/_virtual/~icons/components/icon-anchor-expand.mjs +20 -0
  117. package/dist/treeshaking/_virtual/~icons/components/icon-anchor.mjs +22 -0
  118. package/dist/treeshaking/_virtual/~icons/components/icon-arrow-left.mjs +20 -0
  119. package/dist/treeshaking/_virtual/~icons/components/icon-avatar-line.mjs +20 -0
  120. package/dist/treeshaking/_virtual/~icons/components/icon-caret-left.mjs +20 -0
  121. package/dist/treeshaking/_virtual/~icons/components/icon-caret-right.mjs +20 -0
  122. package/dist/treeshaking/_virtual/~icons/components/icon-chevron-down.mjs +20 -0
  123. package/dist/treeshaking/_virtual/~icons/components/icon-chevron-right.mjs +20 -0
  124. package/dist/treeshaking/_virtual/~icons/components/icon-chevron-up.mjs +20 -0
  125. package/dist/treeshaking/_virtual/~icons/components/icon-close.mjs +20 -0
  126. package/dist/treeshaking/_virtual/~icons/components/icon-copy.mjs +20 -0
  127. package/dist/treeshaking/_virtual/~icons/components/icon-delete-hover.mjs +23 -0
  128. package/dist/treeshaking/_virtual/~icons/components/icon-delete.mjs +17 -0
  129. package/dist/treeshaking/_virtual/~icons/components/icon-download.mjs +17 -0
  130. package/dist/treeshaking/_virtual/~icons/components/icon-edit.mjs +40 -0
  131. package/dist/treeshaking/_virtual/~icons/components/icon-email.mjs +21 -0
  132. package/dist/treeshaking/_virtual/~icons/components/icon-expand.mjs +21 -0
  133. package/dist/treeshaking/_virtual/~icons/components/icon-forum.mjs +21 -0
  134. package/dist/treeshaking/_virtual/~icons/components/icon-header-back.mjs +20 -0
  135. package/dist/treeshaking/_virtual/~icons/components/icon-header-menu.mjs +20 -0
  136. package/dist/treeshaking/_virtual/~icons/components/icon-header-search.mjs +20 -0
  137. package/dist/treeshaking/_virtual/~icons/components/icon-image-upload.mjs +20 -0
  138. package/dist/treeshaking/_virtual/~icons/components/icon-image-zoomin.mjs +20 -0
  139. package/dist/treeshaking/_virtual/~icons/components/icon-like.mjs +20 -0
  140. package/dist/treeshaking/_virtual/~icons/components/icon-link.mjs +30 -0
  141. package/dist/treeshaking/_virtual/~icons/components/icon-locale.mjs +20 -0
  142. package/dist/treeshaking/_virtual/~icons/components/icon-menu-fold.mjs +20 -0
  143. package/dist/treeshaking/_virtual/~icons/components/icon-menu-unfold.mjs +20 -0
  144. package/dist/treeshaking/_virtual/~icons/components/icon-moon.mjs +20 -0
  145. package/dist/treeshaking/_virtual/~icons/components/icon-more.mjs +19 -0
  146. package/dist/treeshaking/_virtual/~icons/components/icon-next.mjs +22 -0
  147. package/dist/treeshaking/_virtual/~icons/components/icon-notice.mjs +20 -0
  148. package/dist/treeshaking/_virtual/~icons/components/icon-outlink.mjs +20 -0
  149. package/dist/treeshaking/_virtual/~icons/components/icon-refresh.mjs +21 -0
  150. package/dist/treeshaking/_virtual/~icons/components/icon-relative-search.mjs +21 -0
  151. package/dist/treeshaking/_virtual/~icons/components/icon-search.mjs +17 -0
  152. package/dist/treeshaking/_virtual/~icons/components/icon-smile.mjs +21 -0
  153. package/dist/treeshaking/_virtual/~icons/components/icon-star.mjs +20 -0
  154. package/dist/treeshaking/_virtual/~icons/components/icon-sun.mjs +20 -0
  155. package/dist/treeshaking/_virtual/~icons/components/icon-time.mjs +20 -0
  156. package/dist/treeshaking/_virtual/~icons/components/icon-tips.mjs +17 -0
  157. package/dist/treeshaking/_virtual/~icons/components/icon-unexpand.mjs +22 -0
  158. package/dist/treeshaking/_virtual/~icons/components/icon-unlike.mjs +20 -0
  159. package/dist/treeshaking/_virtual/~icons/components/icon-working.mjs +17 -0
  160. package/dist/treeshaking/_virtual/~icons/events/icon-checked.mjs +20 -0
  161. package/dist/treeshaking/_virtual/~icons/events/icon-competition.mjs +30 -0
  162. package/dist/treeshaking/_virtual/~icons/events/icon-events.mjs +30 -0
  163. package/dist/treeshaking/_virtual/~icons/events/icon-release.mjs +30 -0
  164. package/dist/treeshaking/_virtual/~icons/events/icon-summit.mjs +30 -0
  165. package/dist/treeshaking/_virtual/~icons/meeting/icon-all.mjs +20 -0
  166. package/dist/treeshaking/_virtual/~icons/meeting/icon-copy.mjs +21 -0
  167. package/dist/treeshaking/_virtual/~icons/meeting/icon-event.mjs +21 -0
  168. package/dist/treeshaking/_virtual/~icons/meeting/icon-help.mjs +21 -0
  169. package/dist/treeshaking/_virtual/~icons/meeting/icon-meet.mjs +20 -0
  170. package/dist/treeshaking/_virtual/~icons/meeting/icon-playing.mjs +35 -0
  171. package/dist/treeshaking/_virtual/~icons/meeting/icon-speaker.mjs +17 -0
  172. package/dist/treeshaking/_virtual/~icons/meeting/icon-summit.mjs +21 -0
  173. package/dist/treeshaking/_virtual/~icons/meeting/icon-tip.mjs +21 -0
  174. package/dist/treeshaking/_virtual/~icons/sig/icon-atomgit.mjs +24 -0
  175. package/dist/treeshaking/_virtual/~icons/sig/icon-gitee.mjs +20 -0
  176. package/dist/treeshaking/_virtual/~icons/sig/icon-mail.mjs +17 -0
  177. package/dist/treeshaking/_virtual/~icons/sig/icon-search.mjs +17 -0
  178. package/dist/treeshaking/_virtual/~icons/sig/icon-user.mjs +17 -0
  179. package/dist/treeshaking/_virtual/~icons/sig/sig-space.mjs +20 -0
  180. package/dist/treeshaking/_virtual/~icons/user-center/icon-add-dark.mjs +42 -0
  181. package/dist/treeshaking/_virtual/~icons/user-center/icon-add-new.mjs +17 -0
  182. package/dist/treeshaking/_virtual/~icons/user-center/icon-check.mjs +20 -0
  183. package/dist/treeshaking/_virtual/~icons/user-center/icon-chevron-right.mjs +20 -0
  184. package/dist/treeshaking/_virtual/~icons/user-center/icon-close.mjs +20 -0
  185. package/dist/treeshaking/_virtual/~icons/user-center/icon-done.mjs +20 -0
  186. package/dist/treeshaking/_virtual/~icons/user-center/icon-edit-new.mjs +17 -0
  187. package/dist/treeshaking/_virtual/~icons/user-center/icon-email.mjs +22 -0
  188. package/dist/treeshaking/_virtual/~icons/user-center/icon-eye-off.mjs +20 -0
  189. package/dist/treeshaking/_virtual/~icons/user-center/icon-eye.mjs +20 -0
  190. package/dist/treeshaking/_virtual/~icons/user-center/icon-gitcode-new.mjs +29 -0
  191. package/dist/treeshaking/_virtual/~icons/user-center/icon-gitee.mjs +20 -0
  192. package/dist/treeshaking/_virtual/~icons/user-center/icon-github.mjs +20 -0
  193. package/dist/treeshaking/_virtual/~icons/user-center/icon-loading.mjs +23 -0
  194. package/dist/treeshaking/_virtual/~icons/user-center/icon-minus-dark.mjs +64 -0
  195. package/dist/treeshaking/_virtual/~icons/user-center/icon-minus-new.mjs +17 -0
  196. package/dist/treeshaking/_virtual/~icons/user-center/icon-openatom.mjs +20 -0
  197. package/dist/treeshaking/_virtual/~icons/user-center/icon-phone.mjs +22 -0
  198. package/dist/treeshaking/_virtual/~icons/user-center/icon-refresh.mjs +45 -0
  199. package/dist/treeshaking/_virtual/~icons/user-center/icon-setting.mjs +20 -0
  200. package/dist/treeshaking/_virtual/~icons/user-center/icon-tips.mjs +30 -0
  201. package/dist/treeshaking/_virtual/~icons/user-center/icon-wechat.mjs +18 -0
  202. package/dist/treeshaking/_virtual/~icons/video/icon-material.mjs +21 -0
  203. package/dist/treeshaking/_virtual/~icons/video/icon-video.mjs +30 -0
  204. package/dist/treeshaking/assets/meeting/empty.mjs +3 -0
  205. package/dist/treeshaking/assets/meeting/transparent.mjs +3 -0
  206. package/dist/treeshaking/assets/search/search-empty.mjs +3 -0
  207. package/dist/treeshaking/assets/styles/element-plus.css +302 -0
  208. package/dist/treeshaking/assets/svg-icons/icon-zoom.mjs +3 -0
  209. package/dist/treeshaking/assets/user-center/images/avatar.mjs +3 -0
  210. package/dist/treeshaking/assets/user-center/images/default-user-photo.mjs +3 -0
  211. package/dist/treeshaking/assets/user-center/images/left-arrow-dark.mjs +3 -0
  212. package/dist/treeshaking/assets/user-center/images/left-arrow-light.mjs +3 -0
  213. package/dist/treeshaking/assets/user-center/images/noData.mjs +3 -0
  214. package/dist/treeshaking/assets/user-center/images/warning-dark.mjs +3 -0
  215. package/dist/treeshaking/assets/user-center/images/warning-light.mjs +3 -0
  216. package/dist/treeshaking/components/activity/OActivityApproval.mjs +6 -0
  217. package/dist/treeshaking/components/activity/OActivityApproval.vue_vue_type_script_setup_true_lang.mjs +586 -0
  218. package/dist/treeshaking/components/activity/OActivityForm.mjs +6 -0
  219. package/dist/treeshaking/components/activity/OActivityForm.vue_vue_type_script_setup_true_lang.mjs +517 -0
  220. package/dist/treeshaking/components/activity/OActivityForm.vue_vue_type_style_index_0_lang.css +369 -0
  221. package/dist/treeshaking/components/activity/OActivityForm.vue_vue_type_style_index_1_lang.css +332 -0
  222. package/dist/treeshaking/components/activity/OActivityMyCalendar.mjs +6 -0
  223. package/dist/treeshaking/components/activity/OActivityMyCalendar.vue_vue_type_script_setup_true_lang.mjs +622 -0
  224. package/dist/treeshaking/components/activity/OActivityMyCalendar.vue_vue_type_style_index_0_lang.css +1380 -0
  225. package/dist/treeshaking/components/activity/OActivityMyCalendar.vue_vue_type_style_index_1_lang.css +323 -0
  226. package/dist/treeshaking/components/activity/composables/useActivityConfig.mjs +88 -137
  227. package/dist/treeshaking/components/activity/config.mjs +3 -4
  228. package/dist/treeshaking/components/activity/index.mjs +14 -29
  229. package/dist/treeshaking/components/anchor-bar/OAnchorBar.mjs +6 -0
  230. package/dist/treeshaking/components/anchor-bar/OAnchorBar.vue_vue_type_script_setup_true_lang.mjs +84 -0
  231. package/dist/treeshaking/components/anchor-bar/index.mjs +6 -9
  232. package/dist/treeshaking/components/article/OArticle.mjs +6 -0
  233. package/dist/treeshaking/components/article/OArticle.vue_vue_type_script_setup_true_lang.mjs +133 -0
  234. package/dist/treeshaking/components/article/OArticleList.mjs +5 -0
  235. package/dist/treeshaking/components/article/OArticleList.vue_vue_type_script_setup_true_lang.mjs +182 -0
  236. package/dist/treeshaking/components/article/OArticleList.vue_vue_type_style_index_0_lang.css +259 -0
  237. package/dist/treeshaking/components/article/components/ArticleTitle.mjs +6 -0
  238. package/dist/treeshaking/components/article/components/ArticleTitle.vue_vue_type_script_setup_true_lang.mjs +77 -0
  239. package/dist/treeshaking/components/article/components/DocTitle.mjs +6 -0
  240. package/dist/treeshaking/components/article/components/DocTitle.vue_vue_type_script_setup_true_lang.mjs +224 -0
  241. package/dist/treeshaking/components/article/index.mjs +10 -17
  242. package/dist/treeshaking/components/article-anchor/OArticleAnchor.mjs +6 -0
  243. package/dist/treeshaking/components/article-anchor/OArticleAnchor.vue_vue_type_script_setup_true_lang.mjs +306 -0
  244. package/dist/treeshaking/components/article-anchor/components/ArticleAnchorItems.mjs +6 -0
  245. package/dist/treeshaking/components/article-anchor/components/ArticleAnchorItems.vue_vue_type_script_setup_true_lang.mjs +32 -0
  246. package/dist/treeshaking/components/article-anchor/components/ArticleAnchorMobile.mjs +6 -0
  247. package/dist/treeshaking/components/article-anchor/components/ArticleAnchorMobile.vue_vue_type_script_setup_true_lang.mjs +132 -0
  248. package/dist/treeshaking/components/article-anchor/components/ArticleAnchorMobile.vue_vue_type_style_index_0_scoped_8190c89e_lang.css +47 -0
  249. package/dist/treeshaking/components/article-anchor/components/ArticleAnchorPad.mjs +6 -0
  250. package/dist/treeshaking/components/article-anchor/components/ArticleAnchorPad.vue.d.ts +2 -6
  251. package/dist/treeshaking/components/article-anchor/components/ArticleAnchorPad.vue_vue_type_script_setup_true_lang.mjs +46 -0
  252. package/dist/treeshaking/components/article-anchor/components/ArticleAnchorPad.vue_vue_type_style_index_0_scoped_2ae25d23_lang.css +80 -0
  253. package/dist/treeshaking/components/article-anchor/components/ArticleAnchorPc.mjs +6 -0
  254. package/dist/treeshaking/components/article-anchor/components/ArticleAnchorPc.vue_vue_type_script_setup_true_lang.mjs +27 -0
  255. package/dist/treeshaking/components/article-anchor/index.mjs +6 -9
  256. package/dist/treeshaking/components/article-pagination/OArticlePagination.mjs +6 -0
  257. package/dist/treeshaking/components/article-pagination/OArticlePagination.vue_vue_type_script_setup_true_lang.mjs +82 -0
  258. package/dist/treeshaking/components/article-pagination/index.mjs +6 -9
  259. package/dist/treeshaking/components/banner/OBanner.mjs +7 -0
  260. package/dist/treeshaking/components/banner/OBanner.vue_vue_type_script_setup_true_lang.mjs +129 -0
  261. package/dist/treeshaking/components/banner/OBannerContent.mjs +6 -0
  262. package/dist/treeshaking/components/banner/OBannerContent.vue_vue_type_script_setup_true_lang.mjs +93 -0
  263. package/dist/treeshaking/components/banner/index.mjs +10 -16
  264. package/dist/treeshaking/components/brand/OBrandFile.mjs +6 -0
  265. package/dist/treeshaking/components/brand/OBrandFile.vue_vue_type_script_setup_true_lang.mjs +59 -0
  266. package/dist/treeshaking/components/brand/OBrandLogo.mjs +7 -0
  267. package/dist/treeshaking/components/brand/OBrandLogo.vue_vue_type_script_setup_true_lang.mjs +101 -0
  268. package/dist/treeshaking/components/brand/OBrandStandard.mjs +6 -0
  269. package/dist/treeshaking/components/brand/OBrandStandard.vue_vue_type_script_setup_true_lang.mjs +51 -0
  270. package/dist/treeshaking/components/brand/index.mjs +14 -23
  271. package/dist/treeshaking/components/brand/utils.mjs +21 -25
  272. package/dist/treeshaking/components/common/AppAvatar.mjs +6 -0
  273. package/dist/treeshaking/components/common/AppAvatar.vue_vue_type_script_setup_true_lang.mjs +73 -0
  274. package/dist/treeshaking/components/common/ClientOnly.mjs +4 -0
  275. package/dist/treeshaking/components/common/ClientOnly.vue_vue_type_script_setup_true_lang.mjs +15 -0
  276. package/dist/treeshaking/components/common/ContentWrapper.mjs +6 -0
  277. package/dist/treeshaking/components/common/ContentWrapper.vue_vue_type_script_setup_true_lang.mjs +40 -0
  278. package/dist/treeshaking/components/common/TooltipText.mjs +5 -0
  279. package/dist/treeshaking/components/common/TooltipText.vue_vue_type_script_setup_true_lang.mjs +92 -0
  280. package/dist/treeshaking/components/common/WordAvatar.mjs +5 -0
  281. package/dist/treeshaking/components/common/WordAvatar.vue_vue_type_script_setup_true_lang.mjs +77 -0
  282. package/dist/treeshaking/components/community-updates/OCommunityUpdates.mjs +6 -0
  283. package/dist/treeshaking/components/community-updates/OCommunityUpdates.vue.d.ts +46 -0
  284. package/dist/treeshaking/components/community-updates/OCommunityUpdates.vue_vue_type_script_setup_true_lang.mjs +100 -0
  285. package/dist/treeshaking/components/community-updates/OCommunityUpdates.vue_vue_type_style_index_0_scoped_1da301c6_lang.css +107 -0
  286. package/dist/treeshaking/components/community-updates/OCommunityUpdatesCard.mjs +5 -0
  287. package/dist/treeshaking/components/community-updates/OCommunityUpdatesCard.vue.d.ts +7 -0
  288. package/dist/treeshaking/components/community-updates/OCommunityUpdatesCard.vue_vue_type_script_setup_true_lang.mjs +49 -0
  289. package/dist/treeshaking/components/community-updates/OCommunityUpdatesCard.vue_vue_type_style_index_0_lang.css +130 -0
  290. package/dist/treeshaking/components/community-updates/index.d.ts +91 -0
  291. package/dist/treeshaking/components/community-updates/index.mjs +10 -0
  292. package/dist/treeshaking/components/community-updates/types.d.ts +36 -0
  293. package/dist/treeshaking/components/config-provider/OPlusConfigProvider.mjs +4 -0
  294. package/dist/treeshaking/components/config-provider/OPlusConfigProvider.vue_vue_type_script_setup_true_lang.mjs +30 -0
  295. package/dist/treeshaking/components/config-provider/index.mjs +6 -9
  296. package/dist/treeshaking/components/cookie-notice/OCookieNotice.mjs +6 -0
  297. package/dist/treeshaking/components/cookie-notice/OCookieNotice.vue_vue_type_script_setup_true_lang.mjs +283 -0
  298. package/dist/treeshaking/components/cookie-notice/OCookieNotice.vue_vue_type_style_index_0_scoped_a7993ee9_lang.css +324 -0
  299. package/dist/treeshaking/components/cookie-notice/index.mjs +6 -9
  300. package/dist/treeshaking/components/doc-layout/ODocLayout.mjs +6 -0
  301. package/dist/treeshaking/components/doc-layout/ODocLayout.vue.d.ts +8 -4
  302. package/dist/treeshaking/components/doc-layout/ODocLayout.vue_vue_type_script_setup_true_lang.mjs +168 -0
  303. package/dist/treeshaking/components/doc-layout/ODocLayout.vue_vue_type_style_index_0_scoped_b4aff4ce_lang.css +306 -0
  304. package/dist/treeshaking/components/doc-layout/index.d.ts +9 -0
  305. package/dist/treeshaking/components/doc-layout/index.mjs +6 -9
  306. package/dist/treeshaking/components/element-plus/OElCookieNotice.mjs +7 -0
  307. package/dist/treeshaking/components/element-plus/OElCookieNotice.vue_vue_type_script_setup_true_lang.mjs +291 -0
  308. package/dist/treeshaking/components/element-plus/OElCookieNotice.vue_vue_type_style_index_0_lang.css +308 -0
  309. package/dist/treeshaking/components/element-plus/OElCookieNotice.vue_vue_type_style_index_1_scoped_d9e2bcf9_lang.css +699 -0
  310. package/dist/treeshaking/components/empty/404.mjs +3 -0
  311. package/dist/treeshaking/components/empty/404_dark.mjs +3 -0
  312. package/dist/treeshaking/components/empty/OEmpty.mjs +6 -0
  313. package/dist/treeshaking/components/empty/OEmpty.vue_vue_type_script_setup_true_lang.mjs +39 -0
  314. package/dist/treeshaking/components/empty/index.mjs +6 -9
  315. package/dist/treeshaking/components/events/OEventsApply.mjs +5 -0
  316. package/dist/treeshaking/components/events/OEventsApply.vue_vue_type_script_setup_true_lang.mjs +64 -0
  317. package/dist/treeshaking/components/events/OEventsCalendar.mjs +5 -0
  318. package/dist/treeshaking/components/events/OEventsCalendar.vue_vue_type_script_setup_true_lang.mjs +205 -0
  319. package/dist/treeshaking/components/events/OEventsList.mjs +5 -0
  320. package/dist/treeshaking/components/events/OEventsList.vue_vue_type_script_setup_true_lang.mjs +195 -0
  321. package/dist/treeshaking/components/events/config.mjs +30 -34
  322. package/dist/treeshaking/components/events/index.mjs +15 -26
  323. package/dist/treeshaking/components/events/types.mjs +8 -9
  324. package/dist/treeshaking/components/events/utils.mjs +10 -5
  325. package/dist/treeshaking/components/feedback-doc/OFeedbackDoc.mjs +6 -0
  326. package/dist/treeshaking/components/feedback-doc/OFeedbackDoc.vue_vue_type_script_setup_true_lang.mjs +174 -0
  327. package/dist/treeshaking/components/feedback-doc/OFeedbackDocContent.mjs +6 -0
  328. package/dist/treeshaking/components/feedback-doc/OFeedbackDocContent.vue_vue_type_script_setup_true_lang.mjs +276 -0
  329. package/dist/treeshaking/components/feedback-doc/OFeedbackDocDialog.mjs +4 -0
  330. package/dist/treeshaking/components/feedback-doc/OFeedbackDocDialog.vue_vue_type_script_setup_true_lang.mjs +102 -0
  331. package/dist/treeshaking/components/feedback-doc/OFeedbackDocPopup.mjs +6 -0
  332. package/dist/treeshaking/components/feedback-doc/OFeedbackDocPopup.vue_vue_type_script_setup_true_lang.mjs +112 -0
  333. package/dist/treeshaking/components/feedback-doc/index.mjs +18 -30
  334. package/dist/treeshaking/components/float-poster/OFloatPoster.mjs +6 -0
  335. package/dist/treeshaking/components/float-poster/OFloatPoster.vue_vue_type_script_setup_true_lang.mjs +77 -0
  336. package/dist/treeshaking/components/float-poster/index.mjs +6 -9
  337. package/dist/treeshaking/components/footer/OFooter.mjs +6 -0
  338. package/dist/treeshaking/components/footer/OFooter.vue_vue_type_script_setup_true_lang.mjs +78 -0
  339. package/dist/treeshaking/components/footer/components/FooterList.mjs +6 -0
  340. package/dist/treeshaking/components/footer/components/FooterList.vue_vue_type_script_setup_true_lang.mjs +150 -0
  341. package/dist/treeshaking/components/footer/components/FooterSimple.mjs +6 -0
  342. package/dist/treeshaking/components/footer/components/FooterSimple.vue_vue_type_script_setup_true_lang.mjs +100 -0
  343. package/dist/treeshaking/components/footer/index.mjs +6 -9
  344. package/dist/treeshaking/components/header/OHeader.mjs +6 -0
  345. package/dist/treeshaking/components/header/OHeader.vue_vue_type_script_setup_true_lang.mjs +256 -0
  346. package/dist/treeshaking/components/header/OHeaderMobile.mjs +6 -0
  347. package/dist/treeshaking/components/header/OHeaderMobile.vue_vue_type_script_setup_true_lang.mjs +121 -0
  348. package/dist/treeshaking/components/header/components/HeaderContent.mjs +6 -0
  349. package/dist/treeshaking/components/header/components/HeaderContent.vue_vue_type_script_setup_true_lang.mjs +286 -0
  350. package/dist/treeshaking/components/header/components/HeaderFlatten.mjs +6 -0
  351. package/dist/treeshaking/components/header/components/HeaderFlatten.vue_vue_type_script_setup_true_lang.mjs +247 -0
  352. package/dist/treeshaking/components/header/components/HeaderNav.mjs +6 -0
  353. package/dist/treeshaking/components/header/components/HeaderNav.vue_vue_type_script_setup_true_lang.mjs +210 -0
  354. package/dist/treeshaking/components/header/components/HeaderNavMobile.mjs +6 -0
  355. package/dist/treeshaking/components/header/components/HeaderNavMobile.vue_vue_type_script_setup_true_lang.mjs +197 -0
  356. package/dist/treeshaking/components/header/index.mjs +11 -16
  357. package/dist/treeshaking/components/header/types.mjs +8 -9
  358. package/dist/treeshaking/components/header/utils.mjs +10 -18
  359. package/dist/treeshaking/components/header-language-switcher/OHeaderLanguageSwitcher.mjs +7 -0
  360. package/dist/treeshaking/components/header-language-switcher/OHeaderLanguageSwitcher.vue_vue_type_script_setup_true_lang.mjs +109 -0
  361. package/dist/treeshaking/components/header-language-switcher/index.mjs +6 -9
  362. package/dist/treeshaking/components/header-search/OHeaderSearch.mjs +6 -0
  363. package/dist/treeshaking/components/header-search/OHeaderSearch.vue_vue_type_script_setup_true_lang.mjs +434 -0
  364. package/dist/treeshaking/components/header-search/index.mjs +6 -9
  365. package/dist/treeshaking/components/header-source-code/OHeaderSourceCode.mjs +6 -0
  366. package/dist/treeshaking/components/header-source-code/OHeaderSourceCode.vue_vue_type_script_setup_true_lang.mjs +73 -0
  367. package/dist/treeshaking/components/header-source-code/index.mjs +6 -9
  368. package/dist/treeshaking/components/header-theme/OHeaderTheme.mjs +6 -0
  369. package/dist/treeshaking/components/header-theme/OHeaderTheme.vue_vue_type_script_setup_true_lang.mjs +75 -0
  370. package/dist/treeshaking/components/header-theme/index.mjs +6 -9
  371. package/dist/treeshaking/components/header-user/OHeaderUser.mjs +7 -0
  372. package/dist/treeshaking/components/header-user/OHeaderUser.vue_vue_type_script_setup_true_lang.mjs +124 -0
  373. package/dist/treeshaking/components/header-user/index.mjs +6 -9
  374. package/dist/treeshaking/components/html-viewer/OHtmlViewer.mjs +6 -0
  375. package/dist/treeshaking/components/html-viewer/OHtmlViewer.vue_vue_type_script_setup_true_lang.mjs +87 -0
  376. package/dist/treeshaking/components/html-viewer/index.mjs +6 -9
  377. package/dist/treeshaking/components/html-viewer/utils.mjs +71 -66
  378. package/dist/treeshaking/components/icon/index.mjs +14 -10
  379. package/dist/treeshaking/components/logo-swiper/OLogoSwiper.mjs +6 -0
  380. package/dist/treeshaking/components/logo-swiper/OLogoSwiper.vue_vue_type_script_setup_true_lang.mjs +15 -0
  381. package/dist/treeshaking/components/logo-swiper/OLogoSwiperItems.mjs +6 -0
  382. package/dist/treeshaking/components/logo-swiper/OLogoSwiperItems.vue_vue_type_script_setup_true_lang.mjs +145 -0
  383. package/dist/treeshaking/components/logo-swiper/index.mjs +10 -16
  384. package/dist/treeshaking/components/markdown/OMarkdown.mjs +7 -0
  385. package/dist/treeshaking/components/markdown/OMarkdown.vue_vue_type_script_setup_true_lang.mjs +180 -0
  386. package/dist/treeshaking/components/markdown/components/MarkdownCode.mjs +7 -0
  387. package/dist/treeshaking/components/markdown/components/MarkdownCode.vue_vue_type_script_setup_true_lang.mjs +94 -0
  388. package/dist/treeshaking/components/markdown/components/MarkdownImage.mjs +6 -0
  389. package/dist/treeshaking/components/markdown/components/MarkdownImage.vue_vue_type_script_setup_true_lang.mjs +67 -0
  390. package/dist/treeshaking/components/markdown/components/MarkdownTable.mjs +6 -0
  391. package/dist/treeshaking/components/markdown/components/MarkdownTable.vue_vue_type_script_setup_true_lang.mjs +44 -0
  392. package/dist/treeshaking/components/markdown/components/MarkdownTableData.mjs +6 -0
  393. package/dist/treeshaking/components/markdown/components/MarkdownTableData.vue_vue_type_script_setup_true_lang.mjs +145 -0
  394. package/dist/treeshaking/components/markdown/components/MarkdownTableExpand.mjs +6 -0
  395. package/dist/treeshaking/components/markdown/components/MarkdownTableExpand.vue_vue_type_script_setup_true_lang.mjs +45 -0
  396. package/dist/treeshaking/components/markdown/components/MarkdownTitle.mjs +6 -0
  397. package/dist/treeshaking/components/markdown/components/MarkdownTitle.vue_vue_type_script_setup_true_lang.mjs +46 -0
  398. package/dist/treeshaking/components/markdown/index.mjs +6 -9
  399. package/dist/treeshaking/components/markdown/replacer/code.mjs +16 -20
  400. package/dist/treeshaking/components/markdown/replacer/h2.mjs +13 -19
  401. package/dist/treeshaking/components/markdown/replacer/img.mjs +13 -19
  402. package/dist/treeshaking/components/markdown/replacer/table.mjs +13 -19
  403. package/dist/treeshaking/components/meeting/OMeetingCalendar.mjs +5 -0
  404. package/dist/treeshaking/components/meeting/OMeetingCalendar.vue_vue_type_script_setup_true_lang.mjs +470 -0
  405. package/dist/treeshaking/components/meeting/OMeetingCalendar.vue_vue_type_style_index_0_lang.css +1105 -0
  406. package/dist/treeshaking/components/meeting/OMeetingForm.mjs +6 -0
  407. package/dist/treeshaking/components/meeting/OMeetingForm.vue_vue_type_script_setup_true_lang.mjs +857 -0
  408. package/dist/treeshaking/components/meeting/OMeetingForm.vue_vue_type_style_index_0_lang.css +771 -0
  409. package/dist/treeshaking/components/meeting/OMeetingForm.vue_vue_type_style_index_1_lang.css +363 -0
  410. package/dist/treeshaking/components/meeting/OMeetingMinutes.mjs +5 -0
  411. package/dist/treeshaking/components/meeting/OMeetingMinutes.vue_vue_type_script_setup_true_lang.mjs +307 -0
  412. package/dist/treeshaking/components/meeting/OMeetingMinutesCopyDetail.mjs +6 -0
  413. package/dist/treeshaking/components/meeting/OMeetingMinutesCopyDetail.vue_vue_type_script_setup_true_lang.mjs +52 -0
  414. package/dist/treeshaking/components/meeting/OMeetingMyCalendar.mjs +6 -0
  415. package/dist/treeshaking/components/meeting/OMeetingMyCalendar.vue_vue_type_script_setup_true_lang.mjs +661 -0
  416. package/dist/treeshaking/components/meeting/OMeetingMyCalendar.vue_vue_type_style_index_0_lang.css +1349 -0
  417. package/dist/treeshaking/components/meeting/OMeetingMyCalendar.vue_vue_type_style_index_1_lang.css +335 -0
  418. package/dist/treeshaking/components/meeting/OMeetingPlayback.mjs +5 -0
  419. package/dist/treeshaking/components/meeting/OMeetingPlayback.vue_vue_type_script_setup_true_lang.mjs +328 -0
  420. package/dist/treeshaking/components/meeting/OMeetingSendMinutesForm.mjs +5 -0
  421. package/dist/treeshaking/components/meeting/OMeetingSendMinutesForm.vue_vue_type_script_setup_true_lang.mjs +189 -0
  422. package/dist/treeshaking/components/meeting/OMeetingSigCalendar.mjs +5 -0
  423. package/dist/treeshaking/components/meeting/OMeetingSigCalendar.vue_vue_type_script_setup_true_lang.mjs +329 -0
  424. package/dist/treeshaking/components/meeting/components/OMeetingCalendarList.mjs +5 -0
  425. package/dist/treeshaking/components/meeting/components/OMeetingCalendarList.vue_vue_type_script_setup_true_lang.mjs +281 -0
  426. package/dist/treeshaking/components/meeting/components/OMeetingCalendarSelector.mjs +6 -0
  427. package/dist/treeshaking/components/meeting/components/OMeetingCalendarSelector.vue_vue_type_script_setup_true_lang.mjs +112 -0
  428. package/dist/treeshaking/components/meeting/components/OMeetingCalendarSelector.vue_vue_type_style_index_0_lang.css +384 -0
  429. package/dist/treeshaking/components/meeting/components/OMeetingCalendarSelector.vue_vue_type_style_index_1_lang.css +348 -0
  430. package/dist/treeshaking/components/meeting/components/OMeetingDetail.mjs +5 -0
  431. package/dist/treeshaking/components/meeting/components/OMeetingDetail.vue_vue_type_script_setup_true_lang.mjs +245 -0
  432. package/dist/treeshaking/components/meeting/components/OMeetingPlaybackSubtitles.mjs +6 -0
  433. package/dist/treeshaking/components/meeting/components/OMeetingPlaybackSubtitles.vue_vue_type_script_setup_true_lang.mjs +314 -0
  434. package/dist/treeshaking/components/meeting/components/OMeetingPlaybackSubtitles.vue_vue_type_style_index_0_lang.css +748 -0
  435. package/dist/treeshaking/components/meeting/components/OMeetingPlaybackSubtitles.vue_vue_type_style_index_1_lang.css +349 -0
  436. package/dist/treeshaking/components/meeting/components/OMeetingPlaybackVideo.mjs +5 -0
  437. package/dist/treeshaking/components/meeting/components/OMeetingPlaybackVideo.vue_vue_type_script_setup_true_lang.mjs +208 -0
  438. package/dist/treeshaking/components/meeting/components/OMeetingSendMinutesDialog.mjs +6 -0
  439. package/dist/treeshaking/components/meeting/components/OMeetingSendMinutesDialog.vue_vue_type_script_setup_true_lang.mjs +72 -0
  440. package/dist/treeshaking/components/meeting/components/OMeetingSigAside.mjs +5 -0
  441. package/dist/treeshaking/components/meeting/components/OMeetingSigAside.vue_vue_type_script_setup_true_lang.mjs +118 -0
  442. package/dist/treeshaking/components/meeting/composables/useMeetingConfig.mjs +130 -94
  443. package/dist/treeshaking/components/meeting/config.d.ts +0 -2
  444. package/dist/treeshaking/components/meeting/config.mjs +16 -20
  445. package/dist/treeshaking/components/meeting/index.mjs +35 -67
  446. package/dist/treeshaking/components/meeting/types.mjs +15 -17
  447. package/dist/treeshaking/components/meeting/utils.mjs +56 -72
  448. package/dist/treeshaking/components/org/OOrgDesc.mjs +6 -0
  449. package/dist/treeshaking/components/org/OOrgDesc.vue_vue_type_script_setup_true_lang.mjs +39 -0
  450. package/dist/treeshaking/components/org/OOrgMembers.mjs +6 -0
  451. package/dist/treeshaking/components/org/OOrgMembers.vue_vue_type_script_setup_true_lang.mjs +86 -0
  452. package/dist/treeshaking/components/org/index.mjs +10 -16
  453. package/dist/treeshaking/components/recursion-menu/ORecursionMenu.mjs +4 -0
  454. package/dist/treeshaking/components/recursion-menu/ORecursionMenu.vue_vue_type_script_setup_true_lang.mjs +85 -0
  455. package/dist/treeshaking/components/recursion-menu/ORecursionMenuItem.mjs +6 -0
  456. package/dist/treeshaking/components/recursion-menu/ORecursionMenuItem.vue_vue_type_script_setup_true_lang.mjs +103 -0
  457. package/dist/treeshaking/components/recursion-menu/index.mjs +11 -16
  458. package/dist/treeshaking/components/recursion-menu/types.mjs +4 -4
  459. package/dist/treeshaking/components/search/OSearchInput.mjs +6 -0
  460. package/dist/treeshaking/components/search/OSearchInput.vue_vue_type_script_setup_true_lang.mjs +407 -0
  461. package/dist/treeshaking/components/search/composables/useImageSearch.mjs +114 -132
  462. package/dist/treeshaking/components/search/composables/useKeywordHighlight.mjs +33 -26
  463. package/dist/treeshaking/components/search/composables/useSearchHistory.mjs +53 -56
  464. package/dist/treeshaking/components/search/index.mjs +6 -9
  465. package/dist/treeshaking/components/search/internal/HighlightText.mjs +6 -0
  466. package/dist/treeshaking/components/search/internal/HighlightText.vue_vue_type_script_setup_true_lang.mjs +34 -0
  467. package/dist/treeshaking/components/search/internal/SearchImageInput.mjs +7 -0
  468. package/dist/treeshaking/components/search/internal/SearchImageInput.vue_vue_type_script_setup_true_lang.mjs +291 -0
  469. package/dist/treeshaking/components/search/internal/SearchPanel.mjs +6 -0
  470. package/dist/treeshaking/components/search/internal/SearchPanel.vue_vue_type_script_setup_true_lang.mjs +221 -0
  471. package/dist/treeshaking/components/search-doc-result/OSearchDocResult.mjs +6 -0
  472. package/dist/treeshaking/components/search-doc-result/OSearchDocResult.vue.d.ts +2 -0
  473. package/dist/treeshaking/components/search-doc-result/OSearchDocResult.vue_vue_type_script_setup_true_lang.mjs +175 -0
  474. package/dist/treeshaking/components/search-doc-result/OSearchDocResult.vue_vue_type_style_index_0_scoped_9eb9bdd4_lang.css +156 -0
  475. package/dist/treeshaking/components/search-doc-result/index.d.ts +6 -0
  476. package/dist/treeshaking/components/search-doc-result/index.mjs +6 -9
  477. package/dist/treeshaking/components/search-result/OSearchResult.mjs +6 -0
  478. package/dist/treeshaking/components/search-result/OSearchResult.vue_vue_type_script_setup_true_lang.mjs +154 -0
  479. package/dist/treeshaking/components/search-result/OSearchResult.vue_vue_type_style_index_0_scoped_a8453c65_lang.css +165 -0
  480. package/dist/treeshaking/components/search-result/OSearchResultHeader.mjs +6 -0
  481. package/dist/treeshaking/components/search-result/OSearchResultHeader.vue_vue_type_script_setup_true_lang.mjs +102 -0
  482. package/dist/treeshaking/components/search-result/OSearchResultItem.mjs +6 -0
  483. package/dist/treeshaking/components/search-result/OSearchResultItem.vue_vue_type_script_setup_true_lang.mjs +89 -0
  484. package/dist/treeshaking/components/search-result/components/OSearchResultEmpty.mjs +6 -0
  485. package/dist/treeshaking/components/search-result/components/OSearchResultEmpty.vue_vue_type_script_setup_true_lang.mjs +25 -0
  486. package/dist/treeshaking/components/search-result/components/OSearchResultFeedback.mjs +6 -0
  487. package/dist/treeshaking/components/search-result/components/OSearchResultFeedback.vue_vue_type_script_setup_true_lang.mjs +128 -0
  488. package/dist/treeshaking/components/search-result/components/OSearchResultFeedbackBanner.mjs +6 -0
  489. package/dist/treeshaking/components/search-result/components/OSearchResultFeedbackBanner.vue_vue_type_script_setup_true_lang.mjs +132 -0
  490. package/dist/treeshaking/components/search-result/components/OSearchResultRelative.mjs +6 -0
  491. package/dist/treeshaking/components/search-result/components/OSearchResultRelative.vue_vue_type_script_setup_true_lang.mjs +43 -0
  492. package/dist/treeshaking/components/search-result/index.mjs +14 -23
  493. package/dist/treeshaking/components/section/OSection.mjs +6 -0
  494. package/dist/treeshaking/components/section/OSection.vue_vue_type_script_setup_true_lang.mjs +67 -0
  495. package/dist/treeshaking/components/section/index.mjs +6 -9
  496. package/dist/treeshaking/components/sig/OSigDetail.mjs +5 -0
  497. package/dist/treeshaking/components/sig/OSigDetail.vue_vue_type_script_setup_true_lang.mjs +189 -0
  498. package/dist/treeshaking/components/sig/OSigList.mjs +5 -0
  499. package/dist/treeshaking/components/sig/OSigList.vue_vue_type_script_setup_true_lang.mjs +513 -0
  500. package/dist/treeshaking/components/sig/OSigList.vue_vue_type_style_index_0_lang.css +850 -0
  501. package/dist/treeshaking/components/sig/components/OSigDetailInfoCard.mjs +5 -0
  502. package/dist/treeshaking/components/sig/components/OSigDetailInfoCard.vue_vue_type_script_setup_true_lang.mjs +69 -0
  503. package/dist/treeshaking/components/sig/components/OSigItem.mjs +5 -0
  504. package/dist/treeshaking/components/sig/components/OSigItem.vue_vue_type_script_setup_true_lang.mjs +154 -0
  505. package/dist/treeshaking/components/sig/components/OSigMember.mjs +5 -0
  506. package/dist/treeshaking/components/sig/components/OSigMember.vue_vue_type_script_setup_true_lang.mjs +190 -0
  507. package/dist/treeshaking/components/sig/components/OSigRepo.mjs +5 -0
  508. package/dist/treeshaking/components/sig/components/OSigRepo.vue_vue_type_script_setup_true_lang.mjs +181 -0
  509. package/dist/treeshaking/components/sig/components/OSigUserContribute.mjs +5 -0
  510. package/dist/treeshaking/components/sig/components/OSigUserContribute.vue_vue_type_script_setup_true_lang.mjs +326 -0
  511. package/dist/treeshaking/components/sig/components/utils.mjs +61 -38
  512. package/dist/treeshaking/components/sig/index.mjs +10 -18
  513. package/dist/treeshaking/components/summit/OSummit.mjs +6 -0
  514. package/dist/treeshaking/components/summit/OSummit.vue_vue_type_script_setup_true_lang.mjs +59 -0
  515. package/dist/treeshaking/components/summit/OSummitIntro.mjs +6 -0
  516. package/dist/treeshaking/components/summit/OSummitIntro.vue_vue_type_script_setup_true_lang.mjs +22 -0
  517. package/dist/treeshaking/components/summit/OSummitLive.mjs +6 -0
  518. package/dist/treeshaking/components/summit/OSummitLive.vue_vue_type_script_setup_true_lang.mjs +141 -0
  519. package/dist/treeshaking/components/summit/OSummitSchedule.mjs +7 -0
  520. package/dist/treeshaking/components/summit/OSummitSchedule.vue_vue_type_script_setup_true_lang.mjs +229 -0
  521. package/dist/treeshaking/components/summit/components/OSummitTabs.mjs +6 -0
  522. package/dist/treeshaking/components/summit/components/OSummitTabs.vue_vue_type_script_setup_true_lang.mjs +127 -0
  523. package/dist/treeshaking/components/summit/index.mjs +18 -30
  524. package/dist/treeshaking/components/summit/utils.mjs +103 -88
  525. package/dist/treeshaking/components/user-center/OAccountSecurity.mjs +6 -0
  526. package/dist/treeshaking/components/user-center/OAccountSecurity.vue_vue_type_script_setup_true_lang.mjs +298 -0
  527. package/dist/treeshaking/components/user-center/OAccountSecurity.vue_vue_type_style_index_0_scoped_34dbfef7_lang.css +253 -0
  528. package/dist/treeshaking/components/user-center/OAccountSetting.mjs +6 -0
  529. package/dist/treeshaking/components/user-center/OAccountSetting.vue_vue_type_script_setup_true_lang.mjs +337 -0
  530. package/dist/treeshaking/components/user-center/OAccountSetting.vue_vue_type_style_index_0_scoped_5887ac06_lang.css +284 -0
  531. package/dist/treeshaking/components/user-center/OAppHeader.mjs +6 -0
  532. package/dist/treeshaking/components/user-center/OAppHeader.vue_vue_type_script_setup_true_lang.mjs +215 -0
  533. package/dist/treeshaking/components/user-center/OAsideBar.mjs +6 -0
  534. package/dist/treeshaking/components/user-center/OAsideBar.vue_vue_type_script_setup_true_lang.mjs +89 -0
  535. package/dist/treeshaking/components/user-center/OLayout.mjs +6 -0
  536. package/dist/treeshaking/components/user-center/OLayout.vue_vue_type_script_setup_true_lang.mjs +19 -0
  537. package/dist/treeshaking/components/user-center/OTheAccountManage.mjs +6 -0
  538. package/dist/treeshaking/components/user-center/OTheAccountManage.vue_vue_type_script_setup_true_lang.mjs +14 -0
  539. package/dist/treeshaking/components/user-center/OTheCreateMeeting.mjs +6 -0
  540. package/dist/treeshaking/components/user-center/OTheCreateMeeting.vue_vue_type_script_setup_true_lang.mjs +90 -0
  541. package/dist/treeshaking/components/user-center/OTheMeeting.mjs +6 -0
  542. package/dist/treeshaking/components/user-center/OTheMeeting.vue_vue_type_script_setup_true_lang.mjs +111 -0
  543. package/dist/treeshaking/components/user-center/OThirdPartyBindings.mjs +6 -0
  544. package/dist/treeshaking/components/user-center/OThirdPartyBindings.vue_vue_type_script_setup_true_lang.mjs +343 -0
  545. package/dist/treeshaking/components/user-center/OUserInfo.mjs +8 -0
  546. package/dist/treeshaking/components/user-center/OUserInfo.vue_vue_type_script_setup_true_lang.mjs +491 -0
  547. package/dist/treeshaking/components/user-center/const/common.const.mjs +22 -30
  548. package/dist/treeshaking/components/user-center/index.mjs +42 -72
  549. package/dist/treeshaking/components/user-center/internal/OAppDialog.mjs +6 -0
  550. package/dist/treeshaking/components/user-center/internal/OAppDialog.vue_vue_type_script_setup_true_lang.mjs +363 -0
  551. package/dist/treeshaking/components/user-center/internal/OAppEmpty.mjs +6 -0
  552. package/dist/treeshaking/components/user-center/internal/OAppEmpty.vue_vue_type_script_setup_true_lang.mjs +30 -0
  553. package/dist/treeshaking/components/user-center/internal/OCommonHeader.mjs +6 -0
  554. package/dist/treeshaking/components/user-center/internal/OCommonHeader.vue_vue_type_script_setup_true_lang.mjs +165 -0
  555. package/dist/treeshaking/components/user-center/internal/OCountdownButton.mjs +4 -0
  556. package/dist/treeshaking/components/user-center/internal/OCountdownButton.vue_vue_type_script_setup_true_lang.mjs +55 -0
  557. package/dist/treeshaking/components/user-center/internal/ODeleteAccountModal.mjs +7 -0
  558. package/dist/treeshaking/components/user-center/internal/ODeleteAccountModal.vue_vue_type_script_setup_true_lang.mjs +281 -0
  559. package/dist/treeshaking/components/user-center/internal/OEditNicknameDialog.mjs +7 -0
  560. package/dist/treeshaking/components/user-center/internal/OEditNicknameDialog.vue_vue_type_script_setup_true_lang.mjs +121 -0
  561. package/dist/treeshaking/components/user-center/internal/OEditOrgDialog.mjs +7 -0
  562. package/dist/treeshaking/components/user-center/internal/OEditOrgDialog.vue_vue_type_script_setup_true_lang.mjs +134 -0
  563. package/dist/treeshaking/components/user-center/internal/OMaskEye.mjs +6 -0
  564. package/dist/treeshaking/components/user-center/internal/OMaskEye.vue_vue_type_script_setup_true_lang.mjs +26 -0
  565. package/dist/treeshaking/components/user-center/internal/OModifyPwd.mjs +6 -0
  566. package/dist/treeshaking/components/user-center/internal/OModifyPwd.vue_vue_type_script_setup_true_lang.mjs +401 -0
  567. package/dist/treeshaking/components/user-center/internal/OPasswordPopInput.mjs +6 -0
  568. package/dist/treeshaking/components/user-center/internal/OPasswordPopInput.vue_vue_type_script_setup_true_lang.mjs +118 -0
  569. package/dist/treeshaking/components/user-center/internal/OToBindingTipModal.mjs +6 -0
  570. package/dist/treeshaking/components/user-center/internal/OToBindingTipModal.vue_vue_type_script_setup_true_lang.mjs +97 -0
  571. package/dist/treeshaking/components/user-center/internal/OUnbindingThirdpartyAccountModal.mjs +6 -0
  572. package/dist/treeshaking/components/user-center/internal/OUnbindingThirdpartyAccountModal.vue_vue_type_script_setup_true_lang.mjs +88 -0
  573. package/dist/treeshaking/components/user-center/internal/OUploadAvatar.mjs +7 -0
  574. package/dist/treeshaking/components/user-center/internal/OUploadAvatar.vue_vue_type_script_setup_true_lang.mjs +347 -0
  575. package/dist/treeshaking/components/user-center/internal/OUploadAvatar.vue_vue_type_style_index_0_scoped_7067a565_lang.css +530 -0
  576. package/dist/treeshaking/components/user-center/internal/OUploadAvatar.vue_vue_type_style_index_1_lang.css +309 -0
  577. package/dist/treeshaking/components/user-center/rolesMap.mjs +16 -21
  578. package/dist/treeshaking/components/user-center/utils/helper.mjs +7 -5
  579. package/dist/treeshaking/components/user-center/utils/rules.mjs +99 -136
  580. package/dist/treeshaking/components/user-center/utils/utils.mjs +30 -38
  581. package/dist/treeshaking/components/user-center/verify/Verify.mjs +58 -0
  582. package/dist/treeshaking/components/user-center/verify/Verify.vue_vue_type_script_lang.mjs +72 -0
  583. package/dist/treeshaking/components/user-center/verify/VerifySlide.mjs +105 -0
  584. package/dist/treeshaking/components/user-center/verify/VerifySlide.vue_vue_type_script_lang.mjs +334 -0
  585. package/dist/treeshaking/components/user-center/verify/utils/ase.mjs +15 -11
  586. package/dist/treeshaking/components/user-center/verify/utils/util.mjs +19 -32
  587. package/dist/treeshaking/components/video/OVideoDetail.mjs +5 -0
  588. package/dist/treeshaking/components/video/OVideoDetail.vue_vue_type_script_setup_true_lang.mjs +206 -0
  589. package/dist/treeshaking/components/video/index.mjs +6 -10
  590. package/dist/treeshaking/i18n/en.mjs +596 -603
  591. package/dist/treeshaking/i18n/index.mjs +41 -45
  592. package/dist/treeshaking/i18n/zh.mjs +599 -606
  593. package/dist/treeshaking/index.d.ts +1 -0
  594. package/dist/treeshaking/index.mjs +9 -87
  595. package/dist/treeshaking/shared/anchor.mjs +3 -8
  596. package/dist/treeshaking/shared/provide.mjs +3 -4
  597. package/dist/treeshaking/shared/theme.mjs +22 -23
  598. package/package.json +1 -1
  599. package/dist/chunk-OElCookieNotice.cjs.js +0 -1
  600. package/dist/chunk-OElCookieNotice.es.js +0 -1525
  601. package/dist/treeshaking/_virtual/@babel/runtime/helpers/extends.js2.mjs +0 -4
  602. package/dist/treeshaking/_virtual/@videojs/xhr/lib/index.js2.mjs +0 -300
  603. package/dist/treeshaking/_virtual/@videojs/xhr/lib/index.js3.mjs +0 -4
  604. package/dist/treeshaking/_virtual/@xmldom/xmldom/lib/conventions.js2.mjs +0 -4
  605. package/dist/treeshaking/_virtual/@xmldom/xmldom/lib/dom-parser.js2.mjs +0 -4
  606. package/dist/treeshaking/_virtual/@xmldom/xmldom/lib/dom.js2.mjs +0 -4
  607. package/dist/treeshaking/_virtual/@xmldom/xmldom/lib/entities.js2.mjs +0 -4
  608. package/dist/treeshaking/_virtual/@xmldom/xmldom/lib/index.js2.mjs +0 -16
  609. package/dist/treeshaking/_virtual/@xmldom/xmldom/lib/index.js3.mjs +0 -4
  610. package/dist/treeshaking/_virtual/@xmldom/xmldom/lib/sax.js2.mjs +0 -4
  611. package/dist/treeshaking/_virtual/___vite-browser-external.mjs +0 -6
  612. package/dist/treeshaking/_virtual/_commonjs-dynamic-modules.mjs +0 -6
  613. package/dist/treeshaking/_virtual/_commonjsHelpers.mjs +0 -33
  614. package/dist/treeshaking/_virtual/cropperjs/dist/cropper.esm.js.mjs +0 -2739
  615. package/dist/treeshaking/_virtual/crypto-js/aes.js2.mjs +0 -4
  616. package/dist/treeshaking/_virtual/crypto-js/blowfish.js2.mjs +0 -4
  617. package/dist/treeshaking/_virtual/crypto-js/cipher-core.js2.mjs +0 -4
  618. package/dist/treeshaking/_virtual/crypto-js/core.js2.mjs +0 -4
  619. package/dist/treeshaking/_virtual/crypto-js/enc-base64.js2.mjs +0 -4
  620. package/dist/treeshaking/_virtual/crypto-js/enc-base64url.js2.mjs +0 -4
  621. package/dist/treeshaking/_virtual/crypto-js/enc-utf16.js2.mjs +0 -4
  622. package/dist/treeshaking/_virtual/crypto-js/evpkdf.js2.mjs +0 -4
  623. package/dist/treeshaking/_virtual/crypto-js/format-hex.js2.mjs +0 -4
  624. package/dist/treeshaking/_virtual/crypto-js/hmac.js2.mjs +0 -4
  625. package/dist/treeshaking/_virtual/crypto-js/index.js2.mjs +0 -55
  626. package/dist/treeshaking/_virtual/crypto-js/index.js3.mjs +0 -4
  627. package/dist/treeshaking/_virtual/crypto-js/lib-typedarrays.js2.mjs +0 -4
  628. package/dist/treeshaking/_virtual/crypto-js/md5.js2.mjs +0 -4
  629. package/dist/treeshaking/_virtual/crypto-js/mode-cfb.js2.mjs +0 -4
  630. package/dist/treeshaking/_virtual/crypto-js/mode-ctr-gladman.js2.mjs +0 -4
  631. package/dist/treeshaking/_virtual/crypto-js/mode-ctr.js2.mjs +0 -4
  632. package/dist/treeshaking/_virtual/crypto-js/mode-ecb.js2.mjs +0 -4
  633. package/dist/treeshaking/_virtual/crypto-js/mode-ofb.js2.mjs +0 -4
  634. package/dist/treeshaking/_virtual/crypto-js/pad-ansix923.js2.mjs +0 -4
  635. package/dist/treeshaking/_virtual/crypto-js/pad-iso10126.js2.mjs +0 -4
  636. package/dist/treeshaking/_virtual/crypto-js/pad-iso97971.js2.mjs +0 -4
  637. package/dist/treeshaking/_virtual/crypto-js/pad-nopadding.js2.mjs +0 -4
  638. package/dist/treeshaking/_virtual/crypto-js/pad-zeropadding.js2.mjs +0 -4
  639. package/dist/treeshaking/_virtual/crypto-js/pbkdf2.js2.mjs +0 -4
  640. package/dist/treeshaking/_virtual/crypto-js/rabbit-legacy.js2.mjs +0 -4
  641. package/dist/treeshaking/_virtual/crypto-js/rabbit.js2.mjs +0 -4
  642. package/dist/treeshaking/_virtual/crypto-js/rc4.js2.mjs +0 -4
  643. package/dist/treeshaking/_virtual/crypto-js/ripemd160.js2.mjs +0 -4
  644. package/dist/treeshaking/_virtual/crypto-js/sha1.js2.mjs +0 -4
  645. package/dist/treeshaking/_virtual/crypto-js/sha224.js2.mjs +0 -4
  646. package/dist/treeshaking/_virtual/crypto-js/sha256.js2.mjs +0 -4
  647. package/dist/treeshaking/_virtual/crypto-js/sha3.js2.mjs +0 -4
  648. package/dist/treeshaking/_virtual/crypto-js/sha384.js2.mjs +0 -4
  649. package/dist/treeshaking/_virtual/crypto-js/sha512.js2.mjs +0 -4
  650. package/dist/treeshaking/_virtual/crypto-js/tripledes.js2.mjs +0 -4
  651. package/dist/treeshaking/_virtual/crypto-js/x64-core.js2.mjs +0 -4
  652. package/dist/treeshaking/_virtual/global/document.js2.mjs +0 -24
  653. package/dist/treeshaking/_virtual/global/window.js2.mjs +0 -22
  654. package/dist/treeshaking/_virtual/icon-add-dark.mjs +0 -40
  655. package/dist/treeshaking/_virtual/icon-add-new.mjs +0 -17
  656. package/dist/treeshaking/_virtual/icon-address.mjs +0 -21
  657. package/dist/treeshaking/_virtual/icon-all.mjs +0 -20
  658. package/dist/treeshaking/_virtual/icon-anchor-expand.mjs +0 -20
  659. package/dist/treeshaking/_virtual/icon-anchor.mjs +0 -22
  660. package/dist/treeshaking/_virtual/icon-arrow-left.mjs +0 -20
  661. package/dist/treeshaking/_virtual/icon-atomgit.mjs +0 -25
  662. package/dist/treeshaking/_virtual/icon-avatar-line.mjs +0 -20
  663. package/dist/treeshaking/_virtual/icon-caret-left.mjs +0 -20
  664. package/dist/treeshaking/_virtual/icon-caret-right.mjs +0 -20
  665. package/dist/treeshaking/_virtual/icon-check.mjs +0 -20
  666. package/dist/treeshaking/_virtual/icon-checked.mjs +0 -20
  667. package/dist/treeshaking/_virtual/icon-chevron-down.mjs +0 -20
  668. package/dist/treeshaking/_virtual/icon-chevron-right.mjs +0 -20
  669. package/dist/treeshaking/_virtual/icon-chevron-right2.mjs +0 -20
  670. package/dist/treeshaking/_virtual/icon-chevron-up.mjs +0 -20
  671. package/dist/treeshaking/_virtual/icon-close.mjs +0 -20
  672. package/dist/treeshaking/_virtual/icon-close2.mjs +0 -20
  673. package/dist/treeshaking/_virtual/icon-competition.mjs +0 -31
  674. package/dist/treeshaking/_virtual/icon-copy.mjs +0 -21
  675. package/dist/treeshaking/_virtual/icon-copy2.mjs +0 -20
  676. package/dist/treeshaking/_virtual/icon-delete-hover.mjs +0 -24
  677. package/dist/treeshaking/_virtual/icon-delete.mjs +0 -17
  678. package/dist/treeshaking/_virtual/icon-done.mjs +0 -20
  679. package/dist/treeshaking/_virtual/icon-download.mjs +0 -17
  680. package/dist/treeshaking/_virtual/icon-edit-new.mjs +0 -17
  681. package/dist/treeshaking/_virtual/icon-edit.mjs +0 -38
  682. package/dist/treeshaking/_virtual/icon-email.mjs +0 -22
  683. package/dist/treeshaking/_virtual/icon-email2.mjs +0 -21
  684. package/dist/treeshaking/_virtual/icon-event.mjs +0 -21
  685. package/dist/treeshaking/_virtual/icon-events.mjs +0 -31
  686. package/dist/treeshaking/_virtual/icon-expand.mjs +0 -21
  687. package/dist/treeshaking/_virtual/icon-eye-off.mjs +0 -20
  688. package/dist/treeshaking/_virtual/icon-eye.mjs +0 -20
  689. package/dist/treeshaking/_virtual/icon-forum.mjs +0 -21
  690. package/dist/treeshaking/_virtual/icon-gitcode-new.mjs +0 -30
  691. package/dist/treeshaking/_virtual/icon-gitee.mjs +0 -20
  692. package/dist/treeshaking/_virtual/icon-gitee2.mjs +0 -20
  693. package/dist/treeshaking/_virtual/icon-github.mjs +0 -20
  694. package/dist/treeshaking/_virtual/icon-header-back.mjs +0 -20
  695. package/dist/treeshaking/_virtual/icon-header-menu.mjs +0 -20
  696. package/dist/treeshaking/_virtual/icon-header-search.mjs +0 -20
  697. package/dist/treeshaking/_virtual/icon-help.mjs +0 -21
  698. package/dist/treeshaking/_virtual/icon-image-upload.mjs +0 -20
  699. package/dist/treeshaking/_virtual/icon-image-zoomin.mjs +0 -20
  700. package/dist/treeshaking/_virtual/icon-like.mjs +0 -20
  701. package/dist/treeshaking/_virtual/icon-link.mjs +0 -31
  702. package/dist/treeshaking/_virtual/icon-loading.mjs +0 -24
  703. package/dist/treeshaking/_virtual/icon-locale.mjs +0 -20
  704. package/dist/treeshaking/_virtual/icon-mail.mjs +0 -17
  705. package/dist/treeshaking/_virtual/icon-material.mjs +0 -21
  706. package/dist/treeshaking/_virtual/icon-meet.mjs +0 -20
  707. package/dist/treeshaking/_virtual/icon-menu-fold.mjs +0 -20
  708. package/dist/treeshaking/_virtual/icon-menu-unfold.mjs +0 -20
  709. package/dist/treeshaking/_virtual/icon-minus-dark.mjs +0 -74
  710. package/dist/treeshaking/_virtual/icon-minus-new.mjs +0 -17
  711. package/dist/treeshaking/_virtual/icon-moon.mjs +0 -20
  712. package/dist/treeshaking/_virtual/icon-more.mjs +0 -19
  713. package/dist/treeshaking/_virtual/icon-next.mjs +0 -23
  714. package/dist/treeshaking/_virtual/icon-notice.mjs +0 -20
  715. package/dist/treeshaking/_virtual/icon-openatom.mjs +0 -21
  716. package/dist/treeshaking/_virtual/icon-outlink.mjs +0 -20
  717. package/dist/treeshaking/_virtual/icon-phone.mjs +0 -22
  718. package/dist/treeshaking/_virtual/icon-playing.mjs +0 -33
  719. package/dist/treeshaking/_virtual/icon-refresh.mjs +0 -21
  720. package/dist/treeshaking/_virtual/icon-refresh2.mjs +0 -45
  721. package/dist/treeshaking/_virtual/icon-relative-search.mjs +0 -21
  722. package/dist/treeshaking/_virtual/icon-release.mjs +0 -31
  723. package/dist/treeshaking/_virtual/icon-search.mjs +0 -17
  724. package/dist/treeshaking/_virtual/icon-search2.mjs +0 -17
  725. package/dist/treeshaking/_virtual/icon-setting.mjs +0 -20
  726. package/dist/treeshaking/_virtual/icon-smile.mjs +0 -21
  727. package/dist/treeshaking/_virtual/icon-speaker.mjs +0 -17
  728. package/dist/treeshaking/_virtual/icon-star.mjs +0 -20
  729. package/dist/treeshaking/_virtual/icon-summit.mjs +0 -21
  730. package/dist/treeshaking/_virtual/icon-summit2.mjs +0 -31
  731. package/dist/treeshaking/_virtual/icon-sun.mjs +0 -20
  732. package/dist/treeshaking/_virtual/icon-time.mjs +0 -20
  733. package/dist/treeshaking/_virtual/icon-tip.mjs +0 -21
  734. package/dist/treeshaking/_virtual/icon-tips.mjs +0 -17
  735. package/dist/treeshaking/_virtual/icon-tips2.mjs +0 -28
  736. package/dist/treeshaking/_virtual/icon-unexpand.mjs +0 -22
  737. package/dist/treeshaking/_virtual/icon-unlike.mjs +0 -20
  738. package/dist/treeshaking/_virtual/icon-user.mjs +0 -17
  739. package/dist/treeshaking/_virtual/icon-video.mjs +0 -28
  740. package/dist/treeshaking/_virtual/icon-wechat.mjs +0 -18
  741. package/dist/treeshaking/_virtual/icon-working.mjs +0 -17
  742. package/dist/treeshaking/_virtual/mux.js/lib/tools/parse-sidx.js2.mjs +0 -45
  743. package/dist/treeshaking/_virtual/mux.js/lib/utils/clock.js2.mjs +0 -42
  744. package/dist/treeshaking/_virtual/sig-space.mjs +0 -20
  745. package/dist/treeshaking/_virtual/videojs-vtt.js/lib/browser-index.js2.mjs +0 -37
  746. package/dist/treeshaking/_virtual/videojs-vtt.js/lib/browser-index.js3.mjs +0 -4
  747. package/dist/treeshaking/assets/meeting/empty.png.mjs +0 -4
  748. package/dist/treeshaking/assets/meeting/transparent.png.mjs +0 -4
  749. package/dist/treeshaking/assets/search/search-empty.png.mjs +0 -4
  750. package/dist/treeshaking/assets/svg-icons/icon-zoom.svg.mjs +0 -4
  751. package/dist/treeshaking/assets/user-center/images/avatar.png.mjs +0 -4
  752. package/dist/treeshaking/assets/user-center/images/default-user-photo.png.mjs +0 -4
  753. package/dist/treeshaking/assets/user-center/images/left-arrow-dark.svg.mjs +0 -4
  754. package/dist/treeshaking/assets/user-center/images/left-arrow-light.svg.mjs +0 -4
  755. package/dist/treeshaking/assets/user-center/images/noData.svg.mjs +0 -4
  756. package/dist/treeshaking/assets/user-center/images/warning-dark.svg.mjs +0 -4
  757. package/dist/treeshaking/assets/user-center/images/warning-light.svg.mjs +0 -4
  758. package/dist/treeshaking/components/activity/OActivityApproval.vue.mjs +0 -672
  759. package/dist/treeshaking/components/activity/OActivityApproval.vue4.mjs +0 -6
  760. package/dist/treeshaking/components/activity/OActivityForm.css +0 -364
  761. package/dist/treeshaking/components/activity/OActivityForm.vue.mjs +0 -628
  762. package/dist/treeshaking/components/activity/OActivityForm.vue4.mjs +0 -6
  763. package/dist/treeshaking/components/activity/OActivityForm2.css +0 -327
  764. package/dist/treeshaking/components/activity/OActivityMyCalendar.css +0 -1375
  765. package/dist/treeshaking/components/activity/OActivityMyCalendar.vue.mjs +0 -861
  766. package/dist/treeshaking/components/activity/OActivityMyCalendar.vue4.mjs +0 -6
  767. package/dist/treeshaking/components/activity/OActivityMyCalendar2.css +0 -318
  768. package/dist/treeshaking/components/anchor-bar/OAnchorBar.vue.mjs +0 -7
  769. package/dist/treeshaking/components/anchor-bar/OAnchorBar.vue2.mjs +0 -103
  770. package/dist/treeshaking/components/article/OArticle.vue.mjs +0 -7
  771. package/dist/treeshaking/components/article/OArticle.vue2.mjs +0 -102
  772. package/dist/treeshaking/components/article/OArticleList.css +0 -253
  773. package/dist/treeshaking/components/article/OArticleList.vue.mjs +0 -219
  774. package/dist/treeshaking/components/article/OArticleList.vue3.mjs +0 -5
  775. package/dist/treeshaking/components/article/components/ArticleTitle.vue.mjs +0 -7
  776. package/dist/treeshaking/components/article/components/ArticleTitle.vue2.mjs +0 -97
  777. package/dist/treeshaking/components/article/components/DocTitle.vue.mjs +0 -7
  778. package/dist/treeshaking/components/article/components/DocTitle.vue2.mjs +0 -310
  779. package/dist/treeshaking/components/article-anchor/OArticleAnchor.vue.mjs +0 -7
  780. package/dist/treeshaking/components/article-anchor/OArticleAnchor.vue2.mjs +0 -303
  781. package/dist/treeshaking/components/article-anchor/components/ArticleAnchorItems.vue.mjs +0 -7
  782. package/dist/treeshaking/components/article-anchor/components/ArticleAnchorItems.vue2.mjs +0 -36
  783. package/dist/treeshaking/components/article-anchor/components/ArticleAnchorMobile.css +0 -47
  784. package/dist/treeshaking/components/article-anchor/components/ArticleAnchorMobile.vue.mjs +0 -7
  785. package/dist/treeshaking/components/article-anchor/components/ArticleAnchorMobile.vue2.mjs +0 -182
  786. package/dist/treeshaking/components/article-anchor/components/ArticleAnchorPad.css +0 -80
  787. package/dist/treeshaking/components/article-anchor/components/ArticleAnchorPad.vue.mjs +0 -7
  788. package/dist/treeshaking/components/article-anchor/components/ArticleAnchorPad.vue2.mjs +0 -78
  789. package/dist/treeshaking/components/article-anchor/components/ArticleAnchorPc.vue.mjs +0 -7
  790. package/dist/treeshaking/components/article-anchor/components/ArticleAnchorPc.vue2.mjs +0 -38
  791. package/dist/treeshaking/components/article-pagination/OArticlePagination.vue.mjs +0 -7
  792. package/dist/treeshaking/components/article-pagination/OArticlePagination.vue2.mjs +0 -107
  793. package/dist/treeshaking/components/banner/OBanner.vue.mjs +0 -8
  794. package/dist/treeshaking/components/banner/OBanner.vue2.mjs +0 -142
  795. package/dist/treeshaking/components/banner/OBannerContent.vue.mjs +0 -7
  796. package/dist/treeshaking/components/banner/OBannerContent.vue2.mjs +0 -102
  797. package/dist/treeshaking/components/brand/OBrandFile.vue.mjs +0 -7
  798. package/dist/treeshaking/components/brand/OBrandFile.vue2.mjs +0 -70
  799. package/dist/treeshaking/components/brand/OBrandLogo.vue.mjs +0 -8
  800. package/dist/treeshaking/components/brand/OBrandLogo.vue2.mjs +0 -120
  801. package/dist/treeshaking/components/brand/OBrandStandard.vue.mjs +0 -7
  802. package/dist/treeshaking/components/brand/OBrandStandard.vue2.mjs +0 -59
  803. package/dist/treeshaking/components/common/AppAvatar.vue.mjs +0 -7
  804. package/dist/treeshaking/components/common/AppAvatar.vue2.mjs +0 -83
  805. package/dist/treeshaking/components/common/ClientOnly.vue.mjs +0 -16
  806. package/dist/treeshaking/components/common/ClientOnly.vue2.mjs +0 -4
  807. package/dist/treeshaking/components/common/ContentWrapper.vue.mjs +0 -7
  808. package/dist/treeshaking/components/common/ContentWrapper.vue2.mjs +0 -50
  809. package/dist/treeshaking/components/common/TooltipText.vue.mjs +0 -105
  810. package/dist/treeshaking/components/common/TooltipText.vue3.mjs +0 -5
  811. package/dist/treeshaking/components/common/WordAvatar.vue.mjs +0 -84
  812. package/dist/treeshaking/components/common/WordAvatar.vue3.mjs +0 -5
  813. package/dist/treeshaking/components/config-provider/OPlusConfigProvider.vue.mjs +0 -35
  814. package/dist/treeshaking/components/config-provider/OPlusConfigProvider.vue2.mjs +0 -4
  815. package/dist/treeshaking/components/cookie-notice/OCookieNotice.css +0 -35
  816. package/dist/treeshaking/components/cookie-notice/OCookieNotice.vue.mjs +0 -8
  817. package/dist/treeshaking/components/cookie-notice/OCookieNotice.vue2.mjs +0 -367
  818. package/dist/treeshaking/components/cookie-notice/OCookieNotice2.css +0 -309
  819. package/dist/treeshaking/components/doc-layout/ODocLayout.css +0 -286
  820. package/dist/treeshaking/components/doc-layout/ODocLayout.vue.mjs +0 -7
  821. package/dist/treeshaking/components/doc-layout/ODocLayout.vue2.mjs +0 -179
  822. package/dist/treeshaking/components/element-plus/OElCookieNotice.css +0 -303
  823. package/dist/treeshaking/components/element-plus/OElCookieNotice.vue.mjs +0 -8
  824. package/dist/treeshaking/components/element-plus/OElCookieNotice.vue2.mjs +0 -384
  825. package/dist/treeshaking/components/element-plus/OElCookieNotice2.css +0 -688
  826. package/dist/treeshaking/components/empty/404.png.mjs +0 -4
  827. package/dist/treeshaking/components/empty/404_dark.png.mjs +0 -4
  828. package/dist/treeshaking/components/empty/OEmpty.vue.mjs +0 -7
  829. package/dist/treeshaking/components/empty/OEmpty.vue2.mjs +0 -44
  830. package/dist/treeshaking/components/events/OEventsApply.vue.mjs +0 -98
  831. package/dist/treeshaking/components/events/OEventsApply.vue3.mjs +0 -5
  832. package/dist/treeshaking/components/events/OEventsCalendar.vue.mjs +0 -289
  833. package/dist/treeshaking/components/events/OEventsCalendar.vue3.mjs +0 -5
  834. package/dist/treeshaking/components/events/OEventsList.vue.mjs +0 -237
  835. package/dist/treeshaking/components/events/OEventsList.vue3.mjs +0 -5
  836. package/dist/treeshaking/components/feedback-doc/OFeedbackDoc.vue.mjs +0 -7
  837. package/dist/treeshaking/components/feedback-doc/OFeedbackDoc.vue2.mjs +0 -165
  838. package/dist/treeshaking/components/feedback-doc/OFeedbackDocContent.vue.mjs +0 -7
  839. package/dist/treeshaking/components/feedback-doc/OFeedbackDocContent.vue2.mjs +0 -309
  840. package/dist/treeshaking/components/feedback-doc/OFeedbackDocDialog.vue.mjs +0 -99
  841. package/dist/treeshaking/components/feedback-doc/OFeedbackDocDialog.vue2.mjs +0 -4
  842. package/dist/treeshaking/components/feedback-doc/OFeedbackDocPopup.vue.mjs +0 -7
  843. package/dist/treeshaking/components/feedback-doc/OFeedbackDocPopup.vue2.mjs +0 -95
  844. package/dist/treeshaking/components/float-poster/OFloatPoster.vue.mjs +0 -7
  845. package/dist/treeshaking/components/float-poster/OFloatPoster.vue2.mjs +0 -84
  846. package/dist/treeshaking/components/footer/OFooter.vue.mjs +0 -7
  847. package/dist/treeshaking/components/footer/OFooter.vue2.mjs +0 -92
  848. package/dist/treeshaking/components/footer/components/FooterList.vue.mjs +0 -7
  849. package/dist/treeshaking/components/footer/components/FooterList.vue2.mjs +0 -214
  850. package/dist/treeshaking/components/footer/components/FooterSimple.vue.mjs +0 -7
  851. package/dist/treeshaking/components/footer/components/FooterSimple.vue2.mjs +0 -126
  852. package/dist/treeshaking/components/header/OHeader.vue.mjs +0 -7
  853. package/dist/treeshaking/components/header/OHeader.vue2.mjs +0 -272
  854. package/dist/treeshaking/components/header/OHeaderMobile.vue.mjs +0 -7
  855. package/dist/treeshaking/components/header/OHeaderMobile.vue2.mjs +0 -145
  856. package/dist/treeshaking/components/header/components/HeaderContent.vue.mjs +0 -7
  857. package/dist/treeshaking/components/header/components/HeaderContent.vue2.mjs +0 -371
  858. package/dist/treeshaking/components/header/components/HeaderFlatten.vue.mjs +0 -7
  859. package/dist/treeshaking/components/header/components/HeaderFlatten.vue2.mjs +0 -288
  860. package/dist/treeshaking/components/header/components/HeaderNav.vue.mjs +0 -7
  861. package/dist/treeshaking/components/header/components/HeaderNav.vue2.mjs +0 -244
  862. package/dist/treeshaking/components/header/components/HeaderNavMobile.vue.mjs +0 -7
  863. package/dist/treeshaking/components/header/components/HeaderNavMobile.vue2.mjs +0 -253
  864. package/dist/treeshaking/components/header-language-switcher/OHeaderLanguageSwitcher.vue.mjs +0 -8
  865. package/dist/treeshaking/components/header-language-switcher/OHeaderLanguageSwitcher.vue2.mjs +0 -129
  866. package/dist/treeshaking/components/header-search/OHeaderSearch.vue.mjs +0 -7
  867. package/dist/treeshaking/components/header-search/OHeaderSearch.vue2.mjs +0 -436
  868. package/dist/treeshaking/components/header-source-code/OHeaderSourceCode.vue.mjs +0 -7
  869. package/dist/treeshaking/components/header-source-code/OHeaderSourceCode.vue2.mjs +0 -89
  870. package/dist/treeshaking/components/header-theme/OHeaderTheme.vue.mjs +0 -7
  871. package/dist/treeshaking/components/header-theme/OHeaderTheme.vue2.mjs +0 -86
  872. package/dist/treeshaking/components/header-user/OHeaderUser.vue.mjs +0 -8
  873. package/dist/treeshaking/components/header-user/OHeaderUser.vue2.mjs +0 -161
  874. package/dist/treeshaking/components/html-viewer/OHtmlViewer.vue.mjs +0 -7
  875. package/dist/treeshaking/components/html-viewer/OHtmlViewer.vue2.mjs +0 -117
  876. package/dist/treeshaking/components/logo-swiper/OLogoSwiper.vue.mjs +0 -7
  877. package/dist/treeshaking/components/logo-swiper/OLogoSwiper.vue2.mjs +0 -21
  878. package/dist/treeshaking/components/logo-swiper/OLogoSwiperItems.vue.mjs +0 -7
  879. package/dist/treeshaking/components/logo-swiper/OLogoSwiperItems.vue2.mjs +0 -164
  880. package/dist/treeshaking/components/markdown/OMarkdown.vue.mjs +0 -8
  881. package/dist/treeshaking/components/markdown/OMarkdown.vue2.mjs +0 -195
  882. package/dist/treeshaking/components/markdown/components/MarkdownCode.vue.mjs +0 -8
  883. package/dist/treeshaking/components/markdown/components/MarkdownCode.vue2.mjs +0 -127
  884. package/dist/treeshaking/components/markdown/components/MarkdownImage.vue.mjs +0 -7
  885. package/dist/treeshaking/components/markdown/components/MarkdownImage.vue2.mjs +0 -76
  886. package/dist/treeshaking/components/markdown/components/MarkdownTable.vue.mjs +0 -7
  887. package/dist/treeshaking/components/markdown/components/MarkdownTable.vue2.mjs +0 -59
  888. package/dist/treeshaking/components/markdown/components/MarkdownTableData.vue.mjs +0 -7
  889. package/dist/treeshaking/components/markdown/components/MarkdownTableData.vue2.mjs +0 -181
  890. package/dist/treeshaking/components/markdown/components/MarkdownTableExpand.vue.mjs +0 -7
  891. package/dist/treeshaking/components/markdown/components/MarkdownTableExpand.vue2.mjs +0 -57
  892. package/dist/treeshaking/components/markdown/components/MarkdownTitle.vue.mjs +0 -7
  893. package/dist/treeshaking/components/markdown/components/MarkdownTitle.vue2.mjs +0 -75
  894. package/dist/treeshaking/components/meeting/OMeetingCalendar.css +0 -1100
  895. package/dist/treeshaking/components/meeting/OMeetingCalendar.vue.mjs +0 -597
  896. package/dist/treeshaking/components/meeting/OMeetingCalendar.vue3.mjs +0 -5
  897. package/dist/treeshaking/components/meeting/OMeetingForm.css +0 -765
  898. package/dist/treeshaking/components/meeting/OMeetingForm.vue.mjs +0 -1081
  899. package/dist/treeshaking/components/meeting/OMeetingForm.vue4.mjs +0 -6
  900. package/dist/treeshaking/components/meeting/OMeetingForm2.css +0 -358
  901. package/dist/treeshaking/components/meeting/OMeetingMinutes.vue.mjs +0 -415
  902. package/dist/treeshaking/components/meeting/OMeetingMinutes.vue3.mjs +0 -5
  903. package/dist/treeshaking/components/meeting/OMeetingMinutesCopyDetail.vue.mjs +0 -7
  904. package/dist/treeshaking/components/meeting/OMeetingMinutesCopyDetail.vue2.mjs +0 -74
  905. package/dist/treeshaking/components/meeting/OMeetingMyCalendar.css +0 -1344
  906. package/dist/treeshaking/components/meeting/OMeetingMyCalendar.vue.mjs +0 -931
  907. package/dist/treeshaking/components/meeting/OMeetingMyCalendar.vue4.mjs +0 -6
  908. package/dist/treeshaking/components/meeting/OMeetingMyCalendar2.css +0 -330
  909. package/dist/treeshaking/components/meeting/OMeetingPlayback.vue.mjs +0 -406
  910. package/dist/treeshaking/components/meeting/OMeetingPlayback.vue3.mjs +0 -5
  911. package/dist/treeshaking/components/meeting/OMeetingSendMinutesForm.vue.mjs +0 -221
  912. package/dist/treeshaking/components/meeting/OMeetingSendMinutesForm.vue3.mjs +0 -5
  913. package/dist/treeshaking/components/meeting/OMeetingSigCalendar.vue.mjs +0 -396
  914. package/dist/treeshaking/components/meeting/OMeetingSigCalendar.vue3.mjs +0 -5
  915. package/dist/treeshaking/components/meeting/components/OMeetingCalendarList.vue.mjs +0 -422
  916. package/dist/treeshaking/components/meeting/components/OMeetingCalendarList.vue3.mjs +0 -5
  917. package/dist/treeshaking/components/meeting/components/OMeetingCalendarSelector.css +0 -379
  918. package/dist/treeshaking/components/meeting/components/OMeetingCalendarSelector.vue.mjs +0 -132
  919. package/dist/treeshaking/components/meeting/components/OMeetingCalendarSelector.vue4.mjs +0 -6
  920. package/dist/treeshaking/components/meeting/components/OMeetingCalendarSelector2.css +0 -343
  921. package/dist/treeshaking/components/meeting/components/OMeetingDetail.vue.mjs +0 -194
  922. package/dist/treeshaking/components/meeting/components/OMeetingDetail.vue3.mjs +0 -5
  923. package/dist/treeshaking/components/meeting/components/OMeetingPlaybackSubtitles.css +0 -743
  924. package/dist/treeshaking/components/meeting/components/OMeetingPlaybackSubtitles.vue.mjs +0 -434
  925. package/dist/treeshaking/components/meeting/components/OMeetingPlaybackSubtitles.vue4.mjs +0 -6
  926. package/dist/treeshaking/components/meeting/components/OMeetingPlaybackSubtitles2.css +0 -344
  927. package/dist/treeshaking/components/meeting/components/OMeetingPlaybackVideo.vue.mjs +0 -242
  928. package/dist/treeshaking/components/meeting/components/OMeetingPlaybackVideo.vue3.mjs +0 -5
  929. package/dist/treeshaking/components/meeting/components/OMeetingSendMinutesDialog.vue.mjs +0 -7
  930. package/dist/treeshaking/components/meeting/components/OMeetingSendMinutesDialog.vue2.mjs +0 -93
  931. package/dist/treeshaking/components/meeting/components/OMeetingSigAside.vue.mjs +0 -152
  932. package/dist/treeshaking/components/meeting/components/OMeetingSigAside.vue3.mjs +0 -5
  933. package/dist/treeshaking/components/org/OOrgDesc.vue.mjs +0 -7
  934. package/dist/treeshaking/components/org/OOrgDesc.vue2.mjs +0 -40
  935. package/dist/treeshaking/components/org/OOrgMembers.vue.mjs +0 -7
  936. package/dist/treeshaking/components/org/OOrgMembers.vue2.mjs +0 -108
  937. package/dist/treeshaking/components/recursion-menu/ORecursionMenu.vue.mjs +0 -95
  938. package/dist/treeshaking/components/recursion-menu/ORecursionMenu.vue2.mjs +0 -4
  939. package/dist/treeshaking/components/recursion-menu/ORecursionMenuItem.vue.mjs +0 -7
  940. package/dist/treeshaking/components/recursion-menu/ORecursionMenuItem.vue2.mjs +0 -107
  941. package/dist/treeshaking/components/search/OSearchInput.vue.mjs +0 -7
  942. package/dist/treeshaking/components/search/OSearchInput.vue2.mjs +0 -382
  943. package/dist/treeshaking/components/search/internal/HighlightText.vue.mjs +0 -7
  944. package/dist/treeshaking/components/search/internal/HighlightText.vue2.mjs +0 -33
  945. package/dist/treeshaking/components/search/internal/SearchImageInput.vue.mjs +0 -8
  946. package/dist/treeshaking/components/search/internal/SearchImageInput.vue2.mjs +0 -305
  947. package/dist/treeshaking/components/search/internal/SearchPanel.vue.mjs +0 -7
  948. package/dist/treeshaking/components/search/internal/SearchPanel.vue2.mjs +0 -255
  949. package/dist/treeshaking/components/search-doc-result/OSearchDocResult.css +0 -156
  950. package/dist/treeshaking/components/search-doc-result/OSearchDocResult.vue.mjs +0 -7
  951. package/dist/treeshaking/components/search-doc-result/OSearchDocResult.vue2.mjs +0 -214
  952. package/dist/treeshaking/components/search-result/OSearchResult.css +0 -165
  953. package/dist/treeshaking/components/search-result/OSearchResult.vue.mjs +0 -7
  954. package/dist/treeshaking/components/search-result/OSearchResult.vue2.mjs +0 -185
  955. package/dist/treeshaking/components/search-result/OSearchResultHeader.vue.mjs +0 -7
  956. package/dist/treeshaking/components/search-result/OSearchResultHeader.vue2.mjs +0 -112
  957. package/dist/treeshaking/components/search-result/OSearchResultItem.vue.mjs +0 -7
  958. package/dist/treeshaking/components/search-result/OSearchResultItem.vue2.mjs +0 -118
  959. package/dist/treeshaking/components/search-result/components/OSearchResultEmpty.vue.mjs +0 -7
  960. package/dist/treeshaking/components/search-result/components/OSearchResultEmpty.vue2.mjs +0 -29
  961. package/dist/treeshaking/components/search-result/components/OSearchResultFeedback.vue.mjs +0 -7
  962. package/dist/treeshaking/components/search-result/components/OSearchResultFeedback.vue2.mjs +0 -171
  963. package/dist/treeshaking/components/search-result/components/OSearchResultFeedbackBanner.vue.mjs +0 -7
  964. package/dist/treeshaking/components/search-result/components/OSearchResultFeedbackBanner.vue2.mjs +0 -185
  965. package/dist/treeshaking/components/search-result/components/OSearchResultRelative.vue.mjs +0 -7
  966. package/dist/treeshaking/components/search-result/components/OSearchResultRelative.vue2.mjs +0 -55
  967. package/dist/treeshaking/components/section/OSection.vue.mjs +0 -7
  968. package/dist/treeshaking/components/section/OSection.vue2.mjs +0 -93
  969. package/dist/treeshaking/components/sig/OSigDetail.vue.mjs +0 -262
  970. package/dist/treeshaking/components/sig/OSigDetail.vue3.mjs +0 -5
  971. package/dist/treeshaking/components/sig/OSigList.css +0 -845
  972. package/dist/treeshaking/components/sig/OSigList.vue.mjs +0 -524
  973. package/dist/treeshaking/components/sig/OSigList.vue3.mjs +0 -5
  974. package/dist/treeshaking/components/sig/components/OSigDetailInfoCard.vue.mjs +0 -90
  975. package/dist/treeshaking/components/sig/components/OSigDetailInfoCard.vue3.mjs +0 -5
  976. package/dist/treeshaking/components/sig/components/OSigItem.vue.mjs +0 -212
  977. package/dist/treeshaking/components/sig/components/OSigItem.vue3.mjs +0 -5
  978. package/dist/treeshaking/components/sig/components/OSigMember.vue.mjs +0 -274
  979. package/dist/treeshaking/components/sig/components/OSigMember.vue3.mjs +0 -5
  980. package/dist/treeshaking/components/sig/components/OSigRepo.vue.mjs +0 -191
  981. package/dist/treeshaking/components/sig/components/OSigRepo.vue3.mjs +0 -5
  982. package/dist/treeshaking/components/sig/components/OSigUserContribute.vue.mjs +0 -328
  983. package/dist/treeshaking/components/sig/components/OSigUserContribute.vue3.mjs +0 -5
  984. package/dist/treeshaking/components/summit/OSummit.vue.mjs +0 -7
  985. package/dist/treeshaking/components/summit/OSummit.vue2.mjs +0 -60
  986. package/dist/treeshaking/components/summit/OSummitIntro.vue.mjs +0 -7
  987. package/dist/treeshaking/components/summit/OSummitIntro.vue2.mjs +0 -26
  988. package/dist/treeshaking/components/summit/OSummitLive.vue.mjs +0 -7
  989. package/dist/treeshaking/components/summit/OSummitLive.vue2.mjs +0 -171
  990. package/dist/treeshaking/components/summit/OSummitSchedule.vue.mjs +0 -8
  991. package/dist/treeshaking/components/summit/OSummitSchedule.vue2.mjs +0 -317
  992. package/dist/treeshaking/components/summit/components/OSummitTabs.vue.mjs +0 -7
  993. package/dist/treeshaking/components/summit/components/OSummitTabs.vue2.mjs +0 -157
  994. package/dist/treeshaking/components/user-center/OAccountSecurity.css +0 -253
  995. package/dist/treeshaking/components/user-center/OAccountSecurity.vue.mjs +0 -7
  996. package/dist/treeshaking/components/user-center/OAccountSecurity.vue2.mjs +0 -308
  997. package/dist/treeshaking/components/user-center/OAccountSetting.css +0 -284
  998. package/dist/treeshaking/components/user-center/OAccountSetting.vue.mjs +0 -7
  999. package/dist/treeshaking/components/user-center/OAccountSetting.vue2.mjs +0 -395
  1000. package/dist/treeshaking/components/user-center/OAppHeader.vue.mjs +0 -7
  1001. package/dist/treeshaking/components/user-center/OAppHeader.vue2.mjs +0 -207
  1002. package/dist/treeshaking/components/user-center/OAsideBar.vue.mjs +0 -7
  1003. package/dist/treeshaking/components/user-center/OAsideBar.vue2.mjs +0 -108
  1004. package/dist/treeshaking/components/user-center/OLayout.vue.mjs +0 -7
  1005. package/dist/treeshaking/components/user-center/OLayout.vue2.mjs +0 -27
  1006. package/dist/treeshaking/components/user-center/OTheAccountManage.vue.mjs +0 -7
  1007. package/dist/treeshaking/components/user-center/OTheAccountManage.vue2.mjs +0 -26
  1008. package/dist/treeshaking/components/user-center/OTheCreateMeeting.vue.mjs +0 -7
  1009. package/dist/treeshaking/components/user-center/OTheCreateMeeting.vue2.mjs +0 -103
  1010. package/dist/treeshaking/components/user-center/OTheMeeting.vue.mjs +0 -7
  1011. package/dist/treeshaking/components/user-center/OTheMeeting.vue2.mjs +0 -128
  1012. package/dist/treeshaking/components/user-center/OThirdPartyBindings.vue.mjs +0 -7
  1013. package/dist/treeshaking/components/user-center/OThirdPartyBindings.vue2.mjs +0 -388
  1014. package/dist/treeshaking/components/user-center/OUserInfo.vue.mjs +0 -9
  1015. package/dist/treeshaking/components/user-center/OUserInfo.vue2.mjs +0 -562
  1016. package/dist/treeshaking/components/user-center/internal/OAppDialog.vue.mjs +0 -7
  1017. package/dist/treeshaking/components/user-center/internal/OAppDialog.vue2.mjs +0 -446
  1018. package/dist/treeshaking/components/user-center/internal/OAppEmpty.vue.mjs +0 -7
  1019. package/dist/treeshaking/components/user-center/internal/OAppEmpty.vue2.mjs +0 -41
  1020. package/dist/treeshaking/components/user-center/internal/OCommonHeader.vue.mjs +0 -7
  1021. package/dist/treeshaking/components/user-center/internal/OCommonHeader.vue2.mjs +0 -148
  1022. package/dist/treeshaking/components/user-center/internal/OCountdownButton.vue.mjs +0 -67
  1023. package/dist/treeshaking/components/user-center/internal/OCountdownButton.vue2.mjs +0 -4
  1024. package/dist/treeshaking/components/user-center/internal/ODeleteAccountModal.vue.mjs +0 -8
  1025. package/dist/treeshaking/components/user-center/internal/ODeleteAccountModal.vue2.mjs +0 -325
  1026. package/dist/treeshaking/components/user-center/internal/OEditNicknameDialog.vue.mjs +0 -8
  1027. package/dist/treeshaking/components/user-center/internal/OEditNicknameDialog.vue2.mjs +0 -149
  1028. package/dist/treeshaking/components/user-center/internal/OEditOrgDialog.vue.mjs +0 -8
  1029. package/dist/treeshaking/components/user-center/internal/OEditOrgDialog.vue2.mjs +0 -162
  1030. package/dist/treeshaking/components/user-center/internal/OMaskEye.vue.mjs +0 -7
  1031. package/dist/treeshaking/components/user-center/internal/OMaskEye.vue2.mjs +0 -30
  1032. package/dist/treeshaking/components/user-center/internal/OModifyPwd.vue.mjs +0 -7
  1033. package/dist/treeshaking/components/user-center/internal/OModifyPwd.vue2.mjs +0 -461
  1034. package/dist/treeshaking/components/user-center/internal/OPasswordPopInput.vue.mjs +0 -7
  1035. package/dist/treeshaking/components/user-center/internal/OPasswordPopInput.vue2.mjs +0 -147
  1036. package/dist/treeshaking/components/user-center/internal/OToBindingTipModal.vue.mjs +0 -7
  1037. package/dist/treeshaking/components/user-center/internal/OToBindingTipModal.vue2.mjs +0 -117
  1038. package/dist/treeshaking/components/user-center/internal/OUnbindingThirdpartyAccountModal.vue.mjs +0 -7
  1039. package/dist/treeshaking/components/user-center/internal/OUnbindingThirdpartyAccountModal.vue2.mjs +0 -107
  1040. package/dist/treeshaking/components/user-center/internal/OUploadAvatar.css +0 -525
  1041. package/dist/treeshaking/components/user-center/internal/OUploadAvatar.vue.mjs +0 -8
  1042. package/dist/treeshaking/components/user-center/internal/OUploadAvatar.vue2.mjs +0 -455
  1043. package/dist/treeshaking/components/user-center/internal/OUploadAvatar2.css +0 -304
  1044. package/dist/treeshaking/components/user-center/verify/Verify.vue.mjs +0 -61
  1045. package/dist/treeshaking/components/user-center/verify/Verify.vue2.mjs +0 -83
  1046. package/dist/treeshaking/components/user-center/verify/VerifySlide.vue.mjs +0 -122
  1047. package/dist/treeshaking/components/user-center/verify/VerifySlide.vue2.mjs +0 -367
  1048. package/dist/treeshaking/components/video/OVideoDetail.vue.mjs +0 -318
  1049. package/dist/treeshaking/components/video/OVideoDetail.vue3.mjs +0 -5
  1050. /package/dist/treeshaking/components/activity/{OActivityApproval.css → OActivityApproval.vue_vue_type_style_index_0_lang.css} +0 -0
  1051. /package/dist/treeshaking/components/activity/{OActivityApproval2.css → OActivityApproval.vue_vue_type_style_index_1_lang.css} +0 -0
  1052. /package/dist/treeshaking/components/anchor-bar/{OAnchorBar.css → OAnchorBar.vue_vue_type_style_index_0_scoped_f662dd83_lang.css} +0 -0
  1053. /package/dist/treeshaking/components/article/{OArticle.css → OArticle.vue_vue_type_style_index_0_scoped_f94c0e57_lang.css} +0 -0
  1054. /package/dist/treeshaking/components/article/components/{ArticleTitle.css → ArticleTitle.vue_vue_type_style_index_0_scoped_b96d293f_lang.css} +0 -0
  1055. /package/dist/treeshaking/components/article/components/{DocTitle.css → DocTitle.vue_vue_type_style_index_0_scoped_12467c9f_lang.css} +0 -0
  1056. /package/dist/treeshaking/components/article-anchor/{OArticleAnchor.css → OArticleAnchor.vue_vue_type_style_index_0_scoped_dcc5e0d5_lang.css} +0 -0
  1057. /package/dist/treeshaking/components/article-anchor/components/{ArticleAnchorItems.css → ArticleAnchorItems.vue_vue_type_style_index_0_scoped_126e1824_lang.css} +0 -0
  1058. /package/dist/treeshaking/components/article-anchor/components/{ArticleAnchorPc.css → ArticleAnchorPc.vue_vue_type_style_index_0_scoped_a480e4e7_lang.css} +0 -0
  1059. /package/dist/treeshaking/components/article-pagination/{OArticlePagination.css → OArticlePagination.vue_vue_type_style_index_0_scoped_8a8cf9f8_lang.css} +0 -0
  1060. /package/dist/treeshaking/components/banner/{OBanner.css → OBanner.vue_vue_type_style_index_0_scoped_8cfcc7ff_lang.css} +0 -0
  1061. /package/dist/treeshaking/components/banner/{OBanner2.css → OBanner.vue_vue_type_style_index_1_scoped_8cfcc7ff_lang.css} +0 -0
  1062. /package/dist/treeshaking/components/banner/{OBannerContent.css → OBannerContent.vue_vue_type_style_index_0_scoped_1904d05a_lang.css} +0 -0
  1063. /package/dist/treeshaking/components/brand/{OBrandFile.css → OBrandFile.vue_vue_type_style_index_0_scoped_9919f662_lang.css} +0 -0
  1064. /package/dist/treeshaking/components/brand/{OBrandLogo.css → OBrandLogo.vue_vue_type_style_index_0_scoped_6b4fb6c1_lang.css} +0 -0
  1065. /package/dist/treeshaking/components/brand/{OBrandLogo2.css → OBrandLogo.vue_vue_type_style_index_1_lang.css} +0 -0
  1066. /package/dist/treeshaking/components/brand/{OBrandStandard.css → OBrandStandard.vue_vue_type_style_index_0_scoped_a9afbc57_lang.css} +0 -0
  1067. /package/dist/treeshaking/components/common/{AppAvatar.css → AppAvatar.vue_vue_type_style_index_0_scoped_9aaf13f3_lang.css} +0 -0
  1068. /package/dist/treeshaking/components/common/{ContentWrapper.css → ContentWrapper.vue_vue_type_style_index_0_scoped_9e217f8f_lang.css} +0 -0
  1069. /package/dist/treeshaking/components/common/{TooltipText.css → TooltipText.vue_vue_type_style_index_0_lang.css} +0 -0
  1070. /package/dist/treeshaking/components/common/{WordAvatar.css → WordAvatar.vue_vue_type_style_index_0_lang.css} +0 -0
  1071. /package/dist/treeshaking/components/empty/{OEmpty.css → OEmpty.vue_vue_type_style_index_0_scoped_4381b83c_lang.css} +0 -0
  1072. /package/dist/treeshaking/components/events/{OEventsApply.css → OEventsApply.vue_vue_type_style_index_0_lang.css} +0 -0
  1073. /package/dist/treeshaking/components/events/{OEventsCalendar.css → OEventsCalendar.vue_vue_type_style_index_0_lang.css} +0 -0
  1074. /package/dist/treeshaking/components/events/{OEventsList.css → OEventsList.vue_vue_type_style_index_0_lang.css} +0 -0
  1075. /package/dist/treeshaking/components/feedback-doc/{OFeedbackDoc.css → OFeedbackDoc.vue_vue_type_style_index_0_scoped_a8f7d8ef_lang.css} +0 -0
  1076. /package/dist/treeshaking/components/feedback-doc/{OFeedbackDocContent.css → OFeedbackDocContent.vue_vue_type_style_index_0_scoped_994ce5c5_lang.css} +0 -0
  1077. /package/dist/treeshaking/components/feedback-doc/{OFeedbackDocPopup.css → OFeedbackDocPopup.vue_vue_type_style_index_0_scoped_61cd944c_lang.css} +0 -0
  1078. /package/dist/treeshaking/components/float-poster/{OFloatPoster.css → OFloatPoster.vue_vue_type_style_index_0_scoped_e67cdd62_lang.css} +0 -0
  1079. /package/dist/treeshaking/components/footer/{OFooter.css → OFooter.vue_vue_type_style_index_0_scoped_41010b1f_lang.css} +0 -0
  1080. /package/dist/treeshaking/components/footer/components/{FooterList.css → FooterList.vue_vue_type_style_index_0_scoped_1d7a4555_lang.css} +0 -0
  1081. /package/dist/treeshaking/components/footer/components/{FooterSimple.css → FooterSimple.vue_vue_type_style_index_0_scoped_bb36ddad_lang.css} +0 -0
  1082. /package/dist/treeshaking/components/header/{OHeader.css → OHeader.vue_vue_type_style_index_0_scoped_c1620a61_lang.css} +0 -0
  1083. /package/dist/treeshaking/components/header/{OHeaderMobile.css → OHeaderMobile.vue_vue_type_style_index_0_scoped_0a2d44bb_lang.css} +0 -0
  1084. /package/dist/treeshaking/components/header/components/{HeaderContent.css → HeaderContent.vue_vue_type_style_index_0_scoped_366a2b01_lang.css} +0 -0
  1085. /package/dist/treeshaking/components/header/components/{HeaderFlatten.css → HeaderFlatten.vue_vue_type_style_index_0_scoped_edcea052_lang.css} +0 -0
  1086. /package/dist/treeshaking/components/header/components/{HeaderNav.css → HeaderNav.vue_vue_type_style_index_0_scoped_01bf1a8c_lang.css} +0 -0
  1087. /package/dist/treeshaking/components/header/components/{HeaderNavMobile.css → HeaderNavMobile.vue_vue_type_style_index_0_scoped_5c72051b_lang.css} +0 -0
  1088. /package/dist/treeshaking/components/header-language-switcher/{OHeaderLanguageSwitcher.css → OHeaderLanguageSwitcher.vue_vue_type_style_index_0_scoped_423f1b29_lang.css} +0 -0
  1089. /package/dist/treeshaking/components/header-language-switcher/{OHeaderLanguageSwitcher2.css → OHeaderLanguageSwitcher.vue_vue_type_style_index_1_lang.css} +0 -0
  1090. /package/dist/treeshaking/components/header-search/{OHeaderSearch.css → OHeaderSearch.vue_vue_type_style_index_0_scoped_bf46f1ee_lang.css} +0 -0
  1091. /package/dist/treeshaking/components/header-source-code/{OHeaderSourceCode.css → OHeaderSourceCode.vue_vue_type_style_index_0_scoped_4c72b8c0_lang.css} +0 -0
  1092. /package/dist/treeshaking/components/header-theme/{OHeaderTheme.css → OHeaderTheme.vue_vue_type_style_index_0_scoped_a8461f7a_lang.css} +0 -0
  1093. /package/dist/treeshaking/components/header-user/{OHeaderUser.css → OHeaderUser.vue_vue_type_style_index_0_scoped_01df49a0_lang.css} +0 -0
  1094. /package/dist/treeshaking/components/header-user/{OHeaderUser2.css → OHeaderUser.vue_vue_type_style_index_1_lang.css} +0 -0
  1095. /package/dist/treeshaking/components/html-viewer/{OHtmlViewer.css → OHtmlViewer.vue_vue_type_style_index_0_scoped_2f5d08df_lang.css} +0 -0
  1096. /package/dist/treeshaking/components/logo-swiper/{OLogoSwiper.css → OLogoSwiper.vue_vue_type_style_index_0_scoped_6c8c87fc_lang.css} +0 -0
  1097. /package/dist/treeshaking/components/logo-swiper/{OLogoSwiperItems.css → OLogoSwiperItems.vue_vue_type_style_index_0_scoped_2d960cc9_lang.css} +0 -0
  1098. /package/dist/treeshaking/components/markdown/{OMarkdown.css → OMarkdown.vue_vue_type_style_index_0_lang.css} +0 -0
  1099. /package/dist/treeshaking/components/markdown/{OMarkdown2.css → OMarkdown.vue_vue_type_style_index_1_scoped_c19788db_lang.css} +0 -0
  1100. /package/dist/treeshaking/components/markdown/components/{MarkdownCode.css → MarkdownCode.vue_vue_type_style_index_0_lang.css} +0 -0
  1101. /package/dist/treeshaking/components/markdown/components/{MarkdownCode2.css → MarkdownCode.vue_vue_type_style_index_1_scoped_8895ed58_lang.css} +0 -0
  1102. /package/dist/treeshaking/components/markdown/components/{MarkdownImage.css → MarkdownImage.vue_vue_type_style_index_0_scoped_af8b0296_lang.css} +0 -0
  1103. /package/dist/treeshaking/components/markdown/components/{MarkdownTable.css → MarkdownTable.vue_vue_type_style_index_0_scoped_ce85236e_lang.css} +0 -0
  1104. /package/dist/treeshaking/components/markdown/components/{MarkdownTableData.css → MarkdownTableData.vue_vue_type_style_index_0_scoped_5f73735b_lang.css} +0 -0
  1105. /package/dist/treeshaking/components/markdown/components/{MarkdownTableExpand.css → MarkdownTableExpand.vue_vue_type_style_index_0_scoped_e625a513_lang.css} +0 -0
  1106. /package/dist/treeshaking/components/markdown/components/{MarkdownTitle.css → MarkdownTitle.vue_vue_type_style_index_0_scoped_73874b80_lang.css} +0 -0
  1107. /package/dist/treeshaking/components/meeting/{OMeetingMinutes.css → OMeetingMinutes.vue_vue_type_style_index_0_lang.css} +0 -0
  1108. /package/dist/treeshaking/components/meeting/{OMeetingMinutesCopyDetail.css → OMeetingMinutesCopyDetail.vue_vue_type_style_index_0_scoped_6e742903_lang.css} +0 -0
  1109. /package/dist/treeshaking/components/meeting/{OMeetingPlayback.css → OMeetingPlayback.vue_vue_type_style_index_0_lang.css} +0 -0
  1110. /package/dist/treeshaking/components/meeting/{OMeetingSendMinutesForm.css → OMeetingSendMinutesForm.vue_vue_type_style_index_0_lang.css} +0 -0
  1111. /package/dist/treeshaking/components/meeting/{OMeetingSigCalendar.css → OMeetingSigCalendar.vue_vue_type_style_index_0_lang.css} +0 -0
  1112. /package/dist/treeshaking/components/meeting/components/{OMeetingCalendarList.css → OMeetingCalendarList.vue_vue_type_style_index_0_lang.css} +0 -0
  1113. /package/dist/treeshaking/components/meeting/components/{OMeetingDetail.css → OMeetingDetail.vue_vue_type_style_index_0_lang.css} +0 -0
  1114. /package/dist/treeshaking/components/meeting/components/{OMeetingPlaybackVideo.css → OMeetingPlaybackVideo.vue_vue_type_style_index_0_lang.css} +0 -0
  1115. /package/dist/treeshaking/components/meeting/components/{OMeetingSendMinutesDialog.css → OMeetingSendMinutesDialog.vue_vue_type_style_index_0_scoped_1bd384f6_lang.css} +0 -0
  1116. /package/dist/treeshaking/components/meeting/components/{OMeetingSigAside.css → OMeetingSigAside.vue_vue_type_style_index_0_lang.css} +0 -0
  1117. /package/dist/treeshaking/components/org/{OOrgDesc.css → OOrgDesc.vue_vue_type_style_index_0_scoped_5a9df0b4_lang.css} +0 -0
  1118. /package/dist/treeshaking/components/org/{OOrgMembers.css → OOrgMembers.vue_vue_type_style_index_0_scoped_dc325798_lang.css} +0 -0
  1119. /package/dist/treeshaking/components/recursion-menu/{ORecursionMenuItem.css → ORecursionMenuItem.vue_vue_type_style_index_0_scoped_14237743_lang.css} +0 -0
  1120. /package/dist/treeshaking/components/search/{OSearchInput.css → OSearchInput.vue_vue_type_style_index_0_scoped_ee331b07_lang.css} +0 -0
  1121. /package/dist/treeshaking/components/search/internal/{HighlightText.css → HighlightText.vue_vue_type_style_index_0_scoped_2a99e23c_lang.css} +0 -0
  1122. /package/dist/treeshaking/components/search/internal/{SearchImageInput.css → SearchImageInput.vue_vue_type_style_index_0_scoped_4a3e5145_lang.css} +0 -0
  1123. /package/dist/treeshaking/components/search/internal/{SearchImageInput2.css → SearchImageInput.vue_vue_type_style_index_1_lang.css} +0 -0
  1124. /package/dist/treeshaking/components/search/internal/{SearchPanel.css → SearchPanel.vue_vue_type_style_index_0_scoped_a5767f01_lang.css} +0 -0
  1125. /package/dist/treeshaking/components/search-result/{OSearchResultHeader.css → OSearchResultHeader.vue_vue_type_style_index_0_scoped_70bc0c95_lang.css} +0 -0
  1126. /package/dist/treeshaking/components/search-result/{OSearchResultItem.css → OSearchResultItem.vue_vue_type_style_index_0_scoped_0914fdb7_lang.css} +0 -0
  1127. /package/dist/treeshaking/components/search-result/components/{OSearchResultEmpty.css → OSearchResultEmpty.vue_vue_type_style_index_0_scoped_da22a823_lang.css} +0 -0
  1128. /package/dist/treeshaking/components/search-result/components/{OSearchResultFeedback.css → OSearchResultFeedback.vue_vue_type_style_index_0_scoped_72958e79_lang.css} +0 -0
  1129. /package/dist/treeshaking/components/search-result/components/{OSearchResultFeedbackBanner.css → OSearchResultFeedbackBanner.vue_vue_type_style_index_0_scoped_4cd638c6_lang.css} +0 -0
  1130. /package/dist/treeshaking/components/search-result/components/{OSearchResultRelative.css → OSearchResultRelative.vue_vue_type_style_index_0_scoped_6872ff03_lang.css} +0 -0
  1131. /package/dist/treeshaking/components/section/{OSection.css → OSection.vue_vue_type_style_index_0_scoped_dae37748_lang.css} +0 -0
  1132. /package/dist/treeshaking/components/sig/{OSigDetail.css → OSigDetail.vue_vue_type_style_index_0_lang.css} +0 -0
  1133. /package/dist/treeshaking/components/sig/components/{OSigDetailInfoCard.css → OSigDetailInfoCard.vue_vue_type_style_index_0_lang.css} +0 -0
  1134. /package/dist/treeshaking/components/sig/components/{OSigItem.css → OSigItem.vue_vue_type_style_index_0_lang.css} +0 -0
  1135. /package/dist/treeshaking/components/sig/components/{OSigMember.css → OSigMember.vue_vue_type_style_index_0_lang.css} +0 -0
  1136. /package/dist/treeshaking/components/sig/components/{OSigRepo.css → OSigRepo.vue_vue_type_style_index_0_lang.css} +0 -0
  1137. /package/dist/treeshaking/components/sig/components/{OSigUserContribute.css → OSigUserContribute.vue_vue_type_style_index_0_lang.css} +0 -0
  1138. /package/dist/treeshaking/components/summit/{OSummit.css → OSummit.vue_vue_type_style_index_0_scoped_6e15ff06_lang.css} +0 -0
  1139. /package/dist/treeshaking/components/summit/{OSummitIntro.css → OSummitIntro.vue_vue_type_style_index_0_scoped_4878dd94_lang.css} +0 -0
  1140. /package/dist/treeshaking/components/summit/{OSummitLive.css → OSummitLive.vue_vue_type_style_index_0_scoped_634db517_lang.css} +0 -0
  1141. /package/dist/treeshaking/components/summit/{OSummitSchedule.css → OSummitSchedule.vue_vue_type_style_index_0_scoped_934d2319_lang.css} +0 -0
  1142. /package/dist/treeshaking/components/summit/{OSummitSchedule2.css → OSummitSchedule.vue_vue_type_style_index_1_lang.css} +0 -0
  1143. /package/dist/treeshaking/components/summit/components/{OSummitTabs.css → OSummitTabs.vue_vue_type_style_index_0_scoped_7337571d_lang.css} +0 -0
  1144. /package/dist/treeshaking/components/user-center/{OAppHeader.css → OAppHeader.vue_vue_type_style_index_0_scoped_c5aea772_lang.css} +0 -0
  1145. /package/dist/treeshaking/components/user-center/{OAsideBar.css → OAsideBar.vue_vue_type_style_index_0_scoped_52e6041d_lang.css} +0 -0
  1146. /package/dist/treeshaking/components/user-center/{OLayout.css → OLayout.vue_vue_type_style_index_0_scoped_57f2a891_lang.css} +0 -0
  1147. /package/dist/treeshaking/components/user-center/{OTheAccountManage.css → OTheAccountManage.vue_vue_type_style_index_0_scoped_77534a05_lang.css} +0 -0
  1148. /package/dist/treeshaking/components/user-center/{OTheCreateMeeting.css → OTheCreateMeeting.vue_vue_type_style_index_0_scoped_fd23cd00_lang.css} +0 -0
  1149. /package/dist/treeshaking/components/user-center/{OTheMeeting.css → OTheMeeting.vue_vue_type_style_index_0_scoped_0dd1b8dd_lang.css} +0 -0
  1150. /package/dist/treeshaking/components/user-center/{OThirdPartyBindings.css → OThirdPartyBindings.vue_vue_type_style_index_0_scoped_aae76194_lang.css} +0 -0
  1151. /package/dist/treeshaking/components/user-center/{OUserInfo.css → OUserInfo.vue_vue_type_style_index_0_scoped_c12d3f54_lang.css} +0 -0
  1152. /package/dist/treeshaking/components/user-center/{OUserInfo2.css → OUserInfo.vue_vue_type_style_index_1_lang.css} +0 -0
  1153. /package/dist/treeshaking/components/user-center/{OUserInfo3.css → OUserInfo.vue_vue_type_style_index_2_scoped_c12d3f54_lang.css} +0 -0
  1154. /package/dist/treeshaking/components/user-center/internal/{OAppDialog.css → OAppDialog.vue_vue_type_style_index_0_scoped_67324b3c_lang.css} +0 -0
  1155. /package/dist/treeshaking/components/user-center/internal/{OAppEmpty.css → OAppEmpty.vue_vue_type_style_index_0_scoped_7a03249c_lang.css} +0 -0
  1156. /package/dist/treeshaking/components/user-center/internal/{OCommonHeader.css → OCommonHeader.vue_vue_type_style_index_0_scoped_89fdfe34_lang.css} +0 -0
  1157. /package/dist/treeshaking/components/user-center/internal/{ODeleteAccountModal.css → ODeleteAccountModal.vue_vue_type_style_index_0_scoped_e8f10683_lang.css} +0 -0
  1158. /package/dist/treeshaking/components/user-center/internal/{ODeleteAccountModal2.css → ODeleteAccountModal.vue_vue_type_style_index_1_lang.css} +0 -0
  1159. /package/dist/treeshaking/components/user-center/internal/{OEditNicknameDialog.css → OEditNicknameDialog.vue_vue_type_style_index_0_scoped_31e15aff_lang.css} +0 -0
  1160. /package/dist/treeshaking/components/user-center/internal/{OEditNicknameDialog2.css → OEditNicknameDialog.vue_vue_type_style_index_1_lang.css} +0 -0
  1161. /package/dist/treeshaking/components/user-center/internal/{OEditOrgDialog.css → OEditOrgDialog.vue_vue_type_style_index_0_scoped_80d49054_lang.css} +0 -0
  1162. /package/dist/treeshaking/components/user-center/internal/{OEditOrgDialog2.css → OEditOrgDialog.vue_vue_type_style_index_1_lang.css} +0 -0
  1163. /package/dist/treeshaking/components/user-center/internal/{OMaskEye.css → OMaskEye.vue_vue_type_style_index_0_scoped_a1344e1a_lang.css} +0 -0
  1164. /package/dist/treeshaking/components/user-center/internal/{OModifyPwd.css → OModifyPwd.vue_vue_type_style_index_0_scoped_5e0452e7_lang.css} +0 -0
  1165. /package/dist/treeshaking/components/user-center/internal/{OPasswordPopInput.css → OPasswordPopInput.vue_vue_type_style_index_0_scoped_1bf14f73_lang.css} +0 -0
  1166. /package/dist/treeshaking/components/user-center/internal/{OToBindingTipModal.css → OToBindingTipModal.vue_vue_type_style_index_0_scoped_8d479930_lang.css} +0 -0
  1167. /package/dist/treeshaking/components/user-center/internal/{OUnbindingThirdpartyAccountModal.css → OUnbindingThirdpartyAccountModal.vue_vue_type_style_index_0_scoped_d6042985_lang.css} +0 -0
  1168. /package/dist/treeshaking/components/user-center/verify/{Verify.css → Verify.vue_vue_type_style_index_0_lang.css} +0 -0
  1169. /package/dist/treeshaking/components/video/{OVideoDetail.css → OVideoDetail.vue_vue_type_style_index_0_lang.css} +0 -0
@@ -1,1449 +1,1443 @@
1
- import { __exports as dom } from "./dom.js2.mjs";
2
- import { __require as requireConventions } from "./conventions.js.mjs";
3
- var hasRequiredDom;
4
- function requireDom() {
5
- if (hasRequiredDom) return dom;
6
- hasRequiredDom = 1;
7
- var conventions = requireConventions();
8
- var find = conventions.find;
9
- var NAMESPACE = conventions.NAMESPACE;
10
- function notEmptyString(input) {
11
- return input !== "";
12
- }
13
- function splitOnASCIIWhitespace(input) {
14
- return input ? input.split(/[\t\n\f\r ]+/).filter(notEmptyString) : [];
15
- }
16
- function orderedSetReducer(current, element) {
17
- if (!current.hasOwnProperty(element)) {
18
- current[element] = true;
19
- }
20
- return current;
21
- }
22
- function toOrderedSet(input) {
23
- if (!input) return [];
24
- var list = splitOnASCIIWhitespace(input);
25
- return Object.keys(list.reduce(orderedSetReducer, {}));
26
- }
27
- function arrayIncludes(list) {
28
- return function(element) {
29
- return list && list.indexOf(element) !== -1;
30
- };
31
- }
32
- function copy(src, dest) {
33
- for (var p in src) {
34
- if (Object.prototype.hasOwnProperty.call(src, p)) {
35
- dest[p] = src[p];
36
- }
37
- }
38
- }
39
- function _extends(Class, Super) {
40
- var pt = Class.prototype;
41
- if (!(pt instanceof Super)) {
42
- let t = function() {
43
- };
44
- t.prototype = Super.prototype;
45
- t = new t();
46
- copy(pt, t);
47
- Class.prototype = pt = t;
48
- }
49
- if (pt.constructor != Class) {
50
- if (typeof Class != "function") {
51
- console.error("unknown Class:" + Class);
52
- }
53
- pt.constructor = Class;
54
- }
55
- }
56
- var NodeType = {};
57
- var ELEMENT_NODE = NodeType.ELEMENT_NODE = 1;
58
- var ATTRIBUTE_NODE = NodeType.ATTRIBUTE_NODE = 2;
59
- var TEXT_NODE = NodeType.TEXT_NODE = 3;
60
- var CDATA_SECTION_NODE = NodeType.CDATA_SECTION_NODE = 4;
61
- var ENTITY_REFERENCE_NODE = NodeType.ENTITY_REFERENCE_NODE = 5;
62
- var ENTITY_NODE = NodeType.ENTITY_NODE = 6;
63
- var PROCESSING_INSTRUCTION_NODE = NodeType.PROCESSING_INSTRUCTION_NODE = 7;
64
- var COMMENT_NODE = NodeType.COMMENT_NODE = 8;
65
- var DOCUMENT_NODE = NodeType.DOCUMENT_NODE = 9;
66
- var DOCUMENT_TYPE_NODE = NodeType.DOCUMENT_TYPE_NODE = 10;
67
- var DOCUMENT_FRAGMENT_NODE = NodeType.DOCUMENT_FRAGMENT_NODE = 11;
68
- var NOTATION_NODE = NodeType.NOTATION_NODE = 12;
69
- var ExceptionCode = {};
70
- var ExceptionMessage = {};
71
- ExceptionCode.INDEX_SIZE_ERR = (ExceptionMessage[1] = "Index size error", 1);
72
- ExceptionCode.DOMSTRING_SIZE_ERR = (ExceptionMessage[2] = "DOMString size error", 2);
73
- var HIERARCHY_REQUEST_ERR = ExceptionCode.HIERARCHY_REQUEST_ERR = (ExceptionMessage[3] = "Hierarchy request error", 3);
74
- ExceptionCode.WRONG_DOCUMENT_ERR = (ExceptionMessage[4] = "Wrong document", 4);
75
- var INVALID_CHARACTER_ERR = ExceptionCode.INVALID_CHARACTER_ERR = (ExceptionMessage[5] = "Invalid character", 5);
76
- ExceptionCode.NO_DATA_ALLOWED_ERR = (ExceptionMessage[6] = "No data allowed", 6);
77
- ExceptionCode.NO_MODIFICATION_ALLOWED_ERR = (ExceptionMessage[7] = "No modification allowed", 7);
78
- var NOT_FOUND_ERR = ExceptionCode.NOT_FOUND_ERR = (ExceptionMessage[8] = "Not found", 8);
79
- ExceptionCode.NOT_SUPPORTED_ERR = (ExceptionMessage[9] = "Not supported", 9);
80
- var INUSE_ATTRIBUTE_ERR = ExceptionCode.INUSE_ATTRIBUTE_ERR = (ExceptionMessage[10] = "Attribute in use", 10);
81
- ExceptionCode.INVALID_STATE_ERR = (ExceptionMessage[11] = "Invalid state", 11);
82
- ExceptionCode.SYNTAX_ERR = (ExceptionMessage[12] = "Syntax error", 12);
83
- ExceptionCode.INVALID_MODIFICATION_ERR = (ExceptionMessage[13] = "Invalid modification", 13);
84
- ExceptionCode.NAMESPACE_ERR = (ExceptionMessage[14] = "Invalid namespace", 14);
85
- ExceptionCode.INVALID_ACCESS_ERR = (ExceptionMessage[15] = "Invalid access", 15);
86
- function DOMException(code, message) {
87
- if (message instanceof Error) {
88
- var error = message;
89
- } else {
90
- error = this;
91
- Error.call(this, ExceptionMessage[code]);
92
- this.message = ExceptionMessage[code];
93
- if (Error.captureStackTrace) Error.captureStackTrace(this, DOMException);
94
- }
95
- error.code = code;
96
- if (message) this.message = this.message + ": " + message;
97
- return error;
98
- }
99
- DOMException.prototype = Error.prototype;
100
- copy(ExceptionCode, DOMException);
101
- function NodeList() {
102
- }
103
- NodeList.prototype = {
104
- /**
105
- * The number of nodes in the list. The range of valid child node indices is 0 to length-1 inclusive.
106
- * @standard level1
107
- */
108
- length: 0,
109
- /**
110
- * Returns the indexth item in the collection. If index is greater than or equal to the number of nodes in the list, this returns null.
111
- * @standard level1
112
- * @param index unsigned long
113
- * Index into the collection.
114
- * @return Node
115
- * The node at the indexth position in the NodeList, or null if that is not a valid index.
116
- */
117
- item: function(index) {
118
- return index >= 0 && index < this.length ? this[index] : null;
119
- },
120
- toString: function(isHTML, nodeFilter) {
121
- for (var buf = [], i = 0; i < this.length; i++) {
122
- serializeToString(this[i], buf, isHTML, nodeFilter);
123
- }
124
- return buf.join("");
125
- },
126
- /**
127
- * @private
128
- * @param {function (Node):boolean} predicate
129
- * @returns {Node[]}
130
- */
131
- filter: function(predicate) {
132
- return Array.prototype.filter.call(this, predicate);
133
- },
134
- /**
135
- * @private
136
- * @param {Node} item
137
- * @returns {number}
138
- */
139
- indexOf: function(item) {
140
- return Array.prototype.indexOf.call(this, item);
141
- }
142
- };
143
- function LiveNodeList(node, refresh) {
144
- this._node = node;
145
- this._refresh = refresh;
146
- _updateLiveList(this);
147
- }
148
- function _updateLiveList(list) {
149
- var inc = list._node._inc || list._node.ownerDocument._inc;
150
- if (list._inc !== inc) {
151
- var ls = list._refresh(list._node);
152
- __set__(list, "length", ls.length);
153
- if (!list.$$length || ls.length < list.$$length) {
154
- for (var i = ls.length; i in list; i++) {
155
- if (Object.prototype.hasOwnProperty.call(list, i)) {
156
- delete list[i];
157
- }
158
- }
159
- }
160
- copy(ls, list);
161
- list._inc = inc;
162
- }
163
- }
164
- LiveNodeList.prototype.item = function(i) {
165
- _updateLiveList(this);
166
- return this[i] || null;
167
- };
168
- _extends(LiveNodeList, NodeList);
169
- function NamedNodeMap() {
170
- }
171
- function _findNodeIndex(list, node) {
172
- var i = list.length;
173
- while (i--) {
174
- if (list[i] === node) {
175
- return i;
176
- }
177
- }
178
- }
179
- function _addNamedNode(el, list, newAttr, oldAttr) {
180
- if (oldAttr) {
181
- list[_findNodeIndex(list, oldAttr)] = newAttr;
182
- } else {
183
- list[list.length++] = newAttr;
184
- }
185
- if (el) {
186
- newAttr.ownerElement = el;
187
- var doc = el.ownerDocument;
188
- if (doc) {
189
- oldAttr && _onRemoveAttribute(doc, el, oldAttr);
190
- _onAddAttribute(doc, el, newAttr);
191
- }
192
- }
193
- }
194
- function _removeNamedNode(el, list, attr) {
195
- var i = _findNodeIndex(list, attr);
196
- if (i >= 0) {
197
- var lastIndex = list.length - 1;
198
- while (i < lastIndex) {
199
- list[i] = list[++i];
200
- }
201
- list.length = lastIndex;
202
- if (el) {
203
- var doc = el.ownerDocument;
204
- if (doc) {
205
- _onRemoveAttribute(doc, el, attr);
206
- attr.ownerElement = null;
207
- }
208
- }
209
- } else {
210
- throw new DOMException(NOT_FOUND_ERR, new Error(el.tagName + "@" + attr));
211
- }
212
- }
213
- NamedNodeMap.prototype = {
214
- length: 0,
215
- item: NodeList.prototype.item,
216
- getNamedItem: function(key) {
217
- var i = this.length;
218
- while (i--) {
219
- var attr = this[i];
220
- if (attr.nodeName == key) {
221
- return attr;
222
- }
223
- }
224
- },
225
- setNamedItem: function(attr) {
226
- var el = attr.ownerElement;
227
- if (el && el != this._ownerElement) {
228
- throw new DOMException(INUSE_ATTRIBUTE_ERR);
229
- }
230
- var oldAttr = this.getNamedItem(attr.nodeName);
231
- _addNamedNode(this._ownerElement, this, attr, oldAttr);
232
- return oldAttr;
233
- },
234
- /* returns Node */
235
- setNamedItemNS: function(attr) {
236
- var el = attr.ownerElement, oldAttr;
237
- if (el && el != this._ownerElement) {
238
- throw new DOMException(INUSE_ATTRIBUTE_ERR);
239
- }
240
- oldAttr = this.getNamedItemNS(attr.namespaceURI, attr.localName);
241
- _addNamedNode(this._ownerElement, this, attr, oldAttr);
242
- return oldAttr;
243
- },
244
- /* returns Node */
245
- removeNamedItem: function(key) {
246
- var attr = this.getNamedItem(key);
247
- _removeNamedNode(this._ownerElement, this, attr);
248
- return attr;
249
- },
250
- // raises: NOT_FOUND_ERR,NO_MODIFICATION_ALLOWED_ERR
251
- //for level2
252
- removeNamedItemNS: function(namespaceURI, localName) {
253
- var attr = this.getNamedItemNS(namespaceURI, localName);
254
- _removeNamedNode(this._ownerElement, this, attr);
255
- return attr;
256
- },
257
- getNamedItemNS: function(namespaceURI, localName) {
258
- var i = this.length;
259
- while (i--) {
260
- var node = this[i];
261
- if (node.localName == localName && node.namespaceURI == namespaceURI) {
262
- return node;
263
- }
264
- }
265
- return null;
266
- }
267
- };
268
- function DOMImplementation() {
269
- }
270
- DOMImplementation.prototype = {
271
- /**
272
- * The DOMImplementation.hasFeature() method returns a Boolean flag indicating if a given feature is supported.
273
- * The different implementations fairly diverged in what kind of features were reported.
274
- * The latest version of the spec settled to force this method to always return true, where the functionality was accurate and in use.
275
- *
276
- * @deprecated It is deprecated and modern browsers return true in all cases.
277
- *
278
- * @param {string} feature
279
- * @param {string} [version]
280
- * @returns {boolean} always true
281
- *
282
- * @see https://developer.mozilla.org/en-US/docs/Web/API/DOMImplementation/hasFeature MDN
283
- * @see https://www.w3.org/TR/REC-DOM-Level-1/level-one-core.html#ID-5CED94D7 DOM Level 1 Core
284
- * @see https://dom.spec.whatwg.org/#dom-domimplementation-hasfeature DOM Living Standard
285
- */
286
- hasFeature: function(feature, version) {
287
- return true;
288
- },
289
- /**
290
- * Creates an XML Document object of the specified type with its document element.
291
- *
292
- * __It behaves slightly different from the description in the living standard__:
293
- * - There is no interface/class `XMLDocument`, it returns a `Document` instance.
294
- * - `contentType`, `encoding`, `mode`, `origin`, `url` fields are currently not declared.
295
- * - this implementation is not validating names or qualified names
296
- * (when parsing XML strings, the SAX parser takes care of that)
297
- *
298
- * @param {string|null} namespaceURI
299
- * @param {string} qualifiedName
300
- * @param {DocumentType=null} doctype
301
- * @returns {Document}
302
- *
303
- * @see https://developer.mozilla.org/en-US/docs/Web/API/DOMImplementation/createDocument MDN
304
- * @see https://www.w3.org/TR/DOM-Level-2-Core/core.html#Level-2-Core-DOM-createDocument DOM Level 2 Core (initial)
305
- * @see https://dom.spec.whatwg.org/#dom-domimplementation-createdocument DOM Level 2 Core
306
- *
307
- * @see https://dom.spec.whatwg.org/#validate-and-extract DOM: Validate and extract
308
- * @see https://www.w3.org/TR/xml/#NT-NameStartChar XML Spec: Names
309
- * @see https://www.w3.org/TR/xml-names/#ns-qualnames XML Namespaces: Qualified names
310
- */
311
- createDocument: function(namespaceURI, qualifiedName, doctype) {
312
- var doc = new Document();
313
- doc.implementation = this;
314
- doc.childNodes = new NodeList();
315
- doc.doctype = doctype || null;
316
- if (doctype) {
317
- doc.appendChild(doctype);
318
- }
319
- if (qualifiedName) {
320
- var root = doc.createElementNS(namespaceURI, qualifiedName);
321
- doc.appendChild(root);
322
- }
323
- return doc;
324
- },
325
- /**
326
- * Returns a doctype, with the given `qualifiedName`, `publicId`, and `systemId`.
327
- *
328
- * __This behavior is slightly different from the in the specs__:
329
- * - this implementation is not validating names or qualified names
330
- * (when parsing XML strings, the SAX parser takes care of that)
331
- *
332
- * @param {string} qualifiedName
333
- * @param {string} [publicId]
334
- * @param {string} [systemId]
335
- * @returns {DocumentType} which can either be used with `DOMImplementation.createDocument` upon document creation
336
- * or can be put into the document via methods like `Node.insertBefore()` or `Node.replaceChild()`
337
- *
338
- * @see https://developer.mozilla.org/en-US/docs/Web/API/DOMImplementation/createDocumentType MDN
339
- * @see https://www.w3.org/TR/DOM-Level-2-Core/core.html#Level-2-Core-DOM-createDocType DOM Level 2 Core
340
- * @see https://dom.spec.whatwg.org/#dom-domimplementation-createdocumenttype DOM Living Standard
341
- *
342
- * @see https://dom.spec.whatwg.org/#validate-and-extract DOM: Validate and extract
343
- * @see https://www.w3.org/TR/xml/#NT-NameStartChar XML Spec: Names
344
- * @see https://www.w3.org/TR/xml-names/#ns-qualnames XML Namespaces: Qualified names
345
- */
346
- createDocumentType: function(qualifiedName, publicId, systemId) {
347
- var node = new DocumentType();
348
- node.name = qualifiedName;
349
- node.nodeName = qualifiedName;
350
- node.publicId = publicId || "";
351
- node.systemId = systemId || "";
352
- return node;
353
- }
354
- };
355
- function Node() {
356
- }
357
- Node.prototype = {
358
- firstChild: null,
359
- lastChild: null,
360
- previousSibling: null,
361
- nextSibling: null,
362
- attributes: null,
363
- parentNode: null,
364
- childNodes: null,
365
- ownerDocument: null,
366
- nodeValue: null,
367
- namespaceURI: null,
368
- prefix: null,
369
- localName: null,
370
- // Modified in DOM Level 2:
371
- insertBefore: function(newChild, refChild) {
372
- return _insertBefore(this, newChild, refChild);
373
- },
374
- replaceChild: function(newChild, oldChild) {
375
- _insertBefore(this, newChild, oldChild, assertPreReplacementValidityInDocument);
376
- if (oldChild) {
377
- this.removeChild(oldChild);
378
- }
379
- },
380
- removeChild: function(oldChild) {
381
- return _removeChild(this, oldChild);
382
- },
383
- appendChild: function(newChild) {
384
- return this.insertBefore(newChild, null);
385
- },
386
- hasChildNodes: function() {
387
- return this.firstChild != null;
388
- },
389
- cloneNode: function(deep) {
390
- return cloneNode(this.ownerDocument || this, this, deep);
391
- },
392
- // Modified in DOM Level 2:
393
- normalize: function() {
394
- var child = this.firstChild;
395
- while (child) {
396
- var next = child.nextSibling;
397
- if (next && next.nodeType == TEXT_NODE && child.nodeType == TEXT_NODE) {
398
- this.removeChild(next);
399
- child.appendData(next.data);
400
- } else {
401
- child.normalize();
402
- child = next;
403
- }
404
- }
405
- },
406
- // Introduced in DOM Level 2:
407
- isSupported: function(feature, version) {
408
- return this.ownerDocument.implementation.hasFeature(feature, version);
409
- },
410
- // Introduced in DOM Level 2:
411
- hasAttributes: function() {
412
- return this.attributes.length > 0;
413
- },
414
- /**
415
- * Look up the prefix associated to the given namespace URI, starting from this node.
416
- * **The default namespace declarations are ignored by this method.**
417
- * See Namespace Prefix Lookup for details on the algorithm used by this method.
418
- *
419
- * _Note: The implementation seems to be incomplete when compared to the algorithm described in the specs._
420
- *
421
- * @param {string | null} namespaceURI
422
- * @returns {string | null}
423
- * @see https://www.w3.org/TR/DOM-Level-3-Core/core.html#Node3-lookupNamespacePrefix
424
- * @see https://www.w3.org/TR/DOM-Level-3-Core/namespaces-algorithms.html#lookupNamespacePrefixAlgo
425
- * @see https://dom.spec.whatwg.org/#dom-node-lookupprefix
426
- * @see https://github.com/xmldom/xmldom/issues/322
427
- */
428
- lookupPrefix: function(namespaceURI) {
429
- var el = this;
430
- while (el) {
431
- var map = el._nsMap;
432
- if (map) {
433
- for (var n in map) {
434
- if (Object.prototype.hasOwnProperty.call(map, n) && map[n] === namespaceURI) {
435
- return n;
436
- }
437
- }
438
- }
439
- el = el.nodeType == ATTRIBUTE_NODE ? el.ownerDocument : el.parentNode;
440
- }
441
- return null;
442
- },
443
- // Introduced in DOM Level 3:
444
- lookupNamespaceURI: function(prefix) {
445
- var el = this;
446
- while (el) {
447
- var map = el._nsMap;
448
- if (map) {
449
- if (Object.prototype.hasOwnProperty.call(map, prefix)) {
450
- return map[prefix];
451
- }
452
- }
453
- el = el.nodeType == ATTRIBUTE_NODE ? el.ownerDocument : el.parentNode;
454
- }
455
- return null;
456
- },
457
- // Introduced in DOM Level 3:
458
- isDefaultNamespace: function(namespaceURI) {
459
- var prefix = this.lookupPrefix(namespaceURI);
460
- return prefix == null;
461
- }
462
- };
463
- function _xmlEncoder(c) {
464
- return c == "<" && "&lt;" || c == ">" && "&gt;" || c == "&" && "&amp;" || c == '"' && "&quot;" || "&#" + c.charCodeAt() + ";";
465
- }
466
- copy(NodeType, Node);
467
- copy(NodeType, Node.prototype);
468
- function _visitNode(node, callback) {
469
- if (callback(node)) {
470
- return true;
471
- }
472
- if (node = node.firstChild) {
473
- do {
474
- if (_visitNode(node, callback)) {
475
- return true;
476
- }
477
- } while (node = node.nextSibling);
478
- }
479
- }
480
- function Document() {
481
- this.ownerDocument = this;
482
- }
483
- function _onAddAttribute(doc, el, newAttr) {
484
- doc && doc._inc++;
485
- var ns = newAttr.namespaceURI;
486
- if (ns === NAMESPACE.XMLNS) {
487
- el._nsMap[newAttr.prefix ? newAttr.localName : ""] = newAttr.value;
488
- }
489
- }
490
- function _onRemoveAttribute(doc, el, newAttr, remove) {
491
- doc && doc._inc++;
492
- var ns = newAttr.namespaceURI;
493
- if (ns === NAMESPACE.XMLNS) {
494
- delete el._nsMap[newAttr.prefix ? newAttr.localName : ""];
495
- }
496
- }
497
- function _onUpdateChild(doc, el, newChild) {
498
- if (doc && doc._inc) {
499
- doc._inc++;
500
- var cs = el.childNodes;
501
- if (newChild) {
502
- cs[cs.length++] = newChild;
503
- } else {
504
- var child = el.firstChild;
505
- var i = 0;
506
- while (child) {
507
- cs[i++] = child;
508
- child = child.nextSibling;
509
- }
510
- cs.length = i;
511
- delete cs[cs.length];
512
- }
513
- }
514
- }
515
- function _removeChild(parentNode, child) {
516
- var previous = child.previousSibling;
517
- var next = child.nextSibling;
518
- if (previous) {
519
- previous.nextSibling = next;
520
- } else {
521
- parentNode.firstChild = next;
522
- }
523
- if (next) {
524
- next.previousSibling = previous;
525
- } else {
526
- parentNode.lastChild = previous;
527
- }
528
- child.parentNode = null;
529
- child.previousSibling = null;
530
- child.nextSibling = null;
531
- _onUpdateChild(parentNode.ownerDocument, parentNode);
532
- return child;
533
- }
534
- function hasValidParentNodeType(node) {
535
- return node && (node.nodeType === Node.DOCUMENT_NODE || node.nodeType === Node.DOCUMENT_FRAGMENT_NODE || node.nodeType === Node.ELEMENT_NODE);
536
- }
537
- function hasInsertableNodeType(node) {
538
- return node && (isElementNode(node) || isTextNode(node) || isDocTypeNode(node) || node.nodeType === Node.DOCUMENT_FRAGMENT_NODE || node.nodeType === Node.COMMENT_NODE || node.nodeType === Node.PROCESSING_INSTRUCTION_NODE);
539
- }
540
- function isDocTypeNode(node) {
541
- return node && node.nodeType === Node.DOCUMENT_TYPE_NODE;
542
- }
543
- function isElementNode(node) {
544
- return node && node.nodeType === Node.ELEMENT_NODE;
545
- }
546
- function isTextNode(node) {
547
- return node && node.nodeType === Node.TEXT_NODE;
548
- }
549
- function isElementInsertionPossible(doc, child) {
550
- var parentChildNodes = doc.childNodes || [];
551
- if (find(parentChildNodes, isElementNode) || isDocTypeNode(child)) {
552
- return false;
553
- }
554
- var docTypeNode = find(parentChildNodes, isDocTypeNode);
555
- return !(child && docTypeNode && parentChildNodes.indexOf(docTypeNode) > parentChildNodes.indexOf(child));
556
- }
557
- function isElementReplacementPossible(doc, child) {
558
- var parentChildNodes = doc.childNodes || [];
559
- function hasElementChildThatIsNotChild(node) {
560
- return isElementNode(node) && node !== child;
561
- }
562
- if (find(parentChildNodes, hasElementChildThatIsNotChild)) {
563
- return false;
564
- }
565
- var docTypeNode = find(parentChildNodes, isDocTypeNode);
566
- return !(child && docTypeNode && parentChildNodes.indexOf(docTypeNode) > parentChildNodes.indexOf(child));
567
- }
568
- function assertPreInsertionValidity1to5(parent, node, child) {
569
- if (!hasValidParentNodeType(parent)) {
570
- throw new DOMException(HIERARCHY_REQUEST_ERR, "Unexpected parent node type " + parent.nodeType);
571
- }
572
- if (child && child.parentNode !== parent) {
573
- throw new DOMException(NOT_FOUND_ERR, "child not in parent");
574
- }
575
- if (
576
- // 4. If `node` is not a DocumentFragment, DocumentType, Element, or CharacterData node, then throw a "HierarchyRequestError" DOMException.
577
- !hasInsertableNodeType(node) || // 5. If either `node` is a Text node and `parent` is a document,
578
- // the sax parser currently adds top level text nodes, this will be fixed in 0.9.0
579
- // || (node.nodeType === Node.TEXT_NODE && parent.nodeType === Node.DOCUMENT_NODE)
580
- // or `node` is a doctype and `parent` is not a document, then throw a "HierarchyRequestError" DOMException.
581
- isDocTypeNode(node) && parent.nodeType !== Node.DOCUMENT_NODE
582
- ) {
583
- throw new DOMException(
584
- HIERARCHY_REQUEST_ERR,
585
- "Unexpected node type " + node.nodeType + " for parent node type " + parent.nodeType
586
- );
587
- }
588
- }
589
- function assertPreInsertionValidityInDocument(parent, node, child) {
590
- var parentChildNodes = parent.childNodes || [];
591
- var nodeChildNodes = node.childNodes || [];
592
- if (node.nodeType === Node.DOCUMENT_FRAGMENT_NODE) {
593
- var nodeChildElements = nodeChildNodes.filter(isElementNode);
594
- if (nodeChildElements.length > 1 || find(nodeChildNodes, isTextNode)) {
595
- throw new DOMException(HIERARCHY_REQUEST_ERR, "More than one element or text in fragment");
596
- }
597
- if (nodeChildElements.length === 1 && !isElementInsertionPossible(parent, child)) {
598
- throw new DOMException(HIERARCHY_REQUEST_ERR, "Element in fragment can not be inserted before doctype");
599
- }
600
- }
601
- if (isElementNode(node)) {
602
- if (!isElementInsertionPossible(parent, child)) {
603
- throw new DOMException(HIERARCHY_REQUEST_ERR, "Only one element can be added and only after doctype");
604
- }
605
- }
606
- if (isDocTypeNode(node)) {
607
- if (find(parentChildNodes, isDocTypeNode)) {
608
- throw new DOMException(HIERARCHY_REQUEST_ERR, "Only one doctype is allowed");
609
- }
610
- var parentElementChild = find(parentChildNodes, isElementNode);
611
- if (child && parentChildNodes.indexOf(parentElementChild) < parentChildNodes.indexOf(child)) {
612
- throw new DOMException(HIERARCHY_REQUEST_ERR, "Doctype can only be inserted before an element");
613
- }
614
- if (!child && parentElementChild) {
615
- throw new DOMException(HIERARCHY_REQUEST_ERR, "Doctype can not be appended since element is present");
616
- }
617
- }
618
- }
619
- function assertPreReplacementValidityInDocument(parent, node, child) {
620
- var parentChildNodes = parent.childNodes || [];
621
- var nodeChildNodes = node.childNodes || [];
622
- if (node.nodeType === Node.DOCUMENT_FRAGMENT_NODE) {
623
- var nodeChildElements = nodeChildNodes.filter(isElementNode);
624
- if (nodeChildElements.length > 1 || find(nodeChildNodes, isTextNode)) {
625
- throw new DOMException(HIERARCHY_REQUEST_ERR, "More than one element or text in fragment");
626
- }
627
- if (nodeChildElements.length === 1 && !isElementReplacementPossible(parent, child)) {
628
- throw new DOMException(HIERARCHY_REQUEST_ERR, "Element in fragment can not be inserted before doctype");
629
- }
630
- }
631
- if (isElementNode(node)) {
632
- if (!isElementReplacementPossible(parent, child)) {
633
- throw new DOMException(HIERARCHY_REQUEST_ERR, "Only one element can be added and only after doctype");
634
- }
635
- }
636
- if (isDocTypeNode(node)) {
637
- let hasDoctypeChildThatIsNotChild = function(node2) {
638
- return isDocTypeNode(node2) && node2 !== child;
639
- };
640
- if (find(parentChildNodes, hasDoctypeChildThatIsNotChild)) {
641
- throw new DOMException(HIERARCHY_REQUEST_ERR, "Only one doctype is allowed");
642
- }
643
- var parentElementChild = find(parentChildNodes, isElementNode);
644
- if (child && parentChildNodes.indexOf(parentElementChild) < parentChildNodes.indexOf(child)) {
645
- throw new DOMException(HIERARCHY_REQUEST_ERR, "Doctype can only be inserted before an element");
646
- }
647
- }
648
- }
649
- function _insertBefore(parent, node, child, _inDocumentAssertion) {
650
- assertPreInsertionValidity1to5(parent, node, child);
651
- if (parent.nodeType === Node.DOCUMENT_NODE) {
652
- (_inDocumentAssertion || assertPreInsertionValidityInDocument)(parent, node, child);
653
- }
654
- var cp = node.parentNode;
655
- if (cp) {
656
- cp.removeChild(node);
657
- }
658
- if (node.nodeType === DOCUMENT_FRAGMENT_NODE) {
659
- var newFirst = node.firstChild;
660
- if (newFirst == null) {
661
- return node;
662
- }
663
- var newLast = node.lastChild;
664
- } else {
665
- newFirst = newLast = node;
666
- }
667
- var pre = child ? child.previousSibling : parent.lastChild;
668
- newFirst.previousSibling = pre;
669
- newLast.nextSibling = child;
670
- if (pre) {
671
- pre.nextSibling = newFirst;
672
- } else {
673
- parent.firstChild = newFirst;
674
- }
675
- if (child == null) {
676
- parent.lastChild = newLast;
677
- } else {
678
- child.previousSibling = newLast;
679
- }
680
- do {
681
- newFirst.parentNode = parent;
682
- var targetDoc = parent.ownerDocument || parent;
683
- _updateOwnerDocument(newFirst, targetDoc);
684
- } while (newFirst !== newLast && (newFirst = newFirst.nextSibling));
685
- _onUpdateChild(parent.ownerDocument || parent, parent);
686
- if (node.nodeType == DOCUMENT_FRAGMENT_NODE) {
687
- node.firstChild = node.lastChild = null;
688
- }
689
- return node;
690
- }
691
- function _updateOwnerDocument(node, newOwnerDocument) {
692
- if (node.ownerDocument === newOwnerDocument) {
693
- return;
694
- }
695
- node.ownerDocument = newOwnerDocument;
696
- if (node.nodeType === ELEMENT_NODE && node.attributes) {
697
- for (var i = 0; i < node.attributes.length; i++) {
698
- var attr = node.attributes.item(i);
699
- if (attr) {
700
- attr.ownerDocument = newOwnerDocument;
701
- }
702
- }
703
- }
704
- var child = node.firstChild;
705
- while (child) {
706
- _updateOwnerDocument(child, newOwnerDocument);
707
- child = child.nextSibling;
708
- }
709
- }
710
- function _appendSingleChild(parentNode, newChild) {
711
- if (newChild.parentNode) {
712
- newChild.parentNode.removeChild(newChild);
713
- }
714
- newChild.parentNode = parentNode;
715
- newChild.previousSibling = parentNode.lastChild;
716
- newChild.nextSibling = null;
717
- if (newChild.previousSibling) {
718
- newChild.previousSibling.nextSibling = newChild;
719
- } else {
720
- parentNode.firstChild = newChild;
721
- }
722
- parentNode.lastChild = newChild;
723
- _onUpdateChild(parentNode.ownerDocument, parentNode, newChild);
724
- var targetDoc = parentNode.ownerDocument || parentNode;
725
- _updateOwnerDocument(newChild, targetDoc);
726
- return newChild;
727
- }
728
- Document.prototype = {
729
- //implementation : null,
730
- nodeName: "#document",
731
- nodeType: DOCUMENT_NODE,
732
- /**
733
- * The DocumentType node of the document.
734
- *
735
- * @readonly
736
- * @type DocumentType
737
- */
738
- doctype: null,
739
- documentElement: null,
740
- _inc: 1,
741
- insertBefore: function(newChild, refChild) {
742
- if (newChild.nodeType == DOCUMENT_FRAGMENT_NODE) {
743
- var child = newChild.firstChild;
744
- while (child) {
745
- var next = child.nextSibling;
746
- this.insertBefore(child, refChild);
747
- child = next;
748
- }
749
- return newChild;
750
- }
751
- _insertBefore(this, newChild, refChild);
752
- _updateOwnerDocument(newChild, this);
753
- if (this.documentElement === null && newChild.nodeType === ELEMENT_NODE) {
754
- this.documentElement = newChild;
755
- }
756
- return newChild;
757
- },
758
- removeChild: function(oldChild) {
759
- if (this.documentElement == oldChild) {
760
- this.documentElement = null;
761
- }
762
- return _removeChild(this, oldChild);
763
- },
764
- replaceChild: function(newChild, oldChild) {
765
- _insertBefore(this, newChild, oldChild, assertPreReplacementValidityInDocument);
766
- _updateOwnerDocument(newChild, this);
767
- if (oldChild) {
768
- this.removeChild(oldChild);
769
- }
770
- if (isElementNode(newChild)) {
771
- this.documentElement = newChild;
772
- }
773
- },
774
- // Introduced in DOM Level 2:
775
- importNode: function(importedNode, deep) {
776
- return importNode(this, importedNode, deep);
777
- },
778
- // Introduced in DOM Level 2:
779
- getElementById: function(id) {
780
- var rtv = null;
781
- _visitNode(this.documentElement, function(node) {
782
- if (node.nodeType == ELEMENT_NODE) {
783
- if (node.getAttribute("id") == id) {
784
- rtv = node;
785
- return true;
786
- }
787
- }
788
- });
789
- return rtv;
790
- },
791
- /**
792
- * The `getElementsByClassName` method of `Document` interface returns an array-like object
793
- * of all child elements which have **all** of the given class name(s).
794
- *
795
- * Returns an empty list if `classeNames` is an empty string or only contains HTML white space characters.
796
- *
797
- *
798
- * Warning: This is a live LiveNodeList.
799
- * Changes in the DOM will reflect in the array as the changes occur.
800
- * If an element selected by this array no longer qualifies for the selector,
801
- * it will automatically be removed. Be aware of this for iteration purposes.
802
- *
803
- * @param {string} classNames is a string representing the class name(s) to match; multiple class names are separated by (ASCII-)whitespace
804
- *
805
- * @see https://developer.mozilla.org/en-US/docs/Web/API/Document/getElementsByClassName
806
- * @see https://dom.spec.whatwg.org/#concept-getelementsbyclassname
807
- */
808
- getElementsByClassName: function(classNames) {
809
- var classNamesSet = toOrderedSet(classNames);
810
- return new LiveNodeList(this, function(base) {
811
- var ls = [];
812
- if (classNamesSet.length > 0) {
813
- _visitNode(base.documentElement, function(node) {
814
- if (node !== base && node.nodeType === ELEMENT_NODE) {
815
- var nodeClassNames = node.getAttribute("class");
816
- if (nodeClassNames) {
817
- var matches = classNames === nodeClassNames;
818
- if (!matches) {
819
- var nodeClassNamesSet = toOrderedSet(nodeClassNames);
820
- matches = classNamesSet.every(arrayIncludes(nodeClassNamesSet));
821
- }
822
- if (matches) {
823
- ls.push(node);
824
- }
825
- }
826
- }
827
- });
828
- }
829
- return ls;
830
- });
831
- },
832
- //document factory method:
833
- createElement: function(tagName) {
834
- var node = new Element();
835
- node.ownerDocument = this;
836
- node.nodeName = tagName;
837
- node.tagName = tagName;
838
- node.localName = tagName;
839
- node.childNodes = new NodeList();
840
- var attrs = node.attributes = new NamedNodeMap();
841
- attrs._ownerElement = node;
842
- return node;
843
- },
844
- createDocumentFragment: function() {
845
- var node = new DocumentFragment();
846
- node.ownerDocument = this;
847
- node.childNodes = new NodeList();
848
- return node;
849
- },
850
- createTextNode: function(data) {
851
- var node = new Text();
852
- node.ownerDocument = this;
853
- node.appendData(data);
854
- return node;
855
- },
856
- createComment: function(data) {
857
- var node = new Comment();
858
- node.ownerDocument = this;
859
- node.appendData(data);
860
- return node;
861
- },
862
- /**
863
- * Returns a new CDATASection node whose data is `data`.
864
- *
865
- * __This implementation differs from the specification:__
866
- * - calling this method on an HTML document does not throw `NotSupportedError`.
867
- *
868
- * @param {string} data
869
- * @returns {CDATASection}
870
- * @throws DOMException with code `INVALID_CHARACTER_ERR` if `data` contains `"]]>"`.
871
- * @see https://developer.mozilla.org/en-US/docs/Web/API/Document/createCDATASection
872
- * @see https://dom.spec.whatwg.org/#dom-document-createcdatasection
873
- */
874
- createCDATASection: function(data) {
875
- if (data.indexOf("]]>") !== -1) {
876
- throw new DOMException(INVALID_CHARACTER_ERR, 'data contains "]]>"');
877
- }
878
- var node = new CDATASection();
879
- node.ownerDocument = this;
880
- node.appendData(data);
881
- return node;
882
- },
883
- createProcessingInstruction: function(target, data) {
884
- var node = new ProcessingInstruction();
885
- node.ownerDocument = this;
886
- node.tagName = node.nodeName = node.target = target;
887
- node.nodeValue = node.data = data;
888
- return node;
889
- },
890
- createAttribute: function(name) {
891
- var node = new Attr();
892
- node.ownerDocument = this;
893
- node.name = name;
894
- node.nodeName = name;
895
- node.localName = name;
896
- node.specified = true;
897
- return node;
898
- },
899
- createEntityReference: function(name) {
900
- var node = new EntityReference();
901
- node.ownerDocument = this;
902
- node.nodeName = name;
903
- return node;
904
- },
905
- // Introduced in DOM Level 2:
906
- createElementNS: function(namespaceURI, qualifiedName) {
907
- var node = new Element();
908
- var pl = qualifiedName.split(":");
909
- var attrs = node.attributes = new NamedNodeMap();
910
- node.childNodes = new NodeList();
911
- node.ownerDocument = this;
912
- node.nodeName = qualifiedName;
913
- node.tagName = qualifiedName;
914
- node.namespaceURI = namespaceURI;
915
- if (pl.length == 2) {
916
- node.prefix = pl[0];
917
- node.localName = pl[1];
918
- } else {
919
- node.localName = qualifiedName;
920
- }
921
- attrs._ownerElement = node;
922
- return node;
923
- },
924
- // Introduced in DOM Level 2:
925
- createAttributeNS: function(namespaceURI, qualifiedName) {
926
- var node = new Attr();
927
- var pl = qualifiedName.split(":");
928
- node.ownerDocument = this;
929
- node.nodeName = qualifiedName;
930
- node.name = qualifiedName;
931
- node.namespaceURI = namespaceURI;
932
- node.specified = true;
933
- if (pl.length == 2) {
934
- node.prefix = pl[0];
935
- node.localName = pl[1];
936
- } else {
937
- node.localName = qualifiedName;
938
- }
939
- return node;
940
- }
941
- };
942
- _extends(Document, Node);
943
- function Element() {
944
- this._nsMap = {};
945
- }
946
- Element.prototype = {
947
- nodeType: ELEMENT_NODE,
948
- hasAttribute: function(name) {
949
- return this.getAttributeNode(name) != null;
950
- },
951
- getAttribute: function(name) {
952
- var attr = this.getAttributeNode(name);
953
- return attr && attr.value || "";
954
- },
955
- getAttributeNode: function(name) {
956
- return this.attributes.getNamedItem(name);
957
- },
958
- setAttribute: function(name, value) {
959
- var attr = this.ownerDocument.createAttribute(name);
960
- attr.value = attr.nodeValue = "" + value;
961
- this.setAttributeNode(attr);
962
- },
963
- removeAttribute: function(name) {
964
- var attr = this.getAttributeNode(name);
965
- attr && this.removeAttributeNode(attr);
966
- },
967
- //four real opeartion method
968
- appendChild: function(newChild) {
969
- if (newChild.nodeType === DOCUMENT_FRAGMENT_NODE) {
970
- return this.insertBefore(newChild, null);
971
- } else {
972
- return _appendSingleChild(this, newChild);
973
- }
974
- },
975
- setAttributeNode: function(newAttr) {
976
- return this.attributes.setNamedItem(newAttr);
977
- },
978
- setAttributeNodeNS: function(newAttr) {
979
- return this.attributes.setNamedItemNS(newAttr);
980
- },
981
- removeAttributeNode: function(oldAttr) {
982
- return this.attributes.removeNamedItem(oldAttr.nodeName);
983
- },
984
- //get real attribute name,and remove it by removeAttributeNode
985
- removeAttributeNS: function(namespaceURI, localName) {
986
- var old = this.getAttributeNodeNS(namespaceURI, localName);
987
- old && this.removeAttributeNode(old);
988
- },
989
- hasAttributeNS: function(namespaceURI, localName) {
990
- return this.getAttributeNodeNS(namespaceURI, localName) != null;
991
- },
992
- getAttributeNS: function(namespaceURI, localName) {
993
- var attr = this.getAttributeNodeNS(namespaceURI, localName);
994
- return attr && attr.value || "";
995
- },
996
- setAttributeNS: function(namespaceURI, qualifiedName, value) {
997
- var attr = this.ownerDocument.createAttributeNS(namespaceURI, qualifiedName);
998
- attr.value = attr.nodeValue = "" + value;
999
- this.setAttributeNode(attr);
1000
- },
1001
- getAttributeNodeNS: function(namespaceURI, localName) {
1002
- return this.attributes.getNamedItemNS(namespaceURI, localName);
1003
- },
1004
- getElementsByTagName: function(tagName) {
1005
- return new LiveNodeList(this, function(base) {
1006
- var ls = [];
1007
- _visitNode(base, function(node) {
1008
- if (node !== base && node.nodeType == ELEMENT_NODE && (tagName === "*" || node.tagName == tagName)) {
1009
- ls.push(node);
1010
- }
1011
- });
1012
- return ls;
1013
- });
1014
- },
1015
- getElementsByTagNameNS: function(namespaceURI, localName) {
1016
- return new LiveNodeList(this, function(base) {
1017
- var ls = [];
1018
- _visitNode(base, function(node) {
1019
- if (node !== base && node.nodeType === ELEMENT_NODE && (namespaceURI === "*" || node.namespaceURI === namespaceURI) && (localName === "*" || node.localName == localName)) {
1020
- ls.push(node);
1021
- }
1022
- });
1023
- return ls;
1024
- });
1025
- }
1026
- };
1027
- Document.prototype.getElementsByTagName = Element.prototype.getElementsByTagName;
1028
- Document.prototype.getElementsByTagNameNS = Element.prototype.getElementsByTagNameNS;
1029
- _extends(Element, Node);
1030
- function Attr() {
1031
- }
1032
- Attr.prototype.nodeType = ATTRIBUTE_NODE;
1033
- _extends(Attr, Node);
1034
- function CharacterData() {
1035
- }
1036
- CharacterData.prototype = {
1037
- data: "",
1038
- substringData: function(offset, count) {
1039
- return this.data.substring(offset, offset + count);
1040
- },
1041
- appendData: function(text) {
1042
- text = this.data + text;
1043
- this.nodeValue = this.data = text;
1044
- this.length = text.length;
1045
- },
1046
- insertData: function(offset, text) {
1047
- this.replaceData(offset, 0, text);
1048
- },
1049
- appendChild: function(newChild) {
1050
- throw new Error(ExceptionMessage[HIERARCHY_REQUEST_ERR]);
1051
- },
1052
- deleteData: function(offset, count) {
1053
- this.replaceData(offset, count, "");
1054
- },
1055
- replaceData: function(offset, count, text) {
1056
- var start = this.data.substring(0, offset);
1057
- var end = this.data.substring(offset + count);
1058
- text = start + text + end;
1059
- this.nodeValue = this.data = text;
1060
- this.length = text.length;
1061
- }
1062
- };
1063
- _extends(CharacterData, Node);
1064
- function Text() {
1065
- }
1066
- Text.prototype = {
1067
- nodeName: "#text",
1068
- nodeType: TEXT_NODE,
1069
- splitText: function(offset) {
1070
- var text = this.data;
1071
- var newText = text.substring(offset);
1072
- text = text.substring(0, offset);
1073
- this.data = this.nodeValue = text;
1074
- this.length = text.length;
1075
- var newNode = this.ownerDocument.createTextNode(newText);
1076
- if (this.parentNode) {
1077
- this.parentNode.insertBefore(newNode, this.nextSibling);
1078
- }
1079
- return newNode;
1080
- }
1081
- };
1082
- _extends(Text, CharacterData);
1083
- function Comment() {
1084
- }
1085
- Comment.prototype = {
1086
- nodeName: "#comment",
1087
- nodeType: COMMENT_NODE
1088
- };
1089
- _extends(Comment, CharacterData);
1090
- function CDATASection() {
1091
- }
1092
- CDATASection.prototype = {
1093
- nodeName: "#cdata-section",
1094
- nodeType: CDATA_SECTION_NODE
1095
- };
1096
- _extends(CDATASection, CharacterData);
1097
- function DocumentType() {
1098
- }
1099
- DocumentType.prototype.nodeType = DOCUMENT_TYPE_NODE;
1100
- _extends(DocumentType, Node);
1101
- function Notation() {
1102
- }
1103
- Notation.prototype.nodeType = NOTATION_NODE;
1104
- _extends(Notation, Node);
1105
- function Entity() {
1106
- }
1107
- Entity.prototype.nodeType = ENTITY_NODE;
1108
- _extends(Entity, Node);
1109
- function EntityReference() {
1110
- }
1111
- EntityReference.prototype.nodeType = ENTITY_REFERENCE_NODE;
1112
- _extends(EntityReference, Node);
1113
- function DocumentFragment() {
1114
- }
1115
- DocumentFragment.prototype.nodeName = "#document-fragment";
1116
- DocumentFragment.prototype.nodeType = DOCUMENT_FRAGMENT_NODE;
1117
- _extends(DocumentFragment, Node);
1118
- function ProcessingInstruction() {
1119
- }
1120
- ProcessingInstruction.prototype.nodeType = PROCESSING_INSTRUCTION_NODE;
1121
- _extends(ProcessingInstruction, Node);
1122
- function XMLSerializer() {
1123
- }
1124
- XMLSerializer.prototype.serializeToString = function(node, isHtml, nodeFilter) {
1125
- return nodeSerializeToString.call(node, isHtml, nodeFilter);
1126
- };
1127
- Node.prototype.toString = nodeSerializeToString;
1128
- function nodeSerializeToString(isHtml, nodeFilter) {
1129
- var buf = [];
1130
- var refNode = this.nodeType == 9 && this.documentElement || this;
1131
- var prefix = refNode.prefix;
1132
- var uri = refNode.namespaceURI;
1133
- if (uri && prefix == null) {
1134
- var prefix = refNode.lookupPrefix(uri);
1135
- if (prefix == null) {
1136
- var visibleNamespaces = [
1137
- { namespace: uri, prefix: null }
1138
- //{namespace:uri,prefix:''}
1139
- ];
1140
- }
1141
- }
1142
- serializeToString(this, buf, isHtml, nodeFilter, visibleNamespaces);
1143
- return buf.join("");
1144
- }
1145
- function needNamespaceDefine(node, isHTML, visibleNamespaces) {
1146
- var prefix = node.prefix || "";
1147
- var uri = node.namespaceURI;
1148
- if (!uri) {
1149
- return false;
1150
- }
1151
- if (prefix === "xml" && uri === NAMESPACE.XML || uri === NAMESPACE.XMLNS) {
1152
- return false;
1153
- }
1154
- var i = visibleNamespaces.length;
1155
- while (i--) {
1156
- var ns = visibleNamespaces[i];
1157
- if (ns.prefix === prefix) {
1158
- return ns.namespace !== uri;
1159
- }
1160
- }
1161
- return true;
1162
- }
1163
- function addSerializedAttribute(buf, qualifiedName, value) {
1164
- buf.push(" ", qualifiedName, '="', value.replace(/[<>&"\t\n\r]/g, _xmlEncoder), '"');
1165
- }
1166
- function serializeToString(node, buf, isHTML, nodeFilter, visibleNamespaces) {
1167
- if (!visibleNamespaces) {
1168
- visibleNamespaces = [];
1169
- }
1170
- if (nodeFilter) {
1171
- node = nodeFilter(node);
1172
- if (node) {
1173
- if (typeof node == "string") {
1174
- buf.push(node);
1175
- return;
1176
- }
1177
- } else {
1178
- return;
1179
- }
1180
- }
1181
- switch (node.nodeType) {
1182
- case ELEMENT_NODE:
1183
- var attrs = node.attributes;
1184
- var len = attrs.length;
1185
- var child = node.firstChild;
1186
- var nodeName = node.tagName;
1187
- isHTML = NAMESPACE.isHTML(node.namespaceURI) || isHTML;
1188
- var prefixedNodeName = nodeName;
1189
- if (!isHTML && !node.prefix && node.namespaceURI) {
1190
- var defaultNS;
1191
- for (var ai = 0; ai < attrs.length; ai++) {
1192
- if (attrs.item(ai).name === "xmlns") {
1193
- defaultNS = attrs.item(ai).value;
1194
- break;
1195
- }
1196
- }
1197
- if (!defaultNS) {
1198
- for (var nsi = visibleNamespaces.length - 1; nsi >= 0; nsi--) {
1199
- var namespace = visibleNamespaces[nsi];
1200
- if (namespace.prefix === "" && namespace.namespace === node.namespaceURI) {
1201
- defaultNS = namespace.namespace;
1202
- break;
1203
- }
1204
- }
1205
- }
1206
- if (defaultNS !== node.namespaceURI) {
1207
- for (var nsi = visibleNamespaces.length - 1; nsi >= 0; nsi--) {
1208
- var namespace = visibleNamespaces[nsi];
1209
- if (namespace.namespace === node.namespaceURI) {
1210
- if (namespace.prefix) {
1211
- prefixedNodeName = namespace.prefix + ":" + nodeName;
1212
- }
1213
- break;
1214
- }
1215
- }
1216
- }
1217
- }
1218
- buf.push("<", prefixedNodeName);
1219
- for (var i = 0; i < len; i++) {
1220
- var attr = attrs.item(i);
1221
- if (attr.prefix == "xmlns") {
1222
- visibleNamespaces.push({ prefix: attr.localName, namespace: attr.value });
1223
- } else if (attr.nodeName == "xmlns") {
1224
- visibleNamespaces.push({ prefix: "", namespace: attr.value });
1225
- }
1226
- }
1227
- for (var i = 0; i < len; i++) {
1228
- var attr = attrs.item(i);
1229
- if (needNamespaceDefine(attr, isHTML, visibleNamespaces)) {
1230
- var prefix = attr.prefix || "";
1231
- var uri = attr.namespaceURI;
1232
- addSerializedAttribute(buf, prefix ? "xmlns:" + prefix : "xmlns", uri);
1233
- visibleNamespaces.push({ prefix, namespace: uri });
1234
- }
1235
- serializeToString(attr, buf, isHTML, nodeFilter, visibleNamespaces);
1236
- }
1237
- if (nodeName === prefixedNodeName && needNamespaceDefine(node, isHTML, visibleNamespaces)) {
1238
- var prefix = node.prefix || "";
1239
- var uri = node.namespaceURI;
1240
- addSerializedAttribute(buf, prefix ? "xmlns:" + prefix : "xmlns", uri);
1241
- visibleNamespaces.push({ prefix, namespace: uri });
1242
- }
1243
- if (child || isHTML && !/^(?:meta|link|img|br|hr|input)$/i.test(nodeName)) {
1244
- buf.push(">");
1245
- if (isHTML && /^script$/i.test(nodeName)) {
1246
- while (child) {
1247
- if (child.data) {
1248
- buf.push(child.data);
1249
- } else {
1250
- serializeToString(child, buf, isHTML, nodeFilter, visibleNamespaces.slice());
1251
- }
1252
- child = child.nextSibling;
1253
- }
1254
- } else {
1255
- while (child) {
1256
- serializeToString(child, buf, isHTML, nodeFilter, visibleNamespaces.slice());
1257
- child = child.nextSibling;
1258
- }
1259
- }
1260
- buf.push("</", prefixedNodeName, ">");
1261
- } else {
1262
- buf.push("/>");
1263
- }
1264
- return;
1265
- case DOCUMENT_NODE:
1266
- case DOCUMENT_FRAGMENT_NODE:
1267
- var child = node.firstChild;
1268
- while (child) {
1269
- serializeToString(child, buf, isHTML, nodeFilter, visibleNamespaces.slice());
1270
- child = child.nextSibling;
1271
- }
1272
- return;
1273
- case ATTRIBUTE_NODE:
1274
- return addSerializedAttribute(buf, node.name, node.value);
1275
- case TEXT_NODE:
1276
- return buf.push(
1277
- node.data.replace(/[<&>]/g, _xmlEncoder)
1278
- );
1279
- case CDATA_SECTION_NODE:
1280
- return buf.push("<![CDATA[", node.data.replace(/]]>/g, "]]]]><![CDATA[>"), "]]>");
1281
- case COMMENT_NODE:
1282
- return buf.push("<!--", node.data, "-->");
1283
- case DOCUMENT_TYPE_NODE:
1284
- var pubid = node.publicId;
1285
- var sysid = node.systemId;
1286
- buf.push("<!DOCTYPE ", node.name);
1287
- if (pubid) {
1288
- buf.push(" PUBLIC ", pubid);
1289
- if (sysid && sysid != ".") {
1290
- buf.push(" ", sysid);
1291
- }
1292
- buf.push(">");
1293
- } else if (sysid && sysid != ".") {
1294
- buf.push(" SYSTEM ", sysid, ">");
1295
- } else {
1296
- var sub = node.internalSubset;
1297
- if (sub) {
1298
- buf.push(" [", sub, "]");
1299
- }
1300
- buf.push(">");
1301
- }
1302
- return;
1303
- case PROCESSING_INSTRUCTION_NODE:
1304
- return buf.push("<?", node.target, " ", node.data, "?>");
1305
- case ENTITY_REFERENCE_NODE:
1306
- return buf.push("&", node.nodeName, ";");
1307
- //case ENTITY_NODE:
1308
- //case NOTATION_NODE:
1309
- default:
1310
- buf.push("??", node.nodeName);
1311
- }
1312
- }
1313
- function importNode(doc, node, deep) {
1314
- var node2;
1315
- switch (node.nodeType) {
1316
- case ELEMENT_NODE:
1317
- node2 = node.cloneNode(false);
1318
- node2.ownerDocument = doc;
1319
- //var attrs = node2.attributes;
1320
- //var len = attrs.length;
1321
- //for(var i=0;i<len;i++){
1322
- //node2.setAttributeNodeNS(importNode(doc,attrs.item(i),deep));
1323
- //}
1324
- case DOCUMENT_FRAGMENT_NODE:
1325
- break;
1326
- case ATTRIBUTE_NODE:
1327
- deep = true;
1328
- break;
1329
- }
1330
- if (!node2) {
1331
- node2 = node.cloneNode(false);
1332
- }
1333
- node2.ownerDocument = doc;
1334
- node2.parentNode = null;
1335
- if (deep) {
1336
- var child = node.firstChild;
1337
- while (child) {
1338
- node2.appendChild(importNode(doc, child, deep));
1339
- child = child.nextSibling;
1340
- }
1341
- }
1342
- return node2;
1343
- }
1344
- function cloneNode(doc, node, deep) {
1345
- var node2 = new node.constructor();
1346
- for (var n in node) {
1347
- if (Object.prototype.hasOwnProperty.call(node, n)) {
1348
- var v = node[n];
1349
- if (typeof v != "object") {
1350
- if (v != node2[n]) {
1351
- node2[n] = v;
1352
- }
1353
- }
1354
- }
1355
- }
1356
- if (node.childNodes) {
1357
- node2.childNodes = new NodeList();
1358
- }
1359
- node2.ownerDocument = doc;
1360
- switch (node2.nodeType) {
1361
- case ELEMENT_NODE:
1362
- var attrs = node.attributes;
1363
- var attrs2 = node2.attributes = new NamedNodeMap();
1364
- var len = attrs.length;
1365
- attrs2._ownerElement = node2;
1366
- for (var i = 0; i < len; i++) {
1367
- node2.setAttributeNode(cloneNode(doc, attrs.item(i), true));
1368
- }
1369
- break;
1370
- case ATTRIBUTE_NODE:
1371
- deep = true;
1372
- }
1373
- if (deep) {
1374
- var child = node.firstChild;
1375
- while (child) {
1376
- node2.appendChild(cloneNode(doc, child, deep));
1377
- child = child.nextSibling;
1378
- }
1379
- }
1380
- return node2;
1381
- }
1382
- function __set__(object, key, value) {
1383
- object[key] = value;
1384
- }
1385
- try {
1386
- if (Object.defineProperty) {
1387
- let getTextContent = function(node) {
1388
- switch (node.nodeType) {
1389
- case ELEMENT_NODE:
1390
- case DOCUMENT_FRAGMENT_NODE:
1391
- var buf = [];
1392
- node = node.firstChild;
1393
- while (node) {
1394
- if (node.nodeType !== 7 && node.nodeType !== 8) {
1395
- buf.push(getTextContent(node));
1396
- }
1397
- node = node.nextSibling;
1398
- }
1399
- return buf.join("");
1400
- default:
1401
- return node.nodeValue;
1402
- }
1403
- };
1404
- Object.defineProperty(LiveNodeList.prototype, "length", {
1405
- get: function() {
1406
- _updateLiveList(this);
1407
- return this.$$length;
1408
- }
1409
- });
1410
- Object.defineProperty(Node.prototype, "textContent", {
1411
- get: function() {
1412
- return getTextContent(this);
1413
- },
1414
- set: function(data) {
1415
- switch (this.nodeType) {
1416
- case ELEMENT_NODE:
1417
- case DOCUMENT_FRAGMENT_NODE:
1418
- while (this.firstChild) {
1419
- this.removeChild(this.firstChild);
1420
- }
1421
- if (data || String(data)) {
1422
- this.appendChild(this.ownerDocument.createTextNode(data));
1423
- }
1424
- break;
1425
- default:
1426
- this.data = data;
1427
- this.value = data;
1428
- this.nodeValue = data;
1429
- }
1430
- }
1431
- });
1432
- __set__ = function(object, key, value) {
1433
- object["$$" + key] = value;
1434
- };
1435
- }
1436
- } catch (e) {
1437
- }
1438
- dom.DocumentType = DocumentType;
1439
- dom.DOMException = DOMException;
1440
- dom.DOMImplementation = DOMImplementation;
1441
- dom.Element = Element;
1442
- dom.Node = Node;
1443
- dom.NodeList = NodeList;
1444
- dom.XMLSerializer = XMLSerializer;
1445
- return dom;
1446
- }
1447
- export {
1448
- requireDom as __require
1449
- };
1
+ import { __commonJSMin } from "../../../_rolldown/runtime.mjs";
2
+ import { require_conventions } from "./conventions.js.mjs";
3
+ // ../../node_modules/.pnpm/@xmldom+xmldom@0.8.12/node_modules/@xmldom/xmldom/lib/dom.js
4
+ var require_dom = /* @__PURE__ */ __commonJSMin(((exports) => {
5
+ var conventions = require_conventions();
6
+ var find = conventions.find;
7
+ var NAMESPACE = conventions.NAMESPACE;
8
+ /**
9
+ * A prerequisite for `[].filter`, to drop elements that are empty
10
+ * @param {string} input
11
+ * @returns {boolean}
12
+ */
13
+ function notEmptyString(input) {
14
+ return input !== "";
15
+ }
16
+ /**
17
+ * @see https://infra.spec.whatwg.org/#split-on-ascii-whitespace
18
+ * @see https://infra.spec.whatwg.org/#ascii-whitespace
19
+ *
20
+ * @param {string} input
21
+ * @returns {string[]} (can be empty)
22
+ */
23
+ function splitOnASCIIWhitespace(input) {
24
+ return input ? input.split(/[\t\n\f\r ]+/).filter(notEmptyString) : [];
25
+ }
26
+ /**
27
+ * Adds element as a key to current if it is not already present.
28
+ *
29
+ * @param {Record<string, boolean | undefined>} current
30
+ * @param {string} element
31
+ * @returns {Record<string, boolean | undefined>}
32
+ */
33
+ function orderedSetReducer(current, element) {
34
+ if (!current.hasOwnProperty(element)) current[element] = true;
35
+ return current;
36
+ }
37
+ /**
38
+ * @see https://infra.spec.whatwg.org/#ordered-set
39
+ * @param {string} input
40
+ * @returns {string[]}
41
+ */
42
+ function toOrderedSet(input) {
43
+ if (!input) return [];
44
+ var list = splitOnASCIIWhitespace(input);
45
+ return Object.keys(list.reduce(orderedSetReducer, {}));
46
+ }
47
+ /**
48
+ * Uses `list.indexOf` to implement something like `Array.prototype.includes`,
49
+ * which we can not rely on being available.
50
+ *
51
+ * @param {any[]} list
52
+ * @returns {function(any): boolean}
53
+ */
54
+ function arrayIncludes(list) {
55
+ return function(element) {
56
+ return list && list.indexOf(element) !== -1;
57
+ };
58
+ }
59
+ function copy(src, dest) {
60
+ for (var p in src) if (Object.prototype.hasOwnProperty.call(src, p)) dest[p] = src[p];
61
+ }
62
+ /**
63
+ ^\w+\.prototype\.([_\w]+)\s*=\s*((?:.*\{\s*?[\r\n][\s\S]*?^})|\S.*?(?=[;\r\n]));?
64
+ ^\w+\.prototype\.([_\w]+)\s*=\s*(\S.*?(?=[;\r\n]));?
65
+ */
66
+ function _extends(Class, Super) {
67
+ var pt = Class.prototype;
68
+ if (!(pt instanceof Super)) {
69
+ function t() {}
70
+ t.prototype = Super.prototype;
71
+ t = new t();
72
+ copy(pt, t);
73
+ Class.prototype = pt = t;
74
+ }
75
+ if (pt.constructor != Class) {
76
+ if (typeof Class != "function") console.error("unknown Class:" + Class);
77
+ pt.constructor = Class;
78
+ }
79
+ }
80
+ var NodeType = {};
81
+ var ELEMENT_NODE = NodeType.ELEMENT_NODE = 1;
82
+ var ATTRIBUTE_NODE = NodeType.ATTRIBUTE_NODE = 2;
83
+ var TEXT_NODE = NodeType.TEXT_NODE = 3;
84
+ var CDATA_SECTION_NODE = NodeType.CDATA_SECTION_NODE = 4;
85
+ var ENTITY_REFERENCE_NODE = NodeType.ENTITY_REFERENCE_NODE = 5;
86
+ var ENTITY_NODE = NodeType.ENTITY_NODE = 6;
87
+ var PROCESSING_INSTRUCTION_NODE = NodeType.PROCESSING_INSTRUCTION_NODE = 7;
88
+ var COMMENT_NODE = NodeType.COMMENT_NODE = 8;
89
+ var DOCUMENT_NODE = NodeType.DOCUMENT_NODE = 9;
90
+ var DOCUMENT_TYPE_NODE = NodeType.DOCUMENT_TYPE_NODE = 10;
91
+ var DOCUMENT_FRAGMENT_NODE = NodeType.DOCUMENT_FRAGMENT_NODE = 11;
92
+ var NOTATION_NODE = NodeType.NOTATION_NODE = 12;
93
+ var ExceptionCode = {};
94
+ var ExceptionMessage = {};
95
+ ExceptionCode.INDEX_SIZE_ERR = (ExceptionMessage[1] = "Index size error", 1);
96
+ ExceptionCode.DOMSTRING_SIZE_ERR = (ExceptionMessage[2] = "DOMString size error", 2);
97
+ var HIERARCHY_REQUEST_ERR = ExceptionCode.HIERARCHY_REQUEST_ERR = (ExceptionMessage[3] = "Hierarchy request error", 3);
98
+ ExceptionCode.WRONG_DOCUMENT_ERR = (ExceptionMessage[4] = "Wrong document", 4);
99
+ var INVALID_CHARACTER_ERR = ExceptionCode.INVALID_CHARACTER_ERR = (ExceptionMessage[5] = "Invalid character", 5);
100
+ ExceptionCode.NO_DATA_ALLOWED_ERR = (ExceptionMessage[6] = "No data allowed", 6);
101
+ ExceptionCode.NO_MODIFICATION_ALLOWED_ERR = (ExceptionMessage[7] = "No modification allowed", 7);
102
+ var NOT_FOUND_ERR = ExceptionCode.NOT_FOUND_ERR = (ExceptionMessage[8] = "Not found", 8);
103
+ ExceptionCode.NOT_SUPPORTED_ERR = (ExceptionMessage[9] = "Not supported", 9);
104
+ var INUSE_ATTRIBUTE_ERR = ExceptionCode.INUSE_ATTRIBUTE_ERR = (ExceptionMessage[10] = "Attribute in use", 10);
105
+ ExceptionCode.INVALID_STATE_ERR = (ExceptionMessage[11] = "Invalid state", 11);
106
+ ExceptionCode.SYNTAX_ERR = (ExceptionMessage[12] = "Syntax error", 12);
107
+ ExceptionCode.INVALID_MODIFICATION_ERR = (ExceptionMessage[13] = "Invalid modification", 13);
108
+ ExceptionCode.NAMESPACE_ERR = (ExceptionMessage[14] = "Invalid namespace", 14);
109
+ ExceptionCode.INVALID_ACCESS_ERR = (ExceptionMessage[15] = "Invalid access", 15);
110
+ /**
111
+ * DOM Level 2
112
+ * Object DOMException
113
+ * @see http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/ecma-script-binding.html
114
+ * @see http://www.w3.org/TR/REC-DOM-Level-1/ecma-script-language-binding.html
115
+ */
116
+ function DOMException(code, message) {
117
+ if (message instanceof Error) var error = message;
118
+ else {
119
+ error = this;
120
+ Error.call(this, ExceptionMessage[code]);
121
+ this.message = ExceptionMessage[code];
122
+ if (Error.captureStackTrace) Error.captureStackTrace(this, DOMException);
123
+ }
124
+ error.code = code;
125
+ if (message) this.message = this.message + ": " + message;
126
+ return error;
127
+ }
128
+ DOMException.prototype = Error.prototype;
129
+ copy(ExceptionCode, DOMException);
130
+ /**
131
+ * @see http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/core.html#ID-536297177
132
+ * The NodeList interface provides the abstraction of an ordered collection of nodes, without defining or constraining how this collection is implemented. NodeList objects in the DOM are live.
133
+ * The items in the NodeList are accessible via an integral index, starting from 0.
134
+ */
135
+ function NodeList() {}
136
+ NodeList.prototype = {
137
+ /**
138
+ * The number of nodes in the list. The range of valid child node indices is 0 to length-1 inclusive.
139
+ * @standard level1
140
+ */
141
+ length: 0,
142
+ /**
143
+ * Returns the indexth item in the collection. If index is greater than or equal to the number of nodes in the list, this returns null.
144
+ * @standard level1
145
+ * @param index unsigned long
146
+ * Index into the collection.
147
+ * @return Node
148
+ * The node at the indexth position in the NodeList, or null if that is not a valid index.
149
+ */
150
+ item: function(index) {
151
+ return index >= 0 && index < this.length ? this[index] : null;
152
+ },
153
+ toString: function(isHTML, nodeFilter) {
154
+ for (var buf = [], i = 0; i < this.length; i++) serializeToString(this[i], buf, isHTML, nodeFilter);
155
+ return buf.join("");
156
+ },
157
+ /**
158
+ * @private
159
+ * @param {function (Node):boolean} predicate
160
+ * @returns {Node[]}
161
+ */
162
+ filter: function(predicate) {
163
+ return Array.prototype.filter.call(this, predicate);
164
+ },
165
+ /**
166
+ * @private
167
+ * @param {Node} item
168
+ * @returns {number}
169
+ */
170
+ indexOf: function(item) {
171
+ return Array.prototype.indexOf.call(this, item);
172
+ }
173
+ };
174
+ function LiveNodeList(node, refresh) {
175
+ this._node = node;
176
+ this._refresh = refresh;
177
+ _updateLiveList(this);
178
+ }
179
+ function _updateLiveList(list) {
180
+ var inc = list._node._inc || list._node.ownerDocument._inc;
181
+ if (list._inc !== inc) {
182
+ var ls = list._refresh(list._node);
183
+ __set__(list, "length", ls.length);
184
+ if (!list.$$length || ls.length < list.$$length) {
185
+ for (var i = ls.length; i in list; i++) if (Object.prototype.hasOwnProperty.call(list, i)) delete list[i];
186
+ }
187
+ copy(ls, list);
188
+ list._inc = inc;
189
+ }
190
+ }
191
+ LiveNodeList.prototype.item = function(i) {
192
+ _updateLiveList(this);
193
+ return this[i] || null;
194
+ };
195
+ _extends(LiveNodeList, NodeList);
196
+ /**
197
+ * Objects implementing the NamedNodeMap interface are used
198
+ * to represent collections of nodes that can be accessed by name.
199
+ * Note that NamedNodeMap does not inherit from NodeList;
200
+ * NamedNodeMaps are not maintained in any particular order.
201
+ * Objects contained in an object implementing NamedNodeMap may also be accessed by an ordinal index,
202
+ * but this is simply to allow convenient enumeration of the contents of a NamedNodeMap,
203
+ * and does not imply that the DOM specifies an order to these Nodes.
204
+ * NamedNodeMap objects in the DOM are live.
205
+ * used for attributes or DocumentType entities
206
+ */
207
+ function NamedNodeMap() {}
208
+ function _findNodeIndex(list, node) {
209
+ var i = list.length;
210
+ while (i--) if (list[i] === node) return i;
211
+ }
212
+ function _addNamedNode(el, list, newAttr, oldAttr) {
213
+ if (oldAttr) list[_findNodeIndex(list, oldAttr)] = newAttr;
214
+ else list[list.length++] = newAttr;
215
+ if (el) {
216
+ newAttr.ownerElement = el;
217
+ var doc = el.ownerDocument;
218
+ if (doc) {
219
+ oldAttr && _onRemoveAttribute(doc, el, oldAttr);
220
+ _onAddAttribute(doc, el, newAttr);
221
+ }
222
+ }
223
+ }
224
+ function _removeNamedNode(el, list, attr) {
225
+ var i = _findNodeIndex(list, attr);
226
+ if (i >= 0) {
227
+ var lastIndex = list.length - 1;
228
+ while (i < lastIndex) list[i] = list[++i];
229
+ list.length = lastIndex;
230
+ if (el) {
231
+ var doc = el.ownerDocument;
232
+ if (doc) {
233
+ _onRemoveAttribute(doc, el, attr);
234
+ attr.ownerElement = null;
235
+ }
236
+ }
237
+ } else throw new DOMException(NOT_FOUND_ERR, /* @__PURE__ */ new Error(el.tagName + "@" + attr));
238
+ }
239
+ NamedNodeMap.prototype = {
240
+ length: 0,
241
+ item: NodeList.prototype.item,
242
+ getNamedItem: function(key) {
243
+ var i = this.length;
244
+ while (i--) {
245
+ var attr = this[i];
246
+ if (attr.nodeName == key) return attr;
247
+ }
248
+ },
249
+ setNamedItem: function(attr) {
250
+ var el = attr.ownerElement;
251
+ if (el && el != this._ownerElement) throw new DOMException(INUSE_ATTRIBUTE_ERR);
252
+ var oldAttr = this.getNamedItem(attr.nodeName);
253
+ _addNamedNode(this._ownerElement, this, attr, oldAttr);
254
+ return oldAttr;
255
+ },
256
+ setNamedItemNS: function(attr) {
257
+ var el = attr.ownerElement, oldAttr;
258
+ if (el && el != this._ownerElement) throw new DOMException(INUSE_ATTRIBUTE_ERR);
259
+ oldAttr = this.getNamedItemNS(attr.namespaceURI, attr.localName);
260
+ _addNamedNode(this._ownerElement, this, attr, oldAttr);
261
+ return oldAttr;
262
+ },
263
+ removeNamedItem: function(key) {
264
+ var attr = this.getNamedItem(key);
265
+ _removeNamedNode(this._ownerElement, this, attr);
266
+ return attr;
267
+ },
268
+ removeNamedItemNS: function(namespaceURI, localName) {
269
+ var attr = this.getNamedItemNS(namespaceURI, localName);
270
+ _removeNamedNode(this._ownerElement, this, attr);
271
+ return attr;
272
+ },
273
+ getNamedItemNS: function(namespaceURI, localName) {
274
+ var i = this.length;
275
+ while (i--) {
276
+ var node = this[i];
277
+ if (node.localName == localName && node.namespaceURI == namespaceURI) return node;
278
+ }
279
+ return null;
280
+ }
281
+ };
282
+ /**
283
+ * The DOMImplementation interface represents an object providing methods
284
+ * which are not dependent on any particular document.
285
+ * Such an object is returned by the `Document.implementation` property.
286
+ *
287
+ * __The individual methods describe the differences compared to the specs.__
288
+ *
289
+ * @constructor
290
+ *
291
+ * @see https://developer.mozilla.org/en-US/docs/Web/API/DOMImplementation MDN
292
+ * @see https://www.w3.org/TR/REC-DOM-Level-1/level-one-core.html#ID-102161490 DOM Level 1 Core (Initial)
293
+ * @see https://www.w3.org/TR/DOM-Level-2-Core/core.html#ID-102161490 DOM Level 2 Core
294
+ * @see https://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-102161490 DOM Level 3 Core
295
+ * @see https://dom.spec.whatwg.org/#domimplementation DOM Living Standard
296
+ */
297
+ function DOMImplementation() {}
298
+ DOMImplementation.prototype = {
299
+ /**
300
+ * The DOMImplementation.hasFeature() method returns a Boolean flag indicating if a given feature is supported.
301
+ * The different implementations fairly diverged in what kind of features were reported.
302
+ * The latest version of the spec settled to force this method to always return true, where the functionality was accurate and in use.
303
+ *
304
+ * @deprecated It is deprecated and modern browsers return true in all cases.
305
+ *
306
+ * @param {string} feature
307
+ * @param {string} [version]
308
+ * @returns {boolean} always true
309
+ *
310
+ * @see https://developer.mozilla.org/en-US/docs/Web/API/DOMImplementation/hasFeature MDN
311
+ * @see https://www.w3.org/TR/REC-DOM-Level-1/level-one-core.html#ID-5CED94D7 DOM Level 1 Core
312
+ * @see https://dom.spec.whatwg.org/#dom-domimplementation-hasfeature DOM Living Standard
313
+ */
314
+ hasFeature: function(feature, version) {
315
+ return true;
316
+ },
317
+ /**
318
+ * Creates an XML Document object of the specified type with its document element.
319
+ *
320
+ * __It behaves slightly different from the description in the living standard__:
321
+ * - There is no interface/class `XMLDocument`, it returns a `Document` instance.
322
+ * - `contentType`, `encoding`, `mode`, `origin`, `url` fields are currently not declared.
323
+ * - this implementation is not validating names or qualified names
324
+ * (when parsing XML strings, the SAX parser takes care of that)
325
+ *
326
+ * @param {string|null} namespaceURI
327
+ * @param {string} qualifiedName
328
+ * @param {DocumentType=null} doctype
329
+ * @returns {Document}
330
+ *
331
+ * @see https://developer.mozilla.org/en-US/docs/Web/API/DOMImplementation/createDocument MDN
332
+ * @see https://www.w3.org/TR/DOM-Level-2-Core/core.html#Level-2-Core-DOM-createDocument DOM Level 2 Core (initial)
333
+ * @see https://dom.spec.whatwg.org/#dom-domimplementation-createdocument DOM Level 2 Core
334
+ *
335
+ * @see https://dom.spec.whatwg.org/#validate-and-extract DOM: Validate and extract
336
+ * @see https://www.w3.org/TR/xml/#NT-NameStartChar XML Spec: Names
337
+ * @see https://www.w3.org/TR/xml-names/#ns-qualnames XML Namespaces: Qualified names
338
+ */
339
+ createDocument: function(namespaceURI, qualifiedName, doctype) {
340
+ var doc = new Document();
341
+ doc.implementation = this;
342
+ doc.childNodes = new NodeList();
343
+ doc.doctype = doctype || null;
344
+ if (doctype) doc.appendChild(doctype);
345
+ if (qualifiedName) {
346
+ var root = doc.createElementNS(namespaceURI, qualifiedName);
347
+ doc.appendChild(root);
348
+ }
349
+ return doc;
350
+ },
351
+ /**
352
+ * Returns a doctype, with the given `qualifiedName`, `publicId`, and `systemId`.
353
+ *
354
+ * __This behavior is slightly different from the in the specs__:
355
+ * - this implementation is not validating names or qualified names
356
+ * (when parsing XML strings, the SAX parser takes care of that)
357
+ *
358
+ * @param {string} qualifiedName
359
+ * @param {string} [publicId]
360
+ * @param {string} [systemId]
361
+ * @returns {DocumentType} which can either be used with `DOMImplementation.createDocument` upon document creation
362
+ * or can be put into the document via methods like `Node.insertBefore()` or `Node.replaceChild()`
363
+ *
364
+ * @see https://developer.mozilla.org/en-US/docs/Web/API/DOMImplementation/createDocumentType MDN
365
+ * @see https://www.w3.org/TR/DOM-Level-2-Core/core.html#Level-2-Core-DOM-createDocType DOM Level 2 Core
366
+ * @see https://dom.spec.whatwg.org/#dom-domimplementation-createdocumenttype DOM Living Standard
367
+ *
368
+ * @see https://dom.spec.whatwg.org/#validate-and-extract DOM: Validate and extract
369
+ * @see https://www.w3.org/TR/xml/#NT-NameStartChar XML Spec: Names
370
+ * @see https://www.w3.org/TR/xml-names/#ns-qualnames XML Namespaces: Qualified names
371
+ */
372
+ createDocumentType: function(qualifiedName, publicId, systemId) {
373
+ var node = new DocumentType();
374
+ node.name = qualifiedName;
375
+ node.nodeName = qualifiedName;
376
+ node.publicId = publicId || "";
377
+ node.systemId = systemId || "";
378
+ return node;
379
+ }
380
+ };
381
+ /**
382
+ * @see http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/core.html#ID-1950641247
383
+ */
384
+ function Node() {}
385
+ Node.prototype = {
386
+ firstChild: null,
387
+ lastChild: null,
388
+ previousSibling: null,
389
+ nextSibling: null,
390
+ attributes: null,
391
+ parentNode: null,
392
+ childNodes: null,
393
+ ownerDocument: null,
394
+ nodeValue: null,
395
+ namespaceURI: null,
396
+ prefix: null,
397
+ localName: null,
398
+ insertBefore: function(newChild, refChild) {
399
+ return _insertBefore(this, newChild, refChild);
400
+ },
401
+ replaceChild: function(newChild, oldChild) {
402
+ _insertBefore(this, newChild, oldChild, assertPreReplacementValidityInDocument);
403
+ if (oldChild) this.removeChild(oldChild);
404
+ },
405
+ removeChild: function(oldChild) {
406
+ return _removeChild(this, oldChild);
407
+ },
408
+ appendChild: function(newChild) {
409
+ return this.insertBefore(newChild, null);
410
+ },
411
+ hasChildNodes: function() {
412
+ return this.firstChild != null;
413
+ },
414
+ cloneNode: function(deep) {
415
+ return cloneNode(this.ownerDocument || this, this, deep);
416
+ },
417
+ normalize: function() {
418
+ var child = this.firstChild;
419
+ while (child) {
420
+ var next = child.nextSibling;
421
+ if (next && next.nodeType == TEXT_NODE && child.nodeType == TEXT_NODE) {
422
+ this.removeChild(next);
423
+ child.appendData(next.data);
424
+ } else {
425
+ child.normalize();
426
+ child = next;
427
+ }
428
+ }
429
+ },
430
+ isSupported: function(feature, version) {
431
+ return this.ownerDocument.implementation.hasFeature(feature, version);
432
+ },
433
+ hasAttributes: function() {
434
+ return this.attributes.length > 0;
435
+ },
436
+ /**
437
+ * Look up the prefix associated to the given namespace URI, starting from this node.
438
+ * **The default namespace declarations are ignored by this method.**
439
+ * See Namespace Prefix Lookup for details on the algorithm used by this method.
440
+ *
441
+ * _Note: The implementation seems to be incomplete when compared to the algorithm described in the specs._
442
+ *
443
+ * @param {string | null} namespaceURI
444
+ * @returns {string | null}
445
+ * @see https://www.w3.org/TR/DOM-Level-3-Core/core.html#Node3-lookupNamespacePrefix
446
+ * @see https://www.w3.org/TR/DOM-Level-3-Core/namespaces-algorithms.html#lookupNamespacePrefixAlgo
447
+ * @see https://dom.spec.whatwg.org/#dom-node-lookupprefix
448
+ * @see https://github.com/xmldom/xmldom/issues/322
449
+ */
450
+ lookupPrefix: function(namespaceURI) {
451
+ var el = this;
452
+ while (el) {
453
+ var map = el._nsMap;
454
+ if (map) {
455
+ for (var n in map) if (Object.prototype.hasOwnProperty.call(map, n) && map[n] === namespaceURI) return n;
456
+ }
457
+ el = el.nodeType == ATTRIBUTE_NODE ? el.ownerDocument : el.parentNode;
458
+ }
459
+ return null;
460
+ },
461
+ lookupNamespaceURI: function(prefix) {
462
+ var el = this;
463
+ while (el) {
464
+ var map = el._nsMap;
465
+ if (map) {
466
+ if (Object.prototype.hasOwnProperty.call(map, prefix)) return map[prefix];
467
+ }
468
+ el = el.nodeType == ATTRIBUTE_NODE ? el.ownerDocument : el.parentNode;
469
+ }
470
+ return null;
471
+ },
472
+ isDefaultNamespace: function(namespaceURI) {
473
+ return this.lookupPrefix(namespaceURI) == null;
474
+ }
475
+ };
476
+ function _xmlEncoder(c) {
477
+ return c == "<" && "&lt;" || c == ">" && "&gt;" || c == "&" && "&amp;" || c == "\"" && "&quot;" || "&#" + c.charCodeAt() + ";";
478
+ }
479
+ copy(NodeType, Node);
480
+ copy(NodeType, Node.prototype);
481
+ /**
482
+ * @param callback return true for continue,false for break
483
+ * @return boolean true: break visit;
484
+ */
485
+ function _visitNode(node, callback) {
486
+ if (callback(node)) return true;
487
+ if (node = node.firstChild) do
488
+ if (_visitNode(node, callback)) return true;
489
+ while (node = node.nextSibling);
490
+ }
491
+ function Document() {
492
+ this.ownerDocument = this;
493
+ }
494
+ function _onAddAttribute(doc, el, newAttr) {
495
+ doc && doc._inc++;
496
+ if (newAttr.namespaceURI === NAMESPACE.XMLNS) el._nsMap[newAttr.prefix ? newAttr.localName : ""] = newAttr.value;
497
+ }
498
+ function _onRemoveAttribute(doc, el, newAttr, remove) {
499
+ doc && doc._inc++;
500
+ if (newAttr.namespaceURI === NAMESPACE.XMLNS) delete el._nsMap[newAttr.prefix ? newAttr.localName : ""];
501
+ }
502
+ /**
503
+ * Updates `el.childNodes`, updating the indexed items and it's `length`.
504
+ * Passing `newChild` means it will be appended.
505
+ * Otherwise it's assumed that an item has been removed,
506
+ * and `el.firstNode` and it's `.nextSibling` are used
507
+ * to walk the current list of child nodes.
508
+ *
509
+ * @param {Document} doc
510
+ * @param {Node} el
511
+ * @param {Node} [newChild]
512
+ * @private
513
+ */
514
+ function _onUpdateChild(doc, el, newChild) {
515
+ if (doc && doc._inc) {
516
+ doc._inc++;
517
+ var cs = el.childNodes;
518
+ if (newChild) cs[cs.length++] = newChild;
519
+ else {
520
+ var child = el.firstChild;
521
+ var i = 0;
522
+ while (child) {
523
+ cs[i++] = child;
524
+ child = child.nextSibling;
525
+ }
526
+ cs.length = i;
527
+ delete cs[cs.length];
528
+ }
529
+ }
530
+ }
531
+ /**
532
+ * Removes the connections between `parentNode` and `child`
533
+ * and any existing `child.previousSibling` or `child.nextSibling`.
534
+ *
535
+ * @see https://github.com/xmldom/xmldom/issues/135
536
+ * @see https://github.com/xmldom/xmldom/issues/145
537
+ *
538
+ * @param {Node} parentNode
539
+ * @param {Node} child
540
+ * @returns {Node} the child that was removed.
541
+ * @private
542
+ */
543
+ function _removeChild(parentNode, child) {
544
+ var previous = child.previousSibling;
545
+ var next = child.nextSibling;
546
+ if (previous) previous.nextSibling = next;
547
+ else parentNode.firstChild = next;
548
+ if (next) next.previousSibling = previous;
549
+ else parentNode.lastChild = previous;
550
+ child.parentNode = null;
551
+ child.previousSibling = null;
552
+ child.nextSibling = null;
553
+ _onUpdateChild(parentNode.ownerDocument, parentNode);
554
+ return child;
555
+ }
556
+ /**
557
+ * Returns `true` if `node` can be a parent for insertion.
558
+ * @param {Node} node
559
+ * @returns {boolean}
560
+ */
561
+ function hasValidParentNodeType(node) {
562
+ return node && (node.nodeType === Node.DOCUMENT_NODE || node.nodeType === Node.DOCUMENT_FRAGMENT_NODE || node.nodeType === Node.ELEMENT_NODE);
563
+ }
564
+ /**
565
+ * Returns `true` if `node` can be inserted according to it's `nodeType`.
566
+ * @param {Node} node
567
+ * @returns {boolean}
568
+ */
569
+ function hasInsertableNodeType(node) {
570
+ return node && (isElementNode(node) || isTextNode(node) || isDocTypeNode(node) || node.nodeType === Node.DOCUMENT_FRAGMENT_NODE || node.nodeType === Node.COMMENT_NODE || node.nodeType === Node.PROCESSING_INSTRUCTION_NODE);
571
+ }
572
+ /**
573
+ * Returns true if `node` is a DOCTYPE node
574
+ * @param {Node} node
575
+ * @returns {boolean}
576
+ */
577
+ function isDocTypeNode(node) {
578
+ return node && node.nodeType === Node.DOCUMENT_TYPE_NODE;
579
+ }
580
+ /**
581
+ * Returns true if the node is an element
582
+ * @param {Node} node
583
+ * @returns {boolean}
584
+ */
585
+ function isElementNode(node) {
586
+ return node && node.nodeType === Node.ELEMENT_NODE;
587
+ }
588
+ /**
589
+ * Returns true if `node` is a text node
590
+ * @param {Node} node
591
+ * @returns {boolean}
592
+ */
593
+ function isTextNode(node) {
594
+ return node && node.nodeType === Node.TEXT_NODE;
595
+ }
596
+ /**
597
+ * Check if en element node can be inserted before `child`, or at the end if child is falsy,
598
+ * according to the presence and position of a doctype node on the same level.
599
+ *
600
+ * @param {Document} doc The document node
601
+ * @param {Node} child the node that would become the nextSibling if the element would be inserted
602
+ * @returns {boolean} `true` if an element can be inserted before child
603
+ * @private
604
+ * https://dom.spec.whatwg.org/#concept-node-ensure-pre-insertion-validity
605
+ */
606
+ function isElementInsertionPossible(doc, child) {
607
+ var parentChildNodes = doc.childNodes || [];
608
+ if (find(parentChildNodes, isElementNode) || isDocTypeNode(child)) return false;
609
+ var docTypeNode = find(parentChildNodes, isDocTypeNode);
610
+ return !(child && docTypeNode && parentChildNodes.indexOf(docTypeNode) > parentChildNodes.indexOf(child));
611
+ }
612
+ /**
613
+ * Check if en element node can be inserted before `child`, or at the end if child is falsy,
614
+ * according to the presence and position of a doctype node on the same level.
615
+ *
616
+ * @param {Node} doc The document node
617
+ * @param {Node} child the node that would become the nextSibling if the element would be inserted
618
+ * @returns {boolean} `true` if an element can be inserted before child
619
+ * @private
620
+ * https://dom.spec.whatwg.org/#concept-node-ensure-pre-insertion-validity
621
+ */
622
+ function isElementReplacementPossible(doc, child) {
623
+ var parentChildNodes = doc.childNodes || [];
624
+ function hasElementChildThatIsNotChild(node) {
625
+ return isElementNode(node) && node !== child;
626
+ }
627
+ if (find(parentChildNodes, hasElementChildThatIsNotChild)) return false;
628
+ var docTypeNode = find(parentChildNodes, isDocTypeNode);
629
+ return !(child && docTypeNode && parentChildNodes.indexOf(docTypeNode) > parentChildNodes.indexOf(child));
630
+ }
631
+ /**
632
+ * @private
633
+ * Steps 1-5 of the checks before inserting and before replacing a child are the same.
634
+ *
635
+ * @param {Node} parent the parent node to insert `node` into
636
+ * @param {Node} node the node to insert
637
+ * @param {Node=} child the node that should become the `nextSibling` of `node`
638
+ * @returns {Node}
639
+ * @throws DOMException for several node combinations that would create a DOM that is not well-formed.
640
+ * @throws DOMException if `child` is provided but is not a child of `parent`.
641
+ * @see https://dom.spec.whatwg.org/#concept-node-ensure-pre-insertion-validity
642
+ * @see https://dom.spec.whatwg.org/#concept-node-replace
643
+ */
644
+ function assertPreInsertionValidity1to5(parent, node, child) {
645
+ if (!hasValidParentNodeType(parent)) throw new DOMException(HIERARCHY_REQUEST_ERR, "Unexpected parent node type " + parent.nodeType);
646
+ if (child && child.parentNode !== parent) throw new DOMException(NOT_FOUND_ERR, "child not in parent");
647
+ if (!hasInsertableNodeType(node) || isDocTypeNode(node) && parent.nodeType !== Node.DOCUMENT_NODE) throw new DOMException(HIERARCHY_REQUEST_ERR, "Unexpected node type " + node.nodeType + " for parent node type " + parent.nodeType);
648
+ }
649
+ /**
650
+ * @private
651
+ * Step 6 of the checks before inserting and before replacing a child are different.
652
+ *
653
+ * @param {Document} parent the parent node to insert `node` into
654
+ * @param {Node} node the node to insert
655
+ * @param {Node | undefined} child the node that should become the `nextSibling` of `node`
656
+ * @returns {Node}
657
+ * @throws DOMException for several node combinations that would create a DOM that is not well-formed.
658
+ * @throws DOMException if `child` is provided but is not a child of `parent`.
659
+ * @see https://dom.spec.whatwg.org/#concept-node-ensure-pre-insertion-validity
660
+ * @see https://dom.spec.whatwg.org/#concept-node-replace
661
+ */
662
+ function assertPreInsertionValidityInDocument(parent, node, child) {
663
+ var parentChildNodes = parent.childNodes || [];
664
+ var nodeChildNodes = node.childNodes || [];
665
+ if (node.nodeType === Node.DOCUMENT_FRAGMENT_NODE) {
666
+ var nodeChildElements = nodeChildNodes.filter(isElementNode);
667
+ if (nodeChildElements.length > 1 || find(nodeChildNodes, isTextNode)) throw new DOMException(HIERARCHY_REQUEST_ERR, "More than one element or text in fragment");
668
+ if (nodeChildElements.length === 1 && !isElementInsertionPossible(parent, child)) throw new DOMException(HIERARCHY_REQUEST_ERR, "Element in fragment can not be inserted before doctype");
669
+ }
670
+ if (isElementNode(node)) {
671
+ if (!isElementInsertionPossible(parent, child)) throw new DOMException(HIERARCHY_REQUEST_ERR, "Only one element can be added and only after doctype");
672
+ }
673
+ if (isDocTypeNode(node)) {
674
+ if (find(parentChildNodes, isDocTypeNode)) throw new DOMException(HIERARCHY_REQUEST_ERR, "Only one doctype is allowed");
675
+ var parentElementChild = find(parentChildNodes, isElementNode);
676
+ if (child && parentChildNodes.indexOf(parentElementChild) < parentChildNodes.indexOf(child)) throw new DOMException(HIERARCHY_REQUEST_ERR, "Doctype can only be inserted before an element");
677
+ if (!child && parentElementChild) throw new DOMException(HIERARCHY_REQUEST_ERR, "Doctype can not be appended since element is present");
678
+ }
679
+ }
680
+ /**
681
+ * @private
682
+ * Step 6 of the checks before inserting and before replacing a child are different.
683
+ *
684
+ * @param {Document} parent the parent node to insert `node` into
685
+ * @param {Node} node the node to insert
686
+ * @param {Node | undefined} child the node that should become the `nextSibling` of `node`
687
+ * @returns {Node}
688
+ * @throws DOMException for several node combinations that would create a DOM that is not well-formed.
689
+ * @throws DOMException if `child` is provided but is not a child of `parent`.
690
+ * @see https://dom.spec.whatwg.org/#concept-node-ensure-pre-insertion-validity
691
+ * @see https://dom.spec.whatwg.org/#concept-node-replace
692
+ */
693
+ function assertPreReplacementValidityInDocument(parent, node, child) {
694
+ var parentChildNodes = parent.childNodes || [];
695
+ var nodeChildNodes = node.childNodes || [];
696
+ if (node.nodeType === Node.DOCUMENT_FRAGMENT_NODE) {
697
+ var nodeChildElements = nodeChildNodes.filter(isElementNode);
698
+ if (nodeChildElements.length > 1 || find(nodeChildNodes, isTextNode)) throw new DOMException(HIERARCHY_REQUEST_ERR, "More than one element or text in fragment");
699
+ if (nodeChildElements.length === 1 && !isElementReplacementPossible(parent, child)) throw new DOMException(HIERARCHY_REQUEST_ERR, "Element in fragment can not be inserted before doctype");
700
+ }
701
+ if (isElementNode(node)) {
702
+ if (!isElementReplacementPossible(parent, child)) throw new DOMException(HIERARCHY_REQUEST_ERR, "Only one element can be added and only after doctype");
703
+ }
704
+ if (isDocTypeNode(node)) {
705
+ function hasDoctypeChildThatIsNotChild(node) {
706
+ return isDocTypeNode(node) && node !== child;
707
+ }
708
+ if (find(parentChildNodes, hasDoctypeChildThatIsNotChild)) throw new DOMException(HIERARCHY_REQUEST_ERR, "Only one doctype is allowed");
709
+ var parentElementChild = find(parentChildNodes, isElementNode);
710
+ if (child && parentChildNodes.indexOf(parentElementChild) < parentChildNodes.indexOf(child)) throw new DOMException(HIERARCHY_REQUEST_ERR, "Doctype can only be inserted before an element");
711
+ }
712
+ }
713
+ /**
714
+ * @private
715
+ * @param {Node} parent the parent node to insert `node` into
716
+ * @param {Node} node the node to insert
717
+ * @param {Node=} child the node that should become the `nextSibling` of `node`
718
+ * @returns {Node}
719
+ * @throws DOMException for several node combinations that would create a DOM that is not well-formed.
720
+ * @throws DOMException if `child` is provided but is not a child of `parent`.
721
+ * @see https://dom.spec.whatwg.org/#concept-node-ensure-pre-insertion-validity
722
+ */
723
+ function _insertBefore(parent, node, child, _inDocumentAssertion) {
724
+ assertPreInsertionValidity1to5(parent, node, child);
725
+ if (parent.nodeType === Node.DOCUMENT_NODE) (_inDocumentAssertion || assertPreInsertionValidityInDocument)(parent, node, child);
726
+ var cp = node.parentNode;
727
+ if (cp) cp.removeChild(node);
728
+ if (node.nodeType === DOCUMENT_FRAGMENT_NODE) {
729
+ var newFirst = node.firstChild;
730
+ if (newFirst == null) return node;
731
+ var newLast = node.lastChild;
732
+ } else newFirst = newLast = node;
733
+ var pre = child ? child.previousSibling : parent.lastChild;
734
+ newFirst.previousSibling = pre;
735
+ newLast.nextSibling = child;
736
+ if (pre) pre.nextSibling = newFirst;
737
+ else parent.firstChild = newFirst;
738
+ if (child == null) parent.lastChild = newLast;
739
+ else child.previousSibling = newLast;
740
+ do {
741
+ newFirst.parentNode = parent;
742
+ var targetDoc = parent.ownerDocument || parent;
743
+ _updateOwnerDocument(newFirst, targetDoc);
744
+ } while (newFirst !== newLast && (newFirst = newFirst.nextSibling));
745
+ _onUpdateChild(parent.ownerDocument || parent, parent);
746
+ if (node.nodeType == DOCUMENT_FRAGMENT_NODE) node.firstChild = node.lastChild = null;
747
+ return node;
748
+ }
749
+ /**
750
+ * Recursively updates the ownerDocument property for a node and all its descendants
751
+ * @param {Node} node
752
+ * @param {Document} newOwnerDocument
753
+ * @private
754
+ */
755
+ function _updateOwnerDocument(node, newOwnerDocument) {
756
+ if (node.ownerDocument === newOwnerDocument) return;
757
+ node.ownerDocument = newOwnerDocument;
758
+ if (node.nodeType === ELEMENT_NODE && node.attributes) for (var i = 0; i < node.attributes.length; i++) {
759
+ var attr = node.attributes.item(i);
760
+ if (attr) attr.ownerDocument = newOwnerDocument;
761
+ }
762
+ var child = node.firstChild;
763
+ while (child) {
764
+ _updateOwnerDocument(child, newOwnerDocument);
765
+ child = child.nextSibling;
766
+ }
767
+ }
768
+ /**
769
+ * Appends `newChild` to `parentNode`.
770
+ * If `newChild` is already connected to a `parentNode` it is first removed from it.
771
+ *
772
+ * @see https://github.com/xmldom/xmldom/issues/135
773
+ * @see https://github.com/xmldom/xmldom/issues/145
774
+ * @param {Node} parentNode
775
+ * @param {Node} newChild
776
+ * @returns {Node}
777
+ * @private
778
+ */
779
+ function _appendSingleChild(parentNode, newChild) {
780
+ if (newChild.parentNode) newChild.parentNode.removeChild(newChild);
781
+ newChild.parentNode = parentNode;
782
+ newChild.previousSibling = parentNode.lastChild;
783
+ newChild.nextSibling = null;
784
+ if (newChild.previousSibling) newChild.previousSibling.nextSibling = newChild;
785
+ else parentNode.firstChild = newChild;
786
+ parentNode.lastChild = newChild;
787
+ _onUpdateChild(parentNode.ownerDocument, parentNode, newChild);
788
+ _updateOwnerDocument(newChild, parentNode.ownerDocument || parentNode);
789
+ return newChild;
790
+ }
791
+ Document.prototype = {
792
+ nodeName: "#document",
793
+ nodeType: DOCUMENT_NODE,
794
+ /**
795
+ * The DocumentType node of the document.
796
+ *
797
+ * @readonly
798
+ * @type DocumentType
799
+ */
800
+ doctype: null,
801
+ documentElement: null,
802
+ _inc: 1,
803
+ insertBefore: function(newChild, refChild) {
804
+ if (newChild.nodeType == DOCUMENT_FRAGMENT_NODE) {
805
+ var child = newChild.firstChild;
806
+ while (child) {
807
+ var next = child.nextSibling;
808
+ this.insertBefore(child, refChild);
809
+ child = next;
810
+ }
811
+ return newChild;
812
+ }
813
+ _insertBefore(this, newChild, refChild);
814
+ _updateOwnerDocument(newChild, this);
815
+ if (this.documentElement === null && newChild.nodeType === ELEMENT_NODE) this.documentElement = newChild;
816
+ return newChild;
817
+ },
818
+ removeChild: function(oldChild) {
819
+ if (this.documentElement == oldChild) this.documentElement = null;
820
+ return _removeChild(this, oldChild);
821
+ },
822
+ replaceChild: function(newChild, oldChild) {
823
+ _insertBefore(this, newChild, oldChild, assertPreReplacementValidityInDocument);
824
+ _updateOwnerDocument(newChild, this);
825
+ if (oldChild) this.removeChild(oldChild);
826
+ if (isElementNode(newChild)) this.documentElement = newChild;
827
+ },
828
+ importNode: function(importedNode, deep) {
829
+ return importNode(this, importedNode, deep);
830
+ },
831
+ getElementById: function(id) {
832
+ var rtv = null;
833
+ _visitNode(this.documentElement, function(node) {
834
+ if (node.nodeType == ELEMENT_NODE) {
835
+ if (node.getAttribute("id") == id) {
836
+ rtv = node;
837
+ return true;
838
+ }
839
+ }
840
+ });
841
+ return rtv;
842
+ },
843
+ /**
844
+ * The `getElementsByClassName` method of `Document` interface returns an array-like object
845
+ * of all child elements which have **all** of the given class name(s).
846
+ *
847
+ * Returns an empty list if `classeNames` is an empty string or only contains HTML white space characters.
848
+ *
849
+ *
850
+ * Warning: This is a live LiveNodeList.
851
+ * Changes in the DOM will reflect in the array as the changes occur.
852
+ * If an element selected by this array no longer qualifies for the selector,
853
+ * it will automatically be removed. Be aware of this for iteration purposes.
854
+ *
855
+ * @param {string} classNames is a string representing the class name(s) to match; multiple class names are separated by (ASCII-)whitespace
856
+ *
857
+ * @see https://developer.mozilla.org/en-US/docs/Web/API/Document/getElementsByClassName
858
+ * @see https://dom.spec.whatwg.org/#concept-getelementsbyclassname
859
+ */
860
+ getElementsByClassName: function(classNames) {
861
+ var classNamesSet = toOrderedSet(classNames);
862
+ return new LiveNodeList(this, function(base) {
863
+ var ls = [];
864
+ if (classNamesSet.length > 0) _visitNode(base.documentElement, function(node) {
865
+ if (node !== base && node.nodeType === ELEMENT_NODE) {
866
+ var nodeClassNames = node.getAttribute("class");
867
+ if (nodeClassNames) {
868
+ var matches = classNames === nodeClassNames;
869
+ if (!matches) {
870
+ var nodeClassNamesSet = toOrderedSet(nodeClassNames);
871
+ matches = classNamesSet.every(arrayIncludes(nodeClassNamesSet));
872
+ }
873
+ if (matches) ls.push(node);
874
+ }
875
+ }
876
+ });
877
+ return ls;
878
+ });
879
+ },
880
+ createElement: function(tagName) {
881
+ var node = new Element();
882
+ node.ownerDocument = this;
883
+ node.nodeName = tagName;
884
+ node.tagName = tagName;
885
+ node.localName = tagName;
886
+ node.childNodes = new NodeList();
887
+ var attrs = node.attributes = new NamedNodeMap();
888
+ attrs._ownerElement = node;
889
+ return node;
890
+ },
891
+ createDocumentFragment: function() {
892
+ var node = new DocumentFragment();
893
+ node.ownerDocument = this;
894
+ node.childNodes = new NodeList();
895
+ return node;
896
+ },
897
+ createTextNode: function(data) {
898
+ var node = new Text();
899
+ node.ownerDocument = this;
900
+ node.appendData(data);
901
+ return node;
902
+ },
903
+ createComment: function(data) {
904
+ var node = new Comment();
905
+ node.ownerDocument = this;
906
+ node.appendData(data);
907
+ return node;
908
+ },
909
+ /**
910
+ * Returns a new CDATASection node whose data is `data`.
911
+ *
912
+ * __This implementation differs from the specification:__
913
+ * - calling this method on an HTML document does not throw `NotSupportedError`.
914
+ *
915
+ * @param {string} data
916
+ * @returns {CDATASection}
917
+ * @throws DOMException with code `INVALID_CHARACTER_ERR` if `data` contains `"]]>"`.
918
+ * @see https://developer.mozilla.org/en-US/docs/Web/API/Document/createCDATASection
919
+ * @see https://dom.spec.whatwg.org/#dom-document-createcdatasection
920
+ */
921
+ createCDATASection: function(data) {
922
+ if (data.indexOf("]]>") !== -1) throw new DOMException(INVALID_CHARACTER_ERR, "data contains \"]]>\"");
923
+ var node = new CDATASection();
924
+ node.ownerDocument = this;
925
+ node.appendData(data);
926
+ return node;
927
+ },
928
+ createProcessingInstruction: function(target, data) {
929
+ var node = new ProcessingInstruction();
930
+ node.ownerDocument = this;
931
+ node.tagName = node.nodeName = node.target = target;
932
+ node.nodeValue = node.data = data;
933
+ return node;
934
+ },
935
+ createAttribute: function(name) {
936
+ var node = new Attr();
937
+ node.ownerDocument = this;
938
+ node.name = name;
939
+ node.nodeName = name;
940
+ node.localName = name;
941
+ node.specified = true;
942
+ return node;
943
+ },
944
+ createEntityReference: function(name) {
945
+ var node = new EntityReference();
946
+ node.ownerDocument = this;
947
+ node.nodeName = name;
948
+ return node;
949
+ },
950
+ createElementNS: function(namespaceURI, qualifiedName) {
951
+ var node = new Element();
952
+ var pl = qualifiedName.split(":");
953
+ var attrs = node.attributes = new NamedNodeMap();
954
+ node.childNodes = new NodeList();
955
+ node.ownerDocument = this;
956
+ node.nodeName = qualifiedName;
957
+ node.tagName = qualifiedName;
958
+ node.namespaceURI = namespaceURI;
959
+ if (pl.length == 2) {
960
+ node.prefix = pl[0];
961
+ node.localName = pl[1];
962
+ } else node.localName = qualifiedName;
963
+ attrs._ownerElement = node;
964
+ return node;
965
+ },
966
+ createAttributeNS: function(namespaceURI, qualifiedName) {
967
+ var node = new Attr();
968
+ var pl = qualifiedName.split(":");
969
+ node.ownerDocument = this;
970
+ node.nodeName = qualifiedName;
971
+ node.name = qualifiedName;
972
+ node.namespaceURI = namespaceURI;
973
+ node.specified = true;
974
+ if (pl.length == 2) {
975
+ node.prefix = pl[0];
976
+ node.localName = pl[1];
977
+ } else node.localName = qualifiedName;
978
+ return node;
979
+ }
980
+ };
981
+ _extends(Document, Node);
982
+ function Element() {
983
+ this._nsMap = {};
984
+ }
985
+ Element.prototype = {
986
+ nodeType: ELEMENT_NODE,
987
+ hasAttribute: function(name) {
988
+ return this.getAttributeNode(name) != null;
989
+ },
990
+ getAttribute: function(name) {
991
+ var attr = this.getAttributeNode(name);
992
+ return attr && attr.value || "";
993
+ },
994
+ getAttributeNode: function(name) {
995
+ return this.attributes.getNamedItem(name);
996
+ },
997
+ setAttribute: function(name, value) {
998
+ var attr = this.ownerDocument.createAttribute(name);
999
+ attr.value = attr.nodeValue = "" + value;
1000
+ this.setAttributeNode(attr);
1001
+ },
1002
+ removeAttribute: function(name) {
1003
+ var attr = this.getAttributeNode(name);
1004
+ attr && this.removeAttributeNode(attr);
1005
+ },
1006
+ appendChild: function(newChild) {
1007
+ if (newChild.nodeType === DOCUMENT_FRAGMENT_NODE) return this.insertBefore(newChild, null);
1008
+ else return _appendSingleChild(this, newChild);
1009
+ },
1010
+ setAttributeNode: function(newAttr) {
1011
+ return this.attributes.setNamedItem(newAttr);
1012
+ },
1013
+ setAttributeNodeNS: function(newAttr) {
1014
+ return this.attributes.setNamedItemNS(newAttr);
1015
+ },
1016
+ removeAttributeNode: function(oldAttr) {
1017
+ return this.attributes.removeNamedItem(oldAttr.nodeName);
1018
+ },
1019
+ removeAttributeNS: function(namespaceURI, localName) {
1020
+ var old = this.getAttributeNodeNS(namespaceURI, localName);
1021
+ old && this.removeAttributeNode(old);
1022
+ },
1023
+ hasAttributeNS: function(namespaceURI, localName) {
1024
+ return this.getAttributeNodeNS(namespaceURI, localName) != null;
1025
+ },
1026
+ getAttributeNS: function(namespaceURI, localName) {
1027
+ var attr = this.getAttributeNodeNS(namespaceURI, localName);
1028
+ return attr && attr.value || "";
1029
+ },
1030
+ setAttributeNS: function(namespaceURI, qualifiedName, value) {
1031
+ var attr = this.ownerDocument.createAttributeNS(namespaceURI, qualifiedName);
1032
+ attr.value = attr.nodeValue = "" + value;
1033
+ this.setAttributeNode(attr);
1034
+ },
1035
+ getAttributeNodeNS: function(namespaceURI, localName) {
1036
+ return this.attributes.getNamedItemNS(namespaceURI, localName);
1037
+ },
1038
+ getElementsByTagName: function(tagName) {
1039
+ return new LiveNodeList(this, function(base) {
1040
+ var ls = [];
1041
+ _visitNode(base, function(node) {
1042
+ if (node !== base && node.nodeType == ELEMENT_NODE && (tagName === "*" || node.tagName == tagName)) ls.push(node);
1043
+ });
1044
+ return ls;
1045
+ });
1046
+ },
1047
+ getElementsByTagNameNS: function(namespaceURI, localName) {
1048
+ return new LiveNodeList(this, function(base) {
1049
+ var ls = [];
1050
+ _visitNode(base, function(node) {
1051
+ if (node !== base && node.nodeType === ELEMENT_NODE && (namespaceURI === "*" || node.namespaceURI === namespaceURI) && (localName === "*" || node.localName == localName)) ls.push(node);
1052
+ });
1053
+ return ls;
1054
+ });
1055
+ }
1056
+ };
1057
+ Document.prototype.getElementsByTagName = Element.prototype.getElementsByTagName;
1058
+ Document.prototype.getElementsByTagNameNS = Element.prototype.getElementsByTagNameNS;
1059
+ _extends(Element, Node);
1060
+ function Attr() {}
1061
+ Attr.prototype.nodeType = ATTRIBUTE_NODE;
1062
+ _extends(Attr, Node);
1063
+ function CharacterData() {}
1064
+ CharacterData.prototype = {
1065
+ data: "",
1066
+ substringData: function(offset, count) {
1067
+ return this.data.substring(offset, offset + count);
1068
+ },
1069
+ appendData: function(text) {
1070
+ text = this.data + text;
1071
+ this.nodeValue = this.data = text;
1072
+ this.length = text.length;
1073
+ },
1074
+ insertData: function(offset, text) {
1075
+ this.replaceData(offset, 0, text);
1076
+ },
1077
+ appendChild: function(newChild) {
1078
+ throw new Error(ExceptionMessage[HIERARCHY_REQUEST_ERR]);
1079
+ },
1080
+ deleteData: function(offset, count) {
1081
+ this.replaceData(offset, count, "");
1082
+ },
1083
+ replaceData: function(offset, count, text) {
1084
+ var start = this.data.substring(0, offset);
1085
+ var end = this.data.substring(offset + count);
1086
+ text = start + text + end;
1087
+ this.nodeValue = this.data = text;
1088
+ this.length = text.length;
1089
+ }
1090
+ };
1091
+ _extends(CharacterData, Node);
1092
+ function Text() {}
1093
+ Text.prototype = {
1094
+ nodeName: "#text",
1095
+ nodeType: TEXT_NODE,
1096
+ splitText: function(offset) {
1097
+ var text = this.data;
1098
+ var newText = text.substring(offset);
1099
+ text = text.substring(0, offset);
1100
+ this.data = this.nodeValue = text;
1101
+ this.length = text.length;
1102
+ var newNode = this.ownerDocument.createTextNode(newText);
1103
+ if (this.parentNode) this.parentNode.insertBefore(newNode, this.nextSibling);
1104
+ return newNode;
1105
+ }
1106
+ };
1107
+ _extends(Text, CharacterData);
1108
+ function Comment() {}
1109
+ Comment.prototype = {
1110
+ nodeName: "#comment",
1111
+ nodeType: COMMENT_NODE
1112
+ };
1113
+ _extends(Comment, CharacterData);
1114
+ function CDATASection() {}
1115
+ CDATASection.prototype = {
1116
+ nodeName: "#cdata-section",
1117
+ nodeType: CDATA_SECTION_NODE
1118
+ };
1119
+ _extends(CDATASection, CharacterData);
1120
+ function DocumentType() {}
1121
+ DocumentType.prototype.nodeType = DOCUMENT_TYPE_NODE;
1122
+ _extends(DocumentType, Node);
1123
+ function Notation() {}
1124
+ Notation.prototype.nodeType = NOTATION_NODE;
1125
+ _extends(Notation, Node);
1126
+ function Entity() {}
1127
+ Entity.prototype.nodeType = ENTITY_NODE;
1128
+ _extends(Entity, Node);
1129
+ function EntityReference() {}
1130
+ EntityReference.prototype.nodeType = ENTITY_REFERENCE_NODE;
1131
+ _extends(EntityReference, Node);
1132
+ function DocumentFragment() {}
1133
+ DocumentFragment.prototype.nodeName = "#document-fragment";
1134
+ DocumentFragment.prototype.nodeType = DOCUMENT_FRAGMENT_NODE;
1135
+ _extends(DocumentFragment, Node);
1136
+ function ProcessingInstruction() {}
1137
+ ProcessingInstruction.prototype.nodeType = PROCESSING_INSTRUCTION_NODE;
1138
+ _extends(ProcessingInstruction, Node);
1139
+ function XMLSerializer() {}
1140
+ /**
1141
+ * Returns the result of serializing `node` to XML.
1142
+ *
1143
+ * __This implementation differs from the specification:__
1144
+ * - CDATASection nodes whose data contains `]]>` are serialized by splitting the section
1145
+ * at each `]]>` occurrence (following W3C DOM Level 3 Core `split-cdata-sections`
1146
+ * default behaviour). A configurable option is not yet implemented.
1147
+ *
1148
+ * @param {Node} node
1149
+ * @param {boolean} [isHtml]
1150
+ * @param {function} [nodeFilter]
1151
+ * @returns {string}
1152
+ * @see https://html.spec.whatwg.org/#dom-xmlserializer-serializetostring
1153
+ */
1154
+ XMLSerializer.prototype.serializeToString = function(node, isHtml, nodeFilter) {
1155
+ return nodeSerializeToString.call(node, isHtml, nodeFilter);
1156
+ };
1157
+ Node.prototype.toString = nodeSerializeToString;
1158
+ function nodeSerializeToString(isHtml, nodeFilter) {
1159
+ var buf = [];
1160
+ var refNode = this.nodeType == 9 && this.documentElement || this;
1161
+ var prefix = refNode.prefix;
1162
+ var uri = refNode.namespaceURI;
1163
+ if (uri && prefix == null) {
1164
+ var prefix = refNode.lookupPrefix(uri);
1165
+ if (prefix == null) var visibleNamespaces = [{
1166
+ namespace: uri,
1167
+ prefix: null
1168
+ }];
1169
+ }
1170
+ serializeToString(this, buf, isHtml, nodeFilter, visibleNamespaces);
1171
+ return buf.join("");
1172
+ }
1173
+ function needNamespaceDefine(node, isHTML, visibleNamespaces) {
1174
+ var prefix = node.prefix || "";
1175
+ var uri = node.namespaceURI;
1176
+ if (!uri) return false;
1177
+ if (prefix === "xml" && uri === NAMESPACE.XML || uri === NAMESPACE.XMLNS) return false;
1178
+ var i = visibleNamespaces.length;
1179
+ while (i--) {
1180
+ var ns = visibleNamespaces[i];
1181
+ if (ns.prefix === prefix) return ns.namespace !== uri;
1182
+ }
1183
+ return true;
1184
+ }
1185
+ /**
1186
+ * Well-formed constraint: No < in Attribute Values
1187
+ * > The replacement text of any entity referred to directly or indirectly
1188
+ * > in an attribute value must not contain a <.
1189
+ * @see https://www.w3.org/TR/xml11/#CleanAttrVals
1190
+ * @see https://www.w3.org/TR/xml11/#NT-AttValue
1191
+ *
1192
+ * Literal whitespace other than space that appear in attribute values
1193
+ * are serialized as their entity references, so they will be preserved.
1194
+ * (In contrast to whitespace literals in the input which are normalized to spaces)
1195
+ * @see https://www.w3.org/TR/xml11/#AVNormalize
1196
+ * @see https://w3c.github.io/DOM-Parsing/#serializing-an-element-s-attributes
1197
+ */
1198
+ function addSerializedAttribute(buf, qualifiedName, value) {
1199
+ buf.push(" ", qualifiedName, "=\"", value.replace(/[<>&"\t\n\r]/g, _xmlEncoder), "\"");
1200
+ }
1201
+ function serializeToString(node, buf, isHTML, nodeFilter, visibleNamespaces) {
1202
+ if (!visibleNamespaces) visibleNamespaces = [];
1203
+ if (nodeFilter) {
1204
+ node = nodeFilter(node);
1205
+ if (node) {
1206
+ if (typeof node == "string") {
1207
+ buf.push(node);
1208
+ return;
1209
+ }
1210
+ } else return;
1211
+ }
1212
+ switch (node.nodeType) {
1213
+ case ELEMENT_NODE:
1214
+ var attrs = node.attributes;
1215
+ var len = attrs.length;
1216
+ var child = node.firstChild;
1217
+ var nodeName = node.tagName;
1218
+ isHTML = NAMESPACE.isHTML(node.namespaceURI) || isHTML;
1219
+ var prefixedNodeName = nodeName;
1220
+ if (!isHTML && !node.prefix && node.namespaceURI) {
1221
+ var defaultNS;
1222
+ for (var ai = 0; ai < attrs.length; ai++) if (attrs.item(ai).name === "xmlns") {
1223
+ defaultNS = attrs.item(ai).value;
1224
+ break;
1225
+ }
1226
+ if (!defaultNS) for (var nsi = visibleNamespaces.length - 1; nsi >= 0; nsi--) {
1227
+ var namespace = visibleNamespaces[nsi];
1228
+ if (namespace.prefix === "" && namespace.namespace === node.namespaceURI) {
1229
+ defaultNS = namespace.namespace;
1230
+ break;
1231
+ }
1232
+ }
1233
+ if (defaultNS !== node.namespaceURI) for (var nsi = visibleNamespaces.length - 1; nsi >= 0; nsi--) {
1234
+ var namespace = visibleNamespaces[nsi];
1235
+ if (namespace.namespace === node.namespaceURI) {
1236
+ if (namespace.prefix) prefixedNodeName = namespace.prefix + ":" + nodeName;
1237
+ break;
1238
+ }
1239
+ }
1240
+ }
1241
+ buf.push("<", prefixedNodeName);
1242
+ for (var i = 0; i < len; i++) {
1243
+ var attr = attrs.item(i);
1244
+ if (attr.prefix == "xmlns") visibleNamespaces.push({
1245
+ prefix: attr.localName,
1246
+ namespace: attr.value
1247
+ });
1248
+ else if (attr.nodeName == "xmlns") visibleNamespaces.push({
1249
+ prefix: "",
1250
+ namespace: attr.value
1251
+ });
1252
+ }
1253
+ for (var i = 0; i < len; i++) {
1254
+ var attr = attrs.item(i);
1255
+ if (needNamespaceDefine(attr, isHTML, visibleNamespaces)) {
1256
+ var prefix = attr.prefix || "";
1257
+ var uri = attr.namespaceURI;
1258
+ addSerializedAttribute(buf, prefix ? "xmlns:" + prefix : "xmlns", uri);
1259
+ visibleNamespaces.push({
1260
+ prefix,
1261
+ namespace: uri
1262
+ });
1263
+ }
1264
+ serializeToString(attr, buf, isHTML, nodeFilter, visibleNamespaces);
1265
+ }
1266
+ if (nodeName === prefixedNodeName && needNamespaceDefine(node, isHTML, visibleNamespaces)) {
1267
+ var prefix = node.prefix || "";
1268
+ var uri = node.namespaceURI;
1269
+ addSerializedAttribute(buf, prefix ? "xmlns:" + prefix : "xmlns", uri);
1270
+ visibleNamespaces.push({
1271
+ prefix,
1272
+ namespace: uri
1273
+ });
1274
+ }
1275
+ if (child || isHTML && !/^(?:meta|link|img|br|hr|input)$/i.test(nodeName)) {
1276
+ buf.push(">");
1277
+ if (isHTML && /^script$/i.test(nodeName)) while (child) {
1278
+ if (child.data) buf.push(child.data);
1279
+ else serializeToString(child, buf, isHTML, nodeFilter, visibleNamespaces.slice());
1280
+ child = child.nextSibling;
1281
+ }
1282
+ else while (child) {
1283
+ serializeToString(child, buf, isHTML, nodeFilter, visibleNamespaces.slice());
1284
+ child = child.nextSibling;
1285
+ }
1286
+ buf.push("</", prefixedNodeName, ">");
1287
+ } else buf.push("/>");
1288
+ return;
1289
+ case DOCUMENT_NODE:
1290
+ case DOCUMENT_FRAGMENT_NODE:
1291
+ var child = node.firstChild;
1292
+ while (child) {
1293
+ serializeToString(child, buf, isHTML, nodeFilter, visibleNamespaces.slice());
1294
+ child = child.nextSibling;
1295
+ }
1296
+ return;
1297
+ case ATTRIBUTE_NODE: return addSerializedAttribute(buf, node.name, node.value);
1298
+ case TEXT_NODE:
1299
+ /**
1300
+ * The ampersand character (&) and the left angle bracket (<) must not appear in their literal form,
1301
+ * except when used as markup delimiters, or within a comment, a processing instruction, or a CDATA section.
1302
+ * If they are needed elsewhere, they must be escaped using either numeric character references or the strings
1303
+ * `&amp;` and `&lt;` respectively.
1304
+ * The right angle bracket (>) may be represented using the string " &gt; ", and must, for compatibility,
1305
+ * be escaped using either `&gt;` or a character reference when it appears in the string `]]>` in content,
1306
+ * when that string is not marking the end of a CDATA section.
1307
+ *
1308
+ * In the content of elements, character data is any string of characters
1309
+ * which does not contain the start-delimiter of any markup
1310
+ * and does not include the CDATA-section-close delimiter, `]]>`.
1311
+ *
1312
+ * @see https://www.w3.org/TR/xml/#NT-CharData
1313
+ * @see https://w3c.github.io/DOM-Parsing/#xml-serializing-a-text-node
1314
+ */
1315
+ return buf.push(node.data.replace(/[<&>]/g, _xmlEncoder));
1316
+ case CDATA_SECTION_NODE: return buf.push("<![CDATA[", node.data.replace(/]]>/g, "]]]]><![CDATA[>"), "]]>");
1317
+ case COMMENT_NODE: return buf.push("<!--", node.data, "-->");
1318
+ case DOCUMENT_TYPE_NODE:
1319
+ var pubid = node.publicId;
1320
+ var sysid = node.systemId;
1321
+ buf.push("<!DOCTYPE ", node.name);
1322
+ if (pubid) {
1323
+ buf.push(" PUBLIC ", pubid);
1324
+ if (sysid && sysid != ".") buf.push(" ", sysid);
1325
+ buf.push(">");
1326
+ } else if (sysid && sysid != ".") buf.push(" SYSTEM ", sysid, ">");
1327
+ else {
1328
+ var sub = node.internalSubset;
1329
+ if (sub) buf.push(" [", sub, "]");
1330
+ buf.push(">");
1331
+ }
1332
+ return;
1333
+ case PROCESSING_INSTRUCTION_NODE: return buf.push("<?", node.target, " ", node.data, "?>");
1334
+ case ENTITY_REFERENCE_NODE: return buf.push("&", node.nodeName, ";");
1335
+ default: buf.push("??", node.nodeName);
1336
+ }
1337
+ }
1338
+ function importNode(doc, node, deep) {
1339
+ var node2;
1340
+ switch (node.nodeType) {
1341
+ case ELEMENT_NODE:
1342
+ node2 = node.cloneNode(false);
1343
+ node2.ownerDocument = doc;
1344
+ case DOCUMENT_FRAGMENT_NODE: break;
1345
+ case ATTRIBUTE_NODE: deep = true;
1346
+ }
1347
+ if (!node2) node2 = node.cloneNode(false);
1348
+ node2.ownerDocument = doc;
1349
+ node2.parentNode = null;
1350
+ if (deep) {
1351
+ var child = node.firstChild;
1352
+ while (child) {
1353
+ node2.appendChild(importNode(doc, child, deep));
1354
+ child = child.nextSibling;
1355
+ }
1356
+ }
1357
+ return node2;
1358
+ }
1359
+ function cloneNode(doc, node, deep) {
1360
+ var node2 = new node.constructor();
1361
+ for (var n in node) if (Object.prototype.hasOwnProperty.call(node, n)) {
1362
+ var v = node[n];
1363
+ if (typeof v != "object") {
1364
+ if (v != node2[n]) node2[n] = v;
1365
+ }
1366
+ }
1367
+ if (node.childNodes) node2.childNodes = new NodeList();
1368
+ node2.ownerDocument = doc;
1369
+ switch (node2.nodeType) {
1370
+ case ELEMENT_NODE:
1371
+ var attrs = node.attributes;
1372
+ var attrs2 = node2.attributes = new NamedNodeMap();
1373
+ var len = attrs.length;
1374
+ attrs2._ownerElement = node2;
1375
+ for (var i = 0; i < len; i++) node2.setAttributeNode(cloneNode(doc, attrs.item(i), true));
1376
+ break;
1377
+ case ATTRIBUTE_NODE: deep = true;
1378
+ }
1379
+ if (deep) {
1380
+ var child = node.firstChild;
1381
+ while (child) {
1382
+ node2.appendChild(cloneNode(doc, child, deep));
1383
+ child = child.nextSibling;
1384
+ }
1385
+ }
1386
+ return node2;
1387
+ }
1388
+ function __set__(object, key, value) {
1389
+ object[key] = value;
1390
+ }
1391
+ try {
1392
+ if (Object.defineProperty) {
1393
+ Object.defineProperty(LiveNodeList.prototype, "length", { get: function() {
1394
+ _updateLiveList(this);
1395
+ return this.$$length;
1396
+ } });
1397
+ Object.defineProperty(Node.prototype, "textContent", {
1398
+ get: function() {
1399
+ return getTextContent(this);
1400
+ },
1401
+ set: function(data) {
1402
+ switch (this.nodeType) {
1403
+ case ELEMENT_NODE:
1404
+ case DOCUMENT_FRAGMENT_NODE:
1405
+ while (this.firstChild) this.removeChild(this.firstChild);
1406
+ if (data || String(data)) this.appendChild(this.ownerDocument.createTextNode(data));
1407
+ break;
1408
+ default:
1409
+ this.data = data;
1410
+ this.value = data;
1411
+ this.nodeValue = data;
1412
+ }
1413
+ }
1414
+ });
1415
+ function getTextContent(node) {
1416
+ switch (node.nodeType) {
1417
+ case ELEMENT_NODE:
1418
+ case DOCUMENT_FRAGMENT_NODE:
1419
+ var buf = [];
1420
+ node = node.firstChild;
1421
+ while (node) {
1422
+ if (node.nodeType !== 7 && node.nodeType !== 8) buf.push(getTextContent(node));
1423
+ node = node.nextSibling;
1424
+ }
1425
+ return buf.join("");
1426
+ default: return node.nodeValue;
1427
+ }
1428
+ }
1429
+ __set__ = function(object, key, value) {
1430
+ object["$$" + key] = value;
1431
+ };
1432
+ }
1433
+ } catch (e) {}
1434
+ exports.DocumentType = DocumentType;
1435
+ exports.DOMException = DOMException;
1436
+ exports.DOMImplementation = DOMImplementation;
1437
+ exports.Element = Element;
1438
+ exports.Node = Node;
1439
+ exports.NodeList = NodeList;
1440
+ exports.XMLSerializer = XMLSerializer;
1441
+ }));
1442
+ export default require_dom();
1443
+ export { require_dom };