!function(t,n){"object"==typeofexports&&"undefined"!=typeofmodule?n(exports):"function"==typeofdefine&&define.amd?define(["exports"],n):n((t=t||self).R={})}(this,function(t){"use strict";functions(t){return(s="function"==typeofSymbol&&"symbol"==typeofSymbol.iterator?function(t){returntypeoft}:function(t){returnt&&"function"==typeofSymbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeoft})(t)}functionf(t){returnnull!=t&&"object"===s(t)&&!0===t["@@functional/placeholder"]}functiono(r){returnfunctiont(n){return0===arguments.length||f(n)?t:r.apply(this,arguments)}}functionn(e){returnfunctiont(n,r){switch(arguments.length){case0:returnt;case1:returnf(n)?t:o(function(t){returne(n,t)});default:returnf(n)&&f(r)?t:f(n)?o(function(t){returne(t,r)}):f(r)?o(function(t){returne(n,t)}):e(n,r)}}}varr=n(function(t,n){return+t++n});functionc(t,n){varr,e=(t=t||[]).length,u=(n=n||[]).length,i=[];for(r=0;r<e;)i[i.length]=t[r],r+=1;for(r=0;r<u;)i[i.length]=n[r],r+=1;returni}functionl(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")}}functionp(o,c,a){returnfunction(){for(vart=[],n=0,r=o,e=0,u=!1;e<c.length||n<arguments.length;){vari;c.length<=e||f(c[e])&&n<arguments.length?(i=arguments[n],n+=1):i=c[e],f(t[e]=i)?u=!0:r-=1,e+=1}returnu||0<r?l(Math.max(0,r),p(o,t,a)):a.apply(this,t)}}vara=n(function(t,n){return1===t?o(n):l(t,p(t,[],n))}),e=o(function(u){returna(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,c(arguments,[n,e]));returnn+=1,t},u.apply(this,t)})}),u=o(function(u){returna(u.length,function(){varn=arguments[0],r=arguments[arguments.length-1],e=r.length-1,t=Array.prototype.slice.call(arguments,0);returnt[0]=function(){vart=n.apply(this,c(arguments,[e,r]));returne-=1,t},u.apply(this,t)})});functioni(i){returnfunctiont(r,e,u){switch(arguments.length){case0:returnt;case1:returnf(r)?t:n(function(t,n){returni(r,t,n)});case2:returnf(r)&&f(e)?t:f(r)?n(function(t,n){returni(t,e,n)}):f(e)?n(function(t,n){returni(r,t,n)}):o(function(t){returni(r,e,t)});default:returnf(r)&&f(e)&&f(u)?t:f(r)&&f(e)?n(function(t,n){returni(t,n,u)}):f(r)&&f(u)?n(function(t,n){returni(t,e,n)}):f(e)&&f(u)?n(function(t,n){returni(r,t,n)}):f(r)?o(function(t){returni(t,e,u)}):f(e)?o(function(t){returni(r,t,u)}):f(u)?o(function(t){returni(r,e,t)}):i(r,e,u)}}}varh=i(function(t,n,r){vare=r.length;if(e<=t||t<-e)returnr;varu=(e+t)%e,i=c(r);returni[u]=n(r[u]),i}),y=Array.isArray||function(t){returnnull!=t&&0<=t.length&&"[object Array]"===Object.prototype.toString.call(t)};functiond(t){returnnull!=t&&"function"==typeoft["@@transducer/step"]}functionv(r,e,u){returnfunction(){if(0===arguments.length)returnu();vart=arguments[arguments.length-1];if(!y(t)){for(varn=0;n<r.length;){if("function"==typeoft[r[n]])returnt[r[n]].apply(t,Array.prototype.slice.call(arguments,0,-1));n+=1}if(d(t))returne.apply(null,Array.prototype.slice.call(arguments,0,-1))(t)}returnu.apply(this,arguments)}}functiong(t){returnt&&t["@@transducer/reduced"]?t:{"@@transducer/value":t,"@@transducer/reduced":!0}}varm=function(){returnthis.xf["@@transducer/init"]()},b=function(t){returnthis.xf["@@transducer/result"](t)};functionx(t,n){this.xf=n,this.f=t,this.all=!0}x.prototype["@@transducer/init"]=m,x.prototype["@@transducer/result"]=function(t){returnthis.all&&(t=this.xf["@@transducer/step"](t,!0)),this.xf["@@transducer/result"](t)},x.prototype["@@transducer/step"]=function(t,n){returnthis.f(n)||(this.all=!1,t=g(this.xf["@@transducer/step"](t,!1))),t};varw=n(v(["all"],function(n){returnfunction(t){returnnewx(n,t)}},function(t,n){for(varr=0;r<n.length;){if(!t(n[r]))return!1;r+=1}return!0}));functionj(t){for(varn,r=[];!(n=t.next()).done;)r.push(n.value);returnr}functionA(t,n,r){for(vare=0,u=r.length;e<u;){if(t(n,r[e]))return!0;e+=1}return!1}functionO(t,n){returnObject.prototype.hasOwnProperty.call(n,t)}functionS(t,n){for(varr=0;r<t.length;){if(t[r]===n)return!0;r+=1}return!1}varE="function"==typeofObject.is?Object.is:function(t,n){returnt===n?0!==t||1/t==1/n:t!=t&&n!=n},_=Object.prototype.toString,I=function(){return"[object Arguments]"===_.call(arguments)?function(t){return"[object Arguments]"===_.call(t)}:function(t){returnO("callee",t)}}(),N=!{toString:null}.propertyIsEnumerable("toString"),k=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],W=function(){returnarguments.propertyIsEnumerable("length")}(),q=o("function"!=typeofObject.keys||W?function(t){if(Object(t)!==t)return[];varn,r,e=[],u=W&&I(t);for(nint)!O(n,t)||u&&"length"===n||(e[e.length]=n);if(N)for(r=k.length-1;0<=r;)O(n=k[r],t)&&!S(e,n)&&(e[e.length]=n),r-=1;returne}:function(t){returnObject(t)!==t?[]:Object.keys(t)}),U=o(function(t){returnnull===t?"Null":void0===t?"Undefined":Object.prototype.toString.call(t).slice(8,-1)});functionF(t,n,r,e){varu=j(t);functioni(t,n){returnP(t,n,r.slice(),e.slice())}return!A(function(t,n){return!A(i,n,t)},j(n),u)}functionP(t,n,r,e){if(E(t,n))return!0;varu=U(t);if(u!==U(n))return!1;if("function"==typeoft["fantasy-land/equals"]||"function"==typeofn["fantasy-land/equals"])return"function"==typeoft["fantasy-land/equals"]&&t["fantasy-land/equals"](n)&&"function"==typeofn["fantasy-land/equals"]&&n["fantasy-land/equals"](t);if("function"==typeoft.equals||"function"==typeofn.equals)return"function"==typeoft.equals&&t.equals(n)&&"function"==typeofn.equals&&n.equals(t);switch(u){case"Arguments":case"Array":case"Object":if("function"==typeoft.constructor&&"Promise"===function(t){varn=(t+"").match(/^function (\w*)/);returnnull==n?"":n[1]}(t.constructor))returnt===n;break;case"Boolean":case"Number":case"String":if(s(t)!==s(n)||!E(t.valueOf(),n.valueOf()))return!1;break;case"Date":if(!E(t.valueOf(),n.valueOf()))return!1;break;case"Error":returnt.name===n.name&&t.message===n.message;case"RegExp":if(t.source!==n.source||t.global!==n.global||t.ignoreCase!==n.ignoreCase||t.multiline!==n.multiline||t.sticky!==n.sticky||t.unicode!==n.unicode)return!1}for(vari=r.length-1;0<=i;){if(r[i]===t)returne[i]===n;i-=1}switch(u){case"Map":returnt.size===n.size&&F(t.entries(),n.entries(),r.concat([t]),e.concat([n]));case"Set":returnt.size===n.size&&F(t.values(),n.values(),r.concat([t]),e.concat([n]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}varo=q(t);if(o.length!==q(n).length)return!1;varc=r.concat([t]),a=e.concat([n]);for(i=o.length-1;0<=i;){varf=o[i];if(!O(f,n)||!P(n[f],t[f],c,a))return!1;i-=1}return!0}varB=n(function(t,n){returnP(t,n,[],[])});functionC(t,n,r){vare,u;if("function"==typeoft.indexOf)switch(s(n)){case"number":if(0===n){for(e=1/n;r<t.length;){if(0===(u=t[r])&&1/u==e)returnr;r+=1}return-1}if(n==n)returnt.indexOf(n,r);for(;r<t.length;){if("number"==typeof(u=t[r])&&u!=u)returnr;r+=1}return-1;case"string":case"boolean":case"function":case"undefined":returnt.indexOf(n,r);case"object":if(null===n)returnt.indexOf(n,r)}for(;r<t.length;){if(B(t[r],n))returnr;r+=1}return-1}functionT(t,n){return0<=C(n,t,0)}functionR(t,n){for(varr=0,e=n.length,u=Array(e);r<e;)u[r]=t(n[r]),r+=1;returnu}functionM(t){return'"'+t.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0").replace(/"/g,'\\"')+'"'}functionD(t){return(t<10?"0":"")+t}varz="function"==typeofDate.prototype.toISOString?function(t){returnt.toISOString()}:function(t){returnt.getUTCFullYear()+"-"+D(1+t.getUTCMonth())+"-"+D(t.getUTCDate())+"T"+D(t.getUTCHours())+":"+D(t.getUTCMinutes())+":"+D(t.getUTCSeconds())+"."+(t.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};functionL(t){returnfunction(){return!t.apply(this,arguments)}}functionV(t,n,r){for(vare=0,u=r.length;e<u;)n=t(n,r[e]),e+=1;returnn}functionG(t,n){for(varr=0,e=n.length,u=[];r<e;)t(n[r])&&(u[u.length]=n[r]),r+=1;returnu}functionK(t){return"[object Object]"===Object.prototype.toString.call(t)}function$(t,n){this.xf=n,this.f=t}$.prototype["@@transducer/init"]=m,$.prototype["@@transducer/result"]=b,$.prototype["@@transducer/step"]=function(t,n){returnthis.f(n)?this.xf["@@transducer/step"](t,n):t};varH=n(v(["fantasy-land/filter","filter"],function(n){returnfunction(t){returnnew$(n,t)}},function(r,e){returnK(e)?V(function(t,n){returnr(e[n])&&(t[n]=e[n]),t},{},q(e)):G(r,e)})),J=n(function(t,n){returnH(L(t),n)});functionX(r,e){functionu(t){varn=e.concat([r]);returnT(t,n)?"<Circular>":X(t,n)}functiont(n,t){returnR(function(t){returnM(t)+": "+u(n[t])},t.slice().sort())}switch(Object.prototype.toString.call(r)){case"[object Arguments]":return"(function() { return arguments; }("+R(u,r).join(", ")+"))";case"[object Array]":return"["+R(u,r).concat(t(r,J(function(t){return/^\d+$/.test(t)},q(r)))).join(", ")+"]";case"[object Boolean]":return"object"===s(r)?"new Boolean("+u(r.valueOf())+")":""+r;case"[object Date]":return"new Date("+(isNaN(r.valueOf())?u(NaN):M(z(r)))+")";case"[object Map]":return"new Map("+u(Array.from(r))+")";case"[object Null]":return"null";case"[object Number]":return"object"===s(r)?"new Number("+u(r.valueOf())+")":1/r==-1/0?"-0":r.toString(10);case"[object Set]":return"new Set("+u(Array.from(r).sort())+")";case"[object String]":return"object"===s(r)?"new String("+u(r.valueOf())+")":M(r);case"[object Undefined]":return"undefined";default:if("function"==typeofr.toString){varn=""+r;if("[object Object]"!=n)returnn}return"{"+t(r,q(r)).join(", ")+"}"}}varY=o(function(t){returnX(t,[])}),Z=n(function(t,n){if(t===n)returnn;functionr(t,n){if(n<t!=t<n)returnt<n?n:t}vare=r(t,n);if(void0!==e)returne;varu=r(s(t),s(n));if(void0!==u)returnu===s(t)?t:n;vari=Y(t),o=r(i,Y(n));returnvoid0!==o&&o===i?t:n});functionQ(t,n){this.xf=n,this.f=t}Q.prototype["@@transducer/init"]=m,Q.prototype["@@transducer/result"]=b,Q.prototype["@@transducer/step"]=function(t,n){returnthis.xf["@@transducer/step"](t,this.f(n))};functiontt(n){returnfunction(t){returnnewQ(n,t)}}varnt=n(v(["fantasy-land/map","map"],tt,function(r,e){switch(Object.prototype.toString.call(e)){case"[object Function]":returna(e.length,function(){returnr.call(this,e.apply(this,arguments))});case"[object Object]":returnV(function(t,n){returnt[n]=r(e[n]),t},{},q(e));default:returnR(r,e)}})),rt=Number.isInteger||function(t){returnt<<0===t};functionet(t){return"[object String]"===Object.prototype.toString.call(t)}varut=n(function(t,n){varr=t<0?n.length+t:t;returnet(n)?n[0|r]:n[r]}),it=n(function(t,n){if(null!=n)returnrt(t)?ut(t,n):n[t]}),ot=n(function(t,n){returnnt(it(t),n)}),ct=o(function(t){return!!y(t)||!!t&&("object"===s(t)&&(!et(t)&&(0===t.length||0<t.length&&(t.hasOwnProperty(0)&&t.hasOwnProperty(t.length-1)))))}),at="undefined"!=typeofSymbol?Symbol.iterator:"@@iterator";functionft(e,u,i){returnfunction(t,n,r){if(ct(r))returne(t,n,r);if(null==r)returnn;if("function"==typeofr["fantasy-land/reduce"])returnu(t,n,r,"fantasy-land/reduce");if(null!=r[at])returni(t,n,r[at]());if("function"==typeofr.next)returni(t,n,r);if("function"==typeofr.reduce)returnu(t,n,r,"reduce");thrownewTypeError("reduce: list must be array or iterable")}}functionst(t,n,r){for(vare=0,u=r.length;e<u;){if((n=t["@@transducer/step"](n,r[e]))&&n["@@transducer/reduced"]){n=n["@@transducer/value"];break}e+=1}returnt["@@transducer/result"](n)}varlt=n(function(t,n){returnl(t.length,function(){returnt.apply(n,arguments)})});varpt=ft(st,function(t,n,r,e){returnt["@@transducer/result"](r[e](lt(t["@@transducer/step"],t),n))},function(t,n,r){for(vare=r.next();!e.done;){if((n=t["@@transducer/step"](n,e.value))&&n["@@transducer/reduced"]){n=n["@@transducer/value"];break}e=r.next()}returnt["@@transducer/result"](n)});functionht(t){this.f=t}functionyt(t){returnnewht(t)}ht.prototype["@@transducer/init"]=function(){throwError("init not implemented on XWrap")},ht.prototype["@@transducer/result"]=function(t){returnt},ht.prototype["@@transducer/step"]=function(t,n){returnthis.f(t,n)};vardt=i(function(t,n,r){returnpt("function"==typeoft?yt(t):t,n,r)}),vt=o(function(r){returna(dt(Z,0,ot("length",r)),function(){for(vart=0,n=r.length;t<n;){if(!r[t].apply(this,arguments))return!1;t+=1}return!0})}),gt=o(function(t){returnfunction(){returnt}}),mt=n(function(t,n){returnt&&n});functionbt(t,n){this.xf=n,this.f=t,this.any=!1}bt.prototype["@@transducer/init"]=m,bt.prototype["@@transducer/result"]=function(t){returnthis.any||(t=this.xf["@@transducer/step"](t,!1)),this.xf["@@transducer/result"](t)},bt.prototype["@@transducer/step"]=function(t,n){returnthis.f(n)&&(this.any=!0,t=g(this.xf["@@transducer/step"](t,!0))),t};varxt=n(v(["any"],function(n){returnfunction(t){returnnewbt(n,t)}},function(t,n){for(varr=0;r<n.length;){if(t(n[r]))return!0;r+=1}return!1})),wt=o(function(r){returna(dt(Z,0,ot("length",r)),function(){for(vart=0,n=r.length;t<n;){if(r[t].apply(this,arguments))return!0;t+=1}return!1})});varjt=ft(V,function(t,n,r,e){returnr[e](t,n)},function(t,n,r){for(vare=r.next();!e.done;)n=t(n,e.value),e=r.next();returnn}),At=n(function(n,r){return"function"==typeofr["fantasy-land/ap"]?r["fantasy-land/ap"](n):"function"==typeofn.ap?n.ap(r):"function"==typeofn?function(t){returnn(t)(r(t))}:jt(function(t,n){returnc(t,nt(n,r))},[],n)});functionOt(t,n){this.xf=n,this.pos=0,this.full=!1,this.acc=Array(t)}Ot.prototype["@@transducer/init"]=m,Ot.prototype["@@transducer/result"]=function(t){returnthis.acc=null,this.xf["@@transducer/result"](t)},Ot.prototype["@@transducer/step"]=function(t,n){returnthis.store(n),this.full?this.xf["@@transducer/step"](t,this.getCopy()):t},Ot.prototype.store=function(t){this.acc[this.pos]=t,this.pos+=1,this.pos===this.acc.length&&(this.pos=0,this.full=!0)},Ot.prototype.getCopy=function(){returnc(Array.prototype.slice.call(this.acc,this.pos),Array.prototype.slice.call(this.acc,0,this.pos))};varSt=n(v([],function(n){returnfunction(t){returnnewOt(n,t)}},function(t,n){for(varr=0,e=n.length-(t-1),u=Array(e<0?0:e);r<e;)u[r]=Array.prototype.slice.call(n,r,r+t),r+=1;returnu})),Et=n(function(t,n){returnc(n,[t])}),_t=n(function(t,n){returnt.apply(this,n)}),It=o(function(t){for(varn=q(t),r=n.length,e=[],u=0;u<r;)e[u]=t[n[u]],u+=1;returne});functionNt(r,e){returny(e)?e.map(r):q(e).reduce(function(t,n){returnt[n]=r(e[n]),t},{})}varkt=o(functionn(t){returnt=Nt(function(t){return"function"==typeoft?t:n(t)},t),a(dt(Z,0,ot("length",It(t))),function(){varn=arguments;returnNt(function(t){return_t(t,n)},t)})}),Wt=n(function(t,n){returnn(t)}),qt=i(function(t,n,r){vare=t(n),u=t(r);returne<u?-1:u<e?1:0});functionUt(t,n,r){if(rt(t)&&y(r)){vare=[].concat(r);returne[t]=n,e}varu={};for(variinr)u[i]=r[i];returnu[t]=n,u}varFt=o(function(t){returnnull==t}),Pt=i(functiont(n,r,e){if(0===n.length)returnr;varu=n[0];if(1<n.length){vari=!Ft(e)&&O(u,e)&&"object"===s(e[u])?e[u]:rt(n[1])?[]:{};r=t(Array.prototype.slice.call(n,1),r,i)}returnUt(u,r,e)}),Bt=i(function(t,n,r){returnPt([t],n,r)}),Ct=n(function(t,s){switch(t){case0:returnfunction(){returns.call(this)};case1:returnfunction(t){returns.call(this,t)};case2:returnfunction(t,n){returns.call(this,t,n)};case3:returnfunction(t,n,r){returns.call(this,t,n,r)};case4:returnfunction(t,n,r,e){returns.call(this,t,n,r,e)};case5:returnfunction(t,n,r,e,u){returns.call(this,t,n,r,e,u)};case6:returnfunction(t,n,r,e,u,i){returns.call(this,t,n,r,e,u,i)};case7:returnfunction(t,n,r,e,u,i,o){returns.call(this,t,n,r,e,u,i,o)};case8:returnfunction(t,n,r,e,u,i,o,c){returns.call(this,t,n,r,e,u,i,o,c)};case9:returnfunction(t,n,r,e,u,i,o,c,a){returns.call(this,t,n,r,e,u,i,o,c,a)};case10:returnfunction(t,n,r,e,u,i,o,c,a,f){returns.call(this,t,n,r,e,u,i,o,c,a,f)};default:throwError("First argument to nAry must be a non-negative integer no greater than ten")}}),Tt=o(function(t){returnCt(2,t)});functionRt(t){varn=Object.prototype.toString.call(t);return"[object Function]"===n||"[object AsyncFunction]"===n||"[object GeneratorFunction]"===n||"[object AsyncGeneratorFunction]"===n}varMt=n(function(t,n){varr=a(t,n);returna(t,function(){returnV(At,nt(r,arguments[0]),Array.prototype.slice.call(arguments,1))})}),Dt=o(function(t){returnMt(t.length,t)}),zt=n(function(t,n){returnRt(t)?function(){returnt.apply(this,arguments)&&n.apply(this,arguments)}:Dt(mt)(t,n)}),Lt=o(function(t){returnt.apply(this,Array.prototype.slice.call(arguments,1))});functionVt(a){returnfunctiont(n){for(varr,e,u,i=[],o=0,c=n.length;o<c;){if(ct(n[o]))for(u=0,e=(r=a?t(n[o]):n[o]).length;u<e;)i[i.length]=r[u],u+=1;elsei[i.length]=n[o];o+=1}returni}}varGt="@@transducer/init",Kt="@@transducer/step",$t="@@transducer/result";functionHt(t){this.xf=t}functionJt(t){this.xf=newHt(t)}Ht.prototype[Gt]=m,Ht.prototype[$t]=b,Ht.prototype[Kt]=function(t,n){varr=this.xf[Kt](t,n);returnr["@@transducer/reduced"]?function(t){return{"@@transducer/value":t,"@@transducer/reduced":!0}}(r):r},Jt.prototype[Gt]=m,Jt.prototype[$t]=b,Jt.prototype[Kt]=function(t,n){returnct(n)?pt(this.xf,t,n):st(this.xf,t,[n])};varXt=n(v(["fantasy-land/chain","chain"],function(n){returnfunction(t){returntt(n)(function(t){returnnewJt(t)}(t))}},function(n,r){return"function"==typeofr?function(t){returnn(r(t))(t)}:Vt(!1)(nt(n,r))})),Yt=i(function(t,n,r){if(n<t)throwError("min must not be greater than max in clamp(min, max, value)");returnr<t?t:n<r?n:r});functionZt(t){returnRegExp(t.source,t.flags?t.flags:(t.global?"g":"")+(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.sticky?"y":"")+(t.unicode?"u":"")+(t.dotAll?"s":""))}functionQt(e,u,i){if(i||(i=newtn),function(t){varn=s(t);returnnull==t||"object"!=n&&"function"!=n}(e))returne;functiont(t){varn=i.get(e);if(n)returnn;for(varrini.set(e,t),e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=u?Qt(e[r],!0,i):e[r]);returnt}switch(U(e)){case"Object":returnt(Object.create(Object.getPrototypeOf(e)));case"Array":returnt([]);case"Date":returnnewDate(e.valueOf());case"RegExp":returnZt(e);case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":returne.slice();default:returne}}functiontn(){this.map={},this.length=0}tn.prototype.set=function(t,n){varr=this.hash(t),e=this.map[r];e||(this.map[r]=e=[]),e.push([t,n]),this.length+=1},tn.prototype.hash=function(t){varn=[];for(varrint)n.push(Object.prototype.toString.call(t[r]));returnn.join()},tn.prototype.get=function(t){if(180<this.length){varn=this.hash(t),r=this.map[n];if(r)for(vare=0;e<r.length;e+=1){varu=r[e];if(u[0]===t)returnu[1]}}elsefor(variinthis.map)for(varo=this.map[i],c=0;c<o.length;c+=1){vara=o[c];if(a[0]===t)returna[1]}};varnn=o(function(t){returnnull!=t&&"function"==typeoft.clone?t.clone():Qt(t,!0)}),rn=n(function(e,t){varn=jt(function(t,n){varr=e(n);returnvoid0===t[r]&&(t[r]=[]),t[r].push(n),t},{},t),r=[];for(varuinn)r.push(n[u]);returnr}),en=o(function(r){returnfunction(t,n){returnr(t,n)?-1:r(n,t)?1:0}}),un=o(function(t){return!t}),on=Dt(un);functioncn(t,n){returnfunction(){returnn.call(this,t.apply(this,arguments))}}functionan(r,e){returnfunction(){vart=arguments.length;if(0===t)returne();varn=arguments[t-1];returny(n)||"function"!=typeofn[r]?e.apply(this,arguments):n[r].apply(n,Array.prototype.slice.call(arguments,0,t-1))}}varfn=i(an("slice",function(t,n,r){returnArray.prototype.slice.call(r,t,n)})),sn=o(an("tail",fn(1,1/0)));functionln(){if(0===arguments.length)throwError("pipe requires at least one argument");returnl(arguments[0].length,dt(cn,arguments[0],sn(arguments)))}varpn=o(function(t){returnet(t)?t.split("").reverse().join(""):Array.prototype.slice.call(t,0).reverse()});functionhn(){if(0===arguments.length)throwError("compose requires at least one argument");returnln.apply(this,pn(arguments))}varyn=ut(0);functiondn(t){returnt}varvn=o(dn),gn=n(function(r,t){if(t.length<=0)returnvn;varn=yn(t),e=sn(t);returnl(n.length,function(){returnjt(function(t,n){returnr.call(this,n,t)},n.apply(this,arguments),e)})}),mn=n(function(t,n){returngn.call(this,t,pn(n))}),bn=n(function(t,n){if(y(t)){if(y(n))returnt.concat(n);thrownewTypeError(Y(n)+" is not an array")}if(et(t)){if(et(n))returnt+n;thrownewTypeError(Y(n)+" is not a string")}if(null!=t&&Rt(t["fantasy-land/concat"]))returnt["fantasy-land/concat"](n);if(null!=t&&Rt(t.concat))returnt.concat(n);thrownewTypeError(Y(t)+' does not have a method named "concat" or "fantasy-land/concat"')}),xn=o(function(n){returnl(dt(Z,0,nt(function(t){returnt[0].length},n)),function(){for(vart=0;t<n.length;){if(n[t][0].apply(this,arguments))returnn[t][1].apply(this,arguments);t+=1}})}),wn=o(function(t){returna(t.length,t)}),jn=n(function(s,l){if(10<s)throwError("Constructor with greater than ten arguments");return0===s?function(){returnnewl}:wn(Ct(s,function(t,n,r,e,u,i,o,c,a,f){switch(s){case1:returnnewl(t);case2:returnnewl(t,n);case3:returnnewl(t,n,r);case4:returnnewl(t,n,r,e);case5:returnnewl(t,n,r,e,u);case6:returnnewl(t,n,r,e,u,i);case7:returnnewl(t,n,r,e,u,i,o);case8:returnnewl(t,n,r,e,u,i,o,c);case9:returnnewl(t,n,r,e,u,i,o,c,a);case10:returnnewl(t,n,r,e,u,i,o,c,a,f)}}))}),An=o(function(t){returnjn(t.length,t)}),On=n(function(t,e){returna(dt(Z,0,ot("length",e)),function(){varn=arguments,r=this;returnt.apply(r,R(function(t){returnt.apply(r,n)},e))})}),Sn=wn(function(r,t){returnjt(function(t,n){returnr(n)?t+1:t},0,t)});functionEn(t,n,r,e){this.valueFn=t,this.valueAcc=n,this.keyFn=r,this.xf=e,this.inputs={}}En.prototype["@@transducer/init"]=m,En.prototype["@@transducer/result"]=function(t){varn;for(ninthis.inputs)if(O(n,this.inputs)&&(t=this.xf["@@transducer/step"](t,this.inputs[n]))["@@transducer/reduced"]){t=t["@@transducer/value"];break}returnthis.inputs=null,this.xf["@@transducer/result"](t)},En.prototype["@@transducer/step"]=function(t,n){varr=this.keyFn(n);returnthis.inputs[r]=this.inputs[r]||[r,Qt(this.valueAcc,!1)],this.inputs[r][1]=this.valueFn(this.inputs[r][1],n),t};var_n=p(4,[],v([],function(n,r,e){returnfunction(t){returnnewEn(n,r,e,t)}},function(u,i,o,t){varn=yt(function(t,n){varr=o(n),e=u(O(r,t)?t[r]:Qt(i,!1),n);returne&&e["@@transducer/reduced"]?g(t):(t[r]=e,t)});returnpt(n,{},t)})),In=_n(function(t,n){returnt+1},0),Nn=r(-1),kn=n(function(t,n){returnnull==n||n!=n?t:n}),Wn=i(function(t,n,r){vare=t(n),u=t(r);returnu<e?-1:e<u?1:0});functionqn(){this._nativeSet="function"==typeofSet?newSet:null,this._items={}}functionUn(t,n,r){vare,u=s(t);switch(u){case"string":case"number":return0===t&&1/t==-1/0?!!r._items["-0"]||(n&&(r._items["-0"]=!0),!1):null!==r._nativeSet?n?(e=r._nativeSet.size,r._nativeSet.add(t),r._nativeSet.size===e):r._nativeSet.has(t):uinr._items?tinr._items[u]||(n&&(r._items[u][t]=!0),!1):(n&&(r._items[u]={},r._items[u][t]=!0),!1);case"boolean":if(uinr._items){vari=t?1:0;return!!r._items[u][i]||(n&&(r._items[u][i]=!0),!1)}returnn&&(r._items[u]=t?[!1,!0]:[!0,!1]),!1;case"function":returnnull!==r._nativeSet?n?(e=r._nativeSet.size,r._nativeSet.add(t),r._nativeSet.size===e):r._nativeSet.has(t):uinr._items?!!T(t,r._items[u])||(n&&r._items[u].push(t),!1):(n&&(r._items[u]=[t]),!1);case"undefined":return!!r._items[u]||(n&&(r._items[u]=!0),!1);case"object":if(null===t)return!!r._items.null||(n&&(r._items.null=!0),!1);default:return(u=Object.prototype.toString.call(t))inr._items?!!T(t,r._items[u])||(n&&r._items[u].push(t),!1):(n&&(r._items[u]=[t]),!1)}}qn.prototype.add=function(t){return!Un(t,!0,this)},qn.prototype.has=function(t){returnUn(t,!1,this)};varFn=n(function(t,n){for(varr=[],e=0,u=t.length,i=n.length,o=newqn,c=0;c<i;c+=1)o.add(n[c]);for(;e<u;)o.add(t[e])&&(r[r.length]=t[e]),e+=1;returnr}),Pn=i(function(t,n,r){for(vare=[],u=0,i=n.length;u<i;)A(t,n[u],r)||A(t,n[u],e)||e.push(n[u]),u+=1;returne}),Bn=i(function(t,n,r){vare=Array.prototype.slice.call(r,0);returne.splice(t,n),e});varCn=n(functiont(n,r){if(null==r)returnr;switch(n.length){case0:returnr;case1:returnfunction(t,n){if(null==n)returnn;if(rt(t)&&y(n))returnBn(t,1,n);varr={};for(vareinn)r[e]=n[e];returndeleter[t],r}(n[0],r);default:vare=n[0],u=Array.prototype.slice.call(n,1);returnnull==r[e]?function(t,n){if(rt(t)&&y(n))return[].concat(n);varr={};for(vareinn)r[e]=n[e];returnr}(e,r):Bt(e,t(u,r[e]),r)}}),Tn=n(function(t,n){returnCn([t],n)}),Rn=n(function(t,n){returnt/n});functionMn(t,n){this.xf=n,this.n=t}Mn.prototype["@@transducer/init"]=m,Mn.prototype["@@transducer/result"]=b,Mn.prototype["@@transducer/step"]=function(t,n){return0<this.n?(this.n-=1,t):this.xf["@@transducer/step"](t,n)};varDn=n(v(["drop"],function(n){returnfunction(t){returnnewMn(n,t)}},function(t,n){returnfn(Math.max(0,t),1/0,n)}));functionzn(t,n){this.xf=n,this.n=t,this.i=0}zn.prototype["@@transducer/init"]=m,zn.prototype["@@transducer/result"]=b,zn.prototype["@@transducer/step"]=function(t,n){this.i+=1;varr=0===this.n?t:this.xf["@@transducer/step"](t,n);returnthis.n<0||this.i<this.n?r:g(r)};varLn=n(v(["take"],function(n){returnfunction(t){returnnewzn(n,t)}},function(t,n){returnfn(0,t<0?1/0:t,n)}));functionVn(t,n){if(t<=0)returnn;this.xf=n,this.pos=0,this.full=!1,this.acc=Array(t)}Vn.prototype["@@transducer/init"]=m,Vn.prototype["@@transducer/result"]=function(t){returnthis.acc=null,this.xf["@@transducer/result"](t)},Vn.prototype["@@transducer/step"]=function(t,n){returnthis.full&&(t=this.xf["@@transducer/step"](t,this.acc[this.pos])),this.store(n),t},Vn.prototype.store=function(t){this.acc[this.pos]=t,this.pos+=1,this.pos===this.acc.length&&(this.pos=0,this.full=!0)};varGn=n(v([],function(n){returnfunction(t){returnnewVn(n,t)}},function(t,n){returnLn(t<n.length?n.length-t:0,n)}));functionKn(t,n){this.f=t,this.retained=[],this.xf=n}Kn.prototype["@@transducer/init"]=m,Kn.prototype["@@transducer/result"]=function(t){returnthis.retained=null,this.xf["@@transducer/result"](t)},Kn.prototype["@@transducer/step"]=function(t,n){returnthis.f(n)?this.retain(t,n):this.flush(t,n)},Kn.prototype.flush=function(t,n){returnt=pt(this.xf,t,this.retained),this.retained=[],this.xf["@@transducer/step"](t,n)},Kn.prototype.retain=function(t,n){returnthis.retained.push(n),t};var$n=n(v([],function(n){returnfunction(t){returnnewKn(n,t)}},function(t,n){for(varr=n.length-1;0<=r&&t(n[r]);)r-=1;returnfn(0,r+1,n)}));functionHn(t,n){this.xf=n,this.pred=t,this.lastValue=void0,this.seenFirstValue=!1}functionJn(n){returnfunction(t){returnnewHn(n,t)}}Hn.prototype["@@transducer/init"]=m,Hn.prototype["@@transducer/result"]=b,Hn.prototype["@@transducer/step"]=function(t,n){varr=!1;returnthis.seenFirstValue?this.pred(this.lastValue,n)&&(r=!0):this.seenFirstValue=!0,this.lastValue=n,r?t:this.xf["@@transducer/step"](t,n)};varXn=ut(-1),Yn=n(v([],Jn,function(t,n){varr=[],e=1,u=n.length;if(0!==u)for(r[0]=n[0];e<u;)t(Xn(r),n[e])||(r[r.length]=n[e]),e+=1;returnr})),Zn=o(v([],function(){returnJn(B)},Yn(B))),Qn=i(function(t,n,r){returnB(t(n),t(r))}),tr=n(function(t,n){returnv([],function(){returnJn(Qn(t))},Yn(Qn(t)))(n)});functionnr(t,n){this.xf=n,this.f=t}nr.prototype["@@transducer/init"]=m,nr.prototype["@@transducer/result"]=b,nr.prototype["@@transducer/step"]=function(t,n){if(this.f){if(this.f(n))returnt;this.f=null}returnthis.xf["@@transducer/step"](t,n)};varrr=n(v(["dropWhile"],function(n){returnfunction(t){returnnewnr(n,t)}},function(t,n){for(varr=0,e=n.length;r<e&&t(n[r]);)r+=1;returnfn(r,1/0,n)})),er=n(function(t,n){returnt||n}),ur=n(function(t,n){returnRt(t)?function(){returnt.apply(this,arguments)||n.apply(this,arguments)}:Dt(er)(t,n)});varir=o(function(t){returnnull!=t&&"function"==typeoft["fantasy-land/empty"]?t["fantasy-land/empty"]():null!=t&&null!=t.constructor&&"function"==typeoft.constructor["fantasy-land/empty"]?t.constructor["fantasy-land/empty"]():null!=t&&"function"==typeoft.empty?t.empty():null!=t&&null!=t.constructor&&"function"==typeoft.constructor.empty?t.constructor.empty():y(t)?[]:et(t)?"":K(t)?{}:I(t)?function(){returnarguments}():function(t){varn=Object.prototype.toString.call(t);return"[object Uint8ClampedArray]"===n||"[object Int8Array]"===n||"[object Uint8Array]"===n||"[object Int16Array]"===n||"[object Uint16Array]"===n||"[object Int32Array]"===n||"[object Uint32Array]"===n||"[object Float32Array]"===n||"[object Float64Array]"===n||"[object BigInt64Array]"===n||"[object BigUint64Array]"===n}(t)?t.constructor.from(""):void0}),or=n(function(t,n){returnDn(t<0?0:n.length-t,n)}),cr=n(function(t,n){returnB(or(t.length,n),t)}),ar=i(function(t,n,r){returnB(n[t],r[t])}),fr=n(functiont(n,r){if(!K(r)&&!y(r))returnr;vare,u,i,o=rinstanceofArray?[]:{};for(uinr)i=s(e=n[u]),o[u]="function"===i?e(r[u]):e&&"object"===i?t(e,r[u]):r[u];returno});functionsr(t,n){this.xf=n,this.f=t,this.found=!1}sr.prototype["@@transducer/init"]=m,sr.prototype["@@transducer/result"]=function(t){returnthis.found||(t=this.xf["@@transducer/step"](t,void0)),this.xf["@@transducer/result"](t)},sr.prototype["@@transducer/step"]=function(t,n){returnthis.f(n)&&(this.found=!0,t=g(this.xf["@@transducer/step"](t,n))),t};varlr=n(v(["find"],function(n){returnfunction(t){returnnewsr(n,t)}},function(t,n){for(varr=0,e=n.length;r<e;){if(t(n[r]))returnn[r];r+=1}}));functionpr(t,n){this.xf=n,this.f=t,this.idx=-1,this.found=!1}pr.prototype["@@transducer/init"]=m,pr.prototype["@@transducer/result"]=function(t){returnthis.found||(t=this.xf["@@transducer/step"](t,-1)),this.xf["@@transducer/result"](t)},pr.prototype["@@transducer/step"]=function(t,n){returnthis.idx+=1,this.f(n)&&(this.found=!0,t=g(this.xf["@@transducer/step"](t,this.idx))),t};varhr=n(v([],function(n){returnfunction(t){returnnewpr(n,t)}},function(t,n){for(varr=0,e=n.length;r<e;){if(t(n[r]))returnr;r+=1}return-1}));functionyr(t,n){this.xf=n,this.f=t}yr.prototype["@@transducer/init"]=m,yr.prototype["@@transducer/result"]=function(t){returnthis.xf["@@transducer/result"](this.xf["@@transducer/step"](t,this.last))},yr.prototype["@@transducer/step"]=function(t,n){returnthis.f(n)&&(this.last=n),t};vardr=n(v([],function(n){returnfunction(t){returnnewyr(n,t)}},function(t,n){for(varr=n.length-1;0<=r;){if(t(n[r]))returnn[r];r-=1}}));functionvr(t,n){this.xf=n,this.f=t,this.idx=-1,this.lastIdx=-1}vr.prototype["@@transducer/init"]=m,vr.prototype["@@transducer/result"]=function(t){returnthis.xf["@@transducer/result"](this.xf["@@transducer/step"](t,this.lastIdx))},vr.prototype["@@transducer/step"]=function(t,n){returnthis.idx+=1,this.f(n)&&(this.lastIdx=this.idx),t};vargr=n(v([],function(n){returnfunction(t){returnnewvr(n,t)}},function(t,n){for(varr=n.length-1;0<=r;){if(t(n[r]))returnr;r-=1}return-1})),mr=o(Vt(!0)),br=o(function(e){returna(e.length,function(t,n){varr=Array.prototype.slice.call(arguments,0);returnr[0]=n,r[1]=t,e.apply(this,r)})}),xr=n(an("forEach",function(t,n){for(varr=n.length,e=0;e<r;)t(n[e]),e+=1;returnn})),wr=n(function(t,n){for(varr=q(n),e=0;e<r.length;){varu=r[e];t(n[u],u,n),e+=1}returnn}),jr=o(function(t){for(varn={},r=0;r<t.length;)n[t[r][0]]=t[r][1],r+=1;returnn}),Ar=n(an("groupBy",_n(function(t,n){returnt.push(n),t},[]))),Or=n(function(t,n){for(varr=[],e=0,u=n.length;e<u;){for(vari=e+1;i<u&&t(n[i-1],n[i]);)i+=1;r.push(n.slice(e,i)),e=i}returnr}),Sr=n(function(t,n){returnn<t}),Er=n(function(t,n){returnn<=t}),_r=n(function(t,n){if(0===t.length||Ft(n))return!1;for(varr=n,e=0;e<t.length;){if(Ft(r)||!O(t[e],r))return!1;r=r[t[e]],e+=1}return!0}),Ir=n(function(t,n){return_r([t],n)}),Nr=n(function(t,n){return!Ft(n)&&tinn}),kr=i(function(t,n,r){returna(Math.max(t.length,n.length,r.length),function(){returnt.apply(this,arguments)?n.apply(this,arguments):r.apply(this,arguments)})}),Wr=r(1),qr=n(T),Ur=_n(function(t,n){returnn},null),Fr=n(function(t,n){return"function"!=typeofn.indexOf||y(n)?C(n,t,0):n.indexOf(t)}),Pr=fn(0,-1),Br=i(function(n,t,r){returnG(function(t){returnA(n,t,r)},t)}),Cr=i(function(t,n,r){t=t<r.length&&0<=t?t:r.length;vare=Array.prototype.slice.call(r,0);returne.splice(t,0,n),e}),Tr=i(function(t,n,r){return[].concat(Array.prototype.slice.call(r,0,t=t<r.length&&0<=t?t:r.length),n,Array.prototype.slice.call(r,t))});functionRr(t,n){this.xf=n,this.f=t,this.set=newqn}Rr.prototype["@@transducer/init"]=m,Rr.prototype["@@transducer/result"]=b,Rr.prototype["@@transducer/step"]=function(t,n){returnthis.set.add(this.f(n))?this.xf["@@transducer/step"](t,n):t};varMr=n(v([],function(n){returnfunction(t){returnnewRr(n,t)}},function(t,n){for(varr,e,u=newqn,i=[],o=0;o<n.length;)r=t(e=n[o]),u.add(r)&&i.push(e),o+=1;returni})),Dr=Mr(vn),zr=n(function(t,n){for(varr=newqn,e=0;e<t.length;e+=1)r.add(t[e]);returnDr(G(r.has.bind(r),n))}),Lr=n(an("intersperse",function(t,n){for(varr=[],e=0,u=n.length;e<u;)e===u-1?r.push(n[e]):r.push(n[e],t),e+=1;returnr}));varVr="function"==typeofObject.assign?Object.assign:function(t){if(null==t)thrownewTypeError("Cannot convert undefined or null to object");for(varn=Object(t),r=1,e=arguments.length;r<e;){varu=arguments[r];if(null!=u)for(variinu)O(i,u)&&(n[i]=u[i]);r+=1}returnn},Gr=n(function(t,n){varr={};returnr[t]=n,r}),Kr={"@@transducer/init":Array,"@@transducer/step":function(t,n){returnt.push(n),t},"@@transducer/result":dn},$r={"@@transducer/init":String,"@@transducer/step":function(t,n){returnt+n},"@@transducer/result":dn},Hr={"@@transducer/init":Object,"@@transducer/step":function(t,n){returnVr(t,ct(n)?Gr(n[0],n[1]):n)},"@@transducer/result":dn};varJr=i(function(t,n,r){vare=n(d(t)?t:function(t){if(d(t))returnt;if(ct(t))returnKr;if("string"==typeoft)return$r;if("object"===s(t))returnHr;throwError("Cannot create transformer for "+t)}(t));returnpt(e,e["@@transducer/init"](),r)}),Xr=o(function(t){for(varn=q(t),r=n.length,e=0,u={};e<r;){vari=n[e],o=t[i],c=O(o,u)?u[o]:u[o]=[];c[c.length]=i,e+=1}returnu}),Yr=o(function(t){for(varn=q(t),r=n.length,e=0,u={};e<r;){vari=n[e];u[t[i]]=i,e+=1}returnu}),Zr=n(function(n,r){returna(n+1,function(){vart=arguments[n];if(null!=t&&Rt(t[r]))returnt[r].apply(t,Array.prototype.slice.call(arguments,0,n));thrownewTypeError(Y(t)+' does not have a method named "'+r+'"')})}),Qr=n(function(t,n){returnninstanceoft||null!=n&&(n.constructor===t||"Object"===t.name&&"object"===s(n))}),te=o(function(t){returnnull!=t&&B(t,ir(t))}),ne=o(function(t){return!Ft(t)}),re=Zr(1,"join"),ee=o(function(t){returnOn(function(){returnArray.prototype.slice.call(arguments,0)},t)}),ue=o(function(t){varn,r=[];for(nint)r[r.length]=n;returnr}),ie=n(function(t,n){if("function"!=typeofn.lastIndexOf||y(n)){for(varr=n.length-1;0<=r;){if(B(n[r],t))returnr;r-=1}return-1}returnn.lastIndexOf(t)});functionoe(t){return"[object Number]"===Object.prototype.toString.call(t)}varce=o(function(t){returnnull!=t&&oe(t.length)?t.length:NaN}),ae=n(function(r,e){returnfunction(t){returnfunction(n){returnnt(function(t){returne(t,n)},t(r(n)))}}}),fe=i(function(t,n,r){returnh(t,gt(n),r)}),se=o(function(t){returnae(ut(t),fe(t))}),le=n(function(t,u){returnt.map(function(t){for(varn,r=u,e=0;e<t.length;){if(null==r)return;r=rt(n=t[e])?ut(n,r):r[n],e+=1}returnr})}),pe=n(function(t,n){returnle([t],n)[0]}),he=o(function(t){returnae(pe(t),Pt(t))}),ye=o(function(t){returnae(it(t),Bt(t))}),de=n(function(t,n){returnt<n}),ve=n(function(t,n){returnt<=n}),ge=i(function(t,n,r){for(vare=0,u=r.length,i=[],o=[n];e<u;)o=t(o[0],r[e]),i[e]=o[1],e+=1;return[o[0],i]}),me=i(function(t,n,r){for(vare=r.length-1,u=[],i=[n];0<=e;)i=t(i[0],r[e]),u[e]=i[1],e-=1;return[i[0],u]}),be=n(function(r,e){returnV(function(t,n){returnt[n]=r(e[n],n,e),t},{},q(e))}),xe=n(function(t,n){returnn.match(t)||[]}),we=n(function(t,n){returnrt(t)?!rt(n)||n<1?NaN:(t%n+n)%n:NaN}),je=i(function(t,n,r){vare=t(r);returnZ(t(n),e)===e?r:n}),Ae=dt(r,0),Oe=o(function(t){returnAe(t)/t.length}),Se=o(function(t){varn=t.length;if(0===n)returnNaN;varr=2-n%2,e=(n-r)/2;returnOe(Array.prototype.slice.call(t,0).sort(function(t,n){returnt<n?-1:n<t?1:0}).slice(e,e+r))}),Ee=n(function(n,r){vare={};returnl(r.length,function(){vart=n.apply(this,arguments);returnO(t,e)||(e[t]=r.apply(this,arguments)),e[t]})}),_e=o(function(t){returnVr.apply(null,[{}].concat(t))}),Ie=i(function(t,n,r){vare,u={};for(einr=r||{},n=n||{})O(e,n)&&(u[e]=O(e,r)?t(e,n[e],r[e]):n[e]);for(einr)O(e,r)&&!O(e,u)&&(u[e]=r[e]);returnu}),Ne=i(functione(u,t,n){returnIe(function(t,n,r){returnK(n)&&K(r)?e(u,n,r):u(t,n,r)},t,n)}),ke=n(function(t,n){returnNe(function(t,n,r){returnn},t,n)}),We=n(function(t,n){returnNe(function(t,n,r){returnr},t,n)}),qe=i(function(e,t,n){returnNe(function(t,n,r){returne(n,r)},t,n)}),Ue=n(function(t,n){returnVr({},n,t)}),Fe=n(function(t,n){returnVr({},t,n)}),Pe=i(function(e,t,n){returnIe(function(t,n,r){returne(n,r)},t,n)}),Be=n(function(t,n){if(t===n)returnt;functionr(t,n){if(t<n!=n<t)returnn<t?n:t}vare=r(t,n);if(void0!==e)returne;varu=r(s(t),s(n));if(void0!==u)returnu===s(t)?t:n;vari=Y(t),o=r(i,Y(n));returnvoid0!==o?o===i?t:n:t}),Ce=i(function(t,n,r){vare=t(r);returnBe(t(n),e)===e?r:n});varTe=i(functiont(n,r,e){if(!K(e)&&!y(e))returne;if(0===n.length)returnr(e);varu=n[0];if(!O(u,e))returne;if(1===n.length)returnfunction(t,n,r){if(rt(t)&&y(r)){vare=[].concat(r);returne[t]=n(e[t]),e}varu={};for(variinr)u[i]=r[i];returnu[t]=n(u[t]),u}(u,r,e);vari=t(Array.prototype.slice.call(n,1),r,e[u]);returni===e[u]?e:Ut(u,i,e)}),Re=i(function(t,n,r){returnTe([t],n,r)}),Me=n(function(t,n){returnt%n}),De=i(function(t,n,r){vare=r.length,u=r.slice(),i=t<0?e+t:t,o=n<0?e+n:n,c=u.splice(i,1);returni<0||r.length<=i||o<0||r.length<=o?r:[].concat(u.slice(0,o)).concat(c).concat(u.slice(o,r.length))}),ze=n(function(t,n){returnt*n}),Le=n(function(n,r){returnfunction(t){returnn.call(void0,We(r,t))}}),Ve=o(function(t){return-t}),Ge=n(function(t,n){returnw(L(t),n)}),Ke=o(function(t){returna(t<0?1:t+1,function(){returnut(t,arguments)})}),$e=i(function(t,n,r){returnt(n(r))}),He=n(function(t,n){return"function"==typeoft["fantasy-land/of"]?t["fantasy-land/of"](n):"function"==typeoft.of?t.of(n):[n]}),Je=n(function(t,n){for(varr={},e={},u=0,i=t.length;u<i;)u+=e[t[u]]=1;for(varoinn)e.hasOwnProperty(o)||(r[o]=n[o]);returnr}),Xe=p(4,[],function(t,n,r,e){returnt(n(r),n(e))}),Ye=o(function(t){varn,r=!1;returnl(t.length,function(){returnr?n:(r=!0,n=t.apply(this,arguments))})});functionZe(t,n){if(null==n||!Rt(n.then))thrownewTypeError("`"+t+"` expected a Promise, received "+X(n,[]))}varQe=n(function(t,n){returnZe("otherwise",n),n.then(null,t)}),tu=i(function(t,n,r){returnt(function(t){returnfunctionn(r){return{value:r,map:function(t){returnn(t(r))}}}(n(t))})(r).value}),nu=n(function(t,n){return[t,n]});functionru(r){returnn(function(t,n){returnl(Math.max(0,t.length-n.length),function(){returnt.apply(this,r(n,arguments))})})}vareu=ru(c),uu=ru(br(c)),iu=ee([H,J]),ou=i(function(t,n,r){returnB(pe(n,r),t)}),cu=i(function(t,n,r){returnkn(t,pe(n,r))}),au=i(function(t,n,r){returnt(pe(n,r))}),fu=n(function(t,n){for(varr={},e=0;e<t.length;)t[e]inn&&(r[t[e]]=n[t[e]]),e+=1;returnr}),su=n(function(t,n){for(varr={},e=0,u=t.length;e<u;){vari=t[e];r[i]=n[i],e+=1}returnr}),lu=n(function(t,n){varr={};for(vareinn)t(n[e],e,n)&&(r[e]=n[e]);returnr}),pu=n(function(t,n){returnc([t],n)}),hu=dt(ze,1),yu=n(function(r,e){returna(e.length,function(){for(vart=[],n=0;n<e.length;)t.push(e[n].call(this,arguments[n])),n+=1;returnr.apply(this,t.concat(Array.prototype.slice.call(arguments,e.length)))})}),du=yu(R,[su,vn]);functionvu(n,r,e){returnfunction(t){returnr(e(n(t)))}}functiongu(t,n,r){this.xf=r,this.f=t,this.g=n}gu.prototype["@@transducer/init"]=m,gu.prototype["@@transducer/result"]=b,gu.prototype["@@transducer/step"]=function(t,n){returnthis.xf["@@transducer/step"](t,vu(this.f,this.g,n))};varmu=i(v(["fantasy-land/promap","promap"],function(n,r){returnfunction(t){returnnewgu(n,r,t)}},vu)),bu=i(function(t,n,r){returnB(t,it(n,r))}),xu=i(function(t,n,r){returnQr(t,it(n,r))}),wu=i(function(t,n,r){returnkn(t,it(n,r))}),ju=i(function(t,n,r){returnt(it(n,r))}),Au=n(function(t,n){returnt.map(function(t){returnpe([t],n)})}),Ou=n(function(t,n){if(!oe(t)||!oe(n))thrownewTypeError("Both arguments to range must be numbers");for(varr=[],e=t;e<n;)r.push(e),e+=1;returnr}),Su=i(function(t,n,r){for(vare=r.length-1;0<=e;){if((n=t(r[e],n))&&n["@@transducer/reduced"]){n=n["@@transducer/value"];break}e-=1}returnn}),Eu=p(4,[],function(r,e,t,n){varu=yt(function(t,n){returnr(t,n)?e(t,n):g(t)});returnpt(u,t,n)}),_u=o(g),Iu=n(function(t,n){varr,e=+n,u=0;if(e<0||isNaN(e))thrownewRangeError("n must be a non-negative number");for(r=[];u<e;)r.push(t(u)),u+=1;returnr}),Nu=n(function(t,n){returnIu(gt(t),n)}),ku=i(function(t,n,r){returnr.replace(t,n)}),Wu="@@transducer/init",qu="@@transducer/step";functionUu(t,n,r){this.xf=r,this.f=t,this.acc=n}Uu.prototype[Wu]=function(){returnthis.xf[qu](this.xf[Wu](),this.acc)},Uu.prototype["@@transducer/result"]=b,Uu.prototype[qu]=function(t,n){returnt["@@transducer/reduced"]?t:(this.acc=this.f(this.acc,n),this.xf[qu](t,this.acc))};functionFu(t,n,r){vare=r.length,u=r.slice(),i=t<0?e+t:t,o=n<0?e+n:n,c=Math.min(i,o),a=Math.max(i,o);returni<0||e<i?u:o<0||e<o?u:i===o?u:u=[].concat(u.slice(0,c)).concat([u[a]]).concat(u.slice(1+c,a)).concat([u[c]]).concat(u.slice(1+a,e))}varPu=i(v([],i(function(t,n,r){returnnewUu(t,n,r)}),function(t,n,r){for(vare=0,u=r.length,i=[n];e<u;)n=t(n,r[e]),i[e+1]=n,e+=1;returni})),Bu=n(function(t,n){varr="function"==typeoft["fantasy-land/of"]?t["fantasy-land/of"]:"function"==typeoft.of?t.of:t,e={"fantasy-land/of":r};return"function"==typeofn["fantasy-land/traverse"]?n["fantasy-land/traverse"](e,dn):"function"==typeofn.traverse?n.traverse(e,dn):Su(function(t,n){returnAt(nt(pu,t),n)},r([]),n)}),Cu=i(function(t,n,r){returntu(t,gt(n),r)}),Tu=n(function(t,n){returnArray.prototype.slice.call(n,0).sort(t)}),Ru=n(function(u,t){returnArray.prototype.slice.call(t,0).sort(function(t,n){varr=u(t),e=u(n);returnr<e?-1:e<r?1:0})}),Mu=n(function(u,t){returnArray.prototype.slice.call(t,0).sort(function(t,n){for(varr=0,e=0;0===r&&e<u.length;)r=u[e](t,n),e+=1;returnr})}),Du=Zr(1,"split"),zu=n(function(t,n){return[fn(0,t,n),fn(t,ce(n),n)]}),Lu=n(function(t,n){if(t<=0)throwError("First argument to splitEvery must be a positive integer");for(varr=[],e=0;e<n.length;)r.push(fn(e,e+=t,n));returnr}),Vu=n(function(t,n){for(varr=0,e=n.length,u=[];r<e&&!t(n[r]);)u.push(n[r]),r+=1;return[u,Array.prototype.slice.call(n,r)]}),Gu=p(2,[],function(t,n){for(varr=[],e=[],u=0;u<n.length;u+=1)t(n[u])||e.push(n[u]),(u<n.length-1&&t(n[u+1])||u===n.length-1)&&0<e.length&&(r.push(e),e=[]);returnr}),Ku=n(function(t,n){returnB(Ln(t.length,n),t)}),$u=n(function(t,n){return+t-+n}),Hu=i(function(t,n,r){returny(r)?Fu(t,n,r):et(r)?function(t,n,r){vare=Fu(t,n,r);returny(e)?e.join(""):e}(t,n,r):function(t,n,r){vare=nn(r),u=Object.getOwnPropertyNames(e);if(u.includes(t)&&u.includes(n)){vari=e[t];e[t]=e[n],e[n]=i}returne}(t,n,r)}),Ju=n(function(t,n){returnbn(Fn(t,n),Fn(n,t))}),Xu=i(function(t,n,r){returnbn(Pn(t,n,r),Pn(t,r,n))}),Yu=n(function(t,n){for(varr=n.length-1;0<=r&&t(n[r]);)r-=1;returnfn(r+1,1/0,n)});functionZu(t,n){this.xf=n,this.f=t}Zu.prototype["@@transducer/init"]=m,Zu.prototype["@@transducer/result"]=b,Zu.prototype["@@transducer/step"]=function(t,n){returnthis.f(n)?this.xf["@@transducer/step"](t,n):g(t)};varQu=n(v(["takeWhile"],function(n){returnfunction(t){returnnewZu(n,t)}},function(t,n){for(varr=0,e=n.length;r<e&&t(n[r]);)r+=1;returnfn(0,r,n)}));functionti(t,n){this.xf=n,this.f=t}ti.prototype["@@transducer/init"]=m,ti.prototype["@@transducer/result"]=b,ti.prototype["@@transducer/step"]=function(t,n){returnthis.f(n),this.xf["@@transducer/step"](t,n)};varni=n(v([],function(n){returnfunction(t){returnnewti(n,t)}},function(t,n){returnt(n),n}));varri=n(function(t,n){if(!function(t){return"[object RegExp]"===Object.prototype.toString.call(t)}(t))thrownewTypeError("‘test’ requires a value of type RegExp as its first argument; received "+Y(t));returnZt(t).test(n)}),ei=n(function(t,n){returnZe("andThen",n),n.then(t)}),ui=Zr(0,"toLowerCase"),ii=o(function(t){varn=[];for(varrint)O(r,t)&&(n[n.length]=[r,t[r]]);returnn}),oi=o(function(t){varn=[];for(varrint)n[n.length]=[r,t[r]];returnn}),ci=Zr(0,"toUpperCase"),ai=a(4,function(t,n,r,e){returnpt(t("function"==typeofn?yt(n):n),r,e)}),fi=o(function(t){for(varn=0,r=[];n<t.length;){for(vare=t[n],u=0;u<e.length;)void0===r[u]&&(r[u]=[]),r[u].push(e[u]),u+=1;n+=1}returnr}),si=i(function(t,n,r){vare={"fantasy-land/of":"function"==typeoft["fantasy-land/of"]?t["fantasy-land/of"]:"function"==typeoft.of?t.of:t};return"function"==typeofr["fantasy-land/traverse"]?r["fantasy-land/traverse"](e,n):"function"==typeofr.traverse?r.traverse(e,n):Bu(e,nt(n,r))}),li="\t\n\v\f\r \u2028\u2029\ufeff",pi=!("function"==typeofString.prototype.trim)||li.trim()?o(function(t){varn=RegExp("^["+li+"]["+li+"]*"),r=RegExp("["+li+"]["+li+"]*$");returnt.replace(n,"").replace(r,"")}):o(function(t){returnt.trim()}),hi=n(function(t,n){returnl(t.length,function(){try{returnt.apply(this,arguments)}catch(t){returnn.apply(this,c([t],arguments))}})}),yi=o(function(t){returnfunction(){returnt(Array.prototype.slice.call(arguments,0))}}),di=o(function(t){returnCt(1,t)}),vi=n(function(u,i){returna(u,function(){for(vart,n=1,r=i,e=0;n<=u&&"function"==typeofr;)r=r.apply(this,Array.prototype.slice.call(arguments,e,t=n===u?arguments.length:e+r.length)),n+=1,e=t;returnr})}),gi=n(function(t,n){for(varr=t(n),e=[];r&&r.length;)e[e.length]=r[0],r=t(r[1]);returne}),mi=n(hn(Dr,c));functionbi(t,n){this.xf=n,this.pred=t,this.items=[]}bi.prototype["@@transducer/init"]=m,bi.prototype["@@transducer/result"]=b,bi.prototype["@@transducer/step"]=function(t,n){returnA(this.pred,n,this.items)?t:(this.items.push(n),this.xf["@@transducer/step"](t,n))};functionxi(t){return{value:t,"fantasy-land/map":function(){returnthis}}}varwi=n(v([],function(n){returnfunction(t){returnnewbi(n,t)}},function(t,n){for(varr,e=0,u=n.length,i=[];e<u;)A(t,r=n[e],i)||(i[i.length]=r),e+=1;returni})),ji=i(function(t,n,r){returnwi(t,c(n,r))}),Ai=i(function(t,n,r){returnt(r)?r:n(r)}),Oi=Xt(dn),Si=i(function(t,n,r){for(vare=r;!t(e);)e=n(e);returne}),Ei=n(function(n,r){returnninr&&y(r[n])?R(function(t){returnUt(n,t,r)},r[n]):[r]}),_i=o(function(t){varn,r=[];for(nint)r[r.length]=t[n];returnr}),Ii=n(function(t,n){returnt(xi)(n).value}),Ni=i(function(t,n,r){returnt(r)?n(r):r}),ki=n(function(t,n){for(varrint)if(O(r,t)&&!t[r](n[r]))return!1;return!0}),Wi=n(function(t,n){for(varrint)if(O(r,t)&&t[r](n[r]))return!0;return!1}),qi=n(function(t,n){returnki(nt(B,t),n)}),Ui=n(function(t,n){for(varr=newqn,e=0;e<t.length;e+=1)r.add(t[e]);returnJ(r.has.bind(r),n)}),Fi=n(function(t,n){return!!(!t^!n)}),Pi=n(function(t,n){for(varr,e=0,u=t.length,i=n.length,o=[];e<u;){for(r=0;r<i;)o[o.length]=[t[e],n[r]],r+=1;e+=1}returno}),Bi=n(function(t,n){for(varr=[],e=0,u=Math.min(t.length,n.length);e<u;)r[e]=[t[e],n[e]],e+=1;returnr}),Ci=n(function(t,n){for(varr=0,e=Math.min(t.length,n.length),u={};r<e;)u[t[r]]=n[r],r+=1;returnu}),Ti=i(function(t,n,r){for(vare=[],u=0,i=Math.min(n.length,r.length);u<i;)e[u]=t(n[u],r[u]),u+=1;returne}),Ri=o(function(n){returna(n.length,function(){vart=arguments;returnfunction(){returnn.apply(this,t)}})});t.F=function(){return!1},t.T=function(){return!0},t.__={"@@functional/placeholder":!0},t.add=r,t.addIndex=e,t.addIndexRight=u,t.adjust=h,t.all=w,t.allPass=vt,t.always=gt,t.and=mt,t.andThen=ei,t.any=xt,t.anyPass=wt,t.ap=At,t.aperture=St,t.append=Et,t.apply=_t,t.applySpec=kt,t.applyTo=Wt,t.ascend=qt,t.assoc=Bt,t.assocPath=Pt,t.binary=Tt,t.bind=lt,t.both=zt,t.call=Lt,t.chain=Xt,t.clamp=Yt,t.clone=nn,t.collectBy=rn,t.comparator=en,t.complement=on,t.compose=hn,t.composeWith=mn,t.concat=bn,t.cond=xn,t.construct=An,t.constructN=jn,t.converge=On,t.count=Sn,t.countBy=In,t.curry=wn,t.curryN=a,t.dec=Nn,t.defaultTo=kn,t.descend=Wn,t.difference=Fn,t.differenceWith=Pn,t.dissoc=Tn,t.dissocPath=Cn,t.divide=Rn,t.drop=Dn,t.dropLast=Gn,t.dropLastWhile=$n,t.dropRepeats=Zn,t.dropRepeatsBy=tr,t.dropRepeatsWith=Yn,t.dropWhile=rr,t.either=ur,t.empty=ir,t.endsWith=cr,t.eqBy=Qn,t.eqProps=ar,t.equals=B,t.evolve=fr,t.filter=H,t.find=lr,t.findIndex=hr,t.findLast=dr,t.findLastIndex=gr,t.flatten=mr,t.flip=br,t.forEach=xr,t.forEachObjIndexed=wr,t.fromPairs=jr,t.groupBy=Ar,t.groupWith=Or,t.gt=Sr,t.gte=Er,t.has=Ir,t.hasIn=Nr,t.hasPath=_r,t.head=yn,t.identical=functiont(r,n){switch(arguments.length){case0:returnt;case1:returnfunctiont(n){switch(arguments.length){case0:returnt;default:returnE(r,n)}};default:returnE(r,n)}},t.identity=vn,t.ifElse=kr,t.inc=Wr,t.includes=qr,t.indexBy=Ur,t.indexOf=Fr,t.init=Pr,t.innerJoin=Br,t.insert=Cr,t.insertAll=Tr,t.intersection=zr,t.intersperse=Lr,t.into=Jr,t.invert=Xr,t.invertObj=Yr,t.invoker=Zr,t.is=Qr,t.isEmpty=te,t.isNil=Ft,t.isNotNil=ne,t.join=re,t.juxt=ee,t.keys=q,t.keysIn=ue,t.last=Xn,t.lastIndexOf=ie,t.length=ce,t.lens=ae,t.lensIndex=se,t.lensPath=he,t.lensProp=ye,t.lift=Dt,t.liftN=Mt,t.lt=de,t.lte=ve,t.map=nt,t.mapAccum=ge,t.mapAccumRight=me,t.mapObjIndexed=be,t.match=xe,t.mathMod=we,t.max=Z,t.maxBy=je,t.mean=Oe,t.median=Se,t.memoizeWith=Ee,t.mergeAll=_e,t.mergeDeepLeft=ke,t.mergeDeepRight=We,t.mergeDeepWith=qe,t.mergeDeepWithKey=Ne,t.mergeLeft=Ue,t.mergeRight=Fe,t.mergeWith=Pe,t.mergeWithKey=Ie,t.min=Be,t.minBy=Ce,t.modify=Re,t.modifyPath=Te,t.modulo=Me,t.move=De,t.multiply=ze,t.nAry=Ct,t.negate=Ve,t.none=Ge,t.not=un,t.nth=ut,t.nthArg=Ke,t.o=$e,t.objOf=Gr,t.of=He,t.omit=Je,t.on=Xe,t.once=Ye,t.or=er,t.otherwise=Qe,t.over=tu,t.pair=nu,t.partial=eu,t.partialObject=Le,t.partialRight=uu,t.partition=iu,t.path=pe,t.pathEq=ou,t.pathOr=cu,t.pathSatisfies=au,t.paths=le,t.pick=fu,t.pickAll=su,t.pickBy=lu,t.pipe=ln,t.pipeWith=gn,t.pluck=ot,t.prepend=pu,t.product=hu,t.project=du,t.promap=mu,t.prop=it,t.propEq=bu,t.propIs=xu,t.propOr=wu,t.propSatisfies=ju,t.props=Au,t.range=Ou,t.reduce=dt,t.reduceBy=_n,t.reduceRight=Su,t.reduceWhile=Eu,t.reduced=_u,t.reject=J,t.remove=Bn,t.repeat=Nu,t.replace=ku,t.reverse=pn,t.scan=Pu,t.sequence=Bu,t.set=Cu,t.slice=fn,t.sort=Tu,t.sortBy=Ru,t.sortWith=Mu,t.split=Du,t.splitAt=zu,t.splitEvery=Lu,t.splitWhen=Vu,t.splitWhenever=Gu,t.startsWith=Ku,t.subtract=$u,t.sum=Ae,t.swap=Hu,t.symmetricDifference=Ju,t.symmetricDifferenceWith=Xu,t.tail=sn,t.take=Ln,t.takeLast=or,t.takeLastWhile=Yu,t.takeWhile=Qu,t.tap=ni,t.test=ri,t.thunkify=Ri,t.times=Iu,t.toLower=ui,t.toPairs=ii,t.toPairsIn=oi,t.toString=Y,t.toUpper=ci,t.transduce=ai,t.transpose=fi,t.traverse=si,t.trim=pi,t.tryCatch=hi,t.type=U,t.unapply=yi,t.unary=di,t.uncurryN=vi,t.unfold=gi,t.union=mi,t.unionWith=ji,t.uniq=Dr,t.uniqBy=Mr,t.uniqWith=wi,t.unless=Ai,t.unnest=Oi,t.until=Si,t.unwind=Ei,t.update=fe,t.useWith=yu,t.values=It,t.valuesIn=_i,t.view=Ii,t.when=Ni,t.where=ki,t.whereAny=Wi,t.whereEq=qi,t.without=Ui,t.xor=Fi,t.xprod=Pi,t.zip=Bi,t.zipObj=Ci,t.zipWith=Ti,Object.defineProperty(t,"__esModule",{value:!0})});