@kg-ui/kg-ui-plus 0.1.31 → 0.1.33

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 (158) hide show
  1. package/README.md +3 -3
  2. package/dist/es/KgCopilot/CopiCanvas/FilePreview.vue.mjs +7 -0
  3. package/dist/es/KgCopilot/CopiCanvas/FilePreview.vue2.mjs +81 -0
  4. package/dist/es/KgCopilot/CopiCanvas/FilePreview.vue3.mjs +4 -0
  5. package/dist/es/KgCopilot/CopiCanvas/FileSkeletion.vue.mjs +96 -0
  6. package/dist/es/KgCopilot/CopiCanvas/FileSkeletion.vue2.mjs +4 -0
  7. package/dist/es/KgCopilot/CopiCanvas/InitWrap.vue.mjs +7 -0
  8. package/dist/es/KgCopilot/CopiCanvas/InitWrap.vue2.mjs +41 -0
  9. package/dist/es/KgCopilot/CopiCanvas/InitWrap.vue3.mjs +4 -0
  10. package/dist/es/KgCopilot/CopiCanvas/index.vue.mjs +7 -0
  11. package/dist/es/KgCopilot/CopiCanvas/index.vue2.mjs +52 -0
  12. package/dist/es/KgCopilot/CopiCanvas/index.vue3.mjs +4 -0
  13. package/dist/es/KgCopilot/CopiContent/AnswerHead.vue.mjs +1 -1
  14. package/dist/es/KgCopilot/CopiContent/AnswerHead.vue2.mjs +1 -1
  15. package/dist/es/KgCopilot/CopiContent/AnswerHead.vue3.mjs +2 -2
  16. package/dist/es/KgCopilot/CopiContent/UserHead.vue.mjs +2 -2
  17. package/dist/es/KgCopilot/CopiContent/UserHead.vue2.mjs +2 -2
  18. package/dist/es/KgCopilot/CopiFooter/SearchInput/InputFootTool.vue.mjs +7 -0
  19. package/dist/es/KgCopilot/CopiFooter/SearchInput/InputFootTool.vue2.mjs +61 -0
  20. package/dist/es/KgCopilot/CopiFooter/SearchInput/InputFootTool.vue3.mjs +4 -0
  21. package/dist/es/KgCopilot/CopiFooter/SearchInput/NewTheme.vue.mjs +1 -1
  22. package/dist/es/KgCopilot/CopiFooter/SearchInput/NewTheme.vue2.mjs +1 -1
  23. package/dist/es/KgCopilot/CopiFooter/SearchInput/NewTheme.vue3.mjs +2 -2
  24. package/dist/es/KgCopilot/CopiFooter/SearchInput/SelectPluginByKey.vue.mjs +1 -1
  25. package/dist/es/KgCopilot/CopiFooter/SearchInput/SelectPluginByKey.vue2.mjs +1 -1
  26. package/dist/es/KgCopilot/CopiFooter/SearchInput/SelectPluginByKey.vue3.mjs +2 -2
  27. package/dist/es/KgCopilot/CopiFooter/SearchInput/index.vue.mjs +1 -1
  28. package/dist/es/KgCopilot/CopiFooter/SearchInput/index.vue2.mjs +10 -20
  29. package/dist/es/KgCopilot/CopiFooter/SearchInput/index.vue3.mjs +2 -2
  30. package/dist/es/KgCopilot/CopiFooter/index.vue.mjs +1 -1
  31. package/dist/es/KgCopilot/CopiFooter/index.vue3.mjs +2 -2
  32. package/dist/es/KgCopilot/dialogue/SuggestMessage.vue.mjs +1 -1
  33. package/dist/es/KgCopilot/dialogue/SuggestMessage.vue2.mjs +1 -1
  34. package/dist/es/KgCopilot/dialogue/SuggestMessage.vue3.mjs +2 -2
  35. package/dist/es/KgCopilot/dialogue/index.vue.mjs +1 -1
  36. package/dist/es/KgCopilot/dialogue/index.vue2.mjs +1 -1
  37. package/dist/es/KgCopilot/dialogue/index.vue3.mjs +2 -2
  38. package/dist/es/KgCopilot/dialogue/messageParse/edit.vue.mjs +1 -1
  39. package/dist/es/KgCopilot/dialogue/messageParse/edit.vue3.mjs +2 -2
  40. package/dist/es/KgCopilot/dialogue/messageParse/fileBox.vue.mjs +19 -5
  41. package/dist/es/KgCopilot/dialogue/messageParse/fileBox.vue2.mjs +2 -2
  42. package/dist/es/KgCopilot/dialogue/messageParse/index.vue.mjs +1 -1
  43. package/dist/es/KgCopilot/dialogue/messageParse/index.vue3.mjs +2 -2
  44. package/dist/es/KgCopilot/dialogue/messageParse/readMd.vue.mjs +1 -1
  45. package/dist/es/KgCopilot/dialogue/messageParse/readMd.vue2.mjs +2 -2
  46. package/dist/es/KgCopilot/dialogue/messageParse/readMd.vue3.mjs +2 -2
  47. package/dist/es/KgCopilot/historyRecord/index.vue.mjs +1 -1
  48. package/dist/es/KgCopilot/historyRecord/index.vue2.mjs +6 -6
  49. package/dist/es/KgCopilot/historyRecord/index.vue3.mjs +2 -2
  50. package/dist/es/KgCopilot/index.vue.mjs +1 -1
  51. package/dist/es/KgCopilot/index.vue2.mjs +61 -38
  52. package/dist/es/KgCopilot/index.vue3.mjs +2 -2
  53. package/dist/es/_virtual/_commonjs-dynamic-modules.mjs +6 -0
  54. package/dist/es/_virtual/jszip.min.mjs +13 -0
  55. package/dist/es/api/copilot.mjs +8 -0
  56. package/dist/es/assets/empty.png.mjs +4 -0
  57. package/dist/es/directives/heighlight/index.mjs +27 -27
  58. package/dist/es/home/LFilter/FilterArea.vue.mjs +1 -1
  59. package/dist/es/home/LFilter/FilterArea.vue2.mjs +1 -1
  60. package/dist/es/home/LFilter/FilterArea.vue3.mjs +2 -2
  61. package/dist/es/home/LFilter/FilterHead.vue.mjs +1 -1
  62. package/dist/es/home/LFilter/FilterItem.vue.mjs +1 -1
  63. package/dist/es/home/LFilter/FilterItem.vue2.mjs +1 -1
  64. package/dist/es/home/LFilter/FilterItem.vue3.mjs +2 -2
  65. package/dist/es/home/LFilter/FilterItemIcon.vue.mjs +1 -1
  66. package/dist/es/home/LFilter/FilterItemIcon.vue2.mjs +1 -1
  67. package/dist/es/home/LFilter/FilterItemIcon.vue3.mjs +2 -2
  68. package/dist/es/home/LProject/index.vue.mjs +1 -1
  69. package/dist/es/home/LProject/index.vue3.mjs +2 -2
  70. package/dist/es/home/index.vue.mjs +1 -1
  71. package/dist/es/home/index.vue3.mjs +2 -2
  72. package/dist/es/node_modules/.pnpm/@iconify-icons_ep@1.2.12/node_modules/@iconify-icons/ep/folder-opened.mjs +8 -0
  73. package/dist/es/node_modules/.pnpm/@iconify-icons_ep@1.2.12/node_modules/@iconify-icons/ep/notebook.mjs +8 -0
  74. package/dist/es/node_modules/.pnpm/@iconify-icons_ep@1.2.12/node_modules/@iconify-icons/ep/reading.mjs +8 -0
  75. package/dist/es/node_modules/.pnpm/@vueuse_core@9.13.0_vue@3.2.45/node_modules/@vueuse/core/index.mjs +8 -1
  76. package/dist/es/node_modules/.pnpm/@vueuse_shared@9.13.0_vue@3.2.45/node_modules/@vueuse/shared/index.mjs +115 -2
  77. package/dist/es/node_modules/.pnpm/call-bind-apply-helpers@1.0.1/node_modules/call-bind-apply-helpers/actualApply.mjs +12 -0
  78. package/dist/es/node_modules/.pnpm/call-bind-apply-helpers@1.0.1/node_modules/call-bind-apply-helpers/functionApply.mjs +12 -0
  79. package/dist/es/node_modules/.pnpm/call-bind-apply-helpers@1.0.1/node_modules/call-bind-apply-helpers/functionCall.mjs +4 -0
  80. package/dist/es/node_modules/.pnpm/call-bind-apply-helpers@1.0.1/node_modules/call-bind-apply-helpers/index.mjs +17 -0
  81. package/dist/es/node_modules/.pnpm/call-bind-apply-helpers@1.0.1/node_modules/call-bind-apply-helpers/reflectApply.mjs +4 -0
  82. package/dist/es/node_modules/.pnpm/call-bound@1.0.3/node_modules/call-bound/index.mjs +18 -0
  83. package/dist/es/node_modules/.pnpm/docx-preview@0.3.3/node_modules/docx-preview/dist/docx-preview.mjs +3877 -0
  84. package/dist/es/node_modules/.pnpm/{dompurify@3.0.10 → dompurify@3.2.3}/node_modules/dompurify/dist/purify.es.mjs +119 -91
  85. package/dist/es/node_modules/.pnpm/dunder-proto@1.0.1/node_modules/dunder-proto/get.mjs +37 -0
  86. package/dist/es/node_modules/.pnpm/es-define-property@1.0.1/node_modules/es-define-property/index.mjs +12 -0
  87. package/dist/es/node_modules/.pnpm/es-object-atoms@1.0.0/node_modules/es-object-atoms/index.mjs +4 -0
  88. package/dist/es/node_modules/.pnpm/{get-intrinsic@1.2.4 → get-intrinsic@1.2.6}/node_modules/get-intrinsic/index.mjs +43 -24
  89. package/dist/es/node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/gOPD.mjs +4 -0
  90. package/dist/es/node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/index.mjs +13 -0
  91. package/dist/es/node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/index.mjs +29 -0
  92. package/dist/es/node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/shams.mjs +59 -0
  93. package/dist/es/node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.mjs +13 -5
  94. package/dist/es/node_modules/.pnpm/{highlight.js@11.9.0 → highlight.js@11.11.1}/node_modules/highlight.js/es/languages/apache.mjs +4 -0
  95. package/dist/es/node_modules/.pnpm/{highlight.js@11.9.0 → highlight.js@11.11.1}/node_modules/highlight.js/es/languages/bash.mjs +20 -2
  96. package/dist/es/node_modules/.pnpm/{highlight.js@11.9.0 → highlight.js@11.11.1}/node_modules/highlight.js/es/languages/basic.mjs +7 -1
  97. package/dist/es/node_modules/.pnpm/{highlight.js@11.9.0 → highlight.js@11.11.1}/node_modules/highlight.js/es/languages/c.mjs +19 -4
  98. package/dist/es/node_modules/.pnpm/{highlight.js@11.9.0 → highlight.js@11.11.1}/node_modules/highlight.js/es/languages/css.mjs +214 -8
  99. package/dist/es/node_modules/.pnpm/{highlight.js@11.9.0 → highlight.js@11.11.1}/node_modules/highlight.js/es/languages/dart.mjs +10 -2
  100. package/dist/es/node_modules/.pnpm/{highlight.js@11.9.0 → highlight.js@11.11.1}/node_modules/highlight.js/es/languages/erlang.mjs +48 -6
  101. package/dist/es/node_modules/.pnpm/{highlight.js@11.9.0 → highlight.js@11.11.1}/node_modules/highlight.js/es/languages/go.mjs +23 -3
  102. package/dist/es/node_modules/.pnpm/{highlight.js@11.9.0 → highlight.js@11.11.1}/node_modules/highlight.js/es/languages/java.mjs +3 -1
  103. package/dist/es/node_modules/.pnpm/{highlight.js@11.9.0 → highlight.js@11.11.1}/node_modules/highlight.js/es/languages/javascript.mjs +15 -11
  104. package/dist/es/node_modules/.pnpm/{highlight.js@11.9.0 → highlight.js@11.11.1}/node_modules/highlight.js/es/languages/json.mjs +1 -0
  105. package/dist/es/node_modules/.pnpm/{highlight.js@11.9.0 → highlight.js@11.11.1}/node_modules/highlight.js/es/languages/markdown.mjs +7 -1
  106. package/dist/es/node_modules/.pnpm/{highlight.js@11.9.0 → highlight.js@11.11.1}/node_modules/highlight.js/es/languages/php.mjs +16 -2
  107. package/dist/es/node_modules/.pnpm/{highlight.js@11.9.0 → highlight.js@11.11.1}/node_modules/highlight.js/es/languages/python.mjs +3 -1
  108. package/dist/es/node_modules/.pnpm/{highlight.js@11.9.0 → highlight.js@11.11.1}/node_modules/highlight.js/es/languages/ruby.mjs +1 -1
  109. package/dist/es/node_modules/.pnpm/{highlight.js@11.9.0 → highlight.js@11.11.1}/node_modules/highlight.js/es/languages/stylus.mjs +214 -8
  110. package/dist/es/node_modules/.pnpm/{highlight.js@11.9.0 → highlight.js@11.11.1}/node_modules/highlight.js/es/languages/swift.mjs +60 -14
  111. package/dist/es/node_modules/.pnpm/{highlight.js@11.9.0 → highlight.js@11.11.1}/node_modules/highlight.js/es/languages/typescript.mjs +45 -18
  112. package/dist/es/node_modules/.pnpm/{highlight.js@11.9.0 → highlight.js@11.11.1}/node_modules/highlight.js/lib/core.mjs +8 -8
  113. package/dist/es/node_modules/.pnpm/jszip@3.10.1/node_modules/jszip/dist/jszip.min.mjs +2649 -0
  114. package/dist/es/node_modules/.pnpm/{marked@12.0.1 → marked@12.0.2}/node_modules/marked/lib/marked.esm.mjs +2 -1
  115. package/dist/es/node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/abs.mjs +4 -0
  116. package/dist/es/node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/floor.mjs +4 -0
  117. package/dist/es/node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/max.mjs +4 -0
  118. package/dist/es/node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/min.mjs +4 -0
  119. package/dist/es/node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/pow.mjs +4 -0
  120. package/dist/es/node_modules/.pnpm/{object-inspect@1.13.1 → object-inspect@1.13.3}/node_modules/object-inspect/index.mjs +17 -4
  121. package/dist/es/node_modules/.pnpm/qs@6.11.0/node_modules/qs/lib/stringify.mjs +1 -1
  122. package/dist/es/node_modules/.pnpm/side-channel-list@1.0.0/node_modules/side-channel-list/index.mjs +92 -0
  123. package/dist/es/node_modules/.pnpm/side-channel-map@1.0.1/node_modules/side-channel-map/index.mjs +56 -0
  124. package/dist/es/node_modules/.pnpm/side-channel-weakmap@1.0.2/node_modules/side-channel-weakmap/index.mjs +74 -0
  125. package/dist/es/node_modules/.pnpm/side-channel@1.1.0/node_modules/side-channel/index.mjs +40 -0
  126. package/dist/es/store/modules/copilot.mjs +41 -9
  127. package/dist/es/style.css +1 -1
  128. package/dist/es/utils/http/index.mjs +1 -1
  129. package/package.json +124 -123
  130. package/dist/es/_virtual/index.mjs +0 -13
  131. package/dist/es/node_modules/.pnpm/call-bind@1.0.7/node_modules/call-bind/callBound.mjs +0 -16
  132. package/dist/es/node_modules/.pnpm/call-bind@1.0.7/node_modules/call-bind/index.mjs +0 -36
  133. package/dist/es/node_modules/.pnpm/define-data-property@1.1.4/node_modules/define-data-property/index.mjs +0 -48
  134. package/dist/es/node_modules/.pnpm/es-define-property@1.0.0/node_modules/es-define-property/index.mjs +0 -22
  135. package/dist/es/node_modules/.pnpm/gopd@1.0.1/node_modules/gopd/index.mjs +0 -14
  136. package/dist/es/node_modules/.pnpm/has-property-descriptors@1.0.2/node_modules/has-property-descriptors/index.mjs +0 -19
  137. package/dist/es/node_modules/.pnpm/has-proto@1.0.3/node_modules/has-proto/index.mjs +0 -11
  138. package/dist/es/node_modules/.pnpm/has-symbols@1.0.3/node_modules/has-symbols/index.mjs +0 -21
  139. package/dist/es/node_modules/.pnpm/has-symbols@1.0.3/node_modules/has-symbols/shams.mjs +0 -48
  140. package/dist/es/node_modules/.pnpm/set-function-length@1.2.2/node_modules/set-function-length/index.mjs +0 -54
  141. package/dist/es/node_modules/.pnpm/side-channel@1.0.6/node_modules/side-channel/index.mjs +0 -115
  142. /package/dist/es/node_modules/.pnpm/{@iconify-icons_ep@1.2.7 → @iconify-icons_ep@1.2.12}/node_modules/@iconify-icons/ep/arrow-left.mjs +0 -0
  143. /package/dist/es/node_modules/.pnpm/{@iconify-icons_ep@1.2.7 → @iconify-icons_ep@1.2.12}/node_modules/@iconify-icons/ep/arrow-right.mjs +0 -0
  144. /package/dist/es/node_modules/.pnpm/{@iconify-icons_ep@1.2.7 → @iconify-icons_ep@1.2.12}/node_modules/@iconify-icons/ep/check.mjs +0 -0
  145. /package/dist/es/node_modules/.pnpm/{@iconify-icons_ep@1.2.7 → @iconify-icons_ep@1.2.12}/node_modules/@iconify-icons/ep/close.mjs +0 -0
  146. /package/dist/es/node_modules/.pnpm/{@iconify-icons_ep@1.2.7 → @iconify-icons_ep@1.2.12}/node_modules/@iconify-icons/ep/delete.mjs +0 -0
  147. /package/dist/es/node_modules/.pnpm/{@iconify-icons_ep@1.2.7 → @iconify-icons_ep@1.2.12}/node_modules/@iconify-icons/ep/edit.mjs +0 -0
  148. /package/dist/es/node_modules/.pnpm/{@iconify-icons_ep@1.2.7 → @iconify-icons_ep@1.2.12}/node_modules/@iconify-icons/ep/promotion.mjs +0 -0
  149. /package/dist/es/node_modules/.pnpm/{@iconify-icons_ep@1.2.7 → @iconify-icons_ep@1.2.12}/node_modules/@iconify-icons/ep/search.mjs +0 -0
  150. /package/dist/es/node_modules/.pnpm/{highlight.js@11.9.0 → highlight.js@11.11.1}/node_modules/highlight.js/es/core.mjs +0 -0
  151. /package/dist/es/node_modules/.pnpm/{highlight.js@11.9.0 → highlight.js@11.11.1}/node_modules/highlight.js/es/languages/django.mjs +0 -0
  152. /package/dist/es/node_modules/.pnpm/{highlight.js@11.9.0 → highlight.js@11.11.1}/node_modules/highlight.js/es/languages/dns.mjs +0 -0
  153. /package/dist/es/node_modules/.pnpm/{highlight.js@11.9.0 → highlight.js@11.11.1}/node_modules/highlight.js/es/languages/dos.mjs +0 -0
  154. /package/dist/es/node_modules/.pnpm/{highlight.js@11.9.0 → highlight.js@11.11.1}/node_modules/highlight.js/es/languages/dust.mjs +0 -0
  155. /package/dist/es/node_modules/.pnpm/{highlight.js@11.9.0 → highlight.js@11.11.1}/node_modules/highlight.js/es/languages/http.mjs +0 -0
  156. /package/dist/es/node_modules/.pnpm/{highlight.js@11.9.0 → highlight.js@11.11.1}/node_modules/highlight.js/es/languages/nginx.mjs +0 -0
  157. /package/dist/es/node_modules/.pnpm/{highlight.js@11.9.0 → highlight.js@11.11.1}/node_modules/highlight.js/es/languages/xml.mjs +0 -0
  158. /package/dist/es/node_modules/.pnpm/{highlight.js@11.9.0 → highlight.js@11.11.1}/node_modules/highlight.js/styles/sunburst.css.mjs +0 -0
@@ -0,0 +1,4 @@
1
+ var gOPD = Object.getOwnPropertyDescriptor;
2
+ export {
3
+ gOPD as default
4
+ };
@@ -0,0 +1,13 @@
1
+ import gOPD from "./gOPD.mjs";
2
+ var $gOPD = gOPD;
3
+ if ($gOPD) {
4
+ try {
5
+ $gOPD([], "length");
6
+ } catch (e) {
7
+ $gOPD = null;
8
+ }
9
+ }
10
+ var gopd = $gOPD;
11
+ export {
12
+ gopd as default
13
+ };
@@ -0,0 +1,29 @@
1
+ import { __require as requireShams } from "./shams.mjs";
2
+ var hasSymbols;
3
+ var hasRequiredHasSymbols;
4
+ function requireHasSymbols() {
5
+ if (hasRequiredHasSymbols)
6
+ return hasSymbols;
7
+ hasRequiredHasSymbols = 1;
8
+ var origSymbol = typeof Symbol !== "undefined" && Symbol;
9
+ var hasSymbolSham = requireShams();
10
+ hasSymbols = function hasNativeSymbols() {
11
+ if (typeof origSymbol !== "function") {
12
+ return false;
13
+ }
14
+ if (typeof Symbol !== "function") {
15
+ return false;
16
+ }
17
+ if (typeof origSymbol("foo") !== "symbol") {
18
+ return false;
19
+ }
20
+ if (typeof Symbol("bar") !== "symbol") {
21
+ return false;
22
+ }
23
+ return hasSymbolSham();
24
+ };
25
+ return hasSymbols;
26
+ }
27
+ export {
28
+ requireHasSymbols as __require
29
+ };
@@ -0,0 +1,59 @@
1
+ var shams;
2
+ var hasRequiredShams;
3
+ function requireShams() {
4
+ if (hasRequiredShams)
5
+ return shams;
6
+ hasRequiredShams = 1;
7
+ shams = function hasSymbols() {
8
+ if (typeof Symbol !== "function" || typeof Object.getOwnPropertySymbols !== "function") {
9
+ return false;
10
+ }
11
+ if (typeof Symbol.iterator === "symbol") {
12
+ return true;
13
+ }
14
+ var obj = {};
15
+ var sym = Symbol("test");
16
+ var symObj = Object(sym);
17
+ if (typeof sym === "string") {
18
+ return false;
19
+ }
20
+ if (Object.prototype.toString.call(sym) !== "[object Symbol]") {
21
+ return false;
22
+ }
23
+ if (Object.prototype.toString.call(symObj) !== "[object Symbol]") {
24
+ return false;
25
+ }
26
+ var symVal = 42;
27
+ obj[sym] = symVal;
28
+ for (var _ in obj) {
29
+ return false;
30
+ }
31
+ if (typeof Object.keys === "function" && Object.keys(obj).length !== 0) {
32
+ return false;
33
+ }
34
+ if (typeof Object.getOwnPropertyNames === "function" && Object.getOwnPropertyNames(obj).length !== 0) {
35
+ return false;
36
+ }
37
+ var syms = Object.getOwnPropertySymbols(obj);
38
+ if (syms.length !== 1 || syms[0] !== sym) {
39
+ return false;
40
+ }
41
+ if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) {
42
+ return false;
43
+ }
44
+ if (typeof Object.getOwnPropertyDescriptor === "function") {
45
+ var descriptor = (
46
+ /** @type {PropertyDescriptor} */
47
+ Object.getOwnPropertyDescriptor(obj, sym)
48
+ );
49
+ if (descriptor.value !== symVal || descriptor.enumerable !== true) {
50
+ return false;
51
+ }
52
+ }
53
+ return true;
54
+ };
55
+ return shams;
56
+ }
57
+ export {
58
+ requireShams as __require
59
+ };
@@ -1,8 +1,16 @@
1
1
  import functionBind from "../../../function-bind@1.1.2/node_modules/function-bind/index.mjs";
2
- var call = Function.prototype.call;
3
- var $hasOwn = Object.prototype.hasOwnProperty;
4
- var bind = functionBind;
5
- var hasown = bind.call(call, $hasOwn);
2
+ var hasown;
3
+ var hasRequiredHasown;
4
+ function requireHasown() {
5
+ if (hasRequiredHasown)
6
+ return hasown;
7
+ hasRequiredHasown = 1;
8
+ var call = Function.prototype.call;
9
+ var $hasOwn = Object.prototype.hasOwnProperty;
10
+ var bind = functionBind;
11
+ hasown = bind.call(call, $hasOwn);
12
+ return hasown;
13
+ }
6
14
  export {
7
- hasown as default
15
+ requireHasown as __require
8
16
  };
@@ -62,6 +62,10 @@ function apache(hljs) {
62
62
  relevance: 0,
63
63
  keywords: { literal: "on off all deny allow" },
64
64
  contains: [
65
+ {
66
+ scope: "punctuation",
67
+ match: /\\\n/
68
+ },
65
69
  {
66
70
  className: "meta",
67
71
  begin: /\s\[/,
@@ -31,6 +31,18 @@ function bash(hljs) {
31
31
  end: /\)/,
32
32
  contains: [hljs.BACKSLASH_ESCAPE]
33
33
  };
34
+ const COMMENT = hljs.inherit(
35
+ hljs.COMMENT(),
36
+ {
37
+ match: [
38
+ /(^|\s)/,
39
+ /#.*$/
40
+ ],
41
+ scope: {
42
+ 2: "comment"
43
+ }
44
+ }
45
+ );
34
46
  const HERE_DOC = {
35
47
  begin: /<<-?\s*(?=\w+)/,
36
48
  starts: { contains: [
@@ -103,6 +115,7 @@ function bash(hljs) {
103
115
  "else",
104
116
  "elif",
105
117
  "fi",
118
+ "time",
106
119
  "for",
107
120
  "while",
108
121
  "until",
@@ -111,6 +124,7 @@ function bash(hljs) {
111
124
  "done",
112
125
  "case",
113
126
  "esac",
127
+ "coproc",
114
128
  "function",
115
129
  "select"
116
130
  ];
@@ -157,6 +171,7 @@ function bash(hljs) {
157
171
  "read",
158
172
  "readarray",
159
173
  "source",
174
+ "sudo",
160
175
  "type",
161
176
  "typeset",
162
177
  "ulimit",
@@ -339,7 +354,10 @@ function bash(hljs) {
339
354
  ];
340
355
  return {
341
356
  name: "Bash",
342
- aliases: ["sh"],
357
+ aliases: [
358
+ "sh",
359
+ "zsh"
360
+ ],
343
361
  keywords: {
344
362
  $pattern: /\b[a-z][a-z0-9._-]+\b/,
345
363
  keyword: KEYWORDS,
@@ -361,7 +379,7 @@ function bash(hljs) {
361
379
  // to catch unknown shells but still highlight the shebang
362
380
  FUNCTION,
363
381
  ARITHMETIC,
364
- hljs.HASH_COMMENT_MODE,
382
+ COMMENT,
365
383
  HERE_DOC,
366
384
  PATH_MODE,
367
385
  QUOTE_STRING,
@@ -188,7 +188,13 @@ function basic(hljs) {
188
188
  keyword: KEYWORDS
189
189
  },
190
190
  contains: [
191
- hljs.QUOTE_STRING_MODE,
191
+ {
192
+ // Match strings that start with " and end with " or a line break
193
+ scope: "string",
194
+ begin: /"/,
195
+ end: /"|$/,
196
+ contains: [hljs.BACKSLASH_ESCAPE]
197
+ },
192
198
  hljs.COMMENT("REM", "$", { relevance: 10 }),
193
199
  hljs.COMMENT("'", "$", { relevance: 0 }),
194
200
  {
@@ -36,9 +36,10 @@ function c(hljs) {
36
36
  const NUMBERS = {
37
37
  className: "number",
38
38
  variants: [
39
- { begin: "\\b(0b[01']+)" },
40
- { begin: "(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)" },
41
- { begin: "(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)" }
39
+ { match: /\b(0b[01']+)/ },
40
+ { match: /(-?)\b([\d']+(\.[\d']*)?|\.[\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)/ },
41
+ { match: /(-?)\b(0[xX][a-fA-F0-9]+(?:'[a-fA-F0-9]+)*(?:\.[a-fA-F0-9]*(?:'[a-fA-F0-9]*)*)?(?:[pP][-+]?[0-9]+)?(l|L)?(u|U)?)/ },
42
+ { match: /(-?)\b\d+(?:'\d+)*(?:\.\d*(?:'\d*)*)?(?:[eE][-+]?\d+)?/ }
42
43
  ],
43
44
  relevance: 0
44
45
  };
@@ -46,7 +47,7 @@ function c(hljs) {
46
47
  className: "meta",
47
48
  begin: /#\s*[a-z]+\b/,
48
49
  end: /$/,
49
- keywords: { keyword: "if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include" },
50
+ keywords: { keyword: "if else elif endif define undef warning error line pragma _Pragma ifdef ifndef elifdef elifndef include" },
50
51
  contains: [
51
52
  {
52
53
  begin: /\\\n/,
@@ -87,6 +88,8 @@ function c(hljs) {
87
88
  "restrict",
88
89
  "return",
89
90
  "sizeof",
91
+ "typeof",
92
+ "typeof_unqual",
90
93
  "struct",
91
94
  "switch",
92
95
  "typedef",
@@ -120,14 +123,26 @@ function c(hljs) {
120
123
  "char",
121
124
  "void",
122
125
  "_Bool",
126
+ "_BitInt",
123
127
  "_Complex",
124
128
  "_Imaginary",
125
129
  "_Decimal32",
126
130
  "_Decimal64",
131
+ "_Decimal96",
127
132
  "_Decimal128",
133
+ "_Decimal64x",
134
+ "_Decimal128x",
135
+ "_Float16",
136
+ "_Float32",
137
+ "_Float64",
138
+ "_Float128",
139
+ "_Float32x",
140
+ "_Float64x",
141
+ "_Float128x",
128
142
  // modifiers
129
143
  "const",
130
144
  "static",
145
+ "constexpr",
131
146
  // aliases
132
147
  "complex",
133
148
  "bool",