!function(){"use strict";conste=Object.getPrototypeOf,t=(e,t,n)=>{varr;return!!n(e,t.prototype)||(null===(r=e.constructor)||void0===r?void0:r.name)===t.name},n=e=>n=>(e=>{constn=typeofe;returnnull===e?"null":"object"===n&&Array.isArray(e)?"array":"object"===n&&t(e,String,((e,t)=>t.isPrototypeOf(e)))?"string":n})(n)===e,r=e=>t=>typeoft===e,o=e=>t=>e===t,s=n("string"),l=n("object"),a=n=>((n,r)=>l(n)&&t(n,r,((t,n)=>e(t)===n)))(n,Object),i=n("array"),c=o(null),u=r("boolean"),g=o(void0),d=e=>null==e,p=e=>!d(e),m=r("function"),h=r("number"),f=(e,t)=>{if(i(e)){for(letn=0,r=e.length;n<r;++n)if(!t(e[n]))return!1;return!0}return!1},y=()=>{},w=(e,t)=>(...n)=>e(t.apply(null,n)),b=e=>()=>e,v=e=>e,x=(e,t)=>e===t;functionk(e,...t){return(...n)=>{constr=t.concat(n);returne.apply(null,r)}}constS=e=>e(),T=e=>{e()},E=b(!1),O=b(!0);classC{constructor(e,t){this.tag=e,this.value=t}staticsome(e){returnnewC(!0,e)}staticnone(){returnC.singletonNone}fold(e,t){returnthis.tag?t(this.value):e()}isSome(){returnthis.tag}isNone(){return!this.tag}map(e){returnthis.tag?C.some(e(this.value)):C.none()}bind(e){returnthis.tag?e(this.value):C.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:C.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){returnp(e)?C.some(e):C.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()"}}C.singletonNone=newC(!1);const_=Array.prototype.slice,A=Array.prototype.indexOf,N=Array.prototype.push,D=(e,t)=>A.call(e,t),R=(e,t)=>D(e,t)>-1,I=(e,t)=>{for(letn=0,r=e.length;n<r;n++)if(t(e[n],n))return!0;return!1},L=(e,t)=>{constn=e.length,r=newArray(n);for(leto=0;o<n;o++){constn=e[o];r[o]=t(n,o)}returnr},j=(e,t)=>{for(letn=0,r=e.length;n<r;n++)t(e[n],n)},M=(e,t)=>{constn=[];for(letr=0,o=e.length;r<o;r++){consto=e[r];t(o,r)&&n.push(o)}returnn},P=(e,t,n)=>(j(e,((e,r)=>{n=t(n,e,r)})),n),B=(e,t)=>((e,t,n)=>{for(letr=0,o=e.length;r<o;r++){consto=e[r];if(t(o,r))returnC.some(o);if(n(o,r))break}returnC.none()})(e,t,E),z=(e,t)=>{for(letn=0,r=e.length;n<r;n++)if(t(e[n],n))returnC.some(n);returnC.none()},W=(e,t)=>(e=>{constt=[];for(letn=0,r=e.length;n<r;++n){if(!i(e[n]))thrownewError("Arr.flatten item "+n+" was not an array, input: "+e);N.apply(t,e[n])}returnt})(L(e,t)),F=(e,t)=>{for(letn=0,r=e.length;n<r;++n)if(!0!==t(e[n],n))return!1;return!0},q=e=>{constt=_.call(e,0);returnt.reverse(),t},V=e=>[e],U=(e,t)=>t>=0&&t<e.length?C.some(e[t]):C.none(),$=e=>U(e,0),H=(e,t)=>{constn=[],r=m(t)?e=>I(n,(n=>t(n,e))):e=>R(n,e);for(lett=0,o=e.length;t<o;t++){consto=e[t];r(o)||n.push(o)}returnn},J=Object.keys,K=Object.hasOwnProperty,Z=(e,t)=>{constn=J(e);for(letr=0,o=n.length;r<o;r++){consto=n[r];t(e[o],o)}},G=(e,t)=>Y(e,((e,n)=>({k:n,v:t(e,n)}))),Y=(e,t)=>{constn={};returnZ(e,((e,r)=>{consto=t(e,r);n[o.k]=o.v})),n},X=(e,t)=>{constn=[];returnZ(e,((e,r)=>{n.push(t(e,r))})),n},Q=(e,t)=>ee(e,t)?C.from(e[t]):C.none(),ee=(e,t)=>K.call(e,t),te="undefined"!=typeofwindow?window:Function("return this;")(),ne=(e,t)=>((e,t)=>{letn=null!=t?t:te;for(lett=0;t<e.length&&null!=n;++t)n=n[e[t]];returnn})(e.split("."),t),re=Object.getPrototypeOf,oe=e=>{constt=ne("ownerDocument.defaultView",e);returnl(e)&&((e=>((e,t)=>{constn=((e,t)=>ne(e,t))(e,t);if(null==n)thrownewError(e+" not available on this browser");returnn})("HTMLElement",e))(t).prototype.isPrototypeOf(e)||/^HTML\w*Element$/.test(re(e).constructor.name))},se=e=>e.dom.nodeName.toLowerCase(),le=e=>e.dom.nodeType,ae=e=>t=>le(t)===e,ie=e=>8===le(e)||"#comment"===se(e),ce=e=>ue(e)&&oe(e.dom),ue=ae(1),ge=ae(3),de=ae(9),pe=ae(11),me=e=>t=>ue(t)&&se(t)===e,he=(e,t,n)=>{if(!(s(n)||u(n)||h(n)))throwconsole.e