"use strict";function_typeof(t){return(_typeof="function"==typeofSymbol&&"symbol"==typeofSymbol.iterator?function(t){returntypeoft}:function(t){returnt&&"function"==typeofSymbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeoft})(t)}!function(t,n){"object"==("undefined"==typeofexports?"undefined":_typeof(exports))&&"undefined"!=typeofmodule?n(exports):"function"==typeofdefine&&define.amd?define(["exports"],n):n((t=t||self).R={})}(void0,function(t){functiona(t){returnnull!=t&&"object"==_typeof(t)&&!0===t["@@functional/placeholder"]}functiono(r){returnfunctiont(n){return0===arguments.length||a(n)?t:r.apply(this,arguments)}}functionn(e){returnfunctiont(n,r){switch(arguments.length){case0:returnt;case1:returna(n)?t:o(function(t){returne(n,t)});default:returna(n)&&a(r)?t:a(n)?o(function(t){returne(t,r)}):a(r)?o(function(t){returne(n,t)}):e(n,r)}}}varr=n(function(t,n){return+t++n});functioni(t,n){for(varr=(t=t||[]).length,e=(n=n||[]).length,u=[],i=0;i<r;)u[u.length]=t[i],i+=1;for(i=0;i<e;)u[u.length]=n[i],i+=1;returnu}functionf(t,s){switch(t){case0:returnfunction(){returns.apply(this,arguments)};case1:returnfunction(t){returns.apply(this,arguments)};case2:returnfunction(t,n){returns.apply(this,arguments)};case3:returnfunction(t,n,r){returns.apply(this,arguments)};case4:returnfunction(t,n,r,e){returns.apply(this,arguments)};case5:returnfunction(t,n,r,e,u){returns.apply(this,arguments)};case6:returnfunction(t,n,r,e,u,i){returns.apply(this,arguments)};case7:returnfunction(t,n,r,e,u,i,o){returns.apply(this,arguments)};case8:returnfunction(t,n,r,e,u,i,o,c){returns.apply(this,arguments)};case9:returnfunction(t,n,r,e,u,i,o,c,a){returns.apply(this,arguments)};case10:returnfunction(t,n,r,e,u,i,o,c,a,f){returns.apply(this,arguments)};default:throwError("First argument to _arity must be a non-negative integer no greater than ten")}}functions(i,o,c){returnfunction(){for(vart,n=[],r=0,e=i,u=0;u<o.length||r<arguments.length;){o.length<=u||a(o[u])&&r<arguments.length?(t=arguments[r],r+=1):t=o[u],a(n[u]=t)||--e,u+=1}return0<e?f(e,s(i,n,c)):c.apply(this,n)}}varc=n(function(t,n){return1===t?o(n):f(t,s(t,[],n))}),e=o(function(u){returnc(u.length,function(){varn=0,r=arguments[0],e=arguments[arguments.length-1],t=Array.prototype.slice.call(arguments,0);returnt[0]=function(){vart=r.apply(this,i(arguments,[n,e]));returnn+=1,t},u.apply(this,t)})});functionu(i){returnfunctiont(r,e,u){switch(arguments.length){case0:returnt;case1:returna(r)?t:n(function(t,n){returni(r,t,n)});case2:returna(r)&&a(e)?t:a(r)?n(function(t,n){returni(t,e,n)}):a(e)?n(function(t,n){returni(r,t,n)}):o(function(t){returni(r,e,t)});default:returna(r)&&a(e)&&a(u)?t:a(r)&&a(e)?n(function(t,n){returni(t,n,u)}):a(r)&&a(u)?n(function(t,n){returni(t,e,n)}):a(e)&&a(u)?n(function(t,n){returni(r,t,n)}):a(r)?o(function(t){returni(t,e,u)}):a(e)?o(function(t){returni(r,t,u)}):a(u)?o(function(t){returni(r,e,t)}):i(r,e,u)}}}varl=u(function(t,n,r){if(r.length<=t||t<-r.length)returnr;vare=(t<0?r.length:0)+t,u=i(r);returnu[e]=n(r[e]),u}),p=Array.isArray||function(t){returnnull!=t&&0<=t.length&&"[object Array]"===Object.prototype.toString.call(t)};functionh(t){returnnull!=t&&"function"==typeoft["@@transducer/step"]}functiony(e,u,i){returnfunction(){if(0===arguments.length)returni();vart=Array.prototype.slice.call(arguments,0),n=t.pop();if(!p(n)){for(varr=0;r<e.length;){if("function"==typeofn[e[r]])returnn[e[r]].apply(n,t);r+=1}if(h(n))returnu.apply(null,t)(n)}returni.apply(this,arguments)}}functiond(t){returnt&&t["@@transducer/reduced"]?t:{"@@transducer/value":t,"@@transducer/reduced":!0}}varg={init:function(){returnthis.xf["@@transducer/init"]()},result:function(t){returnthis.xf["@@transducer/result"](t)}};functionv(t,n){this.xf=n,this.f=t,this.all=!0}v.prototype["@@transducer/init"]=g.init,v.prototype["@@transducer/result"]=function(t){returnthis.all&&(t=this.xf["@@transducer/step"](t,!0)),this.xf["@@transducer/result"](t)},v.prototype["@@transducer/step"]=func