!function(){"use strict";vare=function(e){if(null===e)return"null";if(void0===e)return"undefined";vart=typeofe;return"object"===t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t},t=function(e){return{eq:e}},n=t((function(e,t){returne===t})),o=function(e){returnt((function(t,n){if(t.length!==n.length)return!1;for(varo=t.length,r=0;r<o;r++)if(!e.eq(t[r],n[r]))return!1;return!0}))},r=function(e){returnt((function(r,s){vara=Object.keys(r),i=Object.keys(s);if(!function(e,n){returnfunction(e,n){returnt((function(t,o){returne.eq(n(t),n(o))}))}(o(e),(function(e){returnfunction(e,t){returnArray.prototype.slice.call(e).sort(t)}(e,n)}))}(n).eq(a,i))return!1;for(varl=a.length,d=0;d<l;d++){varc=a[d];if(!e.eq(r[c],s[c]))return!1}return!0}))},s=t((function(t,n){if(t===n)return!0;vara=e(t);returna===e(n)&&(function(e){return-1!==["undefined","boolean","number","string","function","xml","null"].indexOf(e)}(a)?t===n:"array"===a?o(s).eq(t,n):"object"===a&&r(s).eq(t,n))}));consta=Object.getPrototypeOf,i=(e,t,n)=>{varo;return!!n(e,t.prototype)||(null===(o=e.constructor)||void0===o?void0:o.name)===t.name},l=e=>t=>(e=>{constt=typeofe;returnnull===e?"null":"object"===t&&Array.isArray(e)?"array":"object"===t&&i(e,String,((e,t)=>t.isPrototypeOf(e)))?"string":t})(t)===e,d=e=>t=>typeoft===e,c=e=>t=>e===t,u=(e,t)=>f(e)&&i(e,t,((e,t)=>a(e)===t)),m=l("string"),f=l("object"),g=e=>u(e,Object),p=l("array"),h=c(null),b=d("boolean"),v=c(void0),y=e=>null==e,C=e=>!y(e),w=d("function"),x=d("number"),k=(e,t)=>{if(p(e)){for(letn=0,o=e.length;n<o;++n)if(!t(e[n]))return!1;return!0}return!1},S=()=>{},_=(e,t)=>(...n)=>e(t.apply(null,n)),E=(e,t)=>n=>e(t(n)),N=e=>()=>e,R=e=>e,A=(e,t)=>e===t;functionO(e,...t){return(...n)=>{consto=t.concat(n);returne.apply(null,o)}}constT=e=>t=>!e(t),B=e=>e(),D=e=>{e()},P=N(!1),L=N(!0);classM{constructor(e,t){this.tag=e,this.value=t}staticsome(e){returnnewM(!0,e)}staticnone(){returnM.singletonNone}fold(e,t){returnthis.tag?t(this.value):e()}isSome(){returnthis.tag}isNone(){return!this.tag}map(e){returnthis.tag?M.some(e(this.value)):M.none()}bind(e){returnthis.tag?e(this.value):M.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:M.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){returnC(e)?M.some(e):M.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()"}}M.singletonNone=newM(!1);constI=Array.prototype.slice,F=Array.prototype.indexOf,U=Array.prototype.push,z=(e,t)=>F.call(e,t),j=(e,t)=>z(e,t)>-1,V=(e,t)=>{for(letn=0,o=e.length;n<o;n++)if(t(e[n],n))return!0;return!1},H=(e,t)=>{constn=e.length,o=newArray(n);for(letr=0;r<n;r++){constn=e[r];o[r]=t(n,r)}returno},$=(e,t)=>{for(letn=0,o=e.length;n<o;n++)t(e[n],n)},q=(e,t)=>{for(letn=e.length-1;n>=0;n--)t(e[n],n)},W=(e,t)=>{constn=[],o=[];for(letr=0,s=e.length;r<s;r++){consts=e[r];(t(s,r)?n:o).push(s)}return{pass:n,fail:o}},K=(e,t)=>{constn=[];for(leto=0,r=e.length;o<r;o++){constr=e[o];t(r,o)&&n.push(r)}returnn},G=(e,t,n)=>(q(e,((e,o)=>{n=t(n,e,o)})),n),Y=(e,t,n)=>($(e,((e,o)=>{n=t(n,e,o)})),n),X=(e,t,n)=>{for(leto=0,r=e.length;o<r;o++){constr=e[o];if(t(r,o))returnM.some(r);if(n(r,o))break}returnM.none()},Q=(e,t)=>X(e,t,P),J=(e,t)=>{for(letn=0,o=e.length;n<o;n++)if(t(e[n],n))returnM.some(n);returnM.none()},Z=e=>{constt=[];for(letn=0,o=e.length;n<o;++n){if(!p(e[n]))thrownewError("Arr.flatten item "+n+" was not an array, input: "+e);U.apply(t,e[n])}returnt},ee=(e,t)=>Z(H(e,t)),te=(e,t)=>{for(letn=0,o=e.length;n<o;++n)if(!0