!function(){"use strict";conste=e=>parseInt(e,10),t=(e,t)=>{consto=e-t;return0===o?0:o>0?1:-1},o=(e,t,o)=>({major:e,minor:t,patch:o}),n=t=>{constn=/([0-9]+)\.([0-9]+)\.([0-9]+)(?:(\-.+)?)/.exec(t);returnn?o(e(n[1]),e(n[2]),e(n[3])):o(0,0,0)},r=e=>t=>(e=>{constt=typeofe;returnnull===e?"null":"object"===t&&Array.isArray(e)?"array":"object"===t&&(o=n=e,(r=String).prototype.isPrototypeOf(o)||(null===(s=n.constructor)||void0===s?void0:s.name)===r.name)?"string":t;varo,n,r,s})(t)===e,s=e=>t=>typeoft===e,l=e=>t=>e===t,c=r("string"),i=r("object"),a=r("array"),m=l(null),u=s("boolean"),d=l(void0),h=e=>null==e,p=e=>!h(e),g=s("function"),f=s("number");classw{constructor(e,t){this.tag=e,this.value=t}staticsome(e){returnneww(!0,e)}staticnone(){returnw.singletonNone}fold(e,t){returnthis.tag?t(this.value):e()}isSome(){returnthis.tag}isNone(){return!this.tag}map(e){returnthis.tag?w.some(e(this.value)):w.none()}bind(e){returnthis.tag?e(this.value):w.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:w.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)?w.some(e):w.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()"}}w.singletonNone=neww(!1);constb=()=>{},v=e=>()=>e,y=e=>e,C=(e,t)=>e===t;functionx(e,...t){return(...o)=>{constn=t.concat(o);returne.apply(null,n)}}constS=v(!1),T=v(!0),R=Array.prototype.slice,D=Array.prototype.indexOf,O=Array.prototype.push,A=(e,t)=>{returno=e,n=t,D.call(o,n)>-1;varo,n},E=(e,t)=>{for(leto=0,n=e.length;o<n;o++)if(t(e[o],o))return!0;return!1},k=(e,t)=>{consto=[];for(letn=0;n<e;n++)o.push(t(n));returno},N=(e,t)=>{consto=e.length,n=newArray(o);for(letr=0;r<o;r++){consto=e[r];n[r]=t(o,r)}returnn},W=(e,t)=>{for(leto=0,n=e.length;o<n;o++)t(e[o],o)},L=(e,t)=>{consto=[],n=[];for(letr=0,s=e.length;r<s;r++){consts=e[r];(t(s,r)?o:n).push(s)}return{pass:o,fail:n}},M=(e,t)=>{consto=[];for(letn=0,r=e.length;n<r;n++){constr=e[n];t(r,n)&&o.push(r)}returno},j=(e,t)=>{if(0===e.length)return[];{leto=t(e[0]);constn=[];letr=[];for(lets=0,l=e.length;s<l;s++){constl=e[s],c=t(l);c!==o&&(n.push(r),r=[]),o=c,r.push(l)}return0!==r.length&&n.push(r),n}},B=(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),I=(e,t,o)=>(W(e,((e,n)=>{o=t(o,e,n)})),o),P=(e,t)=>((e,t,o)=>{for(letn=0,r=e.length;n<r;n++){constr=e[n];if(t(r,n))returnw.some(r);if(o(r,n))break}returnw.none()})(e,t,S),z=(e,t)=>(e=>{constt=[];for(leto=0,n=e.length;o<n;++o){if(!a(e[o]))thrownewError("Arr.flatten item "+o+" was not an array, input: "+e);O.apply(t,e[o])}returnt})(N(e,t)),_=(e,t)=>{for(leto=0,n=e.length;o<n;++o)if(!0!==t(e[o],o))return!1;return!0},F=(e,t)=>{consto=R.call(e,0);returno.sort(t),o},$=(e,t)=>t>=0&&t<e.length?w.some(e[t]):w.none(),V=e=>$(e,0),G=e=>$(e,e.length-1),q=(e,t)=>{for(leto=0;o<e.length;o++){constn=t(e[o],o);if(n.isSome())returnn}returnw.none()},H=(e,t,o=C)=>e.exists((e=>o(e,t))),U=(e,t,o)=>e.isSome()&&t.isSome()?w.some(o(e.getOrDie(),t.getOrDie())):w.none(),K=e=>e.bind(y),Q=(e,t)=>e?w.some(t):w.none(),X=e=>{if(null==e)thrownewError("Node cannot be null or undefined");return{dom:e}},Y={fromHtml:(e,t)=>{consto=(t||document).createElement("div");if(o.innerHTML=e,!o.hasChildNodes()||o.childNodes.length>1){constt="HTML does not have a single root node";throwconsole.error(t,e),newError(t)}returnX(o.childNodes[0])},fromTag:(e,t)=>{consto=(t||document).createElement(e);returnX(o)},fromText:(e,t)=>{consto=(t||document).createTextNode(e);returnX(o)},fromDom:X,fromPoint:(e,t,o)=>w.from(e.dom.elementFromPoint(t,o)).map(X)},J="undefined"!=typeofwindow?window:Function("returnthis;