@baloise/ds-core 17.2.3 → 17.2.4-nightly.20250110

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 (178) hide show
  1. package/components/all.d.ts +2 -0
  2. package/components/all.js +3 -0
  3. package/components/array.js +1 -1856
  4. package/components/bal-app.js +1 -93
  5. package/components/bal-app2.js +95 -0
  6. package/components/bal-carousel.js +4 -1
  7. package/components/bal-date-calendar2.js +1 -1
  8. package/components/bal-doc-app.d.ts +11 -0
  9. package/components/bal-doc-app.js +262 -0
  10. package/components/bal-footer.js +44 -41
  11. package/components/bal-tabs2.js +3 -2
  12. package/components/index.js +5 -304
  13. package/components/index4.js +1642 -342
  14. package/components/index5.js +558 -0
  15. package/components/initialize.js +303 -0
  16. package/components/swiper.util.js +25 -5
  17. package/components/tokens.esm.js +1 -1
  18. package/dist/baloise-design-system/baloise-design-system.esm.js +1 -1
  19. package/dist/baloise-design-system/baloise-design-system.js +1 -1
  20. package/dist/baloise-design-system/index.esm.js +1 -1
  21. package/dist/baloise-design-system/{p-e8e685e210.entry.js → p-005e59f2fa.entry.js} +1 -1
  22. package/dist/baloise-design-system/{p-272b503d.system.js → p-078a321b.system.js} +1 -1
  23. package/dist/baloise-design-system/p-079850e6.system.js +1 -0
  24. package/dist/baloise-design-system/{p-783d9ffa8a.entry.js → p-09f166e439.entry.js} +1 -1
  25. package/dist/baloise-design-system/p-0b8169c8.js +1 -0
  26. package/dist/baloise-design-system/p-0e323fe0.system.js +1 -1
  27. package/dist/baloise-design-system/p-1c191e7d.js +1 -0
  28. package/dist/baloise-design-system/{p-99d46d1583.system.entry.js → p-32c7867b78.system.entry.js} +1 -1
  29. package/dist/baloise-design-system/{p-bd6fd5de36.entry.js → p-41b642c279.entry.js} +1 -1
  30. package/dist/baloise-design-system/{p-edb1324d.system.js → p-51525b5c.system.js} +1 -1
  31. package/dist/baloise-design-system/{p-41dc0f2a79.system.entry.js → p-5443d162c3.system.entry.js} +1 -1
  32. package/dist/baloise-design-system/p-5458b9f311.entry.js +1 -0
  33. package/dist/baloise-design-system/p-5622c208.system.js +1 -0
  34. package/dist/baloise-design-system/p-58d2a0b5.system.js +1 -0
  35. package/dist/baloise-design-system/p-5fc399662d.entry.js +1 -0
  36. package/dist/baloise-design-system/{p-378298ca40.system.entry.js → p-65ac2fe908.system.entry.js} +1 -1
  37. package/dist/baloise-design-system/{p-43a1210363.system.entry.js → p-6f27b46312.system.entry.js} +1 -1
  38. package/dist/baloise-design-system/p-73bec757.js +1 -0
  39. package/dist/baloise-design-system/{p-91d1c6f64b.entry.js → p-76dc963d9e.entry.js} +1 -1
  40. package/dist/baloise-design-system/{p-00ae3132.system.js → p-80bc0176.system.js} +1 -1
  41. package/dist/baloise-design-system/p-8c24fdcf6c.system.entry.js +1 -0
  42. package/dist/baloise-design-system/{p-c24eef72ab.system.entry.js → p-95841191a5.system.entry.js} +1 -1
  43. package/dist/baloise-design-system/p-96122c3e5b.entry.js +1 -0
  44. package/dist/baloise-design-system/{p-3e7da614.system.js → p-9774b1a2.system.js} +1 -1
  45. package/dist/baloise-design-system/{p-8e3818cabc.system.entry.js → p-9a0181713e.system.entry.js} +1 -1
  46. package/dist/baloise-design-system/p-9ad648deea.system.entry.js +1 -0
  47. package/dist/baloise-design-system/{p-aece54af.js → p-9f38fc6a.js} +1 -1
  48. package/dist/baloise-design-system/{p-d777c285e4.system.entry.js → p-9f6ff86758.system.entry.js} +1 -1
  49. package/dist/baloise-design-system/{p-5032cc512d.entry.js → p-a140d6e536.entry.js} +1 -1
  50. package/dist/baloise-design-system/{p-356aa83c1a.system.entry.js → p-a93895b492.system.entry.js} +1 -1
  51. package/dist/baloise-design-system/{p-b590137a20.system.entry.js → p-a9b3c1313a.system.entry.js} +1 -1
  52. package/dist/baloise-design-system/{p-ac5bae9bc0.entry.js → p-aef86c79cb.entry.js} +1 -1
  53. package/dist/baloise-design-system/{p-bdb87be782.system.entry.js → p-b0ee2bdad4.system.entry.js} +1 -1
  54. package/dist/baloise-design-system/{p-d34610d0b3.system.entry.js → p-bbd99edd27.system.entry.js} +1 -1
  55. package/dist/baloise-design-system/{p-5bcd9a5b.js → p-c0827274.js} +1 -1
  56. package/dist/baloise-design-system/p-c0e04c2072.system.entry.js +1 -0
  57. package/dist/baloise-design-system/{p-62b1464a63.entry.js → p-c586b08110.entry.js} +1 -1
  58. package/dist/baloise-design-system/{p-455872a1.system.js → p-c9b8e360.system.js} +1 -1
  59. package/dist/baloise-design-system/{p-5e1cab7609.entry.js → p-cd4c5a26fb.entry.js} +1 -1
  60. package/dist/baloise-design-system/{p-db14671c52.system.entry.js → p-d184d75fbd.system.entry.js} +1 -1
  61. package/dist/baloise-design-system/p-db39e917.js +1 -0
  62. package/dist/baloise-design-system/p-e53217f8.js +1 -1
  63. package/dist/baloise-design-system/p-e9445f4362.entry.js +1 -0
  64. package/dist/baloise-design-system/{p-d9be99b1f3.entry.js → p-eb9380818c.entry.js} +1 -1
  65. package/dist/baloise-design-system/p-f7f06d0340.entry.js +1 -0
  66. package/dist/baloise-design-system/{p-4ab7dd0d1e.entry.js → p-fddf7f3071.entry.js} +1 -1
  67. package/dist/cjs/app-globals-25e25924.js +7 -0
  68. package/dist/cjs/bal-app.cjs.entry.js +1 -1
  69. package/dist/cjs/bal-carousel_2.cjs.entry.js +8 -5
  70. package/dist/cjs/bal-doc-app.cjs.entry.js +233 -0
  71. package/dist/cjs/bal-footer.cjs.entry.js +37 -10
  72. package/dist/cjs/bal-hint_5.cjs.entry.js +3 -3
  73. package/dist/cjs/bal-list_8.cjs.entry.js +3 -3
  74. package/dist/cjs/bal-logo.cjs.entry.js +3 -3
  75. package/dist/cjs/bal-nav_8.cjs.entry.js +3 -3
  76. package/dist/cjs/bal-navbar_5.cjs.entry.js +3 -3
  77. package/dist/cjs/bal-pagination.cjs.entry.js +3 -3
  78. package/dist/cjs/bal-progress-bar.cjs.entry.js +4 -4
  79. package/dist/cjs/bal-segment_2.cjs.entry.js +4 -4
  80. package/dist/cjs/bal-shape.cjs.entry.js +1 -1
  81. package/dist/cjs/bal-steps.cjs.entry.js +3 -3
  82. package/dist/cjs/bal-tab-item_2.cjs.entry.js +7 -6
  83. package/dist/cjs/baloise-design-system.cjs.js +3 -2
  84. package/dist/cjs/{breakpoints.decorator-ea5d7550.js → breakpoints.decorator-46e2af14.js} +1 -1
  85. package/dist/cjs/{breakpoints.subject-235affbc.js → breakpoints.subject-33e8e8b4.js} +1 -1
  86. package/dist/cjs/{app-globals-a3f2765f.js → global-85ebe098.js} +2 -4
  87. package/dist/cjs/index.cjs.js +2 -2
  88. package/dist/cjs/initialize-367b85e5.js +1 -1
  89. package/dist/cjs/loader.cjs.js +3 -2
  90. package/dist/cjs/{swiper.util-2c1a9dd3.js → swiper.util-abdf50f1.js} +25 -5
  91. package/dist/cjs/{tokens.esm-50d692f1.js → tokens.esm-274c6a7d.js} +1 -1
  92. package/dist/cjs/{window-resize.decorator-af016113.js → window-resize.decorator-c92820b6.js} +1 -1
  93. package/dist/collection/collection-manifest.json +2 -1
  94. package/dist/collection/components/bal-app/bal-app.css +1 -1
  95. package/dist/collection/components/bal-carousel/bal-carousel.js +4 -1
  96. package/dist/collection/components/bal-footer/bal-footer.css +1 -1
  97. package/dist/collection/components/bal-footer/bal-footer.i18n.js +32 -0
  98. package/dist/collection/components/bal-footer/bal-footer.js +4 -9
  99. package/dist/collection/components/bal-tabs/bal-tabs.js +3 -2
  100. package/dist/collection/components/docs/bal-doc-app/bal-doc-app.css +1 -0
  101. package/dist/collection/components/docs/bal-doc-app/bal-doc-app.js +247 -0
  102. package/dist/collection/utils/constants/version.constant.js +1 -1
  103. package/dist/collection/utils/swiper/swiper.util.js +25 -5
  104. package/dist/esm/app-globals-83570026.js +5 -0
  105. package/dist/esm/bal-app.entry.js +1 -1
  106. package/dist/esm/bal-carousel_2.entry.js +8 -5
  107. package/dist/esm/bal-doc-app.entry.js +229 -0
  108. package/dist/esm/bal-footer.entry.js +37 -10
  109. package/dist/esm/bal-hint_5.entry.js +3 -3
  110. package/dist/esm/bal-list_8.entry.js +3 -3
  111. package/dist/esm/bal-logo.entry.js +3 -3
  112. package/dist/esm/bal-nav_8.entry.js +3 -3
  113. package/dist/esm/bal-navbar_5.entry.js +3 -3
  114. package/dist/esm/bal-pagination.entry.js +3 -3
  115. package/dist/esm/bal-progress-bar.entry.js +4 -4
  116. package/dist/esm/bal-segment_2.entry.js +4 -4
  117. package/dist/esm/bal-shape.entry.js +1 -1
  118. package/dist/esm/bal-steps.entry.js +3 -3
  119. package/dist/esm/bal-tab-item_2.entry.js +7 -6
  120. package/dist/esm/baloise-design-system.js +3 -2
  121. package/dist/esm/{breakpoints.decorator-761b6833.js → breakpoints.decorator-27d35f52.js} +1 -1
  122. package/dist/esm/{breakpoints.subject-55ab8bb6.js → breakpoints.subject-10396a8b.js} +1 -1
  123. package/dist/esm/{app-globals-92fef8fd.js → global-88c7b04e.js} +2 -4
  124. package/dist/esm/index.js +3 -3
  125. package/dist/esm/initialize-22c1bebc.js +1 -1
  126. package/dist/esm/loader.js +3 -2
  127. package/dist/esm/{swiper.util-3e090584.js → swiper.util-0589b550.js} +25 -5
  128. package/dist/esm/{tokens.esm-8a7ec399.js → tokens.esm-071cad4e.js} +1 -1
  129. package/dist/esm/{window-resize.decorator-1dd80b10.js → window-resize.decorator-96bfb011.js} +1 -1
  130. package/dist/esm-es5/app-globals-83570026.js +1 -0
  131. package/dist/esm-es5/bal-app.entry.js +1 -1
  132. package/dist/esm-es5/bal-carousel_2.entry.js +1 -1
  133. package/dist/esm-es5/bal-doc-app.entry.js +1 -0
  134. package/dist/esm-es5/bal-footer.entry.js +1 -1
  135. package/dist/esm-es5/bal-hint_5.entry.js +1 -1
  136. package/dist/esm-es5/bal-list_8.entry.js +1 -1
  137. package/dist/esm-es5/bal-logo.entry.js +1 -1
  138. package/dist/esm-es5/bal-nav_8.entry.js +1 -1
  139. package/dist/esm-es5/bal-navbar_5.entry.js +1 -1
  140. package/dist/esm-es5/bal-pagination.entry.js +1 -1
  141. package/dist/esm-es5/bal-progress-bar.entry.js +1 -1
  142. package/dist/esm-es5/bal-segment_2.entry.js +1 -1
  143. package/dist/esm-es5/bal-shape.entry.js +1 -1
  144. package/dist/esm-es5/bal-steps.entry.js +1 -1
  145. package/dist/esm-es5/bal-tab-item_2.entry.js +1 -1
  146. package/dist/esm-es5/baloise-design-system.js +1 -1
  147. package/dist/esm-es5/{breakpoints.decorator-761b6833.js → breakpoints.decorator-27d35f52.js} +1 -1
  148. package/dist/esm-es5/{breakpoints.subject-55ab8bb6.js → breakpoints.subject-10396a8b.js} +1 -1
  149. package/dist/esm-es5/global-88c7b04e.js +1 -0
  150. package/dist/esm-es5/index.js +1 -1
  151. package/dist/esm-es5/initialize-22c1bebc.js +1 -1
  152. package/dist/esm-es5/loader.js +1 -1
  153. package/dist/esm-es5/swiper.util-0589b550.js +1 -0
  154. package/dist/esm-es5/{window-resize.decorator-1dd80b10.js → window-resize.decorator-96bfb011.js} +1 -1
  155. package/dist/types/components/bal-carousel/bal-carousel.d.ts +1 -0
  156. package/dist/types/components/bal-footer/bal-footer.d.ts +0 -1
  157. package/dist/types/components/bal-footer/bal-footer.i18n.d.ts +5 -0
  158. package/dist/types/components/docs/bal-doc-app/bal-doc-app.d.ts +21 -0
  159. package/dist/types/components.d.ts +37 -0
  160. package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/icons/src/index.d.ts +82 -0
  161. package/dist/types/utils/swiper/swiper.util.d.ts +2 -1
  162. package/package.json +7 -7
  163. package/dist/baloise-design-system/p-05986dc964.entry.js +0 -1
  164. package/dist/baloise-design-system/p-1050501432.entry.js +0 -1
  165. package/dist/baloise-design-system/p-12ff7815.js +0 -1
  166. package/dist/baloise-design-system/p-345ec2f4.system.js +0 -1
  167. package/dist/baloise-design-system/p-4d67c12e48.system.entry.js +0 -1
  168. package/dist/baloise-design-system/p-68e05bd5.js +0 -1
  169. package/dist/baloise-design-system/p-70f7b546.system.js +0 -1
  170. package/dist/baloise-design-system/p-757f93ffe9.entry.js +0 -1
  171. package/dist/baloise-design-system/p-8c564c0a3c.entry.js +0 -1
  172. package/dist/baloise-design-system/p-b7f9f79521.system.entry.js +0 -1
  173. package/dist/baloise-design-system/p-c42db517.js +0 -1
  174. package/dist/esm-es5/app-globals-92fef8fd.js +0 -1
  175. package/dist/esm-es5/swiper.util-3e090584.js +0 -1
  176. /package/dist/baloise-design-system/{p-210346c9.js → p-734e49a8.js} +0 -0
  177. /package/dist/baloise-design-system/{p-b0fcd760.system.js → p-c657dfd5.system.js} +0 -0
  178. /package/dist/esm-es5/{tokens.esm-8a7ec399.js → tokens.esm-071cad4e.js} +0 -0
@@ -1,1860 +1,5 @@
1
1
  import { l as lodash_isnil } from './index3.js';
2
- import { c as commonjsGlobal } from './_commonjsHelpers.js';
3
-
4
- var lodash_isequal = {exports: {}};
5
-
6
- /**
7
- * Lodash (Custom Build) <https://lodash.com/>
8
- * Build: `lodash modularize exports="npm" -o ./`
9
- * Copyright JS Foundation and other contributors <https://js.foundation/>
10
- * Released under MIT license <https://lodash.com/license>
11
- * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
12
- * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
13
- */
14
-
15
- (function (module, exports) {
16
- /** Used as the size to enable large array optimizations. */
17
- var LARGE_ARRAY_SIZE = 200;
18
-
19
- /** Used to stand-in for `undefined` hash values. */
20
- var HASH_UNDEFINED = '__lodash_hash_undefined__';
21
-
22
- /** Used to compose bitmasks for value comparisons. */
23
- var COMPARE_PARTIAL_FLAG = 1,
24
- COMPARE_UNORDERED_FLAG = 2;
25
-
26
- /** Used as references for various `Number` constants. */
27
- var MAX_SAFE_INTEGER = 9007199254740991;
28
-
29
- /** `Object#toString` result references. */
30
- var argsTag = '[object Arguments]',
31
- arrayTag = '[object Array]',
32
- asyncTag = '[object AsyncFunction]',
33
- boolTag = '[object Boolean]',
34
- dateTag = '[object Date]',
35
- errorTag = '[object Error]',
36
- funcTag = '[object Function]',
37
- genTag = '[object GeneratorFunction]',
38
- mapTag = '[object Map]',
39
- numberTag = '[object Number]',
40
- nullTag = '[object Null]',
41
- objectTag = '[object Object]',
42
- promiseTag = '[object Promise]',
43
- proxyTag = '[object Proxy]',
44
- regexpTag = '[object RegExp]',
45
- setTag = '[object Set]',
46
- stringTag = '[object String]',
47
- symbolTag = '[object Symbol]',
48
- undefinedTag = '[object Undefined]',
49
- weakMapTag = '[object WeakMap]';
50
-
51
- var arrayBufferTag = '[object ArrayBuffer]',
52
- dataViewTag = '[object DataView]',
53
- float32Tag = '[object Float32Array]',
54
- float64Tag = '[object Float64Array]',
55
- int8Tag = '[object Int8Array]',
56
- int16Tag = '[object Int16Array]',
57
- int32Tag = '[object Int32Array]',
58
- uint8Tag = '[object Uint8Array]',
59
- uint8ClampedTag = '[object Uint8ClampedArray]',
60
- uint16Tag = '[object Uint16Array]',
61
- uint32Tag = '[object Uint32Array]';
62
-
63
- /**
64
- * Used to match `RegExp`
65
- * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
66
- */
67
- var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
68
-
69
- /** Used to detect host constructors (Safari). */
70
- var reIsHostCtor = /^\[object .+?Constructor\]$/;
71
-
72
- /** Used to detect unsigned integer values. */
73
- var reIsUint = /^(?:0|[1-9]\d*)$/;
74
-
75
- /** Used to identify `toStringTag` values of typed arrays. */
76
- var typedArrayTags = {};
77
- typedArrayTags[float32Tag] = typedArrayTags[float64Tag] =
78
- typedArrayTags[int8Tag] = typedArrayTags[int16Tag] =
79
- typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =
80
- typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =
81
- typedArrayTags[uint32Tag] = true;
82
- typedArrayTags[argsTag] = typedArrayTags[arrayTag] =
83
- typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =
84
- typedArrayTags[dataViewTag] = typedArrayTags[dateTag] =
85
- typedArrayTags[errorTag] = typedArrayTags[funcTag] =
86
- typedArrayTags[mapTag] = typedArrayTags[numberTag] =
87
- typedArrayTags[objectTag] = typedArrayTags[regexpTag] =
88
- typedArrayTags[setTag] = typedArrayTags[stringTag] =
89
- typedArrayTags[weakMapTag] = false;
90
-
91
- /** Detect free variable `global` from Node.js. */
92
- var freeGlobal = typeof commonjsGlobal == 'object' && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
93
-
94
- /** Detect free variable `self`. */
95
- var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
96
-
97
- /** Used as a reference to the global object. */
98
- var root = freeGlobal || freeSelf || Function('return this')();
99
-
100
- /** Detect free variable `exports`. */
101
- var freeExports = exports && !exports.nodeType && exports;
102
-
103
- /** Detect free variable `module`. */
104
- var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
105
-
106
- /** Detect the popular CommonJS extension `module.exports`. */
107
- var moduleExports = freeModule && freeModule.exports === freeExports;
108
-
109
- /** Detect free variable `process` from Node.js. */
110
- var freeProcess = moduleExports && freeGlobal.process;
111
-
112
- /** Used to access faster Node.js helpers. */
113
- var nodeUtil = (function() {
114
- try {
115
- return freeProcess && freeProcess.binding && freeProcess.binding('util');
116
- } catch (e) {}
117
- }());
118
-
119
- /* Node.js helper references. */
120
- var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
121
-
122
- /**
123
- * A specialized version of `_.filter` for arrays without support for
124
- * iteratee shorthands.
125
- *
126
- * @private
127
- * @param {Array} [array] The array to iterate over.
128
- * @param {Function} predicate The function invoked per iteration.
129
- * @returns {Array} Returns the new filtered array.
130
- */
131
- function arrayFilter(array, predicate) {
132
- var index = -1,
133
- length = array == null ? 0 : array.length,
134
- resIndex = 0,
135
- result = [];
136
-
137
- while (++index < length) {
138
- var value = array[index];
139
- if (predicate(value, index, array)) {
140
- result[resIndex++] = value;
141
- }
142
- }
143
- return result;
144
- }
145
-
146
- /**
147
- * Appends the elements of `values` to `array`.
148
- *
149
- * @private
150
- * @param {Array} array The array to modify.
151
- * @param {Array} values The values to append.
152
- * @returns {Array} Returns `array`.
153
- */
154
- function arrayPush(array, values) {
155
- var index = -1,
156
- length = values.length,
157
- offset = array.length;
158
-
159
- while (++index < length) {
160
- array[offset + index] = values[index];
161
- }
162
- return array;
163
- }
164
-
165
- /**
166
- * A specialized version of `_.some` for arrays without support for iteratee
167
- * shorthands.
168
- *
169
- * @private
170
- * @param {Array} [array] The array to iterate over.
171
- * @param {Function} predicate The function invoked per iteration.
172
- * @returns {boolean} Returns `true` if any element passes the predicate check,
173
- * else `false`.
174
- */
175
- function arraySome(array, predicate) {
176
- var index = -1,
177
- length = array == null ? 0 : array.length;
178
-
179
- while (++index < length) {
180
- if (predicate(array[index], index, array)) {
181
- return true;
182
- }
183
- }
184
- return false;
185
- }
186
-
187
- /**
188
- * The base implementation of `_.times` without support for iteratee shorthands
189
- * or max array length checks.
190
- *
191
- * @private
192
- * @param {number} n The number of times to invoke `iteratee`.
193
- * @param {Function} iteratee The function invoked per iteration.
194
- * @returns {Array} Returns the array of results.
195
- */
196
- function baseTimes(n, iteratee) {
197
- var index = -1,
198
- result = Array(n);
199
-
200
- while (++index < n) {
201
- result[index] = iteratee(index);
202
- }
203
- return result;
204
- }
205
-
206
- /**
207
- * The base implementation of `_.unary` without support for storing metadata.
208
- *
209
- * @private
210
- * @param {Function} func The function to cap arguments for.
211
- * @returns {Function} Returns the new capped function.
212
- */
213
- function baseUnary(func) {
214
- return function(value) {
215
- return func(value);
216
- };
217
- }
218
-
219
- /**
220
- * Checks if a `cache` value for `key` exists.
221
- *
222
- * @private
223
- * @param {Object} cache The cache to query.
224
- * @param {string} key The key of the entry to check.
225
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
226
- */
227
- function cacheHas(cache, key) {
228
- return cache.has(key);
229
- }
230
-
231
- /**
232
- * Gets the value at `key` of `object`.
233
- *
234
- * @private
235
- * @param {Object} [object] The object to query.
236
- * @param {string} key The key of the property to get.
237
- * @returns {*} Returns the property value.
238
- */
239
- function getValue(object, key) {
240
- return object == null ? undefined : object[key];
241
- }
242
-
243
- /**
244
- * Converts `map` to its key-value pairs.
245
- *
246
- * @private
247
- * @param {Object} map The map to convert.
248
- * @returns {Array} Returns the key-value pairs.
249
- */
250
- function mapToArray(map) {
251
- var index = -1,
252
- result = Array(map.size);
253
-
254
- map.forEach(function(value, key) {
255
- result[++index] = [key, value];
256
- });
257
- return result;
258
- }
259
-
260
- /**
261
- * Creates a unary function that invokes `func` with its argument transformed.
262
- *
263
- * @private
264
- * @param {Function} func The function to wrap.
265
- * @param {Function} transform The argument transform.
266
- * @returns {Function} Returns the new function.
267
- */
268
- function overArg(func, transform) {
269
- return function(arg) {
270
- return func(transform(arg));
271
- };
272
- }
273
-
274
- /**
275
- * Converts `set` to an array of its values.
276
- *
277
- * @private
278
- * @param {Object} set The set to convert.
279
- * @returns {Array} Returns the values.
280
- */
281
- function setToArray(set) {
282
- var index = -1,
283
- result = Array(set.size);
284
-
285
- set.forEach(function(value) {
286
- result[++index] = value;
287
- });
288
- return result;
289
- }
290
-
291
- /** Used for built-in method references. */
292
- var arrayProto = Array.prototype,
293
- funcProto = Function.prototype,
294
- objectProto = Object.prototype;
295
-
296
- /** Used to detect overreaching core-js shims. */
297
- var coreJsData = root['__core-js_shared__'];
298
-
299
- /** Used to resolve the decompiled source of functions. */
300
- var funcToString = funcProto.toString;
301
-
302
- /** Used to check objects for own properties. */
303
- var hasOwnProperty = objectProto.hasOwnProperty;
304
-
305
- /** Used to detect methods masquerading as native. */
306
- var maskSrcKey = (function() {
307
- var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
308
- return uid ? ('Symbol(src)_1.' + uid) : '';
309
- }());
310
-
311
- /**
312
- * Used to resolve the
313
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
314
- * of values.
315
- */
316
- var nativeObjectToString = objectProto.toString;
317
-
318
- /** Used to detect if a method is native. */
319
- var reIsNative = RegExp('^' +
320
- funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&')
321
- .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
322
- );
323
-
324
- /** Built-in value references. */
325
- var Buffer = moduleExports ? root.Buffer : undefined,
326
- Symbol = root.Symbol,
327
- Uint8Array = root.Uint8Array,
328
- propertyIsEnumerable = objectProto.propertyIsEnumerable,
329
- splice = arrayProto.splice,
330
- symToStringTag = Symbol ? Symbol.toStringTag : undefined;
331
-
332
- /* Built-in method references for those with the same name as other `lodash` methods. */
333
- var nativeGetSymbols = Object.getOwnPropertySymbols,
334
- nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined,
335
- nativeKeys = overArg(Object.keys, Object);
336
-
337
- /* Built-in method references that are verified to be native. */
338
- var DataView = getNative(root, 'DataView'),
339
- Map = getNative(root, 'Map'),
340
- Promise = getNative(root, 'Promise'),
341
- Set = getNative(root, 'Set'),
342
- WeakMap = getNative(root, 'WeakMap'),
343
- nativeCreate = getNative(Object, 'create');
344
-
345
- /** Used to detect maps, sets, and weakmaps. */
346
- var dataViewCtorString = toSource(DataView),
347
- mapCtorString = toSource(Map),
348
- promiseCtorString = toSource(Promise),
349
- setCtorString = toSource(Set),
350
- weakMapCtorString = toSource(WeakMap);
351
-
352
- /** Used to convert symbols to primitives and strings. */
353
- var symbolProto = Symbol ? Symbol.prototype : undefined,
354
- symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;
355
-
356
- /**
357
- * Creates a hash object.
358
- *
359
- * @private
360
- * @constructor
361
- * @param {Array} [entries] The key-value pairs to cache.
362
- */
363
- function Hash(entries) {
364
- var index = -1,
365
- length = entries == null ? 0 : entries.length;
366
-
367
- this.clear();
368
- while (++index < length) {
369
- var entry = entries[index];
370
- this.set(entry[0], entry[1]);
371
- }
372
- }
373
-
374
- /**
375
- * Removes all key-value entries from the hash.
376
- *
377
- * @private
378
- * @name clear
379
- * @memberOf Hash
380
- */
381
- function hashClear() {
382
- this.__data__ = nativeCreate ? nativeCreate(null) : {};
383
- this.size = 0;
384
- }
385
-
386
- /**
387
- * Removes `key` and its value from the hash.
388
- *
389
- * @private
390
- * @name delete
391
- * @memberOf Hash
392
- * @param {Object} hash The hash to modify.
393
- * @param {string} key The key of the value to remove.
394
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
395
- */
396
- function hashDelete(key) {
397
- var result = this.has(key) && delete this.__data__[key];
398
- this.size -= result ? 1 : 0;
399
- return result;
400
- }
401
-
402
- /**
403
- * Gets the hash value for `key`.
404
- *
405
- * @private
406
- * @name get
407
- * @memberOf Hash
408
- * @param {string} key The key of the value to get.
409
- * @returns {*} Returns the entry value.
410
- */
411
- function hashGet(key) {
412
- var data = this.__data__;
413
- if (nativeCreate) {
414
- var result = data[key];
415
- return result === HASH_UNDEFINED ? undefined : result;
416
- }
417
- return hasOwnProperty.call(data, key) ? data[key] : undefined;
418
- }
419
-
420
- /**
421
- * Checks if a hash value for `key` exists.
422
- *
423
- * @private
424
- * @name has
425
- * @memberOf Hash
426
- * @param {string} key The key of the entry to check.
427
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
428
- */
429
- function hashHas(key) {
430
- var data = this.__data__;
431
- return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);
432
- }
433
-
434
- /**
435
- * Sets the hash `key` to `value`.
436
- *
437
- * @private
438
- * @name set
439
- * @memberOf Hash
440
- * @param {string} key The key of the value to set.
441
- * @param {*} value The value to set.
442
- * @returns {Object} Returns the hash instance.
443
- */
444
- function hashSet(key, value) {
445
- var data = this.__data__;
446
- this.size += this.has(key) ? 0 : 1;
447
- data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
448
- return this;
449
- }
450
-
451
- // Add methods to `Hash`.
452
- Hash.prototype.clear = hashClear;
453
- Hash.prototype['delete'] = hashDelete;
454
- Hash.prototype.get = hashGet;
455
- Hash.prototype.has = hashHas;
456
- Hash.prototype.set = hashSet;
457
-
458
- /**
459
- * Creates an list cache object.
460
- *
461
- * @private
462
- * @constructor
463
- * @param {Array} [entries] The key-value pairs to cache.
464
- */
465
- function ListCache(entries) {
466
- var index = -1,
467
- length = entries == null ? 0 : entries.length;
468
-
469
- this.clear();
470
- while (++index < length) {
471
- var entry = entries[index];
472
- this.set(entry[0], entry[1]);
473
- }
474
- }
475
-
476
- /**
477
- * Removes all key-value entries from the list cache.
478
- *
479
- * @private
480
- * @name clear
481
- * @memberOf ListCache
482
- */
483
- function listCacheClear() {
484
- this.__data__ = [];
485
- this.size = 0;
486
- }
487
-
488
- /**
489
- * Removes `key` and its value from the list cache.
490
- *
491
- * @private
492
- * @name delete
493
- * @memberOf ListCache
494
- * @param {string} key The key of the value to remove.
495
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
496
- */
497
- function listCacheDelete(key) {
498
- var data = this.__data__,
499
- index = assocIndexOf(data, key);
500
-
501
- if (index < 0) {
502
- return false;
503
- }
504
- var lastIndex = data.length - 1;
505
- if (index == lastIndex) {
506
- data.pop();
507
- } else {
508
- splice.call(data, index, 1);
509
- }
510
- --this.size;
511
- return true;
512
- }
513
-
514
- /**
515
- * Gets the list cache value for `key`.
516
- *
517
- * @private
518
- * @name get
519
- * @memberOf ListCache
520
- * @param {string} key The key of the value to get.
521
- * @returns {*} Returns the entry value.
522
- */
523
- function listCacheGet(key) {
524
- var data = this.__data__,
525
- index = assocIndexOf(data, key);
526
-
527
- return index < 0 ? undefined : data[index][1];
528
- }
529
-
530
- /**
531
- * Checks if a list cache value for `key` exists.
532
- *
533
- * @private
534
- * @name has
535
- * @memberOf ListCache
536
- * @param {string} key The key of the entry to check.
537
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
538
- */
539
- function listCacheHas(key) {
540
- return assocIndexOf(this.__data__, key) > -1;
541
- }
542
-
543
- /**
544
- * Sets the list cache `key` to `value`.
545
- *
546
- * @private
547
- * @name set
548
- * @memberOf ListCache
549
- * @param {string} key The key of the value to set.
550
- * @param {*} value The value to set.
551
- * @returns {Object} Returns the list cache instance.
552
- */
553
- function listCacheSet(key, value) {
554
- var data = this.__data__,
555
- index = assocIndexOf(data, key);
556
-
557
- if (index < 0) {
558
- ++this.size;
559
- data.push([key, value]);
560
- } else {
561
- data[index][1] = value;
562
- }
563
- return this;
564
- }
565
-
566
- // Add methods to `ListCache`.
567
- ListCache.prototype.clear = listCacheClear;
568
- ListCache.prototype['delete'] = listCacheDelete;
569
- ListCache.prototype.get = listCacheGet;
570
- ListCache.prototype.has = listCacheHas;
571
- ListCache.prototype.set = listCacheSet;
572
-
573
- /**
574
- * Creates a map cache object to store key-value pairs.
575
- *
576
- * @private
577
- * @constructor
578
- * @param {Array} [entries] The key-value pairs to cache.
579
- */
580
- function MapCache(entries) {
581
- var index = -1,
582
- length = entries == null ? 0 : entries.length;
583
-
584
- this.clear();
585
- while (++index < length) {
586
- var entry = entries[index];
587
- this.set(entry[0], entry[1]);
588
- }
589
- }
590
-
591
- /**
592
- * Removes all key-value entries from the map.
593
- *
594
- * @private
595
- * @name clear
596
- * @memberOf MapCache
597
- */
598
- function mapCacheClear() {
599
- this.size = 0;
600
- this.__data__ = {
601
- 'hash': new Hash,
602
- 'map': new (Map || ListCache),
603
- 'string': new Hash
604
- };
605
- }
606
-
607
- /**
608
- * Removes `key` and its value from the map.
609
- *
610
- * @private
611
- * @name delete
612
- * @memberOf MapCache
613
- * @param {string} key The key of the value to remove.
614
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
615
- */
616
- function mapCacheDelete(key) {
617
- var result = getMapData(this, key)['delete'](key);
618
- this.size -= result ? 1 : 0;
619
- return result;
620
- }
621
-
622
- /**
623
- * Gets the map value for `key`.
624
- *
625
- * @private
626
- * @name get
627
- * @memberOf MapCache
628
- * @param {string} key The key of the value to get.
629
- * @returns {*} Returns the entry value.
630
- */
631
- function mapCacheGet(key) {
632
- return getMapData(this, key).get(key);
633
- }
634
-
635
- /**
636
- * Checks if a map value for `key` exists.
637
- *
638
- * @private
639
- * @name has
640
- * @memberOf MapCache
641
- * @param {string} key The key of the entry to check.
642
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
643
- */
644
- function mapCacheHas(key) {
645
- return getMapData(this, key).has(key);
646
- }
647
-
648
- /**
649
- * Sets the map `key` to `value`.
650
- *
651
- * @private
652
- * @name set
653
- * @memberOf MapCache
654
- * @param {string} key The key of the value to set.
655
- * @param {*} value The value to set.
656
- * @returns {Object} Returns the map cache instance.
657
- */
658
- function mapCacheSet(key, value) {
659
- var data = getMapData(this, key),
660
- size = data.size;
661
-
662
- data.set(key, value);
663
- this.size += data.size == size ? 0 : 1;
664
- return this;
665
- }
666
-
667
- // Add methods to `MapCache`.
668
- MapCache.prototype.clear = mapCacheClear;
669
- MapCache.prototype['delete'] = mapCacheDelete;
670
- MapCache.prototype.get = mapCacheGet;
671
- MapCache.prototype.has = mapCacheHas;
672
- MapCache.prototype.set = mapCacheSet;
673
-
674
- /**
675
- *
676
- * Creates an array cache object to store unique values.
677
- *
678
- * @private
679
- * @constructor
680
- * @param {Array} [values] The values to cache.
681
- */
682
- function SetCache(values) {
683
- var index = -1,
684
- length = values == null ? 0 : values.length;
685
-
686
- this.__data__ = new MapCache;
687
- while (++index < length) {
688
- this.add(values[index]);
689
- }
690
- }
691
-
692
- /**
693
- * Adds `value` to the array cache.
694
- *
695
- * @private
696
- * @name add
697
- * @memberOf SetCache
698
- * @alias push
699
- * @param {*} value The value to cache.
700
- * @returns {Object} Returns the cache instance.
701
- */
702
- function setCacheAdd(value) {
703
- this.__data__.set(value, HASH_UNDEFINED);
704
- return this;
705
- }
706
-
707
- /**
708
- * Checks if `value` is in the array cache.
709
- *
710
- * @private
711
- * @name has
712
- * @memberOf SetCache
713
- * @param {*} value The value to search for.
714
- * @returns {number} Returns `true` if `value` is found, else `false`.
715
- */
716
- function setCacheHas(value) {
717
- return this.__data__.has(value);
718
- }
719
-
720
- // Add methods to `SetCache`.
721
- SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
722
- SetCache.prototype.has = setCacheHas;
723
-
724
- /**
725
- * Creates a stack cache object to store key-value pairs.
726
- *
727
- * @private
728
- * @constructor
729
- * @param {Array} [entries] The key-value pairs to cache.
730
- */
731
- function Stack(entries) {
732
- var data = this.__data__ = new ListCache(entries);
733
- this.size = data.size;
734
- }
735
-
736
- /**
737
- * Removes all key-value entries from the stack.
738
- *
739
- * @private
740
- * @name clear
741
- * @memberOf Stack
742
- */
743
- function stackClear() {
744
- this.__data__ = new ListCache;
745
- this.size = 0;
746
- }
747
-
748
- /**
749
- * Removes `key` and its value from the stack.
750
- *
751
- * @private
752
- * @name delete
753
- * @memberOf Stack
754
- * @param {string} key The key of the value to remove.
755
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
756
- */
757
- function stackDelete(key) {
758
- var data = this.__data__,
759
- result = data['delete'](key);
760
-
761
- this.size = data.size;
762
- return result;
763
- }
764
-
765
- /**
766
- * Gets the stack value for `key`.
767
- *
768
- * @private
769
- * @name get
770
- * @memberOf Stack
771
- * @param {string} key The key of the value to get.
772
- * @returns {*} Returns the entry value.
773
- */
774
- function stackGet(key) {
775
- return this.__data__.get(key);
776
- }
777
-
778
- /**
779
- * Checks if a stack value for `key` exists.
780
- *
781
- * @private
782
- * @name has
783
- * @memberOf Stack
784
- * @param {string} key The key of the entry to check.
785
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
786
- */
787
- function stackHas(key) {
788
- return this.__data__.has(key);
789
- }
790
-
791
- /**
792
- * Sets the stack `key` to `value`.
793
- *
794
- * @private
795
- * @name set
796
- * @memberOf Stack
797
- * @param {string} key The key of the value to set.
798
- * @param {*} value The value to set.
799
- * @returns {Object} Returns the stack cache instance.
800
- */
801
- function stackSet(key, value) {
802
- var data = this.__data__;
803
- if (data instanceof ListCache) {
804
- var pairs = data.__data__;
805
- if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {
806
- pairs.push([key, value]);
807
- this.size = ++data.size;
808
- return this;
809
- }
810
- data = this.__data__ = new MapCache(pairs);
811
- }
812
- data.set(key, value);
813
- this.size = data.size;
814
- return this;
815
- }
816
-
817
- // Add methods to `Stack`.
818
- Stack.prototype.clear = stackClear;
819
- Stack.prototype['delete'] = stackDelete;
820
- Stack.prototype.get = stackGet;
821
- Stack.prototype.has = stackHas;
822
- Stack.prototype.set = stackSet;
823
-
824
- /**
825
- * Creates an array of the enumerable property names of the array-like `value`.
826
- *
827
- * @private
828
- * @param {*} value The value to query.
829
- * @param {boolean} inherited Specify returning inherited property names.
830
- * @returns {Array} Returns the array of property names.
831
- */
832
- function arrayLikeKeys(value, inherited) {
833
- var isArr = isArray(value),
834
- isArg = !isArr && isArguments(value),
835
- isBuff = !isArr && !isArg && isBuffer(value),
836
- isType = !isArr && !isArg && !isBuff && isTypedArray(value),
837
- skipIndexes = isArr || isArg || isBuff || isType,
838
- result = skipIndexes ? baseTimes(value.length, String) : [],
839
- length = result.length;
840
-
841
- for (var key in value) {
842
- if ((inherited || hasOwnProperty.call(value, key)) &&
843
- !(skipIndexes && (
844
- // Safari 9 has enumerable `arguments.length` in strict mode.
845
- key == 'length' ||
846
- // Node.js 0.10 has enumerable non-index properties on buffers.
847
- (isBuff && (key == 'offset' || key == 'parent')) ||
848
- // PhantomJS 2 has enumerable non-index properties on typed arrays.
849
- (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||
850
- // Skip index properties.
851
- isIndex(key, length)
852
- ))) {
853
- result.push(key);
854
- }
855
- }
856
- return result;
857
- }
858
-
859
- /**
860
- * Gets the index at which the `key` is found in `array` of key-value pairs.
861
- *
862
- * @private
863
- * @param {Array} array The array to inspect.
864
- * @param {*} key The key to search for.
865
- * @returns {number} Returns the index of the matched value, else `-1`.
866
- */
867
- function assocIndexOf(array, key) {
868
- var length = array.length;
869
- while (length--) {
870
- if (eq(array[length][0], key)) {
871
- return length;
872
- }
873
- }
874
- return -1;
875
- }
876
-
877
- /**
878
- * The base implementation of `getAllKeys` and `getAllKeysIn` which uses
879
- * `keysFunc` and `symbolsFunc` to get the enumerable property names and
880
- * symbols of `object`.
881
- *
882
- * @private
883
- * @param {Object} object The object to query.
884
- * @param {Function} keysFunc The function to get the keys of `object`.
885
- * @param {Function} symbolsFunc The function to get the symbols of `object`.
886
- * @returns {Array} Returns the array of property names and symbols.
887
- */
888
- function baseGetAllKeys(object, keysFunc, symbolsFunc) {
889
- var result = keysFunc(object);
890
- return isArray(object) ? result : arrayPush(result, symbolsFunc(object));
891
- }
892
-
893
- /**
894
- * The base implementation of `getTag` without fallbacks for buggy environments.
895
- *
896
- * @private
897
- * @param {*} value The value to query.
898
- * @returns {string} Returns the `toStringTag`.
899
- */
900
- function baseGetTag(value) {
901
- if (value == null) {
902
- return value === undefined ? undefinedTag : nullTag;
903
- }
904
- return (symToStringTag && symToStringTag in Object(value))
905
- ? getRawTag(value)
906
- : objectToString(value);
907
- }
908
-
909
- /**
910
- * The base implementation of `_.isArguments`.
911
- *
912
- * @private
913
- * @param {*} value The value to check.
914
- * @returns {boolean} Returns `true` if `value` is an `arguments` object,
915
- */
916
- function baseIsArguments(value) {
917
- return isObjectLike(value) && baseGetTag(value) == argsTag;
918
- }
919
-
920
- /**
921
- * The base implementation of `_.isEqual` which supports partial comparisons
922
- * and tracks traversed objects.
923
- *
924
- * @private
925
- * @param {*} value The value to compare.
926
- * @param {*} other The other value to compare.
927
- * @param {boolean} bitmask The bitmask flags.
928
- * 1 - Unordered comparison
929
- * 2 - Partial comparison
930
- * @param {Function} [customizer] The function to customize comparisons.
931
- * @param {Object} [stack] Tracks traversed `value` and `other` objects.
932
- * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
933
- */
934
- function baseIsEqual(value, other, bitmask, customizer, stack) {
935
- if (value === other) {
936
- return true;
937
- }
938
- if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) {
939
- return value !== value && other !== other;
940
- }
941
- return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);
942
- }
943
-
944
- /**
945
- * A specialized version of `baseIsEqual` for arrays and objects which performs
946
- * deep comparisons and tracks traversed objects enabling objects with circular
947
- * references to be compared.
948
- *
949
- * @private
950
- * @param {Object} object The object to compare.
951
- * @param {Object} other The other object to compare.
952
- * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
953
- * @param {Function} customizer The function to customize comparisons.
954
- * @param {Function} equalFunc The function to determine equivalents of values.
955
- * @param {Object} [stack] Tracks traversed `object` and `other` objects.
956
- * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
957
- */
958
- function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
959
- var objIsArr = isArray(object),
960
- othIsArr = isArray(other),
961
- objTag = objIsArr ? arrayTag : getTag(object),
962
- othTag = othIsArr ? arrayTag : getTag(other);
963
-
964
- objTag = objTag == argsTag ? objectTag : objTag;
965
- othTag = othTag == argsTag ? objectTag : othTag;
966
-
967
- var objIsObj = objTag == objectTag,
968
- othIsObj = othTag == objectTag,
969
- isSameTag = objTag == othTag;
970
-
971
- if (isSameTag && isBuffer(object)) {
972
- if (!isBuffer(other)) {
973
- return false;
974
- }
975
- objIsArr = true;
976
- objIsObj = false;
977
- }
978
- if (isSameTag && !objIsObj) {
979
- stack || (stack = new Stack);
980
- return (objIsArr || isTypedArray(object))
981
- ? equalArrays(object, other, bitmask, customizer, equalFunc, stack)
982
- : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
983
- }
984
- if (!(bitmask & COMPARE_PARTIAL_FLAG)) {
985
- var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),
986
- othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');
987
-
988
- if (objIsWrapped || othIsWrapped) {
989
- var objUnwrapped = objIsWrapped ? object.value() : object,
990
- othUnwrapped = othIsWrapped ? other.value() : other;
991
-
992
- stack || (stack = new Stack);
993
- return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);
994
- }
995
- }
996
- if (!isSameTag) {
997
- return false;
998
- }
999
- stack || (stack = new Stack);
1000
- return equalObjects(object, other, bitmask, customizer, equalFunc, stack);
1001
- }
1002
-
1003
- /**
1004
- * The base implementation of `_.isNative` without bad shim checks.
1005
- *
1006
- * @private
1007
- * @param {*} value The value to check.
1008
- * @returns {boolean} Returns `true` if `value` is a native function,
1009
- * else `false`.
1010
- */
1011
- function baseIsNative(value) {
1012
- if (!isObject(value) || isMasked(value)) {
1013
- return false;
1014
- }
1015
- var pattern = isFunction(value) ? reIsNative : reIsHostCtor;
1016
- return pattern.test(toSource(value));
1017
- }
1018
-
1019
- /**
1020
- * The base implementation of `_.isTypedArray` without Node.js optimizations.
1021
- *
1022
- * @private
1023
- * @param {*} value The value to check.
1024
- * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
1025
- */
1026
- function baseIsTypedArray(value) {
1027
- return isObjectLike(value) &&
1028
- isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
1029
- }
1030
-
1031
- /**
1032
- * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
1033
- *
1034
- * @private
1035
- * @param {Object} object The object to query.
1036
- * @returns {Array} Returns the array of property names.
1037
- */
1038
- function baseKeys(object) {
1039
- if (!isPrototype(object)) {
1040
- return nativeKeys(object);
1041
- }
1042
- var result = [];
1043
- for (var key in Object(object)) {
1044
- if (hasOwnProperty.call(object, key) && key != 'constructor') {
1045
- result.push(key);
1046
- }
1047
- }
1048
- return result;
1049
- }
1050
-
1051
- /**
1052
- * A specialized version of `baseIsEqualDeep` for arrays with support for
1053
- * partial deep comparisons.
1054
- *
1055
- * @private
1056
- * @param {Array} array The array to compare.
1057
- * @param {Array} other The other array to compare.
1058
- * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
1059
- * @param {Function} customizer The function to customize comparisons.
1060
- * @param {Function} equalFunc The function to determine equivalents of values.
1061
- * @param {Object} stack Tracks traversed `array` and `other` objects.
1062
- * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.
1063
- */
1064
- function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
1065
- var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
1066
- arrLength = array.length,
1067
- othLength = other.length;
1068
-
1069
- if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
1070
- return false;
1071
- }
1072
- // Assume cyclic values are equal.
1073
- var stacked = stack.get(array);
1074
- if (stacked && stack.get(other)) {
1075
- return stacked == other;
1076
- }
1077
- var index = -1,
1078
- result = true,
1079
- seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new SetCache : undefined;
1080
-
1081
- stack.set(array, other);
1082
- stack.set(other, array);
1083
-
1084
- // Ignore non-index properties.
1085
- while (++index < arrLength) {
1086
- var arrValue = array[index],
1087
- othValue = other[index];
1088
-
1089
- if (customizer) {
1090
- var compared = isPartial
1091
- ? customizer(othValue, arrValue, index, other, array, stack)
1092
- : customizer(arrValue, othValue, index, array, other, stack);
1093
- }
1094
- if (compared !== undefined) {
1095
- if (compared) {
1096
- continue;
1097
- }
1098
- result = false;
1099
- break;
1100
- }
1101
- // Recursively compare arrays (susceptible to call stack limits).
1102
- if (seen) {
1103
- if (!arraySome(other, function(othValue, othIndex) {
1104
- if (!cacheHas(seen, othIndex) &&
1105
- (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
1106
- return seen.push(othIndex);
1107
- }
1108
- })) {
1109
- result = false;
1110
- break;
1111
- }
1112
- } else if (!(
1113
- arrValue === othValue ||
1114
- equalFunc(arrValue, othValue, bitmask, customizer, stack)
1115
- )) {
1116
- result = false;
1117
- break;
1118
- }
1119
- }
1120
- stack['delete'](array);
1121
- stack['delete'](other);
1122
- return result;
1123
- }
1124
-
1125
- /**
1126
- * A specialized version of `baseIsEqualDeep` for comparing objects of
1127
- * the same `toStringTag`.
1128
- *
1129
- * **Note:** This function only supports comparing values with tags of
1130
- * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
1131
- *
1132
- * @private
1133
- * @param {Object} object The object to compare.
1134
- * @param {Object} other The other object to compare.
1135
- * @param {string} tag The `toStringTag` of the objects to compare.
1136
- * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
1137
- * @param {Function} customizer The function to customize comparisons.
1138
- * @param {Function} equalFunc The function to determine equivalents of values.
1139
- * @param {Object} stack Tracks traversed `object` and `other` objects.
1140
- * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
1141
- */
1142
- function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
1143
- switch (tag) {
1144
- case dataViewTag:
1145
- if ((object.byteLength != other.byteLength) ||
1146
- (object.byteOffset != other.byteOffset)) {
1147
- return false;
1148
- }
1149
- object = object.buffer;
1150
- other = other.buffer;
1151
-
1152
- case arrayBufferTag:
1153
- if ((object.byteLength != other.byteLength) ||
1154
- !equalFunc(new Uint8Array(object), new Uint8Array(other))) {
1155
- return false;
1156
- }
1157
- return true;
1158
-
1159
- case boolTag:
1160
- case dateTag:
1161
- case numberTag:
1162
- // Coerce booleans to `1` or `0` and dates to milliseconds.
1163
- // Invalid dates are coerced to `NaN`.
1164
- return eq(+object, +other);
1165
-
1166
- case errorTag:
1167
- return object.name == other.name && object.message == other.message;
1168
-
1169
- case regexpTag:
1170
- case stringTag:
1171
- // Coerce regexes to strings and treat strings, primitives and objects,
1172
- // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring
1173
- // for more details.
1174
- return object == (other + '');
1175
-
1176
- case mapTag:
1177
- var convert = mapToArray;
1178
-
1179
- case setTag:
1180
- var isPartial = bitmask & COMPARE_PARTIAL_FLAG;
1181
- convert || (convert = setToArray);
1182
-
1183
- if (object.size != other.size && !isPartial) {
1184
- return false;
1185
- }
1186
- // Assume cyclic values are equal.
1187
- var stacked = stack.get(object);
1188
- if (stacked) {
1189
- return stacked == other;
1190
- }
1191
- bitmask |= COMPARE_UNORDERED_FLAG;
1192
-
1193
- // Recursively compare objects (susceptible to call stack limits).
1194
- stack.set(object, other);
1195
- var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);
1196
- stack['delete'](object);
1197
- return result;
1198
-
1199
- case symbolTag:
1200
- if (symbolValueOf) {
1201
- return symbolValueOf.call(object) == symbolValueOf.call(other);
1202
- }
1203
- }
1204
- return false;
1205
- }
1206
-
1207
- /**
1208
- * A specialized version of `baseIsEqualDeep` for objects with support for
1209
- * partial deep comparisons.
1210
- *
1211
- * @private
1212
- * @param {Object} object The object to compare.
1213
- * @param {Object} other The other object to compare.
1214
- * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
1215
- * @param {Function} customizer The function to customize comparisons.
1216
- * @param {Function} equalFunc The function to determine equivalents of values.
1217
- * @param {Object} stack Tracks traversed `object` and `other` objects.
1218
- * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
1219
- */
1220
- function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
1221
- var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
1222
- objProps = getAllKeys(object),
1223
- objLength = objProps.length,
1224
- othProps = getAllKeys(other),
1225
- othLength = othProps.length;
1226
-
1227
- if (objLength != othLength && !isPartial) {
1228
- return false;
1229
- }
1230
- var index = objLength;
1231
- while (index--) {
1232
- var key = objProps[index];
1233
- if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {
1234
- return false;
1235
- }
1236
- }
1237
- // Assume cyclic values are equal.
1238
- var stacked = stack.get(object);
1239
- if (stacked && stack.get(other)) {
1240
- return stacked == other;
1241
- }
1242
- var result = true;
1243
- stack.set(object, other);
1244
- stack.set(other, object);
1245
-
1246
- var skipCtor = isPartial;
1247
- while (++index < objLength) {
1248
- key = objProps[index];
1249
- var objValue = object[key],
1250
- othValue = other[key];
1251
-
1252
- if (customizer) {
1253
- var compared = isPartial
1254
- ? customizer(othValue, objValue, key, other, object, stack)
1255
- : customizer(objValue, othValue, key, object, other, stack);
1256
- }
1257
- // Recursively compare objects (susceptible to call stack limits).
1258
- if (!(compared === undefined
1259
- ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack))
1260
- : compared
1261
- )) {
1262
- result = false;
1263
- break;
1264
- }
1265
- skipCtor || (skipCtor = key == 'constructor');
1266
- }
1267
- if (result && !skipCtor) {
1268
- var objCtor = object.constructor,
1269
- othCtor = other.constructor;
1270
-
1271
- // Non `Object` object instances with different constructors are not equal.
1272
- if (objCtor != othCtor &&
1273
- ('constructor' in object && 'constructor' in other) &&
1274
- !(typeof objCtor == 'function' && objCtor instanceof objCtor &&
1275
- typeof othCtor == 'function' && othCtor instanceof othCtor)) {
1276
- result = false;
1277
- }
1278
- }
1279
- stack['delete'](object);
1280
- stack['delete'](other);
1281
- return result;
1282
- }
1283
-
1284
- /**
1285
- * Creates an array of own enumerable property names and symbols of `object`.
1286
- *
1287
- * @private
1288
- * @param {Object} object The object to query.
1289
- * @returns {Array} Returns the array of property names and symbols.
1290
- */
1291
- function getAllKeys(object) {
1292
- return baseGetAllKeys(object, keys, getSymbols);
1293
- }
1294
-
1295
- /**
1296
- * Gets the data for `map`.
1297
- *
1298
- * @private
1299
- * @param {Object} map The map to query.
1300
- * @param {string} key The reference key.
1301
- * @returns {*} Returns the map data.
1302
- */
1303
- function getMapData(map, key) {
1304
- var data = map.__data__;
1305
- return isKeyable(key)
1306
- ? data[typeof key == 'string' ? 'string' : 'hash']
1307
- : data.map;
1308
- }
1309
-
1310
- /**
1311
- * Gets the native function at `key` of `object`.
1312
- *
1313
- * @private
1314
- * @param {Object} object The object to query.
1315
- * @param {string} key The key of the method to get.
1316
- * @returns {*} Returns the function if it's native, else `undefined`.
1317
- */
1318
- function getNative(object, key) {
1319
- var value = getValue(object, key);
1320
- return baseIsNative(value) ? value : undefined;
1321
- }
1322
-
1323
- /**
1324
- * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
1325
- *
1326
- * @private
1327
- * @param {*} value The value to query.
1328
- * @returns {string} Returns the raw `toStringTag`.
1329
- */
1330
- function getRawTag(value) {
1331
- var isOwn = hasOwnProperty.call(value, symToStringTag),
1332
- tag = value[symToStringTag];
1333
-
1334
- try {
1335
- value[symToStringTag] = undefined;
1336
- var unmasked = true;
1337
- } catch (e) {}
1338
-
1339
- var result = nativeObjectToString.call(value);
1340
- if (unmasked) {
1341
- if (isOwn) {
1342
- value[symToStringTag] = tag;
1343
- } else {
1344
- delete value[symToStringTag];
1345
- }
1346
- }
1347
- return result;
1348
- }
1349
-
1350
- /**
1351
- * Creates an array of the own enumerable symbols of `object`.
1352
- *
1353
- * @private
1354
- * @param {Object} object The object to query.
1355
- * @returns {Array} Returns the array of symbols.
1356
- */
1357
- var getSymbols = !nativeGetSymbols ? stubArray : function(object) {
1358
- if (object == null) {
1359
- return [];
1360
- }
1361
- object = Object(object);
1362
- return arrayFilter(nativeGetSymbols(object), function(symbol) {
1363
- return propertyIsEnumerable.call(object, symbol);
1364
- });
1365
- };
1366
-
1367
- /**
1368
- * Gets the `toStringTag` of `value`.
1369
- *
1370
- * @private
1371
- * @param {*} value The value to query.
1372
- * @returns {string} Returns the `toStringTag`.
1373
- */
1374
- var getTag = baseGetTag;
1375
-
1376
- // Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.
1377
- if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||
1378
- (Map && getTag(new Map) != mapTag) ||
1379
- (Promise && getTag(Promise.resolve()) != promiseTag) ||
1380
- (Set && getTag(new Set) != setTag) ||
1381
- (WeakMap && getTag(new WeakMap) != weakMapTag)) {
1382
- getTag = function(value) {
1383
- var result = baseGetTag(value),
1384
- Ctor = result == objectTag ? value.constructor : undefined,
1385
- ctorString = Ctor ? toSource(Ctor) : '';
1386
-
1387
- if (ctorString) {
1388
- switch (ctorString) {
1389
- case dataViewCtorString: return dataViewTag;
1390
- case mapCtorString: return mapTag;
1391
- case promiseCtorString: return promiseTag;
1392
- case setCtorString: return setTag;
1393
- case weakMapCtorString: return weakMapTag;
1394
- }
1395
- }
1396
- return result;
1397
- };
1398
- }
1399
-
1400
- /**
1401
- * Checks if `value` is a valid array-like index.
1402
- *
1403
- * @private
1404
- * @param {*} value The value to check.
1405
- * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
1406
- * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
1407
- */
1408
- function isIndex(value, length) {
1409
- length = length == null ? MAX_SAFE_INTEGER : length;
1410
- return !!length &&
1411
- (typeof value == 'number' || reIsUint.test(value)) &&
1412
- (value > -1 && value % 1 == 0 && value < length);
1413
- }
1414
-
1415
- /**
1416
- * Checks if `value` is suitable for use as unique object key.
1417
- *
1418
- * @private
1419
- * @param {*} value The value to check.
1420
- * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
1421
- */
1422
- function isKeyable(value) {
1423
- var type = typeof value;
1424
- return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
1425
- ? (value !== '__proto__')
1426
- : (value === null);
1427
- }
1428
-
1429
- /**
1430
- * Checks if `func` has its source masked.
1431
- *
1432
- * @private
1433
- * @param {Function} func The function to check.
1434
- * @returns {boolean} Returns `true` if `func` is masked, else `false`.
1435
- */
1436
- function isMasked(func) {
1437
- return !!maskSrcKey && (maskSrcKey in func);
1438
- }
1439
-
1440
- /**
1441
- * Checks if `value` is likely a prototype object.
1442
- *
1443
- * @private
1444
- * @param {*} value The value to check.
1445
- * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
1446
- */
1447
- function isPrototype(value) {
1448
- var Ctor = value && value.constructor,
1449
- proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;
1450
-
1451
- return value === proto;
1452
- }
1453
-
1454
- /**
1455
- * Converts `value` to a string using `Object.prototype.toString`.
1456
- *
1457
- * @private
1458
- * @param {*} value The value to convert.
1459
- * @returns {string} Returns the converted string.
1460
- */
1461
- function objectToString(value) {
1462
- return nativeObjectToString.call(value);
1463
- }
1464
-
1465
- /**
1466
- * Converts `func` to its source code.
1467
- *
1468
- * @private
1469
- * @param {Function} func The function to convert.
1470
- * @returns {string} Returns the source code.
1471
- */
1472
- function toSource(func) {
1473
- if (func != null) {
1474
- try {
1475
- return funcToString.call(func);
1476
- } catch (e) {}
1477
- try {
1478
- return (func + '');
1479
- } catch (e) {}
1480
- }
1481
- return '';
1482
- }
1483
-
1484
- /**
1485
- * Performs a
1486
- * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
1487
- * comparison between two values to determine if they are equivalent.
1488
- *
1489
- * @static
1490
- * @memberOf _
1491
- * @since 4.0.0
1492
- * @category Lang
1493
- * @param {*} value The value to compare.
1494
- * @param {*} other The other value to compare.
1495
- * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
1496
- * @example
1497
- *
1498
- * var object = { 'a': 1 };
1499
- * var other = { 'a': 1 };
1500
- *
1501
- * _.eq(object, object);
1502
- * // => true
1503
- *
1504
- * _.eq(object, other);
1505
- * // => false
1506
- *
1507
- * _.eq('a', 'a');
1508
- * // => true
1509
- *
1510
- * _.eq('a', Object('a'));
1511
- * // => false
1512
- *
1513
- * _.eq(NaN, NaN);
1514
- * // => true
1515
- */
1516
- function eq(value, other) {
1517
- return value === other || (value !== value && other !== other);
1518
- }
1519
-
1520
- /**
1521
- * Checks if `value` is likely an `arguments` object.
1522
- *
1523
- * @static
1524
- * @memberOf _
1525
- * @since 0.1.0
1526
- * @category Lang
1527
- * @param {*} value The value to check.
1528
- * @returns {boolean} Returns `true` if `value` is an `arguments` object,
1529
- * else `false`.
1530
- * @example
1531
- *
1532
- * _.isArguments(function() { return arguments; }());
1533
- * // => true
1534
- *
1535
- * _.isArguments([1, 2, 3]);
1536
- * // => false
1537
- */
1538
- var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {
1539
- return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&
1540
- !propertyIsEnumerable.call(value, 'callee');
1541
- };
1542
-
1543
- /**
1544
- * Checks if `value` is classified as an `Array` object.
1545
- *
1546
- * @static
1547
- * @memberOf _
1548
- * @since 0.1.0
1549
- * @category Lang
1550
- * @param {*} value The value to check.
1551
- * @returns {boolean} Returns `true` if `value` is an array, else `false`.
1552
- * @example
1553
- *
1554
- * _.isArray([1, 2, 3]);
1555
- * // => true
1556
- *
1557
- * _.isArray(document.body.children);
1558
- * // => false
1559
- *
1560
- * _.isArray('abc');
1561
- * // => false
1562
- *
1563
- * _.isArray(_.noop);
1564
- * // => false
1565
- */
1566
- var isArray = Array.isArray;
1567
-
1568
- /**
1569
- * Checks if `value` is array-like. A value is considered array-like if it's
1570
- * not a function and has a `value.length` that's an integer greater than or
1571
- * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
1572
- *
1573
- * @static
1574
- * @memberOf _
1575
- * @since 4.0.0
1576
- * @category Lang
1577
- * @param {*} value The value to check.
1578
- * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
1579
- * @example
1580
- *
1581
- * _.isArrayLike([1, 2, 3]);
1582
- * // => true
1583
- *
1584
- * _.isArrayLike(document.body.children);
1585
- * // => true
1586
- *
1587
- * _.isArrayLike('abc');
1588
- * // => true
1589
- *
1590
- * _.isArrayLike(_.noop);
1591
- * // => false
1592
- */
1593
- function isArrayLike(value) {
1594
- return value != null && isLength(value.length) && !isFunction(value);
1595
- }
1596
-
1597
- /**
1598
- * Checks if `value` is a buffer.
1599
- *
1600
- * @static
1601
- * @memberOf _
1602
- * @since 4.3.0
1603
- * @category Lang
1604
- * @param {*} value The value to check.
1605
- * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
1606
- * @example
1607
- *
1608
- * _.isBuffer(new Buffer(2));
1609
- * // => true
1610
- *
1611
- * _.isBuffer(new Uint8Array(2));
1612
- * // => false
1613
- */
1614
- var isBuffer = nativeIsBuffer || stubFalse;
1615
-
1616
- /**
1617
- * Performs a deep comparison between two values to determine if they are
1618
- * equivalent.
1619
- *
1620
- * **Note:** This method supports comparing arrays, array buffers, booleans,
1621
- * date objects, error objects, maps, numbers, `Object` objects, regexes,
1622
- * sets, strings, symbols, and typed arrays. `Object` objects are compared
1623
- * by their own, not inherited, enumerable properties. Functions and DOM
1624
- * nodes are compared by strict equality, i.e. `===`.
1625
- *
1626
- * @static
1627
- * @memberOf _
1628
- * @since 0.1.0
1629
- * @category Lang
1630
- * @param {*} value The value to compare.
1631
- * @param {*} other The other value to compare.
1632
- * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
1633
- * @example
1634
- *
1635
- * var object = { 'a': 1 };
1636
- * var other = { 'a': 1 };
1637
- *
1638
- * _.isEqual(object, other);
1639
- * // => true
1640
- *
1641
- * object === other;
1642
- * // => false
1643
- */
1644
- function isEqual(value, other) {
1645
- return baseIsEqual(value, other);
1646
- }
1647
-
1648
- /**
1649
- * Checks if `value` is classified as a `Function` object.
1650
- *
1651
- * @static
1652
- * @memberOf _
1653
- * @since 0.1.0
1654
- * @category Lang
1655
- * @param {*} value The value to check.
1656
- * @returns {boolean} Returns `true` if `value` is a function, else `false`.
1657
- * @example
1658
- *
1659
- * _.isFunction(_);
1660
- * // => true
1661
- *
1662
- * _.isFunction(/abc/);
1663
- * // => false
1664
- */
1665
- function isFunction(value) {
1666
- if (!isObject(value)) {
1667
- return false;
1668
- }
1669
- // The use of `Object#toString` avoids issues with the `typeof` operator
1670
- // in Safari 9 which returns 'object' for typed arrays and other constructors.
1671
- var tag = baseGetTag(value);
1672
- return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
1673
- }
1674
-
1675
- /**
1676
- * Checks if `value` is a valid array-like length.
1677
- *
1678
- * **Note:** This method is loosely based on
1679
- * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
1680
- *
1681
- * @static
1682
- * @memberOf _
1683
- * @since 4.0.0
1684
- * @category Lang
1685
- * @param {*} value The value to check.
1686
- * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
1687
- * @example
1688
- *
1689
- * _.isLength(3);
1690
- * // => true
1691
- *
1692
- * _.isLength(Number.MIN_VALUE);
1693
- * // => false
1694
- *
1695
- * _.isLength(Infinity);
1696
- * // => false
1697
- *
1698
- * _.isLength('3');
1699
- * // => false
1700
- */
1701
- function isLength(value) {
1702
- return typeof value == 'number' &&
1703
- value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
1704
- }
1705
-
1706
- /**
1707
- * Checks if `value` is the
1708
- * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
1709
- * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
1710
- *
1711
- * @static
1712
- * @memberOf _
1713
- * @since 0.1.0
1714
- * @category Lang
1715
- * @param {*} value The value to check.
1716
- * @returns {boolean} Returns `true` if `value` is an object, else `false`.
1717
- * @example
1718
- *
1719
- * _.isObject({});
1720
- * // => true
1721
- *
1722
- * _.isObject([1, 2, 3]);
1723
- * // => true
1724
- *
1725
- * _.isObject(_.noop);
1726
- * // => true
1727
- *
1728
- * _.isObject(null);
1729
- * // => false
1730
- */
1731
- function isObject(value) {
1732
- var type = typeof value;
1733
- return value != null && (type == 'object' || type == 'function');
1734
- }
1735
-
1736
- /**
1737
- * Checks if `value` is object-like. A value is object-like if it's not `null`
1738
- * and has a `typeof` result of "object".
1739
- *
1740
- * @static
1741
- * @memberOf _
1742
- * @since 4.0.0
1743
- * @category Lang
1744
- * @param {*} value The value to check.
1745
- * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
1746
- * @example
1747
- *
1748
- * _.isObjectLike({});
1749
- * // => true
1750
- *
1751
- * _.isObjectLike([1, 2, 3]);
1752
- * // => true
1753
- *
1754
- * _.isObjectLike(_.noop);
1755
- * // => false
1756
- *
1757
- * _.isObjectLike(null);
1758
- * // => false
1759
- */
1760
- function isObjectLike(value) {
1761
- return value != null && typeof value == 'object';
1762
- }
1763
-
1764
- /**
1765
- * Checks if `value` is classified as a typed array.
1766
- *
1767
- * @static
1768
- * @memberOf _
1769
- * @since 3.0.0
1770
- * @category Lang
1771
- * @param {*} value The value to check.
1772
- * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
1773
- * @example
1774
- *
1775
- * _.isTypedArray(new Uint8Array);
1776
- * // => true
1777
- *
1778
- * _.isTypedArray([]);
1779
- * // => false
1780
- */
1781
- var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
1782
-
1783
- /**
1784
- * Creates an array of the own enumerable property names of `object`.
1785
- *
1786
- * **Note:** Non-object values are coerced to objects. See the
1787
- * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
1788
- * for more details.
1789
- *
1790
- * @static
1791
- * @since 0.1.0
1792
- * @memberOf _
1793
- * @category Object
1794
- * @param {Object} object The object to query.
1795
- * @returns {Array} Returns the array of property names.
1796
- * @example
1797
- *
1798
- * function Foo() {
1799
- * this.a = 1;
1800
- * this.b = 2;
1801
- * }
1802
- *
1803
- * Foo.prototype.c = 3;
1804
- *
1805
- * _.keys(new Foo);
1806
- * // => ['a', 'b'] (iteration order is not guaranteed)
1807
- *
1808
- * _.keys('hi');
1809
- * // => ['0', '1']
1810
- */
1811
- function keys(object) {
1812
- return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
1813
- }
1814
-
1815
- /**
1816
- * This method returns a new empty array.
1817
- *
1818
- * @static
1819
- * @memberOf _
1820
- * @since 4.13.0
1821
- * @category Util
1822
- * @returns {Array} Returns the new empty array.
1823
- * @example
1824
- *
1825
- * var arrays = _.times(2, _.stubArray);
1826
- *
1827
- * console.log(arrays);
1828
- * // => [[], []]
1829
- *
1830
- * console.log(arrays[0] === arrays[1]);
1831
- * // => false
1832
- */
1833
- function stubArray() {
1834
- return [];
1835
- }
1836
-
1837
- /**
1838
- * This method returns `false`.
1839
- *
1840
- * @static
1841
- * @memberOf _
1842
- * @since 4.13.0
1843
- * @category Util
1844
- * @returns {boolean} Returns `false`.
1845
- * @example
1846
- *
1847
- * _.times(2, _.stubFalse);
1848
- * // => [false, false]
1849
- */
1850
- function stubFalse() {
1851
- return false;
1852
- }
1853
-
1854
- module.exports = isEqual;
1855
- }(lodash_isequal, lodash_isequal.exports));
1856
-
1857
- const isEqual = lodash_isequal.exports;
2
+ import { i as isEqual } from './index4.js';
1858
3
 
1859
4
  /**
1860
5
  * Returns `true` if the arrays are equal