@kg-ui/kg-ui-plus 0.1.35 → 0.1.37

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 (67) hide show
  1. package/README.md +3 -3
  2. package/dist/es/KgCopilot/CopiCanvas/FilePreview.vue.mjs +1 -1
  3. package/dist/es/KgCopilot/CopiCanvas/FilePreview.vue2.mjs +84 -42
  4. package/dist/es/KgCopilot/CopiCanvas/FilePreview.vue3.mjs +2 -2
  5. package/dist/es/KgCopilot/CopiCanvas/InitWrap.vue.mjs +1 -1
  6. package/dist/es/KgCopilot/CopiCanvas/InitWrap.vue2.mjs +1 -1
  7. package/dist/es/KgCopilot/CopiCanvas/InitWrap.vue3.mjs +2 -2
  8. package/dist/es/KgCopilot/CopiCanvas/index.vue.mjs +1 -1
  9. package/dist/es/KgCopilot/CopiCanvas/index.vue3.mjs +2 -2
  10. package/dist/es/KgCopilot/CopiContent/AnswerHead.vue.mjs +1 -1
  11. package/dist/es/KgCopilot/CopiContent/AnswerHead.vue2.mjs +1 -1
  12. package/dist/es/KgCopilot/CopiContent/AnswerHead.vue3.mjs +2 -2
  13. package/dist/es/KgCopilot/CopiContent/UserHead.vue.mjs +2 -2
  14. package/dist/es/KgCopilot/CopiContent/UserHead.vue2.mjs +2 -2
  15. package/dist/es/KgCopilot/CopiFooter/SearchInput/InputFootTool.vue.mjs +1 -1
  16. package/dist/es/KgCopilot/CopiFooter/SearchInput/InputFootTool.vue3.mjs +2 -2
  17. package/dist/es/KgCopilot/CopiFooter/SearchInput/NewTheme.vue.mjs +1 -1
  18. package/dist/es/KgCopilot/CopiFooter/SearchInput/NewTheme.vue2.mjs +1 -1
  19. package/dist/es/KgCopilot/CopiFooter/SearchInput/NewTheme.vue3.mjs +2 -2
  20. package/dist/es/KgCopilot/CopiFooter/SearchInput/SelectPluginByKey.vue.mjs +1 -1
  21. package/dist/es/KgCopilot/CopiFooter/SearchInput/SelectPluginByKey.vue3.mjs +2 -2
  22. package/dist/es/KgCopilot/CopiFooter/SearchInput/index.vue.mjs +1 -1
  23. package/dist/es/KgCopilot/CopiFooter/SearchInput/index.vue2.mjs +1 -1
  24. package/dist/es/KgCopilot/CopiFooter/SearchInput/index.vue3.mjs +2 -2
  25. package/dist/es/KgCopilot/CopiFooter/index.vue.mjs +1 -1
  26. package/dist/es/KgCopilot/CopiFooter/index.vue3.mjs +2 -2
  27. package/dist/es/KgCopilot/dialogue/SuggestMessage.vue.mjs +1 -1
  28. package/dist/es/KgCopilot/dialogue/SuggestMessage.vue3.mjs +2 -2
  29. package/dist/es/KgCopilot/dialogue/index.vue.mjs +1 -1
  30. package/dist/es/KgCopilot/dialogue/index.vue2.mjs +1 -1
  31. package/dist/es/KgCopilot/dialogue/index.vue3.mjs +2 -2
  32. package/dist/es/KgCopilot/dialogue/messageParse/edit.vue.mjs +1 -1
  33. package/dist/es/KgCopilot/dialogue/messageParse/edit.vue3.mjs +2 -2
  34. package/dist/es/KgCopilot/dialogue/messageParse/fileBox.vue.mjs +1 -1
  35. package/dist/es/KgCopilot/dialogue/messageParse/fileBox.vue2.mjs +2 -2
  36. package/dist/es/KgCopilot/dialogue/messageParse/index.vue.mjs +1 -1
  37. package/dist/es/KgCopilot/dialogue/messageParse/index.vue3.mjs +2 -2
  38. package/dist/es/KgCopilot/dialogue/messageParse/readMd.vue.mjs +1 -1
  39. package/dist/es/KgCopilot/dialogue/messageParse/readMd.vue2.mjs +18 -6
  40. package/dist/es/KgCopilot/dialogue/messageParse/readMd.vue3.mjs +2 -2
  41. package/dist/es/KgCopilot/historyRecord/index.vue.mjs +1 -1
  42. package/dist/es/KgCopilot/historyRecord/index.vue2.mjs +1 -1
  43. package/dist/es/KgCopilot/historyRecord/index.vue3.mjs +2 -2
  44. package/dist/es/KgCopilot/index.vue.mjs +1 -1
  45. package/dist/es/KgCopilot/index.vue3.mjs +2 -2
  46. package/dist/es/home/LFilter/FilterArea.vue.mjs +1 -1
  47. package/dist/es/home/LFilter/FilterArea.vue2.mjs +1 -1
  48. package/dist/es/home/LFilter/FilterArea.vue3.mjs +2 -2
  49. package/dist/es/home/LFilter/FilterItem.vue.mjs +1 -1
  50. package/dist/es/home/LFilter/FilterItem.vue2.mjs +1 -1
  51. package/dist/es/home/LFilter/FilterItem.vue3.mjs +2 -2
  52. package/dist/es/home/LFilter/FilterItemIcon.vue.mjs +1 -1
  53. package/dist/es/home/LFilter/FilterItemIcon.vue2.mjs +1 -1
  54. package/dist/es/home/LFilter/FilterItemIcon.vue3.mjs +2 -2
  55. package/dist/es/home/LProject/index.vue.mjs +1 -1
  56. package/dist/es/home/LProject/index.vue3.mjs +2 -2
  57. package/dist/es/home/index.vue.mjs +1 -1
  58. package/dist/es/home/index.vue3.mjs +2 -2
  59. package/dist/es/node_modules/.pnpm/call-bind-apply-helpers@1.0.1/node_modules/call-bind-apply-helpers/actualApply.mjs +4 -4
  60. package/dist/es/node_modules/.pnpm/call-bind-apply-helpers@1.0.1/node_modules/call-bind-apply-helpers/functionCall.mjs +10 -2
  61. package/dist/es/node_modules/.pnpm/call-bind-apply-helpers@1.0.1/node_modules/call-bind-apply-helpers/index.mjs +4 -4
  62. package/dist/es/node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.mjs +73 -65
  63. package/dist/es/node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.mjs +12 -4
  64. package/dist/es/node_modules/.pnpm/get-intrinsic@1.2.6/node_modules/get-intrinsic/index.mjs +4 -4
  65. package/dist/es/node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.mjs +2 -2
  66. package/dist/es/style.css +1 -1
  67. package/package.json +124 -124
@@ -1,10 +1,18 @@
1
- import { defineComponent, ref, computed, watch, onMounted, resolveDirective, openBlock, createElementBlock, withDirectives, createElementVNode, unref } from "vue";
1
+ import { defineComponent, ref, computed, watch, onMounted, resolveDirective, openBlock, createElementBlock, withDirectives, createElementVNode, unref, normalizeStyle, createCommentVNode } from "vue";
2
2
  import purify from "../../../node_modules/.pnpm/dompurify@3.2.3/node_modules/dompurify/dist/purify.es.mjs";
3
3
  import { marked } from "../../../node_modules/.pnpm/marked@12.0.2/node_modules/marked/lib/marked.esm.mjs";
4
4
  import isInCode from "./mdInCode.mjs";
5
5
  import { useCopilotStoreHook } from "../../../store/modules/copilot.mjs";
6
6
  import { storeToRefs } from "pinia";
7
- const _hoisted_1 = ["innerHTML"];
7
+ const _hoisted_1 = {
8
+ class: "flex",
9
+ style: { "align-items": "center" }
10
+ };
11
+ const _hoisted_2 = ["innerHTML"];
12
+ const _hoisted_3 = {
13
+ key: 0,
14
+ class: "check-mark"
15
+ };
8
16
  const _sfc_main = /* @__PURE__ */ defineComponent({
9
17
  __name: "readMd",
10
18
  props: {
@@ -105,13 +113,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
105
113
  });
106
114
  return (_ctx, _cache) => {
107
115
  const _directive_highlight = resolveDirective("highlight");
108
- return openBlock(), createElementBlock("div", null, [
116
+ return openBlock(), createElementBlock("div", _hoisted_1, [
109
117
  withDirectives(createElementVNode("div", {
110
118
  innerHTML: unref(resultHtml),
111
- class: "markdown"
112
- }, null, 8, _hoisted_1), [
119
+ class: "markdown",
120
+ style: normalizeStyle({
121
+ width: props.text.includes("LLM") && !props.isPrinting ? "auto" : "100%"
122
+ })
123
+ }, null, 12, _hoisted_2), [
113
124
  [_directive_highlight]
114
- ])
125
+ ]),
126
+ props.text.includes("LLM") && !props.isPrinting ? (openBlock(), createElementBlock("span", _hoisted_3, "✅")) : createCommentVNode("", true)
115
127
  ]);
116
128
  };
117
129
  }
@@ -1,4 +1,4 @@
1
- const readMd_vue_vue_type_style_index_0_scoped_1bd1c886_lang = "";
1
+ const readMd_vue_vue_type_style_index_0_scoped_aad92d4c_lang = "";
2
2
  export {
3
- readMd_vue_vue_type_style_index_0_scoped_1bd1c886_lang as default
3
+ readMd_vue_vue_type_style_index_0_scoped_aad92d4c_lang as default
4
4
  };
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./index.vue2.mjs";
2
2
  import "./index.vue3.mjs";
3
3
  import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
4
- const HistoryReport = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-1b7d2f09"]]);
4
+ const HistoryReport = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-cef87429"]]);
5
5
  export {
6
6
  HistoryReport as default
7
7
  };
@@ -7,7 +7,7 @@ import data from "../../node_modules/.pnpm/@iconify-icons_ep@1.2.12/node_modules
7
7
  import data$2 from "../../node_modules/.pnpm/@iconify-icons_ep@1.2.12/node_modules/@iconify-icons/ep/check.mjs";
8
8
  import data$3 from "../../node_modules/.pnpm/@iconify-icons_ep@1.2.12/node_modules/@iconify-icons/ep/close.mjs";
9
9
  import { useCopilotStoreHook } from "../../store/modules/copilot.mjs";
10
- const _withScopeId = (n) => (pushScopeId("data-v-1b7d2f09"), n = n(), popScopeId(), n);
10
+ const _withScopeId = (n) => (pushScopeId("data-v-cef87429"), n = n(), popScopeId(), n);
11
11
  const _hoisted_1 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("h3", { class: "history-title" }, "历史记录", -1));
12
12
  const _hoisted_2 = { class: "search_box" };
13
13
  const _hoisted_3 = { class: "list_box" };
@@ -1,4 +1,4 @@
1
- const index_vue_vue_type_style_index_0_scoped_1b7d2f09_lang = "";
1
+ const index_vue_vue_type_style_index_0_scoped_cef87429_lang = "";
2
2
  export {
3
- index_vue_vue_type_style_index_0_scoped_1b7d2f09_lang as default
3
+ index_vue_vue_type_style_index_0_scoped_cef87429_lang as default
4
4
  };
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./index.vue2.mjs";
2
2
  import "./index.vue3.mjs";
3
3
  import _export_sfc from "../_virtual/_plugin-vue_export-helper.mjs";
4
- const KgCopilot = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-3615eb0f"]]);
4
+ const KgCopilot = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-d22e58c2"]]);
5
5
  export {
6
6
  KgCopilot as default
7
7
  };
@@ -1,4 +1,4 @@
1
- const index_vue_vue_type_style_index_0_scoped_3615eb0f_lang = "";
1
+ const index_vue_vue_type_style_index_0_scoped_d22e58c2_lang = "";
2
2
  export {
3
- index_vue_vue_type_style_index_0_scoped_3615eb0f_lang as default
3
+ index_vue_vue_type_style_index_0_scoped_d22e58c2_lang as default
4
4
  };
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./FilterArea.vue2.mjs";
2
2
  import "./FilterArea.vue3.mjs";
3
3
  import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
4
- const FilterArea = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-996410e5"]]);
4
+ const FilterArea = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-4e04c24d"]]);
5
5
  export {
6
6
  FilterArea as default
7
7
  };
@@ -9,7 +9,7 @@ import data$2 from "../../node_modules/.pnpm/@iconify-icons_ri@1.2.3/node_module
9
9
  import { checkFilterShow_xinyuan, checkFilterShow, checkFilterShow_letter } from "../../utils/home.mjs";
10
10
  import FilterItem from "./FilterItem.vue.mjs";
11
11
  import FilterItemIcon from "./FilterItemIcon.vue.mjs";
12
- const _withScopeId = (n) => (pushScopeId("data-v-996410e5"), n = n(), popScopeId(), n);
12
+ const _withScopeId = (n) => (pushScopeId("data-v-4e04c24d"), n = n(), popScopeId(), n);
13
13
  const _hoisted_1 = { id: "filterWrap" };
14
14
  const _hoisted_2 = { key: 0 };
15
15
  const _hoisted_3 = { class: "flex flex-1 align-middle justify-items-start flex-wrap" };
@@ -1,4 +1,4 @@
1
- const FilterArea_vue_vue_type_style_index_0_scoped_996410e5_lang = "";
1
+ const FilterArea_vue_vue_type_style_index_0_scoped_4e04c24d_lang = "";
2
2
  export {
3
- FilterArea_vue_vue_type_style_index_0_scoped_996410e5_lang as default
3
+ FilterArea_vue_vue_type_style_index_0_scoped_4e04c24d_lang as default
4
4
  };
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./FilterItem.vue2.mjs";
2
2
  import "./FilterItem.vue3.mjs";
3
3
  import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
4
- const FilterItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-10722fd5"]]);
4
+ const FilterItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-be1d5ffc"]]);
5
5
  export {
6
6
  FilterItem as default
7
7
  };
@@ -4,7 +4,7 @@ import { useFilterStoreHook } from "../../store/modules/filters.mjs";
4
4
  import { EnumFilterKind } from "../../store/modules/types.mjs";
5
5
  import data from "../../node_modules/.pnpm/@iconify-icons_ri@1.2.3/node_modules/@iconify-icons/ri/more-2-fill.mjs";
6
6
  import { getFilterRemark } from "../../utils/home.mjs";
7
- const _withScopeId = (n) => (pushScopeId("data-v-10722fd5"), n = n(), popScopeId(), n);
7
+ const _withScopeId = (n) => (pushScopeId("data-v-be1d5ffc"), n = n(), popScopeId(), n);
8
8
  const _hoisted_1 = { class: "p-2" };
9
9
  const _hoisted_2 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("line", null, null, -1));
10
10
  const _hoisted_3 = ["innerHTML"];
@@ -1,4 +1,4 @@
1
- const FilterItem_vue_vue_type_style_index_0_scoped_10722fd5_lang = "";
1
+ const FilterItem_vue_vue_type_style_index_0_scoped_be1d5ffc_lang = "";
2
2
  export {
3
- FilterItem_vue_vue_type_style_index_0_scoped_10722fd5_lang as default
3
+ FilterItem_vue_vue_type_style_index_0_scoped_be1d5ffc_lang as default
4
4
  };
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./FilterItemIcon.vue2.mjs";
2
2
  import "./FilterItemIcon.vue3.mjs";
3
3
  import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
4
- const FilterItemIcon = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-a70be454"]]);
4
+ const FilterItemIcon = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-c55b8933"]]);
5
5
  export {
6
6
  FilterItemIcon as default
7
7
  };
@@ -4,7 +4,7 @@ import { useFilterStoreHook } from "../../store/modules/filters.mjs";
4
4
  import data from "../../node_modules/.pnpm/@iconify-icons_ri@1.2.3/node_modules/@iconify-icons/ri/more-2-fill.mjs";
5
5
  import data$1 from "../../node_modules/.pnpm/@iconify-icons_ri@1.2.3/node_modules/@iconify-icons/ri/check-fill.mjs";
6
6
  import { getFilterRemark } from "../../utils/home.mjs";
7
- const _withScopeId = (n) => (pushScopeId("data-v-a70be454"), n = n(), popScopeId(), n);
7
+ const _withScopeId = (n) => (pushScopeId("data-v-c55b8933"), n = n(), popScopeId(), n);
8
8
  const _hoisted_1 = {
9
9
  key: 0,
10
10
  class: "flex items-end"
@@ -1,4 +1,4 @@
1
- const FilterItemIcon_vue_vue_type_style_index_0_scoped_a70be454_lang = "";
1
+ const FilterItemIcon_vue_vue_type_style_index_0_scoped_c55b8933_lang = "";
2
2
  export {
3
- FilterItemIcon_vue_vue_type_style_index_0_scoped_a70be454_lang as default
3
+ FilterItemIcon_vue_vue_type_style_index_0_scoped_c55b8933_lang as default
4
4
  };
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./index.vue2.mjs";
2
2
  import "./index.vue3.mjs";
3
3
  import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
4
- const LProject = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-75d82a2e"]]);
4
+ const LProject = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-7a0e9ea7"]]);
5
5
  export {
6
6
  LProject as default
7
7
  };
@@ -1,4 +1,4 @@
1
- const index_vue_vue_type_style_index_0_scoped_75d82a2e_lang = "";
1
+ const index_vue_vue_type_style_index_0_scoped_7a0e9ea7_lang = "";
2
2
  export {
3
- index_vue_vue_type_style_index_0_scoped_75d82a2e_lang as default
3
+ index_vue_vue_type_style_index_0_scoped_7a0e9ea7_lang as default
4
4
  };
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./index.vue2.mjs";
2
2
  import "./index.vue3.mjs";
3
3
  import _export_sfc from "../_virtual/_plugin-vue_export-helper.mjs";
4
- const Home = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-ca075550"]]);
4
+ const Home = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-c86d30a0"]]);
5
5
  export {
6
6
  Home as default
7
7
  };
@@ -1,4 +1,4 @@
1
- const index_vue_vue_type_style_index_0_scoped_ca075550_lang = "";
1
+ const index_vue_vue_type_style_index_0_scoped_c86d30a0_lang = "";
2
2
  export {
3
- index_vue_vue_type_style_index_0_scoped_ca075550_lang as default
3
+ index_vue_vue_type_style_index_0_scoped_c86d30a0_lang as default
4
4
  };
@@ -1,10 +1,10 @@
1
- import functionBind from "../../../function-bind@1.1.2/node_modules/function-bind/index.mjs";
1
+ import { __require as requireFunctionBind } from "../../../function-bind@1.1.2/node_modules/function-bind/index.mjs";
2
2
  import { __require as requireFunctionApply } from "./functionApply.mjs";
3
- import functionCall from "./functionCall.mjs";
3
+ import { __require as requireFunctionCall } from "./functionCall.mjs";
4
4
  import reflectApply from "./reflectApply.mjs";
5
- var bind = functionBind;
5
+ var bind = requireFunctionBind();
6
6
  var $apply = requireFunctionApply();
7
- var $call = functionCall;
7
+ var $call = requireFunctionCall();
8
8
  var $reflectApply = reflectApply;
9
9
  var actualApply = $reflectApply || bind.call($call, $apply);
10
10
  export {
@@ -1,4 +1,12 @@
1
- var functionCall = Function.prototype.call;
1
+ var functionCall;
2
+ var hasRequiredFunctionCall;
3
+ function requireFunctionCall() {
4
+ if (hasRequiredFunctionCall)
5
+ return functionCall;
6
+ hasRequiredFunctionCall = 1;
7
+ functionCall = Function.prototype.call;
8
+ return functionCall;
9
+ }
2
10
  export {
3
- functionCall as default
11
+ requireFunctionCall as __require
4
12
  };
@@ -1,10 +1,10 @@
1
- import functionBind from "../../../function-bind@1.1.2/node_modules/function-bind/index.mjs";
1
+ import { __require as requireFunctionBind } from "../../../function-bind@1.1.2/node_modules/function-bind/index.mjs";
2
2
  import type from "../../../es-errors@1.3.0/node_modules/es-errors/type.mjs";
3
- import functionCall from "./functionCall.mjs";
3
+ import { __require as requireFunctionCall } from "./functionCall.mjs";
4
4
  import actualApply from "./actualApply.mjs";
5
- var bind = functionBind;
5
+ var bind = requireFunctionBind();
6
6
  var $TypeError = type;
7
- var $call = functionCall;
7
+ var $call = requireFunctionCall();
8
8
  var $actualApply = actualApply;
9
9
  var callBindApplyHelpers = function callBindBasic(args) {
10
10
  if (args.length < 1 || typeof args[0] !== "function") {
@@ -1,72 +1,80 @@
1
- var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
2
- var toStr = Object.prototype.toString;
3
- var max = Math.max;
4
- var funcType = "[object Function]";
5
- var concatty = function concatty2(a, b) {
6
- var arr = [];
7
- for (var i = 0; i < a.length; i += 1) {
8
- arr[i] = a[i];
9
- }
10
- for (var j = 0; j < b.length; j += 1) {
11
- arr[j + a.length] = b[j];
12
- }
13
- return arr;
14
- };
15
- var slicy = function slicy2(arrLike, offset) {
16
- var arr = [];
17
- for (var i = offset || 0, j = 0; i < arrLike.length; i += 1, j += 1) {
18
- arr[j] = arrLike[i];
19
- }
20
- return arr;
21
- };
22
- var joiny = function(arr, joiner) {
23
- var str = "";
24
- for (var i = 0; i < arr.length; i += 1) {
25
- str += arr[i];
26
- if (i + 1 < arr.length) {
27
- str += joiner;
1
+ var implementation;
2
+ var hasRequiredImplementation;
3
+ function requireImplementation() {
4
+ if (hasRequiredImplementation)
5
+ return implementation;
6
+ hasRequiredImplementation = 1;
7
+ var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
8
+ var toStr = Object.prototype.toString;
9
+ var max = Math.max;
10
+ var funcType = "[object Function]";
11
+ var concatty = function concatty2(a, b) {
12
+ var arr = [];
13
+ for (var i = 0; i < a.length; i += 1) {
14
+ arr[i] = a[i];
28
15
  }
29
- }
30
- return str;
31
- };
32
- var implementation = function bind(that) {
33
- var target = this;
34
- if (typeof target !== "function" || toStr.apply(target) !== funcType) {
35
- throw new TypeError(ERROR_MESSAGE + target);
36
- }
37
- var args = slicy(arguments, 1);
38
- var bound;
39
- var binder = function() {
40
- if (this instanceof bound) {
41
- var result = target.apply(
42
- this,
43
- concatty(args, arguments)
44
- );
45
- if (Object(result) === result) {
46
- return result;
16
+ for (var j = 0; j < b.length; j += 1) {
17
+ arr[j + a.length] = b[j];
18
+ }
19
+ return arr;
20
+ };
21
+ var slicy = function slicy2(arrLike, offset) {
22
+ var arr = [];
23
+ for (var i = offset || 0, j = 0; i < arrLike.length; i += 1, j += 1) {
24
+ arr[j] = arrLike[i];
25
+ }
26
+ return arr;
27
+ };
28
+ var joiny = function(arr, joiner) {
29
+ var str = "";
30
+ for (var i = 0; i < arr.length; i += 1) {
31
+ str += arr[i];
32
+ if (i + 1 < arr.length) {
33
+ str += joiner;
47
34
  }
48
- return this;
49
35
  }
50
- return target.apply(
51
- that,
52
- concatty(args, arguments)
53
- );
36
+ return str;
54
37
  };
55
- var boundLength = max(0, target.length - args.length);
56
- var boundArgs = [];
57
- for (var i = 0; i < boundLength; i++) {
58
- boundArgs[i] = "$" + i;
59
- }
60
- bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
61
- if (target.prototype) {
62
- var Empty = function Empty2() {
38
+ implementation = function bind(that) {
39
+ var target = this;
40
+ if (typeof target !== "function" || toStr.apply(target) !== funcType) {
41
+ throw new TypeError(ERROR_MESSAGE + target);
42
+ }
43
+ var args = slicy(arguments, 1);
44
+ var bound;
45
+ var binder = function() {
46
+ if (this instanceof bound) {
47
+ var result = target.apply(
48
+ this,
49
+ concatty(args, arguments)
50
+ );
51
+ if (Object(result) === result) {
52
+ return result;
53
+ }
54
+ return this;
55
+ }
56
+ return target.apply(
57
+ that,
58
+ concatty(args, arguments)
59
+ );
63
60
  };
64
- Empty.prototype = target.prototype;
65
- bound.prototype = new Empty();
66
- Empty.prototype = null;
67
- }
68
- return bound;
69
- };
61
+ var boundLength = max(0, target.length - args.length);
62
+ var boundArgs = [];
63
+ for (var i = 0; i < boundLength; i++) {
64
+ boundArgs[i] = "$" + i;
65
+ }
66
+ bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
67
+ if (target.prototype) {
68
+ var Empty = function Empty2() {
69
+ };
70
+ Empty.prototype = target.prototype;
71
+ bound.prototype = new Empty();
72
+ Empty.prototype = null;
73
+ }
74
+ return bound;
75
+ };
76
+ return implementation;
77
+ }
70
78
  export {
71
- implementation as default
79
+ requireImplementation as __require
72
80
  };
@@ -1,6 +1,14 @@
1
- import implementation$1 from "./implementation.mjs";
2
- var implementation = implementation$1;
3
- var functionBind = Function.prototype.bind || implementation;
1
+ import { __require as requireImplementation } from "./implementation.mjs";
2
+ var functionBind;
3
+ var hasRequiredFunctionBind;
4
+ function requireFunctionBind() {
5
+ if (hasRequiredFunctionBind)
6
+ return functionBind;
7
+ hasRequiredFunctionBind = 1;
8
+ var implementation = requireImplementation();
9
+ functionBind = Function.prototype.bind || implementation;
10
+ return functionBind;
11
+ }
4
12
  export {
5
- functionBind as default
13
+ requireFunctionBind as __require
6
14
  };
@@ -16,8 +16,8 @@ import esDefineProperty from "../../../es-define-property@1.0.1/node_modules/es-
16
16
  import { __require as requireHasSymbols } from "../../../has-symbols@1.1.0/node_modules/has-symbols/index.mjs";
17
17
  import { __require as requireGet } from "../../../dunder-proto@1.0.1/node_modules/dunder-proto/get.mjs";
18
18
  import { __require as requireFunctionApply } from "../../../call-bind-apply-helpers@1.0.1/node_modules/call-bind-apply-helpers/functionApply.mjs";
19
- import functionCall from "../../../call-bind-apply-helpers@1.0.1/node_modules/call-bind-apply-helpers/functionCall.mjs";
20
- import functionBind from "../../../function-bind@1.1.2/node_modules/function-bind/index.mjs";
19
+ import { __require as requireFunctionCall } from "../../../call-bind-apply-helpers@1.0.1/node_modules/call-bind-apply-helpers/functionCall.mjs";
20
+ import { __require as requireFunctionBind } from "../../../function-bind@1.1.2/node_modules/function-bind/index.mjs";
21
21
  import { __require as requireHasown } from "../../../hasown@2.0.2/node_modules/hasown/index.mjs";
22
22
  var undefined$1;
23
23
  var $Object = esObjectAtoms;
@@ -61,7 +61,7 @@ var hasSymbols = requireHasSymbols()();
61
61
  var getDunderProto = requireGet();
62
62
  var getProto = typeof Reflect === "function" && Reflect.getPrototypeOf || $Object.getPrototypeOf || getDunderProto;
63
63
  var $apply = requireFunctionApply();
64
- var $call = functionCall;
64
+ var $call = requireFunctionCall();
65
65
  var needsEval = {};
66
66
  var TypedArray = typeof Uint8Array === "undefined" || !getProto ? undefined$1 : getProto(Uint8Array);
67
67
  var INTRINSICS = {
@@ -227,7 +227,7 @@ var LEGACY_ALIASES = {
227
227
  "%WeakMapPrototype%": ["WeakMap", "prototype"],
228
228
  "%WeakSetPrototype%": ["WeakSet", "prototype"]
229
229
  };
230
- var bind = functionBind;
230
+ var bind = requireFunctionBind();
231
231
  var hasOwn = requireHasown();
232
232
  var $concat = bind.call($call, Array.prototype.concat);
233
233
  var $spliceApply = bind.call($apply, Array.prototype.splice);
@@ -1,4 +1,4 @@
1
- import functionBind from "../../../function-bind@1.1.2/node_modules/function-bind/index.mjs";
1
+ import { __require as requireFunctionBind } from "../../../function-bind@1.1.2/node_modules/function-bind/index.mjs";
2
2
  var hasown;
3
3
  var hasRequiredHasown;
4
4
  function requireHasown() {
@@ -7,7 +7,7 @@ function requireHasown() {
7
7
  hasRequiredHasown = 1;
8
8
  var call = Function.prototype.call;
9
9
  var $hasOwn = Object.prototype.hasOwnProperty;
10
- var bind = functionBind;
10
+ var bind = requireFunctionBind();
11
11
  hasown = bind.call(call, $hasOwn);
12
12
  return hasown;
13
13
  }