bm-admin-ui 1.0.18-alpha → 1.0.20-alpha

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 (152) hide show
  1. package/es/components/feedback/index.js +4 -4
  2. package/es/components/input-tags-display/index.js +61 -26
  3. package/es/components/multi-cascader-compose/index.js +4 -4
  4. package/es/components/search-filter/index.js +7 -5
  5. package/es/components/shops-filter/index.js +4 -4
  6. package/es/components/staffs-selector/index.js +4 -4
  7. package/es/components/upload/index.js +89 -30
  8. package/index.esm.js +469 -760
  9. package/index.js +389 -680
  10. package/lib/components/feedback/index.js +4 -4
  11. package/lib/components/input-tags-display/index.js +60 -25
  12. package/lib/components/multi-cascader-compose/index.js +4 -4
  13. package/lib/components/search-filter/index.js +7 -5
  14. package/lib/components/shops-filter/index.js +4 -4
  15. package/lib/components/staffs-selector/index.js +4 -4
  16. package/lib/components/upload/index.js +89 -30
  17. package/package.json +1 -1
  18. package/es/components/button/index.d.ts +0 -307
  19. package/es/components/button/src/button.d.ts +0 -12
  20. package/es/components/button/src/button.vue.d.ts +0 -308
  21. package/es/components/feedback/index.d.ts +0 -1037
  22. package/es/components/feedback/src/bmAlert.vue.d.ts +0 -193
  23. package/es/components/feedback/src/bmModal.vue.d.ts +0 -839
  24. package/es/components/float-table/index.d.ts +0 -70
  25. package/es/components/float-table/src/float-table.vue.d.ts +0 -69
  26. package/es/components/flow-designer/index.d.ts +0 -7
  27. package/es/components/flow-designer/src/flow-designer.vue.d.ts +0 -6
  28. package/es/components/form-designer/index.d.ts +0 -9
  29. package/es/components/form-designer/src/form-designer.vue.d.ts +0 -8
  30. package/es/components/index.d.ts +0 -13
  31. package/es/components/input-tags-display/index.d.ts +0 -72
  32. package/es/components/input-tags-display/src/input-tags-display.vue.d.ts +0 -69
  33. package/es/components/multi-cascader-compose/index.d.ts +0 -164
  34. package/es/components/multi-cascader-compose/src/multi-cascader-compose.vue.d.ts +0 -164
  35. package/es/components/multi-cascader-compose/src/props.d.ts +0 -40
  36. package/es/components/multi-cascader-compose/types.d.ts +0 -10
  37. package/es/components/over-tooltips/index.d.ts +0 -35
  38. package/es/components/over-tooltips/src/over-tooltips.vue.d.ts +0 -34
  39. package/es/components/search-filter/index.d.ts +0 -194
  40. package/es/components/search-filter/src/search-filter.d.ts +0 -57
  41. package/es/components/search-filter/src/search-filter.vue.d.ts +0 -193
  42. package/es/components/search-filter/src/search-reset-btn.vue.d.ts +0 -50
  43. package/es/components/shops-filter/index.d.ts +0 -99
  44. package/es/components/shops-filter/src/shops-filter.d.ts +0 -25
  45. package/es/components/shops-filter/src/shops-filter.vue.d.ts +0 -98
  46. package/es/components/staffs-selector/index.d.ts +0 -109
  47. package/es/components/staffs-selector/src/multipleCmp.vue.d.ts +0 -97
  48. package/es/components/staffs-selector/src/radioCmp.vue.d.ts +0 -31
  49. package/es/components/staffs-selector/src/staffs-selector.vue.d.ts +0 -108
  50. package/es/components/staffs-selector/src/variedCmp.vue.d.ts +0 -62
  51. package/es/components/timeline/index.d.ts +0 -107
  52. package/es/components/timeline/src/props.d.ts +0 -24
  53. package/es/components/timeline/src/timeline-item.vue.d.ts +0 -65
  54. package/es/components/timeline/src/timeline.vue.d.ts +0 -42
  55. package/es/components/upload/index.d.ts +0 -135
  56. package/es/components/upload/src/icons.d.ts +0 -13
  57. package/es/components/upload/src/upload.vue.d.ts +0 -134
  58. package/es/components/upload/utils/index.d.ts +0 -7
  59. package/es/index.d.ts +0 -6
  60. package/es/utils/bm-admin-ui-resolver.d.ts +0 -9
  61. package/es/utils/vxe-table.d.ts +0 -6
  62. package/es/utils/with-install.d.ts +0 -3
  63. package/lib/components/button/index.d.ts +0 -307
  64. package/lib/components/button/src/button.d.ts +0 -12
  65. package/lib/components/button/src/button.vue.d.ts +0 -308
  66. package/lib/components/feedback/index.d.ts +0 -1037
  67. package/lib/components/feedback/src/bmAlert.vue.d.ts +0 -193
  68. package/lib/components/feedback/src/bmModal.vue.d.ts +0 -839
  69. package/lib/components/float-table/index.d.ts +0 -70
  70. package/lib/components/float-table/src/float-table.vue.d.ts +0 -69
  71. package/lib/components/flow-designer/index.d.ts +0 -7
  72. package/lib/components/flow-designer/src/flow-designer.vue.d.ts +0 -6
  73. package/lib/components/form-designer/index.d.ts +0 -9
  74. package/lib/components/form-designer/src/form-designer.vue.d.ts +0 -8
  75. package/lib/components/index.d.ts +0 -13
  76. package/lib/components/input-tags-display/index.d.ts +0 -72
  77. package/lib/components/input-tags-display/src/input-tags-display.vue.d.ts +0 -69
  78. package/lib/components/multi-cascader-compose/index.d.ts +0 -164
  79. package/lib/components/multi-cascader-compose/src/multi-cascader-compose.vue.d.ts +0 -164
  80. package/lib/components/multi-cascader-compose/src/props.d.ts +0 -40
  81. package/lib/components/multi-cascader-compose/types.d.ts +0 -10
  82. package/lib/components/over-tooltips/index.d.ts +0 -35
  83. package/lib/components/over-tooltips/src/over-tooltips.vue.d.ts +0 -34
  84. package/lib/components/search-filter/index.d.ts +0 -194
  85. package/lib/components/search-filter/src/search-filter.d.ts +0 -57
  86. package/lib/components/search-filter/src/search-filter.vue.d.ts +0 -193
  87. package/lib/components/search-filter/src/search-reset-btn.vue.d.ts +0 -50
  88. package/lib/components/shops-filter/index.d.ts +0 -99
  89. package/lib/components/shops-filter/src/shops-filter.d.ts +0 -25
  90. package/lib/components/shops-filter/src/shops-filter.vue.d.ts +0 -98
  91. package/lib/components/staffs-selector/index.d.ts +0 -109
  92. package/lib/components/staffs-selector/src/multipleCmp.vue.d.ts +0 -97
  93. package/lib/components/staffs-selector/src/radioCmp.vue.d.ts +0 -31
  94. package/lib/components/staffs-selector/src/staffs-selector.vue.d.ts +0 -108
  95. package/lib/components/staffs-selector/src/variedCmp.vue.d.ts +0 -62
  96. package/lib/components/timeline/index.d.ts +0 -107
  97. package/lib/components/timeline/src/props.d.ts +0 -24
  98. package/lib/components/timeline/src/timeline-item.vue.d.ts +0 -65
  99. package/lib/components/timeline/src/timeline.vue.d.ts +0 -42
  100. package/lib/components/upload/index.d.ts +0 -135
  101. package/lib/components/upload/src/icons.d.ts +0 -13
  102. package/lib/components/upload/src/upload.vue.d.ts +0 -134
  103. package/lib/components/upload/utils/index.d.ts +0 -7
  104. package/lib/index.d.ts +0 -6
  105. package/lib/utils/bm-admin-ui-resolver.d.ts +0 -9
  106. package/lib/utils/vxe-table.d.ts +0 -6
  107. package/lib/utils/with-install.d.ts +0 -3
  108. package/types/components/button/index.d.ts +0 -307
  109. package/types/components/button/src/button.d.ts +0 -12
  110. package/types/components/button/src/button.vue.d.ts +0 -308
  111. package/types/components/feedback/index.d.ts +0 -1037
  112. package/types/components/feedback/src/bmAlert.vue.d.ts +0 -193
  113. package/types/components/feedback/src/bmModal.vue.d.ts +0 -839
  114. package/types/components/float-table/index.d.ts +0 -70
  115. package/types/components/float-table/src/float-table.vue.d.ts +0 -69
  116. package/types/components/flow-designer/index.d.ts +0 -7
  117. package/types/components/flow-designer/src/flow-designer.vue.d.ts +0 -6
  118. package/types/components/form-designer/index.d.ts +0 -9
  119. package/types/components/form-designer/src/form-designer.vue.d.ts +0 -8
  120. package/types/components/index.d.ts +0 -13
  121. package/types/components/input-tags-display/index.d.ts +0 -72
  122. package/types/components/input-tags-display/src/input-tags-display.vue.d.ts +0 -69
  123. package/types/components/multi-cascader-compose/index.d.ts +0 -164
  124. package/types/components/multi-cascader-compose/src/multi-cascader-compose.vue.d.ts +0 -164
  125. package/types/components/multi-cascader-compose/src/props.d.ts +0 -40
  126. package/types/components/multi-cascader-compose/types.d.ts +0 -10
  127. package/types/components/over-tooltips/index.d.ts +0 -35
  128. package/types/components/over-tooltips/src/over-tooltips.vue.d.ts +0 -34
  129. package/types/components/search-filter/index.d.ts +0 -194
  130. package/types/components/search-filter/src/search-filter.d.ts +0 -57
  131. package/types/components/search-filter/src/search-filter.vue.d.ts +0 -193
  132. package/types/components/search-filter/src/search-reset-btn.vue.d.ts +0 -50
  133. package/types/components/shops-filter/index.d.ts +0 -99
  134. package/types/components/shops-filter/src/shops-filter.d.ts +0 -25
  135. package/types/components/shops-filter/src/shops-filter.vue.d.ts +0 -98
  136. package/types/components/staffs-selector/index.d.ts +0 -109
  137. package/types/components/staffs-selector/src/multipleCmp.vue.d.ts +0 -97
  138. package/types/components/staffs-selector/src/radioCmp.vue.d.ts +0 -31
  139. package/types/components/staffs-selector/src/staffs-selector.vue.d.ts +0 -108
  140. package/types/components/staffs-selector/src/variedCmp.vue.d.ts +0 -62
  141. package/types/components/timeline/index.d.ts +0 -107
  142. package/types/components/timeline/src/props.d.ts +0 -24
  143. package/types/components/timeline/src/timeline-item.vue.d.ts +0 -65
  144. package/types/components/timeline/src/timeline.vue.d.ts +0 -42
  145. package/types/components/upload/index.d.ts +0 -135
  146. package/types/components/upload/src/icons.d.ts +0 -13
  147. package/types/components/upload/src/upload.vue.d.ts +0 -134
  148. package/types/components/upload/utils/index.d.ts +0 -7
  149. package/types/index.d.ts +0 -6
  150. package/types/utils/bm-admin-ui-resolver.d.ts +0 -9
  151. package/types/utils/vxe-table.d.ts +0 -6
  152. package/types/utils/with-install.d.ts +0 -3
package/index.esm.js CHANGED
@@ -3,7 +3,7 @@ var process = {
3
3
  NODE_ENV: 'production'
4
4
  }
5
5
  };
6
- import require$$1$1, { defineComponent, openBlock, createBlock, unref, withCtx, renderSlot, resolveComponent, ref, onMounted, createElementBlock, Fragment, isVNode, Comment, Text, inject, computed, createVNode, reactive, provide, watch, Transition, onUnmounted, Teleport, TransitionGroup, render as render$9, h as h$2, nextTick, watchEffect, onBeforeMount, onUpdated, onBeforeUnmount, getCurrentInstance, withDirectives, vShow, resolveDynamicComponent, useSlots, createSlots, createElementVNode, createTextVNode, mergeProps as mergeProps$1, markRaw, toRef, createApp, toRefs, resolveDirective, toDisplayString, createCommentVNode, renderList, withModifiers, normalizeClass, normalizeStyle, readonly, toHandlers } from 'vue';
6
+ import require$$1$1, { defineComponent, openBlock, createBlock, unref, withCtx, renderSlot, resolveComponent, ref as ref$1, onMounted, createElementBlock, Fragment, isVNode, Comment, Text, inject, computed, createVNode, reactive, provide, watch as watch$1, Transition, onUnmounted, Teleport, TransitionGroup, render as render$9, h as h$2, nextTick, watchEffect, onBeforeMount, onUpdated, onBeforeUnmount, getCurrentInstance, withDirectives, vShow, resolveDynamicComponent, useSlots, createSlots, createElementVNode, createTextVNode, mergeProps as mergeProps$1, markRaw, toRef, createApp, toRefs, resolveDirective, toDisplayString, createCommentVNode, renderList, withModifiers, normalizeClass, normalizeStyle, readonly, toHandlers, normalizeProps, guardReactiveProps } from 'vue';
7
7
 
8
8
  const withInstall$2 = (comp) => {
9
9
  comp.install = function (app) {
@@ -119,7 +119,7 @@ var _extends$2 = {exports: {}};
119
119
 
120
120
  (function (module) {
121
121
  function _extends() {
122
- module.exports = _extends = Object.assign || function (target) {
122
+ module.exports = _extends = Object.assign ? Object.assign.bind() : function (target) {
123
123
  for (var i = 1; i < arguments.length; i++) {
124
124
  var source = arguments[i];
125
125
 
@@ -3178,7 +3178,7 @@ function boundAlpha(a) {
3178
3178
  */
3179
3179
  function convertToPercentage(n) {
3180
3180
  if (n <= 1) {
3181
- return Number(n) * 100 + "%";
3181
+ return "".concat(Number(n) * 100, "%");
3182
3182
  }
3183
3183
  return n;
3184
3184
  }
@@ -3644,12 +3644,12 @@ var CSS_INTEGER = '[-\\+]?\\d+%?';
3644
3644
  // <http://www.w3.org/TR/css3-values/#number-value>
3645
3645
  var CSS_NUMBER = '[-\\+]?\\d*\\.\\d+%?';
3646
3646
  // Allow positive/negative integer/number. Don't capture the either/or, just the entire outcome.
3647
- var CSS_UNIT = "(?:" + CSS_NUMBER + ")|(?:" + CSS_INTEGER + ")";
3647
+ var CSS_UNIT = "(?:".concat(CSS_NUMBER, ")|(?:").concat(CSS_INTEGER, ")");
3648
3648
  // Actual matching.
3649
3649
  // Parentheses and commas are optional, but not required.
3650
3650
  // Whitespace can take the place of commas or opening paren
3651
- var PERMISSIVE_MATCH3 = "[\\s|\\(]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")\\s*\\)?";
3652
- var PERMISSIVE_MATCH4 = "[\\s|\\(]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")\\s*\\)?";
3651
+ var PERMISSIVE_MATCH3 = "[\\s|\\(]+(".concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")\\s*\\)?");
3652
+ var PERMISSIVE_MATCH4 = "[\\s|\\(]+(".concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")\\s*\\)?");
3653
3653
  var matchers = {
3654
3654
  CSS_UNIT: new RegExp(CSS_UNIT),
3655
3655
  rgb: new RegExp('rgb' + PERMISSIVE_MATCH3),
@@ -3875,7 +3875,7 @@ var TinyColor = /** @class */ (function () {
3875
3875
  var h = Math.round(hsv.h * 360);
3876
3876
  var s = Math.round(hsv.s * 100);
3877
3877
  var v = Math.round(hsv.v * 100);
3878
- return this.a === 1 ? "hsv(" + h + ", " + s + "%, " + v + "%)" : "hsva(" + h + ", " + s + "%, " + v + "%, " + this.roundA + ")";
3878
+ return this.a === 1 ? "hsv(".concat(h, ", ").concat(s, "%, ").concat(v, "%)") : "hsva(".concat(h, ", ").concat(s, "%, ").concat(v, "%, ").concat(this.roundA, ")");
3879
3879
  };
3880
3880
  /**
3881
3881
  * Returns the object as a HSLA object.
@@ -3893,7 +3893,7 @@ var TinyColor = /** @class */ (function () {
3893
3893
  var h = Math.round(hsl.h * 360);
3894
3894
  var s = Math.round(hsl.s * 100);
3895
3895
  var l = Math.round(hsl.l * 100);
3896
- return this.a === 1 ? "hsl(" + h + ", " + s + "%, " + l + "%)" : "hsla(" + h + ", " + s + "%, " + l + "%, " + this.roundA + ")";
3896
+ return this.a === 1 ? "hsl(".concat(h, ", ").concat(s, "%, ").concat(l, "%)") : "hsla(".concat(h, ", ").concat(s, "%, ").concat(l, "%, ").concat(this.roundA, ")");
3897
3897
  };
3898
3898
  /**
3899
3899
  * Returns the hex value of the color.
@@ -3946,13 +3946,13 @@ var TinyColor = /** @class */ (function () {
3946
3946
  var r = Math.round(this.r);
3947
3947
  var g = Math.round(this.g);
3948
3948
  var b = Math.round(this.b);
3949
- return this.a === 1 ? "rgb(" + r + ", " + g + ", " + b + ")" : "rgba(" + r + ", " + g + ", " + b + ", " + this.roundA + ")";
3949
+ return this.a === 1 ? "rgb(".concat(r, ", ").concat(g, ", ").concat(b, ")") : "rgba(".concat(r, ", ").concat(g, ", ").concat(b, ", ").concat(this.roundA, ")");
3950
3950
  };
3951
3951
  /**
3952
3952
  * Returns the object as a RGBA object.
3953
3953
  */
3954
3954
  TinyColor.prototype.toPercentageRgb = function () {
3955
- var fmt = function (x) { return Math.round(bound01(x, 255) * 100) + "%"; };
3955
+ var fmt = function (x) { return "".concat(Math.round(bound01(x, 255) * 100), "%"); };
3956
3956
  return {
3957
3957
  r: fmt(this.r),
3958
3958
  g: fmt(this.g),
@@ -3966,8 +3966,8 @@ var TinyColor = /** @class */ (function () {
3966
3966
  TinyColor.prototype.toPercentageRgbString = function () {
3967
3967
  var rnd = function (x) { return Math.round(bound01(x, 255) * 100); };
3968
3968
  return this.a === 1
3969
- ? "rgb(" + rnd(this.r) + "%, " + rnd(this.g) + "%, " + rnd(this.b) + "%)"
3970
- : "rgba(" + rnd(this.r) + "%, " + rnd(this.g) + "%, " + rnd(this.b) + "%, " + this.roundA + ")";
3969
+ ? "rgb(".concat(rnd(this.r), "%, ").concat(rnd(this.g), "%, ").concat(rnd(this.b), "%)")
3970
+ : "rgba(".concat(rnd(this.r), "%, ").concat(rnd(this.g), "%, ").concat(rnd(this.b), "%, ").concat(this.roundA, ")");
3971
3971
  };
3972
3972
  /**
3973
3973
  * The 'real' name of the color -if there is one.
@@ -4335,7 +4335,7 @@ function toMsFilter(firstColor, secondColor) {
4335
4335
  var s = new TinyColor(secondColor);
4336
4336
  secondHex8String = '#' + rgbaToArgbHex(s.r, s.g, s.b, s.a);
4337
4337
  }
4338
- return "progid:DXImageTransform.Microsoft.gradient(" + gradientType + "startColorstr=" + hex8String + ",endColorstr=" + secondHex8String + ")";
4338
+ return "progid:DXImageTransform.Microsoft.gradient(".concat(gradientType, "startColorstr=").concat(hex8String, ",endColorstr=").concat(secondHex8String, ")");
4339
4339
  }
4340
4340
 
4341
4341
  /**
@@ -5787,765 +5787,379 @@ var default_1$2 = message$1.default = _default$V;
5787
5787
 
5788
5788
  var notification$1 = {};
5789
5789
 
5790
- var runtime = {exports: {}};
5791
-
5792
- /**
5793
- * Copyright (c) 2014-present, Facebook, Inc.
5794
- *
5795
- * This source code is licensed under the MIT license found in the
5796
- * LICENSE file in the root directory of this source tree.
5797
- */
5790
+ var regeneratorRuntime$1 = {exports: {}};
5798
5791
 
5799
5792
  (function (module) {
5800
- var runtime = (function (exports) {
5793
+ var _typeof = _typeof$c.exports["default"];
5801
5794
 
5802
- var Op = Object.prototype;
5803
- var hasOwn = Op.hasOwnProperty;
5804
- var undefined$1; // More compressible than void 0.
5805
- var $Symbol = typeof Symbol === "function" ? Symbol : {};
5806
- var iteratorSymbol = $Symbol.iterator || "@@iterator";
5807
- var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";
5808
- var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
5795
+ function _regeneratorRuntime() {
5796
+ /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
5797
+
5798
+ module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
5799
+ return exports;
5800
+ }, module.exports.__esModule = true, module.exports["default"] = module.exports;
5801
+ var exports = {},
5802
+ Op = Object.prototype,
5803
+ hasOwn = Op.hasOwnProperty,
5804
+ $Symbol = "function" == typeof Symbol ? Symbol : {},
5805
+ iteratorSymbol = $Symbol.iterator || "@@iterator",
5806
+ asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
5807
+ toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
5809
5808
 
5810
5809
  function define(obj, key, value) {
5811
- Object.defineProperty(obj, key, {
5810
+ return Object.defineProperty(obj, key, {
5812
5811
  value: value,
5813
- enumerable: true,
5814
- configurable: true,
5815
- writable: true
5816
- });
5817
- return obj[key];
5812
+ enumerable: !0,
5813
+ configurable: !0,
5814
+ writable: !0
5815
+ }), obj[key];
5818
5816
  }
5817
+
5819
5818
  try {
5820
- // IE 8 has a broken Object.defineProperty that only works on DOM objects.
5821
5819
  define({}, "");
5822
5820
  } catch (err) {
5823
- define = function(obj, key, value) {
5821
+ define = function define(obj, key, value) {
5824
5822
  return obj[key] = value;
5825
5823
  };
5826
5824
  }
5827
5825
 
5828
5826
  function wrap(innerFn, outerFn, self, tryLocsList) {
5829
- // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.
5830
- var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;
5831
- var generator = Object.create(protoGenerator.prototype);
5832
- var context = new Context(tryLocsList || []);
5827
+ var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
5828
+ generator = Object.create(protoGenerator.prototype),
5829
+ context = new Context(tryLocsList || []);
5830
+ return generator._invoke = function (innerFn, self, context) {
5831
+ var state = "suspendedStart";
5832
+ return function (method, arg) {
5833
+ if ("executing" === state) throw new Error("Generator is already running");
5834
+
5835
+ if ("completed" === state) {
5836
+ if ("throw" === method) throw arg;
5837
+ return doneResult();
5838
+ }
5839
+
5840
+ for (context.method = method, context.arg = arg;;) {
5841
+ var delegate = context.delegate;
5833
5842
 
5834
- // The ._invoke method unifies the implementations of the .next,
5835
- // .throw, and .return methods.
5836
- generator._invoke = makeInvokeMethod(innerFn, self, context);
5843
+ if (delegate) {
5844
+ var delegateResult = maybeInvokeDelegate(delegate, context);
5837
5845
 
5838
- return generator;
5846
+ if (delegateResult) {
5847
+ if (delegateResult === ContinueSentinel) continue;
5848
+ return delegateResult;
5849
+ }
5850
+ }
5851
+
5852
+ if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
5853
+ if ("suspendedStart" === state) throw state = "completed", context.arg;
5854
+ context.dispatchException(context.arg);
5855
+ } else "return" === context.method && context.abrupt("return", context.arg);
5856
+ state = "executing";
5857
+ var record = tryCatch(innerFn, self, context);
5858
+
5859
+ if ("normal" === record.type) {
5860
+ if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
5861
+ return {
5862
+ value: record.arg,
5863
+ done: context.done
5864
+ };
5865
+ }
5866
+
5867
+ "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
5868
+ }
5869
+ };
5870
+ }(innerFn, self, context), generator;
5839
5871
  }
5840
- exports.wrap = wrap;
5841
5872
 
5842
- // Try/catch helper to minimize deoptimizations. Returns a completion
5843
- // record like context.tryEntries[i].completion. This interface could
5844
- // have been (and was previously) designed to take a closure to be
5845
- // invoked without arguments, but in all the cases we care about we
5846
- // already have an existing method we want to call, so there's no need
5847
- // to create a new function object. We can even get away with assuming
5848
- // the method takes exactly one argument, since that happens to be true
5849
- // in every case, so we don't have to touch the arguments object. The
5850
- // only additional allocation required is the completion record, which
5851
- // has a stable shape and so hopefully should be cheap to allocate.
5852
5873
  function tryCatch(fn, obj, arg) {
5853
5874
  try {
5854
- return { type: "normal", arg: fn.call(obj, arg) };
5875
+ return {
5876
+ type: "normal",
5877
+ arg: fn.call(obj, arg)
5878
+ };
5855
5879
  } catch (err) {
5856
- return { type: "throw", arg: err };
5880
+ return {
5881
+ type: "throw",
5882
+ arg: err
5883
+ };
5857
5884
  }
5858
5885
  }
5859
5886
 
5860
- var GenStateSuspendedStart = "suspendedStart";
5861
- var GenStateSuspendedYield = "suspendedYield";
5862
- var GenStateExecuting = "executing";
5863
- var GenStateCompleted = "completed";
5864
-
5865
- // Returning this object from the innerFn has the same effect as
5866
- // breaking out of the dispatch switch statement.
5887
+ exports.wrap = wrap;
5867
5888
  var ContinueSentinel = {};
5868
5889
 
5869
- // Dummy constructor functions that we use as the .constructor and
5870
- // .constructor.prototype properties for functions that return Generator
5871
- // objects. For full spec compliance, you may wish to configure your
5872
- // minifier not to mangle the names of these two functions.
5873
5890
  function Generator() {}
5891
+
5874
5892
  function GeneratorFunction() {}
5893
+
5875
5894
  function GeneratorFunctionPrototype() {}
5876
5895
 
5877
- // This is a polyfill for %IteratorPrototype% for environments that
5878
- // don't natively support it.
5879
5896
  var IteratorPrototype = {};
5880
5897
  define(IteratorPrototype, iteratorSymbol, function () {
5881
5898
  return this;
5882
5899
  });
5900
+ var getProto = Object.getPrototypeOf,
5901
+ NativeIteratorPrototype = getProto && getProto(getProto(values([])));
5902
+ NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
5903
+ var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
5883
5904
 
5884
- var getProto = Object.getPrototypeOf;
5885
- var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
5886
- if (NativeIteratorPrototype &&
5887
- NativeIteratorPrototype !== Op &&
5888
- hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {
5889
- // This environment has a native %IteratorPrototype%; use it instead
5890
- // of the polyfill.
5891
- IteratorPrototype = NativeIteratorPrototype;
5892
- }
5893
-
5894
- var Gp = GeneratorFunctionPrototype.prototype =
5895
- Generator.prototype = Object.create(IteratorPrototype);
5896
- GeneratorFunction.prototype = GeneratorFunctionPrototype;
5897
- define(Gp, "constructor", GeneratorFunctionPrototype);
5898
- define(GeneratorFunctionPrototype, "constructor", GeneratorFunction);
5899
- GeneratorFunction.displayName = define(
5900
- GeneratorFunctionPrototype,
5901
- toStringTagSymbol,
5902
- "GeneratorFunction"
5903
- );
5904
-
5905
- // Helper for defining the .next, .throw, and .return methods of the
5906
- // Iterator interface in terms of a single ._invoke method.
5907
5905
  function defineIteratorMethods(prototype) {
5908
- ["next", "throw", "return"].forEach(function(method) {
5909
- define(prototype, method, function(arg) {
5906
+ ["next", "throw", "return"].forEach(function (method) {
5907
+ define(prototype, method, function (arg) {
5910
5908
  return this._invoke(method, arg);
5911
5909
  });
5912
5910
  });
5913
5911
  }
5914
5912
 
5915
- exports.isGeneratorFunction = function(genFun) {
5916
- var ctor = typeof genFun === "function" && genFun.constructor;
5917
- return ctor
5918
- ? ctor === GeneratorFunction ||
5919
- // For the native GeneratorFunction constructor, the best we can
5920
- // do is to check its .name property.
5921
- (ctor.displayName || ctor.name) === "GeneratorFunction"
5922
- : false;
5923
- };
5924
-
5925
- exports.mark = function(genFun) {
5926
- if (Object.setPrototypeOf) {
5927
- Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
5928
- } else {
5929
- genFun.__proto__ = GeneratorFunctionPrototype;
5930
- define(genFun, toStringTagSymbol, "GeneratorFunction");
5931
- }
5932
- genFun.prototype = Object.create(Gp);
5933
- return genFun;
5934
- };
5935
-
5936
- // Within the body of any async function, `await x` is transformed to
5937
- // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test
5938
- // `hasOwn.call(value, "__await")` to determine if the yielded value is
5939
- // meant to be awaited.
5940
- exports.awrap = function(arg) {
5941
- return { __await: arg };
5942
- };
5943
-
5944
5913
  function AsyncIterator(generator, PromiseImpl) {
5945
5914
  function invoke(method, arg, resolve, reject) {
5946
5915
  var record = tryCatch(generator[method], generator, arg);
5947
- if (record.type === "throw") {
5948
- reject(record.arg);
5949
- } else {
5950
- var result = record.arg;
5951
- var value = result.value;
5952
- if (value &&
5953
- typeof value === "object" &&
5954
- hasOwn.call(value, "__await")) {
5955
- return PromiseImpl.resolve(value.__await).then(function(value) {
5956
- invoke("next", value, resolve, reject);
5957
- }, function(err) {
5958
- invoke("throw", err, resolve, reject);
5959
- });
5960
- }
5961
5916
 
5962
- return PromiseImpl.resolve(value).then(function(unwrapped) {
5963
- // When a yielded Promise is resolved, its final value becomes
5964
- // the .value of the Promise<{value,done}> result for the
5965
- // current iteration.
5966
- result.value = unwrapped;
5967
- resolve(result);
5968
- }, function(error) {
5969
- // If a rejected Promise was yielded, throw the rejection back
5970
- // into the async generator function so it can be handled there.
5917
+ if ("throw" !== record.type) {
5918
+ var result = record.arg,
5919
+ value = result.value;
5920
+ return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
5921
+ invoke("next", value, resolve, reject);
5922
+ }, function (err) {
5923
+ invoke("throw", err, resolve, reject);
5924
+ }) : PromiseImpl.resolve(value).then(function (unwrapped) {
5925
+ result.value = unwrapped, resolve(result);
5926
+ }, function (error) {
5971
5927
  return invoke("throw", error, resolve, reject);
5972
5928
  });
5973
5929
  }
5930
+
5931
+ reject(record.arg);
5974
5932
  }
5975
5933
 
5976
5934
  var previousPromise;
5977
5935
 
5978
- function enqueue(method, arg) {
5936
+ this._invoke = function (method, arg) {
5979
5937
  function callInvokeWithMethodAndArg() {
5980
- return new PromiseImpl(function(resolve, reject) {
5938
+ return new PromiseImpl(function (resolve, reject) {
5981
5939
  invoke(method, arg, resolve, reject);
5982
5940
  });
5983
5941
  }
5984
5942
 
5985
- return previousPromise =
5986
- // If enqueue has been called before, then we want to wait until
5987
- // all previous Promises have been resolved before calling invoke,
5988
- // so that results are always delivered in the correct order. If
5989
- // enqueue has not been called before, then it is important to
5990
- // call invoke immediately, without waiting on a callback to fire,
5991
- // so that the async generator function has the opportunity to do
5992
- // any necessary setup in a predictable way. This predictability
5993
- // is why the Promise constructor synchronously invokes its
5994
- // executor callback, and why async functions synchronously
5995
- // execute code before the first await. Since we implement simple
5996
- // async functions in terms of async generators, it is especially
5997
- // important to get this right, even though it requires care.
5998
- previousPromise ? previousPromise.then(
5999
- callInvokeWithMethodAndArg,
6000
- // Avoid propagating failures to Promises returned by later
6001
- // invocations of the iterator.
6002
- callInvokeWithMethodAndArg
6003
- ) : callInvokeWithMethodAndArg();
6004
- }
6005
-
6006
- // Define the unified helper method that is used to implement .next,
6007
- // .throw, and .return (see defineIteratorMethods).
6008
- this._invoke = enqueue;
6009
- }
6010
-
6011
- defineIteratorMethods(AsyncIterator.prototype);
6012
- define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
6013
- return this;
6014
- });
6015
- exports.AsyncIterator = AsyncIterator;
6016
-
6017
- // Note that simple async functions are implemented on top of
6018
- // AsyncIterator objects; they just return a Promise for the value of
6019
- // the final result produced by the iterator.
6020
- exports.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {
6021
- if (PromiseImpl === void 0) PromiseImpl = Promise;
6022
-
6023
- var iter = new AsyncIterator(
6024
- wrap(innerFn, outerFn, self, tryLocsList),
6025
- PromiseImpl
6026
- );
6027
-
6028
- return exports.isGeneratorFunction(outerFn)
6029
- ? iter // If outerFn is a generator, return the full iterator.
6030
- : iter.next().then(function(result) {
6031
- return result.done ? result.value : iter.next();
6032
- });
6033
- };
6034
-
6035
- function makeInvokeMethod(innerFn, self, context) {
6036
- var state = GenStateSuspendedStart;
6037
-
6038
- return function invoke(method, arg) {
6039
- if (state === GenStateExecuting) {
6040
- throw new Error("Generator is already running");
6041
- }
6042
-
6043
- if (state === GenStateCompleted) {
6044
- if (method === "throw") {
6045
- throw arg;
6046
- }
6047
-
6048
- // Be forgiving, per 25.3.3.3.3 of the spec:
6049
- // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume
6050
- return doneResult();
6051
- }
6052
-
6053
- context.method = method;
6054
- context.arg = arg;
6055
-
6056
- while (true) {
6057
- var delegate = context.delegate;
6058
- if (delegate) {
6059
- var delegateResult = maybeInvokeDelegate(delegate, context);
6060
- if (delegateResult) {
6061
- if (delegateResult === ContinueSentinel) continue;
6062
- return delegateResult;
6063
- }
6064
- }
6065
-
6066
- if (context.method === "next") {
6067
- // Setting context._sent for legacy support of Babel's
6068
- // function.sent implementation.
6069
- context.sent = context._sent = context.arg;
6070
-
6071
- } else if (context.method === "throw") {
6072
- if (state === GenStateSuspendedStart) {
6073
- state = GenStateCompleted;
6074
- throw context.arg;
6075
- }
6076
-
6077
- context.dispatchException(context.arg);
6078
-
6079
- } else if (context.method === "return") {
6080
- context.abrupt("return", context.arg);
6081
- }
6082
-
6083
- state = GenStateExecuting;
6084
-
6085
- var record = tryCatch(innerFn, self, context);
6086
- if (record.type === "normal") {
6087
- // If an exception is thrown from innerFn, we leave state ===
6088
- // GenStateExecuting and loop back for another invocation.
6089
- state = context.done
6090
- ? GenStateCompleted
6091
- : GenStateSuspendedYield;
6092
-
6093
- if (record.arg === ContinueSentinel) {
6094
- continue;
6095
- }
6096
-
6097
- return {
6098
- value: record.arg,
6099
- done: context.done
6100
- };
6101
-
6102
- } else if (record.type === "throw") {
6103
- state = GenStateCompleted;
6104
- // Dispatch the exception by looping back around to the
6105
- // context.dispatchException(context.arg) call above.
6106
- context.method = "throw";
6107
- context.arg = record.arg;
6108
- }
6109
- }
5943
+ return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
6110
5944
  };
6111
5945
  }
6112
5946
 
6113
- // Call delegate.iterator[context.method](context.arg) and handle the
6114
- // result, either by returning a { value, done } result from the
6115
- // delegate iterator, or by modifying context.method and context.arg,
6116
- // setting context.delegate to null, and returning the ContinueSentinel.
6117
5947
  function maybeInvokeDelegate(delegate, context) {
6118
5948
  var method = delegate.iterator[context.method];
6119
- if (method === undefined$1) {
6120
- // A .throw or .return when the delegate iterator has no .throw
6121
- // method always terminates the yield* loop.
6122
- context.delegate = null;
6123
-
6124
- if (context.method === "throw") {
6125
- // Note: ["return"] must be used for ES3 parsing compatibility.
6126
- if (delegate.iterator["return"]) {
6127
- // If the delegate iterator has a return method, give it a
6128
- // chance to clean up.
6129
- context.method = "return";
6130
- context.arg = undefined$1;
6131
- maybeInvokeDelegate(delegate, context);
6132
-
6133
- if (context.method === "throw") {
6134
- // If maybeInvokeDelegate(context) changed context.method from
6135
- // "return" to "throw", let that override the TypeError below.
6136
- return ContinueSentinel;
6137
- }
6138
- }
6139
5949
 
6140
- context.method = "throw";
6141
- context.arg = new TypeError(
6142
- "The iterator does not provide a 'throw' method");
5950
+ if (undefined === method) {
5951
+ if (context.delegate = null, "throw" === context.method) {
5952
+ if (delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel;
5953
+ context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
6143
5954
  }
6144
5955
 
6145
5956
  return ContinueSentinel;
6146
5957
  }
6147
5958
 
6148
5959
  var record = tryCatch(method, delegate.iterator, context.arg);
6149
-
6150
- if (record.type === "throw") {
6151
- context.method = "throw";
6152
- context.arg = record.arg;
6153
- context.delegate = null;
6154
- return ContinueSentinel;
6155
- }
6156
-
5960
+ if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
6157
5961
  var info = record.arg;
6158
-
6159
- if (! info) {
6160
- context.method = "throw";
6161
- context.arg = new TypeError("iterator result is not an object");
6162
- context.delegate = null;
6163
- return ContinueSentinel;
6164
- }
6165
-
6166
- if (info.done) {
6167
- // Assign the result of the finished delegate to the temporary
6168
- // variable specified by delegate.resultName (see delegateYield).
6169
- context[delegate.resultName] = info.value;
6170
-
6171
- // Resume execution at the desired location (see delegateYield).
6172
- context.next = delegate.nextLoc;
6173
-
6174
- // If context.method was "throw" but the delegate handled the
6175
- // exception, let the outer generator proceed normally. If
6176
- // context.method was "next", forget context.arg since it has been
6177
- // "consumed" by the delegate iterator. If context.method was
6178
- // "return", allow the original .return call to continue in the
6179
- // outer generator.
6180
- if (context.method !== "return") {
6181
- context.method = "next";
6182
- context.arg = undefined$1;
6183
- }
6184
-
6185
- } else {
6186
- // Re-yield the result returned by the delegate method.
6187
- return info;
6188
- }
6189
-
6190
- // The delegate iterator is finished, so forget it and continue with
6191
- // the outer generator.
6192
- context.delegate = null;
6193
- return ContinueSentinel;
5962
+ return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
6194
5963
  }
6195
5964
 
6196
- // Define Generator.prototype.{next,throw,return} in terms of the
6197
- // unified ._invoke helper method.
6198
- defineIteratorMethods(Gp);
6199
-
6200
- define(Gp, toStringTagSymbol, "Generator");
6201
-
6202
- // A Generator should always return itself as the iterator object when the
6203
- // @@iterator function is called on it. Some browsers' implementations of the
6204
- // iterator prototype chain incorrectly implement this, causing the Generator
6205
- // object to not be returned from this call. This ensures that doesn't happen.
6206
- // See https://github.com/facebook/regenerator/issues/274 for more details.
6207
- define(Gp, iteratorSymbol, function() {
6208
- return this;
6209
- });
6210
-
6211
- define(Gp, "toString", function() {
6212
- return "[object Generator]";
6213
- });
6214
-
6215
5965
  function pushTryEntry(locs) {
6216
- var entry = { tryLoc: locs[0] };
6217
-
6218
- if (1 in locs) {
6219
- entry.catchLoc = locs[1];
6220
- }
6221
-
6222
- if (2 in locs) {
6223
- entry.finallyLoc = locs[2];
6224
- entry.afterLoc = locs[3];
6225
- }
6226
-
6227
- this.tryEntries.push(entry);
5966
+ var entry = {
5967
+ tryLoc: locs[0]
5968
+ };
5969
+ 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
6228
5970
  }
6229
5971
 
6230
5972
  function resetTryEntry(entry) {
6231
5973
  var record = entry.completion || {};
6232
- record.type = "normal";
6233
- delete record.arg;
6234
- entry.completion = record;
5974
+ record.type = "normal", delete record.arg, entry.completion = record;
6235
5975
  }
6236
5976
 
6237
5977
  function Context(tryLocsList) {
6238
- // The root entry object (effectively a try statement without a catch
6239
- // or a finally block) gives us a place to store values thrown from
6240
- // locations where there is no enclosing try statement.
6241
- this.tryEntries = [{ tryLoc: "root" }];
6242
- tryLocsList.forEach(pushTryEntry, this);
6243
- this.reset(true);
5978
+ this.tryEntries = [{
5979
+ tryLoc: "root"
5980
+ }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
6244
5981
  }
6245
5982
 
6246
- exports.keys = function(object) {
6247
- var keys = [];
6248
- for (var key in object) {
6249
- keys.push(key);
6250
- }
6251
- keys.reverse();
6252
-
6253
- // Rather than returning an object with a next method, we keep
6254
- // things simple and return the next function itself.
6255
- return function next() {
6256
- while (keys.length) {
6257
- var key = keys.pop();
6258
- if (key in object) {
6259
- next.value = key;
6260
- next.done = false;
6261
- return next;
6262
- }
6263
- }
6264
-
6265
- // To avoid creating an additional object, we just hang the .value
6266
- // and .done properties off the next function object itself. This
6267
- // also ensures that the minifier will not anonymize the function.
6268
- next.done = true;
6269
- return next;
6270
- };
6271
- };
6272
-
6273
5983
  function values(iterable) {
6274
5984
  if (iterable) {
6275
5985
  var iteratorMethod = iterable[iteratorSymbol];
6276
- if (iteratorMethod) {
6277
- return iteratorMethod.call(iterable);
6278
- }
6279
-
6280
- if (typeof iterable.next === "function") {
6281
- return iterable;
6282
- }
5986
+ if (iteratorMethod) return iteratorMethod.call(iterable);
5987
+ if ("function" == typeof iterable.next) return iterable;
6283
5988
 
6284
5989
  if (!isNaN(iterable.length)) {
6285
- var i = -1, next = function next() {
6286
- while (++i < iterable.length) {
6287
- if (hasOwn.call(iterable, i)) {
6288
- next.value = iterable[i];
6289
- next.done = false;
6290
- return next;
6291
- }
5990
+ var i = -1,
5991
+ next = function next() {
5992
+ for (; ++i < iterable.length;) {
5993
+ if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
6292
5994
  }
6293
5995
 
6294
- next.value = undefined$1;
6295
- next.done = true;
6296
-
6297
- return next;
5996
+ return next.value = undefined, next.done = !0, next;
6298
5997
  };
6299
5998
 
6300
5999
  return next.next = next;
6301
6000
  }
6302
6001
  }
6303
6002
 
6304
- // Return an iterator with no values.
6305
- return { next: doneResult };
6003
+ return {
6004
+ next: doneResult
6005
+ };
6306
6006
  }
6307
- exports.values = values;
6308
6007
 
6309
6008
  function doneResult() {
6310
- return { value: undefined$1, done: true };
6009
+ return {
6010
+ value: undefined,
6011
+ done: !0
6012
+ };
6311
6013
  }
6312
6014
 
6313
- Context.prototype = {
6314
- constructor: Context,
6315
-
6316
- reset: function(skipTempReset) {
6317
- this.prev = 0;
6318
- this.next = 0;
6319
- // Resetting context._sent for legacy support of Babel's
6320
- // function.sent implementation.
6321
- this.sent = this._sent = undefined$1;
6322
- this.done = false;
6323
- this.delegate = null;
6324
-
6325
- this.method = "next";
6326
- this.arg = undefined$1;
6327
-
6328
- this.tryEntries.forEach(resetTryEntry);
6329
-
6330
- if (!skipTempReset) {
6331
- for (var name in this) {
6332
- // Not sure about the optimal order of these conditions:
6333
- if (name.charAt(0) === "t" &&
6334
- hasOwn.call(this, name) &&
6335
- !isNaN(+name.slice(1))) {
6336
- this[name] = undefined$1;
6337
- }
6338
- }
6339
- }
6340
- },
6015
+ return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
6016
+ var ctor = "function" == typeof genFun && genFun.constructor;
6017
+ return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
6018
+ }, exports.mark = function (genFun) {
6019
+ return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
6020
+ }, exports.awrap = function (arg) {
6021
+ return {
6022
+ __await: arg
6023
+ };
6024
+ }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
6025
+ return this;
6026
+ }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
6027
+ void 0 === PromiseImpl && (PromiseImpl = Promise);
6028
+ var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
6029
+ return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
6030
+ return result.done ? result.value : iter.next();
6031
+ });
6032
+ }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
6033
+ return this;
6034
+ }), define(Gp, "toString", function () {
6035
+ return "[object Generator]";
6036
+ }), exports.keys = function (object) {
6037
+ var keys = [];
6341
6038
 
6342
- stop: function() {
6343
- this.done = true;
6039
+ for (var key in object) {
6040
+ keys.push(key);
6041
+ }
6344
6042
 
6345
- var rootEntry = this.tryEntries[0];
6346
- var rootRecord = rootEntry.completion;
6347
- if (rootRecord.type === "throw") {
6348
- throw rootRecord.arg;
6043
+ return keys.reverse(), function next() {
6044
+ for (; keys.length;) {
6045
+ var key = keys.pop();
6046
+ if (key in object) return next.value = key, next.done = !1, next;
6349
6047
  }
6350
6048
 
6049
+ return next.done = !0, next;
6050
+ };
6051
+ }, exports.values = values, Context.prototype = {
6052
+ constructor: Context,
6053
+ reset: function reset(skipTempReset) {
6054
+ if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) {
6055
+ "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
6056
+ }
6057
+ },
6058
+ stop: function stop() {
6059
+ this.done = !0;
6060
+ var rootRecord = this.tryEntries[0].completion;
6061
+ if ("throw" === rootRecord.type) throw rootRecord.arg;
6351
6062
  return this.rval;
6352
6063
  },
6353
-
6354
- dispatchException: function(exception) {
6355
- if (this.done) {
6356
- throw exception;
6357
- }
6358
-
6064
+ dispatchException: function dispatchException(exception) {
6065
+ if (this.done) throw exception;
6359
6066
  var context = this;
6360
- function handle(loc, caught) {
6361
- record.type = "throw";
6362
- record.arg = exception;
6363
- context.next = loc;
6364
-
6365
- if (caught) {
6366
- // If the dispatched exception was caught by a catch block,
6367
- // then let that catch block handle the exception normally.
6368
- context.method = "next";
6369
- context.arg = undefined$1;
6370
- }
6371
6067
 
6372
- return !! caught;
6068
+ function handle(loc, caught) {
6069
+ return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
6373
6070
  }
6374
6071
 
6375
6072
  for (var i = this.tryEntries.length - 1; i >= 0; --i) {
6376
- var entry = this.tryEntries[i];
6377
- var record = entry.completion;
6378
-
6379
- if (entry.tryLoc === "root") {
6380
- // Exception thrown outside of any try block that could handle
6381
- // it, so set the completion value of the entire function to
6382
- // throw the exception.
6383
- return handle("end");
6384
- }
6073
+ var entry = this.tryEntries[i],
6074
+ record = entry.completion;
6075
+ if ("root" === entry.tryLoc) return handle("end");
6385
6076
 
6386
6077
  if (entry.tryLoc <= this.prev) {
6387
- var hasCatch = hasOwn.call(entry, "catchLoc");
6388
- var hasFinally = hasOwn.call(entry, "finallyLoc");
6078
+ var hasCatch = hasOwn.call(entry, "catchLoc"),
6079
+ hasFinally = hasOwn.call(entry, "finallyLoc");
6389
6080
 
6390
6081
  if (hasCatch && hasFinally) {
6391
- if (this.prev < entry.catchLoc) {
6392
- return handle(entry.catchLoc, true);
6393
- } else if (this.prev < entry.finallyLoc) {
6394
- return handle(entry.finallyLoc);
6395
- }
6396
-
6082
+ if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
6083
+ if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
6397
6084
  } else if (hasCatch) {
6398
- if (this.prev < entry.catchLoc) {
6399
- return handle(entry.catchLoc, true);
6400
- }
6401
-
6402
- } else if (hasFinally) {
6403
- if (this.prev < entry.finallyLoc) {
6404
- return handle(entry.finallyLoc);
6405
- }
6406
-
6085
+ if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
6407
6086
  } else {
6408
- throw new Error("try statement without catch or finally");
6087
+ if (!hasFinally) throw new Error("try statement without catch or finally");
6088
+ if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
6409
6089
  }
6410
6090
  }
6411
6091
  }
6412
6092
  },
6413
-
6414
- abrupt: function(type, arg) {
6093
+ abrupt: function abrupt(type, arg) {
6415
6094
  for (var i = this.tryEntries.length - 1; i >= 0; --i) {
6416
6095
  var entry = this.tryEntries[i];
6417
- if (entry.tryLoc <= this.prev &&
6418
- hasOwn.call(entry, "finallyLoc") &&
6419
- this.prev < entry.finallyLoc) {
6096
+
6097
+ if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
6420
6098
  var finallyEntry = entry;
6421
6099
  break;
6422
6100
  }
6423
6101
  }
6424
6102
 
6425
- if (finallyEntry &&
6426
- (type === "break" ||
6427
- type === "continue") &&
6428
- finallyEntry.tryLoc <= arg &&
6429
- arg <= finallyEntry.finallyLoc) {
6430
- // Ignore the finally entry if control is not jumping to a
6431
- // location outside the try/catch block.
6432
- finallyEntry = null;
6433
- }
6434
-
6103
+ finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
6435
6104
  var record = finallyEntry ? finallyEntry.completion : {};
6436
- record.type = type;
6437
- record.arg = arg;
6438
-
6439
- if (finallyEntry) {
6440
- this.method = "next";
6441
- this.next = finallyEntry.finallyLoc;
6442
- return ContinueSentinel;
6443
- }
6444
-
6445
- return this.complete(record);
6105
+ return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
6446
6106
  },
6447
-
6448
- complete: function(record, afterLoc) {
6449
- if (record.type === "throw") {
6450
- throw record.arg;
6451
- }
6452
-
6453
- if (record.type === "break" ||
6454
- record.type === "continue") {
6455
- this.next = record.arg;
6456
- } else if (record.type === "return") {
6457
- this.rval = this.arg = record.arg;
6458
- this.method = "return";
6459
- this.next = "end";
6460
- } else if (record.type === "normal" && afterLoc) {
6461
- this.next = afterLoc;
6462
- }
6463
-
6464
- return ContinueSentinel;
6107
+ complete: function complete(record, afterLoc) {
6108
+ if ("throw" === record.type) throw record.arg;
6109
+ return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel;
6465
6110
  },
6466
-
6467
- finish: function(finallyLoc) {
6111
+ finish: function finish(finallyLoc) {
6468
6112
  for (var i = this.tryEntries.length - 1; i >= 0; --i) {
6469
6113
  var entry = this.tryEntries[i];
6470
- if (entry.finallyLoc === finallyLoc) {
6471
- this.complete(entry.completion, entry.afterLoc);
6472
- resetTryEntry(entry);
6473
- return ContinueSentinel;
6474
- }
6114
+ if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
6475
6115
  }
6476
6116
  },
6477
-
6478
- "catch": function(tryLoc) {
6117
+ "catch": function _catch(tryLoc) {
6479
6118
  for (var i = this.tryEntries.length - 1; i >= 0; --i) {
6480
6119
  var entry = this.tryEntries[i];
6120
+
6481
6121
  if (entry.tryLoc === tryLoc) {
6482
6122
  var record = entry.completion;
6483
- if (record.type === "throw") {
6123
+
6124
+ if ("throw" === record.type) {
6484
6125
  var thrown = record.arg;
6485
6126
  resetTryEntry(entry);
6486
6127
  }
6128
+
6487
6129
  return thrown;
6488
6130
  }
6489
6131
  }
6490
6132
 
6491
- // The context.catch method must only be called with a location
6492
- // argument that corresponds to a known catch block.
6493
6133
  throw new Error("illegal catch attempt");
6494
6134
  },
6495
-
6496
- delegateYield: function(iterable, resultName, nextLoc) {
6497
- this.delegate = {
6135
+ delegateYield: function delegateYield(iterable, resultName, nextLoc) {
6136
+ return this.delegate = {
6498
6137
  iterator: values(iterable),
6499
6138
  resultName: resultName,
6500
6139
  nextLoc: nextLoc
6501
- };
6502
-
6503
- if (this.method === "next") {
6504
- // Deliberately forget the last sent value so that we don't
6505
- // accidentally pass it on to the delegate.
6506
- this.arg = undefined$1;
6507
- }
6508
-
6509
- return ContinueSentinel;
6140
+ }, "next" === this.method && (this.arg = undefined), ContinueSentinel;
6510
6141
  }
6511
- };
6142
+ }, exports;
6143
+ }
6512
6144
 
6513
- // Regardless of whether this script is executing as a CommonJS module
6514
- // or not, return the runtime object so that we can declare the variable
6515
- // regeneratorRuntime in the outer scope, which allows this module to be
6516
- // injected easily by `bin/regenerator --include-runtime script.js`.
6517
- return exports;
6145
+ module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
6146
+ }(regeneratorRuntime$1));
6518
6147
 
6519
- }(
6520
- // If this script is executing as a CommonJS module, use module.exports
6521
- // as the regeneratorRuntime namespace. Otherwise create a new empty
6522
- // object. Either way, the resulting object will be used to initialize
6523
- // the regeneratorRuntime variable at the top of this file.
6524
- module.exports
6525
- ));
6148
+ // TODO(Babel 8): Remove this file.
6526
6149
 
6150
+ var runtime = regeneratorRuntime$1.exports();
6151
+ var regenerator = runtime;
6152
+
6153
+ // Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736=
6527
6154
  try {
6528
6155
  regeneratorRuntime = runtime;
6529
6156
  } catch (accidentalStrictMode) {
6530
- // This module should not be running in strict mode, so the above
6531
- // assignment should always work unless something is misconfigured. Just
6532
- // in case runtime.js accidentally runs in strict mode, in modern engines
6533
- // we can explicitly access globalThis. In older engines we can escape
6534
- // strict mode using a global Function call. This could conceivably fail
6535
- // if a Content Security Policy forbids using Function, but in that case
6536
- // the proper solution is to fix the accidental strict mode problem. If
6537
- // you've misconfigured your bundler to force strict mode and applied a
6538
- // CSP to forbid Function, and you're not willing to fix either of those
6539
- // problems, please detail your unique predicament in a GitHub issue.
6540
6157
  if (typeof globalThis === "object") {
6541
6158
  globalThis.regeneratorRuntime = runtime;
6542
6159
  } else {
6543
6160
  Function("r", "regeneratorRuntime = r")(runtime);
6544
6161
  }
6545
6162
  }
6546
- }(runtime));
6547
-
6548
- var regenerator = runtime.exports;
6549
6163
 
6550
6164
  var CheckCircleOutlined$5 = {};
6551
6165
 
@@ -8643,7 +8257,7 @@ const __default__$6 = {
8643
8257
  const _sfc_main$g = /* @__PURE__ */ defineComponent({
8644
8258
  ...__default__$6,
8645
8259
  setup(__props) {
8646
- const container = ref();
8260
+ const container = ref$1();
8647
8261
  let lf;
8648
8262
  function init() {
8649
8263
  lf = new LogicFlow({
@@ -8735,7 +8349,7 @@ function _objectSpread2$v(target) {
8735
8349
  }
8736
8350
 
8737
8351
  function _extends$1() {
8738
- _extends$1 = Object.assign || function (target) {
8352
+ _extends$1 = Object.assign ? Object.assign.bind() : function (target) {
8739
8353
  for (var i = 1; i < arguments.length; i++) {
8740
8354
  var source = arguments[i];
8741
8355
 
@@ -8748,7 +8362,6 @@ function _extends$1() {
8748
8362
 
8749
8363
  return target;
8750
8364
  };
8751
-
8752
8365
  return _extends$1.apply(this, arguments);
8753
8366
  }
8754
8367
 
@@ -10548,7 +10161,7 @@ var LocaleProvider = defineComponent({
10548
10161
  ANT_MARK__: ANT_MARK
10549
10162
  });
10550
10163
  provide('localeData', state);
10551
- watch(function () {
10164
+ watch$1(function () {
10552
10165
  return props.locale;
10553
10166
  }, function () {
10554
10167
  state.antLocale = _extends$1(_extends$1({}, props.locale), {
@@ -10674,7 +10287,7 @@ var Notice = defineComponent({
10674
10287
  onUnmounted(function () {
10675
10288
  clearCloseTimer();
10676
10289
  });
10677
- watch([duration, function () {
10290
+ watch$1([duration, function () {
10678
10291
  return props.updateMark;
10679
10292
  }, function () {
10680
10293
  return props.visible;
@@ -10776,7 +10389,7 @@ var Notification = defineComponent({
10776
10389
  expose = _ref.expose,
10777
10390
  slots = _ref.slots;
10778
10391
  var hookRefs = new Map();
10779
- var notices = ref([]);
10392
+ var notices = ref$1([]);
10780
10393
  var transitionProps = computed(function () {
10781
10394
  var prefixCls = props.prefixCls,
10782
10395
  _props$animation = props.animation,
@@ -10956,7 +10569,7 @@ Notification.newInstance = function newNotificationInstance(properties, callback
10956
10569
  name: 'NotificationWrapper',
10957
10570
  setup: function setup(_props, _ref4) {
10958
10571
  var attrs = _ref4.attrs;
10959
- var notiRef = ref();
10572
+ var notiRef = ref$1();
10960
10573
  onMounted(function () {
10961
10574
  callback({
10962
10575
  notice: function notice(noticeProps) {
@@ -12360,7 +11973,7 @@ var ConfigProvider = defineComponent({
12360
11973
  renderEmpty: renderEmptyComponent
12361
11974
  }));
12362
11975
  Object.keys(props).forEach(function (key) {
12363
- watch(function () {
11976
+ watch$1(function () {
12364
11977
  return props[key];
12365
11978
  }, function () {
12366
11979
  configProvider[key] = props[key];
@@ -12370,7 +11983,7 @@ var ConfigProvider = defineComponent({
12370
11983
  if (!props.notUpdateGlobalConfig) {
12371
11984
  _extends$1(globalConfigByCom, configProvider);
12372
11985
 
12373
- watch(configProvider, function () {
11986
+ watch$1(configProvider, function () {
12374
11987
  _extends$1(globalConfigByCom, configProvider);
12375
11988
  });
12376
11989
  }
@@ -12763,8 +12376,8 @@ function getClientPosition(elem) {
12763
12376
  // 但测试发现,这样反而会导致当 html 和 body 有边距/边框样式时,获取的值不正确
12764
12377
  // 此外,ie6 会忽略 html 的 margin 值,幸运地是没有谁会去设置 html 的 margin
12765
12378
 
12766
- x = box.left;
12767
- y = box.top; // In IE, most of the time, 2 extra pixels are added to the top and left
12379
+ x = Math.floor(box.left);
12380
+ y = Math.floor(box.top); // In IE, most of the time, 2 extra pixels are added to the top and left
12768
12381
  // due to the implicit 2-pixel inset border. In IE6/7 quirks mode and
12769
12382
  // IE6 standards mode, this border can be overridden by setting the
12770
12383
  // document element's border to zero -- thus, we cannot rely on the
@@ -13171,7 +12784,7 @@ function getWH(elem, name, ex) {
13171
12784
  }
13172
12785
 
13173
12786
  var which = name === 'width' ? ['Left', 'Right'] : ['Top', 'Bottom'];
13174
- var borderBoxValue = name === 'width' ? elem.getBoundingClientRect().width : elem.getBoundingClientRect().height;
12787
+ var borderBoxValue = name === 'width' ? Math.floor(elem.getBoundingClientRect().width) : Math.floor(elem.getBoundingClientRect().height);
13175
12788
  var isBorderBox = isBorderBoxFn(elem);
13176
12789
  var cssBoxValue = 0;
13177
12790
 
@@ -13951,7 +13564,7 @@ var Portal$2 = defineComponent({
13951
13564
  container = props.getContainer();
13952
13565
  }
13953
13566
  });
13954
- var stopWatch = watch(shouldRender, function () {
13567
+ var stopWatch = watch$1(shouldRender, function () {
13955
13568
  if (shouldRender.value && !container) {
13956
13569
  container = props.getContainer();
13957
13570
  }
@@ -15179,11 +14792,11 @@ var Button = defineComponent({
15179
14792
  direction = _useConfigInject.direction,
15180
14793
  size = _useConfigInject.size;
15181
14794
 
15182
- var buttonNodeRef = ref(null);
15183
- var delayTimeoutRef = ref(undefined);
14795
+ var buttonNodeRef = ref$1(null);
14796
+ var delayTimeoutRef = ref$1(undefined);
15184
14797
  var isNeedInserted = false;
15185
- var innerLoading = ref(false);
15186
- var hasTwoCNChar = ref(false);
14798
+ var innerLoading = ref$1(false);
14799
+ var hasTwoCNChar = ref$1(false);
15187
14800
  var autoInsertSpace = computed(function () {
15188
14801
  return autoInsertSpaceInButton.value !== false;
15189
14802
  }); // =============== Update Loading ===============
@@ -15191,7 +14804,7 @@ var Button = defineComponent({
15191
14804
  var loadingOrDelay = computed(function () {
15192
14805
  return _typeof$9(props.loading) === 'object' && props.loading.delay ? props.loading.delay || true : !!props.loading;
15193
14806
  });
15194
- watch(loadingOrDelay, function (val) {
14807
+ watch$1(loadingOrDelay, function (val) {
15195
14808
  clearTimeout(delayTimeoutRef.value);
15196
14809
 
15197
14810
  if (typeof loadingOrDelay.value === 'number') {
@@ -15822,9 +15435,9 @@ var Portal$1 = defineComponent({
15822
15435
  },
15823
15436
  setup: function setup(props, _ref) {
15824
15437
  var slots = _ref.slots;
15825
- var container = ref();
15826
- var componentRef = ref();
15827
- var rafId = ref();
15438
+ var container = ref$1();
15439
+ var componentRef = ref$1();
15440
+ var rafId = ref$1();
15828
15441
  var scrollLocker = new ScrollLocker$1({
15829
15442
  container: getParent$1(props.getContainer)
15830
15443
  });
@@ -15909,7 +15522,7 @@ var Portal$1 = defineComponent({
15909
15522
  var instance = getCurrentInstance();
15910
15523
  onMounted(function () {
15911
15524
  var init = false;
15912
- watch([function () {
15525
+ watch$1([function () {
15913
15526
  return props.visible;
15914
15527
  }, function () {
15915
15528
  return props.getContainer;
@@ -16150,9 +15763,9 @@ var Content$2 = defineComponent({
16150
15763
  var expose = _ref.expose,
16151
15764
  slots = _ref.slots,
16152
15765
  attrs = _ref.attrs;
16153
- var sentinelStartRef = ref();
16154
- var sentinelEndRef = ref();
16155
- var dialogRef = ref();
15766
+ var sentinelStartRef = ref$1();
15767
+ var sentinelEndRef = ref$1();
15768
+ var dialogRef = ref$1();
16156
15769
  expose({
16157
15770
  focus: function focus() {
16158
15771
  var _a;
@@ -16170,7 +15783,7 @@ var Content$2 = defineComponent({
16170
15783
  }
16171
15784
  }
16172
15785
  });
16173
- var transformOrigin = ref();
15786
+ var transformOrigin = ref$1();
16174
15787
  var contentStyleRef = computed(function () {
16175
15788
  var width = props.width,
16176
15789
  height = props.height;
@@ -16357,11 +15970,11 @@ var Dialog$1 = defineComponent({
16357
15970
  setup: function setup(props, _ref) {
16358
15971
  var attrs = _ref.attrs,
16359
15972
  slots = _ref.slots;
16360
- var lastOutSideActiveElementRef = ref();
16361
- var wrapperRef = ref();
16362
- var contentRef = ref();
16363
- var animatedVisible = ref(props.visible);
16364
- var ariaIdRef = ref("vcDialogTitle".concat(getUUID$1())); // ========================= Events =========================
15973
+ var lastOutSideActiveElementRef = ref$1();
15974
+ var wrapperRef = ref$1();
15975
+ var contentRef = ref$1();
15976
+ var animatedVisible = ref$1(props.visible);
15977
+ var ariaIdRef = ref$1("vcDialogTitle".concat(getUUID$1())); // ========================= Events =========================
16365
15978
 
16366
15979
  var onDialogVisibleChanged = function onDialogVisibleChanged(newVisible) {
16367
15980
  var _a, _b;
@@ -16402,8 +16015,8 @@ var Dialog$1 = defineComponent({
16402
16015
  }; // >>> Content
16403
16016
 
16404
16017
 
16405
- var contentClickRef = ref(false);
16406
- var contentTimeoutRef = ref(); // We need record content click incase content popup out of dialog
16018
+ var contentClickRef = ref$1(false);
16019
+ var contentTimeoutRef = ref$1(); // We need record content click incase content popup out of dialog
16407
16020
 
16408
16021
  var onContentMouseDown = function onContentMouseDown() {
16409
16022
  clearTimeout(contentTimeoutRef.value);
@@ -16441,7 +16054,7 @@ var Dialog$1 = defineComponent({
16441
16054
  }
16442
16055
  };
16443
16056
 
16444
- watch(function () {
16057
+ watch$1(function () {
16445
16058
  return props.visible;
16446
16059
  }, function () {
16447
16060
  if (props.visible) {
@@ -16538,11 +16151,11 @@ var DialogWrap$2 = defineComponent({
16538
16151
  setup: function setup(props, _ref) {
16539
16152
  var attrs = _ref.attrs,
16540
16153
  slots = _ref.slots;
16541
- var animatedVisible = ref(props.visible);
16154
+ var animatedVisible = ref$1(props.visible);
16542
16155
  useProvidePortal$1({}, {
16543
16156
  inTriggerContext: false
16544
16157
  });
16545
- watch(function () {
16158
+ watch$1(function () {
16546
16159
  return props.visible;
16547
16160
  }, function () {
16548
16161
  if (props.visible) {
@@ -16812,7 +16425,7 @@ var Modal$1 = defineComponent({
16812
16425
  });
16813
16426
 
16814
16427
  var useDestroyed$2 = function useDestroyed() {
16815
- var destroyed = ref(false);
16428
+ var destroyed = ref$1(false);
16816
16429
  onBeforeUnmount(function () {
16817
16430
  destroyed.value = true;
16818
16431
  });
@@ -16843,9 +16456,9 @@ var ActionButton$1 = defineComponent({
16843
16456
  props: actionButtonProps$1,
16844
16457
  setup: function setup(props, _ref) {
16845
16458
  var slots = _ref.slots;
16846
- var clickedRef = ref(false);
16847
- var buttonRef = ref();
16848
- var loading = ref(false);
16459
+ var clickedRef = ref$1(false);
16460
+ var buttonRef = ref$1();
16461
+ var loading = ref$1(false);
16849
16462
  var timeoutId;
16850
16463
  var isDestroyed = useDestroyed$3();
16851
16464
  onMounted(function () {
@@ -22865,12 +22478,12 @@ function $FormCreate(FormCreate) {
22865
22478
  onUpdated(function () {
22866
22479
  fc.updated();
22867
22480
  });
22868
- watch(subForm, function (n) {
22481
+ watch$1(subForm, function (n) {
22869
22482
  n ? addSubForm() : rmSubForm();
22870
22483
  }, {
22871
22484
  immediate: true
22872
22485
  });
22873
- watch(function () {
22486
+ watch$1(function () {
22874
22487
  return _toConsumableArray(rule.value);
22875
22488
  }, function (n) {
22876
22489
  if (fc.$handle.isBreakWatch() || n.length === data.renderRule.length && n.every(function (v) {
@@ -22879,11 +22492,11 @@ function $FormCreate(FormCreate) {
22879
22492
  fc.$handle.reloadRule(rule.value);
22880
22493
  vm.setupState.renderRule();
22881
22494
  });
22882
- watch(props.option, function (n) {
22495
+ watch$1(props.option, function (n) {
22883
22496
  fc.initOptions(n);
22884
22497
  fapi.refresh();
22885
22498
  });
22886
- watch(modelValue, function (n) {
22499
+ watch$1(modelValue, function (n) {
22887
22500
  if (JSON.stringify(n || {}) === data.updateValue) return;
22888
22501
  fapi.setValue(n || {});
22889
22502
  }, {
@@ -25363,7 +24976,7 @@ function useContext(Handler) {
25363
24976
  var ref = toRef(ctx.rule, key);
25364
24977
  var flag = key === 'children';
25365
24978
  ctx.refRule[key] = ref;
25366
- ctx.watch.push(watch(flag ? function () {
24979
+ ctx.watch.push(watch$1(flag ? function () {
25367
24980
  return is.Function(ref.value) ? ref.value : _toConsumableArray(ref.value || []);
25368
24981
  } : function () {
25369
24982
  return ref.value;
@@ -25417,7 +25030,7 @@ function useContext(Handler) {
25417
25030
 
25418
25031
  if (ctx.input) {
25419
25032
  var val = toRef(ctx.rule, 'value');
25420
- ctx.watch.push(watch(function () {
25033
+ ctx.watch.push(watch$1(function () {
25421
25034
  return val.value;
25422
25035
  }, function () {
25423
25036
  var formValue = ctx.parser.toFormValue(val.value, ctx);
@@ -25429,7 +25042,7 @@ function useContext(Handler) {
25429
25042
  }));
25430
25043
  this.bus.$once('load-end', function () {
25431
25044
  var computedRef = toRef(ctx.rule, 'computed');
25432
- ctx.watch.push(watch(function () {
25045
+ ctx.watch.push(watch$1(function () {
25433
25046
  var computed = computedRef.value;
25434
25047
  if (!computed) return undefined;
25435
25048
  var fn;
@@ -25607,7 +25220,7 @@ function useEffect(Handler) {
25607
25220
  }
25608
25221
  });
25609
25222
  Object.keys(effect).forEach(function (k) {
25610
- ctx.watch.push(watch(effect[k], function (n) {
25223
+ ctx.watch.push(watch$1(effect[k], function (n) {
25611
25224
  _this3.effect(ctx, 'watch', _defineProperty({}, k, n));
25612
25225
  }, {
25613
25226
  deep: true
@@ -26316,13 +25929,13 @@ function FormCreateFactory(config) {
26316
25929
  CreateNode: CreateNode,
26317
25930
  bus: new Mitt(),
26318
25931
  unwatch: null,
26319
- options: ref(vm.props.option || {}),
25932
+ options: ref$1(vm.props.option || {}),
26320
25933
  extendApi: config.extendApi || function (api) {
26321
25934
  return api;
26322
25935
  }
26323
25936
  });
26324
25937
  nextTick(function () {
26325
- watch(_this.options, function () {
25938
+ watch$1(_this.options, function () {
26326
25939
  _this.$handle.$manager.updateOptions(_this.options.value);
26327
25940
 
26328
25941
  _this.api().refresh();
@@ -26349,7 +25962,7 @@ function FormCreateFactory(config) {
26349
25962
  var _this2 = this;
26350
25963
 
26351
25964
  if (this.isSub()) {
26352
- this.unwatch = watch(function () {
25965
+ this.unwatch = watch$1(function () {
26353
25966
  return _this2.vm.parent.option;
26354
25967
  }, function () {
26355
25968
  _this2.initOptions(_this2.options.value);
@@ -27462,7 +27075,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
27462
27075
  emits: ["submit", "reset", "expand"],
27463
27076
  setup(__props, { emit: emits }) {
27464
27077
  const props = __props;
27465
- const isExpand = ref(false);
27078
+ const isExpand = ref$1(false);
27466
27079
  function handleExpandBtnChange() {
27467
27080
  isExpand.value = !isExpand.value;
27468
27081
  emits("expand", isExpand.value);
@@ -27563,11 +27176,11 @@ const _hoisted_7$5 = {
27563
27176
  class: "bm-multi-cascader-tag"
27564
27177
  };
27565
27178
  const _hoisted_8$5 = { class: "bm-multi-cascader-tag-text" };
27566
- const _hoisted_9$5 = {
27179
+ const _hoisted_9$4 = {
27567
27180
  key: 1,
27568
27181
  class: "bm-multi-cascader-placeholder"
27569
27182
  };
27570
- const _hoisted_10$5 = { class: "bm-multi-cascader-action" };
27183
+ const _hoisted_10$4 = { class: "bm-multi-cascader-action" };
27571
27184
  const _hoisted_11$4 = {
27572
27185
  key: 0,
27573
27186
  class: "bm-multi-cascader-popover"
@@ -27592,7 +27205,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
27592
27205
  emits: ["update:modelValue", "change"],
27593
27206
  setup(__props, { emit: emits }) {
27594
27207
  const props = __props;
27595
- const path = ref([]);
27208
+ const path = ref$1([]);
27596
27209
  const optionsMap = computed(() => {
27597
27210
  let res = {};
27598
27211
  const getValue = (list) => {
@@ -27998,9 +27611,9 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
27998
27611
  unref(checkedHideCount) ? (openBlock(), createElementBlock("div", _hoisted_7$5, [
27999
27612
  createElementVNode("span", _hoisted_8$5, "+ " + toDisplayString(unref(checkedHideCount)), 1)
28000
27613
  ])) : createCommentVNode("v-if", true)
28001
- ])) : (openBlock(), createElementBlock("div", _hoisted_9$5, toDisplayString(props.placeholder), 1))
27614
+ ])) : (openBlock(), createElementBlock("div", _hoisted_9$4, toDisplayString(props.placeholder), 1))
28002
27615
  ]),
28003
- createElementVNode("div", _hoisted_10$5, [
27616
+ createElementVNode("div", _hoisted_10$4, [
28004
27617
  props.allowClear && props.modelValue.length > 0 ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
28005
27618
  createVNode(unref(DownOutlined$1), { class: "bm-multi-cascader-icon bm-multi-cascader-caret" }),
28006
27619
  createVNode(unref(CloseCircleFilled$1), {
@@ -28032,7 +27645,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
28032
27645
  const props = __props;
28033
27646
  FormCreate.component("SearchResetBtn", SearchResetBtn);
28034
27647
  FormCreate.component("BmMultiCascaderCompose", BmMultiCascaderCompose);
28035
- const isExpand = ref(false);
27648
+ const isExpand = ref$1(false);
28036
27649
  const searchResetBtnRule = reactive([
28037
27650
  {
28038
27651
  type: "SearchResetBtn",
@@ -28055,7 +27668,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
28055
27668
  }
28056
27669
  }
28057
27670
  ]);
28058
- const fApi = ref({});
27671
+ const fApi = ref$1({});
28059
27672
  const option = reactive({
28060
27673
  col: {
28061
27674
  span: 8
@@ -28104,7 +27717,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
28104
27717
  onBeforeUnmount(() => {
28105
27718
  window.removeEventListener("resize", handleResize);
28106
27719
  });
28107
- watch(() => props.showExpandBtn, (val) => {
27720
+ watch$1(() => props.showExpandBtn, (val) => {
28108
27721
  handleShowExpandBtn(val);
28109
27722
  }, {
28110
27723
  immediate: true
@@ -28127,8 +27740,10 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
28127
27740
  });
28128
27741
  }
28129
27742
  }
28130
- watch(isExpand, (val) => {
28131
- handleChangeExpand(val);
27743
+ watch$1(isExpand, (val) => {
27744
+ setTimeout(() => {
27745
+ handleChangeExpand(val);
27746
+ }, 0);
28132
27747
  }, {
28133
27748
  immediate: true
28134
27749
  });
@@ -36887,7 +36502,7 @@ const _sfc_main$a = defineComponent({
36887
36502
  }).finally(() => {
36888
36503
  methods.fetchData();
36889
36504
  });
36890
- watch(() => state.shopCheck, () => {
36505
+ watch$1(() => state.shopCheck, () => {
36891
36506
  let list = [];
36892
36507
  for (let [key, value] of Object.entries(state.shopCheck)) {
36893
36508
  value && list.push(key);
@@ -36925,8 +36540,8 @@ const _hoisted_7$4 = {
36925
36540
  class: "__shops-filter-tabs"
36926
36541
  };
36927
36542
  const _hoisted_8$4 = { class: "label" };
36928
- const _hoisted_9$4 = { class: "__shops-filter-areas" };
36929
- const _hoisted_10$4 = ["onClick"];
36543
+ const _hoisted_9$3 = { class: "__shops-filter-areas" };
36544
+ const _hoisted_10$3 = ["onClick"];
36930
36545
  const _hoisted_11$3 = ["onClick"];
36931
36546
  const _hoisted_12$3 = { class: "__shops-filter-selecting" };
36932
36547
  const _hoisted_13$3 = /* @__PURE__ */ createTextVNode(" \u5DF2\u9009\u62E9");
@@ -37053,13 +36668,13 @@ function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
37053
36668
  class: "__shops-filter-area-tabs"
37054
36669
  }, [
37055
36670
  createElementVNode("div", _hoisted_8$4, toDisplayString(item.label) + ":", 1),
37056
- createElementVNode("div", _hoisted_9$4, [
36671
+ createElementVNode("div", _hoisted_9$3, [
37057
36672
  createElementVNode("span", {
37058
36673
  class: normalizeClass({
37059
36674
  active: !(item.multiple ? _ctx.filterSelects[index].length : !!_ctx.filterSelects[index])
37060
36675
  }),
37061
36676
  onClick: withModifiers(($event) => _ctx.changeFilterSelect(index, ""), ["self"])
37062
- }, "\u5168\u90E8", 10, _hoisted_10$4),
36677
+ }, "\u5168\u90E8", 10, _hoisted_10$3),
37063
36678
  (openBlock(true), createElementBlock(Fragment, null, renderList(item.list, (element) => {
37064
36679
  return openBlock(), createElementBlock("span", {
37065
36680
  key: element.code,
@@ -44233,7 +43848,7 @@ const _sfc_main$9 = defineComponent({
44233
43848
  return data ? data.title : "\u672A\u77E5";
44234
43849
  }
44235
43850
  };
44236
- watch(() => state.listChecked, () => {
43851
+ watch$1(() => state.listChecked, () => {
44237
43852
  let list = [];
44238
43853
  for (let [key, value] of Object.entries(state.listChecked)) {
44239
43854
  value && list.push(key);
@@ -44245,7 +43860,7 @@ const _sfc_main$9 = defineComponent({
44245
43860
  methods.setState();
44246
43861
  emit("update:selected", list);
44247
43862
  }, { deep: true });
44248
- watch(() => state.departmentChecked, () => {
43863
+ watch$1(() => state.departmentChecked, () => {
44249
43864
  let flatMap = props.dataMap;
44250
43865
  let curlistKeys = props.curlistKeys;
44251
43866
  let hadselected = new Set(props.selected);
@@ -44263,7 +43878,7 @@ const _sfc_main$9 = defineComponent({
44263
43878
  }
44264
43879
  emit("update:selected", Array.from(hadselected));
44265
43880
  }, { deep: true });
44266
- watch(() => props.list, () => {
43881
+ watch$1(() => props.list, () => {
44267
43882
  !props.isTree && methods.setState();
44268
43883
  });
44269
43884
  onMounted(() => {
@@ -44289,12 +43904,12 @@ const _hoisted_8$3 = {
44289
43904
  key: 0,
44290
43905
  class: "department-desc"
44291
43906
  };
44292
- const _hoisted_9$3 = {
43907
+ const _hoisted_9$2 = {
44293
43908
  key: 2,
44294
43909
  class: "noData",
44295
43910
  style: { "height": "280px" }
44296
43911
  };
44297
- const _hoisted_10$3 = { style: { "color": "#9393a3", "font-size": "12px", "font-weight": "400" } };
43912
+ const _hoisted_10$2 = { style: { "color": "#9393a3", "font-size": "12px", "font-weight": "400" } };
44298
43913
  const _hoisted_11$2 = { class: "__selector-chosen-panel" };
44299
43914
  const _hoisted_12$2 = {
44300
43915
  key: 0,
@@ -44377,10 +43992,10 @@ function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
44377
43992
  ]),
44378
43993
  _: 1
44379
43994
  }, 8, ["checkedKeys", "tree-data"])) : createCommentVNode("v-if", true),
44380
- _ctx.list && !_ctx.list.length ? (openBlock(), createElementBlock("div", _hoisted_9$3, [
43995
+ _ctx.list && !_ctx.list.length ? (openBlock(), createElementBlock("div", _hoisted_9$2, [
44381
43996
  createVNode(_component_Empty, { image: _ctx.emptyPic }, {
44382
43997
  description: withCtx(() => [
44383
- createElementVNode("span", _hoisted_10$3, toDisplayString(!!_ctx.searchVal ? "\u6682\u65E0\u6570\u636E" : "\u8BF7\u5148\u641C\u7D22\u4EBA\u5458\u5173\u952E\u5B57"), 1)
43998
+ createElementVNode("span", _hoisted_10$2, toDisplayString(!!_ctx.searchVal ? "\u6682\u65E0\u6570\u636E" : "\u8BF7\u5148\u641C\u7D22\u4EBA\u5458\u5173\u952E\u5B57"), 1)
44384
43999
  ]),
44385
44000
  _: 1
44386
44001
  }, 8, ["image"])
@@ -44864,7 +44479,7 @@ const _sfc_main$8 = defineComponent({
44864
44479
  },
44865
44480
  emits: ["fetchList", "update:selected"],
44866
44481
  setup(_, { emit }) {
44867
- const searchVal = ref("");
44482
+ const searchVal = ref$1("");
44868
44483
  const emptyPic = default_1$3.PRESENTED_IMAGE_SIMPLE;
44869
44484
  function search() {
44870
44485
  let data = searchVal.value ? { searchVal: searchVal.value } : false;
@@ -44978,12 +44593,12 @@ const _sfc_main$7 = defineComponent({
44978
44593
  emits: ["fetchList", "update:selected"],
44979
44594
  setup(props, { emit }) {
44980
44595
  const emptyPic = default_1$3.PRESENTED_IMAGE_SIMPLE;
44981
- const activeKey = ref(0);
44982
- const searchVal = ref("");
44983
- const staffsChecked = ref({});
44984
- const groupChecked = ref({});
44985
- const departmentChecked = ref([]);
44986
- const shopChecked = ref({});
44596
+ const activeKey = ref$1(0);
44597
+ const searchVal = ref$1("");
44598
+ const staffsChecked = ref$1({});
44599
+ const groupChecked = ref$1({});
44600
+ const departmentChecked = ref$1([]);
44601
+ const shopChecked = ref$1({});
44987
44602
  const inputPlaceHolder = computed(() => {
44988
44603
  if (activeKey.value === 2) {
44989
44604
  return "\u8BF7\u8F93\u5165\u90E8\u95E8\u641C\u7D22";
@@ -45039,7 +44654,7 @@ const _sfc_main$7 = defineComponent({
45039
44654
  return data ? data.title : "\u672A\u77E5";
45040
44655
  }
45041
44656
  };
45042
- watch(() => departmentChecked, () => {
44657
+ watch$1(() => departmentChecked, () => {
45043
44658
  let flatMap = props.dataMap;
45044
44659
  let curlistKeys = props.curlistKeys;
45045
44660
  let hadselected = new Set(props.selected);
@@ -45057,7 +44672,7 @@ const _sfc_main$7 = defineComponent({
45057
44672
  }
45058
44673
  emit("update:selected", Array.from(hadselected));
45059
44674
  }, { deep: true });
45060
- watch(() => staffsChecked, () => {
44675
+ watch$1(() => staffsChecked, () => {
45061
44676
  let set = new Set(props.selected.length ? props.selected : null);
45062
44677
  for (let [key, value] of Object.entries(staffsChecked.value)) {
45063
44678
  if (value) {
@@ -45068,7 +44683,7 @@ const _sfc_main$7 = defineComponent({
45068
44683
  }
45069
44684
  emit("update:selected", Array.from(set));
45070
44685
  }, { deep: true });
45071
- watch(() => shopChecked, () => {
44686
+ watch$1(() => shopChecked, () => {
45072
44687
  let set = new Set(props.selected.length ? props.selected : null);
45073
44688
  for (let [key, value] of Object.entries(shopChecked.value)) {
45074
44689
  if (value) {
@@ -45079,7 +44694,7 @@ const _sfc_main$7 = defineComponent({
45079
44694
  }
45080
44695
  emit("update:selected", Array.from(set));
45081
44696
  }, { deep: true });
45082
- watch(() => groupChecked, () => {
44697
+ watch$1(() => groupChecked, () => {
45083
44698
  let set = new Set(props.selected.length ? props.selected : null);
45084
44699
  for (let [key, value] of Object.entries(groupChecked.value)) {
45085
44700
  if (value) {
@@ -45127,11 +44742,11 @@ const _hoisted_8$2 = {
45127
44742
  key: 0,
45128
44743
  class: "__selector-modal-options"
45129
44744
  };
45130
- const _hoisted_9$2 = {
44745
+ const _hoisted_9$1 = {
45131
44746
  key: 1,
45132
44747
  class: "__selector-modal-options"
45133
44748
  };
45134
- const _hoisted_10$2 = { class: "department-option-item" };
44749
+ const _hoisted_10$1 = { class: "department-option-item" };
45135
44750
  const _hoisted_11$1 = {
45136
44751
  key: 0,
45137
44752
  class: "department-desc"
@@ -45203,7 +44818,7 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
45203
44818
  }, 1032, ["checked", "onUpdate:checked"])
45204
44819
  ]);
45205
44820
  }), 128))
45206
- ])) : _ctx.activeKey === 1 ? (openBlock(), createElementBlock("div", _hoisted_9$2, [
44821
+ ])) : _ctx.activeKey === 1 ? (openBlock(), createElementBlock("div", _hoisted_9$1, [
45207
44822
  createVNode(_component_a_tree, {
45208
44823
  checkedKeys: _ctx.departmentChecked,
45209
44824
  "onUpdate:checkedKeys": _cache[1] || (_cache[1] = ($event) => _ctx.departmentChecked = $event),
@@ -45212,7 +44827,7 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
45212
44827
  "tree-data": _ctx.list
45213
44828
  }, {
45214
44829
  title: withCtx(({ title, description }) => [
45215
- createElementVNode("div", _hoisted_10$2, [
44830
+ createElementVNode("div", _hoisted_10$1, [
45216
44831
  createElementVNode("span", null, toDisplayString(title), 1),
45217
44832
  description ? (openBlock(), createElementBlock("p", _hoisted_11$1, toDisplayString(description), 1)) : createCommentVNode("v-if", true)
45218
44833
  ])
@@ -45396,7 +45011,7 @@ const _sfc_main$6 = defineComponent({
45396
45011
  return 648;
45397
45012
  })
45398
45013
  });
45399
- watch(() => props.visible, (val) => {
45014
+ watch$1(() => props.visible, (val) => {
45400
45015
  if (val && props.immediateFetch) {
45401
45016
  methods.fetch({});
45402
45017
  }
@@ -45501,8 +45116,8 @@ const _sfc_main$5 = {
45501
45116
  "pageSizeChange"
45502
45117
  ],
45503
45118
  setup(props, { emit }) {
45504
- const floatTable = ref();
45505
- const xGrid = ref();
45119
+ const floatTable = ref$1();
45120
+ const xGrid = ref$1();
45506
45121
  onBeforeUnmount(function() {
45507
45122
  inObserverDom && inObserverDom.disconnect();
45508
45123
  scrollNotShowFloatTime && clearTimeout(scrollNotShowFloatTime);
@@ -45770,7 +45385,7 @@ const _sfc_main$5 = {
45770
45385
  }, {
45771
45386
  threshold: 0.1
45772
45387
  });
45773
- watch(() => state.floatHandleDomCol, function(col) {
45388
+ watch$1(() => state.floatHandleDomCol, function(col) {
45774
45389
  if (col) {
45775
45390
  inObserverDom.observe(col);
45776
45391
  }
@@ -45924,8 +45539,8 @@ const _sfc_main$4 = {
45924
45539
  onBeforeUnmount(function() {
45925
45540
  observer.disconnect();
45926
45541
  });
45927
- let mySelf = ref();
45928
- watch(() => props.showAlways, function(showAlways) {
45542
+ let mySelf = ref$1();
45543
+ watch$1(() => props.showAlways, function(showAlways) {
45929
45544
  if (showAlways)
45930
45545
  state.openShow = showAlways;
45931
45546
  mySelf.value && observer.unobserve(mySelf.value);
@@ -46074,18 +45689,29 @@ const _sfc_main$3 = {
46074
45689
  setup(props, { emit }) {
46075
45690
  let acceptList = [
46076
45691
  ".xlsx",
45692
+ ".XLSX",
46077
45693
  ".pdf",
45694
+ ".PDF",
46078
45695
  ".doc",
45696
+ ".DOC",
46079
45697
  ".docx",
45698
+ ".DOCX",
46080
45699
  ".jpg",
46081
- ".jpeg",
46082
45700
  ".JPG",
45701
+ ".jpeg",
45702
+ ".JPEG",
46083
45703
  ".png",
45704
+ ".PNG",
46084
45705
  ".rar",
45706
+ ".RAR",
46085
45707
  ".zip",
45708
+ ".ZIP",
46086
45709
  ".ppt",
45710
+ ".PPT",
46087
45711
  ".pptx",
46088
- ".mp4"
45712
+ ".PPTX",
45713
+ ".mp4",
45714
+ ".MP4"
46089
45715
  ];
46090
45716
  const state = reactive({
46091
45717
  uploadBarColor: "#4DA0FF",
@@ -46148,26 +45774,26 @@ const _sfc_main$3 = {
46148
45774
  }
46149
45775
  });
46150
45776
  const methods = {
46151
- customUploadRequest(file) {
46152
- const updateUploadProgress = (progress) => {
46153
- if (methods.fileIsDelete(file)) {
46154
- return;
46155
- }
46156
- state.fileList[file.uid] = {
46157
- ...state.fileList[file.uid],
46158
- progress
46159
- };
45777
+ updateUploadProgress(file, progress) {
45778
+ if (methods.fileIsDelete(file)) {
45779
+ return;
45780
+ }
45781
+ state.fileList[file.uid] = {
45782
+ ...state.fileList[file.uid],
45783
+ progress
46160
45784
  };
45785
+ },
45786
+ customUploadRequest(file) {
46161
45787
  props.uploadRequest?.(file, {
46162
45788
  onUploadProgress: (e) => {
46163
45789
  let progress = Math.round(e.loaded / e.total * 100);
46164
45790
  if (props.holdProgress) {
46165
45791
  progress = progress > props.holdProgress ? props.holdProgress : progress;
46166
45792
  }
46167
- updateUploadProgress(progress);
45793
+ methods.updateUploadProgress(file, progress);
46168
45794
  }
46169
45795
  }).then(function(data) {
46170
- updateUploadProgress(100);
45796
+ methods.updateUploadProgress(file, 100);
46171
45797
  methods.uploadSuccess(data, file);
46172
45798
  }).catch(function(error) {
46173
45799
  console.error(error);
@@ -46185,11 +45811,13 @@ const _sfc_main$3 = {
46185
45811
  return;
46186
45812
  }
46187
45813
  emit("successFile", data);
45814
+ state.fileList[file.uid].status = "success";
46188
45815
  let uri = data?.url;
46189
45816
  let item = state.extraConfigs.fileDetail ? {
46190
45817
  name: file.name,
46191
45818
  size: file.size,
46192
45819
  type: file.type,
45820
+ uid: file.uid,
46193
45821
  url: uri
46194
45822
  } : uri;
46195
45823
  state.uploadedList.push(item);
@@ -46201,9 +45829,7 @@ const _sfc_main$3 = {
46201
45829
  if (methods.fileIsDelete(file)) {
46202
45830
  return;
46203
45831
  }
46204
- if (file.uid && state.fileList[file.uid]) {
46205
- state.fileList[file.uid].status = "error";
46206
- }
45832
+ state.fileList[file.uid].status = "error";
46207
45833
  emit("error", error);
46208
45834
  },
46209
45835
  async deleteFile(uid) {
@@ -46221,7 +45847,7 @@ const _sfc_main$3 = {
46221
45847
  state.onepViewImageHover[uid] = false;
46222
45848
  },
46223
45849
  viewOnePicture(item) {
46224
- if (["img", "image", "png", "jpg", "jpeg"].includes(item.type.toLowerCase())) {
45850
+ if (["img", "image", "png", "PNG", "jpg", "JPG", "jpeg", "JPEG"].includes(item.type.toLowerCase())) {
46225
45851
  state.previewVisible = true;
46226
45852
  state.onepViewImage = item;
46227
45853
  return;
@@ -46273,10 +45899,15 @@ const _sfc_main$3 = {
46273
45899
  }
46274
45900
  }
46275
45901
  };
46276
- watch(() => props.defaultList, function(list) {
46277
- if (list.length) {
45902
+ watch$1(() => props.defaultList, function(list) {
45903
+ if (list?.length) {
45904
+ list.forEach((item) => {
45905
+ if (!item.uid) {
45906
+ item.uid = utils.getuid();
45907
+ }
45908
+ });
46278
45909
  list.forEach(function(item) {
46279
- let uid = utils.getuid();
45910
+ let uid = item.uid || utils.getuid();
46280
45911
  if (!item.url.includes("http") && !item.url.includes(CLOUND_PRE))
46281
45912
  item.url = props.cloudReadUrl + item.url;
46282
45913
  state.fileList[uid] = {
@@ -46287,7 +45918,9 @@ const _sfc_main$3 = {
46287
45918
  progress: 100,
46288
45919
  isDoneDeloy: true
46289
45920
  };
46290
- state.uploadedList.push(item);
45921
+ if (!state.uploadedList.find((item2) => item2.uid === uid)) {
45922
+ state.uploadedList.push(item);
45923
+ }
46291
45924
  });
46292
45925
  } else {
46293
45926
  state.fileList = {};
@@ -46296,7 +45929,7 @@ const _sfc_main$3 = {
46296
45929
  }, {
46297
45930
  immediate: true
46298
45931
  });
46299
- watch([() => props.uploadProps, () => props.extraProps], function([config, extra]) {
45932
+ watch$1([() => props.uploadProps, () => props.extraProps], function([config, extra]) {
46300
45933
  state.uploadConfigs = {
46301
45934
  ...state.uploadConfigs,
46302
45935
  ...config,
@@ -46319,7 +45952,7 @@ const _sfc_main$3 = {
46319
45952
  watchEffect(() => {
46320
45953
  state.uploadConfigs.disabled = uploadDisabled.value;
46321
45954
  });
46322
- watch(() => uploadDisabled.value, (value) => {
45955
+ watch$1(() => uploadDisabled.value, (value) => {
46323
45956
  emit("updateDisabledStatus", value);
46324
45957
  }, {
46325
45958
  immediate: true
@@ -46334,7 +45967,7 @@ const _sfc_main$3 = {
46334
45967
  });
46335
45968
  return ret;
46336
45969
  });
46337
- watch(() => isUploading.value, (value) => {
45970
+ watch$1(() => isUploading.value, (value) => {
46338
45971
  emit("updateIsUploadingStatus", value);
46339
45972
  }, {
46340
45973
  immediate: true
@@ -46358,8 +45991,8 @@ const _hoisted_5$1 = ["src"];
46358
45991
  const _hoisted_6$1 = ["src"];
46359
45992
  const _hoisted_7$1 = ["src"];
46360
45993
  const _hoisted_8$1 = ["src"];
46361
- const _hoisted_9$1 = ["src"];
46362
- const _hoisted_10$1 = {
45994
+ const _hoisted_9 = ["src"];
45995
+ const _hoisted_10 = {
46363
45996
  key: 6,
46364
45997
  class: "bm-upload__picture-result__cover"
46365
45998
  };
@@ -46445,27 +46078,59 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
46445
46078
  onMouseleave: ($event) => _ctx.pictureHoverLeave(item.uid),
46446
46079
  onClick: _cache[0] || (_cache[0] = (e) => e.stopPropagation())
46447
46080
  }, [
46448
- item.type === "pdf" ? (openBlock(), createElementBlock("img", {
46081
+ ["pdf", "PDF", "application/pdf"].includes(item.type) ? (openBlock(), createElementBlock("img", {
46449
46082
  key: 0,
46450
46083
  class: "bm-upload__picture-result__image",
46451
46084
  src: $setup.icons.pdf,
46452
46085
  alt: "avatar"
46453
- }, null, 8, _hoisted_4$1)) : item.type === "xlsx" ? (openBlock(), createElementBlock("img", {
46086
+ }, null, 8, _hoisted_4$1)) : [
46087
+ "xlsx",
46088
+ "XLSX",
46089
+ "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
46090
+ ].includes(item.type) ? (openBlock(), createElementBlock("img", {
46454
46091
  key: 1,
46455
46092
  class: "bm-upload__picture-result__image",
46456
46093
  src: $setup.icons.excel,
46457
46094
  alt: "avatar"
46458
- }, null, 8, _hoisted_5$1)) : item.type === "ppt" ? (openBlock(), createElementBlock("img", {
46095
+ }, null, 8, _hoisted_5$1)) : [
46096
+ "ppt",
46097
+ "PPT",
46098
+ "application/vnd.ms-powerpoint",
46099
+ "pptx",
46100
+ "PPTX",
46101
+ "application/vnd.openxmlformats-officedocument.presentationml.presentation"
46102
+ ].includes(item.type) ? (openBlock(), createElementBlock("img", {
46459
46103
  key: 2,
46460
46104
  class: "bm-upload__picture-result__image",
46461
46105
  src: $setup.icons.ppt,
46462
46106
  alt: "avatar"
46463
- }, null, 8, _hoisted_6$1)) : ["docx", "doc"].includes(item.type) ? (openBlock(), createElementBlock("img", {
46107
+ }, null, 8, _hoisted_6$1)) : [
46108
+ "doc",
46109
+ "DOC",
46110
+ "application/msword",
46111
+ "docx",
46112
+ "DOCX",
46113
+ "application/vnd.openxmlformats-officedocument.wordprocessingml.document"
46114
+ ].includes(item.type) ? (openBlock(), createElementBlock("img", {
46464
46115
  key: 3,
46465
46116
  class: "bm-upload__picture-result__image",
46466
46117
  src: $setup.icons.doc,
46467
46118
  alt: "avatar"
46468
- }, null, 8, _hoisted_7$1)) : ["img", "image", "png", "jpg", "jpeg"].includes(item.type) ? (openBlock(), createElementBlock("img", {
46119
+ }, null, 8, _hoisted_7$1)) : [
46120
+ "img",
46121
+ "image",
46122
+ "png",
46123
+ "PNG",
46124
+ "image/png",
46125
+ "jpg",
46126
+ "JPG",
46127
+ "jpeg",
46128
+ "JPEG",
46129
+ "image/jpeg",
46130
+ "gif",
46131
+ "GIF",
46132
+ "image/gif"
46133
+ ].includes(item.type) ? (openBlock(), createElementBlock("img", {
46469
46134
  key: 4,
46470
46135
  class: "bm-upload__picture-result__image",
46471
46136
  src: item.url,
@@ -46475,8 +46140,8 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
46475
46140
  class: "bm-upload__picture-result__image",
46476
46141
  src: $setup.icons.others,
46477
46142
  alt: "avatar"
46478
- }, null, 8, _hoisted_9$1)),
46479
- _ctx.onepViewImageHover[item.uid] ? (openBlock(), createElementBlock("div", _hoisted_10$1, [
46143
+ }, null, 8, _hoisted_9)),
46144
+ _ctx.onepViewImageHover[item.uid] ? (openBlock(), createElementBlock("div", _hoisted_10, [
46480
46145
  !_ctx.extraConfigs.canNotViewAccept?.includes(item?.type) ? (openBlock(), createElementBlock("div", {
46481
46146
  key: 0,
46482
46147
  class: "bm-upload__picture-result__icon bm-upload__picture-result__icon--view",
@@ -46592,7 +46257,16 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
46592
46257
  }, {
46593
46258
  default: withCtx(() => [
46594
46259
  createElementVNode("div", _hoisted_32, [
46595
- ["img", "image", "png", "jpg", "jpeg"].includes(_ctx.onepViewImage.type) ? (openBlock(), createElementBlock("img", {
46260
+ [
46261
+ "img",
46262
+ "image",
46263
+ "png",
46264
+ "PNG",
46265
+ "jpg",
46266
+ "JPG",
46267
+ "jpeg",
46268
+ "JPEG"
46269
+ ].includes(_ctx.onepViewImage.type) ? (openBlock(), createElementBlock("img", {
46596
46270
  key: 0,
46597
46271
  style: { "width": "100%" },
46598
46272
  src: _ctx.onepViewImage.url,
@@ -46698,8 +46372,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
46698
46372
  setup(__props) {
46699
46373
  const props = __props;
46700
46374
  const slots = useSlots();
46701
- const labelWidth = inject("labelWidth", ref(""));
46702
- const mode = inject("mode", ref("left"));
46375
+ const labelWidth = inject("labelWidth", ref$1(""));
46376
+ const mode = inject("mode", ref$1("left"));
46703
46377
  const offsetStyle = computed(() => {
46704
46378
  if (labelWidth.value) {
46705
46379
  if (mode.value !== "right") {
@@ -46783,6 +46457,10 @@ const _sfc_main = defineComponent({
46783
46457
  type: Boolean,
46784
46458
  default: true
46785
46459
  },
46460
+ unitStr: {
46461
+ type: String,
46462
+ default: "\u9879"
46463
+ },
46786
46464
  btnText: {
46787
46465
  type: String,
46788
46466
  default: "\u6DFB\u52A0"
@@ -46790,6 +46468,16 @@ const _sfc_main = defineComponent({
46790
46468
  placement: {
46791
46469
  type: String,
46792
46470
  default: "bottom"
46471
+ },
46472
+ toolTipProps: {
46473
+ type: Object,
46474
+ default: () => {
46475
+ return {};
46476
+ }
46477
+ },
46478
+ alwaysInvoke: {
46479
+ type: Boolean,
46480
+ default: true
46793
46481
  }
46794
46482
  },
46795
46483
  emits: ["clear", "update:list", "addClick"],
@@ -46806,13 +46494,38 @@ const _sfc_main = defineComponent({
46806
46494
  }
46807
46495
  }
46808
46496
  function toAddTags() {
46809
- emit("addClick");
46810
- }
46497
+ if (!props.list.length || props.alwaysInvoke)
46498
+ emit("addClick");
46499
+ }
46500
+ const tooltipConfig = ref({
46501
+ align: void 0,
46502
+ arrowPointAtCenter: false,
46503
+ autoAdjustOverflow: true,
46504
+ color: "#fff",
46505
+ defaultVisible: false,
46506
+ destroyTooltipOnHide: false,
46507
+ getPopupContainer,
46508
+ mouseEnterDelay: 0.1,
46509
+ mouseLeaveDelay: 0.1,
46510
+ overlayClassName: "__list-filter-popover",
46511
+ overlayStyle: null,
46512
+ placement: props.placement,
46513
+ trigger: "hover"
46514
+ });
46515
+ watch(() => props.toolTipProps, (tooltipprop) => {
46516
+ tooltipConfig.value = {
46517
+ ...tooltipConfig.value,
46518
+ ...tooltipprop
46519
+ };
46520
+ }, {
46521
+ immediate: true,
46522
+ deep: true
46523
+ });
46811
46524
  return {
46812
46525
  containId,
46813
46526
  clear,
46814
46527
  toAddTags,
46815
- getPopupContainer
46528
+ tooltipConfig
46816
46529
  };
46817
46530
  }
46818
46531
  });
@@ -46821,11 +46534,9 @@ const _hoisted_2 = ["id"];
46821
46534
  const _hoisted_3 = { class: "pop-seleted" };
46822
46535
  const _hoisted_4 = { class: "pop-seleted-title" };
46823
46536
  const _hoisted_5 = /* @__PURE__ */ createTextVNode(" \u5DF2\u9009\u62E9");
46824
- const _hoisted_6 = /* @__PURE__ */ createTextVNode("\u9879 ");
46825
- const _hoisted_7 = { class: "select-input-wrapper" };
46826
- const _hoisted_8 = { key: 1 };
46827
- const _hoisted_9 = { key: 2 };
46828
- const _hoisted_10 = /* @__PURE__ */ createElementVNode("div", null, null, -1);
46537
+ const _hoisted_6 = { key: 1 };
46538
+ const _hoisted_7 = { key: 2 };
46539
+ const _hoisted_8 = /* @__PURE__ */ createElementVNode("div", null, null, -1);
46829
46540
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
46830
46541
  const _component_a_tag = resolveComponent("a-tag");
46831
46542
  const _component_CloseCircleFilled = resolveComponent("CloseCircleFilled");
@@ -46837,18 +46548,13 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
46837
46548
  id: _ctx.containId,
46838
46549
  class: "bm-tags-display-wrapper"
46839
46550
  }, [
46840
- createVNode(_component_ToolTip, {
46841
- color: "#fff",
46842
- "get-popup-container": _ctx.getPopupContainer,
46843
- placement: _ctx.placement,
46844
- "overlay-class-name": "__list-filter-popover"
46845
- }, {
46551
+ createVNode(_component_ToolTip, normalizeProps(guardReactiveProps(_ctx.tooltipConfig)), {
46846
46552
  title: withCtx(() => [
46847
46553
  createElementVNode("div", _hoisted_3, [
46848
46554
  createElementVNode("div", _hoisted_4, [
46849
46555
  _hoisted_5,
46850
46556
  createElementVNode("span", null, toDisplayString(_ctx.list.length), 1),
46851
- _hoisted_6
46557
+ createTextVNode(toDisplayString(_ctx.unitStr), 1)
46852
46558
  ])
46853
46559
  ]),
46854
46560
  createElementVNode("div", {
@@ -46870,7 +46576,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
46870
46576
  ], 32)
46871
46577
  ]),
46872
46578
  default: withCtx(() => [
46873
- createElementVNode("div", _hoisted_7, [
46579
+ createElementVNode("div", {
46580
+ class: "select-input-wrapper",
46581
+ onClick: _cache[4] || (_cache[4] = (...args) => _ctx.toAddTags && _ctx.toAddTags(...args))
46582
+ }, [
46874
46583
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.list, (item) => {
46875
46584
  return openBlock(), createBlock(_component_a_tag, {
46876
46585
  key: item.key
@@ -46894,9 +46603,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
46894
46603
  ])
46895
46604
  ]),
46896
46605
  _: 1
46897
- }, 8, ["get-popup-container", "placement"])
46606
+ }, 16)
46898
46607
  ], 8, _hoisted_2)) : createCommentVNode("v-if", true),
46899
- _ctx.showEmptyBtn && !_ctx.list.length ? (openBlock(), createElementBlock("div", _hoisted_8, [
46608
+ _ctx.showEmptyBtn && !_ctx.list.length ? (openBlock(), createElementBlock("div", _hoisted_6, [
46900
46609
  createVNode(_component_Button, {
46901
46610
  onClick: withModifiers(_ctx.toAddTags, ["stop"])
46902
46611
  }, {
@@ -46906,13 +46615,13 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
46906
46615
  _: 1
46907
46616
  }, 8, ["onClick"])
46908
46617
  ])) : createCommentVNode("v-if", true),
46909
- _ctx.showEmpty && !_ctx.list.length ? (openBlock(), createElementBlock("div", _hoisted_9, [
46618
+ _ctx.showEmpty && !_ctx.list.length ? (openBlock(), createElementBlock("div", _hoisted_7, [
46910
46619
  createElementVNode("div", {
46911
46620
  class: "selector-empty-input",
46912
- onClick: _cache[4] || (_cache[4] = withModifiers((...args) => _ctx.toAddTags && _ctx.toAddTags(...args), ["stop"]))
46913
- }, "\xA0\xA0" + toDisplayString(_ctx.placeholder), 1)
46621
+ onClick: _cache[5] || (_cache[5] = withModifiers((...args) => _ctx.toAddTags && _ctx.toAddTags(...args), ["stop"]))
46622
+ }, " \xA0\xA0" + toDisplayString(_ctx.placeholder), 1)
46914
46623
  ])) : createCommentVNode("v-if", true),
46915
- _hoisted_10
46624
+ _hoisted_8
46916
46625
  ]);
46917
46626
  }
46918
46627
  var InputTagsDisplay = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "input-tags-display.vue"]]);