"use strict";var stringUtil=require("./stringUtil-dea69be9.js");function baseSortBy$1(r,e){var a=r.length;for(r.sort(e);a--;)r[a]=r[a].value;return r}var _baseSortBy=baseSortBy$1,isSymbol=stringUtil.isSymbol_1;function compareAscending$1(r,e){if(r!==e){var a=void 0!==r,t=null===r,i=r==r,n=isSymbol(r),s=void 0!==e,l=null===e,o=e==e,y=isSymbol(e);if(!l&&!y&&!n&&e<r||n&&s&&o&&!l&&!y||t&&s&&o||!a&&o||!i)return 1;if(!t&&!n&&!y&&r<e||y&&a&&i&&!t&&!n||l&&a&&i||!s&&i||!o)return-1}return 0}var _compareAscending=compareAscending$1,compareAscending=compareAscending$1;function compareMultiple$1(r,e,a){for(var t=-1,i=r.criteria,n=e.criteria,s=i.length,l=a.length;++t<s;){var o=compareAscending(i[t],n[t]);if(o)return l<=t?o:o*("desc"==a[t]?-1:1)}return r.index-e.index}var _compareMultiple=compareMultiple$1,arrayMap=stringUtil._arrayMap,baseGet=stringUtil._baseGet,baseIteratee=stringUtil._baseIteratee,baseMap=stringUtil._baseMap,baseSortBy=_baseSortBy,baseUnary=stringUtil._baseUnary,compareMultiple=_compareMultiple,identity=stringUtil.identity_1,isArray$1=stringUtil.isArray_1;function baseOrderBy$1(r,t,a){t=t.length?arrayMap(t,function(e){return isArray$1(e)?function(r){return baseGet(r,1===e.length?e[0]:e)}:e}):[identity];var i=-1,r=(t=arrayMap(t,baseUnary(baseIteratee)),baseMap(r,function(e,r,a){return{criteria:arrayMap(t,function(r){return r(e)}),index:++i,value:e}}));return baseSortBy(r,function(r,e){return compareMultiple(r,e,a)})}var _baseOrderBy=baseOrderBy$1,baseOrderBy=baseOrderBy$1,isArray=stringUtil.isArray_1;function orderBy(r,e,a,t){return null==r?[]:(isArray(e)||(e=null==e?[]:[e]),isArray(a=t?void 0:a)||(a=null==a?[]:[a]),baseOrderBy(r,e,a))}var orderBy_1=orderBy;exports.orderBy_1=orderBy_1;
