45 lines
29 KiB
JavaScript
45 lines
29 KiB
JavaScript
import{s as Je,y as Ke}from"./vendor.86e21c29.js";const Ze=function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerpolicy&&(i.referrerPolicy=o.referrerpolicy),o.crossorigin==="use-credentials"?i.credentials="include":o.crossorigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}};Ze();function q(e){return Array.isArray(e)||ArrayBuffer.isView(e)}function ze(e){return typeof e.CompareTo=="function"}function Xe(e){return typeof e.Equals=="function"}function Ye(e){return typeof e.GetHashCode=="function"}function we(e,t){return Object.getPrototypeOf(e).constructor===Object.getPrototypeOf(t).constructor}class Qe{constructor(t){this.iter=t}["System.Collections.Generic.IEnumerator`1.get_Current"](){return this.current}["System.Collections.IEnumerator.get_Current"](){return this.current}["System.Collections.IEnumerator.MoveNext"](){const t=this.iter.next();return this.current=t.value,!t.done}["System.Collections.IEnumerator.Reset"](){throw new Error("JS iterators cannot be reset")}Dispose(){}}function le(e){return typeof e.GetEnumerator=="function"?e.GetEnumerator():new Qe(e[Symbol.iterator]())}function $e(e){return{[Symbol.iterator](){return this},next(){const t=e["System.Collections.IEnumerator.MoveNext"](),n=t?e["System.Collections.IEnumerator.get_Current"]():void 0;return{done:!t,value:n}}}}function me(e){const t=e;return typeof t.offset=="number"?t.offset:e.kind===1?0:e.getTimezoneOffset()*-6e4}class P{static id(t){return P.idMap.has(t)||P.idMap.set(t,++P.count),P.idMap.get(t)}}P.idMap=new WeakMap;P.count=0;function et(e){let t=0,n=5381;const r=e.length;for(;t<r;)n=n*33^e.charCodeAt(t++);return n}function ae(e){return e*2654435761|0}function te(e){return e.length===0?0:e.reduce((t,n)=>(t<<5)+t^n)}function tt(e){return e.getTime()}function nt(e){const t=e.length,n=new Array(t);for(let r=0;r<t;r++)n[r]=ne(e[r]);return te(n)}function ne(e){if(e==null)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return ae(e);case"string":return et(e);default:{if(Ye(e))return e.GetHashCode();if(q(e))return nt(e);if(e instanceof Date)return tt(e);if(Object.getPrototypeOf(e).constructor===Object){const t=Object.values(e).map(n=>ne(n));return te(t)}else return ae(P.id(e))}}}function rt(e,t,n){if(e==null)return t==null;if(t==null||e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!n(e[r],t[r]))return!1;return!0}function de(e,t){return rt(e,t,Z)}function ot(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;n.sort(),r.sort();for(let o=0;o<n.length;o++)if(n[o]!==r[o]||!Z(e[n[o]],t[r[o]]))return!1;return!0}function Z(e,t){return e===t?!0:e==null?t==null:t==null||typeof e!="object"?!1:Xe(e)?e.Equals(t):q(e)?q(t)&&de(e,t):e instanceof Date?t instanceof Date&&Ee(e,t)===0:Object.getPrototypeOf(e).constructor===Object&&ot(e,t)}function Ee(e,t){let n,r;return"offset"in e&&"offset"in t?(n=e.getTime(),r=t.getTime()):(n=e.getTime()+me(e),r=t.getTime()+me(t)),n===r?0:n<r?-1:1}function it(e,t,n){if(e==null)return t==null?0:1;if(t==null)return-1;if(e.length!==t.length)return e.length<t.length?-1:1;for(let r=0,o=0;r<e.length;r++)if(o=n(e[r],t[r]),o!==0)return o;return 0}function Fe(e,t){return it(e,t,he)}function st(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return n.length<r.length?-1:1;n.sort(),r.sort();for(let o=0,i=0;o<n.length;o++){const s=n[o];if(s!==r[o])return s<r[o]?-1:1;if(i=he(e[s],t[s]),i!==0)return i}return 0}function he(e,t){return e===t?0:e==null?t==null?0:-1:t==null?1:typeof e!="object"?e<t?-1:1:ze(e)?e.CompareTo(t):q(e)?q(t)?Fe(e,t):-1:e instanceof Date?t instanceof Date?Ee(e,t):-1:Object.getPrototypeOf(e).constructor===Object?st(e,t):-1}function ut(e){q(e)?e.splice(0):e.clear()}const ve=Symbol("curried");function be(e,t,n){return r=>t===1?n(...e.concat([r])):be(e.concat([r]),t-1,n)}function ct(e,t){return t==null||t.length===1?t:ve in t?t[ve]:be([],e,t)}function ft(e){let t=0,n="[";for(const r of e){if(t===0)n+=H(r);else if(t===100){n+="; ...";break}else n+="; "+H(r);t++}return n+"]"}function H(e,t=0){if(e!=null&&typeof e=="object"){if(typeof e.toString=="function")return e.toString();if(Symbol.iterator in e)return ft(e);{const n=Object.getPrototypeOf(e).constructor;return n===Object&&t<10?"{ "+Object.entries(e).map(([r,o])=>r+" = "+H(o,t+1)).join(`
|
|
`)+" }":n.name}}return String(e)}function lt(e,t){if(t.length===0)return e;{let n="",r=!0;return t.length===1?(n=H(t[0]),r=n.indexOf(" ")>=0):n=t.map(o=>H(o)).join(", "),e+(r?" (":" ")+n+(r?")":"")}}class at{get name(){return this.cases()[this.tag]}toJSON(){return this.fields.length===0?this.name:[this.name].concat(this.fields)}toString(){return lt(this.name,this.fields)}GetHashCode(){const t=this.fields.map(n=>ne(n));return t.splice(0,0,ae(this.tag)),te(t)}Equals(t){return this===t?!0:we(this,t)&&this.tag===t.tag?de(this.fields,t.fields):!1}CompareTo(t){return this===t?0:we(this,t)?this.tag===t.tag?Fe(this.fields,t.fields):this.tag<t.tag?-1:1:-1}}class ht{constructor(t,n){typeof n=="function"?(this.getter=t,this.setter=n):(this.getter=()=>t,this.setter=r=>{t=r})}get contents(){return this.getter()}set contents(t){this.setter(t)}}class gt{}const Se=Symbol("numeric");var g={GetHashCode(){return te([this.s,this.e].concat(this.c))},Equals(e){return!this.cmp(e)},CompareTo(e){return this.cmp(e)},[Se](){const e=this;return{multiply:t=>e.mul(t),toPrecision:t=>e.toPrecision(t),toExponential:t=>e.toExponential(t),toFixed:t=>e.toFixed(t),toHex:()=>(Number(e)>>>0).toString(16)}}},pt=28,_t=1,R=1e6,ye=1e6,wt=-29,mt=29,dt=!1,z="[big.js] ",A=z+"Invalid ",re=A+"decimal places",Et=A+"rounding mode",Ie=z+"Division by zero",C=void 0,Ft=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;function Ce(){function e(t){var n=this;if(!(n instanceof e))return t===C?Ce():new e(t);if(t instanceof e)n.s=t.s,n.e=t.e,n.c=t.c.slice(),vt(n);else{if(typeof t!="string"){if(e.strict===!0)throw TypeError(A+"number");t=t===0&&1/t<0?"-0":String(t)}bt(n,t)}n.constructor=e}return e.prototype=g,e.DP=pt,e.RM=_t,e.NE=wt,e.PE=mt,e.strict=dt,e}function vt(e){if(e.c.length>1&&!e.c[0]){let t=e.c.findIndex(n=>n);e.c=e.c.slice(t),e.e=e.e-t}}function bt(e,t){var n,r,o;if(!Ft.test(t))throw Error(A+"number");for(e.s=t.charAt(0)=="-"?(t=t.slice(1),-1):1,(n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),o=t.length,r=0;r<n&&r<o&&t.charAt(r)=="0";)++r;if(r==o)e.c=[e.e=0];else for(e.e=n-r-1,e.c=[],n=0;r<o;)e.c[n++]=+t.charAt(r++);return e=k(e,D.DP+1,D.RM),e}function k(e,t,n,r){var o=e.c;if(n===C&&(n=D.RM),n!==0&&n!==1&&n!==2&&n!==3)throw Error(Et);if(t<1)r=n===3&&(r||!!o[0])||t===0&&(n===1&&o[0]>=5||n===2&&(o[0]>5||o[0]===5&&(r||o[1]!==C))),o.length=1,r?(e.e=e.e-t+1,o[0]=1):o[0]=e.e=0;else if(t<o.length){const i=o.findIndex((s,u)=>u>=t&&s>0)<0;if(r=n===1&&o[t]>=5||n===2&&(o[t]>5||o[t]===5&&(r||o[t+1]!==C||o[t-1]&1))||n===3&&(r||!i),o.length=t--,r)for(;++o[t]>9;)o[t]=0,t--||(++e.e,o.unshift(1));for(t=o.length;!o[--t];)o.pop()}return e}function U(e,t,n){var r=e.e,o=e.c.join(""),i=o.length;if(t)o=o.charAt(0)+(i>1?"."+o.slice(1):"")+(r<0?"e":"e+")+r;else if(r<0){for(;++r;)o="0"+o;o="0."+o}else if(r>0)if(++r>i)for(r-=i;r--;)o+="0";else r<i&&(o=o.slice(0,r)+"."+o.slice(r));else i>1&&(o=o.charAt(0)+"."+o.slice(1));return e.s<0&&n?"-"+o:o}g.abs=function(){var e=new this.constructor(this);return e.s=1,e};g.cmp=function(e){var t,n=this.constructor,r=new n(this),e=new n(e),o=r.c,i=e.c,s=r.s,u=e.s,f=r.e,c=e.e;if(!o[0]||!i[0])return o[0]?s:i[0]?-u:0;if(s!=u)return s;if(t=s<0,f!=c)return f>c^t?1:-1;for(u=Math.max(o.length,i.length),s=0;s<u;s++)if(f=s<o.length?o[s]:0,c=s<i.length?i[s]:0,f!=c)return f>c^t?1:-1;return 0};g.div=function(e){var t=this.constructor,n=new t(this),e=new t(e),r=n.c,o=e.c,i=n.s==e.s?1:-1,s=t.DP;if(s!==~~s||s<0||s>R)throw Error(re);if(!o[0])throw Error(Ie);if(!r[0])return e.s=i,e.c=[e.e=0],e;var u,f,c,l,a,h=o.slice(),p=u=o.length,I=r.length,_=r.slice(0,u),d=_.length,T=e,ce=T.c=[],fe=0,K=s+(T.e=n.e-e.e)+1;for(T.s=i,i=K<0?0:K,h.unshift(0);d++<u;)_.push(0);do{for(c=0;c<10;c++){if(u!=(d=_.length))l=u>d?1:-1;else for(a=-1,l=0;++a<u;)if(o[a]!=_[a]){l=o[a]>_[a]?1:-1;break}if(l<0){for(f=d==u?o:h;d;){if(_[--d]<f[d]){for(a=d;a&&!_[--a];)_[a]=9;--_[a],_[d]+=10}_[d]-=f[d]}for(;!_[0];)_.shift()}else break}ce[fe++]=l?c:++c,_[0]&&l?_[d]=r[p]||0:_=[r[p]]}while((p++<I||_[0]!==C)&&i--);return!ce[0]&&fe!=1&&(ce.shift(),T.e--,K--),fe>K&&k(T,K,t.RM,_[0]!==C),T};g.eq=function(e){return this.cmp(e)===0};g.gt=function(e){return this.cmp(e)>0};g.gte=function(e){return this.cmp(e)>-1};g.lt=function(e){return this.cmp(e)<0};g.lte=function(e){return this.cmp(e)<1};g.minus=g.sub=function(e){var t,n,r,o,i=this.constructor,s=new i(this),e=new i(e),u=s.s,f=e.s;if(u!=f)return e.s=-f,s.plus(e);var c=s.c.slice(),l=s.e,a=e.c,h=e.e;if(!c[0]||!a[0])return a[0]?e.s=-f:c[0]?e=new i(s):e.s=1,e;if(u=l-h){for((o=u<0)?(u=-u,r=c):(h=l,r=a),r.reverse(),f=u;f--;)r.push(0);r.reverse()}else for(n=((o=c.length<a.length)?c:a).length,u=f=0;f<n;f++)if(c[f]!=a[f]){o=c[f]<a[f];break}if(o&&(r=c,c=a,a=r,e.s=-e.s),(f=(n=a.length)-(t=c.length))>0)for(;f--;)c[t++]=0;for(f=t;n>u;){if(c[--n]<a[n]){for(t=n;t&&!c[--t];)c[t]=9;--c[t],c[n]+=10}c[n]-=a[n]}for(;c[--f]===0;)c.pop();for(;c[0]===0;)c.shift(),--h;return c[0]||(e.s=1,c=[h=0]),e.c=c,e.e=h,e};g.mod=function(e){var t,n=this.constructor,r=new n(this),e=new n(e),o=r.s,i=e.s;if(!e.c[0])throw Error(Ie);return r.s=e.s=1,t=e.cmp(r)==1,r.s=o,e.s=i,t?new n(r):(o=n.DP,i=n.RM,n.DP=n.RM=0,r=r.div(e),n.DP=o,n.RM=i,this.minus(r.times(e)))};g.plus=g.add=function(e){var t,n,r,o=this.constructor,i=new o(this),e=new o(e);if(i.s!=e.s)return e.s=-e.s,i.minus(e);var s=i.e,u=i.c,f=e.e,c=e.c;if(!u[0]||!c[0])return c[0]||(u[0]?e=new o(i):e.s=i.s),e;if(u=u.slice(),t=s-f){for(t>0?(f=s,r=c):(t=-t,r=u),r.reverse();t--;)r.push(0);r.reverse()}for(u.length-c.length<0&&(r=c,c=u,u=r),t=c.length,n=0;t;u[t]%=10)n=(u[--t]=u[t]+c[t]+n)/10|0;for(n&&(u.unshift(n),++f),t=u.length;u[--t]===0;)u.pop();return e.c=u,e.e=f,e};g.pow=function(e){var t=this.constructor,n=new t(this),r=new t("1"),o=new t("1"),i=e<0;if(e!==~~e||e<-ye||e>ye)throw Error(A+"exponent");for(i&&(e=-e);e&1&&(r=r.times(n)),e>>=1,!!e;)n=n.times(n);return i?o.div(r):r};g.prec=function(e,t){if(e!==~~e||e<1||e>R)throw Error(A+"precision");return k(new this.constructor(this),e,t)};g.round=function(e,t){if(e===C)e=0;else if(e!==~~e||e<-R||e>R)throw Error(re);return k(new this.constructor(this),e+this.e+1,t)};g.sqrt=function(){var e,t,n,r=this.constructor,o=new r(this),i=o.s,s=o.e,u=new r("0.5");if(!o.c[0])return new r(o);if(i<0)throw Error(z+"No square root");i=Math.sqrt(o+""),i===0||i===1/0?(t=o.c.join(""),t.length+s&1||(t+="0"),i=Math.sqrt(t),s=((s+1)/2|0)-(s<0||s&1),e=new r((i==1/0?"5e":(i=i.toExponential()).slice(0,i.indexOf("e")+1))+s)):e=new r(i+""),s=e.e+(r.DP+=4);do n=e,e=u.times(n.plus(o.div(n)));while(n.c.slice(0,s).join("")!==e.c.slice(0,s).join(""));return k(e,(r.DP-=4)+e.e+1,r.RM)};g.times=g.mul=function(e){var t,n=this.constructor,r=new n(this),e=new n(e),o=r.c,i=e.c,s=o.length,u=i.length,f=r.e,c=e.e;if(e.s=r.s==e.s?1:-1,!o[0]||!i[0])return e.c=[e.e=0],e;for(e.e=f+c,s<u&&(t=o,o=i,i=t,c=s,s=u,u=c),t=new Array(c=s+u);c--;)t[c]=0;for(f=u;f--;){for(u=0,c=s+f;c>f;)u=t[c]+i[f]*o[c-f-1]+u,t[c--]=u%10,u=u/10|0;t[c]=u}for(u?++e.e:t.shift(),f=t.length;!t[--f];)t.pop();return e.c=t,e};g.toExponential=function(e,t){var n=this,r=n.c[0];if(e!==C){if(e!==~~e||e<0||e>R)throw Error(re);for(n=k(new n.constructor(n),++e,t);n.c.length<e;)n.c.push(0)}return U(n,!0,!!r)};g.toFixed=function(e,t){var n=this,r=n.c[0];if(e!==C){if(e!==~~e||e<0||e>R)throw Error(re);for(n=k(new n.constructor(n),e+n.e+1,t),e=e+n.e+1;n.c.length<e;)n.c.push(0)}return U(n,!1,!!r)};g.toJSON=g.toString=function(){var e=this,t=e.constructor;return U(e,e.e<=t.NE||e.e>=t.PE,!!e.c[0])};g.toNumber=function(){var e=Number(U(this,!0,!0));if(this.constructor.strict===!0&&!this.eq(e.toString()))throw Error(z+"Imprecise conversion");return e};g.toPrecision=function(e,t){var n=this,r=n.constructor,o=n.c[0];if(e!==C){if(e!==~~e||e<1||e>R)throw Error(A+"precision");for(n=k(new r(n),e,t);n.c.length<e;)n.c.push(0)}return U(n,e<=n.e||n.e<=r.NE||n.e>=r.PE,!!o)};g.valueOf=function(){var e=this,t=e.constructor;if(t.strict===!0)throw Error(z+"valueOf disallowed");return U(e,e.e<=t.NE||e.e>=t.PE,!0)};var D=Ce();new D(0);new D(1);new D(-1);new D("79228162514264337593543950335");new D("-79228162514264337593543950335");var Oe;(function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"})(Oe||(Oe={}));var M=null;try{M=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch(e){}function O(e,t,n){this.low=e|0,this.high=t|0,this.unsigned=!!n}O.prototype.GetHashCode=function(){let e=this.unsigned?1:0;return e=(e<<5)+e^this.high,e=(e<<5)+e^this.low,e};O.prototype.Equals=function(e){return v(this,e)};O.prototype.CompareTo=function(e){return se(this,e)};O.prototype.toString=function(e){return Q(this,e)};O.prototype.toJSON=function(){return Q(this)};O.prototype[Se]=function(){const e=this;return{multiply:t=>y(e,t),toPrecision:t=>String(e)+0 .toPrecision(t).substr(1),toExponential:t=>String(e)+0 .toExponential(t).substr(1),toFixed:t=>String(e)+0 .toFixed(t).substr(1),toHex:()=>Q(e.unsigned?e:jt(Lt(e),!0),16)}};Object.defineProperty(O.prototype,"__isLong__",{value:!0});function N(e){return(e&&e.__isLong__)===!0}var Ne={},Pe={};function V(e,t){var n,r,o;return t?(e>>>=0,(o=0<=e&&e<256)&&(r=Pe[e],r)?r:(n=w(e,(e|0)<0?-1:0,!0),o&&(Pe[e]=n),n)):(e|=0,(o=-128<=e&&e<128)&&(r=Ne[e],r)?r:(n=w(e,e<0?-1:0,!1),o&&(Ne[e]=n),n))}function b(e,t){if(isNaN(e))return t?L:S;if(t){if(e<0)return L;if(e>=Me)return Ct}else{if(e<=-Le)return E;if(e+1>=Le)return It}return e<0?m(b(-e,t)):w(e%G|0,e/G|0,t)}function w(e,t,n){return new O(e,t,n)}var oe=Math.pow;function ke(e,t,n){if(e.length===0)throw Error("empty string");if(e==="NaN"||e==="Infinity"||e==="+Infinity"||e==="-Infinity")return S;if(typeof t=="number"?(n=t,t=!1):t=!!t,n=n||10,n<2||36<n)throw RangeError("radix");var r=e.indexOf("-");if(r>0)throw Error("interior hyphen");if(r===0)return m(ke(e.substring(1),t,n));for(var o=b(oe(n,8)),i=S,s=0;s<e.length;s+=8){var u=Math.min(8,e.length-s),f=parseInt(e.substring(s,s+u),n);if(u<8){var c=b(oe(n,u));i=B(y(i,c),b(f))}else i=y(i,o),i=B(i,b(f))}return i.unsigned=t,i}function W(e,t){return typeof e=="number"?b(e,t):typeof e=="string"?ke(e,t):w(e.low,e.high,typeof t=="boolean"?t:e.unsigned)}var De=1<<16,St=1<<24,G=De*De,Me=G*G,Le=Me/2,Re=V(St),S=V(0),L=V(0,!0),X=V(1),yt=V(1,!0),Ae=V(-1),It=w(4294967295|0,2147483647|0,!1),Ct=w(4294967295|0,4294967295|0,!0),E=w(0,2147483648|0,!1);function Y(e){return e.unsigned?e.low>>>0:e.low}function ie(e){return e.unsigned?(e.high>>>0)*G+(e.low>>>0):e.high*G+(e.low>>>0)}function Q(e,t){if(t=t||10,t<2||36<t)throw RangeError("radix");if(j(e))return"0";if(F(e))if(v(e,E)){var n=b(t),r=x(e,n),o=$(y(r,n),e);return Q(r,t)+Y(o).toString(t)}else return"-"+Q(m(e),t);for(var i=b(oe(t,6),e.unsigned),s=e,u="";;){var f=x(s,i),c=Y($(s,y(f,i)))>>>0,l=c.toString(t);if(s=f,j(s))return l+u;for(;l.length<6;)l="0"+l;u=""+l+u}}function j(e){return e.high===0&&e.low===0}function F(e){return!e.unsigned&&e.high<0}function je(e){return(e.low&1)==1}function v(e,t){return N(t)||(t=W(t)),e.unsigned!==t.unsigned&&e.high>>>31==1&&t.high>>>31==1?!1:e.high===t.high&&e.low===t.low}function xe(e,t){return se(e,t)<0}function ge(e,t){return se(e,t)>0}function Ot(e,t){return se(e,t)>=0}function se(e,t){if(N(t)||(t=W(t)),v(e,t))return 0;var n=F(e),r=F(t);return n&&!r?-1:!n&&r?1:e.unsigned?t.high>>>0>e.high>>>0||t.high===e.high&&t.low>>>0>e.low>>>0?-1:1:F($(e,t))?-1:1}function m(e){return!e.unsigned&&v(e,E)?E:B(Nt(e),X)}function B(e,t){N(t)||(t=W(t));var n=e.high>>>16,r=e.high&65535,o=e.low>>>16,i=e.low&65535,s=t.high>>>16,u=t.high&65535,f=t.low>>>16,c=t.low&65535,l=0,a=0,h=0,p=0;return p+=i+c,h+=p>>>16,p&=65535,h+=o+f,a+=h>>>16,h&=65535,a+=r+u,l+=a>>>16,a&=65535,l+=n+s,l&=65535,w(h<<16|p,l<<16|a,e.unsigned)}function $(e,t){return N(t)||(t=W(t)),B(e,m(t))}function y(e,t){if(j(e))return e.unsigned?L:S;if(N(t)||(t=W(t)),M){var n=M.mul(e.low,e.high,t.low,t.high);return w(n,M.get_high(),e.unsigned)}if(j(t))return e.unsigned?L:S;if(v(e,E))return je(t)?E:S;if(v(t,E))return je(e)?E:S;if(F(e))return F(t)?y(m(e),m(t)):m(y(m(e),t));if(F(t))return m(y(e,m(t)));if(xe(e,Re)&&xe(t,Re))return b(ie(e)*ie(t),e.unsigned);var r=e.high>>>16,o=e.high&65535,i=e.low>>>16,s=e.low&65535,u=t.high>>>16,f=t.high&65535,c=t.low>>>16,l=t.low&65535,a=0,h=0,p=0,I=0;return I+=s*l,p+=I>>>16,I&=65535,p+=i*l,h+=p>>>16,p&=65535,p+=s*c,h+=p>>>16,p&=65535,h+=o*l,a+=h>>>16,h&=65535,h+=i*c,a+=h>>>16,h&=65535,h+=s*f,a+=h>>>16,h&=65535,a+=r*l+o*c+i*f+s*u,a&=65535,w(p<<16|I,a<<16|h,e.unsigned)}function x(e,t){if(N(t)||(t=W(t)),j(t))throw Error("division by zero");if(M){if(!e.unsigned&&e.high===-2147483648&&t.low===-1&&t.high===-1)return e;var n=(e.unsigned?M.div_u:M.div_s)(e.low,e.high,t.low,t.high);return w(n,M.get_high(),e.unsigned)}if(j(e))return e.unsigned?L:S;var r,o,i;if(e.unsigned){if(t.unsigned||(t=Mt(t)),ge(t,e))return L;if(ge(t,Dt(e,1)))return yt;i=L}else{if(v(e,E)){if(v(t,X)||v(t,Ae))return E;if(v(t,E))return X;var s=kt(e,1);return r=Pt(x(s,t),1),v(r,S)?F(t)?X:Ae:(o=$(e,y(t,r)),i=B(r,x(o,t)),i)}else if(v(t,E))return e.unsigned?L:S;if(F(e))return F(t)?x(m(e),m(t)):m(x(m(e),t));if(F(t))return m(x(e,m(t)));i=S}for(o=e;Ot(o,t);){r=Math.max(1,Math.floor(ie(o)/ie(t)));for(var u=Math.ceil(Math.log(r)/Math.LN2),f=u<=48?1:oe(2,u-48),c=b(r),l=y(c,t);F(l)||ge(l,o);)r-=f,c=b(r,e.unsigned),l=y(c,t);j(c)&&(c=X),i=B(i,c),o=$(o,l)}return i}function Nt(e){return w(~e.low,~e.high,e.unsigned)}function Pt(e,t){return N(t)&&(t=Y(t)),(t&=63)==0?e:t<32?w(e.low<<t,e.high<<t|e.low>>>32-t,e.unsigned):w(0,e.low<<t-32,e.unsigned)}function kt(e,t){return N(t)&&(t=Y(t)),(t&=63)==0?e:t<32?w(e.low>>>t|e.high<<32-t,e.high>>t,e.unsigned):w(e.high>>t-32,e.high>=0?0:-1,e.unsigned)}function Dt(e,t){if(N(t)&&(t=Y(t)),t&=63,t===0)return e;var n=e.high;if(t<32){var r=e.low;return w(r>>>t|n<<32-t,n>>>t,e.unsigned)}else return w(t===32?n:n>>>t-32,0,e.unsigned)}function Mt(e){return e.unsigned?e:w(e.low,e.high,!0)}function Lt(e,t){return t?Rt(e):At(e)}function Rt(e){var t=e.high,n=e.low;return[n&255,n>>>8&255,n>>>16&255,n>>>24,t&255,t>>>8&255,t>>>16&255,t>>>24]}function At(e){var t=e.high,n=e.low;return[t>>>24,t>>>16&255,t>>>8&255,t&255,n>>>24,n>>>16&255,n>>>8&255,n&255]}function jt(e,t,n){return n?xt(e,t):Tt(e,t)}function xt(e,t){return new O(e[0]|e[1]<<8|e[2]<<16|e[3]<<24,e[4]|e[5]<<8|e[6]<<16|e[7]<<24,t)}function Tt(e,t){return new O(e[4]<<24|e[5]<<16|e[6]<<8|e[7],e[0]<<24|e[1]<<16|e[2]<<8|e[3],t)}class J{constructor(t){this.value=t}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return ne(this.value)}Equals(t){return t==null?!1:Z(this.value,t instanceof J?t.value:t)}CompareTo(t){return t==null?1:he(this.value,t instanceof J?t.value:t)}}function pe(e){return e==null||e instanceof J?new J(e):e}function ue(e){if(e==null)throw new Error("Option has no value");return e instanceof J?e.value:e}function Te(e){return e==null?[]:[ue(e)]}function qt(e,...t){return{strs:e,args:t}}function Ht(e){throw new Error(e)}function Ut(e,t,n,r){const o=t|0;return e.fill(r,o,o+n)}function Vt(e,t,n){if(t==null)return n==null;if(n==null)return!1;{let r=0,o=!0;const i=t.length|0,s=n.length|0;if(i>s)return!1;if(i<s)return!1;for(;r<i?o:!1;)o=e(t[r],n[r]),r=r+1|0;return o}}const qe="List was empty";function Wt(e){return e.tail==null}function Gt(e){return((n,r)=>{e:for(;;){const o=n,s=r.tail;if(s!=null){n=o+1,r=s;continue e}else return o|0}})(0,e)|0}function Bt(e){if(e.tail!=null)return e.head;throw new Error(qe+"\\nParameter name: list")}function Jt(e){const t=e.tail;if(t!=null)return t;throw new Error(qe+"\\nParameter name: list")}function Kt(e){const t=Gt(e)|0,n=Ut(new Array(t),0,t,null);return((o,i)=>{e:for(;;){const s=o,u=i;if(!Wt(u)){n[s]=Bt(u),o=s+1,i=Jt(u);continue e}break}})(0,e),n}const Zt="Enumeration already finished.",zt="Enumeration has not started. Call MoveNext.",Xt="Reset is not supported on this enumerator.";function Yt(){throw new Error(Xt)}function Qt(){throw new Error(zt)}function $t(){throw new Error(Zt)}class en{constructor(t){this.f=t}toString(){const t=this,n=4;let r=0,o="seq [";const i=le(t);try{for(;r<n?i["System.Collections.IEnumerator.MoveNext"]():!1;)r>0&&(o=o+"; "),o=o+H(i["System.Collections.Generic.IEnumerator`1.get_Current"]()),r=r+1|0;return r===n&&(o=o+"; ..."),o+"]"}finally{i.Dispose()}}GetEnumerator(){return this.f()}[Symbol.iterator](){return $e(this.GetEnumerator())}["System.Collections.IEnumerable.GetEnumerator"](){return this.f()}}function tn(e){return new en(e)}class nn{constructor(t,n,r){this.current=t,this.next=n,this.dispose=r}["System.Collections.Generic.IEnumerator`1.get_Current"](){return this.current()}["System.Collections.IEnumerator.get_Current"](){return this.current()}["System.Collections.IEnumerator.MoveNext"](){return this.next()}["System.Collections.IEnumerator.Reset"](){Yt()}Dispose(){this.dispose()}}function rn(e,t,n){return new nn(e,t,n)}function on(e,t,n){let r=!1,o,i=pe(e());const s=()=>{if(i!=null){const f=ue(i);try{n(f)}finally{i=void 0}}},u=()=>{try{s()}finally{o=void 0}};return rn(()=>(r||Qt(),o!=null?ue(o):$t()),()=>{if(r||(r=!0),i!=null){const f=ue(i);let c;try{c=t(f)}catch(l){throw u(),l}return c!=null?(o=c,!0):(u(),!1)}else return!1},s)}function sn(e,t){t==null&&Ht(e)}function un(e){return tn(e)}function _e(e){return sn("source",e),le(e)}function cn(e,t,n){return un(()=>on(e,t,n))}function fn(e,t,n){const r=_e(n);try{let o=t;for(;r["System.Collections.IEnumerator.MoveNext"]();)o=e(o,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return o}finally{r.Dispose()}}function ee(e,t){fn((n,r)=>{e(r)},void 0,t)}function ln(e,t,n){return cn(()=>[_e(t),_e(n)],r=>{const o=r[0],i=r[1];return(o["System.Collections.IEnumerator.MoveNext"]()?i["System.Collections.IEnumerator.MoveNext"]():!1)?pe(e(o["System.Collections.Generic.IEnumerator`1.get_Current"](),i["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0},r=>{try{r[0].Dispose()}finally{r[1].Dispose()}})}function an(e,t){return ln((n,r)=>[n,r],e,t)}function hn(e,t){setTimeout(t,e)}function He(e){hn(0,e)}class Ue extends at{constructor(t,...n){super();this.tag=t|0,this.fields=n}cases(){return["OnConnected","OnRender"]}}class Ve{constructor(t){this["host@80"]=t,this._firstRun=!0,this._rendering=!1,this._args=[],this._stateIndex=0,this._effectIndex=0,this._states=[],this._effects=[],this._disposables=[]}get host(){return this["host@80"]}fail(){throw new Error("Hooks must be called consistently for each render call")}requestUpdate(){this["host@80"].requestUpdate()}renderWith(t){const n=this;if(n._firstRun?!0:!Vt((r,o)=>Z(r,o),t,n._args))return n._args=t,n.render()}render(){const t=this;t._stateIndex=0,t._effectIndex=0,t._rendering=!0;const n=t["host@80"].renderFn.apply(t["host@80"],t._args);return(t._firstRun?!1:t._stateIndex!==t._states.length?!0:t._effectIndex!==t._effects.length)&&t.fail(),t._rendering=!1,t["host@80"].isConnected&&t.runEffects(t._firstRun,!0),t._firstRun=!1,n}checkRendering(){const t=this;t._rendering||t.fail()}runEffects(t,n){const r=this;He(()=>{ee(o=>{o.tag===0?t&&r._disposables.push(o.fields[0]()):n&&o.fields[0]()},r._effects)})}setState(t,n,r){let o,i;const s=this;o=n,i=s._states[t],!(ct(2,r)==null?Z(i,o):r(i,o))&&(s._states[t]=n,s._rendering?He(()=>{s["host@80"].requestUpdate()}):s["host@80"].requestUpdate())}getState(){const t=this;t._stateIndex>=t._states.length&&t.fail();const n=t._stateIndex|0;return t._stateIndex=n+1|0,[n,t._states[n]]}addState(t){const n=this;return n._states.push(t),[n._states.length-1,t]}disconnect(){const t=this;let n=le(t._disposables);try{for(;n["System.Collections.IEnumerator.MoveNext"]();)n["System.Collections.Generic.IEnumerator`1.get_Current"]().Dispose()}finally{n.Dispose()}ut(t._disposables)}useState(t){const n=this;n.checkRendering();const r=n._firstRun?n.addState(t()):n.getState();return[r[1],o=>{n.setState(r[0],o)}]}useRef(t){const n=this;return n.checkRendering(),n._firstRun?n.addState(new ht(t()))[1]:n.getState()[1]}setEffect(t){const n=this;if(n.checkRendering(),n._firstRun)n._effects.push(t);else{n._effectIndex>=n._effects.length&&n.fail();const r=n._effectIndex|0;n._effectIndex=r+1|0,n._effects[r]=t}}useEffect(t){this.setEffect(new Ue(1,t))}useEffectOnce(t){this.setEffect(new Ue(0,t))}}function gn(e){if(e==null?!0:!(e.hooks instanceof Ve))throw new Error("Cannot access hook context, make sure the hook is called on top of a HookComponent function");return e.hooks}function We(e){return e!=null}function Ge(){throw new Error("LitElement.init must be called on top of the render function")}function pn(e){throw new Error(`'${e}' field in \`props\` record is not of Prop<'T> type`)}class _n{constructor(t,n){this.defaultValue=t,this.options=n}}function wn(e){return[e.defaultValue,e.options]}class mn{constructor(){this._initPromise=null,this._useShadowDom=!0,this._props=null,this._styles=null}get props(){return this._props}set props(t){const n=this;n._props=t}get styles(){return this._styles}set styles(t){const n=this;n._styles=t}get useShadowDom(){return this._useShadowDom}set useShadowDom(t){const n=this;n._useShadowDom=t}init(t){const n=this;return n._initPromise=t(n),[null,null]}get hooks(){return Ge()}}function dn(){return new mn}function Be(e){return e._initPromise}class En extends Je{constructor(t){super();this._hooks=new Ve(this),t(this)}render(){return this._hooks.render()}disconnectedCallback(){const t=this;super.disconnectedCallback(),t._hooks.disconnect()}init(t){const n=this;return[n,n]}get hooks(){return this._hooks}}class Fn extends gt{constructor(t){super();this.name=t}Decorate(t){const n=this,r=dn();if(t.length>0)throw new Error("Render function for LitElement cannot take arguments");try{t.apply(r,[])}catch(i){}return Be(r)==null&&Ge(),Be(r).then(()=>{let i;const s=r,u=We(s.styles)?Kt(s.styles):void 0;let f;if(We(s.props)){const l=[],a={};ee(h=>{const p=h[0];let I;const _=h[1];I=_ instanceof _n?wn(_):pn(p);const d=I[0];a[p]=I[1],d!=null&&l.push([p,d])},(i=Object.values(s.props),an(Object.keys(s.props),i))),f=[pe(a),h=>{ee(p=>{h[p[0]]=p[1]},l)}]}else f=[void 0,l=>{}];const c=class extends En{constructor(){super(f[1])}get renderFn(){return t}};ee(l=>{Object.defineProperty(c,"properties",{get:()=>l})},Te(f[0])),ee(l=>{Object.defineProperty(c,"styles",{get:()=>l})},Te(u)),s.useShadowDom||(c.prototype.createRenderRoot=function(){return this}),customElements.define(n.name,c)}),()=>{throw new Error(`${n.name} is not immediately callable, it must be created in HTML`)}}}function vn(e,t){return e(t.strs,...t.args)}const bn=(()=>{const e=Ke;return t=>vn(e,t)})();function Sn(e){return e.value}function yn(e){throw new Error("A function supposed to be replaced by JS native code has been called, please check.")}yn();new Fn("login-app").Decorate(function(){this.init(n=>(n.useShadowDom=!1,Promise.resolve(void 0)));const e=gn(this).useState(()=>""),t=n=>{let r;const o=e[0].split("@");r=o.length===1?[o[0],"default"]:[o[0],o[1]];let i;const s=document.getElementById(r[1]);i=s==null?document.getElementById("default"):s;const u=i.attributes[0];u.value.indexOf("?")>=0?u.value=u.value+"&":u.value=u.value+"?",u.value=u.value+r[0],i.click()};return bn(qt`
|
|
<div class="centering">
|
|
<div @keydown=${n=>{n.key==="Enter"&&t()}}>
|
|
<sl-card class="card-overview" >
|
|
<div style="padding: 10px; width: 300px; height: 300px">
|
|
<img
|
|
slot="image"
|
|
src="/static/img/ob.png"
|
|
alt="Oceanbox login"
|
|
/>
|
|
</div>
|
|
<sl-input placeholder="Username or email" label="User" clearable @sl-change=${n=>{e[1](Sn(n.target))}}></sl-input>
|
|
<br/>
|
|
<div>
|
|
<sl-button variant="primary" pill @click=${t}>Next</sl-button>
|
|
</div>
|
|
</sl-card>
|
|
</div>
|
|
</div>
|
|
<style>
|
|
.card-overview {
|
|
max-width: 400px;
|
|
}
|
|
.card-overview small {
|
|
color: var(--sl-color-neutral-500);
|
|
}
|
|
.card-overview [slot='footer'] {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
.centering {
|
|
height: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
.centering div {
|
|
width: 100px;
|
|
height: 100px;
|
|
}
|
|
</style>
|
|
`)});
|