@windwalker-io/unicorn-next 0.1.18 → 0.1.21

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 (108) hide show
  1. package/dist/chunks/_arrayPush.js +325 -108
  2. package/dist/chunks/_arrayPush.js.map +1 -1
  3. package/dist/chunks/_baseRest.js +155 -60
  4. package/dist/chunks/_baseRest.js.map +1 -1
  5. package/dist/chunks/_baseUnary.js +463 -0
  6. package/dist/chunks/_baseUnary.js.map +1 -0
  7. package/dist/chunks/_getPrototype.js +292 -100
  8. package/dist/chunks/_getPrototype.js.map +1 -1
  9. package/dist/chunks/alert-adapter.js +29 -0
  10. package/dist/chunks/alert-adapter.js.map +1 -0
  11. package/dist/chunks/alert.js +21 -0
  12. package/dist/chunks/alert.js.map +1 -0
  13. package/dist/chunks/arr.js +24 -0
  14. package/dist/chunks/arr.js.map +1 -0
  15. package/dist/chunks/button-radio.js +127 -145
  16. package/dist/chunks/button-radio.js.map +1 -1
  17. package/dist/chunks/checkboxes-multi-select.js +44 -43
  18. package/dist/chunks/checkboxes-multi-select.js.map +1 -1
  19. package/dist/chunks/chunk.js +24 -0
  20. package/dist/chunks/cloneDeep.js +679 -212
  21. package/dist/chunks/cloneDeep.js.map +1 -1
  22. package/dist/chunks/cropper.min.js +6 -5
  23. package/dist/chunks/cropper.min.js.map +1 -1
  24. package/dist/chunks/crypto.js +26 -0
  25. package/dist/chunks/crypto.js.map +1 -0
  26. package/dist/chunks/data.js +49 -0
  27. package/dist/chunks/data.js.map +1 -0
  28. package/dist/chunks/dom.js +128 -0
  29. package/dist/chunks/dom.js.map +1 -0
  30. package/dist/chunks/events.js +270 -0
  31. package/dist/chunks/events.js.map +1 -0
  32. package/dist/chunks/field-cascade-select.js +207 -250
  33. package/dist/chunks/field-cascade-select.js.map +1 -1
  34. package/dist/chunks/field-file-drag.js +175 -209
  35. package/dist/chunks/field-file-drag.js.map +1 -1
  36. package/dist/chunks/field-flatpickr.js +94 -898
  37. package/dist/chunks/field-flatpickr.js.map +1 -1
  38. package/dist/chunks/field-modal-select.js +728 -467
  39. package/dist/chunks/field-modal-select.js.map +1 -1
  40. package/dist/chunks/field-modal-tree.js +771 -766
  41. package/dist/chunks/field-modal-tree.js.map +1 -1
  42. package/dist/chunks/field-multi-uploader.js +249 -256
  43. package/dist/chunks/field-multi-uploader.js.map +1 -1
  44. package/dist/chunks/field-repeatable.js +111 -127
  45. package/dist/chunks/field-repeatable.js.map +1 -1
  46. package/dist/chunks/field-single-image-drag.js +286 -338
  47. package/dist/chunks/field-single-image-drag.js.map +1 -1
  48. package/dist/chunks/form.js +146 -159
  49. package/dist/chunks/form.js.map +1 -1
  50. package/dist/chunks/grid.js +349 -418
  51. package/dist/chunks/grid.js.map +1 -1
  52. package/dist/chunks/helper.js +39 -0
  53. package/dist/chunks/helper.js.map +1 -0
  54. package/dist/chunks/http-client.js +221 -211
  55. package/dist/chunks/http-client.js.map +1 -1
  56. package/dist/chunks/iframe-modal.js +95 -115
  57. package/dist/chunks/iframe-modal.js.map +1 -1
  58. package/dist/chunks/keep-tab.js +92 -101
  59. package/dist/chunks/keep-tab.js.map +1 -1
  60. package/dist/chunks/lang.js +250 -0
  61. package/dist/chunks/lang.js.map +1 -0
  62. package/dist/chunks/legacy.js +197 -201
  63. package/dist/chunks/legacy.js.map +1 -1
  64. package/dist/chunks/list-dependent.js +195 -228
  65. package/dist/chunks/list-dependent.js.map +1 -1
  66. package/dist/chunks/loader.js +106 -0
  67. package/dist/chunks/loader.js.map +1 -0
  68. package/dist/chunks/monthSelect.js +251 -0
  69. package/dist/chunks/monthSelect.js.map +1 -0
  70. package/dist/chunks/router.js +111 -0
  71. package/dist/chunks/router.js.map +1 -0
  72. package/dist/chunks/s3-multipart-uploader.js +183 -210
  73. package/dist/chunks/s3-multipart-uploader.js.map +1 -1
  74. package/dist/chunks/s3-uploader.js +106 -128
  75. package/dist/chunks/s3-uploader.js.map +1 -1
  76. package/dist/chunks/show-on.js +358 -205
  77. package/dist/chunks/show-on.js.map +1 -1
  78. package/dist/chunks/timing.js +10 -0
  79. package/dist/chunks/timing.js.map +1 -0
  80. package/dist/chunks/tinymce.js +153 -203
  81. package/dist/chunks/tinymce.js.map +1 -1
  82. package/dist/chunks/ui-bootstrap5.js +58 -72
  83. package/dist/chunks/ui-bootstrap5.js.map +1 -1
  84. package/dist/chunks/ui.js +320 -0
  85. package/dist/chunks/ui.js.map +1 -0
  86. package/dist/chunks/unicorn.js.map +1 -1
  87. package/dist/chunks/useQueue.js +111 -0
  88. package/dist/chunks/useQueue.js.map +1 -0
  89. package/dist/chunks/useStack.js +76 -0
  90. package/dist/chunks/useStack.js.map +1 -0
  91. package/dist/chunks/validation.js +761 -853
  92. package/dist/chunks/validation.js.map +1 -1
  93. package/dist/editor.css +1 -1
  94. package/dist/index.d.ts +27 -15
  95. package/dist/multi-level-menu.css +1 -1
  96. package/dist/switcher.css +1 -1
  97. package/dist/unicorn.js +805 -130
  98. package/dist/unicorn.js.map +1 -1
  99. package/package.json +3 -3
  100. package/src/composable/useBsModalAlert.ts +92 -12
  101. package/src/composable/useHttp.ts +13 -1
  102. package/src/module/s3-uploader.ts +1 -1
  103. package/src/service/ui.ts +31 -15
  104. package/vite.config.ts +5 -1
  105. package/dist/chunks/_commonjsHelpers.js +0 -7
  106. package/dist/chunks/index.js +0 -314
  107. package/dist/chunks/isArguments.js +0 -146
  108. package/dist/chunks/unicorn.js +0 -2580
@@ -1,73 +1,168 @@
1
- import { f as defineProperty } from "./isArguments.js";
1
+ import { o as defineProperty } from "./_baseUnary.js";
2
+ //#region ../../../../node_modules/lodash-es/_arrayMap.js
3
+ /**
4
+ * A specialized version of `_.map` for arrays without support for iteratee
5
+ * shorthands.
6
+ *
7
+ * @private
8
+ * @param {Array} [array] The array to iterate over.
9
+ * @param {Function} iteratee The function invoked per iteration.
10
+ * @returns {Array} Returns the new mapped array.
11
+ */
12
+ function arrayMap(array, iteratee) {
13
+ var index = -1, length = array == null ? 0 : array.length, result = Array(length);
14
+ while (++index < length) result[index] = iteratee(array[index], index, array);
15
+ return result;
16
+ }
17
+ //#endregion
18
+ //#region ../../../../node_modules/lodash-es/identity.js
19
+ /**
20
+ * This method returns the first argument it receives.
21
+ *
22
+ * @static
23
+ * @since 0.1.0
24
+ * @memberOf _
25
+ * @category Util
26
+ * @param {*} value Any value.
27
+ * @returns {*} Returns `value`.
28
+ * @example
29
+ *
30
+ * var object = { 'a': 1 };
31
+ *
32
+ * console.log(_.identity(object) === object);
33
+ * // => true
34
+ */
2
35
  function identity(value) {
3
- return value;
36
+ return value;
4
37
  }
38
+ //#endregion
39
+ //#region ../../../../node_modules/lodash-es/_apply.js
40
+ /**
41
+ * A faster alternative to `Function#apply`, this function invokes `func`
42
+ * with the `this` binding of `thisArg` and the arguments of `args`.
43
+ *
44
+ * @private
45
+ * @param {Function} func The function to invoke.
46
+ * @param {*} thisArg The `this` binding of `func`.
47
+ * @param {Array} args The arguments to invoke `func` with.
48
+ * @returns {*} Returns the result of `func`.
49
+ */
5
50
  function apply(func, thisArg, args) {
6
- switch (args.length) {
7
- case 0:
8
- return func.call(thisArg);
9
- case 1:
10
- return func.call(thisArg, args[0]);
11
- case 2:
12
- return func.call(thisArg, args[0], args[1]);
13
- case 3:
14
- return func.call(thisArg, args[0], args[1], args[2]);
15
- }
16
- return func.apply(thisArg, args);
51
+ switch (args.length) {
52
+ case 0: return func.call(thisArg);
53
+ case 1: return func.call(thisArg, args[0]);
54
+ case 2: return func.call(thisArg, args[0], args[1]);
55
+ case 3: return func.call(thisArg, args[0], args[1], args[2]);
56
+ }
57
+ return func.apply(thisArg, args);
17
58
  }
59
+ //#endregion
60
+ //#region ../../../../node_modules/lodash-es/_shortOut.js
61
+ /** Used to detect hot functions by number of calls within a span of milliseconds. */
18
62
  var HOT_COUNT = 800, HOT_SPAN = 16;
19
- var nativeNow = /* @__PURE__ */ (() => Date.now)();
63
+ var nativeNow = Date.now;
64
+ /**
65
+ * Creates a function that'll short out and invoke `identity` instead
66
+ * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`
67
+ * milliseconds.
68
+ *
69
+ * @private
70
+ * @param {Function} func The function to restrict.
71
+ * @returns {Function} Returns the new shortable function.
72
+ */
20
73
  function shortOut(func) {
21
- var count = 0, lastCalled = 0;
22
- return function() {
23
- var stamp = nativeNow(), remaining = HOT_SPAN - (stamp - lastCalled);
24
- lastCalled = stamp;
25
- if (remaining > 0) {
26
- if (++count >= HOT_COUNT) {
27
- return arguments[0];
28
- }
29
- } else {
30
- count = 0;
31
- }
32
- return func.apply(void 0, arguments);
33
- };
74
+ var count = 0, lastCalled = 0;
75
+ return function() {
76
+ var stamp = nativeNow(), remaining = HOT_SPAN - (stamp - lastCalled);
77
+ lastCalled = stamp;
78
+ if (remaining > 0) {
79
+ if (++count >= HOT_COUNT) return arguments[0];
80
+ } else count = 0;
81
+ return func.apply(void 0, arguments);
82
+ };
34
83
  }
84
+ //#endregion
85
+ //#region ../../../../node_modules/lodash-es/constant.js
86
+ /**
87
+ * Creates a function that returns `value`.
88
+ *
89
+ * @static
90
+ * @memberOf _
91
+ * @since 2.4.0
92
+ * @category Util
93
+ * @param {*} value The value to return from the new function.
94
+ * @returns {Function} Returns the new constant function.
95
+ * @example
96
+ *
97
+ * var objects = _.times(2, _.constant({ 'a': 1 }));
98
+ *
99
+ * console.log(objects);
100
+ * // => [{ 'a': 1 }, { 'a': 1 }]
101
+ *
102
+ * console.log(objects[0] === objects[1]);
103
+ * // => true
104
+ */
35
105
  function constant(value) {
36
- return function() {
37
- return value;
38
- };
106
+ return function() {
107
+ return value;
108
+ };
39
109
  }
40
- var baseSetToString = !defineProperty ? identity : function(func, string) {
41
- return defineProperty(func, "toString", {
42
- "configurable": true,
43
- "enumerable": false,
44
- "value": constant(string),
45
- "writable": true
46
- });
47
- };
48
- var setToString = /* @__PURE__ */ shortOut(baseSetToString);
49
- var nativeMax = /* @__PURE__ */ (() => Math.max)();
110
+ //#endregion
111
+ //#region ../../../../node_modules/lodash-es/_setToString.js
112
+ /**
113
+ * Sets the `toString` method of `func` to return `string`.
114
+ *
115
+ * @private
116
+ * @param {Function} func The function to modify.
117
+ * @param {Function} string The `toString` result.
118
+ * @returns {Function} Returns `func`.
119
+ */
120
+ var setToString = /* @__PURE__ */ shortOut(!defineProperty ? identity : function(func, string) {
121
+ return defineProperty(func, "toString", {
122
+ "configurable": true,
123
+ "enumerable": false,
124
+ "value": constant(string),
125
+ "writable": true
126
+ });
127
+ });
128
+ //#endregion
129
+ //#region ../../../../node_modules/lodash-es/_overRest.js
130
+ var nativeMax = Math.max;
131
+ /**
132
+ * A specialized version of `baseRest` which transforms the rest array.
133
+ *
134
+ * @private
135
+ * @param {Function} func The function to apply a rest parameter to.
136
+ * @param {number} [start=func.length-1] The start position of the rest parameter.
137
+ * @param {Function} transform The rest array transform.
138
+ * @returns {Function} Returns the new function.
139
+ */
50
140
  function overRest(func, start, transform) {
51
- start = nativeMax(start === void 0 ? func.length - 1 : start, 0);
52
- return function() {
53
- var args = arguments, index = -1, length = nativeMax(args.length - start, 0), array = Array(length);
54
- while (++index < length) {
55
- array[index] = args[start + index];
56
- }
57
- index = -1;
58
- var otherArgs = Array(start + 1);
59
- while (++index < start) {
60
- otherArgs[index] = args[index];
61
- }
62
- otherArgs[start] = transform(array);
63
- return apply(func, this, otherArgs);
64
- };
141
+ start = nativeMax(start === void 0 ? func.length - 1 : start, 0);
142
+ return function() {
143
+ var args = arguments, index = -1, length = nativeMax(args.length - start, 0), array = Array(length);
144
+ while (++index < length) array[index] = args[start + index];
145
+ index = -1;
146
+ var otherArgs = Array(start + 1);
147
+ while (++index < start) otherArgs[index] = args[index];
148
+ otherArgs[start] = transform(array);
149
+ return apply(func, this, otherArgs);
150
+ };
65
151
  }
152
+ //#endregion
153
+ //#region ../../../../node_modules/lodash-es/_baseRest.js
154
+ /**
155
+ * The base implementation of `_.rest` which doesn't validate or coerce arguments.
156
+ *
157
+ * @private
158
+ * @param {Function} func The function to apply a rest parameter to.
159
+ * @param {number} [start=func.length-1] The start position of the rest parameter.
160
+ * @returns {Function} Returns the new function.
161
+ */
66
162
  function baseRest(func, start) {
67
- return setToString(overRest(func, start, identity), func + "");
163
+ return setToString(overRest(func, start, identity), func + "");
68
164
  }
69
- export {
70
- apply as a,
71
- baseRest as b
72
- };
73
- //# sourceMappingURL=_baseRest.js.map
165
+ //#endregion
166
+ export { apply as n, arrayMap as r, baseRest as t };
167
+
168
+ //# sourceMappingURL=_baseRest.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"_baseRest.js","sources":["../../../../../../node_modules/lodash-es/identity.js","../../../../../../node_modules/lodash-es/_apply.js","../../../../../../node_modules/lodash-es/_shortOut.js","../../../../../../node_modules/lodash-es/constant.js","../../../../../../node_modules/lodash-es/_baseSetToString.js","../../../../../../node_modules/lodash-es/_setToString.js","../../../../../../node_modules/lodash-es/_overRest.js","../../../../../../node_modules/lodash-es/_baseRest.js"],"sourcesContent":["/**\n * This method returns the first argument it receives.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Util\n * @param {*} value Any value.\n * @returns {*} Returns `value`.\n * @example\n *\n * var object = { 'a': 1 };\n *\n * console.log(_.identity(object) === object);\n * // => true\n */\nfunction identity(value) {\n return value;\n}\n\nexport default identity;\n","/**\n * A faster alternative to `Function#apply`, this function invokes `func`\n * with the `this` binding of `thisArg` and the arguments of `args`.\n *\n * @private\n * @param {Function} func The function to invoke.\n * @param {*} thisArg The `this` binding of `func`.\n * @param {Array} args The arguments to invoke `func` with.\n * @returns {*} Returns the result of `func`.\n */\nfunction apply(func, thisArg, args) {\n switch (args.length) {\n case 0: return func.call(thisArg);\n case 1: return func.call(thisArg, args[0]);\n case 2: return func.call(thisArg, args[0], args[1]);\n case 3: return func.call(thisArg, args[0], args[1], args[2]);\n }\n return func.apply(thisArg, args);\n}\n\nexport default apply;\n","/** Used to detect hot functions by number of calls within a span of milliseconds. */\nvar HOT_COUNT = 800,\n HOT_SPAN = 16;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeNow = Date.now;\n\n/**\n * Creates a function that'll short out and invoke `identity` instead\n * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`\n * milliseconds.\n *\n * @private\n * @param {Function} func The function to restrict.\n * @returns {Function} Returns the new shortable function.\n */\nfunction shortOut(func) {\n var count = 0,\n lastCalled = 0;\n\n return function() {\n var stamp = nativeNow(),\n remaining = HOT_SPAN - (stamp - lastCalled);\n\n lastCalled = stamp;\n if (remaining > 0) {\n if (++count >= HOT_COUNT) {\n return arguments[0];\n }\n } else {\n count = 0;\n }\n return func.apply(undefined, arguments);\n };\n}\n\nexport default shortOut;\n","/**\n * Creates a function that returns `value`.\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Util\n * @param {*} value The value to return from the new function.\n * @returns {Function} Returns the new constant function.\n * @example\n *\n * var objects = _.times(2, _.constant({ 'a': 1 }));\n *\n * console.log(objects);\n * // => [{ 'a': 1 }, { 'a': 1 }]\n *\n * console.log(objects[0] === objects[1]);\n * // => true\n */\nfunction constant(value) {\n return function() {\n return value;\n };\n}\n\nexport default constant;\n","import constant from './constant.js';\nimport defineProperty from './_defineProperty.js';\nimport identity from './identity.js';\n\n/**\n * The base implementation of `setToString` without support for hot loop shorting.\n *\n * @private\n * @param {Function} func The function to modify.\n * @param {Function} string The `toString` result.\n * @returns {Function} Returns `func`.\n */\nvar baseSetToString = !defineProperty ? identity : function(func, string) {\n return defineProperty(func, 'toString', {\n 'configurable': true,\n 'enumerable': false,\n 'value': constant(string),\n 'writable': true\n });\n};\n\nexport default baseSetToString;\n","import baseSetToString from './_baseSetToString.js';\nimport shortOut from './_shortOut.js';\n\n/**\n * Sets the `toString` method of `func` to return `string`.\n *\n * @private\n * @param {Function} func The function to modify.\n * @param {Function} string The `toString` result.\n * @returns {Function} Returns `func`.\n */\nvar setToString = shortOut(baseSetToString);\n\nexport default setToString;\n","import apply from './_apply.js';\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max;\n\n/**\n * A specialized version of `baseRest` which transforms the rest array.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @param {Function} transform The rest array transform.\n * @returns {Function} Returns the new function.\n */\nfunction overRest(func, start, transform) {\n start = nativeMax(start === undefined ? (func.length - 1) : start, 0);\n return function() {\n var args = arguments,\n index = -1,\n length = nativeMax(args.length - start, 0),\n array = Array(length);\n\n while (++index < length) {\n array[index] = args[start + index];\n }\n index = -1;\n var otherArgs = Array(start + 1);\n while (++index < start) {\n otherArgs[index] = args[index];\n }\n otherArgs[start] = transform(array);\n return apply(func, this, otherArgs);\n };\n}\n\nexport default overRest;\n","import identity from './identity.js';\nimport overRest from './_overRest.js';\nimport setToString from './_setToString.js';\n\n/**\n * The base implementation of `_.rest` which doesn't validate or coerce arguments.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @returns {Function} Returns the new function.\n */\nfunction baseRest(func, start) {\n return setToString(overRest(func, start, identity), func + '');\n}\n\nexport default baseRest;\n"],"names":[],"mappings":";AAgBA,SAAS,SAAS,OAAO;AACvB,SAAO;AACT;ACRA,SAAS,MAAM,MAAM,SAAS,MAAM;AAClC,UAAQ,KAAK,QAAM;AAAA,IACjB,KAAK;AAAG,aAAO,KAAK,KAAK,OAAO;AAAA,IAChC,KAAK;AAAG,aAAO,KAAK,KAAK,SAAS,KAAK,CAAC,CAAC;AAAA,IACzC,KAAK;AAAG,aAAO,KAAK,KAAK,SAAS,KAAK,CAAC,GAAG,KAAK,CAAC,CAAC;AAAA,IAClD,KAAK;AAAG,aAAO,KAAK,KAAK,SAAS,KAAK,CAAC,GAAG,KAAK,CAAC,GAAG,KAAK,CAAC,CAAC;AAAA,EAC/D;AACE,SAAO,KAAK,MAAM,SAAS,IAAI;AACjC;ACjBA,IAAI,YAAY,KACZ,WAAW;AAGf,IAAI,m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O,YAAY,SAAS,MAAM,OAAO,QAAQ,GAAG,OAAO,EAAE;AAC/D;","x_google_ignoreList":[0,1,2,3,4,5,6,7]}
1
+ {"version":3,"file":"_baseRest.js","names":[],"sources":["../../../../../../node_modules/lodash-es/_arrayMap.js","../../../../../../node_modules/lodash-es/identity.js","../../../../../../node_modules/lodash-es/_apply.js","../../../../../../node_modules/lodash-es/_shortOut.js","../../../../../../node_modules/lodash-es/constant.js","../../../../../../node_modules/lodash-es/_baseSetToString.js","../../../../../../node_modules/lodash-es/_setToString.js","../../../../../../node_modules/lodash-es/_overRest.js","../../../../../../node_modules/lodash-es/_baseRest.js"],"sourcesContent":["/**\n * A specialized version of `_.map` for arrays without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n */\nfunction arrayMap(array, iteratee) {\n var index = -1,\n length = array == null ? 0 : array.length,\n result = Array(length);\n\n while (++index < length) {\n result[index] = iteratee(array[index], index, array);\n }\n return result;\n}\n\nexport default arrayMap;\n","/**\n * This method returns the first argument it receives.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Util\n * @param {*} value Any value.\n * @returns {*} Returns `value`.\n * @example\n *\n * var object = { 'a': 1 };\n *\n * console.log(_.identity(object) === object);\n * // => true\n */\nfunction identity(value) {\n return value;\n}\n\nexport default identity;\n","/**\n * A faster alternative to `Function#apply`, this function invokes `func`\n * with the `this` binding of `thisArg` and the arguments of `args`.\n *\n * @private\n * @param {Function} func The function to invoke.\n * @param {*} thisArg The `this` binding of `func`.\n * @param {Array} args The arguments to invoke `func` with.\n * @returns {*} Returns the result of `func`.\n */\nfunction apply(func, thisArg, args) {\n switch (args.length) {\n case 0: return func.call(thisArg);\n case 1: return func.call(thisArg, args[0]);\n case 2: return func.call(thisArg, args[0], args[1]);\n case 3: return func.call(thisArg, args[0], args[1], args[2]);\n }\n return func.apply(thisArg, args);\n}\n\nexport default apply;\n","/** Used to detect hot functions by number of calls within a span of milliseconds. */\nvar HOT_COUNT = 800,\n HOT_SPAN = 16;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeNow = Date.now;\n\n/**\n * Creates a function that'll short out and invoke `identity` instead\n * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`\n * milliseconds.\n *\n * @private\n * @param {Function} func The function to restrict.\n * @returns {Function} Returns the new shortable function.\n */\nfunction shortOut(func) {\n var count = 0,\n lastCalled = 0;\n\n return function() {\n var stamp = nativeNow(),\n remaining = HOT_SPAN - (stamp - lastCalled);\n\n lastCalled = stamp;\n if (remaining > 0) {\n if (++count >= HOT_COUNT) {\n return arguments[0];\n }\n } else {\n count = 0;\n }\n return func.apply(undefined, arguments);\n };\n}\n\nexport default shortOut;\n","/**\n * Creates a function that returns `value`.\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Util\n * @param {*} value The value to return from the new function.\n * @returns {Function} Returns the new constant function.\n * @example\n *\n * var objects = _.times(2, _.constant({ 'a': 1 }));\n *\n * console.log(objects);\n * // => [{ 'a': 1 }, { 'a': 1 }]\n *\n * console.log(objects[0] === objects[1]);\n * // => true\n */\nfunction constant(value) {\n return function() {\n return value;\n };\n}\n\nexport default constant;\n","import constant from './constant.js';\nimport defineProperty from './_defineProperty.js';\nimport identity from './identity.js';\n\n/**\n * The base implementation of `setToString` without support for hot loop shorting.\n *\n * @private\n * @param {Function} func The function to modify.\n * @param {Function} string The `toString` result.\n * @returns {Function} Returns `func`.\n */\nvar baseSetToString = !defineProperty ? identity : function(func, string) {\n return defineProperty(func, 'toString', {\n 'configurable': true,\n 'enumerable': false,\n 'value': constant(string),\n 'writable': true\n });\n};\n\nexport default baseSetToString;\n","import baseSetToString from './_baseSetToString.js';\nimport shortOut from './_shortOut.js';\n\n/**\n * Sets the `toString` method of `func` to return `string`.\n *\n * @private\n * @param {Function} func The function to modify.\n * @param {Function} string The `toString` result.\n * @returns {Function} Returns `func`.\n */\nvar setToString = shortOut(baseSetToString);\n\nexport default setToString;\n","import apply from './_apply.js';\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max;\n\n/**\n * A specialized version of `baseRest` which transforms the rest array.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @param {Function} transform The rest array transform.\n * @returns {Function} Returns the new function.\n */\nfunction overRest(func, start, transform) {\n start = nativeMax(start === undefined ? (func.length - 1) : start, 0);\n return function() {\n var args = arguments,\n index = -1,\n length = nativeMax(args.length - start, 0),\n array = Array(length);\n\n while (++index < length) {\n array[index] = args[start + index];\n }\n index = -1;\n var otherArgs = Array(start + 1);\n while (++index < start) {\n otherArgs[index] = args[index];\n }\n otherArgs[start] = transform(array);\n return apply(func, this, otherArgs);\n };\n}\n\nexport default overRest;\n","import identity from './identity.js';\nimport overRest from './_overRest.js';\nimport setToString from './_setToString.js';\n\n/**\n * The base implementation of `_.rest` which doesn't validate or coerce arguments.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @returns {Function} Returns the new function.\n */\nfunction baseRest(func, start) {\n return setToString(overRest(func, start, identity), func + '');\n}\n\nexport default baseRest;\n"],"x_google_ignoreList":[0,1,2,3,4,5,6,7,8],"mappings":";;;;;;;;;;;AASA,SAAS,SAAS,OAAO,UAAU;CACjC,IAAI,QAAQ,IACR,SAAS,SAAS,OAAO,IAAI,MAAM,QACnC,SAAS,MAAM,OAAO;AAE1B,QAAO,EAAE,QAAQ,OACf,QAAO,SAAS,SAAS,MAAM,QAAQ,OAAO,MAAM;AAEtD,QAAO;;;;;;;;;;;;;;;;;;;;ACDT,SAAS,SAAS,OAAO;AACvB,QAAO;;;;;;;;;;;;;;ACPT,SAAS,MAAM,MAAM,SAAS,MAAM;AAClC,SAAQ,KAAK,QAAb;EACE,KAAK,EAAG,QAAO,KAAK,KAAK,QAAQ;EACjC,KAAK,EAAG,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