@flarehr/superhero-basic-profile 3.64.51 → 3.66.53
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.
- package/dist/superhero-basic-profile.js +15 -15
- package/package.json +1 -1
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerpolicy&&(i.referrerPolicy=o.referrerpolicy),o.crossorigin==="use-credentials"?i.credentials="include":o.crossorigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();var ar,A,_l,zt,Vi,yl,ko,bl,Ir={},Al=[],Dc=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function bt(e,t){for(var n in t)e[n]=t[n];return e}function vl(e){var t=e.parentNode;t&&t.removeChild(e)}function m(e,t,n){var r,o,i,s={};for(i in t)i=="key"?r=t[i]:i=="ref"?o=t[i]:s[i]=t[i];if(arguments.length>2&&(s.children=arguments.length>3?ar.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)s[i]===void 0&&(s[i]=e.defaultProps[i]);return Kn(e,s,r,o,null)}function Kn(e,t,n,r,o){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:o==null?++_l:o};return o==null&&A.vnode!=null&&A.vnode(i),i}function Fc(){return{current:null}}function $e(e){return e.children}function ot(e,t){this.props=e,this.context=t}function qn(e,t){if(t==null)return e.__?qn(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?qn(e):null}function xl(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return xl(e)}}function Mo(e){(!e.__d&&(e.__d=!0)&&zt.push(e)&&!kr.__r++||Vi!==A.debounceRendering)&&((Vi=A.debounceRendering)||yl)(kr)}function kr(){var e,t,n,r,o,i,s,l;for(zt.sort(ko);e=zt.shift();)e.__d&&(t=zt.length,r=void 0,o=void 0,s=(i=(n=e).__v).__e,(l=n.__P)&&(r=[],(o=bt({},i)).__v=i.__v+1,Yo(l,i,o,n.__n,l.ownerSVGElement!==void 0,i.__h!=null?[s]:null,r,s==null?qn(i):s,i.__h),Fl(r,i),i.__e!=s&&xl(i)),zt.length>t&&zt.sort(ko));kr.__r=0}function El(e,t,n,r,o,i,s,l,u,c){var a,d,f,p,g,_,w,b=r&&r.__k||Al,I=b.length;for(n.__k=[],a=0;a<t.length;a++)if((p=n.__k[a]=(p=t[a])==null||typeof p=="boolean"||typeof p=="function"?null:typeof p=="string"||typeof p=="number"||typeof p=="bigint"?Kn(null,p,null,null,p):Array.isArray(p)?Kn($e,{children:p},null,null,null):p.__b>0?Kn(p.type,p.props,p.key,p.ref?p.ref:null,p.__v):p)!=null){if(p.__=n,p.__b=n.__b+1,(f=b[a])===null||f&&p.key==f.key&&p.type===f.type)b[a]=void 0;else for(d=0;d<I;d++){if((f=b[d])&&p.key==f.key&&p.type===f.type){b[d]=void 0;break}f=null}Yo(e,p,f=f||Ir,o,i,s,l,u,c),g=p.__e,(d=p.ref)&&f.ref!=d&&(w||(w=[]),f.ref&&w.push(f.ref,null,p),w.push(d,p.__c||g,p)),g!=null?(_==null&&(_=g),typeof p.type=="function"&&p.__k===f.__k?p.__d=u=Cl(p,u,e):u=Sl(e,p,f,b,g,u),typeof n.type=="function"&&(n.__d=u)):u&&f.__e==u&&u.parentNode!=e&&(u=qn(f))}for(n.__e=_,a=I;a--;)b[a]!=null&&(typeof n.type=="function"&&b[a].__e!=null&&b[a].__e==n.__d&&(n.__d=Dl(r).nextSibling),kl(b[a],b[a]));if(w)for(a=0;a<w.length;a++)Il(w[a],w[++a],w[++a])}function Cl(e,t,n){for(var r,o=e.__k,i=0;o&&i<o.length;i++)(r=o[i])&&(r.__=e,t=typeof r.type=="function"?Cl(r,t,n):Sl(n,r,r,o,r.__e,t));return t}function xt(e,t){return t=t||[],e==null||typeof e=="boolean"||(Array.isArray(e)?e.some(function(n){xt(n,t)}):t.push(e)),t}function Sl(e,t,n,r,o,i){var s,l,u;if(t.__d!==void 0)s=t.__d,t.__d=void 0;else if(n==null||o!=i||o.parentNode==null)e:if(i==null||i.parentNode!==e)e.appendChild(o),s=null;else{for(l=i,u=0;(l=l.nextSibling)&&u<r.length;u+=1)if(l==o)break e;e.insertBefore(o,i),s=i}return s!==void 0?s:o.nextSibling}function Dl(e){var t,n,r;if(e.type==null||typeof e.type=="string")return e.__e;if(e.__k){for(t=e.__k.length-1;t>=0;t--)if((n=e.__k[t])&&(r=Dl(n)))return r}return null}function Ic(e,t,n,r,o){var i;for(i in n)i==="children"||i==="key"||i in t||Mr(e,i,null,n[i],r);for(i in t)o&&typeof t[i]!="function"||i==="children"||i==="key"||i==="value"||i==="checked"||n[i]===t[i]||Mr(e,i,t[i],n[i],r)}function Ui(e,t,n){t[0]==="-"?e.setProperty(t,n==null?"":n):e[t]=n==null?"":typeof n!="number"||Dc.test(t)?n:n+"px"}function Mr(e,t,n,r,o){var i;e:if(t==="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||Ui(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||Ui(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")i=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r||e.addEventListener(t,i?zi:Li,i):e.removeEventListener(t,i?zi:Li,i);else if(t!=="dangerouslySetInnerHTML"){if(o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!=="width"&&t!=="height"&&t!=="href"&&t!=="list"&&t!=="form"&&t!=="tabIndex"&&t!=="download"&&t in e)try{e[t]=n==null?"":n;break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!=="-"?e.removeAttribute(t):e.setAttribute(t,n))}}function Li(e){return this.l[e.type+!1](A.event?A.event(e):e)}function zi(e){return this.l[e.type+!0](A.event?A.event(e):e)}function Yo(e,t,n,r,o,i,s,l,u){var c,a,d,f,p,g,_,w,b,I,ne,oe,G,O,ae,P=t.type;if(t.constructor!==void 0)return null;n.__h!=null&&(u=n.__h,l=t.__e=n.__e,t.__h=null,i=[l]),(c=A.__b)&&c(t);try{e:if(typeof P=="function"){if(w=t.props,b=(c=P.contextType)&&r[c.__c],I=c?b?b.props.value:c.__:r,n.__c?_=(a=t.__c=n.__c).__=a.__E:("prototype"in P&&P.prototype.render?t.__c=a=new P(w,I):(t.__c=a=new ot(w,I),a.constructor=P,a.render=Mc),b&&b.sub(a),a.props=w,a.state||(a.state={}),a.context=I,a.__n=r,d=a.__d=!0,a.__h=[],a._sb=[]),a.__s==null&&(a.__s=a.state),P.getDerivedStateFromProps!=null&&(a.__s==a.state&&(a.__s=bt({},a.__s)),bt(a.__s,P.getDerivedStateFromProps(w,a.__s))),f=a.props,p=a.state,a.__v=t,d)P.getDerivedStateFromProps==null&&a.componentWillMount!=null&&a.componentWillMount(),a.componentDidMount!=null&&a.__h.push(a.componentDidMount);else{if(P.getDerivedStateFromProps==null&&w!==f&&a.componentWillReceiveProps!=null&&a.componentWillReceiveProps(w,I),!a.__e&&a.shouldComponentUpdate!=null&&a.shouldComponentUpdate(w,a.__s,I)===!1||t.__v===n.__v){for(t.__v!==n.__v&&(a.props=w,a.state=a.__s,a.__d=!1),a.__e=!1,t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(ce){ce&&(ce.__=t)}),ne=0;ne<a._sb.length;ne++)a.__h.push(a._sb[ne]);a._sb=[],a.__h.length&&s.push(a);break e}a.componentWillUpdate!=null&&a.componentWillUpdate(w,a.__s,I),a.componentDidUpdate!=null&&a.__h.push(function(){a.componentDidUpdate(f,p,g)})}if(a.context=I,a.props=w,a.__P=e,oe=A.__r,G=0,"prototype"in P&&P.prototype.render){for(a.state=a.__s,a.__d=!1,oe&&oe(t),c=a.render(a.props,a.state,a.context),O=0;O<a._sb.length;O++)a.__h.push(a._sb[O]);a._sb=[]}else do a.__d=!1,oe&&oe(t),c=a.render(a.props,a.state,a.context),a.state=a.__s;while(a.__d&&++G<25);a.state=a.__s,a.getChildContext!=null&&(r=bt(bt({},r),a.getChildContext())),d||a.getSnapshotBeforeUpdate==null||(g=a.getSnapshotBeforeUpdate(f,p)),ae=c!=null&&c.type===$e&&c.key==null?c.props.children:c,El(e,Array.isArray(ae)?ae:[ae],t,n,r,o,i,s,l,u),a.base=t.__e,t.__h=null,a.__h.length&&s.push(a),_&&(a.__E=a.__=null),a.__e=!1}else i==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=kc(n.__e,t,n,r,o,i,s,u);(c=A.diffed)&&c(t)}catch(ce){t.__v=null,(u||i!=null)&&(t.__e=l,t.__h=!!u,i[i.indexOf(l)]=null),A.__e(ce,t,n)}}function Fl(e,t){A.__c&&A.__c(t,e),e.some(function(n){try{e=n.__h,n.__h=[],e.some(function(r){r.call(n)})}catch(r){A.__e(r,n.__v)}})}function kc(e,t,n,r,o,i,s,l){var u,c,a,d=n.props,f=t.props,p=t.type,g=0;if(p==="svg"&&(o=!0),i!=null){for(;g<i.length;g++)if((u=i[g])&&"setAttribute"in u==!!p&&(p?u.localName===p:u.nodeType===3)){e=u,i[g]=null;break}}if(e==null){if(p===null)return document.createTextNode(f);e=o?document.createElementNS("http://www.w3.org/2000/svg",p):document.createElement(p,f.is&&f),i=null,l=!1}if(p===null)d===f||l&&e.data===f||(e.data=f);else{if(i=i&&ar.call(e.childNodes),c=(d=n.props||Ir).dangerouslySetInnerHTML,a=f.dangerouslySetInnerHTML,!l){if(i!=null)for(d={},g=0;g<e.attributes.length;g++)d[e.attributes[g].name]=e.attributes[g].value;(a||c)&&(a&&(c&&a.__html==c.__html||a.__html===e.innerHTML)||(e.innerHTML=a&&a.__html||""))}if(Ic(e,f,d,o,l),a)t.__k=[];else if(g=t.props.children,El(e,Array.isArray(g)?g:[g],t,n,r,o&&p!=="foreignObject",i,s,i?i[0]:n.__k&&qn(n,0),l),i!=null)for(g=i.length;g--;)i[g]!=null&&vl(i[g]);l||("value"in f&&(g=f.value)!==void 0&&(g!==e.value||p==="progress"&&!g||p==="option"&&g!==d.value)&&Mr(e,"value",g,d.value,!1),"checked"in f&&(g=f.checked)!==void 0&&g!==e.checked&&Mr(e,"checked",g,d.checked,!1))}return e}function Il(e,t,n){try{typeof e=="function"?e(t):e.current=t}catch(r){A.__e(r,n)}}function kl(e,t,n){var r,o;if(A.unmount&&A.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||Il(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(i){A.__e(i,t)}r.base=r.__P=null,e.__c=void 0}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&kl(r[o],t,n||typeof e.type!="function");n||e.__e==null||vl(e.__e),e.__=e.__e=e.__d=void 0}function Mc(e,t,n){return this.constructor(e,n)}function Nt(e,t,n){var r,o,i;A.__&&A.__(e,t),o=(r=typeof n=="function")?null:n&&n.__k||t.__k,i=[],Yo(t,e=(!r&&n||t).__k=m($e,null,[e]),o||Ir,Ir,t.ownerSVGElement!==void 0,!r&&n?[n]:o?null:t.firstChild?ar.call(t.childNodes):null,i,!r&&n?n:o?o.__e:t.firstChild,r),Fl(i,e)}function ei(e,t){Nt(e,t,ei)}function ti(e,t,n){var r,o,i,s=bt({},e.props);for(i in t)i=="key"?r=t[i]:i=="ref"?o=t[i]:s[i]=t[i];return arguments.length>2&&(s.children=arguments.length>3?ar.call(arguments,2):n),Kn(e.type,s,r||e.key,o||e.ref,null)}function Tc(e,t){var n={__c:t="__cC"+bl++,__:e,Consumer:function(r,o){return r.children(o)},Provider:function(r){var o,i;return this.getChildContext||(o=[],(i={})[t]=this,this.getChildContext=function(){return i},this.shouldComponentUpdate=function(s){this.props.value!==s.value&&o.some(function(l){l.__e=!0,Mo(l)})},this.sub=function(s){o.push(s);var l=s.componentWillUnmount;s.componentWillUnmount=function(){o.splice(o.indexOf(s),1),l&&l.call(s)}}),r.children}};return n.Provider.__=n.Consumer.contextType=n}ar=Al.slice,A={__e:function(e,t,n,r){for(var o,i,s;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&i.getDerivedStateFromError!=null&&(o.setState(i.getDerivedStateFromError(e)),s=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,r||{}),s=o.__d),s)return o.__E=o}catch(l){e=l}throw e}},_l=0,ot.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=bt({},this.state),typeof e=="function"&&(e=e(bt({},n),this.props)),e&&bt(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),Mo(this))},ot.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Mo(this))},ot.prototype.render=$e,zt=[],yl=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,ko=function(e,t){return e.__v.__b-t.__v.__b},kr.__r=0,bl=0;var Yt,L,wo,Wi,wn=0,Ml=[],xr=[],Gi=A.__b,Qi=A.__r,Zi=A.diffed,Ki=A.__c,Ji=A.unmount;function Dn(e,t){A.__h&&A.__h(L,e,wn||t),wn=0;var n=L.__H||(L.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:xr}),n.__[e]}function Tl(e){return wn=1,ni(Nl,e)}function ni(e,t,n){var r=Dn(Yt++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Nl(void 0,t),function(l){var u=r.__N?r.__N[0]:r.__[0],c=r.t(u,l);u!==c&&(r.__N=[c,r.__[1]],r.__c.setState({}))}],r.__c=L,!L.u)){var o=function(l,u,c){if(!r.__c.__H)return!0;var a=r.__c.__H.__.filter(function(f){return f.__c});if(a.every(function(f){return!f.__N}))return!i||i.call(this,l,u,c);var d=!1;return a.forEach(function(f){if(f.__N){var p=f.__[0];f.__=f.__N,f.__N=void 0,p!==f.__[0]&&(d=!0)}}),!(!d&&r.__c.props===l)&&(!i||i.call(this,l,u,c))};L.u=!0;var i=L.shouldComponentUpdate,s=L.componentWillUpdate;L.componentWillUpdate=function(l,u,c){if(this.__e){var a=i;i=void 0,o(l,u,c),i=a}s&&s.call(this,l,u,c)},L.shouldComponentUpdate=o}return r.__N||r.__}function mn(e,t){var n=Dn(Yt++,3);!A.__s&&ri(n.__H,t)&&(n.__=e,n.i=t,L.__H.__h.push(n))}function Jr(e,t){var n=Dn(Yt++,4);!A.__s&&ri(n.__H,t)&&(n.__=e,n.i=t,L.__h.push(n))}function Wn(e){return wn=5,wt(function(){return{current:e}},[])}function Rl(e,t,n){wn=6,Jr(function(){return typeof e=="function"?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},n==null?n:n.concat(e))}function wt(e,t){var n=Dn(Yt++,7);return ri(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function Se(e,t){return wn=8,wt(function(){return e},t)}function Rc(e){var t=L.context[e.__c],n=Dn(Yt++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(L)),t.props.value):e.__}function Nc(e,t){A.useDebugValue&&A.useDebugValue(t?t(e):e)}function Oc(){var e=Dn(Yt++,11);if(!e.__){for(var t=L.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function Bc(){for(var e;e=Ml.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Er),e.__H.__h.forEach(To),e.__H.__h=[]}catch(t){e.__H.__h=[],A.__e(t,e.__v)}}A.__b=function(e){L=null,Gi&&Gi(e)},A.__r=function(e){Qi&&Qi(e),Yt=0;var t=(L=e.__c).__H;t&&(wo===L?(t.__h=[],L.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=xr,n.__N=n.i=void 0})):(t.__h.forEach(Er),t.__h.forEach(To),t.__h=[])),wo=L},A.diffed=function(e){Zi&&Zi(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Ml.push(t)!==1&&Wi===A.requestAnimationFrame||((Wi=A.requestAnimationFrame)||Pc)(Bc)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==xr&&(n.__=n.__V),n.i=void 0,n.__V=xr})),wo=L=null},A.__c=function(e,t){t.some(function(n){try{n.__h.forEach(Er),n.__h=n.__h.filter(function(r){return!r.__||To(r)})}catch(r){t.some(function(o){o.__h&&(o.__h=[])}),t=[],A.__e(r,n.__v)}}),Ki&&Ki(e,t)},A.unmount=function(e){Ji&&Ji(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{Er(r)}catch(o){t=o}}),n.__H=void 0,t&&A.__e(t,n.__v))};var $i=typeof requestAnimationFrame=="function";function Pc(e){var t,n=function(){clearTimeout(r),$i&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);$i&&(t=requestAnimationFrame(n))}function Er(e){var t=L,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),L=t}function To(e){var t=L;e.__c=e.__(),L=t}function ri(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function Nl(e,t){return typeof t=="function"?t(e):t}function Ol(e,t){for(var n in t)e[n]=t[n];return e}function Ro(e,t){for(var n in e)if(n!=="__source"&&!(n in t))return!0;for(var r in t)if(r!=="__source"&&e[r]!==t[r])return!0;return!1}function _o(e,t){return e===t&&(e!==0||1/e==1/t)||e!=e&&t!=t}function No(e){this.props=e}function Hc(e,t){function n(o){var i=this.props.ref,s=i==o.ref;return!s&&i&&(i.call?i(null):i.current=null),t?!t(this.props,o)||!s:Ro(this.props,o)}function r(o){return this.shouldComponentUpdate=n,m(e,o)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(No.prototype=new ot).isPureReactComponent=!0,No.prototype.shouldComponentUpdate=function(e,t){return Ro(this.props,e)||Ro(this.state,t)};var Xi=A.__b;A.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Xi&&Xi(e)};var jc=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Bl(e){function t(n){var r=Ol({},n);return delete r.ref,e(r,n.ref||null)}return t.$$typeof=jc,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var qi=function(e,t){return e==null?null:xt(xt(e).map(t))},Vc={map:qi,forEach:qi,count:function(e){return e?xt(e).length:0},only:function(e){var t=xt(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:xt},Uc=A.__e;A.__e=function(e,t,n,r){if(e.then){for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t)}Uc(e,t,n,r)};var Yi=A.unmount;function Pl(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c()}),e.__c.__H=null),(e=Ol({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return Pl(r,t,n)})),e}function Hl(e,t,n){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return Hl(r,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=n)),e}function Cr(){this.__u=0,this.t=null,this.__b=null}function jl(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Lc(e){var t,n,r;function o(i){if(t||(t=e()).then(function(s){n=s.default||s},function(s){r=s}),r)throw r;if(!n)throw t;return m(n,i)}return o.displayName="Lazy",o.__f=!0,o}function Gn(){this.u=null,this.o=null}A.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&e.__h===!0&&(e.type=null),Yi&&Yi(e)},(Cr.prototype=new ot).__c=function(e,t){var n=t.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var o=jl(r.__v),i=!1,s=function(){i||(i=!0,n.__R=null,o?o(l):l())};n.__R=s;var l=function(){if(!--r.__u){if(r.state.__a){var c=r.state.__a;r.__v.__k[0]=Hl(c,c.__c.__P,c.__c.__O)}var a;for(r.setState({__a:r.__b=null});a=r.t.pop();)a.forceUpdate()}},u=t.__h===!0;r.__u++||u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(s,s)},Cr.prototype.componentWillUnmount=function(){this.t=[]},Cr.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=Pl(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&m($e,null,e.fallback);return o&&(o.__h=null),[m($e,null,t.__a?null:e.children),o]};var es=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function zc(e){return this.getChildContext=function(){return e.context},e.children}function Wc(e){var t=this,n=e.i;t.componentWillUnmount=function(){Nt(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),e.__v?(t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(r){this.childNodes.push(r),t.i.appendChild(r)},insertBefore:function(r,o){this.childNodes.push(r),t.i.appendChild(r)},removeChild:function(r){this.childNodes.splice(this.childNodes.indexOf(r)>>>1,1),t.i.removeChild(r)}}),Nt(m(zc,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}function Gc(e,t){var n=m(Wc,{__v:e,i:t});return n.containerInfo=t,n}(Gn.prototype=new ot).__a=function(e){var t=this,n=jl(t.__v),r=t.o.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),es(t,e,r)):o()};n?n(i):i()}},Gn.prototype.render=function(e){this.u=null,this.o=new Map;var t=xt(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},Gn.prototype.componentDidUpdate=Gn.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){es(e,n,t)})};var Vl=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Qc=/^(?: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]/,Zc=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Kc=/[A-Z0-9]/g,Jc=typeof document<"u",$c=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function Xc(e,t,n){return t.__k==null&&(t.textContent=""),Nt(e,t),typeof n=="function"&&n(),e?e.__c:null}function qc(e,t,n){return ei(e,t),typeof n=="function"&&n(),e?e.__c:null}ot.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(ot.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var ts=A.event;function Yc(){}function eu(){return this.cancelBubble}function tu(){return this.defaultPrevented}A.event=function(e){return ts&&(e=ts(e)),e.persist=Yc,e.isPropagationStopped=eu,e.isDefaultPrevented=tu,e.nativeEvent=e};var oi,nu={enumerable:!1,configurable:!0,get:function(){return this.class}},ns=A.vnode;A.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,r=t.type,o={};for(var i in n){var s=n[i];if(!(i==="value"&&"defaultValue"in n&&s==null||Jc&&i==="children"&&r==="noscript"||i==="class"||i==="className")){var l=i.toLowerCase();i==="defaultValue"&&"value"in n&&n.value==null?i="value":i==="download"&&s===!0?s="":l==="ondoubleclick"?i="ondblclick":l!=="onchange"||r!=="input"&&r!=="textarea"||$c(n.type)?l==="onfocus"?i="onfocusin":l==="onblur"?i="onfocusout":Zc.test(i)?i=l:r.indexOf("-")===-1&&Qc.test(i)?i=i.replace(Kc,"-$&").toLowerCase():s===null&&(s=void 0):l=i="oninput",l==="oninput"&&o[i=l]&&(i="oninputCapture"),o[i]=s}}r=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=xt(n.children).forEach(function(u){u.props.selected=o.value.indexOf(u.props.value)!=-1})),r=="select"&&o.defaultValue!=null&&(o.value=xt(n.children).forEach(function(u){u.props.selected=o.multiple?o.defaultValue.indexOf(u.props.value)!=-1:o.defaultValue==u.props.value})),n.class&&!n.className?(o.class=n.class,Object.defineProperty(o,"className",nu)):(n.className&&!n.class||n.class&&n.className)&&(o.class=o.className=n.className),t.props=o}(e),e.$$typeof=Vl,ns&&ns(e)};var rs=A.__r;A.__r=function(e){rs&&rs(e),oi=e.__c};var os=A.diffed;A.diffed=function(e){os&&os(e);var t=e.props,n=e.__e;n!=null&&e.type==="textarea"&&"value"in t&&t.value!==n.value&&(n.value=t.value==null?"":t.value),oi=null};var ru={ReactCurrentDispatcher:{current:{readContext:function(e){return oi.__n[e.__c].props.value}}}};function ou(e){return m.bind(null,e)}function Ul(e){return!!e&&e.$$typeof===Vl}function iu(e){return Ul(e)?ti.apply(null,arguments):e}function su(e){return!!e.__k&&(Nt(null,e),!0)}function lu(e){return e&&(e.base||e.nodeType===1&&e)||null}var au=function(e,t){return e(t)},cu=function(e,t){return e(t)},uu=$e;function Ll(e){e()}function fu(e){return e}function du(){return[!1,Ll]}var pu=Jr;function hu(e,t){var n=t(),r=Tl({h:{__:n,v:t}}),o=r[0].h,i=r[1];return Jr(function(){o.__=n,o.v=t,_o(o.__,t())||i({h:o})},[e,n,t]),mn(function(){return _o(o.__,o.v())||i({h:o}),e(function(){_o(o.__,o.v())||i({h:o})})},[e]),n}var zl={useState:Tl,useId:Oc,useReducer:ni,useEffect:mn,useLayoutEffect:Jr,useInsertionEffect:pu,useTransition:du,useDeferredValue:fu,useSyncExternalStore:hu,startTransition:Ll,useRef:Wn,useImperativeHandle:Rl,useMemo:wt,useCallback:Se,useContext:Rc,useDebugValue:Nc,version:"17.0.2",Children:Vc,render:Xc,hydrate:qc,unmountComponentAtNode:su,createPortal:Gc,createElement:m,createContext:Tc,createFactory:ou,cloneElement:iu,createRef:Fc,Fragment:$e,isValidElement:Ul,findDOMNode:lu,Component:ot,PureComponent:No,memo:Hc,forwardRef:Bl,flushSync:cu,unstable_batchedUpdates:au,StrictMode:uu,Suspense:Cr,SuspenseList:Gn,lazy:Lc,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:ru};class _n{constructor(t){this.value=t}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return Ct(this.value)}Equals(t){return t==null?!1:it(this.value,t instanceof _n?t.value:t)}CompareTo(t){return t==null?1:ct(this.value,t instanceof _n?t.value:t)}}function $(e){if(e==null)throw new Error("Option has no value");return e instanceof _n?e.value:e}function at(e){return Array.isArray(e)||ArrayBuffer.isView(e)}function mu(e){return e!=null&&typeof e.GetEnumerator=="function"}function gu(e){return e!=null&&typeof e.CompareTo=="function"}function wu(e){return e!=null&&typeof e.Equals=="function"}function _u(e){return e!=null&&typeof e.GetHashCode=="function"}function Wl(e){return e!=null&&typeof e.Dispose=="function"}function J(e){Wl(e)&&e.Dispose()}function Et(){return null}function Tr(e,t){var n,r;return((n=Object.getPrototypeOf(e))===null||n===void 0?void 0:n.constructor)===((r=Object.getPrototypeOf(t))===null||r===void 0?void 0:r.constructor)}class yu{constructor(t){this.iter=t,this.current=Et()}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current}"System.Collections.IEnumerator.get_Current"(){return this.current}"System.Collections.IEnumerator.MoveNext"(){const t=this.iter.next();return this.current=t.value,!t.done}"System.Collections.IEnumerator.Reset"(){throw new Error("JS iterators cannot be reset")}Dispose(){}}function Ee(e){return mu(e)?e.GetEnumerator():new yu(e[Symbol.iterator]())}function $r(e){return{[Symbol.iterator](){return this},next(){const t=e["System.Collections.IEnumerator.MoveNext"](),n=t?e["System.Collections.Generic.IEnumerator`1.get_Current"]():void 0;return{done:!t,value:n}}}}function nt(e,t){let n=e.toString(10);for(;n.length<t;)n="0"+n;return n}function is(e){const t=e;return typeof t.offset=="number"?t.offset:e.kind===1?0:e.getTimezoneOffset()*-6e4}function bu(e,t){return e=e<0&&t!=null&&t!==10?65535+e+1:e,e.toString(t)}function Rt(e,t){return e=e<0&&t!=null&&t!==10?4294967295+e+1:e,e.toString(t)}class kt{static id(t){return kt.idMap.has(t)||kt.idMap.set(t,++kt.count),kt.idMap.get(t)}}kt.idMap=new WeakMap;kt.count=0;function Gl(e){let t=0,n=5381;const r=e.length;for(;t<r;)n=n*33^e.charCodeAt(t++);return n}function _t(e){return e*2654435761|0}function Fn(e){return e.length===0?0:e.reduce((t,n)=>(t<<5)+t^n)}function Au(e){return e.getTime()}function vu(e){const t=e.length,n=new Array(t);for(let r=0;r<t;r++)n[r]=Ct(e[r]);return Fn(n)}function Ct(e){var t;if(e==null)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return _t(e);case"string":return Gl(e);default:{if(_u(e))return e.GetHashCode();if(at(e))return vu(e);if(e instanceof Date)return Au(e);if(((t=Object.getPrototypeOf(e))===null||t===void 0?void 0:t.constructor)===Object){const n=Object.values(e).map(r=>Ct(r));return Fn(n)}else return _t(kt.id(e))}}}function Oo(e,t,n){if(e==null)return t==null;if(t==null||e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!n(e[r],t[r]))return!1;return!0}function Ql(e,t){return Oo(e,t,it)}function xu(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;n.sort(),r.sort();for(let o=0;o<n.length;o++)if(n[o]!==r[o]||!it(e[n[o]],t[r[o]]))return!1;return!0}function it(e,t){var n;return e===t?!0:e==null?t==null:t==null?!1:wu(e)?e.Equals(t):at(e)?at(t)&&Ql(e,t):typeof e!="object"?!1:e instanceof Date?t instanceof Date&&Zl(e,t)===0:((n=Object.getPrototypeOf(e))===null||n===void 0?void 0:n.constructor)===Object&&xu(e,t)}function Zl(e,t){let n,r;return"offset"in e&&"offset"in t?(n=e.getTime(),r=t.getTime()):(n=e.getTime()+is(e),r=t.getTime()+is(t)),n===r?0:n<r?-1:1}function yn(e,t){return e===t?0:e<t?-1:1}function Eu(e,t,n){if(e==null)return t==null?0:1;if(t==null)return-1;if(e.length!==t.length)return e.length<t.length?-1:1;for(let r=0,o=0;r<e.length;r++)if(o=n(e[r],t[r]),o!==0)return o;return 0}function Kl(e,t){return Eu(e,t,ct)}function Cu(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return n.length<r.length?-1:1;n.sort(),r.sort();for(let o=0,i=0;o<n.length;o++){const s=n[o];if(s!==r[o])return s<r[o]?-1:1;if(i=ct(e[s],t[s]),i!==0)return i}return 0}function ct(e,t){var n;return e===t?0:e==null?t==null?0:-1:t==null?1:gu(e)?e.CompareTo(t):at(e)?at(t)?Kl(e,t):-1:typeof e!="object"?e<t?-1:1:e instanceof Date?t instanceof Date?Zl(e,t):-1:((n=Object.getPrototypeOf(e))===null||n===void 0?void 0:n.constructor)===Object?Cu(e,t):-1}function Bo(e,t,n){return e(t,n)>0?t:n}function K(e){const t={};for(const n of e)t[n[0]]=n[1];return t}const Po=Symbol("curried");function q(e,t){if(t==null)return t;const n=$(t);if(n.length>1)return n;const r=(...o)=>{let i=n;for(let s=0;s<e;s++)i=i(o[s]);return i};return r[Po]=n,r}function Jl(e,t,n){return r=>t===1?n(...e.concat([r])):Jl(e.concat([r]),t-1,n)}function In(e,t,n){if(t!=null)if(Po in t){t=t[Po];for(let r=0;r<n.length;r++)t=t(n[r]);return t}else return Jl(n,e,t)}function Su(e){let t=0,n="[";for(const r of e){if(t===0)n+=Ce(r);else if(t===100){n+="; ...";break}else n+="; "+Ce(r);t++}return n+"]"}function Ce(e,t=0){var n,r;if(e!=null&&typeof e=="object"){if(typeof e.toString=="function")return e.toString();if(Symbol.iterator in e)return Su(e);{const o=(n=Object.getPrototypeOf(e))===null||n===void 0?void 0:n.constructor;return o===Object&&t<10?"{ "+Object.entries(e).map(([i,s])=>i+" = "+Ce(s,t+1)).join(`
|
|
2
|
-
`)+" }":(r=o==null?void 0:o.name)!==null&&r!==void 0?r:""}}return String(e)}function Du(e,t){if(t.length===0)return e;{let n,r=!0;return t.length===1?(n=
|
|
3
|
-
`)+" }"}function ku(e){const t=Object.values(e).map(n=>Ct(n));return Fn(t)}function Mu(e,t){if(e===t)return!0;if(Tr(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++)if(!it(e[n[r]],t[n[r]]))return!1;return!0}else return!1}function Tu(e,t){if(e===t)return 0;if(Tr(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++){const o=ct(e[n[r]],t[n[r]]);if(o!==0)return o}return 0}else return-1}class le{toJSON(){return Fu(this)}toString(){return Iu(this)}GetHashCode(){return ku(this)}Equals(t){return Mu(this,t)}CompareTo(t){return Tu(this,t)}}class ze{get contents(){return this.getter()}set contents(t){this.setter(t)}constructor(t,n){typeof n=="function"?(this.getter=t,this.setter=n):(this.getter=()=>t,this.setter=r=>{t=r})}}class Ru{constructor(t){this.message=t}}function Nu(e){return e instanceof Ru||e instanceof Error}function Ou(e){return e instanceof Promise}function Rr(e){return Nu(e)||Ou(e)?e:new Error(String(e))}const Bt=Symbol("numeric");function $l(e){return typeof e=="number"||(e==null?void 0:e[Bt])}function Bu(e,t){return typeof e=="number"?e<t?-1:e>t?1:0:e.CompareTo(t)}function Ho(e,t){return typeof e=="number"?e*t:e[Bt]().multiply(t)}function Sr(e,t){return typeof e=="number"?e.toFixed(t):e[Bt]().toFixed(t)}function Nr(e,t){return typeof e=="number"?e.toPrecision(t):e[Bt]().toPrecision(t)}function Or(e,t){return typeof e=="number"?e.toExponential(t):e[Bt]().toExponential(t)}function Br(e){return typeof e=="number"?(Number(e)>>>0).toString(16):e[Bt]().toHex()}var V={GetHashCode(){return Fn([this.s,this.e].concat(this.c))},Equals(e){return!this.cmp(e)},CompareTo(e){return this.cmp(e)},[Bt](){const e=this;return{multiply:t=>e.mul(t),toPrecision:t=>e.toPrecision(t),toExponential:t=>e.toExponential(t),toFixed:t=>e.toFixed(t),toHex:()=>(Number(e)>>>0).toString(16)}}},Pu=28,Hu=1,Zt=1e6,ss=1e6,ju=-29,Vu=29,Uu=!1,cr="[big.js] ",en=cr+"Invalid ",Xr=en+"decimal places",Lu=en+"rounding mode",Xl=cr+"Division by zero",st=void 0,zu=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;function ql(){function e(t){var n=this;if(!(n instanceof e))return t===st?ql():new e(t);if(t instanceof e)n.s=t.s,n.e=t.e,n.c=t.c.slice(),Wu(n);else{if(typeof t!="string"){if(e.strict===!0)throw TypeError(en+"number");t=t===0&&1/t<0?"-0":String(t)}Gu(n,t)}n.constructor=e}return e.prototype=V,e.DP=Pu,e.RM=Hu,e.NE=ju,e.PE=Vu,e.strict=Uu,e}function Wu(e){if(e.c.length>1&&!e.c[0]){let t=e.c.findIndex(n=>n);e.c=e.c.slice(t),e.e=e.e-t}}function Gu(e,t){var n,r,o;if(!zu.test(t))throw Error(en+"number");for(e.s=t.charAt(0)=="-"?(t=t.slice(1),-1):1,(n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),o=t.length,r=0;r<n&&r<o&&t.charAt(r)=="0";)++r;if(r==o)e.c=[e.e=0];else for(e.e=n-r-1,e.c=[],n=0;r<o;)e.c[n++]=+t.charAt(r++);return e=Pt(e,Ot.DP+1,Ot.RM),e}function Pt(e,t,n,r){var o=e.c;if(n===st&&(n=Ot.RM),n!==0&&n!==1&&n!==2&&n!==3)throw Error(Lu);if(t<1)r=n===3&&(r||!!o[0])||t===0&&(n===1&&o[0]>=5||n===2&&(o[0]>5||o[0]===5&&(r||o[1]!==st))),o.length=1,r?(e.e=e.e-t+1,o[0]=1):o[0]=e.e=0;else if(t<o.length){const i=o.findIndex((s,l)=>l>=t&&s>0)<0;if(r=n===1&&o[t]>=5||n===2&&(o[t]>5||o[t]===5&&(r||o[t+1]!==st||o[t-1]&1))||n===3&&(r||!i),o.length=t--,r)for(;++o[t]>9;)o[t]=0,t--||(++e.e,o.unshift(1));for(t=o.length;!o[--t];)o.pop()}return e}function kn(e,t,n){var r=e.e,o=e.c.join(""),i=o.length;if(t)o=o.charAt(0)+(i>1?"."+o.slice(1):"")+(r<0?"e":"e+")+r;else if(r<0){for(;++r;)o="0"+o;o="0."+o}else if(r>0)if(++r>i)for(r-=i;r--;)o+="0";else r<i&&(o=o.slice(0,r)+"."+o.slice(r));else i>1&&(o=o.charAt(0)+"."+o.slice(1));return e.s<0&&n?"-"+o:o}V.abs=function(){var e=new this.constructor(this);return e.s=1,e};V.cmp=function(o){var t,n=this.constructor,r=new n(this),o=new n(o),i=r.c,s=o.c,l=r.s,u=o.s,c=r.e,a=o.e;if(!i[0]||!s[0])return i[0]?l:s[0]?-u:0;if(l!=u)return l;if(t=l<0,c!=a)return c>a^t?1:-1;for(u=Math.max(i.length,s.length),l=0;l<u;l++)if(c=l<i.length?i[l]:0,a=l<s.length?s[l]:0,c!=a)return c>a^t?1:-1;return 0};V.div=function(r){var t=this.constructor,n=new t(this),r=new t(r),o=n.c,i=r.c,s=n.s==r.s?1:-1,l=t.DP;if(l!==~~l||l<0||l>Zt)throw Error(Xr);if(!i[0])throw Error(Xl);if(!o[0])return r.s=s,r.c=[r.e=0],r;var u,c,a,d,f,p=i.slice(),g=u=i.length,_=o.length,w=o.slice(0,u),b=w.length,I=r,ne=I.c=[],oe=0,G=l+(I.e=n.e-r.e)+1;for(I.s=s,s=G<0?0:G,p.unshift(0);b++<u;)w.push(0);do{for(a=0;a<10;a++){if(u!=(b=w.length))d=u>b?1:-1;else for(f=-1,d=0;++f<u;)if(i[f]!=w[f]){d=i[f]>w[f]?1:-1;break}if(d<0){for(c=b==u?i:p;b;){if(w[--b]<c[b]){for(f=b;f&&!w[--f];)w[f]=9;--w[f],w[b]+=10}w[b]-=c[b]}for(;!w[0];)w.shift()}else break}ne[oe++]=d?a:++a,w[0]&&d?w[b]=o[g]||0:w=[o[g]]}while((g++<_||w[0]!==st)&&s--);return!ne[0]&&oe!=1&&(ne.shift(),I.e--,G--),oe>G&&Pt(I,G,t.RM,w[0]!==st),I};V.eq=function(e){return this.cmp(e)===0};V.gt=function(e){return this.cmp(e)>0};V.gte=function(e){return this.cmp(e)>-1};V.lt=function(e){return this.cmp(e)<0};V.lte=function(e){return this.cmp(e)<1};V.minus=V.sub=function(l){var t,n,r,o,i=this.constructor,s=new i(this),l=new i(l),u=s.s,c=l.s;if(u!=c)return l.s=-c,s.plus(l);var a=s.c.slice(),d=s.e,f=l.c,p=l.e;if(!a[0]||!f[0])return f[0]?l.s=-c:a[0]?l=new i(s):l.s=1,l;if(u=d-p){for((o=u<0)?(u=-u,r=a):(p=d,r=f),r.reverse(),c=u;c--;)r.push(0);r.reverse()}else for(n=((o=a.length<f.length)?a:f).length,u=c=0;c<n;c++)if(a[c]!=f[c]){o=a[c]<f[c];break}if(o&&(r=a,a=f,f=r,l.s=-l.s),(c=(n=f.length)-(t=a.length))>0)for(;c--;)a[t++]=0;for(c=t;n>u;){if(a[--n]<f[n]){for(t=n;t&&!a[--t];)a[t]=9;--a[t],a[n]+=10}a[n]-=f[n]}for(;a[--c]===0;)a.pop();for(;a[0]===0;)a.shift(),--p;return a[0]||(l.s=1,a=[p=0]),l.c=a,l.e=p,l};V.mod=function(o){var t,n=this.constructor,r=new n(this),o=new n(o),i=r.s,s=o.s;if(!o.c[0])throw Error(Xl);return r.s=o.s=1,t=o.cmp(r)==1,r.s=i,o.s=s,t?new n(r):(i=n.DP,s=n.RM,n.DP=n.RM=0,r=r.div(o),n.DP=i,n.RM=s,this.minus(r.times(o)))};V.plus=V.add=function(s){var t,n,r,o=this.constructor,i=new o(this),s=new o(s);if(i.s!=s.s)return s.s=-s.s,i.minus(s);var l=i.e,u=i.c,c=s.e,a=s.c;if(!u[0]||!a[0])return a[0]||(u[0]?s=new o(i):s.s=i.s),s;if(u=u.slice(),t=l-c){for(t>0?(c=l,r=a):(t=-t,r=u),r.reverse();t--;)r.push(0);r.reverse()}for(u.length-a.length<0&&(r=a,a=u,u=r),t=a.length,n=0;t;u[t]%=10)n=(u[--t]=u[t]+a[t]+n)/10|0;for(n&&(u.unshift(n),++c),t=u.length;u[--t]===0;)u.pop();return s.c=u,s.e=c,s};V.pow=function(e){var t=this.constructor,n=new t(this),r=new t("1"),o=new t("1"),i=e<0;if(e!==~~e||e<-ss||e>ss)throw Error(en+"exponent");for(i&&(e=-e);e&1&&(r=r.times(n)),e>>=1,!!e;)n=n.times(n);return i?o.div(r):r};V.prec=function(e,t){if(e!==~~e||e<1||e>Zt)throw Error(en+"precision");return Pt(new this.constructor(this),e,t)};V.round=function(e,t){if(e===st)e=0;else if(e!==~~e||e<-Zt||e>Zt)throw Error(Xr);return Pt(new this.constructor(this),e+this.e+1,t)};V.sqrt=function(){var e,t,n,r=this.constructor,o=new r(this),i=o.s,s=o.e,l=new r("0.5");if(!o.c[0])return new r(o);if(i<0)throw Error(cr+"No square root");i=Math.sqrt(o+""),i===0||i===1/0?(t=o.c.join(""),t.length+s&1||(t+="0"),i=Math.sqrt(t),s=((s+1)/2|0)-(s<0||s&1),e=new r((i==1/0?"5e":(i=i.toExponential()).slice(0,i.indexOf("e")+1))+s)):e=new r(i+""),s=e.e+(r.DP+=4);do n=e,e=l.times(n.plus(o.div(n)));while(n.c.slice(0,s).join("")!==e.c.slice(0,s).join(""));return Pt(e,(r.DP-=4)+e.e+1,r.RM)};V.times=V.mul=function(o){var t,n=this.constructor,r=new n(this),o=new n(o),i=r.c,s=o.c,l=i.length,u=s.length,c=r.e,a=o.e;if(o.s=r.s==o.s?1:-1,!i[0]||!s[0])return o.c=[o.e=0],o;for(o.e=c+a,l<u&&(t=i,i=s,s=t,a=l,l=u,u=a),t=new Array(a=l+u);a--;)t[a]=0;for(c=u;c--;){for(u=0,a=l+c;a>c;)u=t[a]+s[c]*i[a-c-1]+u,t[a--]=u%10,u=u/10|0;t[a]=u}for(u?++o.e:t.shift(),c=t.length;!t[--c];)t.pop();return o.c=t,o};V.toExponential=function(e,t){var n=this,r=n.c[0];if(e!==st){if(e!==~~e||e<0||e>Zt)throw Error(Xr);for(n=Pt(new n.constructor(n),++e,t);n.c.length<e;)n.c.push(0)}return kn(n,!0,!!r)};V.toFixed=function(e,t){var n=this,r=n.c[0];if(e!==st){if(e!==~~e||e<0||e>Zt)throw Error(Xr);for(n=Pt(new n.constructor(n),e+n.e+1,t),e=e+n.e+1;n.c.length<e;)n.c.push(0)}return kn(n,!1,!!r)};V.toJSON=V.toString=function(){var e=this,t=e.constructor;return kn(e,e.e<=t.NE||e.e>=t.PE,!!e.c[0])};V.toNumber=function(){var e=Number(kn(this,!0,!0));if(this.constructor.strict===!0&&!this.eq(e.toString()))throw Error(cr+"Imprecise conversion");return e};V.toPrecision=function(e,t){var n=this,r=n.constructor,o=n.c[0];if(e!==st){if(e!==~~e||e<1||e>Zt)throw Error(en+"precision");for(n=Pt(new r(n),e,t);n.c.length<e;)n.c.push(0)}return kn(n,e<=n.e||n.e<=r.NE||n.e>=r.PE,!!o)};V.valueOf=function(){var e=this,t=e.constructor;if(t.strict===!0)throw Error(cr+"valueOf disallowed");return kn(e,e.e<=t.NE||e.e>=t.PE,!0)};var Ot=ql();new Ot(0);new Ot(1);new Ot(-1);new Ot("79228162514264337593543950335");new Ot("-79228162514264337593543950335");var jo;(function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"})(jo||(jo={}));function Qu(e,t){const[,n,r,o]=e;return{sign:n||"",prefix:r||"",digits:o,radix:t}}function ls(e,t){switch(t){case 8:return e?[0,255]:[-128,127];case 16:return e?[0,65535]:[-32768,32767];case 32:return e?[0,4294967295]:[-2147483648,2147483647];default:throw new Error("Invalid bit size.")}}function Zu(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.")}}function Ku(e,t){if(t&jo.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}}function Ju(e,t,n){const o=/^\s*([\+\-])?(0[xXoObB])?([0-9a-fA-F]+)\s*$/.exec(e.replace(/_/g,""));if(o!=null){const[,,i,s]=o;if(n=n||Ku(i,t),!Zu(n).test(s))return Qu(o,n)}return null}function $u(e,t,n,r,o){const i=Ju(e,t,o);if(i!=null){let s=Number.parseInt(i.sign+i.digits,i.radix);if(!Number.isNaN(s)){const[l,u]=ls(!0,r);!n&&i.radix!==10&&s>=l&&s<=u&&(s=s<<32-r>>32-r);const[c,a]=ls(n,r);if(s>=c&&s<=a)return s}}throw new Error("Input string was not in a correct format.")}function Mn(e,t,n,r,o){try{return o.contents=$u(e,t,n,r),!0}catch{return!1}}function Xu(e){return e===-2147483648?e:-e}var He=null;try{He=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{}function Xe(e,t,n){this.low=e|0,this.high=t|0,this.unsigned=!!n}Xe.prototype.GetHashCode=function(){let e=this.unsigned?1:0;return e=(e<<5)+e^this.high,e=(e<<5)+e^this.low,e};Xe.prototype.Equals=function(e){return Be(this,e)};Xe.prototype.CompareTo=function(e){return ur(this,e)};Xe.prototype.toString=function(e){return er(this,e)};Xe.prototype.toJSON=function(){return er(this)};Xe.prototype[Bt]=function(){const e=this;return{multiply:t=>Oe(e,t),toPrecision:t=>String(e)+0 .toPrecision(t).substr(1),toExponential:t=>String(e)+0 .toExponential(t).substr(1),toFixed:t=>String(e)+0 .toFixed(t).substr(1),toHex:()=>er(e.unsigned?e:hf(ff(e),!0),16)}};Xe.prototype.__isLong__;Object.defineProperty(Xe.prototype,"__isLong__",{value:!0});function qe(e){return(e&&e.__isLong__)===!0}var as={},cs={};function Tn(e,t){var n,r,o;return t?(e>>>=0,(o=0<=e&&e<256)&&(r=cs[e],r)?r:(n=W(e,(e|0)<0?-1:0,!0),o&&(cs[e]=n),n)):(e|=0,(o=-128<=e&&e<128)&&(r=as[e],r)?r:(n=W(e,e<0?-1:0,!1),o&&(as[e]=n),n))}function Ke(e,t){if(isNaN(e))return t?Mt:Je;if(t){if(e<0)return Mt;if(e>=ea)return tf}else{if(e<=-fs)return je;if(e+1>=fs)return ef}return e<0?de(Ke(-e,t)):W(e%bn|0,e/bn|0,t)}function W(e,t,n){return new Xe(e,t,n)}var Pr=Math.pow;function Yl(e,t,n){if(e.length===0)throw Error("empty string");if(e==="NaN"||e==="Infinity"||e==="+Infinity"||e==="-Infinity")return Je;if(typeof t=="number"?(n=t,t=!1):t=!!t,n=n||10,n<2||36<n)throw RangeError("radix");var r=e.indexOf("-");if(r>0)throw Error("interior hyphen");if(r===0)return de(Yl(e.substring(1),t,n));for(var o=Ke(Pr(n,8)),i=Je,s=0;s<e.length;s+=8){var l=Math.min(8,e.length-s),u=parseInt(e.substring(s,s+l),n);if(l<8){var c=Ke(Pr(n,l));i=Kt(Oe(i,c),Ke(u))}else i=Oe(i,o),i=Kt(i,Ke(u))}return i.unsigned=t,i}function Ht(e,t){return typeof e=="number"?Ke(e,t):typeof e=="string"?Yl(e,t):W(e.low,e.high,typeof t=="boolean"?t:e.unsigned)}var us=1<<16,qu=1<<24,bn=us*us,ea=bn*bn,fs=ea/2,ds=Tn(qu),Je=Tn(0),Mt=Tn(0,!0),Qn=Tn(1),Yu=Tn(1,!0),ps=Tn(-1),ef=W(-1,2147483647,!1),tf=W(-1,-1,!0),je=W(0,-2147483648,!1);function An(e){return e.unsigned?e.low>>>0:e.low}function Yn(e){return e.unsigned?(e.high>>>0)*bn+(e.low>>>0):e.high*bn+(e.low>>>0)}function er(e,t){if(t=t||10,t<2||36<t)throw RangeError("radix");if(Gt(e))return"0";if(Pe(e))if(Be(e,je)){var n=Ke(t),r=yt(e,n),o=vn(Oe(r,n),e);return er(r,t)+An(o).toString(t)}else return"-"+er(de(e),t);for(var i=Ke(Pr(t,6),e.unsigned),s=e,l="";;){var u=yt(s,i),c=An(vn(s,Oe(u,i)))>>>0,a=c.toString(t);if(s=u,Gt(s))return a+l;for(;a.length<6;)a="0"+a;l=""+a+l}}function Gt(e){return e.high===0&&e.low===0}function Pe(e){return!e.unsigned&&e.high<0}function hs(e){return(e.low&1)===1}function Be(e,t){return qe(t)||(t=Ht(t)),e.unsigned!==t.unsigned&&e.high>>>31===1&&t.high>>>31===1?!1:e.high===t.high&&e.low===t.low}function ms(e,t){return ur(e,t)<0}function yo(e,t){return ur(e,t)>0}function nf(e,t){return ur(e,t)>=0}function ur(e,t){if(qe(t)||(t=Ht(t)),Be(e,t))return 0;var n=Pe(e),r=Pe(t);return n&&!r?-1:!n&&r?1:e.unsigned?t.high>>>0>e.high>>>0||t.high===e.high&&t.low>>>0>e.low>>>0?-1:1:Pe(vn(e,t))?-1:1}function de(e){return!e.unsigned&&Be(e,je)?je:Kt(of(e),Qn)}function Kt(e,t){qe(t)||(t=Ht(t));var n=e.high>>>16,r=e.high&65535,o=e.low>>>16,i=e.low&65535,s=t.high>>>16,l=t.high&65535,u=t.low>>>16,c=t.low&65535,a=0,d=0,f=0,p=0;return p+=i+c,f+=p>>>16,p&=65535,f+=o+u,d+=f>>>16,f&=65535,d+=r+l,a+=d>>>16,d&=65535,a+=n+s,a&=65535,W(f<<16|p,a<<16|d,e.unsigned)}function vn(e,t){return qe(t)||(t=Ht(t)),Kt(e,de(t))}function Oe(e,t){if(Gt(e))return e.unsigned?Mt:Je;if(qe(t)||(t=Ht(t)),He){var n=He.mul(e.low,e.high,t.low,t.high);return W(n,He.get_high(),e.unsigned)}if(Gt(t))return e.unsigned?Mt:Je;if(Be(e,je))return hs(t)?je:Je;if(Be(t,je))return hs(e)?je:Je;if(Pe(e))return Pe(t)?Oe(de(e),de(t)):de(Oe(de(e),t));if(Pe(t))return de(Oe(e,de(t)));if(ms(e,ds)&&ms(t,ds))return Ke(Yn(e)*Yn(t),e.unsigned);var r=e.high>>>16,o=e.high&65535,i=e.low>>>16,s=e.low&65535,l=t.high>>>16,u=t.high&65535,c=t.low>>>16,a=t.low&65535,d=0,f=0,p=0,g=0;return g+=s*a,p+=g>>>16,g&=65535,p+=i*a,f+=p>>>16,p&=65535,p+=s*c,f+=p>>>16,p&=65535,f+=o*a,d+=f>>>16,f&=65535,f+=i*c,d+=f>>>16,f&=65535,f+=s*u,d+=f>>>16,f&=65535,d+=r*a+o*c+i*u+s*l,d&=65535,W(p<<16|g,d<<16|f,e.unsigned)}function yt(e,t){if(qe(t)||(t=Ht(t)),Gt(t))throw Error("division by zero");if(He){if(!e.unsigned&&e.high===-2147483648&&t.low===-1&&t.high===-1)return e;var n=(e.unsigned?He.div_u:He.div_s)(e.low,e.high,t.low,t.high);return W(n,He.get_high(),e.unsigned)}if(Gt(e))return e.unsigned?Mt:Je;var r,o,i;if(e.unsigned){if(t.unsigned||(t=uf(t)),yo(t,e))return Mt;if(yo(t,cf(e,1)))return Yu;i=Mt}else{if(Be(e,je)){if(Be(t,Qn)||Be(t,ps))return je;if(Be(t,je))return Qn;var s=af(e,1);return r=lf(yt(s,t),1),Be(r,Je)?Pe(t)?Qn:ps:(o=vn(e,Oe(t,r)),i=Kt(r,yt(o,t)),i)}else if(Be(t,je))return e.unsigned?Mt:Je;if(Pe(e))return Pe(t)?yt(de(e),de(t)):de(yt(de(e),t));if(Pe(t))return de(yt(e,de(t)));i=Je}for(o=e;nf(o,t);){r=Math.max(1,Math.floor(Yn(o)/Yn(t)));for(var l=Math.ceil(Math.log(r)/Math.LN2),u=l<=48?1:Pr(2,l-48),c=Ke(r),a=Oe(c,t);Pe(a)||yo(a,o);)r-=u,c=Ke(r,e.unsigned),a=Oe(c,t);Gt(c)&&(c=Qn),i=Kt(i,c),o=vn(o,a)}return i}function rf(e,t){if(qe(t)||(t=Ht(t)),He){var n=(e.unsigned?He.rem_u:He.rem_s)(e.low,e.high,t.low,t.high);return W(n,He.get_high(),e.unsigned)}return vn(e,Oe(yt(e,t),t))}function of(e){return W(~e.low,~e.high,e.unsigned)}function sf(e,t){return qe(t)||(t=Ht(t)),W(e.low&t.low,e.high&t.high,e.unsigned)}function lf(e,t){return qe(t)&&(t=An(t)),(t&=63)===0?e:t<32?W(e.low<<t,e.high<<t|e.low>>>32-t,e.unsigned):W(0,e.low<<t-32,e.unsigned)}function af(e,t){return qe(t)&&(t=An(t)),(t&=63)===0?e:t<32?W(e.low>>>t|e.high<<32-t,e.high>>t,e.unsigned):W(e.high>>t-32,e.high>=0?0:-1,e.unsigned)}function cf(e,t){if(qe(t)&&(t=An(t)),t&=63,t===0)return e;var n=e.high;if(t<32){var r=e.low;return W(r>>>t|n<<32-t,n>>>t,e.unsigned)}else return W(t===32?n:n>>>t-32,0,e.unsigned)}function uf(e){return e.unsigned?e:W(e.low,e.high,!0)}function ff(e,t){return t?df(e):pf(e)}function df(e){var t=e.high,n=e.low;return[n&255,n>>>8&255,n>>>16&255,n>>>24,t&255,t>>>8&255,t>>>16&255,t>>>24]}function pf(e){var t=e.high,n=e.low;return[t>>>24,t>>>16&255,t>>>8&255,t&255,n>>>24,n>>>16&255,n>>>8&255,n&255]}function hf(e,t,n){return n?mf(e,t):gf(e,t)}function mf(e,t){return new Xe(e[0]|e[1]<<8|e[2]<<16|e[3]<<24,e[4]|e[5]<<8|e[6]<<16|e[7]<<24,t)}function gf(e,t){return new Xe(e[4]<<24|e[5]<<16|e[6]<<8|e[7],e[0]<<24|e[1]<<16|e[2]<<8|e[3],t)}const Ve=Kt,Ue=Oe,ut=yt,wf=rf,_f=de,Rn=sf,qr=ur,pe=W,ft=An,yf=Yn;function ee(e,t,n){let r=e,o=0;switch(n){case 0:r=e<<24>>24,o=r;break;case 4:r=e<<24>>>24;break;case 1:r=e<<16>>16,o=r;break;case 5:r=e<<16>>>16;break;case 2:r=e>>0,o=r;break;case 6:r=e>>>0;break}return W(r,o>>31,t)}class bf{constructor(t,n,r,o){this.declaringType=t,this.tag=n,this.name=r,this.fields=o}}class N{constructor(t,n,r,o,i,s,l){this.fullname=t,this.generics=n,this.construct=r,this.parent=o,this.fields=i,this.cases=s,this.enumCases=l}toString(){return fe(this)}GetHashCode(){return ta(this)}Equals(t){return Vo(this,t)}}function It(e){return e.generics!=null?e.generics:[]}function ta(e){const t=Gl(e.fullname),n=It(e).map(ta);return Fn([t,...n])}function Vo(e,t){return e.fullname===""?t.fullname===""&&Oo(Hr(e),Hr(t),([n,r],[o,i])=>n===o&&Vo(r,i)):e.fullname===t.fullname&&Oo(It(e),It(t),Vo)}function tr(e,t,n,r){return new N(e,t,n,r)}function tn(e,t,n,r){return new N(e,t,n,void 0,r)}function Af(e,t,n,r){const o=new N(e,t,n,void 0,void 0,()=>{const i=n.prototype.cases();return r().map((s,l)=>new bf(o,l,i[l],s))});return o}function ii(e){return new N("Microsoft.FSharp.Core.FSharpOption`1",[e])}function Yr(e){return new N("Microsoft.FSharp.Collections.FSharpList`1",[e])}const vf=new N("System.Object");new N("Microsoft.FSharp.Core.Unit");new N("System.Char");const dt=new N("System.String");new N("System.Boolean");new N("System.SByte");new N("System.Byte");new N("System.Int16");new N("System.UInt16");const _e=new N("System.Int32");new N("System.UInt32");new N("System.Int64");new N("System.UInt64");new N("System.Int128");new N("System.UInt128");new N("System.IntPtr");new N("System.UIntPtr");new N("System.Half");new N("System.Single");new N("System.Double");new N("System.Decimal");new N("System.Numerics.BigInteger");function si(e){if(Array.isArray(e))return e[0];if(e instanceof N){const t=eo(e);if(t!=null)return si(t)+"[]";{const n=e.fullname.lastIndexOf(".");return n===-1?e.fullname:e.fullname.substr(n+1)}}else return e.name}function fe(e){const t=eo(e);return t!=null?fe(t)+"[]":e.generics==null||e.generics.length===0?e.fullname:e.fullname+"["+e.generics.map(n=>fe(n)).join(",")+"]"}function xf(e){return eo(e)!=null}function eo(e){var t;return e.fullname==="[]"&&((t=e.generics)===null||t===void 0?void 0:t.length)===1?e.generics[0]:void 0}function Ef(e){return e.generics!=null&&e.generics.length>0}function na(e){return e.enumCases!=null&&e.enumCases.length>0}function Cf(e){return e.generics==null?e:new N(e.fullname,e.generics.map(()=>vf))}function Sf(e){var t;return(t=e.generics)===null||t===void 0?void 0:t[0]}function cn(e){if(na(e)&&e.enumCases!=null)return e.enumCases.map(t=>t[1]);throw new Error(`${e.fullname} is not an enum type`)}function Df(e,t){if(e.enumCases!=null)if(typeof t=="string"){for(const n of e.enumCases)if(n[0]===t)return n;throw new Error(`'${t}' was not found in ${e.fullname}`)}else{for(const n of e.enumCases)if(n[1]===t)return n;return["",t]}else throw new Error(`${e.fullname} is not an enum type`)}function un(e,t){const n=parseInt(t,10);return Df(e,isNaN(n)?t:n)[1]}function Ff(e){if(e.cases!=null)return e.cases();throw new Error(`${e.fullname} is not an F# union type`)}function Hr(e){if(e.fields!=null)return e.fields();throw new Error(`${e.fullname} is not an F# record type`)}function If(e){if(ra(e)&&e.generics!=null)return e.generics;throw new Error(`${e.fullname} is not a tuple type`)}function kf(e){return e instanceof N?e.cases!=null:e instanceof te}function Mf(e){return e instanceof N?e.fields!=null:e instanceof le}function ra(e){return e.fullname.startsWith("System.Tuple")}function Tf(e){return e.fields==null?[]:e.fields}function gs(e,t){const n=(e.fields||[]).length;if(t.length!==n)throw new Error(`Expected an array of length ${n} but got ${t.length}`);return e.declaringType.construct!=null?new e.declaringType.construct(e.tag,t):{}}function Rf(e,t){const n=Hr(e);if(n.length!==t.length)throw new Error(`Expected an array of length ${n.length} but got ${t.length}`);return e.construct!=null?new e.construct(...t):n.reduce((r,[o,i],s)=>(r[o]=t[s],r),{})}function Nf(e,t){return e}function li(e){const t=e<0;e=Math.abs(e);const n=~~(e/36e5),r=e%36e5/6e4;return(t?"-":"+")+nt(n,2)+":"+nt(r,2)}function jr(e,t){const n=e.toISOString();return t==="first"?n.substring(0,n.indexOf("T")):n.substring(n.indexOf("T")+1,n.length-1)}function Of(e,t){if(t)return e.toISOString();{const n=e.kind==null?!0:e.kind===2;return nt(e.getFullYear(),4)+"-"+nt(e.getMonth()+1,2)+"-"+nt(e.getDate(),2)+"T"+nt(e.getHours(),2)+":"+nt(e.getMinutes(),2)+":"+nt(e.getSeconds(),2)+"."+nt(e.getMilliseconds(),3)+(n?li(e.getTimezoneOffset()*-6e4):"")}}function Bf(e,t){const n=e.toISOString();return n.substring(0,n.length-1)+li(t)}function oa(e,t,n){return t.replace(/(\w)\1*/g,r=>{let o=Number.NaN;switch(r.substring(0,1)){case"y":const i=n?e.getUTCFullYear():e.getFullYear();o=r.length<4?i%100:i;break;case"M":o=(n?e.getUTCMonth():e.getMonth())+1;break;case"d":o=n?e.getUTCDate():e.getDate();break;case"H":o=n?e.getUTCHours():e.getHours();break;case"h":const s=n?e.getUTCHours():e.getHours();o=s>12?s%12:s;break;case"m":o=n?e.getUTCMinutes():e.getMinutes();break;case"s":o=n?e.getUTCSeconds():e.getSeconds();break;case"f":o=n?e.getUTCMilliseconds():e.getMilliseconds();break}return Number.isNaN(o)?r:nt(o,r.length)})}function Pf(e,t){var n,r,o;const i=new Date(e.getTime()+((n=e.offset)!==null&&n!==void 0?n:0));if(typeof t!="string")return i.toISOString().replace(/\.\d+/,"").replace(/[A-Z]|\.\d+/g," ")+li((r=e.offset)!==null&&r!==void 0?r:0);if(t.length===1)switch(t){case"D":case"d":return jr(i,"first");case"T":case"t":return jr(i,"second");case"O":case"o":return Bf(i,(o=e.offset)!==null&&o!==void 0?o:0);default:throw new Error("Unrecognized Date print format")}else return oa(i,t,!0)}function Hf(e,t){const n=e.kind===1;if(typeof t!="string")return n?e.toUTCString():e.toLocaleString();if(t.length===1)switch(t){case"D":case"d":return n?jr(e,"first"):e.toLocaleDateString();case"T":case"t":return n?jr(e,"second"):e.toLocaleTimeString();case"O":case"o":return Of(e,n);default:throw new Error("Unrecognized Date print format")}else return oa(e,t,n)}function ia(e,t,n){return e.offset!=null?Pf(e,t):Hf(e,t)}function ai(e,t){const n=new Date(e);return n.kind=(t==null?0:t)|0,n}function jf(){return ai(-621355968e5,0)}function sa(e){function t(){throw new Error(`The string is not a valid Date: ${e}`)}(e==null||e.trim()==="")&&t(),e.length===10&&e[4]==="-"&&e[7]==="-"&&(e+="T00:00:00");let n=new Date(e),r=null;if(isNaN(n.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(o!=null){let i,s=0;if(o[2]!=null){const l=o[2].split(":");s=parseInt(l[0],10)*3600+parseInt(l[1]||"0",10)*60+parseFloat(l[2]||"0"),o[3]!=null&&o[3].toUpperCase()==="PM"&&(s+=720)}if(o[4]!=null){if(o[1]!=null)i=new Date(o[1]+" UTC");else{const l=new Date;i=new Date(l.getUTCFullYear()+"/"+(l.getUTCMonth()+1)+"/"+l.getUTCDate())}if(o[4]==="Z")r="Z";else{let l=parseInt(o[5],10)*60+parseInt(o[6]||"0",10);o[4][0]==="-"&&(l*=-1),r=l,s-=l*60}}else if(o[1]!=null)i=new Date(o[1]);else{const l=new Date;i=new Date(l.getFullYear()+"/"+(l.getMonth()+1)+"/"+l.getDate())}n=new Date(i.getTime()+s*1e3),n=new Date(n.getTime()+(n.getTimezoneOffset()-i.getTimezoneOffset())*6e4)}else t();isNaN(n.getTime())&&t()}return[n,r]}function Vf(e,t=!1){const[n,r]=sa(e),o=r!=null?t&&r==="Z"?1:2:0;return ai(n.getTime(),o)}function Uf(e,t){try{return t.contents=Vf(e),!0}catch{return!1}}function Lf(e){return e.kind===1?e:ai(e.getTime(),1)}function zf(e,t=0){if((t&-284)!==0)throw new Error("RegexOptions only supports: IgnoreCase, Multiline, Compiled, Singleline and ECMAScript");let n="gu";return n+=t&1?"i":"",n+=t&2?"m":"",n+=t&16?"s":"",new RegExp(e,n)}function ci(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function ws(e,t,n=0){if(t==null)throw new Error("Input cannot ve null");if(!e.global)throw new Error("Non-global RegExp");e.lastIndex=n;const r=[];let o,i=-1;for(;(o=e.exec(t))!=null;)o.index===i?e.lastIndex++:(i=o.index,r.push(o));return r}function Wf(e,t,n,r,o=0){function i(){let s=arguments[0];if(r){r--;const l=[],u=arguments.length,c=typeof arguments[u-1]!="string";let a=c?u-3:u-2;for(let d=0;d<a;d++)l.push(arguments[d]);l.index=arguments[a++],l.input=arguments[a++],c&&(l.groups=arguments[a]),s=n(l)}return s}if(typeof e=="string"){const s=e;e=zf(t,r!=null?r:0),t=s,r=void 0}if(typeof n=="function")return r=r==null?-1:r,t.substring(0,o)+t.substring(o).replace(e,i);if(n=n.replace(/\$0/g,s=>"$&").replace(/\${([^}]+)}/g,"$<$1>"),r!=null){let s;const l=t.substring(o),u=ws(e,l),c=ws.length>r?(s=u[r-1],l.substring(0,s.index+s[0].length)):l;return t.substring(0,o)+c.replace(e,n)+t.substring(o+c.length)}else return t.replace(e,n)}const Ln=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g,Gf=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function la(e,t){return Bu(e,t)<0}function nn(e){return{input:e,cont:Kf(e)}}function aa(e,t){return typeof t=="string"?e(t):t.cont(e)}function Nn(e){return aa(t=>t,e)}function Qf(e){return aa(t=>{throw new Error(t)},e)}function Zf(e,t,n,r,o){let i="";if(t=t||"",o=o||"",$l(e))switch(o.toLowerCase()!=="x"&&(la(e,0)?(e=Ho(e,-1),i="-"):t.indexOf(" ")>=0?i=" ":t.indexOf("+")>=0&&(i="+")),r=r==null?null:parseInt(r,10),o){case"f":case"F":r=r!=null?r:6,e=Sr(e,r);break;case"g":case"G":e=r!=null?Nr(e,r):Nr(e);break;case"e":case"E":e=r!=null?Or(e,r):Or(e);break;case"x":e=Br(e);break;case"X":e=Br(e).toUpperCase();break;default:e=String(e);break}else e instanceof Date?e=ia(e):e=Ce(e);if(n=typeof n=="number"?n:parseInt(n,10),isNaN(n))e=i+e;else{const s=t.indexOf("0")>=0,l=t.indexOf("-")>=0,u=l||!s?" ":"0";u==="0"?(e=nr(e,n-i.length,u,l),e=i+e):e=nr(i+e,n,u,l)}return e}function ca(e,t,n,r="",o=-1){return(...i)=>{let s=r;const l=t.slice(),u=n.slice();for(const c of i){const[,,a,d,f,p]=u[0];let g=d;if(o>=0)g=o,o=-1;else if(g==="*"){if(c<0)throw new Error("Non-negative number required");o=c;continue}s+=l[0],s+=Zf(c,a,g,f,p),l.splice(0,1),u.splice(0,1)}return u.length===0?(s+=l[0],e(s)):ca(e,l,u,s,o)}}function Kf(e){return t=>{Ln.lastIndex=0;const n=[],r=[];let o=0,i=Ln.exec(e);for(;i;){const s=i.index+(i[1]||"").length;n.push(e.substring(o,s).replace(/%%/g,"%")),r.push(i),o=Ln.lastIndex,Ln.lastIndex-=1,i=Ln.exec(e)}return n.length===0?t(e.replace(/%%/g,"%")):(n.push(e.substring(o).replace(/%%/g,"%")),ca(t,n,r))}}function Jf(e,...t){let n;return typeof e=="object"?(n=String(t[0]),t.shift()):n=e,n.replace(Gf,(r,o,i,s,l,u)=>{if(o<0||o>=t.length)throw new Error("Index must be greater or equal to zero and less than the arguments' length.");let c=t[o];if($l(c))switch(l=l==null?null:parseInt(l,10),s){case"f":case"F":l=l!=null?l:2,c=Sr(c,l);break;case"g":case"G":c=l!=null?Nr(c,l):Nr(c);break;case"e":case"E":c=l!=null?Or(c,l):Or(c);break;case"p":case"P":l=l!=null?l:2,c=Sr(Ho(c,100),l)+" %";break;case"d":case"D":c=l!=null?bo(String(c),l,"0"):String(c);break;case"x":case"X":c=l!=null?bo(Br(c),l,"0"):Br(c),s==="X"&&(c=c.toUpperCase());break;default:if(u){let a="";c=u.replace(/([0#,]+)(\.[0#]+)?/,(d,f,p)=>{la(c,0)&&(c=Ho(c,-1),a="-"),p=p==null?"":p.substring(1),c=Sr(c,Math.max(p.length,0));let[g,_]=c.split(".");_||(_="");const w=f.replace(/,/g,"").replace(/^#+/,"").length;g=bo(g,w,"0");const b=p.replace(/#+$/,"").length;if(b>_.length?_=Xf(_,b,"0"):b<_.length&&(_=_.substring(0,b)+_.substring(b).replace(/0+$/,"")),f.indexOf(",")>0){const I=g.length%3,ne=Math.floor(g.length/3);let oe=I>0?g.substr(0,I)+(ne>0?",":""):"";for(let G=0;G<ne;G++)oe+=g.substr(I+G*3,3)+(G<ne-1?",":"");g=oe}return _.length>0?g+"."+_:g}),c=a+c}}else c instanceof Date?c=ia(c,u||s):c=Ce(c);return i=parseInt((i||" ").substring(1),10),isNaN(i)||(c=nr(String(c),Math.abs(i)," ",i<0)),c})}function $f(e){return typeof e!="string"||e.length===0}function St(e,t){return Array.isArray(t)?t.join(e):Array.from(t).join(e)}function nr(e,t,n,r){n=n||" ",t=t-e.length;for(let o=0;o<t;o++)e=r?e+n:n+e;return e}function bo(e,t,n){return nr(e,t,n)}function Xf(e,t,n){return nr(e,t,n,!0)}function qf(e,t,n){return e.replace(new RegExp(ci(t),"g"),n)}function Yf(e,t,n,r){if(n=typeof n=="number"?n:void 0,r=typeof r=="number"?r:0,n&&n<0)throw new Error("Count cannot be less than zero");if(n===0)return[];const o=(r&1)===1,i=(r&2)===2;t=t||[],t=t.filter(a=>a).map(ci),t=t.length>0?t:["\\s"];const s=[],l=new RegExp(t.join("|"),"g");let u=!0,c=0;do{const a=l.exec(e);if(a===null){const d=i?e.substring(c).trim():e.substring(c);(!o||d.length>0)&&s.push(d),u=!1}else{const d=i?e.substring(c,a.index).trim():e.substring(c,a.index);(!o||d.length>0)&&(n!=null&&s.length+1===n?(s.push(i?e.substring(c).trim():e.substring(c)),u=!1):s.push(d)),c=l.lastIndex}}while(u);return s}function ed(e,...t){if(t.length===0)return e.trim();const n="["+ci(t.join(""))+"]+";return e.replace(new RegExp("^"+n),"").replace(new RegExp(n+"$"),"")}const ua="Collection was empty.",td="An index satisfying the predicate was not found in the collection.";function xe(e){return e==null||e instanceof _n?new _n(e):e}function nd(e){return e==null?[]:[$(e)]}function fa(e,t){return e!=null?$(e):t}function ui(e,t){return typeof e=="function"?new e(t):new Array(t)}function rd(){throw new Error("Arrays had different lengths")}function fi(e,t,n,r){const o=t|0;return e.fill(r,o,o+n)}function xn(e,t,n){const r=t.length|0,o=ui(n,r);for(let i=0;i<=r-1;i++)o[i]=e(t[i]);return o}function od(e,t){const n=ui(t,1);return n[0]=e,n}function On(e,t,n){if(e<0)throw new Error("The input must be non-negative\\nParameter name: count");const r=ui(n,e);for(let o=0;o<=e-1;o++)r[o]=t(o);return r}function id(e){return e.slice()}function sd(e,t){return t.find(e)}function ld(e,t,n){const r=[];for(let o=0;o<=t.length-1;o++){const i=e(t[o]);if(i!=null){const s=$(i);r.push(s)}}return it(n,Et())?r:xn(o=>o,r,n)}function di(e,t,n){return n.reduce(e,t)}function ad(e,t,n){return t.reduceRight((r,o)=>e(o,r),n)}function cd(e,t,n,r){let o=r;t.length!==n.length&&rd();const i=t.length|0;for(let s=1;s<=i;s++)o=e(s-1,t[i-s],n[i-s],o);return o}function ud(e,t,n,r){return cd((o,i,s,l)=>e(i,s,l),t,n,r)}class pt extends le{constructor(t,n){super(),this.head=t,this.tail=n}toString(){return"["+St("; ",this)+"]"}Equals(t){const n=this;return n===t?!0:((o,i)=>{e:for(;;){const s=o,l=i,u=s.tail,c=l.tail;if(u!=null)if(c!=null){const a=u,d=c;if(it(s.head,l.head)){o=a,i=d;continue e}else return!1}else return!1;else return c==null}})(n,t)}GetHashCode(){return((r,o,i)=>{e:for(;;){const s=r,l=o,u=i,c=u.tail;if(c!=null){const a=c;if(s>18)return l|0;r=s+1,o=(l<<1)+Ct(u.head)+631*s,i=a;continue e}else return l|0}})(0,0,this)|0}toJSON(){const t=this;return Array.from(t)}CompareTo(t){return((o,i)=>{e:for(;;){const s=o,l=i,u=s.tail,c=l.tail;if(u!=null)if(c!=null){const a=u,d=c,f=ct(s.head,l.head)|0;if(f===0){o=a,i=d;continue e}else return f|0}else return 1;else return c!=null?-1:0}})(this,t)|0}GetEnumerator(){return dd(this)}[Symbol.iterator](){return $r(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return Ee(this)}}class fd{constructor(t){this.xs=t,this.it=this.xs,this.current=Et()}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current}"System.Collections.IEnumerator.get_Current"(){return this.current}"System.Collections.IEnumerator.MoveNext"(){const t=this,n=t.it.tail;if(n!=null){const r=n;return t.current=t.it.head,t.it=r,!0}else return!1}"System.Collections.IEnumerator.Reset"(){const t=this;t.it=t.xs,t.current=Et()}Dispose(){}}function dd(e){return new fd(e)}function ht(){return new pt(Et(),void 0)}function fr(e,t){return new pt(e,t)}function to(e){return e.tail==null}function da(e){return((n,r)=>{e:for(;;){const o=n,s=r.tail;if(s!=null){n=o+1,r=s;continue e}else return o|0}})(0,e)|0}function pi(e){if(e.tail!=null)return e.head;throw new Error(ua+"\\nParameter name: list")}function rn(e){const t=e.tail;if(t!=null)return t;throw new Error(ua+"\\nParameter name: list")}function pd(){throw new Error(td)}function Le(){return ht()}function Re(e,t){return fr(e,t)}function ve(e){return fr(e,ht())}function R(e){return to(e)}function hd(e){return da(e)}function x(e){return pi(e)}function T(e){return rn(e)}function no(e){const t=da(e)|0,n=fi(new Array(t),0,t,null);return((o,i)=>{e:for(;;){const s=o,l=i;if(!to(l)){n[s]=pi(l),o=s+1,i=rn(l);continue e}break}})(0,e),n}function jt(e,t,n){let r=t,o=n;for(;!to(o);)r=e(r,x(o)),o=rn(o);return r}function pa(e){return jt((t,n)=>fr(n,t),ht(),e)}function ha(e,t){jt((n,r)=>{e(r)},void 0,t)}function Q(e,t){let n=t;for(let r=e.length-1;r>=0;r--)n=fr(e[r],n);return n}function S(e){return Q(e,ht())}function md(e){let t,n;if(at(e))return S(e);if(e instanceof pt)return e;{const r=ht();let o=r;const i=Ee(e);try{for(;i["System.Collections.IEnumerator.MoveNext"]();){const u=i["System.Collections.Generic.IEnumerator`1.get_Current"]();o=(t=o,n=new pt(u,void 0),t.tail=n,n)}}finally{J(i)}const s=o,l=ht();return s.tail=l,rn(r)}}function ma(e){const t=ht();let n=t;const r=s=>{n=jt((l,u)=>{const c=new pt(u,void 0);return l.tail=c,c},n,s)};if(at(e))e.forEach(r);else if(e instanceof pt)ha(r,e);else{const s=Ee(e);try{for(;s["System.Collections.IEnumerator.MoveNext"]();)r(s["System.Collections.Generic.IEnumerator`1.get_Current"]())}finally{J(s)}}const o=n,i=ht();return o.tail=i,rn(t)}function ro(e,t){return jt((n,r)=>fr(r,n),t,pa(e))}function Vr(e,t){const n=ht(),r=jt((i,s)=>{const l=new pt(e(s),void 0);return i.tail=l,l},n,t),o=ht();return r.tail=o,rn(n)}function gd(e,t){return(r=>{e:for(;;){const o=r;if(to(o))return;{const i=e(pi(o));if(i==null){r=rn(o);continue e}else return i}}})(t)}function wd(e,t){return gd(n=>e(n)?xe(n):void 0,t)}function _d(e,t){const n=wd(e,t);return n==null?pd():$(n)}class h extends te{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Ok","Error"]}}function Dt(e,t){return t.tag===0?new h(0,[e(t.fields[0])]):new h(1,[t.fields[0]])}class ga extends te{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Choice1Of2","Choice2Of2"]}}function yd(e){return new ga(0,[e])}function bd(e){return new ga(1,[e])}function Ad(e){throw new Error(e)}const vd="Enumeration already finished.",xd="Enumeration has not started. Call MoveNext.",wa="The input sequence has an insufficient number of elements.",Ed="Reset is not supported on this enumerator.";function Cd(){throw new Error(Ed)}function hi(){throw new Error(xd)}function Uo(){throw new Error(vd)}class Sd{constructor(t){this.f=t}toString(){const t=this,n=4;let r=0,o="seq [";const i=Ee(t);try{for(;r<n&&i["System.Collections.IEnumerator.MoveNext"]();)r>0&&(o=o+"; "),o=o+Ce(i["System.Collections.Generic.IEnumerator`1.get_Current"]()),r=r+1|0;return r===n&&(o=o+"; ..."),o+"]"}finally{J(i)}}GetEnumerator(){return this.f()}[Symbol.iterator](){return $r(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}function Dd(e){return new Sd(e)}class Fd{constructor(t,n,r){this.current=t,this.next=n,this.dispose=r}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current()}"System.Collections.IEnumerator.get_Current"(){return this.current()}"System.Collections.IEnumerator.MoveNext"(){return this.next()}"System.Collections.IEnumerator.Reset"(){Cd()}Dispose(){this.dispose()}}function oo(e,t,n){return new Fd(e,t,n)}function Id(e){let t,n,r=!1,o=!1,i;const s=()=>{if(o=!0,n!=null){const l=n;try{J(l)}finally{n=void 0}}if(t!=null){const l=t;try{J(l)}finally{t=void 0}}};return oo(()=>(r?o&&Uo():hi(),i!=null?$(i):Uo()),()=>{let l;if(r||(r=!0),o)return!1;{let u;for(;u==null;){const c=t,a=n;if(c!=null)if(a!=null){const d=a;if(d["System.Collections.IEnumerator.MoveNext"]())i=xe(d["System.Collections.Generic.IEnumerator`1.get_Current"]()),u=!0;else try{J(d)}finally{n=void 0}}else{const d=c;d["System.Collections.IEnumerator.MoveNext"]()?n=(l=d["System.Collections.Generic.IEnumerator`1.get_Current"](),Ee(l)):(s(),u=!1)}else t=Ee(e)}return $(u)}},()=>{o||s()})}function kd(e,t){return oo(()=>t["System.Collections.Generic.IEnumerator`1.get_Current"](),()=>t["System.Collections.IEnumerator.MoveNext"](),()=>{try{J(t)}finally{e()}})}function _a(e,t,n){let r=!1,o,i=xe(e());const s=()=>{if(i!=null){const u=$(i);try{n(u)}finally{i=void 0}}},l=()=>{try{s()}finally{o=void 0}};return oo(()=>(r||hi(),o!=null?$(o):Uo()),()=>{if(r||(r=!0),i!=null){const u=$(i);let c;try{c=t(u)}catch(a){throw l(),a}return c!=null?(o=c,!0):(l(),!1)}else return!1},s)}function Md(e,t){let n,r=t;return oo(()=>{if(n!=null){const o=n[0];return n[1],o}else return hi()},()=>(n=e(r),n!=null?(n[0],r=n[1],!0):!1),()=>{})}function Td(e,t){t==null&&Ad(e)}function Bn(e){return Dd(e)}function Jt(e){return Td("source",e),Ee(e)}function M(e){return Bn(()=>Ee(e()))}function ya(e){return Bn(()=>Id(e))}function Rd(e,t){return Bn(()=>Md(e,t))}function ba(){return M(()=>new Array(0))}function k(e){return M(()=>od(e,null))}function lt(e){return at(e)?S(e):e instanceof pt?e:md(e)}function Nd(e,t,n){return Bn(()=>_a(e,t,n))}function Od(e,t,n){return Bn(()=>{let r=-1;return _a(e,o=>(r=r+1|0,t(r,o)),n)})}function se(e,t){return ya([e,t])}function Bd(e,t,n){const r=Jt(t);try{const o=Jt(n);try{let i=0,s=r["System.Collections.IEnumerator.MoveNext"](),l=o["System.Collections.IEnumerator.MoveNext"]();for(;i===0&&s&&l;)i=e(r["System.Collections.Generic.IEnumerator`1.get_Current"](),o["System.Collections.Generic.IEnumerator`1.get_Current"]())|0,i===0&&(s=r["System.Collections.IEnumerator.MoveNext"](),l=o["System.Collections.IEnumerator.MoveNext"]());return(i!==0?i:s?1:l?-1:0)|0}finally{J(o)}}finally{J(r)}}function fn(e,t,n){const r=Jt(t);try{let o=!1;for(;!o&&r["System.Collections.IEnumerator.MoveNext"]();)o=n.Equals(e,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return o}finally{J(r)}}function Aa(e,t,n){const r=Jt(n);try{let o=t;for(;r["System.Collections.IEnumerator.MoveNext"]();)o=e(o,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return o}finally{J(r)}}function mi(e,t){Aa((n,r)=>{e(r)},void 0,t)}function Ne(e,t){return Nd(()=>Jt(t),n=>n["System.Collections.IEnumerator.MoveNext"]()?xe(e(n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{J(n)})}function Pd(e,t){return Bn(()=>{const n=Jt(t);try{for(let r=1;r<=e;r++)if(!n["System.Collections.IEnumerator.MoveNext"]())throw new Error(wa+"\\nParameter name: source");return kd(()=>{},n)}catch(r){throw J(n),r}})}function Hd(e,t){return Od(()=>Jt(t),(n,r)=>{if(n<e){if(r["System.Collections.IEnumerator.MoveNext"]())return xe(r["System.Collections.Generic.IEnumerator`1.get_Current"]());throw new Error(wa+"\\nParameter name: source")}else return},n=>{J(n)})}function va(e,t){return M(()=>ya(Ne(e,t)))}class xa{constructor(t=!1){this._id=0,this._cancelled=t,this._listeners=new Map}get isCancelled(){return this._cancelled}cancel(){if(!this._cancelled){this._cancelled=!0;for(const[,t]of this._listeners)t()}}addListener(t){const n=this._id;return this._listeners.set(this._id++,t),n}removeListener(t){return this._listeners.delete(t)}register(t,n){const r=this,o=this.addListener(n==null?t:()=>t(n));return{Dispose(){r.removeListener(o)}}}Dispose(){}}class io extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,io.prototype)}}class gi{static get maxTrampolineCallCount(){return 2e3}constructor(){this.callCount=0}incrementAndCheck(){return this.callCount++>gi.maxTrampolineCallCount}hijack(t){this.callCount=0,setTimeout(t,0)}}function At(e){return t=>{if(t.cancelToken.isCancelled)t.onCancel(new io);else if(t.trampoline.incrementAndCheck())t.trampoline.hijack(()=>{try{e(t)}catch(n){t.onError(Rr(n))}});else try{e(t)}catch(n){t.onError(Rr(n))}}}function jd(e,t){return At(n=>{e({onSuccess:r=>{try{t(r)(n)}catch(o){n.onError(Rr(o))}},onError:n.onError,onCancel:n.onCancel,cancelToken:n.cancelToken,trampoline:n.trampoline})})}function Vd(e){return At(t=>t.onSuccess(e))}class Ud{Bind(t,n){return jd(t,n)}Combine(t,n){return this.Bind(t,()=>n)}Delay(t){return At(n=>t()(n))}For(t,n){const r=t[Symbol.iterator]();let o=r.next();return this.While(()=>!o.done,this.Delay(()=>{const i=n(o.value);return o=r.next(),i}))}Return(t){return Vd(t)}ReturnFrom(t){return t}TryFinally(t,n){return At(r=>{t({onSuccess:o=>{n(),r.onSuccess(o)},onError:o=>{n(),r.onError(o)},onCancel:o=>{n(),r.onCancel(o)},cancelToken:r.cancelToken,trampoline:r.trampoline})})}TryWith(t,n){return At(r=>{t({onSuccess:r.onSuccess,onCancel:r.onCancel,cancelToken:r.cancelToken,trampoline:r.trampoline,onError:o=>{try{n(o)(r)}catch(i){r.onError(Rr(i))}}})})}Using(t,n){return this.TryFinally(n(t),()=>t.Dispose())}While(t,n){return t()?this.Bind(n,()=>this.While(t,n)):this.Return(void 0)}Zero(){return At(t=>t.onSuccess(void 0))}}const F=new Ud;class Ea extends te{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["ImportId"]}}function Ld(){return new Ea(0,[1])}(()=>{const e=Ld();return t=>jt((n,r)=>new Ea(0,[1+Bo(yn,n.fields[0],r.fields[0])]),e,t)})();class zd extends le{constructor(t,n,r,o,i,s,l,u){super(),this.ImportId=t|0,this.User=n,this.Filename=r,this.NumberOfRecords=o|0,this.CompletedSuccessfully=i|0,this.CompletedFailed=s|0,this.NextRow=l,this.StartTime=u}}function Wd(){return tn("Basic.Profile.Domain.Import.Api.Admin.Read.ActiveImportDto",[],zd,()=>[["ImportId",_e],["User",dt],["Filename",dt],["NumberOfRecords",_e],["CompletedSuccessfully",_e],["CompletedFailed",_e],["NextRow",ii(_e)],["StartTime",tr("System.DateTime")]])}class Gd extends le{constructor(t,n,r,o,i,s,l,u){super(),this.ImportId=t|0,this.User=n,this.Filename=r,this.NumberOfRecords=o|0,this.Succeeded=i|0,this.Failed=s|0,this.StartTime=l,this.StopTime=u}}function Qd(){return tn("Basic.Profile.Domain.Import.Api.Admin.Read.ImportHistoryDto",[],Gd,()=>[["ImportId",_e],["User",dt],["Filename",dt],["NumberOfRecords",_e],["Succeeded",_e],["Failed",_e],["StartTime",tr("System.DateTime")],["StopTime",tr("System.DateTime")]])}class Ca extends le{constructor(t,n){super(),this.ActiveImport=t,this.ImportHistory=n}}function Sa(){return tn("Basic.Profile.Domain.Import.Api.Admin.Read.AccountImportsDto",[],Ca,()=>[["ActiveImport",ii(Wd())],["ImportHistory",Yr(Qd())]])}new Ca(void 0,Le());class Zd extends le{constructor(t,n){super(),this.Column=t,this.Message=n}}function Kd(){return tn("Basic.Profile.Domain.Import.Api.Admin.Read.FieldError",[],Zd,()=>[["Column",dt],["Message",dt]])}class Jd extends le{constructor(t,n){super(),this.RowId=t|0,this.FieldErrors=n}}function $d(){return tn("Basic.Profile.Domain.Import.Api.Admin.Read.RowValidationError",[],Jd,()=>[["RowId",_e],["FieldErrors",Yr(Kd())]])}class Xd extends te{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["InvalidFileContentType","InvalidFileName","ExceedsMaxRows","FileFormatError","NoData","NoFile","MultipleFiles","RowValidationErrors","UnknownAccount"]}}function qd(){return Af("Basic.Profile.Domain.Import.Api.Admin.Read.PostImportError",[],Xd,()=>[[],[],[],[["Item",dt]],[],[],[],[["Item",Yr($d())]],[]])}class Yd extends le{constructor(t,n,r,o,i,s,l,u,c,a){super(),this.ImportId=t|0,this.User=n,this.Filename=r,this.TotalRecordCount=o|0,this.SucceededRecordCount=i|0,this.FailedRecordCount=s|0,this.FailedRecords=l,this.RemainingRecordCount=u|0,this.StartTime=c,this.StopTime=a}}function ep(){return tn("Basic.Profile.Domain.Import.Api.Admin.Read.ImportDto",[],Yd,()=>[["ImportId",_e],["User",dt],["Filename",dt],["TotalRecordCount",_e],["SucceededRecordCount",_e],["FailedRecordCount",_e],["FailedRecords",Yr(np())],["RemainingRecordCount",_e],["StartTime",tr("System.DateTime")],["StopTime",ii(tr("System.DateTime"))]])}class tp extends le{constructor(t,n){super(),this.RowId=t|0,this.Reason=n}}function np(){return tn("Basic.Profile.Domain.Import.Api.Admin.Read.FailedImportRecordDto",[],tp,()=>[["RowId",_e],["Reason",dt]])}class rp{constructor(){}}function op(){return new rp}function wi(e,t){return F.Delay(t)}const _i=op();function Ao(e){}function ip(e){const t=new xa(typeof e=="boolean"?e:!1);return typeof e=="number"&&setTimeout(()=>{t.cancel()},e),t}function sp(e){e.cancel()}const lp=new xa;function ap(e){return At(t=>{e({onSuccess:n=>t.onSuccess(yd(n)),onError:n=>t.onSuccess(bd(n)),onCancel:t.onCancel,cancelToken:t.cancelToken,trampoline:t.trampoline})})}function cp(e){return At(t=>e([t.onSuccess,t.onError,t.onCancel]))}function up(e){return At(t=>{let n;const r=setTimeout(()=>{t.cancelToken.removeListener(n),t.onSuccess(void 0)},e);n=t.cancelToken.addListener(()=>{clearTimeout(r),t.onCancel(new io)})})}function fp(e,t){return dp(e,t)}function Da(e,t){return fp(e,t)}function dp(e,t,n,r,o){typeof t!="function"&&(o=t,t=void 0);const i=new gi;e({onSuccess:t||Ao,onError:n||Ao,onCancel:r||Ao,cancelToken:o||lp,trampoline:i})}class so extends te{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class pp extends te{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Header"]}}class Fa extends te{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Empty","Text","Binary","Form"]}}class dr extends le{constructor(t,n,r,o,i,s,l,u){super(),this.url=t,this.method=n,this.headers=r,this.withCredentials=o,this.overridenMimeType=i,this.overridenResponseType=s,this.timeout=l,this.content=u}}class dn extends te{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class Ia extends le{constructor(t,n,r,o,i,s){super(),this.statusCode=t|0,this.responseText=n,this.responseType=r,this.responseUrl=o,this.responseHeaders=i,this.content=s}}class ka{constructor(t,n){this.k=t,this.v=n}}function rr(e,t){return new ka(e,t)}function re(e){return e.k}function be(e){return e.v}class Y extends ka{constructor(t,n,r,o,i){super(t,n),this.left=r,this.right=o,this.h=i|0}}function Jn(e,t,n,r,o){return new Y(e,t,n,r,o)}function ge(e){return e.left}function we(e){return e.right}function Tt(e){return e.h}function Ma(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=r;if(o instanceof Y){e=Ma(n+1,ge(o)),t=we(o);continue e}else return n+1|0}else return n|0}}function hp(e){return Ma(0,e)}function Ge(e,t,n,r){let o;const i=e;if(i!=null){const c=i;o=c instanceof Y?Tt(c):1}else o=0;let s;const l=r;if(l!=null){const c=l;s=c instanceof Y?Tt(c):1}else s=0;const u=(o<s?s:o)|0;return u===0?rr(t,n):Jn(t,n,e,r,u+1)}function _s(e,t,n,r){let o,i,s,l,u;const c=e;if(c!=null){const f=c;u=f instanceof Y?Tt(f):1}else u=0;let a;const d=r;if(d!=null){const f=d;a=f instanceof Y?Tt(f):1}else a=0;if(a>u+2){const f=$(r);if(f instanceof Y)if(o=ge(f),(o!=null?(i=o,i instanceof Y?Tt(i):1):0)>u+1){const p=$(ge(f));if(p instanceof Y)return Ge(Ge(e,t,n,ge(p)),re(p),be(p),Ge(we(p),re(f),be(f),we(f)));throw new Error("internal error: Map.rebalance")}else return Ge(Ge(e,t,n,ge(f)),re(f),be(f),we(f));else throw new Error("internal error: Map.rebalance")}else if(u>a+2){const f=$(e);if(f instanceof Y)if(s=we(f),(s!=null?(l=s,l instanceof Y?Tt(l):1):0)>a+1){const p=$(we(f));if(p instanceof Y)return Ge(Ge(ge(f),re(f),be(f),ge(p)),re(p),be(p),Ge(we(p),t,n,r));throw new Error("internal error: Map.rebalance")}else return Ge(ge(f),re(f),be(f),Ge(we(f),t,n,r));else throw new Error("internal error: Map.rebalance")}else return Ge(e,t,n,r)}function En(e,t,n,r){if(r!=null){const o=r,i=e.Compare(t,re(o))|0;return o instanceof Y?i<0?_s(En(e,t,n,ge(o)),re(o),be(o),we(o)):i===0?Jn(t,n,ge(o),we(o),Tt(o)):_s(ge(o),re(o),be(o),En(e,t,n,we(o))):i<0?Jn(t,n,void 0,r,2):i===0?rr(t,n):Jn(t,n,r,void 0,2)}else return rr(t,n)}function Ta(e,t,n){e:for(;;){const r=e,o=t,i=n;if(i!=null){const s=i,l=r.Compare(o,re(s))|0;if(l===0)return xe(be(s));if(s instanceof Y){e=r,t=o,n=l<0?ge(s):we(s);continue e}else return}else return}}function mp(e,t,n){const r=Ta(e,t,n);if(r==null)throw new Error;return $(r)}function gp(e,t,n){e:for(;;){const r=e,o=t,i=n;if(i!=null){const s=i,l=r.Compare(o,re(s))|0;if(s instanceof Y)if(l<0){e=r,t=o,n=ge(s);continue e}else{if(l===0)return!0;e=r,t=o,n=we(s);continue e}else return l===0}else return!1}}function Ra(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=r;if(o instanceof Y){Ra(n,ge(o)),n(re(o),be(o)),e=n,t=we(o);continue e}else n(re(o),be(o))}break}}function wp(e,t){Ra(e,t)}function Lo(e,t){if(t!=null){const n=t;if(n instanceof Y){const r=Lo(e,ge(n)),o=e(re(n),be(n)),i=Lo(e,we(n));return Jn(re(n),o,r,i,Tt(n))}else return rr(re(n),e(re(n),be(n)))}else return void 0}function _p(e,t){return Lo(e,t)}function yp(e,t,n){let r=n;wp((o,i)=>{t[r]=[o,i],r=r+1|0},e)}function bp(e,t){return jt((n,r)=>En(e,r[0],r[1],n),void 0,t)}function Ap(e,t,n){e:for(;;){const r=e,o=t,i=n;if(i["System.Collections.IEnumerator.MoveNext"]()){const s=i["System.Collections.Generic.IEnumerator`1.get_Current"]();e=r,t=En(r,s[0],s[1],o),n=i;continue e}else return o}}function vp(e,t){let n=void 0;for(let r=0;r<=t.length-1;r++){const o=t[r];n=En(e,o[0],o[1],n)}return n}function Na(e,t){if(at(t))return vp(e,t);if(t instanceof pt)return bp(e,t);{const n=Ee(t);try{return Ap(e,void 0,n)}finally{J(n)}}}class xp extends le{constructor(t,n){super(),this.stack=t,this.started=n}}function Oa(e){e:for(;;){const t=e;if(R(t))return Le();{const n=T(t),r=x(t);if(r!=null){const o=r;if(o instanceof Y){e=Q([ge(o),rr(re(o),be(o)),we(o)],n);continue e}else return t}else{e=n;continue e}}}}function ys(e){return new xp(Oa(ve(e)),!1)}function Ep(){throw new Error("enumeration not started")}function Cp(){throw new Error("enumeration already finished")}function bs(e){if(e.started){const t=e.stack;if(R(t))return Cp();if(x(t)!=null){const n=x(t);if(n instanceof Y)throw new Error("Please report error: Map iterator, unexpected stack for current");return[re(n),be(n)]}else throw new Error("Please report error: Map iterator, unexpected stack for current")}else return Ep()}function Sp(e){if(e.started){const t=e.stack;if(R(t))return!1;if(x(t)!=null){if(x(t)instanceof Y)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=Oa(T(t)),!R(e.stack)}else throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}else return e.started=!0,!R(e.stack)}function As(e){let t=ys(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return bs(t)},"System.Collections.IEnumerator.get_Current"(){return bs(t)},"System.Collections.IEnumerator.MoveNext"(){return Sp(t)},"System.Collections.IEnumerator.Reset"(){t=ys(e)},Dispose(){}}}class Ur{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return Mp(this)|0}Equals(t){const n=this;if(t instanceof Ur){const r=Ee(n);try{const o=Ee(t);try{const i=()=>{const s=r["System.Collections.IEnumerator.MoveNext"]();if(s===o["System.Collections.IEnumerator.MoveNext"]())if(s){const l=r["System.Collections.Generic.IEnumerator`1.get_Current"](),u=o["System.Collections.Generic.IEnumerator`1.get_Current"]();return it(l[0],u[0])&&it(l[1],u[1])?i():!1}else return!0;else return!1};return i()}finally{J(o)}}finally{J(r)}}else return!1}toString(){return"map ["+St("; ",Ne(n=>Jf("({0}, {1})",n[0],n[1]),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(){const t=this;return Array.from(t)}GetEnumerator(){return As(this.tree)}[Symbol.iterator](){return $r(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return As(this.tree)}CompareTo(t){const n=this;if(t instanceof Ur)return Bd((r,o)=>{const i=n.comparer.Compare(r[0],o[0])|0;return(i!==0?i:ct(r[1],o[1]))|0},n,t)|0;throw new Error("not comparable\\nParameter name: obj")}"System.Collections.Generic.ICollection`1.Add2B595"(t){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"(t){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Contains2B595"(t){const n=this;return xs(n,t[0])&&it(vs(n,t[0]),t[1])}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){yp(this.tree,t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return vo(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return vo(this)|0}get size(){return vo(this)|0}clear(){throw new Error("Map cannot be mutated")}delete(t){throw new Error("Map cannot be mutated")}entries(){return Ne(n=>[n[0],n[1]],this)}get(t){return vs(this,t)}has(t){return xs(this,t)}keys(){return Ne(n=>n[0],this)}set(t,n){throw new Error("Map cannot be mutated")}values(){return Ne(n=>n[1],this)}forEach(t,n){const r=this;mi(o=>{In(2,t,[o[1]])(o[0])(r)},r)}}function pr(e,t){return new Ur(e,t)}function Dp(e){return pr(e,void 0)}function Fp(e,t,n){return pr(e.comparer,En(e.comparer,t,n,e.tree))}function vs(e,t){return mp(e.comparer,t,e.tree)}function Ip(e,t){return pr(e.comparer,_p(t,e.tree))}function vo(e){return hp(e.tree)}function xs(e,t){return gp(e.comparer,t,e.tree)}function kp(e,t){return Ta(e.comparer,t,e.tree)}function Mp(e){const t=(o,i)=>(o<<1)+i+631;let n=0;const r=Ee(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const o=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n=t(n,Ct(o[0]))|0,n=t(n,Ct(o[1]))|0}}finally{J(r)}return n|0}function Tp(e,t,n){return Fp(n,e,t)}function Rp(e,t){return kp(t,e)}function Np(e,t){return Ip(t,e)}function Op(e,t){return pr(t,Na(t,e))}function Bp(e,t){return pr(t,Na(t,e))}function Ba(e){return Dp(e)}function yi(e){return new pp(0,["Authorization",e])}const Lt=new dr("",new so(0,[]),Le(),!1,void 0,void 0,void 0,new Fa(0,[]));new Ia(0,"","","",Ba({Compare:yn}),new dn(0,[""]));function Es(e,t){return $f(t)?[t]:Yf(t,[e],void 0,0)}function Pp(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"}}function bi(e){return new dr(e,Lt.method,Lt.headers,Lt.withCredentials,Lt.overridenMimeType,Lt.overridenResponseType,Lt.timeout,Lt.content)}function Ai(e,t){return new dr(t.url,e,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function vi(e,t){return new dr(t.url,t.method,ro(t.headers,ve(e)),t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function Hp(e,t){return new dr(t.url,t.method,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,e)}function xi(e){return cp(t=>{const n=new XMLHttpRequest;n.open(Pp(e.method),e.url),n.onreadystatechange=()=>{let u,c,a,d,f,p,g;n.readyState===4&&t[0]((u=(c=n.responseType,c===""||c==="text"?n.responseText:""),a=n.status|0,d=n.responseType,f=(p=n.responseType,p===""?new dn(0,[n.responseText]):p==="text"?new dn(0,[n.responseText]):p==="arraybuffer"?new dn(2,[n.response]):p==="blob"?new dn(1,[n.response]):new dn(3,[n.response])),g=Bp(ld(_=>{const w=S(Es(":",_));if(!R(w))return[x(w).toLocaleLowerCase(),St(":",T(w)).trim()]},Es(`\r
|
|
4
|
-
`,n.getAllResponseHeaders()),null),{Compare:yn}),new Ia(a,u,d,n.responseURL,g,f)))};const r=Ee(e.headers);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const u=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n.setRequestHeader(u.fields[0],u.fields[1])}}finally{J(r)}n.withCredentials=e.withCredentials;const o=e.overridenMimeType;if(o!=null){const u=o;n.overrideMimeType(u)}const i=e.overridenResponseType;i==null||(i.tag===1?n.responseType="blob":i.tag===2?n.responseType="arraybuffer":n.responseType="text");const s=e.timeout;if(s!=null){const u=s|0;n.timeout=u|0}const l=e.content;switch(l.tag){case 1:{n.send(xe(l.fields[0]));break}case 3:{n.send(xe(l.fields[0]));break}case 2:{n.send(xe(l.fields[0]));break}default:n.send()}})}class v extends te{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class or extends te{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["PascalCase","CamelCase","SnakeCase"]}}function Cs(e){return e.slice(void 0,0+1).toLowerCase()+e.slice(1,e.length)}function jp(e,t){switch(e.tag){case 2:return Wf(Cs(t),"[A-Z]","_$0").toLowerCase();case 0:return t;default:return Cs(t)}}const Vp=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,Ss=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,Up=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function Lp(e){function t(r){return r.replace(Ss,"$1-$2-$3-$4-$5")}const n=e.trim().toLowerCase();if(Vp.test(n))return ed(n,"{","}","(",")");if(Ss.test(n))return t(n);if(Up.test(n))return t(n.replace(/[\{\},]|0x/g,""));throw new Error("Guid should contain 32 digits with 4 dashes: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx")}function zp(e,t){try{return t.contents=Lp(e),!0}catch{return!1}}class Pa extends le{constructor(t,n){super(),this.bound=t|0,this.digits=n}}function Ha(e,t){e:for(;;){const n=e,r=t;if(r===0)return 1;if(r%2===0){e=n*n,t=~~(r/2);continue e}else return n*Ha(n*n,~~(r/2))|0}}pe(2013265921,0,!1);pe(2013265921,0,!0);const Wp=29;On(Wp-1,e=>Ha(2,e),Int32Array);function zo(e){return e.bound}function Zn(e,t){return e.digits[t]}function Wo(e,t){return ee(Zn(e,t),!1,2)}function Lr(e,t,n){e.digits[t]=n|0}function Ei(e,t){e:for(;;){const n=e,r=t;if(r===0)return pe(1,0,!1);if(r%2===0){e=Ue(n,n),t=~~(r/2);continue e}else return Ue(n,Ei(Ue(n,n),~~(r/2)))}}function Cn(e,t){e:for(;;){const n=e,r=t;if(r===0)return 1;if(r%2===0){e=n*n,t=~~(r/2);continue e}else return n*Cn(n*n,~~(r/2))|0}}function Gp(e){let t=0;for(let n=0;n<=e.bound-1;n++)t=e.digits[n]+(t<<3)|0;return t|0}const Sn=24,Qt=16777216,mt=pe(16777216,0,!1),Pn=pe(16777215,0,!1);pe(16777215,0,!0);function $t(e){return new Pa(e,new Int32Array(e))}function Qp(e){return new Pa(e.bound,id(e.digits))}function gt(e){const n=((r,o)=>{e:for(;;){const i=r,s=o;if(s===-1||i[s]!==0)return s+1|0;r=i,o=s-1;continue e}})(e.digits,e.bound-1)|0;return e.bound=n|0,e}const Ds=2,Fs=3;function hr(e){const t=(e<0?0:e)|0;if(t<Qt){const n=$t(1);return n.digits[0]=t|0,gt(n)}else{const n=$t(Ds);for(let r=0;r<=Ds-1;r++)n.digits[r]=~~(t/Cn(Qt,r))%Qt|0;return gt(n)}}function Zp(e){const t=qr(e,pe(0,0,!1))<0?pe(0,0,!1):e,n=$t(Fs);for(let r=0;r<=Fs-1;r++)n.digits[r]=~~ft(wf(ut(t,Ei(mt,r)),mt))|0;return gt(n)}function Kp(e){if(e.bound===1)return e.digits[0]|0;{let t=0;for(let n=e.bound-1;n>=0;n--)t=e.digits[n]+Qt*t|0;return t|0}}const Jp=hr(1),$p=hr(0);function De(e){return e.bound-1}function ye(e){return e.bound===0}function Is(e,t){return e.bound===t.bound?((r,o,i)=>{e:for(;;){const s=r,l=o,u=i;if(u===-1)return!0;if(s[u]===l[u]){r=s,o=l,i=u-1;continue e}else return!1}})(e.digits,t.digits,e.bound-1):!1}function Xp(e,t,n,r){return e.bound+t<n.bound+r?-1:e.bound+t>n.bound+t?1:((i,s,l)=>{e:for(;;){const u=i,c=s,a=l;if(a===-1)return 0;{const d=(a<t?0:u[a-t])|0,f=(a<r?0:c[a-r])|0;if(d===f){i=u,s=c,l=a-1;continue e}else return d<f?-1:1}}})(e.digits,n.digits,e.bound+t-1)|0}function qp(e,t){return e.bound<t.bound?-1:e.bound>t.bound?1:((r,o,i)=>{e:for(;;){const s=r,l=o,u=i;if(u===-1)return 0;if(s[u]===l[u]){r=s,o=l,i=u-1;continue e}else return s[u]<l[u]?-1:1}})(e.digits,t.digits,e.bound-1)|0}function ks(e,t){return qp(e,t)===-1}function Yp(e,t){const n=$t(2),r=Ue(ee(e,!1,2),ee(t,!1,2));return Lr(n,0,~~ft(Rn(r,Pn))),Lr(n,1,~~ft(ut(r,mt))),gt(n)}function ja(e,t,n){e:for(;;){const r=e,o=t,i=n;if(qr(o,pe(0,0,!1))>0){const s=Ve(Wo(r,i),o);Lr(r,i,~~ft(Rn(s,Pn))),e=r,t=ut(s,mt),n=i+1;continue e}break}}function Ms(e,t){const n=zo(e)|0,r=$t(n+1),o=ee(t,!1,2);let i=pe(0,0,!1);for(let s=0;s<=n-1;s++){const l=Ve(Ve(i,Wo(r,s)),Ue(Wo(e,s),o));Lr(r,s,~~ft(Rn(l,Pn))),i=ut(l,mt)}return ja(r,i,n),gt(r)}function eh(e,t){const n=$t(e.bound+t.bound),r=n.digits;for(let o=0;o<=e.bound-1;o++){const i=ee(e.digits[o],!1,2);let s=pe(0,0,!1),l=o;for(let u=0;u<=t.bound-1;u++){const c=ee(t.digits[u],!1,2),a=Ve(Ve(ee(r[l],!1,2),s),Ue(i,c));r[l]=~~ft(Rn(a,Pn))|0,s=ut(a,mt),l=l+1|0}ja(n,s,l)}return gt(n)}function th(e,t){const n=zo(e)===1,r=zo(t)===1;return n&&r?Yp(Zn(e,0),Zn(t,0)):n?Ms(t,Zn(e,0)):r?Ms(e,Zn(t,0)):eh(e,t)}class nh extends le{constructor(t,n,r,o,i,s,l){super(),this.bigL=t|0,this.twoToBigL=n|0,this.k=r|0,this.bigK=o|0,this.bigN=i|0,this.split=s|0,this.splits=l}}function ke(e,t,n,r){return new nh(e,Cn(2,e),t,n,r,~~(Sn/e),On(~~(Sn/e),o=>Cn(2,e*o),Int32Array))}const rh=[ke(1,28,268435456,268435456),ke(2,26,67108864,134217728),ke(3,24,16777216,50331648),ke(4,22,4194304,16777216),ke(5,20,1048576,5242880),ke(6,18,262144,1572864),ke(7,16,65536,458752),ke(8,14,16384,131072),ke(9,12,4096,36864),ke(10,10,1024,10240),ke(11,8,256,2816),ke(12,6,64,768),ke(13,4,16,208)];On(Sn,e=>Cn(2,e)-1,Int32Array);On(Sn,e=>Cn(2,e),Int32Array);On(Sn,e=>Ei(pe(2,0,!1),e),null);~~(rh[0].bigN/Sn);function oh(e,t){return th(e,t)}function ih(e,t,n,r){const o=De(e)|0,i=e.digits,s=De(n)|0,l=n.digits,u=ee(t,!1,2);let c=0,a=Ue(u,ee(l[0],!1,2));for(;qr(a,pe(0,0,!1))>0||c<s;){if(c>o)throw new Error("scaleSubInPlace: pre-condition did not apply, result would be -ve");let d=~~ft(Rn(a,Pn)),f=ut(a,mt);d<=i[c+r]?i[c+r]=i[c+r]-d|0:(i[c+r]=i[c+r]+(Qt-d)|0,f=Ve(f,pe(1,0,!1))),c<s?a=Ve(f,Ue(u,ee(l[c+1],!1,2))):a=f,c=c+1|0}gt(e)}function sh(e,t,n,r){const o=De(e)|0,i=e.digits,s=De(n)|0,l=n.digits,u=ee(t,!1,2);let c=0,a=Ue(u,ee(l[0],!1,2));for(;qr(a,pe(0,0,!1))>0||c<s;){if(c>o)throw new Error("scaleSubInPlace: pre-condition did not apply, result would be -ve");let d=~~ft(Rn(a,Pn)),f=ut(a,mt);d<Qt-i[c+r]?i[c+r]=i[c+r]+d|0:(i[c+r]=d-(Qt-i[c+r])|0,f=Ve(f,pe(1,0,!1))),c<s?a=Ve(f,Ue(u,ee(l[c+1],!1,2))):a=f,c=c+1|0}gt(e)}function lh(e,t,n){const r=De(t)|0,o=De(e)|0,i=r|0;if(o<i+n)return 0;{const s=e.digits,l=t.digits,u=(i===0?o===n?~~(s[n]/l[0]):~~ft(ut(Ve(Ue(ee(s[o],!1,2),mt),ee(s[o-1],!1,2)),ee(l[0],!1,2))):o===i+n?~~(s[o]/(l[i]+1)):~~ft(ut(Ve(Ue(ee(s[o],!1,2),mt),ee(s[o-1],!1,2)),Ve(ee(l[i],!1,2),pe(1,0,!1)))))|0;return u===0?Xp(t,n,e,0)!==1?1:0:u|0}}function ah(e,t){if(ye(t))throw new Error;if(De(e)<De(t))return[$p,e];{const n=Qp(e),r=$t(De(e)-De(t)+1+1);let o=De(e);const i=De(t)|0;let s=o-i,l=!1;for(;!l;){const u=lh(n,t,s)|0;u>0?(ih(n,u,t,s),sh(r,u,Jp,s)):(l=u===0&&s===0,l||(o===i+s?s=s-1|0:(s=s-1|0,o=o-1|0)))}return[gt(r),gt(n)]}}hr(2);function Go(e){return hr(e)}function ch(e){return Zp(e)}function Ts(e){const t=De(e)|0,n=(i,s,l)=>{e:for(;;){const u=i,c=s,a=l;if(De(a)>t)return Re([c,a],u);i=Re([c,a],u),s=c+1,l=oh(a,a);continue e}},r=(i,s,l,u)=>{e:for(;;){const c=i,a=s,d=l,f=u;if(R(f)){const p=Kp(d)|0;return c&&p===0?a:Re(Rt(p),a)}else{const p=T(f),g=ah(d,x(f)[1]),_=g[1],w=g[0];if(c&&ye(w)){i=c,s=a,l=_,u=p;continue e}else{i=c,s=r(!1,a,_,p),l=w,u=p;continue e}}}},o=r(!0,Le(),e,n(Le(),0,hr(10)));return R(o)?"0":St("",no(o))}function uh(e){return e.bound<=1}function Rs(e){const t=e,n=0;return n<t.bound?t.digits[n]|0:0}class Ae{constructor(t,n){this.signInt=t|0,this.v=n}toString(){const t=this,n=Xt(t)|0;if(n===-1)return ye(z(t))?"0":"-"+Ts(z(t));if(n===0)return"0";if(n===1)return Ts(z(t));throw new Error("signs should be +/- 1 or 0")}Equals(t){const n=this;return t instanceof Ae&&Va(n,t)}GetHashCode(){return ph(this)|0}toJSON(){return Ce(this)}CompareTo(t){const n=this;if(t instanceof Ae)return dh(n,t)|0;throw new Error("the objects are not comparable\\nParameter name: obj")}}function xo(e,t){return new Ae(e,t)}Ae.smallLim=4096,Ae.smallPosTab=On(Ae.smallLim,Go,null),Ae.one=Co(1),Ae.two=Co(2),Ae.zero=Co(0);function Eo(e){return uh(e)&&Rs(e)<Ae.smallLim?Ae.smallPosTab[Rs(e)]:e}function Xt(e){return e.signInt}function z(e){return e.v}function Va(e,t){const n=Xt(e)|0,r=Xt(t)|0;let o;switch(n===-1?r===-1?o=1:r===0?o=8:r===1?o=3:o=9:n===0?r===-1?o=6:r===0?o=4:r===1?o=5:o=9:n===1?r===-1?o=2:r===0?o=7:r===1?o=0:o=9:o=9,o){case 0:return Is(z(e),z(t));case 1:return Is(z(e),z(t));case 2:return ye(z(e))?ye(z(t)):!1;case 3:return ye(z(e))?ye(z(t)):!1;case 4:return!0;case 5:return ye(z(t));case 6:return ye(z(t));case 7:return ye(z(e));case 8:return ye(z(e));case 9:throw new Error("signs should be +/- 1 or 0\\nParameter name: x")}}function fh(e,t){const n=Xt(e)|0,r=Xt(t)|0;let o;switch(n===-1?r===-1?o=1:r===0?o=8:r===1?o=3:o=9:n===0?r===-1?o=6:r===0?o=4:r===1?o=5:o=9:n===1?r===-1?o=2:r===0?o=7:r===1?o=0:o=9:o=9,o){case 0:return ks(z(e),z(t));case 1:return ks(z(t),z(e));case 2:return!1;case 3:return ye(z(e))?!ye(z(t)):!0;case 4:return!1;case 5:return!ye(z(t));case 6:return!1;case 7:return!1;case 8:return!ye(z(e));case 9:throw new Error("signs should be +/- 1 or 0\\nParameter name: x")}}function dh(e,t){return fh(e,t)?-1:Va(e,t)?0:1}function ph(e){return Xt(e)===0?1:Xt(e)+Gp(z(e))|0}function Co(e){return e>=0?xo(1,Eo(Go(e))):e===-2147483648?xo(-1,Eo(ch(_f(ee(e,!1,2))))):xo(-1,Eo(Go(Xu(e))))}function Ua(){return Ae.one}function hh(){return Ae.two}function La(){return Ae.zero}La();Ua();hh();La();Ua();function za(e,t){mh(t);const n=new Date(e);return n.offset=t!=null?t:new Date().getTimezoneOffset()*-6e4,n}function mh(e){if(e!=null&&e!==0){if(e%6e4!==0)throw new Error("Offset must be specified in whole minutes.");if(Math.abs(e/36e5)>14)throw new Error("Offset must be within plus or minus 14 hours.")}}function gh(){return za(-621355968e5,0)}function wh(e){const[t,n]=sa(e),r=n==null?t.getTimezoneOffset()*-6e4:n==="Z"?0:n*6e4;return za(t.getTime(),r)}function _h(e,t){try{return t.contents=wh(e),!0}catch{return!1}}function Ns(e=0,t=0,n=0,r=0,o=0){switch(arguments.length){case 1:return yh(arguments[0]);case 3:e=0,t=arguments[0],n=arguments[1],r=arguments[2],o=0;break}return e*864e5+t*36e5+n*6e4+r*1e3+o}function yh(e){return yf(ut(e,1e4))}function bh(e){const t=e.search("\\."),n=e.search("\\:");if(t===-1&&n===-1){const r=parseInt(e,0);if(isNaN(r))throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`);return Ns(r,0,0,0,0)}if(n>0){const r=/^(-?)((\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(r!=null&&r[4]!=null&&r[5]!=null){let o=0,i=0,s=0;const l=r[1]!=null&&r[1]==="-"?-1:1,u=+r[4],c=+r[5];if(r[3]!=null&&(o=+r[3]),r[7]!=null&&(s=+r[7]),r[8]!=null)switch(r[8].length){case 1:i=+r[8]*100;break;case 2:i=+r[8]*10;break;case 3:i=+r[8];break;case 4:i=+r[8]/10;break;case 5:i=+r[8]/100;break;case 6:i=+r[8]/1e3;break;case 7:i=+r[8]/1e4;break;default:throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}return l*Ns(o,u,c,s,i)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}function Ah(e,t){try{return t.contents=bh(e),!0}catch{return!1}}class Wa{constructor(t){this.k=t}}function Me(e){return new Wa(e)}function D(e){return e.k}class B extends Wa{constructor(t,n,r,o){super(t),this.left=n,this.right=r,this.h=o|0}}function Te(e,t,n,r){return new B(e,t,n,r)}function U(e){return e.left}function j(e){return e.right}function pn(e){return e.h}function Ga(e,t){e:for(;;){const n=e,r=t;if(n!=null){const o=n;if(o instanceof B){e=U(o),t=Ga(j(o),r+1);continue e}else return r+1|0}else return r|0}}function vh(e){return Ga(e,0)}function Qe(e,t,n){let r;const o=e;if(o!=null){const u=o;r=u instanceof B?pn(u):1}else r=0;let i;const s=n;if(s!=null){const u=s;i=u instanceof B?pn(u):1}else i=0;const l=(r<i?i:r)|0;return l===0?Me(t):Te(t,e,n,l+1)}function Os(e,t,n){let r,o,i,s,l;const u=e;if(u!=null){const d=u;l=d instanceof B?pn(d):1}else l=0;let c;const a=n;if(a!=null){const d=a;c=d instanceof B?pn(d):1}else c=0;if(c>l+2){const d=$(n);if(d instanceof B)if(r=U(d),(r!=null?(o=r,o instanceof B?pn(o):1):0)>l+1){const f=$(U(d));if(f instanceof B)return Qe(Qe(e,t,U(f)),D(f),Qe(j(f),D(d),j(d)));throw new Error("internal error: Set.rebalance")}else return Qe(Qe(e,t,U(d)),D(d),j(d));else throw new Error("internal error: Set.rebalance")}else if(l>c+2){const d=$(e);if(d instanceof B)if(i=j(d),(i!=null?(s=i,s instanceof B?pn(s):1):0)>c+1){const f=$(j(d));if(f instanceof B)return Qe(Qe(U(d),D(d),U(f)),D(f),Qe(j(f),t,n));throw new Error("internal error: Set.rebalance")}else return Qe(U(d),D(d),Qe(j(d),t,n));else throw new Error("internal error: Set.rebalance")}else return Qe(e,t,n)}function ir(e,t,n){if(n!=null){const r=n,o=e.Compare(t,D(r))|0;if(r instanceof B)return o<0?Os(ir(e,t,U(r)),D(r),j(r)):o===0?n:Os(U(r),D(r),ir(e,t,j(r)));{const i=e.Compare(t,D(r))|0;return i<0?Te(t,void 0,n,2):i===0?n:Te(t,n,void 0,2)}}else return Me(t)}function Qa(e,t,n){e:for(;;){const r=e,o=t,i=n;if(i!=null){const s=i,l=r.Compare(o,D(s))|0;if(s instanceof B)if(l<0){e=r,t=o,n=U(s);continue e}else{if(l===0)return!0;e=r,t=o,n=j(s);continue e}else return l===0}else return!1}}function Za(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=r;if(o instanceof B){Za(n,U(o)),n(D(o)),e=n,t=j(o);continue e}else n(D(o))}break}}class xh extends le{constructor(t,n){super(),this.stack=t,this.started=n}}function Ka(e){e:for(;;){const t=e;if(R(t))return Le();{const n=x(t),r=T(t);if(n!=null){const o=n;if(o instanceof B){e=Q([U(o),Me(D(o)),j(o)],r);continue e}else return t}else{e=r;continue e}}}}function Bs(e){return new xh(Ka(ve(e)),!1)}function Eh(){throw new Error("Enumeration not started")}function Ch(){throw new Error("Enumeration already started")}function Ps(e){if(e.started){const t=e.stack;if(R(t))return Ch();if(x(t)!=null){const n=x(t);return D(n)}else throw new Error("Please report error: Set iterator, unexpected stack for current")}else return Eh()}function Sh(e){if(e.started){const t=e.stack;if(R(t))return!1;if(x(t)!=null){if(x(t)instanceof B)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=Ka(T(t)),!R(e.stack)}else throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}else return e.started=!0,!R(e.stack)}function Hs(e){let t=Bs(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return Ps(t)},"System.Collections.IEnumerator.get_Current"(){return Ps(t)},"System.Collections.IEnumerator.MoveNext"(){return Sh(t)},"System.Collections.IEnumerator.Reset"(){t=Bs(e)},Dispose(){}}}function Dh(e,t,n){e:for(;;){const r=e,o=t,i=n;if(R(o))return R(i)?0:-1;if(R(i))return 1;if(x(i)!=null)if(x(o)!=null){const s=x(o),l=x(i);if(s instanceof B)if(U(s)==null)if(l instanceof B)if(U(l)==null){const u=r.Compare(D(s),D(l))|0;if(u!==0)return u|0;e=r,t=Re(j(s),T(o)),n=Re(j(l),T(i));continue e}else{let u,c,a,d,f;switch(R(o)?R(i)?u=2:x(i)!=null?(u=1,d=T(i),f=x(i)):u=2:x(o)!=null?(u=0,c=T(o),a=x(o)):R(i)?u=2:x(i)!=null?(u=1,d=T(i),f=x(i)):u=2,u){case 0:if(a instanceof B){e=r,t=Q([U(a),Te(D(a),void 0,j(a),0)],c),n=i;continue e}else{e=r,t=Q([void 0,Me(D(a))],c),n=i;continue e}case 1:if(f instanceof B){e=r,t=o,n=Q([U(f),Te(D(f),void 0,j(f),0)],d);continue e}else{e=r,t=o,n=Q([void 0,Me(D(f))],d);continue e}case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else{const u=r.Compare(D(s),D(l))|0;if(u!==0)return u|0;e=r,t=Re(j(s),T(o)),n=Re(void 0,T(i));continue e}else{let u,c,a,d,f;switch(R(o)?R(i)?u=2:x(i)!=null?(u=1,d=T(i),f=x(i)):u=2:x(o)!=null?(u=0,c=T(o),a=x(o)):R(i)?u=2:x(i)!=null?(u=1,d=T(i),f=x(i)):u=2,u){case 0:if(a instanceof B){e=r,t=Q([U(a),Te(D(a),void 0,j(a),0)],c),n=i;continue e}else{e=r,t=Q([void 0,Me(D(a))],c),n=i;continue e}case 1:if(f instanceof B){e=r,t=o,n=Q([U(f),Te(D(f),void 0,j(f),0)],d);continue e}else{e=r,t=o,n=Q([void 0,Me(D(f))],d);continue e}case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else if(l instanceof B)if(U(l)==null){const u=r.Compare(D(s),D(l))|0;if(u!==0)return u|0;e=r,t=Re(void 0,T(o)),n=Re(j(l),T(i));continue e}else{let u,c,a,d,f;switch(R(o)?R(i)?u=2:x(i)!=null?(u=1,d=T(i),f=x(i)):u=2:x(o)!=null?(u=0,c=T(o),a=x(o)):R(i)?u=2:x(i)!=null?(u=1,d=T(i),f=x(i)):u=2,u){case 0:if(a instanceof B){e=r,t=Q([U(a),Te(D(a),void 0,j(a),0)],c),n=i;continue e}else{e=r,t=Q([void 0,Me(D(a))],c),n=i;continue e}case 1:if(f instanceof B){e=r,t=o,n=Q([U(f),Te(D(f),void 0,j(f),0)],d);continue e}else{e=r,t=o,n=Q([void 0,Me(D(f))],d);continue e}case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else{const u=r.Compare(D(s),D(l))|0;if(u!==0)return u|0;e=r,t=T(o),n=T(i);continue e}}else{x(i);let s,l,u,c,a;switch(R(o)?R(i)?s=2:x(i)!=null?(s=1,c=T(i),a=x(i)):s=2:x(o)!=null?(s=0,l=T(o),u=x(o)):R(i)?s=2:x(i)!=null?(s=1,c=T(i),a=x(i)):s=2,s){case 0:if(u instanceof B){e=r,t=Q([U(u),Te(D(u),void 0,j(u),0)],l),n=i;continue e}else{e=r,t=Q([void 0,Me(D(u))],l),n=i;continue e}case 1:if(a instanceof B){e=r,t=o,n=Q([U(a),Te(D(a),void 0,j(a),0)],c);continue e}else{e=r,t=o,n=Q([void 0,Me(D(a))],c);continue e}case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else if(x(o)!=null){x(o);let s,l,u,c,a;switch(R(o)?R(i)?s=2:x(i)!=null?(s=1,c=T(i),a=x(i)):s=2:x(o)!=null?(s=0,l=T(o),u=x(o)):R(i)?s=2:x(i)!=null?(s=1,c=T(i),a=x(i)):s=2,s){case 0:if(u instanceof B){e=r,t=Q([U(u),Te(D(u),void 0,j(u),0)],l),n=i;continue e}else{e=r,t=Q([void 0,Me(D(u))],l),n=i;continue e}case 1:if(a instanceof B){e=r,t=o,n=Q([U(a),Te(D(a),void 0,j(a),0)],c);continue e}else{e=r,t=o,n=Q([void 0,Me(D(a))],c);continue e}case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else{e=r,t=T(o),n=T(i);continue e}break}}function js(e,t,n){return t==null?n==null?0:-1:n==null?1:Dh(e,ve(t),ve(n))|0}function Fh(e,t,n){let r=n;Za(o=>{t[r]=o,r=r+1|0},e)}function Ih(e,t,n){e:for(;;){const r=e,o=t,i=n;if(i["System.Collections.IEnumerator.MoveNext"]()){e=r,t=ir(r,i["System.Collections.Generic.IEnumerator`1.get_Current"](),o),n=i;continue e}else return o}}function kh(e,t){return di((n,r)=>ir(e,r,n),void 0,t)}function Mh(e,t){return jt((n,r)=>ir(e,r,n),void 0,t)}function Th(e,t){if(at(t))return kh(e,t);if(t instanceof pt)return Mh(e,t);{const n=Ee(t);try{return Ih(e,void 0,n)}finally{J(n)}}}class Ci{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return Oh(this)|0}Equals(t){const n=this;return t instanceof Ci&&js(Dr(n),tt(n),tt(t))===0}toString(){return"set ["+St("; ",Ne(n=>Ce(n),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(){const t=this;return Array.from(t)}CompareTo(t){const n=this;return js(Dr(n),tt(n),tt(t))|0}"System.Collections.Generic.ICollection`1.Add2B595"(t){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Clear"(){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Remove2B595"(t){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Contains2B595"(t){const n=this;return Qa(Dr(n),t,tt(n))}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){Fh(tt(this),t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return So(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return So(this)|0}GetEnumerator(){return Hs(tt(this))}[Symbol.iterator](){return $r(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return Hs(tt(this))}get size(){return So(this)|0}add(t){throw new Error("Set cannot be mutated")}clear(){throw new Error("Set cannot be mutated")}delete(t){throw new Error("Set cannot be mutated")}has(t){return Nh(this,t)}keys(){return Ne(n=>n,this)}values(){return Ne(n=>n,this)}entries(){return Ne(n=>[n,n],this)}forEach(t,n){const r=this;mi(o=>{In(2,t,[o])(o)(r)},r)}}function Rh(e,t){return new Ci(e,t)}function Dr(e){return e.comparer}function tt(e){return e.tree}function So(e){return vh(tt(e))}function Nh(e,t){return Qa(Dr(e),t,tt(e))}function Oh(e){let t=0;const n=Ee(e);try{for(;n["System.Collections.IEnumerator.MoveNext"]();){const r=n["System.Collections.Generic.IEnumerator`1.get_Current"]();t=(t<<1)+Ct(r)+631|0}}finally{J(n)}return Math.abs(t)|0}function Bh(e,t){return Rh(t,Th(t,e))}function zn(e,t,n){try{return"Expecting "+e+" but instead got:"+(n?`
|
|
1
|
+
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerpolicy&&(i.referrerPolicy=o.referrerpolicy),o.crossorigin==="use-credentials"?i.credentials="include":o.crossorigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();var ar,A,yl,zt,Ui,bl,ko,Al,Fr={},vl=[],Dc=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function bt(e,t){for(var n in t)e[n]=t[n];return e}function xl(e){var t=e.parentNode;t&&t.removeChild(e)}function h(e,t,n){var r,o,i,s={};for(i in t)i=="key"?r=t[i]:i=="ref"?o=t[i]:s[i]=t[i];if(arguments.length>2&&(s.children=arguments.length>3?ar.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)s[i]===void 0&&(s[i]=e.defaultProps[i]);return Kn(e,s,r,o,null)}function Kn(e,t,n,r,o){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:o==null?++yl:o};return o==null&&A.vnode!=null&&A.vnode(i),i}function Ic(){return{current:null}}function Ue(e){return e.children}function ot(e,t){this.props=e,this.context=t}function qn(e,t){if(t==null)return e.__?qn(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?qn(e):null}function El(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return El(e)}}function Mo(e){(!e.__d&&(e.__d=!0)&&zt.push(e)&&!kr.__r++||Ui!==A.debounceRendering)&&((Ui=A.debounceRendering)||bl)(kr)}function kr(){var e,t,n,r,o,i,s,l;for(zt.sort(ko);e=zt.shift();)e.__d&&(t=zt.length,r=void 0,o=void 0,s=(i=(n=e).__v).__e,(l=n.__P)&&(r=[],(o=bt({},i)).__v=i.__v+1,Yo(l,i,o,n.__n,l.ownerSVGElement!==void 0,i.__h!=null?[s]:null,r,s==null?qn(i):s,i.__h),Fl(r,i),i.__e!=s&&El(i)),zt.length>t&&zt.sort(ko));kr.__r=0}function Cl(e,t,n,r,o,i,s,l,u,c){var a,d,f,p,g,_,w,b=r&&r.__k||vl,F=b.length;for(n.__k=[],a=0;a<t.length;a++)if((p=n.__k[a]=(p=t[a])==null||typeof p=="boolean"||typeof p=="function"?null:typeof p=="string"||typeof p=="number"||typeof p=="bigint"?Kn(null,p,null,null,p):Array.isArray(p)?Kn(Ue,{children:p},null,null,null):p.__b>0?Kn(p.type,p.props,p.key,p.ref?p.ref:null,p.__v):p)!=null){if(p.__=n,p.__b=n.__b+1,(f=b[a])===null||f&&p.key==f.key&&p.type===f.type)b[a]=void 0;else for(d=0;d<F;d++){if((f=b[d])&&p.key==f.key&&p.type===f.type){b[d]=void 0;break}f=null}Yo(e,p,f=f||Fr,o,i,s,l,u,c),g=p.__e,(d=p.ref)&&f.ref!=d&&(w||(w=[]),f.ref&&w.push(f.ref,null,p),w.push(d,p.__c||g,p)),g!=null?(_==null&&(_=g),typeof p.type=="function"&&p.__k===f.__k?p.__d=u=Sl(p,u,e):u=Dl(e,p,f,b,g,u),typeof n.type=="function"&&(n.__d=u)):u&&f.__e==u&&u.parentNode!=e&&(u=qn(f))}for(n.__e=_,a=F;a--;)b[a]!=null&&(typeof n.type=="function"&&b[a].__e!=null&&b[a].__e==n.__d&&(n.__d=Il(r).nextSibling),Ml(b[a],b[a]));if(w)for(a=0;a<w.length;a++)kl(w[a],w[++a],w[++a])}function Sl(e,t,n){for(var r,o=e.__k,i=0;o&&i<o.length;i++)(r=o[i])&&(r.__=e,t=typeof r.type=="function"?Sl(r,t,n):Dl(n,r,r,o,r.__e,t));return t}function xt(e,t){return t=t||[],e==null||typeof e=="boolean"||(Array.isArray(e)?e.some(function(n){xt(n,t)}):t.push(e)),t}function Dl(e,t,n,r,o,i){var s,l,u;if(t.__d!==void 0)s=t.__d,t.__d=void 0;else if(n==null||o!=i||o.parentNode==null)e:if(i==null||i.parentNode!==e)e.appendChild(o),s=null;else{for(l=i,u=0;(l=l.nextSibling)&&u<r.length;u+=1)if(l==o)break e;e.insertBefore(o,i),s=i}return s!==void 0?s:o.nextSibling}function Il(e){var t,n,r;if(e.type==null||typeof e.type=="string")return e.__e;if(e.__k){for(t=e.__k.length-1;t>=0;t--)if((n=e.__k[t])&&(r=Il(n)))return r}return null}function Fc(e,t,n,r,o){var i;for(i in n)i==="children"||i==="key"||i in t||Mr(e,i,null,n[i],r);for(i in t)o&&typeof t[i]!="function"||i==="children"||i==="key"||i==="value"||i==="checked"||n[i]===t[i]||Mr(e,i,t[i],n[i],r)}function Li(e,t,n){t[0]==="-"?e.setProperty(t,n==null?"":n):e[t]=n==null?"":typeof n!="number"||Dc.test(t)?n:n+"px"}function Mr(e,t,n,r,o){var i;e:if(t==="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||Li(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||Li(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")i=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r||e.addEventListener(t,i?Wi:zi,i):e.removeEventListener(t,i?Wi:zi,i);else if(t!=="dangerouslySetInnerHTML"){if(o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!=="width"&&t!=="height"&&t!=="href"&&t!=="list"&&t!=="form"&&t!=="tabIndex"&&t!=="download"&&t in e)try{e[t]=n==null?"":n;break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!=="-"?e.removeAttribute(t):e.setAttribute(t,n))}}function zi(e){return this.l[e.type+!1](A.event?A.event(e):e)}function Wi(e){return this.l[e.type+!0](A.event?A.event(e):e)}function Yo(e,t,n,r,o,i,s,l,u){var c,a,d,f,p,g,_,w,b,F,ne,oe,Q,N,ae,P=t.type;if(t.constructor!==void 0)return null;n.__h!=null&&(u=n.__h,l=t.__e=n.__e,t.__h=null,i=[l]),(c=A.__b)&&c(t);try{e:if(typeof P=="function"){if(w=t.props,b=(c=P.contextType)&&r[c.__c],F=c?b?b.props.value:c.__:r,n.__c?_=(a=t.__c=n.__c).__=a.__E:("prototype"in P&&P.prototype.render?t.__c=a=new P(w,F):(t.__c=a=new ot(w,F),a.constructor=P,a.render=Mc),b&&b.sub(a),a.props=w,a.state||(a.state={}),a.context=F,a.__n=r,d=a.__d=!0,a.__h=[],a._sb=[]),a.__s==null&&(a.__s=a.state),P.getDerivedStateFromProps!=null&&(a.__s==a.state&&(a.__s=bt({},a.__s)),bt(a.__s,P.getDerivedStateFromProps(w,a.__s))),f=a.props,p=a.state,a.__v=t,d)P.getDerivedStateFromProps==null&&a.componentWillMount!=null&&a.componentWillMount(),a.componentDidMount!=null&&a.__h.push(a.componentDidMount);else{if(P.getDerivedStateFromProps==null&&w!==f&&a.componentWillReceiveProps!=null&&a.componentWillReceiveProps(w,F),!a.__e&&a.shouldComponentUpdate!=null&&a.shouldComponentUpdate(w,a.__s,F)===!1||t.__v===n.__v){for(t.__v!==n.__v&&(a.props=w,a.state=a.__s,a.__d=!1),a.__e=!1,t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(ce){ce&&(ce.__=t)}),ne=0;ne<a._sb.length;ne++)a.__h.push(a._sb[ne]);a._sb=[],a.__h.length&&s.push(a);break e}a.componentWillUpdate!=null&&a.componentWillUpdate(w,a.__s,F),a.componentDidUpdate!=null&&a.__h.push(function(){a.componentDidUpdate(f,p,g)})}if(a.context=F,a.props=w,a.__P=e,oe=A.__r,Q=0,"prototype"in P&&P.prototype.render){for(a.state=a.__s,a.__d=!1,oe&&oe(t),c=a.render(a.props,a.state,a.context),N=0;N<a._sb.length;N++)a.__h.push(a._sb[N]);a._sb=[]}else do a.__d=!1,oe&&oe(t),c=a.render(a.props,a.state,a.context),a.state=a.__s;while(a.__d&&++Q<25);a.state=a.__s,a.getChildContext!=null&&(r=bt(bt({},r),a.getChildContext())),d||a.getSnapshotBeforeUpdate==null||(g=a.getSnapshotBeforeUpdate(f,p)),ae=c!=null&&c.type===Ue&&c.key==null?c.props.children:c,Cl(e,Array.isArray(ae)?ae:[ae],t,n,r,o,i,s,l,u),a.base=t.__e,t.__h=null,a.__h.length&&s.push(a),_&&(a.__E=a.__=null),a.__e=!1}else i==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=kc(n.__e,t,n,r,o,i,s,u);(c=A.diffed)&&c(t)}catch(ce){t.__v=null,(u||i!=null)&&(t.__e=l,t.__h=!!u,i[i.indexOf(l)]=null),A.__e(ce,t,n)}}function Fl(e,t){A.__c&&A.__c(t,e),e.some(function(n){try{e=n.__h,n.__h=[],e.some(function(r){r.call(n)})}catch(r){A.__e(r,n.__v)}})}function kc(e,t,n,r,o,i,s,l){var u,c,a,d=n.props,f=t.props,p=t.type,g=0;if(p==="svg"&&(o=!0),i!=null){for(;g<i.length;g++)if((u=i[g])&&"setAttribute"in u==!!p&&(p?u.localName===p:u.nodeType===3)){e=u,i[g]=null;break}}if(e==null){if(p===null)return document.createTextNode(f);e=o?document.createElementNS("http://www.w3.org/2000/svg",p):document.createElement(p,f.is&&f),i=null,l=!1}if(p===null)d===f||l&&e.data===f||(e.data=f);else{if(i=i&&ar.call(e.childNodes),c=(d=n.props||Fr).dangerouslySetInnerHTML,a=f.dangerouslySetInnerHTML,!l){if(i!=null)for(d={},g=0;g<e.attributes.length;g++)d[e.attributes[g].name]=e.attributes[g].value;(a||c)&&(a&&(c&&a.__html==c.__html||a.__html===e.innerHTML)||(e.innerHTML=a&&a.__html||""))}if(Fc(e,f,d,o,l),a)t.__k=[];else if(g=t.props.children,Cl(e,Array.isArray(g)?g:[g],t,n,r,o&&p!=="foreignObject",i,s,i?i[0]:n.__k&&qn(n,0),l),i!=null)for(g=i.length;g--;)i[g]!=null&&xl(i[g]);l||("value"in f&&(g=f.value)!==void 0&&(g!==e.value||p==="progress"&&!g||p==="option"&&g!==d.value)&&Mr(e,"value",g,d.value,!1),"checked"in f&&(g=f.checked)!==void 0&&g!==e.checked&&Mr(e,"checked",g,d.checked,!1))}return e}function kl(e,t,n){try{typeof e=="function"?e(t):e.current=t}catch(r){A.__e(r,n)}}function Ml(e,t,n){var r,o;if(A.unmount&&A.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||kl(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(i){A.__e(i,t)}r.base=r.__P=null,e.__c=void 0}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&Ml(r[o],t,n||typeof e.type!="function");n||e.__e==null||xl(e.__e),e.__=e.__e=e.__d=void 0}function Mc(e,t,n){return this.constructor(e,n)}function Nt(e,t,n){var r,o,i;A.__&&A.__(e,t),o=(r=typeof n=="function")?null:n&&n.__k||t.__k,i=[],Yo(t,e=(!r&&n||t).__k=h(Ue,null,[e]),o||Fr,Fr,t.ownerSVGElement!==void 0,!r&&n?[n]:o?null:t.firstChild?ar.call(t.childNodes):null,i,!r&&n?n:o?o.__e:t.firstChild,r),Fl(i,e)}function ei(e,t){Nt(e,t,ei)}function ti(e,t,n){var r,o,i,s=bt({},e.props);for(i in t)i=="key"?r=t[i]:i=="ref"?o=t[i]:s[i]=t[i];return arguments.length>2&&(s.children=arguments.length>3?ar.call(arguments,2):n),Kn(e.type,s,r||e.key,o||e.ref,null)}function Tc(e,t){var n={__c:t="__cC"+Al++,__:e,Consumer:function(r,o){return r.children(o)},Provider:function(r){var o,i;return this.getChildContext||(o=[],(i={})[t]=this,this.getChildContext=function(){return i},this.shouldComponentUpdate=function(s){this.props.value!==s.value&&o.some(function(l){l.__e=!0,Mo(l)})},this.sub=function(s){o.push(s);var l=s.componentWillUnmount;s.componentWillUnmount=function(){o.splice(o.indexOf(s),1),l&&l.call(s)}}),r.children}};return n.Provider.__=n.Consumer.contextType=n}ar=vl.slice,A={__e:function(e,t,n,r){for(var o,i,s;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&i.getDerivedStateFromError!=null&&(o.setState(i.getDerivedStateFromError(e)),s=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,r||{}),s=o.__d),s)return o.__E=o}catch(l){e=l}throw e}},yl=0,ot.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=bt({},this.state),typeof e=="function"&&(e=e(bt({},n),this.props)),e&&bt(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),Mo(this))},ot.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Mo(this))},ot.prototype.render=Ue,zt=[],bl=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,ko=function(e,t){return e.__v.__b-t.__v.__b},kr.__r=0,Al=0;var Yt,z,wo,Gi,wn=0,Tl=[],xr=[],Qi=A.__b,Zi=A.__r,Ki=A.diffed,Ji=A.__c,$i=A.unmount;function Dn(e,t){A.__h&&A.__h(z,e,wn||t),wn=0;var n=z.__H||(z.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:xr}),n.__[e]}function Rl(e){return wn=1,ni(Ol,e)}function ni(e,t,n){var r=Dn(Yt++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Ol(void 0,t),function(l){var u=r.__N?r.__N[0]:r.__[0],c=r.t(u,l);u!==c&&(r.__N=[c,r.__[1]],r.__c.setState({}))}],r.__c=z,!z.u)){var o=function(l,u,c){if(!r.__c.__H)return!0;var a=r.__c.__H.__.filter(function(f){return f.__c});if(a.every(function(f){return!f.__N}))return!i||i.call(this,l,u,c);var d=!1;return a.forEach(function(f){if(f.__N){var p=f.__[0];f.__=f.__N,f.__N=void 0,p!==f.__[0]&&(d=!0)}}),!(!d&&r.__c.props===l)&&(!i||i.call(this,l,u,c))};z.u=!0;var i=z.shouldComponentUpdate,s=z.componentWillUpdate;z.componentWillUpdate=function(l,u,c){if(this.__e){var a=i;i=void 0,o(l,u,c),i=a}s&&s.call(this,l,u,c)},z.shouldComponentUpdate=o}return r.__N||r.__}function mn(e,t){var n=Dn(Yt++,3);!A.__s&&ri(n.__H,t)&&(n.__=e,n.i=t,z.__H.__h.push(n))}function Jr(e,t){var n=Dn(Yt++,4);!A.__s&&ri(n.__H,t)&&(n.__=e,n.i=t,z.__h.push(n))}function Wn(e){return wn=5,wt(function(){return{current:e}},[])}function Nl(e,t,n){wn=6,Jr(function(){return typeof e=="function"?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},n==null?n:n.concat(e))}function wt(e,t){var n=Dn(Yt++,7);return ri(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function De(e,t){return wn=8,wt(function(){return e},t)}function Rc(e){var t=z.context[e.__c],n=Dn(Yt++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(z)),t.props.value):e.__}function Nc(e,t){A.useDebugValue&&A.useDebugValue(t?t(e):e)}function Oc(){var e=Dn(Yt++,11);if(!e.__){for(var t=z.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function Bc(){for(var e;e=Tl.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Er),e.__H.__h.forEach(To),e.__H.__h=[]}catch(t){e.__H.__h=[],A.__e(t,e.__v)}}A.__b=function(e){z=null,Qi&&Qi(e)},A.__r=function(e){Zi&&Zi(e),Yt=0;var t=(z=e.__c).__H;t&&(wo===z?(t.__h=[],z.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=xr,n.__N=n.i=void 0})):(t.__h.forEach(Er),t.__h.forEach(To),t.__h=[])),wo=z},A.diffed=function(e){Ki&&Ki(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Tl.push(t)!==1&&Gi===A.requestAnimationFrame||((Gi=A.requestAnimationFrame)||Pc)(Bc)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==xr&&(n.__=n.__V),n.i=void 0,n.__V=xr})),wo=z=null},A.__c=function(e,t){t.some(function(n){try{n.__h.forEach(Er),n.__h=n.__h.filter(function(r){return!r.__||To(r)})}catch(r){t.some(function(o){o.__h&&(o.__h=[])}),t=[],A.__e(r,n.__v)}}),Ji&&Ji(e,t)},A.unmount=function(e){$i&&$i(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{Er(r)}catch(o){t=o}}),n.__H=void 0,t&&A.__e(t,n.__v))};var Xi=typeof requestAnimationFrame=="function";function Pc(e){var t,n=function(){clearTimeout(r),Xi&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Xi&&(t=requestAnimationFrame(n))}function Er(e){var t=z,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),z=t}function To(e){var t=z;e.__c=e.__(),z=t}function ri(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function Ol(e,t){return typeof t=="function"?t(e):t}function Bl(e,t){for(var n in t)e[n]=t[n];return e}function Ro(e,t){for(var n in e)if(n!=="__source"&&!(n in t))return!0;for(var r in t)if(r!=="__source"&&e[r]!==t[r])return!0;return!1}function _o(e,t){return e===t&&(e!==0||1/e==1/t)||e!=e&&t!=t}function No(e){this.props=e}function Hc(e,t){function n(o){var i=this.props.ref,s=i==o.ref;return!s&&i&&(i.call?i(null):i.current=null),t?!t(this.props,o)||!s:Ro(this.props,o)}function r(o){return this.shouldComponentUpdate=n,h(e,o)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(No.prototype=new ot).isPureReactComponent=!0,No.prototype.shouldComponentUpdate=function(e,t){return Ro(this.props,e)||Ro(this.state,t)};var qi=A.__b;A.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),qi&&qi(e)};var jc=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Pl(e){function t(n){var r=Bl({},n);return delete r.ref,e(r,n.ref||null)}return t.$$typeof=jc,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Yi=function(e,t){return e==null?null:xt(xt(e).map(t))},Vc={map:Yi,forEach:Yi,count:function(e){return e?xt(e).length:0},only:function(e){var t=xt(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:xt},Uc=A.__e;A.__e=function(e,t,n,r){if(e.then){for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t)}Uc(e,t,n,r)};var es=A.unmount;function Hl(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c()}),e.__c.__H=null),(e=Bl({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return Hl(r,t,n)})),e}function jl(e,t,n){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return jl(r,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=n)),e}function Cr(){this.__u=0,this.t=null,this.__b=null}function Vl(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Lc(e){var t,n,r;function o(i){if(t||(t=e()).then(function(s){n=s.default||s},function(s){r=s}),r)throw r;if(!n)throw t;return h(n,i)}return o.displayName="Lazy",o.__f=!0,o}function Gn(){this.u=null,this.o=null}A.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&e.__h===!0&&(e.type=null),es&&es(e)},(Cr.prototype=new ot).__c=function(e,t){var n=t.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var o=Vl(r.__v),i=!1,s=function(){i||(i=!0,n.__R=null,o?o(l):l())};n.__R=s;var l=function(){if(!--r.__u){if(r.state.__a){var c=r.state.__a;r.__v.__k[0]=jl(c,c.__c.__P,c.__c.__O)}var a;for(r.setState({__a:r.__b=null});a=r.t.pop();)a.forceUpdate()}},u=t.__h===!0;r.__u++||u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(s,s)},Cr.prototype.componentWillUnmount=function(){this.t=[]},Cr.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=Hl(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&h(Ue,null,e.fallback);return o&&(o.__h=null),[h(Ue,null,t.__a?null:e.children),o]};var ts=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function zc(e){return this.getChildContext=function(){return e.context},e.children}function Wc(e){var t=this,n=e.i;t.componentWillUnmount=function(){Nt(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),e.__v?(t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(r){this.childNodes.push(r),t.i.appendChild(r)},insertBefore:function(r,o){this.childNodes.push(r),t.i.appendChild(r)},removeChild:function(r){this.childNodes.splice(this.childNodes.indexOf(r)>>>1,1),t.i.removeChild(r)}}),Nt(h(zc,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}function Gc(e,t){var n=h(Wc,{__v:e,i:t});return n.containerInfo=t,n}(Gn.prototype=new ot).__a=function(e){var t=this,n=Vl(t.__v),r=t.o.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),ts(t,e,r)):o()};n?n(i):i()}},Gn.prototype.render=function(e){this.u=null,this.o=new Map;var t=xt(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},Gn.prototype.componentDidUpdate=Gn.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){ts(e,n,t)})};var Ul=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Qc=/^(?: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]/,Zc=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Kc=/[A-Z0-9]/g,Jc=typeof document<"u",$c=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function Xc(e,t,n){return t.__k==null&&(t.textContent=""),Nt(e,t),typeof n=="function"&&n(),e?e.__c:null}function qc(e,t,n){return ei(e,t),typeof n=="function"&&n(),e?e.__c:null}ot.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(ot.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var ns=A.event;function Yc(){}function eu(){return this.cancelBubble}function tu(){return this.defaultPrevented}A.event=function(e){return ns&&(e=ns(e)),e.persist=Yc,e.isPropagationStopped=eu,e.isDefaultPrevented=tu,e.nativeEvent=e};var oi,nu={enumerable:!1,configurable:!0,get:function(){return this.class}},rs=A.vnode;A.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,r=t.type,o={};for(var i in n){var s=n[i];if(!(i==="value"&&"defaultValue"in n&&s==null||Jc&&i==="children"&&r==="noscript"||i==="class"||i==="className")){var l=i.toLowerCase();i==="defaultValue"&&"value"in n&&n.value==null?i="value":i==="download"&&s===!0?s="":l==="ondoubleclick"?i="ondblclick":l!=="onchange"||r!=="input"&&r!=="textarea"||$c(n.type)?l==="onfocus"?i="onfocusin":l==="onblur"?i="onfocusout":Zc.test(i)?i=l:r.indexOf("-")===-1&&Qc.test(i)?i=i.replace(Kc,"-$&").toLowerCase():s===null&&(s=void 0):l=i="oninput",l==="oninput"&&o[i=l]&&(i="oninputCapture"),o[i]=s}}r=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=xt(n.children).forEach(function(u){u.props.selected=o.value.indexOf(u.props.value)!=-1})),r=="select"&&o.defaultValue!=null&&(o.value=xt(n.children).forEach(function(u){u.props.selected=o.multiple?o.defaultValue.indexOf(u.props.value)!=-1:o.defaultValue==u.props.value})),n.class&&!n.className?(o.class=n.class,Object.defineProperty(o,"className",nu)):(n.className&&!n.class||n.class&&n.className)&&(o.class=o.className=n.className),t.props=o}(e),e.$$typeof=Ul,rs&&rs(e)};var os=A.__r;A.__r=function(e){os&&os(e),oi=e.__c};var is=A.diffed;A.diffed=function(e){is&&is(e);var t=e.props,n=e.__e;n!=null&&e.type==="textarea"&&"value"in t&&t.value!==n.value&&(n.value=t.value==null?"":t.value),oi=null};var ru={ReactCurrentDispatcher:{current:{readContext:function(e){return oi.__n[e.__c].props.value}}}};function ou(e){return h.bind(null,e)}function Ll(e){return!!e&&e.$$typeof===Ul}function iu(e){return Ll(e)?ti.apply(null,arguments):e}function su(e){return!!e.__k&&(Nt(null,e),!0)}function lu(e){return e&&(e.base||e.nodeType===1&&e)||null}var au=function(e,t){return e(t)},cu=function(e,t){return e(t)},uu=Ue;function zl(e){e()}function fu(e){return e}function du(){return[!1,zl]}var pu=Jr;function hu(e,t){var n=t(),r=Rl({h:{__:n,v:t}}),o=r[0].h,i=r[1];return Jr(function(){o.__=n,o.v=t,_o(o.__,t())||i({h:o})},[e,n,t]),mn(function(){return _o(o.__,o.v())||i({h:o}),e(function(){_o(o.__,o.v())||i({h:o})})},[e]),n}var Wl={useState:Rl,useId:Oc,useReducer:ni,useEffect:mn,useLayoutEffect:Jr,useInsertionEffect:pu,useTransition:du,useDeferredValue:fu,useSyncExternalStore:hu,startTransition:zl,useRef:Wn,useImperativeHandle:Nl,useMemo:wt,useCallback:De,useContext:Rc,useDebugValue:Nc,version:"17.0.2",Children:Vc,render:Xc,hydrate:qc,unmountComponentAtNode:su,createPortal:Gc,createElement:h,createContext:Tc,createFactory:ou,cloneElement:iu,createRef:Ic,Fragment:Ue,isValidElement:Ll,findDOMNode:lu,Component:ot,PureComponent:No,memo:Hc,forwardRef:Pl,flushSync:cu,unstable_batchedUpdates:au,StrictMode:uu,Suspense:Cr,SuspenseList:Gn,lazy:Lc,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:ru};class _n{constructor(t){this.value=t}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return Ct(this.value)}Equals(t){return t==null?!1:it(this.value,t instanceof _n?t.value:t)}CompareTo(t){return t==null?1:ct(this.value,t instanceof _n?t.value:t)}}function $(e){if(e==null)throw new Error("Option has no value");return e instanceof _n?e.value:e}function at(e){return Array.isArray(e)||ArrayBuffer.isView(e)}function mu(e){return e!=null&&typeof e.GetEnumerator=="function"}function gu(e){return e!=null&&typeof e.CompareTo=="function"}function wu(e){return e!=null&&typeof e.Equals=="function"}function _u(e){return e!=null&&typeof e.GetHashCode=="function"}function Gl(e){return e!=null&&typeof e.Dispose=="function"}function J(e){Gl(e)&&e.Dispose()}function Et(){return null}function Tr(e,t){var n,r;return((n=Object.getPrototypeOf(e))===null||n===void 0?void 0:n.constructor)===((r=Object.getPrototypeOf(t))===null||r===void 0?void 0:r.constructor)}class yu{constructor(t){this.iter=t,this.current=Et()}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current}"System.Collections.IEnumerator.get_Current"(){return this.current}"System.Collections.IEnumerator.MoveNext"(){const t=this.iter.next();return this.current=t.value,!t.done}"System.Collections.IEnumerator.Reset"(){throw new Error("JS iterators cannot be reset")}Dispose(){}}function Ce(e){return mu(e)?e.GetEnumerator():new yu(e[Symbol.iterator]())}function $r(e){return{[Symbol.iterator](){return this},next(){const t=e["System.Collections.IEnumerator.MoveNext"](),n=t?e["System.Collections.Generic.IEnumerator`1.get_Current"]():void 0;return{done:!t,value:n}}}}function nt(e,t){let n=e.toString(10);for(;n.length<t;)n="0"+n;return n}function ss(e){const t=e;return typeof t.offset=="number"?t.offset:e.kind===1?0:e.getTimezoneOffset()*-6e4}function bu(e,t){return e=e<0&&t!=null&&t!==10?65535+e+1:e,e.toString(t)}function Rt(e,t){return e=e<0&&t!=null&&t!==10?4294967295+e+1:e,e.toString(t)}class kt{static id(t){return kt.idMap.has(t)||kt.idMap.set(t,++kt.count),kt.idMap.get(t)}}kt.idMap=new WeakMap;kt.count=0;function Ql(e){let t=0,n=5381;const r=e.length;for(;t<r;)n=n*33^e.charCodeAt(t++);return n}function _t(e){return e*2654435761|0}function In(e){return e.length===0?0:e.reduce((t,n)=>(t<<5)+t^n)}function Au(e){return e.getTime()}function vu(e){const t=e.length,n=new Array(t);for(let r=0;r<t;r++)n[r]=Ct(e[r]);return In(n)}function Ct(e){var t;if(e==null)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return _t(e);case"string":return Ql(e);default:{if(_u(e))return e.GetHashCode();if(at(e))return vu(e);if(e instanceof Date)return Au(e);if(((t=Object.getPrototypeOf(e))===null||t===void 0?void 0:t.constructor)===Object){const n=Object.values(e).map(r=>Ct(r));return In(n)}else return _t(kt.id(e))}}}function Oo(e,t,n){if(e==null)return t==null;if(t==null||e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!n(e[r],t[r]))return!1;return!0}function Zl(e,t){return Oo(e,t,it)}function xu(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;n.sort(),r.sort();for(let o=0;o<n.length;o++)if(n[o]!==r[o]||!it(e[n[o]],t[r[o]]))return!1;return!0}function it(e,t){var n;return e===t?!0:e==null?t==null:t==null?!1:wu(e)?e.Equals(t):at(e)?at(t)&&Zl(e,t):typeof e!="object"?!1:e instanceof Date?t instanceof Date&&Kl(e,t)===0:((n=Object.getPrototypeOf(e))===null||n===void 0?void 0:n.constructor)===Object&&xu(e,t)}function Kl(e,t){let n,r;return"offset"in e&&"offset"in t?(n=e.getTime(),r=t.getTime()):(n=e.getTime()+ss(e),r=t.getTime()+ss(t)),n===r?0:n<r?-1:1}function yn(e,t){return e===t?0:e<t?-1:1}function Eu(e,t,n){if(e==null)return t==null?0:1;if(t==null)return-1;if(e.length!==t.length)return e.length<t.length?-1:1;for(let r=0,o=0;r<e.length;r++)if(o=n(e[r],t[r]),o!==0)return o;return 0}function Jl(e,t){return Eu(e,t,ct)}function Cu(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return n.length<r.length?-1:1;n.sort(),r.sort();for(let o=0,i=0;o<n.length;o++){const s=n[o];if(s!==r[o])return s<r[o]?-1:1;if(i=ct(e[s],t[s]),i!==0)return i}return 0}function ct(e,t){var n;return e===t?0:e==null?t==null?0:-1:t==null?1:gu(e)?e.CompareTo(t):at(e)?at(t)?Jl(e,t):-1:typeof e!="object"?e<t?-1:1:e instanceof Date?t instanceof Date?Kl(e,t):-1:((n=Object.getPrototypeOf(e))===null||n===void 0?void 0:n.constructor)===Object?Cu(e,t):-1}function Bo(e,t,n){return e(t,n)>0?t:n}function L(e){const t={};for(const n of e)t[n[0]]=n[1];return t}const Po=Symbol("curried");function q(e,t){if(t==null)return t;const n=$(t);if(n.length>1)return n;const r=(...o)=>{let i=n;for(let s=0;s<e;s++)i=i(o[s]);return i};return r[Po]=n,r}function $l(e,t,n){return r=>t===1?n(...e.concat([r])):$l(e.concat([r]),t-1,n)}function Fn(e,t,n){if(t!=null)if(Po in t){t=t[Po];for(let r=0;r<n.length;r++)t=t(n[r]);return t}else return $l(n,e,t)}function Su(e){let t=0,n="[";for(const r of e){if(t===0)n+=Se(r);else if(t===100){n+="; ...";break}else n+="; "+Se(r);t++}return n+"]"}function Se(e,t=0){var n,r;if(e!=null&&typeof e=="object"){if(typeof e.toString=="function")return e.toString();if(Symbol.iterator in e)return Su(e);{const o=(n=Object.getPrototypeOf(e))===null||n===void 0?void 0:n.constructor;return o===Object&&t<10?"{ "+Object.entries(e).map(([i,s])=>i+" = "+Se(s,t+1)).join(`
|
|
2
|
+
`)+" }":(r=o==null?void 0:o.name)!==null&&r!==void 0?r:""}}return String(e)}function Du(e,t){if(t.length===0)return e;{let n,r=!0;return t.length===1?(n=Se(t[0]),r=n.indexOf(" ")>=0):n=t.map(o=>Se(o)).join(", "),e+(r?" (":" ")+n+(r?")":"")}}class te{get name(){return this.cases()[this.tag]}toJSON(){return this.fields.length===0?this.name:[this.name].concat(this.fields)}toString(){return Du(this.name,this.fields)}GetHashCode(){const t=this.fields.map(n=>Ct(n));return t.splice(0,0,_t(this.tag)),In(t)}Equals(t){return this===t?!0:Tr(this,t)&&this.tag===t.tag?Zl(this.fields,t.fields):!1}CompareTo(t){return this===t?0:Tr(this,t)?this.tag===t.tag?Jl(this.fields,t.fields):this.tag<t.tag?-1:1:-1}}function Iu(e){const t={},n=Object.keys(e);for(let r=0;r<n.length;r++)t[n[r]]=e[n[r]];return t}function Fu(e){return"{ "+Object.entries(e).map(([t,n])=>t+" = "+Se(n)).join(`
|
|
3
|
+
`)+" }"}function ku(e){const t=Object.values(e).map(n=>Ct(n));return In(t)}function Mu(e,t){if(e===t)return!0;if(Tr(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++)if(!it(e[n[r]],t[n[r]]))return!1;return!0}else return!1}function Tu(e,t){if(e===t)return 0;if(Tr(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++){const o=ct(e[n[r]],t[n[r]]);if(o!==0)return o}return 0}else return-1}class le{toJSON(){return Iu(this)}toString(){return Fu(this)}GetHashCode(){return ku(this)}Equals(t){return Mu(this,t)}CompareTo(t){return Tu(this,t)}}class Ge{get contents(){return this.getter()}set contents(t){this.setter(t)}constructor(t,n){typeof n=="function"?(this.getter=t,this.setter=n):(this.getter=()=>t,this.setter=r=>{t=r})}}class Ru{constructor(t){this.message=t}}function Nu(e){return e instanceof Ru||e instanceof Error}function Ou(e){return e instanceof Promise}function Rr(e){return Nu(e)||Ou(e)?e:new Error(String(e))}const Bt=Symbol("numeric");function Xl(e){return typeof e=="number"||(e==null?void 0:e[Bt])}function Bu(e,t){return typeof e=="number"?e<t?-1:e>t?1:0:e.CompareTo(t)}function Ho(e,t){return typeof e=="number"?e*t:e[Bt]().multiply(t)}function Sr(e,t){return typeof e=="number"?e.toFixed(t):e[Bt]().toFixed(t)}function Nr(e,t){return typeof e=="number"?e.toPrecision(t):e[Bt]().toPrecision(t)}function Or(e,t){return typeof e=="number"?e.toExponential(t):e[Bt]().toExponential(t)}function Br(e){return typeof e=="number"?(Number(e)>>>0).toString(16):e[Bt]().toHex()}var V={GetHashCode(){return In([this.s,this.e].concat(this.c))},Equals(e){return!this.cmp(e)},CompareTo(e){return this.cmp(e)},[Bt](){const e=this;return{multiply:t=>e.mul(t),toPrecision:t=>e.toPrecision(t),toExponential:t=>e.toExponential(t),toFixed:t=>e.toFixed(t),toHex:()=>(Number(e)>>>0).toString(16)}}},Pu=28,Hu=1,Zt=1e6,ls=1e6,ju=-29,Vu=29,Uu=!1,cr="[big.js] ",en=cr+"Invalid ",Xr=en+"decimal places",Lu=en+"rounding mode",ql=cr+"Division by zero",st=void 0,zu=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;function Yl(){function e(t){var n=this;if(!(n instanceof e))return t===st?Yl():new e(t);if(t instanceof e)n.s=t.s,n.e=t.e,n.c=t.c.slice(),Wu(n);else{if(typeof t!="string"){if(e.strict===!0)throw TypeError(en+"number");t=t===0&&1/t<0?"-0":String(t)}Gu(n,t)}n.constructor=e}return e.prototype=V,e.DP=Pu,e.RM=Hu,e.NE=ju,e.PE=Vu,e.strict=Uu,e}function Wu(e){if(e.c.length>1&&!e.c[0]){let t=e.c.findIndex(n=>n);e.c=e.c.slice(t),e.e=e.e-t}}function Gu(e,t){var n,r,o;if(!zu.test(t))throw Error(en+"number");for(e.s=t.charAt(0)=="-"?(t=t.slice(1),-1):1,(n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),o=t.length,r=0;r<n&&r<o&&t.charAt(r)=="0";)++r;if(r==o)e.c=[e.e=0];else for(e.e=n-r-1,e.c=[],n=0;r<o;)e.c[n++]=+t.charAt(r++);return e=Pt(e,Ot.DP+1,Ot.RM),e}function Pt(e,t,n,r){var o=e.c;if(n===st&&(n=Ot.RM),n!==0&&n!==1&&n!==2&&n!==3)throw Error(Lu);if(t<1)r=n===3&&(r||!!o[0])||t===0&&(n===1&&o[0]>=5||n===2&&(o[0]>5||o[0]===5&&(r||o[1]!==st))),o.length=1,r?(e.e=e.e-t+1,o[0]=1):o[0]=e.e=0;else if(t<o.length){const i=o.findIndex((s,l)=>l>=t&&s>0)<0;if(r=n===1&&o[t]>=5||n===2&&(o[t]>5||o[t]===5&&(r||o[t+1]!==st||o[t-1]&1))||n===3&&(r||!i),o.length=t--,r)for(;++o[t]>9;)o[t]=0,t--||(++e.e,o.unshift(1));for(t=o.length;!o[--t];)o.pop()}return e}function kn(e,t,n){var r=e.e,o=e.c.join(""),i=o.length;if(t)o=o.charAt(0)+(i>1?"."+o.slice(1):"")+(r<0?"e":"e+")+r;else if(r<0){for(;++r;)o="0"+o;o="0."+o}else if(r>0)if(++r>i)for(r-=i;r--;)o+="0";else r<i&&(o=o.slice(0,r)+"."+o.slice(r));else i>1&&(o=o.charAt(0)+"."+o.slice(1));return e.s<0&&n?"-"+o:o}V.abs=function(){var e=new this.constructor(this);return e.s=1,e};V.cmp=function(o){var t,n=this.constructor,r=new n(this),o=new n(o),i=r.c,s=o.c,l=r.s,u=o.s,c=r.e,a=o.e;if(!i[0]||!s[0])return i[0]?l:s[0]?-u:0;if(l!=u)return l;if(t=l<0,c!=a)return c>a^t?1:-1;for(u=Math.max(i.length,s.length),l=0;l<u;l++)if(c=l<i.length?i[l]:0,a=l<s.length?s[l]:0,c!=a)return c>a^t?1:-1;return 0};V.div=function(r){var t=this.constructor,n=new t(this),r=new t(r),o=n.c,i=r.c,s=n.s==r.s?1:-1,l=t.DP;if(l!==~~l||l<0||l>Zt)throw Error(Xr);if(!i[0])throw Error(ql);if(!o[0])return r.s=s,r.c=[r.e=0],r;var u,c,a,d,f,p=i.slice(),g=u=i.length,_=o.length,w=o.slice(0,u),b=w.length,F=r,ne=F.c=[],oe=0,Q=l+(F.e=n.e-r.e)+1;for(F.s=s,s=Q<0?0:Q,p.unshift(0);b++<u;)w.push(0);do{for(a=0;a<10;a++){if(u!=(b=w.length))d=u>b?1:-1;else for(f=-1,d=0;++f<u;)if(i[f]!=w[f]){d=i[f]>w[f]?1:-1;break}if(d<0){for(c=b==u?i:p;b;){if(w[--b]<c[b]){for(f=b;f&&!w[--f];)w[f]=9;--w[f],w[b]+=10}w[b]-=c[b]}for(;!w[0];)w.shift()}else break}ne[oe++]=d?a:++a,w[0]&&d?w[b]=o[g]||0:w=[o[g]]}while((g++<_||w[0]!==st)&&s--);return!ne[0]&&oe!=1&&(ne.shift(),F.e--,Q--),oe>Q&&Pt(F,Q,t.RM,w[0]!==st),F};V.eq=function(e){return this.cmp(e)===0};V.gt=function(e){return this.cmp(e)>0};V.gte=function(e){return this.cmp(e)>-1};V.lt=function(e){return this.cmp(e)<0};V.lte=function(e){return this.cmp(e)<1};V.minus=V.sub=function(l){var t,n,r,o,i=this.constructor,s=new i(this),l=new i(l),u=s.s,c=l.s;if(u!=c)return l.s=-c,s.plus(l);var a=s.c.slice(),d=s.e,f=l.c,p=l.e;if(!a[0]||!f[0])return f[0]?l.s=-c:a[0]?l=new i(s):l.s=1,l;if(u=d-p){for((o=u<0)?(u=-u,r=a):(p=d,r=f),r.reverse(),c=u;c--;)r.push(0);r.reverse()}else for(n=((o=a.length<f.length)?a:f).length,u=c=0;c<n;c++)if(a[c]!=f[c]){o=a[c]<f[c];break}if(o&&(r=a,a=f,f=r,l.s=-l.s),(c=(n=f.length)-(t=a.length))>0)for(;c--;)a[t++]=0;for(c=t;n>u;){if(a[--n]<f[n]){for(t=n;t&&!a[--t];)a[t]=9;--a[t],a[n]+=10}a[n]-=f[n]}for(;a[--c]===0;)a.pop();for(;a[0]===0;)a.shift(),--p;return a[0]||(l.s=1,a=[p=0]),l.c=a,l.e=p,l};V.mod=function(o){var t,n=this.constructor,r=new n(this),o=new n(o),i=r.s,s=o.s;if(!o.c[0])throw Error(ql);return r.s=o.s=1,t=o.cmp(r)==1,r.s=i,o.s=s,t?new n(r):(i=n.DP,s=n.RM,n.DP=n.RM=0,r=r.div(o),n.DP=i,n.RM=s,this.minus(r.times(o)))};V.plus=V.add=function(s){var t,n,r,o=this.constructor,i=new o(this),s=new o(s);if(i.s!=s.s)return s.s=-s.s,i.minus(s);var l=i.e,u=i.c,c=s.e,a=s.c;if(!u[0]||!a[0])return a[0]||(u[0]?s=new o(i):s.s=i.s),s;if(u=u.slice(),t=l-c){for(t>0?(c=l,r=a):(t=-t,r=u),r.reverse();t--;)r.push(0);r.reverse()}for(u.length-a.length<0&&(r=a,a=u,u=r),t=a.length,n=0;t;u[t]%=10)n=(u[--t]=u[t]+a[t]+n)/10|0;for(n&&(u.unshift(n),++c),t=u.length;u[--t]===0;)u.pop();return s.c=u,s.e=c,s};V.pow=function(e){var t=this.constructor,n=new t(this),r=new t("1"),o=new t("1"),i=e<0;if(e!==~~e||e<-ls||e>ls)throw Error(en+"exponent");for(i&&(e=-e);e&1&&(r=r.times(n)),e>>=1,!!e;)n=n.times(n);return i?o.div(r):r};V.prec=function(e,t){if(e!==~~e||e<1||e>Zt)throw Error(en+"precision");return Pt(new this.constructor(this),e,t)};V.round=function(e,t){if(e===st)e=0;else if(e!==~~e||e<-Zt||e>Zt)throw Error(Xr);return Pt(new this.constructor(this),e+this.e+1,t)};V.sqrt=function(){var e,t,n,r=this.constructor,o=new r(this),i=o.s,s=o.e,l=new r("0.5");if(!o.c[0])return new r(o);if(i<0)throw Error(cr+"No square root");i=Math.sqrt(o+""),i===0||i===1/0?(t=o.c.join(""),t.length+s&1||(t+="0"),i=Math.sqrt(t),s=((s+1)/2|0)-(s<0||s&1),e=new r((i==1/0?"5e":(i=i.toExponential()).slice(0,i.indexOf("e")+1))+s)):e=new r(i+""),s=e.e+(r.DP+=4);do n=e,e=l.times(n.plus(o.div(n)));while(n.c.slice(0,s).join("")!==e.c.slice(0,s).join(""));return Pt(e,(r.DP-=4)+e.e+1,r.RM)};V.times=V.mul=function(o){var t,n=this.constructor,r=new n(this),o=new n(o),i=r.c,s=o.c,l=i.length,u=s.length,c=r.e,a=o.e;if(o.s=r.s==o.s?1:-1,!i[0]||!s[0])return o.c=[o.e=0],o;for(o.e=c+a,l<u&&(t=i,i=s,s=t,a=l,l=u,u=a),t=new Array(a=l+u);a--;)t[a]=0;for(c=u;c--;){for(u=0,a=l+c;a>c;)u=t[a]+s[c]*i[a-c-1]+u,t[a--]=u%10,u=u/10|0;t[a]=u}for(u?++o.e:t.shift(),c=t.length;!t[--c];)t.pop();return o.c=t,o};V.toExponential=function(e,t){var n=this,r=n.c[0];if(e!==st){if(e!==~~e||e<0||e>Zt)throw Error(Xr);for(n=Pt(new n.constructor(n),++e,t);n.c.length<e;)n.c.push(0)}return kn(n,!0,!!r)};V.toFixed=function(e,t){var n=this,r=n.c[0];if(e!==st){if(e!==~~e||e<0||e>Zt)throw Error(Xr);for(n=Pt(new n.constructor(n),e+n.e+1,t),e=e+n.e+1;n.c.length<e;)n.c.push(0)}return kn(n,!1,!!r)};V.toJSON=V.toString=function(){var e=this,t=e.constructor;return kn(e,e.e<=t.NE||e.e>=t.PE,!!e.c[0])};V.toNumber=function(){var e=Number(kn(this,!0,!0));if(this.constructor.strict===!0&&!this.eq(e.toString()))throw Error(cr+"Imprecise conversion");return e};V.toPrecision=function(e,t){var n=this,r=n.constructor,o=n.c[0];if(e!==st){if(e!==~~e||e<1||e>Zt)throw Error(en+"precision");for(n=Pt(new r(n),e,t);n.c.length<e;)n.c.push(0)}return kn(n,e<=n.e||n.e<=r.NE||n.e>=r.PE,!!o)};V.valueOf=function(){var e=this,t=e.constructor;if(t.strict===!0)throw Error(cr+"valueOf disallowed");return kn(e,e.e<=t.NE||e.e>=t.PE,!0)};var Ot=Yl();new Ot(0);new Ot(1);new Ot(-1);new Ot("79228162514264337593543950335");new Ot("-79228162514264337593543950335");var jo;(function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"})(jo||(jo={}));function Qu(e,t){const[,n,r,o]=e;return{sign:n||"",prefix:r||"",digits:o,radix:t}}function as(e,t){switch(t){case 8:return e?[0,255]:[-128,127];case 16:return e?[0,65535]:[-32768,32767];case 32:return e?[0,4294967295]:[-2147483648,2147483647];default:throw new Error("Invalid bit size.")}}function Zu(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.")}}function Ku(e,t){if(t&jo.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}}function Ju(e,t,n){const o=/^\s*([\+\-])?(0[xXoObB])?([0-9a-fA-F]+)\s*$/.exec(e.replace(/_/g,""));if(o!=null){const[,,i,s]=o;if(n=n||Ku(i,t),!Zu(n).test(s))return Qu(o,n)}return null}function $u(e,t,n,r,o){const i=Ju(e,t,o);if(i!=null){let s=Number.parseInt(i.sign+i.digits,i.radix);if(!Number.isNaN(s)){const[l,u]=as(!0,r);!n&&i.radix!==10&&s>=l&&s<=u&&(s=s<<32-r>>32-r);const[c,a]=as(n,r);if(s>=c&&s<=a)return s}}throw new Error("Input string was not in a correct format.")}function Mn(e,t,n,r,o){try{return o.contents=$u(e,t,n,r),!0}catch{return!1}}function Xu(e){return e===-2147483648?e:-e}var je=null;try{je=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{}function qe(e,t,n){this.low=e|0,this.high=t|0,this.unsigned=!!n}qe.prototype.GetHashCode=function(){let e=this.unsigned?1:0;return e=(e<<5)+e^this.high,e=(e<<5)+e^this.low,e};qe.prototype.Equals=function(e){return Pe(this,e)};qe.prototype.CompareTo=function(e){return ur(this,e)};qe.prototype.toString=function(e){return er(this,e)};qe.prototype.toJSON=function(){return er(this)};qe.prototype[Bt]=function(){const e=this;return{multiply:t=>Be(e,t),toPrecision:t=>String(e)+0 .toPrecision(t).substr(1),toExponential:t=>String(e)+0 .toExponential(t).substr(1),toFixed:t=>String(e)+0 .toFixed(t).substr(1),toHex:()=>er(e.unsigned?e:hf(ff(e),!0),16)}};qe.prototype.__isLong__;Object.defineProperty(qe.prototype,"__isLong__",{value:!0});function Ye(e){return(e&&e.__isLong__)===!0}var cs={},us={};function Tn(e,t){var n,r,o;return t?(e>>>=0,(o=0<=e&&e<256)&&(r=us[e],r)?r:(n=G(e,(e|0)<0?-1:0,!0),o&&(us[e]=n),n)):(e|=0,(o=-128<=e&&e<128)&&(r=cs[e],r)?r:(n=G(e,e<0?-1:0,!1),o&&(cs[e]=n),n))}function $e(e,t){if(isNaN(e))return t?Mt:Xe;if(t){if(e<0)return Mt;if(e>=ta)return tf}else{if(e<=-ds)return Ve;if(e+1>=ds)return ef}return e<0?pe($e(-e,t)):G(e%bn|0,e/bn|0,t)}function G(e,t,n){return new qe(e,t,n)}var Pr=Math.pow;function ea(e,t,n){if(e.length===0)throw Error("empty string");if(e==="NaN"||e==="Infinity"||e==="+Infinity"||e==="-Infinity")return Xe;if(typeof t=="number"?(n=t,t=!1):t=!!t,n=n||10,n<2||36<n)throw RangeError("radix");var r=e.indexOf("-");if(r>0)throw Error("interior hyphen");if(r===0)return pe(ea(e.substring(1),t,n));for(var o=$e(Pr(n,8)),i=Xe,s=0;s<e.length;s+=8){var l=Math.min(8,e.length-s),u=parseInt(e.substring(s,s+l),n);if(l<8){var c=$e(Pr(n,l));i=Kt(Be(i,c),$e(u))}else i=Be(i,o),i=Kt(i,$e(u))}return i.unsigned=t,i}function Ht(e,t){return typeof e=="number"?$e(e,t):typeof e=="string"?ea(e,t):G(e.low,e.high,typeof t=="boolean"?t:e.unsigned)}var fs=1<<16,qu=1<<24,bn=fs*fs,ta=bn*bn,ds=ta/2,ps=Tn(qu),Xe=Tn(0),Mt=Tn(0,!0),Qn=Tn(1),Yu=Tn(1,!0),hs=Tn(-1),ef=G(-1,2147483647,!1),tf=G(-1,-1,!0),Ve=G(0,-2147483648,!1);function An(e){return e.unsigned?e.low>>>0:e.low}function Yn(e){return e.unsigned?(e.high>>>0)*bn+(e.low>>>0):e.high*bn+(e.low>>>0)}function er(e,t){if(t=t||10,t<2||36<t)throw RangeError("radix");if(Gt(e))return"0";if(He(e))if(Pe(e,Ve)){var n=$e(t),r=yt(e,n),o=vn(Be(r,n),e);return er(r,t)+An(o).toString(t)}else return"-"+er(pe(e),t);for(var i=$e(Pr(t,6),e.unsigned),s=e,l="";;){var u=yt(s,i),c=An(vn(s,Be(u,i)))>>>0,a=c.toString(t);if(s=u,Gt(s))return a+l;for(;a.length<6;)a="0"+a;l=""+a+l}}function Gt(e){return e.high===0&&e.low===0}function He(e){return!e.unsigned&&e.high<0}function ms(e){return(e.low&1)===1}function Pe(e,t){return Ye(t)||(t=Ht(t)),e.unsigned!==t.unsigned&&e.high>>>31===1&&t.high>>>31===1?!1:e.high===t.high&&e.low===t.low}function gs(e,t){return ur(e,t)<0}function yo(e,t){return ur(e,t)>0}function nf(e,t){return ur(e,t)>=0}function ur(e,t){if(Ye(t)||(t=Ht(t)),Pe(e,t))return 0;var n=He(e),r=He(t);return n&&!r?-1:!n&&r?1:e.unsigned?t.high>>>0>e.high>>>0||t.high===e.high&&t.low>>>0>e.low>>>0?-1:1:He(vn(e,t))?-1:1}function pe(e){return!e.unsigned&&Pe(e,Ve)?Ve:Kt(of(e),Qn)}function Kt(e,t){Ye(t)||(t=Ht(t));var n=e.high>>>16,r=e.high&65535,o=e.low>>>16,i=e.low&65535,s=t.high>>>16,l=t.high&65535,u=t.low>>>16,c=t.low&65535,a=0,d=0,f=0,p=0;return p+=i+c,f+=p>>>16,p&=65535,f+=o+u,d+=f>>>16,f&=65535,d+=r+l,a+=d>>>16,d&=65535,a+=n+s,a&=65535,G(f<<16|p,a<<16|d,e.unsigned)}function vn(e,t){return Ye(t)||(t=Ht(t)),Kt(e,pe(t))}function Be(e,t){if(Gt(e))return e.unsigned?Mt:Xe;if(Ye(t)||(t=Ht(t)),je){var n=je.mul(e.low,e.high,t.low,t.high);return G(n,je.get_high(),e.unsigned)}if(Gt(t))return e.unsigned?Mt:Xe;if(Pe(e,Ve))return ms(t)?Ve:Xe;if(Pe(t,Ve))return ms(e)?Ve:Xe;if(He(e))return He(t)?Be(pe(e),pe(t)):pe(Be(pe(e),t));if(He(t))return pe(Be(e,pe(t)));if(gs(e,ps)&&gs(t,ps))return $e(Yn(e)*Yn(t),e.unsigned);var r=e.high>>>16,o=e.high&65535,i=e.low>>>16,s=e.low&65535,l=t.high>>>16,u=t.high&65535,c=t.low>>>16,a=t.low&65535,d=0,f=0,p=0,g=0;return g+=s*a,p+=g>>>16,g&=65535,p+=i*a,f+=p>>>16,p&=65535,p+=s*c,f+=p>>>16,p&=65535,f+=o*a,d+=f>>>16,f&=65535,f+=i*c,d+=f>>>16,f&=65535,f+=s*u,d+=f>>>16,f&=65535,d+=r*a+o*c+i*u+s*l,d&=65535,G(p<<16|g,d<<16|f,e.unsigned)}function yt(e,t){if(Ye(t)||(t=Ht(t)),Gt(t))throw Error("division by zero");if(je){if(!e.unsigned&&e.high===-2147483648&&t.low===-1&&t.high===-1)return e;var n=(e.unsigned?je.div_u:je.div_s)(e.low,e.high,t.low,t.high);return G(n,je.get_high(),e.unsigned)}if(Gt(e))return e.unsigned?Mt:Xe;var r,o,i;if(e.unsigned){if(t.unsigned||(t=uf(t)),yo(t,e))return Mt;if(yo(t,cf(e,1)))return Yu;i=Mt}else{if(Pe(e,Ve)){if(Pe(t,Qn)||Pe(t,hs))return Ve;if(Pe(t,Ve))return Qn;var s=af(e,1);return r=lf(yt(s,t),1),Pe(r,Xe)?He(t)?Qn:hs:(o=vn(e,Be(t,r)),i=Kt(r,yt(o,t)),i)}else if(Pe(t,Ve))return e.unsigned?Mt:Xe;if(He(e))return He(t)?yt(pe(e),pe(t)):pe(yt(pe(e),t));if(He(t))return pe(yt(e,pe(t)));i=Xe}for(o=e;nf(o,t);){r=Math.max(1,Math.floor(Yn(o)/Yn(t)));for(var l=Math.ceil(Math.log(r)/Math.LN2),u=l<=48?1:Pr(2,l-48),c=$e(r),a=Be(c,t);He(a)||yo(a,o);)r-=u,c=$e(r,e.unsigned),a=Be(c,t);Gt(c)&&(c=Qn),i=Kt(i,c),o=vn(o,a)}return i}function rf(e,t){if(Ye(t)||(t=Ht(t)),je){var n=(e.unsigned?je.rem_u:je.rem_s)(e.low,e.high,t.low,t.high);return G(n,je.get_high(),e.unsigned)}return vn(e,Be(yt(e,t),t))}function of(e){return G(~e.low,~e.high,e.unsigned)}function sf(e,t){return Ye(t)||(t=Ht(t)),G(e.low&t.low,e.high&t.high,e.unsigned)}function lf(e,t){return Ye(t)&&(t=An(t)),(t&=63)===0?e:t<32?G(e.low<<t,e.high<<t|e.low>>>32-t,e.unsigned):G(0,e.low<<t-32,e.unsigned)}function af(e,t){return Ye(t)&&(t=An(t)),(t&=63)===0?e:t<32?G(e.low>>>t|e.high<<32-t,e.high>>t,e.unsigned):G(e.high>>t-32,e.high>=0?0:-1,e.unsigned)}function cf(e,t){if(Ye(t)&&(t=An(t)),t&=63,t===0)return e;var n=e.high;if(t<32){var r=e.low;return G(r>>>t|n<<32-t,n>>>t,e.unsigned)}else return G(t===32?n:n>>>t-32,0,e.unsigned)}function uf(e){return e.unsigned?e:G(e.low,e.high,!0)}function ff(e,t){return t?df(e):pf(e)}function df(e){var t=e.high,n=e.low;return[n&255,n>>>8&255,n>>>16&255,n>>>24,t&255,t>>>8&255,t>>>16&255,t>>>24]}function pf(e){var t=e.high,n=e.low;return[t>>>24,t>>>16&255,t>>>8&255,t&255,n>>>24,n>>>16&255,n>>>8&255,n&255]}function hf(e,t,n){return n?mf(e,t):gf(e,t)}function mf(e,t){return new qe(e[0]|e[1]<<8|e[2]<<16|e[3]<<24,e[4]|e[5]<<8|e[6]<<16|e[7]<<24,t)}function gf(e,t){return new qe(e[4]<<24|e[5]<<16|e[6]<<8|e[7],e[0]<<24|e[1]<<16|e[2]<<8|e[3],t)}const Le=Kt,ze=Be,ut=yt,wf=rf,_f=pe,Rn=sf,qr=ur,he=G,ft=An,yf=Yn;function ee(e,t,n){let r=e,o=0;switch(n){case 0:r=e<<24>>24,o=r;break;case 4:r=e<<24>>>24;break;case 1:r=e<<16>>16,o=r;break;case 5:r=e<<16>>>16;break;case 2:r=e>>0,o=r;break;case 6:r=e>>>0;break}return G(r,o>>31,t)}class bf{constructor(t,n,r,o){this.declaringType=t,this.tag=n,this.name=r,this.fields=o}}class O{constructor(t,n,r,o,i,s,l){this.fullname=t,this.generics=n,this.construct=r,this.parent=o,this.fields=i,this.cases=s,this.enumCases=l}toString(){return de(this)}GetHashCode(){return na(this)}Equals(t){return Vo(this,t)}}function Ft(e){return e.generics!=null?e.generics:[]}function na(e){const t=Ql(e.fullname),n=Ft(e).map(na);return In([t,...n])}function Vo(e,t){return e.fullname===""?t.fullname===""&&Oo(Hr(e),Hr(t),([n,r],[o,i])=>n===o&&Vo(r,i)):e.fullname===t.fullname&&Oo(Ft(e),Ft(t),Vo)}function tr(e,t,n,r){return new O(e,t,n,r)}function tn(e,t,n,r){return new O(e,t,n,void 0,r)}function Af(e,t,n,r){const o=new O(e,t,n,void 0,void 0,()=>{const i=n.prototype.cases();return r().map((s,l)=>new bf(o,l,i[l],s))});return o}function ii(e){return new O("Microsoft.FSharp.Core.FSharpOption`1",[e])}function Yr(e){return new O("Microsoft.FSharp.Collections.FSharpList`1",[e])}const vf=new O("System.Object");new O("Microsoft.FSharp.Core.Unit");new O("System.Char");const dt=new O("System.String");new O("System.Boolean");new O("System.SByte");new O("System.Byte");new O("System.Int16");new O("System.UInt16");const ye=new O("System.Int32");new O("System.UInt32");new O("System.Int64");new O("System.UInt64");new O("System.Int128");new O("System.UInt128");new O("System.IntPtr");new O("System.UIntPtr");new O("System.Half");new O("System.Single");new O("System.Double");new O("System.Decimal");new O("System.Numerics.BigInteger");function si(e){if(Array.isArray(e))return e[0];if(e instanceof O){const t=eo(e);if(t!=null)return si(t)+"[]";{const n=e.fullname.lastIndexOf(".");return n===-1?e.fullname:e.fullname.substr(n+1)}}else return e.name}function de(e){const t=eo(e);return t!=null?de(t)+"[]":e.generics==null||e.generics.length===0?e.fullname:e.fullname+"["+e.generics.map(n=>de(n)).join(",")+"]"}function xf(e){return eo(e)!=null}function eo(e){var t;return e.fullname==="[]"&&((t=e.generics)===null||t===void 0?void 0:t.length)===1?e.generics[0]:void 0}function Ef(e){return e.generics!=null&&e.generics.length>0}function ra(e){return e.enumCases!=null&&e.enumCases.length>0}function Cf(e){return e.generics==null?e:new O(e.fullname,e.generics.map(()=>vf))}function Sf(e){var t;return(t=e.generics)===null||t===void 0?void 0:t[0]}function cn(e){if(ra(e)&&e.enumCases!=null)return e.enumCases.map(t=>t[1]);throw new Error(`${e.fullname} is not an enum type`)}function Df(e,t){if(e.enumCases!=null)if(typeof t=="string"){for(const n of e.enumCases)if(n[0]===t)return n;throw new Error(`'${t}' was not found in ${e.fullname}`)}else{for(const n of e.enumCases)if(n[1]===t)return n;return["",t]}else throw new Error(`${e.fullname} is not an enum type`)}function un(e,t){const n=parseInt(t,10);return Df(e,isNaN(n)?t:n)[1]}function If(e){if(e.cases!=null)return e.cases();throw new Error(`${e.fullname} is not an F# union type`)}function Hr(e){if(e.fields!=null)return e.fields();throw new Error(`${e.fullname} is not an F# record type`)}function Ff(e){if(oa(e)&&e.generics!=null)return e.generics;throw new Error(`${e.fullname} is not a tuple type`)}function kf(e){return e instanceof O?e.cases!=null:e instanceof te}function Mf(e){return e instanceof O?e.fields!=null:e instanceof le}function oa(e){return e.fullname.startsWith("System.Tuple")}function Tf(e){return e.fields==null?[]:e.fields}function ws(e,t){const n=(e.fields||[]).length;if(t.length!==n)throw new Error(`Expected an array of length ${n} but got ${t.length}`);return e.declaringType.construct!=null?new e.declaringType.construct(e.tag,t):{}}function Rf(e,t){const n=Hr(e);if(n.length!==t.length)throw new Error(`Expected an array of length ${n.length} but got ${t.length}`);return e.construct!=null?new e.construct(...t):n.reduce((r,[o,i],s)=>(r[o]=t[s],r),{})}function Nf(e,t){return e}function li(e){const t=e<0;e=Math.abs(e);const n=~~(e/36e5),r=e%36e5/6e4;return(t?"-":"+")+nt(n,2)+":"+nt(r,2)}function jr(e,t){const n=e.toISOString();return t==="first"?n.substring(0,n.indexOf("T")):n.substring(n.indexOf("T")+1,n.length-1)}function Of(e,t){if(t)return e.toISOString();{const n=e.kind==null?!0:e.kind===2;return nt(e.getFullYear(),4)+"-"+nt(e.getMonth()+1,2)+"-"+nt(e.getDate(),2)+"T"+nt(e.getHours(),2)+":"+nt(e.getMinutes(),2)+":"+nt(e.getSeconds(),2)+"."+nt(e.getMilliseconds(),3)+(n?li(e.getTimezoneOffset()*-6e4):"")}}function Bf(e,t){const n=e.toISOString();return n.substring(0,n.length-1)+li(t)}function ia(e,t,n){return t.replace(/(\w)\1*/g,r=>{let o=Number.NaN;switch(r.substring(0,1)){case"y":const i=n?e.getUTCFullYear():e.getFullYear();o=r.length<4?i%100:i;break;case"M":o=(n?e.getUTCMonth():e.getMonth())+1;break;case"d":o=n?e.getUTCDate():e.getDate();break;case"H":o=n?e.getUTCHours():e.getHours();break;case"h":const s=n?e.getUTCHours():e.getHours();o=s>12?s%12:s;break;case"m":o=n?e.getUTCMinutes():e.getMinutes();break;case"s":o=n?e.getUTCSeconds():e.getSeconds();break;case"f":o=n?e.getUTCMilliseconds():e.getMilliseconds();break}return Number.isNaN(o)?r:nt(o,r.length)})}function Pf(e,t){var n,r,o;const i=new Date(e.getTime()+((n=e.offset)!==null&&n!==void 0?n:0));if(typeof t!="string")return i.toISOString().replace(/\.\d+/,"").replace(/[A-Z]|\.\d+/g," ")+li((r=e.offset)!==null&&r!==void 0?r:0);if(t.length===1)switch(t){case"D":case"d":return jr(i,"first");case"T":case"t":return jr(i,"second");case"O":case"o":return Bf(i,(o=e.offset)!==null&&o!==void 0?o:0);default:throw new Error("Unrecognized Date print format")}else return ia(i,t,!0)}function Hf(e,t){const n=e.kind===1;if(typeof t!="string")return n?e.toUTCString():e.toLocaleString();if(t.length===1)switch(t){case"D":case"d":return n?jr(e,"first"):e.toLocaleDateString();case"T":case"t":return n?jr(e,"second"):e.toLocaleTimeString();case"O":case"o":return Of(e,n);default:throw new Error("Unrecognized Date print format")}else return ia(e,t,n)}function sa(e,t,n){return e.offset!=null?Pf(e,t):Hf(e,t)}function ai(e,t){const n=new Date(e);return n.kind=(t==null?0:t)|0,n}function jf(){return ai(-621355968e5,0)}function la(e){function t(){throw new Error(`The string is not a valid Date: ${e}`)}(e==null||e.trim()==="")&&t(),e.length===10&&e[4]==="-"&&e[7]==="-"&&(e+="T00:00:00");let n=new Date(e),r=null;if(isNaN(n.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(o!=null){let i,s=0;if(o[2]!=null){const l=o[2].split(":");s=parseInt(l[0],10)*3600+parseInt(l[1]||"0",10)*60+parseFloat(l[2]||"0"),o[3]!=null&&o[3].toUpperCase()==="PM"&&(s+=720)}if(o[4]!=null){if(o[1]!=null)i=new Date(o[1]+" UTC");else{const l=new Date;i=new Date(l.getUTCFullYear()+"/"+(l.getUTCMonth()+1)+"/"+l.getUTCDate())}if(o[4]==="Z")r="Z";else{let l=parseInt(o[5],10)*60+parseInt(o[6]||"0",10);o[4][0]==="-"&&(l*=-1),r=l,s-=l*60}}else if(o[1]!=null)i=new Date(o[1]);else{const l=new Date;i=new Date(l.getFullYear()+"/"+(l.getMonth()+1)+"/"+l.getDate())}n=new Date(i.getTime()+s*1e3),n=new Date(n.getTime()+(n.getTimezoneOffset()-i.getTimezoneOffset())*6e4)}else t();isNaN(n.getTime())&&t()}return[n,r]}function Vf(e,t=!1){const[n,r]=la(e),o=r!=null?t&&r==="Z"?1:2:0;return ai(n.getTime(),o)}function Uf(e,t){try{return t.contents=Vf(e),!0}catch{return!1}}function Lf(e){return e.kind===1?e:ai(e.getTime(),1)}function zf(e,t=0){if((t&-284)!==0)throw new Error("RegexOptions only supports: IgnoreCase, Multiline, Compiled, Singleline and ECMAScript");let n="gu";return n+=t&1?"i":"",n+=t&2?"m":"",n+=t&16?"s":"",new RegExp(e,n)}function ci(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function _s(e,t,n=0){if(t==null)throw new Error("Input cannot ve null");if(!e.global)throw new Error("Non-global RegExp");e.lastIndex=n;const r=[];let o,i=-1;for(;(o=e.exec(t))!=null;)o.index===i?e.lastIndex++:(i=o.index,r.push(o));return r}function Wf(e,t,n,r,o=0){function i(){let s=arguments[0];if(r){r--;const l=[],u=arguments.length,c=typeof arguments[u-1]!="string";let a=c?u-3:u-2;for(let d=0;d<a;d++)l.push(arguments[d]);l.index=arguments[a++],l.input=arguments[a++],c&&(l.groups=arguments[a]),s=n(l)}return s}if(typeof e=="string"){const s=e;e=zf(t,r!=null?r:0),t=s,r=void 0}if(typeof n=="function")return r=r==null?-1:r,t.substring(0,o)+t.substring(o).replace(e,i);if(n=n.replace(/\$0/g,s=>"$&").replace(/\${([^}]+)}/g,"$<$1>"),r!=null){let s;const l=t.substring(o),u=_s(e,l),c=_s.length>r?(s=u[r-1],l.substring(0,s.index+s[0].length)):l;return t.substring(0,o)+c.replace(e,n)+t.substring(o+c.length)}else return t.replace(e,n)}const Ln=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g,Gf=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function aa(e,t){return Bu(e,t)<0}function nn(e){return{input:e,cont:Kf(e)}}function ca(e,t){return typeof t=="string"?e(t):t.cont(e)}function Nn(e){return ca(t=>t,e)}function Qf(e){return ca(t=>{throw new Error(t)},e)}function Zf(e,t,n,r,o){let i="";if(t=t||"",o=o||"",Xl(e))switch(o.toLowerCase()!=="x"&&(aa(e,0)?(e=Ho(e,-1),i="-"):t.indexOf(" ")>=0?i=" ":t.indexOf("+")>=0&&(i="+")),r=r==null?null:parseInt(r,10),o){case"f":case"F":r=r!=null?r:6,e=Sr(e,r);break;case"g":case"G":e=r!=null?Nr(e,r):Nr(e);break;case"e":case"E":e=r!=null?Or(e,r):Or(e);break;case"x":e=Br(e);break;case"X":e=Br(e).toUpperCase();break;default:e=String(e);break}else e instanceof Date?e=sa(e):e=Se(e);if(n=typeof n=="number"?n:parseInt(n,10),isNaN(n))e=i+e;else{const s=t.indexOf("0")>=0,l=t.indexOf("-")>=0,u=l||!s?" ":"0";u==="0"?(e=nr(e,n-i.length,u,l),e=i+e):e=nr(i+e,n,u,l)}return e}function ua(e,t,n,r="",o=-1){return(...i)=>{let s=r;const l=t.slice(),u=n.slice();for(const c of i){const[,,a,d,f,p]=u[0];let g=d;if(o>=0)g=o,o=-1;else if(g==="*"){if(c<0)throw new Error("Non-negative number required");o=c;continue}s+=l[0],s+=Zf(c,a,g,f,p),l.splice(0,1),u.splice(0,1)}return u.length===0?(s+=l[0],e(s)):ua(e,l,u,s,o)}}function Kf(e){return t=>{Ln.lastIndex=0;const n=[],r=[];let o=0,i=Ln.exec(e);for(;i;){const s=i.index+(i[1]||"").length;n.push(e.substring(o,s).replace(/%%/g,"%")),r.push(i),o=Ln.lastIndex,Ln.lastIndex-=1,i=Ln.exec(e)}return n.length===0?t(e.replace(/%%/g,"%")):(n.push(e.substring(o).replace(/%%/g,"%")),ua(t,n,r))}}function Jf(e,...t){let n;return typeof e=="object"?(n=String(t[0]),t.shift()):n=e,n.replace(Gf,(r,o,i,s,l,u)=>{if(o<0||o>=t.length)throw new Error("Index must be greater or equal to zero and less than the arguments' length.");let c=t[o];if(Xl(c))switch(l=l==null?null:parseInt(l,10),s){case"f":case"F":l=l!=null?l:2,c=Sr(c,l);break;case"g":case"G":c=l!=null?Nr(c,l):Nr(c);break;case"e":case"E":c=l!=null?Or(c,l):Or(c);break;case"p":case"P":l=l!=null?l:2,c=Sr(Ho(c,100),l)+" %";break;case"d":case"D":c=l!=null?bo(String(c),l,"0"):String(c);break;case"x":case"X":c=l!=null?bo(Br(c),l,"0"):Br(c),s==="X"&&(c=c.toUpperCase());break;default:if(u){let a="";c=u.replace(/([0#,]+)(\.[0#]+)?/,(d,f,p)=>{aa(c,0)&&(c=Ho(c,-1),a="-"),p=p==null?"":p.substring(1),c=Sr(c,Math.max(p.length,0));let[g,_]=c.split(".");_||(_="");const w=f.replace(/,/g,"").replace(/^#+/,"").length;g=bo(g,w,"0");const b=p.replace(/#+$/,"").length;if(b>_.length?_=Xf(_,b,"0"):b<_.length&&(_=_.substring(0,b)+_.substring(b).replace(/0+$/,"")),f.indexOf(",")>0){const F=g.length%3,ne=Math.floor(g.length/3);let oe=F>0?g.substr(0,F)+(ne>0?",":""):"";for(let Q=0;Q<ne;Q++)oe+=g.substr(F+Q*3,3)+(Q<ne-1?",":"");g=oe}return _.length>0?g+"."+_:g}),c=a+c}}else c instanceof Date?c=sa(c,u||s):c=Se(c);return i=parseInt((i||" ").substring(1),10),isNaN(i)||(c=nr(String(c),Math.abs(i)," ",i<0)),c})}function $f(e){return typeof e!="string"||e.length===0}function St(e,t){return Array.isArray(t)?t.join(e):Array.from(t).join(e)}function nr(e,t,n,r){n=n||" ",t=t-e.length;for(let o=0;o<t;o++)e=r?e+n:n+e;return e}function bo(e,t,n){return nr(e,t,n)}function Xf(e,t,n){return nr(e,t,n,!0)}function qf(e,t,n){return e.replace(new RegExp(ci(t),"g"),n)}function Yf(e,t,n,r){if(n=typeof n=="number"?n:void 0,r=typeof r=="number"?r:0,n&&n<0)throw new Error("Count cannot be less than zero");if(n===0)return[];const o=(r&1)===1,i=(r&2)===2;t=t||[],t=t.filter(a=>a).map(ci),t=t.length>0?t:["\\s"];const s=[],l=new RegExp(t.join("|"),"g");let u=!0,c=0;do{const a=l.exec(e);if(a===null){const d=i?e.substring(c).trim():e.substring(c);(!o||d.length>0)&&s.push(d),u=!1}else{const d=i?e.substring(c,a.index).trim():e.substring(c,a.index);(!o||d.length>0)&&(n!=null&&s.length+1===n?(s.push(i?e.substring(c).trim():e.substring(c)),u=!1):s.push(d)),c=l.lastIndex}}while(u);return s}function ed(e,...t){if(t.length===0)return e.trim();const n="["+ci(t.join(""))+"]+";return e.replace(new RegExp("^"+n),"").replace(new RegExp(n+"$"),"")}const fa="Collection was empty.",td="An index satisfying the predicate was not found in the collection.";function Ee(e){return e==null||e instanceof _n?new _n(e):e}function nd(e){return e==null?[]:[$(e)]}function da(e,t){return e!=null?$(e):t}function ui(e,t){return typeof e=="function"?new e(t):new Array(t)}function rd(){throw new Error("Arrays had different lengths")}function fi(e,t,n,r){const o=t|0;return e.fill(r,o,o+n)}function xn(e,t,n){const r=t.length|0,o=ui(n,r);for(let i=0;i<=r-1;i++)o[i]=e(t[i]);return o}function od(e,t){const n=ui(t,1);return n[0]=e,n}function On(e,t,n){if(e<0)throw new Error("The input must be non-negative\\nParameter name: count");const r=ui(n,e);for(let o=0;o<=e-1;o++)r[o]=t(o);return r}function id(e){return e.slice()}function sd(e,t){return t.find(e)}function ld(e,t,n){const r=[];for(let o=0;o<=t.length-1;o++){const i=e(t[o]);if(i!=null){const s=$(i);r.push(s)}}return it(n,Et())?r:xn(o=>o,r,n)}function di(e,t,n){return n.reduce(e,t)}function ad(e,t,n){return t.reduceRight((r,o)=>e(o,r),n)}function cd(e,t,n,r){let o=r;t.length!==n.length&&rd();const i=t.length|0;for(let s=1;s<=i;s++)o=e(s-1,t[i-s],n[i-s],o);return o}function ud(e,t,n,r){return cd((o,i,s,l)=>e(i,s,l),t,n,r)}class pt extends le{constructor(t,n){super(),this.head=t,this.tail=n}toString(){return"["+St("; ",this)+"]"}Equals(t){const n=this;return n===t?!0:((o,i)=>{e:for(;;){const s=o,l=i,u=s.tail,c=l.tail;if(u!=null)if(c!=null){const a=u,d=c;if(it(s.head,l.head)){o=a,i=d;continue e}else return!1}else return!1;else return c==null}})(n,t)}GetHashCode(){return((r,o,i)=>{e:for(;;){const s=r,l=o,u=i,c=u.tail;if(c!=null){const a=c;if(s>18)return l|0;r=s+1,o=(l<<1)+Ct(u.head)+631*s,i=a;continue e}else return l|0}})(0,0,this)|0}toJSON(){const t=this;return Array.from(t)}CompareTo(t){return((o,i)=>{e:for(;;){const s=o,l=i,u=s.tail,c=l.tail;if(u!=null)if(c!=null){const a=u,d=c,f=ct(s.head,l.head)|0;if(f===0){o=a,i=d;continue e}else return f|0}else return 1;else return c!=null?-1:0}})(this,t)|0}GetEnumerator(){return dd(this)}[Symbol.iterator](){return $r(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return Ce(this)}}class fd{constructor(t){this.xs=t,this.it=this.xs,this.current=Et()}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current}"System.Collections.IEnumerator.get_Current"(){return this.current}"System.Collections.IEnumerator.MoveNext"(){const t=this,n=t.it.tail;if(n!=null){const r=n;return t.current=t.it.head,t.it=r,!0}else return!1}"System.Collections.IEnumerator.Reset"(){const t=this;t.it=t.xs,t.current=Et()}Dispose(){}}function dd(e){return new fd(e)}function ht(){return new pt(Et(),void 0)}function fr(e,t){return new pt(e,t)}function to(e){return e.tail==null}function pa(e){return((n,r)=>{e:for(;;){const o=n,s=r.tail;if(s!=null){n=o+1,r=s;continue e}else return o|0}})(0,e)|0}function pi(e){if(e.tail!=null)return e.head;throw new Error(fa+"\\nParameter name: list")}function rn(e){const t=e.tail;if(t!=null)return t;throw new Error(fa+"\\nParameter name: list")}function pd(){throw new Error(td)}function We(){return ht()}function Ne(e,t){return fr(e,t)}function xe(e){return fr(e,ht())}function R(e){return to(e)}function hd(e){return pa(e)}function x(e){return pi(e)}function T(e){return rn(e)}function no(e){const t=pa(e)|0,n=fi(new Array(t),0,t,null);return((o,i)=>{e:for(;;){const s=o,l=i;if(!to(l)){n[s]=pi(l),o=s+1,i=rn(l);continue e}break}})(0,e),n}function jt(e,t,n){let r=t,o=n;for(;!to(o);)r=e(r,x(o)),o=rn(o);return r}function ha(e){return jt((t,n)=>fr(n,t),ht(),e)}function ma(e,t){jt((n,r)=>{e(r)},void 0,t)}function Z(e,t){let n=t;for(let r=e.length-1;r>=0;r--)n=fr(e[r],n);return n}function S(e){return Z(e,ht())}function md(e){let t,n;if(at(e))return S(e);if(e instanceof pt)return e;{const r=ht();let o=r;const i=Ce(e);try{for(;i["System.Collections.IEnumerator.MoveNext"]();){const u=i["System.Collections.Generic.IEnumerator`1.get_Current"]();o=(t=o,n=new pt(u,void 0),t.tail=n,n)}}finally{J(i)}const s=o,l=ht();return s.tail=l,rn(r)}}function ga(e){const t=ht();let n=t;const r=s=>{n=jt((l,u)=>{const c=new pt(u,void 0);return l.tail=c,c},n,s)};if(at(e))e.forEach(r);else if(e instanceof pt)ma(r,e);else{const s=Ce(e);try{for(;s["System.Collections.IEnumerator.MoveNext"]();)r(s["System.Collections.Generic.IEnumerator`1.get_Current"]())}finally{J(s)}}const o=n,i=ht();return o.tail=i,rn(t)}function ro(e,t){return jt((n,r)=>fr(r,n),t,ha(e))}function Vr(e,t){const n=ht(),r=jt((i,s)=>{const l=new pt(e(s),void 0);return i.tail=l,l},n,t),o=ht();return r.tail=o,rn(n)}function gd(e,t){return(r=>{e:for(;;){const o=r;if(to(o))return;{const i=e(pi(o));if(i==null){r=rn(o);continue e}else return i}}})(t)}function wd(e,t){return gd(n=>e(n)?Ee(n):void 0,t)}function _d(e,t){const n=wd(e,t);return n==null?pd():$(n)}class m extends te{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Ok","Error"]}}function Dt(e,t){return t.tag===0?new m(0,[e(t.fields[0])]):new m(1,[t.fields[0]])}class wa extends te{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Choice1Of2","Choice2Of2"]}}function yd(e){return new wa(0,[e])}function bd(e){return new wa(1,[e])}function Ad(e){throw new Error(e)}const vd="Enumeration already finished.",xd="Enumeration has not started. Call MoveNext.",_a="The input sequence has an insufficient number of elements.",Ed="Reset is not supported on this enumerator.";function Cd(){throw new Error(Ed)}function hi(){throw new Error(xd)}function Uo(){throw new Error(vd)}class Sd{constructor(t){this.f=t}toString(){const t=this,n=4;let r=0,o="seq [";const i=Ce(t);try{for(;r<n&&i["System.Collections.IEnumerator.MoveNext"]();)r>0&&(o=o+"; "),o=o+Se(i["System.Collections.Generic.IEnumerator`1.get_Current"]()),r=r+1|0;return r===n&&(o=o+"; ..."),o+"]"}finally{J(i)}}GetEnumerator(){return this.f()}[Symbol.iterator](){return $r(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}function Dd(e){return new Sd(e)}class Id{constructor(t,n,r){this.current=t,this.next=n,this.dispose=r}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current()}"System.Collections.IEnumerator.get_Current"(){return this.current()}"System.Collections.IEnumerator.MoveNext"(){return this.next()}"System.Collections.IEnumerator.Reset"(){Cd()}Dispose(){this.dispose()}}function oo(e,t,n){return new Id(e,t,n)}function Fd(e){let t,n,r=!1,o=!1,i;const s=()=>{if(o=!0,n!=null){const l=n;try{J(l)}finally{n=void 0}}if(t!=null){const l=t;try{J(l)}finally{t=void 0}}};return oo(()=>(r?o&&Uo():hi(),i!=null?$(i):Uo()),()=>{let l;if(r||(r=!0),o)return!1;{let u;for(;u==null;){const c=t,a=n;if(c!=null)if(a!=null){const d=a;if(d["System.Collections.IEnumerator.MoveNext"]())i=Ee(d["System.Collections.Generic.IEnumerator`1.get_Current"]()),u=!0;else try{J(d)}finally{n=void 0}}else{const d=c;d["System.Collections.IEnumerator.MoveNext"]()?n=(l=d["System.Collections.Generic.IEnumerator`1.get_Current"](),Ce(l)):(s(),u=!1)}else t=Ce(e)}return $(u)}},()=>{o||s()})}function kd(e,t){return oo(()=>t["System.Collections.Generic.IEnumerator`1.get_Current"](),()=>t["System.Collections.IEnumerator.MoveNext"](),()=>{try{J(t)}finally{e()}})}function ya(e,t,n){let r=!1,o,i=Ee(e());const s=()=>{if(i!=null){const u=$(i);try{n(u)}finally{i=void 0}}},l=()=>{try{s()}finally{o=void 0}};return oo(()=>(r||hi(),o!=null?$(o):Uo()),()=>{if(r||(r=!0),i!=null){const u=$(i);let c;try{c=t(u)}catch(a){throw l(),a}return c!=null?(o=c,!0):(l(),!1)}else return!1},s)}function Md(e,t){let n,r=t;return oo(()=>{if(n!=null){const o=n[0];return n[1],o}else return hi()},()=>(n=e(r),n!=null?(n[0],r=n[1],!0):!1),()=>{})}function Td(e,t){t==null&&Ad(e)}function Bn(e){return Dd(e)}function Jt(e){return Td("source",e),Ce(e)}function M(e){return Bn(()=>Ce(e()))}function ba(e){return Bn(()=>Fd(e))}function Rd(e,t){return Bn(()=>Md(e,t))}function Aa(){return M(()=>new Array(0))}function k(e){return M(()=>od(e,null))}function lt(e){return at(e)?S(e):e instanceof pt?e:md(e)}function Nd(e,t,n){return Bn(()=>ya(e,t,n))}function Od(e,t,n){return Bn(()=>{let r=-1;return ya(e,o=>(r=r+1|0,t(r,o)),n)})}function se(e,t){return ba([e,t])}function Bd(e,t,n){const r=Jt(t);try{const o=Jt(n);try{let i=0,s=r["System.Collections.IEnumerator.MoveNext"](),l=o["System.Collections.IEnumerator.MoveNext"]();for(;i===0&&s&&l;)i=e(r["System.Collections.Generic.IEnumerator`1.get_Current"](),o["System.Collections.Generic.IEnumerator`1.get_Current"]())|0,i===0&&(s=r["System.Collections.IEnumerator.MoveNext"](),l=o["System.Collections.IEnumerator.MoveNext"]());return(i!==0?i:s?1:l?-1:0)|0}finally{J(o)}}finally{J(r)}}function fn(e,t,n){const r=Jt(t);try{let o=!1;for(;!o&&r["System.Collections.IEnumerator.MoveNext"]();)o=n.Equals(e,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return o}finally{J(r)}}function va(e,t,n){const r=Jt(n);try{let o=t;for(;r["System.Collections.IEnumerator.MoveNext"]();)o=e(o,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return o}finally{J(r)}}function mi(e,t){va((n,r)=>{e(r)},void 0,t)}function Oe(e,t){return Nd(()=>Jt(t),n=>n["System.Collections.IEnumerator.MoveNext"]()?Ee(e(n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{J(n)})}function Pd(e,t){return Bn(()=>{const n=Jt(t);try{for(let r=1;r<=e;r++)if(!n["System.Collections.IEnumerator.MoveNext"]())throw new Error(_a+"\\nParameter name: source");return kd(()=>{},n)}catch(r){throw J(n),r}})}function Hd(e,t){return Od(()=>Jt(t),(n,r)=>{if(n<e){if(r["System.Collections.IEnumerator.MoveNext"]())return Ee(r["System.Collections.Generic.IEnumerator`1.get_Current"]());throw new Error(_a+"\\nParameter name: source")}else return},n=>{J(n)})}function xa(e,t){return M(()=>ba(Oe(e,t)))}class Ea{constructor(t=!1){this._id=0,this._cancelled=t,this._listeners=new Map}get isCancelled(){return this._cancelled}cancel(){if(!this._cancelled){this._cancelled=!0;for(const[,t]of this._listeners)t()}}addListener(t){const n=this._id;return this._listeners.set(this._id++,t),n}removeListener(t){return this._listeners.delete(t)}register(t,n){const r=this,o=this.addListener(n==null?t:()=>t(n));return{Dispose(){r.removeListener(o)}}}Dispose(){}}class io extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,io.prototype)}}class gi{static get maxTrampolineCallCount(){return 2e3}constructor(){this.callCount=0}incrementAndCheck(){return this.callCount++>gi.maxTrampolineCallCount}hijack(t){this.callCount=0,setTimeout(t,0)}}function At(e){return t=>{if(t.cancelToken.isCancelled)t.onCancel(new io);else if(t.trampoline.incrementAndCheck())t.trampoline.hijack(()=>{try{e(t)}catch(n){t.onError(Rr(n))}});else try{e(t)}catch(n){t.onError(Rr(n))}}}function jd(e,t){return At(n=>{e({onSuccess:r=>{try{t(r)(n)}catch(o){n.onError(Rr(o))}},onError:n.onError,onCancel:n.onCancel,cancelToken:n.cancelToken,trampoline:n.trampoline})})}function Vd(e){return At(t=>t.onSuccess(e))}class Ud{Bind(t,n){return jd(t,n)}Combine(t,n){return this.Bind(t,()=>n)}Delay(t){return At(n=>t()(n))}For(t,n){const r=t[Symbol.iterator]();let o=r.next();return this.While(()=>!o.done,this.Delay(()=>{const i=n(o.value);return o=r.next(),i}))}Return(t){return Vd(t)}ReturnFrom(t){return t}TryFinally(t,n){return At(r=>{t({onSuccess:o=>{n(),r.onSuccess(o)},onError:o=>{n(),r.onError(o)},onCancel:o=>{n(),r.onCancel(o)},cancelToken:r.cancelToken,trampoline:r.trampoline})})}TryWith(t,n){return At(r=>{t({onSuccess:r.onSuccess,onCancel:r.onCancel,cancelToken:r.cancelToken,trampoline:r.trampoline,onError:o=>{try{n(o)(r)}catch(i){r.onError(Rr(i))}}})})}Using(t,n){return this.TryFinally(n(t),()=>t.Dispose())}While(t,n){return t()?this.Bind(n,()=>this.While(t,n)):this.Return(void 0)}Zero(){return At(t=>t.onSuccess(void 0))}}const I=new Ud;class wi extends te{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["ImportId"]}}function Ld(e){return new wi(0,[e.fields[0]+1])}function zd(e,t){return new wi(0,[Bo(yn,e.fields[0],t.fields[0])])}(()=>{let e;const t=new wi(0,[0]);return e=n=>jt(zd,t,n),n=>Ld(e(n))})();class Wd extends le{constructor(t,n,r,o,i,s,l,u){super(),this.ImportId=t|0,this.User=n,this.Filename=r,this.NumberOfRecords=o|0,this.CompletedSuccessfully=i|0,this.CompletedFailed=s|0,this.NextRow=l,this.StartTime=u}}function Gd(){return tn("Basic.Profile.Domain.Import.Api.Admin.Read.ActiveImportDto",[],Wd,()=>[["ImportId",ye],["User",dt],["Filename",dt],["NumberOfRecords",ye],["CompletedSuccessfully",ye],["CompletedFailed",ye],["NextRow",ii(ye)],["StartTime",tr("System.DateTime")]])}class Qd extends le{constructor(t,n,r,o,i,s,l,u){super(),this.ImportId=t|0,this.User=n,this.Filename=r,this.NumberOfRecords=o|0,this.Succeeded=i|0,this.Failed=s|0,this.StartTime=l,this.StopTime=u}}function Zd(){return tn("Basic.Profile.Domain.Import.Api.Admin.Read.ImportHistoryDto",[],Qd,()=>[["ImportId",ye],["User",dt],["Filename",dt],["NumberOfRecords",ye],["Succeeded",ye],["Failed",ye],["StartTime",tr("System.DateTime")],["StopTime",tr("System.DateTime")]])}class Ca extends le{constructor(t,n){super(),this.ActiveImport=t,this.ImportHistory=n}}function Sa(){return tn("Basic.Profile.Domain.Import.Api.Admin.Read.AccountImportsDto",[],Ca,()=>[["ActiveImport",ii(Gd())],["ImportHistory",Yr(Zd())]])}new Ca(void 0,We());class Kd extends le{constructor(t,n){super(),this.Column=t,this.Message=n}}function Jd(){return tn("Basic.Profile.Domain.Import.Api.Admin.Read.FieldError",[],Kd,()=>[["Column",dt],["Message",dt]])}class $d extends le{constructor(t,n){super(),this.RowId=t|0,this.FieldErrors=n}}function Xd(){return tn("Basic.Profile.Domain.Import.Api.Admin.Read.RowValidationError",[],$d,()=>[["RowId",ye],["FieldErrors",Yr(Jd())]])}class qd extends te{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["InvalidFileContentType","InvalidFileName","ExceedsMaxRows","FileFormatError","NoData","NoFile","MultipleFiles","RowValidationErrors","UnknownAccount","ImportInProgress"]}}function Yd(){return Af("Basic.Profile.Domain.Import.Api.Admin.Read.PostImportError",[],qd,()=>[[],[],[],[["Item",dt]],[],[],[],[["Item",Yr(Xd())]],[],[]])}class ep extends le{constructor(t,n,r,o,i,s,l,u,c,a){super(),this.ImportId=t|0,this.User=n,this.Filename=r,this.TotalRecordCount=o|0,this.SucceededRecordCount=i|0,this.FailedRecordCount=s|0,this.FailedRecords=l,this.RemainingRecordCount=u|0,this.StartTime=c,this.StopTime=a}}function tp(){return tn("Basic.Profile.Domain.Import.Api.Admin.Read.ImportDto",[],ep,()=>[["ImportId",ye],["User",dt],["Filename",dt],["TotalRecordCount",ye],["SucceededRecordCount",ye],["FailedRecordCount",ye],["FailedRecords",Yr(rp())],["RemainingRecordCount",ye],["StartTime",tr("System.DateTime")],["StopTime",ii(tr("System.DateTime"))]])}class np extends le{constructor(t,n){super(),this.RowId=t|0,this.Reason=n}}function rp(){return tn("Basic.Profile.Domain.Import.Api.Admin.Read.FailedImportRecordDto",[],np,()=>[["RowId",ye],["Reason",dt]])}class op{constructor(){}}function ip(){return new op}function _i(e,t){return I.Delay(t)}const yi=ip();function Ao(e){}function sp(e){const t=new Ea(typeof e=="boolean"?e:!1);return typeof e=="number"&&setTimeout(()=>{t.cancel()},e),t}function lp(e){e.cancel()}const ap=new Ea;function cp(e){return At(t=>{e({onSuccess:n=>t.onSuccess(yd(n)),onError:n=>t.onSuccess(bd(n)),onCancel:t.onCancel,cancelToken:t.cancelToken,trampoline:t.trampoline})})}function up(e){return At(t=>e([t.onSuccess,t.onError,t.onCancel]))}function fp(e){return At(t=>{let n;const r=setTimeout(()=>{t.cancelToken.removeListener(n),t.onSuccess(void 0)},e);n=t.cancelToken.addListener(()=>{clearTimeout(r),t.onCancel(new io)})})}function dp(e,t){return pp(e,t)}function Da(e,t){return dp(e,t)}function pp(e,t,n,r,o){typeof t!="function"&&(o=t,t=void 0);const i=new gi;e({onSuccess:t||Ao,onError:n||Ao,onCancel:r||Ao,cancelToken:o||ap,trampoline:i})}class so extends te{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class hp extends te{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Header"]}}class Ia extends te{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Empty","Text","Binary","Form"]}}class dr extends le{constructor(t,n,r,o,i,s,l,u){super(),this.url=t,this.method=n,this.headers=r,this.withCredentials=o,this.overridenMimeType=i,this.overridenResponseType=s,this.timeout=l,this.content=u}}class dn extends te{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class Fa extends le{constructor(t,n,r,o,i,s){super(),this.statusCode=t|0,this.responseText=n,this.responseType=r,this.responseUrl=o,this.responseHeaders=i,this.content=s}}class ka{constructor(t,n){this.k=t,this.v=n}}function rr(e,t){return new ka(e,t)}function re(e){return e.k}function Ae(e){return e.v}class Y extends ka{constructor(t,n,r,o,i){super(t,n),this.left=r,this.right=o,this.h=i|0}}function Jn(e,t,n,r,o){return new Y(e,t,n,r,o)}function we(e){return e.left}function _e(e){return e.right}function Tt(e){return e.h}function Ma(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=r;if(o instanceof Y){e=Ma(n+1,we(o)),t=_e(o);continue e}else return n+1|0}else return n|0}}function mp(e){return Ma(0,e)}function Ze(e,t,n,r){let o;const i=e;if(i!=null){const c=i;o=c instanceof Y?Tt(c):1}else o=0;let s;const l=r;if(l!=null){const c=l;s=c instanceof Y?Tt(c):1}else s=0;const u=(o<s?s:o)|0;return u===0?rr(t,n):Jn(t,n,e,r,u+1)}function ys(e,t,n,r){let o,i,s,l,u;const c=e;if(c!=null){const f=c;u=f instanceof Y?Tt(f):1}else u=0;let a;const d=r;if(d!=null){const f=d;a=f instanceof Y?Tt(f):1}else a=0;if(a>u+2){const f=$(r);if(f instanceof Y)if(o=we(f),(o!=null?(i=o,i instanceof Y?Tt(i):1):0)>u+1){const p=$(we(f));if(p instanceof Y)return Ze(Ze(e,t,n,we(p)),re(p),Ae(p),Ze(_e(p),re(f),Ae(f),_e(f)));throw new Error("internal error: Map.rebalance")}else return Ze(Ze(e,t,n,we(f)),re(f),Ae(f),_e(f));else throw new Error("internal error: Map.rebalance")}else if(u>a+2){const f=$(e);if(f instanceof Y)if(s=_e(f),(s!=null?(l=s,l instanceof Y?Tt(l):1):0)>a+1){const p=$(_e(f));if(p instanceof Y)return Ze(Ze(we(f),re(f),Ae(f),we(p)),re(p),Ae(p),Ze(_e(p),t,n,r));throw new Error("internal error: Map.rebalance")}else return Ze(we(f),re(f),Ae(f),Ze(_e(f),t,n,r));else throw new Error("internal error: Map.rebalance")}else return Ze(e,t,n,r)}function En(e,t,n,r){if(r!=null){const o=r,i=e.Compare(t,re(o))|0;return o instanceof Y?i<0?ys(En(e,t,n,we(o)),re(o),Ae(o),_e(o)):i===0?Jn(t,n,we(o),_e(o),Tt(o)):ys(we(o),re(o),Ae(o),En(e,t,n,_e(o))):i<0?Jn(t,n,void 0,r,2):i===0?rr(t,n):Jn(t,n,r,void 0,2)}else return rr(t,n)}function Ta(e,t,n){e:for(;;){const r=e,o=t,i=n;if(i!=null){const s=i,l=r.Compare(o,re(s))|0;if(l===0)return Ee(Ae(s));if(s instanceof Y){e=r,t=o,n=l<0?we(s):_e(s);continue e}else return}else return}}function gp(e,t,n){const r=Ta(e,t,n);if(r==null)throw new Error;return $(r)}function wp(e,t,n){e:for(;;){const r=e,o=t,i=n;if(i!=null){const s=i,l=r.Compare(o,re(s))|0;if(s instanceof Y)if(l<0){e=r,t=o,n=we(s);continue e}else{if(l===0)return!0;e=r,t=o,n=_e(s);continue e}else return l===0}else return!1}}function Ra(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=r;if(o instanceof Y){Ra(n,we(o)),n(re(o),Ae(o)),e=n,t=_e(o);continue e}else n(re(o),Ae(o))}break}}function _p(e,t){Ra(e,t)}function Lo(e,t){if(t!=null){const n=t;if(n instanceof Y){const r=Lo(e,we(n)),o=e(re(n),Ae(n)),i=Lo(e,_e(n));return Jn(re(n),o,r,i,Tt(n))}else return rr(re(n),e(re(n),Ae(n)))}else return void 0}function yp(e,t){return Lo(e,t)}function bp(e,t,n){let r=n;_p((o,i)=>{t[r]=[o,i],r=r+1|0},e)}function Ap(e,t){return jt((n,r)=>En(e,r[0],r[1],n),void 0,t)}function vp(e,t,n){e:for(;;){const r=e,o=t,i=n;if(i["System.Collections.IEnumerator.MoveNext"]()){const s=i["System.Collections.Generic.IEnumerator`1.get_Current"]();e=r,t=En(r,s[0],s[1],o),n=i;continue e}else return o}}function xp(e,t){let n=void 0;for(let r=0;r<=t.length-1;r++){const o=t[r];n=En(e,o[0],o[1],n)}return n}function Na(e,t){if(at(t))return xp(e,t);if(t instanceof pt)return Ap(e,t);{const n=Ce(t);try{return vp(e,void 0,n)}finally{J(n)}}}class Ep extends le{constructor(t,n){super(),this.stack=t,this.started=n}}function Oa(e){e:for(;;){const t=e;if(R(t))return We();{const n=T(t),r=x(t);if(r!=null){const o=r;if(o instanceof Y){e=Z([we(o),rr(re(o),Ae(o)),_e(o)],n);continue e}else return t}else{e=n;continue e}}}}function bs(e){return new Ep(Oa(xe(e)),!1)}function Cp(){throw new Error("enumeration not started")}function Sp(){throw new Error("enumeration already finished")}function As(e){if(e.started){const t=e.stack;if(R(t))return Sp();if(x(t)!=null){const n=x(t);if(n instanceof Y)throw new Error("Please report error: Map iterator, unexpected stack for current");return[re(n),Ae(n)]}else throw new Error("Please report error: Map iterator, unexpected stack for current")}else return Cp()}function Dp(e){if(e.started){const t=e.stack;if(R(t))return!1;if(x(t)!=null){if(x(t)instanceof Y)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=Oa(T(t)),!R(e.stack)}else throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}else return e.started=!0,!R(e.stack)}function vs(e){let t=bs(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return As(t)},"System.Collections.IEnumerator.get_Current"(){return As(t)},"System.Collections.IEnumerator.MoveNext"(){return Dp(t)},"System.Collections.IEnumerator.Reset"(){t=bs(e)},Dispose(){}}}class Ur{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return Tp(this)|0}Equals(t){const n=this;if(t instanceof Ur){const r=Ce(n);try{const o=Ce(t);try{const i=()=>{const s=r["System.Collections.IEnumerator.MoveNext"]();if(s===o["System.Collections.IEnumerator.MoveNext"]())if(s){const l=r["System.Collections.Generic.IEnumerator`1.get_Current"](),u=o["System.Collections.Generic.IEnumerator`1.get_Current"]();return it(l[0],u[0])&&it(l[1],u[1])?i():!1}else return!0;else return!1};return i()}finally{J(o)}}finally{J(r)}}else return!1}toString(){return"map ["+St("; ",Oe(n=>Jf("({0}, {1})",n[0],n[1]),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(){const t=this;return Array.from(t)}GetEnumerator(){return vs(this.tree)}[Symbol.iterator](){return $r(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return vs(this.tree)}CompareTo(t){const n=this;if(t instanceof Ur)return Bd((r,o)=>{const i=n.comparer.Compare(r[0],o[0])|0;return(i!==0?i:ct(r[1],o[1]))|0},n,t)|0;throw new Error("not comparable\\nParameter name: obj")}"System.Collections.Generic.ICollection`1.Add2B595"(t){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"(t){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Contains2B595"(t){const n=this;return Es(n,t[0])&&it(xs(n,t[0]),t[1])}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){bp(this.tree,t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return vo(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return vo(this)|0}get size(){return vo(this)|0}clear(){throw new Error("Map cannot be mutated")}delete(t){throw new Error("Map cannot be mutated")}entries(){return Oe(n=>[n[0],n[1]],this)}get(t){return xs(this,t)}has(t){return Es(this,t)}keys(){return Oe(n=>n[0],this)}set(t,n){throw new Error("Map cannot be mutated")}values(){return Oe(n=>n[1],this)}forEach(t,n){const r=this;mi(o=>{Fn(2,t,[o[1]])(o[0])(r)},r)}}function pr(e,t){return new Ur(e,t)}function Ip(e){return pr(e,void 0)}function Fp(e,t,n){return pr(e.comparer,En(e.comparer,t,n,e.tree))}function xs(e,t){return gp(e.comparer,t,e.tree)}function kp(e,t){return pr(e.comparer,yp(t,e.tree))}function vo(e){return mp(e.tree)}function Es(e,t){return wp(e.comparer,t,e.tree)}function Mp(e,t){return Ta(e.comparer,t,e.tree)}function Tp(e){const t=(o,i)=>(o<<1)+i+631;let n=0;const r=Ce(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const o=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n=t(n,Ct(o[0]))|0,n=t(n,Ct(o[1]))|0}}finally{J(r)}return n|0}function Rp(e,t,n){return Fp(n,e,t)}function Np(e,t){return Mp(t,e)}function Op(e,t){return kp(t,e)}function Bp(e,t){return pr(t,Na(t,e))}function Pp(e,t){return pr(t,Na(t,e))}function Ba(e){return Ip(e)}function bi(e){return new hp(0,["Authorization",e])}const Lt=new dr("",new so(0,[]),We(),!1,void 0,void 0,void 0,new Ia(0,[]));new Fa(0,"","","",Ba({Compare:yn}),new dn(0,[""]));function Cs(e,t){return $f(t)?[t]:Yf(t,[e],void 0,0)}function Hp(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"}}function Ai(e){return new dr(e,Lt.method,Lt.headers,Lt.withCredentials,Lt.overridenMimeType,Lt.overridenResponseType,Lt.timeout,Lt.content)}function vi(e,t){return new dr(t.url,e,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function xi(e,t){return new dr(t.url,t.method,ro(t.headers,xe(e)),t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function jp(e,t){return new dr(t.url,t.method,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,e)}function Ei(e){return up(t=>{const n=new XMLHttpRequest;n.open(Hp(e.method),e.url),n.onreadystatechange=()=>{let u,c,a,d,f,p,g;n.readyState===4&&t[0]((u=(c=n.responseType,c===""||c==="text"?n.responseText:""),a=n.status|0,d=n.responseType,f=(p=n.responseType,p===""?new dn(0,[n.responseText]):p==="text"?new dn(0,[n.responseText]):p==="arraybuffer"?new dn(2,[n.response]):p==="blob"?new dn(1,[n.response]):new dn(3,[n.response])),g=Pp(ld(_=>{const w=S(Cs(":",_));if(!R(w))return[x(w).toLocaleLowerCase(),St(":",T(w)).trim()]},Cs(`\r
|
|
4
|
+
`,n.getAllResponseHeaders()),null),{Compare:yn}),new Fa(a,u,d,n.responseURL,g,f)))};const r=Ce(e.headers);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const u=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n.setRequestHeader(u.fields[0],u.fields[1])}}finally{J(r)}n.withCredentials=e.withCredentials;const o=e.overridenMimeType;if(o!=null){const u=o;n.overrideMimeType(u)}const i=e.overridenResponseType;i==null||(i.tag===1?n.responseType="blob":i.tag===2?n.responseType="arraybuffer":n.responseType="text");const s=e.timeout;if(s!=null){const u=s|0;n.timeout=u|0}const l=e.content;switch(l.tag){case 1:{n.send(Ee(l.fields[0]));break}case 3:{n.send(Ee(l.fields[0]));break}case 2:{n.send(Ee(l.fields[0]));break}default:n.send()}})}class v extends te{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class or extends te{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["PascalCase","CamelCase","SnakeCase"]}}function Ss(e){return e.slice(void 0,0+1).toLowerCase()+e.slice(1,e.length)}function Vp(e,t){switch(e.tag){case 2:return Wf(Ss(t),"[A-Z]","_$0").toLowerCase();case 0:return t;default:return Ss(t)}}const Up=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,Ds=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,Lp=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function zp(e){function t(r){return r.replace(Ds,"$1-$2-$3-$4-$5")}const n=e.trim().toLowerCase();if(Up.test(n))return ed(n,"{","}","(",")");if(Ds.test(n))return t(n);if(Lp.test(n))return t(n.replace(/[\{\},]|0x/g,""));throw new Error("Guid should contain 32 digits with 4 dashes: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx")}function Wp(e,t){try{return t.contents=zp(e),!0}catch{return!1}}class Pa extends le{constructor(t,n){super(),this.bound=t|0,this.digits=n}}function Ha(e,t){e:for(;;){const n=e,r=t;if(r===0)return 1;if(r%2===0){e=n*n,t=~~(r/2);continue e}else return n*Ha(n*n,~~(r/2))|0}}he(2013265921,0,!1);he(2013265921,0,!0);const Gp=29;On(Gp-1,e=>Ha(2,e),Int32Array);function zo(e){return e.bound}function Zn(e,t){return e.digits[t]}function Wo(e,t){return ee(Zn(e,t),!1,2)}function Lr(e,t,n){e.digits[t]=n|0}function Ci(e,t){e:for(;;){const n=e,r=t;if(r===0)return he(1,0,!1);if(r%2===0){e=ze(n,n),t=~~(r/2);continue e}else return ze(n,Ci(ze(n,n),~~(r/2)))}}function Cn(e,t){e:for(;;){const n=e,r=t;if(r===0)return 1;if(r%2===0){e=n*n,t=~~(r/2);continue e}else return n*Cn(n*n,~~(r/2))|0}}function Qp(e){let t=0;for(let n=0;n<=e.bound-1;n++)t=e.digits[n]+(t<<3)|0;return t|0}const Sn=24,Qt=16777216,mt=he(16777216,0,!1),Pn=he(16777215,0,!1);he(16777215,0,!0);function $t(e){return new Pa(e,new Int32Array(e))}function Zp(e){return new Pa(e.bound,id(e.digits))}function gt(e){const n=((r,o)=>{e:for(;;){const i=r,s=o;if(s===-1||i[s]!==0)return s+1|0;r=i,o=s-1;continue e}})(e.digits,e.bound-1)|0;return e.bound=n|0,e}const Is=2,Fs=3;function hr(e){const t=(e<0?0:e)|0;if(t<Qt){const n=$t(1);return n.digits[0]=t|0,gt(n)}else{const n=$t(Is);for(let r=0;r<=Is-1;r++)n.digits[r]=~~(t/Cn(Qt,r))%Qt|0;return gt(n)}}function Kp(e){const t=qr(e,he(0,0,!1))<0?he(0,0,!1):e,n=$t(Fs);for(let r=0;r<=Fs-1;r++)n.digits[r]=~~ft(wf(ut(t,Ci(mt,r)),mt))|0;return gt(n)}function Jp(e){if(e.bound===1)return e.digits[0]|0;{let t=0;for(let n=e.bound-1;n>=0;n--)t=e.digits[n]+Qt*t|0;return t|0}}const $p=hr(1),Xp=hr(0);function Ie(e){return e.bound-1}function be(e){return e.bound===0}function ks(e,t){return e.bound===t.bound?((r,o,i)=>{e:for(;;){const s=r,l=o,u=i;if(u===-1)return!0;if(s[u]===l[u]){r=s,o=l,i=u-1;continue e}else return!1}})(e.digits,t.digits,e.bound-1):!1}function qp(e,t,n,r){return e.bound+t<n.bound+r?-1:e.bound+t>n.bound+t?1:((i,s,l)=>{e:for(;;){const u=i,c=s,a=l;if(a===-1)return 0;{const d=(a<t?0:u[a-t])|0,f=(a<r?0:c[a-r])|0;if(d===f){i=u,s=c,l=a-1;continue e}else return d<f?-1:1}}})(e.digits,n.digits,e.bound+t-1)|0}function Yp(e,t){return e.bound<t.bound?-1:e.bound>t.bound?1:((r,o,i)=>{e:for(;;){const s=r,l=o,u=i;if(u===-1)return 0;if(s[u]===l[u]){r=s,o=l,i=u-1;continue e}else return s[u]<l[u]?-1:1}})(e.digits,t.digits,e.bound-1)|0}function Ms(e,t){return Yp(e,t)===-1}function eh(e,t){const n=$t(2),r=ze(ee(e,!1,2),ee(t,!1,2));return Lr(n,0,~~ft(Rn(r,Pn))),Lr(n,1,~~ft(ut(r,mt))),gt(n)}function ja(e,t,n){e:for(;;){const r=e,o=t,i=n;if(qr(o,he(0,0,!1))>0){const s=Le(Wo(r,i),o);Lr(r,i,~~ft(Rn(s,Pn))),e=r,t=ut(s,mt),n=i+1;continue e}break}}function Ts(e,t){const n=zo(e)|0,r=$t(n+1),o=ee(t,!1,2);let i=he(0,0,!1);for(let s=0;s<=n-1;s++){const l=Le(Le(i,Wo(r,s)),ze(Wo(e,s),o));Lr(r,s,~~ft(Rn(l,Pn))),i=ut(l,mt)}return ja(r,i,n),gt(r)}function th(e,t){const n=$t(e.bound+t.bound),r=n.digits;for(let o=0;o<=e.bound-1;o++){const i=ee(e.digits[o],!1,2);let s=he(0,0,!1),l=o;for(let u=0;u<=t.bound-1;u++){const c=ee(t.digits[u],!1,2),a=Le(Le(ee(r[l],!1,2),s),ze(i,c));r[l]=~~ft(Rn(a,Pn))|0,s=ut(a,mt),l=l+1|0}ja(n,s,l)}return gt(n)}function nh(e,t){const n=zo(e)===1,r=zo(t)===1;return n&&r?eh(Zn(e,0),Zn(t,0)):n?Ts(t,Zn(e,0)):r?Ts(e,Zn(t,0)):th(e,t)}class rh extends le{constructor(t,n,r,o,i,s,l){super(),this.bigL=t|0,this.twoToBigL=n|0,this.k=r|0,this.bigK=o|0,this.bigN=i|0,this.split=s|0,this.splits=l}}function Me(e,t,n,r){return new rh(e,Cn(2,e),t,n,r,~~(Sn/e),On(~~(Sn/e),o=>Cn(2,e*o),Int32Array))}const oh=[Me(1,28,268435456,268435456),Me(2,26,67108864,134217728),Me(3,24,16777216,50331648),Me(4,22,4194304,16777216),Me(5,20,1048576,5242880),Me(6,18,262144,1572864),Me(7,16,65536,458752),Me(8,14,16384,131072),Me(9,12,4096,36864),Me(10,10,1024,10240),Me(11,8,256,2816),Me(12,6,64,768),Me(13,4,16,208)];On(Sn,e=>Cn(2,e)-1,Int32Array);On(Sn,e=>Cn(2,e),Int32Array);On(Sn,e=>Ci(he(2,0,!1),e),null);~~(oh[0].bigN/Sn);function ih(e,t){return nh(e,t)}function sh(e,t,n,r){const o=Ie(e)|0,i=e.digits,s=Ie(n)|0,l=n.digits,u=ee(t,!1,2);let c=0,a=ze(u,ee(l[0],!1,2));for(;qr(a,he(0,0,!1))>0||c<s;){if(c>o)throw new Error("scaleSubInPlace: pre-condition did not apply, result would be -ve");let d=~~ft(Rn(a,Pn)),f=ut(a,mt);d<=i[c+r]?i[c+r]=i[c+r]-d|0:(i[c+r]=i[c+r]+(Qt-d)|0,f=Le(f,he(1,0,!1))),c<s?a=Le(f,ze(u,ee(l[c+1],!1,2))):a=f,c=c+1|0}gt(e)}function lh(e,t,n,r){const o=Ie(e)|0,i=e.digits,s=Ie(n)|0,l=n.digits,u=ee(t,!1,2);let c=0,a=ze(u,ee(l[0],!1,2));for(;qr(a,he(0,0,!1))>0||c<s;){if(c>o)throw new Error("scaleSubInPlace: pre-condition did not apply, result would be -ve");let d=~~ft(Rn(a,Pn)),f=ut(a,mt);d<Qt-i[c+r]?i[c+r]=i[c+r]+d|0:(i[c+r]=d-(Qt-i[c+r])|0,f=Le(f,he(1,0,!1))),c<s?a=Le(f,ze(u,ee(l[c+1],!1,2))):a=f,c=c+1|0}gt(e)}function ah(e,t,n){const r=Ie(t)|0,o=Ie(e)|0,i=r|0;if(o<i+n)return 0;{const s=e.digits,l=t.digits,u=(i===0?o===n?~~(s[n]/l[0]):~~ft(ut(Le(ze(ee(s[o],!1,2),mt),ee(s[o-1],!1,2)),ee(l[0],!1,2))):o===i+n?~~(s[o]/(l[i]+1)):~~ft(ut(Le(ze(ee(s[o],!1,2),mt),ee(s[o-1],!1,2)),Le(ee(l[i],!1,2),he(1,0,!1)))))|0;return u===0?qp(t,n,e,0)!==1?1:0:u|0}}function ch(e,t){if(be(t))throw new Error;if(Ie(e)<Ie(t))return[Xp,e];{const n=Zp(e),r=$t(Ie(e)-Ie(t)+1+1);let o=Ie(e);const i=Ie(t)|0;let s=o-i,l=!1;for(;!l;){const u=ah(n,t,s)|0;u>0?(sh(n,u,t,s),lh(r,u,$p,s)):(l=u===0&&s===0,l||(o===i+s?s=s-1|0:(s=s-1|0,o=o-1|0)))}return[gt(r),gt(n)]}}hr(2);function Go(e){return hr(e)}function uh(e){return Kp(e)}function Rs(e){const t=Ie(e)|0,n=(i,s,l)=>{e:for(;;){const u=i,c=s,a=l;if(Ie(a)>t)return Ne([c,a],u);i=Ne([c,a],u),s=c+1,l=ih(a,a);continue e}},r=(i,s,l,u)=>{e:for(;;){const c=i,a=s,d=l,f=u;if(R(f)){const p=Jp(d)|0;return c&&p===0?a:Ne(Rt(p),a)}else{const p=T(f),g=ch(d,x(f)[1]),_=g[1],w=g[0];if(c&&be(w)){i=c,s=a,l=_,u=p;continue e}else{i=c,s=r(!1,a,_,p),l=w,u=p;continue e}}}},o=r(!0,We(),e,n(We(),0,hr(10)));return R(o)?"0":St("",no(o))}function fh(e){return e.bound<=1}function Ns(e){const t=e,n=0;return n<t.bound?t.digits[n]|0:0}class ve{constructor(t,n){this.signInt=t|0,this.v=n}toString(){const t=this,n=Xt(t)|0;if(n===-1)return be(W(t))?"0":"-"+Rs(W(t));if(n===0)return"0";if(n===1)return Rs(W(t));throw new Error("signs should be +/- 1 or 0")}Equals(t){const n=this;return t instanceof ve&&Va(n,t)}GetHashCode(){return hh(this)|0}toJSON(){return Se(this)}CompareTo(t){const n=this;if(t instanceof ve)return ph(n,t)|0;throw new Error("the objects are not comparable\\nParameter name: obj")}}function xo(e,t){return new ve(e,t)}ve.smallLim=4096,ve.smallPosTab=On(ve.smallLim,Go,null),ve.one=Co(1),ve.two=Co(2),ve.zero=Co(0);function Eo(e){return fh(e)&&Ns(e)<ve.smallLim?ve.smallPosTab[Ns(e)]:e}function Xt(e){return e.signInt}function W(e){return e.v}function Va(e,t){const n=Xt(e)|0,r=Xt(t)|0;let o;switch(n===-1?r===-1?o=1:r===0?o=8:r===1?o=3:o=9:n===0?r===-1?o=6:r===0?o=4:r===1?o=5:o=9:n===1?r===-1?o=2:r===0?o=7:r===1?o=0:o=9:o=9,o){case 0:return ks(W(e),W(t));case 1:return ks(W(e),W(t));case 2:return be(W(e))?be(W(t)):!1;case 3:return be(W(e))?be(W(t)):!1;case 4:return!0;case 5:return be(W(t));case 6:return be(W(t));case 7:return be(W(e));case 8:return be(W(e));case 9:throw new Error("signs should be +/- 1 or 0\\nParameter name: x")}}function dh(e,t){const n=Xt(e)|0,r=Xt(t)|0;let o;switch(n===-1?r===-1?o=1:r===0?o=8:r===1?o=3:o=9:n===0?r===-1?o=6:r===0?o=4:r===1?o=5:o=9:n===1?r===-1?o=2:r===0?o=7:r===1?o=0:o=9:o=9,o){case 0:return Ms(W(e),W(t));case 1:return Ms(W(t),W(e));case 2:return!1;case 3:return be(W(e))?!be(W(t)):!0;case 4:return!1;case 5:return!be(W(t));case 6:return!1;case 7:return!1;case 8:return!be(W(e));case 9:throw new Error("signs should be +/- 1 or 0\\nParameter name: x")}}function ph(e,t){return dh(e,t)?-1:Va(e,t)?0:1}function hh(e){return Xt(e)===0?1:Xt(e)+Qp(W(e))|0}function Co(e){return e>=0?xo(1,Eo(Go(e))):e===-2147483648?xo(-1,Eo(uh(_f(ee(e,!1,2))))):xo(-1,Eo(Go(Xu(e))))}function Ua(){return ve.one}function mh(){return ve.two}function La(){return ve.zero}La();Ua();mh();La();Ua();function za(e,t){gh(t);const n=new Date(e);return n.offset=t!=null?t:new Date().getTimezoneOffset()*-6e4,n}function gh(e){if(e!=null&&e!==0){if(e%6e4!==0)throw new Error("Offset must be specified in whole minutes.");if(Math.abs(e/36e5)>14)throw new Error("Offset must be within plus or minus 14 hours.")}}function wh(){return za(-621355968e5,0)}function _h(e){const[t,n]=la(e),r=n==null?t.getTimezoneOffset()*-6e4:n==="Z"?0:n*6e4;return za(t.getTime(),r)}function yh(e,t){try{return t.contents=_h(e),!0}catch{return!1}}function Os(e=0,t=0,n=0,r=0,o=0){switch(arguments.length){case 1:return bh(arguments[0]);case 3:e=0,t=arguments[0],n=arguments[1],r=arguments[2],o=0;break}return e*864e5+t*36e5+n*6e4+r*1e3+o}function bh(e){return yf(ut(e,1e4))}function Ah(e){const t=e.search("\\."),n=e.search("\\:");if(t===-1&&n===-1){const r=parseInt(e,0);if(isNaN(r))throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`);return Os(r,0,0,0,0)}if(n>0){const r=/^(-?)((\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(r!=null&&r[4]!=null&&r[5]!=null){let o=0,i=0,s=0;const l=r[1]!=null&&r[1]==="-"?-1:1,u=+r[4],c=+r[5];if(r[3]!=null&&(o=+r[3]),r[7]!=null&&(s=+r[7]),r[8]!=null)switch(r[8].length){case 1:i=+r[8]*100;break;case 2:i=+r[8]*10;break;case 3:i=+r[8];break;case 4:i=+r[8]/10;break;case 5:i=+r[8]/100;break;case 6:i=+r[8]/1e3;break;case 7:i=+r[8]/1e4;break;default:throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}return l*Os(o,u,c,s,i)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}function vh(e,t){try{return t.contents=Ah(e),!0}catch{return!1}}class Wa{constructor(t){this.k=t}}function Te(e){return new Wa(e)}function D(e){return e.k}class B extends Wa{constructor(t,n,r,o){super(t),this.left=n,this.right=r,this.h=o|0}}function Re(e,t,n,r){return new B(e,t,n,r)}function U(e){return e.left}function j(e){return e.right}function pn(e){return e.h}function Ga(e,t){e:for(;;){const n=e,r=t;if(n!=null){const o=n;if(o instanceof B){e=U(o),t=Ga(j(o),r+1);continue e}else return r+1|0}else return r|0}}function xh(e){return Ga(e,0)}function Ke(e,t,n){let r;const o=e;if(o!=null){const u=o;r=u instanceof B?pn(u):1}else r=0;let i;const s=n;if(s!=null){const u=s;i=u instanceof B?pn(u):1}else i=0;const l=(r<i?i:r)|0;return l===0?Te(t):Re(t,e,n,l+1)}function Bs(e,t,n){let r,o,i,s,l;const u=e;if(u!=null){const d=u;l=d instanceof B?pn(d):1}else l=0;let c;const a=n;if(a!=null){const d=a;c=d instanceof B?pn(d):1}else c=0;if(c>l+2){const d=$(n);if(d instanceof B)if(r=U(d),(r!=null?(o=r,o instanceof B?pn(o):1):0)>l+1){const f=$(U(d));if(f instanceof B)return Ke(Ke(e,t,U(f)),D(f),Ke(j(f),D(d),j(d)));throw new Error("internal error: Set.rebalance")}else return Ke(Ke(e,t,U(d)),D(d),j(d));else throw new Error("internal error: Set.rebalance")}else if(l>c+2){const d=$(e);if(d instanceof B)if(i=j(d),(i!=null?(s=i,s instanceof B?pn(s):1):0)>c+1){const f=$(j(d));if(f instanceof B)return Ke(Ke(U(d),D(d),U(f)),D(f),Ke(j(f),t,n));throw new Error("internal error: Set.rebalance")}else return Ke(U(d),D(d),Ke(j(d),t,n));else throw new Error("internal error: Set.rebalance")}else return Ke(e,t,n)}function ir(e,t,n){if(n!=null){const r=n,o=e.Compare(t,D(r))|0;if(r instanceof B)return o<0?Bs(ir(e,t,U(r)),D(r),j(r)):o===0?n:Bs(U(r),D(r),ir(e,t,j(r)));{const i=e.Compare(t,D(r))|0;return i<0?Re(t,void 0,n,2):i===0?n:Re(t,n,void 0,2)}}else return Te(t)}function Qa(e,t,n){e:for(;;){const r=e,o=t,i=n;if(i!=null){const s=i,l=r.Compare(o,D(s))|0;if(s instanceof B)if(l<0){e=r,t=o,n=U(s);continue e}else{if(l===0)return!0;e=r,t=o,n=j(s);continue e}else return l===0}else return!1}}function Za(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=r;if(o instanceof B){Za(n,U(o)),n(D(o)),e=n,t=j(o);continue e}else n(D(o))}break}}class Eh extends le{constructor(t,n){super(),this.stack=t,this.started=n}}function Ka(e){e:for(;;){const t=e;if(R(t))return We();{const n=x(t),r=T(t);if(n!=null){const o=n;if(o instanceof B){e=Z([U(o),Te(D(o)),j(o)],r);continue e}else return t}else{e=r;continue e}}}}function Ps(e){return new Eh(Ka(xe(e)),!1)}function Ch(){throw new Error("Enumeration not started")}function Sh(){throw new Error("Enumeration already started")}function Hs(e){if(e.started){const t=e.stack;if(R(t))return Sh();if(x(t)!=null){const n=x(t);return D(n)}else throw new Error("Please report error: Set iterator, unexpected stack for current")}else return Ch()}function Dh(e){if(e.started){const t=e.stack;if(R(t))return!1;if(x(t)!=null){if(x(t)instanceof B)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=Ka(T(t)),!R(e.stack)}else throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}else return e.started=!0,!R(e.stack)}function js(e){let t=Ps(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return Hs(t)},"System.Collections.IEnumerator.get_Current"(){return Hs(t)},"System.Collections.IEnumerator.MoveNext"(){return Dh(t)},"System.Collections.IEnumerator.Reset"(){t=Ps(e)},Dispose(){}}}function Ih(e,t,n){e:for(;;){const r=e,o=t,i=n;if(R(o))return R(i)?0:-1;if(R(i))return 1;if(x(i)!=null)if(x(o)!=null){const s=x(o),l=x(i);if(s instanceof B)if(U(s)==null)if(l instanceof B)if(U(l)==null){const u=r.Compare(D(s),D(l))|0;if(u!==0)return u|0;e=r,t=Ne(j(s),T(o)),n=Ne(j(l),T(i));continue e}else{let u,c,a,d,f;switch(R(o)?R(i)?u=2:x(i)!=null?(u=1,d=T(i),f=x(i)):u=2:x(o)!=null?(u=0,c=T(o),a=x(o)):R(i)?u=2:x(i)!=null?(u=1,d=T(i),f=x(i)):u=2,u){case 0:if(a instanceof B){e=r,t=Z([U(a),Re(D(a),void 0,j(a),0)],c),n=i;continue e}else{e=r,t=Z([void 0,Te(D(a))],c),n=i;continue e}case 1:if(f instanceof B){e=r,t=o,n=Z([U(f),Re(D(f),void 0,j(f),0)],d);continue e}else{e=r,t=o,n=Z([void 0,Te(D(f))],d);continue e}case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else{const u=r.Compare(D(s),D(l))|0;if(u!==0)return u|0;e=r,t=Ne(j(s),T(o)),n=Ne(void 0,T(i));continue e}else{let u,c,a,d,f;switch(R(o)?R(i)?u=2:x(i)!=null?(u=1,d=T(i),f=x(i)):u=2:x(o)!=null?(u=0,c=T(o),a=x(o)):R(i)?u=2:x(i)!=null?(u=1,d=T(i),f=x(i)):u=2,u){case 0:if(a instanceof B){e=r,t=Z([U(a),Re(D(a),void 0,j(a),0)],c),n=i;continue e}else{e=r,t=Z([void 0,Te(D(a))],c),n=i;continue e}case 1:if(f instanceof B){e=r,t=o,n=Z([U(f),Re(D(f),void 0,j(f),0)],d);continue e}else{e=r,t=o,n=Z([void 0,Te(D(f))],d);continue e}case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else if(l instanceof B)if(U(l)==null){const u=r.Compare(D(s),D(l))|0;if(u!==0)return u|0;e=r,t=Ne(void 0,T(o)),n=Ne(j(l),T(i));continue e}else{let u,c,a,d,f;switch(R(o)?R(i)?u=2:x(i)!=null?(u=1,d=T(i),f=x(i)):u=2:x(o)!=null?(u=0,c=T(o),a=x(o)):R(i)?u=2:x(i)!=null?(u=1,d=T(i),f=x(i)):u=2,u){case 0:if(a instanceof B){e=r,t=Z([U(a),Re(D(a),void 0,j(a),0)],c),n=i;continue e}else{e=r,t=Z([void 0,Te(D(a))],c),n=i;continue e}case 1:if(f instanceof B){e=r,t=o,n=Z([U(f),Re(D(f),void 0,j(f),0)],d);continue e}else{e=r,t=o,n=Z([void 0,Te(D(f))],d);continue e}case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else{const u=r.Compare(D(s),D(l))|0;if(u!==0)return u|0;e=r,t=T(o),n=T(i);continue e}}else{x(i);let s,l,u,c,a;switch(R(o)?R(i)?s=2:x(i)!=null?(s=1,c=T(i),a=x(i)):s=2:x(o)!=null?(s=0,l=T(o),u=x(o)):R(i)?s=2:x(i)!=null?(s=1,c=T(i),a=x(i)):s=2,s){case 0:if(u instanceof B){e=r,t=Z([U(u),Re(D(u),void 0,j(u),0)],l),n=i;continue e}else{e=r,t=Z([void 0,Te(D(u))],l),n=i;continue e}case 1:if(a instanceof B){e=r,t=o,n=Z([U(a),Re(D(a),void 0,j(a),0)],c);continue e}else{e=r,t=o,n=Z([void 0,Te(D(a))],c);continue e}case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else if(x(o)!=null){x(o);let s,l,u,c,a;switch(R(o)?R(i)?s=2:x(i)!=null?(s=1,c=T(i),a=x(i)):s=2:x(o)!=null?(s=0,l=T(o),u=x(o)):R(i)?s=2:x(i)!=null?(s=1,c=T(i),a=x(i)):s=2,s){case 0:if(u instanceof B){e=r,t=Z([U(u),Re(D(u),void 0,j(u),0)],l),n=i;continue e}else{e=r,t=Z([void 0,Te(D(u))],l),n=i;continue e}case 1:if(a instanceof B){e=r,t=o,n=Z([U(a),Re(D(a),void 0,j(a),0)],c);continue e}else{e=r,t=o,n=Z([void 0,Te(D(a))],c);continue e}case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else{e=r,t=T(o),n=T(i);continue e}break}}function Vs(e,t,n){return t==null?n==null?0:-1:n==null?1:Ih(e,xe(t),xe(n))|0}function Fh(e,t,n){let r=n;Za(o=>{t[r]=o,r=r+1|0},e)}function kh(e,t,n){e:for(;;){const r=e,o=t,i=n;if(i["System.Collections.IEnumerator.MoveNext"]()){e=r,t=ir(r,i["System.Collections.Generic.IEnumerator`1.get_Current"](),o),n=i;continue e}else return o}}function Mh(e,t){return di((n,r)=>ir(e,r,n),void 0,t)}function Th(e,t){return jt((n,r)=>ir(e,r,n),void 0,t)}function Rh(e,t){if(at(t))return Mh(e,t);if(t instanceof pt)return Th(e,t);{const n=Ce(t);try{return kh(e,void 0,n)}finally{J(n)}}}class Si{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return Bh(this)|0}Equals(t){const n=this;return t instanceof Si&&Vs(Dr(n),tt(n),tt(t))===0}toString(){return"set ["+St("; ",Oe(n=>Se(n),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(){const t=this;return Array.from(t)}CompareTo(t){const n=this;return Vs(Dr(n),tt(n),tt(t))|0}"System.Collections.Generic.ICollection`1.Add2B595"(t){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Clear"(){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Remove2B595"(t){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Contains2B595"(t){const n=this;return Qa(Dr(n),t,tt(n))}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){Fh(tt(this),t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return So(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return So(this)|0}GetEnumerator(){return js(tt(this))}[Symbol.iterator](){return $r(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return js(tt(this))}get size(){return So(this)|0}add(t){throw new Error("Set cannot be mutated")}clear(){throw new Error("Set cannot be mutated")}delete(t){throw new Error("Set cannot be mutated")}has(t){return Oh(this,t)}keys(){return Oe(n=>n,this)}values(){return Oe(n=>n,this)}entries(){return Oe(n=>[n,n],this)}forEach(t,n){const r=this;mi(o=>{Fn(2,t,[o])(o)(r)},r)}}function Nh(e,t){return new Si(e,t)}function Dr(e){return e.comparer}function tt(e){return e.tree}function So(e){return xh(tt(e))}function Oh(e,t){return Qa(Dr(e),t,tt(e))}function Bh(e){let t=0;const n=Ce(e);try{for(;n["System.Collections.IEnumerator.MoveNext"]();){const r=n["System.Collections.Generic.IEnumerator`1.get_Current"]();t=(t<<1)+Ct(r)+631|0}}finally{J(n)}return Math.abs(t)|0}function Ph(e,t){return Nh(t,Rh(t,e))}function zn(e,t,n){try{return"Expecting "+e+" but instead got:"+(n?`
|
|
5
5
|
`:" ")+(JSON.stringify(t,null,4)+"")}catch{return"Expecting "+e+" but decoder failed. Couldn't report given value due to circular structure."+(n?`
|
|
6
|
-
`:" ")}}function
|
|
6
|
+
`:" ")}}function Hh(e,t){const n=t.tag===2?zn(t.fields[0],t.fields[1],!0):t.tag===1?zn(t.fields[0],t.fields[1],!1)+`
|
|
7
7
|
Reason: `+t.fields[2]:t.tag===3?zn(t.fields[0],t.fields[1],!0):t.tag===4?zn(t.fields[0],t.fields[1],!0)+("\nNode `"+t.fields[2]+"` is unkown."):t.tag===5?"Expecting "+t.fields[0]+`.
|
|
8
8
|
`+(JSON.stringify(t.fields[1],null,4)+""):t.tag===7?`The following errors were found:
|
|
9
9
|
|
|
10
10
|
`+St(`
|
|
11
11
|
|
|
12
|
-
`,t.fields[0]):t.tag===6?"The following `failure` occurred with the decoder: "+t.fields[0]:zn(t.fields[0],t.fields[1],!1);return t.tag===7?n:"Error at: `"+e+"`\n"+n}function Ja(e,t,n){let r;if(r=In(1,t,[e])(n),r.tag===1){const i=r.fields[0];return new h(1,[Ph(i[0],i[1])])}else return new h(0,[r.fields[0]])}function zr(e,t){try{return Ja("$",e,JSON.parse(t))}catch(n){if(n instanceof SyntaxError)return new h(1,["Given an invalid JSON: "+n.message]);throw n}}function Hh(e,t){return typeof t=="string"?new h(0,[t]):new h(1,[[e,new v(0,["a string",t])]])}function jh(e,t){if(typeof t=="string"){let n,r="00000000-0000-0000-0000-000000000000";return n=[zp(t,new ze(()=>r,o=>{r=o})),r],n[0]?new h(0,[n[1]]):new h(1,[[e,new v(0,["a guid",t])]])}else return new h(1,[[e,new v(0,["a guid",t])]])}function Vh(e,t){return t==null?new h(0,[void 0]):new h(1,[[e,new v(0,["null",t])]])}const Vs=e=>t=>{const n="a sbyte",r=e,o=t;if(typeof o=="number"){const i=o;return isFinite(i)&&Math.floor(i)===i?-128<=i&&i<=127?new h(0,[(i+128&255)-128]):new h(1,[[r,new v(1,[n,i,"Value was either too large or too small for "+n])]]):new h(1,[[r,new v(1,[n,i,"Value is not an integral value"])]])}else if(typeof o=="string"){let i,s=0;return i=[Mn(o,511,!1,8,new ze(()=>s,l=>{s=l|0})),s],i[0]?new h(0,[i[1]]):new h(1,[[r,new v(0,[n,o])]])}else return new h(1,[[r,new v(0,[n,o])]])},Us=e=>t=>{const n="a byte",r=e,o=t;if(typeof o=="number"){const i=o;return isFinite(i)&&Math.floor(i)===i?0<=i&&i<=255?new h(0,[i&255]):new h(1,[[r,new v(1,[n,i,"Value was either too large or too small for "+n])]]):new h(1,[[r,new v(1,[n,i,"Value is not an integral value"])]])}else if(typeof o=="string"){let i,s=0;return i=[Mn(o,511,!0,8,new ze(()=>s,l=>{s=l})),s],i[0]?new h(0,[i[1]]):new h(1,[[r,new v(0,[n,o])]])}else return new h(1,[[r,new v(0,[n,o])]])},Ls=e=>t=>{const n="an int16",r=e,o=t;if(typeof o=="number"){const i=o;return isFinite(i)&&Math.floor(i)===i?-32768<=i&&i<=32767?new h(0,[(i+32768&65535)-32768]):new h(1,[[r,new v(1,[n,i,"Value was either too large or too small for "+n])]]):new h(1,[[r,new v(1,[n,i,"Value is not an integral value"])]])}else if(typeof o=="string"){let i,s=0;return i=[Mn(o,511,!1,16,new ze(()=>s,l=>{s=l|0})),s],i[0]?new h(0,[i[1]]):new h(1,[[r,new v(0,[n,o])]])}else return new h(1,[[r,new v(0,[n,o])]])},zs=e=>t=>{const n="an uint16",r=e,o=t;if(typeof o=="number"){const i=o;return isFinite(i)&&Math.floor(i)===i?0<=i&&i<=65535?new h(0,[i&65535]):new h(1,[[r,new v(1,[n,i,"Value was either too large or too small for "+n])]]):new h(1,[[r,new v(1,[n,i,"Value is not an integral value"])]])}else if(typeof o=="string"){let i,s=0;return i=[Mn(o,511,!0,16,new ze(()=>s,l=>{s=l})),s],i[0]?new h(0,[i[1]]):new h(1,[[r,new v(0,[n,o])]])}else return new h(1,[[r,new v(0,[n,o])]])},Ws=e=>t=>{const n="an int",r=e,o=t;if(typeof o=="number"){const i=o;return isFinite(i)&&Math.floor(i)===i?-2147483648<=i&&i<=2147483647?new h(0,[~~i]):new h(1,[[r,new v(1,[n,i,"Value was either too large or too small for "+n])]]):new h(1,[[r,new v(1,[n,i,"Value is not an integral value"])]])}else if(typeof o=="string"){let i,s=0;return i=[Mn(o,511,!1,32,new ze(()=>s,l=>{s=l|0})),s],i[0]?new h(0,[i[1]]):new h(1,[[r,new v(0,[n,o])]])}else return new h(1,[[r,new v(0,[n,o])]])},Gs=e=>t=>{const n="an uint32",r=e,o=t;if(typeof o=="number"){const i=o;return isFinite(i)&&Math.floor(i)===i?0<=i&&i<=4294967295?new h(0,[i>>>0]):new h(1,[[r,new v(1,[n,i,"Value was either too large or too small for "+n])]]):new h(1,[[r,new v(1,[n,i,"Value is not an integral value"])]])}else if(typeof o=="string"){let i,s=0;return i=[Mn(o,511,!0,32,new ze(()=>s,l=>{s=l})),s],i[0]?new h(0,[i[1]]):new h(1,[[r,new v(0,[n,o])]])}else return new h(1,[[r,new v(0,[n,o])]])};function Uh(e,t){return typeof t=="boolean"?new h(0,[t]):new h(1,[[e,new v(0,["a boolean",t])]])}function Lh(e,t){return typeof t=="number"?new h(0,[t]):new h(1,[[e,new v(0,["a float",t])]])}function zh(e,t){return typeof t=="number"?new h(0,[t]):new h(1,[[e,new v(0,["a float32",t])]])}function Wh(e,t){if(typeof t=="string"){let n,r=jf();return n=[Uf(t,new ze(()=>r,o=>{r=o})),r],n[0]?new h(0,[Lf(n[1])]):new h(1,[[e,new v(0,["a datetime",t])]])}else return new h(1,[[e,new v(0,["a datetime",t])]])}function Gh(e,t){if(typeof t=="string"){let n,r=gh();return n=[_h(t,new ze(()=>r,o=>{r=o})),r],n[0]?new h(0,[n[1]]):new h(1,[[e,new v(0,["a datetimeoffset",t])]])}else return new h(1,[[e,new v(0,["a datetime",t])]])}function Qh(e,t){if(typeof t=="string"){let n,r=0;return n=[Ah(t,new ze(()=>r,o=>{r=o})),r],n[0]?new h(0,[n[1]]):new h(1,[[e,new v(0,["a timespan",t])]])}else return new h(1,[[e,new v(0,["a timespan",t])]])}function Qs(e,t,n,r){let o;const i=n+".["+Rt(e)+"]";if(Array.isArray(r)){const s=r;return e<s.length?t(i,s[e]):new h(1,[[i,new v(5,["a longer array. Need index `"+Rt(e)+"` but there are only `"+(o=s.length,Rt(o))+"` entries",r])]])}else return new h(1,[[i,new v(0,["an array",r])]])}function Zh(e,t,n){return n==null?new h(0,[void 0]):Dt(xe,e(t,n))}function Zs(e,t,n){if(Array.isArray(n)){let r=-1;return Dt(pa,di((o,i)=>{if(r=r+1|0,o.tag===0){const s=e(t+".["+Rt(r)+"]",i);return s.tag===0?new h(0,[Re(s.fields[0],o.fields[0])]):new h(1,[s.fields[0]])}else return o},new h(0,[Le()]),n))}else return new h(1,[[t,new v(0,["a list",n])]])}function Ks(e,t,n){if(Array.isArray(n)){let r=-1;const o=n;return di((i,s)=>{if(r=r+1|0,i.tag===0){const l=i.fields[0],u=e(t+".["+Rt(r)+"]",s);return u.tag===0?(l[r]=u.fields[0],new h(0,[l])):new h(1,[u.fields[0]])}else return i},new h(0,[fi(new Array(o.length),0,o.length,null)]),o)}else return new h(1,[[t,new v(0,["an array",n])]])}function Kh(e,t,n){return((o,i)=>{e:for(;;){const s=o,l=i;if(R(s))return new h(1,[[t,new v(7,[l])]]);{const u=Ja(t,q(2,x(s)),n);if(u.tag===1){o=T(s),i=ro(l,ve(u.fields[0]));continue e}else return new h(0,[u.fields[0]])}}})(e,Le())}function Jh(e,t,n){return new h(0,[e])}function Js(e,t,n,r){const o=t(n,r);return o.tag===0?e(o.fields[0],n,r):new h(1,[o.fields[0]])}function $h(e,t,n,r){const o=t(n,r);return o.tag===1?new h(1,[o.fields[0]]):new h(0,[e(o.fields[0])])}function Xh(e,t){let n;const r=e;return n=o=>i=>Qs(0,r,o,i),o=>i=>Js(q(3,s=>{let l;const u=t;return l=c=>a=>Qs(1,u,c,a),c=>a=>Js((d,f,p)=>Jh([s,d]),q(2,l),c,a)}),q(2,n),o,i)}function qh(e){return Op(e,{Compare:ct})}function Yh(e){return Bh(e,{Compare:ct})}function e0(e,t,n){return n!==null&&Object.getPrototypeOf(n||!1)===Object.prototype?ad((r,o)=>{const i=r[0];return o.tag===0?Dt(s=>Re(s,o.fields[0]),r[1](t+"."+i)(n[i])):o},e,new h(0,[Le()])):new h(1,[[t,new v(0,["an object",n])]])}function t0(e,t,n,r){return r!==null&&Object.getPrototypeOf(r||!1)===Object.prototype?Aa((o,i)=>{if(o.tag===0){let s;if(s=In(1,e,[n])(i),s.tag===0){const u=t(n+"."+i,r[i]);return u.tag===0?new h(0,[Re([s.fields[0],u.fields[0]],o.fields[0])]):new h(1,[u.fields[0]])}else return new h(1,[s.fields[0]])}else return o},new h(0,[Le()]),Object.keys(r)):new h(1,[[n,new v(0,["an object",r])]])}function $a(e,t,n,r){let o,i,s,l,u;return t.length!==r.length?new h(1,[[n,new v(6,[(o=t.length|0,i=r.length|0,s=Nn(nn("Expected %i %s but got %i")),l=s(o),u=l(e),u(i))])]]):ud((c,a,d)=>d.tag===0?Dt(f=>Re(f,d.fields[0]),a(n)(c)):d,r,t,new h(0,[Le()]))}function $s(e,t,n,r,o,i){const s=sd(l=>si(l)===r,Ff(n));if(s!=null){const l=s;return i.length===0?new h(0,[gs(l,[])]):Dt(u=>gs(l,no(u)),$a("union fields",xn(u=>rt(e,t,!1,u[1]),Tf(l),null),o,i))}else return new h(1,[[o,new v(6,["Cannot find case "+r+" in "+fe(n)])]])}function Xs(e,t,n,r){let o,i;const s=new ze(Et());let l;const u=fe(r);l=Tp(u,s,e);let c;if(Mf(r)){const a=xn(d=>[jp(t,si(d)),rt(l,t,!1,d[1])],Hr(r),null);c=d=>f=>Dt(p=>Rf(r,no(p)),e0(a,d,f))}else if(kf(r))c=a=>d=>{if(typeof d=="string")return $s(l,t,r,d,a,[]);if(Array.isArray(d)){const f=d;return $s(l,t,r,f[0],a,f.slice(1,f.length))}else return new h(1,[[a,new v(0,["a string or array",d])]])};else if(n)c=a=>d=>new h(1,[[a,new v(2,["an extra coder for "+fe(r),d])]]);else throw new Error((o=fe(r),i=Nn(nn("Cannot generate auto decoder for %s. Please pass an extra decoder.")),i(o)));return s.contents=c,c}function rt(e,t,n,r){let o,i,s;const l=fe(r),u=Rp(l,e);if(u==null)if(xf(r)){const c=rt(e,t,!1,eo(r));return a=>d=>Ks(q(2,c),a,d)}else if(na(r)){const c=fe(Sf(r));if(c==="System.SByte")return a=>d=>{const f=r,p=a,g=d,_=Vs(p)(g);if(_.tag===1)return new h(1,[_.fields[0]]);{const w=_.fields[0]|0;return fn(w,cn(f),{Equals:(b,I)=>b===I,GetHashCode:_t})?new h(0,[un(f,w.toString())]):new h(1,[[p,new v(1,[fe(f),g,"Unkown value provided for the enum"])]])}};if(c==="System.Byte")return a=>d=>{const f=r,p=a,g=d,_=Us(p)(g);if(_.tag===1)return new h(1,[_.fields[0]]);{const w=_.fields[0];return fn(w,cn(f),{Equals:(b,I)=>b===I,GetHashCode:_t})?new h(0,[un(f,w.toString())]):new h(1,[[p,new v(1,[fe(f),g,"Unkown value provided for the enum"])]])}};if(c==="System.Int16")return a=>d=>{const f=r,p=a,g=d,_=Ls(p)(g);if(_.tag===1)return new h(1,[_.fields[0]]);{const w=_.fields[0]|0;return fn(w,cn(f),{Equals:(b,I)=>b===I,GetHashCode:_t})?new h(0,[un(f,bu(w))]):new h(1,[[p,new v(1,[fe(f),g,"Unkown value provided for the enum"])]])}};if(c==="System.UInt16")return a=>d=>{const f=r,p=a,g=d,_=zs(p)(g);if(_.tag===1)return new h(1,[_.fields[0]]);{const w=_.fields[0];return fn(w,cn(f),{Equals:(b,I)=>b===I,GetHashCode:_t})?new h(0,[un(f,w.toString())]):new h(1,[[p,new v(1,[fe(f),g,"Unkown value provided for the enum"])]])}};if(c==="System.Int32")return a=>d=>{const f=r,p=a,g=d,_=Ws(p)(g);if(_.tag===1)return new h(1,[_.fields[0]]);{const w=_.fields[0]|0;return fn(w,cn(f),{Equals:(b,I)=>b===I,GetHashCode:_t})?new h(0,[un(f,Rt(w))]):new h(1,[[p,new v(1,[fe(f),g,"Unkown value provided for the enum"])]])}};if(c==="System.UInt32")return a=>d=>{const f=r,p=a,g=d,_=Gs(p)(g);if(_.tag===1)return new h(1,[_.fields[0]]);{const w=_.fields[0];return fn(w,cn(f),{Equals:(b,I)=>b===I,GetHashCode:_t})?new h(0,[un(f,w.toString())]):new h(1,[[p,new v(1,[fe(f),g,"Unkown value provided for the enum"])]])}};{const a=fe(r),f=Qf(nn(`Cannot generate auto decoder for %s.
|
|
12
|
+
`,t.fields[0]):t.tag===6?"The following `failure` occurred with the decoder: "+t.fields[0]:zn(t.fields[0],t.fields[1],!1);return t.tag===7?n:"Error at: `"+e+"`\n"+n}function Ja(e,t,n){let r;if(r=Fn(1,t,[e])(n),r.tag===1){const i=r.fields[0];return new m(1,[Hh(i[0],i[1])])}else return new m(0,[r.fields[0]])}function zr(e,t){try{return Ja("$",e,JSON.parse(t))}catch(n){if(n instanceof SyntaxError)return new m(1,["Given an invalid JSON: "+n.message]);throw n}}function jh(e,t){return typeof t=="string"?new m(0,[t]):new m(1,[[e,new v(0,["a string",t])]])}function Vh(e,t){if(typeof t=="string"){let n,r="00000000-0000-0000-0000-000000000000";return n=[Wp(t,new Ge(()=>r,o=>{r=o})),r],n[0]?new m(0,[n[1]]):new m(1,[[e,new v(0,["a guid",t])]])}else return new m(1,[[e,new v(0,["a guid",t])]])}function Uh(e,t){return t==null?new m(0,[void 0]):new m(1,[[e,new v(0,["null",t])]])}const Us=e=>t=>{const n="a sbyte",r=e,o=t;if(typeof o=="number"){const i=o;return isFinite(i)&&Math.floor(i)===i?-128<=i&&i<=127?new m(0,[(i+128&255)-128]):new m(1,[[r,new v(1,[n,i,"Value was either too large or too small for "+n])]]):new m(1,[[r,new v(1,[n,i,"Value is not an integral value"])]])}else if(typeof o=="string"){let i,s=0;return i=[Mn(o,511,!1,8,new Ge(()=>s,l=>{s=l|0})),s],i[0]?new m(0,[i[1]]):new m(1,[[r,new v(0,[n,o])]])}else return new m(1,[[r,new v(0,[n,o])]])},Ls=e=>t=>{const n="a byte",r=e,o=t;if(typeof o=="number"){const i=o;return isFinite(i)&&Math.floor(i)===i?0<=i&&i<=255?new m(0,[i&255]):new m(1,[[r,new v(1,[n,i,"Value was either too large or too small for "+n])]]):new m(1,[[r,new v(1,[n,i,"Value is not an integral value"])]])}else if(typeof o=="string"){let i,s=0;return i=[Mn(o,511,!0,8,new Ge(()=>s,l=>{s=l})),s],i[0]?new m(0,[i[1]]):new m(1,[[r,new v(0,[n,o])]])}else return new m(1,[[r,new v(0,[n,o])]])},zs=e=>t=>{const n="an int16",r=e,o=t;if(typeof o=="number"){const i=o;return isFinite(i)&&Math.floor(i)===i?-32768<=i&&i<=32767?new m(0,[(i+32768&65535)-32768]):new m(1,[[r,new v(1,[n,i,"Value was either too large or too small for "+n])]]):new m(1,[[r,new v(1,[n,i,"Value is not an integral value"])]])}else if(typeof o=="string"){let i,s=0;return i=[Mn(o,511,!1,16,new Ge(()=>s,l=>{s=l|0})),s],i[0]?new m(0,[i[1]]):new m(1,[[r,new v(0,[n,o])]])}else return new m(1,[[r,new v(0,[n,o])]])},Ws=e=>t=>{const n="an uint16",r=e,o=t;if(typeof o=="number"){const i=o;return isFinite(i)&&Math.floor(i)===i?0<=i&&i<=65535?new m(0,[i&65535]):new m(1,[[r,new v(1,[n,i,"Value was either too large or too small for "+n])]]):new m(1,[[r,new v(1,[n,i,"Value is not an integral value"])]])}else if(typeof o=="string"){let i,s=0;return i=[Mn(o,511,!0,16,new Ge(()=>s,l=>{s=l})),s],i[0]?new m(0,[i[1]]):new m(1,[[r,new v(0,[n,o])]])}else return new m(1,[[r,new v(0,[n,o])]])},Gs=e=>t=>{const n="an int",r=e,o=t;if(typeof o=="number"){const i=o;return isFinite(i)&&Math.floor(i)===i?-2147483648<=i&&i<=2147483647?new m(0,[~~i]):new m(1,[[r,new v(1,[n,i,"Value was either too large or too small for "+n])]]):new m(1,[[r,new v(1,[n,i,"Value is not an integral value"])]])}else if(typeof o=="string"){let i,s=0;return i=[Mn(o,511,!1,32,new Ge(()=>s,l=>{s=l|0})),s],i[0]?new m(0,[i[1]]):new m(1,[[r,new v(0,[n,o])]])}else return new m(1,[[r,new v(0,[n,o])]])},Qs=e=>t=>{const n="an uint32",r=e,o=t;if(typeof o=="number"){const i=o;return isFinite(i)&&Math.floor(i)===i?0<=i&&i<=4294967295?new m(0,[i>>>0]):new m(1,[[r,new v(1,[n,i,"Value was either too large or too small for "+n])]]):new m(1,[[r,new v(1,[n,i,"Value is not an integral value"])]])}else if(typeof o=="string"){let i,s=0;return i=[Mn(o,511,!0,32,new Ge(()=>s,l=>{s=l})),s],i[0]?new m(0,[i[1]]):new m(1,[[r,new v(0,[n,o])]])}else return new m(1,[[r,new v(0,[n,o])]])};function Lh(e,t){return typeof t=="boolean"?new m(0,[t]):new m(1,[[e,new v(0,["a boolean",t])]])}function zh(e,t){return typeof t=="number"?new m(0,[t]):new m(1,[[e,new v(0,["a float",t])]])}function Wh(e,t){return typeof t=="number"?new m(0,[t]):new m(1,[[e,new v(0,["a float32",t])]])}function Gh(e,t){if(typeof t=="string"){let n,r=jf();return n=[Uf(t,new Ge(()=>r,o=>{r=o})),r],n[0]?new m(0,[Lf(n[1])]):new m(1,[[e,new v(0,["a datetime",t])]])}else return new m(1,[[e,new v(0,["a datetime",t])]])}function Qh(e,t){if(typeof t=="string"){let n,r=wh();return n=[yh(t,new Ge(()=>r,o=>{r=o})),r],n[0]?new m(0,[n[1]]):new m(1,[[e,new v(0,["a datetimeoffset",t])]])}else return new m(1,[[e,new v(0,["a datetime",t])]])}function Zh(e,t){if(typeof t=="string"){let n,r=0;return n=[vh(t,new Ge(()=>r,o=>{r=o})),r],n[0]?new m(0,[n[1]]):new m(1,[[e,new v(0,["a timespan",t])]])}else return new m(1,[[e,new v(0,["a timespan",t])]])}function Zs(e,t,n,r){let o;const i=n+".["+Rt(e)+"]";if(Array.isArray(r)){const s=r;return e<s.length?t(i,s[e]):new m(1,[[i,new v(5,["a longer array. Need index `"+Rt(e)+"` but there are only `"+(o=s.length,Rt(o))+"` entries",r])]])}else return new m(1,[[i,new v(0,["an array",r])]])}function Kh(e,t,n){return n==null?new m(0,[void 0]):Dt(Ee,e(t,n))}function Ks(e,t,n){if(Array.isArray(n)){let r=-1;return Dt(ha,di((o,i)=>{if(r=r+1|0,o.tag===0){const s=e(t+".["+Rt(r)+"]",i);return s.tag===0?new m(0,[Ne(s.fields[0],o.fields[0])]):new m(1,[s.fields[0]])}else return o},new m(0,[We()]),n))}else return new m(1,[[t,new v(0,["a list",n])]])}function Js(e,t,n){if(Array.isArray(n)){let r=-1;const o=n;return di((i,s)=>{if(r=r+1|0,i.tag===0){const l=i.fields[0],u=e(t+".["+Rt(r)+"]",s);return u.tag===0?(l[r]=u.fields[0],new m(0,[l])):new m(1,[u.fields[0]])}else return i},new m(0,[fi(new Array(o.length),0,o.length,null)]),o)}else return new m(1,[[t,new v(0,["an array",n])]])}function Jh(e,t,n){return((o,i)=>{e:for(;;){const s=o,l=i;if(R(s))return new m(1,[[t,new v(7,[l])]]);{const u=Ja(t,q(2,x(s)),n);if(u.tag===1){o=T(s),i=ro(l,xe(u.fields[0]));continue e}else return new m(0,[u.fields[0]])}}})(e,We())}function $h(e,t,n){return new m(0,[e])}function $s(e,t,n,r){const o=t(n,r);return o.tag===0?e(o.fields[0],n,r):new m(1,[o.fields[0]])}function Xh(e,t,n,r){const o=t(n,r);return o.tag===1?new m(1,[o.fields[0]]):new m(0,[e(o.fields[0])])}function qh(e,t){let n;const r=e;return n=o=>i=>Zs(0,r,o,i),o=>i=>$s(q(3,s=>{let l;const u=t;return l=c=>a=>Zs(1,u,c,a),c=>a=>$s((d,f,p)=>$h([s,d]),q(2,l),c,a)}),q(2,n),o,i)}function Yh(e){return Bp(e,{Compare:ct})}function e0(e){return Ph(e,{Compare:ct})}function t0(e,t,n){return n!==null&&Object.getPrototypeOf(n||!1)===Object.prototype?ad((r,o)=>{const i=r[0];return o.tag===0?Dt(s=>Ne(s,o.fields[0]),r[1](t+"."+i)(n[i])):o},e,new m(0,[We()])):new m(1,[[t,new v(0,["an object",n])]])}function n0(e,t,n,r){return r!==null&&Object.getPrototypeOf(r||!1)===Object.prototype?va((o,i)=>{if(o.tag===0){let s;if(s=Fn(1,e,[n])(i),s.tag===0){const u=t(n+"."+i,r[i]);return u.tag===0?new m(0,[Ne([s.fields[0],u.fields[0]],o.fields[0])]):new m(1,[u.fields[0]])}else return new m(1,[s.fields[0]])}else return o},new m(0,[We()]),Object.keys(r)):new m(1,[[n,new v(0,["an object",r])]])}function $a(e,t,n,r){let o,i,s,l,u;return t.length!==r.length?new m(1,[[n,new v(6,[(o=t.length|0,i=r.length|0,s=Nn(nn("Expected %i %s but got %i")),l=s(o),u=l(e),u(i))])]]):ud((c,a,d)=>d.tag===0?Dt(f=>Ne(f,d.fields[0]),a(n)(c)):d,r,t,new m(0,[We()]))}function Xs(e,t,n,r,o,i){const s=sd(l=>si(l)===r,If(n));if(s!=null){const l=s;return i.length===0?new m(0,[ws(l,[])]):Dt(u=>ws(l,no(u)),$a("union fields",xn(u=>rt(e,t,!1,u[1]),Tf(l),null),o,i))}else return new m(1,[[o,new v(6,["Cannot find case "+r+" in "+de(n)])]])}function qs(e,t,n,r){let o,i;const s=new Ge(Et());let l;const u=de(r);l=Rp(u,s,e);let c;if(Mf(r)){const a=xn(d=>[Vp(t,si(d)),rt(l,t,!1,d[1])],Hr(r),null);c=d=>f=>Dt(p=>Rf(r,no(p)),t0(a,d,f))}else if(kf(r))c=a=>d=>{if(typeof d=="string")return Xs(l,t,r,d,a,[]);if(Array.isArray(d)){const f=d;return Xs(l,t,r,f[0],a,f.slice(1,f.length))}else return new m(1,[[a,new v(0,["a string or array",d])]])};else if(n)c=a=>d=>new m(1,[[a,new v(2,["an extra coder for "+de(r),d])]]);else throw new Error((o=de(r),i=Nn(nn("Cannot generate auto decoder for %s. Please pass an extra decoder.")),i(o)));return s.contents=c,c}function rt(e,t,n,r){let o,i,s;const l=de(r),u=Np(l,e);if(u==null)if(xf(r)){const c=rt(e,t,!1,eo(r));return a=>d=>Js(q(2,c),a,d)}else if(ra(r)){const c=de(Sf(r));if(c==="System.SByte")return a=>d=>{const f=r,p=a,g=d,_=Us(p)(g);if(_.tag===1)return new m(1,[_.fields[0]]);{const w=_.fields[0]|0;return fn(w,cn(f),{Equals:(b,F)=>b===F,GetHashCode:_t})?new m(0,[un(f,w.toString())]):new m(1,[[p,new v(1,[de(f),g,"Unkown value provided for the enum"])]])}};if(c==="System.Byte")return a=>d=>{const f=r,p=a,g=d,_=Ls(p)(g);if(_.tag===1)return new m(1,[_.fields[0]]);{const w=_.fields[0];return fn(w,cn(f),{Equals:(b,F)=>b===F,GetHashCode:_t})?new m(0,[un(f,w.toString())]):new m(1,[[p,new v(1,[de(f),g,"Unkown value provided for the enum"])]])}};if(c==="System.Int16")return a=>d=>{const f=r,p=a,g=d,_=zs(p)(g);if(_.tag===1)return new m(1,[_.fields[0]]);{const w=_.fields[0]|0;return fn(w,cn(f),{Equals:(b,F)=>b===F,GetHashCode:_t})?new m(0,[un(f,bu(w))]):new m(1,[[p,new v(1,[de(f),g,"Unkown value provided for the enum"])]])}};if(c==="System.UInt16")return a=>d=>{const f=r,p=a,g=d,_=Ws(p)(g);if(_.tag===1)return new m(1,[_.fields[0]]);{const w=_.fields[0];return fn(w,cn(f),{Equals:(b,F)=>b===F,GetHashCode:_t})?new m(0,[un(f,w.toString())]):new m(1,[[p,new v(1,[de(f),g,"Unkown value provided for the enum"])]])}};if(c==="System.Int32")return a=>d=>{const f=r,p=a,g=d,_=Gs(p)(g);if(_.tag===1)return new m(1,[_.fields[0]]);{const w=_.fields[0]|0;return fn(w,cn(f),{Equals:(b,F)=>b===F,GetHashCode:_t})?new m(0,[un(f,Rt(w))]):new m(1,[[p,new v(1,[de(f),g,"Unkown value provided for the enum"])]])}};if(c==="System.UInt32")return a=>d=>{const f=r,p=a,g=d,_=Qs(p)(g);if(_.tag===1)return new m(1,[_.fields[0]]);{const w=_.fields[0];return fn(w,cn(f),{Equals:(b,F)=>b===F,GetHashCode:_t})?new m(0,[un(f,w.toString())]):new m(1,[[p,new v(1,[de(f),g,"Unkown value provided for the enum"])]])}};{const a=de(r),f=Qf(nn(`Cannot generate auto decoder for %s.
|
|
13
13
|
Thoth.Json.Net only support the folluwing enum types:
|
|
14
14
|
- sbyte
|
|
15
15
|
- byte
|
|
@@ -18,13 +18,13 @@ Thoth.Json.Net only support the folluwing enum types:
|
|
|
18
18
|
- int
|
|
19
19
|
- uint32
|
|
20
20
|
If you can't use one of these types, please pass an extra decoder.
|
|
21
|
-
`))(a);return p=>f(p)}}else if(Ef(r))if(ra(r)){const c=xn(a=>rt(e,t,!1,a),If(r),null);return a=>d=>Array.isArray(d)?Dt(f=>Nf(no(f)),$a("tuple elements",c,a,d)):new h(1,[[a,new v(0,["an array",d])]])}else{const c=fe(Cf(r));if(c==="Microsoft.FSharp.Core.FSharpOption`1[System.Object]")return o=rt(e,t,!0,It(r)[0]),a=>d=>Zh(q(2,o),a,d);if(c==="Microsoft.FSharp.Collections.FSharpList`1[System.Object]")return i=rt(e,t,!1,It(r)[0]),a=>d=>Zs(q(2,i),a,d);if(c==="Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"){const a=rt(e,t,!1,It(r)[0]),d=rt(e,t,!1,It(r)[1]);let f;const p=S([g=>_=>t0(q(2,a),q(2,d),g,_),(s=Xh(q(2,a),q(2,d)),g=>_=>Zs(q(2,s),g,_))]);return f=g=>_=>Kh(p,g,_),g=>_=>$h(qh,q(2,f),g,_)}else if(c==="Microsoft.FSharp.Collections.FSharpSet`1[System.Object]"){const a=rt(e,t,!1,It(r)[0]);return d=>f=>{const p=Ks(q(2,a),d,f);return p.tag===0?new h(0,[Yh(p.fields[0])]):new h(1,[p.fields[0]])}}else return Xs(e,t,n,r)}else return l==="System.Boolean"?c=>a=>Uh(c,a):l==="Microsoft.FSharp.Core.Unit"?c=>a=>Vh(c,a):l==="System.String"?c=>a=>Hh(c,a):l==="System.SByte"?Vs:l==="System.Byte"?Us:l==="System.Int16"?Ls:l==="System.UInt16"?zs:l==="System.Int32"?Ws:l==="System.UInt32"?Gs:l==="System.Double"?c=>a=>Lh(c,a):l==="System.Single"?c=>a=>zh(c,a):l==="System.DateTime"?c=>a=>Wh(c,a):l==="System.DateTimeOffset"?c=>a=>Gh(c,a):l==="System.TimeSpan"?c=>a=>Qh(c,a):l==="System.Guid"?c=>a=>jh(c,a):l==="System.Object"?c=>a=>new h(0,[a]):Xs(e,t,n,r);else{const c=u;return a=>d=>c.contents(a)(d)}}function n0(e){return e!=null?Np((t,n)=>new ze(n[1]),e.Coders):Ba({Compare:yn})}function Wr(e,t,n){const r=fa(t,new or(0,[]));return rt(n0(n),r,!1,e)}class qs extends te{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Success","ImportError"]}}class r0{constructor(t,n,r){this.accessToken=r,this.baseUrl=`${t}/profiles/admin/accounts/${n}/imports`}}function o0(e,t,n){return new r0(e,t,n)}function Xa(e,t){return wi(_i,()=>{let n,r,o,i;const s=xi((n=Ai(new so(0,[]),bi(`${e.baseUrl}/${t}`)),r=yi((o=Nn(nn("Bearer %s")),o(e.accessToken))),vi(r,n)));return i=F.Bind(s,l=>F.Return(new h(0,[l]))),F.Delay(()=>F.Bind(i,l=>{let u,c;const a=l;return a.tag===1?F.Return(new h(1,[a.fields[0]])):F.ReturnFrom((u=a.fields[0],u.statusCode===200?(c=zr(q(2,Wr(ep(),new or(1,[]),void 0)),u.responseText),F.Return(c)):F.Return(new h(1,["Failed to fetch import"]))))}))})}function i0(e){return wi(_i,()=>{let t,n,r,o;const i=xi((t=Ai(new so(0,[]),bi(e.baseUrl)),n=yi((r=Nn(nn("Bearer %s")),r(e.accessToken))),vi(n,t)));return o=F.Bind(i,s=>F.Return(new h(0,[s]))),F.Delay(()=>F.Bind(o,s=>{let l,u;const c=s;return c.tag===1?F.Return(new h(1,[c.fields[0]])):F.ReturnFrom((l=c.fields[0],l.statusCode===200?(u=zr(q(2,Wr(Sa(),new or(1,[]),void 0)),l.responseText),F.Return(u)):F.Return(new h(1,["Failed to fetch account imports"]))))}))})}function s0(e,t){return wi(_i,()=>{let n,r,o,i;const s=xi((n=Hp(new Fa(3,[t]),Ai(new so(1,[]),bi(e.baseUrl))),r=yi((o=Nn(nn("Bearer %s")),o(e.accessToken))),vi(r,n)));return i=F.Bind(s,l=>F.Return(new h(0,[l]))),F.Delay(()=>F.Bind(i,l=>{let u,c,a,d,f,p;const g=l;return g.tag===1?F.Return(new h(1,[g.fields[0]])):F.ReturnFrom((u=g.fields[0],c=u.statusCode|0,c===200?(a=(d=zr(q(2,Wr(Sa(),new or(1,[]),void 0)),u.responseText),F.Return(d)),F.Bind(a,_=>{const w=Dt(b=>new qs(0,[b]),_);return F.Return(w)})):c===400?(f=(p=zr(q(2,Wr(qd(),new or(1,[]),void 0)),u.responseText),F.Return(p)),F.Bind(f,_=>{const w=Dt(b=>new qs(1,[b]),_);return F.Return(w)})):F.Return(new h(1,["Failed to create account import"]))))}))})}class l0{constructor(t,n,r){this.OnNext=t,this.OnError=n||(o=>{}),this.OnCompleted=r||(()=>{})}}function a0(e,t){t.Subscribe(new l0(e))}class c0{constructor(){this.delegates=[]}Add(t){this._addHandler(t)}get Publish(){return this}Trigger(t,n){let r,o;n===void 0?(r=null,o=t):(r=t,o=n),this.delegates.forEach(i=>i.length===1?i(o):i(r,o))}AddHandler(t){this._addHandler(t)}RemoveHandler(t){this._removeHandler(t)}Subscribe(t){const n=typeof t=="function"?t:t.OnNext;return this._addHandler(n),{Dispose:()=>{this._removeHandler(n)}}}_addHandler(t){this.delegates.push(t)}_removeHandler(t){const n=this.delegates.indexOf(t);n>-1&&this.delegates.splice(n,1)}}class u0{constructor(t){this._enabled=!1,this._isDisposed=!1,this._intervalId=0,this._timeoutId=0,this.Interval=t&&t>0?t:100,this.AutoReset=!0,this._elapsed=new c0}Elapsed(){return this._elapsed}get Enabled(){return this._enabled}set Enabled(t){!this._isDisposed&&this._enabled!==t&&(this._enabled=t,this._enabled?this.AutoReset?this._intervalId=setInterval(()=>{this.AutoReset||(this.Enabled=!1),this._elapsed.Trigger(new Date)},this.Interval):this._timeoutId=setTimeout(()=>{this.Enabled=!1,this._timeoutId=0,this.AutoReset&&(this.Enabled=!0),this._elapsed.Trigger(new Date)},this.Interval):(this._timeoutId&&(clearTimeout(this._timeoutId),this._timeoutId=0),this._intervalId&&(clearInterval(this._intervalId),this._intervalId=0)))}Dispose(){this.Enabled=!1,this._isDisposed=!0}Close(){this.Dispose()}Start(){this.Enabled=!0}Stop(){this.Enabled=!1}}function f0(e,t){console.error(xe(e),t)}function d0(e,t){let n,r=new u0(e);r.AutoReset=!1,n=r,a0(t,n.Elapsed()),n.Enabled=!0,n.Start()}function Ys(e,t){ha(n=>{n(e)},t)}function qt(){return Le()}function Do(e){return ma(e)}function Fr(e){return ve(t=>{t(e)})}function qa(e,t,n,r){return ve(o=>{e(F.Delay(()=>F.Bind(ap(t(n)),i=>{const s=i;return s.tag===0&&o(r(s.fields[0])),F.Zero()})))})}function Qo(e){d0(0,t=>{Da(e)})}function p0(e,t,n,r){const o=ct(e,n)|0;if(o===0)throw new Error("The step of a range cannot be zero");const i=o>0;return s=>{const l=ct(s,t)|0;return i&&l<=0||!i&&l>=0?[s,r(s,e)]:void 0}}function h0(e,t,n,r,o){const i=p0(t,n,r,o);return M(()=>Rd(i,e))}function m0(e,t,n){return h0(e,t,n,0,(r,o)=>r+o)}class gn extends te{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Writable","ReadWritable"]}}class g0{constructor(t){this.state=new gn(0,[fi(new Array(Bo(yn,t,10)),0,Bo(yn,t,10),null),0])}}function w0(e){return new g0(e)}function _0(e){const t=e.state;if(t.tag===1){const n=t.fields[1]|0,r=t.fields[2]|0,o=t.fields[0],i=(r+1)%o.length|0;return i===n?e.state=new gn(0,[o,n]):e.state=new gn(1,[o,n,i]),xe(o[r])}else return}function y0(e,t){const n=e.state;if(n.tag===1){const r=n.fields[1]|0,o=n.fields[2]|0,i=n.fields[0];i[r]=t;const s=(r+1)%i.length|0;s===o?e.state=new gn(1,[b0(e,o,i),i.length,0]):e.state=new gn(1,[i,s,o])}else{const r=n.fields[1]|0,o=n.fields[0];o[r]=t;const i=(r+1)%o.length|0;e.state=new gn(1,[o,i,r])}}function b0(e,t,n){return Array.from(M(()=>se(Pd(t,n),M(()=>se(Hd(t,n),M(()=>va(r=>k(Et()),m0(0,1,n.length))))))))}class Ya extends le{constructor(t,n,r,o,i,s,l){super(),this.init=t,this.update=n,this.subscribe=r,this.view=o,this.setState=i,this.onError=s,this.syncDispatch=l}}function A0(e,t,n){return new Ya(e,t,r=>qt(),n,q(2,r=>{const o=In(1,n,[r]);return i=>{o(i)}}),r=>{f0(r[0],r[1])},q(2,r=>r))}function v0(e,t){return new Ya(t.init,t.update,t.subscribe,t.view,e,t.onError,t.syncDispatch)}function x0(e,t){const n=t.init(e),r=n[0],o=w0(10);let i=!1,s=r;const l=c=>{let a;if(i)y0(o,c);else{i=!0;let d=xe(c);for(;d!=null;){const f=$(d);try{const p=t.update(f,s),g=p[0];t.setState(g,u),Ys(u,p[1]),s=g}catch(p){t.onError([(a=Nn(nn("Unable to process the message: %A")),a(f)),p])}d=_0(o)}i=!1}},u=In(1,t.syncDispatch,[l]);t.setState(r,u),Ys(u,ro((()=>{try{return t.subscribe(r)}catch(c){return t.onError(["Unable to subscribe:",c]),qt()}})(),n[1]))}const E0=(e,t)=>{mn(()=>{const n=e();return()=>{n.Dispose()}},t)},C=zl,ec=E0;function Si(e){return{Dispose(){e()}}}function el(e){return C.useState(e)}function tc(e,t){ec(e,t)}function C0(e){const t=C.useRef(void 0),n=C.useRef(!1),r=C.useRef(!1);n.current&&(r.current=!0),tc(()=>{let o;return n.current?o=void 0:(n.current=!0,t.current=xe(e()),o=r.current?t.current:void 0),{Dispose(){mi(i=>{J(i)},nd(o))}}},[])}function nc(e,t){ec(n=>(e(),Si(()=>{})),t)}function tl(e){return C.useRef(e)}function $n(e){return C.useState(e)}class S0{constructor(){this.hasDisposedOnce=!1,this.state=void 0,this.listener=void 0,this.dispatcher=void 0}}function D0(){return new S0}function F0(e){return e.state}function I0(e){return e.hasDisposedOnce}function k0(e,t,n){e.state=xe(t),e.dispatcher=n;const r=e.listener;r!=null&&r(t)}function M0(e,t){const n=e.dispatcher;n!=null&&n(t)}function T0(e,t){e.listener==null&&(e.listener=t)}function R0(e){const t=e.state;if(t!=null){const n=$(t);Wl(n)&&J(n)}e.dispatcher=void 0,e.state=void 0,e.hasDisposedOnce=!0}function nl(e,t,n,r){x0(t,v0((i,s)=>{k0(n,i,s)},e()));const o=F0(n);if(o!=null)return $(o);throw new Error("Elmish program has not initialized")}function N0(e,t,n){const r=el(D0)[0],o=el(()=>nl(e,t,r)),i=o[1];return tc(()=>(I0(r)&&i(nl(e,t,r)),Si(()=>{R0(r)})),fa(n,[])),T0(r,i),[o[0],s=>{M0(r,s)}]}function O0(e,t){return N0(e,void 0,t)}function rc(e,t,n){return O0(()=>A0(()=>e,t,(r,o)=>{}),n)}class hn extends te{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["HasNotStartedYet","InProgress","Resolved","Failed"]}}function B0(e,t){const n=$n(new hn(0,[])),r=n[1];let o;const i=tl(ip()),s=tl(i.current);C0(()=>Si(()=>{sp(i.current)})),o=s;const l=F.Delay(()=>F.TryWith(F.Delay(()=>(r(new hn(1,[])),F.Bind(e,u=>(r(new hn(2,[u])),F.Zero())))),u=>(r(new hn(3,[u])),F.Zero())));return nc(()=>{Da(l,o.current)},t),n[0]}class vt extends te{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Started","Finished"]}}class Gr extends te{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["ProfileImport","PastImports"]}}function rl(e){return e.tag===1?"Past Imports":"Profile Import"}class Zo extends le{constructor(t,n){super(),this.CurrentTab=t,this.AccountImports=n}}class Xn extends te{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SetCurrentTab","FetchImports"]}}const P0=[new Zo(new Gr(0,[]),new hn(0,[])),Fr(new Xn(1,[new vt(0,[void 0])]))];function H0(e,t,n){return t.tag===1?t.fields[0].tag===1?[new Zo(n.CurrentTab,new hn(2,[t.fields[0].fields[0]])),qt()]:[n,qa(r=>{Qo(r)},e,void 0,r=>new Xn(1,[new vt(1,[r])]))]:[new Zo(t.fields[0],n.AccountImports),qt()]}const j0=`*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}[type=text],[type=email],[type=url],[type=password],[type=number],[type=date],[type=datetime-local],[type=month],[type=search],[type=tel],[type=time],[type=week],[multiple],textarea,select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#6b7280;border-width:1px;border-radius:0;padding:.5rem .75rem;font-size:1rem;line-height:1.5rem;--tw-shadow: 0 0 #0000}[type=text]:focus,[type=email]:focus,[type=url]:focus,[type=password]:focus,[type=number]:focus,[type=date]:focus,[type=datetime-local]:focus,[type=month]:focus,[type=search]:focus,[type=tel]:focus,[type=time]:focus,[type=week]:focus,[multiple]:focus,textarea:focus,select:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: #2563eb;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);border-color:#2563eb}input::-moz-placeholder,textarea::-moz-placeholder{color:#6b7280;opacity:1}input::placeholder,textarea::placeholder{color:#6b7280;opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em}::-webkit-datetime-edit,::-webkit-datetime-edit-year-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-meridiem-field{padding-top:0;padding-bottom:0}select{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem;-webkit-print-color-adjust:exact;print-color-adjust:exact}[multiple]{background-image:initial;background-position:initial;background-repeat:unset;background-size:initial;padding-right:.75rem;-webkit-print-color-adjust:unset;print-color-adjust:unset}[type=checkbox],[type=radio]{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;-webkit-print-color-adjust:exact;print-color-adjust:exact;display:inline-block;vertical-align:middle;background-origin:border-box;-webkit-user-select:none;-moz-user-select:none;user-select:none;flex-shrink:0;height:1rem;width:1rem;color:#2563eb;background-color:#fff;border-color:#6b7280;border-width:1px;--tw-shadow: 0 0 #0000}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 2px;--tw-ring-offset-color: #fff;--tw-ring-color: #2563eb;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}[type=checkbox]:checked,[type=radio]:checked{border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:center;background-repeat:no-repeat}[type=checkbox]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e")}[type=radio]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e")}[type=checkbox]:checked:hover,[type=checkbox]:checked:focus,[type=radio]:checked:hover,[type=radio]:checked:focus{border-color:transparent;background-color:currentColor}[type=checkbox]:indeterminate{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3e%3c/svg%3e");border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:center;background-repeat:no-repeat}[type=checkbox]:indeterminate:hover,[type=checkbox]:indeterminate:focus{border-color:transparent;background-color:currentColor}[type=file]{background:unset;border-color:inherit;border-width:0;border-radius:0;padding:0;font-size:unset;line-height:inherit}[type=file]:focus{outline:1px solid ButtonText;outline:1px auto -webkit-focus-ring-color}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.fixed{position:fixed}.relative{position:relative}.inset-0{top:0px;right:0px;bottom:0px;left:0px}.z-10{z-index:10}.-mx-4{margin-left:-1rem;margin-right:-1rem}.-my-2{margin-top:-.5rem;margin-bottom:-.5rem}.mx-auto{margin-left:auto;margin-right:auto}.-mb-px{margin-bottom:-1px}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-6{margin-bottom:1.5rem}.ml-6{margin-left:1.5rem}.mr-6{margin-right:1.5rem}.mt-10{margin-top:2.5rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.min-h-full{min-height:100%}.w-full{width:100%}.min-w-full{min-width:100%}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-pointer{cursor:pointer}.list-outside{list-style-position:outside}.list-disc{list-style-type:disc}.items-end{align-items:flex-end}.justify-center{justify-content:center}.space-x-8>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(2rem * var(--tw-space-x-reverse));margin-left:calc(2rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.divide-gray-200>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(229 231 235 / var(--tw-divide-opacity))}.divide-gray-300>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(209 213 219 / var(--tw-divide-opacity))}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:.25rem}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-b-2{border-bottom-width:2px}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.border-indigo-500{--tw-border-opacity: 1;border-color:rgb(99 102 241 / var(--tw-border-opacity))}.border-transparent{border-color:transparent}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.bg-gray-500{--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}.bg-indigo-600{--tw-bg-opacity: 1;background-color:rgb(79 70 229 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-opacity-75{--tw-bg-opacity: .75}.p-4{padding:1rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-3\\.5{padding-left:.875rem;padding-right:.875rem}.px-4{padding-left:1rem;padding-right:1rem}.px-8{padding-left:2rem;padding-right:2rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\\.5{padding-top:.625rem;padding-bottom:.625rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-3\\.5{padding-top:.875rem;padding-bottom:.875rem}.py-4{padding-top:1rem;padding-bottom:1rem}.pb-4{padding-bottom:1rem}.pl-4{padding-left:1rem}.pr-3{padding-right:.75rem}.pt-5{padding-top:1.25rem}.text-left{text-align:left}.text-center{text-align:center}.align-middle{vertical-align:middle}.text-sm{font-size:.875rem;line-height:1.25rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.text-indigo-600{--tw-text-opacity: 1;color:rgb(79 70 229 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.ring-1{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-inset{--tw-ring-inset: inset}.ring-black{--tw-ring-opacity: 1;--tw-ring-color: rgb(0 0 0 / var(--tw-ring-opacity))}.ring-gray-300{--tw-ring-opacity: 1;--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity))}.ring-opacity-5{--tw-ring-opacity: .05}.hover\\:border-gray-300:hover{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.hover\\:bg-gray-50:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.hover\\:bg-indigo-500:hover{--tw-bg-opacity: 1;background-color:rgb(99 102 241 / var(--tw-bg-opacity))}.hover\\:text-gray-700:hover{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.focus-visible\\:outline:focus-visible{outline-style:solid}.focus-visible\\:outline-2:focus-visible{outline-width:2px}.focus-visible\\:outline-offset-2:focus-visible{outline-offset:2px}.focus-visible\\:outline-indigo-600:focus-visible{outline-color:#4f46e5}@media (min-width: 640px){.sm\\:col-start-1{grid-column-start:1}.sm\\:col-start-2{grid-column-start:2}.sm\\:-mx-6{margin-left:-1.5rem;margin-right:-1.5rem}.sm\\:my-8{margin-top:2rem;margin-bottom:2rem}.sm\\:mt-0{margin-top:0}.sm\\:mt-5{margin-top:1.25rem}.sm\\:mt-6{margin-top:1.5rem}.sm\\:grid{display:grid}.sm\\:w-full{width:100%}.sm\\:max-w-lg{max-width:32rem}.sm\\:grid-flow-row-dense{grid-auto-flow:row dense}.sm\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\\:items-center{align-items:center}.sm\\:gap-3{gap:.75rem}.sm\\:rounded-lg{border-radius:.5rem}.sm\\:p-0{padding:0}.sm\\:p-6{padding:1.5rem}.sm\\:px-6{padding-left:1.5rem;padding-right:1.5rem}.sm\\:pl-6{padding-left:1.5rem}}@media (min-width: 1024px){.lg\\:-mx-8{margin-left:-2rem;margin-right:-2rem}.lg\\:px-8{padding-left:2rem;padding-right:2rem}}
|
|
22
|
-
`,V0=(()=>Ce(j0))();function U0(e){let t,n;const r=e.setCurrentTab,o=e.currentTab;return m("div",K(S([["className","border-b border-gray-200"],(t=[m("nav",K(S([["className","-mb-px flex space-x-8"],(n=lt(M(()=>Ne(i=>m("a",{key:rl(i),className:St(" ",lt(M(()=>se(it(o,i)?k("border-indigo-500 text-indigo-600"):k("border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700 cursor-pointer"),M(()=>k("whitespace-nowrap border-b-2 py-4 px-1 text-sm font-medium")))))),onClick:s=>{r(i)},children:rl(i)}),[new Gr(0,[]),new Gr(1,[])]))),["children",C.Children.toArray(Array.from(n))])])))],["children",C.Children.toArray(Array.from(t))])])))}function sr(e){const t=S([m("p",{children:["Oops, something went wrong."]}),m("p",{children:[`Error: ${e}.`]}),m("p",{children:["Please refresh the page and try again."]})]);return m("div",{children:C.Children.toArray(Array.from(t))})}function oc(e){let t;const n=e.onDone,r=e.fetchImport,o=e.importId,i=B0(r(o),[]);let s,l,u,c;switch(i.tag===1?s=0:i.tag===3?(s=1,l=i.fields[0]):i.tag===2?i.fields[0].tag===0?(s=3,c=i.fields[0].fields[0]):(s=2,u=i.fields[0].fields[0]):s=0,s){case 0:return Et();case 1:return sr(l.message);case 2:return sr(u);case 3:return m("div",K(S([["className","text-center"],(t=lt(M(()=>se(k(m("p",{children:[`Import ID: ${c.ImportId}`]})),M(()=>se(k(m("p",{children:[`Creator: ${c.User}`]})),M(()=>se(k(m("p",{children:[`Filename: ${c.Filename}`]})),M(()=>se(k(m("p",{children:[`Date started: ${Ce(c.StartTime)}`]})),M(()=>{let a;return se((a=c.StopTime,a==null?k(Et()):k(m("p",{children:[`Date completed: ${Ce(a)}`]}))),M(()=>se(k(m("p",{children:[`Total rows: ${c.TotalRecordCount}`]})),M(()=>se(k(m("p",{children:[`Succeeded rows: ${c.SucceededRecordCount}`]})),M(()=>se(k(m("p",{children:[`Failed rows: ${c.FailedRecordCount}`]})),M(()=>{let d;return se(c.FailedRecordCount>0?k((d=lt(M(()=>se(k(m("p",{children:["The following profiles could not be created"]})),M(()=>Ne(f=>m("li",{children:[`${f.RowId}: ${f.Reason}`]}),c.FailedRecords))))),m("div",{children:C.Children.toArray(Array.from(d))}))):ba(),M(()=>k(m("button",{type:"button",children:"Done",className:"mt-8 rounded-md bg-indigo-600 px-3.5 py-2.5 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600",onClick:f=>{n()}}))))}))))))))})))))))))),["children",C.Children.toArray(Array.from(t))])])))}}class Fo extends te{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["HistoryTable","ImportSummary"]}}function L0(e){let t,n,r,o,i,s,l,u;const c=e.fetchImport,a=e.accountImports,d=$n(new Fo(0,[])),f=d[0],p=d[1];return f.tag===0?m("div",K(S([["className","-mx-4 -my-2 overflow-x-auto sm:-mx-6 lg:-mx-8"],(t=[m("div",K(S([["className","inline-block min-w-full py-2 align-middle sm:px-6 lg:px-8"],(n=[m("div",K(S([["className","overflow-hidden shadow ring-1 ring-black ring-opacity-5 sm:rounded-lg"],(r=[m("table",K(S([["className","min-w-full divide-y divide-gray-300"],(o=[m("thead",K(S([["className","bg-gray-100"],(i=[(s=S([m("th",{scope:"col",className:"py-3.5 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 sm:pl-6",children:"Import ID"}),m("th",{scope:"col",className:"px-3 py-3.5 text-left text-sm font-semibold text-gray-900",children:"Date"}),m("th",{scope:"col",className:"px-3 py-3.5 text-left text-sm font-semibold text-gray-900",children:"User"}),m("th",{scope:"col",className:"px-3 py-3.5 text-left text-sm font-semibold text-gray-900",children:"# of Profiles"})]),m("tr",{children:C.Children.toArray(Array.from(s))}))],["children",C.Children.toArray(Array.from(i))])]))),m("tbody",K(S([["className","divide-y divide-gray-200 bg-white"],(l=lt(M(()=>Ne(g=>{let _;return m("tr",K(S([["key",g.ImportId],["className","cursor-pointer hover:bg-gray-50"],["onClick",w=>{p(new Fo(1,[g.ImportId]))}],(_=[m("td",{className:"whitespace-nowrap py-4 pl-4 pr-3 text-sm text-gray-500 sm:pl-6",children:g.ImportId}),m("td",{className:"whitespace-nowrap px-3 py-4 text-sm text-gray-500",children:Ce(g.StartTime)}),m("td",{className:"whitespace-nowrap px-3 py-4 text-sm text-gray-500",children:g.User}),m("td",{className:"whitespace-nowrap px-3 py-4 text-sm text-gray-500",children:g.Succeeded})],["children",C.Children.toArray(Array.from(_))])])))},a.ImportHistory))),["children",C.Children.toArray(Array.from(l))])])))],["children",C.Children.toArray(Array.from(o))])])))],["children",C.Children.toArray(Array.from(r))])])))],["children",C.Children.toArray(Array.from(n))])])))],["children",C.Children.toArray(Array.from(t))])]))):m("div",K(S([["className","border border-gray-300 w-full py-12 rounded text-center bg-white"],(u=[m(oc,{importId:f.fields[0],fetchImport:c,onDone:()=>{p(new Fo(0,[]))}})],["children",C.Children.toArray(Array.from(u))])])))}const z0="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEA8ADwAAD/4QAiRXhpZgAATU0AKgAAAAgAAQESAAMAAAABAAEAAAAAAAD/2wBDAAIBAQIBAQICAgICAgICAwUDAwMDAwYEBAMFBwYHBwcGBwcICQsJCAgKCAcHCg0KCgsMDAwMBwkODw0MDgsMDAz/2wBDAQICAgMDAwYDAwYMCAcIDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAz/wAARCAAxADcDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwDz/wCKH7XPxUvfiT4glb4keOYy+o3B2Ra5cxxr+8bhVVwFA9AMCsL/AIav+KX/AEUrx/8A+FDd/wDxyuY+In/JQNd/7CFx/wCjGrHr6WMY22PmXKV9z6y/4J2/8FK/GX7P/wC01o994w8XeIvEHhHVz/ZurQapqU12lvFIwxOgkZtrRsFbIxldw71+8Vlew6lZw3FvIk0FwgkjkQ5V1IyCD6EHNfy11754I/4Ki/Hz4c+ENN0HR/iTrFrpOj2yWlnA1vbTeREg2ogZ42YhVAAyTgADtXJisH7R80NDswuM9muWep/Q5RX8/H/D3j9o7/oqGq/+ANn/APGaP+HvH7R3/RUNV/8AAGz/APjNcv8AZ1Tujq/tGn2Z/QPRX4//APBLf/gpb8aPjF+2Hofhvxd4zuPEWh6ja3jTWtzaQIN0dvJIpDRopBDKO9FctahKnLlZ1Ua8akeZH5//ABE/5KBrv/YQuP8A0Y1Y9bHxE/5KBrv/AGELj/0Y1Y9fQx2PnQr74/b28C+G9A/4JT/s76xpvh/Q9P1jWIoftt/bWMUN1eFbYg+ZIqhn55+YnmvgevvX9vPUvtP/AASP/ZhXP3hcr/3wpWsK3xQ9f0Oij8M/T9UfBVFFFdBzn1D/AMEcv+T+/Cn/AF6ah/6SS0Uf8Ecv+T+/Cn/XpqH/AKSS0V5GO/ifI9fA/wAP5nzt8RP+Sga7/wBhC4/9GNWPXdftL/C7W/g38d/FXh/xBYXGn6jZ6lOSk0ZTzEMjFJF9VZcEEcEGuFr1Y7Hky0dmFe8fHf8AaX8RfEv9jv4S+BdQ8H3Wj6D4La8/s3W38zy9aLvlwu5AnyE4O1mx3xXg9enfE79rvxp8XfgV4N+HetXVlL4b8C7hpaR2qxzKCMAO45bA4H15zSlG7TKjKyZ5jRRRVkH1D/wRy/5P78Kf9emof+kktFdX/wAENvg3rvxC/bVsdbsbOY6L4bsbp9Rvdh8m3MsDxRoT03MzcDrhWPaivHx8l7T5HsYGL9n8z2z/AIOK/wDkevCX/YNT/wBHT1+Y9FFd+D/hI4cZ/FYUUUV0nKFFFFAH7r/8ERP+TJ7D/r7b/wBASiiivncR/El6n0WH/hx9D//Z",W0="data:image/jpeg;base64,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",G0="data:image/jpeg;base64,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";var H={exports:{}},Q0="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Z0=Q0,K0=Z0;function ic(){}function sc(){}sc.resetWarningCache=ic;var J0=function(){function e(r,o,i,s,l,u){if(u!==K0){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:sc,resetWarningCache:ic};return n.PropTypes=n,n};H.exports=J0();function Hn(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function l(a){try{c(r.next(a))}catch(d){s(d)}}function u(a){try{c(r.throw(a))}catch(d){s(d)}}function c(a){a.done?i(a.value):o(a.value).then(l,u)}c((r=r.apply(e,t||[])).next())})}function jn(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(c){return function(a){return u([c,a])}}function u(c){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,c[0]&&(n=0)),n;)try{if(r=1,o&&(i=c[0]&2?o.return:c[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,c[1])).done)return i;switch(o=0,i&&(c=[c[0]&2,i.value]),c[0]){case 0:case 1:i=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,o=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]<i[3])){n.label=c[1];break}if(c[0]===6&&n.label<i[1]){n.label=i[1],i=c;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(c);break}i[2]&&n.ops.pop(),n.trys.pop();continue}c=t.call(e,n)}catch(a){c=[6,a],o=0}finally{r=i=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function ol(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(l){s={error:l}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i}function il(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}var $0=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["heic","image/heic"],["heif","image/heif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function mr(e,t){var n=X0(e);if(typeof n.path!="string"){var r=e.webkitRelativePath;Object.defineProperty(n,"path",{value:typeof t=="string"?t:typeof r=="string"&&r.length>0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}function X0(e){var t=e.name,n=t&&t.lastIndexOf(".")!==-1;if(n&&!e.type){var r=t.split(".").pop().toLowerCase(),o=$0.get(r);o&&Object.defineProperty(e,"type",{value:o,writable:!1,configurable:!1,enumerable:!0})}return e}var q0=[".DS_Store","Thumbs.db"];function Y0(e){return Hn(this,void 0,void 0,function(){return jn(this,function(t){return Qr(e)&&em(e.dataTransfer)?[2,om(e.dataTransfer,e.type)]:tm(e)?[2,nm(e)]:Array.isArray(e)&&e.every(function(n){return"getFile"in n&&typeof n.getFile=="function"})?[2,rm(e)]:[2,[]]})})}function em(e){return Qr(e)}function tm(e){return Qr(e)&&Qr(e.target)}function Qr(e){return typeof e=="object"&&e!==null}function nm(e){return Ko(e.target.files).map(function(t){return mr(t)})}function rm(e){return Hn(this,void 0,void 0,function(){var t;return jn(this,function(n){switch(n.label){case 0:return[4,Promise.all(e.map(function(r){return r.getFile()}))];case 1:return t=n.sent(),[2,t.map(function(r){return mr(r)})]}})})}function om(e,t){return Hn(this,void 0,void 0,function(){var n,r;return jn(this,function(o){switch(o.label){case 0:return e.items?(n=Ko(e.items).filter(function(i){return i.kind==="file"}),t!=="drop"?[2,n]:[4,Promise.all(n.map(im))]):[3,2];case 1:return r=o.sent(),[2,sl(lc(r))];case 2:return[2,sl(Ko(e.files).map(function(i){return mr(i)}))]}})})}function sl(e){return e.filter(function(t){return q0.indexOf(t.name)===-1})}function Ko(e){if(e===null)return[];for(var t=[],n=0;n<e.length;n++){var r=e[n];t.push(r)}return t}function im(e){if(typeof e.webkitGetAsEntry!="function")return ll(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?ac(t):ll(e)}function lc(e){return e.reduce(function(t,n){return il(il([],ol(t),!1),ol(Array.isArray(n)?lc(n):[n]),!1)},[])}function ll(e){var t=e.getAsFile();if(!t)return Promise.reject("".concat(e," is not a File"));var n=mr(t);return Promise.resolve(n)}function sm(e){return Hn(this,void 0,void 0,function(){return jn(this,function(t){return[2,e.isDirectory?ac(e):lm(e)]})})}function ac(e){var t=e.createReader();return new Promise(function(n,r){var o=[];function i(){var s=this;t.readEntries(function(l){return Hn(s,void 0,void 0,function(){var u,c,a;return jn(this,function(d){switch(d.label){case 0:if(l.length)return[3,5];d.label=1;case 1:return d.trys.push([1,3,,4]),[4,Promise.all(o)];case 2:return u=d.sent(),n(u),[3,4];case 3:return c=d.sent(),r(c),[3,4];case 4:return[3,6];case 5:a=Promise.all(l.map(sm)),o.push(a),i(),d.label=6;case 6:return[2]}})})},function(l){r(l)})}i()})}function lm(e){return Hn(this,void 0,void 0,function(){return jn(this,function(t){return[2,new Promise(function(n,r){e.file(function(o){var i=mr(o,e.fullPath);n(i)},function(o){r(o)})})]})})}var am=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",o=(e.type||"").toLowerCase(),i=o.replace(/\/.*$/,"");return n.some(function(s){var l=s.trim().toLowerCase();return l.charAt(0)==="."?r.toLowerCase().endsWith(l):l.endsWith("/*")?i===l.replace(/\/.*$/,""):o===l})}return!0};function al(e){return fm(e)||um(e)||uc(e)||cm()}function cm(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
23
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
24
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function uc(e,t){if(!!e){if(typeof e=="string")return Jo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Jo(e,t)}}function Jo(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function
|
|
25
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
26
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mc(e,t){if(!!e){if(typeof e=="string")return $o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return $o(e,t)}}function $o(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function jm(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],o=!0,i=!1,s,l;try{for(n=n.call(e);!(o=(s=n.next()).done)&&(r.push(s.value),!(t&&r.length===t));o=!0);}catch(u){i=!0,l=u}finally{try{!o&&n.return!=null&&n.return()}finally{if(i)throw l}}return r}}function Vm(e){if(Array.isArray(e))return e}function hl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Z(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?hl(Object(n),!0).forEach(function(r){Xo(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hl(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Xo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kr(e,t){if(e==null)return{};var n=Um(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(n[r]=e[r]))}return n}function Um(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var Di=Bl(function(e,t){var n=e.children,r=Kr(e,km),o=wc(r),i=o.open,s=Kr(o,Mm);return Rl(t,function(){return{open:i}},[i]),zl.createElement($e,null,n(Z(Z({},s),{},{open:i})))});Di.displayName="Dropzone";var gc={disabled:!1,getFilesFromEvent:Y0,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0,autoFocus:!1};Di.defaultProps=gc;Di.propTypes={children:H.exports.func,accept:H.exports.objectOf(H.exports.arrayOf(H.exports.string)),multiple:H.exports.bool,preventDropOnDocument:H.exports.bool,noClick:H.exports.bool,noKeyboard:H.exports.bool,noDrag:H.exports.bool,noDragEventsBubbling:H.exports.bool,minSize:H.exports.number,maxSize:H.exports.number,maxFiles:H.exports.number,disabled:H.exports.bool,getFilesFromEvent:H.exports.func,onFileDialogCancel:H.exports.func,onFileDialogOpen:H.exports.func,useFsAccessApi:H.exports.bool,autoFocus:H.exports.bool,onDragEnter:H.exports.func,onDragLeave:H.exports.func,onDragOver:H.exports.func,onDrop:H.exports.func,onDropAccepted:H.exports.func,onDropRejected:H.exports.func,onError:H.exports.func,validator:H.exports.func};var qo={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function wc(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=Z(Z({},gc),e),n=t.accept,r=t.disabled,o=t.getFilesFromEvent,i=t.maxSize,s=t.minSize,l=t.multiple,u=t.maxFiles,c=t.onDragEnter,a=t.onDragLeave,d=t.onDragOver,f=t.onDrop,p=t.onDropAccepted,g=t.onDropRejected,_=t.onFileDialogCancel,w=t.onFileDialogOpen,b=t.useFsAccessApi,I=t.autoFocus,ne=t.preventDropOnDocument,oe=t.noClick,G=t.noKeyboard,O=t.noDrag,ae=t.noDragEventsBubbling,P=t.onError,ce=t.validator,We=wt(function(){return Dm(n)},[n]),Ft=wt(function(){return Sm(n)},[n]),Vn=wt(function(){return typeof w=="function"?w:ml},[w]),Vt=wt(function(){return typeof _=="function"?_:ml},[_]),ie=Wn(null),he=Wn(null),Ac=ni(Lm,qo),Ii=Io(Ac,2),lo=Ii[0],Fe=Ii[1],vc=lo.isFocused,ki=lo.isFileDialogActive,gr=Wn(typeof window<"u"&&window.isSecureContext&&b&&Cm()),Mi=function(){!gr.current&&ki&&setTimeout(function(){if(he.current){var E=he.current.files;E.length||(Fe({type:"closeDialog"}),Vt())}},300)};mn(function(){return window.addEventListener("focus",Mi,!1),function(){window.removeEventListener("focus",Mi,!1)}},[he,ki,Vt,gr]);var on=Wn([]),Ti=function(E){ie.current&&ie.current.contains(E.target)||(E.preventDefault(),on.current=[])};mn(function(){return ne&&(document.addEventListener("dragover",pl,!1),document.addEventListener("drop",Ti,!1)),function(){ne&&(document.removeEventListener("dragover",pl),document.removeEventListener("drop",Ti))}},[ie,ne]),mn(function(){return!r&&I&&ie.current&&ie.current.focus(),function(){}},[ie,I,r]);var Ut=Se(function(y){P?P(y):console.error(y)},[P]),Ri=Se(function(y){y.preventDefault(),y.persist(),br(y),on.current=[].concat(Nm(on.current),[y.target]),vr(y)&&Promise.resolve(o(y)).then(function(E){if(!(Zr(y)&&!ae)){var X=E.length,ue=X>0&&Am({files:E,accept:We,minSize:s,maxSize:i,multiple:l,maxFiles:u,validator:ce}),Ie=X>0&&!ue;Fe({isDragAccept:ue,isDragReject:Ie,isDragActive:!0,type:"setDraggedFiles"}),c&&c(y)}}).catch(function(E){return Ut(E)})},[o,c,Ut,ae,We,s,i,l,u,ce]),Ni=Se(function(y){y.preventDefault(),y.persist(),br(y);var E=vr(y);if(E&&y.dataTransfer)try{y.dataTransfer.dropEffect="copy"}catch{}return E&&d&&d(y),!1},[d,ae]),Oi=Se(function(y){y.preventDefault(),y.persist(),br(y);var E=on.current.filter(function(ue){return ie.current&&ie.current.contains(ue)}),X=E.indexOf(y.target);X!==-1&&E.splice(X,1),on.current=E,!(E.length>0)&&(Fe({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),vr(y)&&a&&a(y))},[ie,a,ae]),wr=Se(function(y,E){var X=[],ue=[];y.forEach(function(Ie){var Un=fc(Ie,We),an=Io(Un,2),co=an[0],uo=an[1],fo=dc(Ie,s,i),Ar=Io(fo,2),po=Ar[0],ho=Ar[1],mo=ce?ce(Ie):null;if(co&&po&&!mo)X.push(Ie);else{var go=[uo,ho];mo&&(go=go.concat(mo)),ue.push({file:Ie,errors:go.filter(function(Sc){return Sc})})}}),(!l&&X.length>1||l&&u>=1&&X.length>u)&&(X.forEach(function(Ie){ue.push({file:Ie,errors:[bm]})}),X.splice(0)),Fe({acceptedFiles:X,fileRejections:ue,type:"setFiles"}),f&&f(X,ue,E),ue.length>0&&g&&g(ue,E),X.length>0&&p&&p(X,E)},[Fe,l,We,s,i,u,f,p,g,ce]),_r=Se(function(y){y.preventDefault(),y.persist(),br(y),on.current=[],vr(y)&&Promise.resolve(o(y)).then(function(E){Zr(y)&&!ae||wr(E,y)}).catch(function(E){return Ut(E)}),Fe({type:"reset"})},[o,wr,Ut,ae]),sn=Se(function(){if(gr.current){Fe({type:"openDialog"}),Vn();var y={multiple:l,types:Ft};window.showOpenFilePicker(y).then(function(E){return o(E)}).then(function(E){wr(E,null),Fe({type:"closeDialog"})}).catch(function(E){Fm(E)?(Vt(E),Fe({type:"closeDialog"})):Im(E)?(gr.current=!1,he.current?(he.current.value=null,he.current.click()):Ut(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):Ut(E)});return}he.current&&(Fe({type:"openDialog"}),Vn(),he.current.value=null,he.current.click())},[Fe,Vn,Vt,b,wr,Ut,Ft,l]),Bi=Se(function(y){!ie.current||!ie.current.isEqualNode(y.target)||(y.key===" "||y.key==="Enter"||y.keyCode===32||y.keyCode===13)&&(y.preventDefault(),sn())},[ie,sn]),Pi=Se(function(){Fe({type:"focus"})},[]),Hi=Se(function(){Fe({type:"blur"})},[]),ji=Se(function(){oe||(Em()?setTimeout(sn,0):sn())},[oe,sn]),ln=function(E){return r?null:E},ao=function(E){return G?null:ln(E)},yr=function(E){return O?null:ln(E)},br=function(E){ae&&E.stopPropagation()},xc=wt(function(){return function(){var y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},E=y.refKey,X=E===void 0?"ref":E,ue=y.role,Ie=y.onKeyDown,Un=y.onFocus,an=y.onBlur,co=y.onClick,uo=y.onDragEnter,fo=y.onDragOver,Ar=y.onDragLeave,po=y.onDrop,ho=Kr(y,Tm);return Z(Z(Xo({onKeyDown:ao(Ye(Ie,Bi)),onFocus:ao(Ye(Un,Pi)),onBlur:ao(Ye(an,Hi)),onClick:ln(Ye(co,ji)),onDragEnter:yr(Ye(uo,Ri)),onDragOver:yr(Ye(fo,Ni)),onDragLeave:yr(Ye(Ar,Oi)),onDrop:yr(Ye(po,_r)),role:typeof ue=="string"&&ue!==""?ue:"presentation"},X,ie),!r&&!G?{tabIndex:0}:{}),ho)}},[ie,Bi,Pi,Hi,ji,Ri,Ni,Oi,_r,G,O,r]),Ec=Se(function(y){y.stopPropagation()},[]),Cc=wt(function(){return function(){var y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},E=y.refKey,X=E===void 0?"ref":E,ue=y.onChange,Ie=y.onClick,Un=Kr(y,Rm),an=Xo({accept:We,multiple:l,type:"file",style:{display:"none"},onChange:ln(Ye(ue,_r)),onClick:ln(Ye(Ie,Ec)),tabIndex:-1},X,he);return Z(Z({},an),Un)}},[he,n,l,_r,r]);return Z(Z({},lo),{},{isFocused:vc&&!r,getRootProps:xc,getInputProps:Cc,rootRef:ie,inputRef:he,open:ln(sn)})}function Lm(e,t){switch(t.type){case"focus":return Z(Z({},e),{},{isFocused:!0});case"blur":return Z(Z({},e),{},{isFocused:!1});case"openDialog":return Z(Z({},qo),{},{isFileDialogActive:!0});case"closeDialog":return Z(Z({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return Z(Z({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return Z(Z({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return Z({},qo);default:return e}}function ml(){}const zm="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEA8ADwAAD/4QAiRXhpZgAATU0AKgAAAAgAAQESAAMAAAABAAEAAAAAAAD/2wBDAAIBAQIBAQICAgICAgICAwUDAwMDAwYEBAMFBwYHBwcGBwcICQsJCAgKCAcHCg0KCgsMDAwMBwkODw0MDgsMDAz/2wBDAQICAgMDAwYDAwYMCAcIDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAz/wAARCAA6AEEDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwDuvit4r1LVfibr9xcX1zNNJqExLNIf75rB/tm8/wCfqf8A7+GtD4jn/iv9c/6/pv8A0M1j19NHax85LcsJrt9E6st3cKyncCJG4xX6Zf8ABLL9pm8+M3wwv9D16+F1rmgTYRnbM01swG1j6kNuHHbFfmJ95a7H4GfG/Wf2fviDD4i0WRkuo43idd3yyqwxgjnI6Hn0rDEUPaU7dTooVvZyP22VstS1+YX/AA9s+ICgfubfPr8vP/jtH/D234hf88bf/wAd/wDia8xYGqej9cp9Wfp9SKNtfmF/w9t+IP8Azxt/zX/4mrnh/wD4K6eN7fXLR7yzt7i0WVRNGHVd6kjPO2plg6iVwjjKb0R+mVFcP/wuOD/n3k/OisfZy7G/tIn4z/Eb/kf9c/6/pv8A0M1j1sfEb/kf9c/6/pv/AEM1j19FE+fluJXcfAT9n3xF+0Z4zXR9AgUMozPdzErBajtubHUngDqazPhD8OH+LHxC0/RF1Cz0tbli0t3dSBI4I1BZmJPoAcDvX0l4B+MXhn4WeP8Awn8NfhrcyX2mX2t20uta1IuHv3DjEcfogxye9Y1qrjdRWprSpptOWx4b+0X+zB4n/Zk8TR6fr8MM0NwC1vfWxLW9we4DY4Ydwea85FfZ3xw+M+heJvjl43+FvxBka38MXmprcadqkYzJo9yUXDH1jJPPpn8vmP46fCT/AIUx4+k0qPVrDXLOaIXNnfWkgdLiFs4Jx91uOQaKNSUrKe5VanFNuDOOPFPtlxdQ8/8ALQE+/I60zvUlt/x8w/76/wAxW0trGMXqj9a99FNorlsdx+VfxG/5H/XP+v6b/wBDNY9bHxHOPH2ue99N/wChmseuqOxwS3DJHRmX3U4+td3+zAc/tF+DP+wvb4x/viuEPSu6/Ze/5OK8F/8AYXt//QxU1PgbLpS99I6H9u3j9rbxn/19r/6LWvJCWP3mZuf4jnFeuft2/wDJ2fjT/r8X/wBFrXkdFH4EFb42B5p1sf8ASYuv+sX+YptOtTm6i/31/mKuXwkxeqP1qooorkudnMfl58dPDlx4P+MnibTbqOSOa11OcYddpYbzhvxGPzrls1+qH7fngTQ9R8C3WoXGi6TPfhUxcyWkbTD/AIGRn9a+H18L6btH/Eusen/Pun+FXQrc8bmFalySseHE8VLpupXGkX8N1a3E1rdW7B4pon2SRsOhDDoRXtw8L6Zn/kHWP/gOn+FB8LaZj/kG2P8A4Dp/hW/NpYyS1ueLa1rt74k1Wa+1K8uL+9uDuluJ5TJJKegJY8mq26vcv+EX0zH/ACDbH/wHT/Cj/hF9M/6B1j/4Dp/hRzBY8NzWl4J8N3XjPxfpuk2MfmXWoXUUEagZySwA6elewf8ACL6Z/wBA6x/8B0/wr7G/4J5eAdCi8IRagui6St+s7bbkWcYmHPZ8Z/Wsa9Xljc0o0+aaR7F/wq+b+89Feh729TRXje2n3PW9jE//2Q==",Wm="data:image/jpeg;base64,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";var Gm=0;function et(e,t,n,r,o,i){var s,l,u={};for(l in t)l=="ref"?s=t[l]:u[l]=t[l];var c={type:e,props:u,key:n,ref:s,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--Gm,__source:o,__self:i};if(typeof e=="function"&&(s=e.defaultProps))for(l in s)u[l]===void 0&&(u[l]=s[l]);return A.vnode&&A.vnode(c),c}function Qm({onCancel:e,onSubmit:t,onFileDrop:n}){const r=Se(c=>{const a=c[0];n(a,a.path)},[]),{getRootProps:o,getInputProps:i,open:s,acceptedFiles:l}=wc({onDrop:r,accept:{"text/csv":[".csv"]},maxFiles:1,noClick:!0,noKeyboard:!0,multiple:!1,maxSize:35e5}),u=l.map(c=>et("p",{children:c.path},c.path));return et("div",{...o(),children:[et("input",{...i(),name:"file"}),et("img",{src:u.length?Wm:zm,className:"mx-auto mb-2"}),u.length?et($e,{children:[u,et("button",{type:"reset",onClick:e,className:"mt-6 mr-6 rounded-md bg-white px-3.5 py-2.5 text-sm font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50",children:"Cancel"}),et("button",{type:"button",onClick:t,className:"rounded-md bg-indigo-600 px-3.5 py-2.5 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600",children:"Import file"})]}):et($e,{children:[et("p",{className:"mb-6 text-gray-500",children:"Drag a file to upload"}),et("button",{type:"button",onClick:s,className:"rounded-md bg-indigo-600 px-3.5 py-2.5 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600",children:"Browse"})]})]})}class Ze extends te{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["FileSelection","Validating","ValidationError","ImportInProgress","ImportComplete","UnexpectedError"]}}class _c extends le{constructor(t){super(),this.View=t}}class me extends te{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SetView","CreateImport","FetchImports"]}}function Zm(){return[new _c(new Ze(0,[])),qt()]}function Km(e,t,n,r){let o,i,s;return n.tag===1?n.fields[0].tag===1?[r,Do(Vr(Fr,n.fields[0].fields[0].tag===1?ve(new me(0,[new Ze(5,[n.fields[0].fields[0].fields[0]])])):n.fields[0].fields[0].fields[0].tag===1?ve(new me(0,[new Ze(2,[n.fields[0].fields[0].fields[0].fields[0]])])):n.fields[0].fields[0].fields[0].fields[0].ActiveImport==null?ve(new me(0,[new Ze(5,["New import not active"])])):(o=n.fields[0].fields[0].fields[0].fields[0].ActiveImport,S([new me(0,[new Ze(3,[o])]),new me(2,[new vt(0,[void 0])])]))))]:[r,Do(S([Fr(new me(0,[new Ze(1,[])])),qa(l=>{Qo(l)},l=>s0(t,l),n.fields[0].fields[0],l=>new me(1,[new vt(1,[l])]))]))]:n.tag===2?n.fields[0].tag===1?[r,Do(Vr(Fr,(i=r.View,i.tag===3?n.fields[0].fields[0].ActiveImport!=null?(s=n.fields[0].fields[0].ActiveImport,S([new me(0,[new Ze(3,[s])]),new me(2,[new vt(0,[void 0])])])):ve(new me(0,[new Ze(4,[_d(l=>l.ImportId===i.fields[0].ImportId,n.fields[0].fields[0].ImportHistory)])])):n.fields[0].fields[0].ActiveImport!=null?(s=n.fields[0].fields[0].ActiveImport,S([new me(0,[new Ze(3,[s])]),new me(2,[new vt(0,[void 0])])])):ve(new me(0,[new Ze(0,[])])))))]:(Qo(F.Delay(()=>F.Bind(up(1e4),()=>(e(),F.Zero())))),[r,qt()]):[new _c(n.fields[0]),qt()]}const yc=z0,gl=W0,Jm=G0;function $m(e){let t;const n=e.dispatch,r=$n(!1),o=r[1],i=$n(0),s=i[0]|0,l=$n(new FormData),u=l[0];return m("form",K(S([["key",s],(t=lt(M(()=>se(k(m(Qm,{onCancel:()=>{i[1](s+1),l[1](new FormData)},onSubmit:()=>{o(!0)},onFileDrop:(c,a)=>{u.set("file",c,a)}})),M(()=>{let c,a,d,f,p,g,_;return r[0]?k((c=S([m("div",{className:"fixed inset-0 bg-gray-500 bg-opacity-75"}),m("div",K(S([["className","fixed inset-0 z-10 overflow-y-auto"],(a=[m("div",K(S([["className","flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0"],(d=[m("div",K(S([["className","relative overflow-hidden rounded-lg bg-white px-4 pb-4 pt-5 text-left shadow-xl sm:my-8 sm:w-full sm:max-w-lg sm:p-6"],(f=[(p=S([m("div",K(S([["className","mt-3 text-center sm:mt-5 space-y-6"],(g=[m("img",{src:yc,className:"mx-auto"}),m("p",{children:["Please check and confirm this file is being uploaded to the correct account."]}),m("p",{children:["Uploading files to the wrong account can cause a security breach."]})],["children",C.Children.toArray(Array.from(g))])]))),m("div",K(S([["className","mt-5 sm:mt-6 sm:grid sm:grid-flow-row-dense sm:grid-cols-2 sm:gap-3"],(_=[m("button",{type:"button",className:"inline-flex w-full justify-center rounded-md bg-indigo-600 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600 sm:col-start-2",children:"I confirm",onClick:w=>{n(new me(1,[new vt(0,[u])]))}}),m("button",{type:"button",className:"mt-3 inline-flex w-full justify-center rounded-md bg-white px-3 py-2 text-sm font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50 sm:col-start-1 sm:mt-0",children:"Cancel",onClick:w=>{o(!1)}})],["children",C.Children.toArray(Array.from(_))])])))]),m("div",{children:C.Children.toArray(Array.from(p))}))],["children",C.Children.toArray(Array.from(f))])])))],["children",C.Children.toArray(Array.from(d))])])))],["children",C.Children.toArray(Array.from(a))])])))]),m("div",{children:C.Children.toArray(Array.from(c))}))):ba()})))),["children",C.Children.toArray(Array.from(t))])])))}function Xm(e){let t,n,r,o,i,s,l,u;const c=e.onDone,a=e.backendService,d=e.dispatchFetchImports,f=e.accountImports,p=e.accountId,g=rc(Zm(),(b,I)=>Km(d,a,b,I)),_=g[1];nc(()=>{_(new me(2,[new vt(1,[f])]))},[f]);const w=S([m("div",K(S([["className","space-y-6"],(t=[(n=S([`Upload a CSV file with required information (first name, last name, email) to create new partial profiles.
|
|
27
|
-
The file will be validated `,
|
|
21
|
+
`))(a);return p=>f(p)}}else if(Ef(r))if(oa(r)){const c=xn(a=>rt(e,t,!1,a),Ff(r),null);return a=>d=>Array.isArray(d)?Dt(f=>Nf(no(f)),$a("tuple elements",c,a,d)):new m(1,[[a,new v(0,["an array",d])]])}else{const c=de(Cf(r));if(c==="Microsoft.FSharp.Core.FSharpOption`1[System.Object]")return o=rt(e,t,!0,Ft(r)[0]),a=>d=>Kh(q(2,o),a,d);if(c==="Microsoft.FSharp.Collections.FSharpList`1[System.Object]")return i=rt(e,t,!1,Ft(r)[0]),a=>d=>Ks(q(2,i),a,d);if(c==="Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"){const a=rt(e,t,!1,Ft(r)[0]),d=rt(e,t,!1,Ft(r)[1]);let f;const p=S([g=>_=>n0(q(2,a),q(2,d),g,_),(s=qh(q(2,a),q(2,d)),g=>_=>Ks(q(2,s),g,_))]);return f=g=>_=>Jh(p,g,_),g=>_=>Xh(Yh,q(2,f),g,_)}else if(c==="Microsoft.FSharp.Collections.FSharpSet`1[System.Object]"){const a=rt(e,t,!1,Ft(r)[0]);return d=>f=>{const p=Js(q(2,a),d,f);return p.tag===0?new m(0,[e0(p.fields[0])]):new m(1,[p.fields[0]])}}else return qs(e,t,n,r)}else return l==="System.Boolean"?c=>a=>Lh(c,a):l==="Microsoft.FSharp.Core.Unit"?c=>a=>Uh(c,a):l==="System.String"?c=>a=>jh(c,a):l==="System.SByte"?Us:l==="System.Byte"?Ls:l==="System.Int16"?zs:l==="System.UInt16"?Ws:l==="System.Int32"?Gs:l==="System.UInt32"?Qs:l==="System.Double"?c=>a=>zh(c,a):l==="System.Single"?c=>a=>Wh(c,a):l==="System.DateTime"?c=>a=>Gh(c,a):l==="System.DateTimeOffset"?c=>a=>Qh(c,a):l==="System.TimeSpan"?c=>a=>Zh(c,a):l==="System.Guid"?c=>a=>Vh(c,a):l==="System.Object"?c=>a=>new m(0,[a]):qs(e,t,n,r);else{const c=u;return a=>d=>c.contents(a)(d)}}function r0(e){return e!=null?Op((t,n)=>new Ge(n[1]),e.Coders):Ba({Compare:yn})}function Wr(e,t,n){const r=da(t,new or(0,[]));return rt(r0(n),r,!1,e)}class Ys extends te{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Success","ImportError"]}}class o0{constructor(t,n,r){this.accessToken=r,this.baseUrl=`${t}/profiles/admin/accounts/${n}/imports`}}function i0(e,t,n){return new o0(e,t,n)}function Xa(e,t){return _i(yi,()=>{let n,r,o,i;const s=Ei((n=vi(new so(0,[]),Ai(`${e.baseUrl}/${t}`)),r=bi((o=Nn(nn("Bearer %s")),o(e.accessToken))),xi(r,n)));return i=I.Bind(s,l=>I.Return(new m(0,[l]))),I.Delay(()=>I.Bind(i,l=>{let u,c;const a=l;return a.tag===1?I.Return(new m(1,[a.fields[0]])):I.ReturnFrom((u=a.fields[0],u.statusCode===200?(c=zr(q(2,Wr(tp(),new or(1,[]),void 0)),u.responseText),I.Return(c)):I.Return(new m(1,["Failed to fetch import"]))))}))})}function s0(e){return _i(yi,()=>{let t,n,r,o;const i=Ei((t=vi(new so(0,[]),Ai(e.baseUrl)),n=bi((r=Nn(nn("Bearer %s")),r(e.accessToken))),xi(n,t)));return o=I.Bind(i,s=>I.Return(new m(0,[s]))),I.Delay(()=>I.Bind(o,s=>{let l,u;const c=s;return c.tag===1?I.Return(new m(1,[c.fields[0]])):I.ReturnFrom((l=c.fields[0],l.statusCode===200?(u=zr(q(2,Wr(Sa(),new or(1,[]),void 0)),l.responseText),I.Return(u)):I.Return(new m(1,["Failed to fetch account imports"]))))}))})}function l0(e,t){return _i(yi,()=>{let n,r,o,i;const s=Ei((n=jp(new Ia(3,[t]),vi(new so(1,[]),Ai(e.baseUrl))),r=bi((o=Nn(nn("Bearer %s")),o(e.accessToken))),xi(r,n)));return i=I.Bind(s,l=>I.Return(new m(0,[l]))),I.Delay(()=>I.Bind(i,l=>{let u,c,a,d,f,p;const g=l;return g.tag===1?I.Return(new m(1,[g.fields[0]])):I.ReturnFrom((u=g.fields[0],c=u.statusCode|0,c===200?(a=(d=zr(q(2,Wr(Sa(),new or(1,[]),void 0)),u.responseText),I.Return(d)),I.Bind(a,_=>{const w=Dt(b=>new Ys(0,[b]),_);return I.Return(w)})):c===400?(f=(p=zr(q(2,Wr(Yd(),new or(1,[]),void 0)),u.responseText),I.Return(p)),I.Bind(f,_=>{const w=Dt(b=>new Ys(1,[b]),_);return I.Return(w)})):I.Return(new m(1,["Failed to create account import"]))))}))})}class a0{constructor(t,n,r){this.OnNext=t,this.OnError=n||(o=>{}),this.OnCompleted=r||(()=>{})}}function c0(e,t){t.Subscribe(new a0(e))}class u0{constructor(){this.delegates=[]}Add(t){this._addHandler(t)}get Publish(){return this}Trigger(t,n){let r,o;n===void 0?(r=null,o=t):(r=t,o=n),this.delegates.forEach(i=>i.length===1?i(o):i(r,o))}AddHandler(t){this._addHandler(t)}RemoveHandler(t){this._removeHandler(t)}Subscribe(t){const n=typeof t=="function"?t:t.OnNext;return this._addHandler(n),{Dispose:()=>{this._removeHandler(n)}}}_addHandler(t){this.delegates.push(t)}_removeHandler(t){const n=this.delegates.indexOf(t);n>-1&&this.delegates.splice(n,1)}}class f0{constructor(t){this._enabled=!1,this._isDisposed=!1,this._intervalId=0,this._timeoutId=0,this.Interval=t&&t>0?t:100,this.AutoReset=!0,this._elapsed=new u0}Elapsed(){return this._elapsed}get Enabled(){return this._enabled}set Enabled(t){!this._isDisposed&&this._enabled!==t&&(this._enabled=t,this._enabled?this.AutoReset?this._intervalId=setInterval(()=>{this.AutoReset||(this.Enabled=!1),this._elapsed.Trigger(new Date)},this.Interval):this._timeoutId=setTimeout(()=>{this.Enabled=!1,this._timeoutId=0,this.AutoReset&&(this.Enabled=!0),this._elapsed.Trigger(new Date)},this.Interval):(this._timeoutId&&(clearTimeout(this._timeoutId),this._timeoutId=0),this._intervalId&&(clearInterval(this._intervalId),this._intervalId=0)))}Dispose(){this.Enabled=!1,this._isDisposed=!0}Close(){this.Dispose()}Start(){this.Enabled=!0}Stop(){this.Enabled=!1}}function d0(e,t){console.error(Ee(e),t)}function p0(e,t){let n,r=new f0(e);r.AutoReset=!1,n=r,c0(t,n.Elapsed()),n.Enabled=!0,n.Start()}function el(e,t){ma(n=>{n(e)},t)}function qt(){return We()}function Do(e){return ga(e)}function Ir(e){return xe(t=>{t(e)})}function qa(e,t,n,r){return xe(o=>{e(I.Delay(()=>I.Bind(cp(t(n)),i=>{const s=i;return s.tag===0&&o(r(s.fields[0])),I.Zero()})))})}function Qo(e){p0(0,t=>{Da(e)})}function h0(e,t,n,r){const o=ct(e,n)|0;if(o===0)throw new Error("The step of a range cannot be zero");const i=o>0;return s=>{const l=ct(s,t)|0;return i&&l<=0||!i&&l>=0?[s,r(s,e)]:void 0}}function m0(e,t,n,r,o){const i=h0(t,n,r,o);return M(()=>Rd(i,e))}function g0(e,t,n){return m0(e,t,n,0,(r,o)=>r+o)}class gn extends te{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Writable","ReadWritable"]}}class w0{constructor(t){this.state=new gn(0,[fi(new Array(Bo(yn,t,10)),0,Bo(yn,t,10),null),0])}}function _0(e){return new w0(e)}function y0(e){const t=e.state;if(t.tag===1){const n=t.fields[1]|0,r=t.fields[2]|0,o=t.fields[0],i=(r+1)%o.length|0;return i===n?e.state=new gn(0,[o,n]):e.state=new gn(1,[o,n,i]),Ee(o[r])}else return}function b0(e,t){const n=e.state;if(n.tag===1){const r=n.fields[1]|0,o=n.fields[2]|0,i=n.fields[0];i[r]=t;const s=(r+1)%i.length|0;s===o?e.state=new gn(1,[A0(e,o,i),i.length,0]):e.state=new gn(1,[i,s,o])}else{const r=n.fields[1]|0,o=n.fields[0];o[r]=t;const i=(r+1)%o.length|0;e.state=new gn(1,[o,i,r])}}function A0(e,t,n){return Array.from(M(()=>se(Pd(t,n),M(()=>se(Hd(t,n),M(()=>xa(r=>k(Et()),g0(0,1,n.length))))))))}class Ya extends le{constructor(t,n,r,o,i,s,l){super(),this.init=t,this.update=n,this.subscribe=r,this.view=o,this.setState=i,this.onError=s,this.syncDispatch=l}}function v0(e,t,n){return new Ya(e,t,r=>qt(),n,q(2,r=>{const o=Fn(1,n,[r]);return i=>{o(i)}}),r=>{d0(r[0],r[1])},q(2,r=>r))}function x0(e,t){return new Ya(t.init,t.update,t.subscribe,t.view,e,t.onError,t.syncDispatch)}function E0(e,t){const n=t.init(e),r=n[0],o=_0(10);let i=!1,s=r;const l=c=>{let a;if(i)b0(o,c);else{i=!0;let d=Ee(c);for(;d!=null;){const f=$(d);try{const p=t.update(f,s),g=p[0];t.setState(g,u),el(u,p[1]),s=g}catch(p){t.onError([(a=Nn(nn("Unable to process the message: %A")),a(f)),p])}d=y0(o)}i=!1}},u=Fn(1,t.syncDispatch,[l]);t.setState(r,u),el(u,ro((()=>{try{return t.subscribe(r)}catch(c){return t.onError(["Unable to subscribe:",c]),qt()}})(),n[1]))}const C0=(e,t)=>{mn(()=>{const n=e();return()=>{n.Dispose()}},t)},C=Wl,ec=C0;function Di(e){return{Dispose(){e()}}}function tl(e){return C.useState(e)}function tc(e,t){ec(e,t)}function S0(e){const t=C.useRef(void 0),n=C.useRef(!1),r=C.useRef(!1);n.current&&(r.current=!0),tc(()=>{let o;return n.current?o=void 0:(n.current=!0,t.current=Ee(e()),o=r.current?t.current:void 0),{Dispose(){mi(i=>{J(i)},nd(o))}}},[])}function nc(e,t){ec(n=>(e(),Di(()=>{})),t)}function nl(e){return C.useRef(e)}function $n(e){return C.useState(e)}class D0{constructor(){this.hasDisposedOnce=!1,this.state=void 0,this.listener=void 0,this.dispatcher=void 0}}function I0(){return new D0}function F0(e){return e.state}function k0(e){return e.hasDisposedOnce}function M0(e,t,n){e.state=Ee(t),e.dispatcher=n;const r=e.listener;r!=null&&r(t)}function T0(e,t){const n=e.dispatcher;n!=null&&n(t)}function R0(e,t){e.listener==null&&(e.listener=t)}function N0(e){const t=e.state;if(t!=null){const n=$(t);Gl(n)&&J(n)}e.dispatcher=void 0,e.state=void 0,e.hasDisposedOnce=!0}function rl(e,t,n,r){E0(t,x0((i,s)=>{M0(n,i,s)},e()));const o=F0(n);if(o!=null)return $(o);throw new Error("Elmish program has not initialized")}function O0(e,t,n){const r=tl(I0)[0],o=tl(()=>rl(e,t,r)),i=o[1];return tc(()=>(k0(r)&&i(rl(e,t,r)),Di(()=>{N0(r)})),da(n,[])),R0(r,i),[o[0],s=>{T0(r,s)}]}function B0(e,t){return O0(e,void 0,t)}function rc(e,t,n){return B0(()=>v0(()=>e,t,(r,o)=>{}),n)}class hn extends te{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["HasNotStartedYet","InProgress","Resolved","Failed"]}}function P0(e,t){const n=$n(new hn(0,[])),r=n[1];let o;const i=nl(sp()),s=nl(i.current);S0(()=>Di(()=>{lp(i.current)})),o=s;const l=I.Delay(()=>I.TryWith(I.Delay(()=>(r(new hn(1,[])),I.Bind(e,u=>(r(new hn(2,[u])),I.Zero())))),u=>(r(new hn(3,[u])),I.Zero())));return nc(()=>{Da(l,o.current)},t),n[0]}class vt extends te{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Started","Finished"]}}class Gr extends te{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["ProfileImport","PastImports"]}}function ol(e){return e.tag===1?"Past Imports":"Profile Import"}class Zo extends le{constructor(t,n){super(),this.CurrentTab=t,this.AccountImports=n}}class Xn extends te{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SetCurrentTab","FetchImports"]}}const H0=[new Zo(new Gr(0,[]),new hn(0,[])),Ir(new Xn(1,[new vt(0,[void 0])]))];function j0(e,t,n){return t.tag===1?t.fields[0].tag===1?[new Zo(n.CurrentTab,new hn(2,[t.fields[0].fields[0]])),qt()]:[n,qa(r=>{Qo(r)},e,void 0,r=>new Xn(1,[new vt(1,[r])]))]:[new Zo(t.fields[0],n.AccountImports),qt()]}const V0=`*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}[type=text],[type=email],[type=url],[type=password],[type=number],[type=date],[type=datetime-local],[type=month],[type=search],[type=tel],[type=time],[type=week],[multiple],textarea,select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#6b7280;border-width:1px;border-radius:0;padding:.5rem .75rem;font-size:1rem;line-height:1.5rem;--tw-shadow: 0 0 #0000}[type=text]:focus,[type=email]:focus,[type=url]:focus,[type=password]:focus,[type=number]:focus,[type=date]:focus,[type=datetime-local]:focus,[type=month]:focus,[type=search]:focus,[type=tel]:focus,[type=time]:focus,[type=week]:focus,[multiple]:focus,textarea:focus,select:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: #2563eb;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);border-color:#2563eb}input::-moz-placeholder,textarea::-moz-placeholder{color:#6b7280;opacity:1}input::placeholder,textarea::placeholder{color:#6b7280;opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em}::-webkit-datetime-edit,::-webkit-datetime-edit-year-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-meridiem-field{padding-top:0;padding-bottom:0}select{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem;-webkit-print-color-adjust:exact;print-color-adjust:exact}[multiple]{background-image:initial;background-position:initial;background-repeat:unset;background-size:initial;padding-right:.75rem;-webkit-print-color-adjust:unset;print-color-adjust:unset}[type=checkbox],[type=radio]{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;-webkit-print-color-adjust:exact;print-color-adjust:exact;display:inline-block;vertical-align:middle;background-origin:border-box;-webkit-user-select:none;-moz-user-select:none;user-select:none;flex-shrink:0;height:1rem;width:1rem;color:#2563eb;background-color:#fff;border-color:#6b7280;border-width:1px;--tw-shadow: 0 0 #0000}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 2px;--tw-ring-offset-color: #fff;--tw-ring-color: #2563eb;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}[type=checkbox]:checked,[type=radio]:checked{border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:center;background-repeat:no-repeat}[type=checkbox]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e")}[type=radio]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e")}[type=checkbox]:checked:hover,[type=checkbox]:checked:focus,[type=radio]:checked:hover,[type=radio]:checked:focus{border-color:transparent;background-color:currentColor}[type=checkbox]:indeterminate{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3e%3c/svg%3e");border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:center;background-repeat:no-repeat}[type=checkbox]:indeterminate:hover,[type=checkbox]:indeterminate:focus{border-color:transparent;background-color:currentColor}[type=file]{background:unset;border-color:inherit;border-width:0;border-radius:0;padding:0;font-size:unset;line-height:inherit}[type=file]:focus{outline:1px solid ButtonText;outline:1px auto -webkit-focus-ring-color}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.fixed{position:fixed}.relative{position:relative}.inset-0{top:0px;right:0px;bottom:0px;left:0px}.z-10{z-index:10}.-mx-4{margin-left:-1rem;margin-right:-1rem}.-my-2{margin-top:-.5rem;margin-bottom:-.5rem}.mx-auto{margin-left:auto;margin-right:auto}.-mb-px{margin-bottom:-1px}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-6{margin-bottom:1.5rem}.ml-6{margin-left:1.5rem}.mr-6{margin-right:1.5rem}.mt-10{margin-top:2.5rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.min-h-full{min-height:100%}.w-full{width:100%}.min-w-full{min-width:100%}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-pointer{cursor:pointer}.list-outside{list-style-position:outside}.list-disc{list-style-type:disc}.items-end{align-items:flex-end}.justify-center{justify-content:center}.space-x-8>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(2rem * var(--tw-space-x-reverse));margin-left:calc(2rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.divide-gray-200>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(229 231 235 / var(--tw-divide-opacity))}.divide-gray-300>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(209 213 219 / var(--tw-divide-opacity))}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:.25rem}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-b-2{border-bottom-width:2px}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.border-indigo-500{--tw-border-opacity: 1;border-color:rgb(99 102 241 / var(--tw-border-opacity))}.border-transparent{border-color:transparent}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.bg-gray-500{--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}.bg-indigo-600{--tw-bg-opacity: 1;background-color:rgb(79 70 229 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-opacity-75{--tw-bg-opacity: .75}.p-4{padding:1rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-3\\.5{padding-left:.875rem;padding-right:.875rem}.px-4{padding-left:1rem;padding-right:1rem}.px-8{padding-left:2rem;padding-right:2rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\\.5{padding-top:.625rem;padding-bottom:.625rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-3\\.5{padding-top:.875rem;padding-bottom:.875rem}.py-4{padding-top:1rem;padding-bottom:1rem}.pb-4{padding-bottom:1rem}.pl-4{padding-left:1rem}.pr-3{padding-right:.75rem}.pt-5{padding-top:1.25rem}.text-left{text-align:left}.text-center{text-align:center}.align-middle{vertical-align:middle}.text-sm{font-size:.875rem;line-height:1.25rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.text-indigo-600{--tw-text-opacity: 1;color:rgb(79 70 229 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.ring-1{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-inset{--tw-ring-inset: inset}.ring-black{--tw-ring-opacity: 1;--tw-ring-color: rgb(0 0 0 / var(--tw-ring-opacity))}.ring-gray-300{--tw-ring-opacity: 1;--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity))}.ring-opacity-5{--tw-ring-opacity: .05}.hover\\:border-gray-300:hover{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.hover\\:bg-gray-50:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.hover\\:bg-indigo-500:hover{--tw-bg-opacity: 1;background-color:rgb(99 102 241 / var(--tw-bg-opacity))}.hover\\:text-gray-700:hover{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.focus-visible\\:outline:focus-visible{outline-style:solid}.focus-visible\\:outline-2:focus-visible{outline-width:2px}.focus-visible\\:outline-offset-2:focus-visible{outline-offset:2px}.focus-visible\\:outline-indigo-600:focus-visible{outline-color:#4f46e5}@media (min-width: 640px){.sm\\:col-start-1{grid-column-start:1}.sm\\:col-start-2{grid-column-start:2}.sm\\:-mx-6{margin-left:-1.5rem;margin-right:-1.5rem}.sm\\:my-8{margin-top:2rem;margin-bottom:2rem}.sm\\:mt-0{margin-top:0}.sm\\:mt-5{margin-top:1.25rem}.sm\\:mt-6{margin-top:1.5rem}.sm\\:grid{display:grid}.sm\\:w-full{width:100%}.sm\\:max-w-lg{max-width:32rem}.sm\\:grid-flow-row-dense{grid-auto-flow:row dense}.sm\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\\:items-center{align-items:center}.sm\\:gap-3{gap:.75rem}.sm\\:rounded-lg{border-radius:.5rem}.sm\\:p-0{padding:0}.sm\\:p-6{padding:1.5rem}.sm\\:px-6{padding-left:1.5rem;padding-right:1.5rem}.sm\\:pl-6{padding-left:1.5rem}}@media (min-width: 1024px){.lg\\:-mx-8{margin-left:-2rem;margin-right:-2rem}.lg\\:px-8{padding-left:2rem;padding-right:2rem}}
|
|
22
|
+
`,U0=(()=>Se(V0))();function L0(e){let t,n;const r=e.setCurrentTab,o=e.currentTab;return h("div",L(S([["className","border-b border-gray-200"],(t=[h("nav",L(S([["className","-mb-px flex space-x-8"],(n=lt(M(()=>Oe(i=>h("a",{key:ol(i),className:St(" ",lt(M(()=>se(it(o,i)?k("border-indigo-500 text-indigo-600"):k("border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700 cursor-pointer"),M(()=>k("whitespace-nowrap border-b-2 py-4 px-1 text-sm font-medium")))))),onClick:s=>{r(i)},children:ol(i)}),[new Gr(0,[]),new Gr(1,[])]))),["children",C.Children.toArray(Array.from(n))])])))],["children",C.Children.toArray(Array.from(t))])])))}function sr(e){let t;return h("div",L(S([["className","text-center"],(t=[h("p",{children:["Oops, something went wrong."]}),h("p",{children:[`Error: ${e}.`]}),h("p",{children:["Please refresh the page and try again."]}),h("button",{className:"mt-4 rounded-md bg-indigo-600 px-3.5 py-2.5 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600",onClick:n=>{window.location.reload()},children:"Refresh"})],["children",C.Children.toArray(Array.from(t))])])))}function oc(e){let t;const n=e.onDone,r=e.fetchImport,o=e.importId,i=P0(r(o),[]);let s,l,u,c;switch(i.tag===1?s=0:i.tag===3?(s=1,l=i.fields[0]):i.tag===2?i.fields[0].tag===0?(s=3,c=i.fields[0].fields[0]):(s=2,u=i.fields[0].fields[0]):s=0,s){case 0:return Et();case 1:return sr(l.message);case 2:return sr(u);case 3:return h("div",L(S([["className","text-center"],(t=lt(M(()=>se(k(h("p",{children:[`Import ID: ${c.ImportId}`]})),M(()=>se(k(h("p",{children:[`Creator: ${c.User}`]})),M(()=>se(k(h("p",{children:[`Filename: ${c.Filename}`]})),M(()=>se(k(h("p",{children:[`Date started: ${Se(c.StartTime)}`]})),M(()=>{let a;return se((a=c.StopTime,a==null?k(Et()):k(h("p",{children:[`Date completed: ${Se(a)}`]}))),M(()=>se(k(h("p",{children:[`Total rows: ${c.TotalRecordCount}`]})),M(()=>se(k(h("p",{children:[`Succeeded rows: ${c.SucceededRecordCount}`]})),M(()=>se(k(h("p",{children:[`Failed rows: ${c.FailedRecordCount}`]})),M(()=>{let d;return se(c.FailedRecordCount>0?k(h("div",L(S([["className","mt-8"],(d=lt(M(()=>se(k(h("p",{children:["The following profiles could not be created"]})),M(()=>Oe(f=>h("li",{children:[`Row ${f.RowId}: ${f.Reason}`]}),c.FailedRecords))))),["children",C.Children.toArray(Array.from(d))])])))):Aa(),M(()=>k(h("button",{type:"button",children:"Done",className:"mt-8 rounded-md bg-indigo-600 px-3.5 py-2.5 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600",onClick:f=>{n()}}))))}))))))))})))))))))),["children",C.Children.toArray(Array.from(t))])])))}}class Io extends te{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["HistoryTable","ImportSummary"]}}function z0(e){let t,n,r,o,i,s,l,u;const c=e.fetchImport,a=e.accountImports,d=$n(new Io(0,[])),f=d[0],p=d[1];return f.tag===0?h("div",L(S([["className","-mx-4 -my-2 overflow-x-auto sm:-mx-6 lg:-mx-8"],(t=[h("div",L(S([["className","inline-block min-w-full py-2 align-middle sm:px-6 lg:px-8"],(n=[h("div",L(S([["className","overflow-hidden shadow ring-1 ring-black ring-opacity-5 sm:rounded-lg"],(r=[h("table",L(S([["className","min-w-full divide-y divide-gray-300"],(o=[h("thead",L(S([["className","bg-gray-100"],(i=[(s=S([h("th",{scope:"col",className:"py-3.5 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 sm:pl-6",children:"Import ID"}),h("th",{scope:"col",className:"px-3 py-3.5 text-left text-sm font-semibold text-gray-900",children:"Date"}),h("th",{scope:"col",className:"px-3 py-3.5 text-left text-sm font-semibold text-gray-900",children:"User"}),h("th",{scope:"col",className:"px-3 py-3.5 text-left text-sm font-semibold text-gray-900",children:"# of Profiles"})]),h("tr",{children:C.Children.toArray(Array.from(s))}))],["children",C.Children.toArray(Array.from(i))])]))),h("tbody",L(S([["className","divide-y divide-gray-200 bg-white"],(l=lt(M(()=>Oe(g=>{let _;return h("tr",L(S([["key",g.ImportId],["className","cursor-pointer hover:bg-gray-50"],["onClick",w=>{p(new Io(1,[g.ImportId]))}],(_=[h("td",{className:"whitespace-nowrap py-4 pl-4 pr-3 text-sm text-gray-500 sm:pl-6",children:g.ImportId}),h("td",{className:"whitespace-nowrap px-3 py-4 text-sm text-gray-500",children:Se(g.StartTime)}),h("td",{className:"whitespace-nowrap px-3 py-4 text-sm text-gray-500",children:g.User}),h("td",{className:"whitespace-nowrap px-3 py-4 text-sm text-gray-500",children:g.Succeeded})],["children",C.Children.toArray(Array.from(_))])])))},a.ImportHistory))),["children",C.Children.toArray(Array.from(l))])])))],["children",C.Children.toArray(Array.from(o))])])))],["children",C.Children.toArray(Array.from(r))])])))],["children",C.Children.toArray(Array.from(n))])])))],["children",C.Children.toArray(Array.from(t))])]))):h("div",L(S([["className","border border-gray-300 w-full py-12 rounded text-center bg-white"],(u=[h(oc,{importId:f.fields[0],fetchImport:c,onDone:()=>{p(new Io(0,[]))}})],["children",C.Children.toArray(Array.from(u))])])))}const W0="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEA8ADwAAD/4QAiRXhpZgAATU0AKgAAAAgAAQESAAMAAAABAAEAAAAAAAD/2wBDAAIBAQIBAQICAgICAgICAwUDAwMDAwYEBAMFBwYHBwcGBwcICQsJCAgKCAcHCg0KCgsMDAwMBwkODw0MDgsMDAz/2wBDAQICAgMDAwYDAwYMCAcIDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAz/wAARCAAxADcDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwDz/wCKH7XPxUvfiT4glb4keOYy+o3B2Ra5cxxr+8bhVVwFA9AMCsL/AIav+KX/AEUrx/8A+FDd/wDxyuY+In/JQNd/7CFx/wCjGrHr6WMY22PmXKV9z6y/4J2/8FK/GX7P/wC01o994w8XeIvEHhHVz/ZurQapqU12lvFIwxOgkZtrRsFbIxldw71+8Vlew6lZw3FvIk0FwgkjkQ5V1IyCD6EHNfy11754I/4Ki/Hz4c+ENN0HR/iTrFrpOj2yWlnA1vbTeREg2ogZ42YhVAAyTgADtXJisH7R80NDswuM9muWep/Q5RX8/H/D3j9o7/oqGq/+ANn/APGaP+HvH7R3/RUNV/8AAGz/APjNcv8AZ1Tujq/tGn2Z/QPRX4//APBLf/gpb8aPjF+2Hofhvxd4zuPEWh6ja3jTWtzaQIN0dvJIpDRopBDKO9FctahKnLlZ1Ua8akeZH5//ABE/5KBrv/YQuP8A0Y1Y9bHxE/5KBrv/AGELj/0Y1Y9fQx2PnQr74/b28C+G9A/4JT/s76xpvh/Q9P1jWIoftt/bWMUN1eFbYg+ZIqhn55+YnmvgevvX9vPUvtP/AASP/ZhXP3hcr/3wpWsK3xQ9f0Oij8M/T9UfBVFFFdBzn1D/AMEcv+T+/Cn/AF6ah/6SS0Uf8Ecv+T+/Cn/XpqH/AKSS0V5GO/ifI9fA/wAP5nzt8RP+Sga7/wBhC4/9GNWPXdftL/C7W/g38d/FXh/xBYXGn6jZ6lOSk0ZTzEMjFJF9VZcEEcEGuFr1Y7Hky0dmFe8fHf8AaX8RfEv9jv4S+BdQ8H3Wj6D4La8/s3W38zy9aLvlwu5AnyE4O1mx3xXg9enfE79rvxp8XfgV4N+HetXVlL4b8C7hpaR2qxzKCMAO45bA4H15zSlG7TKjKyZ5jRRRVkH1D/wRy/5P78Kf9emof+kktFdX/wAENvg3rvxC/bVsdbsbOY6L4bsbp9Rvdh8m3MsDxRoT03MzcDrhWPaivHx8l7T5HsYGL9n8z2z/AIOK/wDkevCX/YNT/wBHT1+Y9FFd+D/hI4cZ/FYUUUV0nKFFFFAH7r/8ERP+TJ7D/r7b/wBASiiivncR/El6n0WH/hx9D//Z",G0="data:image/jpeg;base64,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",Q0="data:image/jpeg;base64,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";var H={exports:{}},Z0="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",K0=Z0,J0=K0;function ic(){}function sc(){}sc.resetWarningCache=ic;var $0=function(){function e(r,o,i,s,l,u){if(u!==J0){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:sc,resetWarningCache:ic};return n.PropTypes=n,n};H.exports=$0();function Hn(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function l(a){try{c(r.next(a))}catch(d){s(d)}}function u(a){try{c(r.throw(a))}catch(d){s(d)}}function c(a){a.done?i(a.value):o(a.value).then(l,u)}c((r=r.apply(e,t||[])).next())})}function jn(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(c){return function(a){return u([c,a])}}function u(c){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,c[0]&&(n=0)),n;)try{if(r=1,o&&(i=c[0]&2?o.return:c[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,c[1])).done)return i;switch(o=0,i&&(c=[c[0]&2,i.value]),c[0]){case 0:case 1:i=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,o=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]<i[3])){n.label=c[1];break}if(c[0]===6&&n.label<i[1]){n.label=i[1],i=c;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(c);break}i[2]&&n.ops.pop(),n.trys.pop();continue}c=t.call(e,n)}catch(a){c=[6,a],o=0}finally{r=i=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function il(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(l){s={error:l}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i}function sl(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}var X0=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["heic","image/heic"],["heif","image/heif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function mr(e,t){var n=q0(e);if(typeof n.path!="string"){var r=e.webkitRelativePath;Object.defineProperty(n,"path",{value:typeof t=="string"?t:typeof r=="string"&&r.length>0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}function q0(e){var t=e.name,n=t&&t.lastIndexOf(".")!==-1;if(n&&!e.type){var r=t.split(".").pop().toLowerCase(),o=X0.get(r);o&&Object.defineProperty(e,"type",{value:o,writable:!1,configurable:!1,enumerable:!0})}return e}var Y0=[".DS_Store","Thumbs.db"];function em(e){return Hn(this,void 0,void 0,function(){return jn(this,function(t){return Qr(e)&&tm(e.dataTransfer)?[2,im(e.dataTransfer,e.type)]:nm(e)?[2,rm(e)]:Array.isArray(e)&&e.every(function(n){return"getFile"in n&&typeof n.getFile=="function"})?[2,om(e)]:[2,[]]})})}function tm(e){return Qr(e)}function nm(e){return Qr(e)&&Qr(e.target)}function Qr(e){return typeof e=="object"&&e!==null}function rm(e){return Ko(e.target.files).map(function(t){return mr(t)})}function om(e){return Hn(this,void 0,void 0,function(){var t;return jn(this,function(n){switch(n.label){case 0:return[4,Promise.all(e.map(function(r){return r.getFile()}))];case 1:return t=n.sent(),[2,t.map(function(r){return mr(r)})]}})})}function im(e,t){return Hn(this,void 0,void 0,function(){var n,r;return jn(this,function(o){switch(o.label){case 0:return e.items?(n=Ko(e.items).filter(function(i){return i.kind==="file"}),t!=="drop"?[2,n]:[4,Promise.all(n.map(sm))]):[3,2];case 1:return r=o.sent(),[2,ll(lc(r))];case 2:return[2,ll(Ko(e.files).map(function(i){return mr(i)}))]}})})}function ll(e){return e.filter(function(t){return Y0.indexOf(t.name)===-1})}function Ko(e){if(e===null)return[];for(var t=[],n=0;n<e.length;n++){var r=e[n];t.push(r)}return t}function sm(e){if(typeof e.webkitGetAsEntry!="function")return al(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?ac(t):al(e)}function lc(e){return e.reduce(function(t,n){return sl(sl([],il(t),!1),il(Array.isArray(n)?lc(n):[n]),!1)},[])}function al(e){var t=e.getAsFile();if(!t)return Promise.reject("".concat(e," is not a File"));var n=mr(t);return Promise.resolve(n)}function lm(e){return Hn(this,void 0,void 0,function(){return jn(this,function(t){return[2,e.isDirectory?ac(e):am(e)]})})}function ac(e){var t=e.createReader();return new Promise(function(n,r){var o=[];function i(){var s=this;t.readEntries(function(l){return Hn(s,void 0,void 0,function(){var u,c,a;return jn(this,function(d){switch(d.label){case 0:if(l.length)return[3,5];d.label=1;case 1:return d.trys.push([1,3,,4]),[4,Promise.all(o)];case 2:return u=d.sent(),n(u),[3,4];case 3:return c=d.sent(),r(c),[3,4];case 4:return[3,6];case 5:a=Promise.all(l.map(lm)),o.push(a),i(),d.label=6;case 6:return[2]}})})},function(l){r(l)})}i()})}function am(e){return Hn(this,void 0,void 0,function(){return jn(this,function(t){return[2,new Promise(function(n,r){e.file(function(o){var i=mr(o,e.fullPath);n(i)},function(o){r(o)})})]})})}var cm=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",o=(e.type||"").toLowerCase(),i=o.replace(/\/.*$/,"");return n.some(function(s){var l=s.trim().toLowerCase();return l.charAt(0)==="."?r.toLowerCase().endsWith(l):l.endsWith("/*")?i===l.replace(/\/.*$/,""):o===l})}return!0};function cl(e){return dm(e)||fm(e)||uc(e)||um()}function um(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
23
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fm(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function dm(e){if(Array.isArray(e))return Jo(e)}function ul(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function fl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ul(Object(n),!0).forEach(function(r){cc(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ul(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function cc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lr(e,t){return mm(e)||hm(e,t)||uc(e,t)||pm()}function pm(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
24
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function uc(e,t){if(!!e){if(typeof e=="string")return Jo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Jo(e,t)}}function Jo(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function hm(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],o=!0,i=!1,s,l;try{for(n=n.call(e);!(o=(s=n.next()).done)&&(r.push(s.value),!(t&&r.length===t));o=!0);}catch(u){i=!0,l=u}finally{try{!o&&n.return!=null&&n.return()}finally{if(i)throw l}}return r}}function mm(e){if(Array.isArray(e))return e}var gm="file-invalid-type",wm="file-too-large",_m="file-too-small",ym="too-many-files",bm=function(t){t=Array.isArray(t)&&t.length===1?t[0]:t;var n=Array.isArray(t)?"one of ".concat(t.join(", ")):t;return{code:gm,message:"File type must be ".concat(n)}},dl=function(t){return{code:wm,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},pl=function(t){return{code:_m,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},Am={code:ym,message:"Too many files"};function fc(e,t){var n=e.type==="application/x-moz-file"||cm(e,t);return[n,n?null:bm(t)]}function dc(e,t,n){if(Wt(e.size))if(Wt(t)&&Wt(n)){if(e.size>n)return[!1,dl(n)];if(e.size<t)return[!1,pl(t)]}else{if(Wt(t)&&e.size<t)return[!1,pl(t)];if(Wt(n)&&e.size>n)return[!1,dl(n)]}return[!0,null]}function Wt(e){return e!=null}function vm(e){var t=e.files,n=e.accept,r=e.minSize,o=e.maxSize,i=e.multiple,s=e.maxFiles,l=e.validator;return!i&&t.length>1||i&&s>=1&&t.length>s?!1:t.every(function(u){var c=fc(u,n),a=lr(c,1),d=a[0],f=dc(u,r,o),p=lr(f,1),g=p[0],_=l?l(u):null;return d&&g&&!_})}function Zr(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function vr(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(t){return t==="Files"||t==="application/x-moz-file"}):!!e.target&&!!e.target.files}function hl(e){e.preventDefault()}function xm(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function Em(e){return e.indexOf("Edge/")!==-1}function Cm(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return xm(e)||Em(e)}function et(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){for(var o=arguments.length,i=new Array(o>1?o-1:0),s=1;s<o;s++)i[s-1]=arguments[s];return t.some(function(l){return!Zr(r)&&l&&l.apply(void 0,[r].concat(i)),Zr(r)})}}function Sm(){return"showOpenFilePicker"in window}function Dm(e){if(Wt(e)){var t=Object.entries(e).filter(function(n){var r=lr(n,2),o=r[0],i=r[1],s=!0;return pc(o)||(console.warn('Skipped "'.concat(o,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),s=!1),(!Array.isArray(i)||!i.every(hc))&&(console.warn('Skipped "'.concat(o,'" because an invalid file extension was provided.')),s=!1),s}).reduce(function(n,r){var o=lr(r,2),i=o[0],s=o[1];return fl(fl({},n),{},cc({},i,s))},{});return[{description:"Files",accept:t}]}return e}function Im(e){if(Wt(e))return Object.entries(e).reduce(function(t,n){var r=lr(n,2),o=r[0],i=r[1];return[].concat(cl(t),[o],cl(i))},[]).filter(function(t){return pc(t)||hc(t)}).join(",")}function Fm(e){return e instanceof DOMException&&(e.name==="AbortError"||e.code===e.ABORT_ERR)}function km(e){return e instanceof DOMException&&(e.name==="SecurityError"||e.code===e.SECURITY_ERR)}function pc(e){return e==="audio/*"||e==="video/*"||e==="image/*"||e==="text/*"||/\w+\/[-+.\w]+/g.test(e)}function hc(e){return/^.*\.[\w]+$/.test(e)}var Mm=["children"],Tm=["open"],Rm=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],Nm=["refKey","onChange","onClick"];function Om(e){return Hm(e)||Pm(e)||mc(e)||Bm()}function Bm(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
25
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Pm(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Hm(e){if(Array.isArray(e))return $o(e)}function Fo(e,t){return Um(e)||Vm(e,t)||mc(e,t)||jm()}function jm(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
26
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mc(e,t){if(!!e){if(typeof e=="string")return $o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return $o(e,t)}}function $o(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Vm(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],o=!0,i=!1,s,l;try{for(n=n.call(e);!(o=(s=n.next()).done)&&(r.push(s.value),!(t&&r.length===t));o=!0);}catch(u){i=!0,l=u}finally{try{!o&&n.return!=null&&n.return()}finally{if(i)throw l}}return r}}function Um(e){if(Array.isArray(e))return e}function ml(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function K(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ml(Object(n),!0).forEach(function(r){Xo(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ml(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Xo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kr(e,t){if(e==null)return{};var n=Lm(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(n[r]=e[r]))}return n}function Lm(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var Ii=Pl(function(e,t){var n=e.children,r=Kr(e,Mm),o=wc(r),i=o.open,s=Kr(o,Tm);return Nl(t,function(){return{open:i}},[i]),Wl.createElement(Ue,null,n(K(K({},s),{},{open:i})))});Ii.displayName="Dropzone";var gc={disabled:!1,getFilesFromEvent:em,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0,autoFocus:!1};Ii.defaultProps=gc;Ii.propTypes={children:H.exports.func,accept:H.exports.objectOf(H.exports.arrayOf(H.exports.string)),multiple:H.exports.bool,preventDropOnDocument:H.exports.bool,noClick:H.exports.bool,noKeyboard:H.exports.bool,noDrag:H.exports.bool,noDragEventsBubbling:H.exports.bool,minSize:H.exports.number,maxSize:H.exports.number,maxFiles:H.exports.number,disabled:H.exports.bool,getFilesFromEvent:H.exports.func,onFileDialogCancel:H.exports.func,onFileDialogOpen:H.exports.func,useFsAccessApi:H.exports.bool,autoFocus:H.exports.bool,onDragEnter:H.exports.func,onDragLeave:H.exports.func,onDragOver:H.exports.func,onDrop:H.exports.func,onDropAccepted:H.exports.func,onDropRejected:H.exports.func,onError:H.exports.func,validator:H.exports.func};var qo={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function wc(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=K(K({},gc),e),n=t.accept,r=t.disabled,o=t.getFilesFromEvent,i=t.maxSize,s=t.minSize,l=t.multiple,u=t.maxFiles,c=t.onDragEnter,a=t.onDragLeave,d=t.onDragOver,f=t.onDrop,p=t.onDropAccepted,g=t.onDropRejected,_=t.onFileDialogCancel,w=t.onFileDialogOpen,b=t.useFsAccessApi,F=t.autoFocus,ne=t.preventDropOnDocument,oe=t.noClick,Q=t.noKeyboard,N=t.noDrag,ae=t.noDragEventsBubbling,P=t.onError,ce=t.validator,Qe=wt(function(){return Im(n)},[n]),It=wt(function(){return Dm(n)},[n]),Vn=wt(function(){return typeof w=="function"?w:gl},[w]),Vt=wt(function(){return typeof _=="function"?_:gl},[_]),ie=Wn(null),me=Wn(null),Ac=ni(zm,qo),ki=Fo(Ac,2),lo=ki[0],Fe=ki[1],vc=lo.isFocused,Mi=lo.isFileDialogActive,gr=Wn(typeof window<"u"&&window.isSecureContext&&b&&Sm()),Ti=function(){!gr.current&&Mi&&setTimeout(function(){if(me.current){var E=me.current.files;E.length||(Fe({type:"closeDialog"}),Vt())}},300)};mn(function(){return window.addEventListener("focus",Ti,!1),function(){window.removeEventListener("focus",Ti,!1)}},[me,Mi,Vt,gr]);var on=Wn([]),Ri=function(E){ie.current&&ie.current.contains(E.target)||(E.preventDefault(),on.current=[])};mn(function(){return ne&&(document.addEventListener("dragover",hl,!1),document.addEventListener("drop",Ri,!1)),function(){ne&&(document.removeEventListener("dragover",hl),document.removeEventListener("drop",Ri))}},[ie,ne]),mn(function(){return!r&&F&&ie.current&&ie.current.focus(),function(){}},[ie,F,r]);var Ut=De(function(y){P?P(y):console.error(y)},[P]),Ni=De(function(y){y.preventDefault(),y.persist(),br(y),on.current=[].concat(Om(on.current),[y.target]),vr(y)&&Promise.resolve(o(y)).then(function(E){if(!(Zr(y)&&!ae)){var X=E.length,ue=X>0&&vm({files:E,accept:Qe,minSize:s,maxSize:i,multiple:l,maxFiles:u,validator:ce}),ke=X>0&&!ue;Fe({isDragAccept:ue,isDragReject:ke,isDragActive:!0,type:"setDraggedFiles"}),c&&c(y)}}).catch(function(E){return Ut(E)})},[o,c,Ut,ae,Qe,s,i,l,u,ce]),Oi=De(function(y){y.preventDefault(),y.persist(),br(y);var E=vr(y);if(E&&y.dataTransfer)try{y.dataTransfer.dropEffect="copy"}catch{}return E&&d&&d(y),!1},[d,ae]),Bi=De(function(y){y.preventDefault(),y.persist(),br(y);var E=on.current.filter(function(ue){return ie.current&&ie.current.contains(ue)}),X=E.indexOf(y.target);X!==-1&&E.splice(X,1),on.current=E,!(E.length>0)&&(Fe({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),vr(y)&&a&&a(y))},[ie,a,ae]),wr=De(function(y,E){var X=[],ue=[];y.forEach(function(ke){var Un=fc(ke,Qe),an=Fo(Un,2),co=an[0],uo=an[1],fo=dc(ke,s,i),Ar=Fo(fo,2),po=Ar[0],ho=Ar[1],mo=ce?ce(ke):null;if(co&&po&&!mo)X.push(ke);else{var go=[uo,ho];mo&&(go=go.concat(mo)),ue.push({file:ke,errors:go.filter(function(Sc){return Sc})})}}),(!l&&X.length>1||l&&u>=1&&X.length>u)&&(X.forEach(function(ke){ue.push({file:ke,errors:[Am]})}),X.splice(0)),Fe({acceptedFiles:X,fileRejections:ue,type:"setFiles"}),f&&f(X,ue,E),ue.length>0&&g&&g(ue,E),X.length>0&&p&&p(X,E)},[Fe,l,Qe,s,i,u,f,p,g,ce]),_r=De(function(y){y.preventDefault(),y.persist(),br(y),on.current=[],vr(y)&&Promise.resolve(o(y)).then(function(E){Zr(y)&&!ae||wr(E,y)}).catch(function(E){return Ut(E)}),Fe({type:"reset"})},[o,wr,Ut,ae]),sn=De(function(){if(gr.current){Fe({type:"openDialog"}),Vn();var y={multiple:l,types:It};window.showOpenFilePicker(y).then(function(E){return o(E)}).then(function(E){wr(E,null),Fe({type:"closeDialog"})}).catch(function(E){Fm(E)?(Vt(E),Fe({type:"closeDialog"})):km(E)?(gr.current=!1,me.current?(me.current.value=null,me.current.click()):Ut(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):Ut(E)});return}me.current&&(Fe({type:"openDialog"}),Vn(),me.current.value=null,me.current.click())},[Fe,Vn,Vt,b,wr,Ut,It,l]),Pi=De(function(y){!ie.current||!ie.current.isEqualNode(y.target)||(y.key===" "||y.key==="Enter"||y.keyCode===32||y.keyCode===13)&&(y.preventDefault(),sn())},[ie,sn]),Hi=De(function(){Fe({type:"focus"})},[]),ji=De(function(){Fe({type:"blur"})},[]),Vi=De(function(){oe||(Cm()?setTimeout(sn,0):sn())},[oe,sn]),ln=function(E){return r?null:E},ao=function(E){return Q?null:ln(E)},yr=function(E){return N?null:ln(E)},br=function(E){ae&&E.stopPropagation()},xc=wt(function(){return function(){var y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},E=y.refKey,X=E===void 0?"ref":E,ue=y.role,ke=y.onKeyDown,Un=y.onFocus,an=y.onBlur,co=y.onClick,uo=y.onDragEnter,fo=y.onDragOver,Ar=y.onDragLeave,po=y.onDrop,ho=Kr(y,Rm);return K(K(Xo({onKeyDown:ao(et(ke,Pi)),onFocus:ao(et(Un,Hi)),onBlur:ao(et(an,ji)),onClick:ln(et(co,Vi)),onDragEnter:yr(et(uo,Ni)),onDragOver:yr(et(fo,Oi)),onDragLeave:yr(et(Ar,Bi)),onDrop:yr(et(po,_r)),role:typeof ue=="string"&&ue!==""?ue:"presentation"},X,ie),!r&&!Q?{tabIndex:0}:{}),ho)}},[ie,Pi,Hi,ji,Vi,Ni,Oi,Bi,_r,Q,N,r]),Ec=De(function(y){y.stopPropagation()},[]),Cc=wt(function(){return function(){var y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},E=y.refKey,X=E===void 0?"ref":E,ue=y.onChange,ke=y.onClick,Un=Kr(y,Nm),an=Xo({accept:Qe,multiple:l,type:"file",style:{display:"none"},onChange:ln(et(ue,_r)),onClick:ln(et(ke,Ec)),tabIndex:-1},X,me);return K(K({},an),Un)}},[me,n,l,_r,r]);return K(K({},lo),{},{isFocused:vc&&!r,getRootProps:xc,getInputProps:Cc,rootRef:ie,inputRef:me,open:ln(sn)})}function zm(e,t){switch(t.type){case"focus":return K(K({},e),{},{isFocused:!0});case"blur":return K(K({},e),{},{isFocused:!1});case"openDialog":return K(K({},qo),{},{isFileDialogActive:!0});case"closeDialog":return K(K({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return K(K({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return K(K({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return K({},qo);default:return e}}function gl(){}const Wm="data:image/jpeg;base64,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",Gm="data:image/jpeg;base64,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";var Qm=0;function fe(e,t,n,r,o,i){var s,l,u={};for(l in t)l=="ref"?s=t[l]:u[l]=t[l];var c={type:e,props:u,key:n,ref:s,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--Qm,__source:o,__self:i};if(typeof e=="function"&&(s=e.defaultProps))for(l in s)u[l]===void 0&&(u[l]=s[l]);return A.vnode&&A.vnode(c),c}function Zm({onCancel:e,onSubmit:t,onFileDrop:n}){const r=De(d=>{const f=d[0];n(f,f.path)},[]),{getRootProps:o,getInputProps:i,open:s,acceptedFiles:l,fileRejections:u}=wc({onDrop:r,accept:{"text/csv":[".csv"]},maxFiles:1,noClick:!0,noKeyboard:!0,multiple:!1,maxSize:4e6}),c=l.map(d=>fe("p",{children:d.path},d.path)),a=u.map(({file:d,errors:f})=>fe("li",{children:[d.path," - ",d.size," bytes",fe("ul",{children:f.map(p=>fe("li",{children:p.message},p.code))})]},d.path));return fe("div",{...o(),children:[fe("input",{...i(),name:"file"}),fe("img",{src:c.length?Gm:Wm,className:"mx-auto mb-2"}),u.length?fe("div",{className:"mb-2",children:[fe("div",{className:"mb-2 font-semibold",children:"Rejected files"}),fe("ul",{children:a})]}):fe(Ue,{}),c.length?fe(Ue,{children:[c,fe("button",{type:"reset",onClick:e,className:"mt-6 mr-6 rounded-md bg-white px-3.5 py-2.5 text-sm font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50",children:"Cancel"}),fe("button",{type:"button",onClick:t,className:"rounded-md bg-indigo-600 px-3.5 py-2.5 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600",children:"Import file"})]}):fe(Ue,{children:[fe("p",{className:"mb-6 text-gray-500",children:"Drag a file to upload"}),fe("button",{type:"button",onClick:s,className:"rounded-md bg-indigo-600 px-3.5 py-2.5 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600",children:"Browse"})]})]})}class Je extends te{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["FileSelection","Validating","ValidationError","ImportInProgress","ImportComplete","UnexpectedError"]}}class _c extends le{constructor(t){super(),this.View=t}}class ge extends te{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SetView","CreateImport","FetchImports"]}}function Km(){return[new _c(new Je(0,[])),qt()]}function Jm(e,t,n,r){let o,i,s;return n.tag===1?n.fields[0].tag===1?[r,Do(Vr(Ir,n.fields[0].fields[0].tag===1?xe(new ge(0,[new Je(5,[n.fields[0].fields[0].fields[0]])])):n.fields[0].fields[0].fields[0].tag===1?xe(new ge(0,[new Je(2,[n.fields[0].fields[0].fields[0].fields[0]])])):n.fields[0].fields[0].fields[0].fields[0].ActiveImport==null?xe(new ge(0,[new Je(5,["New import not active"])])):(o=n.fields[0].fields[0].fields[0].fields[0].ActiveImport,S([new ge(0,[new Je(3,[o])]),new ge(2,[new vt(0,[void 0])])]))))]:[r,Do(S([Ir(new ge(0,[new Je(1,[])])),qa(l=>{Qo(l)},l=>l0(t,l),n.fields[0].fields[0],l=>new ge(1,[new vt(1,[l])]))]))]:n.tag===2?n.fields[0].tag===1?[r,Do(Vr(Ir,(i=r.View,i.tag===3?n.fields[0].fields[0].ActiveImport!=null?(s=n.fields[0].fields[0].ActiveImport,S([new ge(0,[new Je(3,[s])]),new ge(2,[new vt(0,[void 0])])])):xe(new ge(0,[new Je(4,[_d(l=>l.ImportId===i.fields[0].ImportId,n.fields[0].fields[0].ImportHistory)])])):n.fields[0].fields[0].ActiveImport!=null?(s=n.fields[0].fields[0].ActiveImport,S([new ge(0,[new Je(3,[s])]),new ge(2,[new vt(0,[void 0])])])):xe(new ge(0,[new Je(0,[])])))))]:(Qo(I.Delay(()=>I.Bind(fp(1e4),()=>(e(),I.Zero())))),[r,qt()]):[new _c(n.fields[0]),qt()]}const yc=W0,wl=G0,$m=Q0;function Xm(e){let t;const n=e.dispatch,r=$n(!1),o=r[1],i=$n(0),s=i[0]|0,l=$n(new FormData),u=l[0];return h("form",L(S([["key",s],(t=lt(M(()=>se(k(h(Zm,{onCancel:()=>{i[1](s+1),l[1](new FormData)},onSubmit:()=>{o(!0)},onFileDrop:(c,a)=>{u.set("file",c,a)}})),M(()=>{let c,a,d,f,p,g,_;return r[0]?k((c=S([h("div",{className:"fixed inset-0 bg-gray-500 bg-opacity-75"}),h("div",L(S([["className","fixed inset-0 z-10 overflow-y-auto"],(a=[h("div",L(S([["className","flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0"],(d=[h("div",L(S([["className","relative overflow-hidden rounded-lg bg-white px-4 pb-4 pt-5 text-left shadow-xl sm:my-8 sm:w-full sm:max-w-lg sm:p-6"],(f=[(p=S([h("div",L(S([["className","mt-3 text-center sm:mt-5 space-y-6"],(g=[h("img",{src:yc,className:"mx-auto"}),h("p",{children:["Please check and confirm this file is being uploaded to the correct account."]}),h("p",{children:["Uploading files to the wrong account can cause a security breach."]})],["children",C.Children.toArray(Array.from(g))])]))),h("div",L(S([["className","mt-5 sm:mt-6 sm:grid sm:grid-flow-row-dense sm:grid-cols-2 sm:gap-3"],(_=[h("button",{type:"button",className:"inline-flex w-full justify-center rounded-md bg-indigo-600 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600 sm:col-start-2",children:"I confirm",onClick:w=>{n(new ge(1,[new vt(0,[u])]))}}),h("button",{type:"button",className:"mt-3 inline-flex w-full justify-center rounded-md bg-white px-3 py-2 text-sm font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50 sm:col-start-1 sm:mt-0",children:"Cancel",onClick:w=>{o(!1)}})],["children",C.Children.toArray(Array.from(_))])])))]),h("div",{children:C.Children.toArray(Array.from(p))}))],["children",C.Children.toArray(Array.from(f))])])))],["children",C.Children.toArray(Array.from(d))])])))],["children",C.Children.toArray(Array.from(a))])])))]),h("div",{children:C.Children.toArray(Array.from(c))}))):Aa()})))),["children",C.Children.toArray(Array.from(t))])])))}function qm(e){let t,n,r,o,i,s,l,u;const c=e.onDone,a=e.backendService,d=e.dispatchFetchImports,f=e.accountImports,p=e.accountId,g=rc(Km(),(b,F)=>Jm(d,a,b,F)),_=g[1];nc(()=>{_(new ge(2,[new vt(1,[f])]))},[f]);const w=S([h("div",L(S([["className","space-y-6"],(t=[(n=S([`Upload a CSV file with required information (first name, last name, email) to create new partial profiles.
|
|
27
|
+
The file will be validated `,h("b",{children:["before"]}),` creating the profiles.
|
|
28
28
|
If validation fails, the file will be rejected, and no profiles created.
|
|
29
|
-
You'll get an error report to fix the information before re-uploading.`]),
|
|
30
|
-
`,
|
|
29
|
+
You'll get an error report to fix the information before re-uploading.`]),h("p",{children:C.Children.toArray(Array.from(n))})),h("p",{children:"This feature doesn't update existing profiles in the account."}),(r=S([h("span",{children:["Not sure how to get started?"]}),h("ul",L(S([["className","ml-6 list-disc list-outside"],(o=[(i=S([h("a",{className:"cursor-pointer font-bold",children:"Download",target:"_blank",rel:"noreferrer",href:"https://docs.google.com/spreadsheets/d/1BGRolDj6dBKf4ZyzACln60DhBY2dHxZdXdwtm0uxK2M"})," a blank CSV template"]),h("li",{children:C.Children.toArray(Array.from(i))})),(s=S([h("a",{className:"cursor-pointer font-bold",children:"Read the guide",target:"_blank",rel:"noreferrer",href:"https://coda.io/d/Network-Partners_duJlEDaJduS/How-to-import-existing-employees_suumX#_lu5Lq"})," to using the CSV importer"]),h("li",{children:C.Children.toArray(Array.from(s))}))],["children",C.Children.toArray(Array.from(o))])])))]),h("div",{children:C.Children.toArray(Array.from(r))}))],["children",C.Children.toArray(Array.from(t))])]))),h("div",L(S([["className","px-8 mt-10"],(l=[h("div",L(S([["className","border border-gray-300 w-full py-12 rounded text-center bg-white"],(u=lt(M(()=>{let b,F,ne,oe;const Q=g[0].View;switch(Q.tag){case 1:return k((b=S([h("img",{src:wl,className:"mx-auto animate-spin"}),h("p",{className:"mt-2",children:"Validating data"})]),h("div",{children:C.Children.toArray(Array.from(b))})));case 2:{const N=Q.fields[0];return k((F=lt(M(()=>{const ae=ce=>{let Qe,It;const Vn=St(`\r
|
|
30
|
+
`,ga(ro(xe(xe("Row,Column,Error")),Vr(Vt=>Vr(ie=>St(",",xn(me=>`"${me}"`,xn(me=>qf(me,'"','""'),[Rt(Vt.RowId),ie.Column,ie.Message],null),null)),Vt.FieldErrors),ce))));return h("p",L(S([["className","mt-6"],(Qe=["Download the full error report ",h("a",{className:"font-bold cursor-pointer",href:(It=new Blob([Vn],{type:"text/csv;charset=utf-8;"}),window.URL.createObjectURL(It)),download:`${p}_validation_errors.csv`,children:"here"}),"."],["children",C.Children.toArray(Array.from(Qe))])])))};let P;if(N.tag===1)P=h("p",{children:["Invalid file name"]});else if(N.tag===2)P=h("p",{children:["CSV exceeds max row limit"]});else if(N.tag===3)P=h("p",{children:[N.fields[0]]});else if(N.tag===4)P=h("p",{children:["CSV does not contain any data"]});else if(N.tag===5)P=h("p",{children:["File not uploaded, ensure a file is selected"]});else if(N.tag===6)P=h("p",{children:["Only a single file is allowed"]});else if(N.tag===8)P=h("p",{children:["Unknown account"]});else if(N.tag===7)if(hd(N.fields[0])<=10){const ce=lt(M(()=>se(k(h("p",{className:"mb-3",children:"The file contains the following validation error(s)"})),M(()=>se(xa(Qe=>Oe(It=>h("li",{children:[`Row ${Qe.RowId}, Column ${It.Column}: ${It.Message}`]}),Qe.FieldErrors),N.fields[0]),M(()=>k(ae(N.fields[0]))))))));P=h("div",{children:C.Children.toArray(Array.from(ce))})}else{const ce=S([h("p",{children:["The file contains more than 10 validation errors"]}),ae(N.fields[0])]);P=h("div",{children:C.Children.toArray(Array.from(ce))})}else P=N.tag===9?h("p",{children:["An import is already in progress"]}):h("p",{children:["Invalid file type"]});return se(k(h("img",{src:yc,className:"mx-auto"})),M(()=>se(k(h("div",{className:"mt-2",children:C.Children.toArray([P])})),M(()=>k(h("button",{type:"button",children:"Upload another file",className:"mt-8 rounded-md bg-indigo-600 px-3.5 py-2.5 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600",onClick:ce=>{_(new ge(0,[new Je(0,[])]))}}))))))})),h("div",{children:C.Children.toArray(Array.from(F))})))}case 3:{const N=Q.fields[0];return k((ne=S([h("img",{src:wl,className:"mx-auto animate-spin"}),h("p",{className:"mt-2 mb-6",children:"Creating profiles"}),h("p",{children:[`Creator: ${N.User}`]}),h("p",{children:[`Filename: ${N.Filename}`]}),h("p",{children:[`Rows processed: ${N.CompletedSuccessfully+N.CompletedFailed}`]}),h("p",{children:[`Total rows: ${N.NumberOfRecords}`]})]),h("div",{children:C.Children.toArray(Array.from(ne))})))}case 4:{const N=Q.fields[0];return k((oe=S([h("img",{src:$m,className:"mx-auto"}),h("p",{className:"mt-2 mb-6",children:`${N.Succeeded} Profiles successfully created`}),h(oc,{importId:N.ImportId,fetchImport:ae=>Xa(a,ae),onDone:c})]),h("div",{children:C.Children.toArray(Array.from(oe))})))}case 5:return k(sr(Q.fields[0]));default:return k(h(Xm,{dispatch:_}))}})),["children",C.Children.toArray(Array.from(u))])])))],["children",C.Children.toArray(Array.from(l))])])))]);return h("div",{children:C.Children.toArray(Array.from(w))})}function Fi(){return(Fi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Ym(e){this.getChildContext=function(){return e.context};var t=e.children,n=function(r,o){if(r==null)return{};var i,s,l={},u=Object.keys(r);for(s=0;s<u.length;s++)o.indexOf(i=u[s])>=0||(l[i]=r[i]);return l}(e,["context","children"]);return ti(t,n)}function eg(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=h(Ym,Fi({},this._props,{context:e.detail.context}),function t(n,r){if(n.nodeType===3)return n.data;if(n.nodeType!==1)return null;var o=[],i={},s=0,l=n.attributes,u=n.childNodes;for(s=l.length;s--;)l[s].name!=="slot"&&(i[l[s].name]=l[s].value,i[bc(l[s].name)]=l[s].value);for(s=u.length;s--;){var c=t(u[s],null),a=u[s].slot;a?i[a]=h(_l,{name:a},c):o[s]=c}var d=r?h(_l,null,o):o;return h(r||n.nodeName.toLowerCase(),i,d)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?ei:Nt)(this._vdom,this._root)}function bc(e){return e.replace(/-(\w)/g,function(t,n){return n?n.toUpperCase():""})}function tg(e,t,n){if(this._vdom){var r={};r[e]=n=n==null?void 0:n,r[bc(e)]=n,this._vdom=ti(this._vdom,r),Nt(this._vdom,this._root)}}function ng(){Nt(this._vdom=null,this._root)}function _l(e,t){var n=this;return h("slot",Fi({},e,{ref:function(r){r?(n.ref=r,n._listener||(n._listener=function(o){o.stopPropagation(),o.detail.context=t},r.addEventListener("_preact",n._listener))):n.ref.removeEventListener("_preact",n._listener)}}))}function rg(e,t,n,r){function o(){var i=Reflect.construct(HTMLElement,[],o);return i._vdomComponent=e,i._root=r&&r.shadow?i.attachShadow({mode:"open"}):i,i}return(o.prototype=Object.create(HTMLElement.prototype)).constructor=o,o.prototype.connectedCallback=eg,o.prototype.attributeChangedCallback=tg,o.prototype.disconnectedCallback=ng,n=n||e.observedAttributes||Object.keys(e.propTypes||{}),o.observedAttributes=n,n.forEach(function(i){Object.defineProperty(o.prototype,i,{get:function(){return this._vdom.props[i]},set:function(s){this._vdom?this.attributeChangedCallback(i,null,s):(this._props||(this._props={}),this._props[i]=s,this.connectedCallback());var l=typeof s;s!=null&&l!=="string"&&l!=="boolean"&&l!=="number"||this.setAttribute(i,s)}})}),customElements.define(t||e.tagName||e.displayName||e.name,o)}function og(e,t){rg(e,t,void 0,{shadow:!0})}function ig(e){let t;const n=i0(e.backendUrl,e.accountId,e.accessToken),r=rc(H0,(l,u)=>j0(()=>s0(n),l,u)),o=r[0],i=r[1],s=S([h("style",{children:[U0]}),h(L0,{currentTab:o.CurrentTab,setCurrentTab:l=>{i(new Xn(0,[l]))}}),h("div",L(S([["className","mt-4"],(t=lt(M(()=>{const l=o.AccountImports;let u,c,a,d;switch(l.tag===1?u=0:l.tag===3?(u=1,c=l.fields[0]):l.tag===2?l.fields[0].tag===0?(u=3,d=l.fields[0].fields[0]):(u=2,a=l.fields[0].fields[0]):u=0,u){case 0:return k(h("div",{children:["Please wait..."]}));case 1:return k(sr(c.message));case 2:return k(sr(a));case 3:return o.CurrentTab.tag===1?k(h(z0,{accountImports:d,fetchImport:f=>Xa(n,f)})):k(h(qm,{accountId:e.accountId,accountImports:d,dispatchFetchImports:()=>{i(new Xn(1,[new vt(0,[void 0])]))},backendService:n,onDone:()=>{i(new Xn(0,[new Gr(1,[])]))}}))}})),["children",C.Children.toArray(Array.from(t))])])))]);return h("div",{children:C.Children.toArray(Array.from(s))})}function sg(){og(e=>h(ig,e),"superhero-profile-directory-app")}sg();
|