@windwalker-io/unicorn-next 0.1.19 → 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.
- package/dist/chunks/_arrayPush.js +325 -108
- package/dist/chunks/_arrayPush.js.map +1 -1
- package/dist/chunks/_baseRest.js +155 -60
- package/dist/chunks/_baseRest.js.map +1 -1
- package/dist/chunks/_baseUnary.js +463 -0
- package/dist/chunks/_baseUnary.js.map +1 -0
- package/dist/chunks/_getPrototype.js +292 -100
- package/dist/chunks/_getPrototype.js.map +1 -1
- package/dist/chunks/alert-adapter.js +29 -0
- package/dist/chunks/alert-adapter.js.map +1 -0
- package/dist/chunks/alert.js +21 -0
- package/dist/chunks/alert.js.map +1 -0
- package/dist/chunks/arr.js +24 -0
- package/dist/chunks/arr.js.map +1 -0
- package/dist/chunks/button-radio.js +127 -145
- package/dist/chunks/button-radio.js.map +1 -1
- package/dist/chunks/checkboxes-multi-select.js +44 -43
- package/dist/chunks/checkboxes-multi-select.js.map +1 -1
- package/dist/chunks/chunk.js +24 -0
- package/dist/chunks/cloneDeep.js +679 -212
- package/dist/chunks/cloneDeep.js.map +1 -1
- package/dist/chunks/cropper.min.js +6 -5
- package/dist/chunks/cropper.min.js.map +1 -1
- package/dist/chunks/crypto.js +26 -0
- package/dist/chunks/crypto.js.map +1 -0
- package/dist/chunks/data.js +49 -0
- package/dist/chunks/data.js.map +1 -0
- package/dist/chunks/dom.js +128 -0
- package/dist/chunks/dom.js.map +1 -0
- package/dist/chunks/events.js +270 -0
- package/dist/chunks/events.js.map +1 -0
- package/dist/chunks/field-cascade-select.js +207 -250
- package/dist/chunks/field-cascade-select.js.map +1 -1
- package/dist/chunks/field-file-drag.js +175 -209
- package/dist/chunks/field-file-drag.js.map +1 -1
- package/dist/chunks/field-flatpickr.js +94 -898
- package/dist/chunks/field-flatpickr.js.map +1 -1
- package/dist/chunks/field-modal-select.js +728 -467
- package/dist/chunks/field-modal-select.js.map +1 -1
- package/dist/chunks/field-modal-tree.js +771 -766
- package/dist/chunks/field-modal-tree.js.map +1 -1
- package/dist/chunks/field-multi-uploader.js +249 -256
- package/dist/chunks/field-multi-uploader.js.map +1 -1
- package/dist/chunks/field-repeatable.js +111 -127
- package/dist/chunks/field-repeatable.js.map +1 -1
- package/dist/chunks/field-single-image-drag.js +286 -338
- package/dist/chunks/field-single-image-drag.js.map +1 -1
- package/dist/chunks/form.js +146 -159
- package/dist/chunks/form.js.map +1 -1
- package/dist/chunks/grid.js +349 -418
- package/dist/chunks/grid.js.map +1 -1
- package/dist/chunks/helper.js +39 -0
- package/dist/chunks/helper.js.map +1 -0
- package/dist/chunks/http-client.js +221 -211
- package/dist/chunks/http-client.js.map +1 -1
- package/dist/chunks/iframe-modal.js +95 -115
- package/dist/chunks/iframe-modal.js.map +1 -1
- package/dist/chunks/keep-tab.js +92 -101
- package/dist/chunks/keep-tab.js.map +1 -1
- package/dist/chunks/lang.js +250 -0
- package/dist/chunks/lang.js.map +1 -0
- package/dist/chunks/legacy.js +197 -201
- package/dist/chunks/legacy.js.map +1 -1
- package/dist/chunks/list-dependent.js +195 -228
- package/dist/chunks/list-dependent.js.map +1 -1
- package/dist/chunks/loader.js +106 -0
- package/dist/chunks/loader.js.map +1 -0
- package/dist/chunks/monthSelect.js +251 -0
- package/dist/chunks/monthSelect.js.map +1 -0
- package/dist/chunks/router.js +111 -0
- package/dist/chunks/router.js.map +1 -0
- package/dist/chunks/s3-multipart-uploader.js +183 -210
- package/dist/chunks/s3-multipart-uploader.js.map +1 -1
- package/dist/chunks/s3-uploader.js +106 -128
- package/dist/chunks/s3-uploader.js.map +1 -1
- package/dist/chunks/show-on.js +358 -205
- package/dist/chunks/show-on.js.map +1 -1
- package/dist/chunks/timing.js +10 -0
- package/dist/chunks/timing.js.map +1 -0
- package/dist/chunks/tinymce.js +153 -203
- package/dist/chunks/tinymce.js.map +1 -1
- package/dist/chunks/ui-bootstrap5.js +58 -72
- package/dist/chunks/ui-bootstrap5.js.map +1 -1
- package/dist/chunks/ui.js +320 -0
- package/dist/chunks/ui.js.map +1 -0
- package/dist/chunks/unicorn.js.map +1 -1
- package/dist/chunks/useQueue.js +111 -0
- package/dist/chunks/useQueue.js.map +1 -0
- package/dist/chunks/useStack.js +76 -0
- package/dist/chunks/useStack.js.map +1 -0
- package/dist/chunks/validation.js +761 -853
- package/dist/chunks/validation.js.map +1 -1
- package/dist/editor.css +1 -1
- package/dist/index.d.ts +10 -8
- package/dist/multi-level-menu.css +1 -1
- package/dist/switcher.css +1 -1
- package/dist/unicorn.js +805 -130
- package/dist/unicorn.js.map +1 -1
- package/package.json +3 -3
- package/src/composable/useBsModalAlert.ts +29 -0
- package/src/composable/useHttp.ts +13 -1
- package/src/module/s3-uploader.ts +1 -1
- package/vite.config.ts +5 -1
- package/dist/chunks/_commonjsHelpers.js +0 -7
- package/dist/chunks/index.js +0 -314
- package/dist/chunks/isArguments.js +0 -146
- package/dist/chunks/unicorn.js +0 -2621
package/dist/chunks/_baseRest.js
CHANGED
|
@@ -1,73 +1,168 @@
|
|
|
1
|
-
import {
|
|
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
|
-
|
|
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
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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 =
|
|
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
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
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
|
-
|
|
37
|
-
|
|
38
|
-
|
|
106
|
+
return function() {
|
|
107
|
+
return value;
|
|
108
|
+
};
|
|
39
109
|
}
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
|
|
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
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
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
|
-
|
|
163
|
+
return setToString(overRest(func, start, identity), func + "");
|
|
68
164
|
}
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
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"],"
|
|
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,QAAO,KAAK,KAAK,SAAS,KAAK,GAAG;EAC1C,KAAK,EAAG,QAAO,KAAK,KAAK,SAAS,KAAK,IAAI,KAAK,GAAG;EACnD,KAAK,EAAG,QAAO,KAAK,KAAK,SAAS,KAAK,IAAI,KAAK,IAAI,KAAK,GAAG;;AAE9D,QAAO,KAAK,MAAM,SAAS,KAAK;;;;;AChBlC,IAAI,YAAY,KACZ,WAAW;AAGf,IAAI,YAAY,KAAK;;;;;;;;;;AAWrB,SAAS,SAAS,MAAM;CACtB,IAAI,QAAQ,GACR,aAAa;AAEjB,QAAO,WAAW;EAChB,IAAI,QAAQ,WAAW,EACnB,YAAY,YAAY,QAAQ;AAEpC,eAAa;AACb,MAAI,YAAY;OACV,EAAE,SAAS,UACb,QAAO,UAAU;QAGnB,SAAQ;AAEV,SAAO,KAAK,MAAM,KAAA,GAAW,UAAU;;;;;;;;;;;;;;;;;;;;;;;;ACb3C,SAAS,SAAS,OAAO;AACvB,QAAO,WAAW;AAChB,SAAO;;;;;;;;;;;;;AEVX,IAAI,cAAc,yBDCI,CAAC,iBAAiB,WAAW,SAAS,MAAM,QAAQ;AACxE,QAAO,eAAe,MAAM,YAAY;EACtC,gBAAgB;EAChB,cAAc;EACd,SAAS,SAAS,OAAO;EACzB,YAAY;EACb,CAAC;ECPuC;;;ACR3C,IAAI,YAAY,KAAK;;;;;;;;;;AAWrB,SAAS,SAAS,MAAM,OAAO,WAAW;AACxC,SAAQ,UAAU,UAAU,KAAA,IAAa,KAAK,SAAS,IAAK,OAAO,EAAE;AACrE,QAAO,WAAW;EAChB,IAAI,OAAO,WACP,QAAQ,IACR,SAAS,UAAU,KAAK,SAAS,OAAO,EAAE,EAC1C,QAAQ,MAAM,OAAO;AAEzB,SAAO,EAAE,QAAQ,OACf,OAAM,SAAS,KAAK,QAAQ;AAE9B,UAAQ;EACR,IAAI,YAAY,MAAM,QAAQ,EAAE;AAChC,SAAO,EAAE,QAAQ,MACf,WAAU,SAAS,KAAK;AAE1B,YAAU,SAAS,UAAU,MAAM;AACnC,SAAO,MAAM,MAAM,MAAM,UAAU;;;;;;;;;;;;;ACnBvC,SAAS,SAAS,MAAM,OAAO;AAC7B,QAAO,YAAY,SAAS,MAAM,OAAO,SAAS,EAAE,OAAO,GAAG"}
|