@flarehr/bank-details-app 0.1.1967 → 0.1.1969
Sign up to get free protection for your applications and to get access to all the features.
package/dist/bank-details-app.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
(()=>{"use strict";var e,n,t,r,o,i,s,u,c,l,a,f,d={},h=[],_=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,p=Array.isArray;function w(e,n){for(var t in n)e[t]=n[t];return e}function m(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function g(n,t,r){var o,i,s,u={};for(s in t)"key"==s?o=t[s]:"ref"==s?i=t[s]:u[s]=t[s];if(arguments.length>2&&(u.children=arguments.length>3?e.call(arguments,2):r),"function"==typeof n&&null!=n.defaultProps)for(s in n.defaultProps)void 0===u[s]&&(u[s]=n.defaultProps[s]);return y(n,u,o,i,null)}function y(e,r,o,i,s){var u={type:e,props:r,key:o,ref:i,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==s?++t:s,__i:-1,__u:0};return null==s&&null!=n.vnode&&n.vnode(u),u}function v(e){return e.children}function b(e,n){this.props=e,this.context=n}function S(e,n){if(null==n)return e.__?S(e.__,e.__i+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?S(e):null}function C(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 C(e)}}function E(e){(!e.__d&&(e.__d=!0)&&r.push(e)&&!x.__r++||o!==n.debounceRendering)&&((o=n.debounceRendering)||i)(x)}function x(){var e,t,o,i,u,c,l,a;for(r.sort(s);e=r.shift();)e.__d&&(t=r.length,i=void 0,c=(u=(o=e).__v).__e,l=[],a=[],o.__P&&((i=w({},u)).__v=u.__v+1,n.vnode&&n.vnode(i),U(o.__P,i,u,o.__n,o.__P.namespaceURI,32&u.__u?[c]:null,l,null==c?S(u):c,!!(32&u.__u),a),i.__v=u.__v,i.__.__k[i.__i]=i,P(l,i,a),i.__e!=c&&C(i)),r.length>t&&r.sort(s));x.__r=0}function k(e,n,t,r,o,i,s,u,c,l,a){var f,_,p,w,m,g,y=r&&r.__k||h,v=n.length;for(c=I(t,n,y,c,v),f=0;f<v;f++)null!=(p=t.__k[f])&&(_=-1===p.__i?d:y[p.__i]||d,p.__i=f,g=U(e,p,_,o,i,s,u,c,l,a),w=p.__e,p.ref&&_.ref!=p.ref&&(_.ref&&G(_.ref,null,p),a.push(p.ref,p.__c||w,p)),null==m&&null!=w&&(m=w),4&p.__u||_.__k===p.__k?c=T(p,c,e):"function"==typeof p.type&&void 0!==g?c=g:w&&(c=w.nextSibling),p.__u&=-7);return t.__e=m,c}function I(e,n,t,r,o){var i,s,u,c,l,a=t.length,f=a,d=0;for(e.__k=new Array(o),i=0;i<o;i++)null!=(s=n[i])&&"boolean"!=typeof s&&"function"!=typeof s?(c=i+d,(s=e.__k[i]="string"==typeof s||"number"==typeof s||"bigint"==typeof s||s.constructor==String?y(null,s,null,null,null):p(s)?y(v,{children:s},null,null,null):void 0===s.constructor&&s.__b>0?y(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):s).__=e,s.__b=e.__b+1,u=null,-1!==(l=s.__i=M(s,t,c,f))&&(f--,(u=t[l])&&(u.__u|=2)),null==u||null===u.__v?(-1==l&&d--,"function"!=typeof s.type&&(s.__u|=4)):l!=c&&(l==c-1?d--:l==c+1?d++:(l>c?d--:d++,s.__u|=4))):e.__k[i]=null;if(f)for(i=0;i<a;i++)null!=(u=t[i])&&!(2&u.__u)&&(u.__e==r&&(r=S(u)),H(u,u));return r}function T(e,n,t){var r,o;if("function"==typeof e.type){for(r=e.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=e,n=T(r[o],n,t));return n}e.__e!=n&&(n&&e.type&&!t.contains(n)&&(n=S(e)),t.insertBefore(e.__e,n||null),n=e.__e);do{n=n&&n.nextSibling}while(null!=n&&8==n.nodeType);return n}function O(e,n){return n=n||[],null==e||"boolean"==typeof e||(p(e)?e.some((function(e){O(e,n)})):n.push(e)),n}function M(e,n,t,r){var o,i,s=e.key,u=e.type,c=n[t];if(null===c||c&&s==c.key&&u===c.type&&!(2&c.__u))return t;if(r>(null==c||2&c.__u?0:1))for(o=t-1,i=t+1;o>=0||i<n.length;){if(o>=0){if((c=n[o])&&!(2&c.__u)&&s==c.key&&u===c.type)return o;o--}if(i<n.length){if((c=n[i])&&!(2&c.__u)&&s==c.key&&u===c.type)return i;i++}}return-1}function N(e,n,t){"-"==n[0]?e.setProperty(n,null==t?"":t):e[n]=null==t?"":"number"!=typeof t||_.test(n)?t:t+"px"}function A(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||N(e.style,n,"");if(t)for(n in t)r&&t[n]===r[n]||N(e.style,n,t[n])}else if("o"==n[0]&&"n"==n[1])i=n!=(n=n.replace(u,"$1")),n=n.toLowerCase()in e||"onFocusOut"==n||"onFocusIn"==n?n.toLowerCase().slice(2):n.slice(2),e.l||(e.l={}),e.l[n+i]=t,t?r?t.u=r.u:(t.u=c,e.addEventListener(n,i?a:l,i)):e.removeEventListener(n,i?a:l,i);else{if("http://www.w3.org/2000/svg"==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&&"rowSpan"!=n&&"colSpan"!=n&&"role"!=n&&"popover"!=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,"popover"==n&&1==t?"":t))}}function D(e){return function(t){if(this.l){var r=this.l[t.type+e];if(null==t.t)t.t=c++;else if(t.t<r.u)return;return r(n.event?n.event(t):t)}}}function U(e,t,r,o,i,s,u,c,l,a){var f,d,h,_,g,y,S,C,E,x,I,T,O,M,N,A,D,U=t.type;if(void 0!==t.constructor)return null;128&r.__u&&(l=!!(32&r.__u),s=[c=t.__e=r.__e]),(f=n.__b)&&f(t);e:if("function"==typeof U)try{if(C=t.props,E="prototype"in U&&U.prototype.render,x=(f=U.contextType)&&o[f.__c],I=f?x?x.props.value:f.__:o,r.__c?S=(d=t.__c=r.__c).__=d.__E:(E?t.__c=d=new U(C,I):(t.__c=d=new b(C,I),d.constructor=U,d.render=F),x&&x.sub(d),d.props=C,d.state||(d.state={}),d.context=I,d.__n=o,h=d.__d=!0,d.__h=[],d._sb=[]),E&&null==d.__s&&(d.__s=d.state),E&&null!=U.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=w({},d.__s)),w(d.__s,U.getDerivedStateFromProps(C,d.__s))),_=d.props,g=d.state,d.__v=t,h)E&&null==U.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),E&&null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(E&&null==U.getDerivedStateFromProps&&C!==_&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(C,I),!d.__e&&(null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(C,d.__s,I)||t.__v==r.__v)){for(t.__v!=r.__v&&(d.props=C,d.state=d.__s,d.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.some((function(e){e&&(e.__=t)})),T=0;T<d._sb.length;T++)d.__h.push(d._sb[T]);d._sb=[],d.__h.length&&u.push(d);break e}null!=d.componentWillUpdate&&d.componentWillUpdate(C,d.__s,I),E&&null!=d.componentDidUpdate&&d.__h.push((function(){d.componentDidUpdate(_,g,y)}))}if(d.context=I,d.props=C,d.__P=e,d.__e=!1,O=n.__r,M=0,E){for(d.state=d.__s,d.__d=!1,O&&O(t),f=d.render(d.props,d.state,d.context),N=0;N<d._sb.length;N++)d.__h.push(d._sb[N]);d._sb=[]}else do{d.__d=!1,O&&O(t),f=d.render(d.props,d.state,d.context),d.state=d.__s}while(d.__d&&++M<25);d.state=d.__s,null!=d.getChildContext&&(o=w(w({},o),d.getChildContext())),E&&!h&&null!=d.getSnapshotBeforeUpdate&&(y=d.getSnapshotBeforeUpdate(_,g)),c=k(e,p(A=null!=f&&f.type===v&&null==f.key?f.props.children:f)?A:[A],t,r,o,i,s,u,c,l,a),d.base=t.__e,t.__u&=-161,d.__h.length&&u.push(d),S&&(d.__E=d.__=null)}catch(e){if(t.__v=null,l||null!=s)if(e.then){for(t.__u|=l?160:128;c&&8==c.nodeType&&c.nextSibling;)c=c.nextSibling;s[s.indexOf(c)]=null,t.__e=c}else for(D=s.length;D--;)m(s[D]);else t.__e=r.__e,t.__k=r.__k;n.__e(e,t,r)}else null==s&&t.__v==r.__v?(t.__k=r.__k,t.__e=r.__e):c=t.__e=R(r.__e,t,r,o,i,s,u,l,a);return(f=n.diffed)&&f(t),128&t.__u?void 0:c}function P(e,t,r){for(var o=0;o<r.length;o++)G(r[o],r[++o],r[++o]);n.__c&&n.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){n.__e(e,t.__v)}}))}function R(t,r,o,i,s,u,c,l,a){var f,h,_,w,g,y,v,b=o.props,C=r.props,E=r.type;if("svg"==E?s="http://www.w3.org/2000/svg":"math"==E?s="http://www.w3.org/1998/Math/MathML":s||(s="http://www.w3.org/1999/xhtml"),null!=u)for(f=0;f<u.length;f++)if((g=u[f])&&"setAttribute"in g==!!E&&(E?g.localName==E:3==g.nodeType)){t=g,u[f]=null;break}if(null==t){if(null==E)return document.createTextNode(C);t=document.createElementNS(s,E,C.is&&C),l&&(n.__m&&n.__m(r,u),l=!1),u=null}if(null===E)b===C||l&&t.data===C||(t.data=C);else{if(u=u&&e.call(t.childNodes),b=o.props||d,!l&&null!=u)for(b={},f=0;f<t.attributes.length;f++)b[(g=t.attributes[f]).name]=g.value;for(f in b)if(g=b[f],"children"==f);else if("dangerouslySetInnerHTML"==f)_=g;else if(!(f in C)){if("value"==f&&"defaultValue"in C||"checked"==f&&"defaultChecked"in C)continue;A(t,f,null,g,s)}for(f in C)g=C[f],"children"==f?w=g:"dangerouslySetInnerHTML"==f?h=g:"value"==f?y=g:"checked"==f?v=g:l&&"function"!=typeof g||b[f]===g||A(t,f,g,b[f],s);if(h)l||_&&(h.__html===_.__html||h.__html===t.innerHTML)||(t.innerHTML=h.__html),r.__k=[];else if(_&&(t.innerHTML=""),k(t,p(w)?w:[w],r,o,i,"foreignObject"==E?"http://www.w3.org/1999/xhtml":s,u,c,u?u[0]:o.__k&&S(o,0),l,a),null!=u)for(f=u.length;f--;)m(u[f]);l||(f="value","progress"==E&&null==y?t.removeAttribute("value"):void 0!==y&&(y!==t[f]||"progress"==E&&!y||"option"==E&&y!==b[f])&&A(t,f,y,b[f],s),f="checked",void 0!==v&&v!==t[f]&&A(t,f,v,b[f],s))}return t}function G(e,t,r){try{if("function"==typeof e){var o="function"==typeof e.__u;o&&e.__u(),o&&null==t||(e.__u=e(t))}else e.current=t}catch(e){n.__e(e,r)}}function H(e,t,r){var o,i;if(n.unmount&&n.unmount(e),(o=e.ref)&&(o.current&&o.current!==e.__e||G(o,null,t)),null!=(o=e.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(e){n.__e(e,t)}o.base=o.__P=null}if(o=e.__k)for(i=0;i<o.length;i++)o[i]&&H(o[i],t,r||"function"!=typeof e.type);r||m(e.__e),e.__c=e.__=e.__e=void 0}function F(e,n,t){return this.constructor(e,t)}function $(t,r,o){var i,s,u,c;r==document&&(r=document.documentElement),n.__&&n.__(t,r),s=(i="function"==typeof o)?null:o&&o.__k||r.__k,u=[],c=[],U(r,t=(!i&&o||r).__k=g(v,null,[t]),s||d,d,r.namespaceURI,!i&&o?[o]:s?null:r.firstChild?e.call(r.childNodes):null,u,!i&&o?o:s?s.__e:r.firstChild,i,c),P(u,t,c)}function j(e,n){$(e,n,j)}function B(n,t,r){var o,i,s,u,c=w({},n.props);for(s in n.type&&n.type.defaultProps&&(u=n.type.defaultProps),t)"key"==s?o=t[s]:"ref"==s?i=t[s]:c[s]=void 0===t[s]&&void 0!==u?u[s]:t[s];return arguments.length>2&&(c.children=arguments.length>3?e.call(arguments,2):r),y(n.type,c,o||n.key,i||n.ref,null)}e=h.slice,n={__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}},t=0,b.prototype.setState=function(e,n){var t;t=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=w({},this.state),"function"==typeof e&&(e=e(w({},t),this.props)),e&&w(t,e),null!=e&&this.__v&&(n&&this._sb.push(n),E(this))},b.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),E(this))},b.prototype.render=v,r=[],i="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,s=function(e,n){return e.__v.__b-n.__v.__b},x.__r=0,u=/(PointerCapture)$|Capture$/i,c=0,l=D(!1),a=D(!0),f=0;var L,W,V,q,z=0,J=[],Z=n,Y=Z.__b,X=Z.__r,K=Z.diffed,Q=Z.__c,ee=Z.unmount,ne=Z.__;function te(e,n){Z.__h&&Z.__h(W,e,z||n),z=0;var t=W.__H||(W.__H={__:[],__h:[]});return e>=t.__.length&&t.__.push({}),t.__[e]}function re(e){return z=1,oe(ve,e)}function oe(e,n,t){var r=te(L++,2);if(r.t=e,!r.__c&&(r.__=[t?t(n):ve(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=W,!W.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=r.__c.props!==e;return o.forEach((function(e){if(e.__N){var n=e.__[0];e.__=e.__N,e.__N=void 0,n!==e.__[0]&&(s=!0)}})),i&&i.call(this,e,n,t)||s};W.u=!0;var i=W.shouldComponentUpdate,s=W.componentWillUpdate;W.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)},W.shouldComponentUpdate=o}return r.__N||r.__}function ie(e,n){var t=te(L++,3);!Z.__s&&ye(t.__H,n)&&(t.__=e,t.i=n,W.__H.__h.push(t))}function se(e,n){var t=te(L++,4);!Z.__s&&ye(t.__H,n)&&(t.__=e,t.i=n,W.__h.push(t))}function ue(e){return z=5,le((function(){return{current:e}}),[])}function ce(e,n,t){z=6,se((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))}function le(e,n){var t=te(L++,7);return ye(t.__H,n)&&(t.__=e(),t.__H=n,t.__h=e),t.__}function ae(e,n){return z=8,le((function(){return e}),n)}function fe(e){var n=W.context[e.__c],t=te(L++,9);return t.c=e,n?(null==t.__&&(t.__=!0,n.sub(W)),n.props.value):e.__}function de(e,n){Z.useDebugValue&&Z.useDebugValue(n?n(e):e)}function he(){var e=te(L++,11);if(!e.__){for(var n=W.__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.__}function _e(){for(var e;e=J.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(me),e.__H.__h.forEach(ge),e.__H.__h=[]}catch(n){e.__H.__h=[],Z.__e(n,e.__v)}}Z.__b=function(e){W=null,Y&&Y(e)},Z.__=function(e,n){e&&n.__k&&n.__k.__m&&(e.__m=n.__k.__m),ne&&ne(e,n)},Z.__r=function(e){X&&X(e),L=0;var n=(W=e.__c).__H;n&&(V===W?(n.__h=[],W.__h=[],n.__.forEach((function(e){e.__N&&(e.__=e.__N),e.i=e.__N=void 0}))):(n.__h.forEach(me),n.__h.forEach(ge),n.__h=[],L=0)),V=W},Z.diffed=function(e){K&&K(e);var n=e.__c;n&&n.__H&&(n.__H.__h.length&&(1!==J.push(n)&&q===Z.requestAnimationFrame||((q=Z.requestAnimationFrame)||we)(_e)),n.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.i=void 0}))),V=W=null},Z.__c=function(e,n){n.some((function(e){try{e.__h.forEach(me),e.__h=e.__h.filter((function(e){return!e.__||ge(e)}))}catch(t){n.some((function(e){e.__h&&(e.__h=[])})),n=[],Z.__e(t,e.__v)}})),Q&&Q(e,n)},Z.unmount=function(e){ee&&ee(e);var n,t=e.__c;t&&t.__H&&(t.__H.__.forEach((function(e){try{me(e)}catch(e){n=e}})),t.__H=void 0,n&&Z.__e(n,t.__v))};var pe="function"==typeof requestAnimationFrame;function we(e){var n,t=function(){clearTimeout(r),pe&&cancelAnimationFrame(n),setTimeout(e)},r=setTimeout(t,100);pe&&(n=requestAnimationFrame(t))}function me(e){var n=W,t=e.__c;"function"==typeof t&&(e.__c=void 0,t()),W=n}function ge(e){var n=W;e.__c=e.__(),W=n}function ye(e,n){return!e||e.length!==n.length||n.some((function(n,t){return n!==e[t]}))}function ve(e,n){return"function"==typeof n?n(e):n}function be(e,n){for(var t in n)e[t]=n[t];return e}function Se(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 Ce(e,n){var t=n(),r=re({t:{__:t,u:n}}),o=r[0].t,i=r[1];return se((function(){o.__=t,o.u=n,Ee(o)&&i({t:o})}),[e,t,n]),ie((function(){return Ee(o)&&i({t:o}),e((function(){Ee(o)&&i({t:o})}))}),[e]),t}function Ee(e){var n,t,r=e.u,o=e.__;try{var i=r();return!((n=o)===(t=i)&&(0!==n||1/n==1/t)||n!=n&&t!=t)}catch(e){return!0}}function xe(e){e()}function ke(e){return e}function Ie(){return[!1,xe]}var Te=se;function Oe(e,n){this.props=e,this.context=n}(Oe.prototype=new b).isPureReactComponent=!0,Oe.prototype.shouldComponentUpdate=function(e,n){return Se(this.props,e)||Se(this.state,n)};var Me=n.__b;n.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Me&&Me(e)};var Ne="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911,Ae=function(e,n){return null==e?null:O(O(e).map(n))},De={map:Ae,forEach:Ae,count:function(e){return e?O(e).length:0},only:function(e){var n=O(e);if(1!==n.length)throw"Children.only";return n[0]},toArray:O},Ue=n.__e;n.__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);Ue(e,n,t,r)};var Pe=n.unmount;function Re(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=be({},e)).__c&&(e.__c.__P===t&&(e.__c.__P=n),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return Re(e,n,t)}))),e}function Ge(e,n,t){return e&&t&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return Ge(e,n,t)})),e.__c&&e.__c.__P===n&&(e.__e&&t.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=t)),e}function He(){this.__u=0,this.o=null,this.__b=null}function Fe(e){var n=e.__.__c;return n&&n.__a&&n.__a(e)}function $e(){this.i=null,this.l=null}n.unmount=function(e){var n=e.__c;n&&n.__R&&n.__R(),n&&32&e.__u&&(e.type=null),Pe&&Pe(e)},(He.prototype=new b).__c=function(e,n){var t=n.__c,r=this;null==r.o&&(r.o=[]),r.o.push(t);var o=Fe(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]=Ge(e,e.__c.__P,e.__c.__O)}var n;for(r.setState({__a:r.__b=null});n=r.o.pop();)n.forceUpdate()}};r.__u++||32&n.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(s,s)},He.prototype.componentWillUnmount=function(){this.o=[]},He.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]=Re(this.__b,t,r.__O=r.__P)}this.__b=null}var o=n.__a&&g(v,null,e.fallback);return o&&(o.__u&=-33),[g(v,null,n.__a?null:e.children),o]};var je=function(e,n,t){if(++t[1]===t[0]&&e.l.delete(n),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.l.size))for(t=e.i;t;){for(;t.length>3;)t.pop()();if(t[1]<t[0])break;e.i=t=t[2]}};function Be(e){return this.getChildContext=function(){return e.context},e.children}function Le(e){var n=this,t=e.h;n.componentWillUnmount=function(){$(null,n.v),n.v=null,n.h=null},n.h&&n.h!==t&&n.componentWillUnmount(),n.v||(n.h=t,n.v={nodeType:1,parentNode:t,childNodes:[],contains:function(){return!0},appendChild:function(e){this.childNodes.push(e),n.h.appendChild(e)},insertBefore:function(e,t){this.childNodes.push(e),n.h.insertBefore(e,t)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),n.h.removeChild(e)}}),$(g(Be,{context:n.context},e.__v),n.v)}($e.prototype=new b).__a=function(e){var n=this,t=Fe(n.__v),r=n.l.get(e);return r[0]++,function(o){var i=function(){n.props.revealOrder?(r.push(o),je(n,e,r)):o()};t?t(i):i()}},$e.prototype.render=function(e){this.i=null,this.l=new Map;var n=O(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&n.reverse();for(var t=n.length;t--;)this.l.set(n[t],this.i=[1,0,this.i]);return e.children},$e.prototype.componentDidUpdate=$e.prototype.componentDidMount=function(){var e=this;this.l.forEach((function(n,t){je(e,t,n)}))};var We="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,Ve=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|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]/,qe=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,ze=/[A-Z0-9]/g,Je="undefined"!=typeof document,Ze=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)};function Ye(e,n,t){return null==n.__k&&(n.textContent=""),$(e,n),"function"==typeof t&&t(),e?e.__c:null}b.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(b.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(n){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:n})}})}));var Xe=n.event;function Ke(){}function Qe(){return this.cancelBubble}function en(){return this.defaultPrevented}n.event=function(e){return Xe&&(e=Xe(e)),e.persist=Ke,e.isPropagationStopped=Qe,e.isDefaultPrevented=en,e.nativeEvent=e};var nn,tn={enumerable:!1,configurable:!0,get:function(){return this.class}},rn=n.vnode;n.vnode=function(e){"string"==typeof e.type&&function(e){var n=e.props,t=e.type,r={},o=-1===t.indexOf("-");for(var i in n){var s=n[i];if(!("value"===i&&"defaultValue"in n&&null==s||Je&&"children"===i&&"noscript"===t||"class"===i||"className"===i)){var u=i.toLowerCase();"defaultValue"===i&&"value"in n&&null==n.value?i="value":"download"===i&&!0===s?s="":"translate"===u&&"no"===s?s=!1:"o"===u[0]&&"n"===u[1]?"ondoubleclick"===u?i="ondblclick":"onchange"!==u||"input"!==t&&"textarea"!==t||Ze(n.type)?"onfocus"===u?i="onfocusin":"onblur"===u?i="onfocusout":qe.test(i)&&(i=u):u=i="oninput":o&&Ve.test(i)?i=i.replace(ze,"-$&").toLowerCase():null===s&&(s=void 0),"oninput"===u&&r[i=u]&&(i="oninputCapture"),r[i]=s}}"select"==t&&r.multiple&&Array.isArray(r.value)&&(r.value=O(n.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==t&&null!=r.defaultValue&&(r.value=O(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",tn)):(n.className&&!n.class||n.class&&n.className)&&(r.class=r.className=n.className),e.props=r}(e),e.$$typeof=We,rn&&rn(e)};var on=n.__r;n.__r=function(e){on&&on(e),nn=e.__c};var sn=n.diffed;n.diffed=function(e){sn&&sn(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),nn=null};var un={ReactCurrentDispatcher:{current:{readContext:function(e){return nn.__n[e.__c].props.value},useCallback:ae,useContext:fe,useDebugValue:de,useDeferredValue:ke,useEffect:ie,useId:he,useImperativeHandle:ce,useInsertionEffect:Te,useLayoutEffect:se,useMemo:le,useReducer:oe,useRef:ue,useState:re,useSyncExternalStore:Ce,useTransition:Ie}}};function cn(e){return!!e&&e.$$typeof===We}function ln(e){return!!e.__k&&($(null,e),!0)}var an={useState:re,useId:he,useReducer:oe,useEffect:ie,useLayoutEffect:se,useInsertionEffect:Te,useTransition:Ie,useDeferredValue:ke,useSyncExternalStore:Ce,startTransition:xe,useRef:ue,useImperativeHandle:ce,useMemo:le,useCallback:ae,useContext:fe,useDebugValue:de,version:"18.3.1",Children:De,render:Ye,hydrate:function(e,n,t){return j(e,n),"function"==typeof t&&t(),e?e.__c:null},unmountComponentAtNode:ln,createPortal:function(e,n){var t=g(Le,{__v:e,h:n});return t.containerInfo=n,t},createElement:g,createContext:function(e,n){var t={__c:n="__cC"+f++,__:e,Consumer:function(e,n){return e.children(n)},Provider:function(e){var t,r;return this.getChildContext||(t=new Set,(r={})[n]=this,this.getChildContext=function(){return r},this.componentWillUnmount=function(){t=null},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&t.forEach((function(e){e.__e=!0,E(e)}))},this.sub=function(e){t.add(e);var n=e.componentWillUnmount;e.componentWillUnmount=function(){t&&t.delete(e),n&&n.call(e)}}),e.children}};return t.Provider.__=t.Consumer.contextType=t},createFactory:function(e){return g.bind(null,e)},cloneElement:function(e){return cn(e)?B.apply(null,arguments):e},createRef:function(){return{current:null}},Fragment:v,isValidElement:cn,isElement:cn,isFragment:function(e){return cn(e)&&e.type===v},isMemo:function(e){return!!e&&!!e.displayName&&("string"==typeof e.displayName||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")},findDOMNode:function(e){return e&&(e.base||1===e.nodeType&&e)||null},Component:b,PureComponent:Oe,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:Se(this.props,e)}function r(n){return this.shouldComponentUpdate=t,g(e,n)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r},forwardRef:function(e){function n(n){var t=be({},n);return delete t.ref,e(t,n.ref||null)}return n.$$typeof=Ne,n.render=n,n.prototype.isReactComponent=n.__f=!0,n.displayName="ForwardRef("+(e.displayName||e.name)+")",n},flushSync:function(e,n){return e(n)},unstable_batchedUpdates:function(e,n){return e(n)},StrictMode:v,Suspense:He,SuspenseList:$e,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 g(t,o)}return o.displayName="Lazy",o.__f=!0,o},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:un};function fn(e){return Array.isArray(e)||ArrayBuffer.isView(e)}function dn(e){(function(e){return null!=e&&"function"==typeof e.Dispose})(e)&&e.Dispose()}function hn(e,n){return Object.getPrototypeOf(e)?.constructor===Object.getPrototypeOf(n)?.constructor}Symbol.iterator;class _n{constructor(e){this.iter=e,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.iter.next();return this.current=e.value,!e.done}"System.Collections.IEnumerator.Reset"(){throw new Error("JS iterators cannot be reset")}Dispose(){}}function pn(e){return function(e){return null!=e&&"function"==typeof e.GetEnumerator}(e)?e.GetEnumerator():new _n(e[Symbol.iterator]())}function wn(e){return{next(){const n=e["System.Collections.IEnumerator.MoveNext"]();return{done:!n,value:n?e["System.Collections.Generic.IEnumerator`1.get_Current"]():void 0}}}}function mn(e,n){return e.toString(10).padStart(n,"0")}function gn(e){const n=e;return"number"==typeof n.offset?n.offset:1===e.kind?0:-6e4*e.getTimezoneOffset()}function yn(e,n){return(e=e<0&&null!=n&&10!==n?65535+e+1:e).toString(n)}function vn(e,n){return(e=e<0&&null!=n&&10!==n?4294967295+e+1:e).toString(n)}class bn{static id(e){return bn.idMap.has(e)||bn.idMap.set(e,++bn.count),bn.idMap.get(e)}}function Sn(e){let n=0,t=5381;const r=e.length;for(;n<r;)t=33*t^e.charCodeAt(n++);return t}function Cn(e){return 2654435761*e|0}function En(e){let n=0;const t=e.length;for(let r=0;r<t;r++)n=(n<<5)+n^e[r];return n}function xn(e){if(null==e)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return Cn(e);case"bigint":return function(e){return Sn(e.toString(32))}(e);case"string":return Sn(e);default:if(function(e){return null!=e&&"function"==typeof e.GetHashCode}(e))return e.GetHashCode();if(fn(e))return function(e){const n=e.length,t=new Array(n);for(let r=0;r<n;r++)t[r]=xn(e[r]);return En(t)}(e);if(e instanceof Date)return function(e){return e.getTime()}(e);if(Object.getPrototypeOf(e)?.constructor===Object){const n=Object.values(e).map((e=>xn(e)));return En(n)}return Cn(bn.id(e))}}function kn(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 In(e,n){return kn(e,n,Tn)}function Tn(e,n){return e===n||(null==e?null==n:null!=n&&(function(e){return null!=e&&"function"==typeof e.Equals}(e)?e.Equals(n):fn(e)?fn(n)&&In(e,n):"object"==typeof e&&(e instanceof Date?n instanceof Date&&0===On(e,n):Object.getPrototypeOf(e)?.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]||!Tn(e[t[o]],n[r[o]]))return!1;return!0}(e,n))))}function On(e,n){let t,r;return"offset"in e&&"offset"in n?(t=e.getTime(),r=n.getTime()):(t=e.getTime()+gn(e),r=n.getTime()+gn(n)),t===r?0:t<r?-1:1}function Mn(e,n){return e===n?0:e<n?-1:1}function Nn(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,An)}function An(e,n){return e===n?0:null==e?null==n?0:-1:null==n?1:function(e){return null!=e&&"function"==typeof e.CompareTo}(e)?e.CompareTo(n):fn(e)?fn(n)?Nn(e,n):-1:"object"!=typeof e?e<n?-1:1:e instanceof Date?n instanceof Date?On(e,n):-1:Object.getPrototypeOf(e)?.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=An(e[s],n[s]),0!==i)return i}return 0}(e,n):-1}bn.idMap=new WeakMap,bn.count=0;const Dn=new WeakMap;function Un(e){if(null==e)return null;const n=(n,t)=>e(n)(t);return Dn.set(n,e),n}function Pn(e){return Dn.get(e)??(n=>t=>e(n,t))}function Rn(e,n=0){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+=Rn(r);else{if(100===n){t+="; ...";break}t+="; "+Rn(r)}n++}return t+"]"}(e);{const t=Object.getPrototypeOf(e)?.constructor;return t===Object&&n<10?"{ "+Object.entries(e).map((([e,t])=>e+" = "+Rn(t,n+1))).join("\n ")+" }":t?.name??""}}return String(e)}class Gn{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=Rn(n[0]),r=t.indexOf(" ")>=0):t=n.map((e=>Rn(e))).join(", "),e+(r?" (":" ")+t+(r?")":"")}}(this.name,this.fields)}GetHashCode(){const e=this.fields.map((e=>xn(e)));return e.splice(0,0,Cn(this.tag)),En(e)}Equals(e){return this===e||!!hn(this,e)&&this.tag===e.tag&&In(this.fields,e.fields)}CompareTo(e){return this===e?0:hn(this,e)?this.tag===e.tag?Nn(this.fields,e.fields):this.tag<e.tag?-1:1:-1}}class Hn{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+" = "+Rn(n))).join("\n ")+" }";var e}GetHashCode(){return function(e){const n=Object.values(e).map((e=>xn(e)));return En(n)}(this)}Equals(e){return function(e,n){if(e===n)return!0;if(hn(e,n)){const t=Object.keys(e);for(let r=0;r<t.length;r++)if(!Tn(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(hn(e,n)){const t=Object.keys(e);for(let r=0;r<t.length;r++){const o=An(e[t[r]],n[t[r]]);if(0!==o)return o}return 0}return-1}(this,e)}}class Fn{get contents(){return this.getter()}set contents(e){this.setter(e)}constructor(e,n){"function"==typeof n?(this.getter=e,this.setter=n):(this.getter=()=>e,this.setter=n=>{e=n})}}class $n{constructor(e){this.message=e}}function jn(e){return function(e){return e instanceof $n||e instanceof Error}(e)||function(e){return e instanceof Promise}(e)?e:new Error(String(e))}function Bn(e,n){return e.replace(/[a-z]?[A-Z]/g,(e=>1===e.length?e.toLowerCase():e.charAt(0)+n+e.charAt(1).toLowerCase()))}class Ln extends Gn{constructor(e,n){super(),this.tag=e,this.fields=n}cases(){return["backend-url","access-token"]}}class Wn{constructor(e){this.value=e}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return xn(this.value)}Equals(e){return null!=e&&Tn(this.value,e instanceof Wn?e.value:e)}CompareTo(e){return null==e?1:An(this.value,e instanceof Wn?e.value:e)}}function Vn(e){if(null==e)throw new Error("Option has no value");return e instanceof Wn?e.value:e}function qn(e){return null==e||e instanceof Wn?new Wn(e):e}function zn(e){return null==e?[]:[Vn(e)]}function Jn(e,n){return null!=e?Vn(e):n}function Zn(e,n){return null!=n?qn(e(Vn(n))):void 0}const Yn=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Xn=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],Kn=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Qn=["January","February","March","April","May","June","July","August","September","October","November","December"];function et(e,n,t){let r=0,o=n;for(;o<e.length&&e[o]===t;)o++,r++;return r}function nt(e,n){return n>=e.length-1?-1:e.charCodeAt(n+1)}function tt(e,n){let t=n;const r=e[n];let o="",i=!1;for(;n<e.length;){const t=e[++n];if(t===r){i=!0;break}if("\\"===t){if(!(n<e.length))throw new Error("Invalid string format");o+=e[++n]}else o+=t}if(!i)throw new Error(`Invalid string format could not find matching quote for ${r}`);return[o,n-t+1]}function rt(e,n,t){let r=0,o=0,i="";const s=t?ct(e.getTime(),1):e;for(;r<n.length;){const e=n[r];switch(e){case"d":switch(o=et(n,r,"d"),r+=o,o){case 1:i+=dt(s);break;case 2:i+=mn(dt(s),2);break;case 3:i+=Yn[gt(s)];break;case 4:i+=Xn[gt(s)]}break;case"f":if(o=et(n,r,"f"),r+=o,o<=3){const e=10**(3-o);i+=mn(Math.floor(_t(s)/e),o)}else o<=7&&(i+=(""+_t(s)).padEnd(o,"0"));break;case"F":if(o=et(n,r,"F"),r+=o,o<=3){const e=10**(3-o),n=Math.floor(_t(s)/e);0!=n&&(i+=mn(n,o))}else if(o<=7){const e=_t(s);0!=e&&(i+=mn(e,3))}break;case"g":o=et(n,r,"g"),r+=o,o<=2&&(i+="A.D.");break;case"h":switch(o=et(n,r,"h"),r+=o,o){case 1:i+=ht(s)%12;break;case 2:i+=mn(ht(s)%12,2)}break;case"H":switch(o=et(n,r,"H"),r+=o,o){case 1:i+=ht(s);break;case 2:i+=mn(ht(s),2)}break;case"K":if(o=et(n,r,"K"),r+=o,1===o)switch(ot(s)){case 1:i+="Z";break;case 2:i+=it(-6e4*s.getTimezoneOffset())}break;case"m":switch(o=et(n,r,"m"),r+=o,o){case 1:i+=pt(s);break;case 2:i+=mn(pt(s),2)}break;case"M":switch(o=et(n,r,"M"),r+=o,o){case 1:i+=wt(s);break;case 2:i+=mn(wt(s),2);break;case 3:i+=Kn[wt(s)-1];break;case 4:i+=Qn[wt(s)-1]}break;case"s":switch(o=et(n,r,"s"),r+=o,o){case 1:i+=mt(s);break;case 2:i+=mn(mt(s),2)}break;case"t":switch(o=et(n,r,"t"),r+=o,o){case 1:i+=s.getHours()<12?"A":"P";break;case 2:i+=s.getHours()<12?"AM":"PM"}break;case"y":switch(o=et(n,r,"y"),r+=o,o){case 1:i+=s.getFullYear()%100;break;case 2:i+=mn(s.getFullYear()%100,2);break;case 3:i+=mn(s.getFullYear(),3);break;case 4:i+=mn(s.getFullYear(),4);break;case 5:i+=mn(s.getFullYear(),5)}break;case"z":o=et(n,r,"z"),r+=o;let u="";switch(ot(s)){case 1:u="+00:00";break;case 2:u=it(-6e4*s.getTimezoneOffset());break;case 0:u=it(-6e4*ft(s).getTimezoneOffset())}const c="-"===u[0]?"-":"+",l=parseInt(u.substring(1,3),10),a=parseInt(u.substring(4,6),10);switch(o){case 1:i+=`${c}${l}`;break;case 2:i+=`${c}${mn(l,2)}`;break;default:i+=`${c}${mn(l,2)}:${mn(a,2)}`}break;case":":i+=":",r++;break;case"/":i+="/",r++;break;case"'":case'"':const[f,d]=tt(n,r);i+=f,r+=d;break;case"%":const h=nt(n,r);if(!(h>=0&&h!=="%".charCodeAt(0)))throw new Error("Invalid format string");r+=2,i+=rt(s,String.fromCharCode(h),t);break;case"\\":const _=nt(n,r);if(!(_>=0))throw new Error("Invalid format string");r+=2,i+=String.fromCharCode(_);break;default:r++,i+=e}}return i}function ot(e){return e.kind||0}function it(e){const n=e<0,t=(e=Math.abs(e))%36e5/6e4;return(n?"-":"+")+mn(~~(e/36e5),2)+":"+mn(t,2)}function st(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 ut(e,n,t){return null!=e.offset?function(e,n){const t=new Date(e.getTime()+(e.offset??0));if("string"!=typeof n)return t.toISOString().replace(/\.\d+/,"").replace(/[A-Z]|\.\d+/g," ")+it(e.offset??0);if(1!==n.length)return rt(t,n,!0);switch(n){case"D":case"d":return st(t,"first");case"T":case"t":return st(t,"second");case"O":case"o":return function(e,n){const t=e.toISOString();return t.substring(0,t.length-1)+it(n)}(t,e.offset??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 rt(e,n,t);switch(n){case"D":case"d":return t?st(e,"first"):e.toLocaleDateString();case"T":case"t":return t?st(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 mn(e.getFullYear(),4)+"-"+mn(e.getMonth()+1,2)+"-"+mn(e.getDate(),2)+"T"+mn(e.getHours(),2)+":"+mn(e.getMinutes(),2)+":"+mn(e.getSeconds(),2)+"."+mn(e.getMilliseconds(),3)+(n?it(-6e4*e.getTimezoneOffset()):"")}}(e,t);default:throw new Error("Unrecognized Date print format")}}(e,n)}function ct(e,n){const t=new Date(e);return t.kind=0|(null==n?0:n),t}function lt(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(":"),t=parseInt(e[0],10);n=3600*t+60*parseInt(e[1]||"0",10)+parseFloat(e[2]||"0"),null!=o[3]&&"PM"===o[3].toUpperCase()&&t<12&&(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 at(e,n){try{return n.contents=function(e,n=!1){const[t,r]=lt(e),o=null!=r?n&&"Z"===r?1:2:0;return ct(t.getTime(),o)}(e),!0}catch(e){return!1}}function ft(e){return 2===e.kind?e:ct(e.getTime(),2)}function dt(e){return 1===e.kind?e.getUTCDate():e.getDate()}function ht(e){return 1===e.kind?e.getUTCHours():e.getHours()}function _t(e){return 1===e.kind?e.getUTCMilliseconds():e.getMilliseconds()}function pt(e){return 1===e.kind?e.getUTCMinutes():e.getMinutes()}function wt(e){return(1===e.kind?e.getUTCMonth():e.getMonth())+1}function mt(e){return 1===e.kind?e.getUTCSeconds():e.getSeconds()}function gt(e){return 1===e.kind?e.getUTCDay():e.getDay()}const yt=Symbol("numeric");function vt(e){return"number"==typeof e||"bigint"==typeof e||e?.[yt]}function bt(e,n){return"number"==typeof e?e*n:"bigint"==typeof e?e*BigInt(n):e[yt]().multiply(n)}function St(e,n){return"number"==typeof e?e.toFixed(n):"bigint"==typeof e?e:e[yt]().toFixed(n)}function Ct(e,n){return"number"==typeof e?e.toPrecision(n):"bigint"==typeof e?e:e[yt]().toPrecision(n)}function Et(e,n){return"number"==typeof e?e.toExponential(n):"bigint"==typeof e?e:e[yt]().toExponential(n)}function xt(e){return"number"==typeof e?(Number(e)>>>0).toString(16):"bigint"==typeof e?BigInt.asUintN(64,e).toString(16):e[yt]().toHex()}function kt(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function It(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 Tt=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g,Ot=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function Mt(e,n){return function(e,n){return"number"==typeof e||"bigint"==typeof e?e<n?-1:e>n?1:0:e.CompareTo(n)}(e,n)<0}function Nt(e){return{input:e,cont:(n=e,e=>{Tt.lastIndex=0;const t=[],r=[];let o=0,i=Tt.exec(n);for(;i;){const e=i.index+(i[1]||"").length;t.push(n.substring(o,e).replace(/%%/g,"%")),r.push(i),o=Tt.lastIndex,Tt.lastIndex-=1,i=Tt.exec(n)}return 0===t.length?e(n.replace(/%%/g,"%")):(t.push(n.substring(o).replace(/%%/g,"%")),Pt(e,t,r))})};var n}function At(e,n){return"string"==typeof n?e(n):n.cont(e)}function Dt(e){return At((e=>e),e)}function Ut(e,n,t,r,o){let i="";if(n=n||"",o=o||"",vt(e))switch("x"!==o.toLowerCase()&&(Mt(e,0)?(e=bt(e,-1),i="-"):n.indexOf(" ")>=0?i=" ":n.indexOf("+")>=0&&(i="+")),r=null==r?null:parseInt(r,10),o){case"f":case"F":e=St(e,r=null!=r?r:6);break;case"g":case"G":e=null!=r?Ct(e,r):Ct(e);break;case"e":case"E":e=null!=r?Et(e,r):Et(e);break;case"x":e=xt(e);break;case"X":e=xt(e).toUpperCase();break;default:e=String(e)}else e=e instanceof Date?ut(e):Rn(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=Gt(e,t-i.length,s,o)):Gt(i+e,t,s,o)}return e}function Pt(e,n,t,r="",o=-1){return(...i)=>{let s=r;const u=n.slice(),c=t.slice();for(const e of i){const[,,n,t,r,i]=c[0];let l=t;if(o>=0)l=o,o=-1;else if("*"===l){if(e<0)throw new Error("Non-negative number required");o=e;continue}s+=u[0],s+=Ut(e,n,l,r,i),u.splice(0,1),c.splice(0,1)}return 0===c.length?(s+=u[0],e(s)):Pt(e,u,c,s,o)}}function Rt(e,n){return Array.isArray(n)?n.join(e):Array.from(n).join(e)}function Gt(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 Ht(e,n,t){return Gt(e,n,t)}function Ft(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&~r),i=!(2&~r);n=(n=n||[]).filter((e=>e)).map(kt),n=n.length>0?n:["\\s"];const s=[],u=new RegExp(n.join("|"),"g");let c=!0,l=0;do{const n=u.exec(e);if(null===n){const n=i?e.substring(l).trim():e.substring(l);(!o||n.length>0)&&s.push(n),c=!1}else{const r=i?e.substring(l,n.index).trim():e.substring(l,n.index);(!o||r.length>0)&&(null!=t&&s.length+1===t?(s.push(i?e.substring(l).trim():e.substring(l)),c=!1):s.push(r)),l=u.lastIndex}}while(c);return s}function $t(e,...n){return 0===n.length?e.trimEnd():e.replace(new RegExp("["+kt(n.join(""))+"]+$"),"")}function jt(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 Bt=function(e){return null==e?void 0:e}(document.querySelector("#bank-details-app")),Lt=Zn((e=>e.getAttribute("data-identity-url")),Bt),Wt=Zn((e=>e.getAttribute("data-backend-url")),Bt),Vt=$t(`${window.location.protocol}//${window.location.host}${window.location.pathname}`,"/"),qt="Collection was empty.";function zt(e,n){return"function"==typeof e?new e(n):new Array(n)}function Jt(e,n,t,r){const o=0|n;return e.fill(r,o,o+t)}function Zt(e,n,t){const r=0|n.length,o=zt(t,r);for(let t=0;t<=r-1;t++)Qt(o,t,e(Kt(t,n)));return o}function Yt(e,n,t){const r=e;return t.reduce(r,n)}function Xt(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(Kt(r,n),Kt(r,t)),r=r+1|0;return o}}function Kt(e,n){if(e<0||e>=n.length)throw new Error("Index was outside the bounds of the array.\\nParameter name: index");return n[e]}function Qt(e,n,t){if(n<0||n>=e.length)throw new Error("Index was outside the bounds of the array.\\nParameter name: index");e[n]=t}function er(e,n,t){return n.reduceRight(((n,t)=>e(t,n)),t)}class nr extends Hn{constructor(e,n){super(),this.head=e,this.tail=n}toString(){return"["+Rt("; ",this)+"]"}Equals(e){return this===e||((e,n)=>{e:for(;;){const t=e,r=n,o=t.tail,i=r.tail;if(null!=o){if(null!=i){const s=Vn(o),u=Vn(i);if(Tn(t.head,r.head)){e=s,n=u;continue e}return!1}return!1}return null==i}})(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=Vn(s);if(r>18)return 0|o;e=r+1,n=(o<<1)+xn(i.head)+631*r,t=u}}})(0,0,this)}toJSON(){return Array.from(this)}CompareTo(e){return 0|((e,n)=>{e:for(;;){const t=e,r=n,o=t.tail,i=r.tail;if(null!=o){if(null!=i){const s=Vn(o),u=Vn(i),c=0|An(t.head,r.head);if(0===c){e=s,n=u;continue e}return 0|c}return 1}return null!=i?-1:0}})(this,e)}GetEnumerator(){return new tr(this)}[Symbol.iterator](){return wn(pn(this))}"System.Collections.IEnumerable.GetEnumerator"(){return pn(this)}}class tr{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=Vn(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 rr(){return new nr(null,void 0)}function or(e,n){return new nr(e,n)}function ir(e){return null==e.tail}function sr(e){if(null!=e.tail)return e.head;throw new Error(qt+"\\nParameter name: list")}function ur(e){const n=e.tail;if(null!=n)return Vn(n);throw new Error(qt+"\\nParameter name: list")}function cr(){return rr()}function lr(e,n){return or(e,n)}function ar(e){return or(e,rr())}function fr(e){return ir(e)}function dr(e){return sr(e)}function hr(e){return ur(e)}function _r(e){const n=0|function(e){return 0|((e,n)=>{for(;;){const t=e,r=n.tail;if(null==r)return 0|t;e=t+1,n=Vn(r)}})(0,e)}(e),t=Jt(new Array(n),0,n,null);return((e,n)=>{for(;;){const r=e,o=n;if(ir(o))break;Qt(t,r,sr(o)),e=r+1,n=ur(o)}})(0,e),t}function pr(e,n,t){let r=n,o=t;for(;!ir(o);)r=e(r,dr(o)),o=ur(o);return r}function wr(e){return pr(((e,n)=>or(n,e)),rr(),e)}function mr(e,n){pr(((n,t)=>{e(t)}),void 0,n)}function gr(e,n){let t=n;for(let n=e.length-1;n>=0;n--)t=or(Kt(n,e),t);return t}function yr(e){return gr(e,rr())}function vr(e,n){return pr(((e,n)=>or(n,e)),n,wr(e))}function br(e,n){const t=rr(),r=pr(((n,t)=>{const r=new nr(e(t),void 0);return n.tail=r,r}),t,n),o=rr();return r.tail=o,ur(t)}function Sr(e,n){const t=rr(),r=pr(((n,t)=>{if(e(t)){const e=new nr(t,void 0);return n.tail=e,e}return n}),t,n),o=rr();return r.tail=o,ur(t)}const Cr="The input sequence has an insufficient number of elements.";function Er(){throw new Error("Enumeration has not started. Call MoveNext.")}function xr(){throw new Error("Enumeration already finished.")}class kr{constructor(e){this.f=e}toString(){let e=0,n="seq [";const t=pn(this);try{for(;e<4&&t["System.Collections.IEnumerator.MoveNext"]();)e>0&&(n+="; "),n+=Rn(t["System.Collections.Generic.IEnumerator`1.get_Current"]()),e=e+1|0;return 4===e&&(n+="; ..."),n+"]"}finally{dn(t)}}GetEnumerator(){return this.f()}[Symbol.iterator](){return wn(pn(this))}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}class Ir{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 Tr(e,n,t){return new Ir(e,n,t)}function Or(e,n,t){let r,o=!1,i=qn(e());const s=()=>{if(null!=i){const e=Vn(i);try{t(e)}finally{i=void 0}}},u=()=>{try{s()}finally{r=void 0}};return Tr((()=>(o||Er(),null!=r?Vn(r):xr())),(()=>{if(o||(o=!0),null!=i){const e=Vn(i);let t;try{t=n(e)}catch(e){throw u(),e}return null!=t?(r=t,!0):(u(),!1)}return!1}),s)}function Mr(e){return function(e){return new kr(e)}(e)}function Nr(e){return n="source",null==e&&function(e){throw new Error(e)}(n),pn(e);var n}function Ar(e){return Mr((()=>pn(e())))}function Dr(e){return Mr((()=>function(e){let n,t,r,o=!1,i=!1;const s=()=>{if(i=!0,null!=t){const e=Vn(t);try{dn(e)}finally{t=void 0}}if(null!=n){const e=Vn(n);try{dn(e)}finally{n=void 0}}};return Tr((()=>(o?i&&xr():Er(),null!=r?Vn(r):xr())),(()=>{let u;if(o||(o=!0),i)return!1;{let o;for(;null==o;){const i=n;if(null!=i)if(null!=t){const e=Vn(t);if(e["System.Collections.IEnumerator.MoveNext"]())r=qn(e["System.Collections.Generic.IEnumerator`1.get_Current"]()),o=!0;else try{dn(e)}finally{t=void 0}}else{const e=Vn(i);e["System.Collections.IEnumerator.MoveNext"]()?(u=e["System.Collections.Generic.IEnumerator`1.get_Current"](),t=pn(u)):(s(),o=!1)}else n=pn(e)}return Vn(o)}}),(()=>{i||s()}))}(e)))}function Ur(e,n){return Dr([e,n])}function Pr(e,n,t){const r=Nr(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{dn(r)}}function Rr(e,n,t){const r=Nr(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{dn(r)}}function Gr(e,n){Rr(((n,t)=>{e(t)}),void 0,n)}function Hr(e,n){return t=()=>Nr(n),r=n=>n["System.Collections.IEnumerator.MoveNext"]()?qn(e(n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,o=e=>{dn(e)},Mr((()=>Or(t,r,o)));var t,r,o}function Fr(e){return Ar((()=>function(e){return e.slice().reverse()}(function(e){return e instanceof nr?_r(e):Array.from(e)}(e))))}function $r(e,n){return Mr((()=>{const t=Nr(n);try{for(let n=1;n<=e;n++)if(!t["System.Collections.IEnumerator.MoveNext"]())throw new Error(Cr+"\\nParameter name: source");return function(e,n){return Tr((()=>n["System.Collections.Generic.IEnumerator`1.get_Current"]()),(()=>n["System.Collections.IEnumerator.MoveNext"]()),(()=>{try{dn(n)}finally{e()}}))}((()=>{}),t)}catch(e){throw dn(t),e}}))}Symbol.iterator;const jr=an;function Br(e){return{Dispose(){e()}}}function Lr(e,n){return n.startsWith(e)?n:void 0}function Wr(e,n){return n.endsWith(e)?n:void 0}function Vr(e,n){return function(e){return 1===e?e=>{let n,t,r,o,i,s;return n=Lr("/",e),null!=n?(t=n,"#"+t):(r=Lr("#/",e),null!=r?(o=r,o):(i=Lr("#",e),null!=i?(s=i,"#/"+jt(s,1,s.length-1)):"#/"+e))}:e=>{let n,t;return n=Lr("/",e),null!=n?(t=n,t):"/"+e}}(n)(Rt("/",br((e=>e.indexOf("?")>=0||e.startsWith("#")||e.startsWith("/")?e:encodeURIComponent(e)),e)))}function qr(e,n,t){1===n?history.pushState(void 0,"",Vr(e,t)):history.replaceState(void 0,"",Vr(e,t));const r=document.createEvent("CustomEvent");r.initEvent("CUSTOM_NAVIGATION_EVENT",!0,!0),window.dispatchEvent(r)}function zr(e,n){return function(e,n){let t,r;const o=rr();let i=o,s=n;for(;!ir(s);){let n=e(sr(s));for(;!ir(n);)t=i,r=new nr(sr(n),void 0),t.tail=r,i=r,n=ur(n);s=ur(s)}const u=i,c=rr();return u.tail=c,ur(o)}((e=>{if("string"!=typeof(n=e)||/^\s*$/.test(n))return cr();{const n=$t(e,"#");if("?"===n)return cr();if(null!=Lr("?",n))return ar(n);{const e=n.split("?");if(Xt(((e,n)=>e===n),e,null)||1!==e.length){if(Xt(((e,n)=>e===n),e,null)||2!==e.length)return cr();if(""===Kt(1,e)){const n=Kt(0,e);return ar(decodeURIComponent(n))}{const n=Kt(0,e),t=Kt(1,e);return yr([decodeURIComponent(n),"?"+t])}}{const n=Kt(0,e);return ar(decodeURIComponent(n))}}}var n}),yr(Ft(null!=Lr("#",e)?jt(e,1,e.length-1):1!==n||null==Wr("#",e)&&null==Wr("#/",e)?e:"",["/"],void 0,0)))}const Jr=function(e){const n=jr.memo(e,Un(Jn(Zn(Pn,void 0),null)));return Gr((n=>{e.displayName=n}),zn(void 0)),e=>{const t=function(e,n){if(null==e)return n;{const t=e;return n.key=t(n),n}}(undefined,e);return jr.createElement(n,t)}}((e=>{const n=function(e){const n=jr.useRef(e),t=jr.useCallback((e=>n.current(e)),[]);var r;return r=t=>(n.current=e,Br((()=>{}))),se((()=>{const e=r();return()=>{e.Dispose()}})),t}((n=>{const t=Jn(e.onUrlChanged,(e=>{}));!function(e,n){n(zr(2===e?window.location.pathname+window.location.search:window.location.hash,e))}(Jn(e.hashMode,1),t)}));(function(e){const n=jr.useRef(void 0),t=jr.useRef(!1),r=jr.useRef(!1);var o;t.current&&(r.current=!0),o=()=>{return o=t.current?void 0:(t.current=!0,n.current=qn(e()),r.current?n.current:void 0),{Dispose(){Gr((e=>{dn(e)}),zn(o))}};var o},ie((()=>{const e=o();return()=>{e.Dispose()}}),[])})((()=>(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),Br((()=>{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)}))))),function(){const e=jr.useRef(!1);jr.useEffect((()=>{e.current||(e.current=!0,(()=>{const e=document.createEvent("CustomEvent");e.initEvent("CUSTOM_NAVIGATION_EVENT",!0,!0),window.dispatchEvent(e)})())}),[])}();const t=e.application;return null==t?null:t}));function Zr(e,n){sessionStorage.setItem(e,n)}class Yr extends Gn{constructor(e){super(),this.tag=0,this.fields=[e]}cases(){return["Token"]}}class Xr extends Gn{constructor(e){super(),this.tag=0,this.fields=[e]}cases(){return["AuthCode"]}}class Kr extends Gn{constructor(e){super(),this.tag=0,this.fields=[e]}cases(){return["QueryString"]}}class Qr extends Gn{constructor(e,n){super(),this.tag=e,this.fields=n}cases(){return["Home","AuthCodeExchange","OidcSignIn","OidcSignInRedirectCallback","OidcSignInSilentCallback","NotFound"]}}function eo(e){let n,t,r;if(fr(e))n=0;else if("oidc"===dr(e))if(fr(hr(e)))n=3;else switch(dr(hr(e))){case"callback":fr(hr(hr(e)))?n=3:fr(hr(hr(hr(e))))?(n=1,t=dr(hr(hr(e)))):n=3;break;case"silent-refresh":fr(hr(hr(e)))?n=3:fr(hr(hr(hr(e))))?(n=2,r=dr(hr(hr(e)))):n=3;break;default:n=3}else n=3;switch(n){case 0:{const e=window.location.search,n=new URLSearchParams(e),t=n.get("token");if(null==t){const e=n.get("code");if(null==e)return new Qr(0,[]);{const t=e;return Gr((e=>{Zr("success-redirection-url",e)}),zn(n.get("success-redirection-url"))),new Qr(1,[new Xr(t)])}}{const e=t;return Gr((e=>{Zr("success-redirection-url",e)}),zn(n.get("success-redirection-url"))),new Qr(2,[new Yr(e)])}}case 1:return new Qr(3,[new Kr(t)]);case 2:return new Qr(4,[new Kr(r)]);default:return new Qr(5,[])}}class no extends Gn{constructor(e,n){super(),this.tag=e,this.fields=n}cases(){return["HasNotStartedYet","InProgress","Resolved"]}}class to extends Gn{constructor(e,n){super(),this.tag=e,this.fields=n}cases(){return["Started","Finished"]}}class ro{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 fo(this)}GetHashCode(){return io(this)}Equals(e){return so(this,e)}}function oo(e){return null!=e.generics?e.generics:[]}function io(e){return En([Sn(e.fullname),...oo(e).map(io)])}function so(e,n){return""===e.fullname?""===n.fullname&&kn(mo(e),mo(n),(([e,n],[t,r])=>e===t&&so(n,r))):e.fullname===n.fullname&&kn(oo(e),oo(n),so)}const uo=new ro("System.Object"),co=(new ro("Microsoft.FSharp.Core.Unit"),new ro("System.Char"),new ro("System.String")),lo=(new ro("System.Boolean"),new ro("System.SByte"),new ro("System.Byte"),new ro("System.Int16"),new ro("System.UInt16"),new ro("System.Int32"),new ro("System.UInt32"),new ro("System.Int64"),new ro("System.UInt64"),new ro("System.Int128"),new ro("System.UInt128"),new ro("System.IntPtr"),new ro("System.UIntPtr"),new ro("System.Half"),new ro("System.Single"),new ro("System.Double"));function ao(e){if(Array.isArray(e))return e[0];if(e instanceof ro){const n=ho(e);if(null!=n)return ao(n)+"[]";{const n=e.fullname.lastIndexOf(".");return-1===n?e.fullname:e.fullname.substr(n+1)}}return e.name}function fo(e){const n=ho(e);return null!=n?fo(n)+"[]":null==e.generics||0===e.generics.length?e.fullname:e.fullname+"["+e.generics.map((e=>fo(e))).join(",")+"]"}function ho(e){return"[]"===e.fullname&&1===e.generics?.length?e.generics[0]:void 0}function _o(e){return null!=e.enumCases&&e.enumCases.length>0}function po(e){if(_o(e)&&null!=e.enumCases)return e.enumCases.map((e=>e[1]));throw new Error(`${e.fullname} is not an enum type`)}function wo(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 mo(e){if(null!=e.fields)return e.fields();throw new Error(`${e.fullname} is not an F# record type`)}function go(e){return e.fullname.startsWith("System.Tuple")}new ro("System.Decimal"),new ro("System.Numerics.BigInteger");class yo extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,yo.prototype)}}class vo{static get maxTrampolineCallCount(){return 2e3}constructor(){this.callCount=0}incrementAndCheck(){return this.callCount++>vo.maxTrampolineCallCount}hijack(e){this.callCount=0,setTimeout(e,0)}}function bo(e){return n=>{if(n.cancelToken.isCancelled)n.onCancel(new yo);else if(n.trampoline.incrementAndCheck())n.trampoline.hijack((()=>{try{e(n)}catch(e){n.onError(jn(e))}}));else try{e(n)}catch(e){n.onError(jn(e))}}}const So=new class{Bind(e,n){return function(e,n){return bo((t=>{e({onSuccess:e=>{try{n(e)(t)}catch(e){t.onError(jn(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 bo((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 bo((n=>n.onSuccess(e)))}(e)}ReturnFrom(e){return e}TryFinally(e,n){return bo((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 bo((t=>{e({onSuccess:t.onSuccess,onCancel:t.onCancel,cancelToken:t.cancelToken,trampoline:t.trampoline,onError:e=>{try{n(e)(t)}catch(e){t.onError(jn(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 bo((e=>e.onSuccess(void 0)))}};class Co extends Gn{constructor(e,n){super(),this.tag=e,this.fields=n}cases(){return["Choice1Of2","Choice2Of2"]}}function Eo(e){}const xo=new class{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(){}};function ko(e,n){return function(e,n){return function(e,n,t,r,o){"function"!=typeof n&&(o=n,n=void 0);const i=new vo;e({onSuccess:n||Eo,onError:t||Eo,onCancel:r||Eo,cancelToken:o||xo,trampoline:i})}(e,n)}(e,n)}class Io extends Gn{constructor(e,n){super(),this.tag=e,this.fields=n}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class To extends Gn{constructor(e,n){super(),this.tag=0,this.fields=[e,n]}cases(){return["Header"]}}class Oo extends Gn{constructor(e,n){super(),this.tag=e,this.fields=n}cases(){return["Empty","Text","Binary","Form"]}}class Mo extends Hn{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 No extends Gn{constructor(e,n){super(),this.tag=e,this.fields=n}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class Ao extends Hn{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 Do{constructor(e,n){this.k=e,this.v=n}}function Uo(e,n){return new Do(e,n)}function Po(e){return e.k}function Ro(e){return e.v}class Go extends Do{constructor(e,n,t,r,o){super(e,n),this.left=t,this.right=r,this.h=0|o}}function Ho(e,n,t,r,o){return new Go(e,n,t,r,o)}function Fo(e){return e.left}function $o(e){return e.right}function jo(e){return e.h}function Bo(e,n){e:for(;;){const t=e;if(null!=n){const r=Vn(n);if(r instanceof Go){const o=r;e=Bo(t+1,Fo(o)),n=$o(o);continue e}return t+1|0}return 0|t}}function Lo(e){return Bo(0,e)}function Wo(e,n,t,r){let o,i,s,u;if(null!=e){const n=Vn(e);s=n instanceof Go?(o=n,jo(o)):1}else s=0;if(null!=r){const e=Vn(r);u=e instanceof Go?(i=e,jo(i)):1}else u=0;const c=0|(s<u?u:s);return 0===c?Uo(n,t):Ho(n,t,e,r,c+1)}function Vo(e,n,t,r){let o,i,s,u,c,l,a,f,d,h;if(null!=e){const n=Vn(e);d=n instanceof Go?(o=n,jo(o)):1}else d=0;if(null!=r){const e=Vn(r);h=e instanceof Go?(i=e,jo(i)):1}else h=0;if(h>d+2){const o=Vn(r);if(o instanceof Go){const r=o;if(s=Fo(r),(null!=s?(u=Vn(s),u instanceof Go?(c=u,jo(c)):1):0)>d+1){const o=Vn(Fo(r));if(o instanceof Go){const i=o;return Wo(Wo(e,n,t,Fo(i)),Po(i),Ro(i),Wo($o(i),Po(r),Ro(r),$o(r)))}throw new Error("internal error: Map.rebalance")}return Wo(Wo(e,n,t,Fo(r)),Po(r),Ro(r),$o(r))}throw new Error("internal error: Map.rebalance")}if(d>h+2){const o=Vn(e);if(o instanceof Go){const e=o;if(l=$o(e),(null!=l?(a=Vn(l),a instanceof Go?(f=a,jo(f)):1):0)>h+1){const o=Vn($o(e));if(o instanceof Go){const i=o;return Wo(Wo(Fo(e),Po(e),Ro(e),Fo(i)),Po(i),Ro(i),Wo($o(i),n,t,r))}throw new Error("internal error: Map.rebalance")}return Wo(Fo(e),Po(e),Ro(e),Wo($o(e),n,t,r))}throw new Error("internal error: Map.rebalance")}return Wo(e,n,t,r)}function qo(e,n,t,r){if(null!=r){const o=Vn(r),i=0|e.Compare(n,Po(o));if(o instanceof Go){const r=o;return i<0?Vo(qo(e,n,t,Fo(r)),Po(r),Ro(r),$o(r)):0===i?Ho(n,t,Fo(r),$o(r),jo(r)):Vo(Fo(r),Po(r),Ro(r),qo(e,n,t,$o(r)))}return i<0?Ho(n,t,void 0,r,2):0===i?Uo(n,t):Ho(n,t,r,void 0,2)}return Uo(n,t)}function zo(e,n,t){e:for(;;){const r=e,o=n;if(null!=t){const i=Vn(t),s=0|r.Compare(o,Po(i));if(0===s)return qn(Ro(i));if(i instanceof Go){const u=i;e=r,n=o,t=s<0?Fo(u):$o(u);continue e}return}return}}function Jo(e,n){e:for(;;){const t=e;if(null!=n){const r=Vn(n);if(r instanceof Go){const o=r;Jo(t,Fo(o)),t(Po(o),Ro(o)),e=t,n=$o(o);continue e}t(Po(r),Ro(r))}break}}function Zo(e,n){Jo(e,n)}function Yo(e,n){if(null!=n){const t=Vn(n);if(t instanceof Go){const n=t,r=Yo(e,Fo(n)),o=e(Po(n),Ro(n)),i=Yo(e,$o(n));return Ho(Po(n),o,r,i,jo(n))}return Uo(Po(t),e(Po(t),Ro(t)))}}function Xo(e,n){return Yo(e,n)}function Ko(e,n){if(fn(n))return function(e,n){let t;for(let r=0;r<=n.length-1;r++){const o=Kt(r,n);t=qo(e,o[0],o[1],t)}return t}(e,n);if(n instanceof nr)return function(e,n){return pr(((n,t)=>qo(e,t[0],t[1],n)),void 0,n)}(e,n);{const t=pn(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=qo(r,s[0],s[1],o),t=i}}}(e,void 0,t)}finally{dn(t)}}}class Qo extends Hn{constructor(e,n){super(),this.stack=e,this.started=n}}function ei(e){e:for(;;){const n=e;if(fr(n))return cr();{const t=hr(n),r=dr(n);if(null!=r){const o=Vn(r);if(o instanceof Go){const n=o;e=gr([Fo(n),Uo(Po(n),Ro(n)),$o(n)],t);continue e}return n}e=t;continue e}}}function ni(e){return new Qo(ei(ar(e)),!1)}function ti(e){if(e.started){const n=e.stack;if(fr(n))return function(){throw new Error("enumeration already finished")}();if(null!=dr(n)){const e=Vn(dr(n));if(e instanceof Go)throw new Error("Please report error: Map iterator, unexpected stack for current");return[Po(e),Ro(e)]}throw new Error("Please report error: Map iterator, unexpected stack for current")}return function(){throw new Error("enumeration not started")}()}function ri(e){let n=ni(e);return{"System.Collections.Generic.IEnumerator`1.get_Current":()=>ti(n),"System.Collections.IEnumerator.get_Current":()=>ti(n),"System.Collections.IEnumerator.MoveNext":()=>function(e){if(e.started){const n=e.stack;if(fr(n))return!1;if(null!=dr(n)){if(Vn(dr(n))instanceof Go)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=ei(hr(n)),!fr(e.stack)}throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}return e.started=!0,!fr(e.stack)}(n),"System.Collections.IEnumerator.Reset"(){n=ni(e)},Dispose(){}}}class oi{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=pn(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const e=r["System.Collections.Generic.IEnumerator`1.get_Current"]();t=0|n(t,xn(e[0])),t=0|n(t,xn(e[1]))}}finally{dn(r)}return 0|t}(this)}Equals(e){if(!(e instanceof oi))return!1;{const n=e,t=pn(this);try{const e=pn(n);try{const n=()=>{const r=t["System.Collections.IEnumerator.MoveNext"]();if(r===e["System.Collections.IEnumerator.MoveNext"]()){if(r){const r=t["System.Collections.Generic.IEnumerator`1.get_Current"](),o=e["System.Collections.Generic.IEnumerator`1.get_Current"]();return!(!Tn(r[0],o[0])||!Tn(r[1],o[1]))&&n()}return!0}return!1};return n()}finally{dn(e)}}finally{dn(t)}}}toString(){return"map ["+Rt("; ",Hr((e=>function(e,...n){let t;return"object"==typeof e?(t=String(n[0]),n.shift()):t=e,t.replace(Ot,((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(vt(u))switch(i=null==i?null:parseInt(i,10),o){case"f":case"F":u=St(u,i=null!=i?i:2);break;case"g":case"G":u=null!=i?Ct(u,i):Ct(u);break;case"e":case"E":u=null!=i?Et(u,i):Et(u);break;case"p":case"P":i=null!=i?i:2,u=St(bt(u,100),i)+" %";break;case"d":case"D":u=null!=i?Ht(String(u),i,"0"):String(u);break;case"x":case"X":u=null!=i?Ht(xt(u),i,"0"):xt(u),"X"===o&&(u=u.toUpperCase());break;default:if(s){let e="";u=s.replace(/([0#,]+)(\.[0#]+)?/,((n,t,r)=>{Mt(u,0)&&(u=bt(u,-1),e="-"),r=null==r?"":r.substring(1),u=St(u,Math.max(r.length,0));let[o,i]=u.split(".");i||(i=""),o=Ht(o,t.replace(/,/g,"").replace(/^#+/,"").length,"0");const s=r.replace(/#+$/,"").length;if(s>i.length?i=function(e,n){return Gt(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?ut(u,s||o):Rn(u);return r=parseInt((r||" ").substring(1),10),isNaN(r)||(u=Gt(String(u),Math.abs(r)," ",r<0)),u}))}("({0}, {1})",e[0],e[1])),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(){return Array.from(this)}GetEnumerator(){return ri(this.tree)}[Symbol.iterator](){return wn(pn(this))}"System.Collections.IEnumerable.GetEnumerator"(){return ri(this.tree)}CompareTo(e){const n=this;if(e instanceof oi)return 0|function(e,n,t){const r=Nr(n);try{const n=Nr(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{dn(n)}}finally{dn(r)}}(((e,t)=>{const r=0|n.comparer.Compare(e[0],t[0]);return 0|(0!==r?r:An(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 ci(this,e[0])&&Tn(si(this,e[0]),e[1])}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(e,n){!function(e,n,t){let r=t;Zo(((e,t)=>{Qt(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|ui(this)}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return 0|ui(this)}get size(){return 0|ui(this)}clear(){throw new Error("Map cannot be mutated")}delete(e){throw new Error("Map cannot be mutated")}entries(){return Hr((e=>[e[0],e[1]]),this)}get(e){return si(this,e)}has(e){return ci(this,e)}keys(){return Hr((e=>e[0]),this)}set(e,n){throw new Error("Map cannot be mutated")}values(){return Hr((e=>e[1]),this)}forEach(e,n){const t=this;Gr((n=>{e(n[1],n[0],t)}),t)}}function ii(e,n){return new oi(e,n)}function si(e,n){return function(e,n,t){const r=zo(e,n,t);if(null==r)throw new Error;return Vn(r)}(e.comparer,n,e.tree)}function ui(e){return Lo(e.tree)}function ci(e,n){return function(e,n,t){e:for(;;){const r=e,o=n;if(null!=t){const i=Vn(t),s=0|r.Compare(o,Po(i));if(i instanceof Go){const u=i;if(s<0){e=r,n=o,t=Fo(u);continue e}if(0===s)return!0;e=r,n=o,t=$o(u);continue e}return 0===s}return!1}}(e.comparer,n,e.tree)}function li(e){return function(e){return ii(e,void 0)}(e)}const ai=new Mo("",new Io(0,[]),cr(),!1,void 0,void 0,void 0,new Oo(0,[]));function fi(e,n){return"string"!=typeof(t=n)||0===t.length?new Array(0):Ft(n,[e],void 0,0);var t}function di(e){return function(e){return bo((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,c;var l,a;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 No(0,[t.responseText]):new No("arraybuffer"===u?2:"blob"===u?1:3,[t.response]),l=function(e,n,t){const r=[];for(let t=0;t<=n.length-1;t++){const o=e(Kt(t,n));if(null!=o){const e=Vn(o);r.push(e)}}return Tn(t,null)?r:Zt((e=>e),r,t)}((e=>{const n=yr(fi(":",e));return fr(n)?void 0:[dr(n).toLocaleLowerCase(),Rt(":",hr(n)).trim()]}),fi("\r\n",t.getAllResponseHeaders())),c=ii(a={Compare:Mn},Ko(a,l)),new Ao(o,e,i,t.responseURL,c,s)))};const r=pn(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{dn(r)}t.withCredentials=e.withCredentials;const o=e.overridenMimeType;if(null==o);else{const e=o;t.overrideMimeType(e)}const i=e.overridenResponseType;if(null==i);else switch(i.tag){case 1:t.responseType="blob";break;case 2:t.responseType="arraybuffer";break;default:t.responseType="text"}const s=e.timeout;if(null==s);else{const e=0|s;t.timeout=0|e}const u=e.content;switch(u.tag){case 1:case 3:case 2:t.send(qn(u.fields[0]));break;default:t.send()}}))}function hi(e){return new _i(1,[e])}new Ao(0,"","","",li({Compare:Mn}),new No(0,[""]));class _i extends Gn{constructor(e,n){super(),this.tag=e,this.fields=n}cases(){return["Ok","Error"]}}function pi(e,n){return 0===n.tag?(t=e(n.fields[0]),new _i(0,[t])):hi(n.fields[0]);var t}class wi extends Gn{constructor(e,n){super(),this.tag=e,this.fields=n}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class mi extends Gn{constructor(e,n){super(),this.tag=e,this.fields=n}cases(){return["PascalCase","CamelCase","SnakeCase"]}}class gi{constructor(){this.cache=new Map([])}}function yi(){return new gi}function vi(e){return e.slice(void 0,1).toLowerCase()+e.slice(1,e.length)}function bi(e,n){switch(e.tag){case 2:return function(e,n,t,r,o=0){if("string"==typeof e){const t=e;e=function(e,n=0){if(-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)}(n,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=It(e,s),c=It.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)}(vi(n),"[A-Z]","_$0").toLowerCase();case 0:return n;default:return vi(n)}}yi(),yi();const Si=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,Ci=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,Ei=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function xi(e,n){try{return n.contents=function(e){function n(e){return e.replace(Ci,"$1-$2-$3-$4-$5")}const t=e.trim().toLowerCase();if(Si.test(t))return function(e,...n){if(0===n.length)return e.trim();const t="["+kt(n.join(""))+"]+";return e.replace(new RegExp("^"+t),"").replace(new RegExp(t+"$"),"")}(t,"{","}","(",")");if(Ci.test(t))return n(t);if(Ei.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{return!1}}var ki;function Ii(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 Ti(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&ki.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,o);if(null!=i){let e=Number.parseInt(i.sign+i.digits,i.radix);if(!Number.isNaN(e)){const[n,o]=Ii(!0,r);!t&&10!==i.radix&&e>=n&&e<=o&&(e=e<<32-r>>32-r);const[s,u]=Ii(t,r);if(e>=s&&e<=u)return e}}throw new Error(`The input string ${e} was not in a correct format.`)}function Oi(e,n,t,r,o){try{return o.contents=Ti(e,n,t,r),!0}catch{return!1}}function Mi(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 Ni(e,n){try{return n.contents=function(e){const[n,t]=lt(e),r=null==t?-6e4*n.getTimezoneOffset():"Z"===t?0:6e4*t;return Mi(n.getTime(),r)}(e),!0}catch(e){return!1}}function Ai(e=0,n=0,t=0,r=0,o=0){switch(arguments.length){case 1:return Number(BigInt(arguments[0])/10000n);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 Di(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 Ai(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*Ai(t,s,u,o,r)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}(e),!0}catch{return!1}}!function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"}(ki||(ki={}));class Ui{constructor(e){this.k=e}}function Pi(e){return new Ui(e)}function Ri(e){return e.k}class Gi extends Ui{constructor(e,n,t,r){super(e),this.left=n,this.right=t,this.h=0|r}}function Hi(e,n,t,r){return new Gi(e,n,t,r)}function Fi(e){return e.left}function $i(e){return e.right}function ji(e){return e.h}function Bi(e,n){e:for(;;){const t=n;if(null!=e){const r=Vn(e);if(r instanceof Gi){const o=r;e=Fi(o),n=Bi($i(o),t+1);continue e}return t+1|0}return 0|t}}function Li(e){return Bi(e,0)}function Wi(e,n,t){let r,o,i,s;if(null!=e){const n=Vn(e);i=n instanceof Gi?(r=n,ji(r)):1}else i=0;if(null!=t){const e=Vn(t);s=e instanceof Gi?(o=e,ji(o)):1}else s=0;const u=0|(i<s?s:i);return 0===u?Pi(n):Hi(n,e,t,u+1)}function Vi(e,n,t){let r,o,i,s,u,c,l,a,f,d;if(null!=e){const n=Vn(e);f=n instanceof Gi?(r=n,ji(r)):1}else f=0;if(null!=t){const e=Vn(t);d=e instanceof Gi?(o=e,ji(o)):1}else d=0;if(d>f+2){const r=Vn(t);if(r instanceof Gi){const t=r;if(i=Fi(t),(null!=i?(s=Vn(i),s instanceof Gi?(u=s,ji(u)):1):0)>f+1){const r=Vn(Fi(t));if(r instanceof Gi){const o=r;return Wi(Wi(e,n,Fi(o)),Ri(o),Wi($i(o),Ri(t),$i(t)))}throw new Error("internal error: Set.rebalance")}return Wi(Wi(e,n,Fi(t)),Ri(t),$i(t))}throw new Error("internal error: Set.rebalance")}if(f>d+2){const r=Vn(e);if(r instanceof Gi){const e=r;if(c=$i(e),(null!=c?(l=Vn(c),l instanceof Gi?(a=l,ji(a)):1):0)>d+1){const r=Vn($i(e));if(r instanceof Gi){const o=r;return Wi(Wi(Fi(e),Ri(e),Fi(o)),Ri(o),Wi($i(o),n,t))}throw new Error("internal error: Set.rebalance")}return Wi(Fi(e),Ri(e),Wi($i(e),n,t))}throw new Error("internal error: Set.rebalance")}return Wi(e,n,t)}function qi(e,n,t){if(null!=t){const r=Vn(t),o=0|e.Compare(n,Ri(r));if(r instanceof Gi){const i=r;return o<0?Vi(qi(e,n,Fi(i)),Ri(i),$i(i)):0===o?t:Vi(Fi(i),Ri(i),qi(e,n,$i(i)))}{const o=0|e.Compare(n,Ri(r));return o<0?Hi(n,void 0,t,2):0===o?t:Hi(n,t,void 0,2)}}return Pi(n)}function zi(e,n,t){e:for(;;){const r=e,o=n;if(null!=t){const i=Vn(t),s=0|r.Compare(o,Ri(i));if(i instanceof Gi){const u=i;if(s<0){e=r,n=o,t=Fi(u);continue e}if(0===s)return!0;e=r,n=o,t=$i(u);continue e}return 0===s}return!1}}function Ji(e,n){e:for(;;){const t=e;if(null!=n){const r=Vn(n);if(r instanceof Gi){const o=r;Ji(t,Fi(o)),t(Ri(o)),e=t,n=$i(o);continue e}t(Ri(r))}break}}class Zi extends Hn{constructor(e,n){super(),this.stack=e,this.started=n}}function Yi(e){e:for(;;){const n=e;if(fr(n))return cr();{const t=dr(n),r=hr(n);if(null!=t){const o=Vn(t);if(o instanceof Gi){const n=o;e=gr([Fi(n),Pi(Ri(n)),$i(n)],r);continue e}return n}e=r;continue e}}}function Xi(e){return new Zi(Yi(ar(e)),!1)}function Ki(e){if(e.started){const n=e.stack;if(fr(n))return function(){throw new Error("Enumeration already started")}();if(null!=dr(n))return Ri(Vn(dr(n)));throw new Error("Please report error: Set iterator, unexpected stack for current")}return function(){throw new Error("Enumeration not started")}()}function Qi(e){let n=Xi(e);return{"System.Collections.Generic.IEnumerator`1.get_Current":()=>Ki(n),"System.Collections.IEnumerator.get_Current":()=>Ki(n),"System.Collections.IEnumerator.MoveNext":()=>function(e){if(e.started){const n=e.stack;if(fr(n))return!1;if(null!=dr(n)){if(Vn(dr(n))instanceof Gi)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=Yi(hr(n)),!fr(e.stack)}throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}return e.started=!0,!fr(e.stack)}(n),"System.Collections.IEnumerator.Reset"(){n=Xi(e)},Dispose(){}}}function es(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;if(fr(o))return fr(i)?0:-1;if(fr(i))return 1;if(null!=dr(i))if(null!=dr(o)){const s=Vn(dr(o)),u=Vn(dr(i));if(s instanceof Gi){const c=s;if(null==Fi(c)){if(!(u instanceof Gi)){const s=0|r.Compare(Ri(c),Ri(u));if(0!==s)return 0|s;e=r,n=lr($i(c),hr(o)),t=lr(void 0,hr(i));continue e}{const s=u;if(null==Fi(s)){const u=0|r.Compare(Ri(c),Ri(s));if(0!==u)return 0|u;e=r,n=lr($i(c),hr(o)),t=lr($i(s),hr(i));continue e}{let s,u,c,l,a;switch(fr(o)?fr(i)?s=2:null!=dr(i)?(s=1,l=hr(i),a=Vn(dr(i))):s=2:null!=dr(o)?(s=0,u=hr(o),c=Vn(dr(o))):fr(i)?s=2:null!=dr(i)?(s=1,l=hr(i),a=Vn(dr(i))):s=2,s){case 0:if(c instanceof Gi){const o=c;e=r,n=gr([Fi(o),Hi(Ri(o),void 0,$i(o),0)],u),t=i;continue e}e=r,n=gr([void 0,Pi(Ri(c))],u),t=i;continue e;case 1:if(a instanceof Gi){const i=a;e=r,n=o,t=gr([Fi(i),Hi(Ri(i),void 0,$i(i),0)],l);continue e}e=r,n=o,t=gr([void 0,Pi(Ri(a))],l);continue e;default:throw new Error("unexpected state in SetTree.compareStacks")}}}}else{let s,u,c,l,a;switch(fr(o)?fr(i)?s=2:null!=dr(i)?(s=1,l=hr(i),a=Vn(dr(i))):s=2:null!=dr(o)?(s=0,u=hr(o),c=Vn(dr(o))):fr(i)?s=2:null!=dr(i)?(s=1,l=hr(i),a=Vn(dr(i))):s=2,s){case 0:if(c instanceof Gi){const o=c;e=r,n=gr([Fi(o),Hi(Ri(o),void 0,$i(o),0)],u),t=i;continue e}e=r,n=gr([void 0,Pi(Ri(c))],u),t=i;continue e;case 1:if(a instanceof Gi){const i=a;e=r,n=o,t=gr([Fi(i),Hi(Ri(i),void 0,$i(i),0)],l);continue e}e=r,n=o,t=gr([void 0,Pi(Ri(a))],l);continue e;default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{if(!(u instanceof Gi)){const c=0|r.Compare(Ri(s),Ri(u));if(0!==c)return 0|c;e=r,n=hr(o),t=hr(i);continue e}{const c=u;if(null==Fi(c)){const u=0|r.Compare(Ri(s),Ri(c));if(0!==u)return 0|u;e=r,n=lr(void 0,hr(o)),t=lr($i(c),hr(i));continue e}{let s,u,c,l,a;switch(fr(o)?fr(i)?s=2:null!=dr(i)?(s=1,l=hr(i),a=Vn(dr(i))):s=2:null!=dr(o)?(s=0,u=hr(o),c=Vn(dr(o))):fr(i)?s=2:null!=dr(i)?(s=1,l=hr(i),a=Vn(dr(i))):s=2,s){case 0:if(c instanceof Gi){const o=c;e=r,n=gr([Fi(o),Hi(Ri(o),void 0,$i(o),0)],u),t=i;continue e}e=r,n=gr([void 0,Pi(Ri(c))],u),t=i;continue e;case 1:if(a instanceof Gi){const i=a;e=r,n=o,t=gr([Fi(i),Hi(Ri(i),void 0,$i(i),0)],l);continue e}e=r,n=o,t=gr([void 0,Pi(Ri(a))],l);continue e;default:throw new Error("unexpected state in SetTree.compareStacks")}}}}}else{let s,u,c,l,a;switch(Vn(dr(i)),fr(o)?fr(i)?s=2:null!=dr(i)?(s=1,l=hr(i),a=Vn(dr(i))):s=2:null!=dr(o)?(s=0,u=hr(o),c=Vn(dr(o))):fr(i)?s=2:null!=dr(i)?(s=1,l=hr(i),a=Vn(dr(i))):s=2,s){case 0:if(c instanceof Gi){const o=c;e=r,n=gr([Fi(o),Hi(Ri(o),void 0,$i(o),0)],u),t=i;continue e}e=r,n=gr([void 0,Pi(Ri(c))],u),t=i;continue e;case 1:if(a instanceof Gi){const i=a;e=r,n=o,t=gr([Fi(i),Hi(Ri(i),void 0,$i(i),0)],l);continue e}e=r,n=o,t=gr([void 0,Pi(Ri(a))],l);continue e;default:throw new Error("unexpected state in SetTree.compareStacks")}}else{if(null==dr(o)){e=r,n=hr(o),t=hr(i);continue e}{let s,u,c,l,a;switch(Vn(dr(o)),fr(o)?fr(i)?s=2:null!=dr(i)?(s=1,l=hr(i),a=Vn(dr(i))):s=2:null!=dr(o)?(s=0,u=hr(o),c=Vn(dr(o))):fr(i)?s=2:null!=dr(i)?(s=1,l=hr(i),a=Vn(dr(i))):s=2,s){case 0:if(c instanceof Gi){const o=c;e=r,n=gr([Fi(o),Hi(Ri(o),void 0,$i(o),0)],u),t=i;continue e}e=r,n=gr([void 0,Pi(Ri(c))],u),t=i;continue e;case 1:if(a instanceof Gi){const i=a;e=r,n=o,t=gr([Fi(i),Hi(Ri(i),void 0,$i(i),0)],l);continue e}e=r,n=o,t=gr([void 0,Pi(Ri(a))],l);continue e;default:throw new Error("unexpected state in SetTree.compareStacks")}}}break}}(e,ar(n),ar(t))}function ns(e,n,t){let r=t;Ji((e=>{Qt(n,r,e),r=r+1|0}),e)}function ts(e,n){if(fn(n))return function(e,n){return Yt(((n,t)=>qi(e,t,n)),void 0,n)}(e,n);if(n instanceof nr)return function(e,n){return pr(((n,t)=>qi(e,t,n)),void 0,n)}(e,n);{const t=pn(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=qi(r,i["System.Collections.Generic.IEnumerator`1.get_Current"](),o),t=i}}(e,void 0,t)}finally{dn(t)}}}class rs{constructor(e,n){this.comparer=e,this.tree=n}GetHashCode(){return 0|function(e){let n=0;const t=pn(e);try{for(;t["System.Collections.IEnumerator.MoveNext"]();)n=(n<<1)+xn(t["System.Collections.Generic.IEnumerator`1.get_Current"]())+631|0}finally{dn(t)}return 0|Math.abs(n)}(this)}Equals(e){let n;return e instanceof rs&&(n=e,0===es(is(this),ss(this),ss(n)))}toString(){return"set ["+Rt("; ",Hr((e=>Rn(e)),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(){return Array.from(this)}CompareTo(e){return 0|es(is(this),ss(this),ss(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 zi(is(this),e,ss(this))}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(e,n){ns(ss(this),e,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|cs(this)}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return 0|cs(this)}GetEnumerator(){return Qi(ss(this))}[Symbol.iterator](){return wn(pn(this))}"System.Collections.IEnumerable.GetEnumerator"(){return Qi(ss(this))}get size(){return 0|cs(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 ls(this,e)}keys(){return Hr((e=>e),this)}values(){return Hr((e=>e),this)}entries(){return Hr((e=>[e,e]),this)}forEach(e,n){const t=this;Gr((n=>{e(n,n,t)}),t)}}function os(e,n){return new rs(e,n)}function is(e){return e.comparer}function ss(e){return e.tree}function us(e){return os(e,void 0)}function cs(e){return Li(ss(e))}function ls(e,n){return zi(is(e),n,ss(e))}function as(e,n){return ls(n,e)}function fs(e,n){return function(e,n){return os(is(e),qi(is(e),n,ss(e)))}(n,e)}function ds(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 hs(e,n){const t=2===n.tag?ds(n.fields[0],n.fields[1],!0):1===n.tag?ds(n.fields[0],n.fields[1],!1)+"\nReason: "+n.fields[2]:3===n.tag?ds(n.fields[0],n.fields[1],!0):4===n.tag?ds(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"+Rt("\n\n",n.fields[0]):6===n.tag?"The following `failure` occurred with the decoder: "+n.fields[0]:ds(n.fields[0],n.fields[1],!1);return 7===n.tag?t:"Error at: `"+e+"`\n"+t}function _s(e,n,t){const r=n(e,t);if(1===r.tag){const e=r.fields[0];return new _i(1,[hs(e[0],e[1])])}return new _i(0,[r.fields[0]])}function ps(e,n){return"string"==typeof n?new _i(0,[n]):new _i(1,[[e,new wi(0,["a string",n])]])}const ws=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 _i(0,[(e+128&255)-128]):new _i(1,[[t,new wi(1,["a sbyte",e,"Value was either too large or too small for a sbyte"])]]):new _i(1,[[t,new wi(1,["a sbyte",e,"Value is not an integral value"])]])}if("string"==typeof r){let e,n=0;return e=[Oi(r,511,!1,8,new Fn((()=>n),(e=>{n=0|e}))),n],e[0]?new _i(0,[e[1]]):new _i(1,[[t,new wi(0,["a sbyte",r])]])}return new _i(1,[[t,new wi(0,["a sbyte",r])]])},ms=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 _i(0,[255&e]):new _i(1,[[t,new wi(1,["a byte",e,"Value was either too large or too small for a byte"])]]):new _i(1,[[t,new wi(1,["a byte",e,"Value is not an integral value"])]])}if("string"==typeof r){let e,n=0;return e=[Oi(r,511,!0,8,new Fn((()=>n),(e=>{n=e}))),n],e[0]?new _i(0,[e[1]]):new _i(1,[[t,new wi(0,["a byte",r])]])}return new _i(1,[[t,new wi(0,["a byte",r])]])},gs=e=>n=>{const t=e,r=n;if("number"==typeof r){const e=r;return isFinite(e)&&Math.floor(e)===e?-32768<=e&&e<=32767?new _i(0,[(e+32768&65535)-32768]):new _i(1,[[t,new wi(1,["an int16",e,"Value was either too large or too small for an int16"])]]):new _i(1,[[t,new wi(1,["an int16",e,"Value is not an integral value"])]])}if("string"==typeof r){let e,n=0;return e=[Oi(r,511,!1,16,new Fn((()=>n),(e=>{n=0|e}))),n],e[0]?new _i(0,[e[1]]):new _i(1,[[t,new wi(0,["an int16",r])]])}return new _i(1,[[t,new wi(0,["an int16",r])]])},ys=e=>n=>{const t=e,r=n;if("number"==typeof r){const e=r;return isFinite(e)&&Math.floor(e)===e?0<=e&&e<=65535?new _i(0,[65535&e]):new _i(1,[[t,new wi(1,["an uint16",e,"Value was either too large or too small for an uint16"])]]):new _i(1,[[t,new wi(1,["an uint16",e,"Value is not an integral value"])]])}if("string"==typeof r){let e,n=0;return e=[Oi(r,511,!0,16,new Fn((()=>n),(e=>{n=e}))),n],e[0]?new _i(0,[e[1]]):new _i(1,[[t,new wi(0,["an uint16",r])]])}return new _i(1,[[t,new wi(0,["an uint16",r])]])},vs=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 _i(0,[~~e]):new _i(1,[[t,new wi(1,["an int",e,"Value was either too large or too small for an int"])]]):new _i(1,[[t,new wi(1,["an int",e,"Value is not an integral value"])]])}if("string"==typeof r){let e,n=0;return e=[Oi(r,511,!1,32,new Fn((()=>n),(e=>{n=0|e}))),n],e[0]?new _i(0,[e[1]]):new _i(1,[[t,new wi(0,["an int",r])]])}return new _i(1,[[t,new wi(0,["an int",r])]])},bs=e=>n=>{const t=e,r=n;if("number"==typeof r){const e=r;return isFinite(e)&&Math.floor(e)===e?0<=e&&e<=4294967295?new _i(0,[e>>>0]):new _i(1,[[t,new wi(1,["an uint32",e,"Value was either too large or too small for an uint32"])]]):new _i(1,[[t,new wi(1,["an uint32",e,"Value is not an integral value"])]])}if("string"==typeof r){let e,n=0;return e=[Oi(r,511,!0,32,new Fn((()=>n),(e=>{n=e}))),n],e[0]?new _i(0,[e[1]]):new _i(1,[[t,new wi(0,["an uint32",r])]])}return new _i(1,[[t,new wi(0,["an uint32",r])]])};function Ss(e,n,t,r){let o;const i=t+".["+vn(e)+"]";if(Array.isArray(r)){const t=r;return e<t.length?n(i,Kt(e,t)):new _i(1,[[i,new wi(5,["a longer array. Need index `"+vn(e)+"` but there are only `"+(o=t.length,vn(o)+"` entries"),r])]])}return new _i(1,[[i,new wi(0,["an array",r])]])}function Cs(e,n,t){if(Array.isArray(t)){let r=-1;return pi(wr,Yt(((t,o)=>{if(r=r+1|0,0===t.tag){const i=e(n+".["+vn(r)+"]",o);return 0===i.tag?new _i(0,[lr(i.fields[0],t.fields[0])]):new _i(1,[i.fields[0]])}return t}),new _i(0,[cr()]),t))}return new _i(1,[[n,new wi(0,["a list",t])]])}function Es(e,n,t){if(Array.isArray(t)){let r=-1;const o=t;return Yt(((t,o)=>{if(r=r+1|0,0===t.tag){const i=t.fields[0],s=e(n+".["+vn(r)+"]",o);return 0===s.tag?(Qt(i,r,s.fields[0]),new _i(0,[i])):new _i(1,[s.fields[0]])}return t}),new _i(0,[Jt(new Array(o.length),0,o.length,null)]),o)}return new _i(1,[[n,new wi(0,["an array",t])]])}function xs(e,n,t,r){const o=n(t,r);return 0===o.tag?e(o.fields[0],t,r):new _i(1,[o.fields[0]])}function ks(e,n){let t;const r=e;return t=e=>n=>Ss(0,r,e,n),e=>r=>xs(function(e){if(null==e)return null;const n=(n,t,r)=>e(n)(t)(r);return Dn.set(n,e),n}((e=>{let t;const r=n;return t=e=>n=>Ss(1,r,e,n),n=>r=>xs(((n,t,r)=>new _i(0,[[e,n]])),Un(t),n,r)})),Un(t),e,r)}function Is(e){return ii(n={Compare:An},Ko(n,e));var n}function Ts(e,n,t,r){let o;const i=n.length+e|0;if(i!==r.length)return new _i(1,[[t,new wi(6,[(o=0|r.length,Dt(Nt("Expected array of length %i but got %i"))(i)(o))])]]);{let o=new _i(0,[cr()]);for(let i=e;i<=r.length-1;i++)if(0===o.tag){const s=o.fields[0],u=Dt(Nt("%s[%i]"))(t)(i),c=Kt(i-e,n),l=Kt(i,r);o=pi((e=>lr(e,s)),c(u)(l))}return pi(wr,o)}}function Os(e,n,t,r,o,i){const s=function(e,n){return n.find((e=>ao(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=Zt((t=>Ns(e,n,!1,t[1])),function(e){return null==e.fields?[]:e.fields}(t));return pi((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}`);const r=e.declaringType.construct;return null==r?{}:e.declaringType.cases&&1==e.declaringType.cases().length?new r(...n):new r(e.tag,n)}(t,_r(e))),0===r.length&&i.length<=1?new _i(0,[cr()]):Ts(1,r,o,i))}return new _i(1,[[o,new wi(6,["Cannot find case "+r+" in "+fo(t)])]])}function Ms(e,n,t,r){let o;const i=new Fn(null);let s;const u=fo(r);let c;if(s=""===u?e:function(e,n,t){return ii(e.comparer,qo(e.comparer,n,t,e.tree))}(e,u,i),function(e){return e instanceof ro?null!=e.fields:e instanceof Hn}(r)){const e=Zt((e=>[bi(n,ao(e)),Ns(s,n,!1,e[1])]),mo(r));c=n=>t=>pi((e=>function(e,n){const t=mo(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,_r(e))),function(e,n,t){return null===t||Object.getPrototypeOf(t||!1)!==Object.prototype?new _i(1,[[n,new wi(0,["an object",t])]]):er(((e,r)=>{const o=e[0];return 0===r.tag?pi((e=>lr(e,r.fields[0])),e[1](n+"."+o)(t[o])):r}),e,new _i(0,[cr()]))}(e,n,t))}else if(function(e){return e instanceof ro?null!=e.cases:e instanceof Gn}(r))c=e=>t=>{if("string"==typeof t)return Os(s,n,r,t,e,[]);if(Array.isArray(t)){const u=t;return o=t=>Os(s,n,r,t,e,u),0===(i=ps(e+"[0]",Kt(0,u))).tag?o(i.fields[0]):hi(i.fields[0])}return new _i(1,[[e,new wi(0,["a string or array",t])]]);var o,i};else{if(!t)throw new Error((o=fo(r),Dt(Nt("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"))(o)));c=e=>n=>new _i(1,[[e,new wi(2,["an extra coder for "+fo(r),n])]])}return i.contents=c,c}function Ns(e,n,t,r){let o,i,s,u;const c=fo(r),l=function(e,n){return zo(e.comparer,n,e.tree)}(e,c);if(null!=l){const e=l;return n=>t=>e.contents(n)(t)}if(function(e){return null!=ho(e)}(r)){const t=Ns(e,n,!1,ho(r));return e=>n=>Es(Un(t),e,n)}if(_o(r)){const e=fo(function(e){return e.generics?.[0]}(r));switch(e){case"System.SByte":return e=>n=>{const t=r,o=e,i=n,s=ws(o)(i);if(1===s.tag)return new _i(1,[s.fields[0]]);{const e=0|s.fields[0];return Pr(e,po(t),{Equals:(e,n)=>e===n,GetHashCode:Cn})?new _i(0,[wo(t,e.toString())]):new _i(1,[[o,new wi(1,[fo(t),i,"Unkown value provided for the enum"])]])}};case"System.Byte":return e=>n=>{const t=r,o=e,i=n,s=ms(o)(i);if(1===s.tag)return new _i(1,[s.fields[0]]);{const e=s.fields[0];return Pr(e,po(t),{Equals:(e,n)=>e===n,GetHashCode:Cn})?new _i(0,[wo(t,e.toString())]):new _i(1,[[o,new wi(1,[fo(t),i,"Unkown value provided for the enum"])]])}};case"System.Int16":return e=>n=>{const t=r,o=e,i=n,s=gs(o)(i);if(1===s.tag)return new _i(1,[s.fields[0]]);{const e=0|s.fields[0];return Pr(e,po(t),{Equals:(e,n)=>e===n,GetHashCode:Cn})?new _i(0,[wo(t,yn(e))]):new _i(1,[[o,new wi(1,[fo(t),i,"Unkown value provided for the enum"])]])}};case"System.UInt16":return e=>n=>{const t=r,o=e,i=n,s=ys(o)(i);if(1===s.tag)return new _i(1,[s.fields[0]]);{const e=s.fields[0];return Pr(e,po(t),{Equals:(e,n)=>e===n,GetHashCode:Cn})?new _i(0,[wo(t,e.toString())]):new _i(1,[[o,new wi(1,[fo(t),i,"Unkown value provided for the enum"])]])}};case"System.Int32":return e=>n=>{const t=r,o=e,i=n,s=vs(o)(i);if(1===s.tag)return new _i(1,[s.fields[0]]);{const e=0|s.fields[0];return Pr(e,po(t),{Equals:(e,n)=>e===n,GetHashCode:Cn})?new _i(0,[wo(t,vn(e))]):new _i(1,[[o,new wi(1,[fo(t),i,"Unkown value provided for the enum"])]])}};case"System.UInt32":return e=>n=>{const t=r,o=e,i=n,s=bs(o)(i);if(1===s.tag)return new _i(1,[s.fields[0]]);{const e=s.fields[0];return Pr(e,po(t),{Equals:(e,n)=>e===n,GetHashCode:Cn})?new _i(0,[wo(t,e.toString())]):new _i(1,[[o,new wi(1,[fo(t),i,"Unkown value provided for the enum"])]])}};default:{const e=fo(r),n=function(e){return At((e=>{throw new Error(e)}),e)}(Nt("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)}}}else if(function(e){return null!=e.generics&&e.generics.length>0}(r)){if(go(r)){const t=Zt((t=>Ns(e,n,!1,t)),function(e){if(go(e)&&null!=e.generics)return e.generics;throw new Error(`${e.fullname} is not a tuple type`)}(r));return e=>n=>Array.isArray(n)?pi((e=>_r(e)),Ts(0,t,e,n)):new _i(1,[[e,new wi(0,["an array",n])]])}{const c=fo(function(e){return null==e.generics?e:new ro(e.fullname,e.generics.map((()=>uo)))}(r));switch(c){case"Microsoft.FSharp.Core.FSharpOption`1[System.Object]":return o=Ns(e,n,!0,Kt(0,oo(r))),e=>n=>{return t=Un(o),r=e,null==(i=n)?new _i(0,[void 0]):pi(qn,t(r,i));var t,r,i};case"Microsoft.FSharp.Collections.FSharpList`1[System.Object]":return i=Ns(e,n,!1,Kt(0,oo(r))),e=>n=>Cs(Un(i),e,n);case"System.Collections.Generic.IEnumerable`1[System.Object]":return s=Ns(e,n,!1,Kt(0,oo(r))),e=>n=>function(e,n,t){if(Array.isArray(t)){let r=-1;return pi(Fr,Yt(((t,o)=>{if(r=r+1|0,0===t.tag){const i=e(n+".["+vn(r)+"]",o);return 0===i.tag?new _i(0,[Ur([i.fields[0]],t.fields[0])]):new _i(1,[i.fields[0]])}return t}),new _i(0,[[]]),t))}return new _i(1,[[n,new wi(0,["a seq",t])]])}(Un(s),e,n);case"Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]":{const t=Ns(e,n,!1,Kt(0,oo(r))),o=Ns(e,n,!1,Kt(1,oo(r)));let i;const s=yr([e=>n=>function(e,n,t,r){return null===r||Object.getPrototypeOf(r||!1)!==Object.prototype?new _i(1,[[t,new wi(0,["an object",r])]]):Rr(((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 _i(0,[lr([s.fields[0],e.fields[0]],o.fields[0])]):new _i(1,[e.fields[0]])}return new _i(1,[s.fields[0]])}return o}),new _i(0,[cr()]),Object.keys(r))}(Un(t),Un(o),e,n),(u=ks(Un(t),Un(o)),e=>n=>Cs(Un(u),e,n))]);return i=e=>n=>{return t=e,r=n,((e,n)=>{e:for(;;){const o=e,i=n;if(fr(o))return new _i(1,[[t,new wi(7,[i])]]);{const s=_s(t,Un(dr(o)),r);if(1===s.tag){e=hr(o),n=vr(i,ar(s.fields[0]));continue e}return new _i(0,[s.fields[0]])}}})(s,cr());var t,r},e=>n=>function(e,n,t,r){const o=n(t,r);return 1===o.tag?new _i(1,[o.fields[0]]):new _i(0,[e(o.fields[0])])}(Is,Un(i),e,n)}case"Microsoft.FSharp.Collections.FSharpSet`1[System.Object]":{const t=Ns(e,n,!1,Kt(0,oo(r)));return e=>n=>{const r=Es(Un(t),e,n);return 0===r.tag?new _i(0,[(o=r.fields[0],os(i={Compare:An},ts(i,o)))]):new _i(1,[r.fields[0]]);var o,i}}default:return Ms(e,n,t,r)}}}else switch(c){case"System.Boolean":return e=>n=>{return t=e,"boolean"==typeof(r=n)?new _i(0,[r]):new _i(1,[[t,new wi(0,["a boolean",r])]]);var t,r};case"Microsoft.FSharp.Core.Unit":return e=>n=>{return t=e,null==(r=n)?new _i(0,[void 0]):new _i(1,[[t,new wi(0,["null",r])]]);var t,r};case"System.String":return e=>n=>ps(e,n);case"System.Char":return e=>n=>function(e,n){if("string"==typeof n){const t=n;return 1===t.length?new _i(0,[t[0]]):new _i(1,[[e,new wi(0,["a single character string",n])]])}return new _i(1,[[e,new wi(0,["a char",n])]])}(e,n);case"System.SByte":return ws;case"System.Byte":return ms;case"System.Int16":return gs;case"System.UInt16":return ys;case"System.Int32":return vs;case"System.UInt32":return bs;case"System.Double":return e=>n=>{return t=e,"number"==typeof(r=n)?new _i(0,[r]):new _i(1,[[t,new wi(0,["a float",r])]]);var t,r};case"System.Single":return e=>n=>{return t=e,"number"==typeof(r=n)?new _i(0,[r]):new _i(1,[[t,new wi(0,["a float32",r])]]);var t,r};case"System.DateTime":return e=>n=>function(e,n){if("string"==typeof n){let r,o=ct(-621355968e5,1);return r=[at(n,new Fn((()=>o),(e=>{o=e}))),o],r[0]?new _i(0,[(t=r[1],1===t.kind?t:ct(t.getTime(),1))]):new _i(1,[[e,new wi(0,["a datetime",n])]])}var t;return new _i(1,[[e,new wi(0,["a datetime",n])]])}(e,n);case"System.DateTimeOffset":return e=>n=>function(e,n){if("string"==typeof n){let t,r=Mi(-621355968e5,0);return t=[Ni(n,new Fn((()=>r),(e=>{r=e}))),r],t[0]?new _i(0,[t[1]]):new _i(1,[[e,new wi(0,["a datetimeoffset",n])]])}return new _i(1,[[e,new wi(0,["a datetime",n])]])}(e,n);case"System.TimeSpan":return e=>n=>function(e,n){if("string"==typeof n){let t,r=0;return t=[Di(n,new Fn((()=>r),(e=>{r=e}))),r],t[0]?new _i(0,[t[1]]):new _i(1,[[e,new wi(0,["a timespan",n])]])}return new _i(1,[[e,new wi(0,["a timespan",n])]])}(e,n);case"System.Guid":return e=>n=>function(e,n){if("string"==typeof n){let t,r="00000000-0000-0000-0000-000000000000";return t=[xi(n,new Fn((()=>r),(e=>{r=e}))),r],t[0]?new _i(0,[t[1]]):new _i(1,[[e,new wi(0,["a guid",n])]])}return new _i(1,[[e,new wi(0,["a guid",n])]])}(e,n);case"System.Object":return e=>e=>new _i(0,[e]);default:return Ms(e,n,t,r)}}function As(e){return null!=e?(n=(e,n)=>new Fn(n[1]),function(e,n){return ii(e.comparer,Xo(n,e.tree))}(e.Coders,n)):li({Compare:Mn});var n}class Ds extends Hn{constructor(e,n,t,r,o,i){super(),this.id_token=e,this.access_token=n,this.expires_in=t,this.refresh_token=r,this.scope=o,this.token_type=i}}function Us(e){const n=encodeURIComponent(e.fields[0]),t=encodeURIComponent("apollo-bank-details-app"),r=encodeURIComponent(Vt);return So.Delay((()=>{let e,o;const i=di(function(e,n){return new Mo(n.url,n.method,n.headers,n.withCredentials,n.overridenMimeType,n.overridenResponseType,n.timeout,e)}(new Oo(1,[`grant_type=authorization_code&code=${n}&client_id=${t}&redirect_uri=${r}`]),(e=function(e,n){return new Mo(n.url,e,n.headers,n.withCredentials,n.overridenMimeType,n.overridenResponseType,n.timeout,n.content)}(new Io(1,[]),new Mo(`${Lt}/connect/token`,ai.method,ai.headers,ai.withCredentials,ai.overridenMimeType,ai.overridenResponseType,ai.timeout,ai.content)),s=new To("Content-Type","application/x-www-form-urlencoded"),new Mo((u=e).url,u.method,vr(u.headers,ar(s)),u.withCredentials,u.overridenMimeType,u.overridenResponseType,u.timeout,u.content))));var s,u;return o=So.Bind(i,(e=>So.Return(new _i(0,[e])))),So.Bind(o,(e=>{const n=e;if(1===n.tag)return So.Return(new _i(1,[n.fields[0]]));{const e=n.fields[0],r=200===e.statusCode?function(e,n){try{return _s("$",e,JSON.parse(n))}catch(e){if(e instanceof SyntaxError)return new _i(1,["Given an invalid JSON: "+e.message]);throw e}}(Un(function(e){const n=Jn(void 0,new mi(0,[]));return Ns(As(void 0),n,!1,e)}((t=()=>{return[["id_token",co],["access_token",co],["expires_in",lo],["refresh_token",(e=co,new ro("Microsoft.FSharp.Core.FSharpOption`1",[e]))],["scope",co],["token_type",co]];var e},new ro("Auth.AuthService.Credentials",[],Ds,void 0,t)))),e.responseText):new _i(1,["Unexpected result from backend"]);return So.Return(r)}var t}))}))}class Ps extends Hn{constructor(e){super(),this.AccessToken=e}}function Rs(e){return new Ps(e.access_token)}class Gs extends Hn{constructor(e){super(),this.Auth=e}}class Hs extends Gn{constructor(e,n){super(),this.tag=e,this.fields=n}cases(){return["GetUser","SignInRedirect","SignInRedirectCallback","SignInSilentCallback","AuthCodeExchange"]}}class Fs extends Hn{constructor(e,n){super(),this.CurrentPage=e,this.Auth=n}}class $s extends Gn{constructor(e,n){super(),this.tag=e,this.fields=n}cases(){return["UrlChanged","AuthMsg"]}}function js(e){return Rt("/",e)}function Bs(e,n,t){try{dn(t)}catch(t){e(["Error stopping subscription: "+js(n),t])}}function Ls(e,n){mr((n=>{Bs(e,n[0],n[1])}),n)}function Ws(e,n,t,r,o,i){return mr((n=>{!function(e,n){const t=new Error("Duplicate SubId");e(["Duplicate SubId: "+js(n),t])}(e,n)}),t),mr((n=>{Bs(e,n[0],n[1])}),r),vr(o,function(t,r){const o=rr(),i=pr(((t,r)=>{const o=function(e,n,t,r){try{return[t,r(n)]}catch(n){return void e(["Error starting subscription: "+js(t),n])}}(e,n,(i=r)[0],i[1]);var i;if(null==o)return t;{const e=new nr(Vn(o),void 0);return t.tail=e,e}}),o,r),s=rr();return i.tail=s,ur(o)}(0,i))}function Vs(e){return n=(e,n)=>{return t=e[0],r=e[1],o=n[0],i=n[1],s=n[2],as(t,i)?[lr(t,o),i,s]:[o,fs(t,i),lr([t,r],s)];var t,r,o,i,s},t=e,r=[cr(),(o={Compare:An},us(o)),cr()],er(n,_r(t),r);var n,t,r,o}const qs=cr();function zs(e,n){const t=os(r={Compare:An},ts(r,br((e=>e[0]),e)));var r;const o=Vs(n),i=o[1],s=o[0];if(t.Equals(i))return[s,cr(),e,cr()];{const n=function(e,n){const t=rr(),r=rr(),o=t,s=pr(((e,n)=>{let t,r;const o=e[0],s=e[1];return(e=>as(e[0],i))(n)?[(t=new nr(n,void 0),o.tail=t,t),s]:[o,(r=new nr(n,void 0),s.tail=r,r)]}),[o,r],n),u=rr();s[0].tail=u;const c=rr();return s[1].tail=c,[ur(o),ur(r)]}(0,e);return[s,n[1],n[0],Sr((e=>!as(e[0],t)),o[2])]}}class Js{constructor(){this.delegates=[]}_add(e){this.delegates.push(e)}_remove(e){const n=this.delegates.indexOf(e);n>-1&&this.delegates.splice(n,1)}get Publish(){return e=e=>{this._add(e)},n=e=>{this._remove(e)},{AddHandler(n){e(n)},RemoveHandler(e){n(e)},Subscribe(t){const r=(e,n)=>t.OnNext(n);return e(r),{Dispose(){n(r)}}}};var e,n}Trigger(e,n){let t=null;const r=void 0===n?e:(t=e,n);this.delegates.forEach((e=>{e(t,r)}))}}class Zs extends Js{}const Ys=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 Zs}Elapsed(){return this._elapsed.Publish}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 Xs{constructor(e,n,t){this.OnNext=e,this.OnError=n||(e=>{}),this.OnCompleted=t||(()=>{})}}function Ks(e,n,t){mr((t=>{try{t(n)}catch(n){e(n)}}),t)}function Qs(){return cr()}function eu(e,n){return br((n=>t=>{n((n=>{t(e(n))}))}),n)}function nu(e){return ar(e)}function tu(e,n,t,r,o){return ar((i=>{e(So.Delay((()=>{return So.Bind((e=n(t),bo((n=>{e({onSuccess:e=>n.onSuccess(function(e){return new Co(0,[e])}(e)),onError:e=>n.onSuccess(function(e){return new Co(1,[e])}(e)),onCancel:n.onCancel,cancelToken:n.cancelToken,trampoline:n.trampoline})}))),(e=>{const n=e;return i(1===n.tag?o(n.fields[0]):r(n.fields[0])),So.Zero()}));var e})))}))}function ru(e,n,t,r){return ar((o=>{e(n).then((e=>{o(t(e))})).catch((e=>{o(r(e))}))}))}function ou(e,n){return e>n?e:n}function iu(e,n,t,r,o){const i=function(e,n,t,r){const o=0|An(e,t);if(0===o)throw new Error("The step of a range cannot be zero");const i=o>0;return t=>{const o=0|An(t,n);return i&&o<=0||!i&&o>=0?[t,r(t,e)]:void 0}}(n,t,r,o);return Ar((()=>{return n=i,t=e,Mr((()=>function(e,n){let t,r=n;return Tr((()=>{if(null!=t){const e=Vn(t)[0];return Vn(t)[1],e}return Er()}),(()=>{if(t=e(r),null!=t){Vn(t)[0];const e=Vn(t)[1];return r=e,!0}return!1}),(()=>{}))}(n,t)));var n,t}))}class su extends Gn{constructor(e,n){super(),this.tag=e,this.fields=n}cases(){return["Writable","ReadWritable"]}}class uu{constructor(e){this.state=new su(0,[Jt(new Array(ou(e,10)),0,ou(e,10),null),0])}}function cu(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 su(0,[o,t]):new su(1,[o,t,i]),qn(Kt(r,o))}}function lu(e,n){const t=e.state;if(1===t.tag){const i=0|t.fields[1],s=0|t.fields[2],u=t.fields[0];Qt(u,i,n);const c=(i+1)%u.length|0;e.state=new su(1,c===s?[(r=s,o=u,Array.from(Ar((()=>Ur($r(r,o),Ar((()=>{return Ur((e=r,n=o,t=()=>Nr(n),i=(n,t)=>{if(n<e){if(t["System.Collections.IEnumerator.MoveNext"]())return qn(t["System.Collections.Generic.IEnumerator`1.get_Current"]());throw new Error(Cr+"\\nParameter name: source")}},s=e=>{dn(e)},Mr((()=>{let e=-1;return Or(t,(n=>(e=e+1|0,i(e,n))),s)}))),Ar((()=>{return n=e=>function(e){return Ar((()=>function(e){const n=zt(void 0,1);return Qt(n,0,e),n}(e)))}(null),e=o.length,t=iu(0,1,e,0,((e,n)=>e+n)),Ar((()=>Dr(Hr(n,t))));var e,n,t})));var e,n,t,i,s}))))))),u.length,0]:[u,c,s])}else{const r=0|t.fields[1],o=t.fields[0];Qt(o,r,n);const i=(r+1)%o.length|0;e.state=new su(1,[o,i,r])}var r,o}class au extends Hn{constructor(e,n,t,r,o,i,s){super(),this.init=e,this.update=n,this.subscribe=t,this.view=r,this.setState=o,this.onError=i,this.termination=s}}function fu(e){return Pn(e.view)}class du extends Hn{constructor(e,n,t){super(),this.model=e,this.render=n,this.equal=t}}class hu extends b{constructor(e){super(e)}shouldComponentUpdate(e,n){return!this.props.equal(this.props.model,e.model)}render(){return this.props.render()}}const _u=(()=>{try{return Ti("18.3.1".slice(void 0,2),511,!1,32)>=18}catch(e){return!1}})();const pu=(()=>{const e={};return e.store=qn(window.sessionStorage),e})();function wu(){return new UserManager(function(){const e=function(e){return e.endsWith("/")?e:e+"/"}(window.location.origin+window.location.pathname),n={};return n.authority=Lt,n.client_id="apollo-bank-details-ui",n.redirect_uri=e+"#/oidc/callback?",n.response_type="id_token token",n.scope="openid profile",n.automaticSilentRenew=!0,n.silent_redirect_uri=qn(e+"#/oidc/silent-refresh?"),n.post_logout_redirect_uri=e+"#/oidc/logout?",n.accessTokenExpiringNotificationTime=10,n.filterProtocolClaims=!0,n.loadUserInfo=!1,n.clockSkew=2592e3,n.userStore=new WebStorageStateStore(pu),n}())}function mu(e){return e.length>0?jt(e,1):e}function gu(e){return wu().signinRedirect(qn({extraQueryParams:{irt:e.fields[0]}}))}function yu(e){return wu().signinRedirectCallback(mu(e.fields[0]))}function vu(e){return wu().signinSilentCallback(mu(e.fields[0]))}function bu(){return wu().getUser()}function Su(e,n){const t=e=>[new Gs(new no(2,[new _i(1,[e])])),Qs()];switch(e.tag){case 1:return 1===e.fields[0].tag?1===e.fields[0].fields[0].tag?t(Dt(Nt("SignInRedirect failed: %s"))(e.fields[0].fields[0].fields[0])):[n,Qs()]:[new Gs(new no(1,[])),(r=gu,o=e.fields[1],i=n=>new Hs(1,[new to(1,[new _i(1,[n.message])]),e.fields[1]]),ar((e=>{r(o).catch((n=>{e(i(n))}))})))];case 2:return 1===e.fields[0].tag?1===e.fields[0].fields[0].tag?t(Dt(Nt("failed sign in: %s"))(e.fields[0].fields[0].fields[0])):[new Gs(new no(2,[new _i(0,[Rs(e.fields[0].fields[0].fields[0])])])),nu((e=>{qr(ar(""),1,1)}))]:[new Gs(new no(1,[])),ru(yu,e.fields[1],(n=>(window.gtag&&window.gtag("event","oidc_sign_in",{}),new Hs(2,[new to(1,[new _i(0,[n])]),e.fields[1]]))),(n=>new Hs(2,[new to(1,[new _i(1,[n.message])]),e.fields[1]])))];case 3:return 1===e.fields[0].tag?1===e.fields[0].fields[0].tag?t(Dt(Nt("failed silent sign in: %s"))(e.fields[0].fields[0].fields[0])):null==e.fields[0].fields[0].fields[0]?t("silent refresh expected a user but got none"):[new Gs(new no(2,[new _i(0,[Rs(e.fields[0].fields[0].fields[0])])])),Qs()]:[n,ru(vu,e.fields[1],(n=>new Hs(3,[new to(1,[new _i(0,[n])]),e.fields[1]])),(n=>new Hs(3,[new to(1,[new _i(1,[n.message])]),e.fields[1]])))];case 4:return 1===e.fields[0].tag?1===e.fields[0].fields[0].tag?t(`failed sign in: ${e.fields[0].fields[0].fields[0]}`):(window.gtag&&window.gtag("event","oidc_sign_in",{}),window.history.replaceState(null,void 0,Vt),[new Gs(new no(2,[new _i(0,[new Ps(e.fields[0].fields[0].fields[0].access_token)])])),nu((e=>{qr(ar(""),1,1)}))]):[new Gs(new no(1,[])),tu((e=>{!function(e){!function(e,n){let t,r=new Ys(e);r.AutoReset=!1,t=r,function(e,n){n.Subscribe(new Xs(e))}(n,t.Elapsed()),t.Enabled=!0,t.Start()}(1,(n=>{ko(e)}))}(e)}),Us,e.fields[1],(n=>{const t=[new to(1,[n]),e.fields[1]];return new Hs(4,[t[0],t[1]])}),(n=>{const t=[new to(1,[new _i(1,[n.message])]),e.fields[1]];return new Hs(4,[t[0],t[1]])}))];default:return 1===e.fields[0].tag?1===e.fields[0].fields[0].tag?t(Dt(Nt("failed to get current user: %s"))(e.fields[0].fields[0].fields[0])):null==e.fields[0].fields[0].fields[0]?t("expected a user but got none"):[new Gs(new no(2,[new _i(0,[Rs(e.fields[0].fields[0].fields[0])])])),Qs()]:[new Gs(new no(1,[])),ru(bu,void 0,(e=>new Hs(0,[new to(1,[new _i(0,[e])])])),(e=>new Hs(0,[new to(1,[new _i(1,[e.message])])])))]}var r,o,i}var Cu;!function(e){!function(e,n){!function(e,n,t){let r;const o=t.init(n),i=o[0],s=t.subscribe(i),u=t.termination,c=new uu(10);let l=!1,a=i,f=qs,d=!1;const h=Pn(e)((e=>{d||(lu(c,e),l||(l=!0,_(),l=!1))})),_=()=>{let e,n=cu(c);for(;!d&&null!=n;){const r=Vn(n);if(u[0](r))Ls(t.onError,f),u[1](a),d=!0;else{const o=t.update(r,a),i=o[0],s=t.subscribe(i);t.setState(i,h),Ks((e=>{t.onError([Dt(Nt("Error handling the message: %A"))(r),e])}),h,o[1]),a=i,e=zs(f,s),f=Ws(t.onError,h,e[0],e[1],e[2],e[3]),n=cu(c)}}};l=!0,t.setState(i,h),Ks((e=>{t.onError([Dt(Nt("Error intitializing:")),e])}),h,o[1]),r=zs(f,s),f=Ws(t.onError,h,r[0],r[1],r[2],r[3]),_(),l=!1}(Un((e=>e)),void 0,n)}(0,e)}((Cu=function(e,n,t){return new au((function(){const e=eo(zr(window.location.hash,1)),n=function(){const e=eo(zr(window.location.hash,1));return[new Gs(new no(0,[])),3===e.tag?ar((n=>{n(new Hs(2,[new to(0,[]),e.fields[0]]))})):4===e.tag?ar((n=>{n(new Hs(3,[new to(0,[]),e.fields[0]]))})):1===e.tag?ar((n=>{n(new Hs(4,[new to(0,[]),e.fields[0]]))})):0===e.tag?ar((e=>{e(new Hs(0,[new to(0,[])]))})):5===e.tag?Qs():ar((n=>{n(new Hs(1,[new to(0,[]),e.fields[0]]))}))]}();return[new Fs(e,n[0]),eu((e=>new $s(1,[e])),n[1])]}),n,(e=>cr()),t,Un((e=>{const n=Pn(t)(e);return e=>{n(e)}})),(e=>{var n,t;n=e[0],t=e[1],console.error(qn(n),t)}),[e=>!1,e=>{}])}(0,(function(e,n){if(1===e.tag){const t=Su(e.fields[0],n.Auth);return[new Fs(n.CurrentPage,t[0]),eu((e=>new $s(1,[e])),t[1])]}return[new Fs(eo(e.fields[0]),n.Auth),Qs()]}),(function(e,n){let t,r,o;if(0===(null!=Wt&&null!=Lt?(r=0,o=Wt):r=1,r))switch(e.CurrentPage.tag){case 2:case 3:case 4:case 1:t=g("div",{children:"Please wait..."});break;case 5:t=g("h1",{children:"Not found"});break;default:{const n=e.Auth.Auth;let r,s;2===n.tag&&0===n.fields[0].tag?(r=0,s=n.fields[0].fields[0]):r=1,0===r?(i=[],t=g("bank-component",function(e,n=0){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 1:return e.charAt(0).toLowerCase()+e.slice(1);case 2:return Bn(e,"_");case 3:return Bn(e,"_").toUpperCase();case 4:return Bn(e,"-");default:return e}}(e,n),t[e]=r}for(let n of e){let e=0;if(null==n&&o(n),n instanceof Gn){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}([new Ln(0,[o]),new Ln(1,[s.AccessToken])],1),...i)):t=g("h1",{children:"Unauthorised"})}}else t=g("h1",{children:"Invalid attribute configuration"});var i;return Jr({onUrlChanged:e=>{n(new $s(0,[e]))},application:g(v,{},t)})})),function(e,n,t){let r;return function(e,n){return new au(n.init,n.update,n.subscribe,n.view,e,n.onError,n.termination)}(Un(_u?(o=document.getElementById(n),r={render:function(e){Ye(e,o)},unmount:function(){ln(o)}},n=>o=>{r.render(e((e=>n=>e===n),fu(t),n,o))}):r=>o=>{Ye(e((e=>n=>e===n),fu(t),r,o),document.getElementById(n))}),t);var o}(((e,n,t,r)=>function(e,n,t,r){const o=new du(t,(()=>n(t,r)),e);return g(hu,o)}(Un(e),Un(n),t,r)),"bank-details-app",Cu)))})();
|
1
|
+
(()=>{"use strict";var e,t,n,r,o,i,u,s,c,l,a,f,_={},d=[],h=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,p=Array.isArray;function m(e,t){for(var n in t)e[n]=t[n];return e}function g(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function v(t,n,r){var o,i,u,s={};for(u in n)"key"==u?o=n[u]:"ref"==u?i=n[u]:s[u]=n[u];if(arguments.length>2&&(s.children=arguments.length>3?e.call(arguments,2):r),"function"==typeof t&&null!=t.defaultProps)for(u in t.defaultProps)void 0===s[u]&&(s[u]=t.defaultProps[u]);return y(t,s,o,i,null)}function y(e,r,o,i,u){var s={type:e,props:r,key:o,ref:i,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==u?++n:u,__i:-1,__u:0};return null==u&&null!=t.vnode&&t.vnode(s),s}function w(e){return e.children}function b(e,t){this.props=e,this.context=t}function C(e,t){if(null==t)return e.__?C(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?C(e):null}function S(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return S(e)}}function E(e){(!e.__d&&(e.__d=!0)&&r.push(e)&&!k.__r++||o!==t.debounceRendering)&&((o=t.debounceRendering)||i)(k)}function k(){var e,n,o,i,s,c,l,a;for(r.sort(u);e=r.shift();)e.__d&&(n=r.length,i=void 0,c=(s=(o=e).__v).__e,l=[],a=[],o.__P&&((i=m({},s)).__v=s.__v+1,t.vnode&&t.vnode(i),U(o.__P,i,s,o.__n,o.__P.namespaceURI,32&s.__u?[c]:null,l,null==c?C(s):c,!!(32&s.__u),a),i.__v=s.__v,i.__.__k[i.__i]=i,R(l,i,a),i.__e!=c&&S(i)),r.length>n&&r.sort(u));k.__r=0}function x(e,t,n,r,o,i,u,s,c,l,a){var f,h,p,m,g,v,y=r&&r.__k||d,w=t.length;for(c=I(n,t,y,c,w),f=0;f<w;f++)null!=(p=n.__k[f])&&(h=-1===p.__i?_:y[p.__i]||_,p.__i=f,v=U(e,p,h,o,i,u,s,c,l,a),m=p.__e,p.ref&&h.ref!=p.ref&&(h.ref&&H(h.ref,null,p),a.push(p.ref,p.__c||m,p)),null==g&&null!=m&&(g=m),4&p.__u||h.__k===p.__k?c=O(p,c,e):"function"==typeof p.type&&void 0!==v?c=v:m&&(c=m.nextSibling),p.__u&=-7);return n.__e=g,c}function I(e,t,n,r,o){var i,u,s,c,l,a=n.length,f=a,_=0;for(e.__k=new Array(o),i=0;i<o;i++)null!=(u=t[i])&&"boolean"!=typeof u&&"function"!=typeof u?(c=i+_,(u=e.__k[i]="string"==typeof u||"number"==typeof u||"bigint"==typeof u||u.constructor==String?y(null,u,null,null,null):p(u)?y(w,{children:u},null,null,null):void 0===u.constructor&&u.__b>0?y(u.type,u.props,u.key,u.ref?u.ref:null,u.__v):u).__=e,u.__b=e.__b+1,s=null,-1!==(l=u.__i=T(u,n,c,f))&&(f--,(s=n[l])&&(s.__u|=2)),null==s||null===s.__v?(-1==l&&_--,"function"!=typeof u.type&&(u.__u|=4)):l!=c&&(l==c-1?_--:l==c+1?_++:(l>c?_--:_++,u.__u|=4))):e.__k[i]=null;if(f)for(i=0;i<a;i++)null!=(s=n[i])&&!(2&s.__u)&&(s.__e==r&&(r=C(s)),G(s,s));return r}function O(e,t,n){var r,o;if("function"==typeof e.type){for(r=e.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=e,t=O(r[o],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=C(e)),n.insertBefore(e.__e,t||null),t=e.__e);do{t=t&&t.nextSibling}while(null!=t&&8==t.nodeType);return t}function N(e,t){return t=t||[],null==e||"boolean"==typeof e||(p(e)?e.some((function(e){N(e,t)})):t.push(e)),t}function T(e,t,n,r){var o,i,u=e.key,s=e.type,c=t[n];if(null===c||c&&u==c.key&&s===c.type&&!(2&c.__u))return n;if(r>(null==c||2&c.__u?0:1))for(o=n-1,i=n+1;o>=0||i<t.length;){if(o>=0){if((c=t[o])&&!(2&c.__u)&&u==c.key&&s===c.type)return o;o--}if(i<t.length){if((c=t[i])&&!(2&c.__u)&&u==c.key&&s===c.type)return i;i++}}return-1}function A(e,t,n){"-"==t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||h.test(t)?n:n+"px"}function M(e,t,n,r,o){var i;e:if("style"==t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||A(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||A(e.style,t,n[t])}else if("o"==t[0]&&"n"==t[1])i=t!=(t=t.replace(s,"$1")),t=t.toLowerCase()in e||"onFocusOut"==t||"onFocusIn"==t?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r?n.u=r.u:(n.u=c,e.addEventListener(t,i?a:l,i)):e.removeEventListener(t,i?a:l,i);else{if("http://www.w3.org/2000/svg"==o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=t&&"height"!=t&&"href"!=t&&"list"!=t&&"form"!=t&&"tabIndex"!=t&&"download"!=t&&"rowSpan"!=t&&"colSpan"!=t&&"role"!=t&&"popover"!=t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&"-"!=t[4]?e.removeAttribute(t):e.setAttribute(t,"popover"==t&&1==n?"":n))}}function P(e){return function(n){if(this.l){var r=this.l[n.type+e];if(null==n.t)n.t=c++;else if(n.t<r.u)return;return r(t.event?t.event(n):n)}}}function U(e,n,r,o,i,u,s,c,l,a){var f,_,d,h,v,y,C,S,E,k,I,O,N,T,A,M,P,U=n.type;if(void 0!==n.constructor)return null;128&r.__u&&(l=!!(32&r.__u),u=[c=n.__e=r.__e]),(f=t.__b)&&f(n);e:if("function"==typeof U)try{if(S=n.props,E="prototype"in U&&U.prototype.render,k=(f=U.contextType)&&o[f.__c],I=f?k?k.props.value:f.__:o,r.__c?C=(_=n.__c=r.__c).__=_.__E:(E?n.__c=_=new U(S,I):(n.__c=_=new b(S,I),_.constructor=U,_.render=F),k&&k.sub(_),_.props=S,_.state||(_.state={}),_.context=I,_.__n=o,d=_.__d=!0,_.__h=[],_._sb=[]),E&&null==_.__s&&(_.__s=_.state),E&&null!=U.getDerivedStateFromProps&&(_.__s==_.state&&(_.__s=m({},_.__s)),m(_.__s,U.getDerivedStateFromProps(S,_.__s))),h=_.props,v=_.state,_.__v=n,d)E&&null==U.getDerivedStateFromProps&&null!=_.componentWillMount&&_.componentWillMount(),E&&null!=_.componentDidMount&&_.__h.push(_.componentDidMount);else{if(E&&null==U.getDerivedStateFromProps&&S!==h&&null!=_.componentWillReceiveProps&&_.componentWillReceiveProps(S,I),!_.__e&&(null!=_.shouldComponentUpdate&&!1===_.shouldComponentUpdate(S,_.__s,I)||n.__v==r.__v)){for(n.__v!=r.__v&&(_.props=S,_.state=_.__s,_.__d=!1),n.__e=r.__e,n.__k=r.__k,n.__k.some((function(e){e&&(e.__=n)})),O=0;O<_._sb.length;O++)_.__h.push(_._sb[O]);_._sb=[],_.__h.length&&s.push(_);break e}null!=_.componentWillUpdate&&_.componentWillUpdate(S,_.__s,I),E&&null!=_.componentDidUpdate&&_.__h.push((function(){_.componentDidUpdate(h,v,y)}))}if(_.context=I,_.props=S,_.__P=e,_.__e=!1,N=t.__r,T=0,E){for(_.state=_.__s,_.__d=!1,N&&N(n),f=_.render(_.props,_.state,_.context),A=0;A<_._sb.length;A++)_.__h.push(_._sb[A]);_._sb=[]}else do{_.__d=!1,N&&N(n),f=_.render(_.props,_.state,_.context),_.state=_.__s}while(_.__d&&++T<25);_.state=_.__s,null!=_.getChildContext&&(o=m(m({},o),_.getChildContext())),E&&!d&&null!=_.getSnapshotBeforeUpdate&&(y=_.getSnapshotBeforeUpdate(h,v)),c=x(e,p(M=null!=f&&f.type===w&&null==f.key?f.props.children:f)?M:[M],n,r,o,i,u,s,c,l,a),_.base=n.__e,n.__u&=-161,_.__h.length&&s.push(_),C&&(_.__E=_.__=null)}catch(e){if(n.__v=null,l||null!=u)if(e.then){for(n.__u|=l?160:128;c&&8==c.nodeType&&c.nextSibling;)c=c.nextSibling;u[u.indexOf(c)]=null,n.__e=c}else for(P=u.length;P--;)g(u[P]);else n.__e=r.__e,n.__k=r.__k;t.__e(e,n,r)}else null==u&&n.__v==r.__v?(n.__k=r.__k,n.__e=r.__e):c=n.__e=D(r.__e,n,r,o,i,u,s,l,a);return(f=t.diffed)&&f(n),128&n.__u?void 0:c}function R(e,n,r){for(var o=0;o<r.length;o++)H(r[o],r[++o],r[++o]);t.__c&&t.__c(n,e),e.some((function(n){try{e=n.__h,n.__h=[],e.some((function(e){e.call(n)}))}catch(e){t.__e(e,n.__v)}}))}function D(n,r,o,i,u,s,c,l,a){var f,d,h,m,v,y,w,b=o.props,S=r.props,E=r.type;if("svg"==E?u="http://www.w3.org/2000/svg":"math"==E?u="http://www.w3.org/1998/Math/MathML":u||(u="http://www.w3.org/1999/xhtml"),null!=s)for(f=0;f<s.length;f++)if((v=s[f])&&"setAttribute"in v==!!E&&(E?v.localName==E:3==v.nodeType)){n=v,s[f]=null;break}if(null==n){if(null==E)return document.createTextNode(S);n=document.createElementNS(u,E,S.is&&S),l&&(t.__m&&t.__m(r,s),l=!1),s=null}if(null===E)b===S||l&&n.data===S||(n.data=S);else{if(s=s&&e.call(n.childNodes),b=o.props||_,!l&&null!=s)for(b={},f=0;f<n.attributes.length;f++)b[(v=n.attributes[f]).name]=v.value;for(f in b)if(v=b[f],"children"==f);else if("dangerouslySetInnerHTML"==f)h=v;else if(!(f in S)){if("value"==f&&"defaultValue"in S||"checked"==f&&"defaultChecked"in S)continue;M(n,f,null,v,u)}for(f in S)v=S[f],"children"==f?m=v:"dangerouslySetInnerHTML"==f?d=v:"value"==f?y=v:"checked"==f?w=v:l&&"function"!=typeof v||b[f]===v||M(n,f,v,b[f],u);if(d)l||h&&(d.__html===h.__html||d.__html===n.innerHTML)||(n.innerHTML=d.__html),r.__k=[];else if(h&&(n.innerHTML=""),x(n,p(m)?m:[m],r,o,i,"foreignObject"==E?"http://www.w3.org/1999/xhtml":u,s,c,s?s[0]:o.__k&&C(o,0),l,a),null!=s)for(f=s.length;f--;)g(s[f]);l||(f="value","progress"==E&&null==y?n.removeAttribute("value"):void 0!==y&&(y!==n[f]||"progress"==E&&!y||"option"==E&&y!==b[f])&&M(n,f,y,b[f],u),f="checked",void 0!==w&&w!==n[f]&&M(n,f,w,b[f],u))}return n}function H(e,n,r){try{if("function"==typeof e){var o="function"==typeof e.__u;o&&e.__u(),o&&null==n||(e.__u=e(n))}else e.current=n}catch(e){t.__e(e,r)}}function G(e,n,r){var o,i;if(t.unmount&&t.unmount(e),(o=e.ref)&&(o.current&&o.current!==e.__e||H(o,null,n)),null!=(o=e.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(e){t.__e(e,n)}o.base=o.__P=null}if(o=e.__k)for(i=0;i<o.length;i++)o[i]&&G(o[i],n,r||"function"!=typeof e.type);r||g(e.__e),e.__c=e.__=e.__e=void 0}function F(e,t,n){return this.constructor(e,n)}function j(n,r,o){var i,u,s,c;r==document&&(r=document.documentElement),t.__&&t.__(n,r),u=(i="function"==typeof o)?null:o&&o.__k||r.__k,s=[],c=[],U(r,n=(!i&&o||r).__k=v(w,null,[n]),u||_,_,r.namespaceURI,!i&&o?[o]:u?null:r.firstChild?e.call(r.childNodes):null,s,!i&&o?o:u?u.__e:r.firstChild,i,c),R(s,n,c)}function L(e,t){j(e,t,L)}function W(t,n,r){var o,i,u,s,c=m({},t.props);for(u in t.type&&t.type.defaultProps&&(s=t.type.defaultProps),n)"key"==u?o=n[u]:"ref"==u?i=n[u]:c[u]=void 0===n[u]&&void 0!==s?s[u]:n[u];return arguments.length>2&&(c.children=arguments.length>3?e.call(arguments,2):r),y(t.type,c,o||t.key,i||t.ref,null)}e=d.slice,t={__e:function(e,t,n,r){for(var o,i,u;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(e)),u=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,r||{}),u=o.__d),u)return o.__E=o}catch(t){e=t}throw e}},n=0,b.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=m({},this.state),"function"==typeof e&&(e=e(m({},n),this.props)),e&&m(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),E(this))},b.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),E(this))},b.prototype.render=w,r=[],i="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,u=function(e,t){return e.__v.__b-t.__v.__b},k.__r=0,s=/(PointerCapture)$|Capture$/i,c=0,l=P(!1),a=P(!0),f=0;var $,V,z,B,q=0,J=[],Y=t,Z=Y.__b,X=Y.__r,K=Y.diffed,Q=Y.__c,ee=Y.unmount,te=Y.__;function ne(e,t){Y.__h&&Y.__h(V,e,q||t),q=0;var n=V.__H||(V.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function re(e){return q=1,oe(we,e)}function oe(e,t,n){var r=ne($++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):we(void 0,t),function(e){var t=r.__N?r.__N[0]:r.__[0],n=r.t(t,e);t!==n&&(r.__N=[n,r.__[1]],r.__c.setState({}))}],r.__c=V,!V.u)){var o=function(e,t,n){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,t,n);var u=r.__c.props!==e;return o.forEach((function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(u=!0)}})),i&&i.call(this,e,t,n)||u};V.u=!0;var i=V.shouldComponentUpdate,u=V.componentWillUpdate;V.componentWillUpdate=function(e,t,n){if(this.__e){var r=i;i=void 0,o(e,t,n),i=r}u&&u.call(this,e,t,n)},V.shouldComponentUpdate=o}return r.__N||r.__}function ie(e,t){var n=ne($++,3);!Y.__s&&ye(n.__H,t)&&(n.__=e,n.i=t,V.__H.__h.push(n))}function ue(e,t){var n=ne($++,4);!Y.__s&&ye(n.__H,t)&&(n.__=e,n.i=t,V.__h.push(n))}function se(e){return q=5,le((function(){return{current:e}}),[])}function ce(e,t,n){q=6,ue((function(){return"function"==typeof e?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0}),null==n?n:n.concat(e))}function le(e,t){var n=ne($++,7);return ye(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function ae(e,t){return q=8,le((function(){return e}),t)}function fe(e){var t=V.context[e.__c],n=ne($++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(V)),t.props.value):e.__}function _e(e,t){Y.useDebugValue&&Y.useDebugValue(t?t(e):e)}function de(){var e=ne($++,11);if(!e.__){for(var t=V.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function he(){for(var e;e=J.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(ge),e.__H.__h.forEach(ve),e.__H.__h=[]}catch(t){e.__H.__h=[],Y.__e(t,e.__v)}}Y.__b=function(e){V=null,Z&&Z(e)},Y.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),te&&te(e,t)},Y.__r=function(e){X&&X(e),$=0;var t=(V=e.__c).__H;t&&(z===V?(t.__h=[],V.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.i=e.__N=void 0}))):(t.__h.forEach(ge),t.__h.forEach(ve),t.__h=[],$=0)),z=V},Y.diffed=function(e){K&&K(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==J.push(t)&&B===Y.requestAnimationFrame||((B=Y.requestAnimationFrame)||me)(he)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.i=void 0}))),z=V=null},Y.__c=function(e,t){t.some((function(e){try{e.__h.forEach(ge),e.__h=e.__h.filter((function(e){return!e.__||ve(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],Y.__e(n,e.__v)}})),Q&&Q(e,t)},Y.unmount=function(e){ee&&ee(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{ge(e)}catch(e){t=e}})),n.__H=void 0,t&&Y.__e(t,n.__v))};var pe="function"==typeof requestAnimationFrame;function me(e){var t,n=function(){clearTimeout(r),pe&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);pe&&(t=requestAnimationFrame(n))}function ge(e){var t=V,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),V=t}function ve(e){var t=V;e.__c=e.__(),V=t}function ye(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function we(e,t){return"function"==typeof t?t(e):t}function be(e,t){for(var n in t)e[n]=t[n];return e}function Ce(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function Se(e,t){var n=t(),r=re({t:{__:n,u:t}}),o=r[0].t,i=r[1];return ue((function(){o.__=n,o.u=t,Ee(o)&&i({t:o})}),[e,n,t]),ie((function(){return Ee(o)&&i({t:o}),e((function(){Ee(o)&&i({t:o})}))}),[e]),n}function Ee(e){var t,n,r=e.u,o=e.__;try{var i=r();return!((t=o)===(n=i)&&(0!==t||1/t==1/n)||t!=t&&n!=n)}catch(e){return!0}}function ke(e){e()}function xe(e){return e}function Ie(){return[!1,ke]}var Oe=ue;function Ne(e,t){this.props=e,this.context=t}(Ne.prototype=new b).isPureReactComponent=!0,Ne.prototype.shouldComponentUpdate=function(e,t){return Ce(this.props,e)||Ce(this.state,t)};var Te=t.__b;t.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Te&&Te(e)};var Ae="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911,Me=function(e,t){return null==e?null:N(N(e).map(t))},Pe={map:Me,forEach:Me,count:function(e){return e?N(e).length:0},only:function(e){var t=N(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:N},Ue=t.__e;t.__e=function(e,t,n,r){if(e.then)for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t);Ue(e,t,n,r)};var Re=t.unmount;function De(e,t,n){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=be({},e)).__c&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return De(e,t,n)}))),e}function He(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return He(e,t,n)})),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function Ge(){this.__u=0,this.o=null,this.__b=null}function Fe(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function je(){this.i=null,this.l=null}t.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Re&&Re(e)},(Ge.prototype=new b).__c=function(e,t){var n=t.__c,r=this;null==r.o&&(r.o=[]),r.o.push(n);var o=Fe(r.__v),i=!1,u=function(){i||(i=!0,n.__R=null,o?o(s):s())};n.__R=u;var s=function(){if(! --r.__u){if(r.state.__a){var e=r.state.__a;r.__v.__k[0]=He(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.o.pop();)t.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(u,u)},Ge.prototype.componentWillUnmount=function(){this.o=[]},Ge.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=De(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&v(w,null,e.fallback);return o&&(o.__u&=-33),[v(w,null,t.__a?null:e.children),o]};var Le=function(e,t,n){if(++n[1]===n[0]&&e.l.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.l.size))for(n=e.i;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.i=n=n[2]}};function We(e){return this.getChildContext=function(){return e.context},e.children}function $e(e){var t=this,n=e.h;t.componentWillUnmount=function(){j(null,t.v),t.v=null,t.h=null},t.h&&t.h!==n&&t.componentWillUnmount(),t.v||(t.h=n,t.v={nodeType:1,parentNode:n,childNodes:[],contains:function(){return!0},appendChild:function(e){this.childNodes.push(e),t.h.appendChild(e)},insertBefore:function(e,n){this.childNodes.push(e),t.h.insertBefore(e,n)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.h.removeChild(e)}}),j(v(We,{context:t.context},e.__v),t.v)}(je.prototype=new b).__a=function(e){var t=this,n=Fe(t.__v),r=t.l.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),Le(t,e,r)):o()};n?n(i):i()}},je.prototype.render=function(e){this.i=null,this.l=new Map;var t=N(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.l.set(t[n],this.i=[1,0,this.i]);return e.children},je.prototype.componentDidUpdate=je.prototype.componentDidMount=function(){var e=this;this.l.forEach((function(t,n){Le(e,n,t)}))};var Ve="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,ze=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|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]/,Be=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,qe=/[A-Z0-9]/g,Je="undefined"!=typeof document,Ye=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)};function Ze(e,t,n){return null==t.__k&&(t.textContent=""),j(e,t),"function"==typeof n&&n(),e?e.__c:null}b.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(b.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var Xe=t.event;function Ke(){}function Qe(){return this.cancelBubble}function et(){return this.defaultPrevented}t.event=function(e){return Xe&&(e=Xe(e)),e.persist=Ke,e.isPropagationStopped=Qe,e.isDefaultPrevented=et,e.nativeEvent=e};var tt,nt={enumerable:!1,configurable:!0,get:function(){return this.class}},rt=t.vnode;t.vnode=function(e){"string"==typeof e.type&&function(e){var t=e.props,n=e.type,r={},o=-1===n.indexOf("-");for(var i in t){var u=t[i];if(!("value"===i&&"defaultValue"in t&&null==u||Je&&"children"===i&&"noscript"===n||"class"===i||"className"===i)){var s=i.toLowerCase();"defaultValue"===i&&"value"in t&&null==t.value?i="value":"download"===i&&!0===u?u="":"translate"===s&&"no"===u?u=!1:"o"===s[0]&&"n"===s[1]?"ondoubleclick"===s?i="ondblclick":"onchange"!==s||"input"!==n&&"textarea"!==n||Ye(t.type)?"onfocus"===s?i="onfocusin":"onblur"===s?i="onfocusout":Be.test(i)&&(i=s):s=i="oninput":o&&ze.test(i)?i=i.replace(qe,"-$&").toLowerCase():null===u&&(u=void 0),"oninput"===s&&r[i=s]&&(i="oninputCapture"),r[i]=u}}"select"==n&&r.multiple&&Array.isArray(r.value)&&(r.value=N(t.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==n&&null!=r.defaultValue&&(r.value=N(t.children).forEach((function(e){e.props.selected=r.multiple?-1!=r.defaultValue.indexOf(e.props.value):r.defaultValue==e.props.value}))),t.class&&!t.className?(r.class=t.class,Object.defineProperty(r,"className",nt)):(t.className&&!t.class||t.class&&t.className)&&(r.class=r.className=t.className),e.props=r}(e),e.$$typeof=Ve,rt&&rt(e)};var ot=t.__r;t.__r=function(e){ot&&ot(e),tt=e.__c};var it=t.diffed;t.diffed=function(e){it&&it(e);var t=e.props,n=e.__e;null!=n&&"textarea"===e.type&&"value"in t&&t.value!==n.value&&(n.value=null==t.value?"":t.value),tt=null};var ut={ReactCurrentDispatcher:{current:{readContext:function(e){return tt.__n[e.__c].props.value},useCallback:ae,useContext:fe,useDebugValue:_e,useDeferredValue:xe,useEffect:ie,useId:de,useImperativeHandle:ce,useInsertionEffect:Oe,useLayoutEffect:ue,useMemo:le,useReducer:oe,useRef:se,useState:re,useSyncExternalStore:Se,useTransition:Ie}}};function st(e){return!!e&&e.$$typeof===Ve}function ct(e){return!!e.__k&&(j(null,e),!0)}var lt={useState:re,useId:de,useReducer:oe,useEffect:ie,useLayoutEffect:ue,useInsertionEffect:Oe,useTransition:Ie,useDeferredValue:xe,useSyncExternalStore:Se,startTransition:ke,useRef:se,useImperativeHandle:ce,useMemo:le,useCallback:ae,useContext:fe,useDebugValue:_e,version:"18.3.1",Children:Pe,render:Ze,hydrate:function(e,t,n){return L(e,t),"function"==typeof n&&n(),e?e.__c:null},unmountComponentAtNode:ct,createPortal:function(e,t){var n=v($e,{__v:e,h:t});return n.containerInfo=t,n},createElement:v,createContext:function(e,t){var n={__c:t="__cC"+f++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=new Set,(r={})[t]=this,this.getChildContext=function(){return r},this.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.forEach((function(e){e.__e=!0,E(e)}))},this.sub=function(e){n.add(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n&&n.delete(e),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n},createFactory:function(e){return v.bind(null,e)},cloneElement:function(e){return st(e)?W.apply(null,arguments):e},createRef:function(){return{current:null}},Fragment:w,isValidElement:st,isElement:st,isFragment:function(e){return st(e)&&e.type===w},isMemo:function(e){return!!e&&!!e.displayName&&("string"==typeof e.displayName||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")},findDOMNode:function(e){return e&&(e.base||1===e.nodeType&&e)||null},Component:b,PureComponent:Ne,memo:function(e,t){function n(e){var n=this.props.ref,r=n==e.ref;return!r&&n&&(n.call?n(null):n.current=null),t?!t(this.props,e)||!r:Ce(this.props,e)}function r(t){return this.shouldComponentUpdate=n,v(e,t)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r},forwardRef:function(e){function t(t){var n=be({},t);return delete n.ref,e(n,t.ref||null)}return t.$$typeof=Ae,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t},flushSync:function(e,t){return e(t)},unstable_batchedUpdates:function(e,t){return e(t)},StrictMode:w,Suspense:Ge,SuspenseList:je,lazy:function(e){var t,n,r;function o(o){if(t||(t=e()).then((function(e){n=e.default||e}),(function(e){r=e})),r)throw r;if(!n)throw t;return v(n,o)}return o.displayName="Lazy",o.__f=!0,o},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:ut};function at(e){return Array.isArray(e)||ArrayBuffer.isView(e)}function ft(e){(function(e){return null!=e&&"function"==typeof e.Dispose})(e)&&e.Dispose()}function _t(e,t){return Object.getPrototypeOf(e)?.constructor===Object.getPrototypeOf(t)?.constructor}Symbol.iterator;class dt{constructor(e){this.iter=e,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.iter.next();return this.current=e.value,!e.done}"System.Collections.IEnumerator.Reset"(){throw new Error("JS iterators cannot be reset")}Dispose(){}}function ht(e){return function(e){return null!=e&&"function"==typeof e.GetEnumerator}(e)?e.GetEnumerator():new dt(e[Symbol.iterator]())}function pt(e){return{next(){const t=e["System.Collections.IEnumerator.MoveNext"]();return{done:!t,value:t?e["System.Collections.Generic.IEnumerator`1.get_Current"]():void 0}}}}function mt(e,t){return e.toString(10).padStart(t,"0")}function gt(e){const t=e;return"number"==typeof t.offset?t.offset:1===e.kind?0:-6e4*e.getTimezoneOffset()}class vt{static id(e){return vt.idMap.has(e)||vt.idMap.set(e,++vt.count),vt.idMap.get(e)}}function yt(e){let t=0,n=5381;const r=e.length;for(;t<r;)n=33*n^e.charCodeAt(t++);return n}function wt(e){return 2654435761*e|0}function bt(e){let t=0;const n=e.length;for(let r=0;r<n;r++)t=(t<<5)+t^e[r];return t}function Ct(e){if(null==e)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return wt(e);case"bigint":return function(e){return yt(e.toString(32))}(e);case"string":return yt(e);default:if(function(e){return null!=e&&"function"==typeof e.GetHashCode}(e))return e.GetHashCode();if(at(e))return function(e){const t=e.length,n=new Array(t);for(let r=0;r<t;r++)n[r]=Ct(e[r]);return bt(n)}(e);if(e instanceof Date)return function(e){return e.getTime()}(e);if(Object.getPrototypeOf(e)?.constructor===Object){const t=Object.values(e).map((e=>Ct(e)));return bt(t)}return wt(vt.id(e))}}function St(e,t){return function(e,t,n){if(null==e)return null==t;if(null==t)return!1;if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!n(e[r],t[r]))return!1;return!0}(e,t,Et)}function Et(e,t){return e===t||(null==e?null==t:null!=t&&(function(e){return null!=e&&"function"==typeof e.Equals}(e)?e.Equals(t):at(e)?at(t)&&St(e,t):"object"==typeof e&&(e instanceof Date?t instanceof Date&&0===kt(e,t):Object.getPrototypeOf(e)?.constructor===Object&&function(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;n.sort(),r.sort();for(let o=0;o<n.length;o++)if(n[o]!==r[o]||!Et(e[n[o]],t[r[o]]))return!1;return!0}(e,t))))}function kt(e,t){let n,r;return"offset"in e&&"offset"in t?(n=e.getTime(),r=t.getTime()):(n=e.getTime()+gt(e),r=t.getTime()+gt(t)),n===r?0:n<r?-1:1}function xt(e,t){return function(e,t,n){if(null==e)return null==t?0:1;if(null==t)return-1;if(e.length!==t.length)return e.length<t.length?-1:1;for(let r=0,o=0;r<e.length;r++)if(o=n(e[r],t[r]),0!==o)return o;return 0}(e,t,It)}function It(e,t){return e===t?0:null==e?null==t?0:-1:null==t?1:function(e){return null!=e&&"function"==typeof e.CompareTo}(e)?e.CompareTo(t):at(e)?at(t)?xt(e,t):-1:"object"!=typeof e?e<t?-1:1:e instanceof Date?t instanceof Date?kt(e,t):-1:Object.getPrototypeOf(e)?.constructor===Object?function(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return n.length<r.length?-1:1;n.sort(),r.sort();for(let o=0,i=0;o<n.length;o++){const u=n[o];if(u!==r[o])return u<r[o]?-1:1;if(i=It(e[u],t[u]),0!==i)return i}return 0}(e,t):-1}vt.idMap=new WeakMap,vt.count=0;const Ot=new WeakMap;function Nt(e){if(null==e)return null;const t=(t,n)=>e(t)(n);return Ot.set(t,e),t}function Tt(e){return Ot.get(e)??(t=>n=>e(t,n))}function At(e,t=0){if(null!=e&&"object"==typeof e){if("function"==typeof e.toString)return e.toString();if(Symbol.iterator in e)return function(e){let t=0,n="[";for(const r of e){if(0===t)n+=At(r);else{if(100===t){n+="; ...";break}n+="; "+At(r)}t++}return n+"]"}(e);{const n=Object.getPrototypeOf(e)?.constructor;return n===Object&&t<10?"{ "+Object.entries(e).map((([e,n])=>e+" = "+At(n,t+1))).join("\n ")+" }":n?.name??""}}return String(e)}class Mt{get name(){return this.cases()[this.tag]}toJSON(){return 0===this.fields.length?this.name:[this.name].concat(this.fields)}toString(){return function(e,t){if(0===t.length)return e;{let n,r=!0;return 1===t.length?(n=At(t[0]),r=n.indexOf(" ")>=0):n=t.map((e=>At(e))).join(", "),e+(r?" (":" ")+n+(r?")":"")}}(this.name,this.fields)}GetHashCode(){const e=this.fields.map((e=>Ct(e)));return e.splice(0,0,wt(this.tag)),bt(e)}Equals(e){return this===e||!!_t(this,e)&&this.tag===e.tag&&St(this.fields,e.fields)}CompareTo(e){return this===e?0:_t(this,e)?this.tag===e.tag?xt(this.fields,e.fields):this.tag<e.tag?-1:1:-1}}class Pt{toJSON(){return function(e){const t={},n=Object.keys(e);for(let r=0;r<n.length;r++)t[n[r]]=e[n[r]];return t}(this)}toString(){return e=this,"{ "+Object.entries(e).map((([e,t])=>e+" = "+At(t))).join("\n ")+" }";var e}GetHashCode(){return function(e){const t=Object.values(e).map((e=>Ct(e)));return bt(t)}(this)}Equals(e){return function(e,t){if(e===t)return!0;if(_t(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++)if(!Et(e[n[r]],t[n[r]]))return!1;return!0}return!1}(this,e)}CompareTo(e){return function(e,t){if(e===t)return 0;if(_t(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++){const o=It(e[n[r]],t[n[r]]);if(0!==o)return o}return 0}return-1}(this,e)}}function Ut(e,t){return e.replace(/[a-z]?[A-Z]/g,(e=>1===e.length?e.toLowerCase():e.charAt(0)+t+e.charAt(1).toLowerCase()))}class Rt extends Mt{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["backend-url","access-token"]}}class Dt{constructor(e){this.value=e}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return Ct(this.value)}Equals(e){return null!=e&&Et(this.value,e instanceof Dt?e.value:e)}CompareTo(e){return null==e?1:It(this.value,e instanceof Dt?e.value:e)}}function Ht(e){if(null==e)throw new Error("Option has no value");return e instanceof Dt?e.value:e}function Gt(e){return null==e||e instanceof Dt?new Dt(e):e}function Ft(e){return null==e?[]:[Ht(e)]}function jt(e,t){return null!=e?Ht(e):t}function Lt(e,t){return null!=t?Gt(e(Ht(t))):void 0}const Wt=function(e){return null==e?void 0:e}(document.querySelector("#bank-details-app")),$t=Lt((e=>e.getAttribute("data-identity-url")),Wt),Vt=Lt((e=>e.getAttribute("data-backend-url")),Wt),zt=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Bt=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],qt=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Jt=["January","February","March","April","May","June","July","August","September","October","November","December"];function Yt(e,t,n){let r=0,o=t;for(;o<e.length&&e[o]===n;)o++,r++;return r}function Zt(e,t){return t>=e.length-1?-1:e.charCodeAt(t+1)}function Xt(e,t){let n=t;const r=e[t];let o="",i=!1;for(;t<e.length;){const n=e[++t];if(n===r){i=!0;break}if("\\"===n){if(!(t<e.length))throw new Error("Invalid string format");o+=e[++t]}else o+=n}if(!i)throw new Error(`Invalid string format could not find matching quote for ${r}`);return[o,t-n+1]}function Kt(e,t,n){let r=0,o=0,i="";const u=n?nn(e.getTime(),1):e;for(;r<t.length;){const e=t[r];switch(e){case"d":switch(o=Yt(t,r,"d"),r+=o,o){case 1:i+=on(u);break;case 2:i+=mt(on(u),2);break;case 3:i+=zt[fn(u)];break;case 4:i+=Bt[fn(u)]}break;case"f":if(o=Yt(t,r,"f"),r+=o,o<=3){const e=10**(3-o);i+=mt(Math.floor(sn(u)/e),o)}else o<=7&&(i+=(""+sn(u)).padEnd(o,"0"));break;case"F":if(o=Yt(t,r,"F"),r+=o,o<=3){const e=10**(3-o),t=Math.floor(sn(u)/e);0!=t&&(i+=mt(t,o))}else if(o<=7){const e=sn(u);0!=e&&(i+=mt(e,3))}break;case"g":o=Yt(t,r,"g"),r+=o,o<=2&&(i+="A.D.");break;case"h":switch(o=Yt(t,r,"h"),r+=o,o){case 1:i+=un(u)%12;break;case 2:i+=mt(un(u)%12,2)}break;case"H":switch(o=Yt(t,r,"H"),r+=o,o){case 1:i+=un(u);break;case 2:i+=mt(un(u),2)}break;case"K":if(o=Yt(t,r,"K"),r+=o,1===o)switch(Qt(u)){case 1:i+="Z";break;case 2:i+=en(-6e4*u.getTimezoneOffset())}break;case"m":switch(o=Yt(t,r,"m"),r+=o,o){case 1:i+=cn(u);break;case 2:i+=mt(cn(u),2)}break;case"M":switch(o=Yt(t,r,"M"),r+=o,o){case 1:i+=ln(u);break;case 2:i+=mt(ln(u),2);break;case 3:i+=qt[ln(u)-1];break;case 4:i+=Jt[ln(u)-1]}break;case"s":switch(o=Yt(t,r,"s"),r+=o,o){case 1:i+=an(u);break;case 2:i+=mt(an(u),2)}break;case"t":switch(o=Yt(t,r,"t"),r+=o,o){case 1:i+=u.getHours()<12?"A":"P";break;case 2:i+=u.getHours()<12?"AM":"PM"}break;case"y":switch(o=Yt(t,r,"y"),r+=o,o){case 1:i+=u.getFullYear()%100;break;case 2:i+=mt(u.getFullYear()%100,2);break;case 3:i+=mt(u.getFullYear(),3);break;case 4:i+=mt(u.getFullYear(),4);break;case 5:i+=mt(u.getFullYear(),5)}break;case"z":o=Yt(t,r,"z"),r+=o;let s="";switch(Qt(u)){case 1:s="+00:00";break;case 2:s=en(-6e4*u.getTimezoneOffset());break;case 0:s=en(-6e4*rn(u).getTimezoneOffset())}const c="-"===s[0]?"-":"+",l=parseInt(s.substring(1,3),10),a=parseInt(s.substring(4,6),10);switch(o){case 1:i+=`${c}${l}`;break;case 2:i+=`${c}${mt(l,2)}`;break;default:i+=`${c}${mt(l,2)}:${mt(a,2)}`}break;case":":i+=":",r++;break;case"/":i+="/",r++;break;case"'":case'"':const[f,_]=Xt(t,r);i+=f,r+=_;break;case"%":const d=Zt(t,r);if(!(d>=0&&d!=="%".charCodeAt(0)))throw new Error("Invalid format string");r+=2,i+=Kt(u,String.fromCharCode(d),n);break;case"\\":const h=Zt(t,r);if(!(h>=0))throw new Error("Invalid format string");r+=2,i+=String.fromCharCode(h);break;default:r++,i+=e}}return i}function Qt(e){return e.kind||0}function en(e){const t=e<0,n=(e=Math.abs(e))%36e5/6e4;return(t?"-":"+")+mt(~~(e/36e5),2)+":"+mt(n,2)}function tn(e,t){const n=e.toISOString();return"first"===t?n.substring(0,n.indexOf("T")):n.substring(n.indexOf("T")+1,n.length-1)}function nn(e,t){const n=new Date(e);return n.kind=0|(null==t?0:t),n}function rn(e){return 2===e.kind?e:nn(e.getTime(),2)}function on(e){return 1===e.kind?e.getUTCDate():e.getDate()}function un(e){return 1===e.kind?e.getUTCHours():e.getHours()}function sn(e){return 1===e.kind?e.getUTCMilliseconds():e.getMilliseconds()}function cn(e){return 1===e.kind?e.getUTCMinutes():e.getMinutes()}function ln(e){return(1===e.kind?e.getUTCMonth():e.getMonth())+1}function an(e){return 1===e.kind?e.getUTCSeconds():e.getSeconds()}function fn(e){return 1===e.kind?e.getUTCDay():e.getDay()}const _n=Symbol("numeric");function dn(e,t){return"number"==typeof e?e.toPrecision(t):"bigint"==typeof e?e:e[_n]().toPrecision(t)}function hn(e,t){return"number"==typeof e?e.toExponential(t):"bigint"==typeof e?e:e[_n]().toExponential(t)}function pn(e){return"number"==typeof e?(Number(e)>>>0).toString(16):"bigint"==typeof e?BigInt.asUintN(64,e).toString(16):e[_n]().toHex()}function mn(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}const gn=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g;function vn(e){return{input:e,cont:(t=e,e=>{gn.lastIndex=0;const n=[],r=[];let o=0,i=gn.exec(t);for(;i;){const e=i.index+(i[1]||"").length;n.push(t.substring(o,e).replace(/%%/g,"%")),r.push(i),o=gn.lastIndex,gn.lastIndex-=1,i=gn.exec(t)}return 0===n.length?e(t.replace(/%%/g,"%")):(n.push(t.substring(o).replace(/%%/g,"%")),bn(e,n,r))})};var t}function yn(e){return function(e,t){return"string"==typeof t?e(t):t.cont(e)}((e=>e),e)}function wn(e,t,n,r,o){let i="";if(t=t||"",o=o||"",function(e){return"number"==typeof e||"bigint"==typeof e||e?.[_n]}(e))switch("x"!==o.toLowerCase()&&(function(e,t){return function(e,t){return"number"==typeof e||"bigint"==typeof e?e<t?-1:e>t?1:0:e.CompareTo(t)}(e,t)<0}(e,0)?(e=function(e){return"number"==typeof e?-1*e:"bigint"==typeof e?e*BigInt(-1):e[_n]().multiply(-1)}(e),i="-"):t.indexOf(" ")>=0?i=" ":t.indexOf("+")>=0&&(i="+")),r=null==r?null:parseInt(r,10),o){case"f":case"F":e=function(e,t){return"number"==typeof e?e.toFixed(t):"bigint"==typeof e?e:e[_n]().toFixed(t)}(e,r=null!=r?r:6);break;case"g":case"G":e=null!=r?dn(e,r):dn(e);break;case"e":case"E":e=null!=r?hn(e,r):hn(e);break;case"x":e=pn(e);break;case"X":e=pn(e).toUpperCase();break;default:e=String(e)}else e=e instanceof Date?function(e,t){return null!=e.offset?function(e,t){const n=new Date(e.getTime()+(e.offset??0));if("string"!=typeof t)return n.toISOString().replace(/\.\d+/,"").replace(/[A-Z]|\.\d+/g," ")+en(e.offset??0);if(1!==t.length)return Kt(n,t,!0);switch(t){case"D":case"d":return tn(n,"first");case"T":case"t":return tn(n,"second");case"O":case"o":return function(e,t){const n=e.toISOString();return n.substring(0,n.length-1)+en(t)}(n,e.offset??0);default:throw new Error("Unrecognized Date print format")}}(e,t):function(e,t){const n=1===e.kind;if("string"!=typeof t)return n?e.toUTCString():e.toLocaleString();if(1!==t.length)return Kt(e,t,n);switch(t){case"D":case"d":return n?tn(e,"first"):e.toLocaleDateString();case"T":case"t":return n?tn(e,"second"):e.toLocaleTimeString();case"O":case"o":return function(e,t){if(t)return e.toISOString();{const t=null==e.kind||2===e.kind;return mt(e.getFullYear(),4)+"-"+mt(e.getMonth()+1,2)+"-"+mt(e.getDate(),2)+"T"+mt(e.getHours(),2)+":"+mt(e.getMinutes(),2)+":"+mt(e.getSeconds(),2)+"."+mt(e.getMilliseconds(),3)+(t?en(-6e4*e.getTimezoneOffset()):"")}}(e,n);default:throw new Error("Unrecognized Date print format")}}(e,t)}(e):At(e);if(n="number"==typeof n?n:parseInt(n,10),isNaN(n))e=i+e;else{const r=t.indexOf("0")>=0,o=t.indexOf("-")>=0,u=o||!r?" ":"0";e="0"===u?i+(e=Sn(e,n-i.length,u,o)):Sn(i+e,n,u,o)}return e}function bn(e,t,n,r="",o=-1){return(...i)=>{let u=r;const s=t.slice(),c=n.slice();for(const e of i){const[,,t,n,r,i]=c[0];let l=n;if(o>=0)l=o,o=-1;else if("*"===l){if(e<0)throw new Error("Non-negative number required");o=e;continue}u+=s[0],u+=wn(e,t,l,r,i),s.splice(0,1),c.splice(0,1)}return 0===c.length?(u+=s[0],e(u)):bn(e,s,c,u,o)}}function Cn(e,t){return Array.isArray(t)?t.join(e):Array.from(t).join(e)}function Sn(e,t,n,r){n=n||" ",t-=e.length;for(let o=0;o<t;o++)e=r?e+n:n+e;return e}function En(e,t,n){if(t+(n||0)>e.length)throw new Error("Invalid startIndex and/or length");return null!=n?e.substr(t,n):e.substr(t)}const kn="Collection was empty.";function xn(e,t,n,r){const o=0|t;return e.fill(r,o,o+n)}function In(e,t,n){if(null==t)return null==n;if(null==n)return!1;{let r=0,o=!0;const i=0|t.length,u=0|n.length;if(i>u)return!1;if(i<u)return!1;for(;r<i&&o;)o=e(On(r,t),On(r,n)),r=r+1|0;return o}}function On(e,t){if(e<0||e>=t.length)throw new Error("Index was outside the bounds of the array.\\nParameter name: index");return t[e]}function Nn(e,t,n){if(t<0||t>=e.length)throw new Error("Index was outside the bounds of the array.\\nParameter name: index");e[t]=n}class Tn extends Pt{constructor(e,t){super(),this.head=e,this.tail=t}toString(){return"["+Cn("; ",this)+"]"}Equals(e){return this===e||((e,t)=>{e:for(;;){const n=e,r=t,o=n.tail,i=r.tail;if(null!=o){if(null!=i){const u=Ht(o),s=Ht(i);if(Et(n.head,r.head)){e=u,t=s;continue e}return!1}return!1}return null==i}})(this,e)}GetHashCode(){return 0|((e,t,n)=>{for(;;){const r=e,o=t,i=n,u=i.tail;if(null==u)return 0|o;{const s=Ht(u);if(r>18)return 0|o;e=r+1,t=(o<<1)+Ct(i.head)+631*r,n=s}}})(0,0,this)}toJSON(){return Array.from(this)}CompareTo(e){return 0|((e,t)=>{e:for(;;){const n=e,r=t,o=n.tail,i=r.tail;if(null!=o){if(null!=i){const u=Ht(o),s=Ht(i),c=0|It(n.head,r.head);if(0===c){e=u,t=s;continue e}return 0|c}return 1}return null!=i?-1:0}})(this,e)}GetEnumerator(){return new An(this)}[Symbol.iterator](){return pt(ht(this))}"System.Collections.IEnumerable.GetEnumerator"(){return ht(this)}}class An{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,t=e.it.tail;if(null!=t){const n=Ht(t);return e.current=e.it.head,e.it=n,!0}return!1}"System.Collections.IEnumerator.Reset"(){const e=this;e.it=e.xs,e.current=null}Dispose(){}}function Mn(){return new Tn(null,void 0)}function Pn(e,t){return new Tn(e,t)}function Un(e){return null==e.tail}function Rn(e){if(null!=e.tail)return e.head;throw new Error(kn+"\\nParameter name: list")}function Dn(e){const t=e.tail;if(null!=t)return Ht(t);throw new Error(kn+"\\nParameter name: list")}function Hn(){return Mn()}function Gn(e,t){return Pn(e,t)}function Fn(e){return Pn(e,Mn())}function jn(e){return Un(e)}function Ln(e){return Rn(e)}function Wn(e){return Dn(e)}function $n(e){const t=0|function(e){return 0|((e,t)=>{for(;;){const n=e,r=t.tail;if(null==r)return 0|n;e=n+1,t=Ht(r)}})(0,e)}(e),n=xn(new Array(t),0,t,null);return((e,t)=>{for(;;){const r=e,o=t;if(Un(o))break;Nn(n,r,Rn(o)),e=r+1,t=Dn(o)}})(0,e),n}function Vn(e,t,n){let r=t,o=n;for(;!Un(o);)r=e(r,Ln(o)),o=Dn(o);return r}function zn(e,t){Vn(((t,n)=>{e(n)}),void 0,t)}function Bn(e,t){let n=t;for(let t=e.length-1;t>=0;t--)n=Pn(On(t,e),n);return n}function qn(e){return Bn(e,Mn())}function Jn(e,t){return Vn(((e,t)=>Pn(t,e)),t,function(e){return Vn(((e,t)=>Pn(t,e)),Mn(),e)}(e))}function Yn(e,t){const n=Mn(),r=Vn(((t,n)=>{const r=new Tn(e(n),void 0);return t.tail=r,r}),n,t),o=Mn();return r.tail=o,Dn(n)}function Zn(e,t){const n=Mn(),r=Vn(((t,n)=>{if(e(n)){const e=new Tn(n,void 0);return t.tail=e,e}return t}),n,t),o=Mn();return r.tail=o,Dn(n)}const Xn="The input sequence has an insufficient number of elements.";function Kn(){throw new Error("Enumeration has not started. Call MoveNext.")}function Qn(){throw new Error("Enumeration already finished.")}class er{constructor(e){this.f=e}toString(){let e=0,t="seq [";const n=ht(this);try{for(;e<4&&n["System.Collections.IEnumerator.MoveNext"]();)e>0&&(t+="; "),t+=At(n["System.Collections.Generic.IEnumerator`1.get_Current"]()),e=e+1|0;return 4===e&&(t+="; ..."),t+"]"}finally{ft(n)}}GetEnumerator(){return this.f()}[Symbol.iterator](){return pt(ht(this))}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}class tr{constructor(e,t,n){this.current=e,this.next=t,this.dispose=n}"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 nr(e,t,n){return new tr(e,t,n)}function rr(e,t,n){let r,o=!1,i=Gt(e());const u=()=>{if(null!=i){const e=Ht(i);try{n(e)}finally{i=void 0}}},s=()=>{try{u()}finally{r=void 0}};return nr((()=>(o||Kn(),null!=r?Ht(r):Qn())),(()=>{if(o||(o=!0),null!=i){const e=Ht(i);let n;try{n=t(e)}catch(e){throw s(),e}return null!=n?(r=n,!0):(s(),!1)}return!1}),u)}function or(e){return function(e){return new er(e)}(e)}function ir(e){return t="source",null==e&&function(e){throw new Error(e)}(t),ht(e);var t}function ur(e){return or((()=>ht(e())))}function sr(e){return or((()=>function(e){let t,n,r,o=!1,i=!1;const u=()=>{if(i=!0,null!=n){const e=Ht(n);try{ft(e)}finally{n=void 0}}if(null!=t){const e=Ht(t);try{ft(e)}finally{t=void 0}}};return nr((()=>(o?i&&Qn():Kn(),null!=r?Ht(r):Qn())),(()=>{let s;if(o||(o=!0),i)return!1;{let o;for(;null==o;){const i=t;if(null!=i)if(null!=n){const e=Ht(n);if(e["System.Collections.IEnumerator.MoveNext"]())r=Gt(e["System.Collections.Generic.IEnumerator`1.get_Current"]()),o=!0;else try{ft(e)}finally{n=void 0}}else{const e=Ht(i);e["System.Collections.IEnumerator.MoveNext"]()?(s=e["System.Collections.Generic.IEnumerator`1.get_Current"](),n=ht(s)):(u(),o=!1)}else t=ht(e)}return Ht(o)}}),(()=>{i||u()}))}(e)))}function cr(e){return ur((()=>function(e,t){const n=function(e){return"function"==typeof e?new e(1):new Array(1)}(t);return Nn(n,0,e),n}(e)))}function lr(e,t){return sr([e,t])}function ar(e,t){!function(e,t,n){const r=ir(n);try{let n=t;for(;r["System.Collections.IEnumerator.MoveNext"]();)n=e(n,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return n}finally{ft(r)}}(((t,n)=>{e(n)}),void 0,t)}function fr(e,t){return n=()=>ir(t),r=t=>t["System.Collections.IEnumerator.MoveNext"]()?Gt(e(t["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,o=e=>{ft(e)},or((()=>rr(n,r,o)));var n,r,o}function _r(e,t){return or((()=>{const n=ir(t);try{for(let t=1;t<=e;t++)if(!n["System.Collections.IEnumerator.MoveNext"]())throw new Error(Xn+"\\nParameter name: source");return function(e,t){return nr((()=>t["System.Collections.Generic.IEnumerator`1.get_Current"]()),(()=>t["System.Collections.IEnumerator.MoveNext"]()),(()=>{try{ft(t)}finally{e()}}))}((()=>{}),n)}catch(e){throw ft(n),e}}))}Symbol.iterator;const dr=lt;function hr(e){return{Dispose(){e()}}}function pr(e,t){return t.startsWith(e)?t:void 0}function mr(e,t){return t.endsWith(e)?t:void 0}function gr(e,t){return function(e){return 1===e?e=>{let t,n,r,o,i,u;return t=pr("/",e),null!=t?(n=t,"#"+n):(r=pr("#/",e),null!=r?(o=r,o):(i=pr("#",e),null!=i?(u=i,"#/"+En(u,1,u.length-1)):"#/"+e))}:e=>{let t,n;return t=pr("/",e),null!=t?(n=t,n):"/"+e}}(t)(Cn("/",Yn((e=>e.indexOf("?")>=0||e.startsWith("#")||e.startsWith("/")?e:encodeURIComponent(e)),e)))}function vr(e,t){return function(e,t){let n,r;const o=Mn();let i=o,u=t;for(;!Un(u);){let t=e(Rn(u));for(;!Un(t);)n=i,r=new Tn(Rn(t),void 0),n.tail=r,i=r,t=Dn(t);u=Dn(u)}const s=i,c=Mn();return s.tail=c,Dn(o)}((e=>{if("string"!=typeof(t=e)||/^\s*$/.test(t))return Hn();{const t=function(e,...t){return 0===t.length?e.trimEnd():e.replace(new RegExp("["+mn(t.join(""))+"]+$"),"")}(e,"#");if("?"===t)return Hn();if(null!=pr("?",t))return Fn(t);{const e=t.split("?");if(In(((e,t)=>e===t),e,null)||1!==e.length){if(In(((e,t)=>e===t),e,null)||2!==e.length)return Hn();if(""===On(1,e)){const t=On(0,e);return Fn(decodeURIComponent(t))}{const t=On(0,e),n=On(1,e);return qn([decodeURIComponent(t),"?"+n])}}{const t=On(0,e);return Fn(decodeURIComponent(t))}}}var t}),qn(function(e,t,n,r){if(r="number"==typeof r?r:0,(n="number"==typeof n?n:void 0)&&n<0)throw new Error("Count cannot be less than zero");if(0===n)return[];const o=!(1&~r),i=!(2&~r);t=(t=t||[]).filter((e=>e)).map(mn),t=t.length>0?t:["\\s"];const u=[],s=new RegExp(t.join("|"),"g");let c=!0,l=0;do{const t=s.exec(e);if(null===t){const t=i?e.substring(l).trim():e.substring(l);(!o||t.length>0)&&u.push(t),c=!1}else{const r=i?e.substring(l,t.index).trim():e.substring(l,t.index);(!o||r.length>0)&&(null!=n&&u.length+1===n?(u.push(i?e.substring(l).trim():e.substring(l)),c=!1):u.push(r)),l=s.lastIndex}}while(c);return u}(null!=pr("#",e)?En(e,1,e.length-1):1!==t||null==mr("#",e)&&null==mr("#/",e)?e:"",["/"],void 0,0)))}const yr=function(e){const t=dr.memo(e,Nt(jt(Lt(Tt,void 0),null)));return ar((t=>{e.displayName=t}),Ft(void 0)),e=>{const n=function(e,t){if(null==e)return t;{const n=e;return t.key=n(t),t}}(undefined,e);return dr.createElement(t,n)}}((e=>{const t=function(e){const t=dr.useRef(e),n=dr.useCallback((e=>t.current(e)),[]);var r;return r=n=>(t.current=e,hr((()=>{}))),ue((()=>{const e=r();return()=>{e.Dispose()}})),n}((t=>{const n=jt(e.onUrlChanged,(e=>{}));!function(e,t){t(vr(2===e?window.location.pathname+window.location.search:window.location.hash,e))}(jt(e.hashMode,1),n)}));(function(e){const t=dr.useRef(void 0),n=dr.useRef(!1),r=dr.useRef(!1);var o;n.current&&(r.current=!0),o=()=>{return o=n.current?void 0:(n.current=!0,t.current=Gt(e()),r.current?t.current:void 0),{Dispose(){ar((e=>{ft(e)}),Ft(o))}};var o},ie((()=>{const e=o();return()=>{e.Dispose()}}),[])})((()=>(window.navigator.userAgent.indexOf("Trident")>=0||window.navigator.userAgent.indexOf("MSIE")>=0?window.addEventListener("hashchange",t):window.addEventListener("popstate",t),window.addEventListener("CUSTOM_NAVIGATION_EVENT",t),hr((()=>{window.navigator.userAgent.indexOf("Trident")>=0||window.navigator.userAgent.indexOf("MSIE")>=0?window.removeEventListener("hashchange",t):window.removeEventListener("popstate",t),window.removeEventListener("CUSTOM_NAVIGATION_EVENT",t)}))))),function(){const e=dr.useRef(!1);dr.useEffect((()=>{e.current||(e.current=!0,(()=>{const e=document.createEvent("CustomEvent");e.initEvent("CUSTOM_NAVIGATION_EVENT",!0,!0),window.dispatchEvent(e)})())}),[])}();const n=e.application;return null==n?null:n}));class wr extends Mt{constructor(e){super(),this.tag=0,this.fields=[e]}cases(){return["Token"]}}class br extends Mt{constructor(e){super(),this.tag=0,this.fields=[e]}cases(){return["QueryString"]}}class Cr extends Mt{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["Home","OidcSignIn","OidcSignInRedirectCallback","OidcSignInSilentCallback","NotFound"]}}function Sr(e){let t,n,r;if(jn(e))t=0;else if("oidc"===Ln(e))if(jn(Wn(e)))t=3;else switch(Ln(Wn(e))){case"callback":jn(Wn(Wn(e)))?t=3:jn(Wn(Wn(Wn(e))))?(t=1,n=Ln(Wn(Wn(e)))):t=3;break;case"silent-refresh":jn(Wn(Wn(e)))?t=3:jn(Wn(Wn(Wn(e))))?(t=2,r=Ln(Wn(Wn(e)))):t=3;break;default:t=3}else t=3;switch(t){case 0:{const e=window.location.search,t=new URLSearchParams(e),n=t.get("token");if(null==n)return new Cr(0,[]);{const e=n;return ar((e=>{!function(e,t){sessionStorage.setItem("success-redirection-url",t)}(0,e)}),Ft(t.get("success-redirection-url"))),new Cr(1,[new wr(e)])}}case 1:return new Cr(2,[new br(n)]);case 2:return new Cr(3,[new br(r)]);default:return new Cr(4,[])}}class Er extends Mt{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["HasNotStartedYet","InProgress","Resolved"]}}class kr extends Mt{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["Started","Finished"]}}class xr extends Pt{constructor(e){super(),this.AccessToken=e}}function Ir(e){return new xr(e.access_token)}class Or extends Pt{constructor(e){super(),this.Auth=e}}class Nr extends Mt{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["GetUser","SignInRedirect","SignInRedirectCallback","SignInSilentCallback"]}}class Tr extends Pt{constructor(e,t){super(),this.CurrentPage=e,this.Auth=t}}class Ar extends Mt{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["UrlChanged","AuthMsg"]}}class Mr{constructor(e){this.k=e}}function Pr(e){return new Mr(e)}function Ur(e){return e.k}class Rr extends Mr{constructor(e,t,n,r){super(e),this.left=t,this.right=n,this.h=0|r}}function Dr(e,t,n,r){return new Rr(e,t,n,r)}function Hr(e){return e.left}function Gr(e){return e.right}function Fr(e){return e.h}function jr(e,t){e:for(;;){const n=t;if(null!=e){const r=Ht(e);if(r instanceof Rr){const o=r;e=Hr(o),t=jr(Gr(o),n+1);continue e}return n+1|0}return 0|n}}function Lr(e){return jr(e,0)}function Wr(e,t,n){let r,o,i,u;if(null!=e){const t=Ht(e);i=t instanceof Rr?(r=t,Fr(r)):1}else i=0;if(null!=n){const e=Ht(n);u=e instanceof Rr?(o=e,Fr(o)):1}else u=0;const s=0|(i<u?u:i);return 0===s?Pr(t):Dr(t,e,n,s+1)}function $r(e,t,n){let r,o,i,u,s,c,l,a,f,_;if(null!=e){const t=Ht(e);f=t instanceof Rr?(r=t,Fr(r)):1}else f=0;if(null!=n){const e=Ht(n);_=e instanceof Rr?(o=e,Fr(o)):1}else _=0;if(_>f+2){const r=Ht(n);if(r instanceof Rr){const n=r;if(i=Hr(n),(null!=i?(u=Ht(i),u instanceof Rr?(s=u,Fr(s)):1):0)>f+1){const r=Ht(Hr(n));if(r instanceof Rr){const o=r;return Wr(Wr(e,t,Hr(o)),Ur(o),Wr(Gr(o),Ur(n),Gr(n)))}throw new Error("internal error: Set.rebalance")}return Wr(Wr(e,t,Hr(n)),Ur(n),Gr(n))}throw new Error("internal error: Set.rebalance")}if(f>_+2){const r=Ht(e);if(r instanceof Rr){const e=r;if(c=Gr(e),(null!=c?(l=Ht(c),l instanceof Rr?(a=l,Fr(a)):1):0)>_+1){const r=Ht(Gr(e));if(r instanceof Rr){const o=r;return Wr(Wr(Hr(e),Ur(e),Hr(o)),Ur(o),Wr(Gr(o),t,n))}throw new Error("internal error: Set.rebalance")}return Wr(Hr(e),Ur(e),Wr(Gr(e),t,n))}throw new Error("internal error: Set.rebalance")}return Wr(e,t,n)}function Vr(e,t,n){if(null!=n){const r=Ht(n),o=0|e.Compare(t,Ur(r));if(r instanceof Rr){const i=r;return o<0?$r(Vr(e,t,Hr(i)),Ur(i),Gr(i)):0===o?n:$r(Hr(i),Ur(i),Vr(e,t,Gr(i)))}{const o=0|e.Compare(t,Ur(r));return o<0?Dr(t,void 0,n,2):0===o?n:Dr(t,n,void 0,2)}}return Pr(t)}function zr(e,t,n){e:for(;;){const r=e,o=t;if(null!=n){const i=Ht(n),u=0|r.Compare(o,Ur(i));if(i instanceof Rr){const s=i;if(u<0){e=r,t=o,n=Hr(s);continue e}if(0===u)return!0;e=r,t=o,n=Gr(s);continue e}return 0===u}return!1}}function Br(e,t){e:for(;;){const n=e;if(null!=t){const r=Ht(t);if(r instanceof Rr){const o=r;Br(n,Hr(o)),n(Ur(o)),e=n,t=Gr(o);continue e}n(Ur(r))}break}}class qr extends Pt{constructor(e,t){super(),this.stack=e,this.started=t}}function Jr(e){e:for(;;){const t=e;if(jn(t))return Hn();{const n=Ln(t),r=Wn(t);if(null!=n){const o=Ht(n);if(o instanceof Rr){const t=o;e=Bn([Hr(t),Pr(Ur(t)),Gr(t)],r);continue e}return t}e=r;continue e}}}function Yr(e){return new qr(Jr(Fn(e)),!1)}function Zr(e){if(e.started){const t=e.stack;if(jn(t))return function(){throw new Error("Enumeration already started")}();if(null!=Ln(t))return Ur(Ht(Ln(t)));throw new Error("Please report error: Set iterator, unexpected stack for current")}return function(){throw new Error("Enumeration not started")}()}function Xr(e){let t=Yr(e);return{"System.Collections.Generic.IEnumerator`1.get_Current":()=>Zr(t),"System.Collections.IEnumerator.get_Current":()=>Zr(t),"System.Collections.IEnumerator.MoveNext":()=>function(e){if(e.started){const t=e.stack;if(jn(t))return!1;if(null!=Ln(t)){if(Ht(Ln(t))instanceof Rr)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=Jr(Wn(t)),!jn(e.stack)}throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}return e.started=!0,!jn(e.stack)}(t),"System.Collections.IEnumerator.Reset"(){t=Yr(e)},Dispose(){}}}function Kr(e,t,n){return null==t?null==n?0:-1:null==n?1:0|function(e,t,n){e:for(;;){const r=e,o=t,i=n;if(jn(o))return jn(i)?0:-1;if(jn(i))return 1;if(null!=Ln(i))if(null!=Ln(o)){const u=Ht(Ln(o)),s=Ht(Ln(i));if(u instanceof Rr){const c=u;if(null==Hr(c)){if(!(s instanceof Rr)){const u=0|r.Compare(Ur(c),Ur(s));if(0!==u)return 0|u;e=r,t=Gn(Gr(c),Wn(o)),n=Gn(void 0,Wn(i));continue e}{const u=s;if(null==Hr(u)){const s=0|r.Compare(Ur(c),Ur(u));if(0!==s)return 0|s;e=r,t=Gn(Gr(c),Wn(o)),n=Gn(Gr(u),Wn(i));continue e}{let u,s,c,l,a;switch(jn(o)?jn(i)?u=2:null!=Ln(i)?(u=1,l=Wn(i),a=Ht(Ln(i))):u=2:null!=Ln(o)?(u=0,s=Wn(o),c=Ht(Ln(o))):jn(i)?u=2:null!=Ln(i)?(u=1,l=Wn(i),a=Ht(Ln(i))):u=2,u){case 0:if(c instanceof Rr){const o=c;e=r,t=Bn([Hr(o),Dr(Ur(o),void 0,Gr(o),0)],s),n=i;continue e}e=r,t=Bn([void 0,Pr(Ur(c))],s),n=i;continue e;case 1:if(a instanceof Rr){const i=a;e=r,t=o,n=Bn([Hr(i),Dr(Ur(i),void 0,Gr(i),0)],l);continue e}e=r,t=o,n=Bn([void 0,Pr(Ur(a))],l);continue e;default:throw new Error("unexpected state in SetTree.compareStacks")}}}}else{let u,s,c,l,a;switch(jn(o)?jn(i)?u=2:null!=Ln(i)?(u=1,l=Wn(i),a=Ht(Ln(i))):u=2:null!=Ln(o)?(u=0,s=Wn(o),c=Ht(Ln(o))):jn(i)?u=2:null!=Ln(i)?(u=1,l=Wn(i),a=Ht(Ln(i))):u=2,u){case 0:if(c instanceof Rr){const o=c;e=r,t=Bn([Hr(o),Dr(Ur(o),void 0,Gr(o),0)],s),n=i;continue e}e=r,t=Bn([void 0,Pr(Ur(c))],s),n=i;continue e;case 1:if(a instanceof Rr){const i=a;e=r,t=o,n=Bn([Hr(i),Dr(Ur(i),void 0,Gr(i),0)],l);continue e}e=r,t=o,n=Bn([void 0,Pr(Ur(a))],l);continue e;default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{if(!(s instanceof Rr)){const c=0|r.Compare(Ur(u),Ur(s));if(0!==c)return 0|c;e=r,t=Wn(o),n=Wn(i);continue e}{const c=s;if(null==Hr(c)){const s=0|r.Compare(Ur(u),Ur(c));if(0!==s)return 0|s;e=r,t=Gn(void 0,Wn(o)),n=Gn(Gr(c),Wn(i));continue e}{let u,s,c,l,a;switch(jn(o)?jn(i)?u=2:null!=Ln(i)?(u=1,l=Wn(i),a=Ht(Ln(i))):u=2:null!=Ln(o)?(u=0,s=Wn(o),c=Ht(Ln(o))):jn(i)?u=2:null!=Ln(i)?(u=1,l=Wn(i),a=Ht(Ln(i))):u=2,u){case 0:if(c instanceof Rr){const o=c;e=r,t=Bn([Hr(o),Dr(Ur(o),void 0,Gr(o),0)],s),n=i;continue e}e=r,t=Bn([void 0,Pr(Ur(c))],s),n=i;continue e;case 1:if(a instanceof Rr){const i=a;e=r,t=o,n=Bn([Hr(i),Dr(Ur(i),void 0,Gr(i),0)],l);continue e}e=r,t=o,n=Bn([void 0,Pr(Ur(a))],l);continue e;default:throw new Error("unexpected state in SetTree.compareStacks")}}}}}else{let u,s,c,l,a;switch(Ht(Ln(i)),jn(o)?jn(i)?u=2:null!=Ln(i)?(u=1,l=Wn(i),a=Ht(Ln(i))):u=2:null!=Ln(o)?(u=0,s=Wn(o),c=Ht(Ln(o))):jn(i)?u=2:null!=Ln(i)?(u=1,l=Wn(i),a=Ht(Ln(i))):u=2,u){case 0:if(c instanceof Rr){const o=c;e=r,t=Bn([Hr(o),Dr(Ur(o),void 0,Gr(o),0)],s),n=i;continue e}e=r,t=Bn([void 0,Pr(Ur(c))],s),n=i;continue e;case 1:if(a instanceof Rr){const i=a;e=r,t=o,n=Bn([Hr(i),Dr(Ur(i),void 0,Gr(i),0)],l);continue e}e=r,t=o,n=Bn([void 0,Pr(Ur(a))],l);continue e;default:throw new Error("unexpected state in SetTree.compareStacks")}}else{if(null==Ln(o)){e=r,t=Wn(o),n=Wn(i);continue e}{let u,s,c,l,a;switch(Ht(Ln(o)),jn(o)?jn(i)?u=2:null!=Ln(i)?(u=1,l=Wn(i),a=Ht(Ln(i))):u=2:null!=Ln(o)?(u=0,s=Wn(o),c=Ht(Ln(o))):jn(i)?u=2:null!=Ln(i)?(u=1,l=Wn(i),a=Ht(Ln(i))):u=2,u){case 0:if(c instanceof Rr){const o=c;e=r,t=Bn([Hr(o),Dr(Ur(o),void 0,Gr(o),0)],s),n=i;continue e}e=r,t=Bn([void 0,Pr(Ur(c))],s),n=i;continue e;case 1:if(a instanceof Rr){const i=a;e=r,t=o,n=Bn([Hr(i),Dr(Ur(i),void 0,Gr(i),0)],l);continue e}e=r,t=o,n=Bn([void 0,Pr(Ur(a))],l);continue e;default:throw new Error("unexpected state in SetTree.compareStacks")}}}break}}(e,Fn(t),Fn(n))}function Qr(e,t,n){let r=n;Br((e=>{Nn(t,r,e),r=r+1|0}),e)}function eo(e,t){return function(t,n,r){const o=(t,n)=>Vr(e,n,t);return r.reduce(o,void 0)}(0,0,t)}class to{constructor(e,t){this.comparer=e,this.tree=t}GetHashCode(){return 0|function(e){let t=0;const n=ht(e);try{for(;n["System.Collections.IEnumerator.MoveNext"]();)t=(t<<1)+Ct(n["System.Collections.Generic.IEnumerator`1.get_Current"]())+631|0}finally{ft(n)}return 0|Math.abs(t)}(this)}Equals(e){let t;return e instanceof to&&(t=e,0===Kr(ro(this),oo(this),oo(t)))}toString(){return"set ["+Cn("; ",fr((e=>At(e)),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(){return Array.from(this)}CompareTo(e){return 0|Kr(ro(this),oo(this),oo(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 zr(ro(this),e,oo(this))}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(e,t){Qr(oo(this),e,t)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|uo(this)}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return 0|uo(this)}GetEnumerator(){return Xr(oo(this))}[Symbol.iterator](){return pt(ht(this))}"System.Collections.IEnumerable.GetEnumerator"(){return Xr(oo(this))}get size(){return 0|uo(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 so(this,e)}keys(){return fr((e=>e),this)}values(){return fr((e=>e),this)}entries(){return fr((e=>[e,e]),this)}forEach(e,t){const n=this;ar((t=>{e(t,t,n)}),n)}}function no(e,t){return new to(e,t)}function ro(e){return e.comparer}function oo(e){return e.tree}function io(e){return no(e,void 0)}function uo(e){return Lr(oo(e))}function so(e,t){return zr(ro(e),t,oo(e))}function co(e,t){return so(t,e)}function lo(e,t){return function(e,t){return no(ro(e),Vr(ro(e),t,oo(e)))}(t,e)}function ao(e){return Cn("/",e)}function fo(e,t,n){try{ft(n)}catch(n){e(["Error stopping subscription: "+ao(t),n])}}function _o(e,t){zn((t=>{fo(e,t[0],t[1])}),t)}function ho(e,t,n,r,o,i){return zn((t=>{!function(e,t){const n=new Error("Duplicate SubId");e(["Duplicate SubId: "+ao(t),n])}(e,t)}),n),zn((t=>{fo(e,t[0],t[1])}),r),Jn(o,function(n,r){const o=Mn(),i=Vn(((n,r)=>{const o=function(e,t,n,r){try{return[n,r(t)]}catch(t){return void e(["Error starting subscription: "+ao(n),t])}}(e,t,(i=r)[0],i[1]);var i;if(null==o)return n;{const e=new Tn(Ht(o),void 0);return n.tail=e,e}}),o,r),u=Mn();return i.tail=u,Dn(o)}(0,i))}function po(e){return t=(e,t)=>{return n=e[0],r=e[1],o=t[0],i=t[1],u=t[2],co(n,i)?[Gn(n,o),i,u]:[o,lo(n,i),Gn([n,r],u)];var n,r,o,i,u},n=e,r=[Hn(),(o={Compare:It},io(o)),Hn()],function(e,t,n){return t.reduceRight(((t,n)=>e(n,t)),n)}(t,$n(n),r);var t,n,r,o}const mo=Hn();function go(e,t){const n=no(r={Compare:It},function(e,t){if(at(t))return eo(e,t);if(t instanceof Tn)return function(e,t){return Vn(((t,n)=>Vr(e,n,t)),void 0,t)}(e,t);{const n=ht(t);try{return function(e,t,n){for(;;){const r=e,o=t,i=n;if(!i["System.Collections.IEnumerator.MoveNext"]())return o;e=r,t=Vr(r,i["System.Collections.Generic.IEnumerator`1.get_Current"](),o),n=i}}(e,void 0,n)}finally{ft(n)}}}(r,Yn((e=>e[0]),e)));var r;const o=po(t),i=o[1],u=o[0];if(n.Equals(i))return[u,Hn(),e,Hn()];{const t=function(e,t){const n=Mn(),r=Mn(),o=n,u=Vn(((e,t)=>{let n,r;const o=e[0],u=e[1];return(e=>co(e[0],i))(t)?[(n=new Tn(t,void 0),o.tail=n,n),u]:[o,(r=new Tn(t,void 0),u.tail=r,r)]}),[o,r],t),s=Mn();u[0].tail=s;const c=Mn();return u[1].tail=c,[Dn(o),Dn(r)]}(0,e);return[u,t[1],t[0],Zn((e=>!co(e[0],n)),o[2])]}}function vo(e,t,n){zn((n=>{try{n(t)}catch(t){e(t)}}),n)}function yo(){return Hn()}function wo(e,t){return Yn((t=>n=>{t((t=>{n(e(t))}))}),t)}function bo(e,t,n,r){return Fn((o=>{e(t).then((e=>{o(n(e))})).catch((e=>{o(r(e))}))}))}function Co(e,t){return e>t?e:t}function So(e,t,n,r,o){const i=function(e,t,n,r){const o=0|It(e,n);if(0===o)throw new Error("The step of a range cannot be zero");const i=o>0;return n=>{const o=0|It(n,t);return i&&o<=0||!i&&o>=0?[n,r(n,e)]:void 0}}(t,n,r,o);return ur((()=>{return t=i,n=e,or((()=>function(e,t){let n,r=t;return nr((()=>{if(null!=n){const e=Ht(n)[0];return Ht(n)[1],e}return Kn()}),(()=>{if(n=e(r),null!=n){Ht(n)[0];const e=Ht(n)[1];return r=e,!0}return!1}),(()=>{}))}(t,n)));var t,n}))}class Eo extends Mt{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["Writable","ReadWritable"]}}class ko{constructor(e){this.state=new Eo(0,[xn(new Array(Co(e,10)),0,Co(e,10),null),0])}}function xo(e){const t=e.state;if(1===t.tag){const n=0|t.fields[1],r=0|t.fields[2],o=t.fields[0],i=(r+1)%o.length|0;return e.state=i===n?new Eo(0,[o,n]):new Eo(1,[o,n,i]),Gt(On(r,o))}}function Io(e,t){const n=e.state;if(1===n.tag){const i=0|n.fields[1],u=0|n.fields[2],s=n.fields[0];Nn(s,i,t);const c=(i+1)%s.length|0;e.state=new Eo(1,c===u?[(r=u,o=s,Array.from(ur((()=>lr(_r(r,o),ur((()=>{return lr((e=r,t=o,n=()=>ir(t),i=(t,n)=>{if(t<e){if(n["System.Collections.IEnumerator.MoveNext"]())return Gt(n["System.Collections.Generic.IEnumerator`1.get_Current"]());throw new Error(Xn+"\\nParameter name: source")}},u=e=>{ft(e)},or((()=>{let e=-1;return rr(n,(t=>(e=e+1|0,i(e,t))),u)}))),ur((()=>{return e=e=>cr(null),n=o.length,t=So(0,1,n,0,((e,t)=>e+t)),ur((()=>sr(fr(e,t))));var e,t,n})));var e,t,n,i,u}))))))),s.length,0]:[s,c,u])}else{const r=0|n.fields[1],o=n.fields[0];Nn(o,r,t);const i=(r+1)%o.length|0;e.state=new Eo(1,[o,i,r])}var r,o}class Oo extends Pt{constructor(e,t,n,r,o,i,u){super(),this.init=e,this.update=t,this.subscribe=n,this.view=r,this.setState=o,this.onError=i,this.termination=u}}function No(e){return Tt(e.view)}var To;function Ao(e,t){switch(t){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 Mo(e,t,n,r,o){const i=function(e,t,n){const r=/^\s*([\+\-])?(0[xXoObB])?([0-9a-fA-F]+)\s*$/.exec(e.replace(/_/g,""));if(null!=r){const[,,e,o]=r;n=n||function(e,t){if(t&To.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,t);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.")}}(n);if(!i.test(o))return function(e,t){const[,n,r,o]=e;return{sign:n||"",prefix:r||"",digits:o,radix:t}}(r,n)}return null}(e,t,o);if(null!=i){let e=Number.parseInt(i.sign+i.digits,i.radix);if(!Number.isNaN(e)){const[t,o]=Ao(!0,r);!n&&10!==i.radix&&e>=t&&e<=o&&(e=e<<32-r>>32-r);const[u,s]=Ao(n,r);if(e>=u&&e<=s)return e}}throw new Error(`The input string ${e} was not in a correct format.`)}!function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"}(To||(To={}));class Po extends Pt{constructor(e,t,n){super(),this.model=e,this.render=t,this.equal=n}}class Uo extends b{constructor(e){super(e)}shouldComponentUpdate(e,t){return!this.props.equal(this.props.model,e.model)}render(){return this.props.render()}}const Ro=(()=>{try{return Mo("18.3.1".slice(void 0,2),511,!1,32)>=18}catch(e){return!1}})();class Do extends Mt{constructor(e,t){super(),this.tag=e,this.fields=t}cases(){return["Ok","Error"]}}const Ho=(()=>{const e={};return e.store=Gt(window.sessionStorage),e})();function Go(){return new UserManager(function(){const e=function(e){return e.endsWith("/")?e:e+"/"}(window.location.origin+window.location.pathname),t={};return t.authority=$t,t.client_id="apollo-bank-details-ui",t.redirect_uri=e+"#/oidc/callback?",t.response_type="id_token token",t.scope="openid profile",t.automaticSilentRenew=!0,t.silent_redirect_uri=Gt(e+"#/oidc/silent-refresh?"),t.post_logout_redirect_uri=e+"#/oidc/logout?",t.accessTokenExpiringNotificationTime=10,t.filterProtocolClaims=!0,t.loadUserInfo=!1,t.clockSkew=2592e3,t.userStore=new WebStorageStateStore(Ho),t}())}function Fo(e){return e.length>0?En(e,1):e}function jo(e){return Go().signinRedirect(Gt({extraQueryParams:{irt:e.fields[0]}}))}function Lo(e){return Go().signinRedirectCallback(Fo(e.fields[0]))}function Wo(e){return Go().signinSilentCallback(Fo(e.fields[0]))}function $o(){return Go().getUser()}var Vo;!function(e){!function(e,t){!function(e,t,n){let r;const o=n.init(t),i=o[0],u=n.subscribe(i),s=n.termination,c=new ko(10);let l=!1,a=i,f=mo,_=!1;const d=Tt(e)((e=>{_||(Io(c,e),l||(l=!0,h(),l=!1))})),h=()=>{let e,t=xo(c);for(;!_&&null!=t;){const r=Ht(t);if(s[0](r))_o(n.onError,f),s[1](a),_=!0;else{const o=n.update(r,a),i=o[0],u=n.subscribe(i);n.setState(i,d),vo((e=>{n.onError([yn(vn("Error handling the message: %A"))(r),e])}),d,o[1]),a=i,e=go(f,u),f=ho(n.onError,d,e[0],e[1],e[2],e[3]),t=xo(c)}}};l=!0,n.setState(i,d),vo((e=>{n.onError([yn(vn("Error intitializing:")),e])}),d,o[1]),r=go(f,u),f=ho(n.onError,d,r[0],r[1],r[2],r[3]),h(),l=!1}(Nt((e=>e)),void 0,t)}(0,e)}((Vo=function(e,t,n){return new Oo((function(){const e=Sr(vr(window.location.hash,1)),t=function(){const e=Sr(vr(window.location.hash,1));return[new Or(new Er(0,[])),1===e.tag?Fn((t=>{t(new Nr(1,[new kr(0,[]),e.fields[0]]))})):2===e.tag?Fn((t=>{t(new Nr(2,[new kr(0,[]),e.fields[0]]))})):3===e.tag?Fn((t=>{t(new Nr(3,[new kr(0,[]),e.fields[0]]))})):Fn((e=>{e(new Nr(0,[new kr(0,[])]))}))]}();return[new Tr(e,t[0]),wo((e=>new Ar(1,[e])),t[1])]}),t,(e=>Hn()),n,Nt((e=>{const t=Tt(n)(e);return e=>{t(e)}})),(e=>{var t,n;t=e[0],n=e[1],console.error(Gt(t),n)}),[e=>!1,e=>{}])}(0,(function(e,t){if(1===e.tag){const n=function(e,t){const n=e=>[new Or(new Er(2,[new Do(1,[e])])),yo()];switch(e.tag){case 1:return 1===e.fields[0].tag?1===e.fields[0].fields[0].tag?n(yn(vn("SignInRedirect failed: %s"))(e.fields[0].fields[0].fields[0])):[t,yo()]:[new Or(new Er(1,[])),(o=jo,i=e.fields[1],u=t=>new Nr(1,[new kr(1,[new Do(1,[t.message])]),e.fields[1]]),Fn((e=>{o(i).catch((t=>{e(u(t))}))})))];case 2:return 1===e.fields[0].tag?1===e.fields[0].fields[0].tag?n(yn(vn("failed sign in: %s"))(e.fields[0].fields[0].fields[0])):[new Or(new Er(2,[new Do(0,[Ir(e.fields[0].fields[0].fields[0])])])),(r=e=>{!function(e){history.pushState(void 0,"",gr(e,1));const t=document.createEvent("CustomEvent");t.initEvent("CUSTOM_NAVIGATION_EVENT",!0,!0),window.dispatchEvent(t)}(Fn(""))},Fn(r))]:[new Or(new Er(1,[])),bo(Lo,e.fields[1],(t=>(window.gtag&&window.gtag("event","oidc_sign_in",{}),new Nr(2,[new kr(1,[new Do(0,[t])]),e.fields[1]]))),(t=>new Nr(2,[new kr(1,[new Do(1,[t.message])]),e.fields[1]])))];case 3:return 1===e.fields[0].tag?1===e.fields[0].fields[0].tag?n(yn(vn("failed silent sign in: %s"))(e.fields[0].fields[0].fields[0])):null==e.fields[0].fields[0].fields[0]?n("silent refresh expected a user but got none"):[new Or(new Er(2,[new Do(0,[Ir(e.fields[0].fields[0].fields[0])])])),yo()]:[t,bo(Wo,e.fields[1],(t=>new Nr(3,[new kr(1,[new Do(0,[t])]),e.fields[1]])),(t=>new Nr(3,[new kr(1,[new Do(1,[t.message])]),e.fields[1]])))];default:return 1===e.fields[0].tag?1===e.fields[0].fields[0].tag?n(yn(vn("failed to get current user: %s"))(e.fields[0].fields[0].fields[0])):null==e.fields[0].fields[0].fields[0]?n("expected a user but got none"):[new Or(new Er(2,[new Do(0,[Ir(e.fields[0].fields[0].fields[0])])])),yo()]:[new Or(new Er(1,[])),bo($o,void 0,(e=>new Nr(0,[new kr(1,[new Do(0,[e])])])),(e=>new Nr(0,[new kr(1,[new Do(1,[e.message])])])))]}var r,o,i,u}(e.fields[0],t.Auth);return[new Tr(t.CurrentPage,n[0]),wo((e=>new Ar(1,[e])),n[1])]}return[new Tr(Sr(e.fields[0]),t.Auth),yo()]}),(function(e,t){let n,r,o;if(0===(null!=Vt&&null!=$t?(r=0,o=Vt):r=1,r))switch(e.CurrentPage.tag){case 1:case 2:case 3:n=v("div",{children:"Please wait..."});break;case 4:n=v("h1",{children:"Not found"});break;default:{const t=e.Auth.Auth;let r,u;2===t.tag&&0===t.fields[0].tag?(r=0,u=t.fields[0].fields[0]):r=1,0===r?(i=[],n=v("bank-component",function(e,t=0){const n={},r=t;function o(e){throw new Error("Cannot infer key and value of "+String(e))}function i(e,t,r){e=function(e,t){switch(t){case 1:return e.charAt(0).toLowerCase()+e.slice(1);case 2:return Ut(e,"_");case 3:return Ut(e,"_").toUpperCase();case 4:return Ut(e,"-");default:return e}}(e,t),n[e]=r}for(let t of e){let e=0;if(null==t&&o(t),t instanceof Mt){const n=t.cases()[t.tag];t=0===t.fields.length?n:[n].concat(t.fields),e=r}if(Array.isArray(t))switch(t.length){case 0:o(t);break;case 1:i(t[0],e,!0);break;case 2:const n=t[1];i(t[0],e,n);break;default:i(t[0],e,t.slice(1))}else"string"==typeof t?i(t,e,!0):o(t)}return n}([new Rt(0,[o]),new Rt(1,[u.AccessToken])],1),...i)):n=v("h1",{children:"Unauthorised"})}}else n=v("h1",{children:"Invalid attribute configuration"});var i;return yr({onUrlChanged:e=>{t(new Ar(0,[e]))},application:v(w,{},n)})})),function(e,t,n){let r;return function(e,t){return new Oo(t.init,t.update,t.subscribe,t.view,e,t.onError,t.termination)}(Nt(Ro?(o=document.getElementById(t),r={render:function(e){Ze(e,o)},unmount:function(){ct(o)}},t=>o=>{r.render(e((e=>t=>e===t),No(n),t,o))}):r=>o=>{Ze(e((e=>t=>e===t),No(n),r,o),document.getElementById(t))}),n);var o}(((e,t,n,r)=>function(e,t,n,r){const o=new Po(n,(()=>t(n,r)),e);return v(Uo,o)}(Nt(e),Nt(t),n,r)),"bank-details-app",Vo)))})();
|
2
2
|
//# sourceMappingURL=bank-details-app.js.map
|