cy-element-ui 1.0.49 → 1.0.50

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 (98) hide show
  1. package/lib/alert.js +108 -108
  2. package/lib/aside.js +77 -77
  3. package/lib/autocomplete.js +359 -5198
  4. package/lib/avatar.js +4 -4
  5. package/lib/backtop.js +101 -192
  6. package/lib/badge.js +108 -108
  7. package/lib/breadcrumb-item.js +108 -108
  8. package/lib/breadcrumb.js +94 -94
  9. package/lib/button-group.js +4 -4
  10. package/lib/button.js +4 -4
  11. package/lib/calendar.js +137 -1734
  12. package/lib/card.js +96 -96
  13. package/lib/carousel-item.js +108 -452
  14. package/lib/carousel.js +105 -1256
  15. package/lib/cascader-panel.js +191 -3524
  16. package/lib/cascader.js +709 -8069
  17. package/lib/checkbox-button.js +119 -151
  18. package/lib/checkbox-group.js +15 -47
  19. package/lib/checkbox.js +15 -47
  20. package/lib/col.js +2 -2
  21. package/lib/collapse-item.js +110 -815
  22. package/lib/collapse.js +108 -108
  23. package/lib/color-picker.js +835 -4712
  24. package/lib/container.js +88 -88
  25. package/lib/date-picker.js +4596 -10622
  26. package/lib/descriptions-item.js +2 -2
  27. package/lib/descriptions.js +8 -63
  28. package/lib/dialog.js +22 -1200
  29. package/lib/divider.js +104 -104
  30. package/lib/drawer.js +105 -875
  31. package/lib/dropdown-item.js +96 -128
  32. package/lib/dropdown-menu.js +99 -2301
  33. package/lib/dropdown.js +54 -990
  34. package/lib/element-ui.common.js +29758 -47436
  35. package/lib/empty.js +99 -793
  36. package/lib/fileUpload.js +25 -2541
  37. package/lib/footer.js +77 -77
  38. package/lib/form-item.js +208 -3311
  39. package/lib/form.js +115 -129
  40. package/lib/header.js +77 -77
  41. package/lib/icon.js +67 -67
  42. package/lib/image.js +146 -1662
  43. package/lib/index.js +1 -1
  44. package/lib/infinite-scroll.js +26 -435
  45. package/lib/input-number.js +24 -1458
  46. package/lib/input.js +37 -509
  47. package/lib/link.js +4 -4
  48. package/lib/loading.js +149 -886
  49. package/lib/main.js +64 -64
  50. package/lib/menu-item-group.js +103 -103
  51. package/lib/menu-item.js +137 -3140
  52. package/lib/menu.js +123 -1058
  53. package/lib/message-box.js +179 -2734
  54. package/lib/message.js +118 -1196
  55. package/lib/notification.js +118 -1195
  56. package/lib/option-group.js +119 -151
  57. package/lib/option.js +16 -392
  58. package/lib/page-header.js +87 -781
  59. package/lib/pagination.js +642 -7743
  60. package/lib/popconfirm.js +219 -3606
  61. package/lib/popover.js +99 -2624
  62. package/lib/progress.js +4 -4
  63. package/lib/radio-button.js +119 -151
  64. package/lib/radio-group.js +119 -151
  65. package/lib/radio.js +15 -47
  66. package/lib/rate.js +113 -756
  67. package/lib/result.js +108 -108
  68. package/lib/row.js +2 -2
  69. package/lib/scrollbar.js +41 -1813
  70. package/lib/select.js +209 -5547
  71. package/lib/selectDisplayInput.js +4 -4
  72. package/lib/skeleton-item.js +108 -108
  73. package/lib/skeleton.js +108 -108
  74. package/lib/slider.js +815 -5053
  75. package/lib/spinner.js +100 -100
  76. package/lib/statistic.js +112 -9600
  77. package/lib/step.js +108 -108
  78. package/lib/steps.js +99 -514
  79. package/lib/subTitle.js +91 -91
  80. package/lib/submenu.js +76 -2397
  81. package/lib/switch.js +127 -582
  82. package/lib/tab-pane.js +108 -108
  83. package/lib/tabDialog.js +104 -1630
  84. package/lib/table-column.js +267 -1115
  85. package/lib/table.js +1289 -7121
  86. package/lib/tabs.js +113 -1615
  87. package/lib/tag.js +4 -4
  88. package/lib/time-picker.js +554 -6491
  89. package/lib/time-select.js +407 -6334
  90. package/lib/timeline-item.js +108 -108
  91. package/lib/timeline.js +4 -4
  92. package/lib/tooltip.js +44 -2688
  93. package/lib/transfer.js +146 -2238
  94. package/lib/tree.js +148 -1563
  95. package/lib/treeSelect.js +106 -3421
  96. package/lib/upload.js +31 -1198
  97. package/package.json +1 -1
  98. package/src/index.js +1 -1
package/lib/tabs.js CHANGED
@@ -82,80 +82,131 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 142);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 67);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
89
89
 
90
90
  /***/ 0:
91
- /***/ (function(module, exports) {
91
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
92
92
 
93
- module.exports = require("vue");
93
+ "use strict";
94
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
95
+ /* globals __VUE_SSR_CONTEXT__ */
94
96
 
95
- /***/ }),
97
+ // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
98
+ // This module is a runtime utility for cleaner component module output and will
99
+ // be included in the final webpack user bundle.
96
100
 
97
- /***/ 14:
98
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
101
+ function normalizeComponent(
102
+ scriptExports,
103
+ render,
104
+ staticRenderFns,
105
+ functionalTemplate,
106
+ injectStyles,
107
+ scopeId,
108
+ moduleIdentifier /* server only */,
109
+ shadowMode /* vue-cli only */
110
+ ) {
111
+ // Vue.extend constructor export interop
112
+ var options =
113
+ typeof scriptExports === 'function' ? scriptExports.options : scriptExports
99
114
 
100
- "use strict";
101
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return addResizeListener; });
102
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return removeResizeListener; });
103
- /* harmony import */ var resize_observer_polyfill__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(22);
104
- /* harmony import */ var throttle_debounce__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(21);
105
- /* harmony import */ var throttle_debounce__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(throttle_debounce__WEBPACK_IMPORTED_MODULE_1__);
115
+ // render functions
116
+ if (render) {
117
+ options.render = render
118
+ options.staticRenderFns = staticRenderFns
119
+ options._compiled = true
120
+ }
106
121
 
122
+ // functional template
123
+ if (functionalTemplate) {
124
+ options.functional = true
125
+ }
107
126
 
127
+ // scopedId
128
+ if (scopeId) {
129
+ options._scopeId = 'data-v-' + scopeId
130
+ }
108
131
 
109
- var isServer = typeof window === 'undefined';
132
+ var hook
133
+ if (moduleIdentifier) {
134
+ // server build
135
+ hook = function (context) {
136
+ // 2.3 injection
137
+ context =
138
+ context || // cached call
139
+ (this.$vnode && this.$vnode.ssrContext) || // stateful
140
+ (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
141
+ // 2.2 with runInNewContext: true
142
+ if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
143
+ context = __VUE_SSR_CONTEXT__
144
+ }
145
+ // inject component styles
146
+ if (injectStyles) {
147
+ injectStyles.call(this, context)
148
+ }
149
+ // register component module identifier for async chunk inferrence
150
+ if (context && context._registeredComponents) {
151
+ context._registeredComponents.add(moduleIdentifier)
152
+ }
153
+ }
154
+ // used by ssr in case component is cached and beforeCreate
155
+ // never gets called
156
+ options._ssrRegister = hook
157
+ } else if (injectStyles) {
158
+ hook = shadowMode
159
+ ? function () {
160
+ injectStyles.call(
161
+ this,
162
+ (options.functional ? this.parent : this).$root.$options.shadowRoot
163
+ )
164
+ }
165
+ : injectStyles
166
+ }
110
167
 
111
- /* istanbul ignore next */
112
- var resizeHandler = function resizeHandler(entries) {
113
- for (var _iterator = entries, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) {
114
- var _ref;
115
-
116
- if (_isArray) {
117
- if (_i >= _iterator.length) break;
118
- _ref = _iterator[_i++];
119
- } else {
120
- _i = _iterator.next();
121
- if (_i.done) break;
122
- _ref = _i.value;
123
- }
168
+ if (hook) {
169
+ if (options.functional) {
170
+ // for template-only hot-reload because in that case the render fn doesn't
171
+ // go through the normalizer
172
+ options._injectStyles = hook
173
+ // register for functional component in vue file
174
+ var originalRender = options.render
175
+ options.render = function renderWithStyleInjection(h, context) {
176
+ hook.call(context)
177
+ return originalRender(h, context)
178
+ }
179
+ } else {
180
+ // inject component registration as beforeCreate hook
181
+ var existing = options.beforeCreate
182
+ options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
183
+ }
184
+ }
124
185
 
125
- var entry = _ref;
186
+ return {
187
+ exports: scriptExports,
188
+ options: options
189
+ }
190
+ }
126
191
 
127
- var listeners = entry.target.__resizeListeners__ || [];
128
- if (listeners.length) {
129
- listeners.forEach(function (fn) {
130
- fn();
131
- });
132
- }
133
- }
134
- };
135
192
 
136
- /* istanbul ignore next */
137
- var addResizeListener = function addResizeListener(element, fn) {
138
- if (isServer) return;
139
- if (!element.__resizeListeners__) {
140
- element.__resizeListeners__ = [];
141
- element.__ro__ = new resize_observer_polyfill__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"](Object(throttle_debounce__WEBPACK_IMPORTED_MODULE_1__["debounce"])(16, resizeHandler));
142
- element.__ro__.observe(element);
143
- }
144
- element.__resizeListeners__.push(fn);
145
- };
193
+ /***/ }),
146
194
 
147
- /* istanbul ignore next */
148
- var removeResizeListener = function removeResizeListener(element, fn) {
149
- if (!element || !element.__resizeListeners__) return;
150
- element.__resizeListeners__.splice(element.__resizeListeners__.indexOf(fn), 1);
151
- if (!element.__resizeListeners__.length) {
152
- element.__ro__.disconnect();
153
- }
154
- };
195
+ /***/ 17:
196
+ /***/ (function(module, exports) {
197
+
198
+ module.exports = require("element-ui/src/utils/resize-event");
155
199
 
156
200
  /***/ }),
157
201
 
158
- /***/ 142:
202
+ /***/ 3:
203
+ /***/ (function(module, exports) {
204
+
205
+ module.exports = require("element-ui/src/utils/util");
206
+
207
+ /***/ }),
208
+
209
+ /***/ 67:
159
210
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
160
211
 
161
212
  "use strict";
@@ -178,8 +229,8 @@ render._withStripped = true
178
229
 
179
230
  // CONCATENATED MODULE: ./packages/tabs/src/tab-bar.vue?vue&type=template&id=54e4d55d
180
231
 
181
- // EXTERNAL MODULE: ./src/utils/util.js
182
- var util = __webpack_require__(3);
232
+ // EXTERNAL MODULE: external "element-ui/src/utils/util"
233
+ var util_ = __webpack_require__(3);
183
234
 
184
235
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/tabs/src/tab-bar.vue?vue&type=script&lang=js
185
236
 
@@ -209,7 +260,7 @@ var util = __webpack_require__(3);
209
260
  });
210
261
  };
211
262
  this.tabs.every(function (tab, index) {
212
- var $el = Object(util["a" /* arrayFind */])(_this.$parent.$refs.tabs || [], function (t) {
263
+ var $el = Object(util_["arrayFind"])(_this.$parent.$refs.tabs || [], function (t) {
213
264
  return t.id.replace('tab-', '') === tab.paneName;
214
265
  });
215
266
  if (!$el) {
@@ -246,7 +297,7 @@ var util = __webpack_require__(3);
246
297
  // CONCATENATED MODULE: ./packages/tabs/src/tab-bar.vue?vue&type=script&lang=js
247
298
  /* harmony default export */ var src_tab_barvue_type_script_lang_js = (tab_barvue_type_script_lang_js);
248
299
  // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
249
- var componentNormalizer = __webpack_require__(2);
300
+ var componentNormalizer = __webpack_require__(0);
250
301
 
251
302
  // CONCATENATED MODULE: ./packages/tabs/src/tab-bar.vue
252
303
 
@@ -268,8 +319,8 @@ var component = Object(componentNormalizer["a" /* default */])(
268
319
  )
269
320
 
270
321
  /* harmony default export */ var tab_bar = (component.exports);
271
- // EXTERNAL MODULE: ./src/utils/resize-event.js
272
- var resize_event = __webpack_require__(14);
322
+ // EXTERNAL MODULE: external "element-ui/src/utils/resize-event"
323
+ var resize_event_ = __webpack_require__(17);
273
324
 
274
325
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/tabs/src/tab-nav.vue?vue&type=script&lang=js
275
326
 
@@ -586,7 +637,7 @@ var tab_navvue_type_script_lang_js_firstUpperCase = function firstUpperCase(str)
586
637
  mounted: function mounted() {
587
638
  var _this4 = this;
588
639
 
589
- Object(resize_event["a" /* addResizeListener */])(this.$el, this.update);
640
+ Object(resize_event_["addResizeListener"])(this.$el, this.update);
590
641
  document.addEventListener('visibilitychange', this.visibilityChangeHandler);
591
642
  window.addEventListener('blur', this.windowBlurHandler);
592
643
  window.addEventListener('focus', this.windowFocusHandler);
@@ -595,7 +646,7 @@ var tab_navvue_type_script_lang_js_firstUpperCase = function firstUpperCase(str)
595
646
  }, 0);
596
647
  },
597
648
  beforeDestroy: function beforeDestroy() {
598
- if (this.$el && this.update) Object(resize_event["b" /* removeResizeListener */])(this.$el, this.update);
649
+ if (this.$el && this.update) Object(resize_event_["removeResizeListener"])(this.$el, this.update);
599
650
  document.removeEventListener('visibilitychange', this.visibilityChangeHandler);
600
651
  window.removeEventListener('blur', this.windowBlurHandler);
601
652
  window.removeEventListener('focus', this.windowFocusHandler);
@@ -860,1559 +911,6 @@ tabs.install = function (Vue) {
860
911
 
861
912
  /* harmony default export */ var packages_tabs = __webpack_exports__["default"] = (tabs);
862
913
 
863
- /***/ }),
864
-
865
- /***/ 16:
866
- /***/ (function(module, exports, __webpack_require__) {
867
-
868
- /* eslint-disable no-undefined */
869
-
870
- var throttle = __webpack_require__(17);
871
-
872
- /**
873
- * Debounce execution of a function. Debouncing, unlike throttling,
874
- * guarantees that a function is only executed a single time, either at the
875
- * very beginning of a series of calls, or at the very end.
876
- *
877
- * @param {Number} delay A zero-or-greater delay in milliseconds. For event callbacks, values around 100 or 250 (or even higher) are most useful.
878
- * @param {Boolean} [atBegin] Optional, defaults to false. If atBegin is false or unspecified, callback will only be executed `delay` milliseconds
879
- * after the last debounced-function call. If atBegin is true, callback will be executed only at the first debounced-function call.
880
- * (After the throttled-function has not been called for `delay` milliseconds, the internal counter is reset).
881
- * @param {Function} callback A function to be executed after delay milliseconds. The `this` context and all arguments are passed through, as-is,
882
- * to `callback` when the debounced-function is executed.
883
- *
884
- * @return {Function} A new, debounced function.
885
- */
886
- module.exports = function ( delay, atBegin, callback ) {
887
- return callback === undefined ? throttle(delay, atBegin, false) : throttle(delay, callback, atBegin !== false);
888
- };
889
-
890
-
891
- /***/ }),
892
-
893
- /***/ 17:
894
- /***/ (function(module, exports) {
895
-
896
- /* eslint-disable no-undefined,no-param-reassign,no-shadow */
897
-
898
- /**
899
- * Throttle execution of a function. Especially useful for rate limiting
900
- * execution of handlers on events like resize and scroll.
901
- *
902
- * @param {Number} delay A zero-or-greater delay in milliseconds. For event callbacks, values around 100 or 250 (or even higher) are most useful.
903
- * @param {Boolean} [noTrailing] Optional, defaults to false. If noTrailing is true, callback will only execute every `delay` milliseconds while the
904
- * throttled-function is being called. If noTrailing is false or unspecified, callback will be executed one final time
905
- * after the last throttled-function call. (After the throttled-function has not been called for `delay` milliseconds,
906
- * the internal counter is reset)
907
- * @param {Function} callback A function to be executed after delay milliseconds. The `this` context and all arguments are passed through, as-is,
908
- * to `callback` when the throttled-function is executed.
909
- * @param {Boolean} [debounceMode] If `debounceMode` is true (at begin), schedule `clear` to execute after `delay` ms. If `debounceMode` is false (at end),
910
- * schedule `callback` to execute after `delay` ms.
911
- *
912
- * @return {Function} A new, throttled, function.
913
- */
914
- module.exports = function ( delay, noTrailing, callback, debounceMode ) {
915
-
916
- // After wrapper has stopped being called, this timeout ensures that
917
- // `callback` is executed at the proper times in `throttle` and `end`
918
- // debounce modes.
919
- var timeoutID;
920
-
921
- // Keep track of the last time `callback` was executed.
922
- var lastExec = 0;
923
-
924
- // `noTrailing` defaults to falsy.
925
- if ( typeof noTrailing !== 'boolean' ) {
926
- debounceMode = callback;
927
- callback = noTrailing;
928
- noTrailing = undefined;
929
- }
930
-
931
- // The `wrapper` function encapsulates all of the throttling / debouncing
932
- // functionality and when executed will limit the rate at which `callback`
933
- // is executed.
934
- function wrapper () {
935
-
936
- var self = this;
937
- var elapsed = Number(new Date()) - lastExec;
938
- var args = arguments;
939
-
940
- // Execute `callback` and update the `lastExec` timestamp.
941
- function exec () {
942
- lastExec = Number(new Date());
943
- callback.apply(self, args);
944
- }
945
-
946
- // If `debounceMode` is true (at begin) this is used to clear the flag
947
- // to allow future `callback` executions.
948
- function clear () {
949
- timeoutID = undefined;
950
- }
951
-
952
- if ( debounceMode && !timeoutID ) {
953
- // Since `wrapper` is being called for the first time and
954
- // `debounceMode` is true (at begin), execute `callback`.
955
- exec();
956
- }
957
-
958
- // Clear any existing timeout.
959
- if ( timeoutID ) {
960
- clearTimeout(timeoutID);
961
- }
962
-
963
- if ( debounceMode === undefined && elapsed > delay ) {
964
- // In throttle mode, if `delay` time has been exceeded, execute
965
- // `callback`.
966
- exec();
967
-
968
- } else if ( noTrailing !== true ) {
969
- // In trailing throttle mode, since `delay` time has not been
970
- // exceeded, schedule `callback` to execute `delay` ms after most
971
- // recent execution.
972
- //
973
- // If `debounceMode` is true (at begin), schedule `clear` to execute
974
- // after `delay` ms.
975
- //
976
- // If `debounceMode` is false (at end), schedule `callback` to
977
- // execute after `delay` ms.
978
- timeoutID = setTimeout(debounceMode ? clear : exec, debounceMode === undefined ? delay - elapsed : delay);
979
- }
980
-
981
- }
982
-
983
- // Return the wrapper function.
984
- return wrapper;
985
-
986
- };
987
-
988
-
989
- /***/ }),
990
-
991
- /***/ 2:
992
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
993
-
994
- "use strict";
995
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
996
- /* globals __VUE_SSR_CONTEXT__ */
997
-
998
- // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
999
- // This module is a runtime utility for cleaner component module output and will
1000
- // be included in the final webpack user bundle.
1001
-
1002
- function normalizeComponent(
1003
- scriptExports,
1004
- render,
1005
- staticRenderFns,
1006
- functionalTemplate,
1007
- injectStyles,
1008
- scopeId,
1009
- moduleIdentifier /* server only */,
1010
- shadowMode /* vue-cli only */
1011
- ) {
1012
- // Vue.extend constructor export interop
1013
- var options =
1014
- typeof scriptExports === 'function' ? scriptExports.options : scriptExports
1015
-
1016
- // render functions
1017
- if (render) {
1018
- options.render = render
1019
- options.staticRenderFns = staticRenderFns
1020
- options._compiled = true
1021
- }
1022
-
1023
- // functional template
1024
- if (functionalTemplate) {
1025
- options.functional = true
1026
- }
1027
-
1028
- // scopedId
1029
- if (scopeId) {
1030
- options._scopeId = 'data-v-' + scopeId
1031
- }
1032
-
1033
- var hook
1034
- if (moduleIdentifier) {
1035
- // server build
1036
- hook = function (context) {
1037
- // 2.3 injection
1038
- context =
1039
- context || // cached call
1040
- (this.$vnode && this.$vnode.ssrContext) || // stateful
1041
- (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
1042
- // 2.2 with runInNewContext: true
1043
- if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
1044
- context = __VUE_SSR_CONTEXT__
1045
- }
1046
- // inject component styles
1047
- if (injectStyles) {
1048
- injectStyles.call(this, context)
1049
- }
1050
- // register component module identifier for async chunk inferrence
1051
- if (context && context._registeredComponents) {
1052
- context._registeredComponents.add(moduleIdentifier)
1053
- }
1054
- }
1055
- // used by ssr in case component is cached and beforeCreate
1056
- // never gets called
1057
- options._ssrRegister = hook
1058
- } else if (injectStyles) {
1059
- hook = shadowMode
1060
- ? function () {
1061
- injectStyles.call(
1062
- this,
1063
- (options.functional ? this.parent : this).$root.$options.shadowRoot
1064
- )
1065
- }
1066
- : injectStyles
1067
- }
1068
-
1069
- if (hook) {
1070
- if (options.functional) {
1071
- // for template-only hot-reload because in that case the render fn doesn't
1072
- // go through the normalizer
1073
- options._injectStyles = hook
1074
- // register for functional component in vue file
1075
- var originalRender = options.render
1076
- options.render = function renderWithStyleInjection(h, context) {
1077
- hook.call(context)
1078
- return originalRender(h, context)
1079
- }
1080
- } else {
1081
- // inject component registration as beforeCreate hook
1082
- var existing = options.beforeCreate
1083
- options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
1084
- }
1085
- }
1086
-
1087
- return {
1088
- exports: scriptExports,
1089
- options: options
1090
- }
1091
- }
1092
-
1093
-
1094
- /***/ }),
1095
-
1096
- /***/ 21:
1097
- /***/ (function(module, exports, __webpack_require__) {
1098
-
1099
- var throttle = __webpack_require__(17);
1100
- var debounce = __webpack_require__(16);
1101
-
1102
- module.exports = {
1103
- throttle: throttle,
1104
- debounce: debounce
1105
- };
1106
-
1107
-
1108
- /***/ }),
1109
-
1110
- /***/ 22:
1111
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
1112
-
1113
- "use strict";
1114
- /* WEBPACK VAR INJECTION */(function(global) {/**
1115
- * A collection of shims that provide minimal functionality of the ES6 collections.
1116
- *
1117
- * These implementations are not meant to be used outside of the ResizeObserver
1118
- * modules as they cover only a limited range of use cases.
1119
- */
1120
- /* eslint-disable require-jsdoc, valid-jsdoc */
1121
- var MapShim = (function () {
1122
- if (typeof Map !== 'undefined') {
1123
- return Map;
1124
- }
1125
- /**
1126
- * Returns index in provided array that matches the specified key.
1127
- *
1128
- * @param {Array<Array>} arr
1129
- * @param {*} key
1130
- * @returns {number}
1131
- */
1132
- function getIndex(arr, key) {
1133
- var result = -1;
1134
- arr.some(function (entry, index) {
1135
- if (entry[0] === key) {
1136
- result = index;
1137
- return true;
1138
- }
1139
- return false;
1140
- });
1141
- return result;
1142
- }
1143
- return /** @class */ (function () {
1144
- function class_1() {
1145
- this.__entries__ = [];
1146
- }
1147
- Object.defineProperty(class_1.prototype, "size", {
1148
- /**
1149
- * @returns {boolean}
1150
- */
1151
- get: function () {
1152
- return this.__entries__.length;
1153
- },
1154
- enumerable: true,
1155
- configurable: true
1156
- });
1157
- /**
1158
- * @param {*} key
1159
- * @returns {*}
1160
- */
1161
- class_1.prototype.get = function (key) {
1162
- var index = getIndex(this.__entries__, key);
1163
- var entry = this.__entries__[index];
1164
- return entry && entry[1];
1165
- };
1166
- /**
1167
- * @param {*} key
1168
- * @param {*} value
1169
- * @returns {void}
1170
- */
1171
- class_1.prototype.set = function (key, value) {
1172
- var index = getIndex(this.__entries__, key);
1173
- if (~index) {
1174
- this.__entries__[index][1] = value;
1175
- }
1176
- else {
1177
- this.__entries__.push([key, value]);
1178
- }
1179
- };
1180
- /**
1181
- * @param {*} key
1182
- * @returns {void}
1183
- */
1184
- class_1.prototype.delete = function (key) {
1185
- var entries = this.__entries__;
1186
- var index = getIndex(entries, key);
1187
- if (~index) {
1188
- entries.splice(index, 1);
1189
- }
1190
- };
1191
- /**
1192
- * @param {*} key
1193
- * @returns {void}
1194
- */
1195
- class_1.prototype.has = function (key) {
1196
- return !!~getIndex(this.__entries__, key);
1197
- };
1198
- /**
1199
- * @returns {void}
1200
- */
1201
- class_1.prototype.clear = function () {
1202
- this.__entries__.splice(0);
1203
- };
1204
- /**
1205
- * @param {Function} callback
1206
- * @param {*} [ctx=null]
1207
- * @returns {void}
1208
- */
1209
- class_1.prototype.forEach = function (callback, ctx) {
1210
- if (ctx === void 0) { ctx = null; }
1211
- for (var _i = 0, _a = this.__entries__; _i < _a.length; _i++) {
1212
- var entry = _a[_i];
1213
- callback.call(ctx, entry[1], entry[0]);
1214
- }
1215
- };
1216
- return class_1;
1217
- }());
1218
- })();
1219
-
1220
- /**
1221
- * Detects whether window and document objects are available in current environment.
1222
- */
1223
- var isBrowser = typeof window !== 'undefined' && typeof document !== 'undefined' && window.document === document;
1224
-
1225
- // Returns global object of a current environment.
1226
- var global$1 = (function () {
1227
- if (typeof global !== 'undefined' && global.Math === Math) {
1228
- return global;
1229
- }
1230
- if (typeof self !== 'undefined' && self.Math === Math) {
1231
- return self;
1232
- }
1233
- if (typeof window !== 'undefined' && window.Math === Math) {
1234
- return window;
1235
- }
1236
- // eslint-disable-next-line no-new-func
1237
- return Function('return this')();
1238
- })();
1239
-
1240
- /**
1241
- * A shim for the requestAnimationFrame which falls back to the setTimeout if
1242
- * first one is not supported.
1243
- *
1244
- * @returns {number} Requests' identifier.
1245
- */
1246
- var requestAnimationFrame$1 = (function () {
1247
- if (typeof requestAnimationFrame === 'function') {
1248
- // It's required to use a bounded function because IE sometimes throws
1249
- // an "Invalid calling object" error if rAF is invoked without the global
1250
- // object on the left hand side.
1251
- return requestAnimationFrame.bind(global$1);
1252
- }
1253
- return function (callback) { return setTimeout(function () { return callback(Date.now()); }, 1000 / 60); };
1254
- })();
1255
-
1256
- // Defines minimum timeout before adding a trailing call.
1257
- var trailingTimeout = 2;
1258
- /**
1259
- * Creates a wrapper function which ensures that provided callback will be
1260
- * invoked only once during the specified delay period.
1261
- *
1262
- * @param {Function} callback - Function to be invoked after the delay period.
1263
- * @param {number} delay - Delay after which to invoke callback.
1264
- * @returns {Function}
1265
- */
1266
- function throttle (callback, delay) {
1267
- var leadingCall = false, trailingCall = false, lastCallTime = 0;
1268
- /**
1269
- * Invokes the original callback function and schedules new invocation if
1270
- * the "proxy" was called during current request.
1271
- *
1272
- * @returns {void}
1273
- */
1274
- function resolvePending() {
1275
- if (leadingCall) {
1276
- leadingCall = false;
1277
- callback();
1278
- }
1279
- if (trailingCall) {
1280
- proxy();
1281
- }
1282
- }
1283
- /**
1284
- * Callback invoked after the specified delay. It will further postpone
1285
- * invocation of the original function delegating it to the
1286
- * requestAnimationFrame.
1287
- *
1288
- * @returns {void}
1289
- */
1290
- function timeoutCallback() {
1291
- requestAnimationFrame$1(resolvePending);
1292
- }
1293
- /**
1294
- * Schedules invocation of the original function.
1295
- *
1296
- * @returns {void}
1297
- */
1298
- function proxy() {
1299
- var timeStamp = Date.now();
1300
- if (leadingCall) {
1301
- // Reject immediately following calls.
1302
- if (timeStamp - lastCallTime < trailingTimeout) {
1303
- return;
1304
- }
1305
- // Schedule new call to be in invoked when the pending one is resolved.
1306
- // This is important for "transitions" which never actually start
1307
- // immediately so there is a chance that we might miss one if change
1308
- // happens amids the pending invocation.
1309
- trailingCall = true;
1310
- }
1311
- else {
1312
- leadingCall = true;
1313
- trailingCall = false;
1314
- setTimeout(timeoutCallback, delay);
1315
- }
1316
- lastCallTime = timeStamp;
1317
- }
1318
- return proxy;
1319
- }
1320
-
1321
- // Minimum delay before invoking the update of observers.
1322
- var REFRESH_DELAY = 20;
1323
- // A list of substrings of CSS properties used to find transition events that
1324
- // might affect dimensions of observed elements.
1325
- var transitionKeys = ['top', 'right', 'bottom', 'left', 'width', 'height', 'size', 'weight'];
1326
- // Check if MutationObserver is available.
1327
- var mutationObserverSupported = typeof MutationObserver !== 'undefined';
1328
- /**
1329
- * Singleton controller class which handles updates of ResizeObserver instances.
1330
- */
1331
- var ResizeObserverController = /** @class */ (function () {
1332
- /**
1333
- * Creates a new instance of ResizeObserverController.
1334
- *
1335
- * @private
1336
- */
1337
- function ResizeObserverController() {
1338
- /**
1339
- * Indicates whether DOM listeners have been added.
1340
- *
1341
- * @private {boolean}
1342
- */
1343
- this.connected_ = false;
1344
- /**
1345
- * Tells that controller has subscribed for Mutation Events.
1346
- *
1347
- * @private {boolean}
1348
- */
1349
- this.mutationEventsAdded_ = false;
1350
- /**
1351
- * Keeps reference to the instance of MutationObserver.
1352
- *
1353
- * @private {MutationObserver}
1354
- */
1355
- this.mutationsObserver_ = null;
1356
- /**
1357
- * A list of connected observers.
1358
- *
1359
- * @private {Array<ResizeObserverSPI>}
1360
- */
1361
- this.observers_ = [];
1362
- this.onTransitionEnd_ = this.onTransitionEnd_.bind(this);
1363
- this.refresh = throttle(this.refresh.bind(this), REFRESH_DELAY);
1364
- }
1365
- /**
1366
- * Adds observer to observers list.
1367
- *
1368
- * @param {ResizeObserverSPI} observer - Observer to be added.
1369
- * @returns {void}
1370
- */
1371
- ResizeObserverController.prototype.addObserver = function (observer) {
1372
- if (!~this.observers_.indexOf(observer)) {
1373
- this.observers_.push(observer);
1374
- }
1375
- // Add listeners if they haven't been added yet.
1376
- if (!this.connected_) {
1377
- this.connect_();
1378
- }
1379
- };
1380
- /**
1381
- * Removes observer from observers list.
1382
- *
1383
- * @param {ResizeObserverSPI} observer - Observer to be removed.
1384
- * @returns {void}
1385
- */
1386
- ResizeObserverController.prototype.removeObserver = function (observer) {
1387
- var observers = this.observers_;
1388
- var index = observers.indexOf(observer);
1389
- // Remove observer if it's present in registry.
1390
- if (~index) {
1391
- observers.splice(index, 1);
1392
- }
1393
- // Remove listeners if controller has no connected observers.
1394
- if (!observers.length && this.connected_) {
1395
- this.disconnect_();
1396
- }
1397
- };
1398
- /**
1399
- * Invokes the update of observers. It will continue running updates insofar
1400
- * it detects changes.
1401
- *
1402
- * @returns {void}
1403
- */
1404
- ResizeObserverController.prototype.refresh = function () {
1405
- var changesDetected = this.updateObservers_();
1406
- // Continue running updates if changes have been detected as there might
1407
- // be future ones caused by CSS transitions.
1408
- if (changesDetected) {
1409
- this.refresh();
1410
- }
1411
- };
1412
- /**
1413
- * Updates every observer from observers list and notifies them of queued
1414
- * entries.
1415
- *
1416
- * @private
1417
- * @returns {boolean} Returns "true" if any observer has detected changes in
1418
- * dimensions of it's elements.
1419
- */
1420
- ResizeObserverController.prototype.updateObservers_ = function () {
1421
- // Collect observers that have active observations.
1422
- var activeObservers = this.observers_.filter(function (observer) {
1423
- return observer.gatherActive(), observer.hasActive();
1424
- });
1425
- // Deliver notifications in a separate cycle in order to avoid any
1426
- // collisions between observers, e.g. when multiple instances of
1427
- // ResizeObserver are tracking the same element and the callback of one
1428
- // of them changes content dimensions of the observed target. Sometimes
1429
- // this may result in notifications being blocked for the rest of observers.
1430
- activeObservers.forEach(function (observer) { return observer.broadcastActive(); });
1431
- return activeObservers.length > 0;
1432
- };
1433
- /**
1434
- * Initializes DOM listeners.
1435
- *
1436
- * @private
1437
- * @returns {void}
1438
- */
1439
- ResizeObserverController.prototype.connect_ = function () {
1440
- // Do nothing if running in a non-browser environment or if listeners
1441
- // have been already added.
1442
- if (!isBrowser || this.connected_) {
1443
- return;
1444
- }
1445
- // Subscription to the "Transitionend" event is used as a workaround for
1446
- // delayed transitions. This way it's possible to capture at least the
1447
- // final state of an element.
1448
- document.addEventListener('transitionend', this.onTransitionEnd_);
1449
- window.addEventListener('resize', this.refresh);
1450
- if (mutationObserverSupported) {
1451
- this.mutationsObserver_ = new MutationObserver(this.refresh);
1452
- this.mutationsObserver_.observe(document, {
1453
- attributes: true,
1454
- childList: true,
1455
- characterData: true,
1456
- subtree: true
1457
- });
1458
- }
1459
- else {
1460
- document.addEventListener('DOMSubtreeModified', this.refresh);
1461
- this.mutationEventsAdded_ = true;
1462
- }
1463
- this.connected_ = true;
1464
- };
1465
- /**
1466
- * Removes DOM listeners.
1467
- *
1468
- * @private
1469
- * @returns {void}
1470
- */
1471
- ResizeObserverController.prototype.disconnect_ = function () {
1472
- // Do nothing if running in a non-browser environment or if listeners
1473
- // have been already removed.
1474
- if (!isBrowser || !this.connected_) {
1475
- return;
1476
- }
1477
- document.removeEventListener('transitionend', this.onTransitionEnd_);
1478
- window.removeEventListener('resize', this.refresh);
1479
- if (this.mutationsObserver_) {
1480
- this.mutationsObserver_.disconnect();
1481
- }
1482
- if (this.mutationEventsAdded_) {
1483
- document.removeEventListener('DOMSubtreeModified', this.refresh);
1484
- }
1485
- this.mutationsObserver_ = null;
1486
- this.mutationEventsAdded_ = false;
1487
- this.connected_ = false;
1488
- };
1489
- /**
1490
- * "Transitionend" event handler.
1491
- *
1492
- * @private
1493
- * @param {TransitionEvent} event
1494
- * @returns {void}
1495
- */
1496
- ResizeObserverController.prototype.onTransitionEnd_ = function (_a) {
1497
- var _b = _a.propertyName, propertyName = _b === void 0 ? '' : _b;
1498
- // Detect whether transition may affect dimensions of an element.
1499
- var isReflowProperty = transitionKeys.some(function (key) {
1500
- return !!~propertyName.indexOf(key);
1501
- });
1502
- if (isReflowProperty) {
1503
- this.refresh();
1504
- }
1505
- };
1506
- /**
1507
- * Returns instance of the ResizeObserverController.
1508
- *
1509
- * @returns {ResizeObserverController}
1510
- */
1511
- ResizeObserverController.getInstance = function () {
1512
- if (!this.instance_) {
1513
- this.instance_ = new ResizeObserverController();
1514
- }
1515
- return this.instance_;
1516
- };
1517
- /**
1518
- * Holds reference to the controller's instance.
1519
- *
1520
- * @private {ResizeObserverController}
1521
- */
1522
- ResizeObserverController.instance_ = null;
1523
- return ResizeObserverController;
1524
- }());
1525
-
1526
- /**
1527
- * Defines non-writable/enumerable properties of the provided target object.
1528
- *
1529
- * @param {Object} target - Object for which to define properties.
1530
- * @param {Object} props - Properties to be defined.
1531
- * @returns {Object} Target object.
1532
- */
1533
- var defineConfigurable = (function (target, props) {
1534
- for (var _i = 0, _a = Object.keys(props); _i < _a.length; _i++) {
1535
- var key = _a[_i];
1536
- Object.defineProperty(target, key, {
1537
- value: props[key],
1538
- enumerable: false,
1539
- writable: false,
1540
- configurable: true
1541
- });
1542
- }
1543
- return target;
1544
- });
1545
-
1546
- /**
1547
- * Returns the global object associated with provided element.
1548
- *
1549
- * @param {Object} target
1550
- * @returns {Object}
1551
- */
1552
- var getWindowOf = (function (target) {
1553
- // Assume that the element is an instance of Node, which means that it
1554
- // has the "ownerDocument" property from which we can retrieve a
1555
- // corresponding global object.
1556
- var ownerGlobal = target && target.ownerDocument && target.ownerDocument.defaultView;
1557
- // Return the local global object if it's not possible extract one from
1558
- // provided element.
1559
- return ownerGlobal || global$1;
1560
- });
1561
-
1562
- // Placeholder of an empty content rectangle.
1563
- var emptyRect = createRectInit(0, 0, 0, 0);
1564
- /**
1565
- * Converts provided string to a number.
1566
- *
1567
- * @param {number|string} value
1568
- * @returns {number}
1569
- */
1570
- function toFloat(value) {
1571
- return parseFloat(value) || 0;
1572
- }
1573
- /**
1574
- * Extracts borders size from provided styles.
1575
- *
1576
- * @param {CSSStyleDeclaration} styles
1577
- * @param {...string} positions - Borders positions (top, right, ...)
1578
- * @returns {number}
1579
- */
1580
- function getBordersSize(styles) {
1581
- var positions = [];
1582
- for (var _i = 1; _i < arguments.length; _i++) {
1583
- positions[_i - 1] = arguments[_i];
1584
- }
1585
- return positions.reduce(function (size, position) {
1586
- var value = styles['border-' + position + '-width'];
1587
- return size + toFloat(value);
1588
- }, 0);
1589
- }
1590
- /**
1591
- * Extracts paddings sizes from provided styles.
1592
- *
1593
- * @param {CSSStyleDeclaration} styles
1594
- * @returns {Object} Paddings box.
1595
- */
1596
- function getPaddings(styles) {
1597
- var positions = ['top', 'right', 'bottom', 'left'];
1598
- var paddings = {};
1599
- for (var _i = 0, positions_1 = positions; _i < positions_1.length; _i++) {
1600
- var position = positions_1[_i];
1601
- var value = styles['padding-' + position];
1602
- paddings[position] = toFloat(value);
1603
- }
1604
- return paddings;
1605
- }
1606
- /**
1607
- * Calculates content rectangle of provided SVG element.
1608
- *
1609
- * @param {SVGGraphicsElement} target - Element content rectangle of which needs
1610
- * to be calculated.
1611
- * @returns {DOMRectInit}
1612
- */
1613
- function getSVGContentRect(target) {
1614
- var bbox = target.getBBox();
1615
- return createRectInit(0, 0, bbox.width, bbox.height);
1616
- }
1617
- /**
1618
- * Calculates content rectangle of provided HTMLElement.
1619
- *
1620
- * @param {HTMLElement} target - Element for which to calculate the content rectangle.
1621
- * @returns {DOMRectInit}
1622
- */
1623
- function getHTMLElementContentRect(target) {
1624
- // Client width & height properties can't be
1625
- // used exclusively as they provide rounded values.
1626
- var clientWidth = target.clientWidth, clientHeight = target.clientHeight;
1627
- // By this condition we can catch all non-replaced inline, hidden and
1628
- // detached elements. Though elements with width & height properties less
1629
- // than 0.5 will be discarded as well.
1630
- //
1631
- // Without it we would need to implement separate methods for each of
1632
- // those cases and it's not possible to perform a precise and performance
1633
- // effective test for hidden elements. E.g. even jQuery's ':visible' filter
1634
- // gives wrong results for elements with width & height less than 0.5.
1635
- if (!clientWidth && !clientHeight) {
1636
- return emptyRect;
1637
- }
1638
- var styles = getWindowOf(target).getComputedStyle(target);
1639
- var paddings = getPaddings(styles);
1640
- var horizPad = paddings.left + paddings.right;
1641
- var vertPad = paddings.top + paddings.bottom;
1642
- // Computed styles of width & height are being used because they are the
1643
- // only dimensions available to JS that contain non-rounded values. It could
1644
- // be possible to utilize the getBoundingClientRect if only it's data wasn't
1645
- // affected by CSS transformations let alone paddings, borders and scroll bars.
1646
- var width = toFloat(styles.width), height = toFloat(styles.height);
1647
- // Width & height include paddings and borders when the 'border-box' box
1648
- // model is applied (except for IE).
1649
- if (styles.boxSizing === 'border-box') {
1650
- // Following conditions are required to handle Internet Explorer which
1651
- // doesn't include paddings and borders to computed CSS dimensions.
1652
- //
1653
- // We can say that if CSS dimensions + paddings are equal to the "client"
1654
- // properties then it's either IE, and thus we don't need to subtract
1655
- // anything, or an element merely doesn't have paddings/borders styles.
1656
- if (Math.round(width + horizPad) !== clientWidth) {
1657
- width -= getBordersSize(styles, 'left', 'right') + horizPad;
1658
- }
1659
- if (Math.round(height + vertPad) !== clientHeight) {
1660
- height -= getBordersSize(styles, 'top', 'bottom') + vertPad;
1661
- }
1662
- }
1663
- // Following steps can't be applied to the document's root element as its
1664
- // client[Width/Height] properties represent viewport area of the window.
1665
- // Besides, it's as well not necessary as the <html> itself neither has
1666
- // rendered scroll bars nor it can be clipped.
1667
- if (!isDocumentElement(target)) {
1668
- // In some browsers (only in Firefox, actually) CSS width & height
1669
- // include scroll bars size which can be removed at this step as scroll
1670
- // bars are the only difference between rounded dimensions + paddings
1671
- // and "client" properties, though that is not always true in Chrome.
1672
- var vertScrollbar = Math.round(width + horizPad) - clientWidth;
1673
- var horizScrollbar = Math.round(height + vertPad) - clientHeight;
1674
- // Chrome has a rather weird rounding of "client" properties.
1675
- // E.g. for an element with content width of 314.2px it sometimes gives
1676
- // the client width of 315px and for the width of 314.7px it may give
1677
- // 314px. And it doesn't happen all the time. So just ignore this delta
1678
- // as a non-relevant.
1679
- if (Math.abs(vertScrollbar) !== 1) {
1680
- width -= vertScrollbar;
1681
- }
1682
- if (Math.abs(horizScrollbar) !== 1) {
1683
- height -= horizScrollbar;
1684
- }
1685
- }
1686
- return createRectInit(paddings.left, paddings.top, width, height);
1687
- }
1688
- /**
1689
- * Checks whether provided element is an instance of the SVGGraphicsElement.
1690
- *
1691
- * @param {Element} target - Element to be checked.
1692
- * @returns {boolean}
1693
- */
1694
- var isSVGGraphicsElement = (function () {
1695
- // Some browsers, namely IE and Edge, don't have the SVGGraphicsElement
1696
- // interface.
1697
- if (typeof SVGGraphicsElement !== 'undefined') {
1698
- return function (target) { return target instanceof getWindowOf(target).SVGGraphicsElement; };
1699
- }
1700
- // If it's so, then check that element is at least an instance of the
1701
- // SVGElement and that it has the "getBBox" method.
1702
- // eslint-disable-next-line no-extra-parens
1703
- return function (target) { return (target instanceof getWindowOf(target).SVGElement &&
1704
- typeof target.getBBox === 'function'); };
1705
- })();
1706
- /**
1707
- * Checks whether provided element is a document element (<html>).
1708
- *
1709
- * @param {Element} target - Element to be checked.
1710
- * @returns {boolean}
1711
- */
1712
- function isDocumentElement(target) {
1713
- return target === getWindowOf(target).document.documentElement;
1714
- }
1715
- /**
1716
- * Calculates an appropriate content rectangle for provided html or svg element.
1717
- *
1718
- * @param {Element} target - Element content rectangle of which needs to be calculated.
1719
- * @returns {DOMRectInit}
1720
- */
1721
- function getContentRect(target) {
1722
- if (!isBrowser) {
1723
- return emptyRect;
1724
- }
1725
- if (isSVGGraphicsElement(target)) {
1726
- return getSVGContentRect(target);
1727
- }
1728
- return getHTMLElementContentRect(target);
1729
- }
1730
- /**
1731
- * Creates rectangle with an interface of the DOMRectReadOnly.
1732
- * Spec: https://drafts.fxtf.org/geometry/#domrectreadonly
1733
- *
1734
- * @param {DOMRectInit} rectInit - Object with rectangle's x/y coordinates and dimensions.
1735
- * @returns {DOMRectReadOnly}
1736
- */
1737
- function createReadOnlyRect(_a) {
1738
- var x = _a.x, y = _a.y, width = _a.width, height = _a.height;
1739
- // If DOMRectReadOnly is available use it as a prototype for the rectangle.
1740
- var Constr = typeof DOMRectReadOnly !== 'undefined' ? DOMRectReadOnly : Object;
1741
- var rect = Object.create(Constr.prototype);
1742
- // Rectangle's properties are not writable and non-enumerable.
1743
- defineConfigurable(rect, {
1744
- x: x, y: y, width: width, height: height,
1745
- top: y,
1746
- right: x + width,
1747
- bottom: height + y,
1748
- left: x
1749
- });
1750
- return rect;
1751
- }
1752
- /**
1753
- * Creates DOMRectInit object based on the provided dimensions and the x/y coordinates.
1754
- * Spec: https://drafts.fxtf.org/geometry/#dictdef-domrectinit
1755
- *
1756
- * @param {number} x - X coordinate.
1757
- * @param {number} y - Y coordinate.
1758
- * @param {number} width - Rectangle's width.
1759
- * @param {number} height - Rectangle's height.
1760
- * @returns {DOMRectInit}
1761
- */
1762
- function createRectInit(x, y, width, height) {
1763
- return { x: x, y: y, width: width, height: height };
1764
- }
1765
-
1766
- /**
1767
- * Class that is responsible for computations of the content rectangle of
1768
- * provided DOM element and for keeping track of it's changes.
1769
- */
1770
- var ResizeObservation = /** @class */ (function () {
1771
- /**
1772
- * Creates an instance of ResizeObservation.
1773
- *
1774
- * @param {Element} target - Element to be observed.
1775
- */
1776
- function ResizeObservation(target) {
1777
- /**
1778
- * Broadcasted width of content rectangle.
1779
- *
1780
- * @type {number}
1781
- */
1782
- this.broadcastWidth = 0;
1783
- /**
1784
- * Broadcasted height of content rectangle.
1785
- *
1786
- * @type {number}
1787
- */
1788
- this.broadcastHeight = 0;
1789
- /**
1790
- * Reference to the last observed content rectangle.
1791
- *
1792
- * @private {DOMRectInit}
1793
- */
1794
- this.contentRect_ = createRectInit(0, 0, 0, 0);
1795
- this.target = target;
1796
- }
1797
- /**
1798
- * Updates content rectangle and tells whether it's width or height properties
1799
- * have changed since the last broadcast.
1800
- *
1801
- * @returns {boolean}
1802
- */
1803
- ResizeObservation.prototype.isActive = function () {
1804
- var rect = getContentRect(this.target);
1805
- this.contentRect_ = rect;
1806
- return (rect.width !== this.broadcastWidth ||
1807
- rect.height !== this.broadcastHeight);
1808
- };
1809
- /**
1810
- * Updates 'broadcastWidth' and 'broadcastHeight' properties with a data
1811
- * from the corresponding properties of the last observed content rectangle.
1812
- *
1813
- * @returns {DOMRectInit} Last observed content rectangle.
1814
- */
1815
- ResizeObservation.prototype.broadcastRect = function () {
1816
- var rect = this.contentRect_;
1817
- this.broadcastWidth = rect.width;
1818
- this.broadcastHeight = rect.height;
1819
- return rect;
1820
- };
1821
- return ResizeObservation;
1822
- }());
1823
-
1824
- var ResizeObserverEntry = /** @class */ (function () {
1825
- /**
1826
- * Creates an instance of ResizeObserverEntry.
1827
- *
1828
- * @param {Element} target - Element that is being observed.
1829
- * @param {DOMRectInit} rectInit - Data of the element's content rectangle.
1830
- */
1831
- function ResizeObserverEntry(target, rectInit) {
1832
- var contentRect = createReadOnlyRect(rectInit);
1833
- // According to the specification following properties are not writable
1834
- // and are also not enumerable in the native implementation.
1835
- //
1836
- // Property accessors are not being used as they'd require to define a
1837
- // private WeakMap storage which may cause memory leaks in browsers that
1838
- // don't support this type of collections.
1839
- defineConfigurable(this, { target: target, contentRect: contentRect });
1840
- }
1841
- return ResizeObserverEntry;
1842
- }());
1843
-
1844
- var ResizeObserverSPI = /** @class */ (function () {
1845
- /**
1846
- * Creates a new instance of ResizeObserver.
1847
- *
1848
- * @param {ResizeObserverCallback} callback - Callback function that is invoked
1849
- * when one of the observed elements changes it's content dimensions.
1850
- * @param {ResizeObserverController} controller - Controller instance which
1851
- * is responsible for the updates of observer.
1852
- * @param {ResizeObserver} callbackCtx - Reference to the public
1853
- * ResizeObserver instance which will be passed to callback function.
1854
- */
1855
- function ResizeObserverSPI(callback, controller, callbackCtx) {
1856
- /**
1857
- * Collection of resize observations that have detected changes in dimensions
1858
- * of elements.
1859
- *
1860
- * @private {Array<ResizeObservation>}
1861
- */
1862
- this.activeObservations_ = [];
1863
- /**
1864
- * Registry of the ResizeObservation instances.
1865
- *
1866
- * @private {Map<Element, ResizeObservation>}
1867
- */
1868
- this.observations_ = new MapShim();
1869
- if (typeof callback !== 'function') {
1870
- throw new TypeError('The callback provided as parameter 1 is not a function.');
1871
- }
1872
- this.callback_ = callback;
1873
- this.controller_ = controller;
1874
- this.callbackCtx_ = callbackCtx;
1875
- }
1876
- /**
1877
- * Starts observing provided element.
1878
- *
1879
- * @param {Element} target - Element to be observed.
1880
- * @returns {void}
1881
- */
1882
- ResizeObserverSPI.prototype.observe = function (target) {
1883
- if (!arguments.length) {
1884
- throw new TypeError('1 argument required, but only 0 present.');
1885
- }
1886
- // Do nothing if current environment doesn't have the Element interface.
1887
- if (typeof Element === 'undefined' || !(Element instanceof Object)) {
1888
- return;
1889
- }
1890
- if (!(target instanceof getWindowOf(target).Element)) {
1891
- throw new TypeError('parameter 1 is not of type "Element".');
1892
- }
1893
- var observations = this.observations_;
1894
- // Do nothing if element is already being observed.
1895
- if (observations.has(target)) {
1896
- return;
1897
- }
1898
- observations.set(target, new ResizeObservation(target));
1899
- this.controller_.addObserver(this);
1900
- // Force the update of observations.
1901
- this.controller_.refresh();
1902
- };
1903
- /**
1904
- * Stops observing provided element.
1905
- *
1906
- * @param {Element} target - Element to stop observing.
1907
- * @returns {void}
1908
- */
1909
- ResizeObserverSPI.prototype.unobserve = function (target) {
1910
- if (!arguments.length) {
1911
- throw new TypeError('1 argument required, but only 0 present.');
1912
- }
1913
- // Do nothing if current environment doesn't have the Element interface.
1914
- if (typeof Element === 'undefined' || !(Element instanceof Object)) {
1915
- return;
1916
- }
1917
- if (!(target instanceof getWindowOf(target).Element)) {
1918
- throw new TypeError('parameter 1 is not of type "Element".');
1919
- }
1920
- var observations = this.observations_;
1921
- // Do nothing if element is not being observed.
1922
- if (!observations.has(target)) {
1923
- return;
1924
- }
1925
- observations.delete(target);
1926
- if (!observations.size) {
1927
- this.controller_.removeObserver(this);
1928
- }
1929
- };
1930
- /**
1931
- * Stops observing all elements.
1932
- *
1933
- * @returns {void}
1934
- */
1935
- ResizeObserverSPI.prototype.disconnect = function () {
1936
- this.clearActive();
1937
- this.observations_.clear();
1938
- this.controller_.removeObserver(this);
1939
- };
1940
- /**
1941
- * Collects observation instances the associated element of which has changed
1942
- * it's content rectangle.
1943
- *
1944
- * @returns {void}
1945
- */
1946
- ResizeObserverSPI.prototype.gatherActive = function () {
1947
- var _this = this;
1948
- this.clearActive();
1949
- this.observations_.forEach(function (observation) {
1950
- if (observation.isActive()) {
1951
- _this.activeObservations_.push(observation);
1952
- }
1953
- });
1954
- };
1955
- /**
1956
- * Invokes initial callback function with a list of ResizeObserverEntry
1957
- * instances collected from active resize observations.
1958
- *
1959
- * @returns {void}
1960
- */
1961
- ResizeObserverSPI.prototype.broadcastActive = function () {
1962
- // Do nothing if observer doesn't have active observations.
1963
- if (!this.hasActive()) {
1964
- return;
1965
- }
1966
- var ctx = this.callbackCtx_;
1967
- // Create ResizeObserverEntry instance for every active observation.
1968
- var entries = this.activeObservations_.map(function (observation) {
1969
- return new ResizeObserverEntry(observation.target, observation.broadcastRect());
1970
- });
1971
- this.callback_.call(ctx, entries, ctx);
1972
- this.clearActive();
1973
- };
1974
- /**
1975
- * Clears the collection of active observations.
1976
- *
1977
- * @returns {void}
1978
- */
1979
- ResizeObserverSPI.prototype.clearActive = function () {
1980
- this.activeObservations_.splice(0);
1981
- };
1982
- /**
1983
- * Tells whether observer has active observations.
1984
- *
1985
- * @returns {boolean}
1986
- */
1987
- ResizeObserverSPI.prototype.hasActive = function () {
1988
- return this.activeObservations_.length > 0;
1989
- };
1990
- return ResizeObserverSPI;
1991
- }());
1992
-
1993
- // Registry of internal observers. If WeakMap is not available use current shim
1994
- // for the Map collection as it has all required methods and because WeakMap
1995
- // can't be fully polyfilled anyway.
1996
- var observers = typeof WeakMap !== 'undefined' ? new WeakMap() : new MapShim();
1997
- /**
1998
- * ResizeObserver API. Encapsulates the ResizeObserver SPI implementation
1999
- * exposing only those methods and properties that are defined in the spec.
2000
- */
2001
- var ResizeObserver = /** @class */ (function () {
2002
- /**
2003
- * Creates a new instance of ResizeObserver.
2004
- *
2005
- * @param {ResizeObserverCallback} callback - Callback that is invoked when
2006
- * dimensions of the observed elements change.
2007
- */
2008
- function ResizeObserver(callback) {
2009
- if (!(this instanceof ResizeObserver)) {
2010
- throw new TypeError('Cannot call a class as a function.');
2011
- }
2012
- if (!arguments.length) {
2013
- throw new TypeError('1 argument required, but only 0 present.');
2014
- }
2015
- var controller = ResizeObserverController.getInstance();
2016
- var observer = new ResizeObserverSPI(callback, controller, this);
2017
- observers.set(this, observer);
2018
- }
2019
- return ResizeObserver;
2020
- }());
2021
- // Expose public methods of ResizeObserver.
2022
- [
2023
- 'observe',
2024
- 'unobserve',
2025
- 'disconnect'
2026
- ].forEach(function (method) {
2027
- ResizeObserver.prototype[method] = function () {
2028
- var _a;
2029
- return (_a = observers.get(this))[method].apply(_a, arguments);
2030
- };
2031
- });
2032
-
2033
- var index = (function () {
2034
- // Export existing implementation if available.
2035
- if (typeof global$1.ResizeObserver !== 'undefined') {
2036
- return global$1.ResizeObserver;
2037
- }
2038
- return ResizeObserver;
2039
- })();
2040
-
2041
- /* harmony default export */ __webpack_exports__["a"] = (index);
2042
-
2043
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(29)))
2044
-
2045
- /***/ }),
2046
-
2047
- /***/ 29:
2048
- /***/ (function(module, exports) {
2049
-
2050
- var g;
2051
-
2052
- // This works in non-strict mode
2053
- g = (function() {
2054
- return this;
2055
- })();
2056
-
2057
- try {
2058
- // This works if eval is allowed (see CSP)
2059
- g = g || new Function("return this")();
2060
- } catch (e) {
2061
- // This works if the window reference is available
2062
- if (typeof window === "object") g = window;
2063
- }
2064
-
2065
- // g can still be undefined, but nothing to do about it...
2066
- // We return undefined, instead of nothing here, so it's
2067
- // easier to handle this case. if(!global) { ...}
2068
-
2069
- module.exports = g;
2070
-
2071
-
2072
- /***/ }),
2073
-
2074
- /***/ 3:
2075
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
2076
-
2077
- "use strict";
2078
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "r", function() { return noop; });
2079
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return hasOwn; });
2080
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "t", function() { return toObject; });
2081
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return getValueByPath; });
2082
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return getPropByPath; });
2083
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return generateId; });
2084
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "u", function() { return valueEquals; });
2085
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return escapeRegexpString; });
2086
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return arrayFindIndex; });
2087
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return arrayFind; });
2088
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return coerceTruthyValueToArray; });
2089
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "o", function() { return isIE; });
2090
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return isEdge; });
2091
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "n", function() { return isFirefox; });
2092
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return autoprefixer; });
2093
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "q", function() { return kebabCase; });
2094
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return capitalize; });
2095
- /* unused harmony export looseEqual */
2096
- /* unused harmony export arrayEquals */
2097
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return isEqual; });
2098
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return isEmpty; });
2099
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "s", function() { return rafThrottle; });
2100
- /* unused harmony export objToArray */
2101
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "p", function() { return isMac; });
2102
- /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
2103
- /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
2104
- /* harmony import */ var element_ui_src_utils_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4);
2105
- var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
2106
-
2107
-
2108
-
2109
-
2110
- var hasOwnProperty = Object.prototype.hasOwnProperty;
2111
-
2112
- function noop() {};
2113
-
2114
- function hasOwn(obj, key) {
2115
- return hasOwnProperty.call(obj, key);
2116
- };
2117
-
2118
- function extend(to, _from) {
2119
- for (var key in _from) {
2120
- to[key] = _from[key];
2121
- }
2122
- return to;
2123
- };
2124
-
2125
- function toObject(arr) {
2126
- var res = {};
2127
- for (var i = 0; i < arr.length; i++) {
2128
- if (arr[i]) {
2129
- extend(res, arr[i]);
2130
- }
2131
- }
2132
- return res;
2133
- };
2134
-
2135
- var getValueByPath = function getValueByPath(object, prop) {
2136
- prop = prop || '';
2137
- var paths = prop.split('.');
2138
- var current = object;
2139
- var result = null;
2140
- for (var i = 0, j = paths.length; i < j; i++) {
2141
- var path = paths[i];
2142
- if (!current) break;
2143
-
2144
- if (i === j - 1) {
2145
- result = current[path];
2146
- break;
2147
- }
2148
- current = current[path];
2149
- }
2150
- return result;
2151
- };
2152
-
2153
- function getPropByPath(obj, path, strict) {
2154
- var tempObj = obj;
2155
- path = path.replace(/\[(\w+)\]/g, '.$1');
2156
- path = path.replace(/^\./, '');
2157
-
2158
- var keyArr = path.split('.');
2159
- var i = 0;
2160
- for (var len = keyArr.length; i < len - 1; ++i) {
2161
- if (!tempObj && !strict) break;
2162
- var key = keyArr[i];
2163
- if (key in tempObj) {
2164
- tempObj = tempObj[key];
2165
- } else {
2166
- if (strict) {
2167
- throw new Error('please transfer a valid prop path to form item!');
2168
- }
2169
- break;
2170
- }
2171
- }
2172
- return {
2173
- o: tempObj,
2174
- k: keyArr[i],
2175
- v: tempObj ? tempObj[keyArr[i]] : null
2176
- };
2177
- };
2178
-
2179
- var generateId = function generateId() {
2180
- return Math.floor(Math.random() * 10000);
2181
- };
2182
-
2183
- var valueEquals = function valueEquals(a, b) {
2184
- // see: https://stackoverflow.com/questions/3115982/how-to-check-if-two-arrays-are-equal-with-javascript
2185
- if (a === b) return true;
2186
- if (!(a instanceof Array)) return false;
2187
- if (!(b instanceof Array)) return false;
2188
- if (a.length !== b.length) return false;
2189
- for (var i = 0; i !== a.length; ++i) {
2190
- if (a[i] !== b[i]) return false;
2191
- }
2192
- return true;
2193
- };
2194
-
2195
- var escapeRegexpString = function escapeRegexpString() {
2196
- var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
2197
- return String(value).replace(/[|\\{}()[\]^$+*?.]/g, '\\$&');
2198
- };
2199
-
2200
- // TODO: use native Array.find, Array.findIndex when IE support is dropped
2201
- var arrayFindIndex = function arrayFindIndex(arr, pred) {
2202
- for (var i = 0; i !== arr.length; ++i) {
2203
- if (pred(arr[i])) {
2204
- return i;
2205
- }
2206
- }
2207
- return -1;
2208
- };
2209
-
2210
- var arrayFind = function arrayFind(arr, pred) {
2211
- var idx = arrayFindIndex(arr, pred);
2212
- return idx !== -1 ? arr[idx] : undefined;
2213
- };
2214
-
2215
- // coerce truthy value to array
2216
- var coerceTruthyValueToArray = function coerceTruthyValueToArray(val) {
2217
- if (Array.isArray(val)) {
2218
- return val;
2219
- } else if (val) {
2220
- return [val];
2221
- } else {
2222
- return [];
2223
- }
2224
- };
2225
-
2226
- var isIE = function isIE() {
2227
- return !vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer && !isNaN(Number(document.documentMode));
2228
- };
2229
-
2230
- var isEdge = function isEdge() {
2231
- return !vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer && navigator.userAgent.indexOf('Edge') > -1;
2232
- };
2233
-
2234
- var isFirefox = function isFirefox() {
2235
- return !vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer && !!window.navigator.userAgent.match(/firefox/i);
2236
- };
2237
-
2238
- var autoprefixer = function autoprefixer(style) {
2239
- if ((typeof style === 'undefined' ? 'undefined' : _typeof(style)) !== 'object') return style;
2240
- var rules = ['transform', 'transition', 'animation'];
2241
- var prefixes = ['ms-', 'webkit-'];
2242
- rules.forEach(function (rule) {
2243
- var value = style[rule];
2244
- if (rule && value) {
2245
- prefixes.forEach(function (prefix) {
2246
- style[prefix + rule] = value;
2247
- });
2248
- }
2249
- });
2250
- return style;
2251
- };
2252
-
2253
- var kebabCase = function kebabCase(str) {
2254
- var hyphenateRE = /([^-])([A-Z])/g;
2255
- return str.replace(hyphenateRE, '$1-$2').replace(hyphenateRE, '$1-$2').toLowerCase();
2256
- };
2257
-
2258
- var capitalize = function capitalize(str) {
2259
- if (!Object(element_ui_src_utils_types__WEBPACK_IMPORTED_MODULE_1__[/* isString */ "e"])(str)) return str;
2260
- return str.charAt(0).toUpperCase() + str.slice(1);
2261
- };
2262
-
2263
- var looseEqual = function looseEqual(a, b) {
2264
- var isObjectA = Object(element_ui_src_utils_types__WEBPACK_IMPORTED_MODULE_1__[/* isObject */ "d"])(a);
2265
- var isObjectB = Object(element_ui_src_utils_types__WEBPACK_IMPORTED_MODULE_1__[/* isObject */ "d"])(b);
2266
- if (isObjectA && isObjectB) {
2267
- return JSON.stringify(a) === JSON.stringify(b);
2268
- } else if (!isObjectA && !isObjectB) {
2269
- return String(a) === String(b);
2270
- } else {
2271
- return false;
2272
- }
2273
- };
2274
-
2275
- var arrayEquals = function arrayEquals(arrayA, arrayB) {
2276
- arrayA = arrayA || [];
2277
- arrayB = arrayB || [];
2278
-
2279
- if (arrayA.length !== arrayB.length) {
2280
- return false;
2281
- }
2282
-
2283
- for (var i = 0; i < arrayA.length; i++) {
2284
- if (!looseEqual(arrayA[i], arrayB[i])) {
2285
- return false;
2286
- }
2287
- }
2288
-
2289
- return true;
2290
- };
2291
-
2292
- var isEqual = function isEqual(value1, value2) {
2293
- if (Array.isArray(value1) && Array.isArray(value2)) {
2294
- return arrayEquals(value1, value2);
2295
- }
2296
- return looseEqual(value1, value2);
2297
- };
2298
-
2299
- var isEmpty = function isEmpty(val) {
2300
- // null or undefined
2301
- if (val == null) return true;
2302
-
2303
- if (typeof val === 'boolean') return false;
2304
-
2305
- if (typeof val === 'number') return !val;
2306
-
2307
- if (val instanceof Error) return val.message === '';
2308
-
2309
- switch (Object.prototype.toString.call(val)) {
2310
- // String or Array
2311
- case '[object String]':
2312
- case '[object Array]':
2313
- return !val.length;
2314
-
2315
- // Map or Set or File
2316
- case '[object File]':
2317
- case '[object Map]':
2318
- case '[object Set]':
2319
- {
2320
- return !val.size;
2321
- }
2322
- // Plain Object
2323
- case '[object Object]':
2324
- {
2325
- return !Object.keys(val).length;
2326
- }
2327
- }
2328
-
2329
- return false;
2330
- };
2331
-
2332
- function rafThrottle(fn) {
2333
- var locked = false;
2334
- return function () {
2335
- var _this = this;
2336
-
2337
- for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
2338
- args[_key] = arguments[_key];
2339
- }
2340
-
2341
- if (locked) return;
2342
- locked = true;
2343
- window.requestAnimationFrame(function (_) {
2344
- fn.apply(_this, args);
2345
- locked = false;
2346
- });
2347
- };
2348
- }
2349
-
2350
- function objToArray(obj) {
2351
- if (Array.isArray(obj)) {
2352
- return obj;
2353
- }
2354
- return isEmpty(obj) ? [] : [obj];
2355
- }
2356
-
2357
- var isMac = function isMac() {
2358
- return !vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer && /macintosh|mac os x/i.test(navigator.userAgent);
2359
- };
2360
-
2361
- /***/ }),
2362
-
2363
- /***/ 4:
2364
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
2365
-
2366
- "use strict";
2367
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return isString; });
2368
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return isObject; });
2369
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return isHtmlElement; });
2370
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return isFunction; });
2371
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return isUndefined; });
2372
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return isDefined; });
2373
- /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
2374
- /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
2375
- var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
2376
-
2377
-
2378
-
2379
- function isString(obj) {
2380
- return Object.prototype.toString.call(obj) === '[object String]';
2381
- }
2382
-
2383
- function isObject(obj) {
2384
- return Object.prototype.toString.call(obj) === '[object Object]';
2385
- }
2386
-
2387
- function isHtmlElement(node) {
2388
- return node && node.nodeType === Node.ELEMENT_NODE;
2389
- }
2390
-
2391
- /**
2392
- * - Inspired:
2393
- * https://github.com/jashkenas/underscore/blob/master/modules/isFunction.js
2394
- */
2395
- var isFunction = function isFunction(functionToCheck) {
2396
- var getType = {};
2397
- return functionToCheck && getType.toString.call(functionToCheck) === '[object Function]';
2398
- };
2399
-
2400
- if ( true && (typeof Int8Array === 'undefined' ? 'undefined' : _typeof(Int8Array)) !== 'object' && (vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer || typeof document.childNodes !== 'function')) {
2401
- isFunction = function isFunction(obj) {
2402
- return typeof obj === 'function' || false;
2403
- };
2404
- }
2405
-
2406
-
2407
-
2408
- var isUndefined = function isUndefined(val) {
2409
- return val === void 0;
2410
- };
2411
-
2412
- var isDefined = function isDefined(val) {
2413
- return val !== undefined && val !== null;
2414
- };
2415
-
2416
914
  /***/ })
2417
915
 
2418
916
  /******/ });