text: import r from"lodash.isequal";import n from"lodash.get";import e from"lodash.includes";import t from"lodash.assign";import o from"lodash.isarray";var u=function(r){return"function"==typeof r},i=/^@@/,f=/^@/;function a(r){return"string"==typeof r&&"@"===r[0]?r.slice(1):r}var c=function(r){if("function"!=typeof r)throw new Error("make must be passed a function as argument 1");return function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return function(t){return r.apply(void 0,function(r){for(var e=[],t=arguments.length-1;t-- >0;)e[t]=arguments[t+1];return e.map(function(e){return!function(r){return i.test(r)}(t=e)&&f.test(t)?n(r,a(e)):a(e);var t})}.apply(void 0,[t].concat(e)).concat([t]))}}},s=c(function(n,e){return r(n,e)}),l=c(function(r){return null==r||"undefined"===r||""===r}),g=c(function(r,n){return r===n}),h=c(function(r,n,e){if(!u(n))throw new Error("Regent: the right property of an every rule must be a regent rule");return!!o(r)&&r.every(function(r){return n(t({},e,{__:r}))})}),m=c(function(r,n){return r>=n}),p=c(function(r,n){return r>n}),y=c(function(r,n){return e(r,n)}),v=c(function(r,n){return r<=n}),d=c(function(r,n){return r<n}),w=function(){for(var r=[],n=arguments.length;n--;)r[n]=arguments[n];if(!r.every(function(r){return u(r)}))throw new Error("Regent: or requires all arguments to be a function");return function(n){return r.some(function(r){return r(n)})}},E=c(function(r,n){return n.test(r)}),q=c(function(r,n,e,i){if(!u(n))throw new Error("Regent: the right property of an every rule must be a regent rule");return!!o(r)&&r.some(function(r){return n(t({},e,{__:r}))})}),b=c(function(r,n){return typeof r===n});export default{and:function(){for(var r=[],n=arguments.length;n--;)r[n]=arguments[n];if(!r.every(function(r){return u(r)}))throw new Error("Regent: and requires all arguments to be a function");return function(n){return r.every(function(r){return r(n)})}},deepEquals:s,empty:l,equals:g,every:h,greaterThanOrEquals:m,greaterThan:p,includes:y,lessThanOrEquals:v,lessThan:d,make:c,none:function(){for(var r=[],n=arguments.length;n--;)r[n]=arguments[n];if(!r.every(function(r){return u(r)}))throw new Error("Regent: none requires all arguments to be a function");return function(n){return!w.apply(void 0,r)(n)}},not:function(r){if(!u(r))throw new Error("Regent: not requires the first argument to be a function");return function(n){return!r(n)}},or:w,regex:E,some:q,typeOf:b,xor:function(){for(var r=[],n=arguments.length;n--;)r[n]=arguments[n];return function(n){if(!r.every(function(r){return u(r)}))throw new Error("Regent: xor requires all arguments to be a function");if(2!==r.length)throw Error("Regent: xor must take exactly 2 rules");return(r[0](n)||r[1](n))&&!(r[0](n)&&r[1](n))}}};
  //# sourceMappingURL=regent.module.js.map
  