!function(){"use strict";conste=Object.getPrototypeOf,t=(e,t,o)=>{varn;return!!o(e,t.prototype)||(null===(n=e.constructor)||void0===n?void0:n.name)===t.name},o=e=>o=>(e=>{consto=typeofe;returnnull===e?"null":"object"===o&&Array.isArray(e)?"array":"object"===o&&t(e,String,((e,t)=>t.isPrototypeOf(e)))?"string":o})(o)===e,n=e=>t=>typeoft===e,s=e=>t=>e===t,r=o("string"),a=o("object"),i=o=>((o,n)=>a(o)&&t(o,n,((t,o)=>e(t)===o)))(o,Object),l=o("array"),c=s(null),d=n("boolean"),u=s(void0),m=e=>null==e,g=e=>!m(e),p=n("function"),h=n("number"),f=(e,t)=>{if(l(e)){for(leto=0,n=e.length;o<n;++o)if(!t(e[o]))return!1;return!0}return!1},b=()=>{},v=e=>()=>e(),y=(e,t)=>(...o)=>e(t.apply(null,o)),x=e=>()=>e,w=e=>e,S=(e,t)=>e===t;functionk(e,...t){return(...o)=>{constn=t.concat(o);returne.apply(null,n)}}constC=e=>t=>!e(t),O=e=>()=>{thrownewError(e)},_=e=>e(),T=x(!1),E=x(!0);classA{constructor(e,t){this.tag=e,this.value=t}staticsome(e){returnnewA(!0,e)}staticnone(){returnA.singletonNone}fold(e,t){returnthis.tag?t(this.value):e()}isSome(){returnthis.tag}isNone(){return!this.tag}map(e){returnthis.tag?A.some(e(this.value)):A.none()}bind(e){returnthis.tag?e(this.value):A.none()}exists(e){returnthis.tag&&e(this.value)}forall(e){return!this.tag||e(this.value)}filter(e){return!this.tag||e(this.value)?this:A.none()}getOr(e){returnthis.tag?this.value:e}or(e){returnthis.tag?this:e}getOrThunk(e){returnthis.tag?this.value:e()}orThunk(e){returnthis.tag?this:e()}getOrDie(e){if(this.tag)returnthis.value;thrownewError(null!=e?e:"Called getOrDie on None")}staticfrom(e){returng(e)?A.some(e):A.none()}getOrNull(){returnthis.tag?this.value:null}getOrUndefined(){returnthis.value}each(e){this.tag&&e(this.value)}toArray(){returnthis.tag?[this.value]:[]}toString(){returnthis.tag?`some(${this.value})`:"none()"}}A.singletonNone=newA(!1);constM=Array.prototype.slice,D=Array.prototype.indexOf,B=Array.prototype.push,F=(e,t)=>D.call(e,t),I=(e,t)=>{consto=F(e,t);return-1===o?A.none():A.some(o)},R=(e,t)=>F(e,t)>-1,N=(e,t)=>{for(leto=0,n=e.length;o<n;o++)if(t(e[o],o))return!0;return!1},V=(e,t)=>{consto=[];for(letn=0;n<e;n++)o.push(t(n));returno},z=(e,t)=>{consto=[];for(letn=0;n<e.length;n+=t){consts=M.call(e,n,n+t);o.push(s)}returno},H=(e,t)=>{consto=e.length,n=newArray(o);for(lets=0;s<o;s++){consto=e[s];n[s]=t(o,s)}returnn},L=(e,t)=>{for(leto=0,n=e.length;o<n;o++)t(e[o],o)},P=(e,t)=>{consto=[],n=[];for(lets=0,r=e.length;s<r;s++){constr=e[s];(t(r,s)?o:n).push(r)}return{pass:o,fail:n}},U=(e,t)=>{consto=[];for(letn=0,s=e.length;n<s;n++){consts=e[n];t(s,n)&&o.push(s)}returno},W=(e,t,o)=>(((e,t)=>{for(leto=e.length-1;o>=0;o--)t(e[o],o)})(e,((e,n)=>{o=t(o,e,n)})),o),j=(e,t,o)=>(L(e,((e,n)=>{o=t(o,e,n)})),o),G=(e,t)=>((e,t,o)=>{for(letn=0,s=e.length;n<s;n++){consts=e[n];if(t(s,n))returnA.some(s);if(o(s,n))break}returnA.none()})(e,t,T),$=(e,t)=>{for(leto=0,n=e.length;o<n;o++)if(t(e[o],o))returnA.some(o);returnA.none()},q=e=>{constt=[];for(leto=0,n=e.length;o<n;++o){if(!l(e[o]))thrownewError("Arr.flatten item "+o+" was not an array, input: "+e);B.apply(t,e[o])}returnt},X=(e,t)=>q(H(e,t)),Y=(e,t)=>{for(leto=0,n=e.length;o<n;++o)if(!0!==t(e[o],o))return!1;return!0},K=e=>{constt=M.call(e,0);returnt.reverse(),t},J=(e,t)=>U(e,(e=>!R(t,e))),Z=(e,t)=>{consto={};for(letn=0,s=e.length;n<s;n++){consts=e[n];o[String(s)]=t(s,n)}returno},Q=e=>[e],ee=(e,t)=>{consto=M.call(e,0);returno.sort(t),o},te=(e,t)=>t>=0&&t<e.length?A.some(e[t]):A.none(),oe=e=>te(e,0),ne=e=>te(e,e.length-1),se=p(Array.from)?Array.from:e=>M.call(e),re=(e,t)=>{for(leto=0;o<e.length;o++){constn=t(e[o],o);if(n.isSome())returnn}returnA.none()},ae=Object.keys,ie=Object.hasOwnProperty,le=(e,t)=>{consto=ae(e);for(letn=0,s=o.length;n<s;n++){consts=o[n];t(e[s],s)}},ce=(e,t)=>de(e,((e,o)=>({k:o,v:t(e,o)}))),de=(e,t)=>{consto={};returnle(e,((e,n)=>{consts=t(e,n);o[s.k]=s.v})),o},ue=e=>(t,o)=>{e[o]=t},me=(e,t,o,n)=>{le(e,((e,s)=>{(t(e,s)?o:n)(e,s)}))},ge=(e,t)=>{consto={};returnme(e,t,ue(o),b),o},pe=(e,t)=>{consto=[];returnle(e,((e,n)=>