New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

partial.lenses

Package Overview
Dependencies
Maintainers
1
Versions
180
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

partial.lenses - npm Package Compare versions

Comparing version 13.6.0 to 13.6.1

4

CHANGELOG.md
# Partial Lenses Changelog
## 13.6.1
Fixed a bug in `L.condOf`, which didn't handle the case of zero cases correctly.
## 13.1.0

@@ -4,0 +8,0 @@

5

dist/partial.lenses.cjs.js

@@ -912,2 +912,3 @@ 'use strict';

var condOfDefault = /*#__PURE__*/I.always(zeroOp);
var condOfCase = function condOfCase(p, o, r) {

@@ -1043,7 +1044,7 @@ return function (y, j) {

of = toFunction(of);
var op = undefined;
var op = condOfDefault;
var n = arguments.length;
while (--n) {
var c = arguments[n];
op = c.length === 1 ? I.always(toFunction(c[0])) : condOfCase(c[0], toFunction(c[1]), op || I.always(zero));
op = c.length === 1 ? I.always(toFunction(c[0])) : condOfCase(c[0], toFunction(c[1]), op);
}

@@ -1050,0 +1051,0 @@ return function (x, i, C, xi2yC) {

@@ -908,2 +908,3 @@ import { isArray, freeze, isObject, id, acyclicEqualsU, array0, object0, sndU, applyU, always, curry, isFunction, isString, curryN, assocPartialU, dissocPartialU, constructorOf, toObject, isDefined, keys, hasU, assign, arityN } from 'infestines';

var condOfDefault = /*#__PURE__*/always(zeroOp);
var condOfCase = function condOfCase(p, o, r) {

@@ -1039,7 +1040,7 @@ return function (y, j) {

of = toFunction(of);
var op = undefined;
var op = condOfDefault;
var n = arguments.length;
while (--n) {
var c = arguments[n];
op = c.length === 1 ? always(toFunction(c[0])) : condOfCase(c[0], toFunction(c[1]), op || always(zero));
op = c.length === 1 ? always(toFunction(c[0])) : condOfCase(c[0], toFunction(c[1]), op);
}

@@ -1046,0 +1047,0 @@ return function (x, i, C, xi2yC) {

@@ -912,2 +912,3 @@ (function (global, factory) {

var condOfDefault = /*#__PURE__*/I.always(zeroOp);
var condOfCase = function condOfCase(p, o, r) {

@@ -1043,7 +1044,7 @@ return function (y, j) {

of = toFunction(of);
var op = undefined;
var op = condOfDefault;
var n = arguments.length;
while (--n) {
var c = arguments[n];
op = c.length === 1 ? I.always(toFunction(c[0])) : condOfCase(c[0], toFunction(c[1]), op || I.always(zero));
op = c.length === 1 ? I.always(toFunction(c[0])) : condOfCase(c[0], toFunction(c[1]), op);
}

@@ -1050,0 +1051,0 @@ return function (x, i, C, xi2yC) {

@@ -1,1 +0,1 @@

!function(n,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports,require("infestines")):"function"==typeof define&&define.amd?define(["exports","infestines"],r):r(n.L={},n.I)}(this,function(n,r){"use strict";function t(n,r){var t=r.length-n;if(t<2)return t?mn(r[n]):nn;for(var u=mn(r[n+--t]),e=function(n,r){return function(t,e){return u(t,e,n,r)}};--t;)e=$(mn(r[n+t]),e);var i=mn(r[n]);return function(n,r,t,u){return i(n,r,t,e(t,u))}}function u(n){var r=function n(r,t){return n.v=t,r};return r.v=n,r}function e(n,r,t,u){for(var i,o=n.length;t<o;++t)switch(typeof(i=n[t])){case"string":r=B(u.v=i,r);break;case"number":r=_(u.v=i,r);break;case"object":r=e(i,r,0,u);break;default:r=i(r,u.v,R,u)}return r}function i(n,u,e,i){for(var o,c,f=n.length,a=Array(f),v=0;v<f;++v)switch(a[v]=e,typeof(o=n[v])){case"string":e=B(o,e);break;case"number":e=_(o,e);break;default:e=t(v,n)(e,n[v-1],E,u||r.always(i)),f=v}for(f===n.length&&(e=u?u(e,n[f-1]):i);0<=--f;)e=r.isString(c=n[f])?J(c,e,a[f]):F(c,e,a[f]);return e}function o(n,t,u,e,i){var o=u.of;return o?o(n):u.map(r.always(n),e(i,t))}function c(n){function r(n,r,u,e){return t(n,r,u,e)}var t=function(u,e,i,o){return(t=mn(n(r)))(u,e,i,o)};return r}function f(n,r){return 1<arguments.length?K(n,r):function(r){return K(n,r)}}function a(n,r,t,u){var e=gn(n)?n.length:0;return t.map(function(r){return F(e,r,n)},u(void 0,e))}function v(n){var r=arguments.length>1?arguments[1]:{hint:0};return function(t,u,e,i){var o=gn(t)?t:"",c=r.hint=function(n,r,t){var u=n.hint,e=t.length;e<=u&&(u=e-1),u<0&&(u=0);for(var i=u-1;0<=i&&u<e;++u,--i){if(r(t[u],u,n))return u;if(r(t[i],i,n))return i}for(;u<e;++u)if(r(t[u],u,n))return u;for(;0<=i;--i)if(r(t[i],i,n))return i;return e}(r,n,o);return e.map(function(n){return F(c,n,o)},i(o[c],c))}}function s(){for(var n,r=arguments.length,t={},u=0;u<r;++u)t[n=arguments[u]]=n;return _r(t)}function d(n,r){return 1<arguments.length?G(n,r,void 0):function(r){return G(n,r,void 0)}}var l=r.curry(function(n,r){return r instanceof n}),h=Object.create,p=r.freeze(function(n){return r.assign(h(null),0)}()),y=function(n,r,t,u){return void 0!==u?Math.min(Math.max(n,u<0?r+u:u),r):t},g=function(n){return function(r){return[r,n]}},m=function(n){return function(r){return void 0!==r?r:n}},b=m(0),A=function(n){return void 0!==n?!n:n},j=function(n){return void 0!==n?[n]:n},O=function(n,r){return function(t){return n(t)?r(t):void 0}},w=function(n){return!(n instanceof Object)||r.isArray(n)},x=r.id(function(n){if(gn(n)){for(var r=n.length,t=Array(r),u=0;r;)t[u++]=n[--r];return t}}),U=r.id(function(n,r){for(var t,u=r.length,e=Array(u),i=0,o=0;o<u;++o)void 0!==(t=n(r[o],o))&&(e[i++]=t);return i<u&&(e.length=i),e}),k=function(n,r){return gn(r)?U(n,r):void 0},I=r.id(function(n,r,t,u,e){for(;u<e;)n[r++]=t[u++];return n}),S={map:r.sndU,of:function(){},ap:function(n,r){return void 0!==n?n:r}},E={map:r.applyU,of:r.id,ap:r.applyU,chain:r.applyU},R={map:r.sndU},q=function(n,t){return{map:r.sndU,ap:n,of:r.always(t)}},M=q(function(n,r){return n+r},0),N=function(n){return r.curry(function(r,t,u){var e=void 0,i=void 0;return z(S,function(t,u){var o=r(t,u);void 0===o||void 0!==i&&!n(o,i)||(e=t,i=o)},t,u),e})},z=function(n,r,t,u){return mn(t)(u,void 0,n,r)},C=function(n,t){return r.curryN(4,function(r,u){return u=t(u),function(t,e){return n(z(u,r,t,e))}})},D=function(n){return function(r){return void 0!==r?[r,n]:n}},L=r.id(function(n){for(var r=[];D!==n;)r.push(n[0]),n=n[1];return r.reverse()}),P=function(n,r){return function(t){return function(u,e,i,o){return i.map(function(n){return r(t,n,u)},o(n(t,u),t))}}},B=function(n,r){return r instanceof Object?r[n]:void 0},J=r.id(function(n,t,u){return void 0!==t?r.assocPartialU(n,t,u):r.dissocPartialU(n,u)||r.object0}),W=P(B,J),_=function(n,r){return gn(r)?r[n]:void 0},F=r.id(function(n,r,t){gn(t)||(t="");var u=t.length;if(void 0!==r){for(var e=Math.max(n+1,u),i=Array(e),o=0;o<e;++o)i[o]=t[o];return i[n]=r,i}if(u<=n)return I(Array(u),0,t,0,u);for(var c=Array(u-1),f=0;f<n;++f)c[f]=t[f];for(var a=n+1;a<u;++a)c[a-1]=t[a];return c}),T=P(_,F),$=function(n,r){return function(t,u){return u=r(t,u),function(r,e){return n(r,e,t,u)}}},G=r.id(function(n,t,u){switch(typeof n){case"string":return J(n,t,u);case"number":return F(n,t,u);case"object":return i(n,0,u,t);default:return 4===n.length?n(u,void 0,E,r.always(t)):u}}),H=r.id(function(n,r,t){switch(typeof n){case"string":return J(n,r(B(n,t),n),t);case"number":return F(n,r(_(n,t),n),t);case"object":return i(n,r,t);default:return 4===n.length?n(t,void 0,E,r):(r(n(t,void 0),void 0),t)}}),K=r.id(function(n,t){switch(typeof n){case"string":return B(n,t);case"number":return _(n,t);case"object":for(var i,o=0,c=n.length;o<c;++o)switch(typeof(i=n[o])){case"string":t=B(i,t);break;case"number":t=_(i,t);break;default:return e(n,t,o,u(n[o-1]))}return t;default:return n(t,void 0,R,r.id)}}),Q=function(n,r){return function(t,u,e,i){return e.map(function(n){return r(n,t,u)},i(n(t,u),u))}},V=function(n,r){return function(t,u,e,i){return e.map(r,i(n(t),u))}},X=r.id(function(n,t){var u=void 0;for(var e in n){var i=n[e],o=r.isObject(i)?X(i,t):K(i,t);void 0!==o&&(u||(u={}),u[e]=o)}return u}),Y=r.id(function(n,t,u){for(var e in n){var i=t&&t[e],o=n[e];u=r.isObject(o)?Y(o,i,u):G(o,i,u)}return u}),Z=function(n){return r.constructorOf(n)!==Object?r.toObject(n):n},nn=function(n,r,t,u){return u(n,r)},rn=r.id(function(n){return function(r){for(var t={},u=n.length;u--;){var e=r[0];void 0!==e&&(t[n[u]]=e),r=r[1]}return t}}),tn=function(n,t){return function(u,e,i,o){var c=u instanceof Object?Z(u):r.object0;if(E===i){var f=void 0,a={};for(var v in t){f=1;var s=t[v](c[v],v,i,o);void 0!==s&&(a[v]=s)}var d=f;for(var l in c)if(void 0===(d&&t[l])){f=1;var h=n(c[l],l,i,o);void 0!==h&&(a[l]=h)}return f?a:u}if(S!==i){var p=i.map,y=i.ap,m=i.of,b=m(g),A=[];for(var j in t)A.push(j),b=y(p(g,b),t[j](c[j],j,i,o));var O=!!A.length||void 0;for(var w in c)void 0===(O&&t[w])&&(A.push(w),b=y(p(g,b),n(c[w],w,i,o)));return A.length?p(rn(A),b):m(u)}for(var x in t){var U=t[x](c[x],x,i,o);if(void 0!==U)return U}for(var k in c)if(void 0===t[k]){var I=n(c[k],k,i,o);if(void 0!==I)return I}}},un=function(n,t,u){return r.acyclicEqualsU(u,n)?t:u},en=r.id(function(n,r,t,u){for(var e,i=0,o=r.length;i<o;++i)(n(e=r[i],i)?t:u).push(e)}),on=function(n){return n[0]},cn=function(n){return n.index},fn=r.id(function(n,r){var t=r.lastIndex;r.lastIndex=cn(n)+n[0].length;var u=r.exec(n.input);return r.lastIndex=t,u&&u[0]&&u}),an=function(n){return function(r){return function(t){return[n,t,r]}}},vn=V(O(l(Object),r.id(function(n){n=Z(n);var r=[];for(var t in n)r.push([t,n[t]]);return r})),O(r.isArray,r.id(function(n){for(var r={},t=0,u=n.length;t<u;++t){var e=n[t];2===e.length&&(r[e[0]]=e[1])}return r}))),sn=function(n,r,t){return function(u,e,i,o){return(n(u,e)?r:t)(u,e,i,o)}},dn=function(n,r){return r=mn(r),n=mn(n),function(t,u,e,i){return(vr(r,t)?r:n)(t,u,e,i)}},ln=r.curry(function(n,r){return c(function(t){return Sn(r,nn,[n,t])})}),hn=function(n,r){return function(t,u,e,i){return e.chain(function(n){return r(n,u,e,i)},n(t,u,e,i))}},pn=function(n,r){return[r,Br(n)]},yn=function(n,r,t){return function(u,e){return n(u,e)?r:t(u,e)}},gn=function(n){return n instanceof Object&&(n=n.length)===n>>0&&0<=n||r.isString(n)},mn=r.id(function(n){switch(typeof n){case"string":return W(n);case"number":return T(n);case"object":return t(0,n);default:return 4===n.length?n:(u=n,function(n,t,e,i){return e.map(r.always(n),i(u(n,t),t))})}var u}),bn=r.curry(function(n,r,t){return G([n,Wr(r)],r,t)}),An=r.curry(H),jn=r.curry(function(n,r){return G(n,void 0,r)}),On=r.curry(G),wn=r.curry(function(n,t){return H(n,r.id,t)}),xn=r.curry(z),Un=function(n){return function(r,t,u,e){return mn(n(r,t))(r,t,u,e)}},kn=r.id(function(){for(var n=arguments.length,r=zn;n--;){var t=arguments[n];r=t.length<2?mn(t[0]):sn(t[0],mn(t[1]),r)}return r}),In=r.id(function(n){n=mn(n);for(var t=void 0,u=arguments.length;--u;){var e=arguments[u];t=1===e.length?r.always(mn(e[0])):yn(e[0],mn(e[1]),t||r.always(zn))}return function(r,u,e,i){return n(r,u,R,t)(r,u,e,i)}}),Sn=r.curry(function(n,r,t){return sn(n,mn(r),mn(t))}),En=r.id(function(n,r){for(var t=arguments.length,u=1&t?mn(arguments[--t]):zn;0<=(t-=2);)u=sn(arguments[t],mn(arguments[t+1]),u);return u}),Rn=r.curry(dn),qn=r.curry(function(n,r){return[r,Un(function(r,t){return void 0!==r?n(r,t):zn})]}),Mn=function(n){return sn(n,nn,o)},Nn=Mn(r.isDefined),zn=function(n,r,t,u){return o(n,r,t,u)},Cn=function(n){return function(r,t,u,e){return o(n,t,u,e,n)}},Dn=Cn(),Ln=r.id(function(){var n=arguments.length,r=zn;if(n)for(r=mn(arguments[--n]);n;)r=hn(mn(arguments[--n]),r);return r}),Pn=r.id(r.curryN(2,function(n){return n=mn(n),function(t){return function n(t,u){var e=h(null);for(var i in u){var o=u[i];e[i]=r.isObject(o)?n(t,o):mn(o)}return tn(t,e)}(n,t)}})),Bn=Pn(zn),Jn=r.id(function(n,t,u,e){return gn(n)?u===E?U(e,n):u===S?function(n,r){for(var t=0,u=r.length;t<u;++t){var e=n(r[t],t);if(void 0!==e)return e}}(e,n):function(n,t,u){var e=n.map,i=n.ap,o=n.of(D),c=u.length;if(e===r.sndU){for(var f=0;f<c;++f)o=i(o,t(u[f],f));return o}for(var a=0;a<c;++a)o=i(e(D,o),t(u[a],a));return e(L,o)}(u,e,n):u.of(n)}),Wn=mn([vn,Jn]),_n=mn([vn,Jn,0]),Fn=r.id(function(n){return function(t,u,e,i){if(r.isString(t)){var c=e.map;if(n.global){var f=[""];return f.input=t,f.index=0,S===e?function(n,r,t){for(;t=fn(t,r);){var u=n(on(t),cn(t));if(void 0!==u)return u}}(i,n,f):c((v=t,function(n){for(var r="",t=0,u=function(n){for(var r=[];an!==n;)r.push(n[0],n[1]),n=n[2];return r}(n),e=u.length-2;-2!==e;e+=-2){var i=u[e],o=cn(i);r+=v.slice(t,o);var c=u[e+1];void 0!==c&&(r+=c),t=o+i[0].length}return r+v.slice(t)}),function(n,r,t,u,e,i){for(var o=t(an);i=fn(i,e);)o=r(r(n(an,t(i)),o),u(on(i),cn(i)));return o}(c,e.ap,e.of,i,n,f))}var a=t.match(n);if(a)return c(function(r){return t.replace(n,void 0!==r?r:"")},i(a[0],cn(a)))}var v;return o(t,void 0,e,i)}}),Tn=r.id(tn(nn,p)),$n=Sn(r.isArray,Jn,Sn(r.isObject,Tn,zn)),Gn=ln($n),Hn=ln(Jn,function(n){return!r.isArray(n)}),Kn=Gn(function(n){return!r.isArray(n)&&!r.isObject(n)}),Qn=r.curry(function(n,r,t){return!z(S,function(r,t){if(!n(r,t))return!0},r,t)}),Vn=Qn(r.id),Xn=r.curry(function(n,r,t){return!!z(S,function(r,t){if(n(r,t))return!0},r,t)}),Yn=r.curry(function(n,r,t){var u=[];return z(S,function(r,t){var e=n(r,t);void 0!==e&&u.push(e)},r,t),u}),Zn=Yn(r.id),nr=C(r.id,function(n){return q(n.concat,n.empty())}),rr=nr(r.id),tr=r.curry(function(n,r,t){return z(M,function(r,t){return n(r,t)?1:0},r,t)}),ur=tr(r.isDefined),er=r.curry(function(n,r,t){var u=new Map;return z(S,function(r,t){var e=n(r,t),i=u.get(e);u.set(e,void 0!==i?i+1:1)},r,t),u}),ir=er(r.id),or=r.curry(function(n,r,t,u){return z(S,function(t,u){r=n(r,t,u)},t,u),r}),cr=r.curry(function(n,r,t,u){var e=[],i=[];z(S,function(n,r){i.push(n),e.push(r)},t,u);for(var o=i.length-1;0<=o;--o)r=n(r,i[o],e[o]);return r}),fr=r.curry(function(n,r,t){return z(S,function(r,t){n(r,t)},r,t)}),ar=r.curry(function(n,r,t,u){var e=n();return z(S,function(n,t){r(e,n,t)},t,u),e}),vr=r.curry(function(n,t){return void 0!==z(S,r.id,n,t)}),sr=r.curry(function(n,t){return!z(S,r.always(!0),n,t)}),dr=C(function(n){return void 0!==n?String(n):""},r.id(function(n){return q(function(r,t){return void 0!==r?void 0!==t?r+n+t:r:t})})),lr=dr(r.id),hr=N(function(n,r){return n>r}),pr=hr(r.id),yr=r.curry(function(n,r,t){var u=0,e=0;return z(S,function(r,t){var i=n(r,t);void 0!==i&&(e+=1,u+=i)},r,t),u/e}),gr=yr(r.id),mr=N(function(n,r){return n<r}),br=mr(r.id),Ar=r.curry(function(n,r,t){return!z(S,function(r,t){if(n(r,t))return!0},r,t)}),jr=Xn(r.id),Or=xn(q(function(n,r){return n*r},1)),wr=Or(m(1)),xr=xn(S),Ur=xr(r.id),kr=xn(M),Ir=kr(b),Sr=r.curry(Q),Er=Sr(r.id),Rr=r.curry(function(n,r){return Q(n(r),On(r))}),qr=r.id(function(n){var r=m(n);return function(t,u,e,i){return e.map(r,i(void 0!==t?t:n,u))}}),Mr=r.id(function(n){return Fr(n,void 0)}),Nr=function(n){return function(r,t,u,e){return e(void 0!==r?n(r,t):r,t)}},zr=function(n){return function(r,t,u,e){return u.map(function(r){return void 0!==r?n(r,t):r},e(r,t))}},Cr=r.id(function(n){return function(r,t,u,e){var i=void 0,o=void 0;return gn(r)&&en(n,r,i=[],o=[]),u.map(function(n){var r=n?n.length:0,t=o?o.length:0,u=r+t;return u===t?o:I(I(Array(u),0,n,0,r),r,o,0,t)},e(i,t))}}),Dr=r.id,Lr=Un(function(n){return gn(n)&&n.length?n.length-1:0}),Pr=r.curry(function(n,r){return function(t,u,e,i){var o=gn(t),c=o&&t.length,f=y(0,c,0,n),a=y(f,c,c,r);return e.map(function(n){var r=n?n.length:0,u=f+r;return I(I(I(Array(c-a+u),0,t,0,f),f,n,0,r),u,t,a,c)},i(o?I(Array(Math.max(0,a-f)),0,t,f,a):void 0,u))}}),Br=function(n){return r.isObject(n)?_r(An(Tn,pn,n)):n},Jr=r.id,Wr=function(n){return s.apply(null,r.keys(n))},_r=r.id(function(n){return function(r,t,u,e){return u.map(function(t){return Y(n,t,r)},e(X(n,r),t))}}),Fr=r.curry(function(n,r){function t(t){return un(r,n,t)}return function(u,e,i,o){return i.map(t,o(un(n,r,u),e))}}),Tr=r.curry(V),$r=V(A,A),Gr=V(O(gn,r.id(function(n){for(var r=n.length,t=Array(r),u=0;u<r;++u)t[u]=[u,n[u]];return t})),O(r.isArray,r.id(function(n){for(var r=n.length,t=Array(r),u=0;u<r;++u){var e=n[u];2===e.length&&(t[e[0]]=e[1])}r=t.length;for(var i=0,o=0;o<r;++o){var c=t[o];void 0!==c&&(o!==i&&(t[i]=c),++i)}return t.length=i,t}))),Hr=V(x,x),Kr=r.id(function(n,t,u,e){return u.map(j,e((n instanceof Object||r.isString(n))&&1===n.length?n[0]:void 0,t))}),Qr=V(O(r.isString,decodeURI),O(r.isString,encodeURI)),Vr=V(O(r.isString,decodeURIComponent),O(r.isString,encodeURIComponent)),Xr=r.id(function(n){var t=n||r.object0,u=t.reviver,e=t.replacer,i=t.space;return V(O(r.isString,function(n){return JSON.parse(n,u)}),O(r.isDefined,function(n){return JSON.stringify(n,e,i)}))});n.seemsArrayLike=gn,n.toFunction=mn,n.assign=bn,n.modify=An,n.remove=jn,n.set=On,n.transform=wn,n.traverse=xn,n.compose=function(){var n=arguments.length;if(n<2)return n?arguments[0]:nn;for(var r=Array(n);n--;)r[n]=arguments[n];return r},n.flat=function(){for(var n=[Hn],r=0,t=arguments.length;r<t;++r)n.push(arguments[r],Hn);return n},n.lazy=c,n.choices=function(n){for(var r=arguments.length,t=Array(r>1?r-1:0),u=1;u<r;u++)t[u-1]=arguments[u];return t.length?dn(t.reduceRight(dn),n):n},n.choose=Un,n.cond=kn,n.condOf=In,n.ifElse=Sn,n.iftes=En,n.orElse=Rn,n.chain=qn,n.choice=function(){for(var n=arguments.length,r=Array(n),t=0;t<n;t++)r[t]=arguments[t];return r.reduceRight(dn,zn)},n.unless=function(n){return sn(n,o,nn)},n.when=Mn,n.optional=Nn,n.zero=zn,n.assignOp=function(n){return[Wr(n),Cn(n)]},n.modifyOp=function(n){return function(r,t,u,e){return o(r=n(r,t),t,u,e,r)}},n.setOp=Cn,n.removeOp=Dn,n.log=function(){var n=arguments,t=r.curry(function(r,t){return console.log.apply(console,I([],0,n,0,n.length).concat([r,t])),t});return V(t("get"),t("set"))},n.seq=Ln,n.branchOr=Pn,n.branch=Bn,n.branches=function(){for(var n=arguments.length,r={},t=0;t<n;++t)r[arguments[t]]=nn;return Bn(r)},n.elems=Jn,n.entries=Wn,n.keys=_n,n.matches=Fn,n.values=Tn,n.children=$n,n.query=function(){for(var n=[],r=0,t=arguments.length;r<t;++r){var u=mn(arguments[r]);n.push(Gn(vr(u)),u)}return n},n.satisfying=Gn,n.flatten=Hn,n.leafs=Kn,n.all=Qn,n.and=Vn,n.any=Xn,n.collectAs=Yn,n.collect=Zn,n.concatAs=nr,n.concat=rr,n.countIf=tr,n.count=ur,n.countsAs=er,n.counts=ir,n.foldl=or,n.foldr=cr,n.forEach=fr,n.forEachWith=ar,n.isDefined=vr,n.isEmpty=sr,n.joinAs=dr,n.join=lr,n.maximumBy=hr,n.maximum=pr,n.meanAs=yr,n.mean=gr,n.minimumBy=mr,n.minimum=br,n.none=Ar,n.or=jr,n.productAs=Or,n.product=wr,n.selectAs=xr,n.select=Ur,n.sumAs=kr,n.sum=Ir,n.get=f,n.lens=Sr,n.setter=Er,n.foldTraversalLens=Rr,n.defaults=function(n){function r(r){return un(n,void 0,r)}return function(t,u,e,i){return e.map(r,i(void 0!==t?t:n,u))}},n.define=qr,n.normalize=function(n){return[Nr(n),zr(n)]},n.required=Mr,n.reread=Nr,n.rewrite=zr,n.append=a,n.filter=Cr,n.find=v,n.findWith=function(n){var r=mn(n),t=vr(r);return[arguments.length>1?v(t,arguments[1]):v(t),r]},n.first=0,n.index=Dr,n.last=Lr,n.prefix=function(n){return Pr(0,n)},n.slice=Pr,n.suffix=function(n){return Pr(0===n?1/0:n?-n:0,void 0)},n.pickIn=Br,n.prop=Jr,n.props=s,n.propsOf=Wr,n.removable=function(){function n(n){if(!(n instanceof Object))return n;for(var t=0,e=u.length;t<e;++t)if(r.hasU(u[t],n))return n}for(var t=arguments.length,u=Array(t),e=0;e<t;e++)u[e]=arguments[e];return function(r,t,u,e){return u.map(n,e(r,t))}},n.valueOr=function(n){return function(r,t,u,e){return e(null!=r?r:n,t)}},n.pick=_r,n.replace=Fr,n.getInverse=d,n.iso=Tr,n.array=function(n){var r=d(n),t=f(n),u=function(n){return k(r,n)};return function(n,r,e,i){return e.map(u,i(k(t,n),r))}},n.inverse=function(n){return function(r,t,u,e){return u.map(function(r){return K(n,r)},e(G(n,r,void 0),t))}},n.complement=$r,n.identity=nn,n.indexed=Gr,n.is=function(n){return V(function(t){return r.acyclicEqualsU(n,t)},function(r){return!0===r?n:void 0})},n.keyed=vn,n.reverse=Hr,n.singleton=Kr,n.uri=Qr,n.uriComponent=Vr,n.json=Xr,n.pointer=function(n){"#"===n[0]&&(n=decodeURIComponent(n));for(var r=n.split("/"),t=r.length,u=1;u<t;++u){var e=r[u];r[u-1]=/^(0|[1-9]\d*)$/.test(e)?Sn(w,Number(e),e):"-"===e?Sn(w,a,e):e.replace("~1","/").replace("~0","~")}return r.length=t-1,r},Object.defineProperty(n,"__esModule",{value:!0})});
!function(n,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports,require("infestines")):"function"==typeof define&&define.amd?define(["exports","infestines"],r):r(n.L={},n.I)}(this,function(n,r){"use strict";function t(n,r){var t=r.length-n;if(t<2)return t?bn(r[n]):nn;for(var u=bn(r[n+--t]),e=function(n,r){return function(t,e){return u(t,e,n,r)}};--t;)e=$(bn(r[n+t]),e);var i=bn(r[n]);return function(n,r,t,u){return i(n,r,t,e(t,u))}}function u(n){var r=function n(r,t){return n.v=t,r};return r.v=n,r}function e(n,r,t,u){for(var i,o=n.length;t<o;++t)switch(typeof(i=n[t])){case"string":r=B(u.v=i,r);break;case"number":r=_(u.v=i,r);break;case"object":r=e(i,r,0,u);break;default:r=i(r,u.v,R,u)}return r}function i(n,u,e,i){for(var o,c,f=n.length,a=Array(f),v=0;v<f;++v)switch(a[v]=e,typeof(o=n[v])){case"string":e=B(o,e);break;case"number":e=_(o,e);break;default:e=t(v,n)(e,n[v-1],E,u||r.always(i)),f=v}for(f===n.length&&(e=u?u(e,n[f-1]):i);0<=--f;)e=r.isString(c=n[f])?J(c,e,a[f]):F(c,e,a[f]);return e}function o(n,t,u,e,i){var o=u.of;return o?o(n):u.map(r.always(n),e(i,t))}function c(n){function r(n,r,u,e){return t(n,r,u,e)}var t=function(u,e,i,o){return(t=bn(n(r)))(u,e,i,o)};return r}function f(n,r){return 1<arguments.length?K(n,r):function(r){return K(n,r)}}function a(n,r,t,u){var e=mn(n)?n.length:0;return t.map(function(r){return F(e,r,n)},u(void 0,e))}function v(n){var r=arguments.length>1?arguments[1]:{hint:0};return function(t,u,e,i){var o=mn(t)?t:"",c=r.hint=function(n,r,t){var u=n.hint,e=t.length;e<=u&&(u=e-1),u<0&&(u=0);for(var i=u-1;0<=i&&u<e;++u,--i){if(r(t[u],u,n))return u;if(r(t[i],i,n))return i}for(;u<e;++u)if(r(t[u],u,n))return u;for(;0<=i;--i)if(r(t[i],i,n))return i;return e}(r,n,o);return e.map(function(n){return F(c,n,o)},i(o[c],c))}}function s(){for(var n,r=arguments.length,t={},u=0;u<r;++u)t[n=arguments[u]]=n;return Fr(t)}function d(n,r){return 1<arguments.length?G(n,r,void 0):function(r){return G(n,r,void 0)}}var l=r.curry(function(n,r){return r instanceof n}),h=Object.create,p=r.freeze(function(n){return r.assign(h(null),0)}()),y=function(n,r,t,u){return void 0!==u?Math.min(Math.max(n,u<0?r+u:u),r):t},g=function(n){return function(r){return[r,n]}},m=function(n){return function(r){return void 0!==r?r:n}},b=m(0),A=function(n){return void 0!==n?!n:n},j=function(n){return void 0!==n?[n]:n},O=function(n,r){return function(t){return n(t)?r(t):void 0}},w=function(n){return!(n instanceof Object)||r.isArray(n)},x=r.id(function(n){if(mn(n)){for(var r=n.length,t=Array(r),u=0;r;)t[u++]=n[--r];return t}}),U=r.id(function(n,r){for(var t,u=r.length,e=Array(u),i=0,o=0;o<u;++o)void 0!==(t=n(r[o],o))&&(e[i++]=t);return i<u&&(e.length=i),e}),k=function(n,r){return mn(r)?U(n,r):void 0},I=r.id(function(n,r,t,u,e){for(;u<e;)n[r++]=t[u++];return n}),S={map:r.sndU,of:function(){},ap:function(n,r){return void 0!==n?n:r}},E={map:r.applyU,of:r.id,ap:r.applyU,chain:r.applyU},R={map:r.sndU},q=function(n,t){return{map:r.sndU,ap:n,of:r.always(t)}},M=q(function(n,r){return n+r},0),N=function(n){return r.curry(function(r,t,u){var e=void 0,i=void 0;return z(S,function(t,u){var o=r(t,u);void 0===o||void 0!==i&&!n(o,i)||(e=t,i=o)},t,u),e})},z=function(n,r,t,u){return bn(t)(u,void 0,n,r)},C=function(n,t){return r.curryN(4,function(r,u){return u=t(u),function(t,e){return n(z(u,r,t,e))}})},D=function(n){return function(r){return void 0!==r?[r,n]:n}},L=r.id(function(n){for(var r=[];D!==n;)r.push(n[0]),n=n[1];return r.reverse()}),P=function(n,r){return function(t){return function(u,e,i,o){return i.map(function(n){return r(t,n,u)},o(n(t,u),t))}}},B=function(n,r){return r instanceof Object?r[n]:void 0},J=r.id(function(n,t,u){return void 0!==t?r.assocPartialU(n,t,u):r.dissocPartialU(n,u)||r.object0}),W=P(B,J),_=function(n,r){return mn(r)?r[n]:void 0},F=r.id(function(n,r,t){mn(t)||(t="");var u=t.length;if(void 0!==r){for(var e=Math.max(n+1,u),i=Array(e),o=0;o<e;++o)i[o]=t[o];return i[n]=r,i}if(u<=n)return I(Array(u),0,t,0,u);for(var c=Array(u-1),f=0;f<n;++f)c[f]=t[f];for(var a=n+1;a<u;++a)c[a-1]=t[a];return c}),T=P(_,F),$=function(n,r){return function(t,u){return u=r(t,u),function(r,e){return n(r,e,t,u)}}},G=r.id(function(n,t,u){switch(typeof n){case"string":return J(n,t,u);case"number":return F(n,t,u);case"object":return i(n,0,u,t);default:return 4===n.length?n(u,void 0,E,r.always(t)):u}}),H=r.id(function(n,r,t){switch(typeof n){case"string":return J(n,r(B(n,t),n),t);case"number":return F(n,r(_(n,t),n),t);case"object":return i(n,r,t);default:return 4===n.length?n(t,void 0,E,r):(r(n(t,void 0),void 0),t)}}),K=r.id(function(n,t){switch(typeof n){case"string":return B(n,t);case"number":return _(n,t);case"object":for(var i,o=0,c=n.length;o<c;++o)switch(typeof(i=n[o])){case"string":t=B(i,t);break;case"number":t=_(i,t);break;default:return e(n,t,o,u(n[o-1]))}return t;default:return n(t,void 0,R,r.id)}}),Q=function(n,r){return function(t,u,e,i){return e.map(function(n){return r(n,t,u)},i(n(t,u),u))}},V=function(n,r){return function(t,u,e,i){return e.map(r,i(n(t),u))}},X=r.id(function(n,t){var u=void 0;for(var e in n){var i=n[e],o=r.isObject(i)?X(i,t):K(i,t);void 0!==o&&(u||(u={}),u[e]=o)}return u}),Y=r.id(function(n,t,u){for(var e in n){var i=t&&t[e],o=n[e];u=r.isObject(o)?Y(o,i,u):G(o,i,u)}return u}),Z=function(n){return r.constructorOf(n)!==Object?r.toObject(n):n},nn=function(n,r,t,u){return u(n,r)},rn=r.id(function(n){return function(r){for(var t={},u=n.length;u--;){var e=r[0];void 0!==e&&(t[n[u]]=e),r=r[1]}return t}}),tn=function(n,t){return function(u,e,i,o){var c=u instanceof Object?Z(u):r.object0;if(E===i){var f=void 0,a={};for(var v in t){f=1;var s=t[v](c[v],v,i,o);void 0!==s&&(a[v]=s)}var d=f;for(var l in c)if(void 0===(d&&t[l])){f=1;var h=n(c[l],l,i,o);void 0!==h&&(a[l]=h)}return f?a:u}if(S!==i){var p=i.map,y=i.ap,m=i.of,b=m(g),A=[];for(var j in t)A.push(j),b=y(p(g,b),t[j](c[j],j,i,o));var O=!!A.length||void 0;for(var w in c)void 0===(O&&t[w])&&(A.push(w),b=y(p(g,b),n(c[w],w,i,o)));return A.length?p(rn(A),b):m(u)}for(var x in t){var U=t[x](c[x],x,i,o);if(void 0!==U)return U}for(var k in c)if(void 0===t[k]){var I=n(c[k],k,i,o);if(void 0!==I)return I}}},un=function(n,t,u){return r.acyclicEqualsU(u,n)?t:u},en=r.id(function(n,r,t,u){for(var e,i=0,o=r.length;i<o;++i)(n(e=r[i],i)?t:u).push(e)}),on=function(n){return n[0]},cn=function(n){return n.index},fn=r.id(function(n,r){var t=r.lastIndex;r.lastIndex=cn(n)+n[0].length;var u=r.exec(n.input);return r.lastIndex=t,u&&u[0]&&u}),an=function(n){return function(r){return function(t){return[n,t,r]}}},vn=V(O(l(Object),r.id(function(n){n=Z(n);var r=[];for(var t in n)r.push([t,n[t]]);return r})),O(r.isArray,r.id(function(n){for(var r={},t=0,u=n.length;t<u;++t){var e=n[t];2===e.length&&(r[e[0]]=e[1])}return r}))),sn=function(n,r,t){return function(u,e,i,o){return(n(u,e)?r:t)(u,e,i,o)}},dn=function(n,r){return r=bn(r),n=bn(n),function(t,u,e,i){return(sr(r,t)?r:n)(t,u,e,i)}},ln=r.curry(function(n,r){return c(function(t){return En(r,nn,[n,t])})}),hn=function(n,r){return function(t,u,e,i){return e.chain(function(n){return r(n,u,e,i)},n(t,u,e,i))}},pn=function(n,r){return[r,Jr(n)]},yn=r.always(o),gn=function(n,r,t){return function(u,e){return n(u,e)?r:t(u,e)}},mn=function(n){return n instanceof Object&&(n=n.length)===n>>0&&0<=n||r.isString(n)},bn=r.id(function(n){switch(typeof n){case"string":return W(n);case"number":return T(n);case"object":return t(0,n);default:return 4===n.length?n:(u=n,function(n,t,e,i){return e.map(r.always(n),i(u(n,t),t))})}var u}),An=r.curry(function(n,r,t){return G([n,_r(r)],r,t)}),jn=r.curry(H),On=r.curry(function(n,r){return G(n,void 0,r)}),wn=r.curry(G),xn=r.curry(function(n,t){return H(n,r.id,t)}),Un=r.curry(z),kn=function(n){return function(r,t,u,e){return bn(n(r,t))(r,t,u,e)}},In=r.id(function(){for(var n=arguments.length,r=Cn;n--;){var t=arguments[n];r=t.length<2?bn(t[0]):sn(t[0],bn(t[1]),r)}return r}),Sn=r.id(function(n){n=bn(n);for(var t=yn,u=arguments.length;--u;){var e=arguments[u];t=1===e.length?r.always(bn(e[0])):gn(e[0],bn(e[1]),t)}return function(r,u,e,i){return n(r,u,R,t)(r,u,e,i)}}),En=r.curry(function(n,r,t){return sn(n,bn(r),bn(t))}),Rn=r.id(function(n,r){for(var t=arguments.length,u=1&t?bn(arguments[--t]):Cn;0<=(t-=2);)u=sn(arguments[t],bn(arguments[t+1]),u);return u}),qn=r.curry(dn),Mn=r.curry(function(n,r){return[r,kn(function(r,t){return void 0!==r?n(r,t):Cn})]}),Nn=function(n){return sn(n,nn,o)},zn=Nn(r.isDefined),Cn=function(n,r,t,u){return o(n,r,t,u)},Dn=function(n){return function(r,t,u,e){return o(n,t,u,e,n)}},Ln=Dn(),Pn=r.id(function(){var n=arguments.length,r=Cn;if(n)for(r=bn(arguments[--n]);n;)r=hn(bn(arguments[--n]),r);return r}),Bn=r.id(r.curryN(2,function(n){return n=bn(n),function(t){return function n(t,u){var e=h(null);for(var i in u){var o=u[i];e[i]=r.isObject(o)?n(t,o):bn(o)}return tn(t,e)}(n,t)}})),Jn=Bn(Cn),Wn=r.id(function(n,t,u,e){return mn(n)?u===E?U(e,n):u===S?function(n,r){for(var t=0,u=r.length;t<u;++t){var e=n(r[t],t);if(void 0!==e)return e}}(e,n):function(n,t,u){var e=n.map,i=n.ap,o=n.of(D),c=u.length;if(e===r.sndU){for(var f=0;f<c;++f)o=i(o,t(u[f],f));return o}for(var a=0;a<c;++a)o=i(e(D,o),t(u[a],a));return e(L,o)}(u,e,n):u.of(n)}),_n=bn([vn,Wn]),Fn=bn([vn,Wn,0]),Tn=r.id(function(n){return function(t,u,e,i){if(r.isString(t)){var c=e.map;if(n.global){var f=[""];return f.input=t,f.index=0,S===e?function(n,r,t){for(;t=fn(t,r);){var u=n(on(t),cn(t));if(void 0!==u)return u}}(i,n,f):c((v=t,function(n){for(var r="",t=0,u=function(n){for(var r=[];an!==n;)r.push(n[0],n[1]),n=n[2];return r}(n),e=u.length-2;-2!==e;e+=-2){var i=u[e],o=cn(i);r+=v.slice(t,o);var c=u[e+1];void 0!==c&&(r+=c),t=o+i[0].length}return r+v.slice(t)}),function(n,r,t,u,e,i){for(var o=t(an);i=fn(i,e);)o=r(r(n(an,t(i)),o),u(on(i),cn(i)));return o}(c,e.ap,e.of,i,n,f))}var a=t.match(n);if(a)return c(function(r){return t.replace(n,void 0!==r?r:"")},i(a[0],cn(a)))}var v;return o(t,void 0,e,i)}}),$n=r.id(tn(nn,p)),Gn=En(r.isArray,Wn,En(r.isObject,$n,Cn)),Hn=ln(Gn),Kn=ln(Wn,function(n){return!r.isArray(n)}),Qn=Hn(function(n){return!r.isArray(n)&&!r.isObject(n)}),Vn=r.curry(function(n,r,t){return!z(S,function(r,t){if(!n(r,t))return!0},r,t)}),Xn=Vn(r.id),Yn=r.curry(function(n,r,t){return!!z(S,function(r,t){if(n(r,t))return!0},r,t)}),Zn=r.curry(function(n,r,t){var u=[];return z(S,function(r,t){var e=n(r,t);void 0!==e&&u.push(e)},r,t),u}),nr=Zn(r.id),rr=C(r.id,function(n){return q(n.concat,n.empty())}),tr=rr(r.id),ur=r.curry(function(n,r,t){return z(M,function(r,t){return n(r,t)?1:0},r,t)}),er=ur(r.isDefined),ir=r.curry(function(n,r,t){var u=new Map;return z(S,function(r,t){var e=n(r,t),i=u.get(e);u.set(e,void 0!==i?i+1:1)},r,t),u}),or=ir(r.id),cr=r.curry(function(n,r,t,u){return z(S,function(t,u){r=n(r,t,u)},t,u),r}),fr=r.curry(function(n,r,t,u){var e=[],i=[];z(S,function(n,r){i.push(n),e.push(r)},t,u);for(var o=i.length-1;0<=o;--o)r=n(r,i[o],e[o]);return r}),ar=r.curry(function(n,r,t){return z(S,function(r,t){n(r,t)},r,t)}),vr=r.curry(function(n,r,t,u){var e=n();return z(S,function(n,t){r(e,n,t)},t,u),e}),sr=r.curry(function(n,t){return void 0!==z(S,r.id,n,t)}),dr=r.curry(function(n,t){return!z(S,r.always(!0),n,t)}),lr=C(function(n){return void 0!==n?String(n):""},r.id(function(n){return q(function(r,t){return void 0!==r?void 0!==t?r+n+t:r:t})})),hr=lr(r.id),pr=N(function(n,r){return n>r}),yr=pr(r.id),gr=r.curry(function(n,r,t){var u=0,e=0;return z(S,function(r,t){var i=n(r,t);void 0!==i&&(e+=1,u+=i)},r,t),u/e}),mr=gr(r.id),br=N(function(n,r){return n<r}),Ar=br(r.id),jr=r.curry(function(n,r,t){return!z(S,function(r,t){if(n(r,t))return!0},r,t)}),Or=Yn(r.id),wr=Un(q(function(n,r){return n*r},1)),xr=wr(m(1)),Ur=Un(S),kr=Ur(r.id),Ir=Un(M),Sr=Ir(b),Er=r.curry(Q),Rr=Er(r.id),qr=r.curry(function(n,r){return Q(n(r),wn(r))}),Mr=r.id(function(n){var r=m(n);return function(t,u,e,i){return e.map(r,i(void 0!==t?t:n,u))}}),Nr=r.id(function(n){return Tr(n,void 0)}),zr=function(n){return function(r,t,u,e){return e(void 0!==r?n(r,t):r,t)}},Cr=function(n){return function(r,t,u,e){return u.map(function(r){return void 0!==r?n(r,t):r},e(r,t))}},Dr=r.id(function(n){return function(r,t,u,e){var i=void 0,o=void 0;return mn(r)&&en(n,r,i=[],o=[]),u.map(function(n){var r=n?n.length:0,t=o?o.length:0,u=r+t;return u===t?o:I(I(Array(u),0,n,0,r),r,o,0,t)},e(i,t))}}),Lr=r.id,Pr=kn(function(n){return mn(n)&&n.length?n.length-1:0}),Br=r.curry(function(n,r){return function(t,u,e,i){var o=mn(t),c=o&&t.length,f=y(0,c,0,n),a=y(f,c,c,r);return e.map(function(n){var r=n?n.length:0,u=f+r;return I(I(I(Array(c-a+u),0,t,0,f),f,n,0,r),u,t,a,c)},i(o?I(Array(Math.max(0,a-f)),0,t,f,a):void 0,u))}}),Jr=function(n){return r.isObject(n)?Fr(jn($n,pn,n)):n},Wr=r.id,_r=function(n){return s.apply(null,r.keys(n))},Fr=r.id(function(n){return function(r,t,u,e){return u.map(function(t){return Y(n,t,r)},e(X(n,r),t))}}),Tr=r.curry(function(n,r){function t(t){return un(r,n,t)}return function(u,e,i,o){return i.map(t,o(un(n,r,u),e))}}),$r=r.curry(V),Gr=V(A,A),Hr=V(O(mn,r.id(function(n){for(var r=n.length,t=Array(r),u=0;u<r;++u)t[u]=[u,n[u]];return t})),O(r.isArray,r.id(function(n){for(var r=n.length,t=Array(r),u=0;u<r;++u){var e=n[u];2===e.length&&(t[e[0]]=e[1])}r=t.length;for(var i=0,o=0;o<r;++o){var c=t[o];void 0!==c&&(o!==i&&(t[i]=c),++i)}return t.length=i,t}))),Kr=V(x,x),Qr=r.id(function(n,t,u,e){return u.map(j,e((n instanceof Object||r.isString(n))&&1===n.length?n[0]:void 0,t))}),Vr=V(O(r.isString,decodeURI),O(r.isString,encodeURI)),Xr=V(O(r.isString,decodeURIComponent),O(r.isString,encodeURIComponent)),Yr=r.id(function(n){var t=n||r.object0,u=t.reviver,e=t.replacer,i=t.space;return V(O(r.isString,function(n){return JSON.parse(n,u)}),O(r.isDefined,function(n){return JSON.stringify(n,e,i)}))});n.seemsArrayLike=mn,n.toFunction=bn,n.assign=An,n.modify=jn,n.remove=On,n.set=wn,n.transform=xn,n.traverse=Un,n.compose=function(){var n=arguments.length;if(n<2)return n?arguments[0]:nn;for(var r=Array(n);n--;)r[n]=arguments[n];return r},n.flat=function(){for(var n=[Kn],r=0,t=arguments.length;r<t;++r)n.push(arguments[r],Kn);return n},n.lazy=c,n.choices=function(n){for(var r=arguments.length,t=Array(r>1?r-1:0),u=1;u<r;u++)t[u-1]=arguments[u];return t.length?dn(t.reduceRight(dn),n):n},n.choose=kn,n.cond=In,n.condOf=Sn,n.ifElse=En,n.iftes=Rn,n.orElse=qn,n.chain=Mn,n.choice=function(){for(var n=arguments.length,r=Array(n),t=0;t<n;t++)r[t]=arguments[t];return r.reduceRight(dn,Cn)},n.unless=function(n){return sn(n,o,nn)},n.when=Nn,n.optional=zn,n.zero=Cn,n.assignOp=function(n){return[_r(n),Dn(n)]},n.modifyOp=function(n){return function(r,t,u,e){return o(r=n(r,t),t,u,e,r)}},n.setOp=Dn,n.removeOp=Ln,n.log=function(){var n=arguments,t=r.curry(function(r,t){return console.log.apply(console,I([],0,n,0,n.length).concat([r,t])),t});return V(t("get"),t("set"))},n.seq=Pn,n.branchOr=Bn,n.branch=Jn,n.branches=function(){for(var n=arguments.length,r={},t=0;t<n;++t)r[arguments[t]]=nn;return Jn(r)},n.elems=Wn,n.entries=_n,n.keys=Fn,n.matches=Tn,n.values=$n,n.children=Gn,n.query=function(){for(var n=[],r=0,t=arguments.length;r<t;++r){var u=bn(arguments[r]);n.push(Hn(sr(u)),u)}return n},n.satisfying=Hn,n.flatten=Kn,n.leafs=Qn,n.all=Vn,n.and=Xn,n.any=Yn,n.collectAs=Zn,n.collect=nr,n.concatAs=rr,n.concat=tr,n.countIf=ur,n.count=er,n.countsAs=ir,n.counts=or,n.foldl=cr,n.foldr=fr,n.forEach=ar,n.forEachWith=vr,n.isDefined=sr,n.isEmpty=dr,n.joinAs=lr,n.join=hr,n.maximumBy=pr,n.maximum=yr,n.meanAs=gr,n.mean=mr,n.minimumBy=br,n.minimum=Ar,n.none=jr,n.or=Or,n.productAs=wr,n.product=xr,n.selectAs=Ur,n.select=kr,n.sumAs=Ir,n.sum=Sr,n.get=f,n.lens=Er,n.setter=Rr,n.foldTraversalLens=qr,n.defaults=function(n){function r(r){return un(n,void 0,r)}return function(t,u,e,i){return e.map(r,i(void 0!==t?t:n,u))}},n.define=Mr,n.normalize=function(n){return[zr(n),Cr(n)]},n.required=Nr,n.reread=zr,n.rewrite=Cr,n.append=a,n.filter=Dr,n.find=v,n.findWith=function(n){var r=bn(n),t=sr(r);return[arguments.length>1?v(t,arguments[1]):v(t),r]},n.first=0,n.index=Lr,n.last=Pr,n.prefix=function(n){return Br(0,n)},n.slice=Br,n.suffix=function(n){return Br(0===n?1/0:n?-n:0,void 0)},n.pickIn=Jr,n.prop=Wr,n.props=s,n.propsOf=_r,n.removable=function(){function n(n){if(!(n instanceof Object))return n;for(var t=0,e=u.length;t<e;++t)if(r.hasU(u[t],n))return n}for(var t=arguments.length,u=Array(t),e=0;e<t;e++)u[e]=arguments[e];return function(r,t,u,e){return u.map(n,e(r,t))}},n.valueOr=function(n){return function(r,t,u,e){return e(null!=r?r:n,t)}},n.pick=Fr,n.replace=Tr,n.getInverse=d,n.iso=$r,n.array=function(n){var r=d(n),t=f(n),u=function(n){return k(r,n)};return function(n,r,e,i){return e.map(u,i(k(t,n),r))}},n.inverse=function(n){return function(r,t,u,e){return u.map(function(r){return K(n,r)},e(G(n,r,void 0),t))}},n.complement=Gr,n.identity=nn,n.indexed=Hr,n.is=function(n){return V(function(t){return r.acyclicEqualsU(n,t)},function(r){return!0===r?n:void 0})},n.keyed=vn,n.reverse=Kr,n.singleton=Qr,n.uri=Vr,n.uriComponent=Xr,n.json=Yr,n.pointer=function(n){"#"===n[0]&&(n=decodeURIComponent(n));for(var r=n.split("/"),t=r.length,u=1;u<t;++u){var e=r[u];r[u-1]=/^(0|[1-9]\d*)$/.test(e)?En(w,Number(e),e):"-"===e?En(w,a,e):e.replace("~1","/").replace("~0","~")}return r.length=t-1,r},Object.defineProperty(n,"__esModule",{value:!0})});
{
"name": "partial.lenses",
"version": "13.6.0",
"version": "13.6.1",
"description": "Partial lenses is a comprehensive, high-performance optics library for JavaScript",

@@ -74,10 +74,10 @@ "module": "dist/partial.lenses.es.js",

"eslint": "^4.17.0",
"klipse-github-docs-generator": "^0.3.1",
"klipse-github-docs-generator": "^0.3.2",
"livereload": "^0.6.3",
"mocha": "^5.0.0",
"mocha": "^5.0.1",
"nyc": "^11.4.1",
"ramda": "^0.25.0",
"rollup": "^0.55.5",
"rollup": "^0.56.0",
"rollup-plugin-babel": "^3.0.3",
"rollup-plugin-node-resolve": "^3.0.2",
"rollup-plugin-node-resolve": "^3.0.3",
"rollup-plugin-replace": "^2.0.0",

@@ -84,0 +84,0 @@ "rollup-plugin-uglify": "^3.0.0",

@@ -732,2 +732,3 @@ import * as I from './ext/infestines'

const condOfDefault = I.always(zeroOp)
const condOfCase = (p, o, r) => (y, j) => (p(y, j) ? o : r(y, j))

@@ -836,3 +837,3 @@

of = toFunction(of)
let op = undefined
let op = condOfDefault
let n = arguments.length

@@ -844,3 +845,3 @@ while (--n) {

? I.always(toFunction(c[0]))
: condOfCase(c[0], toFunction(c[1]), op || I.always(zero))
: condOfCase(c[0], toFunction(c[1]), op)
}

@@ -847,0 +848,0 @@ return (x, i, C, xi2yC) => of(x, i, Const, op)(x, i, C, xi2yC)

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc