@flarehr/superhero-account-registry 2.7.24 → 2.9.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- !function(e){var n={};function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)t.d(r,o,function(n){return e[n]}.bind(null,o));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s=0)}([function(e,n,t){"use strict";function r(e){return Array.isArray(e)||ArrayBuffer.isView(e)}function o(e){return"function"==typeof e.GetHashCode}function i(e){return null!=e&&"function"==typeof e.Dispose}function s(e){i(e)&&e.Dispose()}function u(e,n){var t,r;return(null===(t=Object.getPrototypeOf(e))||void 0===t?void 0:t.constructor)===(null===(r=Object.getPrototypeOf(n))||void 0===r?void 0:r.constructor)}t.r(n),t.d(n,"State",(function(){return hf})),t.d(n,"State$reflection",(function(){return pf})),t.d(n,"Msg",(function(){return mf})),t.d(n,"Msg$reflection",(function(){return gf})),t.d(n,"StateModule_init",(function(){return wf})),t.d(n,"StateModule_update",(function(){return yf})),t.d(n,"AccountRegistryComponent",(function(){return _f}));class c{constructor(e){this.iter=e}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current}"System.Collections.IEnumerator.get_Current"(){return this.current}"System.Collections.IEnumerator.MoveNext"(){const e=this.iter.next();return this.current=e.value,!e.done}"System.Collections.IEnumerator.Reset"(){throw new Error("JS iterators cannot be reset")}Dispose(){}}function a(e){return"function"==typeof e.GetEnumerator?e.GetEnumerator():new c(e[Symbol.iterator]())}function l(e){return{[Symbol.iterator](){return this},next(){const n=e["System.Collections.IEnumerator.MoveNext"]();return{done:!n,value:n?e["System.Collections.IEnumerator.get_Current"]():void 0}}}}function $(e,n){let t=e.toString(10);for(;t.length<n;)t="0"+t;return t}function f(e){const n=e;return"number"==typeof n.offset?n.offset:1===e.kind?0:-6e4*e.getTimezoneOffset()}function d(e,n){return(e=e<0&&null!=n&&10!==n?4294967295+e+1:e).toString(n)}class h{static id(e){return h.idMap.has(e)||h.idMap.set(e,++h.count),h.idMap.get(e)}}function p(e){let n=0,t=5381;const r=e.length;for(;n<r;)t=33*t^e.charCodeAt(n++);return t}function m(e){return 2654435761*e|0}function g(e){return 0===e.length?0:e.reduce((e,n)=>(e<<5)+e^n)}function w(e){var n;if(null==e)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return m(e);case"string":return p(e);default:if(o(e))return e.GetHashCode();if(r(e))return function(e){const n=e.length,t=new Array(n);for(let r=0;r<n;r++)t[r]=w(e[r]);return g(t)}(e);if(e instanceof Date)return function(e){return e.getTime()}(e);if((null===(n=Object.getPrototypeOf(e))||void 0===n?void 0:n.constructor)===Object){return g(Object.values(e).map(e=>w(e)))}return m(h.id(e))}}function y(e,n,t){if(null==e)return null==n;if(null==n)return!1;if(e.length!==n.length)return!1;for(let r=0;r<e.length;r++)if(!t(e[r],n[r]))return!1;return!0}function _(e,n){return y(e,n,v)}function v(e,n){var t;return e===n||(null==e?null==n:null!=n&&("object"==typeof e&&(function(e){return"function"==typeof e.Equals}(e)?e.Equals(n):r(e)?r(n)&&_(e,n):e instanceof Date?n instanceof Date&&0===b(e,n):(null===(t=Object.getPrototypeOf(e))||void 0===t?void 0:t.constructor)===Object&&function(e,n){const t=Object.keys(e),r=Object.keys(n);if(t.length!==r.length)return!1;t.sort(),r.sort();for(let o=0;o<t.length;o++)if(t[o]!==r[o]||!v(e[t[o]],n[r[o]]))return!1;return!0}(e,n))))}function b(e,n){let t,r;return"offset"in e&&"offset"in n?(t=e.getTime(),r=n.getTime()):(t=e.getTime()+f(e),r=n.getTime()+f(n)),t===r?0:t<r?-1:1}function C(e,n){return e===n?0:e<n?-1:1}function x(e,n){return function(e,n,t){if(null==e)return null==n?0:1;if(null==n)return-1;if(e.length!==n.length)return e.length<n.length?-1:1;for(let r=0,o=0;r<e.length;r++)if(o=t(e[r],n[r]),0!==o)return o;return 0}(e,n,S)}function S(e,n){var t;return e===n?0:null==e?null==n?0:-1:null==n?1:"object"!=typeof e?e<n?-1:1:function(e){return"function"==typeof e.CompareTo}(e)?e.CompareTo(n):r(e)?r(n)?x(e,n):-1:e instanceof Date?n instanceof Date?b(e,n):-1:(null===(t=Object.getPrototypeOf(e))||void 0===t?void 0:t.constructor)===Object?function(e,n){const t=Object.keys(e),r=Object.keys(n);if(t.length!==r.length)return t.length<r.length?-1:1;t.sort(),r.sort();for(let o=0,i=0;o<t.length;o++){const s=t[o];if(s!==r[o])return s<r[o]?-1:1;if(i=S(e[s],n[s]),0!==i)return i}return 0}(e,n):-1}function E(e,n,t){return e(n,t)>0?n:t}function k(e){const n={};for(const t of e)n[t[0]]=t[1];return n}h.idMap=new WeakMap,h.count=0;const A=Symbol("curried");function I(e,n){if(null==n||n.length>1)return n;const t=(...t)=>{let r=n;for(let n=0;n<e;n++)r=r(t[n]);return r};return t[A]=n,t}function N(e,n,t){return r=>1===n?t(...e.concat([r])):N(e.concat([r]),n-1,t)}function T(e,n){return null==n||1===n.length?n:A in n?n[A]:N([],e,n)}function P(e,n=0){var t,r;if(null!=e&&"object"==typeof e){if("function"==typeof e.toString)return e.toString();if(Symbol.iterator in e)return function(e){let n=0,t="[";for(const r of e){if(0===n)t+=P(r);else{if(100===n){t+="; ...";break}t+="; "+P(r)}n++}return t+"]"}(e);{const o=null===(t=Object.getPrototypeOf(e))||void 0===t?void 0:t.constructor;return o===Object&&n<10?"{ "+Object.entries(e).map(([e,t])=>e+" = "+P(t,n+1)).join("\n ")+" }":null!==(r=null==o?void 0:o.name)&&void 0!==r?r:""}}return String(e)}class D{get name(){return this.cases()[this.tag]}toJSON(){return 0===this.fields.length?this.name:[this.name].concat(this.fields)}toString(){return function(e,n){if(0===n.length)return e;{let t="",r=!0;return 1===n.length?(t=P(n[0]),r=t.indexOf(" ")>=0):t=n.map(e=>P(e)).join(", "),e+(r?" (":" ")+t+(r?")":"")}}(this.name,this.fields)}GetHashCode(){const e=this.fields.map(e=>w(e));return e.splice(0,0,m(this.tag)),g(e)}Equals(e){return this===e||!!u(this,e)&&(this.tag===e.tag&&_(this.fields,e.fields))}CompareTo(e){return this===e?0:u(this,e)?this.tag===e.tag?x(this.fields,e.fields):this.tag<e.tag?-1:1:-1}}function O(e){const n={},t=Object.keys(e);for(let r=0;r<t.length;r++)n[t[r]]=e[t[r]];return n}function M(e){return"{ "+Object.entries(e).map(([e,n])=>e+" = "+P(n)).join("\n ")+" }"}function U(e){return g(Object.values(e).map(e=>w(e)))}function B(e,n){if(e===n)return!0;if(u(e,n)){const t=Object.keys(e);for(let r=0;r<t.length;r++)if(!v(e[t[r]],n[t[r]]))return!1;return!0}return!1}function R(e,n){if(e===n)return 0;if(u(e,n)){const t=Object.keys(e);for(let r=0;r<t.length;r++){const o=S(e[t[r]],n[t[r]]);if(0!==o)return o}return 0}return-1}class L{toJSON(){return O(this)}toString(){return M(this)}GetHashCode(){return U(this)}Equals(e){return B(this,e)}CompareTo(e){return R(this,e)}}class G{constructor(e,n){"function"==typeof n?(this.getter=e,this.setter=n):(this.getter=()=>e,this.setter=n=>{e=n})}get contents(){return this.getter()}set contents(e){this.setter(e)}}class j{constructor(e){this.message=e}}function F(e){return(n=e)instanceof j||n instanceof Error?e:new Error(String(e));var n}const H=Symbol("numeric");function W(e){return"number"==typeof e||(null==e?void 0:e[H])}function z(e,n){return"number"==typeof e?e*n:e[H]().multiply(n)}function q(e,n){return"number"==typeof e?e.toFixed(n):e[H]().toFixed(n)}function V(e,n){return"number"==typeof e?e.toPrecision(n):e[H]().toPrecision(n)}function Z(e,n){return"number"==typeof e?e.toExponential(n):e[H]().toExponential(n)}function J(e){return"number"==typeof e?(Number(e)>>>0).toString(16):e[H]().toHex()}var X={GetHashCode(){return g([this.s,this.e].concat(this.c))},Equals(e){return!this.cmp(e)},CompareTo(e){return this.cmp(e)},[H](){const e=this;return{multiply:n=>e.mul(n),toPrecision:n=>e.toPrecision(n),toExponential:n=>e.toExponential(n),toFixed:n=>e.toFixed(n),toHex:()=>(Number(e)>>>0).toString(16)}}},Y="[big.js] ",K=Y+"Invalid ",Q=K+"decimal places",ee=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;function ne(e,n){var t,r,o;if(!ee.test(n))throw Error(K+"number");for(e.s="-"==n.charAt(0)?(n=n.slice(1),-1):1,(t=n.indexOf("."))>-1&&(n=n.replace(".","")),(r=n.search(/e/i))>0?(t<0&&(t=r),t+=+n.slice(r+1),n=n.substring(0,r)):t<0&&(t=n.length),o=n.length,r=0;r<t&&r<o&&"0"==n.charAt(r);)++r;if(r==o)e.c=[e.e=0];else for(e.e=t-r-1,e.c=[],t=0;r<o;)e.c[t++]=+n.charAt(r++);return e=te(e,oe.DP+1,oe.RM)}function te(e,n,t,r){var o=e.c;if(void 0===t&&(t=oe.RM),0!==t&&1!==t&&2!==t&&3!==t)throw Error("[big.js] Invalid rounding mode");if(n<1)r=3===t&&(r||!!o[0])||0===n&&(1===t&&o[0]>=5||2===t&&(o[0]>5||5===o[0]&&(r||void 0!==o[1]))),o.length=1,r?(e.e=e.e-n+1,o[0]=1):o[0]=e.e=0;else if(n<o.length){const i=o.findIndex((e,t)=>t>=n&&e>0)<0;if(r=1===t&&o[n]>=5||2===t&&(o[n]>5||5===o[n]&&(r||void 0!==o[n+1]||1&o[n-1]))||3===t&&(r||!i),o.length=n--,r)for(;++o[n]>9;)o[n]=0,n--||(++e.e,o.unshift(1));for(n=o.length;!o[--n];)o.pop()}return e}function re(e,n,t){var r=e.e,o=e.c.join(""),i=o.length;if(n)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&&t?"-"+o:o}X.abs=function(){var e=new this.constructor(this);return e.s=1,e},X.cmp=function(e){var n,t=this.constructor,r=new t(this),o=(e=new t(e),r.c),i=e.c,s=r.s,u=e.s,c=r.e,a=e.e;if(!o[0]||!i[0])return o[0]?s:i[0]?-u:0;if(s!=u)return s;if(n=s<0,c!=a)return c>a^n?1:-1;for(u=Math.max(o.length,i.length),s=0;s<u;s++)if((c=s<o.length?o[s]:0)!=(a=s<i.length?i[s]:0))return c>a^n?1:-1;return 0},X.div=function(e){var n=this.constructor,t=new n(this),r=(e=new n(e),t.c),o=e.c,i=t.s==e.s?1:-1,s=n.DP;if(s!==~~s||s<0||s>1e6)throw Error(Q);if(!o[0])throw Error("[big.js] Division by zero");if(!r[0])return e.s=i,e.c=[e.e=0],e;var u,c,a,l,$,f=o.slice(),d=u=o.length,h=r.length,p=r.slice(0,u),m=p.length,g=e,w=g.c=[],y=0,_=s+(g.e=t.e-e.e)+1;for(g.s=i,i=_<0?0:_,f.unshift(0);m++<u;)p.push(0);do{for(a=0;a<10;a++){if(u!=(m=p.length))l=u>m?1:-1;else for($=-1,l=0;++$<u;)if(o[$]!=p[$]){l=o[$]>p[$]?1:-1;break}if(!(l<0))break;for(c=m==u?o:f;m;){if(p[--m]<c[m]){for($=m;$&&!p[--$];)p[$]=9;--p[$],p[m]+=10}p[m]-=c[m]}for(;!p[0];)p.shift()}w[y++]=l?a:++a,p[0]&&l?p[m]=r[d]||0:p=[r[d]]}while((d++<h||void 0!==p[0])&&i--);return w[0]||1==y||(w.shift(),g.e--,_--),y>_&&te(g,_,n.RM,void 0!==p[0]),g},X.eq=function(e){return 0===this.cmp(e)},X.gt=function(e){return this.cmp(e)>0},X.gte=function(e){return this.cmp(e)>-1},X.lt=function(e){return this.cmp(e)<0},X.lte=function(e){return this.cmp(e)<1},X.minus=X.sub=function(e){var n,t,r,o,i=this.constructor,s=new i(this),u=(e=new i(e),s.s),c=e.s;if(u!=c)return e.s=-c,s.plus(e);var a=s.c.slice(),l=s.e,$=e.c,f=e.e;if(!a[0]||!$[0])return $[0]?e.s=-c:a[0]?e=new i(s):e.s=1,e;if(u=l-f){for((o=u<0)?(u=-u,r=a):(f=l,r=$),r.reverse(),c=u;c--;)r.push(0);r.reverse()}else for(t=((o=a.length<$.length)?a:$).length,u=c=0;c<t;c++)if(a[c]!=$[c]){o=a[c]<$[c];break}if(o&&(r=a,a=$,$=r,e.s=-e.s),(c=(t=$.length)-(n=a.length))>0)for(;c--;)a[n++]=0;for(c=n;t>u;){if(a[--t]<$[t]){for(n=t;n&&!a[--n];)a[n]=9;--a[n],a[t]+=10}a[t]-=$[t]}for(;0===a[--c];)a.pop();for(;0===a[0];)a.shift(),--f;return a[0]||(e.s=1,a=[f=0]),e.c=a,e.e=f,e},X.mod=function(e){var n,t=this.constructor,r=new t(this),o=(e=new t(e),r.s),i=e.s;if(!e.c[0])throw Error("[big.js] Division by zero");return r.s=e.s=1,n=1==e.cmp(r),r.s=o,e.s=i,n?new t(r):(o=t.DP,i=t.RM,t.DP=t.RM=0,r=r.div(e),t.DP=o,t.RM=i,this.minus(r.times(e)))},X.plus=X.add=function(e){var n,t,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,c=e.e,a=e.c;if(!u[0]||!a[0])return a[0]||(u[0]?e=new o(i):e.s=i.s),e;if(u=u.slice(),n=s-c){for(n>0?(c=s,r=a):(n=-n,r=u),r.reverse();n--;)r.push(0);r.reverse()}for(u.length-a.length<0&&(r=a,a=u,u=r),n=a.length,t=0;n;u[n]%=10)t=(u[--n]=u[n]+a[n]+t)/10|0;for(t&&(u.unshift(t),++c),n=u.length;0===u[--n];)u.pop();return e.c=u,e.e=c,e},X.pow=function(e){var n=this.constructor,t=new n(this),r=new n("1"),o=new n("1"),i=e<0;if(e!==~~e||e<-1e6||e>1e6)throw Error(K+"exponent");for(i&&(e=-e);1&e&&(r=r.times(t)),e>>=1;)t=t.times(t);return i?o.div(r):r},X.prec=function(e,n){if(e!==~~e||e<1||e>1e6)throw Error(K+"precision");return te(new this.constructor(this),e,n)},X.round=function(e,n){if(void 0===e)e=0;else if(e!==~~e||e<-1e6||e>1e6)throw Error(Q);return te(new this.constructor(this),e+this.e+1,n)},X.sqrt=function(){var e,n,t,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(Y+"No square root");0===(i=Math.sqrt(o+""))||i===1/0?((n=o.c.join("")).length+s&1||(n+="0"),s=((s+1)/2|0)-(s<0||1&s),e=new r(((i=Math.sqrt(n))==1/0?"5e":(i=i.toExponential()).slice(0,i.indexOf("e")+1))+s)):e=new r(i+""),s=e.e+(r.DP+=4);do{t=e,e=u.times(t.plus(o.div(t)))}while(t.c.slice(0,s).join("")!==e.c.slice(0,s).join(""));return te(e,(r.DP-=4)+e.e+1,r.RM)},X.times=X.mul=function(e){var n,t=this.constructor,r=new t(this),o=(e=new t(e),r.c),i=e.c,s=o.length,u=i.length,c=r.e,a=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=c+a,s<u&&(n=o,o=i,i=n,a=s,s=u,u=a),n=new Array(a=s+u);a--;)n[a]=0;for(c=u;c--;){for(u=0,a=s+c;a>c;)u=n[a]+i[c]*o[a-c-1]+u,n[a--]=u%10,u=u/10|0;n[a]=u}for(u?++e.e:n.shift(),c=n.length;!n[--c];)n.pop();return e.c=n,e},X.toExponential=function(e,n){var t=this,r=t.c[0];if(void 0!==e){if(e!==~~e||e<0||e>1e6)throw Error(Q);for(t=te(new t.constructor(t),++e,n);t.c.length<e;)t.c.push(0)}return re(t,!0,!!r)},X.toFixed=function(e,n){var t=this,r=t.c[0];if(void 0!==e){if(e!==~~e||e<0||e>1e6)throw Error(Q);for(e=e+(t=te(new t.constructor(t),e+t.e+1,n)).e+1;t.c.length<e;)t.c.push(0)}return re(t,!1,!!r)},X.toJSON=X.toString=function(){var e=this,n=e.constructor;return re(e,e.e<=n.NE||e.e>=n.PE,!!e.c[0])},X.toNumber=function(){var e=Number(re(this,!0,!0));if(!0===this.constructor.strict&&!this.eq(e.toString()))throw Error(Y+"Imprecise conversion");return e},X.toPrecision=function(e,n){var t=this,r=t.constructor,o=t.c[0];if(void 0!==e){if(e!==~~e||e<1||e>1e6)throw Error(K+"precision");for(t=te(new r(t),e,n);t.c.length<e;)t.c.push(0)}return re(t,e<=t.e||t.e<=r.NE||t.e>=r.PE,!!o)},X.valueOf=function(){var e=this,n=e.constructor;if(!0===n.strict)throw Error(Y+"valueOf disallowed");return re(e,e.e<=n.NE||e.e>=n.PE,!0)};var oe=function e(){function n(t){var r=this;if(!(r instanceof n))return void 0===t?e():new n(t);if(t instanceof n)r.s=t.s,r.e=t.e,r.c=t.c.slice(),function(e){if(e.c.length>1&&!e.c[0]){let n=e.c.findIndex(e=>e);e.c=e.c.slice(n),e.e=e.e-n}}(r);else{if("string"!=typeof t){if(!0===n.strict)throw TypeError(K+"number");t=0===t&&1/t<0?"-0":String(t)}ne(r,t)}r.constructor=n}return n.prototype=X,n.DP=28,n.RM=1,n.NE=-29,n.PE=29,n.strict=!1,n}(),ie=oe;new ie(0),new ie(1),new ie(-1),new ie("79228162514264337593543950335"),new ie("-79228162514264337593543950335");var se;function ue(e,n){switch(n){case 8:return e?[0,255]:[-128,127];case 16:return e?[0,65535]:[-32768,32767];case 32:return e?[0,4294967295]:[-2147483648,2147483647];default:throw new Error("Invalid bit size.")}}function ce(e,n,t){const r=/^\s*([\+\-])?(0[xXoObB])?([0-9a-fA-F]+)\s*$/.exec(e.replace(/_/g,""));if(null!=r){const[,,e,o]=r;if(!function(e){switch(e){case 2:return/[^0-1]/;case 8:return/[^0-7]/;case 10:return/[^0-9]/;case 16:return/[^0-9a-fA-F]/;default:throw new Error("Invalid Base.")}}(t=t||function(e,n){if(n&se.AllowHexSpecifier)return 16;switch(e){case"0b":case"0B":return 2;case"0o":case"0O":return 8;case"0x":case"0X":return 16;default:return 10}}(e,n)).test(o))return function(e,n){const[,t,r,o]=e;return{sign:t||"",prefix:r||"",digits:o,radix:n}}(r,t)}return null}function ae(e,n,t,r,o){const i=ce(e,n,o);if(null!=i){let e=Number.parseInt(i.sign+i.digits,i.radix);if(!Number.isNaN(e)){const[n,o]=ue(!0,r);!t&&10!==i.radix&&e>=n&&e<=o&&(e=e<<32-r>>32-r);const[s,u]=ue(t,r);if(e>=s&&e<=u)return e}}throw new Error("Input string was not in a correct format.")}function le(e,n,t,r,o){try{return o.contents=ae(e,n,t,r),!0}catch(e){return!1}}function $e(e){return-2147483648===e?e:-e}!function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"}(se||(se={}));var fe=null;try{fe=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 de(e,n,t){this.low=0|e,this.high=0|n,this.unsigned=!!t}function he(e){return!0===(e&&e.__isLong__)}de.prototype.GetHashCode=function(){let e=this.unsigned?1:0;return e=(e<<5)+e^this.high,e=(e<<5)+e^this.low,e},de.prototype.Equals=function(e){return je(this,e)},de.prototype.CompareTo=function(e){return ze(this,e)},de.prototype.toString=function(e){return Be(this,e)},de.prototype.toJSON=function(){return Be(this)},de.prototype[H]=function(){const e=this;return{multiply:n=>Je(e,n),toPrecision:n=>String(e)+(0).toPrecision(n).substr(1),toExponential:n=>String(e)+(0).toExponential(n).substr(1),toFixed:n=>String(e)+(0).toFixed(n).substr(1),toHex:()=>Be(e.unsigned?e:tn(nn(e),!0),16)}},de.prototype.__isLong__,Object.defineProperty(de.prototype,"__isLong__",{value:!0});var pe={},me={};function ge(e,n){var t,r,o;return n?(o=0<=(e>>>=0)&&e<256)&&(r=me[e])?r:(t=ye(e,(0|e)<0?-1:0,!0),o&&(me[e]=t),t):(o=-128<=(e|=0)&&e<128)&&(r=pe[e])?r:(t=ye(e,e<0?-1:0,!1),o&&(pe[e]=t),t)}function we(e,n){if(isNaN(e))return n?Ae:ke;if(n){if(e<0)return Ae;if(e>=xe)return De}else{if(e<=-Se)return Oe;if(e+1>=Se)return Pe}return e<0?qe(we(-e,n)):ye(e%Ce|0,e/Ce|0,n)}function ye(e,n,t){return new de(e,n,t)}var _e=Math.pow;function ve(e,n,t){if(0===e.length)throw Error("empty string");if("NaN"===e||"Infinity"===e||"+Infinity"===e||"-Infinity"===e)return ke;if("number"==typeof n?(t=n,n=!1):n=!!n,(t=t||10)<2||36<t)throw RangeError("radix");var r=e.indexOf("-");if(r>0)throw Error("interior hyphen");if(0===r)return qe(ve(e.substring(1),n,t));for(var o=we(_e(t,8)),i=ke,s=0;s<e.length;s+=8){var u=Math.min(8,e.length-s),c=parseInt(e.substring(s,s+u),t);if(u<8)i=Ve(Je(i,we(_e(t,u))),we(c));else i=Ve(i=Je(i,o),we(c))}return i.unsigned=n,i}function be(e,n){return"number"==typeof e?we(e,n):"string"==typeof e?ve(e,n):ye(e.low,e.high,"boolean"==typeof n?n:e.unsigned)}var Ce=4294967296,xe=Ce*Ce,Se=xe/2,Ee=ge(1<<24),ke=ge(0),Ae=ge(0,!0),Ie=ge(1),Ne=ge(1,!0),Te=ge(-1),Pe=ye(-1,2147483647,!1),De=ye(-1,-1,!0),Oe=ye(0,-2147483648,!1);function Me(e){return e.unsigned?e.low>>>0:e.low}function Ue(e){return e.unsigned?(e.high>>>0)*Ce+(e.low>>>0):e.high*Ce+(e.low>>>0)}function Be(e,n){if((n=n||10)<2||36<n)throw RangeError("radix");if(Re(e))return"0";if(Le(e)){if(je(e,Oe)){var t=we(n),r=Xe(e,t),o=Ze(Je(r,t),e);return Be(r,n)+Me(o).toString(n)}return"-"+Be(qe(e),n)}for(var i=we(_e(n,6),e.unsigned),s=e,u="";;){var c=Xe(s,i),a=(Me(Ze(s,Je(c,i)))>>>0).toString(n);if(Re(s=c))return a+u;for(;a.length<6;)a="0"+a;u=""+a+u}}function Re(e){return 0===e.high&&0===e.low}function Le(e){return!e.unsigned&&e.high<0}function Ge(e){return 1==(1&e.low)}function je(e,n){return he(n)||(n=be(n)),(e.unsigned===n.unsigned||e.high>>>31!=1||n.high>>>31!=1)&&(e.high===n.high&&e.low===n.low)}function Fe(e,n){return ze(e,n)<0}function He(e,n){return ze(e,n)>0}function We(e,n){return ze(e,n)>=0}function ze(e,n){if(he(n)||(n=be(n)),je(e,n))return 0;var t=Le(e),r=Le(n);return t&&!r?-1:!t&&r?1:e.unsigned?n.high>>>0>e.high>>>0||n.high===e.high&&n.low>>>0>e.low>>>0?-1:1:Le(Ze(e,n))?-1:1}function qe(e){return!e.unsigned&&je(e,Oe)?Oe:Ve(Ye(e),Ie)}function Ve(e,n){he(n)||(n=be(n));var t=e.high>>>16,r=65535&e.high,o=e.low>>>16,i=65535&e.low,s=n.high>>>16,u=65535&n.high,c=n.low>>>16,a=0,l=0,$=0,f=0;return $+=(f+=i+(65535&n.low))>>>16,l+=($+=o+c)>>>16,a+=(l+=r+u)>>>16,a+=t+s,ye(($&=65535)<<16|(f&=65535),(a&=65535)<<16|(l&=65535),e.unsigned)}function Ze(e,n){return he(n)||(n=be(n)),Ve(e,qe(n))}function Je(e,n){if(Re(e))return e.unsigned?Ae:ke;if(he(n)||(n=be(n)),fe)return ye(fe.mul(e.low,e.high,n.low,n.high),fe.get_high(),e.unsigned);if(Re(n))return e.unsigned?Ae:ke;if(je(e,Oe))return Ge(n)?Oe:ke;if(je(n,Oe))return Ge(e)?Oe:ke;if(Le(e))return Le(n)?Je(qe(e),qe(n)):qe(Je(qe(e),n));if(Le(n))return qe(Je(e,qe(n)));if(Fe(e,Ee)&&Fe(n,Ee))return we(Ue(e)*Ue(n),e.unsigned);var t=e.high>>>16,r=65535&e.high,o=e.low>>>16,i=65535&e.low,s=n.high>>>16,u=65535&n.high,c=n.low>>>16,a=65535&n.low,l=0,$=0,f=0,d=0;return f+=(d+=i*a)>>>16,$+=(f+=o*a)>>>16,f&=65535,$+=(f+=i*c)>>>16,l+=($+=r*a)>>>16,$&=65535,l+=($+=o*c)>>>16,$&=65535,l+=($+=i*u)>>>16,l+=t*a+r*c+o*u+i*s,ye((f&=65535)<<16|(d&=65535),(l&=65535)<<16|($&=65535),e.unsigned)}function Xe(e,n){if(he(n)||(n=be(n)),Re(n))throw Error("division by zero");var t,r,o;if(fe)return e.unsigned||-2147483648!==e.high||-1!==n.low||-1!==n.high?ye((e.unsigned?fe.div_u:fe.div_s)(e.low,e.high,n.low,n.high),fe.get_high(),e.unsigned):e;if(Re(e))return e.unsigned?Ae:ke;if(e.unsigned){if(n.unsigned||(n=function(e){return e.unsigned?e:ye(e.low,e.high,!0)}(n)),He(n,e))return Ae;if(He(n,en(e,1)))return Ne;o=Ae}else{if(je(e,Oe))return je(n,Ie)||je(n,Te)?Oe:je(n,Oe)?Ie:je(t=Ke(Xe(Qe(e,1),n),1),ke)?Le(n)?Ie:Te:o=Ve(t,Xe(r=Ze(e,Je(n,t)),n));if(je(n,Oe))return e.unsigned?Ae:ke;if(Le(e))return Le(n)?Xe(qe(e),qe(n)):qe(Xe(qe(e),n));if(Le(n))return qe(Xe(e,qe(n)));o=ke}for(r=e;We(r,n);){t=Math.max(1,Math.floor(Ue(r)/Ue(n)));for(var i=Math.ceil(Math.log(t)/Math.LN2),s=i<=48?1:_e(2,i-48),u=we(t),c=Je(u,n);Le(c)||He(c,r);)c=Je(u=we(t-=s,e.unsigned),n);Re(u)&&(u=Ie),o=Ve(o,u),r=Ze(r,c)}return o}function Ye(e){return ye(~e.low,~e.high,e.unsigned)}function Ke(e,n){return he(n)&&(n=Me(n)),0==(n&=63)?e:n<32?ye(e.low<<n,e.high<<n|e.low>>>32-n,e.unsigned):ye(0,e.low<<n-32,e.unsigned)}function Qe(e,n){return he(n)&&(n=Me(n)),0==(n&=63)?e:n<32?ye(e.low>>>n|e.high<<32-n,e.high>>n,e.unsigned):ye(e.high>>n-32,e.high>=0?0:-1,e.unsigned)}function en(e,n){if(he(n)&&(n=Me(n)),0===(n&=63))return e;var t=e.high;return n<32?ye(e.low>>>n|t<<32-n,t>>>n,e.unsigned):ye(32===n?t:t>>>n-32,0,e.unsigned)}function nn(e,n){return n?function(e){var n=e.high,t=e.low;return[255&t,t>>>8&255,t>>>16&255,t>>>24,255&n,n>>>8&255,n>>>16&255,n>>>24]}(e):function(e){var n=e.high,t=e.low;return[n>>>24,n>>>16&255,n>>>8&255,255&n,t>>>24,t>>>16&255,t>>>8&255,255&t]}(e)}function tn(e,n,t){return t?function(e,n){return new de(e[0]|e[1]<<8|e[2]<<16|e[3]<<24,e[4]|e[5]<<8|e[6]<<16|e[7]<<24,n)}(e,n):function(e,n){return new de(e[4]<<24|e[5]<<16|e[6]<<8|e[7],e[0]<<24|e[1]<<16|e[2]<<8|e[3],n)}(e,n)}const rn=Ve,on=Je,sn=Xe,un=function(e,n){return he(n)||(n=be(n)),fe?ye((e.unsigned?fe.rem_u:fe.rem_s)(e.low,e.high,n.low,n.high),fe.get_high(),e.unsigned):Ze(e,Je(Xe(e,n),n))},cn=qe,an=function(e,n){return he(n)||(n=be(n)),ye(e.low&n.low,e.high&n.high,e.unsigned)},ln=ze,$n=ye,fn=Me,dn=Ue;function hn(e,n,t){let r=e,o=0;switch(t){case 0:r=e<<24>>24,o=r;break;case 4:r=e<<24>>>24;break;case 1:r=e<<16>>16,o=r;break;case 5:r=e<<16>>>16;break;case 2:r=e>>0,o=r;break;case 6:r=e>>>0}return ye(r,o>>31,n)}class pn{constructor(e,n,t,r){this.declaringType=e,this.tag=n,this.name=t,this.fields=r}}class mn{constructor(e,n,t,r,o,i,s){this.fullname=e,this.generics=n,this.construct=t,this.parent=r,this.fields=o,this.cases=i,this.enumCases=s}toString(){return An(this)}GetHashCode(){return wn(this)}Equals(e){return yn(this,e)}}function gn(e){return null!=e.generics?e.generics:[]}function wn(e){return g([p(e.fullname),...gn(e).map(wn)])}function yn(e,n){return""===e.fullname?""===n.fullname&&y(Mn(e),Mn(n),([e,n],[t,r])=>e===t&&yn(n,r)):e.fullname===n.fullname&&y(gn(e),gn(n),yn)}function _n(e,n,t,r){return new mn(e,n,t,r)}function vn(e,n,t,r){return new mn(e,n,t,void 0,r)}function bn(e,n,t,r){const o=new mn(e,n,t,void 0,void 0,()=>{const e=t.prototype.cases();return r().map((n,t)=>new pn(o,t,e[t],n))});return o}function Cn(e){return new mn("Microsoft.FSharp.Core.FSharpOption`1",[e])}function xn(e){return new mn("Microsoft.FSharp.Collections.FSharpList`1",[e])}const Sn=new mn("System.Object"),En=(new mn("Microsoft.FSharp.Core.Unit"),new mn("System.Char"),new mn("System.String"));new mn("System.Boolean"),new mn("System.SByte"),new mn("System.Byte"),new mn("System.Int16"),new mn("System.UInt16"),new mn("System.Int32"),new mn("System.UInt32"),new mn("System.Single"),new mn("System.Double"),new mn("System.Decimal");function kn(e){if(Array.isArray(e))return e[0];if(e instanceof mn){const n=In(e);if(null!=n)return kn(n)+"[]";{const n=e.fullname.lastIndexOf(".");return-1===n?e.fullname:e.fullname.substr(n+1)}}return e.name}function An(e){const n=In(e);return null!=n?An(n)+"[]":null==e.generics||0===e.generics.length?e.fullname:e.fullname+"["+e.generics.map(e=>An(e)).join(",")+"]"}function In(e){var n;return"[]"===e.fullname&&1===(null===(n=e.generics)||void 0===n?void 0:n.length)?e.generics[0]:void 0}function Nn(e){return null!=e.enumCases&&e.enumCases.length>0}function Tn(e){if(Nn(e)&&null!=e.enumCases)return e.enumCases.map(e=>e[1]);throw new Error(e.fullname+" is not an enum type")}function Pn(e,n){if(null!=e.enumCases){if("string"==typeof n){for(const t of e.enumCases)if(t[0]===n)return t;throw new Error(`'${n}' was not found in ${e.fullname}`)}for(const t of e.enumCases)if(t[1]===n)return t;return["",n]}throw new Error(e.fullname+" is not an enum type")}function Dn(e,n){const t=parseInt(n,10);return Pn(e,isNaN(t)?n:t)[1]}function On(e){if(null!=e.cases)return e.cases();throw new Error(e.fullname+" is not an F# union type")}function Mn(e){if(null!=e.fields)return e.fields();throw new Error(e.fullname+" is not an F# record type")}function Un(e){return e.fullname.startsWith("System.Tuple")}class Bn{constructor(e){this.value=e}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return w(this.value)}Equals(e){return null!=e&&v(this.value,e instanceof Bn?e.value:e)}CompareTo(e){return null==e?1:S(this.value,e instanceof Bn?e.value:e)}}function Rn(e){return null==e||e instanceof Bn?new Bn(e):e}function Ln(e){if(null==e)throw new Error("Option has no value");return e instanceof Bn?e.value:e}function Gn(e){return null==e?[]:[Ln(e)]}function jn(e,n){return null!=e?Ln(e):n}function Fn(e,n){return null!=n?Rn(e(Ln(n))):void 0}class Hn extends D{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Ok","Error"]}}function Wn(e,n){return 0===n.tag?new Hn(0,e(n.fields[0])):new Hn(1,n.fields[0])}function zn(e){const n=e<0,t=(e=Math.abs(e))%36e5/6e4;return(n?"-":"+")+$(~~(e/36e5),2)+":"+$(t,2)}function qn(e,n){const t=e.toISOString();return"first"===n?t.substring(0,t.indexOf("T")):t.substring(t.indexOf("T")+1,t.length-1)}function Vn(e,n,t){return n.replace(/(\w)\1*/g,n=>{let r=Number.NaN;switch(n.substring(0,1)){case"y":const o=t?e.getUTCFullYear():e.getFullYear();r=n.length<4?o%100:o;break;case"M":r=(t?e.getUTCMonth():e.getMonth())+1;break;case"d":r=t?e.getUTCDate():e.getDate();break;case"H":r=t?e.getUTCHours():e.getHours();break;case"h":const i=t?e.getUTCHours():e.getHours();r=i>12?i%12:i;break;case"m":r=t?e.getUTCMinutes():e.getMinutes();break;case"s":r=t?e.getUTCSeconds():e.getSeconds();break;case"f":r=t?e.getUTCMilliseconds():e.getMilliseconds()}return Number.isNaN(r)?n:r<10&&n.length>1?"0"+r:""+r})}function Zn(e,n){var t,r,o;const i=new Date(e.getTime()+(null!==(t=e.offset)&&void 0!==t?t:0));if("string"!=typeof n)return i.toISOString().replace(/\.\d+/,"").replace(/[A-Z]|\.\d+/g," ")+zn(null!==(r=e.offset)&&void 0!==r?r:0);if(1!==n.length)return Vn(i,n,!0);switch(n){case"D":case"d":return qn(i,"first");case"T":case"t":return qn(i,"second");case"O":case"o":return function(e,n){const t=e.toISOString();return t.substring(0,t.length-1)+zn(n)}(i,null!==(o=e.offset)&&void 0!==o?o:0);default:throw new Error("Unrecognized Date print format")}}function Jn(e,n){const t=1===e.kind;if("string"!=typeof n)return t?e.toUTCString():e.toLocaleString();if(1!==n.length)return Vn(e,n,t);switch(n){case"D":case"d":return t?qn(e,"first"):e.toLocaleDateString();case"T":case"t":return t?qn(e,"second"):e.toLocaleTimeString();case"O":case"o":return function(e,n){if(n)return e.toISOString();{const n=null==e.kind||2===e.kind;return $(e.getFullYear(),4)+"-"+$(e.getMonth()+1,2)+"-"+$(e.getDate(),2)+"T"+$(e.getHours(),2)+":"+$(e.getMinutes(),2)+":"+$(e.getSeconds(),2)+"."+$(e.getMilliseconds(),3)+(n?zn(-6e4*e.getTimezoneOffset()):"")}}(e,t);default:throw new Error("Unrecognized Date print format")}}function Xn(e,n,t){return null!=e.offset?Zn(e,n):Jn(e,n)}function Yn(e,n){const t=new Date(e);return t.kind=0|(null==n?0:n),t}function Kn(){return Yn(-621355968e5,0)}function Qn(e){function n(){throw new Error("The string is not a valid Date: "+e)}null!=e&&""!==e.trim()||n(),10===e.length&&"-"===e[4]&&"-"===e[7]&&(e+="T00:00:00");let t=new Date(e),r=null;if(isNaN(t.getTime())){const o=/^\s*(\d+[^\w\s:]\d+[^\w\s:]\d+)?\s*(\d+:\d+(?::\d+(?:\.\d+)?)?)?\s*([AaPp][Mm])?\s*(Z|[+-]([01]?\d):?([0-5]?\d)?)?\s*$/.exec(e);if(null!=o){let e,n=0;if(null!=o[2]){const e=o[2].split(":");n=3600*parseInt(e[0],10)+60*parseInt(e[1]||"0",10)+parseFloat(e[2]||"0"),null!=o[3]&&"PM"===o[3].toUpperCase()&&(n+=720)}if(null!=o[4]){if(null!=o[1])e=new Date(o[1]+" UTC");else{const n=new Date;e=new Date(n.getUTCFullYear()+"/"+(n.getUTCMonth()+1)+"/"+n.getUTCDate())}if("Z"===o[4])r="Z";else{let e=60*parseInt(o[5],10)+parseInt(o[6]||"0",10);"-"===o[4][0]&&(e*=-1),r=e,n-=60*e}}else if(null!=o[1])e=new Date(o[1]);else{const n=new Date;e=new Date(n.getFullYear()+"/"+(n.getMonth()+1)+"/"+n.getDate())}t=new Date(e.getTime()+1e3*n),t=new Date(t.getTime()+6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))}else n();isNaN(t.getTime())&&n()}return[t,r]}function et(e,n){try{return n.contents=function(e,n=!1){const[t,r]=Qn(e),o=null!=r?n&&"Z"===r?1:2:0;return Yn(t.getTime(),o)}(e),!0}catch(e){return!1}}function nt(e){return 1===e.kind?e:Yn(e.getTime(),1)}function tt(e,n=0){if(0!=(-284&n))throw new Error("RegexOptions only supports: IgnoreCase, Multiline, Compiled, Singleline and ECMAScript");let t="gu";return t+=1&n?"i":"",t+=2&n?"m":"",t+=16&n?"s":"",new RegExp(e,t)}function rt(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function ot(e,n,t=0){if(null==n)throw new Error("Input cannot ve null");if(!e.global)throw new Error("Non-global RegExp");e.lastIndex=t;const r=[];let o,i=-1;for(;null!=(o=e.exec(n));)o.index===i?e.lastIndex++:(i=o.index,r.push(o));return r}const it=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g,st=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function ut(e,n){return function(e,n){return"number"==typeof e?e<n?-1:e>n?1:0:e.CompareTo(n)}(e,n)<0}function ct(e){return{input:e,cont:(n=e,e=>{it.lastIndex=0;const t=[],r=[];let o=0,i=it.exec(n);for(;i;){const e=i.index+(i[1]||"").length;t.push(n.substring(o,e).replace(/%%/g,"%")),r.push(i),o=it.lastIndex,it.lastIndex-=1,i=it.exec(n)}return 0===t.length?e(n.replace(/%%/g,"%")):(t.push(n.substring(o).replace(/%%/g,"%")),function e(n,t,r,o="",i=-1){return(...s)=>{let u=o;const c=t.slice(),a=r.slice();for(const e of s){const[,,n,t,r,o]=a[0];let s=t;if(i>=0)s=i,i=-1;else if("*"===s){if(e<0)throw new Error("Non-negative number required");i=e;continue}u+=c[0],u+=$t(e,n,s,r,o),c.splice(0,1),a.splice(0,1)}return 0===a.length?(u+=c[0],n(u)):e(n,c,a,u,i)}}(e,t,r))})};var n}function at(e,n){return"string"==typeof n?e(n):n.cont(e)}function lt(e){return at(e=>e,e)}function $t(e,n,t,r,o){let i="";if(n=n||"",o=o||"",W(e))switch("x"!==o.toLowerCase()&&(ut(e,0)?(e=z(e,-1),i="-"):n.indexOf(" ")>=0?i=" ":n.indexOf("+")>=0&&(i="+")),r=null==r?null:parseInt(r,10),o){case"f":case"F":e=q(e,r=null!=r?r:6);break;case"g":case"G":e=null!=r?V(e,r):V(e);break;case"e":case"E":e=null!=r?Z(e,r):Z(e);break;case"x":e=J(e);break;case"X":e=J(e).toUpperCase();break;default:e=String(e)}else e=e instanceof Date?Xn(e):P(e);if(t="number"==typeof t?t:parseInt(t,10),isNaN(t))e=i+e;else{const r=n.indexOf("0")>=0,o=n.indexOf("-")>=0,s=o||!r?" ":"0";e="0"===s?i+(e=mt(e,t-i.length,s,o)):mt(i+e,t,s,o)}return e}function ft(e,...n){return"object"==typeof e&&n.length>0&&(e=n[0],n.shift()),e.replace(st,(e,t,r,o,i,s)=>{if(t<0||t>=n.length)throw new Error("Index must be greater or equal to zero and less than the arguments' length.");let u=n[t];if(W(u))switch(i=null==i?null:parseInt(i,10),o){case"f":case"F":u=q(u,i=null!=i?i:2);break;case"g":case"G":u=null!=i?V(u,i):V(u);break;case"e":case"E":u=null!=i?Z(u,i):Z(u);break;case"p":case"P":i=null!=i?i:2,u=q(z(u,100),i)+" %";break;case"d":case"D":u=null!=i?gt(String(u),i,"0"):String(u);break;case"x":case"X":u=null!=i?gt(J(u),i,"0"):J(u),"X"===o&&(u=u.toUpperCase());break;default:if(s){let e="";u=s.replace(/([0#,]+)(\.[0#]+)?/,(n,t,r)=>{ut(u,0)&&(u=z(u,-1),e="-"),r=null==r?"":r.substring(1),u=q(u,Math.max(r.length,0));let[o,i]=u.split(".");i||(i="");o=gt(o,t.replace(/,/g,"").replace(/^#+/,"").length,"0");const s=r.replace(/#+$/,"").length;if(s>i.length?i=function(e,n,t){return mt(e,n,t,!0)}(i,s,"0"):s<i.length&&(i=i.substring(0,s)+i.substring(s).replace(/0+$/,"")),t.indexOf(",")>0){const e=o.length%3,n=Math.floor(o.length/3);let t=e>0?o.substr(0,e)+(n>0?",":""):"";for(let r=0;r<n;r++)t+=o.substr(e+3*r,3)+(r<n-1?",":"");o=t}return i.length>0?o+"."+i:o}),u=e+u}}else u=u instanceof Date?Xn(u,s||o):P(u);return r=parseInt((r||" ").substring(1),10),isNaN(r)||(u=mt(String(u),Math.abs(r)," ",r<0)),u})}function dt(e){return"string"!=typeof e||0===e.length}function ht(e){return"string"!=typeof e||/^\s*$/.test(e)}function pt(e,n){return Array.isArray(n)?n.join(e):Array.from(n).join(e)}function mt(e,n,t,r){t=t||" ",n-=e.length;for(let o=0;o<n;o++)e=r?e+t:t+e;return e}function gt(e,n,t){return mt(e,n,t)}function wt(e,n,t,r){if(r="number"==typeof r?r:0,(t="number"==typeof t?t:void 0)&&t<0)throw new Error("Count cannot be less than zero");if(0===t)return[];const o=1==(1&r),i=2==(2&r);n=(n=(n=n||[]).filter(e=>e).map(rt)).length>0?n:["\\s"];const s=[],u=new RegExp(n.join("|"),"g");let c=!0,a=0;do{const n=u.exec(e);if(null===n){const n=i?e.substring(a).trim():e.substring(a);(!o||n.length>0)&&s.push(n),c=!1}else{const r=i?e.substring(a,n.index).trim():e.substring(a,n.index);(!o||r.length>0)&&(null!=t&&s.length+1===t?(s.push(i?e.substring(a).trim():e.substring(a)),c=!1):s.push(r)),a=u.lastIndex}}while(c);return s}function yt(e,n,t){if(n+(t||0)>e.length)throw new Error("Invalid startIndex and/or length");return null!=t?e.substr(n,t):e.substr(n)}const _t=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,vt=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,bt=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function Ct(e){function n(e){return e.replace(vt,"$1-$2-$3-$4-$5")}const t=e.trim().toLowerCase();if(_t.test(t))return function(e,...n){if(0===n.length)return e.trim();const t="["+rt(n.join(""))+"]+";return e.replace(new RegExp("^"+t),"").replace(new RegExp(t+"$"),"")}(t,"{","}","(",")");if(vt.test(t))return n(t);if(bt.test(t))return n(t.replace(/[\{\},]|0x/g,""));throw new Error("Guid should contain 32 digits with 4 dashes: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx")}function xt(e,n){try{return n.contents=Ct(e),!0}catch(e){return!1}}class St extends D{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["StreamId"]}}function Et(){return bn("MetadataTypes.StreamId",[],St,()=>[[["Item",En]]])}function kt(e){return e.fields[0]}function At(e,n){return"function"==typeof e?new e(n):new Array(n)}function It(e,n,t,r){const o=0|n;return e.fill(r,o,o+t)}function Nt(e,n,t){const r=0|n.length,o=At(t,r);for(let t=0;t<=r-1;t++)o[t]=e(n[t]);return o}function Tt(e,n,t){if(e<0)throw new Error("The input must be non-negative\\nParameter name: count");const r=At(t,e);for(let t=0;t<=e-1;t++)r[t]=n(t);return r}function Pt(e){return e.slice().reverse()}function Dt(e,n,t){return t.reduce(e,n)}function Ot(e,n){if(e<1)throw new Error("The input must be positive.\\nParameter name: size");if(0===n.length)return[[]];{const t=[];for(let r=0;r<=~~Math.ceil(n.length/e)-1;r++){let o;const i=r*e|0;o=n.slice(i,i+e),t.push(o)}return t}}function Mt(e,n,t){if(null==n)return null==t;if(null==t)return!1;{let r=0,o=!0;const i=0|n.length,s=0|t.length;if(i>s)return!1;if(i<s)return!1;for(;r<i&&o;)o=e(n[r],t[r]),r=r+1|0;return o}}function Ut(e,n,t){return n.reduceRight((n,t)=>e(t,n),t)}class Bt extends L{constructor(e,n){super(),this.head=e,this.tail=n}toString(){return"["+pt("; ",this)+"]"}Equals(e){const n=this;if(n===e)return!0;return((e,n)=>{e:for(;;){const t=e,r=n,o=[t.tail,r.tail];if(null!=o[0]){if(null!=o[1]){const i=o[0],s=o[1];if(v(t.head,r.head)){e=i,n=s;continue e}return!1}return!1}return null==o[1]}})(n,e)}GetHashCode(){return 0|((e,n,t)=>{for(;;){const r=e,o=n,i=t,s=i.tail;if(null==s)return 0|o;{const u=s;if(r>18)return 0|o;e=r+1,n=(o<<1)+w(i.head)+631*r,t=u}}})(0,0,this)}toJSON(e){return Array.from(this)}CompareTo(e){return 0|((e,n)=>{e:for(;;){const t=e,r=n,o=[t.tail,r.tail];if(null!=o[0]){if(null!=o[1]){const i=o[0],s=o[1],u=0|S(t.head,r.head);if(0===u){e=i,n=s;continue e}return 0|u}return 1}return null!=o[1]?-1:0}})(this,e)}GetEnumerator(){return function(e){return new Rt(e)}(this)}[Symbol.iterator](){return l(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return a(this)}}class Rt{constructor(e){this.xs=e,this.it=this.xs,this.current=null}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current}"System.Collections.IEnumerator.get_Current"(){return this.current}"System.Collections.IEnumerator.MoveNext"(){const e=this,n=e.it.tail;if(null!=n){const t=n;return e.current=e.it.head,e.it=t,!0}return!1}"System.Collections.IEnumerator.Reset"(){this.it=this.xs,this.current=null}Dispose(){}}function Lt(){return new Bt(null,void 0)}function Gt(e,n){return new Bt(e,n)}function jt(e){return null==e.tail}function Ft(e){return 0|((e,n)=>{for(;;){const t=e,r=n.tail;if(null==r)return 0|t;e=t+1,n=r}})(0,e)}function Ht(e){if(null!=e.tail)return e.head;throw new Error("Collection was empty.\\nParameter name: list")}function Wt(e){const n=e.tail;if(null!=n)return n;throw new Error("Collection was empty.\\nParameter name: list")}function zt(){return Lt()}function qt(e,n){return Gt(e,n)}function Vt(e){return Gt(e,Lt())}function Zt(e){return jt(e)}function Jt(e){return Ft(e)}function Xt(e){return Ht(e)}function Yt(e){return Wt(e)}function Kt(e){const n=0|Ft(e),t=It(new Array(n),0,n,null);return((e,n)=>{for(;;){const r=e,o=n;if(jt(o))break;t[r]=Ht(o),e=r+1,n=Wt(o)}})(0,e),t}function Qt(e,n,t){let r=n,o=t;for(;!jt(o);)r=e(r,Ht(o)),o=Wt(o);return r}function er(e){return Qt((e,n)=>Gt(n,e),Lt(),e)}function nr(e,n){Qt((n,t)=>{e(t)},void 0,n)}function tr(e,n){let t=n;for(let n=e.length-1;n>=0;n--)t=Gt(e[n],t);return t}function rr(e){return tr(e,Lt())}function or(e){let n,t;if(r(e))return rr(e);if(e instanceof Bt)return e;{const r=Lt();let o=r;const i=a(e);try{for(;i["System.Collections.IEnumerator.MoveNext"]();){const e=i["System.Collections.Generic.IEnumerator`1.get_Current"]();n=o,t=new Bt(e,void 0),n.tail=t,o=t}}finally{s(i)}const u=o,c=Lt();return u.tail=c,Wt(r)}}function ir(e,n){return Qt((e,n)=>Gt(n,e),n,er(e))}function sr(e,n){const t=Lt(),r=function(e,n,t){return((n,t,r)=>{for(;;){const o=n,i=t,s=r;if(jt(s))return i;n=o+1,t=e(o,i,Ht(s)),r=Wt(s)}})(0,n,t)}((n,t,r)=>{const o=new Bt(e(n,r),void 0);return t.tail=o,o},t,n),o=Lt();return r.tail=o,Wt(t)}function ur(e,n){const t=Lt(),r=Qt((n,t)=>{const r=new Bt(e(t),void 0);return n.tail=r,r},t,n),o=Lt();return r.tail=o,Wt(t)}function cr(e,n){return(n=>{e:for(;;){const t=n;if(jt(t))return;{const r=e(Ht(t));if(null==r){n=Wt(t);continue e}return r}}})(n)}function ar(e,n){return cr(n=>e(n)?Rn(n):void 0,n)}function lr(e,n){return((n,t)=>{for(;;){const r=n,o=t;if(jt(o))return;if(r===e)return Rn(Ht(o));n=r+1,t=Wt(o)}})(0,n)}function $r(){return e=S,{Compare:(n,t)=>e(n,t)};var e}function fr(){return $r()}function dr(){throw new Error("Enumeration has not started. Call MoveNext.")}function hr(){throw new Error("Enumeration already finished.")}class pr{constructor(e){this.f=e}toString(){let e=0,n="seq [";const t=a(this);try{for(;e<4&&t["System.Collections.IEnumerator.MoveNext"]();)e>0&&(n+="; "),n+=P(t["System.Collections.Generic.IEnumerator`1.get_Current"]()),e=e+1|0;return 4===e&&(n+="; ..."),n+"]"}finally{s(t)}}GetEnumerator(){return this.f()}[Symbol.iterator](){return l(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}class mr{constructor(e,n,t){this.current=e,this.next=n,this.dispose=t}"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"(){!function(){throw new Error("Reset is not supported on this enumerator.")}()}Dispose(){this.dispose()}}function gr(e,n,t){return new mr(e,n,t)}function wr(e,n,t){let r=!1,o=void 0,i=Rn(e());const s=()=>{if(null!=i){const e=Ln(i);try{t(e)}finally{i=void 0}}},u=()=>{try{s()}finally{o=void 0}};return gr(()=>(r||dr(),null!=o?Ln(o):hr()),()=>{if(r||(r=!0),null!=i){const e=Ln(i);let t;try{t=n(e)}catch(e){throw u(),e}return null!=t?(o=t,!0):(u(),!1)}return!1},s)}function yr(e,n){null==n&&function(e){throw new Error(e)}(e)}function _r(e){return function(e){return new pr(e)}(e)}function vr(e){return yr("source",e),a(e)}function br(e){return _r(()=>a(e()))}function Cr(e){return _r(()=>function(e){let n=void 0,t=void 0,r=!1,o=!1,i=void 0;const u=()=>{if(o=!0,null!=t){const e=t;try{s(e)}finally{t=void 0}}if(null!=n){const e=n;try{s(e)}finally{n=void 0}}};return gr(()=>(r?o&&hr():dr(),null!=i?Ln(i):hr()),()=>{let c;if(r||(r=!0),o)return!1;{let r=void 0;for(;null==r;){const o=[n,t];if(null!=o[0])if(null!=o[1]){const e=o[1];if(e["System.Collections.IEnumerator.MoveNext"]())i=Rn(e["System.Collections.Generic.IEnumerator`1.get_Current"]()),r=!0;else try{s(e)}finally{t=void 0}}else{const e=o[0];if(e["System.Collections.IEnumerator.MoveNext"]()){c=e["System.Collections.Generic.IEnumerator`1.get_Current"](),t=a(c)}else u(),r=!1}else n=a(e)}return Ln(r)}},()=>{o||u()})}(e))}function xr(){return br(()=>new Array(0))}function Sr(e){return br(()=>function(e,n){const t=At(n,1);return t[0]=e,t}(e))}function Er(e){return e instanceof Bt?Kt(e):Array.from(e)}function kr(e){return r(e)?rr(e):e instanceof Bt?e:or(e)}function Ar(e,n,t){return _r(()=>wr(e,n,t))}function Ir(e,n,t){return _r(()=>{let r=-1;return wr(e,e=>(r=r+1|0,n(r,e)),t)})}function Nr(e,n){return Cr([e,n])}function Tr(e,n){return Ar(()=>vr(n),n=>{let t=void 0;for(;null==t&&n["System.Collections.IEnumerator.MoveNext"]();)t=e(n["System.Collections.Generic.IEnumerator`1.get_Current"]());return t},e=>{s(e)})}function Pr(e,n,t){const r=vr(n);try{let n=!1;for(;!n&&r["System.Collections.IEnumerator.MoveNext"]();)n=t.Equals(e,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return n}finally{s(r)}}function Dr(e,n,t){const r=vr(t);try{let t=n;for(;r["System.Collections.IEnumerator.MoveNext"]();)t=e(t,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return t}finally{s(r)}}function Or(e,n){Dr((n,t)=>{e(t)},void 0,n)}function Mr(e,n){return Ar(()=>vr(n),n=>n["System.Collections.IEnumerator.MoveNext"]()?Rn(e(n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,e=>{s(e)})}function Ur(e,n){return Ir(()=>vr(n),(n,t)=>t["System.Collections.IEnumerator.MoveNext"]()?Rn(e(n,t["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,e=>{s(e)})}Symbol.iterator;function Br(e){return br(()=>Pt(Er(e)))}!function(){const e=[..."#C$&$&$$$$$$%-%&%=$$$$$$=$$$$D$$'$$$$$$$$$$$$%$$%$$$$&$:$*;$+$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$%$$$$$$$$$$$$$$$%$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$%$$$$&%$$$%$&%'$%$&&%$%$$$$$%$$%$$%$&$$$%%$$&'$$$$$$$$$$$$$$$$$$$$$$$$%$$$$$$$$$$$$$$$$$%$$$$$&$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$*%$%%$$'$$$$$$$$h$>5'/1(*$$$4“$$$$$$$$%$&$$'%$$&$$$%$4$,F$%&&$$$$$$$$$$$$$$$$$$$$$$$($$$$$%%VS$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$(%$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$%$$$$$$$$$$$$%$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$I%$)L$$%%$$P$$$%$%$$+>''%.)&%$%%.$$$%C$-8-'%$†$$*$$)%%$'%-&%$1$$$$A>%|.$1-D,%$&$%$%9'$,$&$(%2$<&%$$.X8$5.2$C$Y$$$$&+'$%$*-%%-$$2$%$+%%%9$*$$&'%$$&'%%%%$$+$'%$&%%-%%)$$$$$%%$$)'%%9$*$%$%$%%$$&%'%%&&$*'$$*-%&$$-%$$,$&$9$*$%$(%$$&($%$$%$%$2%%%-$$*$)$$%$+%%%9$*$%$(%$$$$$'%%%%$*%$'%$&%%-$$)-$$$)&&$'&%$$$%&%&&&/'%$%&&$&$%$)$1-&)$$($&$+$&$:$3&$&'$&$'*%$&(%%%-*$*$$$%$+$&$:$-$(%$$$$($$%$%%*%*$$%%%-$%0%%,$&$L%$&'$&$&$$$'&$*&%%-,$)$$%$5&;$,$$%*&$'&&$$$+)-%%$/S$%*'$)$+$-%H%$$$($;$$$-$%,$%($$$)%-%'C$&2$$&%)--$$$$$$$$$$%+$G'1$($%(.$G$+$)$%('%HN%'$)$%%%$-))%%'&$&%*&'0$%%)$$$-&$%I$$($%N$$&Ŭ$'%*$$$'%L$'%D$'%*$$$'%2$\\$'%f%&,7&3-)y%)%$ʏ$$4$=$$&n&&+*0$'&.5&%,5%/0$&$%/W%$*+$%.&$&$$$%-)-))$'&$$-)F$X*(%E$$(i-B$&'%&'%$)&'$&%-A%(.O'=)-$&E:%%$%%X$$$*$$$$%+)-%$-)-)*$)%1$%b'$R$$($$($%*'-*-,,&%$A$'%%$&%-O$$%&$$&%+'G++%%&(-&&-A)%,*N%&++&$0$*'$)$%$%$(Ob0$EH]$($$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$,$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$,+)%)%++++)%)%+$$$$$$$$++1%++++++($%'$$$&&$%'$&'%%'$&+(&%&$%'$%$.()%$$$%$$$+$$($,$$'%&$$$.$$$-$($-$$%)&$$$-&$$$0&C30'$&/2%$'$%$&%&$$$%$()$$$$$$'$$'$'$%%%($'$$%$$3F$$'$%'((%'$%$%$*$B%%$$$Bį+$$$$7%*$$t$A<K)h<.8_q9Ú$,$Y+’$ě$$$$$$$$$$$$$$AO($$B$$$$$$$$$$3ģ¦$$$$$$$$$$$$$$$$$$$$$$b$$$$C$$ĥS8%)J%C$ŒR$R$$$&%$$$$$$'$$%$)%&$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$%)$$$$&$$('$%I$$($%[*$$1$:,*$*$*$*$*$*$*$*$C%$$$$&$$$$$,$%$$$$%$$$$$$$$$$($-%'$$$0%$P=$|/ù=/'$&$$$$$$$$$$$$$$%$$$$$$$$$$%$,'%$(%&$$$%$y%%%%$$}$&$(N$$%'-CG/3B$-A+$2C-J2ţ᧣c删&8$Қ&Z,K)%į$&3-%7$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$&$-$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$%%i-%)+:,%$$$$$$$$$$$$$&$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$+$$$$%$$$$$$$$$$%$$$$$$$$&$$$$$$$$$$$$$$$$$$$$($($$$$$$$$$$$%$$'$$$M$$$%$*$&$'$:%%$'$&)%$$)W'+%U3%+%-)5)&$$%$-?+%:.%.$@&&$R$%'%%&0$$-'%($$,-($L)%%%%,&$+$$%-%'3$)&$$$$U$$&%%(%$$$;%$%.$%%%$%$$-)%)%),*$*$N$',$%'sF%$%$%$$$%-)⯇/:'T'ࠣᤣƑ%I*/(($$-$0$($$$%$%$34Ǝ$$3c%YK/$$%3*$$$)3$%%$$$$$$$$$$$$$$$$%$$'&&$'$$$$$$$&$$&$$$%'($ª%$$&$&$$$$$$%-%&%=$$$$$$=$$$$$$$$$%-$P%B&)%)%)%&&%$$$%$$'%-&%%/$=$6$%$2%1Ež(&'P&,X'4%&$0&$RP$¥@&T2$>'C',7$+$(I((A$$G'+$(MKKq%-)G'G'K+W.$³Ś,9-+»)%$$O$%&$%:$$+:%*B+,S6$%((9)&$=($c['%%3%Q$&$%(''$&$@%&'$,*,*@%$@&C+$?%'(*,Y&*9%+6(+5*'/*slZV0V*)G'+-ʼnB$M$%$%%q@-$+9.'(y8*7:,$$$X2*'7-2&$P&'%%%$'.$%<*-)&G($+$-'$%$+F$%$,%$S&,%'''$$$-$$$&$7.5$<&&%$$%)$d*$$$'$2$-$)R$&+(-)%%$+%%%9$*$%$($%$%$'%%%&%$)$((%%*&(®X&+%&$$'(-%$$$&AS&)$$'%$%%$$+-ÉR&'%'%$%:'%ES&+%$$%&$.-)06N$$$%)$$$*-Y>%&%'$('-%&$ãO&,$%$‡CC-,/+%$%+$%$;)$%%%$$$$$$$&,-i+%J&'%%'$$$$$>$-K)$$'+$+$)%&Q0$%&$(@\\Ī,$H$*$)$$$(--6&%A%9$$*$%$%l*$%$I)&$$%$*$$+-))$%$C($%$%$$$$*-ř6%%%Ú$28+'40$ν‰’$(.ç૟ђ$,࿪ɪ⇜ɜ*B$-'%ƒA%($-S*(''$$--$*$8(6˓CC:'ˆn'$$Z*'0c%$$$.%1᠛+ӹM,⌚łT&4'+ƯधŽ(0&,*-%$%$'፿ę-J%_%&&)++%*A'^:e&$½7/z,<ª===*$5==$$%%$%%%'$+'$$$*$.==%$'%+$*$=%$'$($$&*$============?%<$<$)<$<$)<$<$)<$<$)<$<$)$$%UȣZ'U+$1$%(2($2ճ*$4%*$%$(øP&**%-'$$ƓO'-($ԣè%,*LEE*$'-'%̴^$&$'oP$2å'$>$%$$%$$-$'$$$$)$'$$$$$$&$%$$%$$$$$$$$$$%$$%'$*$'$'$$$-$4(&$($4W%ıO'‡/2%2$2$H-0Ä[@0O',*%1)½Ğ(˻+0&0&—/|*/7/'[+-)K+A%%qœ$u$ª/1%(&&(*,<**,&0*L¶$ZH-Щ꜁Eၘ.ā%ᚥ1ᵔూɁ؅፮򮳙$Aƒ£ē︳𐀡%𐀡"].map(e=>{var n;return(null!==(n=e.codePointAt(0))&&void 0!==n?n:0)-35}),n=[..."1.;=;78;<;6;+;<;#7;8>5>$7<8<1.;=?;>?'9<2?>?<->$;>-':-;#<#$<$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$'#$'#%$#%$#%$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#%$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$'$&>&>&>&>&>(#$#$&>#$@&$;#@>#;#@#@#$#@#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$<#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$?(*#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$@#@&;$;6@?=@(6(;(;(;(@'@';@2<;=;?(;2@;'&'(+;'(';'(2?(&(?('+'?';@2'('(@'('@+'(&?;&@(='(&(&(&(@;@'(@;@'@'@'@(2()'()(')()()'('(;+;&'()@'@'@'@'@'@'@(')(@)@)('@)@'@'(@+'=-?=';(@()@'@'@'@'@'@'@'@(@)(@(@(@(@'@'@+('(;@()@'@'@'@'@'@'@(')(@()@)(@'@'(@+;=@'(@()@'@'@'@'@'@'@(')()(@)@)(@()@'@'(@+?'-@('@'@'@'@'@'@'@'@'@'@)()@)@)(@'@)@+-?=?@()('@'@'@'@'()@(@(@(@'@'(@+@;-?'();'@'@'@'@'@(')()@()@)(@)@'@'(@+@'@()'@'@'(')(@)@)('?@')-'(@+-?'@()@'@'@'@'@'@(@)(@(@)@+@);@'('(@='&(;+;@'@'@'@'@'@'('('@'@&@(@+@'@'?;?;?(?+-?(?(?(7878)'@'@()(;('(@(@?(?@?;?;@')()()()('+;')('(')')'('()()(')+)(?#@#@#@$;&$'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@(;-@'?@#@$@6'?;'.'78@';,'@'@'(@'(;@'(@'@'@(@'()()()(;&;='(@+@-@;6;(2@+@'&'@'('('@'@'@()()@)()(@?@;+'@'@'@'@+-@?'()(@;')()(@()()()(@(+@+@;&;@(*(@()'()()()()'@+;?(?@()')()()('+'()()()()@;')()(@;+@'+'&;$@#@#;@(;()('('(')('@$&$&$&(@(#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$@#@$#$#$@#@$@#@#@#@#$#$@$%$%$%$@$#%>$>$@$#%>$@$#@>$#>@$@$#%>@.26;9:79:79;/02.;9:;5;<78;<;5;.2@2-&@-<78&-<78@&@=@(*(*(@?#?#?$#$#$?#?<#?#?#?#?#?$#$'$?$#<#$?<?$?-,#$,-?@<?<?<?<?<?<?<?<?<?<?7878?<?78?<?<?<?@?@-?-?<?<?<?<?78787878787878-?<78<7878787878<?<7878787878787878787878<7878<78<?<?<?@?@?#@$@#$#$#$#$#$#$#$#$&#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$?#$#$(#$@;-;$@$@$@'@&;@('@'@'@'@'@'@'@'@'@(;9:9:;9:;9:;6;6;9:;9:78787878;&;6;6;7;?;@?@?@?@?@.;?&',7878787878?78787878678?,()6&?,&';?@'@(>&'6';&'@'@'@?-?'?@'?@-?-?-?-?-?'?'@'&'@?@'&;'&;'+'@#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$'(*;(;&#$#$#$#$#$#$#$#$#$#$#$#$#$#$&(',(;@>&>#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$&$#$#$#$#$#$#$#$&>#$#$'#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$@#$#$#$@#$'&$'('('(')()?(@-?=?@';@)')(@;+@(';';'(+'(;'()@;'@()'()()();@&+@;'(&'+'@'()()(@'('()@+@;'&'?')()'('('('('('@'&;')();'&)(@'@'@'@'@'@$>&$&>@$')()();)(@+@'@'@'@34'@'@$@$@'('<'@'@'@'@'@'>@'87@'@'@'=?@(;78;@(;657878787878787878;78;5;@;6787878;<6<@;=;@'@'@2@;=;78;<;6;+;<;#7;8>5>$7<8<78;78;'&'&'@'@'@'@'@=<>?=@?<?@2?@'@'@'@'@'@'@'@;@-@?,-?-?@?@?@?(@'@'@(-@'-@',',@'(@'@;'@';,@#$'@+@#@$@'@'@;@'@'@'@'@'@'@'@'@'@;-'?-'@-@'@'@-'-@;'@;@'@-'-@-'(@(@('@'@'@(@(-@;@'-;'-@'?'(@-;@'@;'@-'@-'@;@-@'@#@$@-'(@+@-@'@(6@'@'-'@'(-;@'-@'@)()'(;@-+@()')()(;2;@2@'@+@('()(@+;')'@'(;'@()')()';(;)(+';';@-@'@')()()(;(@'@'@'@'@';@'()(@+@()@'@'@'@'@'@'@(')()@)@)@'@)@')@(@(@')()()(';+;@;('@')()()()(';'@+@')(@)()(;'(@')()()(;'@+@;@'()()()('@+@'@()()(@+-;?@')()(;@#$+-@'@'@'@'@')@)@()(')')(;@+@'@')(@()(';')@'('()'(;(@'()('()(;';@'@'@')(@()(';@+-@;'@(@)()()(@'@'@'(@(@(@('(@+@'@'@')@(@)()('@+@'();@'@-?=?@;'@,@;@'@'@2@'@'@'@+@;@'@(;@'(;?&;?@+@-@'@'@#$-;@'@(')@(&@&;&(@)@'@'@'@'@'@'@'@'@'@'@'@?(;2@?@?@?)(?)2(?(?(?@?(?@-@?@-@#$#$@$#$#@#@#@#@#@#$@$@$@$#$#@#@#@#@$#@#@#@#@#@$#$#$#$#$#$#$@#<$<$#<$<$#<$<$#<$<$#<$<$#$@+?(?(?(?(?;@(@(@(@(@(@(@(@'@(&@+@'?@'(+@=@'@-(@#$(&@+@;@-?-=-@-?-@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@<@?@?@?@?@?@?@-?@?@?@?@?@?@?>?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@+@'@'@'@'@'@'@'@2@2@(@4@4@"].map(e=>{var n;return(null!==(n=e.codePointAt(0))&&void 0!==n?n:0)-35}),t=new Uint32Array(e),r=new Uint8Array(n);for(let e=1;e<t.length;++e)t[e]+=t[e-1]}();function Rr(e){let n;const t=function(e,n){const t=function(e,n,t=0){return e.lastIndex=t,e.exec(n)}(tt(e),n);return null!=t?Yt(kr(br(()=>Mr(e=>e||"",t)))):void 0}(".*?@(.*)",e);switch(n=null!=t?Zt(t)?1:Zt(Yt(t))?0:1:1,n){case 0:return e;case 1:return}}function Lr(e,n){return dt(n)?new Hn(1,lt(ct("%s cannot be null or empty"))(e)):new Hn(0,n)}class Gr extends D{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Name"]}}class jr extends D{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Website"]}}class Fr extends D{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["FirstName"]}}class Hr extends D{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["LastName"]}}class Wr extends D{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Email"]}}class zr extends D{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["MobilePhone"]}}class qr extends L{constructor(e,n,t,r){super(),this.FirstName=e,this.LastName=n,this.Email=t,this.MobilePhone=r}}class Vr extends D{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Notes"]}}class Zr extends D{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["PartnerId"]}}function Jr(){return bn("BasicModels.PartnerId",[],Zr,()=>[[["Item",En]]])}class Xr extends D{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["AccountId"]}}function Yr(){return bn("BasicModels.AccountId",[],Xr,()=>[[["Item",En]]])}function Kr(e){return e.fields[0]}function Qr(e){return e.fields[0]}function eo(e){return e.fields[0]}function no(e){return e.fields[0]}function to(e){let n;const t=Lr("Email",e);return n=1===t.tag?new Hn(1,t.fields[0]):function(e){const n=Rr(e);if(null!=n){return new Hn(0,n)}return new Hn(1,"Email is not in the correct format")}(t.fields[0]),1===n.tag?new Hn(1,n.fields[0]):new Hn(0,new Wr(0,n.fields[0]))}function ro(e){return e.fields[0]}class oo extends L{constructor(e,n,t,r){super(),this.FirstName=e,this.LastName=n,this.Email=t,this.MobilePhone=r}}function io(){return vn("Dto.Primitives.ContactDetails",[],oo,()=>[["FirstName",En],["LastName",En],["Email",En],["MobilePhone",En]])}function so(e){const n=function(e){const n=Lr("FirstName",e);return 1===n.tag?new Hn(1,n.fields[0]):new Hn(0,new Fr(0,n.fields[0]))}(e.FirstName);if(1===n.tag)return new Hn(1,n.fields[0]);{const t=function(e){const n=Lr("LastName",e);return 1===n.tag?new Hn(1,n.fields[0]):new Hn(0,new Hr(0,n.fields[0]))}(e.LastName);if(1===t.tag)return new Hn(1,t.fields[0]);{const r=to(e.Email);if(1===r.tag)return new Hn(1,r.fields[0]);{const o=function(e){const n=Lr("MobilePhone",e);return 1===n.tag?new Hn(1,n.fields[0]):new Hn(0,new zr(0,n.fields[0]))}(e.MobilePhone);return 1===o.tag?new Hn(1,o.fields[0]):new Hn(0,new qr(n.fields[0],t.fields[0],r.fields[0],o.fields[0]))}}}}function uo(e){return e.fields[0]}function co(e){return e.fields[0]}class ao extends L{constructor(e,n,t,r,o,i,s,u,c){super(),this.BusinessName=e,this.BusinessNumber=n,this.Address1=t,this.Address2=r,this.City=o,this.Postcode=i,this.State=s,this.Phone=u,this.CountryCode=c}}class lo extends L{constructor(e,n,t,r,o){super(),this.StreamId=e,this.Name=n,this.Website=t,this.ContactDetails=r,this.Notes=o}}class $o extends L{constructor(e,n,t,r,o,i,s,u,c){super(),this.StreamId=e,this.PartnerId=n,this.Name=t,this.Website=r,this.ContactDetails=o,this.Notes=i,this.LegalEntity=s,this.ExternalId=u,this.ChannelId=c}}function fo(){return vn("Dto.AdminApi.Account",[],$o,()=>[["StreamId",En],["PartnerId",En],["Name",En],["Website",En],["ContactDetails",io()],["Notes",Cn(En)],["LegalEntity",Cn(vn("Dto.Primitives.LegalEntity",[],ao,()=>[["BusinessName",En],["BusinessNumber",En],["Address1",En],["Address2",Cn(En)],["City",En],["Postcode",En],["State",Cn(En)],["Phone",En],["CountryCode",Cn(En)]]))],["ExternalId",Cn(En)],["ChannelId",Cn(En)]])}class ho extends L{constructor(e,n,t,r,o,i,s,u,c){super(),this.AccountId=e,this.Name=n,this.Contact=t,this.ContactMobilePhone=r,this.Website=o,this.BusinessName=i,this.BusinessNumber=s,this.ExternalId=u,this.ChannelId=c}}function po(){return vn("Dto.AdminApi.AccountLookupItem",[],ho,()=>[["AccountId",En],["Name",En],["Contact",En],["ContactMobilePhone",En],["Website",En],["BusinessName",Cn(En)],["BusinessNumber",Cn(En)],["ExternalId",Cn(En)],["ChannelId",Cn(En)]])}class mo extends L{constructor(e,n){super(),this.Accounts=e,this.Token=n}}function go(){return vn("Dto.AdminApi.AccountLookup",[],mo,()=>[["Accounts",xn(po())],["Token",Cn(En)]])}var wo,yo,_o,vo,bo,Co,xo,So={},Eo=[],ko=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function Ao(e,n){for(var t in n)e[t]=n[t];return e}function Io(e){var n=e.parentNode;n&&n.removeChild(e)}function No(e,n,t){var r,o,i,s={};for(i in n)"key"==i?r=n[i]:"ref"==i?o=n[i]:s[i]=n[i];if(arguments.length>2&&(s.children=arguments.length>3?wo.call(arguments,2):t),"function"==typeof e&&null!=e.defaultProps)for(i in e.defaultProps)void 0===s[i]&&(s[i]=e.defaultProps[i]);return To(e,s,r,o,null)}function To(e,n,t,r,o){var i={type:e,props:n,key:t,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==o?++_o:o};return null==o&&null!=yo.vnode&&yo.vnode(i),i}function Po(e){return e.children}function Do(e,n){this.props=e,this.context=n}function Oo(e,n){if(null==n)return e.__?Oo(e.__,e.__.__k.indexOf(e)+1):null;for(var t;n<e.__k.length;n++)if(null!=(t=e.__k[n])&&null!=t.__e)return t.__e;return"function"==typeof e.type?Oo(e):null}function Mo(e){var n,t;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,n=0;n<e.__k.length;n++)if(null!=(t=e.__k[n])&&null!=t.__e){e.__e=e.__c.base=t.__e;break}return Mo(e)}}function Uo(e){(!e.__d&&(e.__d=!0)&&vo.push(e)&&!Bo.__r++||Co!==yo.debounceRendering)&&((Co=yo.debounceRendering)||bo)(Bo)}function Bo(){for(var e;Bo.__r=vo.length;)e=vo.sort((function(e,n){return e.__v.__b-n.__v.__b})),vo=[],e.some((function(e){var n,t,r,o,i,s;e.__d&&(i=(o=(n=e).__v).__e,(s=n.__P)&&(t=[],(r=Ao({},o)).__v=o.__v+1,qo(s,o,r,n.__n,void 0!==s.ownerSVGElement,null!=o.__h?[i]:null,t,null==i?Oo(o):i,o.__h),Vo(t,o),o.__e!=i&&Mo(o)))}))}function Ro(e,n,t,r,o,i,s,u,c,a){var l,$,f,d,h,p,m,g=r&&r.__k||Eo,w=g.length;for(t.__k=[],l=0;l<n.length;l++)if(null!=(d=t.__k[l]=null==(d=n[l])||"boolean"==typeof d?null:"string"==typeof d||"number"==typeof d||"bigint"==typeof d?To(null,d,null,null,d):Array.isArray(d)?To(Po,{children:d},null,null,null):d.__b>0?To(d.type,d.props,d.key,null,d.__v):d)){if(d.__=t,d.__b=t.__b+1,null===(f=g[l])||f&&d.key==f.key&&d.type===f.type)g[l]=void 0;else for($=0;$<w;$++){if((f=g[$])&&d.key==f.key&&d.type===f.type){g[$]=void 0;break}f=null}qo(e,d,f=f||So,o,i,s,u,c,a),h=d.__e,($=d.ref)&&f.ref!=$&&(m||(m=[]),f.ref&&m.push(f.ref,null,d),m.push($,d.__c||h,d)),null!=h?(null==p&&(p=h),"function"==typeof d.type&&d.__k===f.__k?d.__d=c=Lo(d,c,e):c=jo(e,d,f,g,h,c),"function"==typeof t.type&&(t.__d=c)):c&&f.__e==c&&c.parentNode!=e&&(c=Oo(f))}for(t.__e=p,l=w;l--;)null!=g[l]&&("function"==typeof t.type&&null!=g[l].__e&&g[l].__e==t.__d&&(t.__d=Oo(r,l+1)),Jo(g[l],g[l]));if(m)for(l=0;l<m.length;l++)Zo(m[l],m[++l],m[++l])}function Lo(e,n,t){for(var r,o=e.__k,i=0;o&&i<o.length;i++)(r=o[i])&&(r.__=e,n="function"==typeof r.type?Lo(r,n,t):jo(t,r,r,o,r.__e,n));return n}function Go(e,n){return n=n||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some((function(e){Go(e,n)})):n.push(e)),n}function jo(e,n,t,r,o,i){var s,u,c;if(void 0!==n.__d)s=n.__d,n.__d=void 0;else if(null==t||o!=i||null==o.parentNode)e:if(null==i||i.parentNode!==e)e.appendChild(o),s=null;else{for(u=i,c=0;(u=u.nextSibling)&&c<r.length;c+=2)if(u==o)break e;e.insertBefore(o,i),s=i}return void 0!==s?s:o.nextSibling}function Fo(e,n,t){"-"===n[0]?e.setProperty(n,t):e[n]=null==t?"":"number"!=typeof t||ko.test(n)?t:t+"px"}function Ho(e,n,t,r,o){var i;e:if("style"===n)if("string"==typeof t)e.style.cssText=t;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(n in r)t&&n in t||Fo(e.style,n,"");if(t)for(n in t)r&&t[n]===r[n]||Fo(e.style,n,t[n])}else if("o"===n[0]&&"n"===n[1])i=n!==(n=n.replace(/Capture$/,"")),n=n.toLowerCase()in e?n.toLowerCase().slice(2):n.slice(2),e.l||(e.l={}),e.l[n+i]=t,t?r||e.addEventListener(n,i?zo:Wo,i):e.removeEventListener(n,i?zo:Wo,i);else if("dangerouslySetInnerHTML"!==n){if(o)n=n.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==n&&"list"!==n&&"form"!==n&&"tabIndex"!==n&&"download"!==n&&n in e)try{e[n]=null==t?"":t;break e}catch(e){}"function"==typeof t||(null!=t&&(!1!==t||"a"===n[0]&&"r"===n[1])?e.setAttribute(n,t):e.removeAttribute(n))}}function Wo(e){this.l[e.type+!1](yo.event?yo.event(e):e)}function zo(e){this.l[e.type+!0](yo.event?yo.event(e):e)}function qo(e,n,t,r,o,i,s,u,c){var a,l,$,f,d,h,p,m,g,w,y,_=n.type;if(void 0!==n.constructor)return null;null!=t.__h&&(c=t.__h,u=n.__e=t.__e,n.__h=null,i=[u]),(a=yo.__b)&&a(n);try{e:if("function"==typeof _){if(m=n.props,g=(a=_.contextType)&&r[a.__c],w=a?g?g.props.value:a.__:r,t.__c?p=(l=n.__c=t.__c).__=l.__E:("prototype"in _&&_.prototype.render?n.__c=l=new _(m,w):(n.__c=l=new Do(m,w),l.constructor=_,l.render=Xo),g&&g.sub(l),l.props=m,l.state||(l.state={}),l.context=w,l.__n=r,$=l.__d=!0,l.__h=[]),null==l.__s&&(l.__s=l.state),null!=_.getDerivedStateFromProps&&(l.__s==l.state&&(l.__s=Ao({},l.__s)),Ao(l.__s,_.getDerivedStateFromProps(m,l.__s))),f=l.props,d=l.state,$)null==_.getDerivedStateFromProps&&null!=l.componentWillMount&&l.componentWillMount(),null!=l.componentDidMount&&l.__h.push(l.componentDidMount);else{if(null==_.getDerivedStateFromProps&&m!==f&&null!=l.componentWillReceiveProps&&l.componentWillReceiveProps(m,w),!l.__e&&null!=l.shouldComponentUpdate&&!1===l.shouldComponentUpdate(m,l.__s,w)||n.__v===t.__v){l.props=m,l.state=l.__s,n.__v!==t.__v&&(l.__d=!1),l.__v=n,n.__e=t.__e,n.__k=t.__k,n.__k.forEach((function(e){e&&(e.__=n)})),l.__h.length&&s.push(l);break e}null!=l.componentWillUpdate&&l.componentWillUpdate(m,l.__s,w),null!=l.componentDidUpdate&&l.__h.push((function(){l.componentDidUpdate(f,d,h)}))}l.context=w,l.props=m,l.state=l.__s,(a=yo.__r)&&a(n),l.__d=!1,l.__v=n,l.__P=e,a=l.render(l.props,l.state,l.context),l.state=l.__s,null!=l.getChildContext&&(r=Ao(Ao({},r),l.getChildContext())),$||null==l.getSnapshotBeforeUpdate||(h=l.getSnapshotBeforeUpdate(f,d)),y=null!=a&&a.type===Po&&null==a.key?a.props.children:a,Ro(e,Array.isArray(y)?y:[y],n,t,r,o,i,s,u,c),l.base=n.__e,n.__h=null,l.__h.length&&s.push(l),p&&(l.__E=l.__=null),l.__e=!1}else null==i&&n.__v===t.__v?(n.__k=t.__k,n.__e=t.__e):n.__e=function(e,n,t,r,o,i,s,u){var c,a,l,$=t.props,f=n.props,d=n.type,h=0;if("svg"===d&&(o=!0),null!=i)for(;h<i.length;h++)if((c=i[h])&&"setAttribute"in c==!!d&&(d?c.localName===d:3===c.nodeType)){e=c,i[h]=null;break}if(null==e){if(null===d)return document.createTextNode(f);e=o?document.createElementNS("http://www.w3.org/2000/svg",d):document.createElement(d,f.is&&f),i=null,u=!1}if(null===d)$===f||u&&e.data===f||(e.data=f);else{if(i=i&&wo.call(e.childNodes),a=($=t.props||So).dangerouslySetInnerHTML,l=f.dangerouslySetInnerHTML,!u){if(null!=i)for($={},h=0;h<e.attributes.length;h++)$[e.attributes[h].name]=e.attributes[h].value;(l||a)&&(l&&(a&&l.__html==a.__html||l.__html===e.innerHTML)||(e.innerHTML=l&&l.__html||""))}if(function(e,n,t,r,o){var i;for(i in t)"children"===i||"key"===i||i in n||Ho(e,i,null,t[i],r);for(i in n)o&&"function"!=typeof n[i]||"children"===i||"key"===i||"value"===i||"checked"===i||t[i]===n[i]||Ho(e,i,n[i],t[i],r)}(e,f,$,o,u),l)n.__k=[];else if(h=n.props.children,Ro(e,Array.isArray(h)?h:[h],n,t,r,o&&"foreignObject"!==d,i,s,i?i[0]:t.__k&&Oo(t,0),u),null!=i)for(h=i.length;h--;)null!=i[h]&&Io(i[h]);u||("value"in f&&void 0!==(h=f.value)&&(h!==e.value||"progress"===d&&!h||"option"===d&&h!==$.value)&&Ho(e,"value",h,$.value,!1),"checked"in f&&void 0!==(h=f.checked)&&h!==e.checked&&Ho(e,"checked",h,$.checked,!1))}return e}(t.__e,n,t,r,o,i,s,c);(a=yo.diffed)&&a(n)}catch(e){n.__v=null,(c||null!=i)&&(n.__e=u,n.__h=!!c,i[i.indexOf(u)]=null),yo.__e(e,n,t)}}function Vo(e,n){yo.__c&&yo.__c(n,e),e.some((function(n){try{e=n.__h,n.__h=[],e.some((function(e){e.call(n)}))}catch(e){yo.__e(e,n.__v)}}))}function Zo(e,n,t){try{"function"==typeof e?e(n):e.current=n}catch(e){yo.__e(e,t)}}function Jo(e,n,t){var r,o;if(yo.unmount&&yo.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||Zo(r,null,n)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){yo.__e(e,n)}r.base=r.__P=null}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&Jo(r[o],n,"function"!=typeof e.type);t||null==e.__e||Io(e.__e),e.__e=e.__d=void 0}function Xo(e,n,t){return this.constructor(e,t)}function Yo(e,n,t){var r,o,i;yo.__&&yo.__(e,n),o=(r="function"==typeof t)?null:t&&t.__k||n.__k,i=[],qo(n,e=(!r&&t||n).__k=No(Po,null,[e]),o||So,So,void 0!==n.ownerSVGElement,!r&&t?[t]:o?null:n.firstChild?wo.call(n.childNodes):null,i,!r&&t?t:o?o.__e:n.firstChild,r),Vo(i,e)}function Ko(e,n){Yo(e,n,Ko)}function Qo(e,n,t){var r,o,i,s=Ao({},e.props);for(i in n)"key"==i?r=n[i]:"ref"==i?o=n[i]:s[i]=n[i];return arguments.length>2&&(s.children=arguments.length>3?wo.call(arguments,2):t),To(e.type,s,r||e.key,o||e.ref,null)}wo=Eo.slice,yo={__e:function(e,n){for(var t,r,o;n=n.__;)if((t=n.__c)&&!t.__)try{if((r=t.constructor)&&null!=r.getDerivedStateFromError&&(t.setState(r.getDerivedStateFromError(e)),o=t.__d),null!=t.componentDidCatch&&(t.componentDidCatch(e),o=t.__d),o)return t.__E=t}catch(n){e=n}throw e}},_o=0,Do.prototype.setState=function(e,n){var t;t=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=Ao({},this.state),"function"==typeof e&&(e=e(Ao({},t),this.props)),e&&Ao(t,e),null!=e&&this.__v&&(n&&this.__h.push(n),Uo(this))},Do.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Uo(this))},Do.prototype.render=Po,vo=[],bo="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Bo.__r=0,xo=0;var ei,ni,ti,ri=0,oi=[],ii=yo.__b,si=yo.__r,ui=yo.diffed,ci=yo.__c,ai=yo.unmount;function li(e,n){yo.__h&&yo.__h(ni,e,ri||n),ri=0;var t=ni.__H||(ni.__H={__:[],__h:[]});return e>=t.__.length&&t.__.push({}),t.__[e]}function $i(e){return ri=1,fi(bi,e)}function fi(e,n,t){var r=li(ei++,2);return r.t=e,r.__c||(r.__=[t?t(n):bi(void 0,n),function(e){var n=r.t(r.__[0],e);r.__[0]!==n&&(r.__=[n,r.__[1]],r.__c.setState({}))}],r.__c=ni),r.__}function di(e,n){var t=li(ei++,3);!yo.__s&&vi(t.__H,n)&&(t.__=e,t.__H=n,ni.__H.__h.push(t))}function hi(e,n){var t=li(ei++,4);!yo.__s&&vi(t.__H,n)&&(t.__=e,t.__H=n,ni.__h.push(t))}function pi(e,n){var t=li(ei++,7);return vi(t.__H,n)&&(t.__=e(),t.__H=n,t.__h=e),t.__}function mi(e,n){yo.useDebugValue&&yo.useDebugValue(n?n(e):e)}function gi(){for(var e;e=oi.shift();)if(e.__P)try{e.__H.__h.forEach(yi),e.__H.__h.forEach(_i),e.__H.__h=[]}catch(n){e.__H.__h=[],yo.__e(n,e.__v)}}yo.__b=function(e){ni=null,ii&&ii(e)},yo.__r=function(e){si&&si(e),ei=0;var n=(ni=e.__c).__H;n&&(n.__h.forEach(yi),n.__h.forEach(_i),n.__h=[])},yo.diffed=function(e){ui&&ui(e);var n=e.__c;n&&n.__H&&n.__H.__h.length&&(1!==oi.push(n)&&ti===yo.requestAnimationFrame||((ti=yo.requestAnimationFrame)||function(e){var n,t=function(){clearTimeout(r),wi&&cancelAnimationFrame(n),setTimeout(e)},r=setTimeout(t,100);wi&&(n=requestAnimationFrame(t))})(gi)),ni=null},yo.__c=function(e,n){n.some((function(e){try{e.__h.forEach(yi),e.__h=e.__h.filter((function(e){return!e.__||_i(e)}))}catch(t){n.some((function(e){e.__h&&(e.__h=[])})),n=[],yo.__e(t,e.__v)}})),ci&&ci(e,n)},yo.unmount=function(e){ai&&ai(e);var n,t=e.__c;t&&t.__H&&(t.__H.__.forEach((function(e){try{yi(e)}catch(e){n=e}})),n&&yo.__e(n,t.__v))};var wi="function"==typeof requestAnimationFrame;function yi(e){var n=ni,t=e.__c;"function"==typeof t&&(e.__c=void 0,t()),ni=n}function _i(e){var n=ni;e.__c=e.__(),ni=n}function vi(e,n){return!e||e.length!==n.length||n.some((function(n,t){return n!==e[t]}))}function bi(e,n){return"function"==typeof n?n(e):n}function Ci(e,n){for(var t in n)e[t]=n[t];return e}function xi(e,n){for(var t in e)if("__source"!==t&&!(t in n))return!0;for(var r in n)if("__source"!==r&&e[r]!==n[r])return!0;return!1}function Si(e){this.props=e}(Si.prototype=new Do).isPureReactComponent=!0,Si.prototype.shouldComponentUpdate=function(e,n){return xi(this.props,e)||xi(this.state,n)};var Ei=yo.__b;yo.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Ei&&Ei(e)};var ki="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Ai(e){function n(n,t){var r=Ci({},n);return delete r.ref,e(r,(t=n.ref||t)&&("object"!=typeof t||"current"in t)?t:null)}return n.$$typeof=ki,n.render=n,n.prototype.isReactComponent=n.__f=!0,n.displayName="ForwardRef("+(e.displayName||e.name)+")",n}var Ii=function(e,n){return null==e?null:Go(Go(e).map(n))},Ni={map:Ii,forEach:Ii,count:function(e){return e?Go(e).length:0},only:function(e){var n=Go(e);if(1!==n.length)throw"Children.only";return n[0]},toArray:Go},Ti=yo.__e;yo.__e=function(e,n,t){if(e.then)for(var r,o=n;o=o.__;)if((r=o.__c)&&r.__c)return null==n.__e&&(n.__e=t.__e,n.__k=t.__k),r.__c(e,n);Ti(e,n,t)};var Pi=yo.unmount;function Di(){this.__u=0,this.t=null,this.__b=null}function Oi(e){var n=e.__.__c;return n&&n.__e&&n.__e(e)}function Mi(){this.u=null,this.o=null}yo.unmount=function(e){var n=e.__c;n&&n.__R&&n.__R(),n&&!0===e.__h&&(e.type=null),Pi&&Pi(e)},(Di.prototype=new Do).__c=function(e,n){var t=n.__c,r=this;null==r.t&&(r.t=[]),r.t.push(t);var o=Oi(r.__v),i=!1,s=function(){i||(i=!0,t.__R=null,o?o(u):u())};t.__R=s;var u=function(){if(!--r.__u){if(r.state.__e){var e=r.state.__e;r.__v.__k[0]=function e(n,t,r){return n&&(n.__v=null,n.__k=n.__k&&n.__k.map((function(n){return e(n,t,r)})),n.__c&&n.__c.__P===t&&(n.__e&&r.insertBefore(n.__e,n.__d),n.__c.__e=!0,n.__c.__P=r)),n}(e,e.__c.__P,e.__c.__O)}var n;for(r.setState({__e:r.__b=null});n=r.t.pop();)n.forceUpdate()}},c=!0===n.__h;r.__u++||c||r.setState({__e:r.__b=r.__v.__k[0]}),e.then(s,s)},Di.prototype.componentWillUnmount=function(){this.t=[]},Di.prototype.render=function(e,n){if(this.__b){if(this.__v.__k){var t=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=function e(n,t,r){return n&&(n.__c&&n.__c.__H&&(n.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),n.__c.__H=null),null!=(n=Ci({},n)).__c&&(n.__c.__P===r&&(n.__c.__P=t),n.__c=null),n.__k=n.__k&&n.__k.map((function(n){return e(n,t,r)}))),n}(this.__b,t,r.__O=r.__P)}this.__b=null}var o=n.__e&&No(Po,null,e.fallback);return o&&(o.__h=null),[No(Po,null,n.__e?null:e.children),o]};var Ui=function(e,n,t){if(++t[1]===t[0]&&e.o.delete(n),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(t=e.u;t;){for(;t.length>3;)t.pop()();if(t[1]<t[0])break;e.u=t=t[2]}};function Bi(e){return this.getChildContext=function(){return e.context},e.children}function Ri(e){var n=this,t=e.i;n.componentWillUnmount=function(){Yo(null,n.l),n.l=null,n.i=null},n.i&&n.i!==t&&n.componentWillUnmount(),e.__v?(n.l||(n.i=t,n.l={nodeType:1,parentNode:t,childNodes:[],appendChild:function(e){this.childNodes.push(e),n.i.appendChild(e)},insertBefore:function(e,t){this.childNodes.push(e),n.i.appendChild(e)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),n.i.removeChild(e)}}),Yo(No(Bi,{context:n.context},e.__v),n.l)):n.l&&n.componentWillUnmount()}(Mi.prototype=new Do).__e=function(e){var n=this,t=Oi(n.__v),r=n.o.get(e);return r[0]++,function(o){var i=function(){n.props.revealOrder?(r.push(o),Ui(n,e,r)):o()};t?t(i):i()}},Mi.prototype.render=function(e){this.u=null,this.o=new Map;var n=Go(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&n.reverse();for(var t=n.length;t--;)this.o.set(n[t],this.u=[1,0,this.u]);return e.children},Mi.prototype.componentDidUpdate=Mi.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(n,t){Ui(e,t,n)}))};var Li="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,Gi=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,ji="undefined"!=typeof document,Fi=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(e)};Do.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(Do.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(n){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:n})}})}));var Hi=yo.event;function Wi(){}function zi(){return this.cancelBubble}function qi(){return this.defaultPrevented}yo.event=function(e){return Hi&&(e=Hi(e)),e.persist=Wi,e.isPropagationStopped=zi,e.isDefaultPrevented=qi,e.nativeEvent=e};var Vi,Zi={configurable:!0,get:function(){return this.class}},Ji=yo.vnode;yo.vnode=function(e){var n=e.type,t=e.props,r=t;if("string"==typeof n){var o=-1===n.indexOf("-");for(var i in r={},t){var s=t[i];ji&&"children"===i&&"noscript"===n||"value"===i&&"defaultValue"in t&&null==s||("defaultValue"===i&&"value"in t&&null==t.value?i="value":"download"===i&&!0===s?s="":/ondoubleclick/i.test(i)?i="ondblclick":/^onchange(textarea|input)/i.test(i+n)&&!Fi(t.type)?i="oninput":/^onfocus$/i.test(i)?i="onfocusin":/^onblur$/i.test(i)?i="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(i)?i=i.toLowerCase():o&&Gi.test(i)?i=i.replace(/[A-Z0-9]/,"-$&").toLowerCase():null===s&&(s=void 0),r[i]=s)}"select"==n&&r.multiple&&Array.isArray(r.value)&&(r.value=Go(t.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==n&&null!=r.defaultValue&&(r.value=Go(t.children).forEach((function(e){e.props.selected=r.multiple?-1!=r.defaultValue.indexOf(e.props.value):r.defaultValue==e.props.value}))),e.props=r,t.class!=t.className&&(Zi.enumerable="className"in t,null!=t.className&&(r.class=t.className),Object.defineProperty(r,"className",Zi))}e.$$typeof=Li,Ji&&Ji(e)};var Xi=yo.__r;yo.__r=function(e){Xi&&Xi(e),Vi=e.__c};function Yi(e){return!!e&&e.$$typeof===Li}const Ki={useState:$i,useReducer:fi,useEffect:di,useLayoutEffect:hi,useRef:function(e){return ri=5,pi((function(){return{current:e}}),[])},useImperativeHandle:function(e,n,t){ri=6,hi((function(){"function"==typeof e?e(n()):e&&(e.current=n())}),null==t?t:t.concat(e))},useMemo:pi,useCallback:function(e,n){return ri=8,pi((function(){return e}),n)},useContext:function(e){var n=ni.context[e.__c],t=li(ei++,9);return t.c=e,n?(null==t.__&&(t.__=!0,n.sub(ni)),n.props.value):e.__},useDebugValue:mi,version:"17.0.2",Children:Ni,render:function(e,n,t){return null==n.__k&&(n.textContent=""),Yo(e,n),"function"==typeof t&&t(),e?e.__c:null},hydrate:function(e,n,t){return Ko(e,n),"function"==typeof t&&t(),e?e.__c:null},unmountComponentAtNode:function(e){return!!e.__k&&(Yo(null,e),!0)},createPortal:function(e,n){return No(Ri,{__v:e,i:n})},createElement:No,createContext:function(e,n){var t={__c:n="__cC"+xo++,__:e,Consumer:function(e,n){return e.children(n)},Provider:function(e){var t,r;return this.getChildContext||(t=[],(r={})[n]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&t.some(Uo)},this.sub=function(e){t.push(e);var n=e.componentWillUnmount;e.componentWillUnmount=function(){t.splice(t.indexOf(e),1),n&&n.call(e)}}),e.children}};return t.Provider.__=t.Consumer.contextType=t},createFactory:function(e){return No.bind(null,e)},cloneElement:function(e){return Yi(e)?Qo.apply(null,arguments):e},createRef:function(){return{current:null}},Fragment:Po,isValidElement:Yi,findDOMNode:function(e){return e&&(e.base||1===e.nodeType&&e)||null},Component:Do,PureComponent:Si,memo:function(e,n){function t(e){var t=this.props.ref,r=t==e.ref;return!r&&t&&(t.call?t(null):t.current=null),n?!n(this.props,e)||!r:xi(this.props,e)}function r(n){return this.shouldComponentUpdate=t,No(e,n)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r},forwardRef:Ai,flushSync:function(e,n){return e(n)},unstable_batchedUpdates:function(e,n){return e(n)},StrictMode:Po,Suspense:Di,SuspenseList:Mi,lazy:function(e){var n,t,r;function o(o){if(n||(n=e()).then((function(e){t=e.default||e}),(function(e){r=e})),r)throw r;if(!t)throw n;return No(t,o)}return o.displayName="Lazy",o.__f=!0,o},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentDispatcher:{current:{readContext:function(e){return Vi.__n[e.__c].props.value}}}}},Qi=e=>{di(()=>{const n=e();return()=>{n.Dispose()}})},es=(e,n)=>{di(()=>{const n=e();return()=>{n.Dispose()}},n)},ns=e=>{hi(()=>{const n=e();return()=>{n.Dispose()}})};function ts(e,n,t,r){const o=Ki.memo(e,I(2,jn(T(2,t),null)));return Or(n=>{e.displayName=n},Gn(n)),e=>{const n=rs(r,e);return Ki.createElement(o,n)}}function rs(e,n){if(null==e)return n;{const t=e;return n.key=t(n),n}}function os(e){return{Dispose(){e()}}}function is(e,n){es(e,n)}function ss(e){cs(e,[])}function us(e){is(e,[])}function cs(e,n){es(n=>(e(),os(()=>{})),n)}function as(e,n){const t=jn(n,[]);return Ki.useCallback(e,t)}function ls(e){return Ki.useRef(e)}function $s(e){const n=ls(e),t=as(e=>n.current(e),[]);var r;return r=()=>{n.current=e},ns(e=>(r(),os(()=>{}))),t}function fs(e){return Ki.useState(e)}class ds{constructor(e=!1){this._id=0,this._cancelled=e,this._listeners=new Map}get isCancelled(){return this._cancelled}cancel(){if(!this._cancelled){this._cancelled=!0;for(const[,e]of this._listeners)e()}}addListener(e){const n=this._id;return this._listeners.set(this._id++,e),n}removeListener(e){return this._listeners.delete(e)}register(e,n){const t=this,r=this.addListener(null==n?e:()=>e(n));return{Dispose(){t.removeListener(r)}}}Dispose(){}}class hs extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,hs.prototype)}}class ps{constructor(){this.callCount=0}static get maxTrampolineCallCount(){return 2e3}incrementAndCheck(){return this.callCount++>ps.maxTrampolineCallCount}hijack(e){this.callCount=0,setTimeout(e,0)}}function ms(e){return n=>{if(n.cancelToken.isCancelled)n.onCancel(new hs);else if(n.trampoline.incrementAndCheck())n.trampoline.hijack(()=>{try{e(n)}catch(e){n.onError(F(e))}});else try{e(n)}catch(e){n.onError(F(e))}}}function gs(e,n){return ms(t=>{e({onSuccess:e=>{try{n(e)(t)}catch(e){t.onError(F(e))}},onError:t.onError,onCancel:t.onCancel,cancelToken:t.cancelToken,trampoline:t.trampoline})})}function ws(e){return ms(n=>n.onSuccess(e))}const ys=new class{Bind(e,n){return gs(e,n)}Combine(e,n){return this.Bind(e,()=>n)}Delay(e){return ms(n=>e()(n))}For(e,n){const t=e[Symbol.iterator]();let r=t.next();return this.While(()=>!r.done,this.Delay(()=>{const e=n(r.value);return r=t.next(),e}))}Return(e){return ws(e)}ReturnFrom(e){return e}TryFinally(e,n){return ms(t=>{e({onSuccess:e=>{n(),t.onSuccess(e)},onError:e=>{n(),t.onError(e)},onCancel:e=>{n(),t.onCancel(e)},cancelToken:t.cancelToken,trampoline:t.trampoline})})}TryWith(e,n){return ms(t=>{e({onSuccess:t.onSuccess,onCancel:t.onCancel,cancelToken:t.cancelToken,trampoline:t.trampoline,onError:e=>{try{n(e)(t)}catch(e){t.onError(F(e))}}})})}Using(e,n){return this.TryFinally(n(e),()=>e.Dispose())}While(e,n){return e()?this.Bind(n,()=>this.While(e,n)):this.Return(void 0)}Zero(){return ms(e=>e.onSuccess(void 0))}};function _s(e){}function vs(e){const n=new ds("boolean"==typeof e&&e);return"number"==typeof e&&setTimeout(()=>{n.cancel()},e),n}function bs(e){e.cancel()}function Cs(e){return null!=e&&e.isCancelled}const xs=new ds;function Ss(e){return ms(n=>e([n.onSuccess,n.onError,n.onCancel]))}function Es(e,n){return function(e,n){return ks(e,n)}(e,n)}function ks(e,n,t,r,o){"function"!=typeof n&&(o=n,n=void 0);const i=new ps;e({onSuccess:n||_s,onError:t||_s,onCancel:r||_s,cancelToken:o||xs,trampoline:i})}class As{constructor(e,n){this.k=e,this.v=n}}function Is(e,n){return new As(e,n)}function Ns(e){return e.k}function Ts(e){return e.v}class Ps extends As{constructor(e,n,t,r,o){super(e,n),this.left=t,this.right=r,this.h=0|o}}function Ds(e,n,t,r,o){return new Ps(e,n,t,r,o)}function Os(e){return e.left}function Ms(e){return e.right}function Us(e){return e.h}function Bs(e){return function e(n,t){e:for(;;){const r=n,o=t;if(null!=o){const i=o;if(i instanceof Ps){n=e(r+1,Os(i)),t=Ms(i);continue e}return r+1|0}return 0|r}}(0,e)}function Rs(e,n,t,r){let o;if(null!=e){const n=e;o=n instanceof Ps?Us(n):1}else o=0;let i;if(null!=r){const e=r;i=e instanceof Ps?Us(e):1}else i=0;const s=0|(o<i?i:o);return 0===s?Is(n,t):Ds(n,t,e,r,s+1)}function Ls(e,n,t,r){let o,i,s,u,c;if(null!=e){const n=e;c=n instanceof Ps?Us(n):1}else c=0;let a;if(null!=r){const e=r;a=e instanceof Ps?Us(e):1}else a=0;if(a>c+2){const s=Ln(r);if(s instanceof Ps){if(o=Os(s),(null!=o?(i=o,i instanceof Ps?Us(i):1):0)>c+1){const r=Ln(Os(s));if(r instanceof Ps)return Rs(Rs(e,n,t,Os(r)),Ns(r),Ts(r),Rs(Ms(r),Ns(s),Ts(s),Ms(s)));throw new Error("internal error: Map.rebalance")}return Rs(Rs(e,n,t,Os(s)),Ns(s),Ts(s),Ms(s))}throw new Error("internal error: Map.rebalance")}if(c>a+2){const o=Ln(e);if(o instanceof Ps){if(s=Ms(o),(null!=s?(u=s,u instanceof Ps?Us(u):1):0)>a+1){const e=Ln(Ms(o));if(e instanceof Ps)return Rs(Rs(Os(o),Ns(o),Ts(o),Os(e)),Ns(e),Ts(e),Rs(Ms(e),n,t,r));throw new Error("internal error: Map.rebalance")}return Rs(Os(o),Ns(o),Ts(o),Rs(Ms(o),n,t,r))}throw new Error("internal error: Map.rebalance")}return Rs(e,n,t,r)}function Gs(e,n,t,r){if(null!=r){const o=r,i=0|e.Compare(n,Ns(o));return o instanceof Ps?i<0?Ls(Gs(e,n,t,Os(o)),Ns(o),Ts(o),Ms(o)):0===i?Ds(n,t,Os(o),Ms(o),Us(o)):Ls(Os(o),Ns(o),Ts(o),Gs(e,n,t,Ms(o))):i<0?Ds(n,t,void 0,r,2):0===i?Is(n,t):Ds(n,t,r,void 0,2)}return Is(n,t)}function js(e,n,t){e:for(;;){const r=e,o=n,i=t;if(null!=i){const s=i,u=0|r.Compare(o,Ns(s));if(0===u)return Rn(Ts(s));if(s instanceof Ps){e=r,n=o,t=u<0?Os(s):Ms(s);continue e}return}return}}function Fs(e,n){!function e(n,t){e:for(;;){const r=n,o=t;if(null!=o){const i=o;if(i instanceof Ps){e(r,Os(i)),r(Ns(i),Ts(i)),n=r,t=Ms(i);continue e}r(Ns(i),Ts(i))}break}}(e,n)}function Hs(e,n){return function e(n,t){if(null!=t){const r=t;if(r instanceof Ps){const t=e(n,Os(r)),o=n(Ns(r),Ts(r)),i=e(n,Ms(r));return Ds(Ns(r),o,t,i,Us(r))}return Is(Ns(r),n(Ns(r),Ts(r)))}}(e,n)}function Ws(e,n,t){let r=t;Fs((e,t)=>{n[r]=[e,t],r=r+1|0},e)}function zs(e,n){let t=void 0;for(let r=0;r<=n.length-1;r++){const o=n[r];t=Gs(e,o[0],o[1],t)}return t}function qs(e,n){if(r(n))return zs(e,n);if(n instanceof Bt)return function(e,n){return Qt((n,t)=>Gs(e,t[0],t[1],n),void 0,n)}(e,n);{const t=a(n);try{return function(e,n,t){for(;;){const r=e,o=n,i=t;if(!i["System.Collections.IEnumerator.MoveNext"]())return o;{const s=i["System.Collections.Generic.IEnumerator`1.get_Current"]();e=r,n=Gs(r,s[0],s[1],o),t=i}}}(e,void 0,t)}finally{s(t)}}}class Vs extends L{constructor(e,n){super(),this.stack=e,this.started=n}}function Zs(e){e:for(;;){const n=e;if(Zt(n))return zt();{const t=Yt(n),r=Xt(n);if(null!=r){const o=r;if(o instanceof Ps){e=tr([Os(o),Is(Ns(o),Ts(o)),Ms(o)],t);continue e}return n}e=t;continue e}}}function Js(e){return new Vs(Zs(Vt(e)),!1)}function Xs(e){if(e.started){const n=e.stack;if(Zt(n))return function(){throw new Error("enumeration already finished")}();if(null!=Xt(n)){const e=Xt(n);if(e instanceof Ps)throw new Error("Please report error: Map iterator, unexpected stack for current");return[Ns(e),Ts(e)]}throw new Error("Please report error: Map iterator, unexpected stack for current")}return function(){throw new Error("enumeration not started")}()}function Ys(e){let n=Js(e);return{"System.Collections.Generic.IEnumerator`1.get_Current":()=>Xs(n),"System.Collections.IEnumerator.get_Current":()=>Xs(n),"System.Collections.IEnumerator.MoveNext":()=>function(e){if(e.started){const n=e.stack;if(Zt(n))return!1;if(null!=Xt(n)){if(Xt(n)instanceof Ps)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=Zs(Yt(n)),!Zt(e.stack)}throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}return e.started=!0,!Zt(e.stack)}(n),"System.Collections.IEnumerator.Reset"(){n=Js(e)},Dispose(){}}}class Ks{constructor(e,n){this.comparer=e,this.tree=n}GetHashCode(){return 0|function(e){const n=(e,n)=>(e<<1)+n+631;let t=0;const r=a(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const e=r["System.Collections.Generic.IEnumerator`1.get_Current"]();t=0|n(t,w(e[0])),t=0|n(t,w(e[1]))}}finally{s(r)}return 0|t}(this)}Equals(e){if(!(e instanceof Ks))return!1;{const n=a(this);try{const t=a(e);try{const e=()=>{const r=n["System.Collections.IEnumerator.MoveNext"]();if(r===t["System.Collections.IEnumerator.MoveNext"]()){if(r){const r=n["System.Collections.Generic.IEnumerator`1.get_Current"](),o=t["System.Collections.Generic.IEnumerator`1.get_Current"]();return!(!v(r[0],o[0])||!v(r[1],o[1]))&&e()}return!0}return!1};return e()}finally{s(t)}}finally{s(n)}}}toString(){return"map ["+pt("; ",Mr(e=>ft("({0}, {1})",e[0],e[1]),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(e){return Array.from(this)}GetEnumerator(){return Ys(this.tree)}[Symbol.iterator](){return l(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return Ys(this.tree)}CompareTo(e){const n=this;if(e instanceof Ks)return 0|function(e,n,t){const r=vr(n);try{const n=vr(t);try{let t=0,o=r["System.Collections.IEnumerator.MoveNext"](),i=n["System.Collections.IEnumerator.MoveNext"]();for(;0===t&&o&&i;)t=0|e(r["System.Collections.Generic.IEnumerator`1.get_Current"](),n["System.Collections.Generic.IEnumerator`1.get_Current"]()),0===t&&(o=r["System.Collections.IEnumerator.MoveNext"](),i=n["System.Collections.IEnumerator.MoveNext"]());return 0|(0!==t?t:o?1:i?-1:0)}finally{s(n)}}finally{s(r)}}((e,t)=>{const r=0|n.comparer.Compare(e[0],t[0]);return 0|(0!==r?r:S(e[1],t[1]))},n,e);throw new Error("not comparable\\nParameter name: obj")}"System.Collections.Generic.ICollection`1.Add2B595"(e){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Clear"(){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Remove2B595"(e){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Contains2B595"(e){return ru(this,e[0])&&v(nu(this,e[0]),e[1])}"System.Collections.Generic.ICollection`1.CopyToZ2E171D71"(e,n){Ws(this.tree,e,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|tu(this)}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return 0|tu(this)}get size(){return 0|tu(this)}clear(){throw new Error("Map cannot be mutated")}delete(e){throw new Error("Map cannot be mutated")}entries(){return Mr(e=>[e[0],e[1]],this)}get(e){return nu(this,e)}has(e){return ru(this,e)}keys(){return Mr(e=>e[0],this)}set(e,n){throw new Error("Map cannot be mutated")}values(){return Mr(e=>e[1],this)}forEach(e,n){const t=this;Or(n=>{e(n[1],n[0],t)},t)}}function Qs(e,n){return new Ks(e,n)}function eu(e){const n=fr();return Qs(n,qs(n,e))}function nu(e,n){return function(e,n,t){const r=js(e,n,t);if(null==r)throw new Error;return Ln(r)}(e.comparer,n,e.tree)}function tu(e){return Bs(e.tree)}function ru(e,n){return function(e,n,t){e:for(;;){const r=e,o=n,i=t;if(null!=i){const s=i,u=0|r.Compare(o,Ns(s));if(s instanceof Ps){if(u<0){e=r,n=o,t=Os(s);continue e}if(0===u)return!0;e=r,n=o,t=Ms(s);continue e}return 0===u}return!1}}(e.comparer,n,e.tree)}function ou(e,n,t){return function(e,n,t){return Qs(e.comparer,Gs(e.comparer,n,t,e.tree))}(t,e,n)}function iu(e,n){return function(e,n){return js(e.comparer,n,e.tree)}(n,e)}function su(e,n){return r=e,Qs((t=n).comparer,Hs(r,t.tree));var t,r}function uu(e){return eu(e)}function cu(){return Ks.empty}Ks.empty=Qs(fr(),void 0);class au extends D{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["HasNotStartedYet","InProgress","Resolved","Failed"]}}function lu(e){return bn("Feliz.UseDeferred.Deferred`1",[e],au,()=>[[],[],[["Item",e]],[["Item",_n("System.Exception")]]])}function $u(e,n){const t=ls(vs());return us(()=>os(()=>{bs(t.current)})),$s(r=>{Cs(t.current)||Es(ys.Delay(()=>ys.TryWith(ys.Delay(()=>(n(new au(1)),ys.Bind(e(r),e=>(n(new au(2,e)),ys.Zero())))),e=>(n(new au(3,e)),ys.Zero()))),t.current)})}function fu(){return zt()}function du(e){return Vt(e)}function hu(e,n){return 0===n.indexOf(e)?n:void 0}function pu(e,n){return function(e,n){const t=e.lastIndexOf(n);return t>=0&&t===e.length-n.length}(n,e)?n:void 0}function mu(e,n){return function(e){return 1===e?e=>{let n,t,r,o,i,s;return n=hu("/",e),null!=n?(t=n,"#"+t):(r=hu("#/",e),null!=r?(o=r,o):(i=hu("#",e),null!=i?(s=i,"#/"+yt(s,1,s.length-1)):"#/"+e))}:e=>{let n,t;return n=hu("/",e),null!=n?(t=n,t):"/"+e}}(n)(pt("/",ur(e=>e.indexOf("?")>=0||0===e.indexOf("#")||0===e.indexOf("/")?e:encodeURIComponent(e),e)))}function gu(e,n,t){1===n?history.pushState(void 0,"",mu(e,t)):history.replaceState(void 0,"",mu(e,t));const r=document.createEvent("CustomEvent");r.initEvent("CUSTOM_NAVIGATION_EVENT",!0,!0),window.dispatchEvent(r)}function wu(e,n){return function(e,n){let t,r;const o=Lt();let i=o,s=n;for(;!jt(s);){let n=e(Ht(s));for(;!jt(n);)t=i,r=new Bt(Ht(n),void 0),t.tail=r,i=r,n=Wt(n);s=Wt(s)}const u=i,c=Lt();return u.tail=c,Wt(o)}(e=>{if(ht(e))return zt();{const n=function(e,...n){return 0===n.length?e.trimEnd():e.replace(new RegExp("["+rt(n.join(""))+"]+$"),"")}(e,"#");if("?"===n)return zt();if(null!=hu("?",n))return Vt(n);{const e=n.split("?");if(Mt((e,n)=>e===n,e,null)||1!==e.length){if(Mt((e,n)=>e===n,e,null)||2!==e.length)return zt();if(""===e[1]){const n=e[0];return Vt(decodeURIComponent(n))}{const n=e[0],t=e[1];return rr([decodeURIComponent(n),"?"+t])}}{const n=e[0];return Vt(decodeURIComponent(n))}}}},rr(wt(null!=hu("#",e)?yt(e,1,e.length-1):1===n&&(null!=pu("#",e)||null!=pu("#/",e))?"":e,["/"],null,0)))}const yu=ts(e=>{const n=$s(n=>{const t=jn(e.onUrlChanged,e=>{});!function(e,n,t){n(wu(2===e?window.location.pathname+window.location.search:window.location.hash,e))}(jn(e.hashMode,1),t)});us(()=>(window.navigator.userAgent.indexOf("Trident")>=0||window.navigator.userAgent.indexOf("MSIE")>=0?window.addEventListener("hashchange",n):window.addEventListener("popstate",n),window.addEventListener("CUSTOM_NAVIGATION_EVENT",n),os(()=>{window.navigator.userAgent.indexOf("Trident")>=0||window.navigator.userAgent.indexOf("MSIE")>=0?window.removeEventListener("hashchange",n):window.removeEventListener("popstate",n),window.removeEventListener("CUSTOM_NAVIGATION_EVENT",n)}))),ss(()=>{const e=document.createEvent("CustomEvent");e.initEvent("CUSTOM_NAVIGATION_EVENT",!0,!0),window.dispatchEvent(e)});const t=e.application;return null==t?null:t},void 0,vu,_u);var _u,vu;class bu extends D{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["AccountId","Name"]}}class Cu extends D{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Asc","Desc"]}}function xu(e){return 0===e.tag?new Cu(1):new Cu(0)}class Su extends D{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Sort"]}}const Eu=new Su(0,new bu(1),new Cu(0));function ku(e){return e.fields[0]}function Au(e){return e.fields[1]}function Iu(e,n){const t=n.fields[1],r=[e,n.fields[0]];return 1===r[0].tag?1===r[1].tag?new Su(0,new bu(1),xu(t)):new Su(0,new bu(1),new Cu(0)):0===r[1].tag?new Su(0,new bu(0),xu(t)):new Su(0,new bu(0),new Cu(0))}class Nu extends D{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["SearchText"]}}const Tu=new Nu(0,"");function Pu(e){return e.fields[0]}class Du extends D{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["PageSize"]}}function Ou(e){return e.fields[0]}class Mu extends L{constructor(e,n,t){super(),this.SearchText=e,this.Sort=n,this.PageSize=t}}class Uu extends L{constructor(e,n,t,r,o){super(),this.StreamId=e,this.Name=n,this.Website=t,this.ContactDetails=r,this.Notes=o}}function Bu(){return vn("AccountRegistry.AdminUI.Types.Partner",[],Uu,()=>[["StreamId",Et()],["Name",bn("BasicModels.Name",[],Gr,()=>[[["Item",En]]])],["Website",bn("BasicModels.Website",[],jr,()=>[[["Item",En]]])],["ContactDetails",vn("BasicModels.ContactDetails",[],qr,()=>[["FirstName",bn("BasicModels.FirstName",[],Fr,()=>[[["Item",En]]])],["LastName",bn("BasicModels.LastName",[],Hr,()=>[[["Item",En]]])],["Email",bn("BasicModels.Email",[],Wr,()=>[[["Item",En]]])],["MobilePhone",bn("BasicModels.MobilePhone",[],zr,()=>[[["Item",En]]])]])],["Notes",Cn(bn("BasicModels.Notes",[],Vr,()=>[[["Item",En]]]))]])}function Ru(e){const n=function(e){const n=Lr("Name",e);return 1===n.tag?new Hn(1,n.fields[0]):new Hn(0,new Gr(0,n.fields[0]))}(e.Name);if(1===n.tag)return new Hn(1,n.fields[0]);{const r=function(e){const n=Lr("Website",e);return 1===n.tag?new Hn(1,n.fields[0]):new Hn(0,new jr(0,n.fields[0]))}(e.Website);if(1===r.tag)return new Hn(1,r.fields[0]);{const o=so(e.ContactDetails);return 1===o.tag?new Hn(1,o.fields[0]):new Hn(0,new Uu(new St(0,e.StreamId),n.fields[0],r.fields[0],o.fields[0],null==(t=e.Notes)?void 0:new Vr(0,t)))}}var t}class Lu extends D{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["PartnerList","Partner","PartnerAccountList","PartnerSuperConfiguration","PartnerBenefitsOnboardingConfiguration","PartnerBankDetailsConfiguration","Account","AccountProfilesDirectory","AccountSuperConfiguration","AccountBenefitsOnboardingConfiguration","AccountBankDetailsConfiguration","NotFound"]}}function Gu(){return bn("AccountRegistry.AdminUI.Types.Page",[],Lu,()=>[[],[["Item",Jr()]],[["Item",Jr()]],[["Item",Jr()]],[["Item",Jr()]],[["Item",Jr()]],[["Item1",Jr()],["Item2",Yr()]],[["Item1",Jr()],["Item2",Yr()]],[["Item1",Jr()],["Item2",Yr()]],[["Item1",Jr()],["Item2",Yr()]],[["Item1",Jr()],["Item2",Yr()]],[]])}function ju(e){let n,t,r,o,i,s,u,c,a,l,$,f,d,h,p,m;switch(Zt(e)?n=11:"account-registry"===Xt(e)?Zt(Yt(e))?n=11:"partners"===Xt(Yt(e))?Zt(Yt(Yt(e)))?n=0:Zt(Yt(Yt(Yt(e))))?(n=1,t=Xt(Yt(Yt(e)))):"accounts"===Xt(Yt(Yt(Yt(e))))?Zt(Yt(Yt(Yt(Yt(e)))))?(n=2,r=Xt(Yt(Yt(e)))):Zt(Yt(Yt(Yt(Yt(Yt(e))))))?(n=6,u=Xt(Yt(Yt(Yt(Yt(e))))),c=Xt(Yt(Yt(e)))):"directory"===Xt(Yt(Yt(Yt(Yt(Yt(e))))))?Zt(Yt(Yt(Yt(Yt(Yt(Yt(e)))))))?(n=7,a=Xt(Yt(Yt(Yt(Yt(e))))),l=Xt(Yt(Yt(e)))):n=11:"super-configuration"===Xt(Yt(Yt(Yt(Yt(Yt(e))))))?Zt(Yt(Yt(Yt(Yt(Yt(Yt(e)))))))?(n=8,$=Xt(Yt(Yt(Yt(Yt(e))))),f=Xt(Yt(Yt(e)))):n=11:"benefits-onboarding-configuration"===Xt(Yt(Yt(Yt(Yt(Yt(e))))))?Zt(Yt(Yt(Yt(Yt(Yt(Yt(e)))))))?(n=9,d=Xt(Yt(Yt(Yt(Yt(e))))),h=Xt(Yt(Yt(e)))):n=11:"bank-details-configuration"===Xt(Yt(Yt(Yt(Yt(Yt(e))))))&&Zt(Yt(Yt(Yt(Yt(Yt(Yt(e)))))))?(n=10,p=Xt(Yt(Yt(Yt(Yt(e))))),m=Xt(Yt(Yt(e)))):n=11:"super-configuration"===Xt(Yt(Yt(Yt(e))))?Zt(Yt(Yt(Yt(Yt(e)))))?(n=3,o=Xt(Yt(Yt(e)))):n=11:"benefits-onboarding-configuration"===Xt(Yt(Yt(Yt(e))))?Zt(Yt(Yt(Yt(Yt(e)))))?(n=4,i=Xt(Yt(Yt(e)))):n=11:"bank-details-configuration"===Xt(Yt(Yt(Yt(e))))&&Zt(Yt(Yt(Yt(Yt(e)))))?(n=5,s=Xt(Yt(Yt(e)))):n=11:n=11:n=11,n){case 0:return new Lu(0);case 1:return new Lu(1,new Zr(0,t));case 2:return new Lu(2,new Zr(0,r));case 3:return new Lu(3,new Zr(0,o));case 4:return new Lu(4,new Zr(0,i));case 5:return new Lu(5,new Zr(0,s));case 6:return new Lu(6,new Zr(0,c),new Xr(0,u));case 7:return new Lu(7,new Zr(0,l),new Xr(0,a));case 8:return new Lu(8,new Zr(0,f),new Xr(0,$));case 9:return new Lu(9,new Zr(0,h),new Xr(0,d));case 10:return new Lu(10,new Zr(0,m),new Xr(0,p));case 11:return new Lu(11)}}function Fu(e){switch(e.tag){case 1:return rr(["account-registry","partners",uo(e.fields[0])]);case 2:return rr(["account-registry","partners",uo(e.fields[0]),"accounts"]);case 3:return rr(["account-registry","partners",uo(e.fields[0]),"super-configuration"]);case 4:return rr(["account-registry","partners",uo(e.fields[0]),"benefits-onboarding-configuration"]);case 5:return rr(["account-registry","partners",uo(e.fields[0]),"bank-details-configuration"]);case 6:return rr(["account-registry","partners",uo(e.fields[0]),"accounts",co(e.fields[1])]);case 7:return rr(["account-registry","partners",uo(e.fields[0]),"accounts",co(e.fields[1]),"directory"]);case 8:return rr(["account-registry","partners",uo(e.fields[0]),"accounts",co(e.fields[1]),"super-configuration"]);case 9:return rr(["account-registry","partners",uo(e.fields[0]),"accounts",co(e.fields[1]),"benefits-onboarding-configuration"]);case 10:return rr(["account-registry","partners",uo(e.fields[0]),"accounts",co(e.fields[1]),"bank-details-configuration"]);default:return rr(["account-registry","partners"])}}function Hu(e){switch(e.tag){case 1:{const n=["account-registry","partners",uo(e.fields[0])];return du(e=>{gu(rr(n),1,1)})}case 2:{const n=["account-registry","partners",uo(e.fields[0]),"accounts"];return du(e=>{gu(rr(n),1,1)})}case 3:{const n=["account-registry","partners",uo(e.fields[0]),"super-configuration"];return du(e=>{gu(rr(n),1,1)})}case 4:{const n=["account-registry","partners",uo(e.fields[0]),"benefits-onboarding-configuration"];return du(e=>{gu(rr(n),1,1)})}case 5:{const n=["account-registry","partners",uo(e.fields[0]),"bank-details-configuration"];return du(e=>{gu(rr(n),1,1)})}case 6:{const n=["account-registry","partners",uo(e.fields[0]),"accounts",co(e.fields[1])];return du(e=>{gu(rr(n),1,1)})}case 7:{const n=["account-registry","partners",uo(e.fields[0]),"accounts",co(e.fields[1]),"directory"];return du(e=>{gu(rr(n),1,1)})}case 8:{const n=["account-registry","partners",uo(e.fields[0]),"accounts",co(e.fields[1]),"super-configuration"];return du(e=>{gu(rr(n),1,1)})}case 9:{const n=["account-registry","partners",uo(e.fields[0]),"accounts",co(e.fields[1]),"benefits-onboarding-configuration"];return du(e=>{gu(rr(n),1,1)})}case 10:{const n=["account-registry","partners",uo(e.fields[0]),"accounts",co(e.fields[1]),"bank-details-configuration"];return du(e=>{gu(rr(n),1,1)})}default:{const e=["account-registry","partners"];return du(n=>{gu(rr(e),1,1)})}}}class Wu extends L{constructor(e){super(),this.Partners=e}}function zu(){return vn("AccountRegistry.AdminUI.Types.Data",[],Wu,()=>[["Partners",xn(Bu())]])}class qu extends L{constructor(e,n){super(),this.bound=0|e,this.digits=n}}function Vu(e,n){for(;;){const t=e,r=n;if(0===r)return 1;if(r%2!=0)return t*Vu(t*t,~~(r/2))|0;e=t*t,n=~~(r/2)}}$n(2013265921,0,!1),$n(2013265921,0,!0);Tt(28,e=>Vu(2,e),Int32Array);function Zu(e){return e.bound}function Ju(e,n){return e.digits[n]}function Xu(e,n){return hn(Ju(e,n),!1,2)}function Yu(e,n,t){e.digits[n]=0|t}function Ku(e,n){for(;;){const t=e,r=n;if(0===r)return $n(1,0,!1);if(r%2!=0)return on(t,Ku(on(t,t),~~(r/2)));e=on(t,t),n=~~(r/2)}}function Qu(e,n){for(;;){const t=e,r=n;if(0===r)return 1;if(r%2!=0)return t*Qu(t*t,~~(r/2))|0;e=t*t,n=~~(r/2)}}const ec=$n(16777216,0,!1),nc=$n(16777215,0,!1);$n(16777215,0,!0);function tc(e){return new qu(e,new Int32Array(e))}function rc(e){const n=0|((e,n)=>{for(;;){const t=e,r=n;if(-1===r||0!==t[r])return r+1|0;e=t,n=r-1}})(e.digits,e.bound-1);return e.bound=0|n,e}function oc(e){const n=0|(e<0?0:e);if(n<16777216){const e=tc(1);return e.digits[0]=0|n,rc(e)}{const e=tc(2);for(let t=0;t<=1;t++)e.digits[t]=~~(n/Qu(16777216,t))%16777216|0;return rc(e)}}function ic(e){if(1===e.bound)return 0|e.digits[0];{let n=0;for(let t=e.bound-1;t>=0;t--)n=e.digits[t]+16777216*n|0;return 0|n}}const sc=oc(1),uc=oc(0);function cc(e){return e.bound-1}function ac(e){return 0===e.bound}function lc(e,n){if(e.bound===n.bound){return((e,n,t)=>{for(;;){const r=e,o=n,i=t;if(-1===i)return!0;if(r[i]!==o[i])return!1;e=r,n=o,t=i-1}})(e.digits,n.digits,e.bound-1)}return!1}function $c(e,n){if(e.bound<n.bound)return-1;if(e.bound>n.bound)return 1;return 0|((e,n,t)=>{for(;;){const r=e,o=n,i=t;if(-1===i)return 0;if(r[i]!==o[i])return r[i]<o[i]?-1:1;e=r,n=o,t=i-1}})(e.digits,n.digits,e.bound-1)}function fc(e,n){return-1===$c(e,n)}function dc(e,n,t){for(;;){const r=e,o=n,i=t;if(!(ln(o,$n(0,0,!1))>0))break;{const s=rn(Xu(r,i),o);Yu(r,i,~~fn(an(s,nc))),e=r,n=sn(s,ec),t=i+1}}}function hc(e,n){const t=0|Zu(e),r=tc(t+1),o=hn(n,!1,2);let i=$n(0,0,!1);for(let n=0;n<=t-1;n++){const t=rn(rn(i,Xu(r,n)),on(Xu(e,n),o));Yu(r,n,~~fn(an(t,nc))),i=sn(t,ec)}return dc(r,i,t),rc(r)}function pc(e,n){const t=1===Zu(e),r=1===Zu(n);return t&&r?function(e,n){const t=tc(2),r=on(hn(e,!1,2),hn(n,!1,2));return Yu(t,0,~~fn(an(r,nc))),Yu(t,1,~~fn(sn(r,ec))),rc(t)}(Ju(e,0),Ju(n,0)):t?hc(n,Ju(e,0)):r?hc(e,Ju(n,0)):function(e,n){const t=tc(e.bound+n.bound),r=t.digits;for(let o=0;o<=e.bound-1;o++){const i=hn(e.digits[o],!1,2);let s=$n(0,0,!1),u=o;for(let e=0;e<=n.bound-1;e++){const t=hn(n.digits[e],!1,2),o=rn(rn(hn(r[u],!1,2),s),on(i,t));r[u]=0|~~fn(an(o,nc)),s=sn(o,ec),u=u+1|0}dc(t,s,u)}return rc(t)}(e,n)}class mc extends L{constructor(e,n,t,r,o,i,s){super(),this.bigL=0|e,this.twoToBigL=0|n,this.k=0|t,this.bigK=0|r,this.bigN=0|o,this.split=0|i,this.splits=s}}function gc(e,n,t,r){return new mc(e,Qu(2,e),n,t,r,~~(24/e),Tt(~~(24/e),n=>Qu(2,e*n),Int32Array))}const wc=[gc(1,28,268435456,268435456),gc(2,26,67108864,134217728),gc(3,24,16777216,50331648),gc(4,22,4194304,16777216),gc(5,20,1048576,5242880),gc(6,18,262144,1572864),gc(7,16,65536,458752),gc(8,14,16384,131072),gc(9,12,4096,36864),gc(10,10,1024,10240),gc(11,8,256,2816),gc(12,6,64,768),gc(13,4,16,208)];Tt(24,e=>Qu(2,e)-1,Int32Array),Tt(24,e=>Qu(2,e),Int32Array),Tt(24,e=>Ku($n(2,0,!1),e));wc[0].bigN;function yc(e,n){return pc(e,n)}function _c(e,n,t,r){const o=[e.digits,cc(e)],i=o[0],s=[t.digits,cc(t)],u=0|s[1],c=s[0],a=hn(n,!1,2);let l=0,$=on(a,hn(c[0],!1,2));for(;ln($,$n(0,0,!1))>0||l<u;){if(l>o[1])throw new Error("scaleSubInPlace: pre-condition did not apply, result would be -ve");let e=~~fn(an($,nc)),n=sn($,ec);e<=i[l+r]?i[l+r]=i[l+r]-e|0:(i[l+r]=i[l+r]+(16777216-e)|0,n=rn(n,$n(1,0,!1))),$=l<u?rn(n,on(a,hn(c[l+1],!1,2))):n,l=l+1|0}rc(e)}function vc(e,n,t,r){const o=[e.digits,cc(e)],i=o[0],s=[t.digits,cc(t)],u=0|s[1],c=s[0],a=hn(n,!1,2);let l=0,$=on(a,hn(c[0],!1,2));for(;ln($,$n(0,0,!1))>0||l<u;){if(l>o[1])throw new Error("scaleSubInPlace: pre-condition did not apply, result would be -ve");let e=~~fn(an($,nc)),n=sn($,ec);e<16777216-i[l+r]?i[l+r]=i[l+r]+e|0:(i[l+r]=e-(16777216-i[l+r])|0,n=rn(n,$n(1,0,!1))),$=l<u?rn(n,on(a,hn(c[l+1],!1,2))):n,l=l+1|0}rc(e)}function bc(e,n,t){const r=[cc(n),cc(e)],o=0|r[1],i=0|r[0];if(o<i+t)return 0;{const r=[n.digits,e.digits],l=r[1],$=r[0],f=0|(0===i?o===t?~~(l[t]/$[0]):~~fn(sn(rn(on(hn(l[o],!1,2),ec),hn(l[o-1],!1,2)),hn($[0],!1,2))):o===i+t?~~(l[o]/($[i]+1)):~~fn(sn(rn(on(hn(l[o],!1,2),ec),hn(l[o-1],!1,2)),rn(hn($[i],!1,2),$n(1,0,!1)))));return 0===f?1!=(u=t,c=e,a=0,(s=n).bound+u<c.bound+a?-1:s.bound+u>c.bound+u?1:0|((e,n,t)=>{e:for(;;){const r=e,o=n,i=t;if(-1===i)return 0;{const s=0|(i<u?0:r[i-u]),c=0|(i<a?0:o[i-a]);if(s===c){e=r,n=o,t=i-1;continue e}return s<c?-1:1}}})(s.digits,c.digits,s.bound+u-1))?1:0:0|f}var s,u,c,a}function Cc(e,n){if(ac(n))throw new Error;if(cc(e)<cc(n))return[uc,e];{const t=function(e){return new qu(e.bound,e.digits.slice())}(e),r=tc(cc(e)-cc(n)+1+1);let o=cc(e);const i=0|cc(n);let s=o-i;const u=e=>{};let c=!1;for(;!c;){u([r,t,s,o]);const e=0|bc(t,n,s);e>0?(_c(t,e,n,s),vc(r,e,sc,s),u([r,t,s,o])):(c=0===e&&0===s,c||(o===i+s?(u([r,t,s-1,o]),s=s-1|0):(u([r,t,s-1,o-1]),s=s-1|0,o=o-1|0)))}return[rc(r),rc(t)]}}oc(2);function xc(e){return oc(e)}function Sc(e){return function(e){const n=ln(e,$n(0,0,!1))<0?$n(0,0,!1):e,t=tc(3);for(let e=0;e<=2;e++)t.digits[e]=0|~~fn(un(sn(n,Ku(ec,e)),ec));return rc(t)}(e)}function Ec(e){const n=0|cc(e),t=(e,n,r,o)=>{e:for(;;){const i=e,s=n,u=r,c=o;if(Zt(c)){const e=0|ic(u);return i&&0===e?s:qt(d(e),s)}{const a=Yt(c),l=Cc(u,Xt(c)[1]),$=l[1],f=l[0];if(i&&ac(f)){e=i,n=s,r=$,o=a;continue e}e=i,n=t(!1,s,$,a),r=f,o=a;continue e}}},r=t(!0,zt(),e,((e,t,r)=>{for(;;){const o=e,i=t,s=r;if(cc(s)>n)return qt([i,s],o);e=qt([i,s],o),t=i+1,r=yc(s,s)}})(zt(),0,oc(10)));return Zt(r)?"0":pt("",Kt(r))}function kc(e){return e.bound<=1}function Ac(e){const n=e;return 0<n.bound?0|n.digits[0]:0}class Ic extends L{constructor(e,n){super(),this.signInt=0|e,this.v=n}toString(){const e=this;switch(0|Pc(e)){case-1:return ac(Dc(e))?"0":"-"+Ec(Dc(e));case 0:return"0";case 1:return Ec(Dc(e));default:throw new Error("signs should be +/- 1 or 0")}}Equals(e){return e instanceof Ic&&Oc(this,e)}GetHashCode(){return 0|(0===Pc(e=this)?1:Pc(e)+function(e){let n=0;for(let t=0;t<=e.bound-1;t++)n=e.digits[t]+(n<<3)|0;return 0|n}(Dc(e))|0);var e}toJSON(e){return P(this)}CompareTo(e){if(e instanceof Ic)return 0|function(e,n){return Mc(e,n)?-1:Oc(e,n)?0:1}(this,e);throw new Error("the objects are not comparable\\nParameter name: obj")}}function Nc(e,n){return new Ic(e,n)}function Tc(e){return kc(e)&&Ac(e)<Ic.smallLim?Ic.smallPosTab[Ac(e)]:e}function Pc(e){return e.signInt}function Dc(e){return e.v}function Oc(e,n){const t=[Pc(e),Pc(n)];let r;switch(r=-1===t[0]?-1===t[1]?1:0===t[1]?8:1===t[1]?3:9:0===t[0]?-1===t[1]?6:0===t[1]?4:1===t[1]?5:9:1===t[0]?-1===t[1]?2:0===t[1]?7:1===t[1]?0:9:9,r){case 0:case 1:return lc(Dc(e),Dc(n));case 2:case 3:return!!ac(Dc(e))&&ac(Dc(n));case 4:return!0;case 5:case 6:return ac(Dc(n));case 7:case 8:return ac(Dc(e));case 9:throw new Error("signs should be +/- 1 or 0\\nParameter name: x")}}function Mc(e,n){const t=[Pc(e),Pc(n)];let r;switch(r=-1===t[0]?-1===t[1]?1:0===t[1]?8:1===t[1]?3:9:0===t[0]?-1===t[1]?6:0===t[1]?4:1===t[1]?5:9:1===t[0]?-1===t[1]?2:0===t[1]?7:1===t[1]?0:9:9,r){case 0:return fc(Dc(e),Dc(n));case 1:return fc(Dc(n),Dc(e));case 2:return!1;case 3:return!ac(Dc(e))||!ac(Dc(n));case 4:return!1;case 5:return!ac(Dc(n));case 6:case 7:return!1;case 8:return!ac(Dc(e));case 9:throw new Error("signs should be +/- 1 or 0\\nParameter name: x")}}function Uc(e){return e>=0?Nc(1,Tc(xc(e))):Nc(-1,Tc(-2147483648===e?Sc(cn(hn(e,!1,2))):xc($e(e))))}function Bc(){return Ic.one}function Rc(){return Ic.two}function Lc(){return Ic.zero}Ic.smallLim=4096,Ic.smallPosTab=Tt(Ic.smallLim,xc),Ic.one=Uc(1),Ic.two=Uc(2),Ic.zero=Uc(0);Lc(),Bc(),Rc();Lc(),Bc();class Gc{constructor(){}}function jc(e,n){return{then:(e,t)=>{try{return n().then(e,t)}catch(e){if(v(t,null))return Promise.reject(e);try{return Promise.resolve(t(e))}catch(e){return Promise.reject(e)}}},catch:e=>{try{return n().catch(e)}catch(n){try{return Promise.resolve(e(n))}catch(e){return Promise.reject(e)}}}}}const Fc=new Gc;class Hc extends D{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Writable","ReadWritable"]}}class Wc{constructor(e){this.state=new Hc(0,It(new Array(E(C,e,10)),0,E(C,e,10),null),0)}}function zc(e){const n=e.state;if(1===n.tag){const t=0|n.fields[1],r=0|n.fields[2],o=n.fields[0],i=(r+1)%o.length|0;return e.state=i===t?new Hc(0,o,t):new Hc(1,o,t,i),Rn(o[r])}}function qc(e,n,t){const r=ls(e[0]),o=ls(new Wc(10));const u=fs(e[0]);let c;const a=ls(vs()),l=ls(a.current);us(()=>os(()=>{bs(a.current)})),c=l;const $=()=>{setTimeout(()=>{let e;e=c.current,Cs(e)||u[1](r.current)},0)},f=e=>{var t;(t=jc(0,()=>{let t=Rn(e);return function e(n,t,r){return t()?r.then(()=>e(n,t,r)):Promise.resolve(void 0)}(Fc,()=>{let e;return null!=t&&(e=c.current,!Cs(e))},jc(0,()=>{const e=n(Ln(t),r.current);return nr(e=>{e(f)},e[1]),t=zc(o.current),r.current=e[0],$(),Promise.resolve()}))}),new Promise((e,n)=>{try{Promise.resolve(t).then(e,n)}catch(e){n(e)}})).then()},d=$s(f);var h;return is(()=>os(()=>{let e;Or(e=>{s(e)},Gn((e=r.current,i(e)?e:void 0)))}),t),cs(()=>{r.current=e[0],$(),nr(e=>{e(d)},e[1])},t),h=()=>{Or(d,Gn(zc(o.current)))},Qi(e=>(h(),os(()=>{}))),[u[0],d]}function Vc(e,n,t){return qc(function(e,n){const t=jn(n,[]);return Ki.useMemo(e,t)}(e,t),n,t)}class Zc extends D{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class Jc extends D{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Header"]}}class Xc extends D{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Empty","Text","Binary","Form"]}}class Yc extends L{constructor(e,n,t,r,o,i,s,u){super(),this.url=e,this.method=n,this.headers=t,this.withCredentials=r,this.overridenMimeType=o,this.overridenResponseType=i,this.timeout=s,this.content=u}}class Kc extends D{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class Qc extends L{constructor(e,n,t,r,o,i){super(),this.statusCode=0|e,this.responseText=n,this.responseType=t,this.responseUrl=r,this.responseHeaders=o,this.content=i}}const ea=new Yc("",new Zc(0),zt(),!1,void 0,void 0,void 0,new Xc(0));new Qc(0,"","","",cu(),new Kc(0,""));function na(e,n){return dt(n)?[n]:wt(n,[e],null,0)}function ta(e){return new Yc(e,ea.method,ea.headers,ea.withCredentials,ea.overridenMimeType,ea.overridenResponseType,ea.timeout,ea.content)}function ra(e,n){return new Yc(n.url,e,n.headers,n.withCredentials,n.overridenMimeType,n.overridenResponseType,n.timeout,n.content)}function oa(e,n){return new Yc(n.url,n.method,ir(n.headers,Vt(e)),n.withCredentials,n.overridenMimeType,n.overridenResponseType,n.timeout,n.content)}function ia(e){return Ss(n=>{const t=new XMLHttpRequest;t.open(function(e){switch(e.tag){case 1:return"POST";case 3:return"PATCH";case 2:return"PUT";case 4:return"DELETE";case 6:return"OPTIONS";case 5:return"HEAD";default:return"GET"}}(e.method),e.url),t.onreadystatechange=()=>{let e,r,o,i,s,u,c;4===t.readyState&&n[0]((r=t.responseType,e=""===r||"text"===r?t.responseText:"",o=0|t.status,i=t.responseType,u=t.responseType,s=""===u||"text"===u?new Kc(0,t.responseText):new Kc("arraybuffer"===u?2:"blob"===u?1:3,t.response),c=function(e){const n=fr();return Qs(n,zs(n,e))}(function(e,n,t){const r=[];for(let t=0;t<=n.length-1;t++){const o=e(n[t]);if(null!=o){const e=Ln(o);r.push(e)}}return"function"==typeof t?Nt(e=>e,r,t):r}(e=>{const n=rr(na(":",e));return Zt(n)?void 0:[Xt(n).toLocaleLowerCase(),pt(":",Yt(n)).trim()]},na("\r\n",t.getAllResponseHeaders()))),new Qc(o,e,i,t.responseURL,c,s)))};const r=a(e.headers);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const e=r["System.Collections.Generic.IEnumerator`1.get_Current"]();t.setRequestHeader(e.fields[0],e.fields[1])}}finally{s(r)}t.withCredentials=e.withCredentials;const o=e.overridenMimeType;if(null==o);else{const e=o;t.overrideMimeType(e)}const i=e.overridenResponseType;null==i||(1===i.tag?t.responseType="blob":2===i.tag?t.responseType="arraybuffer":t.responseType="text");const u=e.timeout;if(null==u);else{const e=0|u;t.timeout=0|e}const c=e.content;switch(c.tag){case 1:case 3:case 2:t.send(Rn(c.fields[0]));break;default:t.send()}})}const sa=0,ua=1,ca=2,aa=3,la=4;function $a(e,n){return e.replace(/[a-z]?[A-Z]/g,e=>1===e.length?e.toLowerCase():e.charAt(0)+n+e.charAt(1).toLowerCase())}function fa(e,n=sa){const t={},r=n;function o(e){throw new Error("Cannot infer key and value of "+String(e))}function i(e,n,r){e=function(e,n){switch(n){case ua:return e.charAt(0).toLowerCase()+e.slice(1);case ca:return $a(e,"_");case aa:return $a(e,"_").toUpperCase();case la:return $a(e,"-");case sa:default:return e}}(e,n),t[e]=r}for(let n of e){let e=sa;if(null==n&&o(n),n instanceof D){const t=n.cases()[n.tag];n=0===n.fields.length?t:[t].concat(n.fields),e=r}if(Array.isArray(n))switch(n.length){case 0:o(n);break;case 1:i(n[0],e,!0);break;case 2:const t=n[1];i(n[0],e,t);break;default:i(n[0],e,n.slice(1))}else"string"==typeof n?i(n,e,!0):o(n)}return t}class da extends D{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class ha extends D{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["PascalCase","CamelCase","SnakeCase"]}}class pa{constructor(){this.cache=new Map([])}}function ma(){return new pa}ma(),ma();function ga(e){return e.slice(void 0,1).toLowerCase()+e.slice(1,e.length)}function wa(e,n){switch(e.tag){case 2:return function(e,n,t,r,o=0){if("string"==typeof e){const t=e;e=tt(n,null!=r?r:0),n=t,r=void 0}if("function"==typeof t)return r=null==r?-1:r,n.substring(0,o)+n.substring(o).replace(e,(function(){let e=arguments[0];if(r){r--;const n=[],o=arguments.length,i="string"!=typeof arguments[o-1];let s=i?o-3:o-2;for(let e=0;e<s;e++)n.push(arguments[e]);n.index=arguments[s++],n.input=arguments[s++],i&&(n.groups=arguments[s]),e=t(n)}return e}));if(t=t.replace(/\$0/g,e=>"$&").replace(/\${([^}]+)}/g,"$<$1>"),null!=r){let i;const s=n.substring(o),u=ot(e,s),c=ot.length>r?(i=u[r-1],s.substring(0,i.index+i[0].length)):s;return n.substring(0,o)+c.replace(e,t)+n.substring(o+c.length)}return n.replace(e,t)}(ga(n),"[A-Z]","_$0").toLowerCase();case 0:return n;default:return ga(n)}}function ya(e,n){_a(n);const t=new Date(e);return t.offset=null!=n?n:-6e4*(new Date).getTimezoneOffset(),t}function _a(e){if(null!=e&&0!==e){if(e%6e4!=0)throw new Error("Offset must be specified in whole minutes.");if(Math.abs(e/36e5)>14)throw new Error("Offset must be within plus or minus 14 hours.")}}function va(e,n){try{return n.contents=function(e){const[n,t]=Qn(e),r=null==t?-6e4*n.getTimezoneOffset():"Z"===t?0:6e4*t;return ya(n.getTime(),r)}(e),!0}catch(e){return!1}}function ba(e=0,n=0,t=0,r=0,o=0){switch(arguments.length){case 1:return Ca(arguments[0]);case 3:e=0,n=arguments[0],t=arguments[1],r=arguments[2],o=0}return 864e5*e+36e5*n+6e4*t+1e3*r+o}function Ca(e){return dn(sn(e,1e4))}function xa(e,n){try{return n.contents=function(e){const n=e.search("\\."),t=e.search("\\:");if(-1===n&&-1===t){const n=parseInt(e,0);if(isNaN(n))throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`);return ba(n,0,0,0,0)}if(t>0){const n=/^(-?)((\d+)\.)?(?:0*)([0-9]|0[0-9]|1[0-9]|2[0-3]):(?:0*)([0-5][0-9]|[0-9])(:(?:0*)([0-5][0-9]|[0-9]))?\.?(\d+)?$/.exec(e);if(null!=n&&null!=n[4]&&null!=n[5]){let t=0,r=0,o=0;const i=null!=n[1]&&"-"===n[1]?-1:1,s=+n[4],u=+n[5];if(null!=n[3]&&(t=+n[3]),null!=n[7]&&(o=+n[7]),null!=n[8])switch(n[8].length){case 1:r=100*+n[8];break;case 2:r=10*+n[8];break;case 3:r=+n[8];break;case 4:r=+n[8]/10;break;case 5:r=+n[8]/100;break;case 6:r=+n[8]/1e3;break;case 7:r=+n[8]/1e4;break;default:throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}return i*ba(t,s,u,o,r)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}(e),!0}catch(e){return!1}}Symbol.toStringTag,Symbol.iterator;class Sa{constructor(e){this.k=e}}function Ea(e){return new Sa(e)}function ka(e){return e.k}class Aa extends Sa{constructor(e,n,t,r){super(e),this.left=n,this.right=t,this.h=0|r}}function Ia(e,n,t,r){return new Aa(e,n,t,r)}function Na(e){return e.left}function Ta(e){return e.right}function Pa(e){return e.h}function Da(e){return function e(n,t){e:for(;;){const r=n,o=t;if(null!=r){const i=r;if(i instanceof Aa){n=Na(i),t=e(Ta(i),o+1);continue e}return o+1|0}return 0|o}}(e,0)}function Oa(e,n,t){let r;if(null!=e){const n=e;r=n instanceof Aa?Pa(n):1}else r=0;let o;if(null!=t){const e=t;o=e instanceof Aa?Pa(e):1}else o=0;const i=0|(r<o?o:r);return 0===i?Ea(n):Ia(n,e,t,i+1)}function Ma(e,n,t){let r,o,i,s,u;if(null!=e){const n=e;u=n instanceof Aa?Pa(n):1}else u=0;let c;if(null!=t){const e=t;c=e instanceof Aa?Pa(e):1}else c=0;if(c>u+2){const i=Ln(t);if(i instanceof Aa){if(r=Na(i),(null!=r?(o=r,o instanceof Aa?Pa(o):1):0)>u+1){const t=Ln(Na(i));if(t instanceof Aa)return Oa(Oa(e,n,Na(t)),ka(t),Oa(Ta(t),ka(i),Ta(i)));throw new Error("internal error: Set.rebalance")}return Oa(Oa(e,n,Na(i)),ka(i),Ta(i))}throw new Error("internal error: Set.rebalance")}if(u>c+2){const r=Ln(e);if(r instanceof Aa){if(i=Ta(r),(null!=i?(s=i,s instanceof Aa?Pa(s):1):0)>c+1){const e=Ln(Ta(r));if(e instanceof Aa)return Oa(Oa(Na(r),ka(r),Na(e)),ka(e),Oa(Ta(e),n,t));throw new Error("internal error: Set.rebalance")}return Oa(Na(r),ka(r),Oa(Ta(r),n,t))}throw new Error("internal error: Set.rebalance")}return Oa(e,n,t)}function Ua(e,n,t){if(null!=t){const r=t,o=0|e.Compare(n,ka(r));if(r instanceof Aa)return o<0?Ma(Ua(e,n,Na(r)),ka(r),Ta(r)):0===o?t:Ma(Na(r),ka(r),Ua(e,n,Ta(r)));{const o=0|e.Compare(n,ka(r));return o<0?Ia(n,void 0,t,2):0===o?t:Ia(n,t,void 0,2)}}return Ea(n)}function Ba(e,n,t){e:for(;;){const r=e,o=n,i=t;if(null!=i){const s=i,u=0|r.Compare(o,ka(s));if(s instanceof Aa){if(u<0){e=r,n=o,t=Na(s);continue e}if(0===u)return!0;e=r,n=o,t=Ta(s);continue e}return 0===u}return!1}}function Ra(e,n){e:for(;;){const t=e,r=n;if(null!=r){const o=r;if(o instanceof Aa){Ra(t,Na(o)),t(ka(o)),e=t,n=Ta(o);continue e}t(ka(o))}break}}class La extends L{constructor(e,n){super(),this.stack=e,this.started=n}}function Ga(e){e:for(;;){const n=e;if(Zt(n))return zt();{const t=Xt(n),r=Yt(n);if(null!=t){const o=t;if(o instanceof Aa){e=tr([Na(o),Ea(ka(o)),Ta(o)],r);continue e}return n}e=r;continue e}}}function ja(e){return new La(Ga(Vt(e)),!1)}function Fa(e){if(e.started){const n=e.stack;if(Zt(n))return function(){throw new Error("Enumeration already started")}();if(null!=Xt(n)){return ka(Xt(n))}throw new Error("Please report error: Set iterator, unexpected stack for current")}return function(){throw new Error("Enumeration not started")}()}function Ha(e){let n=ja(e);return{"System.Collections.Generic.IEnumerator`1.get_Current":()=>Fa(n),"System.Collections.IEnumerator.get_Current":()=>Fa(n),"System.Collections.IEnumerator.MoveNext":()=>function(e){if(e.started){const n=e.stack;if(Zt(n))return!1;if(null!=Xt(n)){if(Xt(n)instanceof Aa)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=Ga(Yt(n)),!Zt(e.stack)}throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}return e.started=!0,!Zt(e.stack)}(n),"System.Collections.IEnumerator.Reset"(){n=ja(e)},Dispose(){}}}function Wa(e,n,t){return null==n?null==t?0:-1:null==t?1:0|function(e,n,t){e:for(;;){const r=e,o=n,i=t,s=[o,i];if(Zt(s[0]))return Zt(s[1])?0:-1;if(Zt(s[1]))return 1;if(null!=Xt(s[1]))if(null!=Xt(s[0])){const u=Xt(s[0]),c=Xt(s[1]);if(u instanceof Aa)if(null==Na(u)){if(!(c instanceof Aa)){const o=0|r.Compare(ka(u),ka(c));if(0!==o)return 0|o;e=r,n=qt(Ta(u),Yt(s[0])),t=qt(void 0,Yt(s[1]));continue e}if(null==Na(c)){const o=0|r.Compare(ka(u),ka(c));if(0!==o)return 0|o;e=r,n=qt(Ta(u),Yt(s[0])),t=qt(Ta(c),Yt(s[1]));continue e}{const s=[o,i];let u,c,a,l,$;switch(Zt(s[0])?Zt(s[1])?u=2:null!=Xt(s[1])?(u=1,l=Yt(s[1]),$=Xt(s[1])):u=2:null!=Xt(s[0])?(u=0,c=Yt(s[0]),a=Xt(s[0])):Zt(s[1])?u=2:null!=Xt(s[1])?(u=1,l=Yt(s[1]),$=Xt(s[1])):u=2,u){case 0:if(a instanceof Aa){e=r,n=tr([Na(a),Ia(ka(a),void 0,Ta(a),0)],c),t=i;continue e}e=r,n=tr([void 0,Ea(ka(a))],c),t=i;continue e;case 1:if($ instanceof Aa){e=r,n=o,t=tr([Na($),Ia(ka($),void 0,Ta($),0)],l);continue e}e=r,n=o,t=tr([void 0,Ea(ka($))],l);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const s=[o,i];let u,c,a,l,$;switch(Zt(s[0])?Zt(s[1])?u=2:null!=Xt(s[1])?(u=1,l=Yt(s[1]),$=Xt(s[1])):u=2:null!=Xt(s[0])?(u=0,c=Yt(s[0]),a=Xt(s[0])):Zt(s[1])?u=2:null!=Xt(s[1])?(u=1,l=Yt(s[1]),$=Xt(s[1])):u=2,u){case 0:if(a instanceof Aa){e=r,n=tr([Na(a),Ia(ka(a),void 0,Ta(a),0)],c),t=i;continue e}e=r,n=tr([void 0,Ea(ka(a))],c),t=i;continue e;case 1:if($ instanceof Aa){e=r,n=o,t=tr([Na($),Ia(ka($),void 0,Ta($),0)],l);continue e}e=r,n=o,t=tr([void 0,Ea(ka($))],l);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else{if(!(c instanceof Aa)){const o=0|r.Compare(ka(u),ka(c));if(0!==o)return 0|o;e=r,n=Yt(s[0]),t=Yt(s[1]);continue e}if(null==Na(c)){const o=0|r.Compare(ka(u),ka(c));if(0!==o)return 0|o;e=r,n=qt(void 0,Yt(s[0])),t=qt(Ta(c),Yt(s[1]));continue e}{const s=[o,i];let u,c,a,l,$;switch(Zt(s[0])?Zt(s[1])?u=2:null!=Xt(s[1])?(u=1,l=Yt(s[1]),$=Xt(s[1])):u=2:null!=Xt(s[0])?(u=0,c=Yt(s[0]),a=Xt(s[0])):Zt(s[1])?u=2:null!=Xt(s[1])?(u=1,l=Yt(s[1]),$=Xt(s[1])):u=2,u){case 0:if(a instanceof Aa){e=r,n=tr([Na(a),Ia(ka(a),void 0,Ta(a),0)],c),t=i;continue e}e=r,n=tr([void 0,Ea(ka(a))],c),t=i;continue e;case 1:if($ instanceof Aa){e=r,n=o,t=tr([Na($),Ia(ka($),void 0,Ta($),0)],l);continue e}e=r,n=o,t=tr([void 0,Ea(ka($))],l);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}}else{Xt(s[1]);const u=[o,i];let c,a,l,$,f;switch(Zt(u[0])?Zt(u[1])?c=2:null!=Xt(u[1])?(c=1,$=Yt(u[1]),f=Xt(u[1])):c=2:null!=Xt(u[0])?(c=0,a=Yt(u[0]),l=Xt(u[0])):Zt(u[1])?c=2:null!=Xt(u[1])?(c=1,$=Yt(u[1]),f=Xt(u[1])):c=2,c){case 0:if(l instanceof Aa){e=r,n=tr([Na(l),Ia(ka(l),void 0,Ta(l),0)],a),t=i;continue e}e=r,n=tr([void 0,Ea(ka(l))],a),t=i;continue e;case 1:if(f instanceof Aa){e=r,n=o,t=tr([Na(f),Ia(ka(f),void 0,Ta(f),0)],$);continue e}e=r,n=o,t=tr([void 0,Ea(ka(f))],$);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else{if(null==Xt(s[0])){e=r,n=Yt(s[0]),t=Yt(s[1]);continue e}{Xt(s[0]);const u=[o,i];let c,a,l,$,f;switch(Zt(u[0])?Zt(u[1])?c=2:null!=Xt(u[1])?(c=1,$=Yt(u[1]),f=Xt(u[1])):c=2:null!=Xt(u[0])?(c=0,a=Yt(u[0]),l=Xt(u[0])):Zt(u[1])?c=2:null!=Xt(u[1])?(c=1,$=Yt(u[1]),f=Xt(u[1])):c=2,c){case 0:if(l instanceof Aa){e=r,n=tr([Na(l),Ia(ka(l),void 0,Ta(l),0)],a),t=i;continue e}e=r,n=tr([void 0,Ea(ka(l))],a),t=i;continue e;case 1:if(f instanceof Aa){e=r,n=o,t=tr([Na(f),Ia(ka(f),void 0,Ta(f),0)],$);continue e}e=r,n=o,t=tr([void 0,Ea(ka(f))],$);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}break}}(e,Vt(n),Vt(t))}function za(e,n,t){let r=t;Ra(e=>{n[r]=e,r=r+1|0},e)}function qa(e,n){return Dt((n,t)=>Ua(e,t,n),void 0,n)}function Va(e,n){if(r(n))return qa(e,n);if(n instanceof Bt)return function(e,n){return Qt((n,t)=>Ua(e,t,n),void 0,n)}(e,n);{const t=a(n);try{return function(e,n,t){for(;;){const r=e,o=n,i=t;if(!i["System.Collections.IEnumerator.MoveNext"]())return o;e=r,n=Ua(r,i["System.Collections.Generic.IEnumerator`1.get_Current"](),o),t=i}}(e,void 0,t)}finally{s(t)}}}class Za{constructor(e,n){this.comparer=e,this.tree=n}GetHashCode(){return 0|function(e){let n,t=0;const r=a(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const e=r["System.Collections.Generic.IEnumerator`1.get_Current"]();t=0|(n=0|w(e),(t<<1)+n+631)}}finally{s(r)}return 0|Math.abs(t)}(this)}Equals(e){return e instanceof Za&&0===Wa(Xa(this),Ya(this),Ya(e))}toString(){return"set ["+pt("; ",Mr(e=>P(e),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(e){return Array.from(this)}CompareTo(e){return 0|Wa(Xa(this),Ya(this),Ya(e))}"System.Collections.Generic.ICollection`1.Add2B595"(e){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Clear"(){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Remove2B595"(e){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Contains2B595"(e){return Ba(Xa(this),e,Ya(this))}"System.Collections.Generic.ICollection`1.CopyToZ2E171D71"(e,n){za(Ya(this),e,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|Ka(this)}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return 0|Ka(this)}GetEnumerator(){return Ha(Ya(this))}[Symbol.iterator](){return l(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return Ha(Ya(this))}get size(){return 0|Ka(this)}add(e){throw new Error("Set cannot be mutated")}clear(){throw new Error("Set cannot be mutated")}delete(e){throw new Error("Set cannot be mutated")}has(e){return Qa(this,e)}keys(){return Mr(e=>e,this)}values(){return Mr(e=>e,this)}entries(){return Mr(e=>[e,e],this)}forEach(e,n){const t=this;Or(n=>{e(n,n,t)},t)}}function Ja(e,n){return new Za(e,n)}function Xa(e){return e.comparer}function Ya(e){return e.tree}function Ka(e){return Da(Ya(e))}function Qa(e,n){return Ba(Xa(e),n,Ya(e))}function el(e,n,t){try{return"Expecting "+e+" but instead got:"+(t?"\n":" ")+JSON.stringify(n,null,4)}catch(n){return"Expecting "+e+" but decoder failed. Couldn't report given value due to circular structure."+(t?"\n":" ")}}function nl(e,n){const t=2===n.tag?el(n.fields[0],n.fields[1],!0):1===n.tag?el(n.fields[0],n.fields[1],!1)+"\nReason: "+n.fields[2]:3===n.tag?el(n.fields[0],n.fields[1],!0):4===n.tag?el(n.fields[0],n.fields[1],!0)+"\nNode `"+n.fields[2]+"` is unkown.":5===n.tag?"Expecting "+n.fields[0]+".\n"+JSON.stringify(n.fields[1],null,4):7===n.tag?"The following errors were found:\n\n"+pt("\n\n",n.fields[0]):6===n.tag?"The following `failure` occurred with the decoder: "+n.fields[0]:el(n.fields[0],n.fields[1],!1);return 7===n.tag?t:"Error at: `"+e+"`\n"+t}function tl(e,n,t){const r=n(e,t);if(1===r.tag){const e=r.fields[0];return new Hn(1,nl(e[0],e[1]))}return new Hn(0,r.fields[0])}function rl(e,n){try{return tl("$",e,JSON.parse(n))}catch(e){if(e instanceof SyntaxError)return new Hn(1,"Given an invalid JSON: "+e.message);throw e}}function ol(e,n){return"string"==typeof n?new Hn(0,n):new Hn(1,[e,new da(0,"a string",n)])}const il=e=>n=>{const t=e,r=n;if("number"==typeof r){const e=r;return isFinite(e)&&Math.floor(e)===e?-128<=e&&e<=127?new Hn(0,(e+128&255)-128):new Hn(1,[t,new da(1,"a sbyte",e,"Value was either too large or too small for a sbyte")]):new Hn(1,[t,new da(1,"a sbyte",e,"Value is not an integral value")])}if("string"==typeof r){let e,n=0;return e=[le(r,511,!1,8,new G(()=>n,e=>{n=0|e})),n],e[0]?new Hn(0,e[1]):new Hn(1,[t,new da(0,"a sbyte",r)])}return new Hn(1,[t,new da(0,"a sbyte",r)])},sl=e=>n=>{const t=e,r=n;if("number"==typeof r){const e=r;return isFinite(e)&&Math.floor(e)===e?0<=e&&e<=255?new Hn(0,255&e):new Hn(1,[t,new da(1,"a byte",e,"Value was either too large or too small for a byte")]):new Hn(1,[t,new da(1,"a byte",e,"Value is not an integral value")])}if("string"==typeof r){let e,n=0;return e=[le(r,511,!0,8,new G(()=>n,e=>{n=e})),n],e[0]?new Hn(0,e[1]):new Hn(1,[t,new da(0,"a byte",r)])}return new Hn(1,[t,new da(0,"a byte",r)])},ul=e=>n=>{const t="an int16",r=e,o=n;if("number"==typeof o){const e=o;return isFinite(e)&&Math.floor(e)===e?-32768<=e&&e<=32767?new Hn(0,(e+32768&65535)-32768):new Hn(1,[r,new da(1,t,e,"Value was either too large or too small for "+t)]):new Hn(1,[r,new da(1,t,e,"Value is not an integral value")])}if("string"==typeof o){let e,n=0;return e=[le(o,511,!1,16,new G(()=>n,e=>{n=0|e})),n],e[0]?new Hn(0,e[1]):new Hn(1,[r,new da(0,t,o)])}return new Hn(1,[r,new da(0,t,o)])},cl=e=>n=>{const t="an uint16",r=e,o=n;if("number"==typeof o){const e=o;return isFinite(e)&&Math.floor(e)===e?0<=e&&e<=65535?new Hn(0,65535&e):new Hn(1,[r,new da(1,t,e,"Value was either too large or too small for "+t)]):new Hn(1,[r,new da(1,t,e,"Value is not an integral value")])}if("string"==typeof o){let e,n=0;return e=[le(o,511,!0,16,new G(()=>n,e=>{n=e})),n],e[0]?new Hn(0,e[1]):new Hn(1,[r,new da(0,t,o)])}return new Hn(1,[r,new da(0,t,o)])},al=e=>n=>{const t=e,r=n;if("number"==typeof r){const e=r;return isFinite(e)&&Math.floor(e)===e?-2147483648<=e&&e<=2147483647?new Hn(0,~~e):new Hn(1,[t,new da(1,"an int",e,"Value was either too large or too small for an int")]):new Hn(1,[t,new da(1,"an int",e,"Value is not an integral value")])}if("string"==typeof r){let e,n=0;return e=[le(r,511,!1,32,new G(()=>n,e=>{n=0|e})),n],e[0]?new Hn(0,e[1]):new Hn(1,[t,new da(0,"an int",r)])}return new Hn(1,[t,new da(0,"an int",r)])},ll=e=>n=>{const t="an uint32",r=e,o=n;if("number"==typeof o){const e=o;return isFinite(e)&&Math.floor(e)===e?0<=e&&e<=4294967295?new Hn(0,e>>>0):new Hn(1,[r,new da(1,t,e,"Value was either too large or too small for "+t)]):new Hn(1,[r,new da(1,t,e,"Value is not an integral value")])}if("string"==typeof o){let e,n=0;return e=[le(o,511,!0,32,new G(()=>n,e=>{n=e})),n],e[0]?new Hn(0,e[1]):new Hn(1,[r,new da(0,t,o)])}return new Hn(1,[r,new da(0,t,o)])};function $l(e,n){if("string"==typeof n){let t,r=ya(-621355968e5,0);return t=[va(n,new G(()=>r,e=>{r=e})),r],t[0]?new Hn(0,t[1]):new Hn(1,[e,new da(0,"a datetimeoffset",n)])}return new Hn(1,[e,new da(0,"a datetime",n)])}function fl(e,n,t,r){let o;const i=t+".["+d(e)+"]";if(Array.isArray(r)){const t=r;return e<t.length?n(i,t[e]):new Hn(1,[i,new da(5,"a longer array. Need index `"+d(e)+"` but there are only `"+(o=t.length,d(o)+"` entries"),r)])}return new Hn(1,[i,new da(0,"an array",r)])}function dl(e,n,t){if(Array.isArray(t)){let r=-1;return Wn(er,Dt((t,o)=>{if(r=r+1|0,0===t.tag){const i=e(n+".["+d(r)+"]",o);return 0===i.tag?new Hn(0,qt(i.fields[0],t.fields[0])):new Hn(1,i.fields[0])}return t},new Hn(0,zt()),t))}return new Hn(1,[n,new da(0,"a list",t)])}function hl(e,n,t){if(Array.isArray(t)){let r=-1;const o=t;return Dt((t,o)=>{if(r=r+1|0,0===t.tag){const i=t.fields[0],s=e(n+".["+d(r)+"]",o);return 0===s.tag?(i[r]=s.fields[0],new Hn(0,i)):new Hn(1,s.fields[0])}return t},new Hn(0,It(new Array(o.length),0,o.length,null)),o)}return new Hn(1,[n,new da(0,"an array",t)])}function pl(e,n,t){return new Hn(0,e)}function ml(e,n,t,r){const o=n(t,r);return 0===o.tag?e(o.fields[0],t,r):new Hn(1,o.fields[0])}function gl(e,n,t,r){const o=n(t,r);return 1===o.tag?new Hn(1,o.fields[0]):new Hn(0,e(o.fields[0]))}function wl(e,n){let t;const r=e;return t=e=>n=>fl(0,r,e,n),e=>r=>ml(I(3,e=>{let t;const r=n;return t=e=>n=>fl(1,r,e,n),n=>r=>ml((n,t,r)=>pl([e,n]),I(2,t),n,r)}),I(2,t),e,r)}function yl(e){return uu(e)}function _l(e){return Ja(n={Compare:S},Va(n,e));var n}function vl(e,n,t,r){let o;const i=n.length+e|0;if(i!==r.length)return new Hn(1,[t,new da(6,(o=0|r.length,lt(ct("Expected array of length %i but got %i"))(i)(o)))]);{let o=new Hn(0,zt());for(let i=e;i<=r.length-1;i++)if(0===o.tag){const s=o.fields[0],u=lt(ct("%s[%i]"))(t)(i),c=n[i-e],a=r[i];o=Wn(e=>qt(e,s),c(u)(a))}return Wn(er,o)}}function bl(e,n,t,r,o,i){const s=(u=e=>kn(e)===r,On(t).find(u));var u;if(null!=s){const t=s,r=Nt(t=>xl(e,n,!1,t[1]),function(e){return null==e.fields?[]:e.fields}(t));return Wn(e=>function(e,n){const t=(e.fields||[]).length;if(n.length!==t)throw new Error(`Expected an array of length ${t} but got ${n.length}`);return null!=e.declaringType.construct?new e.declaringType.construct(e.tag,...n):{}}(t,Kt(e)),0===r.length&&i.length<=1?new Hn(0,zt()):vl(1,r,o,i))}return new Hn(1,[o,new da(6,"Cannot find case "+r+" in "+An(t))])}function Cl(e,n,t,r){const o=new G(null);let i;const s=An(r);let u;if(i=""===s?e:ou(s,o,e),function(e){return e instanceof mn?null!=e.fields:e instanceof L}(r)){const e=Nt(e=>[wa(n,kn(e)),xl(i,n,!1,e[1])],Mn(r));u=n=>t=>Wn(e=>function(e,n){const t=Mn(e);if(t.length!==n.length)throw new Error(`Expected an array of length ${t.length} but got ${n.length}`);return null!=e.construct?new e.construct(...n):t.reduce((e,[t,r],o)=>(e[t]=n[o],e),{})}(r,Kt(e)),function(e,n,t){return null===t||Object.getPrototypeOf(t||!1)!==Object.prototype?new Hn(1,[n,new da(0,"an object",t)]):Ut(I(2,e=>{const r=e[0];return o=>0===o.tag?Wn(e=>qt(e,o.fields[0]),e[1](n+"."+r)(t[r])):o}),e,new Hn(0,zt()))}(e,n,t))}else if(function(e){return e instanceof mn?null!=e.cases:e instanceof D}(r))u=e=>t=>{if("string"==typeof t)return bl(i,n,r,t,e,[]);if(Array.isArray(t)){const u=t;return o=t=>bl(i,n,r,t,e,u),0===(s=ol(e+"[0]",u[0])).tag?o(s.fields[0]):new Hn(1,s.fields[0])}return new Hn(1,[e,new da(0,"a string or array",t)]);var o,s};else{if(!t){let e;const n=An(r);throw e=lt(ct("Cannot generate auto decoder for %s. Please pass an extra decoder.\n\nDocumentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders"))(n),new Error(e)}u=e=>n=>new Hn(1,[e,new da(2,"an extra coder for "+An(r),n)])}return o.contents=u,u}function xl(e,n,t,r){let o,i,s,u;const c=An(r),a=iu(c,e);if(null==a){if(function(e){return null!=In(e)}(r)){const t=xl(e,n,!1,In(r));return e=>n=>hl(I(2,t),e,n)}if(Nn(r)){const e=An(function(e){var n;return null===(n=e.generics)||void 0===n?void 0:n[0]}(r));if("System.SByte"===e)return e=>n=>{const t=r,o=e,i=n,s=il(o)(i);if(1===s.tag)return new Hn(1,s.fields[0]);{const e=s.fields[0];return Pr(e,Tn(t),{Equals:(e,n)=>e===n,GetHashCode:m})?new Hn(0,Dn(t,e.toString())):new Hn(1,[o,new da(1,An(t),i,"Unkown value provided for the enum")])}};if("System.Byte"===e)return e=>n=>{const t=r,o=e,i=n,s=sl(o)(i);if(1===s.tag)return new Hn(1,s.fields[0]);{const e=s.fields[0];return Pr(e,Tn(t),{Equals:(e,n)=>e===n,GetHashCode:m})?new Hn(0,Dn(t,e.toString())):new Hn(1,[o,new da(1,An(t),i,"Unkown value provided for the enum")])}};if("System.Int16"===e)return e=>n=>{const t=r,o=e,i=n,s=ul(o)(i);if(1===s.tag)return new Hn(1,s.fields[0]);{const e=s.fields[0];return Pr(e,Tn(t),{Equals:(e,n)=>e===n,GetHashCode:m})?new Hn(0,Dn(t,(u=(u=e)<0&&null!=c&&10!==c?65535+u+1:u).toString(c))):new Hn(1,[o,new da(1,An(t),i,"Unkown value provided for the enum")])}var u,c};if("System.UInt16"===e)return e=>n=>{const t=r,o=e,i=n,s=cl(o)(i);if(1===s.tag)return new Hn(1,s.fields[0]);{const e=s.fields[0];return Pr(e,Tn(t),{Equals:(e,n)=>e===n,GetHashCode:m})?new Hn(0,Dn(t,e.toString())):new Hn(1,[o,new da(1,An(t),i,"Unkown value provided for the enum")])}};if("System.Int32"===e)return e=>n=>{const t=r,o=e,i=n,s=al(o)(i);if(1===s.tag)return new Hn(1,s.fields[0]);{const e=s.fields[0];return Pr(e,Tn(t),{Equals:(e,n)=>e===n,GetHashCode:m})?new Hn(0,Dn(t,d(e))):new Hn(1,[o,new da(1,An(t),i,"Unkown value provided for the enum")])}};if("System.UInt32"===e)return e=>n=>{const t=r,o=e,i=n,s=ll(o)(i);if(1===s.tag)return new Hn(1,s.fields[0]);{const e=s.fields[0];return Pr(e,Tn(t),{Equals:(e,n)=>e===n,GetHashCode:m})?new Hn(0,Dn(t,e.toString())):new Hn(1,[o,new da(1,An(t),i,"Unkown value provided for the enum")])}};{const e=An(r),n=at(e=>{throw new Error(e)},ct("Cannot generate auto decoder for %s.\nThoth.Json.Net only support the following enum types:\n- sbyte\n- byte\n- int16\n- uint16\n- int\n- uint32\nIf you can't use one of these types, please pass an extra decoder.\n "))(e);return e=>n(e)}}if(function(e){return null!=e.generics&&e.generics.length>0}(r)){if(Un(r)){const t=Nt(t=>xl(e,n,!1,t),function(e){if(Un(e)&&null!=e.generics)return e.generics;throw new Error(e.fullname+" is not a tuple type")}(r));return e=>n=>Array.isArray(n)?Wn(e=>Kt(e),vl(0,t,e,n)):new Hn(1,[e,new da(0,"an array",n)])}{const c=An(function(e){return null==e.generics?e:new mn(e.fullname,e.generics.map(()=>Sn))}(r));if("Microsoft.FSharp.Core.FSharpOption`1[System.Object]"===c)return o=xl(e,n,!0,gn(r)[0]),e=>n=>{return t=I(2,o),r=e,null==(i=n)?new Hn(0,void 0):Wn(Rn,t(r,i));var t,r,i};if("Microsoft.FSharp.Collections.FSharpList`1[System.Object]"===c)return i=xl(e,n,!1,gn(r)[0]),e=>n=>dl(I(2,i),e,n);if("System.Collections.Generic.IEnumerable`1[System.Object]"===c)return s=xl(e,n,!1,gn(r)[0]),e=>n=>function(e,n,t){if(Array.isArray(t)){let r=-1;return Wn(Br,Dt((t,o)=>{if(r=r+1|0,0===t.tag){const i=e(n+".["+d(r)+"]",o);return 0===i.tag?new Hn(0,Nr([i.fields[0]],t.fields[0])):new Hn(1,i.fields[0])}return t},new Hn(0,[]),t))}return new Hn(1,[n,new da(0,"a seq",t)])}(I(2,s),e,n);if("Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"===c){const t=xl(e,n,!1,gn(r)[0]),o=xl(e,n,!1,gn(r)[1]);let i;const s=rr([e=>n=>function(e,n,t,r){return null===r||Object.getPrototypeOf(r||!1)!==Object.prototype?new Hn(1,[t,new da(0,"an object",r)]):Dr((o,i)=>{if(0===o.tag){const s=e(t,i);if(0===s.tag){const e=n(t+"."+i,r[i]);return 0===e.tag?new Hn(0,qt([s.fields[0],e.fields[0]],o.fields[0])):new Hn(1,e.fields[0])}return new Hn(1,s.fields[0])}return o},new Hn(0,zt()),Object.keys(r))}(I(2,t),I(2,o),e,n),(u=wl(I(2,t),I(2,o)),e=>n=>dl(I(2,u),e,n))]);return i=e=>n=>{return t=e,r=n,((e,n)=>{e:for(;;){const o=e,i=n;if(Zt(o))return new Hn(1,[t,new da(7,i)]);{const s=tl(t,I(2,Xt(o)),r);if(1===s.tag){e=Yt(o),n=ir(i,Vt(s.fields[0]));continue e}return new Hn(0,s.fields[0])}}})(s,zt());var t,r},e=>n=>gl(yl,I(2,i),e,n)}if("Microsoft.FSharp.Collections.FSharpSet`1[System.Object]"===c){const t=xl(e,n,!1,gn(r)[0]);return e=>n=>{const r=hl(I(2,t),e,n);return 0===r.tag?new Hn(0,_l(r.fields[0])):new Hn(1,r.fields[0])}}return Cl(e,n,t,r)}}return"System.Boolean"===c?e=>n=>{return t=e,"boolean"==typeof(r=n)?new Hn(0,r):new Hn(1,[t,new da(0,"a boolean",r)]);var t,r}:"Microsoft.FSharp.Core.Unit"===c?e=>n=>{return t=e,null==(r=n)?new Hn(0,void 0):new Hn(1,[t,new da(0,"null",r)]);var t,r}:"System.String"===c?e=>n=>ol(e,n):"System.Char"===c?e=>n=>function(e,n){if("string"==typeof n){const t=n;return 1===t.length?new Hn(0,t[0]):new Hn(1,[e,new da(0,"a single character string",n)])}return new Hn(1,[e,new da(0,"a char",n)])}(e,n):"System.SByte"===c?il:"System.Byte"===c?sl:"System.Int16"===c?ul:"System.UInt16"===c?cl:"System.Int32"===c?al:"System.UInt32"===c?ll:"System.Double"===c?e=>n=>{return t=e,"number"==typeof(r=n)?new Hn(0,r):new Hn(1,[t,new da(0,"a float",r)]);var t,r}:"System.Single"===c?e=>n=>{return t=e,"number"==typeof(r=n)?new Hn(0,r):new Hn(1,[t,new da(0,"a float32",r)]);var t,r}:"System.DateTime"===c?e=>n=>function(e,n){if("string"==typeof n){let t,r=Kn();return t=[et(n,new G(()=>r,e=>{r=e})),r],t[0]?new Hn(0,nt(t[1])):new Hn(1,[e,new da(0,"a datetime",n)])}return new Hn(1,[e,new da(0,"a datetime",n)])}(e,n):"System.DateTimeOffset"===c?e=>n=>$l(e,n):"System.TimeSpan"===c?e=>n=>function(e,n){if("string"==typeof n){let t,r=0;return t=[xa(n,new G(()=>r,e=>{r=e})),r],t[0]?new Hn(0,t[1]):new Hn(1,[e,new da(0,"a timespan",n)])}return new Hn(1,[e,new da(0,"a timespan",n)])}(e,n):"System.Guid"===c?e=>n=>function(e,n){if("string"==typeof n){let t,r="00000000-0000-0000-0000-000000000000";return t=[xt(n,new G(()=>r,e=>{r=e})),r],t[0]?new Hn(0,t[1]):new Hn(1,[e,new da(0,"a guid",n)])}return new Hn(1,[e,new da(0,"a guid",n)])}(e,n):"System.Object"===c?e=>e=>new Hn(0,e):Cl(e,n,t,r)}{const e=a;return n=>t=>e.contents(n)(t)}}function Sl(e){return null!=e?su((e,n)=>new G(n[1]),e.Coders):cu()}function El(e,n,t){const r=jn(n,new ha(0));return xl(Sl(t),r,!1,e)}function kl(e,n){return function(e,n,t){e:for(;;){const r=e,o=n,i=t;if(Zt(i)){const e=r;return 1===e.tag?new Hn(1,e.fields[0]):new Hn(0,er(e.fields[0]))}{let s;const u=o(Xt(i));if(1===u.tag)s=new Hn(1,u.fields[0]);else{const e=r;s=1===e.tag?new Hn(1,e.fields[0]):new Hn(0,qt(u.fields[0],e.fields[0]))}if(1===s.tag)return s;e=s,n=o,t=Yt(i);continue e}}}(new Hn(0,zt()),e,n)}function Al(e){return new St(0,e.fields[0])}function Il(e){return e+"/account-registry/admin"}function Nl(e,n){return ys.Delay(()=>{const t=oa((r=lt(ct("Bearer %s"))(e),new Jc(0,"Authorization",r)),n);var r;let o;const i=ia(t);return o=ys.Bind(i,e=>ys.Return(new Hn(0,e))),ys.Bind(o,e=>{const n=e;if(1===n.tag)return ys.Return(new Hn(1,n.fields[0]));{const e=n.fields[0];if(429===e.statusCode||e.statusCode>=500){const e=ia(t);return ys.Bind(e,e=>ys.Return(new Hn(0,e)))}return ys.Return(new Hn(0,e))}})})}function Tl(e,n){return ys.Delay(()=>{let t;const r=Nl(n,ra(new Zc(0),ta((t=Il(e),t+"/partners"))));return ys.Bind(r,e=>{const n=e;if(1===n.tag)return ys.Return(new Hn(1,n.fields[0]));{const e=n.fields[0];if(200===e.statusCode){let n;const t=rl(I(2,El(xn(vn("Dto.AdminApi.Partner",[],lo,()=>[["StreamId",En],["Name",En],["Website",En],["ContactDetails",io()],["Notes",Cn(En)]])),new ha(1),void 0)),e.responseText);return n=1===t.tag?new Hn(1,t.fields[0]):kl(e=>e,ur(Ru,t.fields[0])),ys.Return(n)}return ys.Return(new Hn(1,"Unexpected response from backend"))}})})}function Pl(e,n,t,r,o){return ys.Delay(()=>{let i,s,u,c,a;const l="?"+pt("&",function(e,n){const t=Lt(),r=Qt((n,t)=>{const r=e(t);if(null==r)return n;{const e=new Bt(Ln(r),void 0);return n.tail=e,e}},t,n),o=Lt();return r.tail=o,Wt(t)}(e=>e,rr([(i=Pu(r.SearchText),ht(i)?void 0:"search="+encodeURIComponent(i)),($=r.Sort,s=[$.fields[0],$.fields[1]],1===s[0].tag?1===s[1].tag?"sort_by=name&sort_direction=desc":"sort_by=name&sort_direction=asc":1===s[1].tag?"sort_by=accountid&sort_direction=desc":"sort_by=accountid&sort_direction=asc"),(u=0|Ou(r.PageSize),u<=100&&u>=10?"page_size="+u:void 0)])));var $;const f=Nl(n,(c=ra(new Zc(0),ta((a=Il(e),`${a}/partners/${kt(t)}/accounts${l}`))),null==o?c:oa(new Jc(0,"token",o),c)));return ys.Bind(f,e=>{const n=e;if(1===n.tag)return ys.Return(new Hn(1,n.fields[0]));{const e=n.fields[0];if(200===e.statusCode){const n=rl(I(2,El(go(),new ha(1),void 0)),e.responseText);return ys.Return(n)}return ys.Return(new Hn(1,"Unexpected response from backend"))}})})}class Dl extends D{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Tab"]}}function Ol(e){return e.fields[0]}function Ml(e,n){const t=(null!=n?"border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300":"border-indigo-500 text-indigo-600")+" whitespace-nowrap py-4 px-1 border-b-2 font-medium text-sm";return r=No("a",k(kr(br(()=>Nr(Sr(["key",e]),br(()=>Nr(Sr(["children",e]),br(()=>Nr(Sr(["className",t]),br(()=>null!=n?Sr(["href",mu(Vt(Ln(n)),1)]):xr())))))))))),new Dl(0,r);var r}function Ul(e){let n,t;return No("div",k(rr([["className","border-b border-gray-200"],(n=[No("nav",k(rr([["className","-mb-px flex space-x-8"],["aria-label","Tabs"],(t=Mr(Ol,e),["children",Ki.Children.toArray(Array.from(t))])])))],["children",Ki.Children.toArray(Array.from(n))])])))}class Bl extends D{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["backend-url","access-token","partner-id","account-id"]}}function Rl(e){const n=e.accessToken,t=e.backendUrl,r=e.accountId;return No("superhero-profile-directory-app",fa(Tr(e=>e,[new Bl(1,n),new Bl(0,t),new Bl(2,e.partnerId.fields[0]),Fn(e=>new Bl(3,e.fields[0]),r)]),1))}class Ll extends D{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["backend-url","access-token","partner-id","account-id"]}}function Gl(e){const n=e.accessToken,t=e.backendUrl,r=e.accountId;return No("superhero-super-configuration",fa(Tr(e=>e,[new Ll(1,n),new Ll(0,t),new Ll(2,e.partnerId.fields[0]),Fn(e=>new Ll(3,e.fields[0]),r)]),1))}class jl extends D{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["backend-url","access-token","partner-id","account-id"]}}function Fl(e){const n=e.accessToken,t=e.backendUrl,r=e.accountId;return No("superhero-benefits-onboarding-configuration",fa(Tr(e=>e,[new jl(1,n),new jl(0,t),new jl(2,e.partnerId.fields[0]),Fn(e=>new jl(3,e.fields[0]),r)]),1))}class Hl extends D{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["backend-url","access-token","partner-id","account-id"]}}function Wl(e){const n=e.accessToken,t=e.backendUrl,r=e.accountId;return No("superhero-bank-details",fa(Tr(e=>e,[new Hl(1,n),new Hl(0,t),new Hl(2,e.partnerId.fields[0]),Fn(e=>new Hl(3,e.fields[0]),r)]),1))}function zl(e){return No("label",{className:"block text-sm font-medium text-gray-700 sm:mt-px sm:pt-2",children:e})}function ql(e){return No("div",{className:"mt-1 sm:mt-0 sm:col-span-2",children:Ki.Children.toArray([e])})}function Vl(e,n){let t;return No("div",k(rr([["className","sm:grid sm:grid-cols-4 sm:gap-4 sm:items-start sm:border-b sm:border-gray-200 sm:py-5"],(t=[zl(e),ql(n)],["children",Ki.Children.toArray(Array.from(t))])])))}function Zl(e){return No("input",{type:"text",className:"max-w-lg block w-full shadow-sm focus:ring-indigo-500 focus:border-indigo-500 sm:max-w-xs sm:text-sm border-gray-300 rounded-md",value:e,readOnly:!0})}function Jl(e){return No("textarea",{className:"max-w-lg shadow-sm block w-full focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm border-gray-300 rounded-md",value:e,readOnly:!0,rows:5})}function Xl(e){const n=Vt(No("div",{children:Ki.Children.toArray(Array.from(e))}));return No("form",{children:Ki.Children.toArray(Array.from(n))})}function Yl(e){let n;return No("div",k(rr([["className",pt(" ",["text-lg","leading-6","font-medium","text-gray-900"])],(n=[No("span",{children:[e]})],["children",Ki.Children.toArray(Array.from(n))])])))}function Kl(e,n){const t=rr([No("br",{}),Yl(e),No("div",{className:pt(" ",["px-6"]),children:Ki.Children.toArray(Array.from(n))})]);return No("div",{children:Ki.Children.toArray(Array.from(t))})}function Ql(e){return n=>Vl(e,Zl(n))}function e$(e){return Kl("Account Information",rr([Ql("ID")(e.StreamId),Ql("External ID")(jn(e.ExternalId,"")),Ql("Channel ID")(jn(e.ChannelId,"")),Ql("Name")(e.Name),Ql("Contact")(`${e.ContactDetails.FirstName} ${e.ContactDetails.LastName}`),Ql("Phone")(e.ContactDetails.MobilePhone),Ql("Email")(e.ContactDetails.Email),Ql("Website")(e.Website)]))}function n$(e){if(null==e)return null;{const n=e;return Kl("Legal Entity",rr([Ql("Business Name")(n.BusinessName),Ql("Business Number")(n.BusinessNumber),Ql("Address Line 1")(n.Address1),Ql("Address Line 2")(jn(n.Address2,"")),Ql("City")(n.City),Ql("State")(jn(n.State,"")),Ql("Postcode")(n.Postcode)]))}}function t$(e){if(null==e)return null;return Kl("Other details",Vt((n="Notes",e=>Vl(n,Jl(e)))(e)));var n}function r$(e){return Xl([e$(e),n$(e.LegalEntity),t$(e.Notes)])}function o$(e){const n=Vt(No("span",{children:[e.error]}));return No("div",{children:Ki.Children.toArray(Array.from(n))})}function i$(){const e=Vt(No("span",{children:["Please wait..."]}));return No("div",{children:Ki.Children.toArray(Array.from(e))})}class s$ extends D{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["LoadData"]}}class u$ extends L{constructor(e){super(),this.Data=e}}function c$(){return[new u$(new au(0)),fu()]}function a$(e,n){return[new u$(e.fields[0]),fu()]}class l$ extends D{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Details","ProfilesDirectory","SuperConfiguration","BenefitsOnboardingConfiguration","BankDetailsConfiguration"]}}function $$(e,n,t){let r,o,i,s,u,c,a,l,$,f,d,h,p,m,g,w,y,_,v,b;const C=[e,n];return Ul(1===t.tag?rr([Ml("Details",mu(Fu((r=C,new Lu(6,r[0],r[1]))),1)),Ml("Directory",void 0),Ml("Super",mu(Fu((o=C,new Lu(8,o[0],o[1]))),1)),Ml("Benefits Onboarding",mu(Fu((i=C,new Lu(9,i[0],i[1]))),1)),Ml("Bank Details",mu(Fu((s=C,new Lu(10,s[0],s[1]))),1))]):2===t.tag?rr([Ml("Details",mu(Fu((u=C,new Lu(6,u[0],u[1]))),1)),Ml("Directory",mu(Fu((c=C,new Lu(7,c[0],c[1]))),1)),Ml("Super",void 0),Ml("Benefits Onboarding",mu(Fu((a=C,new Lu(9,a[0],a[1]))),1)),Ml("Bank Details",mu(Fu((l=C,new Lu(10,l[0],l[1]))),1))]):3===t.tag?rr([Ml("Details",mu(Fu(($=C,new Lu(6,$[0],$[1]))),1)),Ml("Directory",mu(Fu((f=C,new Lu(7,f[0],f[1]))),1)),Ml("Super",mu(Fu((d=C,new Lu(8,d[0],d[1]))),1)),Ml("Benefits Onboarding",void 0),Ml("Bank Details",mu(Fu((h=C,new Lu(10,h[0],h[1]))),1))]):4===t.tag?rr([Ml("Details",mu(Fu((p=C,new Lu(6,p[0],p[1]))),1)),Ml("Directory",mu(Fu((m=C,new Lu(7,m[0],m[1]))),1)),Ml("Super",mu(Fu((g=C,new Lu(8,g[0],g[1]))),1)),Ml("Benefits Onboarding",mu(Fu((w=C,new Lu(9,w[0],w[1]))),1)),Ml("Bank Details",void 0)]):rr([Ml("Details",void 0),Ml("Directory",mu(Fu((y=C,new Lu(7,y[0],y[1]))),1)),Ml("Super",mu(Fu((_=C,new Lu(8,_[0],_[1]))),1)),Ml("Benefits Onboarding",mu(Fu((v=C,new Lu(9,v[0],v[1]))),1)),Ml("Bank Details",mu(Fu((b=C,new Lu(10,b[0],b[1]))),1))]))}function f$(e,n,t){switch(n.tag){case 1:{const n=e.accountDetails;return No(Rl,{partnerId:n[0],accountId:n[1],backendUrl:e.backendUrl,accessToken:e.accessToken})}case 2:{const n=e.accountDetails;return No(Gl,{partnerId:n[0],accountId:n[1],backendUrl:e.backendUrl,accessToken:e.accessToken})}case 3:{const n=e.accountDetails;return No(Fl,{partnerId:n[0],accountId:n[1],backendUrl:e.backendUrl,accessToken:e.accessToken})}case 4:{const n=e.accountDetails;return No(Wl,{partnerId:n[0],accountId:n[1],backendUrl:e.backendUrl,accessToken:e.accessToken})}default:{const e=t.Data;let n,r,o;switch(0===e.tag||1===e.tag?n=2:3===e.tag?(n=3,o=e.fields[0]):0===e.fields[0].tag?(n=0,r=e.fields[0].fields[0]):n=1,n){case 0:return No(r$,r);case 1:return No(o$,{error:"There was an error retrieving account "});case 2:return No(i$,null);case 3:return No(o$,{error:P(o)})}}}}function d$(e){let n,t,r;const o=e.mode,i=e.props,s=Vc(c$,a$,[]);return ss((n=[()=>{const e=i.accountDetails;return n=i.backendUrl,t=i.accessToken,r=e[0],o=e[1],ys.Delay(()=>{let e;const i=Nl(t,ra(new Zc(0),ta((e=Il(n),`${e}/partners/${r.fields[0]}/accounts/${o.fields[0]}`))));return ys.Bind(i,e=>{const n=e;if(1===n.tag)return ys.Return(new Hn(1,n.fields[0]));{const e=n.fields[0];if(200===e.statusCode){const n=rl(I(2,El(fo(),new ha(1),void 0)),e.responseText);return ys.Return(n)}return ys.Return(new Hn(1,"Unexpected response from backend"))}})});var n,t,r,o},e=>{s[1](new s$(0,e))}],$u(n[0],n[1]))),No("div",k(Vt((t=[(r=i.accountDetails,$$(r[0],r[1],o)),f$(i,o,s[0])],["children",Ki.Children.toArray(Array.from(t))]))))}class h$ extends D{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["UpdateSearchText","UpdateSort","LoadAccountLookup","UpdateAccountLookup","QueryAccountLookup"]}}class p${constructor(e){this.props=e}}function m$(e){return n=>t=>ys.Delay(()=>{const r=Al(e.props.partnerId);return ys.Bind(Pl(e.props.backendUrl,e.props.accessToken,r,n,void 0),e=>(t(new h$(2,new au(2,e))),ys.Zero()))})}class g$ extends L{constructor(e,n,t,r){super(),this.Data=e,this.SearchText=n,this.Sort=t,this.PageSize=r}}function w$(){return[new g$(new au(0),Tu,Eu,(e=20,new Du(0,e))),fu()];var e}class y$ extends D{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["ColumnHeader"]}}function _$(e){return new y$(0,e)}function v$(e){return e.fields[0]}class b$ extends D{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["RowCell"]}}function C$(e){return new b$(0,e)}function x$(e){return e.fields[0]}function S$(e){return _$(No("th",k(rr([["className","px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider"],["scope","col"],["children",e]]))))}function E$(e,n){let t;return C$(No("td",k(rr([["className","px-6 py-4 whitespace-nowrap text-sm"],(t=[No("a",{className:"text-indigo-600 hover:text-indigo-900",children:n,href:e})],["children",Ki.Children.toArray(Array.from(t))])]))))}function k$(e,n){return C$(No("td",{className:pt(" ",Nr(e,["px-6","py-4","whitespace-nowrap","text-sm"])),children:n}))}function A$(e){return["fillRule",e]}function I$(e){return["clipRule",e]}const N$=No("svg",k(rr([["className",pt(" ",["h-5","w-5"])],["fill","currentColor"],["viewBox","0 0 20 20"],["xmlns","http://www.w3.org/2000/svg"],(()=>{const e=Vt(No("path",k(rr([["d","M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z"],A$("evenodd"),I$("evenodd")]))));return["children",Ki.Children.toArray(Array.from(e))]})()]))),T$=No("svg",k(rr([["className",pt(" ",["h-5","w-5"])],["fill","currentColor"],["viewBox","0 0 20 20"],["xmlns","http://www.w3.org/2000/svg"],(()=>{const e=Vt(No("path",k(rr([["d","M14.707 12.707a1 1 0 01-1.414 0L10 9.414l-3.293 3.293a1 1 0 01-1.414-1.414l4-4a1 1 0 011.414 0l4 4a1 1 0 010 1.414z"],A$("evenodd"),I$("evenodd")]))));return["children",Ki.Children.toArray(Array.from(e))]})()])));function P$(e,n,t,r){let o,i,s;return _$(No("th",k(rr([["className",pt(" ",["px-6","py-3","text-left","text-xs","font-medium","text-gray-500","sm:pl-6","uppercase","tracking-wider"])],["scope","col"],(o=[No("a",k(rr([["className",pt(" ",["group","inline-flex","cursor-pointer"])],["onClick",t],(i=[r,No("span",k(rr([["className",pt(" ",(u=!e,c=Vt("invisible"),a=rr(["ml-2","flex-none","rounded","text-gray-400","group-hover:visible","group-focus:visible"]),u?ir(a,c):a))],(s=kr(br(()=>Sr(n?N$:T$))),["children",Ki.Children.toArray(Array.from(s))])])))],["children",Ki.Children.toArray(Array.from(i))])])))],["children",Ki.Children.toArray(Array.from(o))])]))));var u,c,a}function D$(e,n){return P$(v(ku(e.Sort),new bu(1)),v(Au(e.Sort),new Cu(0)),t=>{n(new h$(1,Iu(new bu(1),e.Sort)))},"Name")}function O$(e,n){return P$(v(ku(e.Sort),new bu(0)),v(Au(e.Sort),new Cu(0)),t=>{n(new h$(1,Iu(new bu(0),e.Sort)))},"Id")}function M$(e,n){return kr(br(()=>{let t;return Nr(Sr(function(e,n,t,r){let o;return C$(No("td",k(rr([["className","px-6 py-2 whitespace-nowrap text-sm align-top"],(o=kr(br(()=>Nr(Sr(No("a",{className:"text-indigo-600 hover:text-indigo-900",children:n,href:e})),br(()=>{let e,n;return Nr((e=r,null==e?Sr(null):(n=e,Nr(Sr(No("br",{})),br(()=>{let e;return Sr((e="Channel ID: "+n,No("span",{children:[e]})))})))),br(()=>{const e=t;if(null==e)return Sr(null);{const n=e;return Nr(Sr(No("br",{})),br(()=>{let e;return Sr((e="External ID: "+n,No("span",{children:[e]})))}))}}))})))),["children",Ki.Children.toArray(Array.from(o))])]))))}(mu(Fu((t=[e,new Xr(0,n.AccountId)],new Lu(6,t[0],t[1]))),1),n.AccountId,n.ExternalId,n.ChannelId)),br(()=>Nr(Sr(function(e,n,t){let r;return C$(No("td",k(rr([["className",pt(" ",["text-gray-500","px-6","py-2","whitespace-nowrap","text-sm","align-top"])],(r=kr(br(()=>{let r;return Nr(Sr(No("div",k(rr([["className",pt(" ",["font-medium"])],(r=[No("span",{children:[e]})],["children",Ki.Children.toArray(Array.from(r))])])))),br(()=>{let e,r;return Nr((e=n,Sr(null==e?null:(r="Legal Entity: "+e,No("span",{children:[r]})))),br(()=>{const e=t;if(null==e)return Sr(null);{const n=e;return Nr(Sr(No("br",{})),br(()=>{let e;return Sr((e="ABN: "+n,No("span",{children:[e]})))}))}}))}))})),["children",Ki.Children.toArray(Array.from(r))])]))))}(n.Name,n.BusinessName,n.BusinessNumber)),br(()=>Nr(Sr(function(e,n){let t;return C$(No("td",k(rr([["className",pt(" ",["text-gray-500","px-6","py-2","whitespace-nowrap","text-sm","align-top"])],(t=[No("span",{children:[e]}),No("br",{}),No("span",{children:[n]})],["children",Ki.Children.toArray(Array.from(t))])]))))}(n.Contact,n.ContactMobilePhone)),br(()=>{return Sr((e=n.Website,C$(No("td",{className:pt(" ",["px-6","py-2","whitespace-nowrap","text-sm","text-gray-500","align-top"]),children:e}))));var e}))))))}))}class U$ extends L{constructor(e,n){super(),this.Data=e,this.LoadNext=n}}class B$ extends D{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Resolved","InProgress"]}}class R$ extends D{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Known","Unknown"]}}function L$(e,n){let t;return No("tr",k(rr([["className",e%2==0?"bg-white":"bg-gray-50"],(t=Mr(x$,n),["children",Ki.Children.toArray(Array.from(t))])])))}function G$(e,n){const t=fs(1),r=t[1],o=0|t[0];return[o,t=>{if(o===e)if(null==n);else{const e=n;at(e=>console.log(e),ct("Calling Load")),e(),r(o+1)}else r(o+1)},e=>{r(o-1)}]}function j$(e){let n,t,r,o,i;const s=e.data,u=e.pageSize,c=e.renderRowCells,a=e.columnHeaders,l=($=u,f=s.Data,rr(Nt(rr,Ot($,Kt(f)))));var $,f;const d=G$(Jt(l),s.LoadNext),h=0|d[0],p=d[1];let m;const g=lr(h-1,l);m=null==g?new B$(1):new B$(0,g);const w=0|Jt(s.Data),y=null==s.LoadNext?new R$(0,w):new R$(1),_=1===m.tag?void 0:w>=1?(h-1)*u+1:void 0,v=1===m.tag?void 0:w>=1?(h-1)*u+Jt(m.fields[0]):void 0,b=1===h?void 0:d[2],C=h===Jt(l)?null!=s.LoadNext?p:void 0:h<Jt(l)?p:void 0;return No("div",k(rr([["className","flex flex-col mt-4"],(n=[No("div",k(rr([["className","-my-2 overflow-x-auto sm:-mx-6 lg:-mx-8"],(t=[No("div",k(rr([["className","py-2 align-middle inline-block min-w-full sm:px-6 lg:px-8"],(r=[No("div",k(rr([["className","shadow overflow-hidden border-b border-gray-200 sm:rounded-lg"],(o=[No("table",k(rr([["className","min-w-full divide-y divide-gray-200"],(i=kr(br(()=>Nr(Sr(function(e){let n;return No("thead",{className:"bg-gray-50",children:(n=Mr(v$,e),No("tr",{children:Ki.Children.toArray(Array.from(n))}))})}(a)),br(()=>{let e,n;return Nr((e=m,1===e.tag?Sr(null):Sr((n=Ur(L$,c(e.fields[0])),No("tbody",{children:Ki.Children.toArray(Array.from(n))})))),br(()=>Sr(function(e,n,t,r,o,i){let s,u,c,a,l,$;const f=[n,t];let d,h,p;switch(null!=f[0]&&null!=f[1]?(d=0,h=f[0],p=f[1]):d=1,d){case 0:$=kr(br(()=>Nr(Sr("Showing "),br(()=>Nr(Sr(No("span",{className:"font-medium",children:""+h})),br(()=>Nr(Sr(" to "),br(()=>Nr(Sr(No("span",{className:"font-medium",children:""+p})),br(()=>Nr(Sr(" of "),br(()=>1===r.tag?Vt(" many"):rr([No("span",{className:"font-medium",children:P(r.fields[0])})," results"])))))))))))));break;case 1:$=Vt(null)}const m=kr(br(()=>{let e,n;return Nr((e=i,null==e?Sr(null):(n=e,Sr(No("a",{className:pt(" ",["relative","inline-flex","items-center","px-4","py-2","border","border-gray-300","text-sm","font-medium","rounded-md","text-gray-700","bg-white","hover:bg-gray-50","cursor-pointer"]),onClick:n,children:"Previous "})))),br(()=>{const e=o;if(null==e)return Sr(null);{const n=e;return Sr(No("a",{className:pt(" ",["ml-3","relative","inline-flex","items-center","px-4","py-2","border","border-gray-300","text-sm","font-medium","rounded-md","text-gray-700","bg-white","hover:bg-gray-50","cursor-pointer"]),onClick:n,children:" Next"}))}}))}));return No("tfoot",k(rr([["className",pt(" ",["w-full"])],(s=[No("tr",k(Vt((u=[No("td",k(rr([["colSpan",e],(c=[No("nav",k(rr([["className",pt(" ",["bg-white","px-4","py-3","flex","items-center","justify-between","border-t-1","border-gray-200","sm:px-6"])],(a=[No("div",k(rr([["className",pt(" ",["hidden","sm:block"])],(l=[No("p",{className:pt(" ",["text-sm","text-gray-700"]),children:Ki.Children.toArray(Array.from($))})],["children",Ki.Children.toArray(Array.from(l))])]))),No("div",{className:pt(" ",["flex-1","flex","justify-between","sm:justify-end"]),children:Ki.Children.toArray(Array.from(m))})],["children",Ki.Children.toArray(Array.from(a))])])))],["children",Ki.Children.toArray(Array.from(c))])])))],["children",Ki.Children.toArray(Array.from(u))]))))],["children",Ki.Children.toArray(Array.from(s))])])))}(Jt(a),_,v,y,C,b))))})))),["children",Ki.Children.toArray(Array.from(i))])])))],["children",Ki.Children.toArray(Array.from(o))])])))],["children",Ki.Children.toArray(Array.from(r))])])))],["children",Ki.Children.toArray(Array.from(t))])])))],["children",Ki.Children.toArray(Array.from(n))])])))}function F$(e,n){let t,r;return No("div",k(rr([["className",pt(" ",["flex-grow","max-w-md"])],(t=[No("label",{for:"search",children:"Search",className:pt(" ",["block","text-sm","font-medium","text-gray-700"])}),No("div",k(rr([["className","mt-1"],(r=[No("input",{id:"search",name:"search",type:"text",className:pt(" ",["py-2","shadow-sm","focus:ring-indigo-500","focus:border-indigo-500","block","w-full","sm:text-sm","border-gray-300","rounded-md"]),placeholder:"Account Id, Name or Legal Entity",value:e,onChange:e=>{n(e.target.value)}})],["children",Ki.Children.toArray(Array.from(r))])])))],["children",Ki.Children.toArray(Array.from(t))])])))}function H$(e){let n,t;return No("div",k(rr([["className","pt-6"],(n=[No("div",k(rr([["className",pt(" ",["flex","justify-end"])],(t=[No("button",{type:"search",children:"Search",className:pt(" ",["ml-3","inline-flex","justify-center","py-2","px-4","border","border-transparent","shadow-sm","text-sm","font-medium","rounded-md","text-white","bg-indigo-600","hover:bg-indigo-700","focus:outline-none","focus:ring-2","focus:ring-offset-2","focus:ring-indigo-500"]),onClick:e})],["children",Ki.Children.toArray(Array.from(t))])])))],["children",Ki.Children.toArray(Array.from(n))])])))}function W$(e){let n,t,r,o,i,s,u;const c=function(e){return new p$(e)}(e),a=Vc(w$,(e,n)=>function(e,n,t){let r,o,i,s;switch(n.tag){case 1:{const r=n.fields[0];return[new g$(new au(1),t.SearchText,r,t.PageSize),du(n=>{const o=new Mu(t.SearchText,r,t.PageSize);Es(m$(e)(o)(n))})]}case 2:return[new g$(n.fields[0],t.SearchText,t.Sort,t.PageSize),fu()];case 3:return[new g$((r=[t.Data,n.fields[0]],2===r[0].tag?0===r[0].fields[0].tag?(o=r[1],1===o.tag?new au(2,new Hn(1,o.fields[0])):new au(2,new Hn(0,new mo(ir(r[0].fields[0].fields[0].Accounts,o.fields[0].Accounts),o.fields[0].Token)))):(i=r[1],1===i.tag?new au(2,new Hn(1,i.fields[0])):new au(3,new Error("Failed to retrieve the account data"))):(s=r[1],1===s.tag?new au(2,new Hn(1,s.fields[0])):new au(3,new Error("Failed to retrieve the account data")))),t.SearchText,t.Sort,t.PageSize),fu()];case 4:return[new g$(new au(1),t.SearchText,t.Sort,t.PageSize),du(n=>{const r=new Mu(t.SearchText,t.Sort,t.PageSize);Es(m$(e)(r)(n))})];default:return[new g$(t.Data,(u=n.fields[0],new Nu(0,u.trim())),t.Sort,t.PageSize),fu()]}var u}(c,e,n),[]),l=a[0],$=a[1],f=new Mu(l.SearchText,l.Sort,l.PageSize);ss((n=[()=>function(e,n,t){return Pl(e.props.backendUrl,e.props.accessToken,Al(e.props.partnerId),n,void 0)}(c,f),e=>{$(new h$(2,e))}],$u(n[0],n[1])));const d=l.Data;let h,p,m,g;switch(0===d.tag||1===d.tag?h=2:3===d.tag?(h=3,g=d.fields[0]):1===d.fields[0].tag?(h=1,m=d.fields[0].fields[0]):(h=0,p=d.fields[0].fields[0]),h){case 0:{const n=rr([No("div",k(rr([["className",pt(" ",["grid","grid-cols-2","pt-2","sm:-mr-6","lg:mr-0"])],(t=[No("div",k(rr([["className",pt(" ",["flex","flex-row","gap-4","sm:-mr-6","lg:mr-0"])],(r=[F$(Pu(l.SearchText),e=>{$(new h$(0,e))}),H$(e=>{$(new h$(4))})],["children",Ki.Children.toArray(Array.from(r))])])))],["children",Ki.Children.toArray(Array.from(t))])]))),(o=p,i=rr([O$(l,$),D$(l,$),S$("Contact"),S$("Website")]),s=new U$(o.Accounts,Fn(e=>n=>{var t;Es((t=c,e=>n=>r=>ys.Delay(()=>{const o=Al(t.props.partnerId);return ys.Bind(Pl(t.props.backendUrl,t.props.accessToken,o,e,n),e=>(r(new h$(3,e)),ys.Zero()))}))(f)(e)($))},o.Token)),u=0|Ou(l.PageSize),No(j$,{columnHeaders:i,renderRowCells:n=>ur(n=>M$(e.partnerId,n),n),pageSize:u,data:s}))]);return No("div",{children:Ki.Children.toArray(Array.from(n))})}case 1:return No(o$,{error:m});case 2:return No(i$,null);case 3:return No(o$,{error:P(g)})}}function z$(e){let n;return No("div",k(rr([["className",pt(" ",["text-lg","leading-6","font-medium","text-gray-900"])],(n=[No("span",{children:[e]})],["children",Ki.Children.toArray(Array.from(n))])])))}function q$(e,n){const t=rr([No("br",{}),z$(e),No("div",{className:pt(" ",["px-6"]),children:Ki.Children.toArray(Array.from(n))})]);return No("div",{children:Ki.Children.toArray(Array.from(t))})}function V$(e){return Xl([q$("Partner Information",rr([Vl("ID",Zl(kt(e.StreamId))),Vl("Name",Zl(Kr(e.Name))),Vl("Contact",Zl(`${eo(e.ContactDetails.FirstName)} ${no(e.ContactDetails.LastName)}`)),Vl("Phone",Zl(ro(e.ContactDetails.MobilePhone))),Vl("Website",Zl(Qr(e.Website))),Vl("Notes",Jl(jn((n=e.Notes,null!=n?n.fields[0]:void 0),"")))]))]);var n}class Z$ extends D{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Details","AccountList","SuperConfiguration","BenefitsOnboardingConfiguration","BankDetailsConfiguration"]}}class J$ extends L{constructor(e,n,t){super(),this.PartnerId=e,this.BackendUrl=n,this.AccessToken=t}}class X$ extends L{constructor(e,n,t){super(),this.PartnerId=e,this.BackendUrl=n,this.AccessToken=t}}class Y$ extends L{constructor(e,n,t){super(),this.PartnerId=e,this.BackendUrl=n,this.AccessToken=t}}function K$(e){let n,t,r,o,i;return Ul(1===e.tag?(n=e.fields[0],rr([Ml("Details",mu(Fu(new Lu(1,n.partnerId)),1)),Ml("Accounts",void 0),Ml("Super",mu(Fu(new Lu(3,n.partnerId)),1)),Ml("Benefits Onboarding",mu(Fu(new Lu(4,n.partnerId)),1)),Ml("Bank Details",mu(Fu(new Lu(5,n.partnerId)),1))])):2===e.tag?(t=e.fields[0].PartnerId,rr([Ml("Details",mu(Fu(new Lu(1,t)),1)),Ml("Accounts",mu(Fu(new Lu(2,t)),1)),Ml("Super",void 0),Ml("Benefits Onboarding",mu(Fu(new Lu(4,t)),1)),Ml("Bank Details",mu(Fu(new Lu(5,t)),1))])):3===e.tag?(r=e.fields[0].PartnerId,rr([Ml("Details",mu(Fu(new Lu(1,r)),1)),Ml("Accounts",mu(Fu(new Lu(2,r)),1)),Ml("Super",mu(Fu(new Lu(3,r)),1)),Ml("Benefits Onboarding",void 0),Ml("Bank Details",mu(Fu(new Lu(5,r)),1))])):4===e.tag?(o=e.fields[0].PartnerId,rr([Ml("Details",mu(Fu(new Lu(1,o)),1)),Ml("Accounts",mu(Fu(new Lu(2,o)),1)),Ml("Super",mu(Fu(new Lu(3,o)),1)),Ml("Benefits Onboarding",mu(Fu(new Lu(4,o)),1)),Ml("Bank Details",void 0)])):(i=e.fields[0],rr([Ml("Details",void 0),Ml("Accounts",mu(Fu(new Lu(2,new Zr(0,kt(i.StreamId)))),1)),Ml("Super",mu(Fu(new Lu(3,new Zr(0,kt(i.StreamId)))),1)),Ml("Benefits Onboarding",mu(Fu(new Lu(4,new Zr(0,kt(i.StreamId)))),1)),Ml("Bank Details",mu(Fu(new Lu(5,new Zr(0,kt(i.StreamId)))),1))])))}function Q$(e){switch(e.tag){case 1:{const n=e.fields[0];return No(W$,{accessToken:n.accessToken,backendUrl:n.backendUrl,partnerId:n.partnerId})}case 2:return No(Gl,{partnerId:e.fields[0].PartnerId,accountId:void 0,backendUrl:e.fields[0].BackendUrl,accessToken:e.fields[0].AccessToken});case 3:return No(Fl,{partnerId:e.fields[0].PartnerId,accountId:void 0,backendUrl:e.fields[0].BackendUrl,accessToken:e.fields[0].AccessToken});case 4:return No(Wl,{partnerId:e.fields[0].PartnerId,accountId:void 0,backendUrl:e.fields[0].BackendUrl,accessToken:e.fields[0].AccessToken});default:return No(V$,e.fields[0])}}function ef(e){let n;const t=e.mode;return No("div",k(Vt((n=[K$(t),Q$(t)],["children",Ki.Children.toArray(Array.from(n))]))))}function nf(e){const n=e.partnerList;return function(e,n){let t,r,o,i,s,u,c;return No("div",k(rr([["className","flex flex-col mt-4"],(t=[No("div",k(rr([["className","-my-2 overflow-x-auto sm:-mx-6 lg:-mx-8"],(r=[No("div",k(rr([["className","py-2 align-middle inline-block min-w-full sm:px-6 lg:px-8"],(o=[No("div",k(rr([["className","shadow overflow-hidden border-b border-gray-200 sm:rounded-lg"],(i=[No("table",k(rr([["className","min-w-full divide-y divide-gray-200"],(s=[No("thead",{className:"bg-gray-50",children:(u=Mr(v$,e),No("tr",{children:Ki.Children.toArray(Array.from(u))}))}),(c=Ur((e,n)=>(n=>{let t;return No("tr",k(rr([["className",e%2==0?"bg-white":"bg-gray-50"],(t=Mr(x$,n),["children",Ki.Children.toArray(Array.from(t))])])))})(n),n),No("tbody",{children:Ki.Children.toArray(Array.from(c))}))],["children",Ki.Children.toArray(Array.from(s))])])))],["children",Ki.Children.toArray(Array.from(i))])])))],["children",Ki.Children.toArray(Array.from(o))])])))],["children",Ki.Children.toArray(Array.from(r))])])))],["children",Ki.Children.toArray(Array.from(t))])])))}(rr([S$("ID"),S$("Name"),S$("Contact"),S$("Phone"),S$("Website")]),ur(e=>{let n;const t=kt(e.StreamId);return rr([(n=[mu(Fu(new Lu(1,new Zr(0,t))),1),t],E$(n[0],n[1])),k$(["text-gray-500"],Kr(e.Name)),k$(["text-gray-500"],`${eo(e.ContactDetails.FirstName)} ${no(e.ContactDetails.LastName)}`),k$(["text-gray-500"],ro(e.ContactDetails.MobilePhone)),k$(["text-gray-500"],Qr(e.Website))])},n))}var tf=Ai((function(e,n){return No("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:n},e),No("path",{fillRule:"evenodd",d:"M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z",clipRule:"evenodd"}))}));class rf extends D{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["BreadCrumb"]}}function of(e){let n,t;return No("nav",k(rr([["className","pt-2"],["aria-label","Breadcrumb"],(n=[No("ol",k(rr([["className","-ml-3 max-w-screen-xl w-full flex space-x-4"],(t=sr((e,n)=>function(e,n,t,r){let o,i;return No("li",k(rr([["key",e],["className","flex"],(o=[No("div",k(rr([["className","flex items-center"],(i=kr(br(()=>{let r;return Nr(t?xr():Sr((r={className:"flex-shrink-0 h-5 w-5 text-gray-400"},No(tf,r))),br(()=>Sr(No("a",k(kr(br(()=>Nr(Sr(["children",e]),br(()=>Nr(null!=n?Sr(["href",mu(Ln(n),1)]):xr(),br(()=>Sr(["className","ml-4 text-sm font-medium text-gray-500 hover:text-gray-700"]))))))))))))})),["children",Ki.Children.toArray(Array.from(i))])])))],["children",Ki.Children.toArray(Array.from(o))])])))}(n.fields[0][0],n.fields[0][1],0===e),e),["children",Ki.Children.toArray(Array.from(t))])])))],["children",Ki.Children.toArray(Array.from(n))])])))}function sf(e){let n,t,r,o,i,s,u,c,a,l,$,f,d,h,p,m,g,w,y,_,v;const b=e.page,C=()=>new rf(0,["Partners",Fu(new Lu(0))]),x=e=>new rf(0,[uo(e),Fu(new Lu(1,e))]),S=e=>new rf(0,["Accounts",Fu(new Lu(2,e))]),E=e=>new rf(0,[co(e),void 0]);return of(11===b.tag?Vt(C()):1===b.tag?rr([C(),x(b.fields[0])]):2===b.tag?(n=b.fields[0],rr([C(),x(n),S(n)])):3===b.tag?(t=b.fields[0],rr([C(),x(t),new rf(0,["Super",Fu(new Lu(3,t))])])):4===b.tag?(r=b.fields[0],rr([C(),x(r),new rf(0,["Benefits Onboarding",Fu(new Lu(4,r))])])):5===b.tag?(o=b.fields[0],rr([C(),x(o),new rf(0,["Bank Details",Fu(new Lu(5,o))])])):6===b.tag?(i=b.fields[0],rr([C(),x(i),S(i),E(b.fields[1])])):7===b.tag?(s=b.fields[0],u=b.fields[1],rr([C(),x(s),S(s),E(u),(c=[s,u],new rf(0,["Directory",Fu((a=[c[0],c[1]],new Lu(7,a[0],a[1])))]))])):8===b.tag?(l=b.fields[0],$=b.fields[1],rr([C(),x(l),S(l),E($),(f=[l,$],new rf(0,["Super",Fu((d=[f[0],f[1]],new Lu(8,d[0],d[1])))]))])):9===b.tag?(h=b.fields[0],p=b.fields[1],rr([C(),x(h),S(h),E(p),(m=[h,p],new rf(0,["Benefits Onboarding",Fu((g=[m[0],m[1]],new Lu(9,g[0],g[1])))]))])):10===b.tag?(w=b.fields[0],y=b.fields[1],rr([C(),x(w),S(w),E(y),(_=[w,y],new rf(0,["Bank Details",Fu((v=[_[0],_[1]],new Lu(10,v[0],v[1])))]))])):Vt(C()))}function uf(){return(uf=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function cf(e){this.getChildContext=function(){return e.context};var n=e.children,t=function(e,n){if(null==e)return{};var t,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n.indexOf(t=i[r])>=0||(o[t]=e[t]);return o}(e,["context","children"]);return Qo(n,t)}function af(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=No(cf,uf({},this._props,{context:e.detail.context}),function e(n,t){if(3===n.nodeType)return n.data;if(1!==n.nodeType)return null;var r=[],o={},i=0,s=n.attributes,u=n.childNodes;for(i=s.length;i--;)"slot"!==s[i].name&&(o[s[i].name]=s[i].value,o[lf(s[i].name)]=s[i].value);for(i=u.length;i--;){var c=e(u[i],null),a=u[i].slot;a?o[a]=No(df,{name:a},c):r[i]=c}var l=t?No(df,null,r):r;return No(t||n.nodeName.toLowerCase(),o,l)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?Ko:Yo)(this._vdom,this._root)}function lf(e){return e.replace(/-(\w)/g,(function(e,n){return n?n.toUpperCase():""}))}function $f(e,n,t){if(this._vdom){var r={};r[e]=t=null==t?void 0:t,r[lf(e)]=t,this._vdom=Qo(this._vdom,r),Yo(this._vdom,this._root)}}function ff(){Yo(this._vdom=null,this._root)}function df(e,n){var t=this;return No("slot",uf({},e,{ref:function(e){e?(t.ref=e,t._listener||(t._listener=function(e){e.stopPropagation(),e.detail.context=n},e.addEventListener("_preact",t._listener))):t.ref.removeEventListener("_preact",t._listener)}}))}class hf extends L{constructor(e,n){super(),this.Data=e,this.CurrentPage=n}}function pf(){return vn("AccountRegistry.AdminUI.App.State",[],hf,()=>[["Data",lu(bn("Microsoft.FSharp.Core.FSharpResult`2",[zu(),En],Hn,()=>[[["ResultValue",zu()]],[["ErrorValue",En]]]))],["CurrentPage",Gu()]])}class mf extends D{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["PageChanged","LoadData"]}}function gf(){return bn("AccountRegistry.AdminUI.App.Msg",[],mf,()=>[[["Item",Gu()]],[["Item",lu(bn("Microsoft.FSharp.Core.FSharpResult`2",[zu(),En],Hn,()=>[[["ResultValue",zu()]],[["ErrorValue",En]]]))]]])}function wf(){const e=ju(wu(window.location.hash,1));return[new hf(new au(0),e),11===e.tag?Hu(new Lu(0)):fu()]}function yf(e,n){if(0===e.tag){const t=e.fields[0];return 11===t.tag?[n,Hu(t)]:[new hf(n.Data,t),fu()]}return[new hf(e.fields[0],n.CurrentPage),fu()]}function _f(e){let n;const t=Vc(wf,yf,[]),r=t[0],o=t[1];ss($u(()=>{return n=e.backendUrl,t=e.accessToken,ys.Delay(()=>{const e=Tl(n,t);return ys.Bind(e,e=>{let n;const t=e;return n=1===t.tag?new Hn(1,t.fields[0]):new Hn(0,new Wu(t.fields[0])),ys.Return(n)})});var n,t},e=>{o(new mf(1,e))}));const i=(n,t)=>No(d$,{props:{accessToken:e.accessToken,accountDetails:[n[0],n[1]],backendUrl:e.backendUrl},mode:t});let s;const u=r.Data;let c,a,l,$;switch(1===u.tag?c=0:2===u.tag?1===u.fields[0].tag?(c=2,l=u.fields[0].fields[0]):(c=1,a=u.fields[0].fields[0]):3===u.tag?(c=3,$=u.fields[0]):c=0,c){case 0:s=No(i$,null);break;case 1:{const n=r.CurrentPage;switch(n.tag){case 1:{const e=(f=a.Partners,d=uo(n.fields[0]),ar(e=>kt(e.StreamId)===d,f));if(null==e)s=No(o$,{error:"Unknown Partner"});else{s=No(ef,{mode:new Z$(0,e)})}break}case 2:s=No(ef,{mode:new Z$(1,{accessToken:e.accessToken,backendUrl:e.backendUrl,partnerId:n.fields[0]})});break;case 3:s=No(ef,{mode:new Z$(2,new J$(n.fields[0],e.backendUrl,e.accessToken))});break;case 4:s=No(ef,{mode:new Z$(3,new X$(n.fields[0],e.backendUrl,e.accessToken))});break;case 5:s=No(ef,{mode:new Z$(4,new Y$(n.fields[0],e.backendUrl,e.accessToken))});break;case 6:s=i([n.fields[0],n.fields[1]],new l$(0));break;case 7:s=i([n.fields[0],n.fields[1]],new l$(1));break;case 8:s=i([n.fields[0],n.fields[1]],new l$(2));break;case 9:s=i([n.fields[0],n.fields[1]],new l$(3));break;case 10:s=i([n.fields[0],n.fields[1]],new l$(4));break;default:s=No(nf,{partnerList:a.Partners})}break}case 2:s=No(o$,{error:l});break;case 3:s=No(o$,{error:P($)});break}var f,d;return yu(k(rr([["onUrlChanged",e=>{o(new mf(0,ju(e)))}],(n=rr([No(sf,{page:r.CurrentPage}),s]),["application",No(Po,{},...n)])])))}(function(e,n,t,r){function o(){var n=Reflect.construct(HTMLElement,[],o);return n._vdomComponent=e,n._root=r&&r.shadow?n.attachShadow({mode:"open"}):n,n}(o.prototype=Object.create(HTMLElement.prototype)).constructor=o,o.prototype.connectedCallback=af,o.prototype.attributeChangedCallback=$f,o.prototype.disconnectedCallback=ff,t=t||e.observedAttributes||Object.keys(e.propTypes||{}),o.observedAttributes=t,t.forEach((function(e){Object.defineProperty(o.prototype,e,{get:function(){return this._vdom.props[e]},set:function(n){this._vdom?this.attributeChangedCallback(e,null,n):(this._props||(this._props={}),this._props[e]=n,this.connectedCallback());var t=typeof n;null!=n&&"string"!==t&&"boolean"!==t&&"number"!==t||this.setAttribute(e,n)}})})),customElements.define(n||e.tagName||e.displayName||e.name,o)})(e=>No(_f,e),"superhero-account-registry")}]);
1
+ (()=>{"use strict";function e(e){return Array.isArray(e)||ArrayBuffer.isView(e)}function n(e){return"function"==typeof e.GetHashCode}function t(e){return null!=e&&"function"==typeof e.Dispose}function r(e){t(e)&&e.Dispose()}function o(e,n){var t,r;return(null===(t=Object.getPrototypeOf(e))||void 0===t?void 0:t.constructor)===(null===(r=Object.getPrototypeOf(n))||void 0===r?void 0:r.constructor)}class i{constructor(e){this.iter=e}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current}"System.Collections.IEnumerator.get_Current"(){return this.current}"System.Collections.IEnumerator.MoveNext"(){const e=this.iter.next();return this.current=e.value,!e.done}"System.Collections.IEnumerator.Reset"(){throw new Error("JS iterators cannot be reset")}Dispose(){}}function s(e){return"function"==typeof e.GetEnumerator?e.GetEnumerator():new i(e[Symbol.iterator]())}function u(e){return{[Symbol.iterator](){return this},next(){const n=e["System.Collections.IEnumerator.MoveNext"]();return{done:!n,value:n?e["System.Collections.IEnumerator.get_Current"]():void 0}}}}function l(e,n){let t=e.toString(10);for(;t.length<n;)t="0"+t;return t}function c(e){const n=e;return"number"==typeof n.offset?n.offset:1===e.kind?0:-6e4*e.getTimezoneOffset()}function a(e,n){return(e=e<0&&null!=n&&10!==n?4294967295+e+1:e).toString(n)}class f{static id(e){return f.idMap.has(e)||f.idMap.set(e,++f.count),f.idMap.get(e)}}function d(e){let n=0,t=5381;const r=e.length;for(;n<r;)t=33*t^e.charCodeAt(n++);return t}function h(e){return 2654435761*e|0}function p(e){return 0===e.length?0:e.reduce(((e,n)=>(e<<5)+e^n))}function m(t){var r;if(null==t)return 0;switch(typeof t){case"boolean":return t?1:0;case"number":return h(t);case"string":return d(t);default:if(n(t))return t.GetHashCode();if(e(t))return function(e){const n=e.length,t=new Array(n);for(let r=0;r<n;r++)t[r]=m(e[r]);return p(t)}(t);if(t instanceof Date)return function(e){return e.getTime()}(t);if((null===(r=Object.getPrototypeOf(t))||void 0===r?void 0:r.constructor)===Object){const e=Object.values(t).map((e=>m(e)));return p(e)}return h(f.id(t))}}function g(e){return null==e?0:n(e)?e.GetHashCode():h(f.id(e))}function w(e,n,t){if(null==e)return null==n;if(null==n)return!1;if(e.length!==n.length)return!1;for(let r=0;r<e.length;r++)if(!t(e[r],n[r]))return!1;return!0}function _(e,n){return w(e,n,y)}function y(n,t){var r;return n===t||(null==n?null==t:null!=t&&"object"==typeof n&&(function(e){return"function"==typeof e.Equals}(n)?n.Equals(t):e(n)?e(t)&&_(n,t):n instanceof Date?t instanceof Date&&0===v(n,t):(null===(r=Object.getPrototypeOf(n))||void 0===r?void 0:r.constructor)===Object&&function(e,n){const t=Object.keys(e),r=Object.keys(n);if(t.length!==r.length)return!1;t.sort(),r.sort();for(let o=0;o<t.length;o++)if(t[o]!==r[o]||!y(e[t[o]],n[r[o]]))return!1;return!0}(n,t)))}function v(e,n){let t,r;return"offset"in e&&"offset"in n?(t=e.getTime(),r=n.getTime()):(t=e.getTime()+c(e),r=n.getTime()+c(n)),t===r?0:t<r?-1:1}function b(e,n){return e===n?0:e<n?-1:1}function C(e,n){return function(e,n,t){if(null==e)return null==n?0:1;if(null==n)return-1;if(e.length!==n.length)return e.length<n.length?-1:1;for(let r=0,o=0;r<e.length;r++)if(o=t(e[r],n[r]),0!==o)return o;return 0}(e,n,x)}function x(n,t){var r;return n===t?0:null==n?null==t?0:-1:null==t?1:"object"!=typeof n?n<t?-1:1:function(e){return"function"==typeof e.CompareTo}(n)?n.CompareTo(t):e(n)?e(t)?C(n,t):-1:n instanceof Date?t instanceof Date?v(n,t):-1:(null===(r=Object.getPrototypeOf(n))||void 0===r?void 0:r.constructor)===Object?function(e,n){const t=Object.keys(e),r=Object.keys(n);if(t.length!==r.length)return t.length<r.length?-1:1;t.sort(),r.sort();for(let o=0,i=0;o<t.length;o++){const s=t[o];if(s!==r[o])return s<r[o]?-1:1;if(i=x(e[s],n[s]),0!==i)return i}return 0}(n,t):-1}function S(e,n,t){return e(n,t)>0?n:t}function E(e){const n={};for(const t of e)n[t[0]]=t[1];return n}f.idMap=new WeakMap,f.count=0;const k=Symbol("curried");function N(e,n){if(null==n||n.length>1)return n;const t=(...t)=>{let r=n;for(let n=0;n<e;n++)r=r(t[n]);return r};return t[k]=n,t}function A(e,n,t){return r=>1===n?t(...e.concat([r])):A(e.concat([r]),n-1,t)}function I(e,n){return null==n||1===n.length?n:k in n?n[k]:A([],e,n)}function T(e,n=0){var t,r;if(null!=e&&"object"==typeof e){if("function"==typeof e.toString)return e.toString();if(Symbol.iterator in e)return function(e){let n=0,t="[";for(const r of e){if(0===n)t+=T(r);else{if(100===n){t+="; ...";break}t+="; "+T(r)}n++}return t+"]"}(e);{const o=null===(t=Object.getPrototypeOf(e))||void 0===t?void 0:t.constructor;return o===Object&&n<10?"{ "+Object.entries(e).map((([e,t])=>e+" = "+T(t,n+1))).join("\n ")+" }":null!==(r=null==o?void 0:o.name)&&void 0!==r?r:""}}return String(e)}class O{get name(){return this.cases()[this.tag]}toJSON(){return 0===this.fields.length?this.name:[this.name].concat(this.fields)}toString(){return function(e,n){if(0===n.length)return e;{let t="",r=!0;return 1===n.length?(t=T(n[0]),r=t.indexOf(" ")>=0):t=n.map((e=>T(e))).join(", "),e+(r?" (":" ")+t+(r?")":"")}}(this.name,this.fields)}GetHashCode(){const e=this.fields.map((e=>m(e)));return e.splice(0,0,h(this.tag)),p(e)}Equals(e){return this===e||!!o(this,e)&&this.tag===e.tag&&_(this.fields,e.fields)}CompareTo(e){return this===e?0:o(this,e)?this.tag===e.tag?C(this.fields,e.fields):this.tag<e.tag?-1:1:-1}}class D{toJSON(){return function(e){const n={},t=Object.keys(e);for(let r=0;r<t.length;r++)n[t[r]]=e[t[r]];return n}(this)}toString(){return e=this,"{ "+Object.entries(e).map((([e,n])=>e+" = "+T(n))).join("\n ")+" }";var e}GetHashCode(){return function(e){const n=Object.values(e).map((e=>m(e)));return p(n)}(this)}Equals(e){return function(e,n){if(e===n)return!0;if(o(e,n)){const t=Object.keys(e);for(let r=0;r<t.length;r++)if(!y(e[t[r]],n[t[r]]))return!1;return!0}return!1}(this,e)}CompareTo(e){return function(e,n){if(e===n)return 0;if(o(e,n)){const t=Object.keys(e);for(let r=0;r<t.length;r++){const o=x(e[t[r]],n[t[r]]);if(0!==o)return o}return 0}return-1}(this,e)}}class P{constructor(e,n){"function"==typeof n?(this.getter=e,this.setter=n):(this.getter=()=>e,this.setter=n=>{e=n})}get contents(){return this.getter()}set contents(e){this.setter(e)}}class M{constructor(e){this.message=e}}function U(e){return function(e){return e instanceof M||e instanceof Error}(e)?e:new Error(String(e))}class L extends O{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Name"]}}function B(e){return new L(0,e)}function F(e){return e.fields[0]}class G extends O{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Website"]}}class R extends O{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["FirstName"]}}class H extends O{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["LastName"]}}class j extends O{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Email"]}}class $ extends O{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["MobilePhone"]}}class W extends D{constructor(e,n,t,r){super(),this.FirstName=e,this.LastName=n,this.Email=t,this.MobilePhone=r}}class z extends O{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Notes"]}}class V extends O{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["PartnerId"]}}function q(e){return e.fields[0]}function Z(e){return new V(0,e)}function J(e){return q(e)}class K extends O{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["AccountId"]}}function Y(e){return e.fields[0]}function X(e){return new K(0,e)}class Q{constructor(e){this.value=e}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return m(this.value)}Equals(e){return null!=e&&y(this.value,e instanceof Q?e.value:e)}CompareTo(e){return null==e?1:x(this.value,e instanceof Q?e.value:e)}}function ee(e){return null==e||e instanceof Q?new Q(e):e}function ne(e){if(null==e)throw new Error("Option has no value");return e instanceof Q?e.value:e}function te(e){return null==e?[]:[ne(e)]}function re(e,n){return null!=e?ne(e):n}function oe(e,n){return null!=n?ee(e(ne(n))):void 0}function ie(){return e=x,{Compare:(n,t)=>e(n,t)};var e}function se(e,n){return"function"==typeof e?new e(n):new Array(n)}function ue(e,n,t,r){const o=0|n;return e.fill(r,o,o+t)}function le(e,n,t){const r=0|n.length,o=se(t,r);for(let t=0;t<=r-1;t++)o[t]=e(n[t]);return o}function ce(e,n,t){return t.reduce(e,n)}function ae(e,n,t){if(null==n)return null==t;if(null==t)return!1;{let r=0,o=!0;const i=0|n.length,s=0|t.length;if(i>s)return!1;if(i<s)return!1;for(;r<i&&o;)o=e(n[r],t[r]),r=r+1|0;return o}}function fe(e){const n=e<0,t=(e=Math.abs(e))%36e5/6e4;return(n?"-":"+")+l(~~(e/36e5),2)+":"+l(t,2)}function de(e,n){const t=e.toISOString();return"first"===n?t.substring(0,t.indexOf("T")):t.substring(t.indexOf("T")+1,t.length-1)}function he(e,n,t){return n.replace(/(\w)\1*/g,(n=>{let r=Number.NaN;switch(n.substring(0,1)){case"y":const o=t?e.getUTCFullYear():e.getFullYear();r=n.length<4?o%100:o;break;case"M":r=(t?e.getUTCMonth():e.getMonth())+1;break;case"d":r=t?e.getUTCDate():e.getDate();break;case"H":r=t?e.getUTCHours():e.getHours();break;case"h":const i=t?e.getUTCHours():e.getHours();r=i>12?i%12:i;break;case"m":r=t?e.getUTCMinutes():e.getMinutes();break;case"s":r=t?e.getUTCSeconds():e.getSeconds();break;case"f":r=t?e.getUTCMilliseconds():e.getMilliseconds()}return Number.isNaN(r)?n:r<10&&n.length>1?"0"+r:""+r}))}function pe(e,n,t){return null!=e.offset?function(e,n){var t,r,o;const i=new Date(e.getTime()+(null!==(t=e.offset)&&void 0!==t?t:0));if("string"!=typeof n)return i.toISOString().replace(/\.\d+/,"").replace(/[A-Z]|\.\d+/g," ")+fe(null!==(r=e.offset)&&void 0!==r?r:0);if(1!==n.length)return he(i,n,!0);switch(n){case"D":case"d":return de(i,"first");case"T":case"t":return de(i,"second");case"O":case"o":return function(e,n){const t=e.toISOString();return t.substring(0,t.length-1)+fe(n)}(i,null!==(o=e.offset)&&void 0!==o?o:0);default:throw new Error("Unrecognized Date print format")}}(e,n):function(e,n){const t=1===e.kind;if("string"!=typeof n)return t?e.toUTCString():e.toLocaleString();if(1!==n.length)return he(e,n,t);switch(n){case"D":case"d":return t?de(e,"first"):e.toLocaleDateString();case"T":case"t":return t?de(e,"second"):e.toLocaleTimeString();case"O":case"o":return function(e,n){if(n)return e.toISOString();{const n=null==e.kind||2===e.kind;return l(e.getFullYear(),4)+"-"+l(e.getMonth()+1,2)+"-"+l(e.getDate(),2)+"T"+l(e.getHours(),2)+":"+l(e.getMinutes(),2)+":"+l(e.getSeconds(),2)+"."+l(e.getMilliseconds(),3)+(n?fe(-6e4*e.getTimezoneOffset()):"")}}(e,t);default:throw new Error("Unrecognized Date print format")}}(e,n)}function me(e,n){const t=new Date(e);return t.kind=0|(null==n?0:n),t}function ge(e){function n(){throw new Error(`The string is not a valid Date: ${e}`)}null!=e&&""!==e.trim()||n(),10===e.length&&"-"===e[4]&&"-"===e[7]&&(e+="T00:00:00");let t=new Date(e),r=null;if(isNaN(t.getTime())){const o=/^\s*(\d+[^\w\s:]\d+[^\w\s:]\d+)?\s*(\d+:\d+(?::\d+(?:\.\d+)?)?)?\s*([AaPp][Mm])?\s*(Z|[+-]([01]?\d):?([0-5]?\d)?)?\s*$/.exec(e);if(null!=o){let e,n=0;if(null!=o[2]){const e=o[2].split(":");n=3600*parseInt(e[0],10)+60*parseInt(e[1]||"0",10)+parseFloat(e[2]||"0"),null!=o[3]&&"PM"===o[3].toUpperCase()&&(n+=720)}if(null!=o[4]){if(null!=o[1])e=new Date(o[1]+" UTC");else{const n=new Date;e=new Date(n.getUTCFullYear()+"/"+(n.getUTCMonth()+1)+"/"+n.getUTCDate())}if("Z"===o[4])r="Z";else{let e=60*parseInt(o[5],10)+parseInt(o[6]||"0",10);"-"===o[4][0]&&(e*=-1),r=e,n-=60*e}}else if(null!=o[1])e=new Date(o[1]);else{const n=new Date;e=new Date(n.getFullYear()+"/"+(n.getMonth()+1)+"/"+n.getDate())}t=new Date(e.getTime()+1e3*n),t=new Date(t.getTime()+6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))}else n();isNaN(t.getTime())&&n()}return[t,r]}function we(e,n){try{return n.contents=function(e,n=!1){const[t,r]=ge(e),o=null!=r?n&&"Z"===r?1:2:0;return me(t.getTime(),o)}(e),!0}catch(e){return!1}}const _e=Symbol("numeric");function ye(e){return"number"==typeof e||(null==e?void 0:e[_e])}function ve(e,n){return"number"==typeof e?e*n:e[_e]().multiply(n)}function be(e,n){return"number"==typeof e?e.toFixed(n):e[_e]().toFixed(n)}function Ce(e,n){return"number"==typeof e?e.toPrecision(n):e[_e]().toPrecision(n)}function xe(e,n){return"number"==typeof e?e.toExponential(n):e[_e]().toExponential(n)}function Se(e){return"number"==typeof e?(Number(e)>>>0).toString(16):e[_e]().toHex()}function Ee(e,n=0){if(0!=(-284&n))throw new Error("RegexOptions only supports: IgnoreCase, Multiline, Compiled, Singleline and ECMAScript");let t="gu";return t+=1&n?"i":"",t+=2&n?"m":"",t+=16&n?"s":"",new RegExp(e,t)}function ke(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function Ne(e,n,t=0){if(null==n)throw new Error("Input cannot ve null");if(!e.global)throw new Error("Non-global RegExp");e.lastIndex=t;const r=[];let o,i=-1;for(;null!=(o=e.exec(n));)o.index===i?e.lastIndex++:(i=o.index,r.push(o));return r}const Ae=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g,Ie=/(?:(^|[^%])%([0+\- ]*)(\d+)?(?:\.(\d+))?(\w))?%P\(\)/g,Te=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function Oe(e,n){return function(e,n){return"number"==typeof e?e<n?-1:e>n?1:0:e.CompareTo(n)}(e,n)<0}function De(e){return{input:e,cont:(n=e,e=>{Ae.lastIndex=0;const t=[],r=[];let o=0,i=Ae.exec(n);for(;i;){const e=i.index+(i[1]||"").length;t.push(n.substring(o,e).replace(/%%/g,"%")),r.push(i),o=Ae.lastIndex,Ae.lastIndex-=1,i=Ae.exec(n)}return 0===t.length?e(n.replace(/%%/g,"%")):(t.push(n.substring(o).replace(/%%/g,"%")),Be(e,t,r))})};var n}function Pe(e,n){let t=0,r=0,o="";Ie.lastIndex=0;let i=Ie.exec(e);for(;i;){const s=i.index+(i[1]||"").length;o+=e.substring(r,s).replace(/%%/g,"%");const[,,u,l,c,a]=i;r=Ie.lastIndex,o+=Le(n[t++],u,l,c,a),Ie.lastIndex=r-1,i=Ie.exec(e)}return o+=e.substring(r).replace(/%%/g,"%"),o}function Me(e,n){return"string"==typeof n?e(n):n.cont(e)}function Ue(e){return Me((e=>e),e)}function Le(e,n,t,r,o){let i="";if(n=n||"",o=o||"",ye(e))switch("x"!==o.toLowerCase()&&(Oe(e,0)?(e=ve(e,-1),i="-"):n.indexOf(" ")>=0?i=" ":n.indexOf("+")>=0&&(i="+")),r=null==r?null:parseInt(r,10),o){case"f":case"F":e=be(e,r=null!=r?r:6);break;case"g":case"G":e=null!=r?Ce(e,r):Ce(e);break;case"e":case"E":e=null!=r?xe(e,r):xe(e);break;case"x":e=Se(e);break;case"X":e=Se(e).toUpperCase();break;default:e=String(e)}else e=e instanceof Date?pe(e):T(e);if(t="number"==typeof t?t:parseInt(t,10),isNaN(t))e=i+e;else{const r=n.indexOf("0")>=0,o=n.indexOf("-")>=0,s=o||!r?" ":"0";e="0"===s?i+(e=je(e,t-i.length,s,o)):je(i+e,t,s,o)}return e}function Be(e,n,t,r="",o=-1){return(...i)=>{let s=r;const u=n.slice(),l=t.slice();for(const e of i){const[,,n,t,r,i]=l[0];let c=t;if(o>=0)c=o,o=-1;else if("*"===c){if(e<0)throw new Error("Non-negative number required");o=e;continue}s+=u[0],s+=Le(e,n,c,r,i),u.splice(0,1),l.splice(0,1)}return 0===l.length?(s+=u[0],e(s)):Be(e,u,l,s,o)}}function Fe(e,...n){return"object"==typeof e&&n.length>0&&(e=n[0],n.shift()),e.replace(Te,((e,t,r,o,i,s)=>{if(t<0||t>=n.length)throw new Error("Index must be greater or equal to zero and less than the arguments' length.");let u=n[t];if(ye(u))switch(i=null==i?null:parseInt(i,10),o){case"f":case"F":u=be(u,i=null!=i?i:2);break;case"g":case"G":u=null!=i?Ce(u,i):Ce(u);break;case"e":case"E":u=null!=i?xe(u,i):xe(u);break;case"p":case"P":i=null!=i?i:2,u=be(ve(u,100),i)+" %";break;case"d":case"D":u=null!=i?$e(String(u),i,"0"):String(u);break;case"x":case"X":u=null!=i?$e(Se(u),i,"0"):Se(u),"X"===o&&(u=u.toUpperCase());break;default:if(s){let e="";u=s.replace(/([0#,]+)(\.[0#]+)?/,((n,t,r)=>{Oe(u,0)&&(u=ve(u,-1),e="-"),r=null==r?"":r.substring(1),u=be(u,Math.max(r.length,0));let[o,i]=u.split(".");i||(i=""),o=$e(o,t.replace(/,/g,"").replace(/^#+/,"").length,"0");const s=r.replace(/#+$/,"").length;if(s>i.length?i=function(e,n,t){return je(e,n,"0",!0)}(i,s):s<i.length&&(i=i.substring(0,s)+i.substring(s).replace(/0+$/,"")),t.indexOf(",")>0){const e=o.length%3,n=Math.floor(o.length/3);let t=e>0?o.substr(0,e)+(n>0?",":""):"";for(let r=0;r<n;r++)t+=o.substr(e+3*r,3)+(r<n-1?",":"");o=t}return i.length>0?o+"."+i:o})),u=e+u}}else u=u instanceof Date?pe(u,s||o):T(u);return r=parseInt((r||" ").substring(1),10),isNaN(r)||(u=je(String(u),Math.abs(r)," ",r<0)),u}))}function Ge(e){return"string"!=typeof e||0===e.length}function Re(e){return"string"!=typeof e||/^\s*$/.test(e)}function He(e,n){return Array.isArray(n)?n.join(e):Array.from(n).join(e)}function je(e,n,t,r){t=t||" ",n-=e.length;for(let o=0;o<n;o++)e=r?e+t:t+e;return e}function $e(e,n,t){return je(e,n,t)}function We(e,n,t,r){if(r="number"==typeof r?r:0,(t="number"==typeof t?t:void 0)&&t<0)throw new Error("Count cannot be less than zero");if(0===t)return[];const o=1==(1&r),i=2==(2&r);n=(n=n||[]).filter((e=>e)).map(ke),n=n.length>0?n:["\\s"];const s=[],u=new RegExp(n.join("|"),"g");let l=!0,c=0;do{const n=u.exec(e);if(null===n){const n=i?e.substring(c).trim():e.substring(c);(!o||n.length>0)&&s.push(n),l=!1}else{const r=i?e.substring(c,n.index).trim():e.substring(c,n.index);(!o||r.length>0)&&(null!=t&&s.length+1===t?(s.push(i?e.substring(c).trim():e.substring(c)),l=!1):s.push(r)),c=u.lastIndex}}while(l);return s}function ze(e,n,t){if(n+(t||0)>e.length)throw new Error("Invalid startIndex and/or length");return null!=t?e.substr(n,t):e.substr(n)}const Ve="Collection was empty.";class qe extends D{constructor(e,n){super(),this.head=e,this.tail=n}toString(){return"["+He("; ",this)+"]"}Equals(e){return this===e||((e,n)=>{e:for(;;){const t=e,r=n,o=[t.tail,r.tail];if(null!=o[0]){if(null!=o[1]){const i=o[0],s=o[1];if(y(t.head,r.head)){e=i,n=s;continue e}return!1}return!1}return null==o[1]}})(this,e)}GetHashCode(){return 0|((e,n,t)=>{for(;;){const r=e,o=n,i=t,s=i.tail;if(null==s)return 0|o;{const u=s;if(r>18)return 0|o;e=r+1,n=(o<<1)+m(i.head)+631*r,t=u}}})(0,0,this)}toJSON(e){return Array.from(this)}CompareTo(e){return 0|((e,n)=>{e:for(;;){const t=e,r=n,o=[t.tail,r.tail];if(null!=o[0]){if(null!=o[1]){const i=o[0],s=o[1],u=0|x(t.head,r.head);if(0===u){e=i,n=s;continue e}return 0|u}return 1}return null!=o[1]?-1:0}})(this,e)}GetEnumerator(){return new Ze(this)}[Symbol.iterator](){return u(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return s(this)}}class Ze{constructor(e){this.xs=e,this.it=this.xs,this.current=null}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current}"System.Collections.IEnumerator.get_Current"(){return this.current}"System.Collections.IEnumerator.MoveNext"(){const e=this,n=e.it.tail;if(null!=n){const t=n;return e.current=e.it.head,e.it=t,!0}return!1}"System.Collections.IEnumerator.Reset"(){const e=this;e.it=e.xs,e.current=null}Dispose(){}}function Je(){return new qe(null,void 0)}function Ke(e,n){return new qe(e,n)}function Ye(e){return null==e.tail}function Xe(e){return 0|((e,n)=>{for(;;){const t=e,r=n.tail;if(null==r)return 0|t;e=t+1,n=r}})(0,e)}function Qe(e){if(null!=e.tail)return e.head;throw new Error(Ve+"\\nParameter name: list")}function en(e){const n=e.tail;if(null!=n)return n;throw new Error(Ve+"\\nParameter name: list")}function nn(){return Je()}function tn(e,n){return Ke(e,n)}function rn(e){return Ke(e,Je())}function on(e){return Ye(e)}function sn(e){return Xe(e)}function un(e){return Qe(e)}function ln(e){return en(e)}function cn(e){const n=0|Xe(e),t=ue(new Array(n),0,n,null);return((e,n)=>{for(;;){const r=e,o=n;if(Ye(o))break;t[r]=Qe(o),e=r+1,n=en(o)}})(0,e),t}function an(e,n,t){let r=n,o=t;for(;!Ye(o);)r=e(r,Qe(o)),o=en(o);return r}function fn(e){return an(((e,n)=>Ke(n,e)),Je(),e)}function dn(e,n){an(((n,t)=>{e(t)}),void 0,n)}function hn(e,n){let t=n;for(let n=e.length-1;n>=0;n--)t=Ke(e[n],t);return t}function pn(e){return hn(e,Je())}function mn(e,n){return an(((e,n)=>Ke(n,e)),n,fn(e))}function gn(e,n){const t=Je(),r=function(e,n,t){return((n,t,r)=>{for(;;){const o=n,i=t,s=r;if(Ye(s))return i;n=o+1,t=e(o,i,Qe(s)),r=en(s)}})(0,n,t)}(((n,t,r)=>{const o=new qe(e(n,r),void 0);return t.tail=o,o}),t,n),o=Je();return r.tail=o,en(t)}function wn(e,n){const t=Je(),r=an(((n,t)=>{const r=new qe(e(t),void 0);return n.tail=r,r}),t,n),o=Je();return r.tail=o,en(t)}function _n(e,n){return function(e,n){return(n=>{e:for(;;){const t=n;if(Ye(t))return;{const r=e(Qe(t));if(null==r){n=en(t);continue e}return r}}})(n)}((n=>e(n)?ee(n):void 0),n)}const yn="Enumeration already finished.",vn="Enumeration has not started. Call MoveNext.";function bn(){throw new Error(vn)}function Cn(){throw new Error(yn)}class xn{constructor(e){this.f=e}toString(){let e=0,n="seq [";const t=s(this);try{for(;e<4&&t["System.Collections.IEnumerator.MoveNext"]();)e>0&&(n+="; "),n+=T(t["System.Collections.Generic.IEnumerator`1.get_Current"]()),e=e+1|0;return 4===e&&(n+="; ..."),n+"]"}finally{r(t)}}GetEnumerator(){return this.f()}[Symbol.iterator](){return u(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}class Sn{constructor(e,n,t){this.current=e,this.next=n,this.dispose=t}"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"(){!function(){throw new Error("Reset is not supported on this enumerator.")}()}Dispose(){this.dispose()}}function En(e,n,t){return new Sn(e,n,t)}function kn(e,n,t){let r,o=!1,i=ee(e());const s=()=>{if(null!=i){const e=ne(i);try{t(e)}finally{i=void 0}}},u=()=>{try{s()}finally{r=void 0}};return En((()=>(o||bn(),null!=r?ne(r):Cn())),(()=>{if(o||(o=!0),null!=i){const e=ne(i);let t;try{t=n(e)}catch(e){throw u(),e}return null!=t?(r=t,!0):(u(),!1)}return!1}),s)}function Nn(e){return function(e){return new xn(e)}(e)}function An(e){return n="source",null==e&&function(e){throw new Error(e)}(n),s(e);var n}function In(e){return Nn((()=>s(e())))}function Tn(e){return Nn((()=>function(e){let n,t,o,i=!1,u=!1;const l=()=>{if(u=!0,null!=t){const e=t;try{r(e)}finally{t=void 0}}if(null!=n){const e=n;try{r(e)}finally{n=void 0}}};return En((()=>(i?u&&Cn():bn(),null!=o?ne(o):Cn())),(()=>{let c;if(i||(i=!0),u)return!1;{let i;for(;null==i;){const u=[n,t];if(null!=u[0])if(null!=u[1]){const e=u[1];if(e["System.Collections.IEnumerator.MoveNext"]())o=ee(e["System.Collections.Generic.IEnumerator`1.get_Current"]()),i=!0;else try{r(e)}finally{t=void 0}}else{const e=u[0];e["System.Collections.IEnumerator.MoveNext"]()?(c=e["System.Collections.Generic.IEnumerator`1.get_Current"](),t=s(c)):(l(),i=!1)}else n=s(e)}return ne(i)}}),(()=>{u||l()}))}(e)))}function On(){return In((()=>new Array(0)))}function Dn(e){return In((()=>function(e,n){const t=se(void 0,1);return t[0]=e,t}(e)))}function Pn(e){return e instanceof qe?cn(e):Array.from(e)}function Mn(n){return e(n)?pn(n):n instanceof qe?n:function(n){let t,o;if(e(n))return pn(n);if(n instanceof qe)return n;{const e=Je();let i=e;const u=s(n);try{for(;u["System.Collections.IEnumerator.MoveNext"]();){const e=u["System.Collections.Generic.IEnumerator`1.get_Current"]();t=i,o=new qe(e,void 0),t.tail=o,i=o}}finally{r(u)}const l=i,c=Je();return l.tail=c,en(e)}}(n)}function Un(e,n,t){return Nn((()=>kn(e,n,t)))}function Ln(e,n){return Tn([e,n])}function Bn(e,n){return Un((()=>An(n)),(n=>{let t;for(;null==t&&n["System.Collections.IEnumerator.MoveNext"]();)t=e(n["System.Collections.Generic.IEnumerator`1.get_Current"]());return t}),(e=>{r(e)}))}function Fn(e,n,t){const o=An(n);try{let n=!1;for(;!n&&o["System.Collections.IEnumerator.MoveNext"]();)n=t.Equals(e,o["System.Collections.Generic.IEnumerator`1.get_Current"]());return n}finally{r(o)}}function Gn(e,n,t){const o=An(t);try{let t=n;for(;o["System.Collections.IEnumerator.MoveNext"]();)t=e(t,o["System.Collections.Generic.IEnumerator`1.get_Current"]());return t}finally{r(o)}}function Rn(e,n){Gn(((n,t)=>{e(t)}),void 0,n)}function Hn(e,n){return Un((()=>An(n)),(n=>n["System.Collections.IEnumerator.MoveNext"]()?ee(e(n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0),(e=>{r(e)}))}function jn(e,n){return t=()=>An(n),o=(n,t)=>t["System.Collections.IEnumerator.MoveNext"]()?ee(e(n,t["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,i=e=>{r(e)},Nn((()=>{let e=-1;return kn(t,(n=>(e=e+1|0,o(e,n))),i)}));var t,o,i}class $n{constructor(e,n){this.cleanup=e,this.res=n}Dispose(){this.cleanup()}GetEnumerator(){return getEnumerator(this.res)}[Symbol.iterator](){return toIterator(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return getEnumerator(this.res)}}function Wn(e){return In((()=>function(e){return e.slice().reverse()}(Pn(e))))}const zn={None:0,LowerFirst:1,SnakeCase:2,SnakeCaseAllCaps:3,KebabCase:4};function Vn(e,n){return e.replace(/[a-z]?[A-Z]/g,(e=>1===e.length?e.toLowerCase():e.charAt(0)+n+e.charAt(1).toLowerCase()))}function qn(e,n=zn.None){const t={},r=n;function o(e){throw new Error("Cannot infer key and value of "+String(e))}function i(e,n,r){e=function(e,n){switch(n){case zn.LowerFirst:return e.charAt(0).toLowerCase()+e.slice(1);case zn.SnakeCase:return Vn(e,"_");case zn.SnakeCaseAllCaps:return Vn(e,"_").toUpperCase();case zn.KebabCase:return Vn(e,"-");case zn.None:default:return e}}(e,n),t[e]=r}for(let n of e){let e=zn.None;if(null==n&&o(n),n instanceof O){const t=n.cases()[n.tag];n=0===n.fields.length?t:[t].concat(n.fields),e=r}if(Array.isArray(n))switch(n.length){case 0:o(n);break;case 1:i(n[0],e,!0);break;case 2:const t=n[1];i(n[0],e,t);break;default:i(n[0],e,n.slice(1))}else"string"==typeof n?i(n,e,!0):o(n)}return t}function Zn(e,n,t){return!!e.has(n)&&(t.contents=e.get(n),!0)}function Jn(e,n){if(e.has(n))return e.get(n);throw new Error(`The given key '${n}' was not present in the dictionary.`)}class Kn{constructor(e,n){const t=new P(null);this.comparer=n,t.contents=this,this.hashMap=new Map([]),this["init@8-1"]=1;const o=s(e);try{for(;o["System.Collections.IEnumerator.MoveNext"]();){const e=o["System.Collections.Generic.IEnumerator`1.get_Current"]();rt(t.contents,e[0],e[1])}}finally{r(o)}}get[Symbol.toStringTag](){return"Dictionary"}toJSON(e){return Array.from(this)}"System.Collections.IEnumerable.GetEnumerator"(){return s(this)}GetEnumerator(){return s(Tn(this.hashMap.values()))}[Symbol.iterator](){return u(this.GetEnumerator())}"System.Collections.Generic.ICollection`1.Add2B595"(e){rt(this,e[0],e[1])}"System.Collections.Generic.ICollection`1.Clear"(){Qn(this)}"System.Collections.Generic.ICollection`1.Contains2B595"(e){const n=Xn(this,e[0]);let t;switch(t=null!=n&&y(n[1],e[1])?0:1,t){case 0:return!0;case 1:return!1}}"System.Collections.Generic.ICollection`1.CopyToZ2E171D71"(e,n){var t;t=(t,r)=>{e[n+t]=r},Gn(((e,n)=>(t(e,n),e+1|0)),0,this)}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|et(this)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!1}"System.Collections.Generic.ICollection`1.Remove2B595"(e){const n=Xn(this,e[0]);return null!=n&&(y(n[1],e[1])&&it(this,e[0]),!0)}"System.Collections.Generic.IDictionary`2.Add5BDDA1"(e,n){rt(this,e,n)}"System.Collections.Generic.IDictionary`2.ContainsKey2B595"(e){return ot(this,e)}"System.Collections.Generic.IDictionary`2.get_Item2B595"(e){return nt(this,e)}"System.Collections.Generic.IDictionary`2.set_Item5BDDA1"(e,n){tt(this,e,n)}"System.Collections.Generic.IDictionary`2.get_Keys"(){const e=this;return Pn(In((()=>Hn((e=>e[0]),e))))}"System.Collections.Generic.IDictionary`2.Remove2B595"(e){return it(this,e)}"System.Collections.Generic.IDictionary`2.TryGetValue23A0B95A"(e,n){const t=Xn(this,e);if(null!=t){const e=t;return n.contents=e[1],!0}return!1}"System.Collections.Generic.IDictionary`2.get_Values"(){const e=this;return Pn(In((()=>Hn((e=>e[1]),e))))}get size(){return 0|et(this)}clear(){Qn(this)}delete(e){return it(this,e)}entries(){return Hn((e=>[e[0],e[1]]),this)}get(e){return nt(this,e)}has(e){return ot(this,e)}keys(){return Hn((e=>e[0]),this)}set(e,n){return tt(this,e,n),this}values(){return Hn((e=>e[1]),this)}forEach(e,n){const t=this;Rn((n=>{e(n[1],n[0],t)}),t)}}function Yn(e,n){const t=0|e.comparer.GetHashCode(n);let r,o=null;return r=[Zn(e.hashMap,t,new P((()=>o),(e=>{o=e}))),o],r[0]?[!0,t,r[1].findIndex((t=>e.comparer.Equals(n,t[0])))]:[!1,t,-1]}function Xn(e,n){const t=Yn(e,n);let r;switch(r=t[0]&&t[2]>-1?0:1,r){case 0:return Jn(e.hashMap,t[1])[t[2]];case 1:return}}function Qn(e){e.hashMap.clear()}function et(e){let n=0,t=s(e.hashMap.values());try{for(;t["System.Collections.IEnumerator.MoveNext"]();)n=n+t["System.Collections.Generic.IEnumerator`1.get_Current"]().length|0}finally{r(t)}return 0|n}function nt(e,n){const t=Xn(e,n);if(null!=t)return t[1];throw new Error("The item was not found in collection")}function tt(e,n,t){const r=Yn(e,n);r[0]?r[2]>-1?Jn(e.hashMap,r[1])[r[2]]=[n,t]:Jn(e.hashMap,r[1]).push([n,t]):e.hashMap.set(r[1],[[n,t]])}function rt(e,n,t){const r=Yn(e,n);if(r[0]){if(r[2]>-1){const e=Fe("An item with the same key has already been added. Key: {0}",n);throw new Error(e)}Jn(e.hashMap,r[1]).push([n,t])}else e.hashMap.set(r[1],[[n,t]])}function ot(e,n){const t=Yn(e,n);let r;switch(r=t[0]&&t[2]>-1?0:1,r){case 0:return!0;case 1:return!1}}function it(e,n){const t=Yn(e,n);let r;switch(r=t[0]&&t[2]>-1?0:1,r){case 0:return Jn(e.hashMap,t[1]).splice(t[2],1),!0;case 1:return!1}}class st extends O{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Ok","Error"]}}function ut(e,n){return 0===n.tag?new st(0,e(n.fields[0])):new st(1,n.fields[0])}class lt extends O{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Choice1Of2","Choice2Of2"]}}var ct,at,ft,dt,ht,pt,mt,gt,wt={},_t=[],yt=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function vt(e,n){for(var t in n)e[t]=n[t];return e}function bt(e){var n=e.parentNode;n&&n.removeChild(e)}function Ct(e,n,t){var r,o,i,s={};for(i in n)"key"==i?r=n[i]:"ref"==i?o=n[i]:s[i]=n[i];if(arguments.length>2&&(s.children=arguments.length>3?ct.call(arguments,2):t),"function"==typeof e&&null!=e.defaultProps)for(i in e.defaultProps)void 0===s[i]&&(s[i]=e.defaultProps[i]);return xt(e,s,r,o,null)}function xt(e,n,t,r,o){var i={type:e,props:n,key:t,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==o?++ft:o};return null==o&&null!=at.vnode&&at.vnode(i),i}function St(e){return e.children}function Et(e,n){this.props=e,this.context=n}function kt(e,n){if(null==n)return e.__?kt(e.__,e.__.__k.indexOf(e)+1):null;for(var t;n<e.__k.length;n++)if(null!=(t=e.__k[n])&&null!=t.__e)return t.__e;return"function"==typeof e.type?kt(e):null}function Nt(e){var n,t;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,n=0;n<e.__k.length;n++)if(null!=(t=e.__k[n])&&null!=t.__e){e.__e=e.__c.base=t.__e;break}return Nt(e)}}function At(e){(!e.__d&&(e.__d=!0)&&dt.push(e)&&!It.__r++||ht!==at.debounceRendering)&&((ht=at.debounceRendering)||pt)(It)}function It(){var e,n,t,r,o,i,s,u;for(dt.sort(mt);e=dt.shift();)e.__d&&(n=dt.length,r=void 0,o=void 0,s=(i=(t=e).__v).__e,(u=t.__P)&&(r=[],(o=vt({},i)).__v=i.__v+1,Gt(u,i,o,t.__n,void 0!==u.ownerSVGElement,null!=i.__h?[s]:null,r,null==s?kt(i):s,i.__h),Rt(r,i),i.__e!=s&&Nt(i)),dt.length>n&&dt.sort(mt));It.__r=0}function Tt(e,n,t,r,o,i,s,u,l,c){var a,f,d,h,p,m,g,w=r&&r.__k||_t,_=w.length;for(t.__k=[],a=0;a<n.length;a++)if(null!=(h=t.__k[a]=null==(h=n[a])||"boolean"==typeof h||"function"==typeof h?null:"string"==typeof h||"number"==typeof h||"bigint"==typeof h?xt(null,h,null,null,h):Array.isArray(h)?xt(St,{children:h},null,null,null):h.__b>0?xt(h.type,h.props,h.key,h.ref?h.ref:null,h.__v):h)){if(h.__=t,h.__b=t.__b+1,null===(d=w[a])||d&&h.key==d.key&&h.type===d.type)w[a]=void 0;else for(f=0;f<_;f++){if((d=w[f])&&h.key==d.key&&h.type===d.type){w[f]=void 0;break}d=null}Gt(e,h,d=d||wt,o,i,s,u,l,c),p=h.__e,(f=h.ref)&&d.ref!=f&&(g||(g=[]),d.ref&&g.push(d.ref,null,h),g.push(f,h.__c||p,h)),null!=p?(null==m&&(m=p),"function"==typeof h.type&&h.__k===d.__k?h.__d=l=Ot(h,l,e):l=Pt(e,h,d,w,p,l),"function"==typeof t.type&&(t.__d=l)):l&&d.__e==l&&l.parentNode!=e&&(l=kt(d))}for(t.__e=m,a=_;a--;)null!=w[a]&&("function"==typeof t.type&&null!=w[a].__e&&w[a].__e==t.__d&&(t.__d=Mt(r).nextSibling),$t(w[a],w[a]));if(g)for(a=0;a<g.length;a++)jt(g[a],g[++a],g[++a])}function Ot(e,n,t){for(var r,o=e.__k,i=0;o&&i<o.length;i++)(r=o[i])&&(r.__=e,n="function"==typeof r.type?Ot(r,n,t):Pt(t,r,r,o,r.__e,n));return n}function Dt(e,n){return n=n||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some((function(e){Dt(e,n)})):n.push(e)),n}function Pt(e,n,t,r,o,i){var s,u,l;if(void 0!==n.__d)s=n.__d,n.__d=void 0;else if(null==t||o!=i||null==o.parentNode)e:if(null==i||i.parentNode!==e)e.appendChild(o),s=null;else{for(u=i,l=0;(u=u.nextSibling)&&l<r.length;l+=1)if(u==o)break e;e.insertBefore(o,i),s=i}return void 0!==s?s:o.nextSibling}function Mt(e){var n,t,r;if(null==e.type||"string"==typeof e.type)return e.__e;if(e.__k)for(n=e.__k.length-1;n>=0;n--)if((t=e.__k[n])&&(r=Mt(t)))return r;return null}function Ut(e,n,t){"-"===n[0]?e.setProperty(n,null==t?"":t):e[n]=null==t?"":"number"!=typeof t||yt.test(n)?t:t+"px"}function Lt(e,n,t,r,o){var i;e:if("style"===n)if("string"==typeof t)e.style.cssText=t;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(n in r)t&&n in t||Ut(e.style,n,"");if(t)for(n in t)r&&t[n]===r[n]||Ut(e.style,n,t[n])}else if("o"===n[0]&&"n"===n[1])i=n!==(n=n.replace(/Capture$/,"")),n=n.toLowerCase()in e?n.toLowerCase().slice(2):n.slice(2),e.l||(e.l={}),e.l[n+i]=t,t?r||e.addEventListener(n,i?Ft:Bt,i):e.removeEventListener(n,i?Ft:Bt,i);else if("dangerouslySetInnerHTML"!==n){if(o)n=n.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==n&&"height"!==n&&"href"!==n&&"list"!==n&&"form"!==n&&"tabIndex"!==n&&"download"!==n&&n in e)try{e[n]=null==t?"":t;break e}catch(e){}"function"==typeof t||(null==t||!1===t&&"-"!==n[4]?e.removeAttribute(n):e.setAttribute(n,t))}}function Bt(e){return this.l[e.type+!1](at.event?at.event(e):e)}function Ft(e){return this.l[e.type+!0](at.event?at.event(e):e)}function Gt(e,n,t,r,o,i,s,u,l){var c,a,f,d,h,p,m,g,w,_,y,v,b,C,x,S=n.type;if(void 0!==n.constructor)return null;null!=t.__h&&(l=t.__h,u=n.__e=t.__e,n.__h=null,i=[u]),(c=at.__b)&&c(n);try{e:if("function"==typeof S){if(g=n.props,w=(c=S.contextType)&&r[c.__c],_=c?w?w.props.value:c.__:r,t.__c?m=(a=n.__c=t.__c).__=a.__E:("prototype"in S&&S.prototype.render?n.__c=a=new S(g,_):(n.__c=a=new Et(g,_),a.constructor=S,a.render=Wt),w&&w.sub(a),a.props=g,a.state||(a.state={}),a.context=_,a.__n=r,f=a.__d=!0,a.__h=[],a._sb=[]),null==a.__s&&(a.__s=a.state),null!=S.getDerivedStateFromProps&&(a.__s==a.state&&(a.__s=vt({},a.__s)),vt(a.__s,S.getDerivedStateFromProps(g,a.__s))),d=a.props,h=a.state,a.__v=n,f)null==S.getDerivedStateFromProps&&null!=a.componentWillMount&&a.componentWillMount(),null!=a.componentDidMount&&a.__h.push(a.componentDidMount);else{if(null==S.getDerivedStateFromProps&&g!==d&&null!=a.componentWillReceiveProps&&a.componentWillReceiveProps(g,_),!a.__e&&null!=a.shouldComponentUpdate&&!1===a.shouldComponentUpdate(g,a.__s,_)||n.__v===t.__v){for(n.__v!==t.__v&&(a.props=g,a.state=a.__s,a.__d=!1),a.__e=!1,n.__e=t.__e,n.__k=t.__k,n.__k.forEach((function(e){e&&(e.__=n)})),y=0;y<a._sb.length;y++)a.__h.push(a._sb[y]);a._sb=[],a.__h.length&&s.push(a);break e}null!=a.componentWillUpdate&&a.componentWillUpdate(g,a.__s,_),null!=a.componentDidUpdate&&a.__h.push((function(){a.componentDidUpdate(d,h,p)}))}if(a.context=_,a.props=g,a.__P=e,v=at.__r,b=0,"prototype"in S&&S.prototype.render){for(a.state=a.__s,a.__d=!1,v&&v(n),c=a.render(a.props,a.state,a.context),C=0;C<a._sb.length;C++)a.__h.push(a._sb[C]);a._sb=[]}else do{a.__d=!1,v&&v(n),c=a.render(a.props,a.state,a.context),a.state=a.__s}while(a.__d&&++b<25);a.state=a.__s,null!=a.getChildContext&&(r=vt(vt({},r),a.getChildContext())),f||null==a.getSnapshotBeforeUpdate||(p=a.getSnapshotBeforeUpdate(d,h)),x=null!=c&&c.type===St&&null==c.key?c.props.children:c,Tt(e,Array.isArray(x)?x:[x],n,t,r,o,i,s,u,l),a.base=n.__e,n.__h=null,a.__h.length&&s.push(a),m&&(a.__E=a.__=null),a.__e=!1}else null==i&&n.__v===t.__v?(n.__k=t.__k,n.__e=t.__e):n.__e=Ht(t.__e,n,t,r,o,i,s,l);(c=at.diffed)&&c(n)}catch(e){n.__v=null,(l||null!=i)&&(n.__e=u,n.__h=!!l,i[i.indexOf(u)]=null),at.__e(e,n,t)}}function Rt(e,n){at.__c&&at.__c(n,e),e.some((function(n){try{e=n.__h,n.__h=[],e.some((function(e){e.call(n)}))}catch(e){at.__e(e,n.__v)}}))}function Ht(e,n,t,r,o,i,s,u){var l,c,a,f=t.props,d=n.props,h=n.type,p=0;if("svg"===h&&(o=!0),null!=i)for(;p<i.length;p++)if((l=i[p])&&"setAttribute"in l==!!h&&(h?l.localName===h:3===l.nodeType)){e=l,i[p]=null;break}if(null==e){if(null===h)return document.createTextNode(d);e=o?document.createElementNS("http://www.w3.org/2000/svg",h):document.createElement(h,d.is&&d),i=null,u=!1}if(null===h)f===d||u&&e.data===d||(e.data=d);else{if(i=i&&ct.call(e.childNodes),c=(f=t.props||wt).dangerouslySetInnerHTML,a=d.dangerouslySetInnerHTML,!u){if(null!=i)for(f={},p=0;p<e.attributes.length;p++)f[e.attributes[p].name]=e.attributes[p].value;(a||c)&&(a&&(c&&a.__html==c.__html||a.__html===e.innerHTML)||(e.innerHTML=a&&a.__html||""))}if(function(e,n,t,r,o){var i;for(i in t)"children"===i||"key"===i||i in n||Lt(e,i,null,t[i],r);for(i in n)o&&"function"!=typeof n[i]||"children"===i||"key"===i||"value"===i||"checked"===i||t[i]===n[i]||Lt(e,i,n[i],t[i],r)}(e,d,f,o,u),a)n.__k=[];else if(p=n.props.children,Tt(e,Array.isArray(p)?p:[p],n,t,r,o&&"foreignObject"!==h,i,s,i?i[0]:t.__k&&kt(t,0),u),null!=i)for(p=i.length;p--;)null!=i[p]&&bt(i[p]);u||("value"in d&&void 0!==(p=d.value)&&(p!==e.value||"progress"===h&&!p||"option"===h&&p!==f.value)&&Lt(e,"value",p,f.value,!1),"checked"in d&&void 0!==(p=d.checked)&&p!==e.checked&&Lt(e,"checked",p,f.checked,!1))}return e}function jt(e,n,t){try{"function"==typeof e?e(n):e.current=n}catch(e){at.__e(e,t)}}function $t(e,n,t){var r,o;if(at.unmount&&at.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||jt(r,null,n)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){at.__e(e,n)}r.base=r.__P=null,e.__c=void 0}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&$t(r[o],n,t||"function"!=typeof e.type);t||null==e.__e||bt(e.__e),e.__=e.__e=e.__d=void 0}function Wt(e,n,t){return this.constructor(e,t)}function zt(e,n,t){var r,o,i;at.__&&at.__(e,n),o=(r="function"==typeof t)?null:t&&t.__k||n.__k,i=[],Gt(n,e=(!r&&t||n).__k=Ct(St,null,[e]),o||wt,wt,void 0!==n.ownerSVGElement,!r&&t?[t]:o?null:n.firstChild?ct.call(n.childNodes):null,i,!r&&t?t:o?o.__e:n.firstChild,r),Rt(i,e)}function Vt(e,n){zt(e,n,Vt)}function qt(e,n,t){var r,o,i,s=vt({},e.props);for(i in n)"key"==i?r=n[i]:"ref"==i?o=n[i]:s[i]=n[i];return arguments.length>2&&(s.children=arguments.length>3?ct.call(arguments,2):t),xt(e.type,s,r||e.key,o||e.ref,null)}function Zt(e,n){var t={__c:n="__cC"+gt++,__:e,Consumer:function(e,n){return e.children(n)},Provider:function(e){var t,r;return this.getChildContext||(t=[],(r={})[n]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&t.some((function(e){e.__e=!0,At(e)}))},this.sub=function(e){t.push(e);var n=e.componentWillUnmount;e.componentWillUnmount=function(){t.splice(t.indexOf(e),1),n&&n.call(e)}}),e.children}};return t.Provider.__=t.Consumer.contextType=t}ct=_t.slice,at={__e:function(e,n,t,r){for(var o,i,s;n=n.__;)if((o=n.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(e)),s=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,r||{}),s=o.__d),s)return o.__E=o}catch(n){e=n}throw e}},ft=0,Et.prototype.setState=function(e,n){var t;t=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=vt({},this.state),"function"==typeof e&&(e=e(vt({},t),this.props)),e&&vt(t,e),null!=e&&this.__v&&(n&&this._sb.push(n),At(this))},Et.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),At(this))},Et.prototype.render=St,dt=[],pt="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,mt=function(e,n){return e.__v.__b-n.__v.__b},It.__r=0,gt=0;var Jt,Kt,Yt,Xt,Qt=0,er=[],nr=[],tr=at.__b,rr=at.__r,or=at.diffed,ir=at.__c,sr=at.unmount;function ur(e,n){at.__h&&at.__h(Kt,e,Qt||n),Qt=0;var t=Kt.__H||(Kt.__H={__:[],__h:[]});return e>=t.__.length&&t.__.push({__V:nr}),t.__[e]}function lr(e){return Qt=1,cr(Cr,e)}function cr(e,n,t){var r=ur(Jt++,2);if(r.t=e,!r.__c&&(r.__=[t?t(n):Cr(void 0,n),function(e){var n=r.__N?r.__N[0]:r.__[0],t=r.t(n,e);n!==t&&(r.__N=[t,r.__[1]],r.__c.setState({}))}],r.__c=Kt,!Kt.u)){var o=function(e,n,t){if(!r.__c.__H)return!0;var o=r.__c.__H.__.filter((function(e){return e.__c}));if(o.every((function(e){return!e.__N})))return!i||i.call(this,e,n,t);var s=!1;return o.forEach((function(e){if(e.__N){var n=e.__[0];e.__=e.__N,e.__N=void 0,n!==e.__[0]&&(s=!0)}})),!(!s&&r.__c.props===e)&&(!i||i.call(this,e,n,t))};Kt.u=!0;var i=Kt.shouldComponentUpdate,s=Kt.componentWillUpdate;Kt.componentWillUpdate=function(e,n,t){if(this.__e){var r=i;i=void 0,o(e,n,t),i=r}s&&s.call(this,e,n,t)},Kt.shouldComponentUpdate=o}return r.__N||r.__}function ar(e,n){var t=ur(Jt++,3);!at.__s&&br(t.__H,n)&&(t.__=e,t.i=n,Kt.__H.__h.push(t))}function fr(e,n){var t=ur(Jt++,4);!at.__s&&br(t.__H,n)&&(t.__=e,t.i=n,Kt.__h.push(t))}function dr(e){return Qt=5,hr((function(){return{current:e}}),[])}function hr(e,n){var t=ur(Jt++,7);return br(t.__H,n)?(t.__V=e(),t.i=n,t.__h=e,t.__V):t.__}function pr(e,n){return Qt=8,hr((function(){return e}),n)}function mr(e){var n=Kt.context[e.__c],t=ur(Jt++,9);return t.c=e,n?(null==t.__&&(t.__=!0,n.sub(Kt)),n.props.value):e.__}function gr(){for(var e;e=er.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(yr),e.__H.__h.forEach(vr),e.__H.__h=[]}catch(n){e.__H.__h=[],at.__e(n,e.__v)}}at.__b=function(e){Kt=null,tr&&tr(e)},at.__r=function(e){rr&&rr(e),Jt=0;var n=(Kt=e.__c).__H;n&&(Yt===Kt?(n.__h=[],Kt.__h=[],n.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=nr,e.__N=e.i=void 0}))):(n.__h.forEach(yr),n.__h.forEach(vr),n.__h=[])),Yt=Kt},at.diffed=function(e){or&&or(e);var n=e.__c;n&&n.__H&&(n.__H.__h.length&&(1!==er.push(n)&&Xt===at.requestAnimationFrame||((Xt=at.requestAnimationFrame)||_r)(gr)),n.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==nr&&(e.__=e.__V),e.i=void 0,e.__V=nr}))),Yt=Kt=null},at.__c=function(e,n){n.some((function(e){try{e.__h.forEach(yr),e.__h=e.__h.filter((function(e){return!e.__||vr(e)}))}catch(t){n.some((function(e){e.__h&&(e.__h=[])})),n=[],at.__e(t,e.__v)}})),ir&&ir(e,n)},at.unmount=function(e){sr&&sr(e);var n,t=e.__c;t&&t.__H&&(t.__H.__.forEach((function(e){try{yr(e)}catch(e){n=e}})),t.__H=void 0,n&&at.__e(n,t.__v))};var wr="function"==typeof requestAnimationFrame;function _r(e){var n,t=function(){clearTimeout(r),wr&&cancelAnimationFrame(n),setTimeout(e)},r=setTimeout(t,100);wr&&(n=requestAnimationFrame(t))}function yr(e){var n=Kt,t=e.__c;"function"==typeof t&&(e.__c=void 0,t()),Kt=n}function vr(e){var n=Kt;e.__c=e.__(),Kt=n}function br(e,n){return!e||e.length!==n.length||n.some((function(n,t){return n!==e[t]}))}function Cr(e,n){return"function"==typeof n?n(e):n}function xr(e,n){for(var t in n)e[t]=n[t];return e}function Sr(e,n){for(var t in e)if("__source"!==t&&!(t in n))return!0;for(var r in n)if("__source"!==r&&e[r]!==n[r])return!0;return!1}function Er(e,n){return e===n&&(0!==e||1/e==1/n)||e!=e&&n!=n}function kr(e){this.props=e}(kr.prototype=new Et).isPureReactComponent=!0,kr.prototype.shouldComponentUpdate=function(e,n){return Sr(this.props,e)||Sr(this.state,n)};var Nr=at.__b;at.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Nr&&Nr(e)};var Ar="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Ir(e){function n(n){var t=xr({},n);return delete t.ref,e(t,n.ref||null)}return n.$$typeof=Ar,n.render=n,n.prototype.isReactComponent=n.__f=!0,n.displayName="ForwardRef("+(e.displayName||e.name)+")",n}var Tr=function(e,n){return null==e?null:Dt(Dt(e).map(n))},Or={map:Tr,forEach:Tr,count:function(e){return e?Dt(e).length:0},only:function(e){var n=Dt(e);if(1!==n.length)throw"Children.only";return n[0]},toArray:Dt},Dr=at.__e;at.__e=function(e,n,t,r){if(e.then)for(var o,i=n;i=i.__;)if((o=i.__c)&&o.__c)return null==n.__e&&(n.__e=t.__e,n.__k=t.__k),o.__c(e,n);Dr(e,n,t,r)};var Pr=at.unmount;function Mr(e,n,t){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),e.__c.__H=null),null!=(e=xr({},e)).__c&&(e.__c.__P===t&&(e.__c.__P=n),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return Mr(e,n,t)}))),e}function Ur(e,n,t){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return Ur(e,n,t)})),e.__c&&e.__c.__P===n&&(e.__e&&t.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=t)),e}function Lr(){this.__u=0,this.t=null,this.__b=null}function Br(e){var n=e.__.__c;return n&&n.__a&&n.__a(e)}function Fr(){this.u=null,this.o=null}at.unmount=function(e){var n=e.__c;n&&n.__R&&n.__R(),n&&!0===e.__h&&(e.type=null),Pr&&Pr(e)},(Lr.prototype=new Et).__c=function(e,n){var t=n.__c,r=this;null==r.t&&(r.t=[]),r.t.push(t);var o=Br(r.__v),i=!1,s=function(){i||(i=!0,t.__R=null,o?o(u):u())};t.__R=s;var u=function(){if(!--r.__u){if(r.state.__a){var e=r.state.__a;r.__v.__k[0]=Ur(e,e.__c.__P,e.__c.__O)}var n;for(r.setState({__a:r.__b=null});n=r.t.pop();)n.forceUpdate()}},l=!0===n.__h;r.__u++||l||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(s,s)},Lr.prototype.componentWillUnmount=function(){this.t=[]},Lr.prototype.render=function(e,n){if(this.__b){if(this.__v.__k){var t=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=Mr(this.__b,t,r.__O=r.__P)}this.__b=null}var o=n.__a&&Ct(St,null,e.fallback);return o&&(o.__h=null),[Ct(St,null,n.__a?null:e.children),o]};var Gr=function(e,n,t){if(++t[1]===t[0]&&e.o.delete(n),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(t=e.u;t;){for(;t.length>3;)t.pop()();if(t[1]<t[0])break;e.u=t=t[2]}};function Rr(e){return this.getChildContext=function(){return e.context},e.children}function Hr(e){var n=this,t=e.i;n.componentWillUnmount=function(){zt(null,n.l),n.l=null,n.i=null},n.i&&n.i!==t&&n.componentWillUnmount(),e.__v?(n.l||(n.i=t,n.l={nodeType:1,parentNode:t,childNodes:[],appendChild:function(e){this.childNodes.push(e),n.i.appendChild(e)},insertBefore:function(e,t){this.childNodes.push(e),n.i.appendChild(e)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),n.i.removeChild(e)}}),zt(Ct(Rr,{context:n.context},e.__v),n.l)):n.l&&n.componentWillUnmount()}(Fr.prototype=new Et).__a=function(e){var n=this,t=Br(n.__v),r=n.o.get(e);return r[0]++,function(o){var i=function(){n.props.revealOrder?(r.push(o),Gr(n,e,r)):o()};t?t(i):i()}},Fr.prototype.render=function(e){this.u=null,this.o=new Map;var n=Dt(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&n.reverse();for(var t=n.length;t--;)this.o.set(n[t],this.u=[1,0,this.u]);return e.children},Fr.prototype.componentDidUpdate=Fr.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(n,t){Gr(e,t,n)}))};var jr="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,$r=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Wr=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,zr=/[A-Z0-9]/g,Vr="undefined"!=typeof document,qr=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)};Et.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(Et.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(n){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:n})}})}));var Zr=at.event;function Jr(){}function Kr(){return this.cancelBubble}function Yr(){return this.defaultPrevented}at.event=function(e){return Zr&&(e=Zr(e)),e.persist=Jr,e.isPropagationStopped=Kr,e.isDefaultPrevented=Yr,e.nativeEvent=e};var Xr,Qr={enumerable:!1,configurable:!0,get:function(){return this.class}},eo=at.vnode;at.vnode=function(e){"string"==typeof e.type&&function(e){var n=e.props,t=e.type,r={};for(var o in n){var i=n[o];if(!("value"===o&&"defaultValue"in n&&null==i||Vr&&"children"===o&&"noscript"===t||"class"===o||"className"===o)){var s=o.toLowerCase();"defaultValue"===o&&"value"in n&&null==n.value?o="value":"download"===o&&!0===i?i="":"ondoubleclick"===s?o="ondblclick":"onchange"!==s||"input"!==t&&"textarea"!==t||qr(n.type)?"onfocus"===s?o="onfocusin":"onblur"===s?o="onfocusout":Wr.test(o)?o=s:-1===t.indexOf("-")&&$r.test(o)?o=o.replace(zr,"-$&").toLowerCase():null===i&&(i=void 0):s=o="oninput","oninput"===s&&r[o=s]&&(o="oninputCapture"),r[o]=i}}"select"==t&&r.multiple&&Array.isArray(r.value)&&(r.value=Dt(n.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==t&&null!=r.defaultValue&&(r.value=Dt(n.children).forEach((function(e){e.props.selected=r.multiple?-1!=r.defaultValue.indexOf(e.props.value):r.defaultValue==e.props.value}))),n.class&&!n.className?(r.class=n.class,Object.defineProperty(r,"className",Qr)):(n.className&&!n.class||n.class&&n.className)&&(r.class=r.className=n.className),e.props=r}(e),e.$$typeof=jr,eo&&eo(e)};var no=at.__r;at.__r=function(e){no&&no(e),Xr=e.__c};var to=at.diffed;at.diffed=function(e){to&&to(e);var n=e.props,t=e.__e;null!=t&&"textarea"===e.type&&"value"in n&&n.value!==t.value&&(t.value=null==n.value?"":n.value),Xr=null};var ro={ReactCurrentDispatcher:{current:{readContext:function(e){return Xr.__n[e.__c].props.value}}}};function oo(e){return!!e&&e.$$typeof===jr}function io(e){return oo(e)?qt.apply(null,arguments):e}function so(e){e()}var uo={useState:lr,useId:function(){var e=ur(Jt++,11);if(!e.__){for(var n=Kt.__v;null!==n&&!n.__m&&null!==n.__;)n=n.__;var t=n.__m||(n.__m=[0,0]);e.__="P"+t[0]+"-"+t[1]++}return e.__},useReducer:cr,useEffect:ar,useLayoutEffect:fr,useInsertionEffect:fr,useTransition:function(){return[!1,so]},useDeferredValue:function(e){return e},useSyncExternalStore:function(e,n){var t=n(),r=lr({h:{__:t,v:n}}),o=r[0].h,i=r[1];return fr((function(){o.__=t,o.v=n,Er(o.__,n())||i({h:o})}),[e,t,n]),ar((function(){return Er(o.__,o.v())||i({h:o}),e((function(){Er(o.__,o.v())||i({h:o})}))}),[e]),t},startTransition:so,useRef:dr,useImperativeHandle:function(e,n,t){Qt=6,fr((function(){return"function"==typeof e?(e(n()),function(){return e(null)}):e?(e.current=n(),function(){return e.current=null}):void 0}),null==t?t:t.concat(e))},useMemo:hr,useCallback:pr,useContext:mr,useDebugValue:function(e,n){at.useDebugValue&&at.useDebugValue(n?n(e):e)},version:"17.0.2",Children:Or,render:function(e,n,t){return null==n.__k&&(n.textContent=""),zt(e,n),"function"==typeof t&&t(),e?e.__c:null},hydrate:function(e,n,t){return Vt(e,n),"function"==typeof t&&t(),e?e.__c:null},unmountComponentAtNode:function(e){return!!e.__k&&(zt(null,e),!0)},createPortal:function(e,n){var t=Ct(Hr,{__v:e,i:n});return t.containerInfo=n,t},createElement:Ct,createContext:Zt,createFactory:function(e){return Ct.bind(null,e)},cloneElement:io,createRef:function(){return{current:null}},Fragment:St,isValidElement:oo,findDOMNode:function(e){return e&&(e.base||1===e.nodeType&&e)||null},Component:Et,PureComponent:kr,memo:function(e,n){function t(e){var t=this.props.ref,r=t==e.ref;return!r&&t&&(t.call?t(null):t.current=null),n?!n(this.props,e)||!r:Sr(this.props,e)}function r(n){return this.shouldComponentUpdate=t,Ct(e,n)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r},forwardRef:Ir,flushSync:function(e,n){return e(n)},unstable_batchedUpdates:function(e,n){return e(n)},StrictMode:St,Suspense:Lr,SuspenseList:Fr,lazy:function(e){var n,t,r;function o(o){if(n||(n=e()).then((function(e){t=e.default||e}),(function(e){r=e})),r)throw r;if(!t)throw n;return Ct(t,o)}return o.displayName="Lazy",o.__f=!0,o},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:ro};const lo=uo,co=e=>{ar((()=>{const n=e();return()=>{n.Dispose()}}))},ao=(e,n)=>{ar((()=>{const n=e();return()=>{n.Dispose()}}),n)},fo=e=>{fr((()=>{const n=e();return()=>{n.Dispose()}}))};function ho(e){return{Dispose(){e()}}}function po(e){co(e)}function mo(e,n){ao(e,n)}function go(e){yo(e,[])}function wo(e){mo(e,[])}function _o(e){co((n=>(e(),ho((()=>{})))))}function yo(e,n){ao((n=>(e(),ho((()=>{})))),n)}function vo(e){return lo.useRef(e)}function bo(e,n){const t=re(n,[]);return lo.useMemo(e,t)}function Co(e){const n=vo(e),t=function(e,t){const r=re([],[]);return lo.useCallback((e=>n.current(e)),r)}();var r;return r=()=>{n.current=e},fo((e=>(r(),ho((()=>{}))))),t}function xo(e){return lo.useState(e)}class So{constructor(e=!1){this._id=0,this._cancelled=e,this._listeners=new Map}get isCancelled(){return this._cancelled}cancel(){if(!this._cancelled){this._cancelled=!0;for(const[,e]of this._listeners)e()}}addListener(e){const n=this._id;return this._listeners.set(this._id++,e),n}removeListener(e){return this._listeners.delete(e)}register(e,n){const t=this,r=this.addListener(null==n?e:()=>e(n));return{Dispose(){t.removeListener(r)}}}Dispose(){}}class Eo extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,Eo.prototype)}}class ko{constructor(){this.callCount=0}static get maxTrampolineCallCount(){return 2e3}incrementAndCheck(){return this.callCount++>ko.maxTrampolineCallCount}hijack(e){this.callCount=0,setTimeout(e,0)}}function No(e){return n=>{if(n.cancelToken.isCancelled)n.onCancel(new Eo);else if(n.trampoline.incrementAndCheck())n.trampoline.hijack((()=>{try{e(n)}catch(e){n.onError(U(e))}}));else try{e(n)}catch(e){n.onError(U(e))}}}const Ao=new class{Bind(e,n){return function(e,n){return No((t=>{e({onSuccess:e=>{try{n(e)(t)}catch(e){t.onError(U(e))}},onError:t.onError,onCancel:t.onCancel,cancelToken:t.cancelToken,trampoline:t.trampoline})}))}(e,n)}Combine(e,n){return this.Bind(e,(()=>n))}Delay(e){return No((n=>e()(n)))}For(e,n){const t=e[Symbol.iterator]();let r=t.next();return this.While((()=>!r.done),this.Delay((()=>{const e=n(r.value);return r=t.next(),e})))}Return(e){return function(e){return No((n=>n.onSuccess(e)))}(e)}ReturnFrom(e){return e}TryFinally(e,n){return No((t=>{e({onSuccess:e=>{n(),t.onSuccess(e)},onError:e=>{n(),t.onError(e)},onCancel:e=>{n(),t.onCancel(e)},cancelToken:t.cancelToken,trampoline:t.trampoline})}))}TryWith(e,n){return No((t=>{e({onSuccess:t.onSuccess,onCancel:t.onCancel,cancelToken:t.cancelToken,trampoline:t.trampoline,onError:e=>{try{n(e)(t)}catch(e){t.onError(U(e))}}})}))}Using(e,n){return this.TryFinally(n(e),(()=>e.Dispose()))}While(e,n){return e()?this.Bind(n,(()=>this.While(e,n))):this.Return(void 0)}Zero(){return No((e=>e.onSuccess(void 0)))}};function Io(e){}function To(e){const n=new So("boolean"==typeof e&&e);return"number"==typeof e&&setTimeout((()=>{n.cancel()}),e),n}function Oo(e){e.cancel()}function Do(e){return null!=e&&e.isCancelled}const Po=new So;function Mo(e,n){return function(e,n){return function(e,n,t,r,o){"function"!=typeof n&&(o=n,n=void 0);const i=new ko;e({onSuccess:n||Io,onError:t||Io,onCancel:r||Io,cancelToken:o||Po,trampoline:i})}(e,n)}(e,n)}class Uo extends O{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["HasNotStartedYet","InProgress","Resolved","Failed"]}}function Lo(e,n){const t=vo(To());return wo((()=>ho((()=>{Oo(t.current)})))),Co((r=>{Do(t.current)||Mo(Ao.Delay((()=>Ao.TryWith(Ao.Delay((()=>(n(new Uo(1)),Ao.Bind(e(r),(e=>(n(new Uo(2,e)),Ao.Zero())))))),(e=>(n(new Uo(3,e)),Ao.Zero()))))),t.current)}))}class Bo extends O{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["StreamId"]}}function Fo(e){return e.fields[0]}class Go{constructor(e,n,t,r,o,i,s){this.fullname=e,this.generics=n,this.construct=t,this.parent=r,this.fields=o,this.cases=i,this.enumCases=s}toString(){return Jo(this)}GetHashCode(){return Ho(this)}Equals(e){return jo(this,e)}}function Ro(e){return null!=e.generics?e.generics:[]}function Ho(e){return p([d(e.fullname),...Ro(e).map(Ho)])}function jo(e,n){return""===e.fullname?""===n.fullname&&w(ei(e),ei(n),(([e,n],[t,r])=>e===t&&jo(n,r))):e.fullname===n.fullname&&w(Ro(e),Ro(n),jo)}function $o(e,n,t,r){return new Go(e,n,t,void 0,r)}function Wo(e){return new Go("Microsoft.FSharp.Core.FSharpOption`1",[e])}function zo(e){return new Go("Microsoft.FSharp.Collections.FSharpList`1",[e])}const Vo=new Go("System.Object"),qo=(new Go("Microsoft.FSharp.Core.Unit"),new Go("System.Char"),new Go("System.String"));function Zo(e){if(Array.isArray(e))return e[0];if(e instanceof Go){const n=Ko(e);if(null!=n)return Zo(n)+"[]";{const n=e.fullname.lastIndexOf(".");return-1===n?e.fullname:e.fullname.substr(n+1)}}return e.name}function Jo(e){const n=Ko(e);return null!=n?Jo(n)+"[]":null==e.generics||0===e.generics.length?e.fullname:e.fullname+"["+e.generics.map((e=>Jo(e))).join(",")+"]"}function Ko(e){var n;return"[]"===e.fullname&&1===(null===(n=e.generics)||void 0===n?void 0:n.length)?e.generics[0]:void 0}function Yo(e){return null!=e.enumCases&&e.enumCases.length>0}function Xo(e){if(Yo(e)&&null!=e.enumCases)return e.enumCases.map((e=>e[1]));throw new Error(`${e.fullname} is not an enum type`)}function Qo(e,n){const t=parseInt(n,10);return function(e,n){if(null!=e.enumCases){if("string"==typeof n){for(const t of e.enumCases)if(t[0]===n)return t;throw new Error(`'${n}' was not found in ${e.fullname}`)}for(const t of e.enumCases)if(t[1]===n)return t;return["",n]}throw new Error(`${e.fullname} is not an enum type`)}(e,isNaN(t)?n:t)[1]}function ei(e){if(null!=e.fields)return e.fields();throw new Error(`${e.fullname} is not an F# record type`)}function ni(e){return e.fullname.startsWith("System.Tuple")}function ti(e,n){return Ge(n)?new st(1,Ue(De("%s cannot be null or empty"))(e)):new st(0,n)}function ri(e){return F(e)}function oi(e){return e.fields[0]}function ii(e){return e.fields[0]}function si(e){return e.fields[0]}function ui(e){let n;const t=ti("Email",e);return n=1===t.tag?new st(1,t.fields[0]):function(e){const n=function(e){let n;const t=function(e,n){const t=function(e,n,t=0){return e.lastIndex=t,e.exec(n)}(Ee(".*?@(.*)"),n);return null!=t?ln(Mn(In((()=>Hn((e=>e||""),t))))):void 0}(0,e);switch(n=null!=t?on(t)?1:on(ln(t))?0:1:1,n){case 0:return e;case 1:return}}(e);return null!=n?new st(0,n):new st(1,"Email is not in the correct format")}(t.fields[0]),1===n.tag?new st(1,n.fields[0]):new st(0,new j(0,n.fields[0]))}function li(e){return e.fields[0]}new Go("System.Boolean"),new Go("System.SByte"),new Go("System.Byte"),new Go("System.Int16"),new Go("System.UInt16"),new Go("System.Int32"),new Go("System.UInt32"),new Go("System.Single"),new Go("System.Double"),new Go("System.Decimal");class ci extends D{constructor(e,n,t,r){super(),this.FirstName=e,this.LastName=n,this.Email=t,this.MobilePhone=r}}function ai(){return $o("Dto.Primitives.ContactDetails",[],ci,(()=>[["FirstName",qo],["LastName",qo],["Email",qo],["MobilePhone",qo]]))}function fi(e){return q(e)}function di(e){return Y(e)}class hi extends D{constructor(e,n,t,r,o,i,s,u,l){super(),this.BusinessName=e,this.BusinessNumber=n,this.Address1=t,this.Address2=r,this.City=o,this.Postcode=i,this.State=s,this.Phone=u,this.CountryCode=l}}const pi=(()=>{try{if("undefined"!=typeof window&&"function"==typeof window.addEventListener){const e={passive:!0};window.addEventListener("testPassiveEventSupport",(e=>{}),e),window.removeEventListener("testPassiveEventSupport",(e=>{}))}}catch(e){}return!1})();function mi(e){return oe((e=>e.passive&&!pi?{capture:e.capture,once:e.once,passive:!1}:e),e)}function gi(e){return null!=(n=e)?(e=>e.capture?{capture:!0}:void 0)(ne(n)):void 0;var n}function wi(e,n){return 0===n.indexOf(e)?n:void 0}function _i(e,n){return function(e,n){const t=e.lastIndexOf(n);return t>=0&&t===e.length-n.length}(n,e)?n:void 0}function yi(e,n){return function(e){return 1===e?e=>{let n,t,r,o,i,s;return n=wi("/",e),null!=n?(t=n,"#"+t):(r=wi("#/",e),null!=r?(o=r,o):(i=wi("#",e),null!=i?(s=i,"#/"+ze(s,1,s.length-1)):"#/"+e))}:e=>{let n,t;return n=wi("/",e),null!=n?(t=n,t):"/"+e}}(n)(He("/",wn((e=>e.indexOf("?")>=0||0===e.indexOf("#")||0===e.indexOf("/")?e:encodeURIComponent(e)),e)))}function vi(e,n,t){1===n?history.pushState(void 0,"",yi(e,t)):history.replaceState(void 0,"",yi(e,t));const r=document.createEvent("CustomEvent");r.initEvent("CUSTOM_NAVIGATION_EVENT",!0,!0),window.dispatchEvent(r)}function bi(e,n){return function(e,n){let t,r;const o=Je();let i=o,s=n;for(;!Ye(s);){let n=e(Qe(s));for(;!Ye(n);)t=i,r=new qe(Qe(n),void 0),t.tail=r,i=r,n=en(n);s=en(s)}const u=i,l=Je();return u.tail=l,en(o)}((e=>{if(Re(e))return nn();{const n=function(e,...n){return 0===n.length?e.trimEnd():e.replace(new RegExp("["+ke(n.join(""))+"]+$"),"")}(e,"#");if("?"===n)return nn();if(null!=wi("?",n))return rn(n);{const e=n.split("?");if(ae(((e,n)=>e===n),e,null)||1!==e.length){if(ae(((e,n)=>e===n),e,null)||2!==e.length)return nn();if(""===e[1]){const n=e[0];return rn(decodeURIComponent(n))}{const n=e[0],t=e[1];return pn([decodeURIComponent(n),"?"+t])}}{const n=e[0];return rn(decodeURIComponent(n))}}}}),pn(We(null!=wi("#",e)?ze(e,1,e.length-1):1!==n||null==_i("#",e)&&null==_i("#/",e)?e:"",["/"],null,0)))}const Ci=function(e,n,t,r){const o=lo.memo(e,N(2,re(I(2,t),null)));return Rn((n=>{e.displayName=n}),te(n)),e=>{const n=function(e,n){if(null==e)return n;{const t=e;return n.key=t(n),n}}(r,e);return lo.createElement(o,n)}}((e=>{const n=Co((n=>{const t=re(e.onUrlChanged,(e=>{}));!function(e,n,t){n(bi(2===e?window.location.pathname+window.location.search:window.location.hash,e))}(re(e.hashMode,1),t)}));if(window.navigator.userAgent.indexOf("Trident")>=0||window.navigator.userAgent.indexOf("MSIE")>=0){const e="hashchange",t=e=>{n(e)},r=void 0,o=bo((()=>mi(r)),[r]),i=bo((()=>gi(r)),[r]),s=bo((()=>e=>{t(e)}),[t]);po(Co((()=>{if(null==o)window.addEventListener(e,s);else{const n=o;window.addEventListener(e,s,n)}return ho((()=>{if(null==i)window.removeEventListener(e,s);else{const n=i;window.removeEventListener(e,s,n)}}))})))}else{const e="popstate",t=n,r=void 0,o=bo((()=>mi(r)),[r]),i=bo((()=>gi(r)),[r]),s=bo((()=>e=>{t(e)}),[t]);po(Co((()=>{if(null==o)window.addEventListener(e,s);else{const n=o;window.addEventListener(e,s,n)}return ho((()=>{if(null==i)window.removeEventListener(e,s);else{const n=i;window.removeEventListener(e,s,n)}}))})))}const t="CUSTOM_NAVIGATION_EVENT",r=n,o=void 0,i=bo((()=>mi(o)),[o]),s=bo((()=>gi(o)),[o]),u=bo((()=>e=>{r(e)}),[r]);po(Co((()=>{if(null==i)window.addEventListener(t,u);else{const e=i;window.addEventListener(t,u,e)}return ho((()=>{if(null==s)window.removeEventListener(t,u);else{const e=s;window.removeEventListener(t,u,e)}}))})));const l=e.application;return null==l?null:l}),void 0,void 0,void 0);class xi extends O{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["AccountId","Name"]}}class Si extends O{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Asc","Desc"]}}function Ei(e){return 0===e.tag?new Si(1):new Si(0)}class ki extends O{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Sort"]}}const Ni=new ki(0,new xi(1),new Si(0));function Ai(e){return e.fields[0]}function Ii(e){return e.fields[1]}function Ti(e,n){const t=n.fields[1],r=[e,n.fields[0]];return 1===r[0].tag?1===r[1].tag?new ki(0,new xi(1),Ei(t)):new ki(0,new xi(1),new Si(0)):0===r[1].tag?new ki(0,new xi(0),Ei(t)):new ki(0,new xi(0),new Si(0))}class Oi extends O{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["SearchText"]}}const Di=new Oi(0,"");function Pi(e){return e.fields[0]}class Mi extends O{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["PageSize"]}}function Ui(e){return e.fields[0]}class Li extends D{constructor(e,n,t){super(),this.SearchText=e,this.Sort=n,this.PageSize=t}}class Bi extends O{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["AccountKey"]}}class Fi extends D{constructor(e,n,t,r,o){super(),this.StreamId=e,this.Name=n,this.Website=t,this.ContactDetails=r,this.Notes=o}}function Gi(e){const n=function(e){const n=ti("Name",e);return 1===n.tag?new st(1,n.fields[0]):new st(0,B(n.fields[0]))}(e.Name);if(1===n.tag)return new st(1,n.fields[0]);{const t=function(e){const n=ti("Website",e);return 1===n.tag?new st(1,n.fields[0]):new st(0,new G(0,n.fields[0]))}(e.Website);if(1===t.tag)return new st(1,t.fields[0]);{const r=function(e){const n=function(e){const n=ti("FirstName",e);return 1===n.tag?new st(1,n.fields[0]):new st(0,new R(0,n.fields[0]))}(e.FirstName);if(1===n.tag)return new st(1,n.fields[0]);{const t=function(e){const n=ti("LastName",e);return 1===n.tag?new st(1,n.fields[0]):new st(0,new H(0,n.fields[0]))}(e.LastName);if(1===t.tag)return new st(1,t.fields[0]);{const r=ui(e.Email);if(1===r.tag)return new st(1,r.fields[0]);{const o=function(e){const n=ti("MobilePhone",e);return 1===n.tag?new st(1,n.fields[0]):new st(0,new $(0,n.fields[0]))}(e.MobilePhone);return 1===o.tag?new st(1,o.fields[0]):new st(0,new W(n.fields[0],t.fields[0],r.fields[0],o.fields[0]))}}}}(e.ContactDetails);return 1===r.tag?new st(1,r.fields[0]):new st(0,new Fi(new Bo(0,e.StreamId),n.fields[0],t.fields[0],r.fields[0],function(e){return null==e?void 0:new z(0,e)}(e.Notes)))}}}function Ri(e,n){return _n((e=>Fo(e.StreamId)===J(n)),e)}class Hi extends O{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["PartnerList","Partner","PartnerAccountList","PartnerSuperConfiguration","PartnerBenefitsOnboardingConfiguration","PartnerBankDetailsConfiguration","Account","AccountProfilesDirectory","AccountSuperConfiguration","AccountBenefitsOnboardingConfiguration","AccountBankDetailsConfiguration","NotFound"]}}function ji(e){let n,t,r,o,i,s,u,l,c,a,f,d,h,p,m,g;switch(on(e)?n=11:"account-registry"===un(e)?on(ln(e))?n=11:"partners"===un(ln(e))?on(ln(ln(e)))?n=0:on(ln(ln(ln(e))))?(n=1,t=un(ln(ln(e)))):"accounts"===un(ln(ln(ln(e))))?on(ln(ln(ln(ln(e)))))?(n=2,r=un(ln(ln(e)))):on(ln(ln(ln(ln(ln(e))))))?(n=6,u=un(ln(ln(ln(ln(e))))),l=un(ln(ln(e)))):"directory"===un(ln(ln(ln(ln(ln(e))))))?on(ln(ln(ln(ln(ln(ln(e)))))))?(n=7,c=un(ln(ln(ln(ln(e))))),a=un(ln(ln(e)))):n=11:"super-configuration"===un(ln(ln(ln(ln(ln(e))))))?on(ln(ln(ln(ln(ln(ln(e)))))))?(n=8,f=un(ln(ln(ln(ln(e))))),d=un(ln(ln(e)))):n=11:"benefits-onboarding-configuration"===un(ln(ln(ln(ln(ln(e))))))?on(ln(ln(ln(ln(ln(ln(e)))))))?(n=9,h=un(ln(ln(ln(ln(e))))),p=un(ln(ln(e)))):n=11:"bank-details-configuration"===un(ln(ln(ln(ln(ln(e))))))&&on(ln(ln(ln(ln(ln(ln(e)))))))?(n=10,m=un(ln(ln(ln(ln(e))))),g=un(ln(ln(e)))):n=11:"super-configuration"===un(ln(ln(ln(e))))?on(ln(ln(ln(ln(e)))))?(n=3,o=un(ln(ln(e)))):n=11:"benefits-onboarding-configuration"===un(ln(ln(ln(e))))?on(ln(ln(ln(ln(e)))))?(n=4,i=un(ln(ln(e)))):n=11:"bank-details-configuration"===un(ln(ln(ln(e))))&&on(ln(ln(ln(ln(e)))))?(n=5,s=un(ln(ln(e)))):n=11:n=11:n=11,n){case 0:return new Hi(0);case 1:return new Hi(1,Z(t));case 2:return new Hi(2,Z(r));case 3:return new Hi(3,Z(o));case 4:return new Hi(4,Z(i));case 5:return new Hi(5,Z(s));case 6:return new Hi(6,Z(l),X(u));case 7:return new Hi(7,Z(a),X(c));case 8:return new Hi(8,Z(d),X(f));case 9:return new Hi(9,Z(p),X(h));case 10:return new Hi(10,Z(g),X(m));case 11:return new Hi(11)}}function $i(e){switch(e.tag){case 1:return pn(["account-registry","partners",fi(e.fields[0])]);case 2:return pn(["account-registry","partners",fi(e.fields[0]),"accounts"]);case 3:return pn(["account-registry","partners",fi(e.fields[0]),"super-configuration"]);case 4:return pn(["account-registry","partners",fi(e.fields[0]),"benefits-onboarding-configuration"]);case 5:return pn(["account-registry","partners",fi(e.fields[0]),"bank-details-configuration"]);case 6:return pn(["account-registry","partners",fi(e.fields[0]),"accounts",di(e.fields[1])]);case 7:return pn(["account-registry","partners",fi(e.fields[0]),"accounts",di(e.fields[1]),"directory"]);case 8:return pn(["account-registry","partners",fi(e.fields[0]),"accounts",di(e.fields[1]),"super-configuration"]);case 9:return pn(["account-registry","partners",fi(e.fields[0]),"accounts",di(e.fields[1]),"benefits-onboarding-configuration"]);case 10:return pn(["account-registry","partners",fi(e.fields[0]),"accounts",di(e.fields[1]),"bank-details-configuration"]);default:return pn(["account-registry","partners"])}}function Wi(e){switch(e.tag){case 1:{const n=["account-registry","partners",fi(e.fields[0])];return rn((e=>{vi(pn(n),1,1)}))}case 2:{const n=["account-registry","partners",fi(e.fields[0]),"accounts"];return rn((e=>{vi(pn(n),1,1)}))}case 3:{const n=["account-registry","partners",fi(e.fields[0]),"super-configuration"];return rn((e=>{vi(pn(n),1,1)}))}case 4:{const n=["account-registry","partners",fi(e.fields[0]),"benefits-onboarding-configuration"];return rn((e=>{vi(pn(n),1,1)}))}case 5:{const n=["account-registry","partners",fi(e.fields[0]),"bank-details-configuration"];return rn((e=>{vi(pn(n),1,1)}))}case 6:{const n=["account-registry","partners",fi(e.fields[0]),"accounts",di(e.fields[1])];return rn((e=>{vi(pn(n),1,1)}))}case 7:{const n=["account-registry","partners",fi(e.fields[0]),"accounts",di(e.fields[1]),"directory"];return rn((e=>{vi(pn(n),1,1)}))}case 8:{const n=["account-registry","partners",fi(e.fields[0]),"accounts",di(e.fields[1]),"super-configuration"];return rn((e=>{vi(pn(n),1,1)}))}case 9:{const n=["account-registry","partners",fi(e.fields[0]),"accounts",di(e.fields[1]),"benefits-onboarding-configuration"];return rn((e=>{vi(pn(n),1,1)}))}case 10:{const n=["account-registry","partners",fi(e.fields[0]),"accounts",di(e.fields[1]),"bank-details-configuration"];return rn((e=>{vi(pn(n),1,1)}))}default:{const e=["account-registry","partners"];return rn((n=>{vi(pn(e),1,1)}))}}}function zi(e,n){return 1===n.tag?new Uo(1):2===n.tag?1===n.fields[0].tag?new Uo(2,new st(1,n.fields[0].fields[0])):new Uo(2,new st(0,e(n.fields[0].fields[0]))):3===n.tag?new Uo(3,n.fields[0]):new Uo(0)}const Vi=class{constructor(){this.delegates=[]}Add(e){this._addHandler(e)}get Publish(){return this}Trigger(e,n){let t,r;void 0===n?(t=null,r=e):(t=e,r=n),this.delegates.forEach((e=>1===e.length?e(r):e(t,r)))}AddHandler(e){this._addHandler(e)}RemoveHandler(e){this._removeHandler(e)}Subscribe(e){const n="function"==typeof e?e:e.OnNext;return this._addHandler(n),{Dispose:()=>{this._removeHandler(n)}}}_addHandler(e){this.delegates.push(e)}_removeHandler(e){const n=this.delegates.indexOf(e);n>-1&&this.delegates.splice(n,1)}},qi=class{constructor(e){this._enabled=!1,this._isDisposed=!1,this._intervalId=0,this._timeoutId=0,this.Interval=e&&e>0?e:100,this.AutoReset=!0,this._elapsed=new Vi}Elapsed(){return this._elapsed}get Enabled(){return this._enabled}set Enabled(e){this._isDisposed||this._enabled===e||(this._enabled=e,this._enabled?this.AutoReset?this._intervalId=setInterval((()=>{this.AutoReset||(this.Enabled=!1),this._elapsed.Trigger(new Date)}),this.Interval):this._timeoutId=setTimeout((()=>{this.Enabled=!1,this._timeoutId=0,this.AutoReset&&(this.Enabled=!0),this._elapsed.Trigger(new Date)}),this.Interval):(this._timeoutId&&(clearTimeout(this._timeoutId),this._timeoutId=0),this._intervalId&&(clearInterval(this._intervalId),this._intervalId=0)))}Dispose(){this.Enabled=!1,this._isDisposed=!0}Close(){this.Dispose()}Start(){this.Enabled=!0}Stop(){this.Enabled=!1}};class Zi{constructor(e,n,t){this.OnNext=e,this.OnError=n||(e=>{}),this.OnCompleted=t||(()=>{})}}function Ji(){return nn()}function Ki(e){return rn(e)}function Yi(e,n,t,r){return function(e,n,t,r){return rn((e=>{(e=>{!function(e){!function(e,n){let t,r=new qi(e);r.AutoReset=!1,t=r,function(e,n){n.Subscribe(new Zi(e))}(n,t.Elapsed()),t.Enabled=!0,t.Start()}(0,(n=>{Mo(e)}))}(e)})(Ao.Delay((()=>{return Ao.Bind((o=n(t),No((e=>{o({onSuccess:n=>e.onSuccess(function(e){return new lt(0,e)}(n)),onError:n=>e.onSuccess(function(e){return new lt(1,e)}(n)),onCancel:e.onCancel,cancelToken:e.cancelToken,trampoline:e.trampoline})}))),(n=>{const t=n;return 0===t.tag?(e(r(t.fields[0])),Ao.Zero()):Ao.Zero()}));var o})))}))}(0,e,n,(e=>1===e.tag?r(e.fields[0]):t(e.fields[0])))}function Xi(e,n,t){return n()?t.then((()=>Xi(e,n,t))):Promise.resolve(void 0)}function Qi(e,n){return{then:(e,t)=>{try{return n().then(e,t)}catch(e){if(y(t,null))return Promise.reject(e);try{return Promise.resolve(t(e))}catch(e){return Promise.reject(e)}}},catch:e=>{try{return n().catch(e)}catch(n){try{return Promise.resolve(e(n))}catch(e){return Promise.reject(e)}}}}}const es=new class{constructor(){}};class ns extends O{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Writable","ReadWritable"]}}class ts{constructor(e){this.state=new ns(0,ue(new Array(S(b,e,10)),0,S(b,e,10),null),0)}}function rs(e){const n=e.state;if(1===n.tag){const t=0|n.fields[1],r=0|n.fields[2],o=n.fields[0],i=(r+1)%o.length|0;return e.state=i===t?new ns(0,o,t):new ns(1,o,t,i),ee(o[r])}}function os(e,n,o){const i=vo(e[0]),s=vo(new ts(10)),u=xo(e[0]);let l;const c=vo(To()),a=vo(c.current);wo((()=>ho((()=>{Oo(c.current)})))),l=a;const f=()=>{setTimeout((()=>{let e;e=l.current,Do(e)||u[1](i.current)}),0)},d=e=>{const t=function(e,n){return new Promise(((e,t)=>{try{Promise.resolve(n).then(e,t)}catch(e){t(e)}}))}(0,Qi(0,(()=>{let t=ee(e);return Xi(es,(()=>{let e;return null!=t&&(e=l.current,!Do(e))}),Qi(0,(()=>{const e=n(ne(t),i.current);return dn((e=>{e(d)}),e[1]),t=rs(s.current),i.current=e[0],f(),Promise.resolve()})))})));t.then()},h=Co(d);return mo((()=>ho((()=>{let e;Rn((e=>{r(e)}),te((e=i.current,t(e)?e:void 0)))}))),o),yo((()=>{i.current=e[0],f(),dn((e=>{e(h)}),e[1])}),o),_o((()=>{Rn(h,te(rs(s.current)))})),[u[0],h]}function is(e,n,t){return os(bo(e,t),n,t)}class ss extends O{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class us extends O{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Header"]}}class ls extends D{constructor(e,n,t,r,o,i,s,u){super(),this.url=e,this.method=n,this.headers=t,this.withCredentials=r,this.overridenMimeType=o,this.overridenResponseType=i,this.timeout=s,this.content=u}}class cs extends O{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class as extends D{constructor(e,n,t,r,o,i){super(),this.statusCode=0|e,this.responseText=n,this.responseType=t,this.responseUrl=r,this.responseHeaders=o,this.content=i}}class fs{constructor(e,n){this.k=e,this.v=n}}function ds(e,n){return new fs(e,n)}function hs(e){return e.k}function ps(e){return e.v}class ms extends fs{constructor(e,n,t,r,o){super(e,n),this.left=t,this.right=r,this.h=0|o}}function gs(e,n,t,r,o){return new ms(e,n,t,r,o)}function ws(e){return e.left}function _s(e){return e.right}function ys(e){return e.h}function vs(e,n){e:for(;;){const t=e;if(null!=n){const r=n;if(r instanceof ms){e=vs(t+1,ws(r)),n=_s(r);continue e}return t+1|0}return 0|t}}function bs(e){return vs(0,e)}function Cs(e,n,t,r){let o,i;o=null!=e?e instanceof ms?ys(e):1:0,i=null!=r?r instanceof ms?ys(r):1:0;const s=0|(o<i?i:o);return 0===s?ds(n,t):gs(n,t,e,r,s+1)}function xs(e,n,t,r){let o,i,s,u,l,c;if(l=null!=e?e instanceof ms?ys(e):1:0,c=null!=r?r instanceof ms?ys(r):1:0,c>l+2){const s=ne(r);if(s instanceof ms){if(o=ws(s),(null!=o?(i=o,i instanceof ms?ys(i):1):0)>l+1){const r=ne(ws(s));if(r instanceof ms)return Cs(Cs(e,n,t,ws(r)),hs(r),ps(r),Cs(_s(r),hs(s),ps(s),_s(s)));throw new Error("internal error: Map.rebalance")}return Cs(Cs(e,n,t,ws(s)),hs(s),ps(s),_s(s))}throw new Error("internal error: Map.rebalance")}if(l>c+2){const o=ne(e);if(o instanceof ms){if(s=_s(o),(null!=s?(u=s,u instanceof ms?ys(u):1):0)>c+1){const e=ne(_s(o));if(e instanceof ms)return Cs(Cs(ws(o),hs(o),ps(o),ws(e)),hs(e),ps(e),Cs(_s(e),n,t,r));throw new Error("internal error: Map.rebalance")}return Cs(ws(o),hs(o),ps(o),Cs(_s(o),n,t,r))}throw new Error("internal error: Map.rebalance")}return Cs(e,n,t,r)}function Ss(e,n,t,r){if(null!=r){const o=r,i=0|e.Compare(n,hs(o));return o instanceof ms?i<0?xs(Ss(e,n,t,ws(o)),hs(o),ps(o),_s(o)):0===i?gs(n,t,ws(o),_s(o),ys(o)):xs(ws(o),hs(o),ps(o),Ss(e,n,t,_s(o))):i<0?gs(n,t,void 0,r,2):0===i?ds(n,t):gs(n,t,r,void 0,2)}return ds(n,t)}function Es(e,n,t){e:for(;;){const r=e,o=n;if(null!=t){const i=t,s=0|r.Compare(o,hs(i));if(0===s)return ee(ps(i));if(i instanceof ms){e=r,n=o,t=s<0?ws(i):_s(i);continue e}return}return}}function ks(e,n){e:for(;;){const t=e;if(null!=n){const r=n;if(r instanceof ms){ks(t,ws(r)),t(hs(r),ps(r)),e=t,n=_s(r);continue e}t(hs(r),ps(r))}break}}function Ns(e,n){ks(e,n)}function As(e,n){if(null!=n){const t=n;if(t instanceof ms){const n=As(e,ws(t)),r=e(hs(t),ps(t)),o=As(e,_s(t));return gs(hs(t),r,n,o,ys(t))}return ds(hs(t),e(hs(t),ps(t)))}}function Is(e,n){return As(e,n)}function Ts(e,n){let t;for(let r=0;r<=n.length-1;r++){const o=n[r];t=Ss(e,o[0],o[1],t)}return t}class Os extends D{constructor(e,n){super(),this.stack=e,this.started=n}}function Ds(e){e:for(;;){const n=e;if(on(n))return nn();{const t=ln(n),r=un(n);if(null!=r){const o=r;if(o instanceof ms){e=hn([ws(o),ds(hs(o),ps(o)),_s(o)],t);continue e}return n}e=t;continue e}}}function Ps(e){return new Os(Ds(rn(e)),!1)}function Ms(e){if(e.started){const n=e.stack;if(on(n))return function(){throw new Error("enumeration already finished")}();if(null!=un(n)){const e=un(n);if(e instanceof ms)throw new Error("Please report error: Map iterator, unexpected stack for current");return[hs(e),ps(e)]}throw new Error("Please report error: Map iterator, unexpected stack for current")}return function(){throw new Error("enumeration not started")}()}function Us(e){let n=Ps(e);return{"System.Collections.Generic.IEnumerator`1.get_Current":()=>Ms(n),"System.Collections.IEnumerator.get_Current":()=>Ms(n),"System.Collections.IEnumerator.MoveNext":()=>function(e){if(e.started){const n=e.stack;if(on(n))return!1;if(null!=un(n)){if(un(n)instanceof ms)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=Ds(ln(n)),!on(e.stack)}throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}return e.started=!0,!on(e.stack)}(n),"System.Collections.IEnumerator.Reset"(){n=Ps(e)},Dispose(){}}}class Ls{constructor(e,n){this.comparer=e,this.tree=n}GetHashCode(){return 0|function(e){const n=(e,n)=>(e<<1)+n+631;let t=0;const o=s(e);try{for(;o["System.Collections.IEnumerator.MoveNext"]();){const e=o["System.Collections.Generic.IEnumerator`1.get_Current"]();t=0|n(t,m(e[0])),t=0|n(t,m(e[1]))}}finally{r(o)}return 0|t}(this)}Equals(e){if(!(e instanceof Ls))return!1;{const n=s(this);try{const t=s(e);try{const e=()=>{const r=n["System.Collections.IEnumerator.MoveNext"]();if(r===t["System.Collections.IEnumerator.MoveNext"]()){if(r){const r=n["System.Collections.Generic.IEnumerator`1.get_Current"](),o=t["System.Collections.Generic.IEnumerator`1.get_Current"]();return!(!y(r[0],o[0])||!y(r[1],o[1]))&&e()}return!0}return!1};return e()}finally{r(t)}}finally{r(n)}}}toString(){return"map ["+He("; ",Hn((e=>Fe("({0}, {1})",e[0],e[1])),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(e){return Array.from(this)}GetEnumerator(){return Us(this.tree)}[Symbol.iterator](){return u(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return Us(this.tree)}CompareTo(e){const n=this;if(e instanceof Ls)return 0|function(e,n,t){const o=An(n);try{const n=An(t);try{let t=0,r=o["System.Collections.IEnumerator.MoveNext"](),i=n["System.Collections.IEnumerator.MoveNext"]();for(;0===t&&r&&i;)t=0|e(o["System.Collections.Generic.IEnumerator`1.get_Current"](),n["System.Collections.Generic.IEnumerator`1.get_Current"]()),0===t&&(r=o["System.Collections.IEnumerator.MoveNext"](),i=n["System.Collections.IEnumerator.MoveNext"]());return 0|(0!==t?t:r?1:i?-1:0)}finally{r(n)}}finally{r(o)}}(((e,t)=>{const r=0|n.comparer.Compare(e[0],t[0]);return 0|(0!==r?r:x(e[1],t[1]))}),n,e);throw new Error("not comparable\\nParameter name: obj")}"System.Collections.Generic.ICollection`1.Add2B595"(e){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Clear"(){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Remove2B595"(e){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Contains2B595"(e){return Hs(this,e[0])&&y(Gs(this,e[0]),e[1])}"System.Collections.Generic.ICollection`1.CopyToZ2E171D71"(e,n){!function(e,n,t){let r=t;Ns(((e,t)=>{n[r]=[e,t],r=r+1|0}),e)}(this.tree,e,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|Rs(this)}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return 0|Rs(this)}get size(){return 0|Rs(this)}clear(){throw new Error("Map cannot be mutated")}delete(e){throw new Error("Map cannot be mutated")}entries(){return Hn((e=>[e[0],e[1]]),this)}get(e){return Gs(this,e)}has(e){return Hs(this,e)}keys(){return Hn((e=>e[0]),this)}set(e,n){throw new Error("Map cannot be mutated")}values(){return Hn((e=>e[1]),this)}forEach(e,n){const t=this;Rn((n=>{e(n[1],n[0],t)}),t)}}function Bs(e,n){return new Ls(e,n)}function Fs(n){const t=ie();return Bs(t,function(n,t){if(e(t))return Ts(n,t);if(t instanceof qe)return function(e,n){return an(((n,t)=>Ss(e,t[0],t[1],n)),void 0,n)}(n,t);{const e=s(t);try{return function(e,n,t){for(;;){const r=e,o=n,i=t;if(!i["System.Collections.IEnumerator.MoveNext"]())return o;{const s=i["System.Collections.Generic.IEnumerator`1.get_Current"]();e=r,n=Ss(r,s[0],s[1],o),t=i}}}(n,void 0,e)}finally{r(e)}}}(t,n))}function Gs(e,n){return function(e,n,t){const r=Es(e,n,t);if(null==r)throw new Error;return ne(r)}(e.comparer,n,e.tree)}function Rs(e){return bs(e.tree)}function Hs(e,n){return function(e,n,t){e:for(;;){const r=e,o=n;if(null!=t){const i=t,s=0|r.Compare(o,hs(i));if(i instanceof ms){if(s<0){e=r,n=o,t=ws(i);continue e}if(0===s)return!0;e=r,n=o,t=_s(i);continue e}return 0===s}return!1}}(e.comparer,n,e.tree)}function js(){return Ls.empty}Ls.empty=Bs(ie(),void 0);const $s=new ls("",new ss(0),nn(),!1,void 0,void 0,void 0,new class extends O{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Empty","Text","Binary","Form"]}}(0));function Ws(e,n){return Ge(n)?[n]:We(n,[e],null,0)}function zs(e){return new ls(e,$s.method,$s.headers,$s.withCredentials,$s.overridenMimeType,$s.overridenResponseType,$s.timeout,$s.content)}function Vs(e,n){return new ls(n.url,e,n.headers,n.withCredentials,n.overridenMimeType,n.overridenResponseType,n.timeout,n.content)}function qs(e,n){return new ls(n.url,n.method,mn(n.headers,rn(e)),n.withCredentials,n.overridenMimeType,n.overridenResponseType,n.timeout,n.content)}function Zs(e){return function(e){return No((n=>e([n.onSuccess,n.onError,n.onCancel])))}((n=>{const t=new XMLHttpRequest;t.open(function(e){switch(e.tag){case 1:return"POST";case 3:return"PATCH";case 2:return"PUT";case 4:return"DELETE";case 6:return"OPTIONS";case 5:return"HEAD";default:return"GET"}}(e.method),e.url),t.onreadystatechange=()=>{let e,r,o,i,s,u,l;4===t.readyState&&n[0]((r=t.responseType,e=""===r||"text"===r?t.responseText:"",o=0|t.status,i=t.responseType,u=t.responseType,s=""===u||"text"===u?new cs(0,t.responseText):new cs("arraybuffer"===u?2:"blob"===u?1:3,t.response),l=function(e){const n=ie();return Bs(n,Ts(n,e))}(function(e,n,t){const r=[];for(let t=0;t<=n.length-1;t++){const o=e(n[t]);if(null!=o){const e=ne(o);r.push(e)}}return r}((e=>{const n=pn(Ws(":",e));return on(n)?void 0:[un(n).toLocaleLowerCase(),He(":",ln(n)).trim()]}),Ws("\r\n",t.getAllResponseHeaders()))),new as(o,e,i,t.responseURL,l,s)))};const o=s(e.headers);try{for(;o["System.Collections.IEnumerator.MoveNext"]();){const e=o["System.Collections.Generic.IEnumerator`1.get_Current"]();t.setRequestHeader(e.fields[0],e.fields[1])}}finally{r(o)}t.withCredentials=e.withCredentials;const i=e.overridenMimeType;if(null==i);else{const e=i;t.overrideMimeType(e)}const u=e.overridenResponseType;null==u||(1===u.tag?t.responseType="blob":2===u.tag?t.responseType="arraybuffer":t.responseType="text");const l=e.timeout;if(null==l);else{const e=0|l;t.timeout=0|e}const c=e.content;switch(c.tag){case 1:case 3:case 2:t.send(ee(c.fields[0]));break;default:t.send()}}))}new as(0,"","","",js(),new cs(0,""));class Js extends O{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class Ks extends O{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["PascalCase","CamelCase","SnakeCase"]}}class Ys{constructor(){this.cache=new Map([])}}function Xs(){return new Ys}function Qs(e){return e.slice(void 0,1).toLowerCase()+e.slice(1,e.length)}function eu(e,n){switch(e.tag){case 2:return function(e,n,t,r,o=0){if("string"==typeof e){const t=e;e=Ee(n,null!=r?r:0),n=t,r=void 0}if("function"==typeof t)return r=null==r?-1:r,n.substring(0,o)+n.substring(o).replace(e,(function(){let e=arguments[0];if(r){r--;const n=[],o=arguments.length,i="string"!=typeof arguments[o-1];let s=i?o-3:o-2;for(let e=0;e<s;e++)n.push(arguments[e]);n.index=arguments[s++],n.input=arguments[s++],i&&(n.groups=arguments[s]),e=t(n)}return e}));if(t=t.replace(/\$0/g,(e=>"$&")).replace(/\${([^}]+)}/g,"$<$1>"),null!=r){let i;const s=n.substring(o),u=Ne(e,s),l=Ne.length>r?(i=u[r-1],s.substring(0,i.index+i[0].length)):s;return n.substring(0,o)+l.replace(e,t)+n.substring(o+l.length)}return n.replace(e,t)}(Qs(n),"[A-Z]","_$0").toLowerCase();case 0:return n;default:return Qs(n)}}Xs(),Xs();const nu=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,tu=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,ru=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function ou(e,n){try{return n.contents=function(e){function n(e){return e.replace(tu,"$1-$2-$3-$4-$5")}const t=e.trim().toLowerCase();if(nu.test(t))return function(e,...n){if(0===n.length)return e.trim();const t="["+ke(n.join(""))+"]+";return e.replace(new RegExp("^"+t),"").replace(new RegExp(t+"$"),"")}(t,"{","}","(",")");if(tu.test(t))return n(t);if(ru.test(t))return n(t.replace(/[\{\},]|0x/g,""));throw new Error("Guid should contain 32 digits with 4 dashes: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx")}(e),!0}catch(e){return!1}}var iu;function su(e,n){switch(n){case 8:return e?[0,255]:[-128,127];case 16:return e?[0,65535]:[-32768,32767];case 32:return e?[0,4294967295]:[-2147483648,2147483647];default:throw new Error("Invalid bit size.")}}function uu(e,n,t,r,o){try{return o.contents=function(e,n,t,r,o){const i=function(e,n,t){const r=/^\s*([\+\-])?(0[xXoObB])?([0-9a-fA-F]+)\s*$/.exec(e.replace(/_/g,""));if(null!=r){const[,,e,o]=r;t=t||function(e,n){if(n&iu.AllowHexSpecifier)return 16;switch(e){case"0b":case"0B":return 2;case"0o":case"0O":return 8;case"0x":case"0X":return 16;default:return 10}}(e,n);const i=function(e){switch(e){case 2:return/[^0-1]/;case 8:return/[^0-7]/;case 10:return/[^0-9]/;case 16:return/[^0-9a-fA-F]/;default:throw new Error("Invalid Base.")}}(t);if(!i.test(o))return function(e,n){const[,t,r,o]=e;return{sign:t||"",prefix:r||"",digits:o,radix:n}}(r,t)}return null}(e,n,void 0);if(null!=i){let e=Number.parseInt(i.sign+i.digits,i.radix);if(!Number.isNaN(e)){const[n,o]=su(!0,r);!t&&10!==i.radix&&e>=n&&e<=o&&(e=e<<32-r>>32-r);const[s,u]=su(t,r);if(e>=s&&e<=u)return e}}throw new Error("Input string was not in a correct format.")}(e,n,t,r),!0}catch(e){return!1}}function lu(e,n){!function(e){if(null!=e&&0!==e){if(e%6e4!=0)throw new Error("Offset must be specified in whole minutes.");if(Math.abs(e/36e5)>14)throw new Error("Offset must be within plus or minus 14 hours.")}}(n);const t=new Date(e);return t.offset=null!=n?n:-6e4*(new Date).getTimezoneOffset(),t}function cu(e,n){try{return n.contents=function(e){const[n,t]=ge(e),r=null==t?-6e4*n.getTimezoneOffset():"Z"===t?0:6e4*t;return lu(n.getTime(),r)}(e),!0}catch(e){return!1}}!function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"}(iu||(iu={}));var au=null;try{au=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(gt){}function fu(e,n,t){this.low=0|e,this.high=0|n,this.unsigned=!!t}function du(e){return!0===(e&&e.__isLong__)}fu.prototype.GetHashCode=function(){let e=this.unsigned?1:0;return e=(e<<5)+e^this.high,e=(e<<5)+e^this.low,e},fu.prototype.Equals=function(e){return Gu(this,e)},fu.prototype.CompareTo=function(e){return $u(this,e)},fu.prototype.toString=function(e){return Uu(this,e)},fu.prototype.toJSON=function(){return Uu(this)},fu.prototype[_e]=function(){const e=this;return{multiply:n=>qu(e,n),toPrecision:n=>String(e)+(0).toPrecision(n).substr(1),toExponential:n=>String(e)+(0).toExponential(n).substr(1),toFixed:n=>String(e)+(0).toFixed(n).substr(1),toHex:()=>{return Uu(e.unsigned?e:function(e,n,t){return t?function(e,n){return new fu(e[0]|e[1]<<8|e[2]<<16|e[3]<<24,e[4]|e[5]<<8|e[6]<<16|e[7]<<24,n)}(e,n):function(e,n){return new fu(e[4]<<24|e[5]<<16|e[6]<<8|e[7],e[0]<<24|e[1]<<16|e[2]<<8|e[3],n)}(e,n)}((n=e,t?function(e){var n=e.high,t=e.low;return[255&t,t>>>8&255,t>>>16&255,t>>>24,255&n,n>>>8&255,n>>>16&255,n>>>24]}(n):function(e){var n=e.high,t=e.low;return[n>>>24,n>>>16&255,n>>>8&255,255&n,t>>>24,t>>>16&255,t>>>8&255,255&t]}(n)),!0),16);var n,t}}},fu.prototype.__isLong__,Object.defineProperty(fu.prototype,"__isLong__",{value:!0});var hu={},pu={};function mu(e,n){var t,r,o;return n?(o=0<=(e>>>=0)&&e<256)&&(r=pu[e])?r:(t=wu(e,(0|e)<0?-1:0,!0),o&&(pu[e]=t),t):(o=-128<=(e|=0)&&e<128)&&(r=hu[e])?r:(t=wu(e,e<0?-1:0,!1),o&&(hu[e]=t),t)}function gu(e,n){if(isNaN(e))return n?ku:Eu;if(n){if(e<0)return ku;if(e>=Cu)return Ou}else{if(e<=-xu)return Du;if(e+1>=xu)return Tu}return e<0?Wu(gu(-e,n)):wu(e%bu|0,e/bu|0,n)}function wu(e,n,t){return new fu(e,n,t)}var _u=Math.pow;function yu(e,n,t){if(0===e.length)throw Error("empty string");if("NaN"===e||"Infinity"===e||"+Infinity"===e||"-Infinity"===e)return Eu;if("number"==typeof n?(t=n,n=!1):n=!!n,(t=t||10)<2||36<t)throw RangeError("radix");var r=e.indexOf("-");if(r>0)throw Error("interior hyphen");if(0===r)return Wu(yu(e.substring(1),n,t));for(var o=gu(_u(t,8)),i=Eu,s=0;s<e.length;s+=8){var u=Math.min(8,e.length-s),l=parseInt(e.substring(s,s+u),t);i=zu(u<8?qu(i,gu(_u(t,u))):i=qu(i,o),gu(l))}return i.unsigned=n,i}function vu(e,n){return"number"==typeof e?gu(e,n):"string"==typeof e?yu(e,n):wu(e.low,e.high,"boolean"==typeof n?n:e.unsigned)}var bu=4294967296,Cu=bu*bu,xu=Cu/2,Su=mu(1<<24),Eu=mu(0),ku=mu(0,!0),Nu=mu(1),Au=mu(1,!0),Iu=mu(-1),Tu=wu(-1,2147483647,!1),Ou=wu(-1,-1,!0),Du=wu(0,-2147483648,!1);function Pu(e){return e.unsigned?e.low>>>0:e.low}function Mu(e){return e.unsigned?(e.high>>>0)*bu+(e.low>>>0):e.high*bu+(e.low>>>0)}function Uu(e,n){if((n=n||10)<2||36<n)throw RangeError("radix");if(Lu(e))return"0";if(Bu(e)){if(Gu(e,Du)){var t=gu(n),r=Zu(e,t),o=Vu(qu(r,t),e);return Uu(r,n)+Pu(o).toString(n)}return"-"+Uu(Wu(e),n)}for(var i=gu(_u(n,6),e.unsigned),s=e,u="";;){var l=Zu(s,i),c=(Pu(Vu(s,qu(l,i)))>>>0).toString(n);if(Lu(s=l))return c+u;for(;c.length<6;)c="0"+c;u=""+c+u}}function Lu(e){return 0===e.high&&0===e.low}function Bu(e){return!e.unsigned&&e.high<0}function Fu(e){return 1==(1&e.low)}function Gu(e,n){return du(n)||(n=vu(n)),(e.unsigned===n.unsigned||e.high>>>31!=1||n.high>>>31!=1)&&e.high===n.high&&e.low===n.low}function Ru(e,n){return $u(e,n)<0}function Hu(e,n){return $u(e,n)>0}function ju(e,n){return $u(e,n)>=0}function $u(e,n){if(du(n)||(n=vu(n)),Gu(e,n))return 0;var t=Bu(e),r=Bu(n);return t&&!r?-1:!t&&r?1:e.unsigned?n.high>>>0>e.high>>>0||n.high===e.high&&n.low>>>0>e.low>>>0?-1:1:Bu(Vu(e,n))?-1:1}function Wu(e){return!e.unsigned&&Gu(e,Du)?Du:zu(function(e){return wu(~e.low,~e.high,e.unsigned)}(e),Nu)}function zu(e,n){du(n)||(n=vu(n));var t=e.high>>>16,r=65535&e.high,o=e.low>>>16,i=65535&e.low,s=n.high>>>16,u=65535&n.high,l=n.low>>>16,c=0,a=0,f=0,d=0;return f+=(d+=i+(65535&n.low))>>>16,a+=(f+=o+l)>>>16,c+=(a+=r+u)>>>16,c+=t+s,wu((f&=65535)<<16|(d&=65535),(c&=65535)<<16|(a&=65535),e.unsigned)}function Vu(e,n){return du(n)||(n=vu(n)),zu(e,Wu(n))}function qu(e,n){if(Lu(e))return e.unsigned?ku:Eu;if(du(n)||(n=vu(n)),au)return wu(au.mul(e.low,e.high,n.low,n.high),au.get_high(),e.unsigned);if(Lu(n))return e.unsigned?ku:Eu;if(Gu(e,Du))return Fu(n)?Du:Eu;if(Gu(n,Du))return Fu(e)?Du:Eu;if(Bu(e))return Bu(n)?qu(Wu(e),Wu(n)):Wu(qu(Wu(e),n));if(Bu(n))return Wu(qu(e,Wu(n)));if(Ru(e,Su)&&Ru(n,Su))return gu(Mu(e)*Mu(n),e.unsigned);var t=e.high>>>16,r=65535&e.high,o=e.low>>>16,i=65535&e.low,s=n.high>>>16,u=65535&n.high,l=n.low>>>16,c=65535&n.low,a=0,f=0,d=0,h=0;return d+=(h+=i*c)>>>16,f+=(d+=o*c)>>>16,d&=65535,f+=(d+=i*l)>>>16,a+=(f+=r*c)>>>16,f&=65535,a+=(f+=o*l)>>>16,f&=65535,a+=(f+=i*u)>>>16,a+=t*c+r*l+o*u+i*s,wu((d&=65535)<<16|(h&=65535),(a&=65535)<<16|(f&=65535),e.unsigned)}function Zu(e,n){if(du(n)||(n=vu(n)),Lu(n))throw Error("division by zero");var t,r,o;if(au)return e.unsigned||-2147483648!==e.high||-1!==n.low||-1!==n.high?wu((e.unsigned?au.div_u:au.div_s)(e.low,e.high,n.low,n.high),au.get_high(),e.unsigned):e;if(Lu(e))return e.unsigned?ku:Eu;if(e.unsigned){if(n.unsigned||(n=function(e){return e.unsigned?e:wu(e.low,e.high,!0)}(n)),Hu(n,e))return ku;if(Hu(n,function(e,n){if(du(n)&&(n=Pu(n)),0==(n&=63))return e;var t=e.high;return n<32?wu(e.low>>>n|t<<32-n,t>>>n,e.unsigned):wu(32===n?t:t>>>n-32,0,e.unsigned)}(e,1)))return Au;o=ku}else{if(Gu(e,Du))return Gu(n,Nu)||Gu(n,Iu)?Du:Gu(n,Du)?Nu:Gu(t=function(e,n){return du(n)&&(n=Pu(n)),0==(n&=63)?e:n<32?wu(e.low<<n,e.high<<n|e.low>>>32-n,e.unsigned):wu(0,e.low<<n-32,e.unsigned)}(Zu(function(e,n){return du(n)&&(n=Pu(n)),0==(n&=63)?e:n<32?wu(e.low>>>n|e.high<<32-n,e.high>>n,e.unsigned):wu(e.high>>n-32,e.high>=0?0:-1,e.unsigned)}(e,1),n),1),Eu)?Bu(n)?Nu:Iu:o=zu(t,Zu(r=Vu(e,qu(n,t)),n));if(Gu(n,Du))return e.unsigned?ku:Eu;if(Bu(e))return Bu(n)?Zu(Wu(e),Wu(n)):Wu(Zu(Wu(e),n));if(Bu(n))return Wu(Zu(e,Wu(n)));o=Eu}for(r=e;ju(r,n);){t=Math.max(1,Math.floor(Mu(r)/Mu(n)));for(var i=Math.ceil(Math.log(t)/Math.LN2),s=i<=48?1:_u(2,i-48),u=gu(t),l=qu(u,n);Bu(l)||Hu(l,r);)l=qu(u=gu(t-=s,e.unsigned),n);Lu(u)&&(u=Nu),o=zu(o,u),r=Vu(r,l)}return o}const Ju=Zu,Ku=Mu;function Yu(e=0,n=0,t=0,r=0,o=0){switch(arguments.length){case 1:return Ku(Ju(arguments[0],1e4));case 3:e=0,n=arguments[0],t=arguments[1],r=arguments[2],o=0}return 864e5*e+36e5*n+6e4*t+1e3*r+o}function Xu(e,n){try{return n.contents=function(e){const n=e.search("\\."),t=e.search("\\:");if(-1===n&&-1===t){const n=parseInt(e,0);if(isNaN(n))throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`);return Yu(n,0,0,0,0)}if(t>0){const n=/^(-?)((\d+)\.)?(?:0*)([0-9]|0[0-9]|1[0-9]|2[0-3]):(?:0*)([0-5][0-9]|[0-9])(:(?:0*)([0-5][0-9]|[0-9]))?\.?(\d+)?$/.exec(e);if(null!=n&&null!=n[4]&&null!=n[5]){let t=0,r=0,o=0;const i=null!=n[1]&&"-"===n[1]?-1:1,s=+n[4],u=+n[5];if(null!=n[3]&&(t=+n[3]),null!=n[7]&&(o=+n[7]),null!=n[8])switch(n[8].length){case 1:r=100*+n[8];break;case 2:r=10*+n[8];break;case 3:r=+n[8];break;case 4:r=+n[8]/10;break;case 5:r=+n[8]/100;break;case 6:r=+n[8]/1e3;break;case 7:r=+n[8]/1e4;break;default:throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}return i*Yu(t,s,u,o,r)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}(e),!0}catch(e){return!1}}class Qu{constructor(e){this.k=e}}function el(e){return new Qu(e)}function nl(e){return e.k}class tl extends Qu{constructor(e,n,t,r){super(e),this.left=n,this.right=t,this.h=0|r}}function rl(e,n,t,r){return new tl(e,n,t,r)}function ol(e){return e.left}function il(e){return e.right}function sl(e){return e.h}function ul(e,n){e:for(;;){const t=n;if(null!=e){const r=e;if(r instanceof tl){e=ol(r),n=ul(il(r),t+1);continue e}return t+1|0}return 0|t}}function ll(e){return ul(e,0)}function cl(e,n,t){let r,o;r=null!=e?e instanceof tl?sl(e):1:0,o=null!=t?t instanceof tl?sl(t):1:0;const i=0|(r<o?o:r);return 0===i?el(n):rl(n,e,t,i+1)}function al(e,n,t){let r,o,i,s,u,l;if(u=null!=e?e instanceof tl?sl(e):1:0,l=null!=t?t instanceof tl?sl(t):1:0,l>u+2){const i=ne(t);if(i instanceof tl){if(r=ol(i),(null!=r?(o=r,o instanceof tl?sl(o):1):0)>u+1){const t=ne(ol(i));if(t instanceof tl)return cl(cl(e,n,ol(t)),nl(t),cl(il(t),nl(i),il(i)));throw new Error("internal error: Set.rebalance")}return cl(cl(e,n,ol(i)),nl(i),il(i))}throw new Error("internal error: Set.rebalance")}if(u>l+2){const r=ne(e);if(r instanceof tl){if(i=il(r),(null!=i?(s=i,s instanceof tl?sl(s):1):0)>l+1){const e=ne(il(r));if(e instanceof tl)return cl(cl(ol(r),nl(r),ol(e)),nl(e),cl(il(e),n,t));throw new Error("internal error: Set.rebalance")}return cl(ol(r),nl(r),cl(il(r),n,t))}throw new Error("internal error: Set.rebalance")}return cl(e,n,t)}function fl(e,n,t){if(null!=t){const r=t,o=0|e.Compare(n,nl(r));if(r instanceof tl)return o<0?al(fl(e,n,ol(r)),nl(r),il(r)):0===o?t:al(ol(r),nl(r),fl(e,n,il(r)));{const o=0|e.Compare(n,nl(r));return o<0?rl(n,void 0,t,2):0===o?t:rl(n,t,void 0,2)}}return el(n)}function dl(e,n,t){e:for(;;){const r=e,o=n;if(null!=t){const i=t,s=0|r.Compare(o,nl(i));if(i instanceof tl){if(s<0){e=r,n=o,t=ol(i);continue e}if(0===s)return!0;e=r,n=o,t=il(i);continue e}return 0===s}return!1}}function hl(e,n){e:for(;;){const t=e;if(null!=n){const r=n;if(r instanceof tl){hl(t,ol(r)),t(nl(r)),e=t,n=il(r);continue e}t(nl(r))}break}}class pl extends D{constructor(e,n){super(),this.stack=e,this.started=n}}function ml(e){e:for(;;){const n=e;if(on(n))return nn();{const t=un(n),r=ln(n);if(null!=t){const o=t;if(o instanceof tl){e=hn([ol(o),el(nl(o)),il(o)],r);continue e}return n}e=r;continue e}}}function gl(e){return new pl(ml(rn(e)),!1)}function wl(e){if(e.started){const n=e.stack;if(on(n))return function(){throw new Error("Enumeration already started")}();if(null!=un(n))return nl(un(n));throw new Error("Please report error: Set iterator, unexpected stack for current")}return function(){throw new Error("Enumeration not started")}()}function _l(e){let n=gl(e);return{"System.Collections.Generic.IEnumerator`1.get_Current":()=>wl(n),"System.Collections.IEnumerator.get_Current":()=>wl(n),"System.Collections.IEnumerator.MoveNext":()=>function(e){if(e.started){const n=e.stack;if(on(n))return!1;if(null!=un(n)){if(un(n)instanceof tl)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=ml(ln(n)),!on(e.stack)}throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}return e.started=!0,!on(e.stack)}(n),"System.Collections.IEnumerator.Reset"(){n=gl(e)},Dispose(){}}}function yl(e,n,t){return null==n?null==t?0:-1:null==t?1:0|function(e,n,t){e:for(;;){const r=e,o=n,i=t,s=[o,i];if(on(s[0]))return on(s[1])?0:-1;if(on(s[1]))return 1;if(null!=un(s[1]))if(null!=un(s[0])){const u=un(s[0]),l=un(s[1]);if(u instanceof tl)if(null==ol(u)){if(!(l instanceof tl)){const o=0|r.Compare(nl(u),nl(l));if(0!==o)return 0|o;e=r,n=tn(il(u),ln(s[0])),t=tn(void 0,ln(s[1]));continue e}if(null==ol(l)){const o=0|r.Compare(nl(u),nl(l));if(0!==o)return 0|o;e=r,n=tn(il(u),ln(s[0])),t=tn(il(l),ln(s[1]));continue e}{const s=[o,i];let u,l,c,a,f;switch(on(s[0])?on(s[1])?u=2:null!=un(s[1])?(u=1,a=ln(s[1]),f=un(s[1])):u=2:null!=un(s[0])?(u=0,l=ln(s[0]),c=un(s[0])):on(s[1])?u=2:null!=un(s[1])?(u=1,a=ln(s[1]),f=un(s[1])):u=2,u){case 0:if(c instanceof tl){e=r,n=hn([ol(c),rl(nl(c),void 0,il(c),0)],l),t=i;continue e}e=r,n=hn([void 0,el(nl(c))],l),t=i;continue e;case 1:if(f instanceof tl){e=r,n=o,t=hn([ol(f),rl(nl(f),void 0,il(f),0)],a);continue e}e=r,n=o,t=hn([void 0,el(nl(f))],a);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const s=[o,i];let u,l,c,a,f;switch(on(s[0])?on(s[1])?u=2:null!=un(s[1])?(u=1,a=ln(s[1]),f=un(s[1])):u=2:null!=un(s[0])?(u=0,l=ln(s[0]),c=un(s[0])):on(s[1])?u=2:null!=un(s[1])?(u=1,a=ln(s[1]),f=un(s[1])):u=2,u){case 0:if(c instanceof tl){e=r,n=hn([ol(c),rl(nl(c),void 0,il(c),0)],l),t=i;continue e}e=r,n=hn([void 0,el(nl(c))],l),t=i;continue e;case 1:if(f instanceof tl){e=r,n=o,t=hn([ol(f),rl(nl(f),void 0,il(f),0)],a);continue e}e=r,n=o,t=hn([void 0,el(nl(f))],a);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else{if(!(l instanceof tl)){const o=0|r.Compare(nl(u),nl(l));if(0!==o)return 0|o;e=r,n=ln(s[0]),t=ln(s[1]);continue e}if(null==ol(l)){const o=0|r.Compare(nl(u),nl(l));if(0!==o)return 0|o;e=r,n=tn(void 0,ln(s[0])),t=tn(il(l),ln(s[1]));continue e}{const s=[o,i];let u,l,c,a,f;switch(on(s[0])?on(s[1])?u=2:null!=un(s[1])?(u=1,a=ln(s[1]),f=un(s[1])):u=2:null!=un(s[0])?(u=0,l=ln(s[0]),c=un(s[0])):on(s[1])?u=2:null!=un(s[1])?(u=1,a=ln(s[1]),f=un(s[1])):u=2,u){case 0:if(c instanceof tl){e=r,n=hn([ol(c),rl(nl(c),void 0,il(c),0)],l),t=i;continue e}e=r,n=hn([void 0,el(nl(c))],l),t=i;continue e;case 1:if(f instanceof tl){e=r,n=o,t=hn([ol(f),rl(nl(f),void 0,il(f),0)],a);continue e}e=r,n=o,t=hn([void 0,el(nl(f))],a);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}}else{un(s[1]);const u=[o,i];let l,c,a,f,d;switch(on(u[0])?on(u[1])?l=2:null!=un(u[1])?(l=1,f=ln(u[1]),d=un(u[1])):l=2:null!=un(u[0])?(l=0,c=ln(u[0]),a=un(u[0])):on(u[1])?l=2:null!=un(u[1])?(l=1,f=ln(u[1]),d=un(u[1])):l=2,l){case 0:if(a instanceof tl){e=r,n=hn([ol(a),rl(nl(a),void 0,il(a),0)],c),t=i;continue e}e=r,n=hn([void 0,el(nl(a))],c),t=i;continue e;case 1:if(d instanceof tl){e=r,n=o,t=hn([ol(d),rl(nl(d),void 0,il(d),0)],f);continue e}e=r,n=o,t=hn([void 0,el(nl(d))],f);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else{if(null==un(s[0])){e=r,n=ln(s[0]),t=ln(s[1]);continue e}{un(s[0]);const u=[o,i];let l,c,a,f,d;switch(on(u[0])?on(u[1])?l=2:null!=un(u[1])?(l=1,f=ln(u[1]),d=un(u[1])):l=2:null!=un(u[0])?(l=0,c=ln(u[0]),a=un(u[0])):on(u[1])?l=2:null!=un(u[1])?(l=1,f=ln(u[1]),d=un(u[1])):l=2,l){case 0:if(a instanceof tl){e=r,n=hn([ol(a),rl(nl(a),void 0,il(a),0)],c),t=i;continue e}e=r,n=hn([void 0,el(nl(a))],c),t=i;continue e;case 1:if(d instanceof tl){e=r,n=o,t=hn([ol(d),rl(nl(d),void 0,il(d),0)],f);continue e}e=r,n=o,t=hn([void 0,el(nl(d))],f);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}break}}(e,rn(n),rn(t))}function vl(e,n,t){let r=t;hl((e=>{n[r]=e,r=r+1|0}),e)}function bl(n,t){if(e(t))return function(e,n){return ce(((n,t)=>fl(e,t,n)),void 0,n)}(n,t);if(t instanceof qe)return function(e,n){return an(((n,t)=>fl(e,t,n)),void 0,n)}(n,t);{const e=s(t);try{return function(e,n,t){for(;;){const r=e,o=n,i=t;if(!i["System.Collections.IEnumerator.MoveNext"]())return o;e=r,n=fl(r,i["System.Collections.Generic.IEnumerator`1.get_Current"](),o),t=i}}(n,void 0,e)}finally{r(e)}}}class Cl{constructor(e,n){this.comparer=e,this.tree=n}GetHashCode(){return 0|function(e){let n,t=0;const o=s(e);try{for(;o["System.Collections.IEnumerator.MoveNext"]();)t=0|(n=0|m(o["System.Collections.Generic.IEnumerator`1.get_Current"]()),(t<<1)+n+631)}finally{r(o)}return 0|Math.abs(t)}(this)}Equals(e){return e instanceof Cl&&0===yl(xl(this),Sl(this),Sl(e))}toString(){return"set ["+He("; ",Hn((e=>T(e)),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(e){return Array.from(this)}CompareTo(e){return 0|yl(xl(this),Sl(this),Sl(e))}"System.Collections.Generic.ICollection`1.Add2B595"(e){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Clear"(){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Remove2B595"(e){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Contains2B595"(e){return dl(xl(this),e,Sl(this))}"System.Collections.Generic.ICollection`1.CopyToZ2E171D71"(e,n){vl(Sl(this),e,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|El(this)}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return 0|El(this)}GetEnumerator(){return _l(Sl(this))}[Symbol.iterator](){return u(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return _l(Sl(this))}get size(){return 0|El(this)}add(e){throw new Error("Set cannot be mutated")}clear(){throw new Error("Set cannot be mutated")}delete(e){throw new Error("Set cannot be mutated")}has(e){return function(e,n){return dl(xl(e),n,Sl(e))}(this,e)}keys(){return Hn((e=>e),this)}values(){return Hn((e=>e),this)}entries(){return Hn((e=>[e,e]),this)}forEach(e,n){const t=this;Rn((n=>{e(n,n,t)}),t)}}function xl(e){return e.comparer}function Sl(e){return e.tree}function El(e){return ll(Sl(e))}function kl(e,n,t){try{return"Expecting "+e+" but instead got:"+(t?"\n":" ")+JSON.stringify(n,null,4)}catch(n){return"Expecting "+e+" but decoder failed. Couldn't report given value due to circular structure."+(t?"\n":" ")}}function Nl(e,n,t){const r=n(e,t);if(1===r.tag){const e=r.fields[0];return new st(1,function(e,n){const t=2===n.tag?kl(n.fields[0],n.fields[1],!0):1===n.tag?kl(n.fields[0],n.fields[1],!1)+"\nReason: "+n.fields[2]:3===n.tag?kl(n.fields[0],n.fields[1],!0):4===n.tag?kl(n.fields[0],n.fields[1],!0)+"\nNode `"+n.fields[2]+"` is unkown.":5===n.tag?"Expecting "+n.fields[0]+".\n"+JSON.stringify(n.fields[1],null,4):7===n.tag?"The following errors were found:\n\n"+He("\n\n",n.fields[0]):6===n.tag?"The following `failure` occurred with the decoder: "+n.fields[0]:kl(n.fields[0],n.fields[1],!1);return 7===n.tag?t:"Error at: `"+e+"`\n"+t}(e[0],e[1]))}return new st(0,r.fields[0])}function Al(e,n){try{return Nl("$",e,JSON.parse(n))}catch(e){if(e instanceof SyntaxError)return new st(1,"Given an invalid JSON: "+e.message);throw e}}function Il(e,n){return"string"==typeof n?new st(0,n):new st(1,[e,new Js(0,"a string",n)])}const Tl=e=>n=>{const t="a sbyte",r=e,o=n;if("number"==typeof o){const e=o;return isFinite(e)&&Math.floor(e)===e?-128<=e&&e<=127?new st(0,(e+128&255)-128):new st(1,[r,new Js(1,t,e,"Value was either too large or too small for "+t)]):new st(1,[r,new Js(1,t,e,"Value is not an integral value")])}if("string"==typeof o){let e,n=0;return e=[uu(o,511,!1,8,new P((()=>n),(e=>{n=0|e}))),n],e[0]?new st(0,e[1]):new st(1,[r,new Js(0,t,o)])}return new st(1,[r,new Js(0,t,o)])},Ol=e=>n=>{const t="a byte",r=e,o=n;if("number"==typeof o){const e=o;return isFinite(e)&&Math.floor(e)===e?0<=e&&e<=255?new st(0,255&e):new st(1,[r,new Js(1,t,e,"Value was either too large or too small for "+t)]):new st(1,[r,new Js(1,t,e,"Value is not an integral value")])}if("string"==typeof o){let e,n=0;return e=[uu(o,511,!0,8,new P((()=>n),(e=>{n=e}))),n],e[0]?new st(0,e[1]):new st(1,[r,new Js(0,t,o)])}return new st(1,[r,new Js(0,t,o)])},Dl=e=>n=>{const t="an int16",r=e,o=n;if("number"==typeof o){const e=o;return isFinite(e)&&Math.floor(e)===e?-32768<=e&&e<=32767?new st(0,(e+32768&65535)-32768):new st(1,[r,new Js(1,t,e,"Value was either too large or too small for "+t)]):new st(1,[r,new Js(1,t,e,"Value is not an integral value")])}if("string"==typeof o){let e,n=0;return e=[uu(o,511,!1,16,new P((()=>n),(e=>{n=0|e}))),n],e[0]?new st(0,e[1]):new st(1,[r,new Js(0,t,o)])}return new st(1,[r,new Js(0,t,o)])},Pl=e=>n=>{const t="an uint16",r=e,o=n;if("number"==typeof o){const e=o;return isFinite(e)&&Math.floor(e)===e?0<=e&&e<=65535?new st(0,65535&e):new st(1,[r,new Js(1,t,e,"Value was either too large or too small for "+t)]):new st(1,[r,new Js(1,t,e,"Value is not an integral value")])}if("string"==typeof o){let e,n=0;return e=[uu(o,511,!0,16,new P((()=>n),(e=>{n=e}))),n],e[0]?new st(0,e[1]):new st(1,[r,new Js(0,t,o)])}return new st(1,[r,new Js(0,t,o)])},Ml=e=>n=>{const t="an int",r=e,o=n;if("number"==typeof o){const e=o;return isFinite(e)&&Math.floor(e)===e?-2147483648<=e&&e<=2147483647?new st(0,~~e):new st(1,[r,new Js(1,t,e,"Value was either too large or too small for "+t)]):new st(1,[r,new Js(1,t,e,"Value is not an integral value")])}if("string"==typeof o){let e,n=0;return e=[uu(o,511,!1,32,new P((()=>n),(e=>{n=0|e}))),n],e[0]?new st(0,e[1]):new st(1,[r,new Js(0,t,o)])}return new st(1,[r,new Js(0,t,o)])},Ul=e=>n=>{const t="an uint32",r=e,o=n;if("number"==typeof o){const e=o;return isFinite(e)&&Math.floor(e)===e?0<=e&&e<=4294967295?new st(0,e>>>0):new st(1,[r,new Js(1,t,e,"Value was either too large or too small for "+t)]):new st(1,[r,new Js(1,t,e,"Value is not an integral value")])}if("string"==typeof o){let e,n=0;return e=[uu(o,511,!0,32,new P((()=>n),(e=>{n=e}))),n],e[0]?new st(0,e[1]):new st(1,[r,new Js(0,t,o)])}return new st(1,[r,new Js(0,t,o)])};function Ll(e,n,t,r){let o;const i=t+".["+a(e)+"]";if(Array.isArray(r)){const t=r;return e<t.length?n(i,t[e]):new st(1,[i,new Js(5,"a longer array. Need index `"+a(e)+"` but there are only `"+(o=t.length,a(o)+"` entries"),r)])}return new st(1,[i,new Js(0,"an array",r)])}function Bl(e,n,t){if(Array.isArray(t)){let r=-1;return ut(fn,ce(((t,o)=>{if(r=r+1|0,0===t.tag){const i=e(n+".["+a(r)+"]",o);return 0===i.tag?new st(0,tn(i.fields[0],t.fields[0])):new st(1,i.fields[0])}return t}),new st(0,nn()),t))}return new st(1,[n,new Js(0,"a list",t)])}function Fl(e,n,t){if(Array.isArray(t)){let r=-1;const o=t;return ce(((t,o)=>{if(r=r+1|0,0===t.tag){const i=t.fields[0],s=e(n+".["+a(r)+"]",o);return 0===s.tag?(i[r]=s.fields[0],new st(0,i)):new st(1,s.fields[0])}return t}),new st(0,ue(new Array(o.length),0,o.length,null)),o)}return new st(1,[n,new Js(0,"an array",t)])}function Gl(e,n,t,r){const o=n(t,r);return 0===o.tag?e(o.fields[0],t,r):new st(1,o.fields[0])}function Rl(e,n){let t;const r=e;return t=e=>n=>Ll(0,r,e,n),e=>r=>Gl(N(3,(e=>{let t;const r=n;return t=e=>n=>Ll(1,r,e,n),n=>r=>Gl(((n,t,r)=>new st(0,[e,n])),N(2,t),n,r)})),N(2,t),e,r)}function Hl(e){return Fs(e)}function jl(e){return function(e,n){return new Cl(e,n)}(n={Compare:x},bl(n,e));var n}function $l(e,n,t,r){let o;const i=n.length+e|0;if(i!==r.length)return new st(1,[t,new Js(6,(o=0|r.length,Ue(De("Expected array of length %i but got %i"))(i)(o)))]);{let o=new st(0,nn());for(let i=e;i<=r.length-1;i++)if(0===o.tag){const s=o.fields[0],u=Ue(De("%s[%i]"))(t)(i),l=n[i-e],c=r[i];o=ut((e=>tn(e,s)),l(u)(c))}return ut(fn,o)}}function Wl(e,n,t,r,o,i){const s=function(e,n){return n.find((e=>Zo(e)===r))}(0,function(e){if(null!=e.cases)return e.cases();throw new Error(`${e.fullname} is not an F# union type`)}(t));if(null!=s){const t=s,r=le((t=>Vl(e,n,!1,t[1])),function(e){return null==e.fields?[]:e.fields}(t));return ut((e=>function(e,n){const t=(e.fields||[]).length;if(n.length!==t)throw new Error(`Expected an array of length ${t} but got ${n.length}`);return null!=e.declaringType.construct?new e.declaringType.construct(e.tag,...n):{}}(t,cn(e))),0===r.length&&i.length<=1?new st(0,nn()):$l(1,r,o,i))}return new st(1,[o,new Js(6,"Cannot find case "+r+" in "+Jo(t))])}function zl(e,n,t,r){const o=new P(null);let i;const s=Jo(r);let u;if(i=""===s?e:function(e,n,t){return Bs(e.comparer,Ss(e.comparer,n,t,e.tree))}(e,s,o),function(e){return e instanceof Go?null!=e.fields:e instanceof D}(r)){const e=le((e=>[eu(n,Zo(e)),Vl(i,n,!1,e[1])]),ei(r));u=n=>t=>ut((e=>function(e,n){const t=ei(e);if(t.length!==n.length)throw new Error(`Expected an array of length ${t.length} but got ${n.length}`);return null!=e.construct?new e.construct(...n):t.reduce(((e,[t,r],o)=>(e[t]=n[o],e)),{})}(r,cn(e))),function(e,n,t){return null===t||Object.getPrototypeOf(t||!1)!==Object.prototype?new st(1,[n,new Js(0,"an object",t)]):function(e,n,t){return n.reduceRight(((n,t)=>e(t,n)),t)}(N(2,(e=>{const r=e[0];return o=>0===o.tag?ut((e=>tn(e,o.fields[0])),e[1](n+"."+r)(t[r])):o})),e,new st(0,nn()))}(e,n,t))}else if(function(e){return e instanceof Go?null!=e.cases:e instanceof O}(r))u=e=>t=>{if("string"==typeof t)return Wl(i,n,r,t,e,[]);if(Array.isArray(t)){const u=t;return 0===(o=Il(e+"[0]",u[0])).tag?(s=o.fields[0],Wl(i,n,r,s,e,u)):new st(1,o.fields[0])}var o,s;return new st(1,[e,new Js(0,"a string or array",t)])};else{if(!t){let e;const n=Jo(r);throw e=Ue(De("Cannot generate auto decoder for %s. Please pass an extra decoder.\n\nDocumentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders"))(n),new Error(e)}u=e=>n=>new st(1,[e,new Js(2,"an extra coder for "+Jo(r),n)])}return o.contents=u,u}function Vl(e,n,t,r){let o,i,s,u;const l=Jo(r),c=function(e,n){return Es(e.comparer,n,e.tree)}(e,l);if(null==c){if(function(e){return null!=Ko(e)}(r)){const t=Vl(e,n,!1,Ko(r));return e=>n=>Fl(N(2,t),e,n)}if(Yo(r)){const e=Jo(function(e){var n;return null===(n=e.generics)||void 0===n?void 0:n[0]}(r));if("System.SByte"===e)return e=>n=>{const t=r,o=e,i=n,s=Tl(o)(i);if(1===s.tag)return new st(1,s.fields[0]);{const e=s.fields[0];return Fn(e,Xo(t),{Equals:(e,n)=>e===n,GetHashCode:h})?new st(0,Qo(t,e.toString())):new st(1,[o,new Js(1,Jo(t),i,"Unkown value provided for the enum")])}};if("System.Byte"===e)return e=>n=>{const t=r,o=e,i=n,s=Ol(o)(i);if(1===s.tag)return new st(1,s.fields[0]);{const e=s.fields[0];return Fn(e,Xo(t),{Equals:(e,n)=>e===n,GetHashCode:h})?new st(0,Qo(t,e.toString())):new st(1,[o,new Js(1,Jo(t),i,"Unkown value provided for the enum")])}};if("System.Int16"===e)return e=>n=>{const t=r,o=e,i=n,s=Dl(o)(i);if(1===s.tag)return new st(1,s.fields[0]);{const e=s.fields[0];return Fn(e,Xo(t),{Equals:(e,n)=>e===n,GetHashCode:h})?new st(0,Qo(t,e.toString(u))):new st(1,[o,new Js(1,Jo(t),i,"Unkown value provided for the enum")])}var u};if("System.UInt16"===e)return e=>n=>{const t=r,o=e,i=n,s=Pl(o)(i);if(1===s.tag)return new st(1,s.fields[0]);{const e=s.fields[0];return Fn(e,Xo(t),{Equals:(e,n)=>e===n,GetHashCode:h})?new st(0,Qo(t,e.toString())):new st(1,[o,new Js(1,Jo(t),i,"Unkown value provided for the enum")])}};if("System.Int32"===e)return e=>n=>{const t=r,o=e,i=n,s=Ml(o)(i);if(1===s.tag)return new st(1,s.fields[0]);{const e=s.fields[0];return Fn(e,Xo(t),{Equals:(e,n)=>e===n,GetHashCode:h})?new st(0,Qo(t,a(e))):new st(1,[o,new Js(1,Jo(t),i,"Unkown value provided for the enum")])}};if("System.UInt32"===e)return e=>n=>{const t=r,o=e,i=n,s=Ul(o)(i);if(1===s.tag)return new st(1,s.fields[0]);{const e=s.fields[0];return Fn(e,Xo(t),{Equals:(e,n)=>e===n,GetHashCode:h})?new st(0,Qo(t,e.toString())):new st(1,[o,new Js(1,Jo(t),i,"Unkown value provided for the enum")])}};{const e=Jo(r),n=Me((e=>{throw new Error(e)}),De("Cannot generate auto decoder for %s.\nThoth.Json.Net only support the following enum types:\n- sbyte\n- byte\n- int16\n- uint16\n- int\n- uint32\nIf you can't use one of these types, please pass an extra decoder.\n "))(e);return e=>n(e)}}if(function(e){return null!=e.generics&&e.generics.length>0}(r)){if(ni(r)){const t=le((t=>Vl(e,n,!1,t)),function(e){if(ni(e)&&null!=e.generics)return e.generics;throw new Error(`${e.fullname} is not a tuple type`)}(r));return e=>n=>Array.isArray(n)?ut((e=>cn(e)),$l(0,t,e,n)):new st(1,[e,new Js(0,"an array",n)])}{const l=Jo(function(e){return null==e.generics?e:new Go(e.fullname,e.generics.map((()=>Vo)))}(r));if("Microsoft.FSharp.Core.FSharpOption`1[System.Object]"===l)return o=Vl(e,n,!0,Ro(r)[0]),e=>n=>{return t=N(2,o),r=e,null==(i=n)?new st(0,void 0):ut(ee,t(r,i));var t,r,i};if("Microsoft.FSharp.Collections.FSharpList`1[System.Object]"===l)return i=Vl(e,n,!1,Ro(r)[0]),e=>n=>Bl(N(2,i),e,n);if("System.Collections.Generic.IEnumerable`1[System.Object]"===l)return s=Vl(e,n,!1,Ro(r)[0]),e=>n=>function(e,n,t){if(Array.isArray(t)){let r=-1;return ut(Wn,ce(((t,o)=>{if(r=r+1|0,0===t.tag){const i=e(n+".["+a(r)+"]",o);return 0===i.tag?new st(0,Ln([i.fields[0]],t.fields[0])):new st(1,i.fields[0])}return t}),new st(0,[]),t))}return new st(1,[n,new Js(0,"a seq",t)])}(N(2,s),e,n);if("Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"===l){const t=Vl(e,n,!1,Ro(r)[0]),o=Vl(e,n,!1,Ro(r)[1]);let i;const s=pn([e=>n=>function(e,n,t,r){return null===r||Object.getPrototypeOf(r||!1)!==Object.prototype?new st(1,[t,new Js(0,"an object",r)]):Gn(((o,i)=>{if(0===o.tag){const s=e(t,i);if(0===s.tag){const e=n(t+"."+i,r[i]);return 0===e.tag?new st(0,tn([s.fields[0],e.fields[0]],o.fields[0])):new st(1,e.fields[0])}return new st(1,s.fields[0])}return o}),new st(0,nn()),Object.keys(r))}(N(2,t),N(2,o),e,n),(u=Rl(N(2,t),N(2,o)),e=>n=>Bl(N(2,u),e,n))]);return i=e=>n=>{return t=e,r=n,((e,n)=>{e:for(;;){const o=e,i=n;if(on(o))return new st(1,[t,new Js(7,i)]);{const s=Nl(t,N(2,un(o)),r);if(1===s.tag){e=ln(o),n=mn(i,rn(s.fields[0]));continue e}return new st(0,s.fields[0])}}})(s,nn());var t,r},e=>n=>function(e,n,t,r){const o=n(t,r);return 1===o.tag?new st(1,o.fields[0]):new st(0,e(o.fields[0]))}(Hl,N(2,i),e,n)}if("Microsoft.FSharp.Collections.FSharpSet`1[System.Object]"===l){const t=Vl(e,n,!1,Ro(r)[0]);return e=>n=>{const r=Fl(N(2,t),e,n);return 0===r.tag?new st(0,jl(r.fields[0])):new st(1,r.fields[0])}}return zl(e,n,t,r)}}return"System.Boolean"===l?e=>n=>{return t=e,"boolean"==typeof(r=n)?new st(0,r):new st(1,[t,new Js(0,"a boolean",r)]);var t,r}:"Microsoft.FSharp.Core.Unit"===l?e=>n=>{return t=e,null==(r=n)?new st(0,void 0):new st(1,[t,new Js(0,"null",r)]);var t,r}:"System.String"===l?e=>n=>Il(e,n):"System.Char"===l?e=>n=>function(e,n){if("string"==typeof n){const t=n;return 1===t.length?new st(0,t[0]):new st(1,[e,new Js(0,"a single character string",n)])}return new st(1,[e,new Js(0,"a char",n)])}(e,n):"System.SByte"===l?Tl:"System.Byte"===l?Ol:"System.Int16"===l?Dl:"System.UInt16"===l?Pl:"System.Int32"===l?Ml:"System.UInt32"===l?Ul:"System.Double"===l?e=>n=>{return t=e,"number"==typeof(r=n)?new st(0,r):new st(1,[t,new Js(0,"a float",r)]);var t,r}:"System.Single"===l?e=>n=>{return t=e,"number"==typeof(r=n)?new st(0,r):new st(1,[t,new Js(0,"a float32",r)]);var t,r}:"System.DateTime"===l?e=>n=>function(e,n){if("string"==typeof n){let r,o=me(-621355968e5,0);return r=[we(n,new P((()=>o),(e=>{o=e}))),o],r[0]?new st(0,1===(t=r[1]).kind?t:me(t.getTime(),1)):new st(1,[e,new Js(0,"a datetime",n)])}var t;return new st(1,[e,new Js(0,"a datetime",n)])}(e,n):"System.DateTimeOffset"===l?e=>n=>function(e,n){if("string"==typeof n){let t,r=lu(-621355968e5,0);return t=[cu(n,new P((()=>r),(e=>{r=e}))),r],t[0]?new st(0,t[1]):new st(1,[e,new Js(0,"a datetimeoffset",n)])}return new st(1,[e,new Js(0,"a datetime",n)])}(e,n):"System.TimeSpan"===l?e=>n=>function(e,n){if("string"==typeof n){let t,r=0;return t=[Xu(n,new P((()=>r),(e=>{r=e}))),r],t[0]?new st(0,t[1]):new st(1,[e,new Js(0,"a timespan",n)])}return new st(1,[e,new Js(0,"a timespan",n)])}(e,n):"System.Guid"===l?e=>n=>function(e,n){if("string"==typeof n){let t,r="00000000-0000-0000-0000-000000000000";return t=[ou(n,new P((()=>r),(e=>{r=e}))),r],t[0]?new st(0,t[1]):new st(1,[e,new Js(0,"a guid",n)])}return new st(1,[e,new Js(0,"a guid",n)])}(e,n):"System.Object"===l?e=>e=>new st(0,e):zl(e,n,t,r)}{const e=c;return n=>t=>e.contents(n)(t)}}function ql(e){return null!=e?(n=(e,n)=>new P(n[1]),function(e,n){return Bs(e.comparer,Is(n,e.tree))}(e.Coders,n)):js();var n}function Zl(e,n,t){const r=re(n,new Ks(0));return Vl(ql(t),r,!1,e)}class Jl extends D{constructor(e,n,t,r,o){super(),this.StreamId=e,this.Name=n,this.Website=t,this.ContactDetails=r,this.Notes=o}}class Kl extends D{constructor(e,n,t,r,o,i,s,u,l){super(),this.StreamId=e,this.PartnerId=n,this.Name=t,this.Website=r,this.ContactDetails=o,this.Notes=i,this.LegalEntity=s,this.ExternalId=u,this.ChannelId=l}}class Yl extends D{constructor(e,n,t,r,o,i,s,u,l){super(),this.AccountId=e,this.Name=n,this.Contact=t,this.ContactMobilePhone=r,this.Website=o,this.BusinessName=i,this.BusinessNumber=s,this.ExternalId=u,this.ChannelId=l}}class Xl extends D{constructor(e,n){super(),this.Accounts=e,this.Token=n}}function Ql(e){return new Bo(0,q(e))}function ec(e){return`${e}/account-registry/admin`}function nc(e,n){return Ao.Delay((()=>{const t=qs((r=Ue(De("Bearer %s"))(e),new us(0,"Authorization",r)),n);var r;let o;const i=Zs(t);return o=Ao.Bind(i,(e=>Ao.Return(new st(0,e)))),Ao.Bind(o,(e=>{const n=e;if(1===n.tag)return Ao.Return(new st(1,n.fields[0]));{const e=n.fields[0];if(429===e.statusCode||e.statusCode>=500){const e=Zs(t);return Ao.Bind(e,(e=>Ao.Return(new st(0,e))))}return Ao.Return(new st(0,e))}}))}))}function tc(e,n){return Ao.Delay((()=>{let t;const r=nc(n,Vs(new ss(0),zs((t=ec(e),`${t}/partners`))));return Ao.Bind(r,(e=>{const n=e;if(1===n.tag)return Ao.Return(new st(1,n.fields[0]));{const e=n.fields[0];if(200===e.statusCode){let n;const t=Al(N(2,Zl(zo($o("Dto.AdminApi.Partner",[],Jl,(()=>[["StreamId",qo],["Name",qo],["Website",qo],["ContactDetails",ai()],["Notes",Wo(qo)]]))),new Ks(1),void 0)),e.responseText);return n=1===t.tag?new st(1,t.fields[0]):function(e,n){return function(e,n,t){e:for(;;){const r=e,o=n,i=t;if(on(i)){const e=r;return 1===e.tag?new st(1,e.fields[0]):new st(0,fn(e.fields[0]))}{let s;const u=o(un(i));if(1===u.tag)s=new st(1,u.fields[0]);else{const e=r;s=1===e.tag?new st(1,e.fields[0]):new st(0,tn(u.fields[0],e.fields[0]))}if(1===s.tag)return s;e=s,n=o,t=ln(i);continue e}}}(new st(0,nn()),e,n)}((e=>e),wn(Gi,t.fields[0])),Ao.Return(n)}return Ao.Return(new st(1,"Unexpected response from backend"))}}))}))}function rc(e,n,t,r,o){return Ao.Delay((()=>{let i,s,u,l,c;const a="?"+He("&",function(e,n){const t=Je(),r=an(((e,n)=>{if(null==n)return e;{const t=new qe(ne(n),void 0);return e.tail=t,t}}),t,n),o=Je();return r.tail=o,en(t)}(0,pn([(i=Pi(r.SearchText),Re(i)?void 0:`search=${encodeURIComponent(i)}`),(f=r.Sort,s=[f.fields[0],f.fields[1]],1===s[0].tag?1===s[1].tag?"sort_by=name&sort_direction=desc":"sort_by=name&sort_direction=asc":1===s[1].tag?"sort_by=accountid&sort_direction=desc":"sort_by=accountid&sort_direction=asc"),(u=0|Ui(r.PageSize),u<=100&&u>=10?`page_size=${u}`:void 0)])));var f;const d=nc(n,(l=Vs(new ss(0),zs((c=ec(e),`${c}/partners/${Fo(t)}/accounts${a}`))),null==o?l:qs(new us(0,"token",o),l)));return Ao.Bind(d,(e=>{const n=e;if(1===n.tag)return Ao.Return(new st(1,n.fields[0]));{const e=n.fields[0];if(200===e.statusCode){const n=Al(N(2,Zl($o("Dto.AdminApi.AccountLookup",[],Xl,(()=>[["Accounts",zo($o("Dto.AdminApi.AccountLookupItem",[],Yl,(()=>[["AccountId",qo],["Name",qo],["Contact",qo],["ContactMobilePhone",qo],["Website",qo],["BusinessName",Wo(qo)],["BusinessNumber",Wo(qo)],["ExternalId",Wo(qo)],["ChannelId",Wo(qo)]])))],["Token",Wo(qo)]])),new Ks(1),void 0)),e.responseText);return Ao.Return(n)}return Ao.Return(new st(1,"Unexpected response from backend"))}}))}))}const oc=Ir((function(e,n){return Ct("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:n},e),Ct("path",{fillRule:"evenodd",d:"M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z",clipRule:"evenodd"}))}));class ic extends O{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["BreadCrumb"]}}function sc(){return new ic(0,["Partners",$i(new Hi(0))])}function uc(e,n){return new ic(0,[n,$i(new Hi(1,e))])}function lc(e){return new ic(0,[e,void 0])}function cc(e){let n,t;const r=e.partner;if(null==r)t="...";else{const e=r,n=e.Name;t=2===n.tag?1===n.fields[0].tag?J(e.Id):F(n.fields[0].fields[0]):"..."}let o;const i=e.account;if(null==i)o="...";else{const e=i,n=e.Name;o=2===n.tag?1===n.fields[0].tag?Y(e.Id):F(n.fields[0].fields[0]):"..."}let s;const u=[e.partner,e.account];let l,c,a,f;switch(null==u[0]?l=2:null==u[1]?(l=1,f=u[0]):(l=0,c=u[1],a=u[0]),l){case 0:s=pn([sc(),uc(a.Id,t),(d=a.Id,new ic(0,["Accounts",$i(new Hi(2,d))])),lc(o)]);break;case 1:s=pn([sc(),uc(f.Id,t)]);break;case 2:s=nn()}var d;return function(e){let n,t;return Ct("nav",E(pn([["className","pt-2"],["aria-label","Breadcrumb"],(n=[Ct("ol",E(pn([["className","-ml-3 max-w-screen-xl w-full flex space-x-4"],(t=gn(((e,n)=>function(e,n,t,r){let o,i;return Ct("li",E(pn([["key",e],["className","flex"],(o=[Ct("div",E(pn([["className","flex items-center"],(i=Mn(In((()=>{let r;return Ln(t?On():Dn((r={className:"flex-shrink-0 h-5 w-5 text-gray-400"},Ct(oc,r))),In((()=>Dn(Ct("a",E(Mn(In((()=>Ln(Dn(["children",e]),In((()=>Ln(null!=n?Dn(["href",yi(ne(n),1)]):On(),In((()=>Dn(["className","ml-4 text-sm font-medium text-gray-500 hover:text-gray-700"]))))))))))))))))}))),["children",lo.Children.toArray(Array.from(i))])])))],["children",lo.Children.toArray(Array.from(o))])])))}(n.fields[0][0],n.fields[0][1],0===e)),e),["children",lo.Children.toArray(Array.from(t))])])))],["children",lo.Children.toArray(Array.from(n))])])))}((n=e.page,11===n.tag||1===n.tag||2===n.tag?s:3===n.tag?mn(s,rn(function(e){return new ic(0,["Super",$i(new Hi(3,e))])}(n.fields[0]))):4===n.tag?mn(s,rn(function(e){return new ic(0,["Benefits Onboarding",$i(new Hi(4,e))])}(n.fields[0]))):5===n.tag?mn(s,rn(function(e){return new ic(0,["Bank Details",$i(new Hi(5,e))])}(n.fields[0]))):6===n.tag?s:7===n.tag?mn(s,rn(function(e,n){let t;return new ic(0,["Directory",$i((t=[e,n],new Hi(7,t[0],t[1])))])}(n.fields[0],n.fields[1]))):8===n.tag?mn(s,rn(function(e,n){let t;return new ic(0,["Super",$i((t=[e,n],new Hi(8,t[0],t[1])))])}(n.fields[0],n.fields[1]))):9===n.tag?mn(s,rn(function(e,n){let t;return new ic(0,["Benefits Onboarding",$i((t=[e,n],new Hi(9,t[0],t[1])))])}(n.fields[0],n.fields[1]))):10===n.tag?mn(s,rn(function(e,n){let t;return new ic(0,["Bank Details",$i((t=[e,n],new Hi(10,t[0],t[1])))])}(n.fields[0],n.fields[1]))):s))}class ac extends O{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Tab"]}}function fc(e){return e.fields[0]}function dc(e,n){const t=(null!=n?"border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300":"border-indigo-500 text-indigo-600")+" whitespace-nowrap py-4 px-1 border-b-2 font-medium text-sm";return r=Ct("a",E(Mn(In((()=>Ln(Dn(["key",e]),In((()=>Ln(Dn(["children",e]),In((()=>Ln(Dn(["className",t]),In((()=>null!=n?Dn(["href",yi(rn(ne(n)),1)]):On())))))))))))))),new ac(0,r);var r}function hc(e){let n,t;return Ct("div",E(pn([["className","border-b border-gray-200"],(n=[Ct("nav",E(pn([["className","-mb-px flex space-x-8"],["aria-label","Tabs"],(t=Hn(fc,e),["children",lo.Children.toArray(Array.from(t))])])))],["children",lo.Children.toArray(Array.from(n))])])))}class pc extends O{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["UpdateSearchText","UpdateSort","LoadAccountLookup","UpdateAccountLookup","QueryAccountLookup"]}}class mc{constructor(e){this.props=e}}function gc(e){return n=>t=>Ao.Delay((()=>{const r=Ql(e.props.partnerId);return Ao.Bind(rc(e.props.backendUrl,e.props.accessToken,r,n,void 0),(e=>(t(new pc(2,new Uo(2,e))),Ao.Zero())))}))}class wc extends D{constructor(e,n,t,r){super(),this.Data=e,this.SearchText=n,this.Sort=t,this.PageSize=r}}function _c(){return[new wc(new Uo(0),Di,Ni,(20,new Mi(0,20))),Ji()]}class yc extends O{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["ColumnHeader"]}}function vc(e){return new yc(0,e)}function bc(e){return e.fields[0]}class Cc extends O{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["RowCell"]}}function xc(e){return new Cc(0,e)}function Sc(e){return e.fields[0]}function Ec(e){return vc(Ct("th",E(pn([["className","px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider"],["scope","col"],["children",e]]))))}function kc(e,n){let t;return xc(Ct("td",E(pn([["className","px-6 py-4 whitespace-nowrap text-sm"],(t=[Ct("a",{className:"text-indigo-600 hover:text-indigo-900",children:n,href:e})],["children",lo.Children.toArray(Array.from(t))])]))))}function Nc(e,n){return xc(Ct("td",{className:He(" ",Ln(e,["px-6","py-4","whitespace-nowrap","text-sm"])),children:n}))}function Ac(e){return["fillRule",e]}function Ic(e){return["clipRule",e]}const Tc=Ct("svg",E(pn([["className",He(" ",["h-5","w-5"])],["fill","currentColor"],["viewBox","0 0 20 20"],["xmlns","http://www.w3.org/2000/svg"],(()=>{const e=rn(Ct("path",E(pn([["d","M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z"],Ac("evenodd"),Ic("evenodd")]))));return["children",lo.Children.toArray(Array.from(e))]})()]))),Oc=Ct("svg",E(pn([["className",He(" ",["h-5","w-5"])],["fill","currentColor"],["viewBox","0 0 20 20"],["xmlns","http://www.w3.org/2000/svg"],(()=>{const e=rn(Ct("path",E(pn([["d","M14.707 12.707a1 1 0 01-1.414 0L10 9.414l-3.293 3.293a1 1 0 01-1.414-1.414l4-4a1 1 0 011.414 0l4 4a1 1 0 010 1.414z"],Ac("evenodd"),Ic("evenodd")]))));return["children",lo.Children.toArray(Array.from(e))]})()])));function Dc(e,n,t,r){let o,i,s;return vc(Ct("th",E(pn([["className",He(" ",["px-6","py-3","text-left","text-xs","font-medium","text-gray-500","sm:pl-6","uppercase","tracking-wider"])],["scope","col"],(o=[Ct("a",E(pn([["className",He(" ",["group","inline-flex","cursor-pointer"])],["onClick",t],(i=[r,Ct("span",E(pn([["className",He(" ",(u=!e,l=rn("invisible"),c=pn(["ml-2","flex-none","rounded","text-gray-400","group-hover:visible","group-focus:visible"]),u?mn(c,l):c))],(s=Mn(In((()=>Dn(n?Tc:Oc)))),["children",lo.Children.toArray(Array.from(s))])])))],["children",lo.Children.toArray(Array.from(i))])])))],["children",lo.Children.toArray(Array.from(o))])]))));var u,l,c}function Pc(e,n){return Dc(y(Ai(e.Sort),new xi(1)),y(Ii(e.Sort),new Si(0)),(t=>{n(new pc(1,Ti(new xi(1),e.Sort)))}),"Name")}function Mc(e,n){return Dc(y(Ai(e.Sort),new xi(0)),y(Ii(e.Sort),new Si(0)),(t=>{n(new pc(1,Ti(new xi(0),e.Sort)))}),"Id")}class Uc extends D{constructor(e,n){super(),this.Data=e,this.LoadNext=n}}class Lc extends O{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Resolved","InProgress"]}}class Bc extends O{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Known","Unknown"]}}function Fc(e,n){let t;return Ct("tr",E(pn([["className",e%2==0?"bg-white":"bg-gray-50"],(t=Hn(Sc,n),["children",lo.Children.toArray(Array.from(t))])])))}function Gc(e){let n,t,r,o,i;const s=e.data,u=e.pageSize,l=e.renderRowCells,c=e.columnHeaders,a=(p=u,m=s.Data,pn(le(pn,function(e,n){if(e<1)throw new Error("The input must be positive.\\nParameter name: size");if(0===n.length)return[[]];{const t=[];for(let r=0;r<=~~Math.ceil(n.length/e)-1;r++){let o;const i=r*e|0;o=n.slice(i,i+e),t.push(o)}return t}}(p,cn(m))))),f=function(e,n){const t=xo(1),r=t[1],o=0|t[0];return[o,t=>{if(o===e)if(null==n);else{const e=n;Me((e=>console.log(e)),De("Calling Load")),e(),r(o+1)}else r(o+1)},e=>{r(o-1)}]}(sn(a),s.LoadNext),d=0|f[0],h=f[1];var p,m;let g;const w=function(e,n){return((n,t)=>{for(;;){const r=n,o=t;if(Ye(o))return;if(r===e)return ee(Qe(o));n=r+1,t=en(o)}})(0,n)}(d-1,a);g=null==w?new Lc(1):new Lc(0,w);const _=0|sn(s.Data),y=null==s.LoadNext?new Bc(0,_):new Bc(1),v=1===g.tag?void 0:_>=1?(d-1)*u+1:void 0,b=1===g.tag?void 0:_>=1?(d-1)*u+sn(g.fields[0]):void 0,C=1===d?void 0:f[2],x=d===sn(a)?null!=s.LoadNext?h:void 0:d<sn(a)?h:void 0;return Ct("div",E(pn([["className","flex flex-col mt-4"],(n=[Ct("div",E(pn([["className","-my-2 overflow-x-auto sm:-mx-6 lg:-mx-8"],(t=[Ct("div",E(pn([["className","py-2 align-middle inline-block min-w-full sm:px-6 lg:px-8"],(r=[Ct("div",E(pn([["className","shadow overflow-hidden border-b border-gray-200 sm:rounded-lg"],(o=[Ct("table",E(pn([["className","min-w-full divide-y divide-gray-200"],(i=Mn(In((()=>Ln(Dn(function(e){let n;return Ct("thead",{className:"bg-gray-50",children:(n=Hn(bc,e),Ct("tr",{children:lo.Children.toArray(Array.from(n))}))})}(c)),In((()=>{let e,n;return Ln((e=g,1===e.tag?Dn(null):Dn((n=jn(Fc,l(e.fields[0])),Ct("tbody",{children:lo.Children.toArray(Array.from(n))})))),In((()=>Dn(function(e,n,t,r,o,i){let s,u,l,c,a,f;const d=[n,t];let h,p,m;switch(null!=d[0]&&null!=d[1]?(h=0,p=d[0],m=d[1]):h=1,h){case 0:f=Mn(In((()=>Ln(Dn("Showing "),In((()=>Ln(Dn(Ct("span",{className:"font-medium",children:`${p}`})),In((()=>Ln(Dn(" to "),In((()=>Ln(Dn(Ct("span",{className:"font-medium",children:`${m}`})),In((()=>Ln(Dn(" of "),In((()=>1===r.tag?rn(" many"):pn([Ct("span",{className:"font-medium",children:T(r.fields[0])})," results"])))))))))))))))))));break;case 1:f=rn(null)}const g=Mn(In((()=>{let e,n;return Ln((e=i,null==e?Dn(null):(n=e,Dn(Ct("a",{className:He(" ",["relative","inline-flex","items-center","px-4","py-2","border","border-gray-300","text-sm","font-medium","rounded-md","text-gray-700","bg-white","hover:bg-gray-50","cursor-pointer"]),onClick:n,children:"Previous "})))),In((()=>{const e=o;if(null==e)return Dn(null);{const n=e;return Dn(Ct("a",{className:He(" ",["ml-3","relative","inline-flex","items-center","px-4","py-2","border","border-gray-300","text-sm","font-medium","rounded-md","text-gray-700","bg-white","hover:bg-gray-50","cursor-pointer"]),onClick:n,children:" Next"}))}})))})));return Ct("tfoot",E(pn([["className",He(" ",["w-full"])],(s=[Ct("tr",E(rn((u=[Ct("td",E(pn([["colSpan",e],(l=[Ct("nav",E(pn([["className",He(" ",["bg-white","px-4","py-3","flex","items-center","justify-between","border-t-1","border-gray-200","sm:px-6"])],(c=[Ct("div",E(pn([["className",He(" ",["hidden","sm:block"])],(a=[Ct("p",{className:He(" ",["text-sm","text-gray-700"]),children:lo.Children.toArray(Array.from(f))})],["children",lo.Children.toArray(Array.from(a))])]))),Ct("div",{className:He(" ",["flex-1","flex","justify-between","sm:justify-end"]),children:lo.Children.toArray(Array.from(g))})],["children",lo.Children.toArray(Array.from(c))])])))],["children",lo.Children.toArray(Array.from(l))])])))],["children",lo.Children.toArray(Array.from(u))]))))],["children",lo.Children.toArray(Array.from(s))])])))}(sn(c),v,b,y,x,C)))))})))))),["children",lo.Children.toArray(Array.from(i))])])))],["children",lo.Children.toArray(Array.from(o))])])))],["children",lo.Children.toArray(Array.from(r))])])))],["children",lo.Children.toArray(Array.from(t))])])))],["children",lo.Children.toArray(Array.from(n))])])))}function Rc(e){const n=rn(Ct("span",{children:[e.error]}));return Ct("div",{children:lo.Children.toArray(Array.from(n))})}function Hc(){const e=rn(Ct("span",{children:["Please wait..."]}));return Ct("div",{children:lo.Children.toArray(Array.from(e))})}function jc(e,n){let t,r;return Ct("div",E(pn([["className",He(" ",["flex-grow","max-w-md"])],(t=[Ct("label",{for:"search",children:"Search",className:He(" ",["block","text-sm","font-medium","text-gray-700"])}),Ct("div",E(pn([["className","mt-1"],(r=[Ct("input",{id:"search",name:"search",type:"text",className:He(" ",["py-2","shadow-sm","focus:ring-indigo-500","focus:border-indigo-500","block","w-full","sm:text-sm","border-gray-300","rounded-md"]),placeholder:"Account Id, Name or Legal Entity",value:e,onChange:e=>{n(e.target.value)}})],["children",lo.Children.toArray(Array.from(r))])])))],["children",lo.Children.toArray(Array.from(t))])])))}function $c(e){let n,t;return Ct("div",E(pn([["className","pt-6"],(n=[Ct("div",E(pn([["className",He(" ",["flex","justify-end"])],(t=[Ct("button",{type:"search",children:"Search",className:He(" ",["ml-3","inline-flex","justify-center","py-2","px-4","border","border-transparent","shadow-sm","text-sm","font-medium","rounded-md","text-white","bg-indigo-600","hover:bg-indigo-700","focus:outline-none","focus:ring-2","focus:ring-offset-2","focus:ring-indigo-500"]),onClick:e})],["children",lo.Children.toArray(Array.from(t))])])))],["children",lo.Children.toArray(Array.from(n))])])))}function Wc(e){let n,t,r,o,i,s,u;const l=function(e){return new mc(e)}(e),c=is(_c,((e,n)=>function(e,n,t){let r,o,i,s;switch(n.tag){case 1:{const r=n.fields[0];return[new wc(new Uo(1),t.SearchText,r,t.PageSize),Ki((n=>{const o=new Li(t.SearchText,r,t.PageSize);Mo(gc(e)(o)(n))}))]}case 2:return[new wc(n.fields[0],t.SearchText,t.Sort,t.PageSize),Ji()];case 3:return[new wc((r=[t.Data,n.fields[0]],2===r[0].tag?0===r[0].fields[0].tag?(o=r[1],1===o.tag?new Uo(2,new st(1,o.fields[0])):new Uo(2,new st(0,new Xl(mn(r[0].fields[0].fields[0].Accounts,o.fields[0].Accounts),o.fields[0].Token)))):(i=r[1],1===i.tag?new Uo(2,new st(1,i.fields[0])):new Uo(3,new Error("Failed to retrieve the account data"))):(s=r[1],1===s.tag?new Uo(2,new st(1,s.fields[0])):new Uo(3,new Error("Failed to retrieve the account data")))),t.SearchText,t.Sort,t.PageSize),Ji()];case 4:return[new wc(new Uo(1),t.SearchText,t.Sort,t.PageSize),Ki((n=>{const r=new Li(t.SearchText,t.Sort,t.PageSize);Mo(gc(e)(r)(n))}))];default:return[new wc(t.Data,(u=n.fields[0],new Oi(0,u.trim())),t.Sort,t.PageSize),Ji()]}var u}(l,e,n)),[]),a=c[0],f=c[1],d=new Li(a.SearchText,a.Sort,a.PageSize);go((n=[()=>function(e,n,t){return rc(e.props.backendUrl,e.props.accessToken,Ql(e.props.partnerId),n,void 0)}(l,d),e=>{f(new pc(2,e))}],Lo(n[0],n[1])));const h=a.Data;let p,m,g,w;switch(0===h.tag||1===h.tag?p=2:3===h.tag?(p=3,w=h.fields[0]):1===h.fields[0].tag?(p=1,g=h.fields[0].fields[0]):(p=0,m=h.fields[0].fields[0]),p){case 0:{const n=pn([Ct("div",E(pn([["className",He(" ",["grid","grid-cols-2","pt-2","sm:-mr-6","lg:mr-0"])],(t=[Ct("div",E(pn([["className",He(" ",["flex","flex-row","gap-4","sm:-mr-6","lg:mr-0"])],(r=[jc(Pi(a.SearchText),(e=>{f(new pc(0,e))})),$c((e=>{f(new pc(4))}))],["children",lo.Children.toArray(Array.from(r))])])))],["children",lo.Children.toArray(Array.from(t))])]))),(o=m,i=pn([Mc(a,f),Pc(a,f),Ec("Contact"),Ec("Website")]),s=new Uc(o.Accounts,oe((e=>n=>{Mo(function(e){return n=>t=>r=>Ao.Delay((()=>{const o=Ql(e.props.partnerId);return Ao.Bind(rc(e.props.backendUrl,e.props.accessToken,o,n,t),(e=>(r(new pc(3,e)),Ao.Zero())))}))}(l)(d)(e)(f))}),o.Token)),u=0|Ui(a.PageSize),Ct(Gc,{columnHeaders:i,renderRowCells:n=>wn((n=>function(e,n){const t=X(n.AccountId);return Mn(In((()=>{let r;return Ln(Dn(function(e,n,t,r){let o;return xc(Ct("td",E(pn([["className","px-6 py-2 whitespace-nowrap text-sm align-top"],(o=Mn(In((()=>Ln(Dn(Ct("a",{className:"text-indigo-600 hover:text-indigo-900",children:n,href:e})),In((()=>{let e,n;return Ln((e=r,null==e?Dn(null):(n=e,Ln(Dn(Ct("br",{})),In((()=>{let e;return Dn((e=`Channel ID: ${n}`,Ct("span",{children:[e]})))}))))),In((()=>{const e=t;if(null==e)return Dn(null);{const n=e;return Ln(Dn(Ct("br",{})),In((()=>{let e;return Dn((e=`External ID: ${n}`,Ct("span",{children:[e]})))})))}})))})))))),["children",lo.Children.toArray(Array.from(o))])]))))}(yi($i((r=[e,t],new Hi(6,r[0],r[1]))),1),n.AccountId,n.ExternalId,n.ChannelId)),In((()=>Ln(Dn(function(e,n,t){let r;return xc(Ct("td",E(pn([["className",He(" ",["text-gray-500","px-6","py-2","whitespace-nowrap","text-sm","align-top"])],(r=Mn(In((()=>{let r;return Ln(Dn(Ct("div",E(pn([["className",He(" ",["font-medium"])],(r=[Ct("span",{children:[e]})],["children",lo.Children.toArray(Array.from(r))])])))),In((()=>{let e,r;return Ln((e=n,Dn(null==e?null:(r="Legal Entity: "+e,Ct("span",{children:[r]})))),In((()=>{const e=t;if(null==e)return Dn(null);{const n=e;return Ln(Dn(Ct("br",{})),In((()=>{let e;return Dn((e="ABN: "+n,Ct("span",{children:[e]})))})))}})))})))}))),["children",lo.Children.toArray(Array.from(r))])]))))}(n.Name,n.BusinessName,n.BusinessNumber)),In((()=>Ln(Dn(function(e,n){let t;return xc(Ct("td",E(pn([["className",He(" ",["text-gray-500","px-6","py-2","whitespace-nowrap","text-sm","align-top"])],(t=[Ct("span",{children:[e]}),Ct("br",{}),Ct("span",{children:[n]})],["children",lo.Children.toArray(Array.from(t))])]))))}(n.Contact,n.ContactMobilePhone)),In((()=>{return Dn((e=n.Website,xc(Ct("td",{className:He(" ",["px-6","py-2","whitespace-nowrap","text-sm","text-gray-500","align-top"]),children:e}))));var e})))))))))})))}(e.partnerId,n)),n),pageSize:u,data:s}))]);return Ct("div",{children:lo.Children.toArray(Array.from(n))})}case 1:return Ct(Rc,{error:g});case 2:return Ct(Hc,null);case 3:return Ct(Rc,{error:T(w)})}}class zc extends O{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["backend-url","access-token","partner-id","account-id"]}}function Vc(e){const n=e.accessToken,t=e.backendUrl,r=e.accountId,o=Bn((e=>e),[new zc(1,n),new zc(0,t),new zc(2,q(e.partnerId)),oe((e=>new zc(3,Y(e))),r)]);return Ct("superhero-super-configuration",qn(o,1))}class qc extends O{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["backend-url","access-token","partner-id","account-id"]}}function Zc(e){const n=e.accessToken,t=e.backendUrl,r=e.accountId,o=Bn((e=>e),[new qc(1,n),new qc(0,t),new qc(2,q(e.partnerId)),oe((e=>new qc(3,Y(e))),r)]);return Ct("superhero-benefits-onboarding-configuration",qn(o,1))}class Jc extends O{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["backend-url","access-token","partner-id","account-id"]}}function Kc(e){const n=e.accessToken,t=e.backendUrl,r=e.accountId,o=Bn((e=>e),[new Jc(1,n),new Jc(0,t),new Jc(2,q(e.partnerId)),oe((e=>new Jc(3,Y(e))),r)]);return Ct("superhero-bank-details",qn(o,1))}function Yc(...e){return e.filter(Boolean).join(" ")}function Xc(e,n,...t){if(e in n){let r=n[e];return"function"==typeof r?r(...t):r}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(n).map((e=>`"${e}"`)).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,Xc),r}var Qc=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(Qc||{}),ea=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(ea||{});function na({ourProps:e,theirProps:n,slot:t,defaultTag:r,features:o,visible:i=!0,name:s}){let u=ra(n,e);if(i)return ta(u,t,r,s);let l=null!=o?o:0;if(2&l){let{static:e=!1,...n}=u;if(e)return ta(n,t,r,s)}if(1&l){let{unmount:e=!0,...n}=u;return Xc(e?0:1,{0:()=>null,1:()=>ta({...n,hidden:!0,style:{display:"none"}},t,r,s)})}return ta(u,t,r,s)}function ta(e,n={},t,r){let{as:o=t,children:i,refName:s="ref",...u}=sa(e,["unmount","static"]),l=void 0!==e.ref?{[s]:e.ref}:{},c="function"==typeof i?i(n):i;"className"in u&&u.className&&"function"==typeof u.className&&(u.className=u.className(n));let a={};if(n){let e=!1,t=[];for(let[r,o]of Object.entries(n))"boolean"==typeof o&&(e=!0),!0===o&&t.push(r);e&&(a["data-headlessui-state"]=t.join(" "))}if(o===St&&Object.keys(ia(u)).length>0){if(!oo(c)||Array.isArray(c)&&c.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(u).map((e=>` - ${e}`)).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map((e=>` - ${e}`)).join("\n")].join("\n"));let e=c.props,n="function"==typeof(null==e?void 0:e.className)?(...n)=>Yc(null==e?void 0:e.className(...n),u.className):Yc(null==e?void 0:e.className,u.className),t=n?{className:n}:{};return io(c,Object.assign({},ra(c.props,ia(sa(u,["ref"]))),a,l,function(...e){return{ref:e.every((e=>null==e))?void 0:n=>{for(let t of e)null!=t&&("function"==typeof t?t(n):t.current=n)}}}(c.ref,l.ref),t))}return Ct(o,Object.assign({},sa(u,["ref"]),o!==St&&l,o!==St&&a),c)}function ra(...e){if(0===e.length)return{};if(1===e.length)return e[0];let n={},t={};for(let r of e)for(let e in r)e.startsWith("on")&&"function"==typeof r[e]?(null!=t[e]||(t[e]=[]),t[e].push(r[e])):n[e]=r[e];if(n.disabled||n["aria-disabled"])return Object.assign(n,Object.fromEntries(Object.keys(t).map((e=>[e,void 0]))));for(let e in t)Object.assign(n,{[e](n,...r){let o=t[e];for(let e of o){if((n instanceof Event||(null==n?void 0:n.nativeEvent)instanceof Event)&&n.defaultPrevented)return;e(n,...r)}}});return n}function oa(e){var n;return Object.assign(Ir(e),{displayName:null!=(n=e.displayName)?n:e.name})}function ia(e){let n=Object.assign({},e);for(let e in n)void 0===n[e]&&delete n[e];return n}function sa(e,n=[]){let t=Object.assign({},e);for(let e of n)e in t&&delete t[e];return t}let ua=Zt(null);ua.displayName="OpenClosedContext";var la=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(la||{});function ca(){return mr(ua)}function aa({value:e,children:n}){return uo.createElement(ua.Provider,{value:e},n)}var fa=Object.defineProperty,da=(e,n,t)=>(((e,n,t)=>{n in e?fa(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t})(e,"symbol"!=typeof n?n+"":n,t),t);let ha=new class{constructor(){da(this,"current",this.detect()),da(this,"handoffState","pending"),da(this,"currentId",0)}set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"undefined"==typeof window||"undefined"==typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}},pa=(e,n)=>{ha.isServer?ar(e,n):fr(e,n)};function ma(){let e=dr(!1);return pa((()=>(e.current=!0,()=>{e.current=!1})),[]),e}function ga(e){let n=dr(e);return pa((()=>{n.current=e}),[e]),n}function wa(){let[e,n]=lr(ha.isHandoffComplete);return e&&!1===ha.isHandoffComplete&&n(!1),ar((()=>{!0!==e&&n(!0)}),[e]),ar((()=>ha.handoff()),[]),e}let _a=function(e){let n=ga(e);return uo.useCallback(((...e)=>n.current(...e)),[n])},ya=Symbol();function va(...e){let n=dr(e);ar((()=>{n.current=e}),[e]);let t=_a((e=>{for(let t of n.current)null!=t&&("function"==typeof t?t(e):t.current=e)}));return e.every((e=>null==e||(null==e?void 0:e[ya])))?void 0:t}function ba(){let e=[],n={addEventListener:(e,t,r,o)=>(e.addEventListener(t,r,o),n.add((()=>e.removeEventListener(t,r,o)))),requestAnimationFrame(...e){let t=requestAnimationFrame(...e);return n.add((()=>cancelAnimationFrame(t)))},nextFrame:(...e)=>n.requestAnimationFrame((()=>n.requestAnimationFrame(...e))),setTimeout(...e){let t=setTimeout(...e);return n.add((()=>clearTimeout(t)))},microTask(...e){let t={current:!0};return function(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch((e=>setTimeout((()=>{throw e}))))}((()=>{t.current&&e[0]()})),n.add((()=>{t.current=!1}))},style(e,n,t){let r=e.style.getPropertyValue(n);return Object.assign(e.style,{[n]:t}),this.add((()=>{Object.assign(e.style,{[n]:r})}))},group(e){let n=ba();return e(n),this.add((()=>n.dispose()))},add:n=>(e.push(n),()=>{let t=e.indexOf(n);if(t>=0)for(let n of e.splice(t,1))n()}),dispose(){for(let n of e.splice(0))n()}};return n}function Ca(e,...n){e&&n.length>0&&e.classList.add(...n)}function xa(e,...n){e&&n.length>0&&e.classList.remove(...n)}function Sa(){let[e]=lr(ba);return ar((()=>()=>e.dispose()),[e]),e}function Ea(e=""){return e.split(" ").filter((e=>e.trim().length>1))}let ka=Zt(null);ka.displayName="TransitionContext";var Na=(e=>(e.Visible="visible",e.Hidden="hidden",e))(Na||{});let Aa=Zt(null);function Ia(e){return"children"in e?Ia(e.children):e.current.filter((({el:e})=>null!==e.current)).filter((({state:e})=>"visible"===e)).length>0}function Ta(e,n){let t=ga(e),r=dr([]),o=ma(),i=Sa(),s=_a(((e,n=ea.Hidden)=>{let s=r.current.findIndex((({el:n})=>n===e));-1!==s&&(Xc(n,{[ea.Unmount](){r.current.splice(s,1)},[ea.Hidden](){r.current[s].state="hidden"}}),i.microTask((()=>{var e;!Ia(r)&&o.current&&(null==(e=t.current)||e.call(t))})))})),u=_a((e=>{let n=r.current.find((({el:n})=>n===e));return n?"visible"!==n.state&&(n.state="visible"):r.current.push({el:e,state:"visible"}),()=>s(e,ea.Unmount)})),l=dr([]),c=dr(Promise.resolve()),a=dr({enter:[],leave:[],idle:[]}),f=_a(((e,t,r)=>{l.current.splice(0),n&&(n.chains.current[t]=n.chains.current[t].filter((([n])=>n!==e))),null==n||n.chains.current[t].push([e,new Promise((e=>{l.current.push(e)}))]),null==n||n.chains.current[t].push([e,new Promise((e=>{Promise.all(a.current[t].map((([e,n])=>n))).then((()=>e()))}))]),"enter"===t?c.current=c.current.then((()=>null==n?void 0:n.wait.current)).then((()=>r(t))):r(t)})),d=_a(((e,n,t)=>{Promise.all(a.current[n].splice(0).map((([e,n])=>n))).then((()=>{var e;null==(e=l.current.shift())||e()})).then((()=>t(n)))}));return hr((()=>({children:r,register:u,unregister:s,onStart:f,onStop:d,wait:c,chains:a})),[u,s,r,f,d,a,c])}function Oa(){}Aa.displayName="NestingContext";let Da=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function Pa(e){var n;let t={};for(let r of Da)t[r]=null!=(n=e[r])?n:Oa;return t}let Ma=Qc.RenderStrategy,Ua=oa((function(e,n){let{show:t,appear:r=!1,unmount:o,...i}=e,s=dr(null),u=va(s,n);wa();let l=ca();if(void 0===t&&null!==l&&(t=(l&la.Open)===la.Open),![!0,!1].includes(t))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[c,a]=lr(t?"visible":"hidden"),f=Ta((()=>{a("hidden")})),[d,h]=lr(!0),p=dr([t]);pa((()=>{!1!==d&&p.current[p.current.length-1]!==t&&(p.current.push(t),h(!1))}),[p,t]);let m=hr((()=>({show:t,appear:r,initial:d})),[t,r,d]);ar((()=>{if(t)a("visible");else if(Ia(f)){let e=s.current;if(!e)return;let n=e.getBoundingClientRect();0===n.x&&0===n.y&&0===n.width&&0===n.height&&a("hidden")}else a("hidden")}),[t,f]);let g={unmount:o};return uo.createElement(Aa.Provider,{value:f},uo.createElement(ka.Provider,{value:m},na({ourProps:{...g,as:St,children:uo.createElement(La,{ref:u,...g,...i})},theirProps:{},defaultTag:St,features:Ma,visible:"visible"===c,name:"Transition"})))})),La=oa((function(e,n){let{beforeEnter:t,afterEnter:r,beforeLeave:o,afterLeave:i,enter:s,enterFrom:u,enterTo:l,entered:c,leave:a,leaveFrom:f,leaveTo:d,...h}=e,p=dr(null),m=va(p,n),g=h.unmount?ea.Unmount:ea.Hidden,{show:w,appear:_,initial:y}=function(){let e=mr(ka);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),[v,b]=lr(w?"visible":"hidden"),C=function(){let e=mr(Aa);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),{register:x,unregister:S}=C,E=dr(null);ar((()=>x(p)),[x,p]),ar((()=>{if(g===ea.Hidden&&p.current)return w&&"visible"!==v?void b("visible"):Xc(v,{hidden:()=>S(p),visible:()=>x(p)})}),[v,p,x,S,w,g]);let k=ga({enter:Ea(s),enterFrom:Ea(u),enterTo:Ea(l),entered:Ea(c),leave:Ea(a),leaveFrom:Ea(f),leaveTo:Ea(d)}),N=function(e){let n=dr(Pa(e));return ar((()=>{n.current=Pa(e)}),[e]),n}({beforeEnter:t,afterEnter:r,beforeLeave:o,afterLeave:i}),A=wa();ar((()=>{if(A&&"visible"===v&&null===p.current)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}),[p,v,A]);let I=y&&!_,T=!A||I||E.current===w?"idle":w?"enter":"leave",O=function(e=0){let[n,t]=lr(e),r=ma(),o=pr((e=>{r.current&&t((n=>n|e))}),[n,r]),i=pr((e=>Boolean(n&e)),[n]),s=pr((e=>{r.current&&t((n=>n&~e))}),[t,r]),u=pr((e=>{r.current&&t((n=>n^e))}),[t]);return{flags:n,addFlag:o,hasFlag:i,removeFlag:s,toggleFlag:u}}(0),D=_a((e=>Xc(e,{enter:()=>{O.addFlag(la.Opening),N.current.beforeEnter()},leave:()=>{O.addFlag(la.Closing),N.current.beforeLeave()},idle:()=>{}}))),P=_a((e=>Xc(e,{enter:()=>{O.removeFlag(la.Opening),N.current.afterEnter()},leave:()=>{O.removeFlag(la.Closing),N.current.afterLeave()},idle:()=>{}}))),M=Ta((()=>{b("hidden"),S(p)}),C);(function({container:e,direction:n,classes:t,onStart:r,onStop:o}){let i=ma(),s=Sa(),u=ga(n);pa((()=>{let n=ba();s.add(n.dispose);let l=e.current;if(l&&"idle"!==u.current&&i.current)return n.dispose(),r.current(u.current),n.add(function(e,n,t,r){let o=t?"enter":"leave",i=ba(),s=void 0!==r?function(e){let n={called:!1};return(...t)=>{if(!n.called)return n.called=!0,e(...t)}}(r):()=>{};"enter"===o&&(e.removeAttribute("hidden"),e.style.display="");let u=Xc(o,{enter:()=>n.enter,leave:()=>n.leave}),l=Xc(o,{enter:()=>n.enterTo,leave:()=>n.leaveTo}),c=Xc(o,{enter:()=>n.enterFrom,leave:()=>n.leaveFrom});return xa(e,...n.enter,...n.enterTo,...n.enterFrom,...n.leave,...n.leaveFrom,...n.leaveTo,...n.entered),Ca(e,...u,...c),i.nextFrame((()=>{xa(e,...c),Ca(e,...l),function(e,n){let t=ba();if(!e)return t.dispose;let{transitionDuration:r,transitionDelay:o}=getComputedStyle(e),[i,s]=[r,o].map((e=>{let[n=0]=e.split(",").filter(Boolean).map((e=>e.includes("ms")?parseFloat(e):1e3*parseFloat(e))).sort(((e,n)=>n-e));return n})),u=i+s;if(0!==u){t.group((t=>{t.setTimeout((()=>{n(),t.dispose()}),u),t.addEventListener(e,"transitionrun",(e=>{e.target===e.currentTarget&&t.dispose()}))}));let r=t.addEventListener(e,"transitionend",(e=>{e.target===e.currentTarget&&(n(),r())}))}else n();t.add((()=>n())),t.dispose}(e,(()=>(xa(e,...u),Ca(e,...n.entered),s())))})),i.dispose}(l,t.current,"enter"===u.current,(()=>{n.dispose(),o.current(u.current)}))),n.dispose}),[n])})({container:p,classes:k,direction:T,onStart:ga((e=>{M.onStart(p,e,D)})),onStop:ga((e=>{M.onStop(p,e,P),"leave"===e&&!Ia(M)&&(b("hidden"),S(p))}))}),ar((()=>{I&&(g===ea.Hidden?E.current=null:E.current=w)}),[w,I,v]);let U=h,L={ref:m};return _&&w&&(U={...U,className:Yc(h.className,...k.current.enter,...k.current.enterFrom)}),uo.createElement(Aa.Provider,{value:M},uo.createElement(aa,{value:Xc(v,{visible:la.Open,hidden:la.Closed})|O.flags},na({ourProps:L,theirProps:U,defaultTag:"div",features:Ma,visible:"visible"===v,name:"Transition.Child"})))})),Ba=oa((function(e,n){let t=null!==mr(ka),r=null!==ca();return uo.createElement(uo.Fragment,null,!t&&r?uo.createElement(Ua,{ref:n,...e}):uo.createElement(La,{ref:n,...e}))})),Fa=Object.assign(Ua,{Child:Ba,Root:Ua});class Ga extends O{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Key","Appear","Show","ClassName","Enter","EnterFrom","EnterTo","Leave","LeaveFrom","LeaveTo","Children"]}}function Ra(e){const n=qn(e,1);return Ct(Fa,n)}function Ha(e,n){let t;return Ct("div",E(pn([["className","px-4 py-4 sm:px-0"],(t=[Ct("h3",{className:"text-lg font-semibold leading-7 text-gray-900",children:e}),re(oe((e=>Ct("p",{className:"mt-1 max-w-2xl text-sm leading-6 text-gray-500",children:e})),n),null)],["children",lo.Children.toArray(Array.from(t))])])))}function ja(e,n){let t;return Ct("div",E(pn([["className","px-4 py-4 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"],(t=[Ct("dt",{className:"text-sm font-medium leading-6 text-gray-700",children:e}),Ct("dd",{className:"px-1 mt-1 text-sm leading-6 text-gray-700 sm:col-span-2 sm:mt-0",children:n})],["children",lo.Children.toArray(Array.from(t))])])))}function $a(e){let n,t;const r=e.value,o=e.label,i=xo(!1),s=i[0],u=i[1];return _o((()=>{Mo(Ao.Delay((()=>s?Ao.Bind((2e3,No((e=>{let n;const t=setTimeout((()=>{e.cancelToken.removeListener(n),e.onSuccess(void 0)}),2e3);n=e.cancelToken.addListener((()=>{clearTimeout(t),e.onCancel(new Eo)}))}))),(()=>(u(!1),Ao.Zero()))):Ao.Zero())))})),Ct("div",E(pn([["className","px-4 py-2 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"],(n=[Ct("dt",{className:"text-sm font-medium leading-6 text-gray-700",children:o}),Ct("dd",E(pn([["className","flex mt-1 text-sm leading-6 text-primary-700 sm:col-span-2 sm:mt-0 relative"],(t=[Ra(pn([new Ga(3,"absolute bottom-8 flex flex-row bg-gray-900 items-start w-[69px] h-8 shadow-md px-3 py-2 rounded-md"),new Ga(2,s),new Ga(4,"transition-opacity ease-in duration-100"),new Ga(5,"opacity-0"),new Ga(6,"opacity-90"),new Ga(7,"transition-opacity ease-out duration-500"),new Ga(8,"opacity-90"),new Ga(9,"opacity-0"),new Ga(10,[Ct("div",{className:"w-[45px] h-4 not-italic font-medium text-xs leading-4 text-white flex-none order-none grow-0",children:"Copied"})])])),Ct("div",{className:"px-1 cursor-pointer hover:text-primary-900 hover:bg-gray-300 rounded-md shrink",children:r})],["children",lo.Children.toArray(Array.from(t))]),["onClick",e=>{navigator.clipboard.writeText(r),u(!0)}]])))],["children",lo.Children.toArray(Array.from(n))])])))}function Wa(e,n){let t;const r=pn([e,Ct("div",E(pn([["className","mt-2 border-b border-gray-200"],(t=[Ct("dl",{className:"divide-y divide-gray-200 px-0 sm:px-4 max-w-2xl",children:lo.Children.toArray(Array.from(n))})],["children",lo.Children.toArray(Array.from(t))])])))]);return Ct("div",{children:lo.Children.toArray(Array.from(r))})}function za(e){let n,t,r,o,i,s;return Wa(Ha("Partner Information",void 0),pn([(n=["ID",Fo(e.StreamId)],Ct($a,{label:n[0],value:n[1]})),(t=["Name",ri(e.Name)],ja(t[0],t[1])),(r=["Contact",`${ii(e.ContactDetails.FirstName)} ${si(e.ContactDetails.LastName)}`],ja(r[0],r[1])),(o=["Phone",li(e.ContactDetails.MobilePhone)],ja(o[0],o[1])),(i=["Website",oi(e.Website)],ja(i[0],i[1])),(s=["Notes",re((u=e.Notes,null!=u?u.fields[0]:void 0),"")],ja(s[0],s[1]))]));var u}class Va extends O{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Details","AccountList","SuperConfiguration","BenefitsOnboardingConfiguration","BankDetailsConfiguration"]}}class qa extends D{constructor(e,n,t){super(),this.PartnerId=e,this.BackendUrl=n,this.AccessToken=t}}class Za extends D{constructor(e,n,t){super(),this.PartnerId=e,this.BackendUrl=n,this.AccessToken=t}}class Ja extends D{constructor(e,n,t){super(),this.PartnerId=e,this.BackendUrl=n,this.AccessToken=t}}function Ka(e){let n,t,r,o,i;return hc(1===e.tag?(n=e.fields[0],pn([dc("Details",yi($i(new Hi(1,n.partnerId)),1)),dc("Accounts",void 0),dc("Super",yi($i(new Hi(3,n.partnerId)),1)),dc("Benefits Onboarding",yi($i(new Hi(4,n.partnerId)),1)),dc("Bank Details",yi($i(new Hi(5,n.partnerId)),1))])):2===e.tag?(t=e.fields[0].PartnerId,pn([dc("Details",yi($i(new Hi(1,t)),1)),dc("Accounts",yi($i(new Hi(2,t)),1)),dc("Super",void 0),dc("Benefits Onboarding",yi($i(new Hi(4,t)),1)),dc("Bank Details",yi($i(new Hi(5,t)),1))])):3===e.tag?(r=e.fields[0].PartnerId,pn([dc("Details",yi($i(new Hi(1,r)),1)),dc("Accounts",yi($i(new Hi(2,r)),1)),dc("Super",yi($i(new Hi(3,r)),1)),dc("Benefits Onboarding",void 0),dc("Bank Details",yi($i(new Hi(5,r)),1))])):4===e.tag?(o=e.fields[0].PartnerId,pn([dc("Details",yi($i(new Hi(1,o)),1)),dc("Accounts",yi($i(new Hi(2,o)),1)),dc("Super",yi($i(new Hi(3,o)),1)),dc("Benefits Onboarding",yi($i(new Hi(4,o)),1)),dc("Bank Details",void 0)])):(i=e.fields[0],pn([dc("Details",void 0),dc("Accounts",yi($i(new Hi(2,Z(Fo(i.StreamId)))),1)),dc("Super",yi($i(new Hi(3,Z(Fo(i.StreamId)))),1)),dc("Benefits Onboarding",yi($i(new Hi(4,Z(Fo(i.StreamId)))),1)),dc("Bank Details",yi($i(new Hi(5,Z(Fo(i.StreamId)))),1))])))}function Ya(e){switch(e.tag){case 1:{const n=e.fields[0];return Ct(Wc,{accessToken:n.accessToken,backendUrl:n.backendUrl,partnerId:n.partnerId})}case 2:return Ct(Vc,{partnerId:e.fields[0].PartnerId,accountId:void 0,backendUrl:e.fields[0].BackendUrl,accessToken:e.fields[0].AccessToken});case 3:return Ct(Zc,{partnerId:e.fields[0].PartnerId,accountId:void 0,backendUrl:e.fields[0].BackendUrl,accessToken:e.fields[0].AccessToken});case 4:return Ct(Kc,{partnerId:e.fields[0].PartnerId,accountId:void 0,backendUrl:e.fields[0].BackendUrl,accessToken:e.fields[0].AccessToken});default:return Ct(za,e.fields[0])}}function Xa(e){let n;const t=e.mode;return Ct("div",E(rn((n=[Ka(t),Ya(t)],["children",lo.Children.toArray(Array.from(n))]))))}class Qa extends O{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["backend-url","access-token","partner-id","account-id"]}}function ef(e){const n=e.accessToken,t=e.backendUrl,r=e.accountId,o=Bn((e=>e),[new Qa(1,n),new Qa(0,t),new Qa(2,q(e.partnerId)),oe((e=>new Qa(3,Y(e))),r)]);return Ct("superhero-profile-directory-app",qn(o,1))}function nf(e){let n,t,r,o,i,s,u;return Wa(Ha("Account Information",void 0),pn([(n=["ID",e.StreamId],Ct($a,{label:n[0],value:n[1]})),(t=["Name",e.Name],Ct($a,{label:t[0],value:t[1]})),(r=["External ID",re(e.ExternalId,"")],ja(r[0],r[1])),(o=["Channel ID",re(e.ChannelId,"")],ja(o[0],o[1])),(i=["Contact",`${e.ContactDetails.FirstName} ${e.ContactDetails.LastName}`],ja(i[0],i[1])),(s=["Phone",e.ContactDetails.MobilePhone],ja(s[0],s[1])),(u=["Email",e.ContactDetails.Email],ja(u[0],u[1]))]))}function tf(e){let n,t,r,o,i,s,u;if(null==e)return null;{const l=e;return Wa(Ha("Legal Entity",void 0),pn([(n=["Business Name",l.BusinessName],ja(n[0],n[1])),(t=["Business Number",l.BusinessNumber],ja(t[0],t[1])),(r=["Address Line 1",l.Address1],ja(r[0],r[1])),(o=["Address Line 2",re(l.Address2,"")],ja(o[0],o[1])),(i=["City",l.City],ja(i[0],i[1])),(s=["State",re(l.State,"")],ja(s[0],s[1])),(u=["Postcode",l.Postcode],ja(u[0],u[1]))]))}}function rf(e){let n;if(null==e)return null;{const t=e;return Wa(Ha("Legal Entity",void 0),rn((n=["Notes",t],ja(n[0],n[1]))))}}function of(e){const n=pn([nf(e),tf(e.LegalEntity),rf(e.Notes)]);return Ct("div",{children:lo.Children.toArray(Array.from(n))})}class sf extends O{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Details","ProfilesDirectory","SuperConfiguration","BenefitsOnboardingConfiguration","BankDetailsConfiguration"]}}function uf(e,n,t){let r,o,i,s,u,l,c,a,f,d,h,p,m,g,w,_,y,v,b,C;const x=[e,n];return hc(1===t.tag?pn([dc("Details",yi($i((r=x,new Hi(6,r[0],r[1]))),1)),dc("Directory",void 0),dc("Super",yi($i((o=x,new Hi(8,o[0],o[1]))),1)),dc("Benefits Onboarding",yi($i((i=x,new Hi(9,i[0],i[1]))),1)),dc("Bank Details",yi($i((s=x,new Hi(10,s[0],s[1]))),1))]):2===t.tag?pn([dc("Details",yi($i((u=x,new Hi(6,u[0],u[1]))),1)),dc("Directory",yi($i((l=x,new Hi(7,l[0],l[1]))),1)),dc("Super",void 0),dc("Benefits Onboarding",yi($i((c=x,new Hi(9,c[0],c[1]))),1)),dc("Bank Details",yi($i((a=x,new Hi(10,a[0],a[1]))),1))]):3===t.tag?pn([dc("Details",yi($i((f=x,new Hi(6,f[0],f[1]))),1)),dc("Directory",yi($i((d=x,new Hi(7,d[0],d[1]))),1)),dc("Super",yi($i((h=x,new Hi(8,h[0],h[1]))),1)),dc("Benefits Onboarding",void 0),dc("Bank Details",yi($i((p=x,new Hi(10,p[0],p[1]))),1))]):4===t.tag?pn([dc("Details",yi($i((m=x,new Hi(6,m[0],m[1]))),1)),dc("Directory",yi($i((g=x,new Hi(7,g[0],g[1]))),1)),dc("Super",yi($i((w=x,new Hi(8,w[0],w[1]))),1)),dc("Benefits Onboarding",yi($i((_=x,new Hi(9,_[0],_[1]))),1)),dc("Bank Details",void 0)]):pn([dc("Details",void 0),dc("Directory",yi($i((y=x,new Hi(7,y[0],y[1]))),1)),dc("Super",yi($i((v=x,new Hi(8,v[0],v[1]))),1)),dc("Benefits Onboarding",yi($i((b=x,new Hi(9,b[0],b[1]))),1)),dc("Bank Details",yi($i((C=x,new Hi(10,C[0],C[1]))),1))]))}function lf(e,n,t){switch(n.tag){case 1:{const n=e.accountDetails;return Ct(ef,{partnerId:n[0],accountId:n[1],backendUrl:e.backendUrl,accessToken:e.accessToken})}case 2:{const n=e.accountDetails;return Ct(Vc,{partnerId:n[0],accountId:n[1],backendUrl:e.backendUrl,accessToken:e.accessToken})}case 3:{const n=e.accountDetails;return Ct(Zc,{partnerId:n[0],accountId:n[1],backendUrl:e.backendUrl,accessToken:e.accessToken})}case 4:{const n=e.accountDetails;return Ct(Kc,{partnerId:n[0],accountId:n[1],backendUrl:e.backendUrl,accessToken:e.accessToken})}default:{let e,n,r;switch(0===t.tag||1===t.tag?e=2:3===t.tag?(e=3,r=t.fields[0]):0===t.fields[0].tag?(e=0,n=t.fields[0].fields[0]):e=1,e){case 0:return Ct(of,n);case 1:return Ct(Rc,{error:"There was an error retrieving account "});case 2:return Ct(Hc,null);case 3:return Ct(Rc,{error:T(r)})}}}}function cf(e){let n,t;const r=e.account,o=e.mode,i=e.props;return Ct("div",E(rn((n=[(t=i.accountDetails,uf(t[0],t[1],o)),lf(i,o,r)],["children",lo.Children.toArray(Array.from(n))]))))}function af(e){const n=e.partnerList;return function(e,n){let t,r,o,i,s,u,l;return Ct("div",E(pn([["className","flex flex-col mt-4"],(t=[Ct("div",E(pn([["className","-my-2 overflow-x-auto sm:-mx-6 lg:-mx-8"],(r=[Ct("div",E(pn([["className","py-2 align-middle inline-block min-w-full sm:px-6 lg:px-8"],(o=[Ct("div",E(pn([["className","shadow overflow-hidden border-b border-gray-200 sm:rounded-lg"],(i=[Ct("table",E(pn([["className","min-w-full divide-y divide-gray-200"],(s=[Ct("thead",{className:"bg-gray-50",children:(u=Hn(bc,e),Ct("tr",{children:lo.Children.toArray(Array.from(u))}))}),(l=jn(((e,n)=>(n=>{let t;return Ct("tr",E(pn([["className",e%2==0?"bg-white":"bg-gray-50"],(t=Hn(Sc,n),["children",lo.Children.toArray(Array.from(t))])])))})(n)),n),Ct("tbody",{children:lo.Children.toArray(Array.from(l))}))],["children",lo.Children.toArray(Array.from(s))])])))],["children",lo.Children.toArray(Array.from(i))])])))],["children",lo.Children.toArray(Array.from(o))])])))],["children",lo.Children.toArray(Array.from(r))])])))],["children",lo.Children.toArray(Array.from(t))])])))}(pn([Ec("ID"),Ec("Name"),Ec("Contact"),Ec("Phone"),Ec("Website")]),wn((e=>{let n;const t=Fo(e.StreamId);return pn([(n=[yi($i(new Hi(1,Z(t))),1),t],kc(n[0],n[1])),Nc(["text-gray-500"],ri(e.Name)),Nc(["text-gray-500"],`${ii(e.ContactDetails.FirstName)} ${si(e.ContactDetails.LastName)}`),Nc(["text-gray-500"],li(e.ContactDetails.MobilePhone)),Nc(["text-gray-500"],oi(e.Website))])}),n))}function ff(){return(ff=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function df(e){this.getChildContext=function(){return e.context};var n=e.children,t=function(e,n){if(null==e)return{};var t,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n.indexOf(t=i[r])>=0||(o[t]=e[t]);return o}(e,["context","children"]);return qt(n,t)}function hf(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=Ct(df,ff({},this._props,{context:e.detail.context}),function e(n,t){if(3===n.nodeType)return n.data;if(1!==n.nodeType)return null;var r=[],o={},i=0,s=n.attributes,u=n.childNodes;for(i=s.length;i--;)"slot"!==s[i].name&&(o[s[i].name]=s[i].value,o[pf(s[i].name)]=s[i].value);for(i=u.length;i--;){var l=e(u[i],null),c=u[i].slot;c?o[c]=Ct(wf,{name:c},l):r[i]=l}var a=t?Ct(wf,null,r):r;return Ct(t||n.nodeName.toLowerCase(),o,a)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?Vt:zt)(this._vdom,this._root)}function pf(e){return e.replace(/-(\w)/g,(function(e,n){return n?n.toUpperCase():""}))}function mf(e,n,t){if(this._vdom){var r={};r[e]=t=null==t?void 0:t,r[pf(e)]=t,this._vdom=qt(this._vdom,r),zt(this._vdom,this._root)}}function gf(){zt(this._vdom=null,this._root)}function wf(e,n){var t=this;return Ct("slot",ff({},e,{ref:function(e){e?(t.ref=e,t._listener||(t._listener=function(e){e.stopPropagation(),e.detail.context=n},e.addEventListener("_preact",t._listener))):t.ref.removeEventListener("_preact",t._listener)}}))}class _f extends D{constructor(e,n,t){super(),this.Partners=e,this.Accounts=n,this.CurrentPage=t}}class yf extends O{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["PageChanged","GetAccountName","AppendAccount","LoadPartners"]}}function vf(){const e=ji(bi(window.location.hash,1)),n=11===e.tag?Wi(new Hi(0)):Ji();return[new _f(new Uo(0),new Kn([],{Equals:y,GetHashCode:g}),e),n]}function bf(e){let n,t;const r=is(vf,((n,t)=>function(e,n,t){switch(n.tag){case 1:{const r=n.fields[0];return[t,Yi(e,r,(e=>new yf(2,r,new Uo(2,new st(0,e)))),(e=>new yf(2,r,new Uo(2,new st(1,"Failed to retrieve account name")))))]}case 2:return[new _f(t.Partners,(r=t.Accounts,o=n.fields[0],i=n.fields[1],function(e,n,t){if(e.has(n))throw new Error("An item with the same key has already been added. Key: "+n);e.set(n,t)}(r,o,i),r),t.CurrentPage),Ji()];case 0:{const e=n.fields[0];return 11===e.tag?[t,Wi(e)]:[new _f(t.Partners,t.Accounts,e),Ji()]}default:return[new _f(n.fields[0],t.Accounts,t.CurrentPage),Ji()]}var r,o,i}((n=>{const t=function(e){const n=function(e){return[e.fields[0],e.fields[1]]}(e);return[n[0],n[1]]}(n);return function(e,n,t,r){const o=q(t),i=Y(r);return Ao.Delay((()=>{let t;const r=nc(n,Vs(new ss(0),zs((t=ec(e),`${t}/partners/${o}/accounts/${i}`))));return Ao.Bind(r,(e=>{const n=e;if(1===n.tag)return Ao.Return(new st(1,n.fields[0]));{const e=n.fields[0];if(200===e.statusCode){const n=Al(N(2,Zl($o("Dto.AdminApi.Account",[],Kl,(()=>[["StreamId",qo],["PartnerId",qo],["Name",qo],["Website",qo],["ContactDetails",ai()],["Notes",Wo(qo)],["LegalEntity",Wo($o("Dto.Primitives.LegalEntity",[],hi,(()=>[["BusinessName",qo],["BusinessNumber",qo],["Address1",qo],["Address2",Wo(qo)],["City",qo],["Postcode",qo],["State",Wo(qo)],["Phone",qo],["CountryCode",Wo(qo)]])))],["ExternalId",Wo(qo)],["ChannelId",Wo(qo)]])),new Ks(1),void 0)),e.responseText);return Ao.Return(n)}return Ao.Return(new st(1,"Unexpected response from backend"))}}))}))}(e.backendUrl,e.accessToken,t[0],t[1])}),n,t)),[]),o=r[0],i=r[1];go(Lo((()=>tc(e.backendUrl,e.accessToken)),(e=>{i(new yf(3,e))})));const s=e=>{let n;const t=o.Partners;return 0===t.tag?new Uo(0):1===t.tag?new Uo(1):3===t.tag?new Uo(3,t.fields[0]):1===t.fields[0].tag?new Uo(2,new st(1,Ue(Pe("Unknown partner: %A%P()",[e])))):new Uo(2,(n=Ri(t.fields[0].fields[0],e),null==n?new st(1,Ue(Pe("Unknown partner: %A%P()",[e]))):new st(0,n.Name)))},u=e=>Ct(cc,{account:void 0,page:o.CurrentPage,partner:{Id:e,Name:s(e)}}),l=(e,n)=>{const t=Ct(Xa,{mode:n});return[u(e),t]},c=n=>{const t=n[0],r=n[1];return n=>{let u,l,c,a,f;const d=[t,r];var h,p;let m;return f=new Bi(0,d[0],d[1]),h=function(e,n){let t,r=null;return t=[Zn(e,n,new P((()=>r),(e=>{r=e}))),r],t[0]?t[1]:void 0}(o.Accounts,f),p=()=>(i(new yf(1,f)),new Uo(1)),a=null!=h?ne(h):p(),m=Ct(cf,{props:{accessToken:e.accessToken,accountDetails:[t,r],backendUrl:e.backendUrl},mode:n,account:a}),[(u=[t,r,a],l=u[0],Ct(cc,(c={Id:l,Name:s(l)},{account:{Id:u[1],Name:zi((e=>B(e.Name)),u[2])},page:o.CurrentPage,partner:c}))),m]}};let a;const f=o.Partners;let d,h,p,m;switch(1===f.tag?d=0:2===f.tag?1===f.fields[0].tag?(d=2,p=f.fields[0].fields[0]):(d=1,h=f.fields[0].fields[0]):3===f.tag?(d=3,m=f.fields[0]):d=0,d){case 0:a=[Ct(Hc,null),Ct(Hc,null)];break;case 1:{const t=o.CurrentPage;switch(t.tag){case 1:{const e=t.fields[0],r=u(e),o=Ri(h,e);a=null==o?[r,Ct(Rc,{error:"Unknown Partner"})]:[r,(n=new Va(0,o),Ct(Xa,{mode:n}))];break}case 2:{const n=t.fields[0];a=l(n,new Va(1,{accessToken:e.accessToken,backendUrl:e.backendUrl,partnerId:n}));break}case 3:{const n=t.fields[0];a=l(n,new Va(2,new qa(n,e.backendUrl,e.accessToken)));break}case 4:{const n=t.fields[0];a=l(n,new Va(3,new Za(n,e.backendUrl,e.accessToken)));break}case 5:{const n=t.fields[0];a=l(n,new Va(4,new Ja(n,e.backendUrl,e.accessToken)));break}case 6:a=c([t.fields[0],t.fields[1]])(new sf(0));break;case 7:a=c([t.fields[0],t.fields[1]])(new sf(1));break;case 8:a=c([t.fields[0],t.fields[1]])(new sf(2));break;case 9:a=c([t.fields[0],t.fields[1]])(new sf(3));break;case 10:a=c([t.fields[0],t.fields[1]])(new sf(4));break;default:a=[Ct(cc,{account:void 0,page:o.CurrentPage,partner:void 0}),Ct(af,{partnerList:h})]}break}case 2:a=[Ct(cc,{account:void 0,page:o.CurrentPage,partner:void 0}),Ct(Rc,{error:p})];break;case 3:a=[Ct(cc,{account:void 0,page:o.CurrentPage,partner:void 0}),(t=T(m),Ct(Rc,{error:t}))]}return Ci({onUrlChanged:e=>{i(new yf(0,ji(e)))},application:Ct(St,{},a[0],a[1])})}!function(e,n,t,r){function o(){var n=Reflect.construct(HTMLElement,[],o);return n._vdomComponent=e,n._root=n,n}(o.prototype=Object.create(HTMLElement.prototype)).constructor=o,o.prototype.connectedCallback=hf,o.prototype.attributeChangedCallback=mf,o.prototype.disconnectedCallback=gf,t=t||e.observedAttributes||Object.keys(e.propTypes||{}),o.observedAttributes=t,t.forEach((function(e){Object.defineProperty(o.prototype,e,{get:function(){return this._vdom.props[e]},set:function(n){this._vdom?this.attributeChangedCallback(e,null,n):(this._props||(this._props={}),this._props[e]=n,this.connectedCallback());var t=typeof n;null!=n&&"string"!==t&&"boolean"!==t&&"number"!==t||this.setAttribute(e,n)}})})),customElements.define("superhero-account-registry",o)}((e=>Ct(bf,e)))})();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flarehr/superhero-account-registry",
3
- "version": "2.7.24",
3
+ "version": "2.9.26",
4
4
  "description": "Flare Superhero Account Registry Component",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "files": [
@@ -11,21 +11,17 @@
11
11
  "build": "dotnet fable ./ && webpack --mode production"
12
12
  },
13
13
  "dependencies": {
14
- "@headlessui/react": "^1.2.0",
14
+ "@headlessui/react": "^1.7.8",
15
15
  "@heroicons/react": "^1.0.1",
16
16
  "preact": "^10.5.12",
17
17
  "preact-custom-element": "^4.2.1"
18
18
  },
19
19
  "devDependencies": {
20
20
  "css-loader": "^5.0.1",
21
- "fibers": "^5.0.0",
22
21
  "html-webpack-plugin": "^4.5.2",
23
22
  "mini-css-extract-plugin": "^1.3.5",
24
- "node-sass": "^5.0.0",
25
- "sass": "^1.32.6",
26
- "sass-loader": "^10.1.1",
27
- "webpack": "^4.46.0",
28
- "webpack-cli": "^4.5.0",
29
- "webpack-dev-server": "^3.11.2"
23
+ "webpack": "^5.72.0",
24
+ "webpack-cli": "^4.9.2",
25
+ "webpack-dev-server": "^4.8.1"
30
26
  }
31
27
  }