icon octicon-file-text"> _createBind.js 30f7226d9a first commit лет назад: 2 _createCaseFirst.js 30f7226d9a first commit лет назад: 2 _createCompounder.js 30f7226d9a first commit лет назад: 2 _createCtor.js 30f7226d9a first commit лет назад: 2 _createCurry.js 30f7226d9a first commit лет назад: 2 _createFind.js 30f7226d9a first commit лет назад: 2 _createFlow.js 30f7226d9a first commit лет назад: 2 _createHybrid.js 30f7226d9a first commit лет назад: 2 _createInverter.js 30f7226d9a first commit лет назад: 2 _createMathOperation.js 30f7226d9a first commit лет назад: 2 _createOver.js 30f7226d9a first commit лет назад: 2 _createPadding.js 30f7226d9a first commit лет назад: 2 _createPartial.js 30f7226d9a first commit лет назад: 2 _createRange.js 30f7226d9a first commit лет назад: 2 _createRecurry.js 30f7226d9a first commit лет назад: 2 _createRelationalOperation.js 30f7226d9a first commit лет назад: 2 _createRound.js 30f7226d9a first commit лет назад: 2 _createSet.js 30f7226d9a first commit лет назад: 2 _createToPairs.js 30f7226d9a first commit лет назад: 2 _createWrap.js 30f7226d9a first commit лет назад: 2 _customDefaultsAssignIn.js 30f7226d9a first commit лет назад: 2 _customDefaultsMerge.js 30f7226d9a first commit лет назад: 2 _customOmitClone.js 30f7226d9a first commit лет назад: 2 _deburrLetter.js 30f7226d9a first commit лет назад: 2 _defineProperty.js 30f7226d9a first commit лет назад: 2 _equalArrays.js 30f7226d9a first commit лет назад: 2 _equalByTag.js 30f7226d9a first commit лет назад: 2 _equalObjects.js 30f7226d9a first commit лет назад: 2 _escapeHtmlChar.js 30f7226d9a first commit лет назад: 2 _escapeStringChar.js 30f7226d9a first commit лет назад: 2 _flatRest.js 30f7226d9a first commit лет назад: 2 _freeGlobal.js 30f7226d9a first commit лет назад: 2 _getAllKeys.js 30f7226d9a first commit лет назад: 2 _getAllKeysIn.js 30f7226d9a first commit лет назад: 2 _getData.js 30f7226d9a first commit лет назад: 2 _getFuncName.js 30f7226d9a first commit лет назад: 2 _getHolder.js 30f7226d9a first commit лет назад: 2 _getMapData.js 30f7226d9a first commit лет назад: 2 _getMatchData.js 30f7226d9a first commit лет назад: 2 _getNative.js 30f7226d9a first commit лет назад: 2 _getPrototype.js 30f7226d9a first commit лет назад: 2 _getRawTag.js 30f7226d9a first commit лет назад: 2 _getSymbols.js 30f7226d9a first commit лет назад: 2 _getSymbolsIn.js 30f7226d9a first commit лет назад: 2 _getTag.js 30f7226d9a first commit лет назад: 2 _getValue.js 30f7226d9a first commit лет назад: 2 _getView.js 30f7226d9a first commit лет назад: 2 _getWrapDetails.js 30f7226d9a first commit лет назад: 2 _hasPath.js 30f7226d9a first commit лет назад: 2 _hasUnicode.js 30f7226d9a first commit лет назад: 2 _hasUnicodeWord.js 30f7226d9a first commit лет назад: 2 _hashClear.js 30f7226d9a first commit лет назад: 2 _hashDelete.js 30f7226d9a first commit лет назад: 2 _hashGet.js 30f7226d9a first commit лет назад: 2 _hashHas.js 30f7226d9a first commit лет назад: 2 _hashSet.js 30f7226d9a first commit лет назад: 2 _initCloneArray.js 30f7226d9a first commit лет назад: 2 _initCloneByTag.js 30f7226d9a first commit лет назад: 2 _initCloneObject.js 30f7226d9a first commit лет назад: 2 _insertWrapDetails.js 30f7226d9a first commit лет назад: 2 _isFlattenable.js 30f7226d9a first commit лет назад: 2 _isIndex.js 30f7226d9a first commit лет назад: 2 _isIterateeCall.js 30f7226d9a first commit лет назад: 2 _isKey.js 30f7226d9a first commit лет назад: 2 _isKeyable.js 30f7226d9a first commit лет назад: 2 _isLaziable.js 30f7226d9a first commit лет назад: 2 _isMaskable.js 30f7226d9a first commit лет назад: 2 _isMasked.js 30f7226d9a first commit лет назад: 2 _isPrototype.js 30f7226d9a first commit лет назад: 2 _isStrictComparable.js 30f7226d9a first commit лет назад: 2 _iteratorToArray.js 30f7226d9a first commit лет назад: 2 _lazyClone.js 30f7226d9a first commit лет назад: 2 _lazyReverse.js 30f7226d9a first commit лет назад: 2 _lazyValue.js 30f7226d9a first commit лет назад: 2 _listCacheClear.js 30f7226d9a first commit лет назад: 2 _listCacheDelete.js 30f7226d9a first commit лет назад: 2 _listCacheGet.js 30f7226d9a first commit лет назад: 2 _listCacheHas.js 30f7226d9a first commit лет назад: 2 _listCacheSet.js 30f7226d9a first commit лет назад: 2 _mapCacheClear.js 30f7226d9a first commit лет назад: 2 _mapCacheDelete.js 30f7226d9a first commit лет назад: 2 _mapCacheGet.js 30f7226d9a first commit лет назад: 2 _mapCacheHas.js 30f7226d9a first commit лет назад: 2 _mapCacheSet.js 30f7226d9a first commit лет назад: 2 _mapToArray.js 30f7226d9a first commit лет назад: 2 _matchesStrictComparable.js 30f7226d9a first commit лет назад: 2 _memoizeCapped.js 30f7226d9a first commit лет назад: 2 _mergeData.js 30f7226d9a first commit лет назад: 2 _metaMap.js 30f7226d9a first commit лет назад: 2 _nativeCreate.js 30f7226d9a first commit лет назад: 2 _nativeKeys.js 30f7226d9a first commit лет назад: 2 _nativeKeysIn.js 30f7226d9a first commit лет назад: 2 _nodeUtil.js 30f7226d9a first commit лет назад: 2 _objectToString.js 30f7226d9a first commit лет назад: 2 _overArg.js 30f7226d9a first commit лет назад: 2 _overRest.js 30f7226d9a first commit лет назад: 2 _parent.js 30f7226d9a first commit лет назад: 2 _reEscape.js 30f7226d9a first commit лет назад: 2 _reEvaluate.js 30f7226d9a first commit лет назад: 2 _reInterpolate.js 30f7226d9a first commit лет назад: 2 _realNames.js 30f7226d9a first commit лет назад: 2 _reorder.js 30f7226d9a first commit лет назад: 2 _replaceHolders.js 30f7226d9a first commit лет назад: 2 _root.js 30f7226d9a first commit лет назад: 2 _safeGet.js 30f7226d9a first commit лет назад: 2 _setCacheAdd.js 30f7226d9a first commit лет назад: 2 _setCacheHas.js 30f7226d9a first commit лет назад: 2 _setData.js 30f7226d9a first commit лет назад: 2 _setToArray.js 30f7226d9a first commit лет назад: 2 _setToPairs.js 30f7226d9a first commit лет назад: 2 _setToString.js 30f7226d9a first commit лет назад: 2 _setWrapToString.js 30f7226d9a first commit лет назад: 2 _shortOut.js 30f7226d9a first commit лет назад: 2 _shuffleSelf.js 30f7226d9a first commit лет назад: 2 _stackClear.js 30f7226d9a first commit лет назад: 2 _stackDelete.js 30f7226d9a first commit лет назад: 2 _stackGet.js 30f7226d9a first commit лет назад: 2 _stackHas.js 30f7226d9a first commit лет назад: 2 _stackSet.js 30f7226d9a first commit лет назад: 2 _strictIndexOf.js 30f7226d9a first commit лет назад: 2 _strictLastIndexOf.js 30f7226d9a first commit лет назад: 2 _stringSize.js 30f7226d9a first commit лет назад: 2 _stringToArray.js 30f7226d9a first commit лет назад: 2 _stringToPath.js 30f7226d9a first commit лет назад: 2 _toKey.js 30f7226d9a first commit лет назад: 2 _toSource.js 30f7226d9a first commit лет назад: 2 _trimmedEndIndex.js 30f7226d9a first commit лет назад: 2 _unescapeHtmlChar.js 30f7226d9a first commit лет назад: 2 _unicodeSize.js 30f7226d9a first commit лет назад: 2 _unicodeToArray.js 30f7226d9a first commit лет назад: 2 _unicodeWords.js 30f7226d9a first commit лет назад: 2 _updateWrapDetails.js 30f7226d9a first commit лет назад: 2 _wrapperClone.js 30f7226d9a first commit лет назад: 2 add.js 30f7226d9a first commit лет назад: 2 after.js 30f7226d9a first commit лет назад: 2 array.js 30f7226d9a first commit лет назад: 2 ary.js 30f7226d9a first commit лет назад: 2 assign.js 30f7226d9a first commit лет назад: 2 assignIn.js 30f7226d9a first commit лет назад: 2 assignInWith.js 30f7226d9a first commit лет назад: 2 assignWith.js 30f7226d9a first commit лет назад: 2 at.js 30f7226d9a first commit лет назад: 2 attempt.js 30f7226d9a first commit лет назад: 2 before.js 30f7226d9a first commit лет назад: 2 bind.js 30f7226d9a first commit лет назад: 2 bindAll.js 30f7226d9a first commit лет назад: 2 bindKey.js 30f7226d9a first commit лет назад: 2 camelCase.js 30f7226d9a first commit лет назад: 2 capitalize.js 30f7226d9a first commit лет назад: 2 castArray.js 30f7226d9a first commit лет назад: 2 ceil.js 30f7226d9a first commit лет назад: 2 chain.js 30f7226d9a first commit лет назад: 2 chunk.js 30f7226d9a first commit лет назад: 2 clamp.js 30f7226d9a first commit лет назад: 2 clone.js 30f7226d9a first commit лет назад: 2 cloneDeep.js 30f7226d9a first commit лет назад: 2 cloneDeepWith.js 30f7226d9a first commit лет назад: 2 cloneWith.js 30f7226d9a first commit лет назад: 2 collection.js 30f7226d9a first commit лет назад: 2 commit.js 30f7226d9a first commit лет назад: 2 compact.js 30f7226d9a first commit лет назад: 2 concat.js 30f7226d9a first commit лет назад: 2 cond.js 30f7226d9a first commit лет назад: 2 conforms.js 30f7226d9a first commit лет назад: 2 conformsTo.js 30f7226d9a first commit лет назад: 2 constant.js 30f7226d9a first commit лет назад: 2 core.js 30f7226d9a first commit лет назад: 2 core.min.js 30f7226d9a first commit лет назад: 2 countBy.js 30f7226d9a first commit лет назад: 2 create.js 30f7226d9a first commit лет назад: 2 curry.js 30f7226d9a first commit лет назад: 2 curryRight.js 30f7226d9a first commit лет назад: 2 date.js 30f7226d9a first commit лет назад: 2 debounce.js 30f7226d9a first commit лет назад: 2 deburr.js 30f7226d9a first commit лет назад: 2 defaultTo.js 30f7226d9a first commit лет назад: 2 defaults.js 30f7226d9a first commit лет назад: 2 defaultsDeep.js 30f7226d9a first commit лет назад: 2 defer.js 30f7226d9a first commit лет назад: 2 delay.js 30f7226d9a first commit лет назад: 2 difference.js 30f7226d9a first commit лет назад: 2 differenceBy.js 30f7226d9a first commit лет назад: 2 differenceWith.js 30f7226d9a first commit лет назад: 2 divide.js 30f7226d9a first commit лет назад: 2 drop.js 30f7226d9a first commit лет назад: 2 dropRight.js 30f7226d9a first commit лет назад: 2 dropRightWhile.js 30f7226d9a first commit лет назад: 2 dropWhile.js 30f7226d9a first commit лет назад: 2 each.js 30f7226d9a first commit лет назад: 2 eachRight.js 30f7226d9a first commit лет назад: 2 endsWith.js 30f7226d9a first commit лет назад: 2 entries.js 30f7226d9a first commit лет назад: 2 entriesIn.js 30f7226d9a first commit лет назад: 2 eq.js 30f7226d9a first commit лет назад: 2 escape.js 30f7226d9a first commit лет назад: 2 escapeRegExp.js 30f7226d9a first commit лет назад: 2 every.js 30f7226d9a first commit лет назад: 2 extend.js 30f7226d9a first commit лет назад: 2 extendWith.js 30f7226d9a first commit лет назад: 2 fill.js 30f7226d9a first commit лет назад: 2 filter.js 30f7226d9a first commit лет назад: 2 find.js 30f7226d9a first commit лет назад: 2 findIndex.js 30f7226d9a first commit лет назад: 2 findKey.js 30f7226d9a first commit лет назад: 2 findLast.js 30f7226d9a first commit лет назад: 2 findLastIndex.js 30f7226d9a first commit лет назад: 2 findLastKey.js 30f7226d9a first commit лет назад: 2 first.js 30f7226d9a first commit лет назад: 2 flake.lock 30f7226d9a first commit лет назад: 2 flake.nix 30f7226d9a first commit лет назад: 2 flatMap.js 30f7226d9a first commit лет назад: 2 flatMapDeep.js 30f7226d9a first commit лет назад: 2 flatMapDepth.js 30f7226d9a first commit лет назад: 2 flatten.js 30f7226d9a first commit лет назад: 2 flattenDeep.js 30f7226d9a first commit лет назад: 2 flattenDepth.js 30f7226d9a first commit лет назад: 2 flip.js 30f7226d9a first commit лет назад: 2 floor.js 30f7226d9a first commit лет назад: 2 flow.js 30f7226d9a first commit лет назад: 2 flowRight.js 30f7226d9a first commit лет назад: 2 forEach.js 30f7226d9a first commit лет назад: 2 forEachRight.js 30f7226d9a first commit лет назад: 2 forIn.js 30f7226d9a first commit лет назад: 2 forInRight.js 30f7226d9a first commit лет назад: 2 forOwn.js 30f7226d9a first commit лет назад: 2 forOwnRight.js 30f7226d9a first commit лет назад: 2 fp.js 30f7226d9a first commit лет назад: 2 fromPairs.js 30f7226d9a first commit лет назад: 2 function.js 30f7226d9a first commit лет назад: 2 functions.js 30f7226d9a first commit лет назад: 2 functionsIn.js 30f7226d9a first commit лет назад: 2 get.js 30f7226d9a first commit лет назад: 2 groupBy.js 30f7226d9a first commit лет назад: 2 gt.js 30f7226d9a first commit лет назад: 2 gte.js 30f7226d9a first commit лет назад: 2 has.js 30f7226d9a first commit лет назад: 2 hasIn.js 30f7226d9a first commit лет назад: 2 head.js 30f7226d9a first commit лет назад: 2 identity.js 30f7226d9a first commit лет назад: 2 inRange.js 30f7226d9a first commit лет назад: 2 includes.js 30f7226d9a first commit лет назад: 2 index.js 30f7226d9a first commit лет назад: 2 indexOf.js 30f7226d9a first commit лет назад: 2 initial.js 30f7226d9a first commit лет назад: 2 intersection.js 30f7226d9a first commit лет назад: 2 intersectionBy.js 30f7226d9a first commit лет назад: 2 intersectionWith.js 30f7226d9a first commit лет назад: 2 invert.js 30f7226d9a first commit лет назад: 2 invertBy.js 30f7226d9a first commit лет назад: 2 invoke.js 30f7226d9a first commit лет назад: 2 invokeMap.js 30f7226d9a first commit лет назад: 2 isArguments.js 30f7226d9a first commit лет назад: 2 isArray.js 30f7226d9a first commit лет назад: 2 isArrayBuffer.js 30f7226d9a first commit лет назад: 2 isArrayLike.js 30f7226d9a first commit лет назад: 2 isArrayLikeObject.js 30f7226d9a first commit лет назад: 2 isBoolean.js 30f7226d9a first commit лет назад: 2 isBuffer.js 30f7226d9a first commit лет назад: 2 isDate.js 30f7226d9a first commit лет назад: 2 isElement.js 30f7226d9a first commit лет назад: 2 isEmpty.js 30f7226d9a first commit лет назад: 2 isEqual.js 30f7226d9a first commit лет назад: 2 isEqualWith.js 30f7226d9a first commit лет назад: 2 isError.js 30f7226d9a first commit лет назад: 2 isFinite.js 30f7226d9a first commit лет назад: 2 isFunction.js 30f7226d9a first commit лет назад: 2 isInteger.js 30f7226d9a first commit лет назад: 2 isLength.js 30f7226d9a first commit лет назад: 2 isMap.js 30f7226d9a first commit лет назад: 2 isMatch.js 30f7226d9a first commit лет назад: 2 isMatchWith.js 30f7226d9a first commit лет назад: 2 isNaN.js 30f7226d9a first commit лет назад: 2 isNative.js 30f7226d9a first commit лет назад: 2 isNil.js 30f7226d9a first commit лет назад: 2 isNull.js 30f7226d9a first commit лет назад: 2 isNumber.js 30f7226d9a first commit лет назад: 2 isObject.js 30f7226d9a first commit лет назад: 2 isObjectLike.js 30f7226d9a first commit лет назад: 2 isPlainObject.js 30f7226d9a first commit лет назад: 2 isRegExp.js 30f7226d9a first commit лет назад: 2 isSafeInteger.js 30f7226d9a first commit лет назад: 2 isSet.js 30f7226d9a first commit лет назад: 2 isString.js 30f7226d9a first commit лет назад: 2 isSymbol.js 30f7226d9a first commit лет назад: 2 isTypedArray.js 30f7226d9a first commit лет назад: 2 isUndefined.js 30f7226d9a first commit лет назад: 2 isWeakMap.js 30f7226d9a first commit лет назад: 2 isWeakSet.js 30f7226d9a first commit лет назад: 2 iteratee.js 30f7226d9a first commit лет назад: 2 join.js 30f7226d9a first commit лет назад: 2 kebabCase.js 30f7226d9a first commit лет назад: 2 keyBy.js 30f7226d9a first commit лет назад: 2 keys.js 30f7226d9a first commit лет назад: 2 keysIn.js 30f7226d9a first commit лет назад: 2 lang.js 30f7226d9a first commit лет назад: 2 last.js 30f7226d9a first commit лет назад: 2 lastIndexOf.js 30f7226d9a first commit лет назад: 2 lodash.js 30f7226d9a first commit лет назад: 2 lodash.min.js 30f7226d9a first commit лет назад: 2 lowerCase.js 30f7226d9a first commit лет назад: 2 lowerFirst.js 30f7226d9a first commit лет назад: 2 lt.js 30f7226d9a first commit лет назад: 2 lte.js 30f7226d9a first commit лет назад: 2 map.js 30f7226d9a first commit лет назад: 2 mapKeys.js 30f7226d9a first commit лет назад: 2 mapValues.js 30f7226d9a first commit лет назад: 2 matches.js 30f7226d9a first commit лет назад: 2 matchesProperty.js 30f7226d9a first commit лет назад: 2 math.js 30f7226d9a first commit лет назад: 2 max.js 30f7226d9a first commit лет назад: 2 maxBy.js 30f7226d9a first commit лет назад: 2 mean.js 30f7226d9a first commit лет назад: 2 meanBy.js 30f7226d9a first commit лет назад: 2 memoize.js 30f7226d9a first commit лет назад: 2 merge.js 30f7226d9a first commit лет назад: 2 mergeWith.js 30f7226d9a first commit лет назад: 2 method.js 30f7226d9a first commit лет назад: 2 methodOf.js 30f7226d9a first commit лет назад: 2 min.js 30f7226d9a first commit лет назад: 2 minBy.js 30f7226d9a first commit лет назад: 2 mixin.js 30f7226d9a first commit лет назад: 2 multiply.js 30f7226d9a first commit лет назад: 2 negate.js 30f7226d9a first commit лет назад: 2 next.js 30f7226d9a first commit лет назад: 2 noop.js 30f7226d9a first commit лет назад: 2 now.js 30f7226d9a first commit лет назад: 2 nth.js 30f7226d9a first commit лет назад: 2 nthArg.js 30f7226d9a first commit лет назад: 2 number.js 30f7226d9a first commit лет назад: 2 object.js 30f7226d9a first commit лет назад: 2 omit.js 30f7226d9a first commit лет назад: 2 omitBy.js 30f7226d9a first commit лет назад: 2 once.js 30f7226d9a first commit лет назад: 2 orderBy.js 30f7226d9a first commit лет назад: 2 over.js 30f7226d9a first commit лет назад: 2 overArgs.js 30f7226d9a first commit лет назад: 2 overEvery.js 30f7226d9a first commit лет назад: 2 overSome.js 30f7226d9a first commit лет назад: 2 package.json 30f7226d9a first commit лет назад: 2 pad.js 30f7226d9a first commit лет назад: 2 padEnd.js 30f7226d9a first commit лет назад: 2 padStart.js 30f7226d9a first commit лет назад: 2 parseInt.js 30f7226d9a first commit лет назад: 2 partial.js 30f7226d9a first commit лет назад: 2 partialRight.js 30f7226d9a first commit лет назад: 2 partition.js 30f7226d9a first commit лет назад: 2 pick.js 30f7226d9a first commit лет назад: 2 pickBy.js 30f7226d9a first commit лет назад: 2 plant.js 30f7226d9a first commit лет назад: 2 property.js 30f7226d9a first commit лет назад: 2 propertyOf.js 30f7226d9a first commit лет назад: 2 pull.js 30f7226d9a first commit лет назад: 2 pullAll.js 30f7226d9a first commit лет назад: 2 pullAllBy.js 30f7226d9a first commit лет назад: 2 pullAllWith.js 30f7226d9a first commit лет назад: 2 pullAt.js 30f7226d9a first commit лет назад: 2 random.js 30f7226d9a first commit лет назад: 2 range.js 30f7226d9a first commit лет назад: 2 rangeRight.js 30f7226d9a first commit лет назад: 2 rearg.js 30f7226d9a first commit лет назад: 2 reduce.js 30f7226d9a first commit лет назад: 2 reduceRight.js 30f7226d9a first commit лет назад: 2 reject.js 30f7226d9a first commit лет назад: 2 release.md 30f7226d9a first commit лет назад: 2 remove.js 30f7226d9a first commit лет назад: 2 repeat.js 30f7226d9a first commit лет назад: 2 replace.js 30f7226d9a first commit лет назад: 2 rest.js 30f7226d9a first commit лет назад: 2 result.js 30f7226d9a first commit лет назад: 2 reverse.js 30f7226d9a first commit лет назад: 2 round.js 30f7226d9a first commit лет назад: 2 sample.js 30f7226d9a first commit лет назад: 2 sampleSize.js 30f7226d9a first commit лет назад: 2 seq.js 30f7226d9a first commit лет назад: 2 set.js 30f7226d9a first commit лет назад: 2 setWith.js 30f7226d9a first commit лет назад: 2 shuffle.js 30f7226d9a first commit лет назад: 2 size.js 30f7226d9a first commit лет назад: 2 slice.js 30f7226d9a first commit лет назад: 2 snakeCase.js 30f7226d9a first commit лет назад: 2 some.js 30f7226d9a first commit лет назад: 2 sortBy.js 30f7226d9a first commit лет назад: 2 sortedIndex.js 30f7226d9a first commit лет назад: 2 sortedIndexBy.js 30f7226d9a first commit лет назад: 2 sortedIndexOf.js 30f7226d9a first commit лет назад: 2 sortedLastIndex.js 30f7226d9a first commit лет назад: 2 sortedLastIndexBy.js 30f7226d9a first commit лет назад: 2 sortedLastIndexOf.js 30f7226d9a first commit лет назад: 2 sortedUniq.js 30f7226d9a first commit лет назад: 2 sortedUniqBy.js 30f7226d9a first commit лет назад: 2 split.js 30f7226d9a first commit лет назад: 2 spread.js 30f7226d9a first commit лет назад: 2 startCase.js 30f7226d9a first commit лет назад: 2 startsWith.js 30f7226d9a first commit лет назад: 2 string.js 30f7226d9a first commit лет назад: 2 stubArray.js 30f7226d9a first commit лет назад: 2 stubFalse.js 30f7226d9a first commit лет назад: 2 stubObject.js 30f7226d9a first commit лет назад: 2 stubString.js 30f7226d9a first commit лет назад: 2 stubTrue.js 30f7226d9a first commit лет назад: 2 subtract.js 30f7226d9a first commit лет назад: 2 sum.js 30f7226d9a first commit лет назад: 2 sumBy.js 30f7226d9a first commit лет назад: 2 tail.js 30f7226d9a first commit лет назад: 2 take.js 30f7226d9a first commit лет назад: 2 takeRight.js 30f7226d9a first commit лет назад: 2 takeRightWhile.js 30f7226d9a first commit лет назад: 2 takeWhile.js 30f7226d9a first commit лет назад: 2 tap.js 30f7226d9a first commit лет назад: 2 template.js 30f7226d9a first commit лет назад: 2 templateSettings.js 30f7226d9a first commit лет назад: 2 throttle.js 30f7226d9a first commit лет назад: 2 thru.js 30f7226d9a first commit лет назад: 2 times.js 30f7226d9a first commit лет назад: 2 toArray.js 30f7226d9a first commit лет назад: 2 toFinite.js 30f7226d9a first commit лет назад: 2 toInteger.js 30f7226d9a first commit лет назад: 2 toIterator.js 30f7226d9a first commit лет назад: 2 toJSON.js 30f7226d9a first commit лет назад: 2 toLength.js 30f7226d9a first commit лет назад: 2 toLower.js 30f7226d9a first commit лет назад: 2 toNumber.js 30f7226d9a first commit лет назад: 2 toPairs.js 30f7226d9a first commit лет назад: 2 toPairsIn.js 30f7226d9a first commit лет назад: 2 toPath.js 30f7226d9a first commit лет назад: 2 toPlainObject.js 30f7226d9a first commit лет назад: 2 toSafeInteger.js 30f7226d9a first commit лет назад: 2 toString.js 30f7226d9a first commit лет назад: 2 toUpper.js 30f7226d9a first commit лет назад: 2 transform.js 30f7226d9a first commit лет назад: 2 trim.js 30f7226d9a first commit лет назад: 2 trimEnd.js 30f7226d9a first commit лет назад: 2 trimStart.js 30f7226d9a first commit лет назад: 2 truncate.js 30f7226d9a first commit лет назад: 2 unary.js 30f7226d9a first commit лет назад: 2 unescape.js 30f7226d9a first commit лет назад: 2 union.js 30f7226d9a first commit лет назад: 2 unionBy.js 30f7226d9a first commit лет назад: 2 unionWith.js 30f7226d9a first commit лет назад: 2 uniq.js 30f7226d9a first commit лет назад: 2 uniqBy.js 30f7226d9a first commit лет назад: 2 uniqWith.js 30f7226d9a first commit лет назад: 2 uniqueId.js 30f7226d9a first commit лет назад: 2 unset.js 30f7226d9a first commit лет назад: 2 unzip.js 30f7226d9a first commit лет назад: 2 unzipWith.js 30f7226d9a first commit лет назад: 2 update.js 30f7226d9a first commit лет назад: 2 updateWith.js 30f7226d9a first commit лет назад: 2 upperCase.js 30f7226d9a first commit лет назад: 2 upperFirst.js 30f7226d9a first commit лет назад: 2 util.js 30f7226d9a first commit лет назад: 2 value.js 30f7226d9a first commit лет назад: 2 valueOf.js 30f7226d9a first commit лет назад: 2 values.js 30f7226d9a first commit лет назад: 2 valuesIn.js 30f7226d9a first commit лет назад: 2 without.js 30f7226d9a first commit лет назад: 2 words.js 30f7226d9a first commit лет назад: 2 wrap.js 30f7226d9a first commit лет назад: 2 wrapperAt.js 30f7226d9a first commit лет назад: 2 wrapperChain.js 30f7226d9a first commit лет назад: 2 wrapperLodash.js 30f7226d9a first commit лет назад: 2 wrapperReverse.js 30f7226d9a first commit лет назад: 2 wrapperValue.js 30f7226d9a first commit лет назад: 2 xor.js 30f7226d9a first commit лет назад: 2 xorBy.js 30f7226d9a first commit лет назад: 2 xorWith.js 30f7226d9a first commit лет назад: 2 zip.js 30f7226d9a first commit лет назад: 2 zipObject.js 30f7226d9a first commit лет назад: 2 zipObjectDeep.js 30f7226d9a first commit лет назад: 2 zipWith.js 30f7226d9a first commit лет назад: 2

README.md

lodash v4.17.21

The Lodash library exported as Node.js modules.

Installation

Using npm:

$ npm i -g npm
$ npm i --save lodash

In Node.js:

// Load the full build.
var _ = require('lodash');
// Load the core build.
var _ = require('lodash/core');
// Load the FP build for immutable auto-curried iteratee-first data-last methods.
var fp = require('lodash/fp');

// Load method categories.
var array = require('lodash/array');
var object = require('lodash/fp/object');

// Cherry-pick methods for smaller browserify/rollup/webpack bundles.
var at = require('lodash/at');
var curryN = require('lodash/fp/curryN');

See the package source for more details.

Note:
Install n_ for Lodash use in the Node.js < 6 REPL.

Support

Tested in Chrome 74-75, Firefox 66-67, IE 11, Edge 18, Safari 11-12, & Node.js 8-12.
Automated browser & CI test runs are available.

tum/whitesports - Gogs: Simplico Git Service

Нет описания

class-wc-integration-maxmind-geolocation.php 8.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293
  1. <?php
  2. /**
  3. * MaxMind Geolocation Integration
  4. *
  5. * @version 3.9.0
  6. * @package WooCommerce\Integrations
  7. */
  8. defined( 'ABSPATH' ) || exit;
  9. require_once __DIR__ . '/class-wc-integration-maxmind-database-service.php';
  10. /**
  11. * WC Integration MaxMind Geolocation
  12. *
  13. * @since 3.9.0
  14. */
  15. class WC_Integration_MaxMind_Geolocation extends WC_Integration {
  16. /**
  17. * The service responsible for interacting with the MaxMind database.
  18. *
  19. * @var WC_Integration_MaxMind_Database_Service
  20. */
  21. private $database_service;
  22. /**
  23. * Initialize the integration.
  24. */
  25. public function __construct() {
  26. $this->id = 'maxmind_geolocation';
  27. $this->method_title = __( 'MaxMind Geolocation', 'woocommerce' );
  28. $this->method_description = __( 'An integration for utilizing MaxMind to do Geolocation lookups. Please note that this integration will only do country lookups.', 'woocommerce' );
  29. /**
  30. * Supports overriding the database service to be used.
  31. *
  32. * @since 3.9.0
  33. * @return mixed|null The geolocation database service.
  34. */
  35. $this->database_service = apply_filters( 'woocommerce_maxmind_geolocation_database_service', null );
  36. if ( null === $this->database_service ) {
  37. $this->database_service = new WC_Integration_MaxMind_Database_Service( $this->get_database_prefix() );
  38. }
  39. $this->init_form_fields();
  40. $this->init_settings();
  41. // Bind to the save action for the settings.
  42. add_action( 'woocommerce_update_options_integration_' . $this->id, array( $this, 'process_admin_options' ) );
  43. // Trigger notice if license key is missing.
  44. add_action( 'update_option_woocommerce_default_customer_address', array( $this, 'display_missing_license_key_notice' ), 1000, 2 );
  45. /**
  46. * Allows for the automatic database update to be disabled.
  47. *
  48. * @deprecated 3.9.0
  49. * @return bool Whether or not the database should be updated periodically.
  50. */
  51. $bind_updater = apply_filters_deprecated(
  52. 'woocommerce_geolocation_update_database_periodically',
  53. array( true ),
  54. '3.9.0',
  55. 'woocommerce_maxmind_geolocation_update_database_periodically'
  56. );
  57. /**
  58. * Allows for the automatic database update to be disabled.
  59. * Note that MaxMind's TOS requires that the databases be updated or removed periodically.
  60. *
  61. * @since 3.9.0
  62. * @param bool $bind_updater Whether or not the database should be updated periodically.
  63. */
  64. $bind_updater = apply_filters( 'woocommerce_maxmind_geolocation_update_database_periodically', $bind_updater );
  65. // Bind to the scheduled updater action.
  66. if ( $bind_updater ) {
  67. add_action( 'woocommerce_geoip_updater', array( $this, 'update_database' ) );
  68. }
  69. // Bind to the geolocation filter for MaxMind database lookups.
  70. add_filter( 'woocommerce_get_geolocation', array( $this, 'get_geolocation' ), 10, 2 );
  71. }
  72. /**
  73. * Override the normal options so we can print the database file path to the admin,
  74. */
  75. public function admin_options() {
  76. parent::admin_options();
  77. include dirname( __FILE__ ) . '/views/html-admin-options.php';
  78. }
  79. /**
  80. * Initializes the settings fields.
  81. */
  82. public function init_form_fields() {
  83. $this->form_fields = array(
  84. 'license_key' => array(
  85. 'title' => __( 'MaxMind License Key', 'woocommerce' ),
  86. 'type' => 'password',
  87. 'description' => sprintf(
  88. /* translators: %1$s: Documentation URL */
  89. __(
  90. 'The key that will be used when dealing with MaxMind Geolocation services. You can read how to generate one in <a href="%1$s">MaxMind Geolocation Integration documentation</a>.',
  91. 'woocommerce'
  92. ),
  93. 'https://docs.woocommerce.com/document/maxmind-geolocation-integration/'
  94. ),
  95. 'desc_tip' => false,
  96. 'default' => '',
  97. ),
  98. );
  99. }
  100. /**
  101. * Get database service.
  102. *
  103. * @return WC_Integration_MaxMind_Database_Service|null
  104. */
  105. public function get_database_service() {
  106. return $this->database_service;
  107. }
  108. /**
  109. * Checks to make sure that the license key is valid.
  110. *
  111. * @param string $key The key of the field.
  112. * @param mixed $value The value of the field.
  113. * @return mixed
  114. * @throws Exception When the license key is invalid.
  115. */
  116. public function validate_license_key_field( $key, $value ) {
  117. // Trim whitespaces and strip slashes.
  118. $value = $this->validate_password_field( $key, $value );
  119. // Empty license keys have no need test downloading a database.
  120. if ( empty( $value ) ) {
  121. return $value;
  122. }
  123. // Check the license key by attempting to download the Geolocation database.
  124. $tmp_database_path = $this->database_service->download_database( $value );
  125. if ( is_wp_error( $tmp_database_path ) ) {
  126. WC_Admin_Settings::add_error( $tmp_database_path->get_error_message() );
  127. // Throw an exception to keep from changing this value. This will prevent
  128. // users from accidentally losing their license key, which cannot
  129. // be viewed again after generating.
  130. throw new Exception( $tmp_database_path->get_error_message() );
  131. }
  132. // We may as well put this archive to good use, now that we've downloaded one.
  133. self::update_database( $tmp_database_path );
  134. // Remove missing license key notice.
  135. $this->remove_missing_license_key_notice();
  136. return $value;
  137. }
  138. /**
  139. * Updates the database used for geolocation queries.
  140. *
  141. * @param string|null $new_database_path The path to the new database file. Null will fetch a new archive.
  142. */
  143. public function update_database( $new_database_path = null ) {
  144. // Allow us to easily interact with the filesystem.
  145. require_once ABSPATH . 'wp-admin/includes/file.php';
  146. WP_Filesystem();
  147. global $wp_filesystem;
  148. // Remove any existing archives to comply with the MaxMind TOS.
  149. $target_database_path = $this->database_service->get_database_path();
  150. // If there's no database path, we can't store the database.
  151. if ( empty( $target_database_path ) ) {
  152. return;
  153. }
  154. if ( $wp_filesystem->exists( $target_database_path ) ) {
  155. $wp_filesystem->delete( $target_database_path );
  156. }
  157. if ( isset( $new_database_path ) ) {
  158. $tmp_database_path = $new_database_path;
  159. } else {
  160. // We can't download a database if there's no license key configured.
  161. $license_key = $this->get_option( 'license_key' );
  162. if ( empty( $license_key ) ) {
  163. return;
  164. }
  165. $tmp_database_path = $this->database_service->download_database( $license_key );
  166. if ( is_wp_error( $tmp_database_path ) ) {
  167. wc_get_logger()->notice( $tmp_database_path->get_error_message(), array( 'source' => 'maxmind-geolocation' ) );
  168. return;
  169. }
  170. }
  171. // Move the new database into position.
  172. $wp_filesystem->move( $tmp_database_path, $target_database_path, true );
  173. $wp_filesystem->delete( dirname( $tmp_database_path ) );
  174. }
  175. /**
  176. * Performs a geolocation lookup against the MaxMind database for the given IP address.
  177. *
  178. * @param array $data Geolocation data.
  179. * @param string $ip_address The IP address to geolocate.
  180. * @return array Geolocation including country code, state, city and postcode based on an IP address.
  181. */
  182. public function get_geolocation( $data, $ip_address ) {
  183. // WooCommerce look for headers first, and at this moment could be just enough.
  184. if ( ! empty( $data['country'] ) ) {
  185. return $data;
  186. }
  187. if ( empty( $ip_address ) ) {
  188. return $data;
  189. }
  190. $country_code = $this->database_service->get_iso_country_code_for_ip( $ip_address );
  191. return array(
  192. 'country' => $country_code,
  193. 'state' => '',
  194. 'city' => '',
  195. 'postcode' => '',
  196. );
  197. }
  198. /**
  199. * Fetches the prefix for the MaxMind database file.
  200. *
  201. * @return string
  202. */
  203. private function get_database_prefix() {
  204. $prefix = $this->get_option( 'database_prefix' );
  205. if ( empty( $prefix ) ) {
  206. $prefix = wp_generate_password( 32, false );
  207. $this->update_option( 'database_prefix', $prefix );
  208. }
  209. return $prefix;
  210. }
  211. /**
  212. * Add missing license key notice.
  213. */
  214. private function add_missing_license_key_notice() {
  215. if ( ! class_exists( 'WC_Admin_Notices' ) ) {
  216. include_once WC_ABSPATH . 'includes/admin/class-wc-admin-notices.php';
  217. }
  218. WC_Admin_Notices::add_notice( 'maxmind_license_key' );
  219. }
  220. /**
  221. * Remove missing license key notice.
  222. */
  223. private function remove_missing_license_key_notice() {
  224. if ( ! class_exists( 'WC_Admin_Notices' ) ) {
  225. include_once WC_ABSPATH . 'includes/admin/class-wc-admin-notices.php';
  226. }
  227. WC_Admin_Notices::remove_notice( 'maxmind_license_key' );
  228. }
  229. /**
  230. * Display notice if license key is missing.
  231. *
  232. * @param mixed $old_value Option old value.
  233. * @param mixed $new_value Current value.
  234. */
  235. public function display_missing_license_key_notice( $old_value, $new_value ) {
  236. if ( ! apply_filters( 'woocommerce_maxmind_geolocation_display_notices', true ) ) {
  237. return;
  238. }
  239. if ( ! in_array( $new_value, array( 'geolocation', 'geolocation_ajax' ), true ) ) {
  240. $this->remove_missing_license_key_notice();
  241. return;
  242. }
  243. $license_key = $this->get_option( 'license_key' );
  244. if ( ! empty( $license_key ) ) {
  245. return;
  246. }
  247. $this->add_missing_license_key_notice();
  248. }
  249. }