@flarehr/superhero-bank-details 0.1.931 → 0.1.932
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
|
|
1
|
-
(()=>{"use strict";var e,n,t,r,o,i,u={},s=[],l=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function c(e,n){for(var t in n)e[t]=n[t];return e}function a(e){var n=e.parentNode;n&&n.removeChild(e)}function f(n,t,r){var o,i,u,s={};for(u in t)"key"==u?o=t[u]:"ref"==u?i=t[u]:s[u]=t[u];if(arguments.length>2&&(s.children=arguments.length>3?e.call(arguments,2):r),"function"==typeof n&&null!=n.defaultProps)for(u in n.defaultProps)void 0===s[u]&&(s[u]=n.defaultProps[u]);return h(n,s,o,i,null)}function h(e,r,o,i,u){var s={type:e,props:r,key:o,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==u?++t:u};return null==u&&null!=n.vnode&&n.vnode(s),s}function d(e){return e.children}function _(e,n){this.props=e,this.context=n}function p(e,n){if(null==n)return e.__?p(e.__,e.__.__k.indexOf(e)+1):null;for(var t;n<e.__k.length;n++)if(null!=(t=e.__k[n])&&null!=t.__e)return t.__e;return"function"==typeof e.type?p(e):null}function m(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 m(e)}}function g(e){(!e.__d&&(e.__d=!0)&&r.push(e)&&!y.__r++||o!==n.debounceRendering)&&((o=n.debounceRendering)||setTimeout)(y)}function y(){for(var e;y.__r=r.length;)e=r.sort((function(e,n){return e.__v.__b-n.__v.__b})),r=[],e.some((function(e){var n,t,r,o,i,u;e.__d&&(i=(o=(n=e).__v).__e,(u=n.__P)&&(t=[],(r=c({},o)).__v=o.__v+1,T(u,o,r,n.__n,void 0!==u.ownerSVGElement,null!=o.__h?[i]:null,t,null==i?p(o):i,o.__h),I(t,o),o.__e!=i&&m(o)))}))}function w(e,n,t,r,o,i,l,c,a,f){var _,m,g,y,w,b,S,E=r&&r.__k||s,x=E.length;for(t.__k=[],_=0;_<n.length;_++)if(null!=(y=t.__k[_]=null==(y=n[_])||"boolean"==typeof y?null:"string"==typeof y||"number"==typeof y||"bigint"==typeof y?h(null,y,null,null,y):Array.isArray(y)?h(d,{children:y},null,null,null):y.__b>0?h(y.type,y.props,y.key,y.ref?y.ref:null,y.__v):y)){if(y.__=t,y.__b=t.__b+1,null===(g=E[_])||g&&y.key==g.key&&y.type===g.type)E[_]=void 0;else for(m=0;m<x;m++){if((g=E[m])&&y.key==g.key&&y.type===g.type){E[m]=void 0;break}g=null}T(e,y,g=g||u,o,i,l,c,a,f),w=y.__e,(m=y.ref)&&g.ref!=m&&(S||(S=[]),g.ref&&S.push(g.ref,null,y),S.push(m,y.__c||w,y)),null!=w?(null==b&&(b=w),"function"==typeof y.type&&y.__k===g.__k?y.__d=a=v(y,a,e):a=C(e,y,g,E,w,a),"function"==typeof t.type&&(t.__d=a)):a&&g.__e==a&&a.parentNode!=e&&(a=p(g))}for(t.__e=b,_=x;_--;)null!=E[_]&&N(E[_],E[_]);if(S)for(_=0;_<S.length;_++)M(S[_],S[++_],S[++_])}function v(e,n,t){for(var r,o=e.__k,i=0;o&&i<o.length;i++)(r=o[i])&&(r.__=e,n="function"==typeof r.type?v(r,n,t):C(t,r,r,o,r.__e,n));return n}function b(e,n){return n=n||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some((function(e){b(e,n)})):n.push(e)),n}function C(e,n,t,r,o,i){var u,s,l;if(void 0!==n.__d)u=n.__d,n.__d=void 0;else if(null==t||o!=i||null==o.parentNode)e:if(null==i||i.parentNode!==e)e.appendChild(o),u=null;else{for(s=i,l=0;(s=s.nextSibling)&&l<r.length;l+=1)if(s==o)break e;e.insertBefore(o,i),u=i}return void 0!==u?u:o.nextSibling}function S(e,n,t){"-"===n[0]?e.setProperty(n,t):e[n]=null==t?"":"number"!=typeof t||l.test(n)?t:t+"px"}function E(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||S(e.style,n,"");if(t)for(n in t)r&&t[n]===r[n]||S(e.style,n,t[n])}else if("o"===n[0]&&"n"===n[1])i=n!==(n=n.replace(/Capture$/,"")),n=n.toLowerCase()in e?n.toLowerCase().slice(2):n.slice(2),e.l||(e.l={}),e.l[n+i]=t,t?r||e.addEventListener(n,i?k:x,i):e.removeEventListener(n,i?k:x,i);else if("dangerouslySetInnerHTML"!==n){if(o)n=n.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("href"!==n&&"list"!==n&&"form"!==n&&"tabIndex"!==n&&"download"!==n&&n in e)try{e[n]=null==t?"":t;break e}catch(e){}"function"==typeof t||(null==t||!1===t&&-1==n.indexOf("-")?e.removeAttribute(n):e.setAttribute(n,t))}}function x(e){this.l[e.type+!1](n.event?n.event(e):e)}function k(e){this.l[e.type+!0](n.event?n.event(e):e)}function T(e,t,r,o,i,u,s,l,a){var f,h,p,m,g,y,v,b,C,S,E,x,k,T,I,M=t.type;if(void 0!==t.constructor)return null;null!=r.__h&&(a=r.__h,l=t.__e=r.__e,t.__h=null,u=[l]),(f=n.__b)&&f(t);try{e:if("function"==typeof M){if(b=t.props,C=(f=M.contextType)&&o[f.__c],S=f?C?C.props.value:f.__:o,r.__c?v=(h=t.__c=r.__c).__=h.__E:("prototype"in M&&M.prototype.render?t.__c=h=new M(b,S):(t.__c=h=new _(b,S),h.constructor=M,h.render=A),C&&C.sub(h),h.props=b,h.state||(h.state={}),h.context=S,h.__n=o,p=h.__d=!0,h.__h=[],h._sb=[]),null==h.__s&&(h.__s=h.state),null!=M.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=c({},h.__s)),c(h.__s,M.getDerivedStateFromProps(b,h.__s))),m=h.props,g=h.state,p)null==M.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else{if(null==M.getDerivedStateFromProps&&b!==m&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(b,S),!h.__e&&null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(b,h.__s,S)||t.__v===r.__v){for(h.props=b,h.state=h.__s,t.__v!==r.__v&&(h.__d=!1),h.__v=t,t.__e=r.__e,t.__k=r.__k,t.__k.forEach((function(e){e&&(e.__=t)})),E=0;E<h._sb.length;E++)h.__h.push(h._sb[E]);h._sb=[],h.__h.length&&s.push(h);break e}null!=h.componentWillUpdate&&h.componentWillUpdate(b,h.__s,S),null!=h.componentDidUpdate&&h.__h.push((function(){h.componentDidUpdate(m,g,y)}))}if(h.context=S,h.props=b,h.__v=t,h.__P=e,x=n.__r,k=0,"prototype"in M&&M.prototype.render){for(h.state=h.__s,h.__d=!1,x&&x(t),f=h.render(h.props,h.state,h.context),T=0;T<h._sb.length;T++)h.__h.push(h._sb[T]);h._sb=[]}else do{h.__d=!1,x&&x(t),f=h.render(h.props,h.state,h.context),h.state=h.__s}while(h.__d&&++k<25);h.state=h.__s,null!=h.getChildContext&&(o=c(c({},o),h.getChildContext())),p||null==h.getSnapshotBeforeUpdate||(y=h.getSnapshotBeforeUpdate(m,g)),I=null!=f&&f.type===d&&null==f.key?f.props.children:f,w(e,Array.isArray(I)?I:[I],t,r,o,i,u,s,l,a),h.base=t.__e,t.__h=null,h.__h.length&&s.push(h),v&&(h.__E=h.__=null),h.__e=!1}else null==u&&t.__v===r.__v?(t.__k=r.__k,t.__e=r.__e):t.__e=O(r.__e,t,r,o,i,u,s,a);(f=n.diffed)&&f(t)}catch(e){t.__v=null,(a||null!=u)&&(t.__e=l,t.__h=!!a,u[u.indexOf(l)]=null),n.__e(e,t,r)}}function I(e,t){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 O(n,t,r,o,i,s,l,c){var f,h,d,_=r.props,m=t.props,g=t.type,y=0;if("svg"===g&&(i=!0),null!=s)for(;y<s.length;y++)if((f=s[y])&&"setAttribute"in f==!!g&&(g?f.localName===g:3===f.nodeType)){n=f,s[y]=null;break}if(null==n){if(null===g)return document.createTextNode(m);n=i?document.createElementNS("http://www.w3.org/2000/svg",g):document.createElement(g,m.is&&m),s=null,c=!1}if(null===g)_===m||c&&n.data===m||(n.data=m);else{if(s=s&&e.call(n.childNodes),h=(_=r.props||u).dangerouslySetInnerHTML,d=m.dangerouslySetInnerHTML,!c){if(null!=s)for(_={},y=0;y<n.attributes.length;y++)_[n.attributes[y].name]=n.attributes[y].value;(d||h)&&(d&&(h&&d.__html==h.__html||d.__html===n.innerHTML)||(n.innerHTML=d&&d.__html||""))}if(function(e,n,t,r,o){var i;for(i in t)"children"===i||"key"===i||i in n||E(e,i,null,t[i],r);for(i in n)o&&"function"!=typeof n[i]||"children"===i||"key"===i||"value"===i||"checked"===i||t[i]===n[i]||E(e,i,n[i],t[i],r)}(n,m,_,i,c),d)t.__k=[];else if(y=t.props.children,w(n,Array.isArray(y)?y:[y],t,r,o,i&&"foreignObject"!==g,s,l,s?s[0]:r.__k&&p(r,0),c),null!=s)for(y=s.length;y--;)null!=s[y]&&a(s[y]);c||("value"in m&&void 0!==(y=m.value)&&(y!==n.value||"progress"===g&&!y||"option"===g&&y!==_.value)&&E(n,"value",y,_.value,!1),"checked"in m&&void 0!==(y=m.checked)&&y!==n.checked&&E(n,"checked",y,_.checked,!1))}return n}function M(e,t,r){try{"function"==typeof e?e(t):e.current=t}catch(e){n.__e(e,r)}}function N(e,t,r){var o,i;if(n.unmount&&n.unmount(e),(o=e.ref)&&(o.current&&o.current!==e.__e||M(o,null,t)),null!=(o=e.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(e){n.__e(e,t)}o.base=o.__P=null,e.__c=void 0}if(o=e.__k)for(i=0;i<o.length;i++)o[i]&&N(o[i],t,r||"function"!=typeof e.type);r||null==e.__e||a(e.__e),e.__=e.__e=e.__d=void 0}function A(e,n,t){return this.constructor(e,t)}function D(t,r,o){var i,s,l;n.__&&n.__(t,r),s=(i="function"==typeof o)?null:o&&o.__k||r.__k,l=[],T(r,t=(!i&&o||r).__k=f(d,null,[t]),s||u,u,void 0!==r.ownerSVGElement,!i&&o?[o]:s?null:r.firstChild?e.call(r.childNodes):null,l,!i&&o?o:s?s.__e:r.firstChild,i),I(l,t)}function R(e,n){D(e,n,R)}function G(n,t,r){var o,i,u,s=c({},n.props);for(u in t)"key"==u?o=t[u]:"ref"==u?i=t[u]:s[u]=t[u];return arguments.length>2&&(s.children=arguments.length>3?e.call(arguments,2):r),h(n.type,s,o||n.key,i||n.ref,null)}e=s.slice,n={__e:function(e,n,t,r){for(var o,i,u;n=n.__;)if((o=n.__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(n){e=n}throw e}},t=0,_.prototype.setState=function(e,n){var t;t=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=c({},this.state),"function"==typeof e&&(e=e(c({},t),this.props)),e&&c(t,e),null!=e&&this.__v&&(n&&this._sb.push(n),g(this))},_.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),g(this))},_.prototype.render=d,r=[],y.__r=0,i=0;var P,U,F,H,$=0,j=[],B=[],L=n.__b,V=n.__r,W=n.diffed,q=n.__c,z=n.unmount;function J(e,t){n.__h&&n.__h(U,e,$||t),$=0;var r=U.__H||(U.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({__V:B}),r.__[e]}function Z(e){return $=1,Y(ue,e)}function Y(e,n,t){var r=J(P++,2);if(r.t=e,!r.__c&&(r.__=[t?t(n):ue(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=U,!U.u)){U.u=!0;var o=U.shouldComponentUpdate;U.shouldComponentUpdate=function(e,n,t){if(!r.__c.__H)return!0;var i=r.__c.__H.__.filter((function(e){return e.__c}));if(i.every((function(e){return!e.__N})))return!o||o.call(this,e,n,t);var u=!1;return i.forEach((function(e){if(e.__N){var n=e.__[0];e.__=e.__N,e.__N=void 0,n!==e.__[0]&&(u=!0)}})),!(!u&&r.__c.props===e)&&(!o||o.call(this,e,n,t))}}return r.__N||r.__}function X(e,t){var r=J(P++,3);!n.__s&&ie(r.__H,t)&&(r.__=e,r.i=t,U.__H.__h.push(r))}function K(e,t){var r=J(P++,4);!n.__s&&ie(r.__H,t)&&(r.__=e,r.i=t,U.__h.push(r))}function Q(e,n){var t=J(P++,7);return ie(t.__H,n)?(t.__V=e(),t.i=n,t.__h=e,t.__V):t.__}function ee(){for(var e;e=j.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(re),e.__H.__h.forEach(oe),e.__H.__h=[]}catch(t){e.__H.__h=[],n.__e(t,e.__v)}}n.__b=function(e){U=null,L&&L(e)},n.__r=function(e){V&&V(e),P=0;var n=(U=e.__c).__H;n&&(F===U?(n.__h=[],U.__h=[],n.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=B,e.__N=e.i=void 0}))):(n.__h.forEach(re),n.__h.forEach(oe),n.__h=[])),F=U},n.diffed=function(e){W&&W(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==j.push(t)&&H===n.requestAnimationFrame||((H=n.requestAnimationFrame)||te)(ee)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==B&&(e.__=e.__V),e.i=void 0,e.__V=B}))),F=U=null},n.__c=function(e,t){t.some((function(e){try{e.__h.forEach(re),e.__h=e.__h.filter((function(e){return!e.__||oe(e)}))}catch(r){t.some((function(e){e.__h&&(e.__h=[])})),t=[],n.__e(r,e.__v)}})),q&&q(e,t)},n.unmount=function(e){z&&z(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach((function(e){try{re(e)}catch(e){t=e}})),r.__H=void 0,t&&n.__e(t,r.__v))};var ne="function"==typeof requestAnimationFrame;function te(e){var n,t=function(){clearTimeout(r),ne&&cancelAnimationFrame(n),setTimeout(e)},r=setTimeout(t,100);ne&&(n=requestAnimationFrame(t))}function re(e){var n=U,t=e.__c;"function"==typeof t&&(e.__c=void 0,t()),U=n}function oe(e){var n=U;e.__c=e.__(),U=n}function ie(e,n){return!e||e.length!==n.length||n.some((function(n,t){return n!==e[t]}))}function ue(e,n){return"function"==typeof n?n(e):n}function se(e,n){for(var t in n)e[t]=n[t];return e}function le(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){return e===n&&(0!==e||1/e==1/n)||e!=e&&n!=n}function ae(e){this.props=e}(ae.prototype=new _).isPureReactComponent=!0,ae.prototype.shouldComponentUpdate=function(e,n){return le(this.props,e)||le(this.state,n)};var fe=n.__b;n.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),fe&&fe(e)};var he="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911,de=function(e,n){return null==e?null:b(b(e).map(n))},_e={map:de,forEach:de,count:function(e){return e?b(e).length:0},only:function(e){var n=b(e);if(1!==n.length)throw"Children.only";return n[0]},toArray:b},pe=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);pe(e,n,t,r)};var me=n.unmount;function ge(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=se({},e)).__c&&(e.__c.__P===t&&(e.__c.__P=n),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return ge(e,n,t)}))),e}function ye(e,n,t){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return ye(e,n,t)})),e.__c&&e.__c.__P===n&&(e.__e&&t.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=t)),e}function we(){this.__u=0,this.t=null,this.__b=null}function ve(e){var n=e.__.__c;return n&&n.__a&&n.__a(e)}function be(){this.u=null,this.o=null}n.unmount=function(e){var n=e.__c;n&&n.__R&&n.__R(),n&&!0===e.__h&&(e.type=null),me&&me(e)},(we.prototype=new _).__c=function(e,n){var t=n.__c,r=this;null==r.t&&(r.t=[]),r.t.push(t);var o=ve(r.__v),i=!1,u=function(){i||(i=!0,t.__R=null,o?o(s):s())};t.__R=u;var s=function(){if(!--r.__u){if(r.state.__a){var e=r.state.__a;r.__v.__k[0]=ye(e,e.__c.__P,e.__c.__O)}var n;for(r.setState({__a:r.__b=null});n=r.t.pop();)n.forceUpdate()}},l=!0===n.__h;r.__u++||l||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(u,u)},we.prototype.componentWillUnmount=function(){this.t=[]},we.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]=ge(this.__b,t,r.__O=r.__P)}this.__b=null}var o=n.__a&&f(d,null,e.fallback);return o&&(o.__h=null),[f(d,null,n.__a?null:e.children),o]};var Ce=function(e,n,t){if(++t[1]===t[0]&&e.o.delete(n),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(t=e.u;t;){for(;t.length>3;)t.pop()();if(t[1]<t[0])break;e.u=t=t[2]}};function Se(e){return this.getChildContext=function(){return e.context},e.children}function Ee(e){var n=this,t=e.i;n.componentWillUnmount=function(){D(null,n.l),n.l=null,n.i=null},n.i&&n.i!==t&&n.componentWillUnmount(),e.__v?(n.l||(n.i=t,n.l={nodeType:1,parentNode:t,childNodes:[],appendChild:function(e){this.childNodes.push(e),n.i.appendChild(e)},insertBefore:function(e,t){this.childNodes.push(e),n.i.appendChild(e)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),n.i.removeChild(e)}}),D(f(Se,{context:n.context},e.__v),n.l)):n.l&&n.componentWillUnmount()}(be.prototype=new _).__a=function(e){var n=this,t=ve(n.__v),r=n.o.get(e);return r[0]++,function(o){var i=function(){n.props.revealOrder?(r.push(o),Ce(n,e,r)):o()};t?t(i):i()}},be.prototype.render=function(e){this.u=null,this.o=new Map;var n=b(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&n.reverse();for(var t=n.length;t--;)this.o.set(n[t],this.u=[1,0,this.u]);return e.children},be.prototype.componentDidUpdate=be.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(n,t){Ce(e,t,n)}))};var xe="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,ke=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Te="undefined"!=typeof document,Ie=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(e)};_.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(_.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(n){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:n})}})}));var Oe=n.event;function Me(){}function Ne(){return this.cancelBubble}function Ae(){return this.defaultPrevented}n.event=function(e){return Oe&&(e=Oe(e)),e.persist=Me,e.isPropagationStopped=Ne,e.isDefaultPrevented=Ae,e.nativeEvent=e};var De,Re={configurable:!0,get:function(){return this.class}},Ge=n.vnode;n.vnode=function(e){var n=e.type,t=e.props,r=t;if("string"==typeof n){var o=-1===n.indexOf("-");for(var i in r={},t){var u=t[i];Te&&"children"===i&&"noscript"===n||"value"===i&&"defaultValue"in t&&null==u||("defaultValue"===i&&"value"in t&&null==t.value?i="value":"download"===i&&!0===u?u="":/ondoubleclick/i.test(i)?i="ondblclick":/^onchange(textarea|input)/i.test(i+n)&&!Ie(t.type)?i="oninput":/^onfocus$/i.test(i)?i="onfocusin":/^onblur$/i.test(i)?i="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(i)?i=i.toLowerCase():o&&ke.test(i)?i=i.replace(/[A-Z0-9]/g,"-$&").toLowerCase():null===u&&(u=void 0),/^oninput$/i.test(i)&&(i=i.toLowerCase(),r[i]&&(i="oninputCapture")),r[i]=u)}"select"==n&&r.multiple&&Array.isArray(r.value)&&(r.value=b(t.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==n&&null!=r.defaultValue&&(r.value=b(t.children).forEach((function(e){e.props.selected=r.multiple?-1!=r.defaultValue.indexOf(e.props.value):r.defaultValue==e.props.value}))),e.props=r,t.class!=t.className&&(Re.enumerable="className"in t,null!=t.className&&(r.class=t.className),Object.defineProperty(r,"className",Re))}e.$$typeof=xe,Ge&&Ge(e)};var Pe=n.__r;n.__r=function(e){Pe&&Pe(e),De=e.__c};var Ue={ReactCurrentDispatcher:{current:{readContext:function(e){return De.__n[e.__c].props.value}}}};function Fe(e){return!!e&&e.$$typeof===xe}function He(e){e()}var $e={useState:Z,useId:function(){var e=J(P++,11);if(!e.__){for(var n=U.__v;null!==n&&!n.__m&&null!==n.__;)n=n.__;var t=n.__m||(n.__m=[0,0]);e.__="P"+t[0]+"-"+t[1]++}return e.__},useReducer:Y,useEffect:X,useLayoutEffect:K,useInsertionEffect:K,useTransition:function(){return[!1,He]},useDeferredValue:function(e){return e},useSyncExternalStore:function(e,n){var t=n(),r=Z({h:{__:t,v:n}}),o=r[0].h,i=r[1];return K((function(){o.__=t,o.v=n,ce(o.__,n())||i({h:o})}),[e,t,n]),X((function(){return ce(o.__,o.v())||i({h:o}),e((function(){ce(o.__,o.v())||i({h:o})}))}),[e]),t},startTransition:He,useRef:function(e){return $=5,Q((function(){return{current:e}}),[])},useImperativeHandle:function(e,n,t){$=6,K((function(){return"function"==typeof e?(e(n()),function(){return e(null)}):e?(e.current=n(),function(){return e.current=null}):void 0}),null==t?t:t.concat(e))},useMemo:Q,useCallback:function(e,n){return $=8,Q((function(){return e}),n)},useContext:function(e){var n=U.context[e.__c],t=J(P++,9);return t.c=e,n?(null==t.__&&(t.__=!0,n.sub(U)),n.props.value):e.__},useDebugValue:function(e,t){n.useDebugValue&&n.useDebugValue(t?t(e):e)},version:"17.0.2",Children:_e,render:function(e,n,t){return null==n.__k&&(n.textContent=""),D(e,n),"function"==typeof t&&t(),e?e.__c:null},hydrate:function(e,n,t){return R(e,n),"function"==typeof t&&t(),e?e.__c:null},unmountComponentAtNode:function(e){return!!e.__k&&(D(null,e),!0)},createPortal:function(e,n){var t=f(Ee,{__v:e,i:n});return t.containerInfo=n,t},createElement:f,createContext:function(e,n){var t={__c:n="__cC"+i++,__:e,Consumer:function(e,n){return e.children(n)},Provider:function(e){var t,r;return this.getChildContext||(t=[],(r={})[n]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&t.some(g)},this.sub=function(e){t.push(e);var n=e.componentWillUnmount;e.componentWillUnmount=function(){t.splice(t.indexOf(e),1),n&&n.call(e)}}),e.children}};return t.Provider.__=t.Consumer.contextType=t},createFactory:function(e){return f.bind(null,e)},cloneElement:function(e){return Fe(e)?G.apply(null,arguments):e},createRef:function(){return{current:null}},Fragment:d,isValidElement:Fe,findDOMNode:function(e){return e&&(e.base||1===e.nodeType&&e)||null},Component:_,PureComponent:ae,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:le(this.props,e)}function r(n){return this.shouldComponentUpdate=t,f(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=se({},n);return delete t.ref,e(t,n.ref||null)}return n.$$typeof=he,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:d,Suspense:we,SuspenseList:be,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 f(t,o)}return o.displayName="Lazy",o.__f=!0,o},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Ue};const je=$e,Be=f;function Le(e){return Array.isArray(e)||ArrayBuffer.isView(e)}function Ve(e){(function(e){return null!=e&&"function"==typeof e.Dispose})(e)&&e.Dispose()}function We(e,n){var t,r;return(null===(t=Object.getPrototypeOf(e))||void 0===t?void 0:t.constructor)===(null===(r=Object.getPrototypeOf(n))||void 0===r?void 0:r.constructor)}class qe{constructor(e){this.en=e}GetEnumerator(){return this.en}[Symbol.iterator](){return this}next(){const e=this.en["System.Collections.IEnumerator.MoveNext"]();return{done:!e,value:e?this.en["System.Collections.Generic.IEnumerator`1.get_Current"]():void 0}}}class ze{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 Je(e){return function(e){return null!=e&&"function"==typeof e.GetEnumerator}(e)?e.GetEnumerator():new ze(e[Symbol.iterator]())}function Ze(e){return{[Symbol.iterator](){return this},next(){const n=e["System.Collections.IEnumerator.MoveNext"]();return{done:!n,value:n?e["System.Collections.Generic.IEnumerator`1.get_Current"]():void 0}}}}class Ye{constructor(e){this.factory=e,this.isValueCreated=!1}get Value(){return this.isValueCreated||(this.createdValue=this.factory(),this.isValueCreated=!0),this.createdValue}get IsValueCreated(){return this.isValueCreated}}function Xe(e,n){let t=e.toString(10);for(;t.length<n;)t="0"+t;return t}function Ke(e){const n=e;return"number"==typeof n.offset?n.offset:1===e.kind?0:-6e4*e.getTimezoneOffset()}function Qe(e,n){return(e=e<0&&null!=n&&10!==n?4294967295+e+1:e).toString(n)}class en{static id(e){return en.idMap.has(e)||en.idMap.set(e,++en.count),en.idMap.get(e)}}function nn(e){let n=0,t=5381;const r=e.length;for(;n<r;)t=33*t^e.charCodeAt(n++);return t}function tn(e){return 2654435761*e|0}function rn(e){return 0===e.length?0:e.reduce(((e,n)=>(e<<5)+e^n))}function on(e){var n;if(null==e)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return tn(e);case"string":return nn(e);default:if(function(e){return null!=e&&"function"==typeof e.GetHashCode}(e))return e.GetHashCode();if(Le(e))return function(e){const n=e.length,t=new Array(n);for(let r=0;r<n;r++)t[r]=on(e[r]);return rn(t)}(e);if(e instanceof Date)return function(e){return e.getTime()}(e);if((null===(n=Object.getPrototypeOf(e))||void 0===n?void 0:n.constructor)===Object){const n=Object.values(e).map((e=>on(e)));return rn(n)}return tn(en.id(e))}}function un(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 sn(e,n){return un(e,n,ln)}function ln(e,n){var t;return e===n||(null==e?null==n:null!=n&&(function(e){return null!=e&&"function"==typeof e.Equals}(e)?e.Equals(n):Le(e)?Le(n)&&sn(e,n):"object"==typeof e&&(e instanceof Date?n instanceof Date&&0===cn(e,n):(null===(t=Object.getPrototypeOf(e))||void 0===t?void 0:t.constructor)===Object&&function(e,n){const t=Object.keys(e),r=Object.keys(n);if(t.length!==r.length)return!1;t.sort(),r.sort();for(let o=0;o<t.length;o++)if(t[o]!==r[o]||!ln(e[t[o]],n[r[o]]))return!1;return!0}(e,n))))}function cn(e,n){let t,r;return"offset"in e&&"offset"in n?(t=e.getTime(),r=n.getTime()):(t=e.getTime()+Ke(e),r=n.getTime()+Ke(n)),t===r?0:t<r?-1:1}function an(e,n){return e===n?0:e<n?-1:1}function fn(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,hn)}function hn(e,n){var t;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):Le(e)?Le(n)?fn(e,n):-1:"object"!=typeof e?e<n?-1:1:e instanceof Date?n instanceof Date?cn(e,n):-1:(null===(t=Object.getPrototypeOf(e))||void 0===t?void 0:t.constructor)===Object?function(e,n){const t=Object.keys(e),r=Object.keys(n);if(t.length!==r.length)return t.length<r.length?-1:1;t.sort(),r.sort();for(let o=0,i=0;o<t.length;o++){const u=t[o];if(u!==r[o])return u<r[o]?-1:1;if(i=hn(e[u],n[u]),0!==i)return i}return 0}(e,n):-1}function dn(e){const n={};for(const t of e)n[t[0]]=t[1];return n}en.idMap=new WeakMap,en.count=0;const _n=Symbol("curried");function pn(e,n){if(null==n||n.length>1)return n;const t=(...t)=>{let r=n;for(let n=0;n<e;n++)r=r(t[n]);return r};return t[_n]=n,t}function mn(e){const n=e<0,t=(e=Math.abs(e))%36e5/6e4;return(n?"-":"+")+Xe(~~(e/36e5),2)+":"+Xe(t,2)}function gn(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 yn(e,n,t){return n.replace(/(\w)\1*/g,(n=>{let r=Number.NaN;switch(n.substring(0,1)){case"y":const o=t?e.getUTCFullYear():e.getFullYear();r=n.length<4?o%100:o;break;case"M":r=(t?e.getUTCMonth():e.getMonth())+1;break;case"d":r=t?e.getUTCDate():e.getDate();break;case"H":r=t?e.getUTCHours():e.getHours();break;case"h":const i=t?e.getUTCHours():e.getHours();r=i>12?i%12:i;break;case"m":r=t?e.getUTCMinutes():e.getMinutes();break;case"s":r=t?e.getUTCSeconds():e.getSeconds();break;case"f":r=t?e.getUTCMilliseconds():e.getMilliseconds()}return Number.isNaN(r)?n:Xe(r,n.length)}))}function wn(e,n,t){return null!=e.offset?function(e,n){var t,r,o;const i=new Date(e.getTime()+(null!==(t=e.offset)&&void 0!==t?t:0));if("string"!=typeof n)return i.toISOString().replace(/\.\d+/,"").replace(/[A-Z]|\.\d+/g," ")+mn(null!==(r=e.offset)&&void 0!==r?r:0);if(1!==n.length)return yn(i,n,!0);switch(n){case"D":case"d":return gn(i,"first");case"T":case"t":return gn(i,"second");case"O":case"o":return function(e,n){const t=e.toISOString();return t.substring(0,t.length-1)+mn(n)}(i,null!==(o=e.offset)&&void 0!==o?o:0);default:throw new Error("Unrecognized Date print format")}}(e,n):function(e,n){const t=1===e.kind;if("string"!=typeof n)return t?e.toUTCString():e.toLocaleString();if(1!==n.length)return yn(e,n,t);switch(n){case"D":case"d":return t?gn(e,"first"):e.toLocaleDateString();case"T":case"t":return t?gn(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 Xe(e.getFullYear(),4)+"-"+Xe(e.getMonth()+1,2)+"-"+Xe(e.getDate(),2)+"T"+Xe(e.getHours(),2)+":"+Xe(e.getMinutes(),2)+":"+Xe(e.getSeconds(),2)+"."+Xe(e.getMilliseconds(),3)+(n?mn(-6e4*e.getTimezoneOffset()):"")}}(e,t);default:throw new Error("Unrecognized Date print format")}}(e,n)}function vn(e,n){const t=new Date(e);return t.kind=0|(null==n?0:n),t}function bn(e){function n(){throw new Error(`The string is not a valid Date: ${e}`)}null!=e&&""!==e.trim()||n(),10===e.length&&"-"===e[4]&&"-"===e[7]&&(e+="T00:00:00");let t=new Date(e),r=null;if(isNaN(t.getTime())){const o=/^\s*(\d+[^\w\s:]\d+[^\w\s:]\d+)?\s*(\d+:\d+(?::\d+(?:\.\d+)?)?)?\s*([AaPp][Mm])?\s*(Z|[+-]([01]?\d):?([0-5]?\d)?)?\s*$/.exec(e);if(null!=o){let e,n=0;if(null!=o[2]){const e=o[2].split(":");n=3600*parseInt(e[0],10)+60*parseInt(e[1]||"0",10)+parseFloat(e[2]||"0"),null!=o[3]&&"PM"===o[3].toUpperCase()&&(n+=720)}if(null!=o[4]){if(null!=o[1])e=new Date(o[1]+" UTC");else{const n=new Date;e=new Date(n.getUTCFullYear()+"/"+(n.getUTCMonth()+1)+"/"+n.getUTCDate())}if("Z"===o[4])r="Z";else{let e=60*parseInt(o[5],10)+parseInt(o[6]||"0",10);"-"===o[4][0]&&(e*=-1),r=e,n-=60*e}}else if(null!=o[1])e=new Date(o[1]);else{const n=new Date;e=new Date(n.getFullYear()+"/"+(n.getMonth()+1)+"/"+n.getDate())}t=new Date(e.getTime()+1e3*n),t=new Date(t.getTime()+6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))}else n();isNaN(t.getTime())&&n()}return[t,r]}function Cn(e,n){try{return n.contents=function(e,n=!1){const[t,r]=bn(e),o=null!=r?n&&"Z"===r?1:2:0;return vn(t.getTime(),o)}(e),!0}catch(e){return!1}}const Sn=Symbol("numeric");function En(e){return"number"==typeof e||(null==e?void 0:e[Sn])}function xn(e,n){return"number"==typeof e?e*n:e[Sn]().multiply(n)}function kn(e,n){return"number"==typeof e?e.toFixed(n):e[Sn]().toFixed(n)}function Tn(e,n){return"number"==typeof e?e.toPrecision(n):e[Sn]().toPrecision(n)}function In(e,n){return"number"==typeof e?e.toExponential(n):e[Sn]().toExponential(n)}function On(e){return"number"==typeof e?(Number(e)>>>0).toString(16):e[Sn]().toHex()}function Mn(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function Nn(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}function An(e,n=0){var t,r;if(null!=e&&"object"==typeof e){if("function"==typeof e.toString)return e.toString();if(Symbol.iterator in e)return function(e){let n=0,t="[";for(const r of e){if(0===n)t+=An(r);else{if(100===n){t+="; ...";break}t+="; "+An(r)}n++}return t+"]"}(e);{const o=null===(t=Object.getPrototypeOf(e))||void 0===t?void 0:t.constructor;return o===Object&&n<10?"{ "+Object.entries(e).map((([e,t])=>e+" = "+An(t,n+1))).join("\n ")+" }":null!==(r=null==o?void 0:o.name)&&void 0!==r?r:""}}return String(e)}class Dn{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=An(n[0]),r=t.indexOf(" ")>=0):t=n.map((e=>An(e))).join(", "),e+(r?" (":" ")+t+(r?")":"")}}(this.name,this.fields)}GetHashCode(){const e=this.fields.map((e=>on(e)));return e.splice(0,0,tn(this.tag)),rn(e)}Equals(e){return this===e||!!We(this,e)&&this.tag===e.tag&&sn(this.fields,e.fields)}CompareTo(e){return this===e?0:We(this,e)?this.tag===e.tag?fn(this.fields,e.fields):this.tag<e.tag?-1:1:-1}}class Rn{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+" = "+An(n))).join("\n ")+" }";var e}GetHashCode(){return function(e){const n=Object.values(e).map((e=>on(e)));return rn(n)}(this)}Equals(e){return function(e,n){if(e===n)return!0;if(We(e,n)){const t=Object.keys(e);for(let r=0;r<t.length;r++)if(!ln(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(We(e,n)){const t=Object.keys(e);for(let r=0;r<t.length;r++){const o=hn(e[t[r]],n[t[r]]);if(0!==o)return o}return 0}return-1}(this,e)}}class Gn{constructor(e,n){"function"==typeof n?(this.getter=e,this.setter=n):(this.getter=()=>e,this.setter=n=>{e=n})}get contents(){return this.getter()}set contents(e){this.setter(e)}}class Pn{constructor(e){this.message=e}}function Un(e){return function(e){return e instanceof Pn||e instanceof Error}(e)?e:new Error(String(e))}const Fn=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g,Hn=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function $n(e,n){return function(e,n){return"number"==typeof e?e<n?-1:e>n?1:0:e.CompareTo(n)}(e,n)<0}function jn(e){return{input:e,cont:(n=e,e=>{Fn.lastIndex=0;const t=[],r=[];let o=0,i=Fn.exec(n);for(;i;){const e=i.index+(i[1]||"").length;t.push(n.substring(o,e).replace(/%%/g,"%")),r.push(i),o=Fn.lastIndex,Fn.lastIndex-=1,i=Fn.exec(n)}return 0===t.length?e(n.replace(/%%/g,"%")):(t.push(n.substring(o).replace(/%%/g,"%")),qn(e,t,r))})};var n}function Bn(e,n){return"string"==typeof n?e(n):n.cont(e)}function Ln(e){return Bn((e=>e),e)}function Vn(e){return Bn((e=>{throw new Error(e)}),e)}function Wn(e,n,t,r,o){let i="";if(n=n||"",o=o||"",En(e))switch("x"!==o.toLowerCase()&&($n(e,0)?(e=xn(e,-1),i="-"):n.indexOf(" ")>=0?i=" ":n.indexOf("+")>=0&&(i="+")),r=null==r?null:parseInt(r,10),o){case"f":case"F":e=kn(e,r=null!=r?r:6);break;case"g":case"G":e=null!=r?Tn(e,r):Tn(e);break;case"e":case"E":e=null!=r?In(e,r):In(e);break;case"x":e=On(e);break;case"X":e=On(e).toUpperCase();break;default:e=String(e)}else e=e instanceof Date?wn(e):An(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,u=o||!r?" ":"0";e="0"===u?i+(e=Jn(e,t-i.length,u,o)):Jn(i+e,t,u,o)}return e}function qn(e,n,t,r="",o=-1){return(...i)=>{let u=r;const s=n.slice(),l=t.slice();for(const e of i){const[,,n,t,r,i]=l[0];let c=t;if(o>=0)c=o,o=-1;else if("*"===c){if(e<0)throw new Error("Non-negative number required");o=e;continue}u+=s[0],u+=Wn(e,n,c,r,i),s.splice(0,1),l.splice(0,1)}return 0===l.length?(u+=s[0],e(u)):qn(e,s,l,u,o)}}function zn(e,n){return Array.isArray(n)?n.join(e):Array.from(n).join(e)}function Jn(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 Zn(e,n,t){return Jn(e,n,t)}const Yn="Collection was empty.";class Xn{constructor(e){this.value=e}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return on(this.value)}Equals(e){return null!=e&&ln(this.value,e instanceof Xn?e.value:e)}CompareTo(e){return null==e?1:hn(this.value,e instanceof Xn?e.value:e)}}function Kn(e){return null==e||e instanceof Xn?new Xn(e):e}function Qn(e){if(null==e)throw new Error("Option has no value");return e instanceof Xn?e.value:e}function et(e,n){return null!=e?Qn(e):n}function nt(e,n,t,r){const o=0|n;return e.fill(r,o,o+t)}function tt(e,n,t){const r=0|n.length,o=function(e,n){return"function"==typeof e?new e(n):new Array(n)}(t,r);for(let t=0;t<=r-1;t++)o[t]=e(n[t]);return o}function rt(e,n,t){return t.reduce(e,n)}function ot(e,n,t,r){return function(e,n,t,r){let o=r;n.length!==t.length&&function(){throw new Error("Arrays had different lengths")}();const i=0|n.length;for(let r=1;r<=i;r++)o=e(0,n[i-r],t[i-r],o);return o}(((n,t,r,o)=>e(t,r,o)),n,t,r)}class it extends Rn{constructor(e,n){super(),this.head=e,this.tail=n}toString(){return"["+zn("; ",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 u=o,s=i;if(ln(t.head,r.head)){e=u,n=s;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,u=i.tail;if(null==u)return 0|o;{const s=u;if(r>18)return 0|o;e=r+1,n=(o<<1)+on(i.head)+631*r,t=s}}})(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 u=o,s=i,l=0|hn(t.head,r.head);if(0===l){e=u,n=s;continue e}return 0|l}return 1}return null!=i?-1:0}})(this,e)}GetEnumerator(){return new ut(this)}[Symbol.iterator](){return Ze(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return Je(this)}}class ut{constructor(e){this.xs=e,this.it=this.xs,this.current=null}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current}"System.Collections.IEnumerator.get_Current"(){return this.current}"System.Collections.IEnumerator.MoveNext"(){const e=this,n=e.it.tail;if(null!=n){const t=n;return e.current=e.it.head,e.it=t,!0}return!1}"System.Collections.IEnumerator.Reset"(){const e=this;e.it=e.xs,e.current=null}Dispose(){}}function st(){return new it(null,void 0)}function lt(e,n){return new it(e,n)}function ct(e){return null==e.tail}function at(e){if(null!=e.tail)return e.head;throw new Error(Yn+"\\nParameter name: list")}function ft(e){const n=e.tail;if(null!=n)return n;throw new Error(Yn+"\\nParameter name: list")}function ht(){return st()}function dt(e,n){return lt(e,n)}function _t(e){return lt(e,st())}function pt(e){return ct(e)}function mt(e){return at(e)}function gt(e){return ft(e)}function yt(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=r}})(0,e)}(e),t=nt(new Array(n),0,n,null);return((e,n)=>{for(;;){const r=e,o=n;if(ct(o))break;t[r]=at(o),e=r+1,n=ft(o)}})(0,e),t}function wt(e,n,t){let r=n,o=t;for(;!ct(o);)r=e(r,at(o)),o=ft(o);return r}function vt(e){return wt(((e,n)=>lt(n,e)),st(),e)}function bt(e,n){let t=n;for(let n=e.length-1;n>=0;n--)t=lt(e[n],t);return t}function Ct(e){return bt(e,st())}function St(e,n){return wt(((e,n)=>lt(n,e)),n,vt(e))}const Et=(e,n)=>{X((()=>{const n=e();return()=>{n.Dispose()}}),n)};function xt(e){return{Dispose(){e()}}}function kt(e){return je.useRef(e)}function Tt(e){const n=kt(e),t=function(e,t){const r=et([],[]);return je.useCallback((e=>n.current(e)),r)}();var r,o;return r=()=>{n.current=e},o=e=>(r(),xt((()=>{}))),K((()=>{const e=o();return()=>{e.Dispose()}})),t}function It(e){return je.useState(e)}class Ot{constructor(e,n,t,r){this.declaringType=e,this.tag=n,this.name=t,this.fields=r}}class Mt{constructor(e,n,t,r,o,i,u){this.fullname=e,this.generics=n,this.construct=t,this.parent=r,this.fields=o,this.cases=i,this.enumCases=u}toString(){return Ft(this)}GetHashCode(){return At(this)}Equals(e){return Dt(this,e)}}function Nt(e){return null!=e.generics?e.generics:[]}function At(e){return rn([nn(e.fullname),...Nt(e).map(At)])}function Dt(e,n){return""===e.fullname?""===n.fullname&&un(Jt(e),Jt(n),(([e,n],[t,r])=>e===t&&Dt(n,r))):e.fullname===n.fullname&&un(Nt(e),Nt(n),Dt)}function Rt(...e){return new Mt("",void 0,void 0,void 0,(()=>e))}const Gt=new Mt("System.Object"),Pt=(new Mt("Microsoft.FSharp.Core.Unit"),new Mt("System.Char"),new Mt("System.String"),new Mt("System.Boolean"),new Mt("System.SByte"),new Mt("System.Byte"),new Mt("System.Int16"),new Mt("System.UInt16"),new Mt("System.Int32"));function Ut(e){if(Array.isArray(e))return e[0];if(e instanceof Mt){const n=$t(e);if(null!=n)return Ut(n)+"[]";{const n=e.fullname.lastIndexOf(".");return-1===n?e.fullname:e.fullname.substr(n+1)}}return e.name}function Ft(e){const n=$t(e);return null!=n?Ft(n)+"[]":null==e.generics||0===e.generics.length?e.fullname:e.fullname+"["+e.generics.map((e=>Ft(e))).join(",")+"]"}function Ht(e){return null!=$t(e)}function $t(e){var n;return"[]"===e.fullname&&1===(null===(n=e.generics)||void 0===n?void 0:n.length)?e.generics[0]:void 0}function jt(e){return null!=e.generics&&e.generics.length>0}function Bt(e){return null!=e.enumCases&&e.enumCases.length>0}function Lt(e){return null==e.generics?e:new Mt(e.fullname,e.generics.map((()=>Gt)))}function Vt(e){var n;return null===(n=e.generics)||void 0===n?void 0:n[0]}function Wt(e){if(Bt(e)&&null!=e.enumCases)return e.enumCases.map((e=>e[1]));throw new Error(`${e.fullname} is not an enum type`)}function qt(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 zt(e){if(null!=e.cases)return e.cases();throw new Error(`${e.fullname} is not an F# union type`)}function Jt(e){if(null!=e.fields)return e.fields();throw new Error(`${e.fullname} is not an F# record type`)}function Zt(e){if(Kt(e)&&null!=e.generics)return e.generics;throw new Error(`${e.fullname} is not a tuple type`)}function Yt(e){return e instanceof Mt?null!=e.cases:e instanceof Dn}function Xt(e){return e instanceof Mt?null!=e.fields:e instanceof Rn}function Kt(e){return e.fullname.startsWith("System.Tuple")}function Qt(e){return null==e.fields?[]:e.fields}function er(e,n){const t=(e.fields||[]).length;if(n.length!==t)throw new Error(`Expected an array of length ${t} but got ${n.length}`);return null!=e.declaringType.construct?new e.declaringType.construct(e.tag,n):{}}new Mt("System.UInt32"),new Mt("System.Int64"),new Mt("System.UInt64"),new Mt("System.Numerics.BigInteger"),new Mt("System.IntPtr"),new Mt("System.UIntPtr"),new Mt("System.Single"),new Mt("System.Double"),new Mt("System.Decimal");class nr extends Dn{constructor(e,n){super(),this.tag=e,this.fields=n}cases(){return["Inherited","Default","Specific"]}}class tr extends Rn{constructor(e,n){super(),this.MaxAccounts=0|e,this.ConfigOwnership=n}}class rr{constructor(e=!1){this._id=0,this._cancelled=e,this._listeners=new Map}get isCancelled(){return this._cancelled}cancel(){if(!this._cancelled){this._cancelled=!0;for(const[,e]of this._listeners)e()}}addListener(e){const n=this._id;return this._listeners.set(this._id++,e),n}removeListener(e){return this._listeners.delete(e)}register(e,n){const t=this,r=this.addListener(null==n?e:()=>e(n));return{Dispose(){t.removeListener(r)}}}Dispose(){}}class or extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,or.prototype)}}class ir{constructor(){this.callCount=0}static get maxTrampolineCallCount(){return 2e3}incrementAndCheck(){return this.callCount++>ir.maxTrampolineCallCount}hijack(e){this.callCount=0,setTimeout(e,0)}}function ur(e){return n=>{if(n.cancelToken.isCancelled)n.onCancel(new or);else if(n.trampoline.incrementAndCheck())n.trampoline.hijack((()=>{try{e(n)}catch(e){n.onError(Un(e))}}));else try{e(n)}catch(e){n.onError(Un(e))}}}function sr(e,n){return ur((t=>{e({onSuccess:e=>{try{n(e)(t)}catch(e){t.onError(Un(e))}},onError:t.onError,onCancel:t.onCancel,cancelToken:t.cancelToken,trampoline:t.trampoline})}))}function lr(e){return ur((n=>n.onSuccess(e)))}const cr=new class{Bind(e,n){return sr(e,n)}Combine(e,n){return this.Bind(e,(()=>n))}Delay(e){return ur((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 lr(e)}ReturnFrom(e){return e}TryFinally(e,n){return ur((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 ur((t=>{e({onSuccess:t.onSuccess,onCancel:t.onCancel,cancelToken:t.cancelToken,trampoline:t.trampoline,onError:e=>{try{n(e)(t)}catch(e){t.onError(Un(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 ur((e=>e.onSuccess(void 0)))}};function ar(e){}const fr=new rr;function hr(e,n){return function(e,n,t,r,o){"function"!=typeof n&&(o=n,n=void 0);const i=new ir;e({onSuccess:n||ar,onError:t||ar,onCancel:r||ar,cancelToken:o||fr,trampoline:i})}(e,n)}class dr extends Dn{constructor(e,n){super(),this.tag=e,this.fields=n}cases(){return["HasNotStartedYet","InProgress","Resolved","Failed"]}}function _r(e,n){const t=kt(function(e){const n=new rr(!1);return n}());return Et((()=>xt((()=>{t.current.cancel()}))),[]),Tt((r=>{var o,i;null!=(i=t.current)&&i.isCancelled||function(e,n){hr(e,n)}((o=r,cr.Delay((()=>cr.TryWith(cr.Delay((()=>(n(new dr(1,[])),cr.Bind(e(o),(e=>(n(new dr(2,[e])),cr.Zero())))))),(e=>(n(new dr(3,[e])),cr.Zero())))))),t.current)}))}class pr extends Dn{constructor(e,n){super(),this.tag=e,this.fields=n}cases(){return["Ok","Error"]}}function mr(e,n){return 0===n.tag?new pr(0,[e(n.fields[0])]):new pr(1,[n.fields[0]])}function gr(e,n){return new pr(0,[n])}new class{constructor(){}};function yr(e){const n=gr();return cr.Return(n)}function wr(e,n){return cr.Delay(n)}new class{constructor(){}};class vr extends Dn{constructor(e,n){super(),this.tag=e,this.fields=n}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class br extends Dn{constructor(e,n){super(),this.tag=e,this.fields=n}cases(){return["Header"]}}class Cr extends Dn{constructor(e,n){super(),this.tag=e,this.fields=n}cases(){return["Empty","Text","Binary","Form"]}}class Sr extends Rn{constructor(e,n,t,r,o,i,u,s){super(),this.url=e,this.method=n,this.headers=t,this.withCredentials=r,this.overridenMimeType=o,this.overridenResponseType=i,this.timeout=u,this.content=s}}class Er extends Dn{constructor(e,n){super(),this.tag=e,this.fields=n}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class xr extends Rn{constructor(e,n,t,r,o){super(),this.statusCode=0|e,this.responseText=n,this.responseType=t,this.responseHeaders=r,this.content=o}}class kr{constructor(e){this.f=e}toString(){let e=0,n="seq [";const t=Je(this);try{for(;e<4&&t["System.Collections.IEnumerator.MoveNext"]();)e>0&&(n+="; "),n+=An(t["System.Collections.Generic.IEnumerator`1.get_Current"]()),e=e+1|0;return 4===e&&(n+="; ..."),n+"]"}finally{Ve(t)}}GetEnumerator(){return this.f()}[Symbol.iterator](){return Ze(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}class Tr{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 Ir(e,n,t){let r,o=!1,i=Kn(e());const u=()=>{if(null!=i){const e=Qn(i);try{t(e)}finally{i=void 0}}},s=()=>{try{u()}finally{r=void 0}};return function(e,n,t){return new Tr(e,n,t)}((()=>(o||function(){throw new Error("Enumeration has not started. Call MoveNext.")}(),null!=r?Qn(r):function(){throw new Error("Enumeration already finished.")}())),(()=>{if(o||(o=!0),null!=i){const e=Qn(i);let t;try{t=n(e)}catch(e){throw s(),e}return null!=t?(r=t,!0):(s(),!1)}return!1}),u)}function Or(e){return function(e){return new kr(e)}(e)}function Mr(e){return n="source",null==e&&function(e){throw new Error(e)}(n),Je(e);var n}function Nr(e,n,t){const r=Mr(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{Ve(r)}}function Ar(e,n,t){const r=Mr(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{Ve(r)}}function Dr(e,n){Ar(((n,t)=>{e(t)}),void 0,n)}function Rr(e,n){return t=()=>Mr(n),r=n=>n["System.Collections.IEnumerator.MoveNext"]()?Kn(e(n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,o=e=>{Ve(e)},Or((()=>Ir(t,r,o)));var t,r,o}function Gr(e,n){return t=()=>Mr(n),r=(n,t)=>t["System.Collections.IEnumerator.MoveNext"]()?Kn(e(n,t["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,o=e=>{Ve(e)},Or((()=>{let e=-1;return Ir(t,(n=>(e=e+1|0,r(e,n))),o)}));var t,r,o}class Pr{constructor(e,n){this.cleanup=e,this.res=n}Dispose(){this.cleanup()}GetEnumerator(){return getEnumerator(this.res)}[Symbol.iterator](){return toIterator(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return getEnumerator(this.res)}}class Ur{constructor(e,n){this.k=e,this.v=n}}function Fr(e,n){return new Ur(e,n)}function Hr(e){return e.k}function $r(e){return e.v}class jr extends Ur{constructor(e,n,t,r,o){super(e,n),this.left=t,this.right=r,this.h=0|o}}function Br(e,n,t,r,o){return new jr(e,n,t,r,o)}function Lr(e){return e.left}function Vr(e){return e.right}function Wr(e){return e.h}function qr(e,n){e:for(;;){const t=e;if(null!=n){const r=n;if(r instanceof jr){e=qr(t+1,Lr(r)),n=Vr(r);continue e}return t+1|0}return 0|t}}function zr(e){return qr(0,e)}function Jr(e,n,t,r){let o,i;o=null!=e?e instanceof jr?Wr(e):1:0,i=null!=r?r instanceof jr?Wr(r):1:0;const u=0|(o<i?i:o);return 0===u?Fr(n,t):Br(n,t,e,r,u+1)}function Zr(e,n,t,r){let o,i,u,s,l,c;if(l=null!=e?e instanceof jr?Wr(e):1:0,c=null!=r?r instanceof jr?Wr(r):1:0,c>l+2){const u=Qn(r);if(u instanceof jr){if(o=Lr(u),(null!=o?(i=o,i instanceof jr?Wr(i):1):0)>l+1){const r=Qn(Lr(u));if(r instanceof jr)return Jr(Jr(e,n,t,Lr(r)),Hr(r),$r(r),Jr(Vr(r),Hr(u),$r(u),Vr(u)));throw new Error("internal error: Map.rebalance")}return Jr(Jr(e,n,t,Lr(u)),Hr(u),$r(u),Vr(u))}throw new Error("internal error: Map.rebalance")}if(l>c+2){const o=Qn(e);if(o instanceof jr){if(u=Vr(o),(null!=u?(s=u,s instanceof jr?Wr(s):1):0)>c+1){const e=Qn(Vr(o));if(e instanceof jr)return Jr(Jr(Lr(o),Hr(o),$r(o),Lr(e)),Hr(e),$r(e),Jr(Vr(e),n,t,r));throw new Error("internal error: Map.rebalance")}return Jr(Lr(o),Hr(o),$r(o),Jr(Vr(o),n,t,r))}throw new Error("internal error: Map.rebalance")}return Jr(e,n,t,r)}function Yr(e,n,t,r){if(null!=r){const o=r,i=0|e.Compare(n,Hr(o));return o instanceof jr?i<0?Zr(Yr(e,n,t,Lr(o)),Hr(o),$r(o),Vr(o)):0===i?Br(n,t,Lr(o),Vr(o),Wr(o)):Zr(Lr(o),Hr(o),$r(o),Yr(e,n,t,Vr(o))):i<0?Br(n,t,void 0,r,2):0===i?Fr(n,t):Br(n,t,r,void 0,2)}return Fr(n,t)}function Xr(e,n,t){e:for(;;){const r=e,o=n;if(null!=t){const i=t,u=0|r.Compare(o,Hr(i));if(0===u)return Kn($r(i));if(i instanceof jr){e=r,n=o,t=u<0?Lr(i):Vr(i);continue e}return}return}}function Kr(e,n){e:for(;;){const t=e;if(null!=n){const r=n;if(r instanceof jr){Kr(t,Lr(r)),t(Hr(r),$r(r)),e=t,n=Vr(r);continue e}t(Hr(r),$r(r))}break}}function Qr(e,n){Kr(e,n)}function eo(e,n){if(null!=n){const t=n;if(t instanceof jr){const n=eo(e,Lr(t)),r=e(Hr(t),$r(t)),o=eo(e,Vr(t));return Br(Hr(t),r,n,o,Wr(t))}return Fr(Hr(t),e(Hr(t),$r(t)))}}function no(e,n){return eo(e,n)}function to(e,n){if(Le(n))return function(e,n){let t;for(let r=0;r<=n.length-1;r++){const o=n[r];t=Yr(e,o[0],o[1],t)}return t}(e,n);if(n instanceof it)return function(e,n){return wt(((n,t)=>Yr(e,t[0],t[1],n)),void 0,n)}(e,n);{const t=Je(n);try{return function(e,n,t){for(;;){const r=e,o=n,i=t;if(!i["System.Collections.IEnumerator.MoveNext"]())return o;{const u=i["System.Collections.Generic.IEnumerator`1.get_Current"]();e=r,n=Yr(r,u[0],u[1],o),t=i}}}(e,void 0,t)}finally{Ve(t)}}}class ro extends Rn{constructor(e,n){super(),this.stack=e,this.started=n}}function oo(e){e:for(;;){const n=e;if(pt(n))return ht();{const t=gt(n),r=mt(n);if(null!=r){const o=r;if(o instanceof jr){e=bt([Lr(o),Fr(Hr(o),$r(o)),Vr(o)],t);continue e}return n}e=t;continue e}}}function io(e){return new ro(oo(_t(e)),!1)}function uo(e){if(e.started){const n=e.stack;if(pt(n))return function(){throw new Error("enumeration already finished")}();if(null!=mt(n)){const e=mt(n);if(e instanceof jr)throw new Error("Please report error: Map iterator, unexpected stack for current");return[Hr(e),$r(e)]}throw new Error("Please report error: Map iterator, unexpected stack for current")}return function(){throw new Error("enumeration not started")}()}function so(e){let n=io(e);return{"System.Collections.Generic.IEnumerator`1.get_Current":()=>uo(n),"System.Collections.IEnumerator.get_Current":()=>uo(n),"System.Collections.IEnumerator.MoveNext":()=>function(e){if(e.started){const n=e.stack;if(pt(n))return!1;if(null!=mt(n)){if(mt(n)instanceof jr)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=oo(gt(n)),!pt(e.stack)}throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}return e.started=!0,!pt(e.stack)}(n),"System.Collections.IEnumerator.Reset"(){n=io(e)},Dispose(){}}}class lo{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=Je(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const e=r["System.Collections.Generic.IEnumerator`1.get_Current"]();t=0|n(t,on(e[0])),t=0|n(t,on(e[1]))}}finally{Ve(r)}return 0|t}(this)}Equals(e){if(!(e instanceof lo))return!1;{const n=Je(this);try{const t=Je(e);try{const e=()=>{const r=n["System.Collections.IEnumerator.MoveNext"]();if(r===t["System.Collections.IEnumerator.MoveNext"]()){if(r){const r=n["System.Collections.Generic.IEnumerator`1.get_Current"](),o=t["System.Collections.Generic.IEnumerator`1.get_Current"]();return!(!ln(r[0],o[0])||!ln(r[1],o[1]))&&e()}return!0}return!1};return e()}finally{Ve(t)}}finally{Ve(n)}}}toString(){return"map ["+zn("; ",Rr((e=>function(e,...n){return"object"==typeof e&&n.length>0&&(e=n[0],n.shift()),e.replace(Hn,((e,t,r,o,i,u)=>{if(t<0||t>=n.length)throw new Error("Index must be greater or equal to zero and less than the arguments' length.");let s=n[t];if(En(s))switch(i=null==i?null:parseInt(i,10),o){case"f":case"F":s=kn(s,i=null!=i?i:2);break;case"g":case"G":s=null!=i?Tn(s,i):Tn(s);break;case"e":case"E":s=null!=i?In(s,i):In(s);break;case"p":case"P":i=null!=i?i:2,s=kn(xn(s,100),i)+" %";break;case"d":case"D":s=null!=i?Zn(String(s),i,"0"):String(s);break;case"x":case"X":s=null!=i?Zn(On(s),i,"0"):On(s),"X"===o&&(s=s.toUpperCase());break;default:if(u){let e="";s=u.replace(/([0#,]+)(\.[0#]+)?/,((n,t,r)=>{$n(s,0)&&(s=xn(s,-1),e="-"),r=null==r?"":r.substring(1),s=kn(s,Math.max(r.length,0));let[o,i]=s.split(".");i||(i=""),o=Zn(o,t.replace(/,/g,"").replace(/^#+/,"").length,"0");const u=r.replace(/#+$/,"").length;if(u>i.length?i=function(e,n,t){return Jn(e,n,"0",!0)}(i,u):u<i.length&&(i=i.substring(0,u)+i.substring(u).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})),s=e+s}}else s=s instanceof Date?wn(s,u||o):An(s);return r=parseInt((r||" ").substring(1),10),isNaN(r)||(s=Jn(String(s),Math.abs(r)," ",r<0)),s}))}("({0}, {1})",e[0],e[1])),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(){return Array.from(this)}GetEnumerator(){return so(this.tree)}[Symbol.iterator](){return Ze(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return so(this.tree)}CompareTo(e){const n=this;if(e instanceof lo)return 0|function(e,n,t){const r=Mr(n);try{const n=Mr(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{Ve(n)}}finally{Ve(r)}}(((e,t)=>{const r=0|n.comparer.Compare(e[0],t[0]);return 0|(0!==r?r:hn(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 ho(this,e[0])&&ln(ao(this,e[0]),e[1])}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(e,n){!function(e,n,t){let r=t;Qr(((e,t)=>{n[r]=[e,t],r=r+1|0}),e)}(this.tree,e,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|fo(this)}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return 0|fo(this)}get size(){return 0|fo(this)}clear(){throw new Error("Map cannot be mutated")}delete(e){throw new Error("Map cannot be mutated")}entries(){return Rr((e=>[e[0],e[1]]),this)}get(e){return ao(this,e)}has(e){return ho(this,e)}keys(){return Rr((e=>e[0]),this)}set(e,n){throw new Error("Map cannot be mutated")}values(){return Rr((e=>e[1]),this)}forEach(e,n){const t=this;Dr((n=>{e(n[1],n[0],t)}),t)}}function co(e,n){return new lo(e,n)}function ao(e,n){return function(e,n,t){const r=Xr(e,n,t);if(null==r)throw new Error;return Qn(r)}(e.comparer,n,e.tree)}function fo(e){return zr(e.tree)}function ho(e,n){return function(e,n,t){e:for(;;){const r=e,o=n;if(null!=t){const i=t,u=0|r.Compare(o,Hr(i));if(i instanceof jr){if(u<0){e=r,n=o,t=Lr(i);continue e}if(0===u)return!0;e=r,n=o,t=Vr(i);continue e}return 0===u}return!1}}(e.comparer,n,e.tree)}function _o(e,n,t){return function(e,n,t){return co(e.comparer,Yr(e.comparer,n,t,e.tree))}(t,e,n)}function po(e,n){return function(e,n){return Xr(e.comparer,n,e.tree)}(n,e)}function mo(e,n){return function(e,n){return co(e.comparer,no(n,e.tree))}(n,e)}function go(e){return function(e){return co(e,void 0)}(e)}const yo=new Sr("",new vr(0,[]),ht(),!1,void 0,void 0,void 0,new Cr(0,[]));function wo(e,n){return"string"!=typeof(t=n)||0===t.length?[n]:function(e,n,t,r){if(r="number"==typeof r?r:0,(t="number"==typeof t?t:void 0)&&t<0)throw new Error("Count cannot be less than zero");if(0===t)return[];const o=1==(1&r),i=2==(2&r);n=(n=n||[]).filter((e=>e)).map(Mn),n=n.length>0?n:["\\s"];const u=[],s=new RegExp(n.join("|"),"g");let l=!0,c=0;do{const n=s.exec(e);if(null===n){const n=i?e.substring(c).trim():e.substring(c);(!o||n.length>0)&&u.push(n),l=!1}else{const r=i?e.substring(c,n.index).trim():e.substring(c,n.index);(!o||r.length>0)&&(null!=t&&u.length+1===t?(u.push(i?e.substring(c).trim():e.substring(c)),l=!1):u.push(r)),c=s.lastIndex}}while(l);return u}(n,[e],null,0);var t}function vo(e){return new Sr(e,yo.method,yo.headers,yo.withCredentials,yo.overridenMimeType,yo.overridenResponseType,yo.timeout,yo.content)}function bo(e,n){return new Sr(n.url,e,n.headers,n.withCredentials,n.overridenMimeType,n.overridenResponseType,n.timeout,n.content)}function Co(e){return function(e){return ur((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,u,s;var l,c;4===t.readyState&&n[0]((r=t.responseType,e=""===r||"text"===r?t.responseText:"",o=0|t.status,i=t.responseType,s=t.responseType,u=""===s||"text"===s?new Er(0,[t.responseText]):new Er("arraybuffer"===s?2:"blob"===s?1:3,[t.response]),new xr(o,e,i,(l=function(e,n,t){const r=[];for(let t=0;t<=n.length-1;t++){const o=e(n[t]);if(null!=o){const e=Qn(o);r.push(e)}}return ln(null,null)?r:tt((e=>e),r,null)}((e=>{const n=Ct(wo(":",e));return pt(n)?void 0:[mt(n).toLocaleLowerCase(),zn(":",gt(n)).trim()]}),wo("\r\n",t.getAllResponseHeaders())),co(c={Compare:an},to(c,l))),u)))};const r=Je(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{Ve(r)}t.withCredentials=e.withCredentials;const o=e.overridenMimeType;if(null==o);else{const e=o;t.overrideMimeType(e)}const i=e.overridenResponseType;null==i||(1===i.tag?t.responseType="blob":2===i.tag?t.responseType="arraybuffer":t.responseType="text");const u=e.timeout;if(null==u);else{const e=0|u;t.timeout=0|e}const s=e.content;0===e.method.tag?t.send(Kn(void 0)):1===s.tag||3===s.tag||2===s.tag?t.send(Kn(s.fields[0])):t.send(Kn(void 0))}))}new xr(0,"","",go({Compare:an}),new Er(0,[""]));class So extends Dn{constructor(e,n){super(),this.tag=e,this.fields=n}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class Eo extends Dn{constructor(e,n){super(),this.tag=e,this.fields=n}cases(){return["PascalCase","CamelCase","SnakeCase"]}}class xo{constructor(){this.cache=new Map([])}}function ko(){return new xo}function To(e){return e.slice(void 0,1).toLowerCase()+e.slice(1,e.length)}function Io(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(0!=(-284&n))throw new Error("RegexOptions only supports: IgnoreCase, Multiline, Compiled, Singleline and ECMAScript");let t="gu";return t+=1&n?"i":"",t+=2&n?"m":"",t+=16&n?"s":"",new RegExp(e,t)}(n,null!=r?r:0),n=t,r=void 0}if("function"==typeof t)return r=null==r?-1:r,n.substring(0,o)+n.substring(o).replace(e,(function(){let e=arguments[0];if(r){r--;const n=[],o=arguments.length,i="string"!=typeof arguments[o-1];let u=i?o-3:o-2;for(let e=0;e<u;e++)n.push(arguments[e]);n.index=arguments[u++],n.input=arguments[u++],i&&(n.groups=arguments[u]),e=t(n)}return e}));if(t=t.replace(/\$0/g,(e=>"$&")).replace(/\${([^}]+)}/g,"$<$1>"),null!=r){let i;const u=n.substring(o),s=Nn(e,u),l=Nn.length>r?(i=s[r-1],u.substring(0,i.index+i[0].length)):u;return n.substring(0,o)+l.replace(e,t)+n.substring(o+l.length)}return n.replace(e,t)}(To(n),"[A-Z]","_$0").toLowerCase();case 0:return n;default:return To(n)}}ko(),ko();const Oo=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,Mo=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,No=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function Ao(e,n){try{return n.contents=function(e){function n(e){return e.replace(Mo,"$1-$2-$3-$4-$5")}const t=e.trim().toLowerCase();if(Oo.test(t))return function(e,...n){if(0===n.length)return e.trim();const t="["+Mn(n.join(""))+"]+";return e.replace(new RegExp("^"+t),"").replace(new RegExp(t+"$"),"")}(t,"{","}","(",")");if(Mo.test(t))return n(t);if(No.test(t))return n(t.replace(/[\{\},]|0x/g,""));throw new Error("Guid should contain 32 digits with 4 dashes: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx")}(e),!0}catch(e){return!1}}var Do;function Ro(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 Go(e,n,t,r,o){try{return o.contents=function(e,n,t,r,o){const i=function(e,n,t){const r=/^\s*([\+\-])?(0[xXoObB])?([0-9a-fA-F]+)\s*$/.exec(e.replace(/_/g,""));if(null!=r){const[,,e,o]=r;t=t||function(e,n){if(n&Do.AllowHexSpecifier)return 16;switch(e){case"0b":case"0B":return 2;case"0o":case"0O":return 8;case"0x":case"0X":return 16;default:return 10}}(e,n);const i=function(e){switch(e){case 2:return/[^0-1]/;case 8:return/[^0-7]/;case 10:return/[^0-9]/;case 16:return/[^0-9a-fA-F]/;default:throw new Error("Invalid Base.")}}(t);if(!i.test(o))return function(e,n){const[,t,r,o]=e;return{sign:t||"",prefix:r||"",digits:o,radix:n}}(r,t)}return null}(e,n,void 0);if(null!=i){let e=Number.parseInt(i.sign+i.digits,i.radix);if(!Number.isNaN(e)){const[n,o]=Ro(!0,r);!t&&10!==i.radix&&e>=n&&e<=o&&(e=e<<32-r>>32-r);const[u,s]=Ro(t,r);if(e>=u&&e<=s)return e}}throw new Error("Input string was not in a correct format.")}(e,n,t,r),!0}catch(e){return!1}}function Po(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 Uo(e,n){try{return n.contents=function(e){const[n,t]=bn(e),r=null==t?-6e4*n.getTimezoneOffset():"Z"===t?0:6e4*t;return Po(n.getTime(),r)}(e),!0}catch(e){return!1}}!function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"}(Do||(Do={}));var Fo=null;try{Fo=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch(s){}function Ho(e,n,t){this.low=0|e,this.high=0|n,this.unsigned=!!t}function $o(e){return!0===(e&&e.__isLong__)}Ho.prototype.GetHashCode=function(){let e=this.unsigned?1:0;return e=(e<<5)+e^this.high,e=(e<<5)+e^this.low,e},Ho.prototype.Equals=function(e){return di(this,e)},Ho.prototype.CompareTo=function(e){return gi(this,e)},Ho.prototype.toString=function(e){return ci(this,e)},Ho.prototype.toJSON=function(){return ci(this)},Ho.prototype[Sn]=function(){const e=this;return{multiply:n=>bi(e,n),toPrecision:n=>String(e)+(0).toPrecision(n).substr(1),toExponential:n=>String(e)+(0).toExponential(n).substr(1),toFixed:n=>String(e)+(0).toFixed(n).substr(1),toHex:()=>{return ci(e.unsigned?e:function(e,n,t){return t?function(e,n){return new Ho(e[0]|e[1]<<8|e[2]<<16|e[3]<<24,e[4]|e[5]<<8|e[6]<<16|e[7]<<24,n)}(e,n):function(e,n){return new Ho(e[4]<<24|e[5]<<16|e[6]<<8|e[7],e[0]<<24|e[1]<<16|e[2]<<8|e[3],n)}(e,n)}((n=e,t?function(e){var n=e.high,t=e.low;return[255&t,t>>>8&255,t>>>16&255,t>>>24,255&n,n>>>8&255,n>>>16&255,n>>>24]}(n):function(e){var n=e.high,t=e.low;return[n>>>24,n>>>16&255,n>>>8&255,255&n,t>>>24,t>>>16&255,t>>>8&255,255&t]}(n)),!0),16);var n,t}}},Ho.prototype.__isLong__,Object.defineProperty(Ho.prototype,"__isLong__",{value:!0});var jo={},Bo={};function Lo(e,n){var t,r,o;return n?(o=0<=(e>>>=0)&&e<256)&&(r=Bo[e])?r:(t=Wo(e,(0|e)<0?-1:0,!0),o&&(Bo[e]=t),t):(o=-128<=(e|=0)&&e<128)&&(r=jo[e])?r:(t=Wo(e,e<0?-1:0,!1),o&&(jo[e]=t),t)}function Vo(e,n){if(isNaN(e))return n?ei:Qo;if(n){if(e<0)return ei;if(e>=Yo)return ii}else{if(e<=-Xo)return ui;if(e+1>=Xo)return oi}return e<0?yi(Vo(-e,n)):Wo(e%Zo|0,e/Zo|0,n)}function Wo(e,n,t){return new Ho(e,n,t)}var qo=Math.pow;function zo(e,n,t){if(0===e.length)throw Error("empty string");if("NaN"===e||"Infinity"===e||"+Infinity"===e||"-Infinity"===e)return Qo;if("number"==typeof n?(t=n,n=!1):n=!!n,(t=t||10)<2||36<t)throw RangeError("radix");var r=e.indexOf("-");if(r>0)throw Error("interior hyphen");if(0===r)return yi(zo(e.substring(1),n,t));for(var o=Vo(qo(t,8)),i=Qo,u=0;u<e.length;u+=8){var s=Math.min(8,e.length-u),l=parseInt(e.substring(u,u+s),t);i=wi(s<8?bi(i,Vo(qo(t,s))):i=bi(i,o),Vo(l))}return i.unsigned=n,i}function Jo(e,n){return"number"==typeof e?Vo(e,n):"string"==typeof e?zo(e,n):Wo(e.low,e.high,"boolean"==typeof n?n:e.unsigned)}var Zo=4294967296,Yo=Zo*Zo,Xo=Yo/2,Ko=Lo(1<<24),Qo=Lo(0),ei=Lo(0,!0),ni=Lo(1),ti=Lo(1,!0),ri=Lo(-1),oi=Wo(-1,2147483647,!1),ii=Wo(-1,-1,!0),ui=Wo(0,-2147483648,!1);function si(e){return e.unsigned?e.low>>>0:e.low}function li(e){return e.unsigned?(e.high>>>0)*Zo+(e.low>>>0):e.high*Zo+(e.low>>>0)}function ci(e,n){if((n=n||10)<2||36<n)throw RangeError("radix");if(ai(e))return"0";if(fi(e)){if(di(e,ui)){var t=Vo(n),r=Ci(e,t),o=vi(bi(r,t),e);return ci(r,n)+si(o).toString(n)}return"-"+ci(yi(e),n)}for(var i=Vo(qo(n,6),e.unsigned),u=e,s="";;){var l=Ci(u,i),c=(si(vi(u,bi(l,i)))>>>0).toString(n);if(ai(u=l))return c+s;for(;c.length<6;)c="0"+c;s=""+c+s}}function ai(e){return 0===e.high&&0===e.low}function fi(e){return!e.unsigned&&e.high<0}function hi(e){return 1==(1&e.low)}function di(e,n){return $o(n)||(n=Jo(n)),(e.unsigned===n.unsigned||e.high>>>31!=1||n.high>>>31!=1)&&e.high===n.high&&e.low===n.low}function _i(e,n){return gi(e,n)<0}function pi(e,n){return gi(e,n)>0}function mi(e,n){return gi(e,n)>=0}function gi(e,n){if($o(n)||(n=Jo(n)),di(e,n))return 0;var t=fi(e),r=fi(n);return t&&!r?-1:!t&&r?1:e.unsigned?n.high>>>0>e.high>>>0||n.high===e.high&&n.low>>>0>e.low>>>0?-1:1:fi(vi(e,n))?-1:1}function yi(e){return!e.unsigned&&di(e,ui)?ui:wi(function(e){return Wo(~e.low,~e.high,e.unsigned)}(e),ni)}function wi(e,n){$o(n)||(n=Jo(n));var t=e.high>>>16,r=65535&e.high,o=e.low>>>16,i=65535&e.low,u=n.high>>>16,s=65535&n.high,l=n.low>>>16,c=0,a=0,f=0,h=0;return f+=(h+=i+(65535&n.low))>>>16,a+=(f+=o+l)>>>16,c+=(a+=r+s)>>>16,c+=t+u,Wo((f&=65535)<<16|(h&=65535),(c&=65535)<<16|(a&=65535),e.unsigned)}function vi(e,n){return $o(n)||(n=Jo(n)),wi(e,yi(n))}function bi(e,n){if(ai(e))return e.unsigned?ei:Qo;if($o(n)||(n=Jo(n)),Fo)return Wo(Fo.mul(e.low,e.high,n.low,n.high),Fo.get_high(),e.unsigned);if(ai(n))return e.unsigned?ei:Qo;if(di(e,ui))return hi(n)?ui:Qo;if(di(n,ui))return hi(e)?ui:Qo;if(fi(e))return fi(n)?bi(yi(e),yi(n)):yi(bi(yi(e),n));if(fi(n))return yi(bi(e,yi(n)));if(_i(e,Ko)&&_i(n,Ko))return Vo(li(e)*li(n),e.unsigned);var t=e.high>>>16,r=65535&e.high,o=e.low>>>16,i=65535&e.low,u=n.high>>>16,s=65535&n.high,l=n.low>>>16,c=65535&n.low,a=0,f=0,h=0,d=0;return h+=(d+=i*c)>>>16,f+=(h+=o*c)>>>16,h&=65535,f+=(h+=i*l)>>>16,a+=(f+=r*c)>>>16,f&=65535,a+=(f+=o*l)>>>16,f&=65535,a+=(f+=i*s)>>>16,a+=t*c+r*l+o*s+i*u,Wo((h&=65535)<<16|(d&=65535),(a&=65535)<<16|(f&=65535),e.unsigned)}function Ci(e,n){if($o(n)||(n=Jo(n)),ai(n))throw Error("division by zero");var t,r,o;if(Fo)return e.unsigned||-2147483648!==e.high||-1!==n.low||-1!==n.high?Wo((e.unsigned?Fo.div_u:Fo.div_s)(e.low,e.high,n.low,n.high),Fo.get_high(),e.unsigned):e;if(ai(e))return e.unsigned?ei:Qo;if(e.unsigned){if(n.unsigned||(n=function(e){return e.unsigned?e:Wo(e.low,e.high,!0)}(n)),pi(n,e))return ei;if(pi(n,function(e,n){if($o(n)&&(n=si(n)),0==(n&=63))return e;var t=e.high;return n<32?Wo(e.low>>>n|t<<32-n,t>>>n,e.unsigned):Wo(32===n?t:t>>>n-32,0,e.unsigned)}(e,1)))return ti;o=ei}else{if(di(e,ui))return di(n,ni)||di(n,ri)?ui:di(n,ui)?ni:di(t=function(e,n){return $o(n)&&(n=si(n)),0==(n&=63)?e:n<32?Wo(e.low<<n,e.high<<n|e.low>>>32-n,e.unsigned):Wo(0,e.low<<n-32,e.unsigned)}(Ci(function(e,n){return $o(n)&&(n=si(n)),0==(n&=63)?e:n<32?Wo(e.low>>>n|e.high<<32-n,e.high>>n,e.unsigned):Wo(e.high>>n-32,e.high>=0?0:-1,e.unsigned)}(e,1),n),1),Qo)?fi(n)?ni:ri:o=wi(t,Ci(r=vi(e,bi(n,t)),n));if(di(n,ui))return e.unsigned?ei:Qo;if(fi(e))return fi(n)?Ci(yi(e),yi(n)):yi(Ci(yi(e),n));if(fi(n))return yi(Ci(e,yi(n)));o=Qo}for(r=e;mi(r,n);){t=Math.max(1,Math.floor(li(r)/li(n)));for(var i=Math.ceil(Math.log(t)/Math.LN2),u=i<=48?1:qo(2,i-48),s=Vo(t),l=bi(s,n);fi(l)||pi(l,r);)l=bi(s=Vo(t-=u,e.unsigned),n);ai(s)&&(s=ni),o=wi(o,s),r=vi(r,l)}return o}const Si=Ci,Ei=li;function xi(e){return e<0?Math.ceil(e):Math.floor(e)}function ki(e=0,n=0,t=0,r=0,o=0){switch(arguments.length){case 1:return Ti(arguments[0]);case 3:e=0,n=arguments[0],t=arguments[1],r=arguments[2],o=0}return 864e5*e+36e5*n+6e4*t+1e3*r+o}function Ti(e){return Ei(Si(e,1e4))}function Ii(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 ki(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,u=+n[4],s=+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*ki(t,u,s,o,r)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}(e),!0}catch(e){return!1}}class Oi{constructor(e){this.k=e}}function Mi(e){return new Oi(e)}function Ni(e){return e.k}class Ai extends Oi{constructor(e,n,t,r){super(e),this.left=n,this.right=t,this.h=0|r}}function Di(e,n,t,r){return new Ai(e,n,t,r)}function Ri(e){return e.left}function Gi(e){return e.right}function Pi(e){return e.h}function Ui(e,n){e:for(;;){const t=n;if(null!=e){const r=e;if(r instanceof Ai){e=Ri(r),n=Ui(Gi(r),t+1);continue e}return t+1|0}return 0|t}}function Fi(e){return Ui(e,0)}function Hi(e,n,t){let r,o;r=null!=e?e instanceof Ai?Pi(e):1:0,o=null!=t?t instanceof Ai?Pi(t):1:0;const i=0|(r<o?o:r);return 0===i?Mi(n):Di(n,e,t,i+1)}function $i(e,n,t){let r,o,i,u,s,l;if(s=null!=e?e instanceof Ai?Pi(e):1:0,l=null!=t?t instanceof Ai?Pi(t):1:0,l>s+2){const i=Qn(t);if(i instanceof Ai){if(r=Ri(i),(null!=r?(o=r,o instanceof Ai?Pi(o):1):0)>s+1){const t=Qn(Ri(i));if(t instanceof Ai)return Hi(Hi(e,n,Ri(t)),Ni(t),Hi(Gi(t),Ni(i),Gi(i)));throw new Error("internal error: Set.rebalance")}return Hi(Hi(e,n,Ri(i)),Ni(i),Gi(i))}throw new Error("internal error: Set.rebalance")}if(s>l+2){const r=Qn(e);if(r instanceof Ai){if(i=Gi(r),(null!=i?(u=i,u instanceof Ai?Pi(u):1):0)>l+1){const e=Qn(Gi(r));if(e instanceof Ai)return Hi(Hi(Ri(r),Ni(r),Ri(e)),Ni(e),Hi(Gi(e),n,t));throw new Error("internal error: Set.rebalance")}return Hi(Ri(r),Ni(r),Hi(Gi(r),n,t))}throw new Error("internal error: Set.rebalance")}return Hi(e,n,t)}function ji(e,n,t){if(null!=t){const r=t,o=0|e.Compare(n,Ni(r));if(r instanceof Ai)return o<0?$i(ji(e,n,Ri(r)),Ni(r),Gi(r)):0===o?t:$i(Ri(r),Ni(r),ji(e,n,Gi(r)));{const o=0|e.Compare(n,Ni(r));return o<0?Di(n,void 0,t,2):0===o?t:Di(n,t,void 0,2)}}return Mi(n)}function Bi(e,n,t){e:for(;;){const r=e,o=n;if(null!=t){const i=t,u=0|r.Compare(o,Ni(i));if(i instanceof Ai){if(u<0){e=r,n=o,t=Ri(i);continue e}if(0===u)return!0;e=r,n=o,t=Gi(i);continue e}return 0===u}return!1}}function Li(e,n){e:for(;;){const t=e;if(null!=n){const r=n;if(r instanceof Ai){Li(t,Ri(r)),t(Ni(r)),e=t,n=Gi(r);continue e}t(Ni(r))}break}}class Vi extends Rn{constructor(e,n){super(),this.stack=e,this.started=n}}function Wi(e){e:for(;;){const n=e;if(pt(n))return ht();{const t=mt(n),r=gt(n);if(null!=t){const o=t;if(o instanceof Ai){e=bt([Ri(o),Mi(Ni(o)),Gi(o)],r);continue e}return n}e=r;continue e}}}function qi(e){return new Vi(Wi(_t(e)),!1)}function zi(e){if(e.started){const n=e.stack;if(pt(n))return function(){throw new Error("Enumeration already started")}();if(null!=mt(n))return Ni(mt(n));throw new Error("Please report error: Set iterator, unexpected stack for current")}return function(){throw new Error("Enumeration not started")}()}function Ji(e){let n=qi(e);return{"System.Collections.Generic.IEnumerator`1.get_Current":()=>zi(n),"System.Collections.IEnumerator.get_Current":()=>zi(n),"System.Collections.IEnumerator.MoveNext":()=>function(e){if(e.started){const n=e.stack;if(pt(n))return!1;if(null!=mt(n)){if(mt(n)instanceof Ai)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=Wi(gt(n)),!pt(e.stack)}throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}return e.started=!0,!pt(e.stack)}(n),"System.Collections.IEnumerator.Reset"(){n=qi(e)},Dispose(){}}}function Zi(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(pt(o))return pt(i)?0:-1;if(pt(i))return 1;if(null!=mt(i))if(null!=mt(o)){const u=mt(o),s=mt(i);if(u instanceof Ai)if(null==Ri(u)){if(!(s instanceof Ai)){const l=0|r.Compare(Ni(u),Ni(s));if(0!==l)return 0|l;e=r,n=dt(Gi(u),gt(o)),t=dt(void 0,gt(i));continue e}if(null==Ri(s)){const l=0|r.Compare(Ni(u),Ni(s));if(0!==l)return 0|l;e=r,n=dt(Gi(u),gt(o)),t=dt(Gi(s),gt(i));continue e}{let u,s,l,c,a;switch(pt(o)?pt(i)?u=2:null!=mt(i)?(u=1,c=gt(i),a=mt(i)):u=2:null!=mt(o)?(u=0,s=gt(o),l=mt(o)):pt(i)?u=2:null!=mt(i)?(u=1,c=gt(i),a=mt(i)):u=2,u){case 0:if(l instanceof Ai){e=r,n=bt([Ri(l),Di(Ni(l),void 0,Gi(l),0)],s),t=i;continue e}e=r,n=bt([void 0,Mi(Ni(l))],s),t=i;continue e;case 1:if(a instanceof Ai){e=r,n=o,t=bt([Ri(a),Di(Ni(a),void 0,Gi(a),0)],c);continue e}e=r,n=o,t=bt([void 0,Mi(Ni(a))],c);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}else{let u,s,l,c,a;switch(pt(o)?pt(i)?u=2:null!=mt(i)?(u=1,c=gt(i),a=mt(i)):u=2:null!=mt(o)?(u=0,s=gt(o),l=mt(o)):pt(i)?u=2:null!=mt(i)?(u=1,c=gt(i),a=mt(i)):u=2,u){case 0:if(l instanceof Ai){e=r,n=bt([Ri(l),Di(Ni(l),void 0,Gi(l),0)],s),t=i;continue e}e=r,n=bt([void 0,Mi(Ni(l))],s),t=i;continue e;case 1:if(a instanceof Ai){e=r,n=o,t=bt([Ri(a),Di(Ni(a),void 0,Gi(a),0)],c);continue e}e=r,n=o,t=bt([void 0,Mi(Ni(a))],c);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else{if(!(s instanceof Ai)){const l=0|r.Compare(Ni(u),Ni(s));if(0!==l)return 0|l;e=r,n=gt(o),t=gt(i);continue e}if(null==Ri(s)){const l=0|r.Compare(Ni(u),Ni(s));if(0!==l)return 0|l;e=r,n=dt(void 0,gt(o)),t=dt(Gi(s),gt(i));continue e}{let u,s,l,c,a;switch(pt(o)?pt(i)?u=2:null!=mt(i)?(u=1,c=gt(i),a=mt(i)):u=2:null!=mt(o)?(u=0,s=gt(o),l=mt(o)):pt(i)?u=2:null!=mt(i)?(u=1,c=gt(i),a=mt(i)):u=2,u){case 0:if(l instanceof Ai){e=r,n=bt([Ri(l),Di(Ni(l),void 0,Gi(l),0)],s),t=i;continue e}e=r,n=bt([void 0,Mi(Ni(l))],s),t=i;continue e;case 1:if(a instanceof Ai){e=r,n=o,t=bt([Ri(a),Di(Ni(a),void 0,Gi(a),0)],c);continue e}e=r,n=o,t=bt([void 0,Mi(Ni(a))],c);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}}else{let u,s,l,c,a;switch(mt(i),pt(o)?pt(i)?u=2:null!=mt(i)?(u=1,c=gt(i),a=mt(i)):u=2:null!=mt(o)?(u=0,s=gt(o),l=mt(o)):pt(i)?u=2:null!=mt(i)?(u=1,c=gt(i),a=mt(i)):u=2,u){case 0:if(l instanceof Ai){e=r,n=bt([Ri(l),Di(Ni(l),void 0,Gi(l),0)],s),t=i;continue e}e=r,n=bt([void 0,Mi(Ni(l))],s),t=i;continue e;case 1:if(a instanceof Ai){e=r,n=o,t=bt([Ri(a),Di(Ni(a),void 0,Gi(a),0)],c);continue e}e=r,n=o,t=bt([void 0,Mi(Ni(a))],c);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else{if(null==mt(o)){e=r,n=gt(o),t=gt(i);continue e}{let u,s,l,c,a;switch(mt(o),pt(o)?pt(i)?u=2:null!=mt(i)?(u=1,c=gt(i),a=mt(i)):u=2:null!=mt(o)?(u=0,s=gt(o),l=mt(o)):pt(i)?u=2:null!=mt(i)?(u=1,c=gt(i),a=mt(i)):u=2,u){case 0:if(l instanceof Ai){e=r,n=bt([Ri(l),Di(Ni(l),void 0,Gi(l),0)],s),t=i;continue e}e=r,n=bt([void 0,Mi(Ni(l))],s),t=i;continue e;case 1:if(a instanceof Ai){e=r,n=o,t=bt([Ri(a),Di(Ni(a),void 0,Gi(a),0)],c);continue e}e=r,n=o,t=bt([void 0,Mi(Ni(a))],c);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}break}}(e,_t(n),_t(t))}function Yi(e,n,t){let r=t;Li((e=>{n[r]=e,r=r+1|0}),e)}function Xi(e,n){if(Le(n))return function(e,n){return rt(((n,t)=>ji(e,t,n)),void 0,n)}(e,n);if(n instanceof it)return function(e,n){return wt(((n,t)=>ji(e,t,n)),void 0,n)}(e,n);{const t=Je(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=ji(r,i["System.Collections.Generic.IEnumerator`1.get_Current"](),o),t=i}}(e,void 0,t)}finally{Ve(t)}}}class Ki{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=Je(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();)t=0|n(t,on(r["System.Collections.Generic.IEnumerator`1.get_Current"]()))}finally{Ve(r)}return 0|Math.abs(t)}(this)}Equals(e){return e instanceof Ki&&0===Zi(Qi(this),eu(this),eu(e))}toString(){return"set ["+zn("; ",Rr((e=>An(e)),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(){return Array.from(this)}CompareTo(e){return 0|Zi(Qi(this),eu(this),eu(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 Bi(Qi(this),e,eu(this))}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(e,n){Yi(eu(this),e,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|nu(this)}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return 0|nu(this)}GetEnumerator(){return Ji(eu(this))}[Symbol.iterator](){return Ze(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return Ji(eu(this))}get size(){return 0|nu(this)}add(e){throw new Error("Set cannot be mutated")}clear(){throw new Error("Set cannot be mutated")}delete(e){throw new Error("Set cannot be mutated")}has(e){return function(e,n){return Bi(Qi(e),n,eu(e))}(this,e)}keys(){return Rr((e=>e),this)}values(){return Rr((e=>e),this)}entries(){return Rr((e=>[e,e]),this)}forEach(e,n){const t=this;Dr((n=>{e(n,n,t)}),t)}}function Qi(e){return e.comparer}function eu(e){return e.tree}function nu(e){return Fi(eu(e))}function tu(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 ru(e,n){const t=2===n.tag?tu(n.fields[0],n.fields[1],!0):1===n.tag?tu(n.fields[0],n.fields[1],!1)+"\nReason: "+n.fields[2]:3===n.tag?tu(n.fields[0],n.fields[1],!0):4===n.tag?tu(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"+zn("\n\n",n.fields[0]):6===n.tag?"The following `failure` occurred with the decoder: "+n.fields[0]:tu(n.fields[0],n.fields[1],!1);return 7===n.tag?t:"Error at: `"+e+"`\n"+t}function ou(e,n,t){const r=n(e,t);if(1===r.tag){const e=r.fields[0];return new pr(1,[ru(e[0],e[1])])}return new pr(0,[r.fields[0]])}const iu=e=>n=>{const t="a sbyte",r=e,o=n;if("number"==typeof o){const e=o;return isFinite(e)&&Math.floor(e)===e?-128<=e&&e<=127?new pr(0,[(e+128&255)-128]):new pr(1,[[r,new So(1,[t,e,"Value was either too large or too small for "+t])]]):new pr(1,[[r,new So(1,[t,e,"Value is not an integral value"])]])}if("string"==typeof o){let e,n=0;return e=[Go(o,511,!1,8,new Gn((()=>n),(e=>{n=0|e}))),n],e[0]?new pr(0,[e[1]]):new pr(1,[[r,new So(0,[t,o])]])}return new pr(1,[[r,new So(0,[t,o])]])},uu=e=>n=>{const t="a byte",r=e,o=n;if("number"==typeof o){const e=o;return isFinite(e)&&Math.floor(e)===e?0<=e&&e<=255?new pr(0,[255&e]):new pr(1,[[r,new So(1,[t,e,"Value was either too large or too small for "+t])]]):new pr(1,[[r,new So(1,[t,e,"Value is not an integral value"])]])}if("string"==typeof o){let e,n=0;return e=[Go(o,511,!0,8,new Gn((()=>n),(e=>{n=e}))),n],e[0]?new pr(0,[e[1]]):new pr(1,[[r,new So(0,[t,o])]])}return new pr(1,[[r,new So(0,[t,o])]])},su=e=>n=>{const t="an int16",r=e,o=n;if("number"==typeof o){const e=o;return isFinite(e)&&Math.floor(e)===e?-32768<=e&&e<=32767?new pr(0,[(e+32768&65535)-32768]):new pr(1,[[r,new So(1,[t,e,"Value was either too large or too small for "+t])]]):new pr(1,[[r,new So(1,[t,e,"Value is not an integral value"])]])}if("string"==typeof o){let e,n=0;return e=[Go(o,511,!1,16,new Gn((()=>n),(e=>{n=0|e}))),n],e[0]?new pr(0,[e[1]]):new pr(1,[[r,new So(0,[t,o])]])}return new pr(1,[[r,new So(0,[t,o])]])},lu=e=>n=>{const t="an uint16",r=e,o=n;if("number"==typeof o){const e=o;return isFinite(e)&&Math.floor(e)===e?0<=e&&e<=65535?new pr(0,[65535&e]):new pr(1,[[r,new So(1,[t,e,"Value was either too large or too small for "+t])]]):new pr(1,[[r,new So(1,[t,e,"Value is not an integral value"])]])}if("string"==typeof o){let e,n=0;return e=[Go(o,511,!0,16,new Gn((()=>n),(e=>{n=e}))),n],e[0]?new pr(0,[e[1]]):new pr(1,[[r,new So(0,[t,o])]])}return new pr(1,[[r,new So(0,[t,o])]])},cu=e=>n=>{const t="an int",r=e,o=n;if("number"==typeof o){const e=o;return isFinite(e)&&Math.floor(e)===e?-2147483648<=e&&e<=2147483647?new pr(0,[~~e]):new pr(1,[[r,new So(1,[t,e,"Value was either too large or too small for "+t])]]):new pr(1,[[r,new So(1,[t,e,"Value is not an integral value"])]])}if("string"==typeof o){let e,n=0;return e=[Go(o,511,!1,32,new Gn((()=>n),(e=>{n=0|e}))),n],e[0]?new pr(0,[e[1]]):new pr(1,[[r,new So(0,[t,o])]])}return new pr(1,[[r,new So(0,[t,o])]])},au=e=>n=>{const t="an uint32",r=e,o=n;if("number"==typeof o){const e=o;return isFinite(e)&&Math.floor(e)===e?0<=e&&e<=4294967295?new pr(0,[e>>>0]):new pr(1,[[r,new So(1,[t,e,"Value was either too large or too small for "+t])]]):new pr(1,[[r,new So(1,[t,e,"Value is not an integral value"])]])}if("string"==typeof o){let e,n=0;return e=[Go(o,511,!0,32,new Gn((()=>n),(e=>{n=e}))),n],e[0]?new pr(0,[e[1]]):new pr(1,[[r,new So(0,[t,o])]])}return new pr(1,[[r,new So(0,[t,o])]])};function fu(e,n,t,r){let o;const i=t+".["+Qe(e)+"]";if(Array.isArray(r)){const t=r;return e<t.length?n(i,t[e]):new pr(1,[[i,new So(5,["a longer array. Need index `"+Qe(e)+"` but there are only `"+(o=t.length,Qe(o)+"` entries"),r])]])}return new pr(1,[[i,new So(0,["an array",r])]])}function hu(e,n,t){if(Array.isArray(t)){let r=-1;return mr(vt,rt(((t,o)=>{if(r=r+1|0,0===t.tag){const i=e(n+".["+Qe(r)+"]",o);return 0===i.tag?new pr(0,[dt(i.fields[0],t.fields[0])]):new pr(1,[i.fields[0]])}return t}),new pr(0,[ht()]),t))}return new pr(1,[[n,new So(0,["a list",t])]])}function du(e,n,t){if(Array.isArray(t)){let r=-1;const o=t;return rt(((t,o)=>{if(r=r+1|0,0===t.tag){const i=t.fields[0],u=e(n+".["+Qe(r)+"]",o);return 0===u.tag?(i[r]=u.fields[0],new pr(0,[i])):new pr(1,[u.fields[0]])}return t}),new pr(0,[nt(new Array(o.length),0,o.length,null)]),o)}return new pr(1,[[n,new So(0,["an array",t])]])}function _u(e,n,t,r){const o=n(t,r);return 0===o.tag?e(o.fields[0],t,r):new pr(1,[o.fields[0]])}function pu(e,n){let t;const r=e;return t=e=>n=>fu(0,r,e,n),e=>r=>_u(pn(3,(e=>{let t;const r=n;return t=e=>n=>fu(1,r,e,n),n=>r=>_u(((n,t,r)=>new pr(0,[[e,n]])),pn(2,t),n,r)})),pn(2,t),e,r)}function mu(e){return co(n={Compare:hn},to(n,e));var n}function gu(e){return function(e,n){return new Ki(e,n)}(n={Compare:hn},Xi(n,e));var n}function yu(e,n,t,r){let o,i;return n.length!==r.length?new pr(1,[[t,new So(6,[(o=0|r.length,i=0|n.length,Ln(jn("Expected %i %s but got %i"))(i)(e)(o))])]]):ot(((e,n,r)=>0===r.tag?mr((e=>dt(e,r.fields[0])),n(t)(e)):r),r,n,new pr(0,[ht()]))}function wu(e,n,t,r,o,i){const u=function(e,n){return n.find((e=>Ut(e)===r))}(0,zt(t));if(null!=u){const t=u;return 0===i.length?new pr(0,[er(t,[])]):mr((e=>er(t,yt(e))),yu("union fields",tt((t=>bu(e,n,!1,t[1])),Qt(t),null),o,i))}return new pr(1,[[o,new So(6,["Cannot find case "+r+" in "+Ft(t)])]])}function vu(e,n,t,r){let o;const i=new Gn(null),u=_o(Ft(r),i,e);let s;if(Xt(r)){const e=tt((e=>[Io(n,Ut(e)),bu(u,n,!1,e[1])]),Jt(r),null);s=n=>t=>mr((e=>function(e,n){const t=Jt(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,yt(e))),function(e,n,t){return null===t||Object.getPrototypeOf(t||!1)!==Object.prototype?new pr(1,[[n,new So(0,["an object",t])]]):function(e,r,o){return r.reduceRight(((e,r)=>((e,r)=>{const o=e[0];return 0===r.tag?mr((e=>dt(e,r.fields[0])),e[1](n+"."+o)(t[o])):r})(r,e)),o)}(0,e,new pr(0,[ht()]))}(e,n,t))}else if(Yt(r))s=e=>t=>{if("string"==typeof t)return wu(u,n,r,t,e,[]);if(Array.isArray(t)){const o=t;return wu(u,n,r,o[0],e,o.slice(1,o.length))}return new pr(1,[[e,new So(0,["a string or array",t])]])};else{if(!t)throw new Error((o=Ft(r),Ln(jn("Cannot generate auto decoder for %s. Please pass an extra decoder."))(o)));s=e=>n=>new pr(1,[[e,new So(2,["an extra coder for "+Ft(r),n])]])}return i.contents=s,s}function bu(e,n,t,r){let o,i,u;const s=Ft(r),l=po(s,e);if(null==l){if(Ht(r)){const t=bu(e,n,!1,$t(r));return e=>n=>du(pn(2,t),e,n)}if(Bt(r)){const e=Ft(Vt(r));if("System.SByte"===e)return e=>n=>{const t=r,o=e,i=n,u=iu(o)(i);if(1===u.tag)return new pr(1,[u.fields[0]]);{const e=0|u.fields[0];return Nr(e,Wt(t),{Equals:(e,n)=>e===n,GetHashCode:tn})?new pr(0,[qt(t,e.toString())]):new pr(1,[[o,new So(1,[Ft(t),i,"Unkown value provided for the enum"])]])}};if("System.Byte"===e)return e=>n=>{const t=r,o=e,i=n,u=uu(o)(i);if(1===u.tag)return new pr(1,[u.fields[0]]);{const e=u.fields[0];return Nr(e,Wt(t),{Equals:(e,n)=>e===n,GetHashCode:tn})?new pr(0,[qt(t,e.toString())]):new pr(1,[[o,new So(1,[Ft(t),i,"Unkown value provided for the enum"])]])}};if("System.Int16"===e)return e=>n=>{const t=r,o=e,i=n,u=su(o)(i);if(1===u.tag)return new pr(1,[u.fields[0]]);{const e=0|u.fields[0];return Nr(e,Wt(t),{Equals:(e,n)=>e===n,GetHashCode:tn})?new pr(0,[qt(t,(s=e,(s=s<0&&null!=l&&10!==l?65535+s+1:s).toString(l)))]):new pr(1,[[o,new So(1,[Ft(t),i,"Unkown value provided for the enum"])]])}var s,l};if("System.UInt16"===e)return e=>n=>{const t=r,o=e,i=n,u=lu(o)(i);if(1===u.tag)return new pr(1,[u.fields[0]]);{const e=u.fields[0];return Nr(e,Wt(t),{Equals:(e,n)=>e===n,GetHashCode:tn})?new pr(0,[qt(t,e.toString())]):new pr(1,[[o,new So(1,[Ft(t),i,"Unkown value provided for the enum"])]])}};if("System.Int32"===e)return e=>n=>{const t=r,o=e,i=n,u=cu(o)(i);if(1===u.tag)return new pr(1,[u.fields[0]]);{const e=0|u.fields[0];return Nr(e,Wt(t),{Equals:(e,n)=>e===n,GetHashCode:tn})?new pr(0,[qt(t,Qe(e))]):new pr(1,[[o,new So(1,[Ft(t),i,"Unkown value provided for the enum"])]])}};if("System.UInt32"===e)return e=>n=>{const t=r,o=e,i=n,u=au(o)(i);if(1===u.tag)return new pr(1,[u.fields[0]]);{const e=u.fields[0];return Nr(e,Wt(t),{Equals:(e,n)=>e===n,GetHashCode:tn})?new pr(0,[qt(t,e.toString())]):new pr(1,[[o,new So(1,[Ft(t),i,"Unkown value provided for the enum"])]])}};{const e=Ft(r),n=Vn(jn("Cannot generate auto decoder for %s.\nThoth.Json.Net only support the folluwing enum types:\n- sbyte\n- byte\n- int16\n- uint16\n- int\n- uint32\nIf you can't use one of these types, please pass an extra decoder.\n "))(e);return e=>n(e)}}if(jt(r)){if(Kt(r)){const t=tt((t=>bu(e,n,!1,t)),Zt(r),null);return e=>n=>Array.isArray(n)?mr((e=>yt(e)),yu("tuple elements",t,e,n)):new pr(1,[[e,new So(0,["an array",n])]])}{const s=Ft(Lt(r));if("Microsoft.FSharp.Core.FSharpOption`1[System.Object]"===s)return o=bu(e,n,!0,Nt(r)[0]),e=>n=>{return t=pn(2,o),r=e,null==(i=n)?new pr(0,[void 0]):mr(Kn,t(r,i));var t,r,i};if("Microsoft.FSharp.Collections.FSharpList`1[System.Object]"===s)return i=bu(e,n,!1,Nt(r)[0]),e=>n=>hu(pn(2,i),e,n);if("Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"===s){const t=bu(e,n,!1,Nt(r)[0]),o=bu(e,n,!1,Nt(r)[1]);let i;const s=Ct([e=>n=>function(e,n,t,r){return null===r||Object.getPrototypeOf(r||!1)!==Object.prototype?new pr(1,[[t,new So(0,["an object",r])]]):Ar(((o,i)=>{if(0===o.tag){const u=e(t,i);if(0===u.tag){const e=n(t+"."+i,r[i]);return 0===e.tag?new pr(0,[dt([u.fields[0],e.fields[0]],o.fields[0])]):new pr(1,[e.fields[0]])}return new pr(1,[u.fields[0]])}return o}),new pr(0,[ht()]),Object.keys(r))}(pn(2,t),pn(2,o),e,n),(u=pu(pn(2,t),pn(2,o)),e=>n=>hu(pn(2,u),e,n))]);return i=e=>n=>{return t=e,r=n,((e,n)=>{e:for(;;){const o=e,i=n;if(pt(o))return new pr(1,[[t,new So(7,[i])]]);{const u=ou(t,pn(2,mt(o)),r);if(1===u.tag){e=gt(o),n=St(i,_t(u.fields[0]));continue e}return new pr(0,[u.fields[0]])}}})(s,ht());var t,r},e=>n=>function(e,n,t,r){const o=n(t,r);return 1===o.tag?new pr(1,[o.fields[0]]):new pr(0,[e(o.fields[0])])}(mu,pn(2,i),e,n)}if("Microsoft.FSharp.Collections.FSharpSet`1[System.Object]"===s){const t=bu(e,n,!1,Nt(r)[0]);return e=>n=>{const r=du(pn(2,t),e,n);return 0===r.tag?new pr(0,[gu(r.fields[0])]):new pr(1,[r.fields[0]])}}return vu(e,n,t,r)}}return"System.Boolean"===s?e=>n=>{return t=e,"boolean"==typeof(r=n)?new pr(0,[r]):new pr(1,[[t,new So(0,["a boolean",r])]]);var t,r}:"Microsoft.FSharp.Core.Unit"===s?e=>n=>{return t=e,null==(r=n)?new pr(0,[void 0]):new pr(1,[[t,new So(0,["null",r])]]);var t,r}:"System.String"===s?e=>n=>{return t=e,"string"==typeof(r=n)?new pr(0,[r]):new pr(1,[[t,new So(0,["a string",r])]]);var t,r}:"System.SByte"===s?iu:"System.Byte"===s?uu:"System.Int16"===s?su:"System.UInt16"===s?lu:"System.Int32"===s?cu:"System.UInt32"===s?au:"System.Double"===s?e=>n=>{return t=e,"number"==typeof(r=n)?new pr(0,[r]):new pr(1,[[t,new So(0,["a float",r])]]);var t,r}:"System.Single"===s?e=>n=>{return t=e,"number"==typeof(r=n)?new pr(0,[r]):new pr(1,[[t,new So(0,["a float32",r])]]);var t,r}:"System.DateTime"===s?e=>n=>function(e,n){if("string"==typeof n){let r,o=vn(-621355968e5,0);return r=[Cn(n,new Gn((()=>o),(e=>{o=e}))),o],r[0]?new pr(0,[(t=r[1],1===t.kind?t:vn(t.getTime(),1))]):new pr(1,[[e,new So(0,["a datetime",n])]])}var t;return new pr(1,[[e,new So(0,["a datetime",n])]])}(e,n):"System.DateTimeOffset"===s?e=>n=>function(e,n){if("string"==typeof n){let t,r=Po(-621355968e5,0);return t=[Uo(n,new Gn((()=>r),(e=>{r=e}))),r],t[0]?new pr(0,[t[1]]):new pr(1,[[e,new So(0,["a datetimeoffset",n])]])}return new pr(1,[[e,new So(0,["a datetime",n])]])}(e,n):"System.TimeSpan"===s?e=>n=>function(e,n){if("string"==typeof n){let t,r=0;return t=[Ii(n,new Gn((()=>r),(e=>{r=e}))),r],t[0]?new pr(0,[t[1]]):new pr(1,[[e,new So(0,["a timespan",n])]])}return new pr(1,[[e,new So(0,["a timespan",n])]])}(e,n):"System.Guid"===s?e=>n=>function(e,n){if("string"==typeof n){let t,r="00000000-0000-0000-0000-000000000000";return t=[Ao(n,new Gn((()=>r),(e=>{r=e}))),r],t[0]?new pr(0,[t[1]]):new pr(1,[[e,new So(0,["a guid",n])]])}return new pr(1,[[e,new So(0,["a guid",n])]])}(e,n):"System.Object"===s?e=>e=>new pr(0,[e]):vu(e,n,t,r)}{const e=l;return n=>t=>e.contents(n)(t)}}function Cu(e){return e}function Su(e){return Array.from(e)}function Eu(e){return wn(e,"O")}function xu(e){return function(e,n="c",t){if(-1===["c","g","G"].indexOf(n))throw new Error("Custom formats are not supported");const r=Math.abs(function(e){return xi(e/864e5)}(e)),o=Math.abs(function(e){return xi(e%864e5/36e5)}(e)),i=Math.abs(function(e){return xi(e%36e5/6e4)}(e)),u=Math.abs(function(e){return xi(e%6e4/1e3)}(e)),s=Math.abs(function(e){return xi(e%1e3)}(e));return`${e<0?"-":""}${0!==r||"c"!==n&&"g"!==n?"c"===n?r+".":r+":":""}${"g"===n?o:Xe(o,2)}:${Xe(i,2)}:${Xe(u,2)}${0!==s||"c"!==n&&"g"!==n?"g"===n?"."+Xe(s,3):"."+function(e,n,t){let r=e.toString(10);for(;r.length<3;)r="0"+r;for(;r.length<7;)r+="0";return r}(s):""}`}(e)}function ku(){return null}function Tu(e){return wn(e,"O")}function Iu(e,n){return JSON.stringify(n,pn(2,null),Kn(e))}function Ou(e,n,t,r){let o;const i=new Gn(null),u=_o(Ft(r),i,e);let s;if(Xt(r)){const e=tt((e=>{const r=Io(n,Ut(e)),o=Mu(u,n,t,e[1]);return n=>i=>{const u=function(e,n){return e[n[0]]}(n,e);return(!t||t&&null!=u)&&(i[r]=o(u)),i}}),Jt(r),null);s=n=>Ar(((e,t)=>t(n)(e)),{},e)}else{if(!Yt(r))throw new Error((o=Ft(r),Ln(jn("Cannot generate auto encoder for %s. Please pass an extra encoder."))(o)));s=e=>{const o=function(e,n){const t=zt(n)[e.tag];if(null==t)throw new Error(`Cannot find case ${e.name} in union type`);return[t,e.fields]}(e,r),i=o[0],s=o[1],l=0|s.length;if(0===l)return Ut(i);{const e=0|l,r=Qt(i),o=nt(new Array(e+1),0,e+1,null);o[0]=Ut(i);for(let i=1;i<=e;i++){const e=Mu(u,n,t,r[i-1][1]);o[i]=e(s[i-1])}return o}}}return i.contents=s,s}function Mu(e,n,t,r){const o=Ft(r),i=po(o,e);if(null==i){if(Ht(r)){const o=Mu(e,n,t,$t(r));return e=>Su(Rr(o,e))}if(Bt(r)){const e=Ft(Vt(r));if("System.SByte"===e)return e=>e;if("System.Byte"===e)return e=>e;if("System.Int16"===e)return e=>e;if("System.UInt16"===e)return e=>e;if("System.Int32"===e)return e=>e;if("System.UInt32"===e)return e=>e;{const e=Ft(r);return Vn(jn("Cannot generate auto encoder for %s.\nThoth.Json.Net only support the folluwing 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 encoder.\n "))(e)}}if(jt(r)){if(Kt(r)){const o=tt((r=>Mu(e,n,t,r)),Zt(r),null);return e=>Su(Gr(((e,n)=>o[e](n)),e))}{const o=Ft(Lt(r));if("Microsoft.FSharp.Core.FSharpOption`1[System.Object]"===o){const o=new Ye((()=>{return o=Mu(e,n,t,Nt(r)[0]),e=>{return function(e,n){return null!=e?Qn(e):null}(null!=(n=e)?Kn(o(Qn(n))):void 0);var n};var o}));return e=>null==e?null:o.Value(e)}if("Microsoft.FSharp.Collections.FSharpList`1[System.Object]"===o||"Microsoft.FSharp.Collections.FSharpSet`1[System.Object]"===o){const o=Mu(e,n,t,Nt(r)[0]);return e=>Su(Rr(o,e))}if("Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"===o){const o=Nt(r)[0],i=Mu(e,n,t,Nt(r)[1]);if("System.String"===Ft(o)||"System.Guid"===Ft(o))return e=>Ar(((e,n)=>{const t=n;return e[t[0]]=i(t[1]),e}),{},e);{let r;const u=Mu(e,n,t,o);return r=u,e=>Su(Rr((e=>{const n=e;return[r(n[0]),i(n[1])]}),e))}}return Ou(e,n,t,r)}}return"System.Boolean"===o?e=>e:"Microsoft.FSharp.Core.Unit"===o?ku:"System.String"===o?e=>e:"System.SByte"===o?e=>e:"System.Byte"===o?e=>e:"System.Int16"===o?e=>e:"System.UInt16"===o?e=>e:"System.Int32"===o?e=>e:"System.UInt32"===o?e=>e:"System.Double"===o?e=>e:"System.Single"===o?e=>e:"System.DateTime"===o?Tu:"System.DateTimeOffset"===o?Eu:"System.TimeSpan"===o?xu:"System.Guid"===o?Cu:"System.Object"===o?e=>e:Ou(e,n,t,r)}{const e=i;return n=>e.contents(n)}}function Nu(e,n,t,r){const o=et(n,new Eo(0,[])),i=et(r,!0);return Mu(function(e){return null!=e?mo(((e,n)=>new Gn(n[0])),e.Coders):go({Compare:an})}(t),o,i,e)}function Au(e){return`${e}/bank-details/admin`}function Du(e,n){return wr(0,(()=>{const t=(r=function(e){return new br(0,["Authorization",e])}(Ln(jn("Bearer %s"))(e)),new Sr((o=n).url,o.method,St(o.headers,_t(r)),o.withCredentials,o.overridenMimeType,o.overridenResponseType,o.timeout,o.content));var r,o;let i;const u=Co(t);return i=cr.Bind(u,(e=>cr.Return(new pr(0,[e])))),cr.Delay((()=>cr.Bind(i,(e=>{let n,r;const o=e;return 1===o.tag?cr.Return(new pr(1,[o.fields[0]])):cr.ReturnFrom((n=o.fields[0],429===n.statusCode||n.statusCode>=500?(r=Co(t),cr.Bind(r,(e=>cr.Return(new pr(0,[e]))))):function(e,n){const t=gr(0,n);return cr.Return(t)}(0,n)))}))))}))}function Ru(e,n,t,r){return wr(0,(()=>{const o=Du(n,bo(new vr(0,[]),vo(`${Au(e)}/max-accounts/${t}/${r}`)));return cr.Delay((()=>cr.Bind(o,(e=>{let n,t;const r=e;return 1===r.tag?cr.Return(new pr(1,[r.fields[0]])):cr.ReturnFrom((n=r.fields[0],200===n.statusCode?(t=function(e,n){try{return ou("$",e,JSON.parse(n))}catch(e){if(e instanceof SyntaxError)return new pr(1,["Given an invalid JSON: "+e.message]);throw e}}(pn(2,function(e,n,t){const r=et(n,new Eo(0,[]));return bu(function(e){return null!=e?mo(((e,n)=>new Gn(n[1])),e.Coders):go({Compare:an})}(void 0),r,!1,e)}(new Mt("Types.Model",[],tr,void 0,(()=>[["MaxAccounts",Pt],["ConfigOwnership",function(e,n,t,r){const o=new Mt("Types.ConfigOwnership",[],t,void 0,void 0,(()=>{const e=t.prototype.cases();return[[],[],[]].map(((n,t)=>new Ot(o,t,e[t],n)))}));return o}(0,0,nr)]])),new Eo(1,[]))),n.responseText),cr.Return(t)):cr.Return(new pr(1,[n.responseText]))))}))))}))}function Gu(){return(Gu=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function Pu(e){this.getChildContext=function(){return e.context};var n=e.children,t=function(e,n){if(null==e)return{};var t,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n.indexOf(t=i[r])>=0||(o[t]=e[t]);return o}(e,["context","children"]);return G(n,t)}function Uu(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=f(Pu,Gu({},this._props,{context:e.detail.context}),function e(n,t){if(3===n.nodeType)return n.data;if(1!==n.nodeType)return null;var r=[],o={},i=0,u=n.attributes,s=n.childNodes;for(i=u.length;i--;)"slot"!==u[i].name&&(o[u[i].name]=u[i].value,o[Fu(u[i].name)]=u[i].value);for(i=s.length;i--;){var l=e(s[i],null),c=s[i].slot;c?o[c]=f(ju,{name:c},l):r[i]=l}var a=t?f(ju,null,r):r;return f(t||n.nodeName.toLowerCase(),o,a)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?R:D)(this._vdom,this._root)}function Fu(e){return e.replace(/-(\w)/g,(function(e,n){return n?n.toUpperCase():""}))}function Hu(e,n,t){if(this._vdom){var r={};r[e]=t=null==t?void 0:t,r[Fu(e)]=t,this._vdom=G(this._vdom,r),D(this._vdom,this._root)}}function $u(){D(this._vdom=null,this._root)}function ju(e,n){var t=this;return f("slot",Gu({},e,{ref:function(e){e?(t.ref=e,t._listener||(t._listener=function(e){e.stopPropagation(),e.detail.context=n},e.addEventListener("_preact",t._listener))):t.ref.removeEventListener("_preact",t._listener)}}))}function Bu(e){let n;return Be("div",dn(Ct([["className","py-10"],(n=[Be("label",{className:"inline-flex text-sm font-medium text-gray-900 mr-5",for:"max-accounts",children:`Max Accounts ${t=e.configOwnership,2===t.tag?"":`(${t})`}: `}),Be("input",{className:"inline-flex",id:"max-accounts",type:"number",max:3,value:e.selected,onChange:n=>{const t=n.target.valueAsNumber;null==t||Number.isNaN(t)||e.handleMaxAccountChanged(function(e,n=0){const t=Math.pow(10,n),r=+(n?e*t:e).toFixed(8),o=Math.floor(r),i=r-o,u=i>.5-1e-8&&i<.5+1e-8?o%2==0?o:o+1:Math.round(r);return n?u/t:u}(t))}})],["children",je.Children.toArray(Array.from(n))])])));var t}function Lu(e){let n;const t=e.msg;return null==t?null:Be("div",dn(Ct([["className","text-sm font-medium text-gray-900 my-5"],(n=[Be("span",{children:[t]})],["children",je.Children.toArray(Array.from(n))])])))}function Vu(e){let n;const t=It(0),r=t[1],o=0|t[0],i=It(new nr(1,[])),u=It(new dr(0,[])),s=u[1],l=u[0],c=wr(0,(()=>{const n=Ru(e.backendUrl,e.accessToken,e.partnerId,e.accountId);return cr.Delay((()=>cr.Bind(n,(e=>{let n;const t=e;return 1===t.tag?cr.Return(new pr(1,[t.fields[0]])):cr.ReturnFrom((n=t.fields[0],r(n.MaxAccounts),i[1](n.ConfigOwnership),yr()))}))))})),a=wr(0,(()=>{const n=function(e,n,t,r,o){return wr(0,(()=>{let i;const u=`${Au(e)}/max-accounts/${t}/${r}`,s=Du(n,bo(new vr(1,[]),(l=new Cr(1,[(i={maxAccounts:o},Iu(0,Nu(Rt(["maxAccounts",Pt]),new Eo(1,[]),void 0,void 0)(i)))]),c=vo(u),new Sr(c.url,c.method,c.headers,c.withCredentials,c.overridenMimeType,c.overridenResponseType,c.timeout,l))));var l,c;return cr.Delay((()=>cr.Bind(s,(e=>{let n;const t=e;return 1===t.tag?cr.Return(new pr(1,[t.fields[0]])):cr.ReturnFrom((n=t.fields[0],200===n.statusCode?cr.Return(new pr(0,[void 0])):cr.Return(new pr(1,[n.responseText]))))}))))}))}(e.backendUrl,e.accessToken,e.partnerId,e.accountId,o);return cr.Delay((()=>cr.Bind(n,(e=>{const n=e;return 1===n.tag?cr.Return(new pr(1,[n.fields[0]])):cr.ReturnFrom(cr.Bind(c,(e=>{const n=mr((()=>{}),e);return cr.Return(n)})))}))))})),h=wr(0,(()=>{const n=(t=e.backendUrl,r=e.accessToken,o=e.partnerId,i=e.accountId,wr(0,(()=>{const e=Du(r,bo(new vr(4,[]),vo(`${Au(t)}/max-accounts/${o}/${i}`)));return cr.Delay((()=>cr.Bind(e,(e=>{let n;const t=e;return 1===t.tag?cr.Return(new pr(1,[t.fields[0]])):cr.ReturnFrom((n=t.fields[0],200===n.statusCode?cr.Return(new pr(0,[void 0])):cr.Return(new pr(1,[n.responseText]))))}))))})));var t,r,o,i;return cr.Delay((()=>cr.Bind(n,(e=>{const n=e;return 1===n.tag?cr.Return(new pr(1,[n.fields[0]])):cr.ReturnFrom(cr.Bind(c,(e=>{const n=mr((()=>{}),e);return cr.Return(n)})))}))))}));var d,_;d=()=>{hr(sr(c,(e=>lr(void 0))))},_=tt((e=>e),[e.backendUrl,e.accessToken,e.partnerId,e.accountId],null),Et((e=>(d(),xt((()=>{})))),_);const p=_r((()=>a),s),m=_r((()=>h),s);let g,y,w,v;switch(2===l.tag?1===l.fields[0].tag?(y=0,w=l.fields[0].fields[0]):y=2:3===l.tag?(y=1,v=l.fields[0]):y=2,y){case 0:g=f(Lu,{msg:w});break;case 1:g=f(Lu,{msg:An(v)});break;case 2:g=f(Lu,{msg:void 0})}const b=Ct([f(Bu,{configOwnership:i[0],handleMaxAccountChanged:r,selected:o}),Be("div",dn(_t((n=[Be("button",{className:"inline-flex items-center rounded border border-transparent bg-indigo-600 px-2.5 py-1.5 mr-5 text-xs font-medium text-white shadow-sm hover:bg-indigo-700 focus:outline-none",type:"button",children:"Update",onClick:e=>{p()}}),Be("button",{className:"inline-flex items-center rounded border border-transparent bg-red-600 px-2.5 py-1.5 text-xs font-medium text-white shadow-sm hover:bg-red-700 focus:outline-none",type:"button",children:"Reset",onClick:e=>{m()}}),g],["children",je.Children.toArray(Array.from(n))]))))]);return Be("div",{children:je.Children.toArray(Array.from(b))})}!function(e,n,t,r){function o(){var n=Reflect.construct(HTMLElement,[],o);return n._vdomComponent=e,n._root=n,n}(o.prototype=Object.create(HTMLElement.prototype)).constructor=o,o.prototype.connectedCallback=Uu,o.prototype.attributeChangedCallback=Hu,o.prototype.disconnectedCallback=$u,t=t||e.observedAttributes||Object.keys(e.propTypes||{}),o.observedAttributes=t,t.forEach((function(e){Object.defineProperty(o.prototype,e,{get:function(){return this._vdom.props[e]},set:function(n){this._vdom?this.attributeChangedCallback(e,null,n):(this._props||(this._props={}),this._props[e]=n,this.connectedCallback());var t=typeof n;null!=n&&"string"!==t&&"boolean"!==t&&"number"!==t||this.setAttribute(e,n)}})})),customElements.define("superhero-bank-details",o)}((e=>f(Vu,e)))})();
|
1
|
+
(()=>{"use strict";var e,n,t,r,o,i,u={},s=[],l=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function c(e,n){for(var t in n)e[t]=n[t];return e}function a(e){var n=e.parentNode;n&&n.removeChild(e)}function f(n,t,r){var o,i,u,s={};for(u in t)"key"==u?o=t[u]:"ref"==u?i=t[u]:s[u]=t[u];if(arguments.length>2&&(s.children=arguments.length>3?e.call(arguments,2):r),"function"==typeof n&&null!=n.defaultProps)for(u in n.defaultProps)void 0===s[u]&&(s[u]=n.defaultProps[u]);return h(n,s,o,i,null)}function h(e,r,o,i,u){var s={type:e,props:r,key:o,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==u?++t:u};return null==u&&null!=n.vnode&&n.vnode(s),s}function d(e){return e.children}function _(e,n){this.props=e,this.context=n}function p(e,n){if(null==n)return e.__?p(e.__,e.__.__k.indexOf(e)+1):null;for(var t;n<e.__k.length;n++)if(null!=(t=e.__k[n])&&null!=t.__e)return t.__e;return"function"==typeof e.type?p(e):null}function m(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 m(e)}}function g(e){(!e.__d&&(e.__d=!0)&&r.push(e)&&!y.__r++||o!==n.debounceRendering)&&((o=n.debounceRendering)||setTimeout)(y)}function y(){for(var e;y.__r=r.length;)e=r.sort((function(e,n){return e.__v.__b-n.__v.__b})),r=[],e.some((function(e){var n,t,r,o,i,u;e.__d&&(i=(o=(n=e).__v).__e,(u=n.__P)&&(t=[],(r=c({},o)).__v=o.__v+1,T(u,o,r,n.__n,void 0!==u.ownerSVGElement,null!=o.__h?[i]:null,t,null==i?p(o):i,o.__h),I(t,o),o.__e!=i&&m(o)))}))}function w(e,n,t,r,o,i,l,c,a,f){var _,m,g,y,w,b,S,E=r&&r.__k||s,x=E.length;for(t.__k=[],_=0;_<n.length;_++)if(null!=(y=t.__k[_]=null==(y=n[_])||"boolean"==typeof y?null:"string"==typeof y||"number"==typeof y||"bigint"==typeof y?h(null,y,null,null,y):Array.isArray(y)?h(d,{children:y},null,null,null):y.__b>0?h(y.type,y.props,y.key,y.ref?y.ref:null,y.__v):y)){if(y.__=t,y.__b=t.__b+1,null===(g=E[_])||g&&y.key==g.key&&y.type===g.type)E[_]=void 0;else for(m=0;m<x;m++){if((g=E[m])&&y.key==g.key&&y.type===g.type){E[m]=void 0;break}g=null}T(e,y,g=g||u,o,i,l,c,a,f),w=y.__e,(m=y.ref)&&g.ref!=m&&(S||(S=[]),g.ref&&S.push(g.ref,null,y),S.push(m,y.__c||w,y)),null!=w?(null==b&&(b=w),"function"==typeof y.type&&y.__k===g.__k?y.__d=a=v(y,a,e):a=C(e,y,g,E,w,a),"function"==typeof t.type&&(t.__d=a)):a&&g.__e==a&&a.parentNode!=e&&(a=p(g))}for(t.__e=b,_=x;_--;)null!=E[_]&&N(E[_],E[_]);if(S)for(_=0;_<S.length;_++)M(S[_],S[++_],S[++_])}function v(e,n,t){for(var r,o=e.__k,i=0;o&&i<o.length;i++)(r=o[i])&&(r.__=e,n="function"==typeof r.type?v(r,n,t):C(t,r,r,o,r.__e,n));return n}function b(e,n){return n=n||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some((function(e){b(e,n)})):n.push(e)),n}function C(e,n,t,r,o,i){var u,s,l;if(void 0!==n.__d)u=n.__d,n.__d=void 0;else if(null==t||o!=i||null==o.parentNode)e:if(null==i||i.parentNode!==e)e.appendChild(o),u=null;else{for(s=i,l=0;(s=s.nextSibling)&&l<r.length;l+=1)if(s==o)break e;e.insertBefore(o,i),u=i}return void 0!==u?u:o.nextSibling}function S(e,n,t){"-"===n[0]?e.setProperty(n,t):e[n]=null==t?"":"number"!=typeof t||l.test(n)?t:t+"px"}function E(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||S(e.style,n,"");if(t)for(n in t)r&&t[n]===r[n]||S(e.style,n,t[n])}else if("o"===n[0]&&"n"===n[1])i=n!==(n=n.replace(/Capture$/,"")),n=n.toLowerCase()in e?n.toLowerCase().slice(2):n.slice(2),e.l||(e.l={}),e.l[n+i]=t,t?r||e.addEventListener(n,i?k:x,i):e.removeEventListener(n,i?k:x,i);else if("dangerouslySetInnerHTML"!==n){if(o)n=n.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("href"!==n&&"list"!==n&&"form"!==n&&"tabIndex"!==n&&"download"!==n&&n in e)try{e[n]=null==t?"":t;break e}catch(e){}"function"==typeof t||(null==t||!1===t&&-1==n.indexOf("-")?e.removeAttribute(n):e.setAttribute(n,t))}}function x(e){this.l[e.type+!1](n.event?n.event(e):e)}function k(e){this.l[e.type+!0](n.event?n.event(e):e)}function T(e,t,r,o,i,u,s,l,a){var f,h,p,m,g,y,v,b,C,S,E,x,k,T,I,M=t.type;if(void 0!==t.constructor)return null;null!=r.__h&&(a=r.__h,l=t.__e=r.__e,t.__h=null,u=[l]),(f=n.__b)&&f(t);try{e:if("function"==typeof M){if(b=t.props,C=(f=M.contextType)&&o[f.__c],S=f?C?C.props.value:f.__:o,r.__c?v=(h=t.__c=r.__c).__=h.__E:("prototype"in M&&M.prototype.render?t.__c=h=new M(b,S):(t.__c=h=new _(b,S),h.constructor=M,h.render=A),C&&C.sub(h),h.props=b,h.state||(h.state={}),h.context=S,h.__n=o,p=h.__d=!0,h.__h=[],h._sb=[]),null==h.__s&&(h.__s=h.state),null!=M.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=c({},h.__s)),c(h.__s,M.getDerivedStateFromProps(b,h.__s))),m=h.props,g=h.state,p)null==M.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else{if(null==M.getDerivedStateFromProps&&b!==m&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(b,S),!h.__e&&null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(b,h.__s,S)||t.__v===r.__v){for(h.props=b,h.state=h.__s,t.__v!==r.__v&&(h.__d=!1),h.__v=t,t.__e=r.__e,t.__k=r.__k,t.__k.forEach((function(e){e&&(e.__=t)})),E=0;E<h._sb.length;E++)h.__h.push(h._sb[E]);h._sb=[],h.__h.length&&s.push(h);break e}null!=h.componentWillUpdate&&h.componentWillUpdate(b,h.__s,S),null!=h.componentDidUpdate&&h.__h.push((function(){h.componentDidUpdate(m,g,y)}))}if(h.context=S,h.props=b,h.__v=t,h.__P=e,x=n.__r,k=0,"prototype"in M&&M.prototype.render){for(h.state=h.__s,h.__d=!1,x&&x(t),f=h.render(h.props,h.state,h.context),T=0;T<h._sb.length;T++)h.__h.push(h._sb[T]);h._sb=[]}else do{h.__d=!1,x&&x(t),f=h.render(h.props,h.state,h.context),h.state=h.__s}while(h.__d&&++k<25);h.state=h.__s,null!=h.getChildContext&&(o=c(c({},o),h.getChildContext())),p||null==h.getSnapshotBeforeUpdate||(y=h.getSnapshotBeforeUpdate(m,g)),I=null!=f&&f.type===d&&null==f.key?f.props.children:f,w(e,Array.isArray(I)?I:[I],t,r,o,i,u,s,l,a),h.base=t.__e,t.__h=null,h.__h.length&&s.push(h),v&&(h.__E=h.__=null),h.__e=!1}else null==u&&t.__v===r.__v?(t.__k=r.__k,t.__e=r.__e):t.__e=O(r.__e,t,r,o,i,u,s,a);(f=n.diffed)&&f(t)}catch(e){t.__v=null,(a||null!=u)&&(t.__e=l,t.__h=!!a,u[u.indexOf(l)]=null),n.__e(e,t,r)}}function I(e,t){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 O(n,t,r,o,i,s,l,c){var f,h,d,_=r.props,m=t.props,g=t.type,y=0;if("svg"===g&&(i=!0),null!=s)for(;y<s.length;y++)if((f=s[y])&&"setAttribute"in f==!!g&&(g?f.localName===g:3===f.nodeType)){n=f,s[y]=null;break}if(null==n){if(null===g)return document.createTextNode(m);n=i?document.createElementNS("http://www.w3.org/2000/svg",g):document.createElement(g,m.is&&m),s=null,c=!1}if(null===g)_===m||c&&n.data===m||(n.data=m);else{if(s=s&&e.call(n.childNodes),h=(_=r.props||u).dangerouslySetInnerHTML,d=m.dangerouslySetInnerHTML,!c){if(null!=s)for(_={},y=0;y<n.attributes.length;y++)_[n.attributes[y].name]=n.attributes[y].value;(d||h)&&(d&&(h&&d.__html==h.__html||d.__html===n.innerHTML)||(n.innerHTML=d&&d.__html||""))}if(function(e,n,t,r,o){var i;for(i in t)"children"===i||"key"===i||i in n||E(e,i,null,t[i],r);for(i in n)o&&"function"!=typeof n[i]||"children"===i||"key"===i||"value"===i||"checked"===i||t[i]===n[i]||E(e,i,n[i],t[i],r)}(n,m,_,i,c),d)t.__k=[];else if(y=t.props.children,w(n,Array.isArray(y)?y:[y],t,r,o,i&&"foreignObject"!==g,s,l,s?s[0]:r.__k&&p(r,0),c),null!=s)for(y=s.length;y--;)null!=s[y]&&a(s[y]);c||("value"in m&&void 0!==(y=m.value)&&(y!==n.value||"progress"===g&&!y||"option"===g&&y!==_.value)&&E(n,"value",y,_.value,!1),"checked"in m&&void 0!==(y=m.checked)&&y!==n.checked&&E(n,"checked",y,_.checked,!1))}return n}function M(e,t,r){try{"function"==typeof e?e(t):e.current=t}catch(e){n.__e(e,r)}}function N(e,t,r){var o,i;if(n.unmount&&n.unmount(e),(o=e.ref)&&(o.current&&o.current!==e.__e||M(o,null,t)),null!=(o=e.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(e){n.__e(e,t)}o.base=o.__P=null,e.__c=void 0}if(o=e.__k)for(i=0;i<o.length;i++)o[i]&&N(o[i],t,r||"function"!=typeof e.type);r||null==e.__e||a(e.__e),e.__=e.__e=e.__d=void 0}function A(e,n,t){return this.constructor(e,t)}function D(t,r,o){var i,s,l;n.__&&n.__(t,r),s=(i="function"==typeof o)?null:o&&o.__k||r.__k,l=[],T(r,t=(!i&&o||r).__k=f(d,null,[t]),s||u,u,void 0!==r.ownerSVGElement,!i&&o?[o]:s?null:r.firstChild?e.call(r.childNodes):null,l,!i&&o?o:s?s.__e:r.firstChild,i),I(l,t)}function R(e,n){D(e,n,R)}function G(n,t,r){var o,i,u,s=c({},n.props);for(u in t)"key"==u?o=t[u]:"ref"==u?i=t[u]:s[u]=t[u];return arguments.length>2&&(s.children=arguments.length>3?e.call(arguments,2):r),h(n.type,s,o||n.key,i||n.ref,null)}e=s.slice,n={__e:function(e,n,t,r){for(var o,i,u;n=n.__;)if((o=n.__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(n){e=n}throw e}},t=0,_.prototype.setState=function(e,n){var t;t=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=c({},this.state),"function"==typeof e&&(e=e(c({},t),this.props)),e&&c(t,e),null!=e&&this.__v&&(n&&this._sb.push(n),g(this))},_.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),g(this))},_.prototype.render=d,r=[],y.__r=0,i=0;var P,U,$,F,H=0,j=[],B=[],L=n.__b,V=n.__r,W=n.diffed,q=n.__c,z=n.unmount;function J(e,t){n.__h&&n.__h(U,e,H||t),H=0;var r=U.__H||(U.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({__V:B}),r.__[e]}function Z(e){return H=1,Y(ue,e)}function Y(e,n,t){var r=J(P++,2);if(r.t=e,!r.__c&&(r.__=[t?t(n):ue(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=U,!U.u)){U.u=!0;var o=U.shouldComponentUpdate;U.shouldComponentUpdate=function(e,n,t){if(!r.__c.__H)return!0;var i=r.__c.__H.__.filter((function(e){return e.__c}));if(i.every((function(e){return!e.__N})))return!o||o.call(this,e,n,t);var u=!1;return i.forEach((function(e){if(e.__N){var n=e.__[0];e.__=e.__N,e.__N=void 0,n!==e.__[0]&&(u=!0)}})),!(!u&&r.__c.props===e)&&(!o||o.call(this,e,n,t))}}return r.__N||r.__}function X(e,t){var r=J(P++,3);!n.__s&&ie(r.__H,t)&&(r.__=e,r.i=t,U.__H.__h.push(r))}function K(e,t){var r=J(P++,4);!n.__s&&ie(r.__H,t)&&(r.__=e,r.i=t,U.__h.push(r))}function Q(e,n){var t=J(P++,7);return ie(t.__H,n)?(t.__V=e(),t.i=n,t.__h=e,t.__V):t.__}function ee(){for(var e;e=j.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(re),e.__H.__h.forEach(oe),e.__H.__h=[]}catch(t){e.__H.__h=[],n.__e(t,e.__v)}}n.__b=function(e){U=null,L&&L(e)},n.__r=function(e){V&&V(e),P=0;var n=(U=e.__c).__H;n&&($===U?(n.__h=[],U.__h=[],n.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=B,e.__N=e.i=void 0}))):(n.__h.forEach(re),n.__h.forEach(oe),n.__h=[])),$=U},n.diffed=function(e){W&&W(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==j.push(t)&&F===n.requestAnimationFrame||((F=n.requestAnimationFrame)||te)(ee)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==B&&(e.__=e.__V),e.i=void 0,e.__V=B}))),$=U=null},n.__c=function(e,t){t.some((function(e){try{e.__h.forEach(re),e.__h=e.__h.filter((function(e){return!e.__||oe(e)}))}catch(r){t.some((function(e){e.__h&&(e.__h=[])})),t=[],n.__e(r,e.__v)}})),q&&q(e,t)},n.unmount=function(e){z&&z(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach((function(e){try{re(e)}catch(e){t=e}})),r.__H=void 0,t&&n.__e(t,r.__v))};var ne="function"==typeof requestAnimationFrame;function te(e){var n,t=function(){clearTimeout(r),ne&&cancelAnimationFrame(n),setTimeout(e)},r=setTimeout(t,100);ne&&(n=requestAnimationFrame(t))}function re(e){var n=U,t=e.__c;"function"==typeof t&&(e.__c=void 0,t()),U=n}function oe(e){var n=U;e.__c=e.__(),U=n}function ie(e,n){return!e||e.length!==n.length||n.some((function(n,t){return n!==e[t]}))}function ue(e,n){return"function"==typeof n?n(e):n}function se(e,n){for(var t in n)e[t]=n[t];return e}function le(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){return e===n&&(0!==e||1/e==1/n)||e!=e&&n!=n}function ae(e){this.props=e}(ae.prototype=new _).isPureReactComponent=!0,ae.prototype.shouldComponentUpdate=function(e,n){return le(this.props,e)||le(this.state,n)};var fe=n.__b;n.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),fe&&fe(e)};var he="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911,de=function(e,n){return null==e?null:b(b(e).map(n))},_e={map:de,forEach:de,count:function(e){return e?b(e).length:0},only:function(e){var n=b(e);if(1!==n.length)throw"Children.only";return n[0]},toArray:b},pe=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);pe(e,n,t,r)};var me=n.unmount;function ge(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=se({},e)).__c&&(e.__c.__P===t&&(e.__c.__P=n),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return ge(e,n,t)}))),e}function ye(e,n,t){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return ye(e,n,t)})),e.__c&&e.__c.__P===n&&(e.__e&&t.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=t)),e}function we(){this.__u=0,this.t=null,this.__b=null}function ve(e){var n=e.__.__c;return n&&n.__a&&n.__a(e)}function be(){this.u=null,this.o=null}n.unmount=function(e){var n=e.__c;n&&n.__R&&n.__R(),n&&!0===e.__h&&(e.type=null),me&&me(e)},(we.prototype=new _).__c=function(e,n){var t=n.__c,r=this;null==r.t&&(r.t=[]),r.t.push(t);var o=ve(r.__v),i=!1,u=function(){i||(i=!0,t.__R=null,o?o(s):s())};t.__R=u;var s=function(){if(!--r.__u){if(r.state.__a){var e=r.state.__a;r.__v.__k[0]=ye(e,e.__c.__P,e.__c.__O)}var n;for(r.setState({__a:r.__b=null});n=r.t.pop();)n.forceUpdate()}},l=!0===n.__h;r.__u++||l||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(u,u)},we.prototype.componentWillUnmount=function(){this.t=[]},we.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]=ge(this.__b,t,r.__O=r.__P)}this.__b=null}var o=n.__a&&f(d,null,e.fallback);return o&&(o.__h=null),[f(d,null,n.__a?null:e.children),o]};var Ce=function(e,n,t){if(++t[1]===t[0]&&e.o.delete(n),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(t=e.u;t;){for(;t.length>3;)t.pop()();if(t[1]<t[0])break;e.u=t=t[2]}};function Se(e){return this.getChildContext=function(){return e.context},e.children}function Ee(e){var n=this,t=e.i;n.componentWillUnmount=function(){D(null,n.l),n.l=null,n.i=null},n.i&&n.i!==t&&n.componentWillUnmount(),e.__v?(n.l||(n.i=t,n.l={nodeType:1,parentNode:t,childNodes:[],appendChild:function(e){this.childNodes.push(e),n.i.appendChild(e)},insertBefore:function(e,t){this.childNodes.push(e),n.i.appendChild(e)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),n.i.removeChild(e)}}),D(f(Se,{context:n.context},e.__v),n.l)):n.l&&n.componentWillUnmount()}(be.prototype=new _).__a=function(e){var n=this,t=ve(n.__v),r=n.o.get(e);return r[0]++,function(o){var i=function(){n.props.revealOrder?(r.push(o),Ce(n,e,r)):o()};t?t(i):i()}},be.prototype.render=function(e){this.u=null,this.o=new Map;var n=b(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&n.reverse();for(var t=n.length;t--;)this.o.set(n[t],this.u=[1,0,this.u]);return e.children},be.prototype.componentDidUpdate=be.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(n,t){Ce(e,t,n)}))};var xe="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,ke=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Te="undefined"!=typeof document,Ie=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(e)};_.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(_.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(n){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:n})}})}));var Oe=n.event;function Me(){}function Ne(){return this.cancelBubble}function Ae(){return this.defaultPrevented}n.event=function(e){return Oe&&(e=Oe(e)),e.persist=Me,e.isPropagationStopped=Ne,e.isDefaultPrevented=Ae,e.nativeEvent=e};var De,Re={configurable:!0,get:function(){return this.class}},Ge=n.vnode;n.vnode=function(e){var n=e.type,t=e.props,r=t;if("string"==typeof n){var o=-1===n.indexOf("-");for(var i in r={},t){var u=t[i];Te&&"children"===i&&"noscript"===n||"value"===i&&"defaultValue"in t&&null==u||("defaultValue"===i&&"value"in t&&null==t.value?i="value":"download"===i&&!0===u?u="":/ondoubleclick/i.test(i)?i="ondblclick":/^onchange(textarea|input)/i.test(i+n)&&!Ie(t.type)?i="oninput":/^onfocus$/i.test(i)?i="onfocusin":/^onblur$/i.test(i)?i="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(i)?i=i.toLowerCase():o&&ke.test(i)?i=i.replace(/[A-Z0-9]/g,"-$&").toLowerCase():null===u&&(u=void 0),/^oninput$/i.test(i)&&(i=i.toLowerCase(),r[i]&&(i="oninputCapture")),r[i]=u)}"select"==n&&r.multiple&&Array.isArray(r.value)&&(r.value=b(t.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==n&&null!=r.defaultValue&&(r.value=b(t.children).forEach((function(e){e.props.selected=r.multiple?-1!=r.defaultValue.indexOf(e.props.value):r.defaultValue==e.props.value}))),e.props=r,t.class!=t.className&&(Re.enumerable="className"in t,null!=t.className&&(r.class=t.className),Object.defineProperty(r,"className",Re))}e.$$typeof=xe,Ge&&Ge(e)};var Pe=n.__r;n.__r=function(e){Pe&&Pe(e),De=e.__c};var Ue={ReactCurrentDispatcher:{current:{readContext:function(e){return De.__n[e.__c].props.value}}}};function $e(e){return!!e&&e.$$typeof===xe}function Fe(e){e()}var He={useState:Z,useId:function(){var e=J(P++,11);if(!e.__){for(var n=U.__v;null!==n&&!n.__m&&null!==n.__;)n=n.__;var t=n.__m||(n.__m=[0,0]);e.__="P"+t[0]+"-"+t[1]++}return e.__},useReducer:Y,useEffect:X,useLayoutEffect:K,useInsertionEffect:K,useTransition:function(){return[!1,Fe]},useDeferredValue:function(e){return e},useSyncExternalStore:function(e,n){var t=n(),r=Z({h:{__:t,v:n}}),o=r[0].h,i=r[1];return K((function(){o.__=t,o.v=n,ce(o.__,n())||i({h:o})}),[e,t,n]),X((function(){return ce(o.__,o.v())||i({h:o}),e((function(){ce(o.__,o.v())||i({h:o})}))}),[e]),t},startTransition:Fe,useRef:function(e){return H=5,Q((function(){return{current:e}}),[])},useImperativeHandle:function(e,n,t){H=6,K((function(){return"function"==typeof e?(e(n()),function(){return e(null)}):e?(e.current=n(),function(){return e.current=null}):void 0}),null==t?t:t.concat(e))},useMemo:Q,useCallback:function(e,n){return H=8,Q((function(){return e}),n)},useContext:function(e){var n=U.context[e.__c],t=J(P++,9);return t.c=e,n?(null==t.__&&(t.__=!0,n.sub(U)),n.props.value):e.__},useDebugValue:function(e,t){n.useDebugValue&&n.useDebugValue(t?t(e):e)},version:"17.0.2",Children:_e,render:function(e,n,t){return null==n.__k&&(n.textContent=""),D(e,n),"function"==typeof t&&t(),e?e.__c:null},hydrate:function(e,n,t){return R(e,n),"function"==typeof t&&t(),e?e.__c:null},unmountComponentAtNode:function(e){return!!e.__k&&(D(null,e),!0)},createPortal:function(e,n){var t=f(Ee,{__v:e,i:n});return t.containerInfo=n,t},createElement:f,createContext:function(e,n){var t={__c:n="__cC"+i++,__:e,Consumer:function(e,n){return e.children(n)},Provider:function(e){var t,r;return this.getChildContext||(t=[],(r={})[n]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&t.some(g)},this.sub=function(e){t.push(e);var n=e.componentWillUnmount;e.componentWillUnmount=function(){t.splice(t.indexOf(e),1),n&&n.call(e)}}),e.children}};return t.Provider.__=t.Consumer.contextType=t},createFactory:function(e){return f.bind(null,e)},cloneElement:function(e){return $e(e)?G.apply(null,arguments):e},createRef:function(){return{current:null}},Fragment:d,isValidElement:$e,findDOMNode:function(e){return e&&(e.base||1===e.nodeType&&e)||null},Component:_,PureComponent:ae,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:le(this.props,e)}function r(n){return this.shouldComponentUpdate=t,f(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=se({},n);return delete t.ref,e(t,n.ref||null)}return n.$$typeof=he,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:d,Suspense:we,SuspenseList:be,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 f(t,o)}return o.displayName="Lazy",o.__f=!0,o},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Ue};const je=He,Be=f;function Le(e){return Array.isArray(e)||ArrayBuffer.isView(e)}function Ve(e){(function(e){return null!=e&&"function"==typeof e.Dispose})(e)&&e.Dispose()}function We(e,n){var t,r;return(null===(t=Object.getPrototypeOf(e))||void 0===t?void 0:t.constructor)===(null===(r=Object.getPrototypeOf(n))||void 0===r?void 0:r.constructor)}class qe{constructor(e){this.en=e}GetEnumerator(){return this.en}[Symbol.iterator](){return this}next(){const e=this.en["System.Collections.IEnumerator.MoveNext"]();return{done:!e,value:e?this.en["System.Collections.Generic.IEnumerator`1.get_Current"]():void 0}}}class ze{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 Je(e){return function(e){return null!=e&&"function"==typeof e.GetEnumerator}(e)?e.GetEnumerator():new ze(e[Symbol.iterator]())}function Ze(e){return{[Symbol.iterator](){return this},next(){const n=e["System.Collections.IEnumerator.MoveNext"]();return{done:!n,value:n?e["System.Collections.Generic.IEnumerator`1.get_Current"]():void 0}}}}class Ye{constructor(e){this.factory=e,this.isValueCreated=!1}get Value(){return this.isValueCreated||(this.createdValue=this.factory(),this.isValueCreated=!0),this.createdValue}get IsValueCreated(){return this.isValueCreated}}function Xe(e,n){let t=e.toString(10);for(;t.length<n;)t="0"+t;return t}function Ke(e){const n=e;return"number"==typeof n.offset?n.offset:1===e.kind?0:-6e4*e.getTimezoneOffset()}function Qe(e,n){return(e=e<0&&null!=n&&10!==n?4294967295+e+1:e).toString(n)}class en{static id(e){return en.idMap.has(e)||en.idMap.set(e,++en.count),en.idMap.get(e)}}function nn(e){let n=0,t=5381;const r=e.length;for(;n<r;)t=33*t^e.charCodeAt(n++);return t}function tn(e){return 2654435761*e|0}function rn(e){return 0===e.length?0:e.reduce(((e,n)=>(e<<5)+e^n))}function on(e){var n;if(null==e)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return tn(e);case"string":return nn(e);default:if(function(e){return null!=e&&"function"==typeof e.GetHashCode}(e))return e.GetHashCode();if(Le(e))return function(e){const n=e.length,t=new Array(n);for(let r=0;r<n;r++)t[r]=on(e[r]);return rn(t)}(e);if(e instanceof Date)return function(e){return e.getTime()}(e);if((null===(n=Object.getPrototypeOf(e))||void 0===n?void 0:n.constructor)===Object){const n=Object.values(e).map((e=>on(e)));return rn(n)}return tn(en.id(e))}}function un(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 sn(e,n){return un(e,n,ln)}function ln(e,n){var t;return e===n||(null==e?null==n:null!=n&&(function(e){return null!=e&&"function"==typeof e.Equals}(e)?e.Equals(n):Le(e)?Le(n)&&sn(e,n):"object"==typeof e&&(e instanceof Date?n instanceof Date&&0===cn(e,n):(null===(t=Object.getPrototypeOf(e))||void 0===t?void 0:t.constructor)===Object&&function(e,n){const t=Object.keys(e),r=Object.keys(n);if(t.length!==r.length)return!1;t.sort(),r.sort();for(let o=0;o<t.length;o++)if(t[o]!==r[o]||!ln(e[t[o]],n[r[o]]))return!1;return!0}(e,n))))}function cn(e,n){let t,r;return"offset"in e&&"offset"in n?(t=e.getTime(),r=n.getTime()):(t=e.getTime()+Ke(e),r=n.getTime()+Ke(n)),t===r?0:t<r?-1:1}function an(e,n){return e===n?0:e<n?-1:1}function fn(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,hn)}function hn(e,n){var t;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):Le(e)?Le(n)?fn(e,n):-1:"object"!=typeof e?e<n?-1:1:e instanceof Date?n instanceof Date?cn(e,n):-1:(null===(t=Object.getPrototypeOf(e))||void 0===t?void 0:t.constructor)===Object?function(e,n){const t=Object.keys(e),r=Object.keys(n);if(t.length!==r.length)return t.length<r.length?-1:1;t.sort(),r.sort();for(let o=0,i=0;o<t.length;o++){const u=t[o];if(u!==r[o])return u<r[o]?-1:1;if(i=hn(e[u],n[u]),0!==i)return i}return 0}(e,n):-1}function dn(e){const n={};for(const t of e)n[t[0]]=t[1];return n}en.idMap=new WeakMap,en.count=0;const _n=Symbol("curried");function pn(e,n){if(null==n||n.length>1)return n;const t=(...t)=>{let r=n;for(let n=0;n<e;n++)r=r(t[n]);return r};return t[_n]=n,t}function mn(e){const n=e<0,t=(e=Math.abs(e))%36e5/6e4;return(n?"-":"+")+Xe(~~(e/36e5),2)+":"+Xe(t,2)}function gn(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 yn(e,n,t){return n.replace(/(\w)\1*/g,(n=>{let r=Number.NaN;switch(n.substring(0,1)){case"y":const o=t?e.getUTCFullYear():e.getFullYear();r=n.length<4?o%100:o;break;case"M":r=(t?e.getUTCMonth():e.getMonth())+1;break;case"d":r=t?e.getUTCDate():e.getDate();break;case"H":r=t?e.getUTCHours():e.getHours();break;case"h":const i=t?e.getUTCHours():e.getHours();r=i>12?i%12:i;break;case"m":r=t?e.getUTCMinutes():e.getMinutes();break;case"s":r=t?e.getUTCSeconds():e.getSeconds();break;case"f":r=t?e.getUTCMilliseconds():e.getMilliseconds()}return Number.isNaN(r)?n:Xe(r,n.length)}))}function wn(e,n,t){return null!=e.offset?function(e,n){var t,r,o;const i=new Date(e.getTime()+(null!==(t=e.offset)&&void 0!==t?t:0));if("string"!=typeof n)return i.toISOString().replace(/\.\d+/,"").replace(/[A-Z]|\.\d+/g," ")+mn(null!==(r=e.offset)&&void 0!==r?r:0);if(1!==n.length)return yn(i,n,!0);switch(n){case"D":case"d":return gn(i,"first");case"T":case"t":return gn(i,"second");case"O":case"o":return function(e,n){const t=e.toISOString();return t.substring(0,t.length-1)+mn(n)}(i,null!==(o=e.offset)&&void 0!==o?o:0);default:throw new Error("Unrecognized Date print format")}}(e,n):function(e,n){const t=1===e.kind;if("string"!=typeof n)return t?e.toUTCString():e.toLocaleString();if(1!==n.length)return yn(e,n,t);switch(n){case"D":case"d":return t?gn(e,"first"):e.toLocaleDateString();case"T":case"t":return t?gn(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 Xe(e.getFullYear(),4)+"-"+Xe(e.getMonth()+1,2)+"-"+Xe(e.getDate(),2)+"T"+Xe(e.getHours(),2)+":"+Xe(e.getMinutes(),2)+":"+Xe(e.getSeconds(),2)+"."+Xe(e.getMilliseconds(),3)+(n?mn(-6e4*e.getTimezoneOffset()):"")}}(e,t);default:throw new Error("Unrecognized Date print format")}}(e,n)}function vn(e,n){const t=new Date(e);return t.kind=0|(null==n?0:n),t}function bn(e){function n(){throw new Error(`The string is not a valid Date: ${e}`)}null!=e&&""!==e.trim()||n(),10===e.length&&"-"===e[4]&&"-"===e[7]&&(e+="T00:00:00");let t=new Date(e),r=null;if(isNaN(t.getTime())){const o=/^\s*(\d+[^\w\s:]\d+[^\w\s:]\d+)?\s*(\d+:\d+(?::\d+(?:\.\d+)?)?)?\s*([AaPp][Mm])?\s*(Z|[+-]([01]?\d):?([0-5]?\d)?)?\s*$/.exec(e);if(null!=o){let e,n=0;if(null!=o[2]){const e=o[2].split(":");n=3600*parseInt(e[0],10)+60*parseInt(e[1]||"0",10)+parseFloat(e[2]||"0"),null!=o[3]&&"PM"===o[3].toUpperCase()&&(n+=720)}if(null!=o[4]){if(null!=o[1])e=new Date(o[1]+" UTC");else{const n=new Date;e=new Date(n.getUTCFullYear()+"/"+(n.getUTCMonth()+1)+"/"+n.getUTCDate())}if("Z"===o[4])r="Z";else{let e=60*parseInt(o[5],10)+parseInt(o[6]||"0",10);"-"===o[4][0]&&(e*=-1),r=e,n-=60*e}}else if(null!=o[1])e=new Date(o[1]);else{const n=new Date;e=new Date(n.getFullYear()+"/"+(n.getMonth()+1)+"/"+n.getDate())}t=new Date(e.getTime()+1e3*n),t=new Date(t.getTime()+6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))}else n();isNaN(t.getTime())&&n()}return[t,r]}function Cn(e,n){try{return n.contents=function(e,n=!1){const[t,r]=bn(e),o=null!=r?n&&"Z"===r?1:2:0;return vn(t.getTime(),o)}(e),!0}catch(e){return!1}}const Sn=Symbol("numeric");function En(e){return"number"==typeof e||(null==e?void 0:e[Sn])}function xn(e,n){return"number"==typeof e?e*n:e[Sn]().multiply(n)}function kn(e,n){return"number"==typeof e?e.toFixed(n):e[Sn]().toFixed(n)}function Tn(e,n){return"number"==typeof e?e.toPrecision(n):e[Sn]().toPrecision(n)}function In(e,n){return"number"==typeof e?e.toExponential(n):e[Sn]().toExponential(n)}function On(e){return"number"==typeof e?(Number(e)>>>0).toString(16):e[Sn]().toHex()}function Mn(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function Nn(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}function An(e,n=0){var t,r;if(null!=e&&"object"==typeof e){if("function"==typeof e.toString)return e.toString();if(Symbol.iterator in e)return function(e){let n=0,t="[";for(const r of e){if(0===n)t+=An(r);else{if(100===n){t+="; ...";break}t+="; "+An(r)}n++}return t+"]"}(e);{const o=null===(t=Object.getPrototypeOf(e))||void 0===t?void 0:t.constructor;return o===Object&&n<10?"{ "+Object.entries(e).map((([e,t])=>e+" = "+An(t,n+1))).join("\n ")+" }":null!==(r=null==o?void 0:o.name)&&void 0!==r?r:""}}return String(e)}class Dn{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=An(n[0]),r=t.indexOf(" ")>=0):t=n.map((e=>An(e))).join(", "),e+(r?" (":" ")+t+(r?")":"")}}(this.name,this.fields)}GetHashCode(){const e=this.fields.map((e=>on(e)));return e.splice(0,0,tn(this.tag)),rn(e)}Equals(e){return this===e||!!We(this,e)&&this.tag===e.tag&&sn(this.fields,e.fields)}CompareTo(e){return this===e?0:We(this,e)?this.tag===e.tag?fn(this.fields,e.fields):this.tag<e.tag?-1:1:-1}}class Rn{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+" = "+An(n))).join("\n ")+" }";var e}GetHashCode(){return function(e){const n=Object.values(e).map((e=>on(e)));return rn(n)}(this)}Equals(e){return function(e,n){if(e===n)return!0;if(We(e,n)){const t=Object.keys(e);for(let r=0;r<t.length;r++)if(!ln(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(We(e,n)){const t=Object.keys(e);for(let r=0;r<t.length;r++){const o=hn(e[t[r]],n[t[r]]);if(0!==o)return o}return 0}return-1}(this,e)}}class Gn{constructor(e,n){"function"==typeof n?(this.getter=e,this.setter=n):(this.getter=()=>e,this.setter=n=>{e=n})}get contents(){return this.getter()}set contents(e){this.setter(e)}}class Pn{constructor(e){this.message=e}}function Un(e){return function(e){return e instanceof Pn||e instanceof Error}(e)?e:new Error(String(e))}const $n=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g,Fn=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function Hn(e,n){return function(e,n){return"number"==typeof e?e<n?-1:e>n?1:0:e.CompareTo(n)}(e,n)<0}function jn(e){return{input:e,cont:(n=e,e=>{$n.lastIndex=0;const t=[],r=[];let o=0,i=$n.exec(n);for(;i;){const e=i.index+(i[1]||"").length;t.push(n.substring(o,e).replace(/%%/g,"%")),r.push(i),o=$n.lastIndex,$n.lastIndex-=1,i=$n.exec(n)}return 0===t.length?e(n.replace(/%%/g,"%")):(t.push(n.substring(o).replace(/%%/g,"%")),qn(e,t,r))})};var n}function Bn(e,n){return"string"==typeof n?e(n):n.cont(e)}function Ln(e){return Bn((e=>e),e)}function Vn(e){return Bn((e=>{throw new Error(e)}),e)}function Wn(e,n,t,r,o){let i="";if(n=n||"",o=o||"",En(e))switch("x"!==o.toLowerCase()&&(Hn(e,0)?(e=xn(e,-1),i="-"):n.indexOf(" ")>=0?i=" ":n.indexOf("+")>=0&&(i="+")),r=null==r?null:parseInt(r,10),o){case"f":case"F":e=kn(e,r=null!=r?r:6);break;case"g":case"G":e=null!=r?Tn(e,r):Tn(e);break;case"e":case"E":e=null!=r?In(e,r):In(e);break;case"x":e=On(e);break;case"X":e=On(e).toUpperCase();break;default:e=String(e)}else e=e instanceof Date?wn(e):An(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,u=o||!r?" ":"0";e="0"===u?i+(e=Jn(e,t-i.length,u,o)):Jn(i+e,t,u,o)}return e}function qn(e,n,t,r="",o=-1){return(...i)=>{let u=r;const s=n.slice(),l=t.slice();for(const e of i){const[,,n,t,r,i]=l[0];let c=t;if(o>=0)c=o,o=-1;else if("*"===c){if(e<0)throw new Error("Non-negative number required");o=e;continue}u+=s[0],u+=Wn(e,n,c,r,i),s.splice(0,1),l.splice(0,1)}return 0===l.length?(u+=s[0],e(u)):qn(e,s,l,u,o)}}function zn(e,n){return Array.isArray(n)?n.join(e):Array.from(n).join(e)}function Jn(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 Zn(e,n,t){return Jn(e,n,t)}const Yn="Collection was empty.";class Xn{constructor(e){this.value=e}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return on(this.value)}Equals(e){return null!=e&&ln(this.value,e instanceof Xn?e.value:e)}CompareTo(e){return null==e?1:hn(this.value,e instanceof Xn?e.value:e)}}function Kn(e){return null==e||e instanceof Xn?new Xn(e):e}function Qn(e){if(null==e)throw new Error("Option has no value");return e instanceof Xn?e.value:e}function et(e,n){return null!=e?Qn(e):n}function nt(e,n,t,r){const o=0|n;return e.fill(r,o,o+t)}function tt(e,n,t){const r=0|n.length,o=function(e,n){return"function"==typeof e?new e(n):new Array(n)}(t,r);for(let t=0;t<=r-1;t++)o[t]=e(n[t]);return o}function rt(e,n,t){return t.reduce(e,n)}function ot(e,n,t,r){return function(e,n,t,r){let o=r;n.length!==t.length&&function(){throw new Error("Arrays had different lengths")}();const i=0|n.length;for(let r=1;r<=i;r++)o=e(0,n[i-r],t[i-r],o);return o}(((n,t,r,o)=>e(t,r,o)),n,t,r)}class it extends Rn{constructor(e,n){super(),this.head=e,this.tail=n}toString(){return"["+zn("; ",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 u=o,s=i;if(ln(t.head,r.head)){e=u,n=s;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,u=i.tail;if(null==u)return 0|o;{const s=u;if(r>18)return 0|o;e=r+1,n=(o<<1)+on(i.head)+631*r,t=s}}})(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 u=o,s=i,l=0|hn(t.head,r.head);if(0===l){e=u,n=s;continue e}return 0|l}return 1}return null!=i?-1:0}})(this,e)}GetEnumerator(){return new ut(this)}[Symbol.iterator](){return Ze(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return Je(this)}}class ut{constructor(e){this.xs=e,this.it=this.xs,this.current=null}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current}"System.Collections.IEnumerator.get_Current"(){return this.current}"System.Collections.IEnumerator.MoveNext"(){const e=this,n=e.it.tail;if(null!=n){const t=n;return e.current=e.it.head,e.it=t,!0}return!1}"System.Collections.IEnumerator.Reset"(){const e=this;e.it=e.xs,e.current=null}Dispose(){}}function st(){return new it(null,void 0)}function lt(e,n){return new it(e,n)}function ct(e){return null==e.tail}function at(e){if(null!=e.tail)return e.head;throw new Error(Yn+"\\nParameter name: list")}function ft(e){const n=e.tail;if(null!=n)return n;throw new Error(Yn+"\\nParameter name: list")}function ht(){return st()}function dt(e,n){return lt(e,n)}function _t(e){return lt(e,st())}function pt(e){return ct(e)}function mt(e){return at(e)}function gt(e){return ft(e)}function yt(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=r}})(0,e)}(e),t=nt(new Array(n),0,n,null);return((e,n)=>{for(;;){const r=e,o=n;if(ct(o))break;t[r]=at(o),e=r+1,n=ft(o)}})(0,e),t}function wt(e,n,t){let r=n,o=t;for(;!ct(o);)r=e(r,at(o)),o=ft(o);return r}function vt(e){return wt(((e,n)=>lt(n,e)),st(),e)}function bt(e,n){let t=n;for(let n=e.length-1;n>=0;n--)t=lt(e[n],t);return t}function Ct(e){return bt(e,st())}function St(e,n){return wt(((e,n)=>lt(n,e)),n,vt(e))}const Et=(e,n)=>{X((()=>{const n=e();return()=>{n.Dispose()}}),n)};function xt(e){return{Dispose(){e()}}}function kt(e){return je.useRef(e)}function Tt(e){const n=kt(e),t=function(e,t){const r=et([],[]);return je.useCallback((e=>n.current(e)),r)}();var r,o;return r=()=>{n.current=e},o=e=>(r(),xt((()=>{}))),K((()=>{const e=o();return()=>{e.Dispose()}})),t}function It(e){return je.useState(e)}class Ot{constructor(e,n,t,r){this.declaringType=e,this.tag=n,this.name=t,this.fields=r}}class Mt{constructor(e,n,t,r,o,i,u){this.fullname=e,this.generics=n,this.construct=t,this.parent=r,this.fields=o,this.cases=i,this.enumCases=u}toString(){return $t(this)}GetHashCode(){return At(this)}Equals(e){return Dt(this,e)}}function Nt(e){return null!=e.generics?e.generics:[]}function At(e){return rn([nn(e.fullname),...Nt(e).map(At)])}function Dt(e,n){return""===e.fullname?""===n.fullname&&un(Jt(e),Jt(n),(([e,n],[t,r])=>e===t&&Dt(n,r))):e.fullname===n.fullname&&un(Nt(e),Nt(n),Dt)}function Rt(...e){return new Mt("",void 0,void 0,void 0,(()=>e))}const Gt=new Mt("System.Object"),Pt=(new Mt("Microsoft.FSharp.Core.Unit"),new Mt("System.Char"),new Mt("System.String"),new Mt("System.Boolean"),new Mt("System.SByte"),new Mt("System.Byte"),new Mt("System.Int16"),new Mt("System.UInt16"),new Mt("System.Int32"));function Ut(e){if(Array.isArray(e))return e[0];if(e instanceof Mt){const n=Ht(e);if(null!=n)return Ut(n)+"[]";{const n=e.fullname.lastIndexOf(".");return-1===n?e.fullname:e.fullname.substr(n+1)}}return e.name}function $t(e){const n=Ht(e);return null!=n?$t(n)+"[]":null==e.generics||0===e.generics.length?e.fullname:e.fullname+"["+e.generics.map((e=>$t(e))).join(",")+"]"}function Ft(e){return null!=Ht(e)}function Ht(e){var n;return"[]"===e.fullname&&1===(null===(n=e.generics)||void 0===n?void 0:n.length)?e.generics[0]:void 0}function jt(e){return null!=e.generics&&e.generics.length>0}function Bt(e){return null!=e.enumCases&&e.enumCases.length>0}function Lt(e){return null==e.generics?e:new Mt(e.fullname,e.generics.map((()=>Gt)))}function Vt(e){var n;return null===(n=e.generics)||void 0===n?void 0:n[0]}function Wt(e){if(Bt(e)&&null!=e.enumCases)return e.enumCases.map((e=>e[1]));throw new Error(`${e.fullname} is not an enum type`)}function qt(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 zt(e){if(null!=e.cases)return e.cases();throw new Error(`${e.fullname} is not an F# union type`)}function Jt(e){if(null!=e.fields)return e.fields();throw new Error(`${e.fullname} is not an F# record type`)}function Zt(e){if(Kt(e)&&null!=e.generics)return e.generics;throw new Error(`${e.fullname} is not a tuple type`)}function Yt(e){return e instanceof Mt?null!=e.cases:e instanceof Dn}function Xt(e){return e instanceof Mt?null!=e.fields:e instanceof Rn}function Kt(e){return e.fullname.startsWith("System.Tuple")}function Qt(e){return null==e.fields?[]:e.fields}function er(e,n){const t=(e.fields||[]).length;if(n.length!==t)throw new Error(`Expected an array of length ${t} but got ${n.length}`);return null!=e.declaringType.construct?new e.declaringType.construct(e.tag,n):{}}new Mt("System.UInt32"),new Mt("System.Int64"),new Mt("System.UInt64"),new Mt("System.Numerics.BigInteger"),new Mt("System.IntPtr"),new Mt("System.UIntPtr"),new Mt("System.Single"),new Mt("System.Double"),new Mt("System.Decimal");class nr extends Dn{constructor(e,n){super(),this.tag=e,this.fields=n}cases(){return["Inherited","Default","Specific"]}}class tr extends Rn{constructor(e,n){super(),this.MaxAccounts=0|e,this.ConfigOwnership=n}}class rr{constructor(e=!1){this._id=0,this._cancelled=e,this._listeners=new Map}get isCancelled(){return this._cancelled}cancel(){if(!this._cancelled){this._cancelled=!0;for(const[,e]of this._listeners)e()}}addListener(e){const n=this._id;return this._listeners.set(this._id++,e),n}removeListener(e){return this._listeners.delete(e)}register(e,n){const t=this,r=this.addListener(null==n?e:()=>e(n));return{Dispose(){t.removeListener(r)}}}Dispose(){}}class or extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,or.prototype)}}class ir{constructor(){this.callCount=0}static get maxTrampolineCallCount(){return 2e3}incrementAndCheck(){return this.callCount++>ir.maxTrampolineCallCount}hijack(e){this.callCount=0,setTimeout(e,0)}}function ur(e){return n=>{if(n.cancelToken.isCancelled)n.onCancel(new or);else if(n.trampoline.incrementAndCheck())n.trampoline.hijack((()=>{try{e(n)}catch(e){n.onError(Un(e))}}));else try{e(n)}catch(e){n.onError(Un(e))}}}const sr=new class{Bind(e,n){return function(e,n){return ur((t=>{e({onSuccess:e=>{try{n(e)(t)}catch(e){t.onError(Un(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 ur((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 ur((n=>n.onSuccess(e)))}(e)}ReturnFrom(e){return e}TryFinally(e,n){return ur((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 ur((t=>{e({onSuccess:t.onSuccess,onCancel:t.onCancel,cancelToken:t.cancelToken,trampoline:t.trampoline,onError:e=>{try{n(e)(t)}catch(e){t.onError(Un(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 ur((e=>e.onSuccess(void 0)))}};function lr(e){}const cr=new rr;function ar(e,n){return function(e,n){return function(e,n,t,r,o){"function"!=typeof n&&(o=n,n=void 0);const i=new ir;e({onSuccess:n||lr,onError:t||lr,onCancel:r||lr,cancelToken:o||cr,trampoline:i})}(e,n)}(e,n)}class fr extends Dn{constructor(e,n){super(),this.tag=e,this.fields=n}cases(){return["HasNotStartedYet","InProgress","Resolved","Failed"]}}function hr(e,n){const t=kt(function(e){const n=new rr(!1);return n}());return Et((()=>xt((()=>{t.current.cancel()}))),[]),Tt((r=>{var o,i;null!=(i=t.current)&&i.isCancelled||ar((o=r,sr.Delay((()=>sr.TryWith(sr.Delay((()=>(n(new fr(1,[])),sr.Bind(e(o),(e=>(n(new fr(2,[e])),sr.Zero())))))),(e=>(n(new fr(3,[e])),sr.Zero())))))),t.current)}))}class dr extends Dn{constructor(e,n){super(),this.tag=e,this.fields=n}cases(){return["Ok","Error"]}}function _r(e,n){return 0===n.tag?new dr(0,[e(n.fields[0])]):new dr(1,[n.fields[0]])}function pr(e,n){return new dr(0,[n])}new class{constructor(){}};function mr(e){const n=pr();return sr.Return(n)}function gr(e,n){return sr.Delay(n)}new class{constructor(){}};class yr extends Dn{constructor(e,n){super(),this.tag=e,this.fields=n}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class wr extends Dn{constructor(e,n){super(),this.tag=e,this.fields=n}cases(){return["Header"]}}class vr extends Dn{constructor(e,n){super(),this.tag=e,this.fields=n}cases(){return["Empty","Text","Binary","Form"]}}class br extends Rn{constructor(e,n,t,r,o,i,u,s){super(),this.url=e,this.method=n,this.headers=t,this.withCredentials=r,this.overridenMimeType=o,this.overridenResponseType=i,this.timeout=u,this.content=s}}class Cr extends Dn{constructor(e,n){super(),this.tag=e,this.fields=n}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class Sr extends Rn{constructor(e,n,t,r,o){super(),this.statusCode=0|e,this.responseText=n,this.responseType=t,this.responseHeaders=r,this.content=o}}class Er{constructor(e){this.f=e}toString(){let e=0,n="seq [";const t=Je(this);try{for(;e<4&&t["System.Collections.IEnumerator.MoveNext"]();)e>0&&(n+="; "),n+=An(t["System.Collections.Generic.IEnumerator`1.get_Current"]()),e=e+1|0;return 4===e&&(n+="; ..."),n+"]"}finally{Ve(t)}}GetEnumerator(){return this.f()}[Symbol.iterator](){return Ze(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}class xr{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 kr(e,n,t){let r,o=!1,i=Kn(e());const u=()=>{if(null!=i){const e=Qn(i);try{t(e)}finally{i=void 0}}},s=()=>{try{u()}finally{r=void 0}};return function(e,n,t){return new xr(e,n,t)}((()=>(o||function(){throw new Error("Enumeration has not started. Call MoveNext.")}(),null!=r?Qn(r):function(){throw new Error("Enumeration already finished.")}())),(()=>{if(o||(o=!0),null!=i){const e=Qn(i);let t;try{t=n(e)}catch(e){throw s(),e}return null!=t?(r=t,!0):(s(),!1)}return!1}),u)}function Tr(e){return function(e){return new Er(e)}(e)}function Ir(e){return n="source",null==e&&function(e){throw new Error(e)}(n),Je(e);var n}function Or(e,n,t){const r=Ir(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{Ve(r)}}function Mr(e,n,t){const r=Ir(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{Ve(r)}}function Nr(e,n){Mr(((n,t)=>{e(t)}),void 0,n)}function Ar(e,n){return t=()=>Ir(n),r=n=>n["System.Collections.IEnumerator.MoveNext"]()?Kn(e(n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,o=e=>{Ve(e)},Tr((()=>kr(t,r,o)));var t,r,o}function Dr(e,n){return t=()=>Ir(n),r=(n,t)=>t["System.Collections.IEnumerator.MoveNext"]()?Kn(e(n,t["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,o=e=>{Ve(e)},Tr((()=>{let e=-1;return kr(t,(n=>(e=e+1|0,r(e,n))),o)}));var t,r,o}class Rr{constructor(e,n){this.cleanup=e,this.res=n}Dispose(){this.cleanup()}GetEnumerator(){return getEnumerator(this.res)}[Symbol.iterator](){return toIterator(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return getEnumerator(this.res)}}class Gr{constructor(e,n){this.k=e,this.v=n}}function Pr(e,n){return new Gr(e,n)}function Ur(e){return e.k}function $r(e){return e.v}class Fr extends Gr{constructor(e,n,t,r,o){super(e,n),this.left=t,this.right=r,this.h=0|o}}function Hr(e,n,t,r,o){return new Fr(e,n,t,r,o)}function jr(e){return e.left}function Br(e){return e.right}function Lr(e){return e.h}function Vr(e,n){e:for(;;){const t=e;if(null!=n){const r=n;if(r instanceof Fr){e=Vr(t+1,jr(r)),n=Br(r);continue e}return t+1|0}return 0|t}}function Wr(e){return Vr(0,e)}function qr(e,n,t,r){let o,i;o=null!=e?e instanceof Fr?Lr(e):1:0,i=null!=r?r instanceof Fr?Lr(r):1:0;const u=0|(o<i?i:o);return 0===u?Pr(n,t):Hr(n,t,e,r,u+1)}function zr(e,n,t,r){let o,i,u,s,l,c;if(l=null!=e?e instanceof Fr?Lr(e):1:0,c=null!=r?r instanceof Fr?Lr(r):1:0,c>l+2){const u=Qn(r);if(u instanceof Fr){if(o=jr(u),(null!=o?(i=o,i instanceof Fr?Lr(i):1):0)>l+1){const r=Qn(jr(u));if(r instanceof Fr)return qr(qr(e,n,t,jr(r)),Ur(r),$r(r),qr(Br(r),Ur(u),$r(u),Br(u)));throw new Error("internal error: Map.rebalance")}return qr(qr(e,n,t,jr(u)),Ur(u),$r(u),Br(u))}throw new Error("internal error: Map.rebalance")}if(l>c+2){const o=Qn(e);if(o instanceof Fr){if(u=Br(o),(null!=u?(s=u,s instanceof Fr?Lr(s):1):0)>c+1){const e=Qn(Br(o));if(e instanceof Fr)return qr(qr(jr(o),Ur(o),$r(o),jr(e)),Ur(e),$r(e),qr(Br(e),n,t,r));throw new Error("internal error: Map.rebalance")}return qr(jr(o),Ur(o),$r(o),qr(Br(o),n,t,r))}throw new Error("internal error: Map.rebalance")}return qr(e,n,t,r)}function Jr(e,n,t,r){if(null!=r){const o=r,i=0|e.Compare(n,Ur(o));return o instanceof Fr?i<0?zr(Jr(e,n,t,jr(o)),Ur(o),$r(o),Br(o)):0===i?Hr(n,t,jr(o),Br(o),Lr(o)):zr(jr(o),Ur(o),$r(o),Jr(e,n,t,Br(o))):i<0?Hr(n,t,void 0,r,2):0===i?Pr(n,t):Hr(n,t,r,void 0,2)}return Pr(n,t)}function Zr(e,n,t){e:for(;;){const r=e,o=n;if(null!=t){const i=t,u=0|r.Compare(o,Ur(i));if(0===u)return Kn($r(i));if(i instanceof Fr){e=r,n=o,t=u<0?jr(i):Br(i);continue e}return}return}}function Yr(e,n){e:for(;;){const t=e;if(null!=n){const r=n;if(r instanceof Fr){Yr(t,jr(r)),t(Ur(r),$r(r)),e=t,n=Br(r);continue e}t(Ur(r),$r(r))}break}}function Xr(e,n){Yr(e,n)}function Kr(e,n){if(null!=n){const t=n;if(t instanceof Fr){const n=Kr(e,jr(t)),r=e(Ur(t),$r(t)),o=Kr(e,Br(t));return Hr(Ur(t),r,n,o,Lr(t))}return Pr(Ur(t),e(Ur(t),$r(t)))}}function Qr(e,n){return Kr(e,n)}function eo(e,n){if(Le(n))return function(e,n){let t;for(let r=0;r<=n.length-1;r++){const o=n[r];t=Jr(e,o[0],o[1],t)}return t}(e,n);if(n instanceof it)return function(e,n){return wt(((n,t)=>Jr(e,t[0],t[1],n)),void 0,n)}(e,n);{const t=Je(n);try{return function(e,n,t){for(;;){const r=e,o=n,i=t;if(!i["System.Collections.IEnumerator.MoveNext"]())return o;{const u=i["System.Collections.Generic.IEnumerator`1.get_Current"]();e=r,n=Jr(r,u[0],u[1],o),t=i}}}(e,void 0,t)}finally{Ve(t)}}}class no extends Rn{constructor(e,n){super(),this.stack=e,this.started=n}}function to(e){e:for(;;){const n=e;if(pt(n))return ht();{const t=gt(n),r=mt(n);if(null!=r){const o=r;if(o instanceof Fr){e=bt([jr(o),Pr(Ur(o),$r(o)),Br(o)],t);continue e}return n}e=t;continue e}}}function ro(e){return new no(to(_t(e)),!1)}function oo(e){if(e.started){const n=e.stack;if(pt(n))return function(){throw new Error("enumeration already finished")}();if(null!=mt(n)){const e=mt(n);if(e instanceof Fr)throw new Error("Please report error: Map iterator, unexpected stack for current");return[Ur(e),$r(e)]}throw new Error("Please report error: Map iterator, unexpected stack for current")}return function(){throw new Error("enumeration not started")}()}function io(e){let n=ro(e);return{"System.Collections.Generic.IEnumerator`1.get_Current":()=>oo(n),"System.Collections.IEnumerator.get_Current":()=>oo(n),"System.Collections.IEnumerator.MoveNext":()=>function(e){if(e.started){const n=e.stack;if(pt(n))return!1;if(null!=mt(n)){if(mt(n)instanceof Fr)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=to(gt(n)),!pt(e.stack)}throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}return e.started=!0,!pt(e.stack)}(n),"System.Collections.IEnumerator.Reset"(){n=ro(e)},Dispose(){}}}class uo{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=Je(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const e=r["System.Collections.Generic.IEnumerator`1.get_Current"]();t=0|n(t,on(e[0])),t=0|n(t,on(e[1]))}}finally{Ve(r)}return 0|t}(this)}Equals(e){if(!(e instanceof uo))return!1;{const n=Je(this);try{const t=Je(e);try{const e=()=>{const r=n["System.Collections.IEnumerator.MoveNext"]();if(r===t["System.Collections.IEnumerator.MoveNext"]()){if(r){const r=n["System.Collections.Generic.IEnumerator`1.get_Current"](),o=t["System.Collections.Generic.IEnumerator`1.get_Current"]();return!(!ln(r[0],o[0])||!ln(r[1],o[1]))&&e()}return!0}return!1};return e()}finally{Ve(t)}}finally{Ve(n)}}}toString(){return"map ["+zn("; ",Ar((e=>function(e,...n){return"object"==typeof e&&n.length>0&&(e=n[0],n.shift()),e.replace(Fn,((e,t,r,o,i,u)=>{if(t<0||t>=n.length)throw new Error("Index must be greater or equal to zero and less than the arguments' length.");let s=n[t];if(En(s))switch(i=null==i?null:parseInt(i,10),o){case"f":case"F":s=kn(s,i=null!=i?i:2);break;case"g":case"G":s=null!=i?Tn(s,i):Tn(s);break;case"e":case"E":s=null!=i?In(s,i):In(s);break;case"p":case"P":i=null!=i?i:2,s=kn(xn(s,100),i)+" %";break;case"d":case"D":s=null!=i?Zn(String(s),i,"0"):String(s);break;case"x":case"X":s=null!=i?Zn(On(s),i,"0"):On(s),"X"===o&&(s=s.toUpperCase());break;default:if(u){let e="";s=u.replace(/([0#,]+)(\.[0#]+)?/,((n,t,r)=>{Hn(s,0)&&(s=xn(s,-1),e="-"),r=null==r?"":r.substring(1),s=kn(s,Math.max(r.length,0));let[o,i]=s.split(".");i||(i=""),o=Zn(o,t.replace(/,/g,"").replace(/^#+/,"").length,"0");const u=r.replace(/#+$/,"").length;if(u>i.length?i=function(e,n,t){return Jn(e,n,"0",!0)}(i,u):u<i.length&&(i=i.substring(0,u)+i.substring(u).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})),s=e+s}}else s=s instanceof Date?wn(s,u||o):An(s);return r=parseInt((r||" ").substring(1),10),isNaN(r)||(s=Jn(String(s),Math.abs(r)," ",r<0)),s}))}("({0}, {1})",e[0],e[1])),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(){return Array.from(this)}GetEnumerator(){return io(this.tree)}[Symbol.iterator](){return Ze(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return io(this.tree)}CompareTo(e){const n=this;if(e instanceof uo)return 0|function(e,n,t){const r=Ir(n);try{const n=Ir(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{Ve(n)}}finally{Ve(r)}}(((e,t)=>{const r=0|n.comparer.Compare(e[0],t[0]);return 0|(0!==r?r:hn(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 ao(this,e[0])&&ln(lo(this,e[0]),e[1])}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(e,n){!function(e,n,t){let r=t;Xr(((e,t)=>{n[r]=[e,t],r=r+1|0}),e)}(this.tree,e,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|co(this)}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return 0|co(this)}get size(){return 0|co(this)}clear(){throw new Error("Map cannot be mutated")}delete(e){throw new Error("Map cannot be mutated")}entries(){return Ar((e=>[e[0],e[1]]),this)}get(e){return lo(this,e)}has(e){return ao(this,e)}keys(){return Ar((e=>e[0]),this)}set(e,n){throw new Error("Map cannot be mutated")}values(){return Ar((e=>e[1]),this)}forEach(e,n){const t=this;Nr((n=>{e(n[1],n[0],t)}),t)}}function so(e,n){return new uo(e,n)}function lo(e,n){return function(e,n,t){const r=Zr(e,n,t);if(null==r)throw new Error;return Qn(r)}(e.comparer,n,e.tree)}function co(e){return Wr(e.tree)}function ao(e,n){return function(e,n,t){e:for(;;){const r=e,o=n;if(null!=t){const i=t,u=0|r.Compare(o,Ur(i));if(i instanceof Fr){if(u<0){e=r,n=o,t=jr(i);continue e}if(0===u)return!0;e=r,n=o,t=Br(i);continue e}return 0===u}return!1}}(e.comparer,n,e.tree)}function fo(e,n,t){return function(e,n,t){return so(e.comparer,Jr(e.comparer,n,t,e.tree))}(t,e,n)}function ho(e,n){return function(e,n){return Zr(e.comparer,n,e.tree)}(n,e)}function _o(e,n){return function(e,n){return so(e.comparer,Qr(n,e.tree))}(n,e)}function po(e){return function(e){return so(e,void 0)}(e)}const mo=new br("",new yr(0,[]),ht(),!1,void 0,void 0,void 0,new vr(0,[]));function go(e,n){return"string"!=typeof(t=n)||0===t.length?[n]:function(e,n,t,r){if(r="number"==typeof r?r:0,(t="number"==typeof t?t:void 0)&&t<0)throw new Error("Count cannot be less than zero");if(0===t)return[];const o=1==(1&r),i=2==(2&r);n=(n=n||[]).filter((e=>e)).map(Mn),n=n.length>0?n:["\\s"];const u=[],s=new RegExp(n.join("|"),"g");let l=!0,c=0;do{const n=s.exec(e);if(null===n){const n=i?e.substring(c).trim():e.substring(c);(!o||n.length>0)&&u.push(n),l=!1}else{const r=i?e.substring(c,n.index).trim():e.substring(c,n.index);(!o||r.length>0)&&(null!=t&&u.length+1===t?(u.push(i?e.substring(c).trim():e.substring(c)),l=!1):u.push(r)),c=s.lastIndex}}while(l);return u}(n,[e],null,0);var t}function yo(e){return new br(e,mo.method,mo.headers,mo.withCredentials,mo.overridenMimeType,mo.overridenResponseType,mo.timeout,mo.content)}function wo(e,n){return new br(n.url,e,n.headers,n.withCredentials,n.overridenMimeType,n.overridenResponseType,n.timeout,n.content)}function vo(e){return function(e){return ur((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,u,s;var l,c;4===t.readyState&&n[0]((r=t.responseType,e=""===r||"text"===r?t.responseText:"",o=0|t.status,i=t.responseType,s=t.responseType,u=""===s||"text"===s?new Cr(0,[t.responseText]):new Cr("arraybuffer"===s?2:"blob"===s?1:3,[t.response]),new Sr(o,e,i,(l=function(e,n,t){const r=[];for(let t=0;t<=n.length-1;t++){const o=e(n[t]);if(null!=o){const e=Qn(o);r.push(e)}}return ln(null,null)?r:tt((e=>e),r,null)}((e=>{const n=Ct(go(":",e));return pt(n)?void 0:[mt(n).toLocaleLowerCase(),zn(":",gt(n)).trim()]}),go("\r\n",t.getAllResponseHeaders())),so(c={Compare:an},eo(c,l))),u)))};const r=Je(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{Ve(r)}t.withCredentials=e.withCredentials;const o=e.overridenMimeType;if(null==o);else{const e=o;t.overrideMimeType(e)}const i=e.overridenResponseType;null==i||(1===i.tag?t.responseType="blob":2===i.tag?t.responseType="arraybuffer":t.responseType="text");const u=e.timeout;if(null==u);else{const e=0|u;t.timeout=0|e}const s=e.content;0===e.method.tag?t.send(Kn(void 0)):1===s.tag||3===s.tag||2===s.tag?t.send(Kn(s.fields[0])):t.send(Kn(void 0))}))}new Sr(0,"","",po({Compare:an}),new Cr(0,[""]));class bo extends Dn{constructor(e,n){super(),this.tag=e,this.fields=n}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class Co extends Dn{constructor(e,n){super(),this.tag=e,this.fields=n}cases(){return["PascalCase","CamelCase","SnakeCase"]}}class So{constructor(){this.cache=new Map([])}}function Eo(){return new So}function xo(e){return e.slice(void 0,1).toLowerCase()+e.slice(1,e.length)}function ko(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(0!=(-284&n))throw new Error("RegexOptions only supports: IgnoreCase, Multiline, Compiled, Singleline and ECMAScript");let t="gu";return t+=1&n?"i":"",t+=2&n?"m":"",t+=16&n?"s":"",new RegExp(e,t)}(n,null!=r?r:0),n=t,r=void 0}if("function"==typeof t)return r=null==r?-1:r,n.substring(0,o)+n.substring(o).replace(e,(function(){let e=arguments[0];if(r){r--;const n=[],o=arguments.length,i="string"!=typeof arguments[o-1];let u=i?o-3:o-2;for(let e=0;e<u;e++)n.push(arguments[e]);n.index=arguments[u++],n.input=arguments[u++],i&&(n.groups=arguments[u]),e=t(n)}return e}));if(t=t.replace(/\$0/g,(e=>"$&")).replace(/\${([^}]+)}/g,"$<$1>"),null!=r){let i;const u=n.substring(o),s=Nn(e,u),l=Nn.length>r?(i=s[r-1],u.substring(0,i.index+i[0].length)):u;return n.substring(0,o)+l.replace(e,t)+n.substring(o+l.length)}return n.replace(e,t)}(xo(n),"[A-Z]","_$0").toLowerCase();case 0:return n;default:return xo(n)}}Eo(),Eo();const To=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,Io=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,Oo=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function Mo(e,n){try{return n.contents=function(e){function n(e){return e.replace(Io,"$1-$2-$3-$4-$5")}const t=e.trim().toLowerCase();if(To.test(t))return function(e,...n){if(0===n.length)return e.trim();const t="["+Mn(n.join(""))+"]+";return e.replace(new RegExp("^"+t),"").replace(new RegExp(t+"$"),"")}(t,"{","}","(",")");if(Io.test(t))return n(t);if(Oo.test(t))return n(t.replace(/[\{\},]|0x/g,""));throw new Error("Guid should contain 32 digits with 4 dashes: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx")}(e),!0}catch(e){return!1}}var No;function Ao(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 Do(e,n,t,r,o){try{return o.contents=function(e,n,t,r,o){const i=function(e,n,t){const r=/^\s*([\+\-])?(0[xXoObB])?([0-9a-fA-F]+)\s*$/.exec(e.replace(/_/g,""));if(null!=r){const[,,e,o]=r;t=t||function(e,n){if(n&No.AllowHexSpecifier)return 16;switch(e){case"0b":case"0B":return 2;case"0o":case"0O":return 8;case"0x":case"0X":return 16;default:return 10}}(e,n);const i=function(e){switch(e){case 2:return/[^0-1]/;case 8:return/[^0-7]/;case 10:return/[^0-9]/;case 16:return/[^0-9a-fA-F]/;default:throw new Error("Invalid Base.")}}(t);if(!i.test(o))return function(e,n){const[,t,r,o]=e;return{sign:t||"",prefix:r||"",digits:o,radix:n}}(r,t)}return null}(e,n,void 0);if(null!=i){let e=Number.parseInt(i.sign+i.digits,i.radix);if(!Number.isNaN(e)){const[n,o]=Ao(!0,r);!t&&10!==i.radix&&e>=n&&e<=o&&(e=e<<32-r>>32-r);const[u,s]=Ao(t,r);if(e>=u&&e<=s)return e}}throw new Error("Input string was not in a correct format.")}(e,n,t,r),!0}catch(e){return!1}}function Ro(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 Go(e,n){try{return n.contents=function(e){const[n,t]=bn(e),r=null==t?-6e4*n.getTimezoneOffset():"Z"===t?0:6e4*t;return Ro(n.getTime(),r)}(e),!0}catch(e){return!1}}!function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"}(No||(No={}));var Po=null;try{Po=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch(s){}function Uo(e,n,t){this.low=0|e,this.high=0|n,this.unsigned=!!t}function $o(e){return!0===(e&&e.__isLong__)}Uo.prototype.GetHashCode=function(){let e=this.unsigned?1:0;return e=(e<<5)+e^this.high,e=(e<<5)+e^this.low,e},Uo.prototype.Equals=function(e){return fi(this,e)},Uo.prototype.CompareTo=function(e){return pi(this,e)},Uo.prototype.toString=function(e){return si(this,e)},Uo.prototype.toJSON=function(){return si(this)},Uo.prototype[Sn]=function(){const e=this;return{multiply:n=>wi(e,n),toPrecision:n=>String(e)+(0).toPrecision(n).substr(1),toExponential:n=>String(e)+(0).toExponential(n).substr(1),toFixed:n=>String(e)+(0).toFixed(n).substr(1),toHex:()=>{return si(e.unsigned?e:function(e,n,t){return t?function(e,n){return new Uo(e[0]|e[1]<<8|e[2]<<16|e[3]<<24,e[4]|e[5]<<8|e[6]<<16|e[7]<<24,n)}(e,n):function(e,n){return new Uo(e[4]<<24|e[5]<<16|e[6]<<8|e[7],e[0]<<24|e[1]<<16|e[2]<<8|e[3],n)}(e,n)}((n=e,t?function(e){var n=e.high,t=e.low;return[255&t,t>>>8&255,t>>>16&255,t>>>24,255&n,n>>>8&255,n>>>16&255,n>>>24]}(n):function(e){var n=e.high,t=e.low;return[n>>>24,n>>>16&255,n>>>8&255,255&n,t>>>24,t>>>16&255,t>>>8&255,255&t]}(n)),!0),16);var n,t}}},Uo.prototype.__isLong__,Object.defineProperty(Uo.prototype,"__isLong__",{value:!0});var Fo={},Ho={};function jo(e,n){var t,r,o;return n?(o=0<=(e>>>=0)&&e<256)&&(r=Ho[e])?r:(t=Lo(e,(0|e)<0?-1:0,!0),o&&(Ho[e]=t),t):(o=-128<=(e|=0)&&e<128)&&(r=Fo[e])?r:(t=Lo(e,e<0?-1:0,!1),o&&(Fo[e]=t),t)}function Bo(e,n){if(isNaN(e))return n?Ko:Xo;if(n){if(e<0)return Ko;if(e>=Jo)return ri}else{if(e<=-Zo)return oi;if(e+1>=Zo)return ti}return e<0?mi(Bo(-e,n)):Lo(e%zo|0,e/zo|0,n)}function Lo(e,n,t){return new Uo(e,n,t)}var Vo=Math.pow;function Wo(e,n,t){if(0===e.length)throw Error("empty string");if("NaN"===e||"Infinity"===e||"+Infinity"===e||"-Infinity"===e)return Xo;if("number"==typeof n?(t=n,n=!1):n=!!n,(t=t||10)<2||36<t)throw RangeError("radix");var r=e.indexOf("-");if(r>0)throw Error("interior hyphen");if(0===r)return mi(Wo(e.substring(1),n,t));for(var o=Bo(Vo(t,8)),i=Xo,u=0;u<e.length;u+=8){var s=Math.min(8,e.length-u),l=parseInt(e.substring(u,u+s),t);i=gi(s<8?wi(i,Bo(Vo(t,s))):i=wi(i,o),Bo(l))}return i.unsigned=n,i}function qo(e,n){return"number"==typeof e?Bo(e,n):"string"==typeof e?Wo(e,n):Lo(e.low,e.high,"boolean"==typeof n?n:e.unsigned)}var zo=4294967296,Jo=zo*zo,Zo=Jo/2,Yo=jo(1<<24),Xo=jo(0),Ko=jo(0,!0),Qo=jo(1),ei=jo(1,!0),ni=jo(-1),ti=Lo(-1,2147483647,!1),ri=Lo(-1,-1,!0),oi=Lo(0,-2147483648,!1);function ii(e){return e.unsigned?e.low>>>0:e.low}function ui(e){return e.unsigned?(e.high>>>0)*zo+(e.low>>>0):e.high*zo+(e.low>>>0)}function si(e,n){if((n=n||10)<2||36<n)throw RangeError("radix");if(li(e))return"0";if(ci(e)){if(fi(e,oi)){var t=Bo(n),r=vi(e,t),o=yi(wi(r,t),e);return si(r,n)+ii(o).toString(n)}return"-"+si(mi(e),n)}for(var i=Bo(Vo(n,6),e.unsigned),u=e,s="";;){var l=vi(u,i),c=(ii(yi(u,wi(l,i)))>>>0).toString(n);if(li(u=l))return c+s;for(;c.length<6;)c="0"+c;s=""+c+s}}function li(e){return 0===e.high&&0===e.low}function ci(e){return!e.unsigned&&e.high<0}function ai(e){return 1==(1&e.low)}function fi(e,n){return $o(n)||(n=qo(n)),(e.unsigned===n.unsigned||e.high>>>31!=1||n.high>>>31!=1)&&e.high===n.high&&e.low===n.low}function hi(e,n){return pi(e,n)<0}function di(e,n){return pi(e,n)>0}function _i(e,n){return pi(e,n)>=0}function pi(e,n){if($o(n)||(n=qo(n)),fi(e,n))return 0;var t=ci(e),r=ci(n);return t&&!r?-1:!t&&r?1:e.unsigned?n.high>>>0>e.high>>>0||n.high===e.high&&n.low>>>0>e.low>>>0?-1:1:ci(yi(e,n))?-1:1}function mi(e){return!e.unsigned&&fi(e,oi)?oi:gi(function(e){return Lo(~e.low,~e.high,e.unsigned)}(e),Qo)}function gi(e,n){$o(n)||(n=qo(n));var t=e.high>>>16,r=65535&e.high,o=e.low>>>16,i=65535&e.low,u=n.high>>>16,s=65535&n.high,l=n.low>>>16,c=0,a=0,f=0,h=0;return f+=(h+=i+(65535&n.low))>>>16,a+=(f+=o+l)>>>16,c+=(a+=r+s)>>>16,c+=t+u,Lo((f&=65535)<<16|(h&=65535),(c&=65535)<<16|(a&=65535),e.unsigned)}function yi(e,n){return $o(n)||(n=qo(n)),gi(e,mi(n))}function wi(e,n){if(li(e))return e.unsigned?Ko:Xo;if($o(n)||(n=qo(n)),Po)return Lo(Po.mul(e.low,e.high,n.low,n.high),Po.get_high(),e.unsigned);if(li(n))return e.unsigned?Ko:Xo;if(fi(e,oi))return ai(n)?oi:Xo;if(fi(n,oi))return ai(e)?oi:Xo;if(ci(e))return ci(n)?wi(mi(e),mi(n)):mi(wi(mi(e),n));if(ci(n))return mi(wi(e,mi(n)));if(hi(e,Yo)&&hi(n,Yo))return Bo(ui(e)*ui(n),e.unsigned);var t=e.high>>>16,r=65535&e.high,o=e.low>>>16,i=65535&e.low,u=n.high>>>16,s=65535&n.high,l=n.low>>>16,c=65535&n.low,a=0,f=0,h=0,d=0;return h+=(d+=i*c)>>>16,f+=(h+=o*c)>>>16,h&=65535,f+=(h+=i*l)>>>16,a+=(f+=r*c)>>>16,f&=65535,a+=(f+=o*l)>>>16,f&=65535,a+=(f+=i*s)>>>16,a+=t*c+r*l+o*s+i*u,Lo((h&=65535)<<16|(d&=65535),(a&=65535)<<16|(f&=65535),e.unsigned)}function vi(e,n){if($o(n)||(n=qo(n)),li(n))throw Error("division by zero");var t,r,o;if(Po)return e.unsigned||-2147483648!==e.high||-1!==n.low||-1!==n.high?Lo((e.unsigned?Po.div_u:Po.div_s)(e.low,e.high,n.low,n.high),Po.get_high(),e.unsigned):e;if(li(e))return e.unsigned?Ko:Xo;if(e.unsigned){if(n.unsigned||(n=function(e){return e.unsigned?e:Lo(e.low,e.high,!0)}(n)),di(n,e))return Ko;if(di(n,function(e,n){if($o(n)&&(n=ii(n)),0==(n&=63))return e;var t=e.high;return n<32?Lo(e.low>>>n|t<<32-n,t>>>n,e.unsigned):Lo(32===n?t:t>>>n-32,0,e.unsigned)}(e,1)))return ei;o=Ko}else{if(fi(e,oi))return fi(n,Qo)||fi(n,ni)?oi:fi(n,oi)?Qo:fi(t=function(e,n){return $o(n)&&(n=ii(n)),0==(n&=63)?e:n<32?Lo(e.low<<n,e.high<<n|e.low>>>32-n,e.unsigned):Lo(0,e.low<<n-32,e.unsigned)}(vi(function(e,n){return $o(n)&&(n=ii(n)),0==(n&=63)?e:n<32?Lo(e.low>>>n|e.high<<32-n,e.high>>n,e.unsigned):Lo(e.high>>n-32,e.high>=0?0:-1,e.unsigned)}(e,1),n),1),Xo)?ci(n)?Qo:ni:o=gi(t,vi(r=yi(e,wi(n,t)),n));if(fi(n,oi))return e.unsigned?Ko:Xo;if(ci(e))return ci(n)?vi(mi(e),mi(n)):mi(vi(mi(e),n));if(ci(n))return mi(vi(e,mi(n)));o=Xo}for(r=e;_i(r,n);){t=Math.max(1,Math.floor(ui(r)/ui(n)));for(var i=Math.ceil(Math.log(t)/Math.LN2),u=i<=48?1:Vo(2,i-48),s=Bo(t),l=wi(s,n);ci(l)||di(l,r);)l=wi(s=Bo(t-=u,e.unsigned),n);li(s)&&(s=Qo),o=gi(o,s),r=yi(r,l)}return o}const bi=vi,Ci=ui;function Si(e){return e<0?Math.ceil(e):Math.floor(e)}function Ei(e=0,n=0,t=0,r=0,o=0){switch(arguments.length){case 1:return xi(arguments[0]);case 3:e=0,n=arguments[0],t=arguments[1],r=arguments[2],o=0}return 864e5*e+36e5*n+6e4*t+1e3*r+o}function xi(e){return Ci(bi(e,1e4))}function ki(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 Ei(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,u=+n[4],s=+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*Ei(t,u,s,o,r)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}(e),!0}catch(e){return!1}}class Ti{constructor(e){this.k=e}}function Ii(e){return new Ti(e)}function Oi(e){return e.k}class Mi extends Ti{constructor(e,n,t,r){super(e),this.left=n,this.right=t,this.h=0|r}}function Ni(e,n,t,r){return new Mi(e,n,t,r)}function Ai(e){return e.left}function Di(e){return e.right}function Ri(e){return e.h}function Gi(e,n){e:for(;;){const t=n;if(null!=e){const r=e;if(r instanceof Mi){e=Ai(r),n=Gi(Di(r),t+1);continue e}return t+1|0}return 0|t}}function Pi(e){return Gi(e,0)}function Ui(e,n,t){let r,o;r=null!=e?e instanceof Mi?Ri(e):1:0,o=null!=t?t instanceof Mi?Ri(t):1:0;const i=0|(r<o?o:r);return 0===i?Ii(n):Ni(n,e,t,i+1)}function $i(e,n,t){let r,o,i,u,s,l;if(s=null!=e?e instanceof Mi?Ri(e):1:0,l=null!=t?t instanceof Mi?Ri(t):1:0,l>s+2){const i=Qn(t);if(i instanceof Mi){if(r=Ai(i),(null!=r?(o=r,o instanceof Mi?Ri(o):1):0)>s+1){const t=Qn(Ai(i));if(t instanceof Mi)return Ui(Ui(e,n,Ai(t)),Oi(t),Ui(Di(t),Oi(i),Di(i)));throw new Error("internal error: Set.rebalance")}return Ui(Ui(e,n,Ai(i)),Oi(i),Di(i))}throw new Error("internal error: Set.rebalance")}if(s>l+2){const r=Qn(e);if(r instanceof Mi){if(i=Di(r),(null!=i?(u=i,u instanceof Mi?Ri(u):1):0)>l+1){const e=Qn(Di(r));if(e instanceof Mi)return Ui(Ui(Ai(r),Oi(r),Ai(e)),Oi(e),Ui(Di(e),n,t));throw new Error("internal error: Set.rebalance")}return Ui(Ai(r),Oi(r),Ui(Di(r),n,t))}throw new Error("internal error: Set.rebalance")}return Ui(e,n,t)}function Fi(e,n,t){if(null!=t){const r=t,o=0|e.Compare(n,Oi(r));if(r instanceof Mi)return o<0?$i(Fi(e,n,Ai(r)),Oi(r),Di(r)):0===o?t:$i(Ai(r),Oi(r),Fi(e,n,Di(r)));{const o=0|e.Compare(n,Oi(r));return o<0?Ni(n,void 0,t,2):0===o?t:Ni(n,t,void 0,2)}}return Ii(n)}function Hi(e,n,t){e:for(;;){const r=e,o=n;if(null!=t){const i=t,u=0|r.Compare(o,Oi(i));if(i instanceof Mi){if(u<0){e=r,n=o,t=Ai(i);continue e}if(0===u)return!0;e=r,n=o,t=Di(i);continue e}return 0===u}return!1}}function ji(e,n){e:for(;;){const t=e;if(null!=n){const r=n;if(r instanceof Mi){ji(t,Ai(r)),t(Oi(r)),e=t,n=Di(r);continue e}t(Oi(r))}break}}class Bi extends Rn{constructor(e,n){super(),this.stack=e,this.started=n}}function Li(e){e:for(;;){const n=e;if(pt(n))return ht();{const t=mt(n),r=gt(n);if(null!=t){const o=t;if(o instanceof Mi){e=bt([Ai(o),Ii(Oi(o)),Di(o)],r);continue e}return n}e=r;continue e}}}function Vi(e){return new Bi(Li(_t(e)),!1)}function Wi(e){if(e.started){const n=e.stack;if(pt(n))return function(){throw new Error("Enumeration already started")}();if(null!=mt(n))return Oi(mt(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=Vi(e);return{"System.Collections.Generic.IEnumerator`1.get_Current":()=>Wi(n),"System.Collections.IEnumerator.get_Current":()=>Wi(n),"System.Collections.IEnumerator.MoveNext":()=>function(e){if(e.started){const n=e.stack;if(pt(n))return!1;if(null!=mt(n)){if(mt(n)instanceof Mi)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=Li(gt(n)),!pt(e.stack)}throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}return e.started=!0,!pt(e.stack)}(n),"System.Collections.IEnumerator.Reset"(){n=Vi(e)},Dispose(){}}}function zi(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(pt(o))return pt(i)?0:-1;if(pt(i))return 1;if(null!=mt(i))if(null!=mt(o)){const u=mt(o),s=mt(i);if(u instanceof Mi)if(null==Ai(u)){if(!(s instanceof Mi)){const l=0|r.Compare(Oi(u),Oi(s));if(0!==l)return 0|l;e=r,n=dt(Di(u),gt(o)),t=dt(void 0,gt(i));continue e}if(null==Ai(s)){const l=0|r.Compare(Oi(u),Oi(s));if(0!==l)return 0|l;e=r,n=dt(Di(u),gt(o)),t=dt(Di(s),gt(i));continue e}{let u,s,l,c,a;switch(pt(o)?pt(i)?u=2:null!=mt(i)?(u=1,c=gt(i),a=mt(i)):u=2:null!=mt(o)?(u=0,s=gt(o),l=mt(o)):pt(i)?u=2:null!=mt(i)?(u=1,c=gt(i),a=mt(i)):u=2,u){case 0:if(l instanceof Mi){e=r,n=bt([Ai(l),Ni(Oi(l),void 0,Di(l),0)],s),t=i;continue e}e=r,n=bt([void 0,Ii(Oi(l))],s),t=i;continue e;case 1:if(a instanceof Mi){e=r,n=o,t=bt([Ai(a),Ni(Oi(a),void 0,Di(a),0)],c);continue e}e=r,n=o,t=bt([void 0,Ii(Oi(a))],c);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}else{let u,s,l,c,a;switch(pt(o)?pt(i)?u=2:null!=mt(i)?(u=1,c=gt(i),a=mt(i)):u=2:null!=mt(o)?(u=0,s=gt(o),l=mt(o)):pt(i)?u=2:null!=mt(i)?(u=1,c=gt(i),a=mt(i)):u=2,u){case 0:if(l instanceof Mi){e=r,n=bt([Ai(l),Ni(Oi(l),void 0,Di(l),0)],s),t=i;continue e}e=r,n=bt([void 0,Ii(Oi(l))],s),t=i;continue e;case 1:if(a instanceof Mi){e=r,n=o,t=bt([Ai(a),Ni(Oi(a),void 0,Di(a),0)],c);continue e}e=r,n=o,t=bt([void 0,Ii(Oi(a))],c);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else{if(!(s instanceof Mi)){const l=0|r.Compare(Oi(u),Oi(s));if(0!==l)return 0|l;e=r,n=gt(o),t=gt(i);continue e}if(null==Ai(s)){const l=0|r.Compare(Oi(u),Oi(s));if(0!==l)return 0|l;e=r,n=dt(void 0,gt(o)),t=dt(Di(s),gt(i));continue e}{let u,s,l,c,a;switch(pt(o)?pt(i)?u=2:null!=mt(i)?(u=1,c=gt(i),a=mt(i)):u=2:null!=mt(o)?(u=0,s=gt(o),l=mt(o)):pt(i)?u=2:null!=mt(i)?(u=1,c=gt(i),a=mt(i)):u=2,u){case 0:if(l instanceof Mi){e=r,n=bt([Ai(l),Ni(Oi(l),void 0,Di(l),0)],s),t=i;continue e}e=r,n=bt([void 0,Ii(Oi(l))],s),t=i;continue e;case 1:if(a instanceof Mi){e=r,n=o,t=bt([Ai(a),Ni(Oi(a),void 0,Di(a),0)],c);continue e}e=r,n=o,t=bt([void 0,Ii(Oi(a))],c);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}}else{let u,s,l,c,a;switch(mt(i),pt(o)?pt(i)?u=2:null!=mt(i)?(u=1,c=gt(i),a=mt(i)):u=2:null!=mt(o)?(u=0,s=gt(o),l=mt(o)):pt(i)?u=2:null!=mt(i)?(u=1,c=gt(i),a=mt(i)):u=2,u){case 0:if(l instanceof Mi){e=r,n=bt([Ai(l),Ni(Oi(l),void 0,Di(l),0)],s),t=i;continue e}e=r,n=bt([void 0,Ii(Oi(l))],s),t=i;continue e;case 1:if(a instanceof Mi){e=r,n=o,t=bt([Ai(a),Ni(Oi(a),void 0,Di(a),0)],c);continue e}e=r,n=o,t=bt([void 0,Ii(Oi(a))],c);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else{if(null==mt(o)){e=r,n=gt(o),t=gt(i);continue e}{let u,s,l,c,a;switch(mt(o),pt(o)?pt(i)?u=2:null!=mt(i)?(u=1,c=gt(i),a=mt(i)):u=2:null!=mt(o)?(u=0,s=gt(o),l=mt(o)):pt(i)?u=2:null!=mt(i)?(u=1,c=gt(i),a=mt(i)):u=2,u){case 0:if(l instanceof Mi){e=r,n=bt([Ai(l),Ni(Oi(l),void 0,Di(l),0)],s),t=i;continue e}e=r,n=bt([void 0,Ii(Oi(l))],s),t=i;continue e;case 1:if(a instanceof Mi){e=r,n=o,t=bt([Ai(a),Ni(Oi(a),void 0,Di(a),0)],c);continue e}e=r,n=o,t=bt([void 0,Ii(Oi(a))],c);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}break}}(e,_t(n),_t(t))}function Ji(e,n,t){let r=t;ji((e=>{n[r]=e,r=r+1|0}),e)}function Zi(e,n){if(Le(n))return function(e,n){return rt(((n,t)=>Fi(e,t,n)),void 0,n)}(e,n);if(n instanceof it)return function(e,n){return wt(((n,t)=>Fi(e,t,n)),void 0,n)}(e,n);{const t=Je(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=Fi(r,i["System.Collections.Generic.IEnumerator`1.get_Current"](),o),t=i}}(e,void 0,t)}finally{Ve(t)}}}class Yi{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=Je(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();)t=0|n(t,on(r["System.Collections.Generic.IEnumerator`1.get_Current"]()))}finally{Ve(r)}return 0|Math.abs(t)}(this)}Equals(e){return e instanceof Yi&&0===zi(Xi(this),Ki(this),Ki(e))}toString(){return"set ["+zn("; ",Ar((e=>An(e)),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(){return Array.from(this)}CompareTo(e){return 0|zi(Xi(this),Ki(this),Ki(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 Hi(Xi(this),e,Ki(this))}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(e,n){Ji(Ki(this),e,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|Qi(this)}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return 0|Qi(this)}GetEnumerator(){return qi(Ki(this))}[Symbol.iterator](){return Ze(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return qi(Ki(this))}get size(){return 0|Qi(this)}add(e){throw new Error("Set cannot be mutated")}clear(){throw new Error("Set cannot be mutated")}delete(e){throw new Error("Set cannot be mutated")}has(e){return function(e,n){return Hi(Xi(e),n,Ki(e))}(this,e)}keys(){return Ar((e=>e),this)}values(){return Ar((e=>e),this)}entries(){return Ar((e=>[e,e]),this)}forEach(e,n){const t=this;Nr((n=>{e(n,n,t)}),t)}}function Xi(e){return e.comparer}function Ki(e){return e.tree}function Qi(e){return Pi(Ki(e))}function eu(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 nu(e,n){const t=2===n.tag?eu(n.fields[0],n.fields[1],!0):1===n.tag?eu(n.fields[0],n.fields[1],!1)+"\nReason: "+n.fields[2]:3===n.tag?eu(n.fields[0],n.fields[1],!0):4===n.tag?eu(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"+zn("\n\n",n.fields[0]):6===n.tag?"The following `failure` occurred with the decoder: "+n.fields[0]:eu(n.fields[0],n.fields[1],!1);return 7===n.tag?t:"Error at: `"+e+"`\n"+t}function tu(e,n,t){const r=n(e,t);if(1===r.tag){const e=r.fields[0];return new dr(1,[nu(e[0],e[1])])}return new dr(0,[r.fields[0]])}const ru=e=>n=>{const t="a sbyte",r=e,o=n;if("number"==typeof o){const e=o;return isFinite(e)&&Math.floor(e)===e?-128<=e&&e<=127?new dr(0,[(e+128&255)-128]):new dr(1,[[r,new bo(1,[t,e,"Value was either too large or too small for "+t])]]):new dr(1,[[r,new bo(1,[t,e,"Value is not an integral value"])]])}if("string"==typeof o){let e,n=0;return e=[Do(o,511,!1,8,new Gn((()=>n),(e=>{n=0|e}))),n],e[0]?new dr(0,[e[1]]):new dr(1,[[r,new bo(0,[t,o])]])}return new dr(1,[[r,new bo(0,[t,o])]])},ou=e=>n=>{const t="a byte",r=e,o=n;if("number"==typeof o){const e=o;return isFinite(e)&&Math.floor(e)===e?0<=e&&e<=255?new dr(0,[255&e]):new dr(1,[[r,new bo(1,[t,e,"Value was either too large or too small for "+t])]]):new dr(1,[[r,new bo(1,[t,e,"Value is not an integral value"])]])}if("string"==typeof o){let e,n=0;return e=[Do(o,511,!0,8,new Gn((()=>n),(e=>{n=e}))),n],e[0]?new dr(0,[e[1]]):new dr(1,[[r,new bo(0,[t,o])]])}return new dr(1,[[r,new bo(0,[t,o])]])},iu=e=>n=>{const t="an int16",r=e,o=n;if("number"==typeof o){const e=o;return isFinite(e)&&Math.floor(e)===e?-32768<=e&&e<=32767?new dr(0,[(e+32768&65535)-32768]):new dr(1,[[r,new bo(1,[t,e,"Value was either too large or too small for "+t])]]):new dr(1,[[r,new bo(1,[t,e,"Value is not an integral value"])]])}if("string"==typeof o){let e,n=0;return e=[Do(o,511,!1,16,new Gn((()=>n),(e=>{n=0|e}))),n],e[0]?new dr(0,[e[1]]):new dr(1,[[r,new bo(0,[t,o])]])}return new dr(1,[[r,new bo(0,[t,o])]])},uu=e=>n=>{const t="an uint16",r=e,o=n;if("number"==typeof o){const e=o;return isFinite(e)&&Math.floor(e)===e?0<=e&&e<=65535?new dr(0,[65535&e]):new dr(1,[[r,new bo(1,[t,e,"Value was either too large or too small for "+t])]]):new dr(1,[[r,new bo(1,[t,e,"Value is not an integral value"])]])}if("string"==typeof o){let e,n=0;return e=[Do(o,511,!0,16,new Gn((()=>n),(e=>{n=e}))),n],e[0]?new dr(0,[e[1]]):new dr(1,[[r,new bo(0,[t,o])]])}return new dr(1,[[r,new bo(0,[t,o])]])},su=e=>n=>{const t="an int",r=e,o=n;if("number"==typeof o){const e=o;return isFinite(e)&&Math.floor(e)===e?-2147483648<=e&&e<=2147483647?new dr(0,[~~e]):new dr(1,[[r,new bo(1,[t,e,"Value was either too large or too small for "+t])]]):new dr(1,[[r,new bo(1,[t,e,"Value is not an integral value"])]])}if("string"==typeof o){let e,n=0;return e=[Do(o,511,!1,32,new Gn((()=>n),(e=>{n=0|e}))),n],e[0]?new dr(0,[e[1]]):new dr(1,[[r,new bo(0,[t,o])]])}return new dr(1,[[r,new bo(0,[t,o])]])},lu=e=>n=>{const t="an uint32",r=e,o=n;if("number"==typeof o){const e=o;return isFinite(e)&&Math.floor(e)===e?0<=e&&e<=4294967295?new dr(0,[e>>>0]):new dr(1,[[r,new bo(1,[t,e,"Value was either too large or too small for "+t])]]):new dr(1,[[r,new bo(1,[t,e,"Value is not an integral value"])]])}if("string"==typeof o){let e,n=0;return e=[Do(o,511,!0,32,new Gn((()=>n),(e=>{n=e}))),n],e[0]?new dr(0,[e[1]]):new dr(1,[[r,new bo(0,[t,o])]])}return new dr(1,[[r,new bo(0,[t,o])]])};function cu(e,n,t,r){let o;const i=t+".["+Qe(e)+"]";if(Array.isArray(r)){const t=r;return e<t.length?n(i,t[e]):new dr(1,[[i,new bo(5,["a longer array. Need index `"+Qe(e)+"` but there are only `"+(o=t.length,Qe(o)+"` entries"),r])]])}return new dr(1,[[i,new bo(0,["an array",r])]])}function au(e,n,t){if(Array.isArray(t)){let r=-1;return _r(vt,rt(((t,o)=>{if(r=r+1|0,0===t.tag){const i=e(n+".["+Qe(r)+"]",o);return 0===i.tag?new dr(0,[dt(i.fields[0],t.fields[0])]):new dr(1,[i.fields[0]])}return t}),new dr(0,[ht()]),t))}return new dr(1,[[n,new bo(0,["a list",t])]])}function fu(e,n,t){if(Array.isArray(t)){let r=-1;const o=t;return rt(((t,o)=>{if(r=r+1|0,0===t.tag){const i=t.fields[0],u=e(n+".["+Qe(r)+"]",o);return 0===u.tag?(i[r]=u.fields[0],new dr(0,[i])):new dr(1,[u.fields[0]])}return t}),new dr(0,[nt(new Array(o.length),0,o.length,null)]),o)}return new dr(1,[[n,new bo(0,["an array",t])]])}function hu(e,n,t,r){const o=n(t,r);return 0===o.tag?e(o.fields[0],t,r):new dr(1,[o.fields[0]])}function du(e,n){let t;const r=e;return t=e=>n=>cu(0,r,e,n),e=>r=>hu(pn(3,(e=>{let t;const r=n;return t=e=>n=>cu(1,r,e,n),n=>r=>hu(((n,t,r)=>new dr(0,[[e,n]])),pn(2,t),n,r)})),pn(2,t),e,r)}function _u(e){return so(n={Compare:hn},eo(n,e));var n}function pu(e){return function(e,n){return new Yi(e,n)}(n={Compare:hn},Zi(n,e));var n}function mu(e,n,t,r){let o,i;return n.length!==r.length?new dr(1,[[t,new bo(6,[(o=0|r.length,i=0|n.length,Ln(jn("Expected %i %s but got %i"))(i)(e)(o))])]]):ot(((e,n,r)=>0===r.tag?_r((e=>dt(e,r.fields[0])),n(t)(e)):r),r,n,new dr(0,[ht()]))}function gu(e,n,t,r,o,i){const u=function(e,n){return n.find((e=>Ut(e)===r))}(0,zt(t));if(null!=u){const t=u;return 0===i.length?new dr(0,[er(t,[])]):_r((e=>er(t,yt(e))),mu("union fields",tt((t=>wu(e,n,!1,t[1])),Qt(t),null),o,i))}return new dr(1,[[o,new bo(6,["Cannot find case "+r+" in "+$t(t)])]])}function yu(e,n,t,r){let o;const i=new Gn(null),u=fo($t(r),i,e);let s;if(Xt(r)){const e=tt((e=>[ko(n,Ut(e)),wu(u,n,!1,e[1])]),Jt(r),null);s=n=>t=>_r((e=>function(e,n){const t=Jt(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,yt(e))),function(e,n,t){return null===t||Object.getPrototypeOf(t||!1)!==Object.prototype?new dr(1,[[n,new bo(0,["an object",t])]]):function(e,r,o){return r.reduceRight(((e,r)=>((e,r)=>{const o=e[0];return 0===r.tag?_r((e=>dt(e,r.fields[0])),e[1](n+"."+o)(t[o])):r})(r,e)),o)}(0,e,new dr(0,[ht()]))}(e,n,t))}else if(Yt(r))s=e=>t=>{if("string"==typeof t)return gu(u,n,r,t,e,[]);if(Array.isArray(t)){const o=t;return gu(u,n,r,o[0],e,o.slice(1,o.length))}return new dr(1,[[e,new bo(0,["a string or array",t])]])};else{if(!t)throw new Error((o=$t(r),Ln(jn("Cannot generate auto decoder for %s. Please pass an extra decoder."))(o)));s=e=>n=>new dr(1,[[e,new bo(2,["an extra coder for "+$t(r),n])]])}return i.contents=s,s}function wu(e,n,t,r){let o,i,u;const s=$t(r),l=ho(s,e);if(null==l){if(Ft(r)){const t=wu(e,n,!1,Ht(r));return e=>n=>fu(pn(2,t),e,n)}if(Bt(r)){const e=$t(Vt(r));if("System.SByte"===e)return e=>n=>{const t=r,o=e,i=n,u=ru(o)(i);if(1===u.tag)return new dr(1,[u.fields[0]]);{const e=0|u.fields[0];return Or(e,Wt(t),{Equals:(e,n)=>e===n,GetHashCode:tn})?new dr(0,[qt(t,e.toString())]):new dr(1,[[o,new bo(1,[$t(t),i,"Unkown value provided for the enum"])]])}};if("System.Byte"===e)return e=>n=>{const t=r,o=e,i=n,u=ou(o)(i);if(1===u.tag)return new dr(1,[u.fields[0]]);{const e=u.fields[0];return Or(e,Wt(t),{Equals:(e,n)=>e===n,GetHashCode:tn})?new dr(0,[qt(t,e.toString())]):new dr(1,[[o,new bo(1,[$t(t),i,"Unkown value provided for the enum"])]])}};if("System.Int16"===e)return e=>n=>{const t=r,o=e,i=n,u=iu(o)(i);if(1===u.tag)return new dr(1,[u.fields[0]]);{const e=0|u.fields[0];return Or(e,Wt(t),{Equals:(e,n)=>e===n,GetHashCode:tn})?new dr(0,[qt(t,(s=e,(s=s<0&&null!=l&&10!==l?65535+s+1:s).toString(l)))]):new dr(1,[[o,new bo(1,[$t(t),i,"Unkown value provided for the enum"])]])}var s,l};if("System.UInt16"===e)return e=>n=>{const t=r,o=e,i=n,u=uu(o)(i);if(1===u.tag)return new dr(1,[u.fields[0]]);{const e=u.fields[0];return Or(e,Wt(t),{Equals:(e,n)=>e===n,GetHashCode:tn})?new dr(0,[qt(t,e.toString())]):new dr(1,[[o,new bo(1,[$t(t),i,"Unkown value provided for the enum"])]])}};if("System.Int32"===e)return e=>n=>{const t=r,o=e,i=n,u=su(o)(i);if(1===u.tag)return new dr(1,[u.fields[0]]);{const e=0|u.fields[0];return Or(e,Wt(t),{Equals:(e,n)=>e===n,GetHashCode:tn})?new dr(0,[qt(t,Qe(e))]):new dr(1,[[o,new bo(1,[$t(t),i,"Unkown value provided for the enum"])]])}};if("System.UInt32"===e)return e=>n=>{const t=r,o=e,i=n,u=lu(o)(i);if(1===u.tag)return new dr(1,[u.fields[0]]);{const e=u.fields[0];return Or(e,Wt(t),{Equals:(e,n)=>e===n,GetHashCode:tn})?new dr(0,[qt(t,e.toString())]):new dr(1,[[o,new bo(1,[$t(t),i,"Unkown value provided for the enum"])]])}};{const e=$t(r),n=Vn(jn("Cannot generate auto decoder for %s.\nThoth.Json.Net only support the folluwing enum types:\n- sbyte\n- byte\n- int16\n- uint16\n- int\n- uint32\nIf you can't use one of these types, please pass an extra decoder.\n "))(e);return e=>n(e)}}if(jt(r)){if(Kt(r)){const t=tt((t=>wu(e,n,!1,t)),Zt(r),null);return e=>n=>Array.isArray(n)?_r((e=>yt(e)),mu("tuple elements",t,e,n)):new dr(1,[[e,new bo(0,["an array",n])]])}{const s=$t(Lt(r));if("Microsoft.FSharp.Core.FSharpOption`1[System.Object]"===s)return o=wu(e,n,!0,Nt(r)[0]),e=>n=>{return t=pn(2,o),r=e,null==(i=n)?new dr(0,[void 0]):_r(Kn,t(r,i));var t,r,i};if("Microsoft.FSharp.Collections.FSharpList`1[System.Object]"===s)return i=wu(e,n,!1,Nt(r)[0]),e=>n=>au(pn(2,i),e,n);if("Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"===s){const t=wu(e,n,!1,Nt(r)[0]),o=wu(e,n,!1,Nt(r)[1]);let i;const s=Ct([e=>n=>function(e,n,t,r){return null===r||Object.getPrototypeOf(r||!1)!==Object.prototype?new dr(1,[[t,new bo(0,["an object",r])]]):Mr(((o,i)=>{if(0===o.tag){const u=e(t,i);if(0===u.tag){const e=n(t+"."+i,r[i]);return 0===e.tag?new dr(0,[dt([u.fields[0],e.fields[0]],o.fields[0])]):new dr(1,[e.fields[0]])}return new dr(1,[u.fields[0]])}return o}),new dr(0,[ht()]),Object.keys(r))}(pn(2,t),pn(2,o),e,n),(u=du(pn(2,t),pn(2,o)),e=>n=>au(pn(2,u),e,n))]);return i=e=>n=>{return t=e,r=n,((e,n)=>{e:for(;;){const o=e,i=n;if(pt(o))return new dr(1,[[t,new bo(7,[i])]]);{const u=tu(t,pn(2,mt(o)),r);if(1===u.tag){e=gt(o),n=St(i,_t(u.fields[0]));continue e}return new dr(0,[u.fields[0]])}}})(s,ht());var t,r},e=>n=>function(e,n,t,r){const o=n(t,r);return 1===o.tag?new dr(1,[o.fields[0]]):new dr(0,[e(o.fields[0])])}(_u,pn(2,i),e,n)}if("Microsoft.FSharp.Collections.FSharpSet`1[System.Object]"===s){const t=wu(e,n,!1,Nt(r)[0]);return e=>n=>{const r=fu(pn(2,t),e,n);return 0===r.tag?new dr(0,[pu(r.fields[0])]):new dr(1,[r.fields[0]])}}return yu(e,n,t,r)}}return"System.Boolean"===s?e=>n=>{return t=e,"boolean"==typeof(r=n)?new dr(0,[r]):new dr(1,[[t,new bo(0,["a boolean",r])]]);var t,r}:"Microsoft.FSharp.Core.Unit"===s?e=>n=>{return t=e,null==(r=n)?new dr(0,[void 0]):new dr(1,[[t,new bo(0,["null",r])]]);var t,r}:"System.String"===s?e=>n=>{return t=e,"string"==typeof(r=n)?new dr(0,[r]):new dr(1,[[t,new bo(0,["a string",r])]]);var t,r}:"System.SByte"===s?ru:"System.Byte"===s?ou:"System.Int16"===s?iu:"System.UInt16"===s?uu:"System.Int32"===s?su:"System.UInt32"===s?lu:"System.Double"===s?e=>n=>{return t=e,"number"==typeof(r=n)?new dr(0,[r]):new dr(1,[[t,new bo(0,["a float",r])]]);var t,r}:"System.Single"===s?e=>n=>{return t=e,"number"==typeof(r=n)?new dr(0,[r]):new dr(1,[[t,new bo(0,["a float32",r])]]);var t,r}:"System.DateTime"===s?e=>n=>function(e,n){if("string"==typeof n){let r,o=vn(-621355968e5,0);return r=[Cn(n,new Gn((()=>o),(e=>{o=e}))),o],r[0]?new dr(0,[(t=r[1],1===t.kind?t:vn(t.getTime(),1))]):new dr(1,[[e,new bo(0,["a datetime",n])]])}var t;return new dr(1,[[e,new bo(0,["a datetime",n])]])}(e,n):"System.DateTimeOffset"===s?e=>n=>function(e,n){if("string"==typeof n){let t,r=Ro(-621355968e5,0);return t=[Go(n,new Gn((()=>r),(e=>{r=e}))),r],t[0]?new dr(0,[t[1]]):new dr(1,[[e,new bo(0,["a datetimeoffset",n])]])}return new dr(1,[[e,new bo(0,["a datetime",n])]])}(e,n):"System.TimeSpan"===s?e=>n=>function(e,n){if("string"==typeof n){let t,r=0;return t=[ki(n,new Gn((()=>r),(e=>{r=e}))),r],t[0]?new dr(0,[t[1]]):new dr(1,[[e,new bo(0,["a timespan",n])]])}return new dr(1,[[e,new bo(0,["a timespan",n])]])}(e,n):"System.Guid"===s?e=>n=>function(e,n){if("string"==typeof n){let t,r="00000000-0000-0000-0000-000000000000";return t=[Mo(n,new Gn((()=>r),(e=>{r=e}))),r],t[0]?new dr(0,[t[1]]):new dr(1,[[e,new bo(0,["a guid",n])]])}return new dr(1,[[e,new bo(0,["a guid",n])]])}(e,n):"System.Object"===s?e=>e=>new dr(0,[e]):yu(e,n,t,r)}{const e=l;return n=>t=>e.contents(n)(t)}}function vu(e){return e}function bu(e){return Array.from(e)}function Cu(e){return wn(e,"O")}function Su(e){return function(e,n="c",t){if(-1===["c","g","G"].indexOf(n))throw new Error("Custom formats are not supported");const r=Math.abs(function(e){return Si(e/864e5)}(e)),o=Math.abs(function(e){return Si(e%864e5/36e5)}(e)),i=Math.abs(function(e){return Si(e%36e5/6e4)}(e)),u=Math.abs(function(e){return Si(e%6e4/1e3)}(e)),s=Math.abs(function(e){return Si(e%1e3)}(e));return`${e<0?"-":""}${0!==r||"c"!==n&&"g"!==n?"c"===n?r+".":r+":":""}${"g"===n?o:Xe(o,2)}:${Xe(i,2)}:${Xe(u,2)}${0!==s||"c"!==n&&"g"!==n?"g"===n?"."+Xe(s,3):"."+function(e,n,t){let r=e.toString(10);for(;r.length<3;)r="0"+r;for(;r.length<7;)r+="0";return r}(s):""}`}(e)}function Eu(){return null}function xu(e){return wn(e,"O")}function ku(e,n){return JSON.stringify(n,pn(2,null),Kn(e))}function Tu(e,n,t,r){let o;const i=new Gn(null),u=fo($t(r),i,e);let s;if(Xt(r)){const e=tt((e=>{const r=ko(n,Ut(e)),o=Iu(u,n,t,e[1]);return n=>i=>{const u=function(e,n){return e[n[0]]}(n,e);return(!t||t&&null!=u)&&(i[r]=o(u)),i}}),Jt(r),null);s=n=>Mr(((e,t)=>t(n)(e)),{},e)}else{if(!Yt(r))throw new Error((o=$t(r),Ln(jn("Cannot generate auto encoder for %s. Please pass an extra encoder."))(o)));s=e=>{const o=function(e,n){const t=zt(n)[e.tag];if(null==t)throw new Error(`Cannot find case ${e.name} in union type`);return[t,e.fields]}(e,r),i=o[0],s=o[1],l=0|s.length;if(0===l)return Ut(i);{const e=0|l,r=Qt(i),o=nt(new Array(e+1),0,e+1,null);o[0]=Ut(i);for(let i=1;i<=e;i++){const e=Iu(u,n,t,r[i-1][1]);o[i]=e(s[i-1])}return o}}}return i.contents=s,s}function Iu(e,n,t,r){const o=$t(r),i=ho(o,e);if(null==i){if(Ft(r)){const o=Iu(e,n,t,Ht(r));return e=>bu(Ar(o,e))}if(Bt(r)){const e=$t(Vt(r));if("System.SByte"===e)return e=>e;if("System.Byte"===e)return e=>e;if("System.Int16"===e)return e=>e;if("System.UInt16"===e)return e=>e;if("System.Int32"===e)return e=>e;if("System.UInt32"===e)return e=>e;{const e=$t(r);return Vn(jn("Cannot generate auto encoder for %s.\nThoth.Json.Net only support the folluwing 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 encoder.\n "))(e)}}if(jt(r)){if(Kt(r)){const o=tt((r=>Iu(e,n,t,r)),Zt(r),null);return e=>bu(Dr(((e,n)=>o[e](n)),e))}{const o=$t(Lt(r));if("Microsoft.FSharp.Core.FSharpOption`1[System.Object]"===o){const o=new Ye((()=>{return o=Iu(e,n,t,Nt(r)[0]),e=>{return function(e,n){return null!=e?Qn(e):null}(null!=(n=e)?Kn(o(Qn(n))):void 0);var n};var o}));return e=>null==e?null:o.Value(e)}if("Microsoft.FSharp.Collections.FSharpList`1[System.Object]"===o||"Microsoft.FSharp.Collections.FSharpSet`1[System.Object]"===o){const o=Iu(e,n,t,Nt(r)[0]);return e=>bu(Ar(o,e))}if("Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"===o){const o=Nt(r)[0],i=Iu(e,n,t,Nt(r)[1]);if("System.String"===$t(o)||"System.Guid"===$t(o))return e=>Mr(((e,n)=>{const t=n;return e[t[0]]=i(t[1]),e}),{},e);{let r;const u=Iu(e,n,t,o);return r=u,e=>bu(Ar((e=>{const n=e;return[r(n[0]),i(n[1])]}),e))}}return Tu(e,n,t,r)}}return"System.Boolean"===o?e=>e:"Microsoft.FSharp.Core.Unit"===o?Eu:"System.String"===o?e=>e:"System.SByte"===o?e=>e:"System.Byte"===o?e=>e:"System.Int16"===o?e=>e:"System.UInt16"===o?e=>e:"System.Int32"===o?e=>e:"System.UInt32"===o?e=>e:"System.Double"===o?e=>e:"System.Single"===o?e=>e:"System.DateTime"===o?xu:"System.DateTimeOffset"===o?Cu:"System.TimeSpan"===o?Su:"System.Guid"===o?vu:"System.Object"===o?e=>e:Tu(e,n,t,r)}{const e=i;return n=>e.contents(n)}}function Ou(e,n,t,r){const o=et(n,new Co(0,[])),i=et(r,!0);return Iu(function(e){return null!=e?_o(((e,n)=>new Gn(n[0])),e.Coders):po({Compare:an})}(t),o,i,e)}function Mu(e){return`${e}/bank-details/admin`}function Nu(e,n){return gr(0,(()=>{const t=(r=function(e){return new wr(0,["Authorization",e])}(Ln(jn("Bearer %s"))(e)),new br((o=n).url,o.method,St(o.headers,_t(r)),o.withCredentials,o.overridenMimeType,o.overridenResponseType,o.timeout,o.content));var r,o;let i;const u=vo(t);return i=sr.Bind(u,(e=>sr.Return(new dr(0,[e])))),sr.Delay((()=>sr.Bind(i,(e=>{let n,r;const o=e;return 1===o.tag?sr.Return(new dr(1,[o.fields[0]])):sr.ReturnFrom((n=o.fields[0],429===n.statusCode||n.statusCode>=500?(r=vo(t),sr.Bind(r,(e=>sr.Return(new dr(0,[e]))))):function(e,n){const t=pr(0,n);return sr.Return(t)}(0,n)))}))))}))}function Au(e,n,t,r){return gr(0,(()=>{const o=Nu(n,wo(new yr(0,[]),yo((i=Mu(e),null==r?`${i}/max-accounts/${t}`:(Qn(r),`${i}/max-accounts/${t}/${r}`)))));var i;return sr.Delay((()=>sr.Bind(o,(e=>{let n,t;const r=e;return 1===r.tag?sr.Return(new dr(1,[r.fields[0]])):sr.ReturnFrom((n=r.fields[0],200===n.statusCode?(t=function(e,n){try{return tu("$",e,JSON.parse(n))}catch(e){if(e instanceof SyntaxError)return new dr(1,["Given an invalid JSON: "+e.message]);throw e}}(pn(2,function(e,n,t){const r=et(n,new Co(0,[]));return wu(function(e){return null!=e?_o(((e,n)=>new Gn(n[1])),e.Coders):po({Compare:an})}(void 0),r,!1,e)}(new Mt("Types.Model",[],tr,void 0,(()=>[["MaxAccounts",Pt],["ConfigOwnership",function(e,n,t,r){const o=new Mt("Types.ConfigOwnership",[],t,void 0,void 0,(()=>{const e=t.prototype.cases();return[[],[],[]].map(((n,t)=>new Ot(o,t,e[t],n)))}));return o}(0,0,nr)]])),new Co(1,[]))),n.responseText),sr.Return(t)):sr.Return(new dr(1,[n.responseText]))))}))))}))}function Du(){return(Du=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function Ru(e){this.getChildContext=function(){return e.context};var n=e.children,t=function(e,n){if(null==e)return{};var t,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n.indexOf(t=i[r])>=0||(o[t]=e[t]);return o}(e,["context","children"]);return G(n,t)}function Gu(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=f(Ru,Du({},this._props,{context:e.detail.context}),function e(n,t){if(3===n.nodeType)return n.data;if(1!==n.nodeType)return null;var r=[],o={},i=0,u=n.attributes,s=n.childNodes;for(i=u.length;i--;)"slot"!==u[i].name&&(o[u[i].name]=u[i].value,o[Pu(u[i].name)]=u[i].value);for(i=s.length;i--;){var l=e(s[i],null),c=s[i].slot;c?o[c]=f(Fu,{name:c},l):r[i]=l}var a=t?f(Fu,null,r):r;return f(t||n.nodeName.toLowerCase(),o,a)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?R:D)(this._vdom,this._root)}function Pu(e){return e.replace(/-(\w)/g,(function(e,n){return n?n.toUpperCase():""}))}function Uu(e,n,t){if(this._vdom){var r={};r[e]=t=null==t?void 0:t,r[Pu(e)]=t,this._vdom=G(this._vdom,r),D(this._vdom,this._root)}}function $u(){D(this._vdom=null,this._root)}function Fu(e,n){var t=this;return f("slot",Du({},e,{ref:function(e){e?(t.ref=e,t._listener||(t._listener=function(e){e.stopPropagation(),e.detail.context=n},e.addEventListener("_preact",t._listener))):t.ref.removeEventListener("_preact",t._listener)}}))}function Hu(e){let n;return Be("div",dn(Ct([["className","py-10"],(n=[Be("label",{className:"inline-flex text-sm font-medium text-gray-900 mr-5",for:"max-accounts",children:`Max Accounts ${t=e.configOwnership,2===t.tag?"":`(${t})`}: `}),Be("input",{className:"inline-flex",id:"max-accounts",type:"number",max:3,value:e.selected,onChange:n=>{const t=n.target.valueAsNumber;null==t||Number.isNaN(t)||e.handleMaxAccountChanged(function(e,n=0){const t=Math.pow(10,n),r=+(n?e*t:e).toFixed(8),o=Math.floor(r),i=r-o,u=i>.5-1e-8&&i<.5+1e-8?o%2==0?o:o+1:Math.round(r);return n?u/t:u}(t))}})],["children",je.Children.toArray(Array.from(n))])])));var t}function ju(e){let n;const t=e.msg;return null==t?null:Be("div",dn(Ct([["className","text-sm font-medium text-gray-900 my-5"],(n=[Be("span",{children:[t]})],["children",je.Children.toArray(Array.from(n))])])))}function Bu(e){let n;const t=It(0),r=t[1],o=0|t[0],i=It(new nr(1,[])),u=It(new fr(0,[])),s=u[1],l=u[0],c=gr(0,(()=>{const n=Au(e.backendUrl,e.accessToken,e.partnerId,e.accountId);return sr.Delay((()=>sr.Bind(n,(e=>{let n;const t=e;return 1===t.tag?sr.Return(new dr(1,[t.fields[0]])):sr.ReturnFrom((n=t.fields[0],r(n.MaxAccounts),i[1](n.ConfigOwnership),mr()))}))))})),a=gr(0,(()=>{const n=function(e,n,t,r,o){return gr(0,(()=>{let i;const u=(a=Mu(e),null==r?`${a}/max-accounts/${t}`:`${a}/max-accounts/${t}/${r}`),s=Nu(n,wo(new yr(2,[]),(l=new vr(1,[(i={maxAccounts:o},ku(0,Ou(Rt(["maxAccounts",Pt]),new Co(1,[]),void 0,void 0)(i)))]),c=yo(u),new br(c.url,c.method,c.headers,c.withCredentials,c.overridenMimeType,c.overridenResponseType,c.timeout,l))));var l,c,a;return sr.Delay((()=>sr.Bind(s,(e=>{let n;const t=e;return 1===t.tag?sr.Return(new dr(1,[t.fields[0]])):sr.ReturnFrom((n=t.fields[0],200===n.statusCode?sr.Return(new dr(0,[void 0])):sr.Return(new dr(1,[n.responseText]))))}))))}))}(e.backendUrl,e.accessToken,e.partnerId,e.accountId,o);return sr.Delay((()=>sr.Bind(n,(e=>{const n=e;return 1===n.tag?sr.Return(new dr(1,[n.fields[0]])):sr.ReturnFrom(sr.Bind(c,(e=>{const n=_r((()=>{}),e);return sr.Return(n)})))}))))})),h=gr(0,(()=>{const n=(t=e.backendUrl,r=e.accessToken,o=e.partnerId,i=e.accountId,gr(0,(()=>{const e=Nu(r,wo(new yr(4,[]),yo((n=Mu(t),null==i?`${n}/max-accounts/${o}`:(Qn(i),`${n}/max-accounts/${o}/${i}`)))));var n;return sr.Delay((()=>sr.Bind(e,(e=>{let n;const t=e;return 1===t.tag?sr.Return(new dr(1,[t.fields[0]])):sr.ReturnFrom((n=t.fields[0],200===n.statusCode?sr.Return(new dr(0,[void 0])):sr.Return(new dr(1,[n.responseText]))))}))))})));var t,r,o,i;return sr.Delay((()=>sr.Bind(n,(e=>{const n=e;return 1===n.tag?sr.Return(new dr(1,[n.fields[0]])):sr.ReturnFrom(sr.Bind(c,(e=>{const n=_r((()=>{}),e);return sr.Return(n)})))}))))})),d=hr((()=>c),s),_=hr((()=>a),s),p=hr((()=>h),s);let m,g,y,w;switch(function(e,n){Et((n=>(e(),xt((()=>{})))),[])}(d),2===l.tag?1===l.fields[0].tag?(g=0,y=l.fields[0].fields[0]):g=2:3===l.tag?(g=1,w=l.fields[0]):g=2,g){case 0:m=f(ju,{msg:y});break;case 1:m=f(ju,{msg:An(w)});break;case 2:m=f(ju,{msg:void 0})}const v=Ct([f(Hu,{configOwnership:i[0],handleMaxAccountChanged:r,selected:o}),Be("div",dn(_t((n=[Be("button",{className:"inline-flex items-center rounded border border-transparent bg-indigo-600 px-2.5 py-1.5 mr-5 text-xs font-medium text-white shadow-sm hover:bg-indigo-700 focus:outline-none",type:"button",children:"Update",onClick:e=>{_()}}),Be("button",{className:"inline-flex items-center rounded border border-transparent bg-red-600 px-2.5 py-1.5 text-xs font-medium text-white shadow-sm hover:bg-red-700 focus:outline-none",type:"button",children:"Reset",onClick:e=>{p()}}),m],["children",je.Children.toArray(Array.from(n))]))))]);return Be("div",{children:je.Children.toArray(Array.from(v))})}!function(e,n,t,r){function o(){var n=Reflect.construct(HTMLElement,[],o);return n._vdomComponent=e,n._root=n,n}(o.prototype=Object.create(HTMLElement.prototype)).constructor=o,o.prototype.connectedCallback=Gu,o.prototype.attributeChangedCallback=Uu,o.prototype.disconnectedCallback=$u,t=t||e.observedAttributes||Object.keys(e.propTypes||{}),o.observedAttributes=t,t.forEach((function(e){Object.defineProperty(o.prototype,e,{get:function(){return this._vdom.props[e]},set:function(n){this._vdom?this.attributeChangedCallback(e,null,n):(this._props||(this._props={}),this._props[e]=n,this.connectedCallback());var t=typeof n;null!=n&&"string"!==t&&"boolean"!==t&&"number"!==t||this.setAttribute(e,n)}})})),customElements.define("superhero-bank-details",o)}((e=>f(Bu,e)))})();
|