PageRenderTime 26ms CodeModel.GetById 18ms RepoModel.GetById 1ms app.codeStats 0ms

/server/webapp/bower_components/lodash/dist/mapping.fp.js

https://gitlab.com/hepia-projects/connected-four
JavaScript | 424 lines | 365 code | 30 blank | 29 comment | 11 complexity | a6a75a4e09df8c368b9828e66ae04218 MD5 | raw file
  1. (function webpackUniversalModuleDefinition(root, factory) {
  2. if(typeof exports === 'object' && typeof module === 'object')
  3. module.exports = factory();
  4. else if(typeof define === 'function' && define.amd)
  5. define([], factory);
  6. else if(typeof exports === 'object')
  7. exports["mapping"] = factory();
  8. else
  9. root["mapping"] = factory();
  10. })(this, function() {
  11. return /******/ (function(modules) { // webpackBootstrap
  12. /******/ // The module cache
  13. /******/ var installedModules = {};
  14. /******/ // The require function
  15. /******/ function __webpack_require__(moduleId) {
  16. /******/ // Check if module is in cache
  17. /******/ if(installedModules[moduleId])
  18. /******/ return installedModules[moduleId].exports;
  19. /******/ // Create a new module (and put it into the cache)
  20. /******/ var module = installedModules[moduleId] = {
  21. /******/ exports: {},
  22. /******/ id: moduleId,
  23. /******/ loaded: false
  24. /******/ };
  25. /******/ // Execute the module function
  26. /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
  27. /******/ // Flag the module as loaded
  28. /******/ module.loaded = true;
  29. /******/ // Return the exports of the module
  30. /******/ return module.exports;
  31. /******/ }
  32. /******/ // expose the modules object (__webpack_modules__)
  33. /******/ __webpack_require__.m = modules;
  34. /******/ // expose the module cache
  35. /******/ __webpack_require__.c = installedModules;
  36. /******/ // __webpack_public_path__
  37. /******/ __webpack_require__.p = "";
  38. /******/ // Load entry module and return exports
  39. /******/ return __webpack_require__(0);
  40. /******/ })
  41. /************************************************************************/
  42. /******/ ([
  43. /* 0 */
  44. /***/ function(module, exports) {
  45. /** Used to map aliases to their real names. */
  46. exports.aliasToReal = {
  47. // Lodash aliases.
  48. 'each': 'forEach',
  49. 'eachRight': 'forEachRight',
  50. 'entries': 'toPairs',
  51. 'entriesIn': 'toPairsIn',
  52. 'extend': 'assignIn',
  53. 'extendAll': 'assignInAll',
  54. 'extendAllWith': 'assignInAllWith',
  55. 'extendWith': 'assignInWith',
  56. 'first': 'head',
  57. // Methods that are curried variants of others.
  58. 'conforms': 'conformsTo',
  59. 'matches': 'isMatch',
  60. 'property': 'get',
  61. // Ramda aliases.
  62. '__': 'placeholder',
  63. 'F': 'stubFalse',
  64. 'T': 'stubTrue',
  65. 'all': 'every',
  66. 'allPass': 'overEvery',
  67. 'always': 'constant',
  68. 'any': 'some',
  69. 'anyPass': 'overSome',
  70. 'apply': 'spread',
  71. 'assoc': 'set',
  72. 'assocPath': 'set',
  73. 'complement': 'negate',
  74. 'compose': 'flowRight',
  75. 'contains': 'includes',
  76. 'dissoc': 'unset',
  77. 'dissocPath': 'unset',
  78. 'dropLast': 'dropRight',
  79. 'dropLastWhile': 'dropRightWhile',
  80. 'equals': 'isEqual',
  81. 'identical': 'eq',
  82. 'indexBy': 'keyBy',
  83. 'init': 'initial',
  84. 'invertObj': 'invert',
  85. 'juxt': 'over',
  86. 'omitAll': 'omit',
  87. 'nAry': 'ary',
  88. 'path': 'get',
  89. 'pathEq': 'matchesProperty',
  90. 'pathOr': 'getOr',
  91. 'paths': 'at',
  92. 'pickAll': 'pick',
  93. 'pipe': 'flow',
  94. 'pluck': 'map',
  95. 'prop': 'get',
  96. 'propEq': 'matchesProperty',
  97. 'propOr': 'getOr',
  98. 'props': 'at',
  99. 'symmetricDifference': 'xor',
  100. 'symmetricDifferenceBy': 'xorBy',
  101. 'symmetricDifferenceWith': 'xorWith',
  102. 'takeLast': 'takeRight',
  103. 'takeLastWhile': 'takeRightWhile',
  104. 'unapply': 'rest',
  105. 'unnest': 'flatten',
  106. 'useWith': 'overArgs',
  107. 'where': 'conformsTo',
  108. 'whereEq': 'isMatch',
  109. 'zipObj': 'zipObject'
  110. };
  111. /** Used to map ary to method names. */
  112. exports.aryMethod = {
  113. '1': [
  114. 'assignAll', 'assignInAll', 'attempt', 'castArray', 'ceil', 'create',
  115. 'curry', 'curryRight', 'defaultsAll', 'defaultsDeepAll', 'floor', 'flow',
  116. 'flowRight', 'fromPairs', 'invert', 'iteratee', 'memoize', 'method', 'mergeAll',
  117. 'methodOf', 'mixin', 'nthArg', 'over', 'overEvery', 'overSome','rest', 'reverse',
  118. 'round', 'runInContext', 'spread', 'template', 'trim', 'trimEnd', 'trimStart',
  119. 'uniqueId', 'words', 'zipAll'
  120. ],
  121. '2': [
  122. 'add', 'after', 'ary', 'assign', 'assignAllWith', 'assignIn', 'assignInAllWith',
  123. 'at', 'before', 'bind', 'bindAll', 'bindKey', 'chunk', 'cloneDeepWith',
  124. 'cloneWith', 'concat', 'conformsTo', 'countBy', 'curryN', 'curryRightN',
  125. 'debounce', 'defaults', 'defaultsDeep', 'defaultTo', 'delay', 'difference',
  126. 'divide', 'drop', 'dropRight', 'dropRightWhile', 'dropWhile', 'endsWith', 'eq',
  127. 'every', 'filter', 'find', 'findIndex', 'findKey', 'findLast', 'findLastIndex',
  128. 'findLastKey', 'flatMap', 'flatMapDeep', 'flattenDepth', 'forEach',
  129. 'forEachRight', 'forIn', 'forInRight', 'forOwn', 'forOwnRight', 'get',
  130. 'groupBy', 'gt', 'gte', 'has', 'hasIn', 'includes', 'indexOf', 'intersection',
  131. 'invertBy', 'invoke', 'invokeMap', 'isEqual', 'isMatch', 'join', 'keyBy',
  132. 'lastIndexOf', 'lt', 'lte', 'map', 'mapKeys', 'mapValues', 'matchesProperty',
  133. 'maxBy', 'meanBy', 'merge', 'mergeAllWith', 'minBy', 'multiply', 'nth', 'omit',
  134. 'omitBy', 'overArgs', 'pad', 'padEnd', 'padStart', 'parseInt', 'partial',
  135. 'partialRight', 'partition', 'pick', 'pickBy', 'propertyOf', 'pull', 'pullAll',
  136. 'pullAt', 'random', 'range', 'rangeRight', 'rearg', 'reject', 'remove',
  137. 'repeat', 'restFrom', 'result', 'sampleSize', 'some', 'sortBy', 'sortedIndex',
  138. 'sortedIndexOf', 'sortedLastIndex', 'sortedLastIndexOf', 'sortedUniqBy',
  139. 'split', 'spreadFrom', 'startsWith', 'subtract', 'sumBy', 'take', 'takeRight',
  140. 'takeRightWhile', 'takeWhile', 'tap', 'throttle', 'thru', 'times', 'trimChars',
  141. 'trimCharsEnd', 'trimCharsStart', 'truncate', 'union', 'uniqBy', 'uniqWith',
  142. 'unset', 'unzipWith', 'without', 'wrap', 'xor', 'zip', 'zipObject',
  143. 'zipObjectDeep'
  144. ],
  145. '3': [
  146. 'assignInWith', 'assignWith', 'clamp', 'differenceBy', 'differenceWith',
  147. 'findFrom', 'findIndexFrom', 'findLastFrom', 'findLastIndexFrom', 'getOr',
  148. 'includesFrom', 'indexOfFrom', 'inRange', 'intersectionBy', 'intersectionWith',
  149. 'invokeArgs', 'invokeArgsMap', 'isEqualWith', 'isMatchWith', 'flatMapDepth',
  150. 'lastIndexOfFrom', 'mergeWith', 'orderBy', 'padChars', 'padCharsEnd',
  151. 'padCharsStart', 'pullAllBy', 'pullAllWith', 'reduce', 'reduceRight', 'replace',
  152. 'set', 'slice', 'sortedIndexBy', 'sortedLastIndexBy', 'transform', 'unionBy',
  153. 'unionWith', 'update', 'xorBy', 'xorWith', 'zipWith'
  154. ],
  155. '4': [
  156. 'fill', 'setWith', 'updateWith'
  157. ]
  158. };
  159. /** Used to map ary to rearg configs. */
  160. exports.aryRearg = {
  161. '2': [1, 0],
  162. '3': [2, 0, 1],
  163. '4': [3, 2, 0, 1]
  164. };
  165. /** Used to map method names to their iteratee ary. */
  166. exports.iterateeAry = {
  167. 'dropRightWhile': 1,
  168. 'dropWhile': 1,
  169. 'every': 1,
  170. 'filter': 1,
  171. 'find': 1,
  172. 'findFrom': 1,
  173. 'findIndex': 1,
  174. 'findIndexFrom': 1,
  175. 'findKey': 1,
  176. 'findLast': 1,
  177. 'findLastFrom': 1,
  178. 'findLastIndex': 1,
  179. 'findLastIndexFrom': 1,
  180. 'findLastKey': 1,
  181. 'flatMap': 1,
  182. 'flatMapDeep': 1,
  183. 'flatMapDepth': 1,
  184. 'forEach': 1,
  185. 'forEachRight': 1,
  186. 'forIn': 1,
  187. 'forInRight': 1,
  188. 'forOwn': 1,
  189. 'forOwnRight': 1,
  190. 'map': 1,
  191. 'mapKeys': 1,
  192. 'mapValues': 1,
  193. 'partition': 1,
  194. 'reduce': 2,
  195. 'reduceRight': 2,
  196. 'reject': 1,
  197. 'remove': 1,
  198. 'some': 1,
  199. 'takeRightWhile': 1,
  200. 'takeWhile': 1,
  201. 'times': 1,
  202. 'transform': 2
  203. };
  204. /** Used to map method names to iteratee rearg configs. */
  205. exports.iterateeRearg = {
  206. 'mapKeys': [1]
  207. };
  208. /** Used to map method names to rearg configs. */
  209. exports.methodRearg = {
  210. 'assignInAllWith': [1, 2, 0],
  211. 'assignInWith': [1, 2, 0],
  212. 'assignAllWith': [1, 2, 0],
  213. 'assignWith': [1, 2, 0],
  214. 'differenceBy': [1, 2, 0],
  215. 'differenceWith': [1, 2, 0],
  216. 'getOr': [2, 1, 0],
  217. 'intersectionBy': [1, 2, 0],
  218. 'intersectionWith': [1, 2, 0],
  219. 'isEqualWith': [1, 2, 0],
  220. 'isMatchWith': [2, 1, 0],
  221. 'mergeAllWith': [1, 2, 0],
  222. 'mergeWith': [1, 2, 0],
  223. 'padChars': [2, 1, 0],
  224. 'padCharsEnd': [2, 1, 0],
  225. 'padCharsStart': [2, 1, 0],
  226. 'pullAllBy': [2, 1, 0],
  227. 'pullAllWith': [2, 1, 0],
  228. 'setWith': [3, 1, 2, 0],
  229. 'sortedIndexBy': [2, 1, 0],
  230. 'sortedLastIndexBy': [2, 1, 0],
  231. 'unionBy': [1, 2, 0],
  232. 'unionWith': [1, 2, 0],
  233. 'updateWith': [3, 1, 2, 0],
  234. 'xorBy': [1, 2, 0],
  235. 'xorWith': [1, 2, 0],
  236. 'zipWith': [1, 2, 0]
  237. };
  238. /** Used to map method names to spread configs. */
  239. exports.methodSpread = {
  240. 'assignAll': { 'start': 0 },
  241. 'assignAllWith': { 'afterRearg': true, 'start': 1 },
  242. 'assignInAll': { 'start': 0 },
  243. 'assignInAllWith': { 'afterRearg': true, 'start': 1 },
  244. 'defaultsAll': { 'start': 0 },
  245. 'defaultsDeepAll': { 'start': 0 },
  246. 'invokeArgs': { 'start': 2 },
  247. 'invokeArgsMap': { 'start': 2 },
  248. 'mergeAll': { 'start': 0 },
  249. 'mergeAllWith': { 'afterRearg': true, 'start': 1 },
  250. 'partial': { 'start': 1 },
  251. 'partialRight': { 'start': 1 },
  252. 'without': { 'start': 1 },
  253. 'zipAll': { 'start': 0 }
  254. };
  255. /** Used to identify methods which mutate arrays or objects. */
  256. exports.mutate = {
  257. 'array': {
  258. 'fill': true,
  259. 'pull': true,
  260. 'pullAll': true,
  261. 'pullAllBy': true,
  262. 'pullAllWith': true,
  263. 'pullAt': true,
  264. 'remove': true,
  265. 'reverse': true
  266. },
  267. 'object': {
  268. 'assign': true,
  269. 'assignAll': true,
  270. 'assignAllWith': true,
  271. 'assignIn': true,
  272. 'assignInAll': true,
  273. 'assignInAllWith': true,
  274. 'assignInWith': true,
  275. 'assignWith': true,
  276. 'defaults': true,
  277. 'defaultsAll': true,
  278. 'defaultsDeep': true,
  279. 'defaultsDeepAll': true,
  280. 'merge': true,
  281. 'mergeAll': true,
  282. 'mergeAllWith': true,
  283. 'mergeWith': true,
  284. },
  285. 'set': {
  286. 'set': true,
  287. 'setWith': true,
  288. 'unset': true,
  289. 'update': true,
  290. 'updateWith': true
  291. }
  292. };
  293. /** Used to track methods with placeholder support */
  294. exports.placeholder = {
  295. 'bind': true,
  296. 'bindKey': true,
  297. 'curry': true,
  298. 'curryRight': true,
  299. 'partial': true,
  300. 'partialRight': true
  301. };
  302. /** Used to map real names to their aliases. */
  303. exports.realToAlias = (function() {
  304. var hasOwnProperty = Object.prototype.hasOwnProperty,
  305. object = exports.aliasToReal,
  306. result = {};
  307. for (var key in object) {
  308. var value = object[key];
  309. if (hasOwnProperty.call(result, value)) {
  310. result[value].push(key);
  311. } else {
  312. result[value] = [key];
  313. }
  314. }
  315. return result;
  316. }());
  317. /** Used to map method names to other names. */
  318. exports.remap = {
  319. 'assignAll': 'assign',
  320. 'assignAllWith': 'assignWith',
  321. 'assignInAll': 'assignIn',
  322. 'assignInAllWith': 'assignInWith',
  323. 'curryN': 'curry',
  324. 'curryRightN': 'curryRight',
  325. 'defaultsAll': 'defaults',
  326. 'defaultsDeepAll': 'defaultsDeep',
  327. 'findFrom': 'find',
  328. 'findIndexFrom': 'findIndex',
  329. 'findLastFrom': 'findLast',
  330. 'findLastIndexFrom': 'findLastIndex',
  331. 'getOr': 'get',
  332. 'includesFrom': 'includes',
  333. 'indexOfFrom': 'indexOf',
  334. 'invokeArgs': 'invoke',
  335. 'invokeArgsMap': 'invokeMap',
  336. 'lastIndexOfFrom': 'lastIndexOf',
  337. 'mergeAll': 'merge',
  338. 'mergeAllWith': 'mergeWith',
  339. 'padChars': 'pad',
  340. 'padCharsEnd': 'padEnd',
  341. 'padCharsStart': 'padStart',
  342. 'propertyOf': 'get',
  343. 'restFrom': 'rest',
  344. 'spreadFrom': 'spread',
  345. 'trimChars': 'trim',
  346. 'trimCharsEnd': 'trimEnd',
  347. 'trimCharsStart': 'trimStart',
  348. 'zipAll': 'zip'
  349. };
  350. /** Used to track methods that skip fixing their arity. */
  351. exports.skipFixed = {
  352. 'castArray': true,
  353. 'flow': true,
  354. 'flowRight': true,
  355. 'iteratee': true,
  356. 'mixin': true,
  357. 'rearg': true,
  358. 'runInContext': true
  359. };
  360. /** Used to track methods that skip rearranging arguments. */
  361. exports.skipRearg = {
  362. 'add': true,
  363. 'assign': true,
  364. 'assignIn': true,
  365. 'bind': true,
  366. 'bindKey': true,
  367. 'concat': true,
  368. 'difference': true,
  369. 'divide': true,
  370. 'eq': true,
  371. 'gt': true,
  372. 'gte': true,
  373. 'isEqual': true,
  374. 'lt': true,
  375. 'lte': true,
  376. 'matchesProperty': true,
  377. 'merge': true,
  378. 'multiply': true,
  379. 'overArgs': true,
  380. 'partial': true,
  381. 'partialRight': true,
  382. 'propertyOf': true,
  383. 'random': true,
  384. 'range': true,
  385. 'rangeRight': true,
  386. 'subtract': true,
  387. 'zip': true,
  388. 'zipObject': true,
  389. 'zipObjectDeep': true
  390. };
  391. /***/ }
  392. /******/ ])
  393. });
  394. ;