!function(){"use strict";conste=e=>{lett=e;return{get:()=>t,set:e=>{t=e}}},t=e=>parseInt(e,10),r=(e,t)=>{constr=e-t;return0===r?0:r>0?1:-1},o=(e,t,r)=>({major:e,minor:t,patch:r}),n=e=>{constr=/([0-9]+)\.([0-9]+)\.([0-9]+)(?:(\-.+)?)/.exec(e);returnr?o(t(r[1]),t(r[2]),t(r[3])):o(0,0,0)},a=Object.getPrototypeOf,i=(e,t,r)=>{varo;return!!r(e,t.prototype)||(null===(o=e.constructor)||void0===o?void0:o.name)===t.name},s=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,l=e=>t=>typeoft===e,d=s("string"),c=s("object"),u=e=>((e,t)=>c(e)&&i(e,t,((e,t)=>a(e)===t)))(e,Object),m=s("array"),h=l("boolean"),g=(void0,e=>undefined===e);constp=e=>!(e=>null==e)(e),f=l("function"),y=l("number"),b=()=>{},w=e=>()=>e,v=e=>e,x=(e,t)=>e===t;functionS(e,...t){return(...r)=>{consto=t.concat(r);returne.apply(null,o)}}constO=e=>e(),I=w(!1),E=w(!0);classP{constructor(e,t){this.tag=e,this.value=t}staticsome(e){returnnewP(!0,e)}staticnone(){returnP.singletonNone}fold(e,t){returnthis.tag?t(this.value):e()}isSome(){returnthis.tag}isNone(){return!this.tag}map(e){returnthis.tag?P.some(e(this.value)):P.none()}bind(e){returnthis.tag?e(this.value):P.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:P.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)?P.some(e):P.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()"}}P.singletonNone=newP(!1);constC=Object.keys,D=Object.hasOwnProperty,R=(e,t)=>{constr=C(e);for(leto=0,n=r.length;o<n;o++){constn=r[o];t(e[n],n)}},M=(e,t)=>D.call(e,t),U=Array.prototype.indexOf,A=(e,t)=>((e,t)=>U.call(e,t))(e,t)>-1,F=(e,t)=>{constr=e.length,o=newArray(r);for(letn=0;n<r;n++){constr=e[n];o[n]=t(r,n)}returno},T=(e,t)=>{for(letr=0,o=e.length;r<o;r++)t(e[r],r)},k=(e,t,r)=>(T(e,((e,o)=>{r=t(r,e,o)})),r),L=(e,t)=>((e,t,r)=>{for(leto=0,n=e.length;o<n;o++){constn=e[o];if(t(n,o))returnP.some(n);if(r(n,o))break}returnP.none()})(e,t,I),_=e=>{if(null==e)thrownewError("Node cannot be null or undefined");return{dom:e}},N=(e,t)=>{constr=(t||document).createElement(e);return_(r)},z=_,j=(e,t)=>{constr=void0===t?document:t.dom;return1!==(o=r).nodeType&&9!==o.nodeType&&11!==o.nodeType||0===o.childElementCount?P.none():P.from(r.querySelector(e)).map(z);varo};"undefined"!=typeofwindow?window:Function("return this;")();constB=e=>t=>(e=>e.dom.nodeType)(t)===e,G=B(1),H=B(3),V=B(9),W=B(11),X=f(Element.prototype.attachShadow)&&f(Node.prototype.getRootNode),Y=w(X),J=X?e=>z(e.dom.getRootNode()):e=>V(e)?e:z(e.dom.ownerDocument),q=e=>z(e.dom.host),K=e=>{constt=H(e)?e.dom.parentNode:e.dom;if(null==t||null===t.ownerDocument)return!1;constr=t.ownerDocument;return(e=>{constt=J(e);returnW(r=t)&&p(r.dom.host)?P.some(t):P.none();varr})(z(t)).fold((()=>r.body.contains(t)),(o=K,n=q,e=>o(n(e))));varo,n},Z=(e,t)=>((e,r)=>L(e.dom.childNodes,(e=>((e,t)=>{constr=e.dom;if(1!==r.nodeType)return!1;{conste=r;if(void0!==e.matches)returne.matches(t);if(void0!==e.msMatchesSelector)returne.msMatchesSelector(t);if(void0!==e.webkitMatchesSelector)returne.webkitMatchesSelector(t);if(void0!==e.mozMatchesSelector)returne.mozMatchesSelector(t);thrownewError("Browser lacks native selectors")}})(z(e),t))).map(z))(e),$=(e,t)=>j(t,e),Q=e=>{constt=z((e=>{if(Y()&&p(e.target)){constt=z(e.target);if(G(t)&&p(t.dom.shadowRoot)&&e.composed&&e.composedPath){constt=e.composedPath();if(t)return((e,t)=>0<e.length?P.some(e[0]):P.none())(t)}}returnP.from(e.target)})(e).getOr(e.target)),r=()=>e.stopPropagation(),o=()=>e.preventDefault(),n=(a=o,i=r,(...e)=>a(i.