@flarehr/superhero-bank-details 3.13.0 → 3.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,19 +1,19 @@
1
- var Mn,T,Xs,Mt,Ii,Qs,fo,ea,Do,ho,po,ta,En={},na=[],bu=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Sr=Array.isArray;function at(e,t){for(var n in t)e[n]=t[n];return e}function Fo(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function v(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?Mn.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 vn(e,s,r,o,null)}function vn(e,t,n,r,o){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:o??++Xs,__i:-1,__u:0};return o==null&&T.vnode!=null&&T.vnode(i),i}function Ro(){return{current:null}}function se(e){return e.children}function Ze(e,t){this.props=e,this.context=t}function Qt(e,t){if(t==null)return e.__?Qt(e.__,e.__i+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"?Qt(e):null}function ra(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 ra(e)}}function mo(e){(!e.__d&&(e.__d=!0)&&Mt.push(e)&&!ir.__r++||Ii!==T.debounceRendering)&&((Ii=T.debounceRendering)||Qs)(ir)}function ir(){var e,t,n,r,o,i,s,a;for(Mt.sort(fo);e=Mt.shift();)e.__d&&(t=Mt.length,r=void 0,i=(o=(n=e).__v).__e,s=[],a=[],n.__P&&((r=at({},o)).__v=o.__v+1,T.vnode&&T.vnode(r),Lo(n.__P,r,o,n.__n,n.__P.namespaceURI,32&o.__u?[i]:null,s,i??Qt(o),!!(32&o.__u),a),r.__v=o.__v,r.__.__k[r.__i]=r,sa(s,r,a),r.__e!=i&&ra(r)),Mt.length>t&&Mt.sort(fo));ir.__r=0}function oa(e,t,n,r,o,i,s,a,l,u,f){var c,h,d,p,g,m,_=r&&r.__k||na,y=t.length;for(l=vu(n,t,_,l,y),c=0;c<y;c++)(d=n.__k[c])!=null&&(h=d.__i===-1?En:_[d.__i]||En,d.__i=c,m=Lo(e,d,h,o,i,s,a,l,u,f),p=d.__e,d.ref&&h.ref!=d.ref&&(h.ref&&Ho(h.ref,null,d),f.push(d.ref,d.__c||p,d)),g==null&&p!=null&&(g=p),4&d.__u||h.__k===d.__k?l=ia(d,l,e):typeof d.type=="function"&&m!==void 0?l=m:p&&(l=p.nextSibling),d.__u&=-7);return n.__e=g,l}function vu(e,t,n,r,o){var i,s,a,l,u,f=n.length,c=f,h=0;for(e.__k=new Array(o),i=0;i<o;i++)(s=t[i])!=null&&typeof s!="boolean"&&typeof s!="function"?(l=i+h,(s=e.__k[i]=typeof s=="string"||typeof s=="number"||typeof s=="bigint"||s.constructor==String?vn(null,s,null,null,null):Sr(s)?vn(se,{children:s},null,null,null):s.constructor===void 0&&s.__b>0?vn(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):s).__=e,s.__b=e.__b+1,a=null,(u=s.__i=Su(s,n,l,c))!==-1&&(c--,(a=n[u])&&(a.__u|=2)),a==null||a.__v===null?(u==-1&&h--,typeof s.type!="function"&&(s.__u|=4)):u!=l&&(u==l-1?h--:u==l+1?h++:(u>l?h--:h++,s.__u|=4))):e.__k[i]=null;if(c)for(i=0;i<f;i++)(a=n[i])!=null&&!(2&a.__u)&&(a.__e==r&&(r=Qt(a)),aa(a,a));return r}function ia(e,t,n){var r,o;if(typeof e.type=="function"){for(r=e.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=e,t=ia(r[o],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=Qt(e)),n.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function ct(e,t){return t=t||[],e==null||typeof e=="boolean"||(Sr(e)?e.some(function(n){ct(n,t)}):t.push(e)),t}function Su(e,t,n,r){var o,i,s=e.key,a=e.type,l=t[n];if(l===null||l&&s==l.key&&a===l.type&&!(2&l.__u))return n;if(r>(l!=null&&!(2&l.__u)?1:0))for(o=n-1,i=n+1;o>=0||i<t.length;){if(o>=0){if((l=t[o])&&!(2&l.__u)&&s==l.key&&a===l.type)return o;o--}if(i<t.length){if((l=t[i])&&!(2&l.__u)&&s==l.key&&a===l.type)return i;i++}}return-1}function Oi(e,t,n){t[0]=="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||bu.test(t)?n:n+"px"}function Gn(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||Oi(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||Oi(e.style,t,n[t])}else if(t[0]=="o"&&t[1]=="n")i=t!=(t=t.replace(ea,"$1")),t=t.toLowerCase()in e||t=="onFocusOut"||t=="onFocusIn"?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r?n.u=r.u:(n.u=Do,e.addEventListener(t,i?po:ho,i)):e.removeEventListener(t,i?po:ho,i);else{if(o=="http://www.w3.org/2000/svg")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!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&n==1?"":n))}}function Ni(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=Do++;else if(t.t<n.u)return;return n(T.event?T.event(t):t)}}}function Lo(e,t,n,r,o,i,s,a,l,u){var f,c,h,d,p,g,m,_,y,C,D,W,Q,V,me,je,et,fe=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(l=!!(32&n.__u),i=[a=t.__e=n.__e]),(f=T.__b)&&f(t);e:if(typeof fe=="function")try{if(_=t.props,y="prototype"in fe&&fe.prototype.render,C=(f=fe.contextType)&&r[f.__c],D=f?C?C.props.value:f.__:r,n.__c?m=(c=t.__c=n.__c).__=c.__E:(y?t.__c=c=new fe(_,D):(t.__c=c=new Ze(_,D),c.constructor=fe,c.render=Eu),C&&C.sub(c),c.props=_,c.state||(c.state={}),c.context=D,c.__n=r,h=c.__d=!0,c.__h=[],c._sb=[]),y&&c.__s==null&&(c.__s=c.state),y&&fe.getDerivedStateFromProps!=null&&(c.__s==c.state&&(c.__s=at({},c.__s)),at(c.__s,fe.getDerivedStateFromProps(_,c.__s))),d=c.props,p=c.state,c.__v=t,h)y&&fe.getDerivedStateFromProps==null&&c.componentWillMount!=null&&c.componentWillMount(),y&&c.componentDidMount!=null&&c.__h.push(c.componentDidMount);else{if(y&&fe.getDerivedStateFromProps==null&&_!==d&&c.componentWillReceiveProps!=null&&c.componentWillReceiveProps(_,D),!c.__e&&(c.shouldComponentUpdate!=null&&c.shouldComponentUpdate(_,c.__s,D)===!1||t.__v==n.__v)){for(t.__v!=n.__v&&(c.props=_,c.state=c.__s,c.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(Ce){Ce&&(Ce.__=t)}),W=0;W<c._sb.length;W++)c.__h.push(c._sb[W]);c._sb=[],c.__h.length&&s.push(c);break e}c.componentWillUpdate!=null&&c.componentWillUpdate(_,c.__s,D),y&&c.componentDidUpdate!=null&&c.__h.push(function(){c.componentDidUpdate(d,p,g)})}if(c.context=D,c.props=_,c.__P=e,c.__e=!1,Q=T.__r,V=0,y){for(c.state=c.__s,c.__d=!1,Q&&Q(t),f=c.render(c.props,c.state,c.context),me=0;me<c._sb.length;me++)c.__h.push(c._sb[me]);c._sb=[]}else do c.__d=!1,Q&&Q(t),f=c.render(c.props,c.state,c.context),c.state=c.__s;while(c.__d&&++V<25);c.state=c.__s,c.getChildContext!=null&&(r=at(at({},r),c.getChildContext())),y&&!h&&c.getSnapshotBeforeUpdate!=null&&(g=c.getSnapshotBeforeUpdate(d,p)),a=oa(e,Sr(je=f!=null&&f.type===se&&f.key==null?f.props.children:f)?je:[je],t,n,r,o,i,s,a,l,u),c.base=t.__e,t.__u&=-161,c.__h.length&&s.push(c),m&&(c.__E=c.__=null)}catch(Ce){if(t.__v=null,l||i!=null)if(Ce.then){for(t.__u|=l?160:128;a&&a.nodeType==8&&a.nextSibling;)a=a.nextSibling;i[i.indexOf(a)]=null,t.__e=a}else for(et=i.length;et--;)Fo(i[et]);else t.__e=n.__e,t.__k=n.__k;T.__e(Ce,t,n)}else i==null&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):a=t.__e=Cu(n.__e,t,n,r,o,i,s,l,u);return(f=T.diffed)&&f(t),128&t.__u?void 0:a}function sa(e,t,n){for(var r=0;r<n.length;r++)Ho(n[r],n[++r],n[++r]);T.__c&&T.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(i){i.call(o)})}catch(i){T.__e(i,o.__v)}})}function Cu(e,t,n,r,o,i,s,a,l){var u,f,c,h,d,p,g,m=n.props,_=t.props,y=t.type;if(y=="svg"?o="http://www.w3.org/2000/svg":y=="math"?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),i!=null){for(u=0;u<i.length;u++)if((d=i[u])&&"setAttribute"in d==!!y&&(y?d.localName==y:d.nodeType==3)){e=d,i[u]=null;break}}if(e==null){if(y==null)return document.createTextNode(_);e=document.createElementNS(o,y,_.is&&_),a&&(T.__m&&T.__m(t,i),a=!1),i=null}if(y===null)m===_||a&&e.data===_||(e.data=_);else{if(i=i&&Mn.call(e.childNodes),m=n.props||En,!a&&i!=null)for(m={},u=0;u<e.attributes.length;u++)m[(d=e.attributes[u]).name]=d.value;for(u in m)if(d=m[u],u!="children"){if(u=="dangerouslySetInnerHTML")c=d;else if(!(u in _)){if(u=="value"&&"defaultValue"in _||u=="checked"&&"defaultChecked"in _)continue;Gn(e,u,null,d,o)}}for(u in _)d=_[u],u=="children"?h=d:u=="dangerouslySetInnerHTML"?f=d:u=="value"?p=d:u=="checked"?g=d:a&&typeof d!="function"||m[u]===d||Gn(e,u,d,m[u],o);if(f)a||c&&(f.__html===c.__html||f.__html===e.innerHTML)||(e.innerHTML=f.__html),t.__k=[];else if(c&&(e.innerHTML=""),oa(e,Sr(h)?h:[h],t,n,r,y=="foreignObject"?"http://www.w3.org/1999/xhtml":o,i,s,i?i[0]:n.__k&&Qt(n,0),a,l),i!=null)for(u=i.length;u--;)Fo(i[u]);a||(u="value",y=="progress"&&p==null?e.removeAttribute("value"):p!==void 0&&(p!==e[u]||y=="progress"&&!p||y=="option"&&p!==m[u])&&Gn(e,u,p,m[u],o),u="checked",g!==void 0&&g!==e[u]&&Gn(e,u,g,m[u],o))}return e}function Ho(e,t,n){try{if(typeof e=="function"){var r=typeof e.__u=="function";r&&e.__u(),r&&t==null||(e.__u=e(t))}else e.current=t}catch(o){T.__e(o,n)}}function aa(e,t,n){var r,o;if(T.unmount&&T.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||Ho(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(i){T.__e(i,t)}r.base=r.__P=null}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&aa(r[o],t,n||typeof e.type!="function");n||Fo(e.__e),e.__c=e.__=e.__e=void 0}function Eu(e,t,n){return this.constructor(e,n)}function vt(e,t,n){var r,o,i,s;t==document&&(t=document.documentElement),T.__&&T.__(e,t),o=(r=typeof n=="function")?null:n&&n.__k||t.__k,i=[],s=[],Lo(t,e=(!r&&n||t).__k=v(se,null,[e]),o||En,En,t.namespaceURI,!r&&n?[n]:o?null:t.firstChild?Mn.call(t.childNodes):null,i,!r&&n?n:o?o.__e:t.firstChild,r,s),sa(i,e,s)}function Uo(e,t){vt(e,t,Uo)}function Vo(e,t,n){var r,o,i,s,a=at({},e.props);for(i in e.type&&e.type.defaultProps&&(s=e.type.defaultProps),t)i=="key"?r=t[i]:i=="ref"?o=t[i]:a[i]=t[i]===void 0&&s!==void 0?s[i]:t[i];return arguments.length>2&&(a.children=arguments.length>3?Mn.call(arguments,2):n),vn(e.type,a,r||e.key,o||e.ref,null)}function Ne(e,t){var n={__c:t="__cC"+ta++,__:e,Consumer:function(r,o){return r.children(o)},Provider:function(r){var o,i;return this.getChildContext||(o=new Set,(i={})[t]=this,this.getChildContext=function(){return i},this.componentWillUnmount=function(){o=null},this.shouldComponentUpdate=function(s){this.props.value!==s.value&&o.forEach(function(a){a.__e=!0,mo(a)})},this.sub=function(s){o.add(s);var a=s.componentWillUnmount;s.componentWillUnmount=function(){o&&o.delete(s),a&&a.call(s)}}),r.children}};return n.Provider.__=n.Consumer.contextType=n}Mn=na.slice,T={__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(a){e=a}throw e}},Xs=0,Ze.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=at({},this.state),typeof e=="function"&&(e=e(at({},n),this.props)),e&&at(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),mo(this))},Ze.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),mo(this))},Ze.prototype.render=se,Mt=[],Qs=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,fo=function(e,t){return e.__v.__b-t.__v.__b},ir.__r=0,ea=/(PointerCapture)$|Capture$/i,Do=0,ho=Ni(!1),po=Ni(!0),ta=0;var ht,L,zr,Pi,en=0,la=[],Z=T,Di=Z.__b,Fi=Z.__r,Ri=Z.diffed,Li=Z.__c,Hi=Z.unmount,Ui=Z.__;function Lt(e,t){Z.__h&&Z.__h(L,e,en||t),en=0;var n=L.__H||(L.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function re(e){return en=1,An(ua,e)}function An(e,t,n){var r=Lt(ht++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):ua(void 0,t),function(a){var l=r.__N?r.__N[0]:r.__[0],u=r.t(l,a);l!==u&&(r.__N=[u,r.__[1]],r.__c.setState({}))}],r.__c=L,!L.u)){var o=function(a,l,u){if(!r.__c.__H)return!0;var f=r.__c.__H.__.filter(function(h){return!!h.__c});if(f.every(function(h){return!h.__N}))return!i||i.call(this,a,l,u);var c=r.__c.props!==a;return f.forEach(function(h){if(h.__N){var d=h.__[0];h.__=h.__N,h.__N=void 0,d!==h.__[0]&&(c=!0)}}),i&&i.call(this,a,l,u)||c};L.u=!0;var i=L.shouldComponentUpdate,s=L.componentWillUpdate;L.componentWillUpdate=function(a,l,u){if(this.__e){var f=i;i=void 0,o(a,l,u),i=f}s&&s.call(this,a,l,u)},L.shouldComponentUpdate=o}return r.__N||r.__}function H(e,t){var n=Lt(ht++,3);!Z.__s&&zo(n.__H,t)&&(n.__=e,n.i=t,L.__H.__h.push(n))}function Ht(e,t){var n=Lt(ht++,4);!Z.__s&&zo(n.__H,t)&&(n.__=e,n.i=t,L.__h.push(n))}function A(e){return en=5,K(function(){return{current:e}},[])}function jo(e,t,n){en=6,Ht(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 K(e,t){var n=Lt(ht++,7);return zo(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function lt(e,t){return en=8,K(function(){return e},t)}function ce(e){var t=L.context[e.__c],n=Lt(ht++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(L)),t.props.value):e.__}function Bo(e,t){Z.useDebugValue&&Z.useDebugValue(t?t(e):e)}function xu(e){var t=Lt(ht++,10),n=re();return t.__=e,L.componentDidCatch||(L.componentDidCatch=function(r,o){t.__&&t.__(r,o),n[1](r)}),[n[0],function(){n[1](void 0)}]}function Go(){var e=Lt(ht++,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 ku(){for(var e;e=la.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(er),e.__H.__h.forEach(go),e.__H.__h=[]}catch(t){e.__H.__h=[],Z.__e(t,e.__v)}}Z.__b=function(e){L=null,Di&&Di(e)},Z.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Ui&&Ui(e,t)},Z.__r=function(e){Fi&&Fi(e),ht=0;var t=(L=e.__c).__H;t&&(zr===L?(t.__h=[],L.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.i=n.__N=void 0})):(t.__h.forEach(er),t.__h.forEach(go),t.__h=[],ht=0)),zr=L},Z.diffed=function(e){Ri&&Ri(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(la.push(t)!==1&&Pi===Z.requestAnimationFrame||((Pi=Z.requestAnimationFrame)||$u)(ku)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.i=void 0})),zr=L=null},Z.__c=function(e,t){t.some(function(n){try{n.__h.forEach(er),n.__h=n.__h.filter(function(r){return!r.__||go(r)})}catch(r){t.some(function(o){o.__h&&(o.__h=[])}),t=[],Z.__e(r,n.__v)}}),Li&&Li(e,t)},Z.unmount=function(e){Hi&&Hi(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&&Z.__e(t,n.__v))};var Vi=typeof requestAnimationFrame=="function";function $u(e){var t,n=function(){clearTimeout(r),Vi&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Vi&&(t=requestAnimationFrame(n))}function er(e){var t=L,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),L=t}function go(e){var t=L;e.__c=e.__(),L=t}function zo(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function ua(e,t){return typeof t=="function"?t(e):t}function ca(e,t){for(var n in t)e[n]=t[n];return e}function wo(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 Wo(e,t){var n=t(),r=re({t:{__:n,u:t}}),o=r[0].t,i=r[1];return Ht(function(){o.__=n,o.u=t,Wr(o)&&i({t:o})},[e,n,t]),H(function(){return Wr(o)&&i({t:o}),e(function(){Wr(o)&&i({t:o})})},[e]),n}function Wr(e){var t,n,r=e.u,o=e.__;try{var i=r();return!((t=o)===(n=i)&&(t!==0||1/t==1/n)||t!=t&&n!=n)}catch{return!0}}function qo(e){e()}function Yo(e){return e}function Zo(){return[!1,qo]}var Jo=Ht;function sr(e,t){this.props=e,this.context=t}function fa(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:wo(this.props,o)}function r(o){return this.shouldComponentUpdate=n,v(e,o)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(sr.prototype=new Ze).isPureReactComponent=!0,sr.prototype.shouldComponentUpdate=function(e,t){return wo(this.props,e)||wo(this.state,t)};var ji=T.__b;T.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),ji&&ji(e)};var Tu=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Ko(e){function t(n){var r=ca({},n);return delete r.ref,e(r,n.ref||null)}return t.$$typeof=Tu,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Bi=function(e,t){return e==null?null:ct(ct(e).map(t))},da={map:Bi,forEach:Bi,count:function(e){return e?ct(e).length:0},only:function(e){var t=ct(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:ct},Mu=T.__e;T.__e=function(e,t,n,r){if(e.then){for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t)}Mu(e,t,n,r)};var Gi=T.unmount;function ha(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=ca({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return ha(r,t,n)})),e}function pa(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return pa(r,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function Sn(){this.__u=0,this.o=null,this.__b=null}function ma(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function ga(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 v(n,i)}return o.displayName="Lazy",o.__f=!0,o}function Wt(){this.i=null,this.l=null}T.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Gi&&Gi(e)},(Sn.prototype=new Ze).__c=function(e,t){var n=t.__c,r=this;r.o==null&&(r.o=[]),r.o.push(n);var o=ma(r.__v),i=!1,s=function(){i||(i=!0,n.__R=null,o?o(a):a())};n.__R=s;var a=function(){if(!--r.__u){if(r.state.__a){var l=r.state.__a;r.__v.__k[0]=pa(l,l.__c.__P,l.__c.__O)}var u;for(r.setState({__a:r.__b=null});u=r.o.pop();)u.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(s,s)},Sn.prototype.componentWillUnmount=function(){this.o=[]},Sn.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]=ha(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&v(se,null,e.fallback);return o&&(o.__u&=-33),[v(se,null,t.__a?null:e.children),o]};var zi=function(e,t,n){if(++n[1]===n[0]&&e.l.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.l.size))for(n=e.i;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.i=n=n[2]}};function Au(e){return this.getChildContext=function(){return e.context},e.children}function Iu(e){var t=this,n=e.h;t.componentWillUnmount=function(){vt(null,t.v),t.v=null,t.h=null},t.h&&t.h!==n&&t.componentWillUnmount(),t.v||(t.h=n,t.v={nodeType:1,parentNode:n,childNodes:[],contains:function(){return!0},appendChild:function(r){this.childNodes.push(r),t.h.appendChild(r)},insertBefore:function(r,o){this.childNodes.push(r),t.h.insertBefore(r,o)},removeChild:function(r){this.childNodes.splice(this.childNodes.indexOf(r)>>>1,1),t.h.removeChild(r)}}),vt(v(Au,{context:t.context},e.__v),t.v)}function Xo(e,t){var n=v(Iu,{__v:e,h:t});return n.containerInfo=t,n}(Wt.prototype=new Ze).__a=function(e){var t=this,n=ma(t.__v),r=t.l.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),zi(t,e,r)):o()};n?n(i):i()}},Wt.prototype.render=function(e){this.i=null,this.l=new Map;var t=ct(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.l.set(t[n],this.i=[1,0,this.i]);return e.children},Wt.prototype.componentDidUpdate=Wt.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,n){zi(e,n,t)})};var wa=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Ou=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Nu=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Pu=/[A-Z0-9]/g,Du=typeof document<"u",Fu=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function _a(e,t,n){return t.__k==null&&(t.textContent=""),vt(e,t),typeof n=="function"&&n(),e?e.__c:null}function ya(e,t,n){return Uo(e,t),typeof n=="function"&&n(),e?e.__c:null}Ze.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(Ze.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Wi=T.event;function Ru(){}function Lu(){return this.cancelBubble}function Hu(){return this.defaultPrevented}T.event=function(e){return Wi&&(e=Wi(e)),e.persist=Ru,e.isPropagationStopped=Lu,e.isDefaultPrevented=Hu,e.nativeEvent=e};var Qo,Uu={enumerable:!1,configurable:!0,get:function(){return this.class}},qi=T.vnode;T.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,r=t.type,o={},i=r.indexOf("-")===-1;for(var s in n){var a=n[s];if(!(s==="value"&&"defaultValue"in n&&a==null||Du&&s==="children"&&r==="noscript"||s==="class"||s==="className")){var l=s.toLowerCase();s==="defaultValue"&&"value"in n&&n.value==null?s="value":s==="download"&&a===!0?a="":l==="translate"&&a==="no"?a=!1:l[0]==="o"&&l[1]==="n"?l==="ondoubleclick"?s="ondblclick":l!=="onchange"||r!=="input"&&r!=="textarea"||Fu(n.type)?l==="onfocus"?s="onfocusin":l==="onblur"?s="onfocusout":Nu.test(s)&&(s=l):l=s="oninput":i&&Ou.test(s)?s=s.replace(Pu,"-$&").toLowerCase():a===null&&(a=void 0),l==="oninput"&&o[s=l]&&(s="oninputCapture"),o[s]=a}}r=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=ct(n.children).forEach(function(u){u.props.selected=o.value.indexOf(u.props.value)!=-1})),r=="select"&&o.defaultValue!=null&&(o.value=ct(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",Uu)):(n.className&&!n.class||n.class&&n.className)&&(o.class=o.className=n.className),t.props=o}(e),e.$$typeof=wa,qi&&qi(e)};var Yi=T.__r;T.__r=function(e){Yi&&Yi(e),Qo=e.__c};var Zi=T.diffed;T.diffed=function(e){Zi&&Zi(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),Qo=null};var ba={ReactCurrentDispatcher:{current:{readContext:function(e){return Qo.__n[e.__c].props.value},useCallback:lt,useContext:ce,useDebugValue:Bo,useDeferredValue:Yo,useEffect:H,useId:Go,useImperativeHandle:jo,useInsertionEffect:Jo,useLayoutEffect:Ht,useMemo:K,useReducer:An,useRef:A,useState:re,useSyncExternalStore:Wo,useTransition:Zo}}},Vu="18.3.1";function va(e){return v.bind(null,e)}function sn(e){return!!e&&e.$$typeof===wa}function Sa(e){return sn(e)&&e.type===se}function Ca(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function ei(e){return sn(e)?Vo.apply(null,arguments):e}function Ea(e){return!!e.__k&&(vt(null,e),!0)}function xa(e){return e&&(e.base||e.nodeType===1&&e)||null}var ka=function(e,t){return e(t)},$a=function(e,t){return e(t)},Ta=se,Ma=sn,x={useState:re,useId:Go,useReducer:An,useEffect:H,useLayoutEffect:Ht,useInsertionEffect:Jo,useTransition:Zo,useDeferredValue:Yo,useSyncExternalStore:Wo,startTransition:qo,useRef:A,useImperativeHandle:jo,useMemo:K,useCallback:lt,useContext:ce,useDebugValue:Bo,version:"18.3.1",Children:da,render:_a,hydrate:ya,unmountComponentAtNode:Ea,createPortal:Xo,createElement:v,createContext:Ne,createFactory:va,cloneElement:ei,createRef:Ro,Fragment:se,isValidElement:sn,isElement:Ma,isFragment:Sa,isMemo:Ca,findDOMNode:xa,Component:Ze,PureComponent:sr,memo:fa,forwardRef:Ko,flushSync:$a,unstable_batchedUpdates:ka,StrictMode:Ta,Suspense:Sn,SuspenseList:Wt,lazy:ga,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:ba};const tn=Object.freeze(Object.defineProperty({__proto__:null,Children:da,Component:Ze,Fragment:se,PureComponent:sr,StrictMode:Ta,Suspense:Sn,SuspenseList:Wt,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:ba,cloneElement:ei,createContext:Ne,createElement:v,createFactory:va,createPortal:Xo,createRef:Ro,default:x,findDOMNode:xa,flushSync:$a,forwardRef:Ko,hydrate:ya,isElement:Ma,isFragment:Sa,isMemo:Ca,isValidElement:sn,lazy:ga,memo:fa,render:_a,startTransition:qo,unmountComponentAtNode:Ea,unstable_batchedUpdates:ka,useCallback:lt,useContext:ce,useDebugValue:Bo,useDeferredValue:Yo,useEffect:H,useErrorBoundary:xu,useId:Go,useImperativeHandle:jo,useInsertionEffect:Jo,useLayoutEffect:Ht,useMemo:K,useReducer:An,useRef:A,useState:re,useSyncExternalStore:Wo,useTransition:Zo,version:Vu},Symbol.toStringTag,{value:"Module"}));function Je(e){return Array.isArray(e)||ArrayBuffer.isView(e)}function ju(e){return e!=null&&typeof e.GetEnumerator=="function"}function Bu(e){return e!=null&&typeof e.CompareTo=="function"}function Gu(e){return e!=null&&typeof e.Equals=="function"}function Aa(e){return e!=null&&typeof e.GetHashCode=="function"}function _o(e){return e!=null&&typeof e.Dispose=="function"}function G(e){_o(e)&&e.Dispose()}function Ke(){return null}function ar(e,t){var n,r;return((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===((r=Object.getPrototypeOf(t))==null?void 0:r.constructor)}class zu{constructor(t){this.iter=t,this.current=Ke()}"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 ne(e){return ju(e)?e.GetEnumerator():new zu(e[Symbol.iterator]())}function Cr(e){return{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}}}}class Wu{constructor(t){this.factory=t,this.isValueCreated=!1}get Value(){return this.isValueCreated||(this.createdValue=this.factory(),this.isValueCreated=!0),this.createdValue}get IsValueCreated(){return this.isValueCreated}}function P(e,t){return e.toString(10).padStart(t,"0")}function qu(e,t,n){return e.toString(10).padStart(t,"0").padEnd(n,"0")}function Ji(e){const t=e;return typeof t.offset=="number"?t.offset:e.kind===1?0:e.getTimezoneOffset()*-6e4}function Yu(e,t){return e=e,e.toString(t)}function Dt(e,t){return e=e,e.toString(t)}class ut{static id(t){return ut.idMap.has(t)||ut.idMap.set(t,++ut.count),ut.idMap.get(t)}}ut.idMap=new WeakMap;ut.count=0;function Er(e){let t=0,n=5381;const r=e.length;for(;t<r;)n=n*33^e.charCodeAt(t++);return n}function qe(e){return e*2654435761|0}function Ia(e){return Er(e.toString(32))}function In(e){let t=0;const n=e.length;for(let r=0;r<n;r++){const o=e[r];t=(t<<5)+t^o}return t}function Zu(e){if(e==null)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return qe(e);case"bigint":return Ia(e);case"string":return Er(e);default:return qe(ut.id(e))}}function Ju(e){return Aa(e)?e.GetHashCode():Zu(e)}function Ku(e){return e.getTime()}function Xu(e){const t=e.length,n=new Array(t);for(let r=0;r<t;r++)n[r]=pt(e[r]);return In(n)}function pt(e){var t;if(e==null)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return qe(e);case"bigint":return Ia(e);case"string":return Er(e);default:{if(Aa(e))return e.GetHashCode();if(Je(e))return Xu(e);if(e instanceof Date)return Ku(e);if(((t=Object.getPrototypeOf(e))==null?void 0:t.constructor)===Object){const n=Object.values(e).map(r=>pt(r));return In(n)}else return qe(ut.id(e))}}}function Oa(e){return Ju(e)}function yo(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 Na(e,t){return yo(e,t,Oe)}function Qu(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]||!Oe(e[n[o]],t[r[o]]))return!1;return!0}function Oe(e,t){var n;return e===t?!0:e==null?t==null:t==null?!1:Gu(e)?e.Equals(t):Je(e)?Je(t)&&Na(e,t):typeof e!="object"?!1:e instanceof Date?t instanceof Date&&Pa(e,t)===0:((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===Object&&Qu(e,t)}function Pa(e,t){let n,r;return"offset"in e&&"offset"in t?(n=e.getTime(),r=t.getTime()):(n=e.getTime()+Ji(e),r=t.getTime()+Ji(t)),n===r?0:n<r?-1:1}function xr(e,t){return e===t?0:e<t?-1:1}function ec(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 Da(e,t){return ec(e,t,Le)}function tc(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=Le(e[s],t[s]),i!==0)return i}return 0}function Le(e,t){var n;return e===t?0:e==null?t==null?0:-1:t==null?1:Bu(e)?e.CompareTo(t):Je(e)?Je(t)?Da(e,t):-1:typeof e!="object"?e<t?-1:1:e instanceof Date?t instanceof Date?Pa(e,t):-1:((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===Object?tc(e,t):-1}function B(e){const t={};for(const n of e)t[n[0]]=n[1];return t}function nc(e,t=0){const n=Math.pow(10,t),r=+(t?e*n:e).toFixed(8),o=Math.floor(r),i=r-o,s=1e-8,a=i>.5-s&&i<.5+s?o%2===0?o:o+1:Math.round(r);return t?a/n:a}function rc(e){Je(e)?e.splice(0):e.clear()}const kr=new WeakMap;function Y(e){if(e==null)return null;const t=(n,r)=>e(n)(r);return kr.set(t,e),t}function At(e){return kr.get(e)??(t=>n=>e(t,n))}function bo(e){if(e==null)return null;const t=(n,r,o)=>e(n)(r)(o);return kr.set(t,e),t}function qr(e){return kr.get(e)??(t=>n=>r=>e(t,n,r))}function oc(e){let t=0,n="[";for(const r of e){if(t===0)n+=Xe(r);else if(t===100){n+="; ...";break}else n+="; "+Xe(r);t++}return n+"]"}function Xe(e,t=0){var n;if(e!=null&&typeof e=="object"){if(typeof e.toString=="function")return e.toString();if(Symbol.iterator in e)return oc(e);{const r=(n=Object.getPrototypeOf(e))==null?void 0:n.constructor;return r===Object&&t<10?"{ "+Object.entries(e).map(([o,i])=>o+" = "+Xe(i,t+1)).join(`
2
- `)+" }":(r==null?void 0:r.name)??""}}return String(e)}function ic(e,t){if(t.length===0)return e;{let n,r=!0;return t.length===1?(n=Xe(t[0]),r=n.indexOf(" ")>=0):n=t.map(o=>Xe(o)).join(", "),e+(r?" (":" ")+n+(r?")":"")}}class z{get name(){return this.cases()[this.tag]}toJSON(){return this.fields.length===0?this.name:[this.name].concat(this.fields)}toString(){return ic(this.name,this.fields)}GetHashCode(){const t=this.fields.map(n=>pt(n));return t.splice(0,0,qe(this.tag)),In(t)}Equals(t){return this===t?!0:ar(this,t)&&this.tag===t.tag?Na(this.fields,t.fields):!1}CompareTo(t){return this===t?0:ar(this,t)?this.tag===t.tag?Da(this.fields,t.fields):this.tag<t.tag?-1:1:-1}}function sc(e){const t={},n=Object.keys(e);for(let r=0;r<n.length;r++)t[n[r]]=e[n[r]];return t}function ac(e){return"{ "+Object.entries(e).map(([t,n])=>t+" = "+Xe(n)).join(`
3
- `)+" }"}function lc(e){const t=Object.values(e).map(n=>pt(n));return In(t)}function uc(e,t){if(e===t)return!0;if(ar(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++)if(!Oe(e[n[r]],t[n[r]]))return!1;return!0}else return!1}function cc(e,t){if(e===t)return 0;if(ar(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++){const o=Le(e[n[r]],t[n[r]]);if(o!==0)return o}return 0}else return-1}class He{toJSON(){return sc(this)}toString(){return ac(this)}GetHashCode(){return lc(this)}Equals(t){return uc(this,t)}CompareTo(t){return cc(this,t)}}class Ue{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 fc{constructor(t){this.message=t}}function dc(e){return e instanceof fc||e instanceof Error}function hc(e){return e instanceof Promise}function lr(e){return dc(e)||hc(e)?e:new Error(String(e))}const an=Symbol("numeric");function Fa(e){return typeof e=="number"||typeof e=="bigint"||(e==null?void 0:e[an])}function pc(e,t){return typeof e=="number"||typeof e=="bigint"?e<t?-1:e>t?1:0:e.CompareTo(t)}function vo(e,t){return typeof e=="number"?e*t:typeof e=="bigint"?e*BigInt(t):e[an]().multiply(t)}function tr(e,t){return typeof e=="number"?e.toFixed(t):typeof e=="bigint"?e:e[an]().toFixed(t)}function ur(e,t){return typeof e=="number"?e.toPrecision(t):typeof e=="bigint"?e:e[an]().toPrecision(t)}function cr(e,t){return typeof e=="number"?e.toExponential(t):typeof e=="bigint"?e:e[an]().toExponential(t)}function fr(e){return typeof e=="number"?(Number(e)>>>0).toString(16):typeof e=="bigint"?BigInt.asUintN(64,e).toString(16):e[an]().toHex()}class mc{constructor(t,n,r,o){this.declaringType=t,this.tag=n,this.name=r,this.fields=o}}class Ve{constructor(t,n,r,o,i,s,a){this.fullname=t,this.generics=n,this.construct=r,this.parent=o,this.fields=i,this.cases=s,this.enumCases=a}toString(){return j(this)}GetHashCode(){return Ra(this)}Equals(t){return So(this,t)}}function Me(e){return e.generics!=null?e.generics:[]}function Ra(e){const t=Er(e.fullname),n=Me(e).map(Ra);return In([t,...n])}function So(e,t){return e.fullname===""?t.fullname===""&&yo(xn(e),xn(t),([n,r],[o,i])=>n===o&&So(r,i)):e.fullname===t.fullname&&yo(Me(e),Me(t),So)}function La(e,t,n,r){return new Ve(e,t,n,void 0,r)}function Ha(...e){return new Ve("",void 0,void 0,void 0,()=>e)}function gc(e,t,n,r){const o=new Ve(e,t,n,void 0,void 0,()=>{const i=n.prototype.cases();return r().map((s,a)=>new mc(o,a,i[a],s))});return o}function wc(e){return new Ve("[]",[e])}const _c=new Ve("System.Object"),Co=new Ve("System.String"),Ua=new Ve("System.Boolean"),Va=new Ve("System.Int32");function Yt(e){if(Array.isArray(e))return e[0];if(e instanceof Ve){const t=On(e);if(t!=null)return Yt(t)+"[]";{const n=e.fullname.lastIndexOf(".");return n===-1?e.fullname:e.fullname.substr(n+1)}}else return e.name}function j(e){const t=On(e);return t!=null?j(t)+"[]":e.generics==null||e.generics.length===0?e.fullname:e.fullname+"["+e.generics.map(n=>j(n)).join(",")+"]"}function ja(e){return On(e)!=null}function On(e){var t;return e.fullname==="[]"&&((t=e.generics)==null?void 0:t.length)===1?e.generics[0]:void 0}function Ba(e){return e.generics!=null&&e.generics.length>0}function ti(e){return e.enumCases!=null&&e.enumCases.length>0}function Ga(e){return e.generics==null?e:new Ve(e.fullname,e.generics.map(()=>_c))}function za(e){var t;return(t=e.generics)==null?void 0:t[0]}function jt(e){if(ti(e)&&e.enumCases!=null)return e.enumCases.map(t=>t[1]);throw new Error(`${e.fullname} is not an enum type`)}function yc(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 Bt(e,t){const n=parseInt(t,10);return yc(e,isNaN(n)?t:n)[1]}function Wa(e){if(e.cases!=null)return e.cases();throw new Error(`${e.fullname} is not an F# union type`)}function xn(e){if(e.fields!=null)return e.fields();throw new Error(`${e.fullname} is not an F# record type`)}function qa(e){if(ni(e)&&e.generics!=null)return e.generics;throw new Error(`${e.fullname} is not a tuple type`)}function Ya(e){return e instanceof Ve?e.cases!=null:e instanceof z}function Za(e){return e instanceof Ve?e.fields!=null:e instanceof He}function ni(e){return e.fullname.startsWith("System.Tuple")}function bc(e,t){const r=Wa(t)[e.tag];if(r==null)throw new Error(`Cannot find case ${e.name} in union type`);return[r,e.fields]}function Ja(e){return e.fields==null?[]:e.fields}function vc(e,t){return e[t[0]]}function Sc(e,t){const n=(e.fields||[]).length;if(t.length!==n)throw new Error(`Expected an array of length ${n} but got ${t.length}`);const r=e.declaringType.construct;return r==null?{}:(e.declaringType.cases?e.declaringType.cases().length==1:!1)?new r(...t):new r(e.tag,t)}function Cc(e,t){const n=xn(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 Ec(e,t){return e}var xc=Object.defineProperty,kc=(e,t,n)=>t in e?xc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Yr=(e,t,n)=>(kc(e,typeof t!="symbol"?t+"":t,n),n);let $c=class{constructor(){Yr(this,"current",this.detect()),Yr(this,"handoffState","pending"),Yr(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},ft=new $c,ye=(e,t)=>{ft.isServer?H(e,t):Ht(e,t)};function dt(e){let t=A(e);return ye(()=>{t.current=e},[e]),t}function $r(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function Ut(){let e=[],t={addEventListener(n,r,o,i){return n.addEventListener(r,o,i),t.add(()=>n.removeEventListener(r,o,i))},requestAnimationFrame(...n){let r=requestAnimationFrame(...n);return t.add(()=>cancelAnimationFrame(r))},nextFrame(...n){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...n))},setTimeout(...n){let r=setTimeout(...n);return t.add(()=>clearTimeout(r))},microTask(...n){let r={current:!0};return $r(()=>{r.current&&n[0]()}),t.add(()=>{r.current=!1})},style(n,r,o){let i=n.style.getPropertyValue(r);return Object.assign(n.style,{[r]:o}),this.add(()=>{Object.assign(n.style,{[r]:i})})},group(n){let r=Ut();return n(r),this.add(()=>r.dispose())},add(n){return e.push(n),()=>{let r=e.indexOf(n);if(r>=0)for(let o of e.splice(r,1))o()}},dispose(){for(let n of e.splice(0))n()}};return t}function Tr(){let[e]=re(Ut);return H(()=>()=>e.dispose(),[e]),e}let N=function(e){let t=dt(e);return x.useCallback((...n)=>t.current(...n),[t])};function Tc(){let e=typeof document>"u";return"useSyncExternalStore"in tn?(t=>t.useSyncExternalStore)(tn)(()=>()=>{},()=>!1,()=>!e):!1}function ln(){let e=Tc(),[t,n]=re(ft.isHandoffComplete);return t&&ft.isHandoffComplete===!1&&n(!1),H(()=>{t!==!0&&n(!0)},[t]),H(()=>ft.handoff(),[]),e?!1:t}var Ki;let Et=(Ki=x.useId)!=null?Ki:function(){let e=ln(),[t,n]=x.useState(e?()=>ft.nextId():null);return ye(()=>{t===null&&n(ft.nextId())},[t]),t!=null?""+t:void 0};function he(e,t,...n){if(e in t){let o=t[e];return typeof o=="function"?o(...n):o}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(o=>`"${o}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,he),r}function Ka(e){return ft.isServer?null:e instanceof Node?e.ownerDocument:e!=null&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}let Eo=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var It=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(It||{}),Xa=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(Xa||{}),Mc=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(Mc||{});function Ac(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(Eo)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}var Qa=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(Qa||{});function Ic(e,t=0){var n;return e===((n=Ka(e))==null?void 0:n.body)?!1:he(t,{0(){return e.matches(Eo)},1(){let r=e;for(;r!==null;){if(r.matches(Eo))return!0;r=r.parentElement}return!1}})}var Oc=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(Oc||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function Ft(e){e==null||e.focus({preventScroll:!0})}let Nc=["textarea","input"].join(",");function Pc(e){var t,n;return(n=(t=e==null?void 0:e.matches)==null?void 0:t.call(e,Nc))!=null?n:!1}function Dc(e,t=n=>n){return e.slice().sort((n,r)=>{let o=t(n),i=t(r);if(o===null||i===null)return 0;let s=o.compareDocumentPosition(i);return s&Node.DOCUMENT_POSITION_FOLLOWING?-1:s&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function nr(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:o=[]}={}){let i=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,s=Array.isArray(e)?n?Dc(e):e:Ac(e);o.length>0&&s.length>1&&(s=s.filter(d=>!o.includes(d))),r=r??i.activeElement;let a=(()=>{if(t&5)return 1;if(t&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),l=(()=>{if(t&1)return 0;if(t&2)return Math.max(0,s.indexOf(r))-1;if(t&4)return Math.max(0,s.indexOf(r))+1;if(t&8)return s.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),u=t&32?{preventScroll:!0}:{},f=0,c=s.length,h;do{if(f>=c||f+c<=0)return 0;let d=l+f;if(t&16)d=(d+c)%c;else{if(d<0)return 3;if(d>=c)return 1}h=s[d],h==null||h.focus(u),f+=a}while(h!==i.activeElement);return t&6&&Pc(h)&&h.select(),2}function zn(e,t,n){let r=dt(t);H(()=>{function o(i){r.current(i)}return document.addEventListener(e,o,n),()=>document.removeEventListener(e,o,n)},[e,n])}function el(e,t,n){let r=dt(t);H(()=>{function o(i){r.current(i)}return window.addEventListener(e,o,n),()=>window.removeEventListener(e,o,n)},[e,n])}function Fc(e,t,n=!0){let r=A(!1);H(()=>{requestAnimationFrame(()=>{r.current=n})},[n]);function o(s,a){if(!r.current||s.defaultPrevented)return;let l=a(s);if(l===null||!l.getRootNode().contains(l)||!l.isConnected)return;let u=function f(c){return typeof c=="function"?f(c()):Array.isArray(c)||c instanceof Set?c:[c]}(e);for(let f of u){if(f===null)continue;let c=f instanceof HTMLElement?f:f.current;if(c!=null&&c.contains(l)||s.composed&&s.composedPath().includes(c))return}return!Ic(l,Qa.Loose)&&l.tabIndex!==-1&&s.preventDefault(),t(s,l)}let i=A(null);zn("pointerdown",s=>{var a,l;r.current&&(i.current=((l=(a=s.composedPath)==null?void 0:a.call(s))==null?void 0:l[0])||s.target)},!0),zn("mousedown",s=>{var a,l;r.current&&(i.current=((l=(a=s.composedPath)==null?void 0:a.call(s))==null?void 0:l[0])||s.target)},!0),zn("click",s=>{i.current&&(o(s,()=>i.current),i.current=null)},!0),zn("touchend",s=>o(s,()=>s.target instanceof HTMLElement?s.target:null),!0),el("blur",s=>o(s,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function Xi(e){var t;if(e.type)return e.type;let n=(t=e.as)!=null?t:"button";if(typeof n=="string"&&n.toLowerCase()==="button")return"button"}function Rc(e,t){let[n,r]=re(()=>Xi(e));return ye(()=>{r(Xi(e))},[e.type,e.as]),ye(()=>{n||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&r("button")},[n,t]),n}let tl=Symbol();function Lc(e,t=!0){return Object.assign(e,{[tl]:t})}function Pe(...e){let t=A(e);H(()=>{t.current=e},[e]);let n=N(r=>{for(let o of t.current)o!=null&&(typeof o=="function"?o(r):o.current=r)});return e.every(r=>r==null||(r==null?void 0:r[tl]))?void 0:n}function dr(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}var hr=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(hr||{}),yt=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(yt||{});function ve({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:i=!0,name:s}){let a=nl(t,e);if(i)return Wn(a,n,r,s);let l=o??0;if(l&2){let{static:u=!1,...f}=a;if(u)return Wn(f,n,r,s)}if(l&1){let{unmount:u=!0,...f}=a;return he(u?0:1,{0(){return null},1(){return Wn({...f,hidden:!0,style:{display:"none"}},n,r,s)}})}return Wn(a,n,r,s)}function Wn(e,t={},n,r){let{as:o=n,children:i,refName:s="ref",...a}=Zr(e,["unmount","static"]),l=e.ref!==void 0?{[s]:e.ref}:{},u=typeof i=="function"?i(t):i;"className"in a&&a.className&&typeof a.className=="function"&&(a.className=a.className(t));let f={};if(t){let c=!1,h=[];for(let[d,p]of Object.entries(t))typeof p=="boolean"&&(c=!0),p===!0&&h.push(d);c&&(f["data-headlessui-state"]=h.join(" "))}if(o===se&&Object.keys(xo(a)).length>0){if(!sn(u)||Array.isArray(u)&&u.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(a).map(p=>` - ${p}`).join(`
1
+ (function(){"use strict";var pn,T,Ai,kt,Ii,Oi,Vr,Ni,jr,Br,Gr,Pi,mn={},Di=[],gu=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Vn=Array.isArray;function rt(e,t){for(var n in t)e[n]=t[n];return e}function zr(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function v(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?pn.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 gn(e,s,r,o,null)}function gn(e,t,n,r,o){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:o??++Ai,__i:-1,__u:0};return o==null&&T.vnode!=null&&T.vnode(i),i}function Wr(){return{current:null}}function ie(e){return e.children}function je(e,t){this.props=e,this.context=t}function Vt(e,t){if(t==null)return e.__?Vt(e.__,e.__i+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"?Vt(e):null}function Fi(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 Fi(e)}}function qr(e){(!e.__d&&(e.__d=!0)&&kt.push(e)&&!jn.__r++||Ii!==T.debounceRendering)&&((Ii=T.debounceRendering)||Oi)(jn)}function jn(){var e,t,n,r,o,i,s,a;for(kt.sort(Vr);e=kt.shift();)e.__d&&(t=kt.length,r=void 0,i=(o=(n=e).__v).__e,s=[],a=[],n.__P&&((r=rt({},o)).__v=o.__v+1,T.vnode&&T.vnode(r),Yr(n.__P,r,o,n.__n,n.__P.namespaceURI,32&o.__u?[i]:null,s,i??Vt(o),!!(32&o.__u),a),r.__v=o.__v,r.__.__k[r.__i]=r,Vi(s,r,a),r.__e!=i&&Fi(r)),kt.length>t&&kt.sort(Vr));jn.__r=0}function Ri(e,t,n,r,o,i,s,a,l,u,f){var c,h,d,p,g,m,_=r&&r.__k||Di,b=t.length;for(l=wu(n,t,_,l,b),c=0;c<b;c++)(d=n.__k[c])!=null&&(h=d.__i===-1?mn:_[d.__i]||mn,d.__i=c,m=Yr(e,d,h,o,i,s,a,l,u,f),p=d.__e,d.ref&&h.ref!=d.ref&&(h.ref&&Zr(h.ref,null,d),f.push(d.ref,d.__c||p,d)),g==null&&p!=null&&(g=p),4&d.__u||h.__k===d.__k?l=Li(d,l,e):typeof d.type=="function"&&m!==void 0?l=m:p&&(l=p.nextSibling),d.__u&=-7);return n.__e=g,l}function wu(e,t,n,r,o){var i,s,a,l,u,f=n.length,c=f,h=0;for(e.__k=new Array(o),i=0;i<o;i++)(s=t[i])!=null&&typeof s!="boolean"&&typeof s!="function"?(l=i+h,(s=e.__k[i]=typeof s=="string"||typeof s=="number"||typeof s=="bigint"||s.constructor==String?gn(null,s,null,null,null):Vn(s)?gn(ie,{children:s},null,null,null):s.constructor===void 0&&s.__b>0?gn(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):s).__=e,s.__b=e.__b+1,a=null,(u=s.__i=_u(s,n,l,c))!==-1&&(c--,(a=n[u])&&(a.__u|=2)),a==null||a.__v===null?(u==-1&&h--,typeof s.type!="function"&&(s.__u|=4)):u!=l&&(u==l-1?h--:u==l+1?h++:(u>l?h--:h++,s.__u|=4))):e.__k[i]=null;if(c)for(i=0;i<f;i++)(a=n[i])!=null&&!(2&a.__u)&&(a.__e==r&&(r=Vt(a)),ji(a,a));return r}function Li(e,t,n){var r,o;if(typeof e.type=="function"){for(r=e.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=e,t=Li(r[o],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=Vt(e)),n.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function ot(e,t){return t=t||[],e==null||typeof e=="boolean"||(Vn(e)?e.some(function(n){ot(n,t)}):t.push(e)),t}function _u(e,t,n,r){var o,i,s=e.key,a=e.type,l=t[n];if(l===null||l&&s==l.key&&a===l.type&&!(2&l.__u))return n;if(r>(l!=null&&!(2&l.__u)?1:0))for(o=n-1,i=n+1;o>=0||i<t.length;){if(o>=0){if((l=t[o])&&!(2&l.__u)&&s==l.key&&a===l.type)return o;o--}if(i<t.length){if((l=t[i])&&!(2&l.__u)&&s==l.key&&a===l.type)return i;i++}}return-1}function Hi(e,t,n){t[0]=="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||gu.test(t)?n:n+"px"}function Bn(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||Hi(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||Hi(e.style,t,n[t])}else if(t[0]=="o"&&t[1]=="n")i=t!=(t=t.replace(Ni,"$1")),t=t.toLowerCase()in e||t=="onFocusOut"||t=="onFocusIn"?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r?n.u=r.u:(n.u=jr,e.addEventListener(t,i?Gr:Br,i)):e.removeEventListener(t,i?Gr:Br,i);else{if(o=="http://www.w3.org/2000/svg")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!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&n==1?"":n))}}function Ui(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=jr++;else if(t.t<n.u)return;return n(T.event?T.event(t):t)}}}function Yr(e,t,n,r,o,i,s,a,l,u){var f,c,h,d,p,g,m,_,b,C,H,K,re,z,Se,Qe,nt,pe=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(l=!!(32&n.__u),i=[a=t.__e=n.__e]),(f=T.__b)&&f(t);e:if(typeof pe=="function")try{if(_=t.props,b="prototype"in pe&&pe.prototype.render,C=(f=pe.contextType)&&r[f.__c],H=f?C?C.props.value:f.__:r,n.__c?m=(c=t.__c=n.__c).__=c.__E:(b?t.__c=c=new pe(_,H):(t.__c=c=new je(_,H),c.constructor=pe,c.render=bu),C&&C.sub(c),c.props=_,c.state||(c.state={}),c.context=H,c.__n=r,h=c.__d=!0,c.__h=[],c._sb=[]),b&&c.__s==null&&(c.__s=c.state),b&&pe.getDerivedStateFromProps!=null&&(c.__s==c.state&&(c.__s=rt({},c.__s)),rt(c.__s,pe.getDerivedStateFromProps(_,c.__s))),d=c.props,p=c.state,c.__v=t,h)b&&pe.getDerivedStateFromProps==null&&c.componentWillMount!=null&&c.componentWillMount(),b&&c.componentDidMount!=null&&c.__h.push(c.componentDidMount);else{if(b&&pe.getDerivedStateFromProps==null&&_!==d&&c.componentWillReceiveProps!=null&&c.componentWillReceiveProps(_,H),!c.__e&&(c.shouldComponentUpdate!=null&&c.shouldComponentUpdate(_,c.__s,H)===!1||t.__v==n.__v)){for(t.__v!=n.__v&&(c.props=_,c.state=c.__s,c.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(Ee){Ee&&(Ee.__=t)}),K=0;K<c._sb.length;K++)c.__h.push(c._sb[K]);c._sb=[],c.__h.length&&s.push(c);break e}c.componentWillUpdate!=null&&c.componentWillUpdate(_,c.__s,H),b&&c.componentDidUpdate!=null&&c.__h.push(function(){c.componentDidUpdate(d,p,g)})}if(c.context=H,c.props=_,c.__P=e,c.__e=!1,re=T.__r,z=0,b){for(c.state=c.__s,c.__d=!1,re&&re(t),f=c.render(c.props,c.state,c.context),Se=0;Se<c._sb.length;Se++)c.__h.push(c._sb[Se]);c._sb=[]}else do c.__d=!1,re&&re(t),f=c.render(c.props,c.state,c.context),c.state=c.__s;while(c.__d&&++z<25);c.state=c.__s,c.getChildContext!=null&&(r=rt(rt({},r),c.getChildContext())),b&&!h&&c.getSnapshotBeforeUpdate!=null&&(g=c.getSnapshotBeforeUpdate(d,p)),a=Ri(e,Vn(Qe=f!=null&&f.type===ie&&f.key==null?f.props.children:f)?Qe:[Qe],t,n,r,o,i,s,a,l,u),c.base=t.__e,t.__u&=-161,c.__h.length&&s.push(c),m&&(c.__E=c.__=null)}catch(Ee){if(t.__v=null,l||i!=null)if(Ee.then){for(t.__u|=l?160:128;a&&a.nodeType==8&&a.nextSibling;)a=a.nextSibling;i[i.indexOf(a)]=null,t.__e=a}else for(nt=i.length;nt--;)zr(i[nt]);else t.__e=n.__e,t.__k=n.__k;T.__e(Ee,t,n)}else i==null&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):a=t.__e=yu(n.__e,t,n,r,o,i,s,l,u);return(f=T.diffed)&&f(t),128&t.__u?void 0:a}function Vi(e,t,n){for(var r=0;r<n.length;r++)Zr(n[r],n[++r],n[++r]);T.__c&&T.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(i){i.call(o)})}catch(i){T.__e(i,o.__v)}})}function yu(e,t,n,r,o,i,s,a,l){var u,f,c,h,d,p,g,m=n.props,_=t.props,b=t.type;if(b=="svg"?o="http://www.w3.org/2000/svg":b=="math"?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),i!=null){for(u=0;u<i.length;u++)if((d=i[u])&&"setAttribute"in d==!!b&&(b?d.localName==b:d.nodeType==3)){e=d,i[u]=null;break}}if(e==null){if(b==null)return document.createTextNode(_);e=document.createElementNS(o,b,_.is&&_),a&&(T.__m&&T.__m(t,i),a=!1),i=null}if(b===null)m===_||a&&e.data===_||(e.data=_);else{if(i=i&&pn.call(e.childNodes),m=n.props||mn,!a&&i!=null)for(m={},u=0;u<e.attributes.length;u++)m[(d=e.attributes[u]).name]=d.value;for(u in m)if(d=m[u],u!="children"){if(u=="dangerouslySetInnerHTML")c=d;else if(!(u in _)){if(u=="value"&&"defaultValue"in _||u=="checked"&&"defaultChecked"in _)continue;Bn(e,u,null,d,o)}}for(u in _)d=_[u],u=="children"?h=d:u=="dangerouslySetInnerHTML"?f=d:u=="value"?p=d:u=="checked"?g=d:a&&typeof d!="function"||m[u]===d||Bn(e,u,d,m[u],o);if(f)a||c&&(f.__html===c.__html||f.__html===e.innerHTML)||(e.innerHTML=f.__html),t.__k=[];else if(c&&(e.innerHTML=""),Ri(e,Vn(h)?h:[h],t,n,r,b=="foreignObject"?"http://www.w3.org/1999/xhtml":o,i,s,i?i[0]:n.__k&&Vt(n,0),a,l),i!=null)for(u=i.length;u--;)zr(i[u]);a||(u="value",b=="progress"&&p==null?e.removeAttribute("value"):p!==void 0&&(p!==e[u]||b=="progress"&&!p||b=="option"&&p!==m[u])&&Bn(e,u,p,m[u],o),u="checked",g!==void 0&&g!==e[u]&&Bn(e,u,g,m[u],o))}return e}function Zr(e,t,n){try{if(typeof e=="function"){var r=typeof e.__u=="function";r&&e.__u(),r&&t==null||(e.__u=e(t))}else e.current=t}catch(o){T.__e(o,n)}}function ji(e,t,n){var r,o;if(T.unmount&&T.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||Zr(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(i){T.__e(i,t)}r.base=r.__P=null}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&ji(r[o],t,n||typeof e.type!="function");n||zr(e.__e),e.__c=e.__=e.__e=void 0}function bu(e,t,n){return this.constructor(e,n)}function gt(e,t,n){var r,o,i,s;t==document&&(t=document.documentElement),T.__&&T.__(e,t),o=(r=typeof n=="function")?null:n&&n.__k||t.__k,i=[],s=[],Yr(t,e=(!r&&n||t).__k=v(ie,null,[e]),o||mn,mn,t.namespaceURI,!r&&n?[n]:o?null:t.firstChild?pn.call(t.childNodes):null,i,!r&&n?n:o?o.__e:t.firstChild,r,s),Vi(i,e,s)}function Jr(e,t){gt(e,t,Jr)}function Kr(e,t,n){var r,o,i,s,a=rt({},e.props);for(i in e.type&&e.type.defaultProps&&(s=e.type.defaultProps),t)i=="key"?r=t[i]:i=="ref"?o=t[i]:a[i]=t[i]===void 0&&s!==void 0?s[i]:t[i];return arguments.length>2&&(a.children=arguments.length>3?pn.call(arguments,2):n),gn(e.type,a,r||e.key,o||e.ref,null)}function xe(e,t){var n={__c:t="__cC"+Pi++,__:e,Consumer:function(r,o){return r.children(o)},Provider:function(r){var o,i;return this.getChildContext||(o=new Set,(i={})[t]=this,this.getChildContext=function(){return i},this.componentWillUnmount=function(){o=null},this.shouldComponentUpdate=function(s){this.props.value!==s.value&&o.forEach(function(a){a.__e=!0,qr(a)})},this.sub=function(s){o.add(s);var a=s.componentWillUnmount;s.componentWillUnmount=function(){o&&o.delete(s),a&&a.call(s)}}),r.children}};return n.Provider.__=n.Consumer.contextType=n}pn=Di.slice,T={__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(a){e=a}throw e}},Ai=0,je.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=rt({},this.state),typeof e=="function"&&(e=e(rt({},n),this.props)),e&&rt(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),qr(this))},je.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),qr(this))},je.prototype.render=ie,kt=[],Oi=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Vr=function(e,t){return e.__v.__b-t.__v.__b},jn.__r=0,Ni=/(PointerCapture)$|Capture$/i,jr=0,Br=Ui(!1),Gr=Ui(!0),Pi=0;var it,D,Xr,Bi,jt=0,Gi=[],W=T,zi=W.__b,Wi=W.__r,qi=W.diffed,Yi=W.__c,Zi=W.unmount,Ji=W.__;function $t(e,t){W.__h&&W.__h(D,e,jt||t),jt=0;var n=D.__H||(D.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function Q(e){return jt=1,wn(Xi,e)}function wn(e,t,n){var r=$t(it++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Xi(void 0,t),function(a){var l=r.__N?r.__N[0]:r.__[0],u=r.t(l,a);l!==u&&(r.__N=[u,r.__[1]],r.__c.setState({}))}],r.__c=D,!D.u)){var o=function(a,l,u){if(!r.__c.__H)return!0;var f=r.__c.__H.__.filter(function(h){return!!h.__c});if(f.every(function(h){return!h.__N}))return!i||i.call(this,a,l,u);var c=r.__c.props!==a;return f.forEach(function(h){if(h.__N){var d=h.__[0];h.__=h.__N,h.__N=void 0,d!==h.__[0]&&(c=!0)}}),i&&i.call(this,a,l,u)||c};D.u=!0;var i=D.shouldComponentUpdate,s=D.componentWillUpdate;D.componentWillUpdate=function(a,l,u){if(this.__e){var f=i;i=void 0,o(a,l,u),i=f}s&&s.call(this,a,l,u)},D.shouldComponentUpdate=o}return r.__N||r.__}function F(e,t){var n=$t(it++,3);!W.__s&&ro(n.__H,t)&&(n.__=e,n.i=t,D.__H.__h.push(n))}function Tt(e,t){var n=$t(it++,4);!W.__s&&ro(n.__H,t)&&(n.__=e,n.i=t,D.__h.push(n))}function M(e){return jt=5,q(function(){return{current:e}},[])}function Qr(e,t,n){jt=6,Tt(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 q(e,t){var n=$t(it++,7);return ro(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function st(e,t){return jt=8,q(function(){return e},t)}function ae(e){var t=D.context[e.__c],n=$t(it++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(D)),t.props.value):e.__}function eo(e,t){W.useDebugValue&&W.useDebugValue(t?t(e):e)}function vu(e){var t=$t(it++,10),n=Q();return t.__=e,D.componentDidCatch||(D.componentDidCatch=function(r,o){t.__&&t.__(r,o),n[1](r)}),[n[0],function(){n[1](void 0)}]}function to(){var e=$t(it++,11);if(!e.__){for(var t=D.__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 Su(){for(var e;e=Gi.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Gn),e.__H.__h.forEach(no),e.__H.__h=[]}catch(t){e.__H.__h=[],W.__e(t,e.__v)}}W.__b=function(e){D=null,zi&&zi(e)},W.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Ji&&Ji(e,t)},W.__r=function(e){Wi&&Wi(e),it=0;var t=(D=e.__c).__H;t&&(Xr===D?(t.__h=[],D.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.i=n.__N=void 0})):(t.__h.forEach(Gn),t.__h.forEach(no),t.__h=[],it=0)),Xr=D},W.diffed=function(e){qi&&qi(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Gi.push(t)!==1&&Bi===W.requestAnimationFrame||((Bi=W.requestAnimationFrame)||Cu)(Su)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.i=void 0})),Xr=D=null},W.__c=function(e,t){t.some(function(n){try{n.__h.forEach(Gn),n.__h=n.__h.filter(function(r){return!r.__||no(r)})}catch(r){t.some(function(o){o.__h&&(o.__h=[])}),t=[],W.__e(r,n.__v)}}),Yi&&Yi(e,t)},W.unmount=function(e){Zi&&Zi(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{Gn(r)}catch(o){t=o}}),n.__H=void 0,t&&W.__e(t,n.__v))};var Ki=typeof requestAnimationFrame=="function";function Cu(e){var t,n=function(){clearTimeout(r),Ki&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Ki&&(t=requestAnimationFrame(n))}function Gn(e){var t=D,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),D=t}function no(e){var t=D;e.__c=e.__(),D=t}function ro(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function Xi(e,t){return typeof t=="function"?t(e):t}function Qi(e,t){for(var n in t)e[n]=t[n];return e}function oo(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 io(e,t){var n=t(),r=Q({t:{__:n,u:t}}),o=r[0].t,i=r[1];return Tt(function(){o.__=n,o.u=t,so(o)&&i({t:o})},[e,n,t]),F(function(){return so(o)&&i({t:o}),e(function(){so(o)&&i({t:o})})},[e]),n}function so(e){var t,n,r=e.u,o=e.__;try{var i=r();return!((t=o)===(n=i)&&(t!==0||1/t==1/n)||t!=t&&n!=n)}catch{return!0}}function ao(e){e()}function lo(e){return e}function uo(){return[!1,ao]}var co=Tt;function zn(e,t){this.props=e,this.context=t}function es(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:oo(this.props,o)}function r(o){return this.shouldComponentUpdate=n,v(e,o)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(zn.prototype=new je).isPureReactComponent=!0,zn.prototype.shouldComponentUpdate=function(e,t){return oo(this.props,e)||oo(this.state,t)};var ts=T.__b;T.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),ts&&ts(e)};var Eu=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function fo(e){function t(n){var r=Qi({},n);return delete r.ref,e(r,n.ref||null)}return t.$$typeof=Eu,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var ns=function(e,t){return e==null?null:ot(ot(e).map(t))},rs={map:ns,forEach:ns,count:function(e){return e?ot(e).length:0},only:function(e){var t=ot(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:ot},xu=T.__e;T.__e=function(e,t,n,r){if(e.then){for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t)}xu(e,t,n,r)};var os=T.unmount;function is(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=Qi({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return is(r,t,n)})),e}function ss(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return ss(r,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function _n(){this.__u=0,this.o=null,this.__b=null}function as(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function ls(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 v(n,i)}return o.displayName="Lazy",o.__f=!0,o}function Bt(){this.i=null,this.l=null}T.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),os&&os(e)},(_n.prototype=new je).__c=function(e,t){var n=t.__c,r=this;r.o==null&&(r.o=[]),r.o.push(n);var o=as(r.__v),i=!1,s=function(){i||(i=!0,n.__R=null,o?o(a):a())};n.__R=s;var a=function(){if(!--r.__u){if(r.state.__a){var l=r.state.__a;r.__v.__k[0]=ss(l,l.__c.__P,l.__c.__O)}var u;for(r.setState({__a:r.__b=null});u=r.o.pop();)u.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(s,s)},_n.prototype.componentWillUnmount=function(){this.o=[]},_n.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]=is(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&v(ie,null,e.fallback);return o&&(o.__u&=-33),[v(ie,null,t.__a?null:e.children),o]};var us=function(e,t,n){if(++n[1]===n[0]&&e.l.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.l.size))for(n=e.i;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.i=n=n[2]}};function ku(e){return this.getChildContext=function(){return e.context},e.children}function $u(e){var t=this,n=e.h;t.componentWillUnmount=function(){gt(null,t.v),t.v=null,t.h=null},t.h&&t.h!==n&&t.componentWillUnmount(),t.v||(t.h=n,t.v={nodeType:1,parentNode:n,childNodes:[],contains:function(){return!0},appendChild:function(r){this.childNodes.push(r),t.h.appendChild(r)},insertBefore:function(r,o){this.childNodes.push(r),t.h.insertBefore(r,o)},removeChild:function(r){this.childNodes.splice(this.childNodes.indexOf(r)>>>1,1),t.h.removeChild(r)}}),gt(v(ku,{context:t.context},e.__v),t.v)}function ho(e,t){var n=v($u,{__v:e,h:t});return n.containerInfo=t,n}(Bt.prototype=new je).__a=function(e){var t=this,n=as(t.__v),r=t.l.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),us(t,e,r)):o()};n?n(i):i()}},Bt.prototype.render=function(e){this.i=null,this.l=new Map;var t=ot(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.l.set(t[n],this.i=[1,0,this.i]);return e.children},Bt.prototype.componentDidUpdate=Bt.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,n){us(e,n,t)})};var cs=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Tu=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Mu=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Au=/[A-Z0-9]/g,Iu=typeof document<"u",Ou=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function fs(e,t,n){return t.__k==null&&(t.textContent=""),gt(e,t),typeof n=="function"&&n(),e?e.__c:null}function ds(e,t,n){return Jr(e,t),typeof n=="function"&&n(),e?e.__c:null}je.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(je.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var hs=T.event;function Nu(){}function Pu(){return this.cancelBubble}function Du(){return this.defaultPrevented}T.event=function(e){return hs&&(e=hs(e)),e.persist=Nu,e.isPropagationStopped=Pu,e.isDefaultPrevented=Du,e.nativeEvent=e};var po,Fu={enumerable:!1,configurable:!0,get:function(){return this.class}},ps=T.vnode;T.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,r=t.type,o={},i=r.indexOf("-")===-1;for(var s in n){var a=n[s];if(!(s==="value"&&"defaultValue"in n&&a==null||Iu&&s==="children"&&r==="noscript"||s==="class"||s==="className")){var l=s.toLowerCase();s==="defaultValue"&&"value"in n&&n.value==null?s="value":s==="download"&&a===!0?a="":l==="translate"&&a==="no"?a=!1:l[0]==="o"&&l[1]==="n"?l==="ondoubleclick"?s="ondblclick":l!=="onchange"||r!=="input"&&r!=="textarea"||Ou(n.type)?l==="onfocus"?s="onfocusin":l==="onblur"?s="onfocusout":Mu.test(s)&&(s=l):l=s="oninput":i&&Tu.test(s)?s=s.replace(Au,"-$&").toLowerCase():a===null&&(a=void 0),l==="oninput"&&o[s=l]&&(s="oninputCapture"),o[s]=a}}r=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=ot(n.children).forEach(function(u){u.props.selected=o.value.indexOf(u.props.value)!=-1})),r=="select"&&o.defaultValue!=null&&(o.value=ot(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",Fu)):(n.className&&!n.class||n.class&&n.className)&&(o.class=o.className=n.className),t.props=o}(e),e.$$typeof=cs,ps&&ps(e)};var ms=T.__r;T.__r=function(e){ms&&ms(e),po=e.__c};var gs=T.diffed;T.diffed=function(e){gs&&gs(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),po=null};var ws={ReactCurrentDispatcher:{current:{readContext:function(e){return po.__n[e.__c].props.value},useCallback:st,useContext:ae,useDebugValue:eo,useDeferredValue:lo,useEffect:F,useId:to,useImperativeHandle:Qr,useInsertionEffect:co,useLayoutEffect:Tt,useMemo:q,useReducer:wn,useRef:M,useState:Q,useSyncExternalStore:io,useTransition:uo}}},Ru="18.3.1";function _s(e){return v.bind(null,e)}function Gt(e){return!!e&&e.$$typeof===cs}function ys(e){return Gt(e)&&e.type===ie}function bs(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function mo(e){return Gt(e)?Kr.apply(null,arguments):e}function vs(e){return!!e.__k&&(gt(null,e),!0)}function Ss(e){return e&&(e.base||e.nodeType===1&&e)||null}var Cs=function(e,t){return e(t)},Es=function(e,t){return e(t)},xs=ie,ks=Gt,x={useState:Q,useId:to,useReducer:wn,useEffect:F,useLayoutEffect:Tt,useInsertionEffect:co,useTransition:uo,useDeferredValue:lo,useSyncExternalStore:io,startTransition:ao,useRef:M,useImperativeHandle:Qr,useMemo:q,useCallback:st,useContext:ae,useDebugValue:eo,version:"18.3.1",Children:rs,render:fs,hydrate:ds,unmountComponentAtNode:vs,createPortal:ho,createElement:v,createContext:xe,createFactory:_s,cloneElement:mo,createRef:Wr,Fragment:ie,isValidElement:Gt,isElement:ks,isFragment:ys,isMemo:bs,findDOMNode:Ss,Component:je,PureComponent:zn,memo:es,forwardRef:fo,flushSync:Es,unstable_batchedUpdates:Cs,StrictMode:xs,Suspense:_n,SuspenseList:Bt,lazy:ls,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:ws};const zt=Object.freeze(Object.defineProperty({__proto__:null,Children:rs,Component:je,Fragment:ie,PureComponent:zn,StrictMode:xs,Suspense:_n,SuspenseList:Bt,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:ws,cloneElement:mo,createContext:xe,createElement:v,createFactory:_s,createPortal:ho,createRef:Wr,default:x,findDOMNode:Ss,flushSync:Es,forwardRef:fo,hydrate:ds,isElement:ks,isFragment:ys,isMemo:bs,isValidElement:Gt,lazy:ls,memo:es,render:fs,startTransition:ao,unmountComponentAtNode:vs,unstable_batchedUpdates:Cs,useCallback:st,useContext:ae,useDebugValue:eo,useDeferredValue:lo,useEffect:F,useErrorBoundary:vu,useId:to,useImperativeHandle:Qr,useInsertionEffect:co,useLayoutEffect:Tt,useMemo:q,useReducer:wn,useRef:M,useState:Q,useSyncExternalStore:io,useTransition:uo,version:Ru},Symbol.toStringTag,{value:"Module"}));function Be(e){return Array.isArray(e)||ArrayBuffer.isView(e)}function Lu(e){return e!=null&&typeof e.GetEnumerator=="function"}function Hu(e){return e!=null&&typeof e.CompareTo=="function"}function Uu(e){return e!=null&&typeof e.Equals=="function"}function $s(e){return e!=null&&typeof e.GetHashCode=="function"}function go(e){return e!=null&&typeof e.Dispose=="function"}function V(e){go(e)&&e.Dispose()}function Ge(){return null}function Wn(e,t){var n,r;return((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===((r=Object.getPrototypeOf(t))==null?void 0:r.constructor)}class Vu{constructor(t){this.iter=t,this.current=Ge()}"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 Lu(e)?e.GetEnumerator():new Vu(e[Symbol.iterator]())}function qn(e){return{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}}}}class ju{constructor(t){this.factory=t,this.isValueCreated=!1}get Value(){return this.isValueCreated||(this.createdValue=this.factory(),this.isValueCreated=!0),this.createdValue}get IsValueCreated(){return this.isValueCreated}}function P(e,t){return e.toString(10).padStart(t,"0")}function Bu(e,t,n){return e.toString(10).padStart(t,"0").padEnd(n,"0")}function Ts(e){const t=e;return typeof t.offset=="number"?t.offset:e.kind===1?0:e.getTimezoneOffset()*-6e4}function Gu(e,t){return e=e,e.toString(t)}function Mt(e,t){return e=e,e.toString(t)}class at{static id(t){return at.idMap.has(t)||at.idMap.set(t,++at.count),at.idMap.get(t)}}at.idMap=new WeakMap,at.count=0;function Yn(e){let t=0,n=5381;const r=e.length;for(;t<r;)n=n*33^e.charCodeAt(t++);return n}function ze(e){return e*2654435761|0}function Ms(e){return Yn(e.toString(32))}function yn(e){let t=0;const n=e.length;for(let r=0;r<n;r++){const o=e[r];t=(t<<5)+t^o}return t}function zu(e){if(e==null)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return ze(e);case"bigint":return Ms(e);case"string":return Yn(e);default:return ze(at.id(e))}}function Wu(e){return $s(e)?e.GetHashCode():zu(e)}function qu(e){return e.getTime()}function Yu(e){const t=e.length,n=new Array(t);for(let r=0;r<t;r++)n[r]=lt(e[r]);return yn(n)}function lt(e){var t;if(e==null)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return ze(e);case"bigint":return Ms(e);case"string":return Yn(e);default:{if($s(e))return e.GetHashCode();if(Be(e))return Yu(e);if(e instanceof Date)return qu(e);if(((t=Object.getPrototypeOf(e))==null?void 0:t.constructor)===Object){const n=Object.values(e).map(r=>lt(r));return yn(n)}else return ze(at.id(e))}}}function As(e){return Wu(e)}function wo(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 Is(e,t){return wo(e,t,ke)}function Zu(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]||!ke(e[n[o]],t[r[o]]))return!1;return!0}function ke(e,t){var n;return e===t?!0:e==null?t==null:t==null?!1:Uu(e)?e.Equals(t):Be(e)?Be(t)&&Is(e,t):typeof e!="object"?!1:e instanceof Date?t instanceof Date&&Os(e,t)===0:((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===Object&&Zu(e,t)}function Os(e,t){let n,r;return"offset"in e&&"offset"in t?(n=e.getTime(),r=t.getTime()):(n=e.getTime()+Ts(e),r=t.getTime()+Ts(t)),n===r?0:n<r?-1:1}function Zn(e,t){return e===t?0:e<t?-1:1}function Ju(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 Ns(e,t){return Ju(e,t,De)}function Ku(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=De(e[s],t[s]),i!==0)return i}return 0}function De(e,t){var n;return e===t?0:e==null?t==null?0:-1:t==null?1:Hu(e)?e.CompareTo(t):Be(e)?Be(t)?Ns(e,t):-1:typeof e!="object"?e<t?-1:1:e instanceof Date?t instanceof Date?Os(e,t):-1:((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===Object?Ku(e,t):-1}function j(e){const t={};for(const n of e)t[n[0]]=n[1];return t}function Xu(e,t=0){const n=Math.pow(10,t),r=+(t?e*n:e).toFixed(8),o=Math.floor(r),i=r-o,s=1e-8,a=i>.5-s&&i<.5+s?o%2===0?o:o+1:Math.round(r);return t?a/n:a}function Qu(e){Be(e)?e.splice(0):e.clear()}const Jn=new WeakMap;function Y(e){if(e==null)return null;const t=(n,r)=>e(n)(r);return Jn.set(t,e),t}function At(e){return Jn.get(e)??(t=>n=>e(t,n))}function _o(e){if(e==null)return null;const t=(n,r,o)=>e(n)(r)(o);return Jn.set(t,e),t}function yo(e){return Jn.get(e)??(t=>n=>r=>e(t,n,r))}function ec(e){let t=0,n="[";for(const r of e){if(t===0)n+=We(r);else if(t===100){n+="; ...";break}else n+="; "+We(r);t++}return n+"]"}function We(e,t=0){var n;if(e!=null&&typeof e=="object"){if(typeof e.toString=="function")return e.toString();if(Symbol.iterator in e)return ec(e);{const r=(n=Object.getPrototypeOf(e))==null?void 0:n.constructor;return r===Object&&t<10?"{ "+Object.entries(e).map(([o,i])=>o+" = "+We(i,t+1)).join(`
2
+ `)+" }":(r==null?void 0:r.name)??""}}return String(e)}function tc(e,t){if(t.length===0)return e;{let n,r=!0;return t.length===1?(n=We(t[0]),r=n.indexOf(" ")>=0):n=t.map(o=>We(o)).join(", "),e+(r?" (":" ")+n+(r?")":"")}}class B{get name(){return this.cases()[this.tag]}toJSON(){return this.fields.length===0?this.name:[this.name].concat(this.fields)}toString(){return tc(this.name,this.fields)}GetHashCode(){const t=this.fields.map(n=>lt(n));return t.splice(0,0,ze(this.tag)),yn(t)}Equals(t){return this===t?!0:Wn(this,t)&&this.tag===t.tag?Is(this.fields,t.fields):!1}CompareTo(t){return this===t?0:Wn(this,t)?this.tag===t.tag?Ns(this.fields,t.fields):this.tag<t.tag?-1:1:-1}}function nc(e){const t={},n=Object.keys(e);for(let r=0;r<n.length;r++)t[n[r]]=e[n[r]];return t}function rc(e){return"{ "+Object.entries(e).map(([t,n])=>t+" = "+We(n)).join(`
3
+ `)+" }"}function oc(e){const t=Object.values(e).map(n=>lt(n));return yn(t)}function ic(e,t){if(e===t)return!0;if(Wn(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++)if(!ke(e[n[r]],t[n[r]]))return!1;return!0}else return!1}function sc(e,t){if(e===t)return 0;if(Wn(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++){const o=De(e[n[r]],t[n[r]]);if(o!==0)return o}return 0}else return-1}class Fe{toJSON(){return nc(this)}toString(){return rc(this)}GetHashCode(){return oc(this)}Equals(t){return ic(this,t)}CompareTo(t){return sc(this,t)}}class Re{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 ac{constructor(t){this.message=t}}function lc(e){return e instanceof ac||e instanceof Error}function uc(e){return e instanceof Promise}function Kn(e){return lc(e)||uc(e)?e:new Error(String(e))}const Wt=Symbol("numeric");function Ps(e){return typeof e=="number"||typeof e=="bigint"||(e==null?void 0:e[Wt])}function cc(e,t){return typeof e=="number"||typeof e=="bigint"?e<t?-1:e>t?1:0:e.CompareTo(t)}function bo(e,t){return typeof e=="number"?e*t:typeof e=="bigint"?e*BigInt(t):e[Wt]().multiply(t)}function Xn(e,t){return typeof e=="number"?e.toFixed(t):typeof e=="bigint"?e:e[Wt]().toFixed(t)}function Qn(e,t){return typeof e=="number"?e.toPrecision(t):typeof e=="bigint"?e:e[Wt]().toPrecision(t)}function er(e,t){return typeof e=="number"?e.toExponential(t):typeof e=="bigint"?e:e[Wt]().toExponential(t)}function tr(e){return typeof e=="number"?(Number(e)>>>0).toString(16):typeof e=="bigint"?BigInt.asUintN(64,e).toString(16):e[Wt]().toHex()}class fc{constructor(t,n,r,o){this.declaringType=t,this.tag=n,this.name=r,this.fields=o}}class Le{constructor(t,n,r,o,i,s,a){this.fullname=t,this.generics=n,this.construct=r,this.parent=o,this.fields=i,this.cases=s,this.enumCases=a}toString(){return G(this)}GetHashCode(){return Ds(this)}Equals(t){return vo(this,t)}}function $e(e){return e.generics!=null?e.generics:[]}function Ds(e){const t=Yn(e.fullname),n=$e(e).map(Ds);return yn([t,...n])}function vo(e,t){return e.fullname===""?t.fullname===""&&wo(vn(e),vn(t),([n,r],[o,i])=>n===o&&vo(r,i)):e.fullname===t.fullname&&wo($e(e),$e(t),vo)}function Fs(e,t,n,r){return new Le(e,t,n,void 0,r)}function Rs(...e){return new Le("",void 0,void 0,void 0,()=>e)}function dc(e,t,n,r){const o=new Le(e,t,n,void 0,void 0,()=>{const i=n.prototype.cases();return r().map((s,a)=>new fc(o,a,i[a],s))});return o}function hc(e){return new Le("[]",[e])}const pc=new Le("System.Object"),So=new Le("System.String"),Ls=new Le("System.Boolean"),Hs=new Le("System.Int32");function qt(e){if(Array.isArray(e))return e[0];if(e instanceof Le){const t=bn(e);if(t!=null)return qt(t)+"[]";{const n=e.fullname.lastIndexOf(".");return n===-1?e.fullname:e.fullname.substr(n+1)}}else return e.name}function G(e){const t=bn(e);return t!=null?G(t)+"[]":e.generics==null||e.generics.length===0?e.fullname:e.fullname+"["+e.generics.map(n=>G(n)).join(",")+"]"}function Us(e){return bn(e)!=null}function bn(e){var t;return e.fullname==="[]"&&((t=e.generics)==null?void 0:t.length)===1?e.generics[0]:void 0}function Vs(e){return e.generics!=null&&e.generics.length>0}function Co(e){return e.enumCases!=null&&e.enumCases.length>0}function js(e){return e.generics==null?e:new Le(e.fullname,e.generics.map(()=>pc))}function Bs(e){var t;return(t=e.generics)==null?void 0:t[0]}function Yt(e){if(Co(e)&&e.enumCases!=null)return e.enumCases.map(t=>t[1]);throw new Error(`${e.fullname} is not an enum type`)}function mc(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 Zt(e,t){const n=parseInt(t,10);return mc(e,isNaN(n)?t:n)[1]}function Gs(e){if(e.cases!=null)return e.cases();throw new Error(`${e.fullname} is not an F# union type`)}function vn(e){if(e.fields!=null)return e.fields();throw new Error(`${e.fullname} is not an F# record type`)}function zs(e){if(Eo(e)&&e.generics!=null)return e.generics;throw new Error(`${e.fullname} is not a tuple type`)}function Ws(e){return e instanceof Le?e.cases!=null:e instanceof B}function qs(e){return e instanceof Le?e.fields!=null:e instanceof Fe}function Eo(e){return e.fullname.startsWith("System.Tuple")}function gc(e,t){const r=Gs(t)[e.tag];if(r==null)throw new Error(`Cannot find case ${e.name} in union type`);return[r,e.fields]}function Ys(e){return e.fields==null?[]:e.fields}function wc(e,t){return e[t[0]]}function Sg(e){return e}function _c(e,t){const n=(e.fields||[]).length;if(t.length!==n)throw new Error(`Expected an array of length ${n} but got ${t.length}`);const r=e.declaringType.construct;return r==null?{}:(e.declaringType.cases?e.declaringType.cases().length==1:!1)?new r(...t):new r(e.tag,t)}function yc(e,t){const n=vn(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 bc(e,t){return e}var vc=Object.defineProperty,Sc=(e,t,n)=>t in e?vc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,xo=(e,t,n)=>(Sc(e,typeof t!="symbol"?t+"":t,n),n);let Cc=class{constructor(){xo(this,"current",this.detect()),xo(this,"handoffState","pending"),xo(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},ut=new Cc,me=(e,t)=>{ut.isServer?F(e,t):Tt(e,t)};function ct(e){let t=M(e);return me(()=>{t.current=e},[e]),t}function nr(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function It(){let e=[],t={addEventListener(n,r,o,i){return n.addEventListener(r,o,i),t.add(()=>n.removeEventListener(r,o,i))},requestAnimationFrame(...n){let r=requestAnimationFrame(...n);return t.add(()=>cancelAnimationFrame(r))},nextFrame(...n){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...n))},setTimeout(...n){let r=setTimeout(...n);return t.add(()=>clearTimeout(r))},microTask(...n){let r={current:!0};return nr(()=>{r.current&&n[0]()}),t.add(()=>{r.current=!1})},style(n,r,o){let i=n.style.getPropertyValue(r);return Object.assign(n.style,{[r]:o}),this.add(()=>{Object.assign(n.style,{[r]:i})})},group(n){let r=It();return n(r),this.add(()=>r.dispose())},add(n){return e.push(n),()=>{let r=e.indexOf(n);if(r>=0)for(let o of e.splice(r,1))o()}},dispose(){for(let n of e.splice(0))n()}};return t}function rr(){let[e]=Q(It);return F(()=>()=>e.dispose(),[e]),e}let I=function(e){let t=ct(e);return x.useCallback((...n)=>t.current(...n),[t])};function Ec(){let e=typeof document>"u";return"useSyncExternalStore"in zt?(t=>t.useSyncExternalStore)(zt)(()=>()=>{},()=>!1,()=>!e):!1}function Jt(){let e=Ec(),[t,n]=Q(ut.isHandoffComplete);return t&&ut.isHandoffComplete===!1&&n(!1),F(()=>{t!==!0&&n(!0)},[t]),F(()=>ut.handoff(),[]),e?!1:t}var Zs;let wt=(Zs=x.useId)!=null?Zs:function(){let e=Jt(),[t,n]=x.useState(e?()=>ut.nextId():null);return me(()=>{t===null&&n(ut.nextId())},[t]),t!=null?""+t:void 0};function fe(e,t,...n){if(e in t){let o=t[e];return typeof o=="function"?o(...n):o}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(o=>`"${o}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,fe),r}function Js(e){return ut.isServer?null:e instanceof Node?e.ownerDocument:e!=null&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}let ko=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var Ot=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(Ot||{}),Ks=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(Ks||{}),xc=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(xc||{});function kc(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(ko)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}var Xs=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(Xs||{});function $c(e,t=0){var n;return e===((n=Js(e))==null?void 0:n.body)?!1:fe(t,{0(){return e.matches(ko)},1(){let r=e;for(;r!==null;){if(r.matches(ko))return!0;r=r.parentElement}return!1}})}var Tc=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(Tc||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function Nt(e){e==null||e.focus({preventScroll:!0})}let Mc=["textarea","input"].join(",");function Ac(e){var t,n;return(n=(t=e==null?void 0:e.matches)==null?void 0:t.call(e,Mc))!=null?n:!1}function Ic(e,t=n=>n){return e.slice().sort((n,r)=>{let o=t(n),i=t(r);if(o===null||i===null)return 0;let s=o.compareDocumentPosition(i);return s&Node.DOCUMENT_POSITION_FOLLOWING?-1:s&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function or(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:o=[]}={}){let i=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,s=Array.isArray(e)?n?Ic(e):e:kc(e);o.length>0&&s.length>1&&(s=s.filter(d=>!o.includes(d))),r=r??i.activeElement;let a=(()=>{if(t&5)return 1;if(t&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),l=(()=>{if(t&1)return 0;if(t&2)return Math.max(0,s.indexOf(r))-1;if(t&4)return Math.max(0,s.indexOf(r))+1;if(t&8)return s.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),u=t&32?{preventScroll:!0}:{},f=0,c=s.length,h;do{if(f>=c||f+c<=0)return 0;let d=l+f;if(t&16)d=(d+c)%c;else{if(d<0)return 3;if(d>=c)return 1}h=s[d],h==null||h.focus(u),f+=a}while(h!==i.activeElement);return t&6&&Ac(h)&&h.select(),2}function ir(e,t,n){let r=ct(t);F(()=>{function o(i){r.current(i)}return document.addEventListener(e,o,n),()=>document.removeEventListener(e,o,n)},[e,n])}function Qs(e,t,n){let r=ct(t);F(()=>{function o(i){r.current(i)}return window.addEventListener(e,o,n),()=>window.removeEventListener(e,o,n)},[e,n])}function Oc(e,t,n=!0){let r=M(!1);F(()=>{requestAnimationFrame(()=>{r.current=n})},[n]);function o(s,a){if(!r.current||s.defaultPrevented)return;let l=a(s);if(l===null||!l.getRootNode().contains(l)||!l.isConnected)return;let u=function f(c){return typeof c=="function"?f(c()):Array.isArray(c)||c instanceof Set?c:[c]}(e);for(let f of u){if(f===null)continue;let c=f instanceof HTMLElement?f:f.current;if(c!=null&&c.contains(l)||s.composed&&s.composedPath().includes(c))return}return!$c(l,Xs.Loose)&&l.tabIndex!==-1&&s.preventDefault(),t(s,l)}let i=M(null);ir("pointerdown",s=>{var a,l;r.current&&(i.current=((l=(a=s.composedPath)==null?void 0:a.call(s))==null?void 0:l[0])||s.target)},!0),ir("mousedown",s=>{var a,l;r.current&&(i.current=((l=(a=s.composedPath)==null?void 0:a.call(s))==null?void 0:l[0])||s.target)},!0),ir("click",s=>{i.current&&(o(s,()=>i.current),i.current=null)},!0),ir("touchend",s=>o(s,()=>s.target instanceof HTMLElement?s.target:null),!0),Qs("blur",s=>o(s,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function ea(e){var t;if(e.type)return e.type;let n=(t=e.as)!=null?t:"button";if(typeof n=="string"&&n.toLowerCase()==="button")return"button"}function Nc(e,t){let[n,r]=Q(()=>ea(e));return me(()=>{r(ea(e))},[e.type,e.as]),me(()=>{n||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&r("button")},[n,t]),n}let ta=Symbol();function Pc(e,t=!0){return Object.assign(e,{[ta]:t})}function Te(...e){let t=M(e);F(()=>{t.current=e},[e]);let n=I(r=>{for(let o of t.current)o!=null&&(typeof o=="function"?o(r):o.current=r)});return e.every(r=>r==null||(r==null?void 0:r[ta]))?void 0:n}function sr(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}var ar=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(ar||{}),_t=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(_t||{});function ge({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:i=!0,name:s}){let a=na(t,e);if(i)return lr(a,n,r,s);let l=o??0;if(l&2){let{static:u=!1,...f}=a;if(u)return lr(f,n,r,s)}if(l&1){let{unmount:u=!0,...f}=a;return fe(u?0:1,{0(){return null},1(){return lr({...f,hidden:!0,style:{display:"none"}},n,r,s)}})}return lr(a,n,r,s)}function lr(e,t={},n,r){let{as:o=n,children:i,refName:s="ref",...a}=To(e,["unmount","static"]),l=e.ref!==void 0?{[s]:e.ref}:{},u=typeof i=="function"?i(t):i;"className"in a&&a.className&&typeof a.className=="function"&&(a.className=a.className(t));let f={};if(t){let c=!1,h=[];for(let[d,p]of Object.entries(t))typeof p=="boolean"&&(c=!0),p===!0&&h.push(d);c&&(f["data-headlessui-state"]=h.join(" "))}if(o===ie&&Object.keys($o(a)).length>0){if(!Gt(u)||Array.isArray(u)&&u.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(a).map(p=>` - ${p}`).join(`
4
4
  `),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(p=>` - ${p}`).join(`
5
5
  `)].join(`
6
- `));let c=u.props,h=typeof(c==null?void 0:c.className)=="function"?(...p)=>dr(c==null?void 0:c.className(...p),a.className):dr(c==null?void 0:c.className,a.className),d=h?{className:h}:{};return ei(u,Object.assign({},nl(u.props,xo(Zr(a,["ref"]))),f,l,Hc(u.ref,l.ref),d))}return v(o,Object.assign({},Zr(a,["ref"]),o!==se&&l,o!==se&&f),u)}function Hc(...e){return{ref:e.every(t=>t==null)?void 0:t=>{for(let n of e)n!=null&&(typeof n=="function"?n(t):n.current=t)}}}function nl(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let o in r)o.startsWith("on")&&typeof r[o]=="function"?(n[o]!=null||(n[o]=[]),n[o].push(r[o])):t[o]=r[o];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map(r=>[r,void 0])));for(let r in n)Object.assign(t,{[r](o,...i){let s=n[r];for(let a of s){if((o instanceof Event||(o==null?void 0:o.nativeEvent)instanceof Event)&&o.defaultPrevented)return;a(o,...i)}}});return t}function Se(e){var t;return Object.assign(Ko(e),{displayName:(t=e.displayName)!=null?t:e.name})}function xo(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function Zr(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function rl(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=(t==null?void 0:t.getAttribute("disabled"))==="";return r&&Uc(n)?!1:r}function Uc(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}function Vc(e){var t,n;let r=(t=e==null?void 0:e.form)!=null?t:e.closest("form");if(r){for(let o of r.elements)if(o!==e&&(o.tagName==="INPUT"&&o.type==="submit"||o.tagName==="BUTTON"&&o.type==="submit"||o.nodeName==="INPUT"&&o.type==="image")){o.click();return}(n=r.requestSubmit)==null||n.call(r)}}let jc="div";var kn=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(kn||{});function Bc(e,t){let{features:n=1,...r}=e,o={ref:t,"aria-hidden":(n&2)===2?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(n&4)===4&&(n&2)!==2&&{display:"none"}}};return ve({ourProps:o,theirProps:r,slot:{},defaultTag:jc,name:"Hidden"})}let pr=Se(Bc),ri=Ne(null);ri.displayName="OpenClosedContext";var Ae=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Ae||{});function oi(){return ce(ri)}function Gc({value:e,children:t}){return x.createElement(ri.Provider,{value:e},t)}var mr=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(mr||{});function zc(e,t,n){let[r,o]=re(n),i=e!==void 0,s=A(i),a=A(!1),l=A(!1);return i&&!s.current&&!a.current?(a.current=!0,s.current=i,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")):!i&&s.current&&!l.current&&(l.current=!0,s.current=i,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")),[i?e:r,N(u=>(i||o(u),t==null?void 0:t(u)))]}function ii(e,t){let n=A([]),r=N(e);H(()=>{let o=[...n.current];for(let[i,s]of t.entries())if(n.current[i]!==s){let a=r(t,o);return n.current=t,a}},[r,...t])}function Wc(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function Nn(...e){return K(()=>Ka(...e),[...e])}var bn=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(bn||{});function qc(){let e=A(0);return el("keydown",t=>{t.key==="Tab"&&(e.current=t.shiftKey?1:0)},!0),e}function Pn(){let e=A(!1);return ye(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function ol(e,t,n,r){let o=dt(n);H(()=>{e=e??window;function i(s){o.current(s)}return e.addEventListener(t,i,r),()=>e.removeEventListener(t,i,r)},[e,t,r])}function Yc(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}function il(e){let t=N(e),n=A(!1);H(()=>(n.current=!1,()=>{n.current=!0,$r(()=>{n.current&&t()})}),[t])}function sl(e){if(!e)return new Set;if(typeof e=="function")return new Set(e());let t=new Set;for(let n of e.current)n.current instanceof HTMLElement&&t.add(n.current);return t}let Zc="div";var al=(e=>(e[e.None=1]="None",e[e.InitialFocus=2]="InitialFocus",e[e.TabLock=4]="TabLock",e[e.FocusLock=8]="FocusLock",e[e.RestoreFocus=16]="RestoreFocus",e[e.All=30]="All",e))(al||{});function Jc(e,t){let n=A(null),r=Pe(n,t),{initialFocus:o,containers:i,features:s=30,...a}=e;ln()||(s=1);let l=Nn(n);Qc({ownerDocument:l},!!(s&16));let u=ef({ownerDocument:l,container:n,initialFocus:o},!!(s&2));tf({ownerDocument:l,container:n,containers:i,previousActiveElement:u},!!(s&8));let f=qc(),c=N(g=>{let m=n.current;m&&(_=>_())(()=>{he(f.current,{[bn.Forwards]:()=>{nr(m,It.First,{skipElements:[g.relatedTarget]})},[bn.Backwards]:()=>{nr(m,It.Last,{skipElements:[g.relatedTarget]})}})})}),h=Tr(),d=A(!1),p={ref:r,onKeyDown(g){g.key=="Tab"&&(d.current=!0,h.requestAnimationFrame(()=>{d.current=!1}))},onBlur(g){let m=sl(i);n.current instanceof HTMLElement&&m.add(n.current);let _=g.relatedTarget;_ instanceof HTMLElement&&_.dataset.headlessuiFocusGuard!=="true"&&(ll(m,_)||(d.current?nr(n.current,he(f.current,{[bn.Forwards]:()=>It.Next,[bn.Backwards]:()=>It.Previous})|It.WrapAround,{relativeTo:g.target}):g.target instanceof HTMLElement&&Ft(g.target)))}};return x.createElement(x.Fragment,null,!!(s&4)&&x.createElement(pr,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:c,features:kn.Focusable}),ve({ourProps:p,theirProps:a,defaultTag:Zc,name:"FocusTrap"}),!!(s&4)&&x.createElement(pr,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:c,features:kn.Focusable}))}let Kc=Se(Jc),pn=Object.assign(Kc,{features:al}),_t=[];Yc(()=>{function e(t){t.target instanceof HTMLElement&&t.target!==document.body&&_t[0]!==t.target&&(_t.unshift(t.target),_t=_t.filter(n=>n!=null&&n.isConnected),_t.splice(10))}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});function Xc(e=!0){let t=A(_t.slice());return ii(([n],[r])=>{r===!0&&n===!1&&$r(()=>{t.current.splice(0)}),r===!1&&n===!0&&(t.current=_t.slice())},[e,_t,t]),N(()=>{var n;return(n=t.current.find(r=>r!=null&&r.isConnected))!=null?n:null})}function Qc({ownerDocument:e},t){let n=Xc(t);ii(()=>{t||(e==null?void 0:e.activeElement)===(e==null?void 0:e.body)&&Ft(n())},[t]),il(()=>{t&&Ft(n())})}function ef({ownerDocument:e,container:t,initialFocus:n},r){let o=A(null),i=Pn();return ii(()=>{if(!r)return;let s=t.current;s&&$r(()=>{if(!i.current)return;let a=e==null?void 0:e.activeElement;if(n!=null&&n.current){if((n==null?void 0:n.current)===a){o.current=a;return}}else if(s.contains(a)){o.current=a;return}n!=null&&n.current?Ft(n.current):nr(s,It.First)===Xa.Error&&console.warn("There are no focusable elements inside the <FocusTrap />"),o.current=e==null?void 0:e.activeElement})},[r]),o}function tf({ownerDocument:e,container:t,containers:n,previousActiveElement:r},o){let i=Pn();ol(e==null?void 0:e.defaultView,"focus",s=>{if(!o||!i.current)return;let a=sl(n);t.current instanceof HTMLElement&&a.add(t.current);let l=r.current;if(!l)return;let u=s.target;u&&u instanceof HTMLElement?ll(a,u)?(r.current=u,Ft(u)):(s.preventDefault(),s.stopPropagation(),Ft(l)):Ft(r.current)},!0)}function ll(e,t){for(let n of e)if(n.contains(t))return!0;return!1}let ul=Ne(!1);function nf(){return ce(ul)}function ko(e){return x.createElement(ul.Provider,{value:e.force},e.children)}function rf(e){let t=nf(),n=ce(cl),r=Nn(e),[o,i]=re(()=>{if(!t&&n!==null||ft.isServer)return null;let s=r==null?void 0:r.getElementById("headlessui-portal-root");if(s)return s;if(r===null)return null;let a=r.createElement("div");return a.setAttribute("id","headlessui-portal-root"),r.body.appendChild(a)});return H(()=>{o!==null&&(r!=null&&r.body.contains(o)||r==null||r.body.appendChild(o))},[o,r]),H(()=>{t||n!==null&&i(n.current)},[n,i,t]),o}let of=se;function sf(e,t){let n=e,r=A(null),o=Pe(Lc(f=>{r.current=f}),t),i=Nn(r),s=rf(r),[a]=re(()=>{var f;return ft.isServer?null:(f=i==null?void 0:i.createElement("div"))!=null?f:null}),l=ce($o),u=ln();return ye(()=>{!s||!a||s.contains(a)||(a.setAttribute("data-headlessui-portal",""),s.appendChild(a))},[s,a]),ye(()=>{if(a&&l)return l.register(a)},[l,a]),il(()=>{var f;!s||!a||(a instanceof Node&&s.contains(a)&&s.removeChild(a),s.childNodes.length<=0&&((f=s.parentElement)==null||f.removeChild(s)))}),u?!s||!a?null:Xo(ve({ourProps:{ref:o},theirProps:n,defaultTag:of,name:"Portal"}),a):null}let af=se,cl=Ne(null);function lf(e,t){let{target:n,...r}=e,o={ref:Pe(t)};return x.createElement(cl.Provider,{value:n},ve({ourProps:o,theirProps:r,defaultTag:af,name:"Popover.Group"}))}let $o=Ne(null);function uf(){let e=ce($o),t=A([]),n=N(i=>(t.current.push(i),e&&e.register(i),()=>r(i))),r=N(i=>{let s=t.current.indexOf(i);s!==-1&&t.current.splice(s,1),e&&e.unregister(i)}),o=K(()=>({register:n,unregister:r,portals:t}),[n,r,t]);return[t,K(()=>function({children:i}){return x.createElement($o.Provider,{value:o},i)},[o])]}let cf=Se(sf),ff=Se(lf),To=Object.assign(cf,{Group:ff}),fl=Ne(null);function dl(){let e=ce(fl);if(e===null){let t=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,dl),t}return e}function hl(){let[e,t]=re([]);return[e.length>0?e.join(" "):void 0,K(()=>function(n){let r=N(i=>(t(s=>[...s,i]),()=>t(s=>{let a=s.slice(),l=a.indexOf(i);return l!==-1&&a.splice(l,1),a}))),o=K(()=>({register:r,slot:n.slot,name:n.name,props:n.props}),[r,n.slot,n.name,n.props]);return x.createElement(fl.Provider,{value:o},n.children)},[t])]}let df="p";function hf(e,t){let n=Et(),{id:r=`headlessui-description-${n}`,...o}=e,i=dl(),s=Pe(t);ye(()=>i.register(r),[r,i.register]);let a={ref:s,...i.props,id:r};return ve({ourProps:a,theirProps:o,slot:i.slot||{},defaultTag:df,name:i.name||"Description"})}let pf=Se(hf),pl=Object.assign(pf,{}),si=Ne(()=>{});si.displayName="StackContext";var Mo=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(Mo||{});function mf(){return ce(si)}function gf({children:e,onUpdate:t,type:n,element:r,enabled:o}){let i=mf(),s=N((...a)=>{t==null||t(...a),i(...a)});return ye(()=>{let a=o===void 0||o===!0;return a&&s(0,n,r),()=>{a&&s(1,n,r)}},[s,n,r,o]),x.createElement(si.Provider,{value:s},e)}function wf(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}const _f=typeof Object.is=="function"?Object.is:wf,{useState:yf,useEffect:bf,useLayoutEffect:vf,useDebugValue:Sf}=tn;function Cf(e,t,n){const r=t(),[{inst:o},i]=yf({inst:{value:r,getSnapshot:t}});return vf(()=>{o.value=r,o.getSnapshot=t,Jr(o)&&i({inst:o})},[e,r,t]),bf(()=>(Jr(o)&&i({inst:o}),e(()=>{Jr(o)&&i({inst:o})})),[e]),Sf(r),r}function Jr(e){const t=e.getSnapshot,n=e.value;try{const r=t();return!_f(n,r)}catch{return!0}}function Ef(e,t,n){return t()}const xf=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",kf=!xf,$f=kf?Ef:Cf,Tf="useSyncExternalStore"in tn?(e=>e.useSyncExternalStore)(tn):$f;function Mf(e){return Tf(e.subscribe,e.getSnapshot,e.getSnapshot)}function Af(e,t){let n=e(),r=new Set;return{getSnapshot(){return n},subscribe(o){return r.add(o),()=>r.delete(o)},dispatch(o,...i){let s=t[o].call(n,...i);s&&(n=s,r.forEach(a=>a()))}}}function If(){let e;return{before({doc:t}){var n;let r=t.documentElement;e=((n=t.defaultView)!=null?n:window).innerWidth-r.clientWidth},after({doc:t,d:n}){let r=t.documentElement,o=r.clientWidth-r.offsetWidth,i=e-o;n.style(r,"paddingRight",`${i}px`)}}}function Of(){if(!Wc())return{};let e;return{before(){e=window.pageYOffset},after({doc:t,d:n,meta:r}){function o(i){return r.containers.flatMap(s=>s()).some(s=>s.contains(i))}n.microTask(()=>{if(window.getComputedStyle(t.documentElement).scrollBehavior!=="auto"){let s=Ut();s.style(t.documentElement,"scroll-behavior","auto"),n.add(()=>n.microTask(()=>s.dispose()))}n.style(t.body,"marginTop",`-${e}px`),window.scrollTo(0,0);let i=null;n.addEventListener(t,"click",s=>{if(s.target instanceof HTMLElement)try{let a=s.target.closest("a");if(!a)return;let{hash:l}=new URL(a.href),u=t.querySelector(l);u&&!o(u)&&(i=u)}catch{}},!0),n.addEventListener(t,"touchmove",s=>{s.target instanceof HTMLElement&&!o(s.target)&&s.preventDefault()},{passive:!1}),n.add(()=>{window.scrollTo(0,window.pageYOffset+e),i&&i.isConnected&&(i.scrollIntoView({block:"nearest"}),i=null)})})}}}function Nf(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function Pf(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let Nt=Af(()=>new Map,{PUSH(e,t){var n;let r=(n=this.get(e))!=null?n:{doc:e,count:0,d:Ut(),meta:new Set};return r.count++,r.meta.add(t),this.set(e,r),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:n}){let r={doc:e,d:t,meta:Pf(n)},o=[Of(),If(),Nf()];o.forEach(({before:i})=>i==null?void 0:i(r)),o.forEach(({after:i})=>i==null?void 0:i(r))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});Nt.subscribe(()=>{let e=Nt.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let r=t.get(n.doc)==="hidden",o=n.count!==0;(o&&!r||!o&&r)&&Nt.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&Nt.dispatch("TEARDOWN",n)}});function Df(e,t,n){let r=Mf(Nt),o=e?r.get(e):void 0,i=o?o.count>0:!1;return ye(()=>{if(!(!e||!t))return Nt.dispatch("PUSH",e,n),()=>Nt.dispatch("POP",e,n)},[t,e]),i}let Kr=new Map,mn=new Map;function Qi(e,t=!0){ye(()=>{var n;if(!t)return;let r=typeof e=="function"?e():e.current;if(!r)return;function o(){var s;if(!r)return;let a=(s=mn.get(r))!=null?s:1;if(a===1?mn.delete(r):mn.set(r,a-1),a!==1)return;let l=Kr.get(r);l&&(l["aria-hidden"]===null?r.removeAttribute("aria-hidden"):r.setAttribute("aria-hidden",l["aria-hidden"]),r.inert=l.inert,Kr.delete(r))}let i=(n=mn.get(r))!=null?n:0;return mn.set(r,i+1),i!==0||(Kr.set(r,{"aria-hidden":r.getAttribute("aria-hidden"),inert:r.inert}),r.setAttribute("aria-hidden","true"),r.inert=!0),o},[e,t])}function Ff({defaultContainers:e=[],portals:t,mainTreeNodeRef:n}={}){var r;let o=A((r=n==null?void 0:n.current)!=null?r:null),i=Nn(o),s=N(()=>{var a;let l=[];for(let u of e)u!==null&&(u instanceof HTMLElement?l.push(u):"current"in u&&u.current instanceof HTMLElement&&l.push(u.current));if(t!=null&&t.current)for(let u of t.current)l.push(u);for(let u of(a=i==null?void 0:i.querySelectorAll("html > *, body > *"))!=null?a:[])u!==document.body&&u!==document.head&&u instanceof HTMLElement&&u.id!=="headlessui-portal-root"&&(u.contains(o.current)||l.some(f=>u.contains(f))||l.push(u));return l});return{resolveContainers:s,contains:N(a=>s().some(l=>l.contains(a))),mainTreeNodeRef:o,MainTreeNode:K(()=>function(){return n!=null?null:x.createElement(pr,{features:kn.Hidden,ref:o})},[o,n])}}var Rf=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Rf||{}),Lf=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(Lf||{});let Hf={0(e,t){return e.titleId===t.id?e:{...e,titleId:t.id}}},gr=Ne(null);gr.displayName="DialogContext";function Dn(e){let t=ce(gr);if(t===null){let n=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Dn),n}return t}function Uf(e,t,n=()=>[document.body]){Df(e,t,r=>{var o;return{containers:[...(o=r.containers)!=null?o:[],n]}})}function Vf(e,t){return he(t.type,Hf,e,t)}let jf="div",Bf=hr.RenderStrategy|hr.Static;function Gf(e,t){var n;let r=Et(),{id:o=`headlessui-dialog-${r}`,open:i,onClose:s,initialFocus:a,__demoMode:l=!1,...u}=e,[f,c]=re(0),h=oi();i===void 0&&h!==null&&(i=(h&Ae.Open)===Ae.Open);let d=A(null),p=Pe(d,t),g=Nn(d),m=e.hasOwnProperty("open")||h!==null,_=e.hasOwnProperty("onClose");if(!m&&!_)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!m)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!_)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if(typeof i!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${i}`);if(typeof s!="function")throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${s}`);let y=i?0:1,[C,D]=An(Vf,{titleId:null,descriptionId:null,panelRef:Ro()}),W=N(()=>s(!1)),Q=N(ae=>D({type:0,id:ae})),V=ln()?l?!1:y===0:!1,me=f>1,je=ce(gr)!==null,[et,fe]=uf(),{resolveContainers:Ce,mainTreeNodeRef:gt,MainTreeNode:Vr}=Ff({portals:et,defaultContainers:[(n=C.panelRef.current)!=null?n:d.current]}),Vn=me?"parent":"leaf",jn=h!==null?(h&Ae.Closing)===Ae.Closing:!1,kt=je||jn?!1:V,jr=lt(()=>{var ae,ot;return(ot=Array.from((ae=g==null?void 0:g.querySelectorAll("body > *"))!=null?ae:[]).find(De=>De.id==="headlessui-portal-root"?!1:De.contains(gt.current)&&De instanceof HTMLElement))!=null?ot:null},[gt]);Qi(jr,kt);let Br=me?!0:V,Vt=lt(()=>{var ae,ot;return(ot=Array.from((ae=g==null?void 0:g.querySelectorAll("[data-headlessui-portal]"))!=null?ae:[]).find(De=>De.contains(gt.current)&&De instanceof HTMLElement))!=null?ot:null},[gt]);Qi(Vt,Br),Fc(Ce,W,!(!V||me));let Gr=!(me||y!==0);ol(g==null?void 0:g.defaultView,"keydown",ae=>{Gr&&(ae.defaultPrevented||ae.key===mr.Escape&&(ae.preventDefault(),ae.stopPropagation(),W()))}),Uf(g,!(jn||y!==0||je),Ce),H(()=>{if(y!==0||!d.current)return;let ae=new ResizeObserver(ot=>{for(let De of ot){let Bn=De.target.getBoundingClientRect();Bn.x===0&&Bn.y===0&&Bn.width===0&&Bn.height===0&&W()}});return ae.observe(d.current),()=>ae.disconnect()},[y,d,W]);let[gu,wu]=hl(),_u=K(()=>[{dialogState:y,close:W,setTitleId:Q},C],[y,C,W,Q]),Ai=K(()=>({open:y===0}),[y]),yu={ref:p,id:o,role:"dialog","aria-modal":y===0?!0:void 0,"aria-labelledby":C.titleId,"aria-describedby":gu};return x.createElement(gf,{type:"Dialog",enabled:y===0,element:d,onUpdate:N((ae,ot)=>{ot==="Dialog"&&he(ae,{[Mo.Add]:()=>c(De=>De+1),[Mo.Remove]:()=>c(De=>De-1)})})},x.createElement(ko,{force:!0},x.createElement(To,null,x.createElement(gr.Provider,{value:_u},x.createElement(To.Group,{target:d},x.createElement(ko,{force:!1},x.createElement(wu,{slot:Ai,name:"Dialog.Description"},x.createElement(pn,{initialFocus:a,containers:Ce,features:V?he(Vn,{parent:pn.features.RestoreFocus,leaf:pn.features.All&~pn.features.FocusLock}):pn.features.None},x.createElement(fe,null,ve({ourProps:yu,theirProps:u,slot:Ai,defaultTag:jf,features:Bf,visible:y===0,name:"Dialog"}))))))))),x.createElement(Vr,null))}let zf="div";function Wf(e,t){let n=Et(),{id:r=`headlessui-dialog-overlay-${n}`,...o}=e,[{dialogState:i,close:s}]=Dn("Dialog.Overlay"),a=Pe(t),l=N(f=>{if(f.target===f.currentTarget){if(rl(f.currentTarget))return f.preventDefault();f.preventDefault(),f.stopPropagation(),s()}}),u=K(()=>({open:i===0}),[i]);return ve({ourProps:{ref:a,id:r,"aria-hidden":!0,onClick:l},theirProps:o,slot:u,defaultTag:zf,name:"Dialog.Overlay"})}let qf="div";function Yf(e,t){let n=Et(),{id:r=`headlessui-dialog-backdrop-${n}`,...o}=e,[{dialogState:i},s]=Dn("Dialog.Backdrop"),a=Pe(t);H(()=>{if(s.panelRef.current===null)throw new Error("A <Dialog.Backdrop /> component is being used, but a <Dialog.Panel /> component is missing.")},[s.panelRef]);let l=K(()=>({open:i===0}),[i]);return x.createElement(ko,{force:!0},x.createElement(To,null,ve({ourProps:{ref:a,id:r,"aria-hidden":!0},theirProps:o,slot:l,defaultTag:qf,name:"Dialog.Backdrop"})))}let Zf="div";function Jf(e,t){let n=Et(),{id:r=`headlessui-dialog-panel-${n}`,...o}=e,[{dialogState:i},s]=Dn("Dialog.Panel"),a=Pe(t,s.panelRef),l=K(()=>({open:i===0}),[i]),u=N(f=>{f.stopPropagation()});return ve({ourProps:{ref:a,id:r,onClick:u},theirProps:o,slot:l,defaultTag:Zf,name:"Dialog.Panel"})}let Kf="h2";function Xf(e,t){let n=Et(),{id:r=`headlessui-dialog-title-${n}`,...o}=e,[{dialogState:i,setTitleId:s}]=Dn("Dialog.Title"),a=Pe(t);H(()=>(s(r),()=>s(null)),[r,s]);let l=K(()=>({open:i===0}),[i]);return ve({ourProps:{ref:a,id:r},theirProps:o,slot:l,defaultTag:Kf,name:"Dialog.Title"})}let Qf=Se(Gf),ed=Se(Yf),td=Se(Jf),nd=Se(Wf),rd=Se(Xf),ai=Object.assign(Qf,{Backdrop:ed,Panel:td,Overlay:nd,Title:rd,Description:pl});function od(e=0){let[t,n]=re(e),r=Pn(),o=lt(l=>{r.current&&n(u=>u|l)},[t,r]),i=lt(l=>!!(t&l),[t]),s=lt(l=>{r.current&&n(u=>u&~l)},[n,r]),a=lt(l=>{r.current&&n(u=>u^l)},[n]);return{flags:t,addFlag:o,hasFlag:i,removeFlag:s,toggleFlag:a}}let ml=Ne(null);function gl(){let e=ce(ml);if(e===null){let t=new Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,gl),t}return e}function id(){let[e,t]=re([]);return[e.length>0?e.join(" "):void 0,K(()=>function(n){let r=N(i=>(t(s=>[...s,i]),()=>t(s=>{let a=s.slice(),l=a.indexOf(i);return l!==-1&&a.splice(l,1),a}))),o=K(()=>({register:r,slot:n.slot,name:n.name,props:n.props}),[r,n.slot,n.name,n.props]);return x.createElement(ml.Provider,{value:o},n.children)},[t])]}let sd="label";function ad(e,t){let n=Et(),{id:r=`headlessui-label-${n}`,passive:o=!1,...i}=e,s=gl(),a=Pe(t);ye(()=>s.register(r),[r,s.register]);let l={ref:a,...s.props,id:r};return o&&("onClick"in l&&(delete l.htmlFor,delete l.onClick),"onClick"in i&&delete i.onClick),ve({ourProps:l,theirProps:i,slot:s.slot||{},defaultTag:sd,name:s.name||"Label"})}let ld=Se(ad),ud=Object.assign(ld,{}),li=Ne(null);li.displayName="GroupContext";let cd=se;function fd(e){var t;let[n,r]=re(null),[o,i]=id(),[s,a]=hl(),l=K(()=>({switch:n,setSwitch:r,labelledby:o,describedby:s}),[n,r,o,s]),u={},f=e;return x.createElement(a,{name:"Switch.Description"},x.createElement(i,{name:"Switch.Label",props:{htmlFor:(t=l.switch)==null?void 0:t.id,onClick(c){n&&(c.currentTarget.tagName==="LABEL"&&c.preventDefault(),n.click(),n.focus({preventScroll:!0}))}}},x.createElement(li.Provider,{value:l},ve({ourProps:u,theirProps:f,defaultTag:cd,name:"Switch.Group"}))))}let dd="button";function hd(e,t){let n=Et(),{id:r=`headlessui-switch-${n}`,checked:o,defaultChecked:i=!1,onChange:s,name:a,value:l,form:u,...f}=e,c=ce(li),h=A(null),d=Pe(h,t,c===null?null:c.setSwitch),[p,g]=zc(o,s,i),m=N(()=>g==null?void 0:g(!p)),_=N(V=>{if(rl(V.currentTarget))return V.preventDefault();V.preventDefault(),m()}),y=N(V=>{V.key===mr.Space?(V.preventDefault(),m()):V.key===mr.Enter&&Vc(V.currentTarget)}),C=N(V=>V.preventDefault()),D=K(()=>({checked:p}),[p]),W={id:r,ref:d,role:"switch",type:Rc(e,h),tabIndex:0,"aria-checked":p,"aria-labelledby":c==null?void 0:c.labelledby,"aria-describedby":c==null?void 0:c.describedby,onClick:_,onKeyUp:y,onKeyPress:C},Q=Tr();return H(()=>{var V;let me=(V=h.current)==null?void 0:V.closest("form");me&&i!==void 0&&Q.addEventListener(me,"reset",()=>{g(i)})},[h,g]),x.createElement(x.Fragment,null,a!=null&&p&&x.createElement(pr,{features:kn.Hidden,...xo({as:"input",type:"checkbox",hidden:!0,readOnly:!0,form:u,checked:p,name:a,value:l})}),ve({ourProps:W,theirProps:f,slot:D,defaultTag:dd,name:"Switch"}))}let pd=Se(hd),md=fd,ui=Object.assign(pd,{Group:md,Label:ud,Description:pl});function gd(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}function Xr(e,...t){e&&t.length>0&&e.classList.add(...t)}function Qr(e,...t){e&&t.length>0&&e.classList.remove(...t)}function wd(e,t){let n=Ut();if(!e)return n.dispose;let{transitionDuration:r,transitionDelay:o}=getComputedStyle(e),[i,s]=[r,o].map(l=>{let[u=0]=l.split(",").filter(Boolean).map(f=>f.includes("ms")?parseFloat(f):parseFloat(f)*1e3).sort((f,c)=>c-f);return u}),a=i+s;if(a!==0){n.group(u=>{u.setTimeout(()=>{t(),u.dispose()},a),u.addEventListener(e,"transitionrun",f=>{f.target===f.currentTarget&&u.dispose()})});let l=n.addEventListener(e,"transitionend",u=>{u.target===u.currentTarget&&(t(),l())})}else t();return n.add(()=>t()),n.dispose}function _d(e,t,n,r){let o=n?"enter":"leave",i=Ut(),s=r!==void 0?gd(r):()=>{};o==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let a=he(o,{enter:()=>t.enter,leave:()=>t.leave}),l=he(o,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),u=he(o,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return Qr(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),Xr(e,...t.base,...a,...u),i.nextFrame(()=>{Qr(e,...t.base,...a,...u),Xr(e,...t.base,...a,...l),wd(e,()=>(Qr(e,...t.base,...a),Xr(e,...t.base,...t.entered),s()))}),i.dispose}function yd({immediate:e,container:t,direction:n,classes:r,onStart:o,onStop:i}){let s=Pn(),a=Tr(),l=dt(n);ye(()=>{e&&(l.current="enter")},[e]),ye(()=>{let u=Ut();a.add(u.dispose);let f=t.current;if(f&&l.current!=="idle"&&s.current)return u.dispose(),o.current(l.current),u.add(_d(f,r.current,l.current==="enter",()=>{u.dispose(),i.current(l.current)})),u.dispose},[n])}function wt(e=""){return e.split(" ").filter(t=>t.trim().length>1)}let Mr=Ne(null);Mr.displayName="TransitionContext";var bd=(e=>(e.Visible="visible",e.Hidden="hidden",e))(bd||{});function vd(){let e=ce(Mr);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function Sd(){let e=ce(Ar);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let Ar=Ne(null);Ar.displayName="NestingContext";function Ir(e){return"children"in e?Ir(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function wl(e,t){let n=dt(e),r=A([]),o=Pn(),i=Tr(),s=N((d,p=yt.Hidden)=>{let g=r.current.findIndex(({el:m})=>m===d);g!==-1&&(he(p,{[yt.Unmount](){r.current.splice(g,1)},[yt.Hidden](){r.current[g].state="hidden"}}),i.microTask(()=>{var m;!Ir(r)&&o.current&&((m=n.current)==null||m.call(n))}))}),a=N(d=>{let p=r.current.find(({el:g})=>g===d);return p?p.state!=="visible"&&(p.state="visible"):r.current.push({el:d,state:"visible"}),()=>s(d,yt.Unmount)}),l=A([]),u=A(Promise.resolve()),f=A({enter:[],leave:[],idle:[]}),c=N((d,p,g)=>{l.current.splice(0),t&&(t.chains.current[p]=t.chains.current[p].filter(([m])=>m!==d)),t==null||t.chains.current[p].push([d,new Promise(m=>{l.current.push(m)})]),t==null||t.chains.current[p].push([d,new Promise(m=>{Promise.all(f.current[p].map(([_,y])=>y)).then(()=>m())})]),p==="enter"?u.current=u.current.then(()=>t==null?void 0:t.wait.current).then(()=>g(p)):g(p)}),h=N((d,p,g)=>{Promise.all(f.current[p].splice(0).map(([m,_])=>_)).then(()=>{var m;(m=l.current.shift())==null||m()}).then(()=>g(p))});return K(()=>({children:r,register:a,unregister:s,onStart:c,onStop:h,wait:u,chains:f}),[a,s,r,c,h,f,u])}function Cd(){}let Ed=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function es(e){var t;let n={};for(let r of Ed)n[r]=(t=e[r])!=null?t:Cd;return n}function xd(e){let t=A(es(e));return H(()=>{t.current=es(e)},[e]),t}let kd="div",_l=hr.RenderStrategy;function $d(e,t){var n,r;let{beforeEnter:o,afterEnter:i,beforeLeave:s,afterLeave:a,enter:l,enterFrom:u,enterTo:f,entered:c,leave:h,leaveFrom:d,leaveTo:p,...g}=e,m=A(null),_=Pe(m,t),y=(n=g.unmount)==null||n?yt.Unmount:yt.Hidden,{show:C,appear:D,initial:W}=vd(),[Q,V]=re(C?"visible":"hidden"),me=Sd(),{register:je,unregister:et}=me;H(()=>je(m),[je,m]),H(()=>{if(y===yt.Hidden&&m.current){if(C&&Q!=="visible"){V("visible");return}return he(Q,{hidden:()=>et(m),visible:()=>je(m)})}},[Q,m,je,et,C,y]);let fe=dt({base:wt(g.className),enter:wt(l),enterFrom:wt(u),enterTo:wt(f),entered:wt(c),leave:wt(h),leaveFrom:wt(d),leaveTo:wt(p)}),Ce=xd({beforeEnter:o,afterEnter:i,beforeLeave:s,afterLeave:a}),gt=ln();H(()=>{if(gt&&Q==="visible"&&m.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[m,Q,gt]);let Vr=W&&!D,Vn=D&&C&&W,jn=!gt||Vr?"idle":C?"enter":"leave",kt=od(0),jr=N(rt=>he(rt,{enter:()=>{kt.addFlag(Ae.Opening),Ce.current.beforeEnter()},leave:()=>{kt.addFlag(Ae.Closing),Ce.current.beforeLeave()},idle:()=>{}})),Br=N(rt=>he(rt,{enter:()=>{kt.removeFlag(Ae.Opening),Ce.current.afterEnter()},leave:()=>{kt.removeFlag(Ae.Closing),Ce.current.afterLeave()},idle:()=>{}})),Vt=wl(()=>{V("hidden"),et(m)},me);yd({immediate:Vn,container:m,classes:fe,direction:jn,onStart:dt(rt=>{Vt.onStart(m,rt,jr)}),onStop:dt(rt=>{Vt.onStop(m,rt,Br),rt==="leave"&&!Ir(Vt)&&(V("hidden"),et(m))})});let $t=g,Gr={ref:_};return Vn?$t={...$t,className:dr(g.className,...fe.current.enter,...fe.current.enterFrom)}:($t.className=dr(g.className,(r=m.current)==null?void 0:r.className),$t.className===""&&delete $t.className),x.createElement(Ar.Provider,{value:Vt},x.createElement(Gc,{value:he(Q,{visible:Ae.Open,hidden:Ae.Closed})|kt.flags},ve({ourProps:Gr,theirProps:$t,defaultTag:kd,features:_l,visible:Q==="visible",name:"Transition.Child"})))}function Td(e,t){let{show:n,appear:r=!1,unmount:o=!0,...i}=e,s=A(null),a=Pe(s,t);ln();let l=oi();if(n===void 0&&l!==null&&(n=(l&Ae.Open)===Ae.Open),![!0,!1].includes(n))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[u,f]=re(n?"visible":"hidden"),c=wl(()=>{f("hidden")}),[h,d]=re(!0),p=A([n]);ye(()=>{h!==!1&&p.current[p.current.length-1]!==n&&(p.current.push(n),d(!1))},[p,n]);let g=K(()=>({show:n,appear:r,initial:h}),[n,r,h]);H(()=>{if(n)f("visible");else if(!Ir(c))f("hidden");else{let C=s.current;if(!C)return;let D=C.getBoundingClientRect();D.x===0&&D.y===0&&D.width===0&&D.height===0&&f("hidden")}},[n,c]);let m={unmount:o},_=N(()=>{var C;h&&d(!1),(C=e.beforeEnter)==null||C.call(e)}),y=N(()=>{var C;h&&d(!1),(C=e.beforeLeave)==null||C.call(e)});return x.createElement(Ar.Provider,{value:c},x.createElement(Mr.Provider,{value:g},ve({ourProps:{...m,as:se,children:x.createElement(yl,{ref:a,...m,...i,beforeEnter:_,beforeLeave:y})},theirProps:{},defaultTag:se,features:_l,visible:u==="visible",name:"Transition"})))}function Md(e,t){let n=ce(Mr)!==null,r=oi()!==null;return x.createElement(x.Fragment,null,!n&&r?x.createElement(Ao,{ref:t,...e}):x.createElement(yl,{ref:t,...e}))}let Ao=Se(Td),yl=Se($d),Ad=Se(Md),bl=Object.assign(Ao,{Child:Ad,Root:Ao});const Ot={None:0,LowerFirst:1,SnakeCase:2,SnakeCaseAllCaps:3,KebabCase:4};function eo(e,t){return e.replace(/[a-z]?[A-Z]/g,n=>n.length===1?n.toLowerCase():n.charAt(0)+t+n.charAt(1).toLowerCase())}function Id(e,t){switch(t){case Ot.LowerFirst:return e.charAt(0).toLowerCase()+e.slice(1);case Ot.SnakeCase:return eo(e,"_");case Ot.SnakeCaseAllCaps:return eo(e,"_").toUpperCase();case Ot.KebabCase:return eo(e,"-");case Ot.None:default:return e}}function xt(e,t=Ot.None){const n={},r=t;function o(s){throw new Error("Cannot infer key and value of "+String(s))}function i(s,a,l){s=Id(s,a),n[s]=l}for(let s of e){let a=Ot.None;if(s==null&&o(s),s instanceof z){const l=s.cases()[s.tag];s=s.fields.length===0?l:[l].concat(s.fields),a=r}if(Array.isArray(s))switch(s.length){case 0:o(s);break;case 1:i(s[0],a,!0);break;case 2:const l=s[1];i(s[0],a,l);break;default:i(s[0],a,s.slice(1))}else typeof s=="string"?i(s,a,!0):o(s)}return n}let qn=class extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Checked","OnChange","ClassName","Children"]}};function Od(e){return v(ui,xt(e,1))}class ts extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["ClassName","Children"]}}function Nd(e){return v(ui.Label,xt(e,1))}class Pd extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["Children"]}}function Dd(e){return v(ui.Group,xt(e,1))}const Fd=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Rd=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],Ld=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Hd=["January","February","March","April","May","June","July","August","September","October","November","December"];function xe(e,t,n){let r=0,o=t;for(;o<e.length&&e[o]===n;)o++,r++;return r}function ns(e,t){return t>=e.length-1?-1:e.charCodeAt(t+1)}function Ud(e,t){let n=t;const r=e[t];let o="",i=!1;for(;t<e.length;){t++;const s=e[t];if(s===r){i=!0;break}else if(s==="\\")if(t<e.length)t++,o+=e[t];else throw new Error("Invalid string format");else o+=s}if(!i)throw new Error(`Invalid string format could not find matching quote for ${r}`);return[o,t-n+1]}function ci(e,t,n){let r=0,o=0,i="";const s=n?Fn(e.getTime(),1):e;for(;r<t.length;){const a=t[r];switch(a){case"d":switch(o=xe(t,r,"d"),r+=o,o){case 1:i+=os(s);break;case 2:i+=P(os(s),2);break;case 3:i+=Fd[as(s)];break;case 4:i+=Rd[as(s)];break}break;case"f":if(o=xe(t,r,"f"),r+=o,o<=3){const m=10**(3-o);i+=P(Math.floor(Zn(s)/m),o)}else o<=7&&(i+=(""+Zn(s)).padEnd(o,"0"));break;case"F":if(o=xe(t,r,"F"),r+=o,o<=3){const m=10**(3-o),_=Math.floor(Zn(s)/m);_!=0&&(i+=P(_,o))}else if(o<=7){const m=Zn(s);m!=0&&(i+=P(m,3))}break;case"g":o=xe(t,r,"g"),r+=o,o<=2&&(i+="A.D.");break;case"h":switch(o=xe(t,r,"h"),r+=o,o){case 1:i+=Yn(s)%12;break;case 2:i+=P(Yn(s)%12,2);break}break;case"H":switch(o=xe(t,r,"H"),r+=o,o){case 1:i+=Yn(s);break;case 2:i+=P(Yn(s),2);break}break;case"K":switch(o=xe(t,r,"K"),r+=o,o){case 1:switch(rs(s)){case 1:i+="Z";break;case 2:i+=Zt(s.getTimezoneOffset()*-6e4);break}break}break;case"m":switch(o=xe(t,r,"m"),r+=o,o){case 1:i+=is(s);break;case 2:i+=P(is(s),2);break}break;case"M":switch(o=xe(t,r,"M"),r+=o,o){case 1:i+=Jn(s);break;case 2:i+=P(Jn(s),2);break;case 3:i+=Ld[Jn(s)-1];break;case 4:i+=Hd[Jn(s)-1];break}break;case"s":switch(o=xe(t,r,"s"),r+=o,o){case 1:i+=ss(s);break;case 2:i+=P(ss(s),2);break}break;case"t":switch(o=xe(t,r,"t"),r+=o,o){case 1:i+=s.getHours()<12?"A":"P";break;case 2:i+=s.getHours()<12?"AM":"PM";break}break;case"y":switch(o=xe(t,r,"y"),r+=o,o){case 1:i+=s.getFullYear()%100;break;case 2:i+=P(s.getFullYear()%100,2);break;case 3:i+=P(s.getFullYear(),3);break;case 4:i+=P(s.getFullYear(),4);break;case 5:i+=P(s.getFullYear(),5);break}break;case"z":o=xe(t,r,"z"),r+=o;let l="";switch(rs(s)){case 1:l="+00:00";break;case 2:l=Zt(s.getTimezoneOffset()*-6e4);break;case 0:l=Zt(Zd(s).getTimezoneOffset()*-6e4);break}const u=l[0]==="-"?"-":"+",f=parseInt(l.substring(1,3),10),c=parseInt(l.substring(4,6),10);switch(o){case 1:i+=`${u}${f}`;break;case 2:i+=`${u}${P(f,2)}`;break;default:i+=`${u}${P(f,2)}:${P(c,2)}`;break}break;case":":i+=":",r++;break;case"/":i+="/",r++;break;case"'":case'"':const[h,d]=Ud(t,r);i+=h,r+=d;break;case"%":const p=ns(t,r);if(p>=0&&p!==37)r+=2,i+=ci(s,String.fromCharCode(p),n);else throw new Error("Invalid format string");break;case"\\":const g=ns(t,r);if(g>=0)r+=2,i+=String.fromCharCode(g);else throw new Error("Invalid format string");break;default:r++,i+=a;break}}return i}function rs(e){return e.kind||0}function Zt(e){const t=e<0;e=Math.abs(e);const n=~~(e/36e5),r=e%36e5/6e4;return(t?"-":"+")+P(n,2)+":"+P(r,2)}function wr(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 Vd(e,t){if(t)return e.toISOString();{const n=e.kind==null?!0:e.kind===2;return P(e.getFullYear(),4)+"-"+P(e.getMonth()+1,2)+"-"+P(e.getDate(),2)+"T"+P(e.getHours(),2)+":"+P(e.getMinutes(),2)+":"+P(e.getSeconds(),2)+"."+P(e.getMilliseconds(),3)+(n?Zt(e.getTimezoneOffset()*-6e4):"")}}function jd(e,t){const n=e.toISOString();return n.substring(0,n.length-1)+Zt(t)}function Bd(e,t){const n=new Date(e.getTime()+(e.offset??0));if(typeof t!="string")return n.toISOString().replace(/\.\d+/,"").replace(/[A-Z]|\.\d+/g," ")+Zt(e.offset??0);if(t.length===1)switch(t){case"D":case"d":return wr(n,"first");case"T":case"t":return wr(n,"second");case"O":case"o":return jd(n,e.offset??0);default:throw new Error("Unrecognized Date print format")}else return ci(n,t,!0)}function Gd(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?wr(e,"first"):e.toLocaleDateString();case"T":case"t":return n?wr(e,"second"):e.toLocaleTimeString();case"O":case"o":return Vd(e,n);default:throw new Error("Unrecognized Date print format")}else return ci(e,t,n)}function Or(e,t,n){return e.offset!=null?Bd(e,t):Gd(e,t)}function Fn(e,t){const n=new Date(e);return n.kind=(t??0)|0,n}function zd(){return Fn(-621355968e5,1)}function vl(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 a=o[2].split(":"),l=parseInt(a[0],10);s=l*3600+parseInt(a[1]||"0",10)*60+parseFloat(a[2]||"0"),o[3]!=null&&o[3].toUpperCase()==="PM"&&l<12&&(s+=720)}if(o[4]!=null){if(o[1]!=null)i=new Date(o[1]+" UTC");else{const a=new Date;i=new Date(a.getUTCFullYear()+"/"+(a.getUTCMonth()+1)+"/"+a.getUTCDate())}if(o[4]==="Z")r="Z";else{let a=parseInt(o[5],10)*60+parseInt(o[6]||"0",10);o[4][0]==="-"&&(a*=-1),r=a,s-=a*60}}else if(o[1]!=null)i=new Date(o[1]);else{const a=new Date;i=new Date(a.getFullYear()+"/"+(a.getMonth()+1)+"/"+a.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 Wd(e,t=!1){const[n,r]=vl(e),o=r!=null?t&&r==="Z"?1:2:0;return Fn(n.getTime(),o)}function qd(e,t){try{return t.contents=Wd(e),!0}catch{return!1}}function Yd(e){return e.kind===1?e:Fn(e.getTime(),1)}function Zd(e){return e.kind===2?e:Fn(e.getTime(),2)}function os(e){return e.kind===1?e.getUTCDate():e.getDate()}function Yn(e){return e.kind===1?e.getUTCHours():e.getHours()}function Zn(e){return e.kind===1?e.getUTCMilliseconds():e.getMilliseconds()}function is(e){return e.kind===1?e.getUTCMinutes():e.getMinutes()}function Jn(e){return(e.kind===1?e.getUTCMonth():e.getMonth())+1}function ss(e){return e.kind===1?e.getUTCSeconds():e.getSeconds()}function as(e){return e.kind===1?e.getUTCDay():e.getDay()}function Jd(e,t=0){if(t&-284)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 Sl(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function ls(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 Kd(e,t,n,r,o=0){function i(){let s=arguments[0];if(r){r--;const a=[],l=arguments.length,u=typeof arguments[l-1]!="string";let f=u?l-3:l-2;for(let c=0;c<f;c++)a.push(arguments[c]);a.index=arguments[f++],a.input=arguments[f++],u&&(a.groups=arguments[f]),s=n(a)}return s}if(typeof e=="string"){const s=e;e=Jd(t,r??0),t=s,r=void 0}if(typeof n=="function")return r=r??-1,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 a=t.substring(o),l=ls(e,a),u=ls.length>r?(s=l[r-1],a.substring(0,s.index+s[0].length)):a;return t.substring(0,o)+u.replace(e,n)+t.substring(o+u.length)}else return t.replace(e,n)}const gn=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g,wn=/(?:(^|[^%])%([0+\- ]*)(\d+)?(?:\.(\d+))?(\w))?%P\(\)/g,Xd=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function Cl(e,t){return pc(e,t)<0}function St(e){return{input:e,cont:eh(e)}}function Qd(e,t){let n=0,r=0,o="";wn.lastIndex=0;let i=wn.exec(e);for(;i;){const s=i.index+(i[1]||"").length;o+=e.substring(r,s).replace(/%%/g,"%");const[,,a,l,u,f]=i;r=wn.lastIndex,o+=kl(t[n++],a,l,u,f),wn.lastIndex=r-1,i=wn.exec(e)}return o+=e.substring(r).replace(/%%/g,"%"),o}function El(e,t){return typeof t=="string"?e(t):t.cont(e)}function Rt(e){return El(t=>t,e)}function xl(e){return El(t=>{throw new Error(t)},e)}function kl(e,t,n,r,o){let i="";if(t=t||"",o=o||"",Fa(e))switch(o.toLowerCase()!=="x"&&(Cl(e,0)?(e=vo(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??6,e=tr(e,r);break;case"g":case"G":e=r!=null?ur(e,r):ur(e);break;case"e":case"E":e=r!=null?cr(e,r):cr(e);break;case"x":e=fr(e);break;case"X":e=fr(e).toUpperCase();break;default:e=String(e);break}else e instanceof Date?e=Or(e):e=Xe(e);if(n=typeof n=="number"?n:parseInt(n,10),isNaN(n))e=i+e;else{const s=t.indexOf("0")>=0,a=t.indexOf("-")>=0,l=a||!s?" ":"0";l==="0"?(e=$n(e,n-i.length,l,a),e=i+e):e=$n(i+e,n,l,a)}return e}function $l(e,t,n,r="",o=-1){return(...i)=>{let s=r;const a=t.slice(),l=n.slice();for(const u of i){const[,,f,c,h,d]=l[0];let p=c;if(o>=0)p=o,o=-1;else if(p==="*"){if(u<0)throw new Error("Non-negative number required");o=u;continue}s+=a[0],s+=kl(u,f,p,h,d),a.splice(0,1),l.splice(0,1)}return l.length===0?(s+=a[0],e(s)):$l(e,a,l,s,o)}}function eh(e){return t=>{gn.lastIndex=0;const n=[],r=[];let o=0,i=gn.exec(e);for(;i;){const s=i.index+(i[1]||"").length;n.push(e.substring(o,s).replace(/%%/g,"%")),r.push(i),o=gn.lastIndex,gn.lastIndex-=1,i=gn.exec(e)}return n.length===0?t(e.replace(/%%/g,"%")):(n.push(e.substring(o).replace(/%%/g,"%")),$l(t,n,r))}}function th(e,...t){let n;return n=e,n.replace(Xd,(r,o,i,s,a,l)=>{if(o<0||o>=t.length)throw new Error("Index must be greater or equal to zero and less than the arguments' length.");let u=t[o];if(Fa(u))switch(a=a==null?null:parseInt(a,10),s){case"f":case"F":a=a??2,u=tr(u,a);break;case"g":case"G":u=a!=null?ur(u,a):ur(u);break;case"e":case"E":u=a!=null?cr(u,a):cr(u);break;case"p":case"P":a=a??2,u=tr(vo(u,100),a)+" %";break;case"d":case"D":u=a!=null?to(String(u),a,"0"):String(u);break;case"x":case"X":u=a!=null?to(fr(u),a,"0"):fr(u),s==="X"&&(u=u.toUpperCase());break;default:if(l){let f="";u=l.replace(/([0#,]+)(\.[0#]+)?/,(c,h,d)=>{Cl(u,0)&&(u=vo(u,-1),f="-"),d=d==null?"":d.substring(1),u=tr(u,Math.max(d.length,0));let[p,g]=u.split(".");g||(g="");const m=h.replace(/,/g,"").replace(/^#+/,"").length;p=to(p,m,"0");const _=d.replace(/#+$/,"").length;if(_>g.length?g=rh(g,_,"0"):_<g.length&&(g=g.substring(0,_)+g.substring(_).replace(/0+$/,"")),h.indexOf(",")>0){const y=p.length%3,C=Math.floor(p.length/3);let D=y>0?p.substr(0,y)+(C>0?",":""):"";for(let W=0;W<C;W++)D+=p.substr(y+W*3,3)+(W<C-1?",":"");p=D}return g.length>0?p+"."+g:p}),u=f+u}}else u instanceof Date?u=Or(u,l||s):u=Xe(u);return i=parseInt((i||" ").substring(1),10),isNaN(i)||(u=$n(String(u),Math.abs(i)," ",i<0)),u})}function nh(e){return typeof e!="string"||e.length===0}function un(e,t){return Array.isArray(t)?t.join(e):Array.from(t).join(e)}function $n(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 to(e,t,n){return $n(e,t,n)}function rh(e,t,n){return $n(e,t,n,!0)}function Tl(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(f=>f).map(Sl),t=t.length>0?t:["\\s"];const s=[],a=new RegExp(t.join("|"),"g");let l=!0,u=0;do{const f=a.exec(e);if(f===null){const c=i?e.substring(u).trim():e.substring(u);(!o||c.length>0)&&s.push(c),l=!1}else{const c=i?e.substring(u,f.index).trim():e.substring(u,f.index);(!o||c.length>0)&&(n!=null&&s.length+1===n?(s.push(i?e.substring(u).trim():e.substring(u)),l=!1):s.push(c)),u=a.lastIndex}}while(l);return s}function oh(e,...t){if(t.length===0)return e.trim();const n="["+Sl(t.join(""))+"]+";return e.replace(new RegExp("^"+n),"").replace(new RegExp(n+"$"),"")}class nn{constructor(t){this.value=t}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return pt(this.value)}Equals(t){return t==null?!1:Oe(this.value,t instanceof nn?t.value:t)}CompareTo(t){return t==null?1:Le(this.value,t instanceof nn?t.value:t)}}function b(e){if(e==null)throw new Error("Option has no value");return e instanceof nn?e.value:e}function pe(e){return e==null||e instanceof nn?new nn(e):e}function Io(e,t){return e!=null?b(e):t}function ih(e,t){return e!=null?b(e):t()}function sh(e,t){return t!=null?pe(e(b(t))):void 0}const Ml="Collection was empty.";function Al(e,t){return new Array(t)}function us(e,t){return e>t?e:t}function Nr(e,t,n,r){const o=t|0;return e.fill(r,o,o+n)}function cn(e,t,n){const r=t.length|0,o=Al(n,r);for(let i=0;i<=r-1;i++)tt(o,i,e(J(i,t)));return o}function ah(e,t){const n=Al(t,1);return tt(n,0,e),n}function lh(e){return e.slice().reverse()}function uh(e,t){return t.find(e)}function ch(e,t,n){const r=[];for(let o=0;o<=t.length-1;o++){const i=e(J(o,t));if(i!=null){const s=b(i);r.push(s)}}return Oe(n,Ke())?r:cn(o=>o,r,n)}function Pr(e,t,n){const r=e;return n.reduce(r,t)}function fh(e,t,n){return t==null}function J(e,t){if(e<0||e>=t.length)throw new Error("Index was outside the bounds of the array.\\nParameter name: index");return t[e]}function tt(e,t,n){if(t<0||t>=e.length)throw new Error("Index was outside the bounds of the array.\\nParameter name: index");e[t]=n}function Il(e,t,n){return t.reduceRight((r,o)=>e(o,r),n)}class be extends He{constructor(t,n){super(),this.head=t,this.tail=n}toString(){return"["+un("; ",this)+"]"}Equals(t){const n=this;return n===t?!0:((o,i)=>{e:for(;;){const s=o,a=i,l=s.tail,u=a.tail;if(l!=null)if(u!=null){const f=b(l),c=b(u);if(Oe(s.head,a.head)){o=f,i=c;continue e}else return!1}else return!1;else return u==null}})(n,t)}GetHashCode(){return((r,o,i)=>{e:for(;;){const s=r,a=o,l=i,u=l.tail;if(u!=null){const f=b(u);if(s>18)return a|0;r=s+1,o=(a<<1)+pt(l.head)+631*s,i=f;continue e}else return a|0}})(0,0,this)|0}toJSON(){const t=this;return Array.from(t)}CompareTo(t){return((o,i)=>{e:for(;;){const s=o,a=i,l=s.tail,u=a.tail;if(l!=null)if(u!=null){const f=b(l),c=b(u),h=Le(s.head,a.head)|0;if(h===0){o=f,i=c;continue e}else return h|0}else return 1;else return u!=null?-1:0}})(this,t)|0}GetEnumerator(){return hh(this)}[Symbol.iterator](){return Cr(ne(this))}"System.Collections.IEnumerable.GetEnumerator"(){return ne(this)}}class dh{constructor(t){this.xs=t,this.it=this.xs,this.current=Ke()}"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=b(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=Ke()}Dispose(){}}function hh(e){return new dh(e)}function ie(){return new be(Ke(),void 0)}function Rn(e,t){return new be(e,t)}function Dr(e){return e.tail==null}function ph(e){return((n,r)=>{e:for(;;){const o=n,s=r.tail;if(s!=null){n=o+1,r=b(s);continue e}else return o|0}})(0,e)|0}function fi(e){if(e.tail!=null)return e.head;throw new Error(Ml+"\\nParameter name: list")}function Qe(e){const t=e.tail;if(t!=null)return b(t);throw new Error(Ml+"\\nParameter name: list")}function ue(){return ie()}function Fe(e,t){return Rn(e,t)}function ee(e){return Rn(e,ie())}function I(e){return Dr(e)}function E(e){return fi(e)}function M(e){return Qe(e)}function Ln(e){const t=ph(e)|0,n=Nr(new Array(t),0,t,null);return((o,i)=>{e:for(;;){const s=o,a=i;if(!Dr(a)){tt(n,s,fi(a)),o=s+1,i=Qe(a);continue e}break}})(0,e),n}function nt(e,t,n){let r=t,o=n;for(;!Dr(o);)r=e(r,E(o)),o=Qe(o);return r}function di(e){return nt((t,n)=>Rn(n,t),ie(),e)}function mh(e,t,n){return Il(e,Ln(t),n)}function Tn(e,t){nt((n,r)=>{e(r)},void 0,t)}function q(e,t){let n=t;for(let r=e.length-1;r>=0;r--)n=Rn(J(r,e),n);return n}function $(e){return q(e,ie())}function gh(e){let t,n;if(Je(e))return $(e);if(e instanceof be)return e;{const r=ie();let o=r;const i=ne(e);try{for(;i["System.Collections.IEnumerator.MoveNext"]();){const l=i["System.Collections.Generic.IEnumerator`1.get_Current"]();o=(t=o,n=new be(l,void 0),t.tail=n,n)}}finally{G(i)}const s=o,a=ie();return s.tail=a,Qe(r)}}function wh(e){const t=ie();let n=t;const r=s=>{n=nt((a,l)=>{const u=new be(l,void 0);return a.tail=u,u},n,s)};if(Je(e))e.forEach(r);else if(e instanceof be)Tn(r,e);else{const s=ne(e);try{for(;s["System.Collections.IEnumerator.MoveNext"]();)r(s["System.Collections.Generic.IEnumerator`1.get_Current"]())}finally{G(s)}}const o=n,i=ie();return o.tail=i,Qe(t)}function hi(e,t){return nt((n,r)=>Rn(r,n),t,di(e))}function Ol(e,t){const n=ie(),r=nt((i,s)=>{const a=new be(e(s),void 0);return i.tail=a,a},n,t),o=ie();return r.tail=o,Qe(n)}function _h(e,t){return((r,o)=>{e:for(;;){const i=r,s=o;if(Dr(s))return;if(e(fi(s)))return i;r=i+1,o=Qe(s);continue e}})(0,t)}function yh(e,t){const n=ie(),r=nt((i,s)=>{if(e(s)){const a=new be(s,void 0);return i.tail=a,a}else return i},n,t),o=ie();return r.tail=o,Qe(n)}function bh(e,t){const n=ie(),r=ie(),o=n,i=nt((l,u)=>{let f,c;const h=l[0],d=l[1];return e(u)?[(f=new be(u,void 0),h.tail=f,f),d]:[h,(c=new be(u,void 0),d.tail=c,c)]},[o,r],t),s=ie();i[0].tail=s;const a=ie();return i[1].tail=a,[Qe(o),Qe(r)]}function vh(e,t){const n=ie(),r=nt((i,s)=>{const a=e(s);if(a==null)return i;{const l=new be(b(a),void 0);return i.tail=l,l}},n,t),o=ie();return r.tail=o,Qe(n)}function Nl(e,t,n){return _h(r=>n.Equals(e,r),t)!=null}const X=x;function Sh(e){throw new Error(e)}const Ch="Enumeration already finished.",Eh="Enumeration has not started. Call MoveNext.",Pl="The input sequence has an insufficient number of elements.",xh="Reset is not supported on this enumerator.";function kh(){throw new Error(xh)}function pi(){throw new Error(Eh)}function Oo(){throw new Error(Ch)}class $h{constructor(t){this.f=t}toString(){const t=this;let n=0,r="seq [";const o=ne(t);try{for(;n<4&&o["System.Collections.IEnumerator.MoveNext"]();)n>0&&(r=r+"; "),r=r+Xe(o["System.Collections.Generic.IEnumerator`1.get_Current"]()),n=n+1|0;return n===4&&(r=r+"; ..."),r+"]"}finally{G(o)}}GetEnumerator(){return this.f()}[Symbol.iterator](){return Cr(ne(this))}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}function Th(e){return new $h(e)}class Mh{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"(){kh()}Dispose(){this.dispose()}}function Fr(e,t,n){return new Mh(e,t,n)}function Ah(e){let t,n,r=!1,o=!1,i;const s=()=>{if(o=!0,n!=null){const a=b(n);try{G(a)}finally{n=void 0}}if(t!=null){const a=b(t);try{G(a)}finally{t=void 0}}};return Fr(()=>(r?o&&Oo():pi(),i!=null?b(i):Oo()),()=>{let a;if(r||(r=!0),o)return!1;{let l;for(;l==null;){const u=t,f=n;if(u!=null)if(f!=null){const c=b(f);if(c["System.Collections.IEnumerator.MoveNext"]())i=pe(c["System.Collections.Generic.IEnumerator`1.get_Current"]()),l=!0;else try{G(c)}finally{n=void 0}}else{const c=b(u);c["System.Collections.IEnumerator.MoveNext"]()?n=(a=c["System.Collections.Generic.IEnumerator`1.get_Current"](),ne(a)):(s(),l=!1)}else t=ne(e)}return b(l)}},()=>{o||s()})}function Ih(e,t){return Fr(()=>t["System.Collections.Generic.IEnumerator`1.get_Current"](),()=>t["System.Collections.IEnumerator.MoveNext"](),()=>{try{G(t)}finally{}})}function Dl(e,t,n){let r=!1,o,i=pe(e());const s=()=>{if(i!=null){const l=b(i);try{n(l)}finally{i=void 0}}},a=()=>{try{s()}finally{o=void 0}};return Fr(()=>(r||pi(),o!=null?b(o):Oo()),()=>{if(r||(r=!0),i!=null){const l=b(i);let u;try{u=t(l)}catch(f){throw a(),f}return u!=null?(o=u,!0):(a(),!1)}else return!1},s)}function Oh(e,t){let n,r=t;return Fr(()=>{if(n!=null){const o=b(n)[0];return b(n)[1],o}else return pi()},()=>(n=e(r),n!=null?(b(n)[0],r=b(n)[1],!0):!1),()=>{})}function Nh(e,t){t==null&&Sh(e)}function fn(e){return Th(e)}function Ct(e){return Nh("source",e),ne(e)}function te(e){return fn(()=>ne(e()))}function Fl(e){return fn(()=>Ah(e))}function Ph(e,t){return fn(()=>Oh(e,t))}function Rl(){return te(()=>new Array(0))}function Ee(e){return te(()=>ah(e))}function Dh(e){return e instanceof be?Ln(e):Array.from(e)}function _r(e){return Je(e)?$(e):e instanceof be?e:gh(e)}function Fh(e,t,n){return fn(()=>Dl(e,t,n))}function Ll(e,t,n){return fn(()=>{let r=-1;return Dl(e,o=>(r=r+1|0,t(r,o)),n)})}function Ye(e,t){return Fl([e,t])}function Rh(e,t,n){const r=Ct(t);try{const o=Ct(n);try{let i=0,s=r["System.Collections.IEnumerator.MoveNext"](),a=o["System.Collections.IEnumerator.MoveNext"]();for(;i===0&&s&&a;)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"](),a=o["System.Collections.IEnumerator.MoveNext"]());return(i!==0?i:s?1:a?-1:0)|0}finally{G(o)}}finally{G(r)}}function Gt(e,t,n){const r=Ct(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{G(r)}}function Rr(e,t,n){const r=Ct(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{G(r)}}function Hl(e,t){Rr((n,r)=>{e(r)},void 0,t)}function Re(e,t){return Fh(()=>Ct(t),n=>n["System.Collections.IEnumerator.MoveNext"]()?pe(e(n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{G(n)})}function Lh(e,t){return Ll(()=>Ct(t),(n,r)=>r["System.Collections.IEnumerator.MoveNext"]()?pe(e(n,r["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{G(n)})}function Hh(e){return te(()=>lh(Dh(e)))}function Uh(e,t){return fn(()=>{const n=Ct(t);try{for(let r=1;r<=e;r++)if(!n["System.Collections.IEnumerator.MoveNext"]())throw new Error(Pl+"\\nParameter name: source");return Ih(()=>{},n)}catch(r){throw G(n),r}})}function Vh(e,t){return Ll(()=>Ct(t),(n,r)=>{if(n<e){if(r["System.Collections.IEnumerator.MoveNext"]())return pe(r["System.Collections.Generic.IEnumerator`1.get_Current"]());throw new Error(Pl+"\\nParameter name: source")}else return},n=>{G(n)})}function jh(e,t){return te(()=>Fl(Re(e,t)))}function Bh(e){return new w(0,[e])}function Ul(e){return new w(1,[e])}class w extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Ok","Error"]}}function mt(e,t){return t.tag===0?Bh(e(t.fields[0])):Ul(t.fields[0])}function Gh(e,t){return t.tag===0?e(t.fields[0]):Ul(t.fields[0])}class S extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class dn extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["PascalCase","CamelCase","SnakeCase"]}}function cs(e){return e.slice(void 0,1).toLowerCase()+e.slice(1,e.length)}function Vl(e,t){switch(e.tag){case 2:return Kd(cs(t),"[A-Z]","_$0").toLowerCase();case 0:return t;default:return cs(t)}}const zh=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,fs=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,Wh=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function qh(e){function t(r){return r.replace(fs,"$1-$2-$3-$4-$5")}const n=e.trim().toLowerCase();if(zh.test(n))return oh(n,"{","}","(",")");if(fs.test(n))return t(n);if(Wh.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 Yh(e,t){try{return t.contents=qh(e),!0}catch{return!1}}var No;(function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"})(No||(No={}));function Zh(e,t){const[,n,r,o]=e;return{sign:n||"",prefix:r||"",digits:o,radix:t}}function ds(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 Jh(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 Kh(e,t){if(t&No.AllowHexSpecifier)return 16;switch(e){case"0b":case"0B":return 2;case"0o":case"0O":return 8;case"0x":case"0X":return 16;default:return 10}}function Xh(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||Kh(i,t),!Jh(n).test(s))return Zh(o,n)}return null}function Qh(e,t,n,r,o){const i=Xh(e,t,o);if(i!=null){let s=Number.parseInt(i.sign+i.digits,i.radix);if(!Number.isNaN(s)){const[a,l]=ds(!0,r);!n&&i.radix!==10&&s>=a&&s<=l&&(s=s<<32-r>>32-r);const[u,f]=ds(n,r);if(s>=u&&s<=f)return s}}throw new Error(`The input string ${e} was not in a correct format.`)}function hn(e,t,n,r,o){try{return o.contents=Qh(e,t,n,r),!0}catch{return!1}}function jl(e,t){ep(t);const n=new Date(e);return n.offset=t??new Date().getTimezoneOffset()*-6e4,n}function ep(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 tp(){return jl(-621355968e5,0)}function np(e){const[t,n]=vl(e),r=n==null?t.getTimezoneOffset()*-6e4:n==="Z"?0:n*6e4;return jl(t.getTime(),r)}function rp(e,t){try{return t.contents=np(e),!0}catch{return!1}}function Hn(e){return e<0?Math.ceil(e):Math.floor(e)}function hs(e=0,t=0,n=0,r=0,o=0){switch(arguments.length){case 1:return op(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 op(e){return Number(BigInt(e)/10000n)}function ip(e){return Hn(e/864e5)}function sp(e){return Hn(e%864e5/36e5)}function ap(e){return Hn(e%36e5/6e4)}function lp(e){return Hn(e%6e4/1e3)}function up(e){return Hn(e%1e3)}function cp(e,t="c",n){if(["c","g","G"].indexOf(t)===-1)throw new Error("Custom formats are not supported");const r=Math.abs(ip(e)),o=Math.abs(sp(e)),i=Math.abs(ap(e)),s=Math.abs(lp(e)),a=Math.abs(up(e));return`${e<0?"-":""}${r===0&&(t==="c"||t==="g")?"":t==="c"?r+".":r+":"}${t==="g"?o:P(o,2)}:${P(i,2)}:${P(s,2)}${a===0&&(t==="c"||t==="g")?"":t==="g"?"."+P(a,3):"."+qu(a,3,7)}`}function fp(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 hs(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 a=r[1]!=null&&r[1]==="-"?-1:1,l=+r[4],u=+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 a*hs(o,l,u,s,i)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}function dp(e,t){try{return t.contents=fp(e),!0}catch{return!1}}class Bl{constructor(t,n){this.k=t,this.v=n}}function yr(e,t){return new Bl(e,t)}function _e(e){return e.k}function Ie(e){return e.v}class oe extends Bl{constructor(t,n,r,o,i){super(t,n),this.left=r,this.right=o,this.h=i|0}}function rr(e,t,n,r,o){return new oe(e,t,n,r,o)}function ge(e){return e.left}function we(e){return e.right}function Pt(e){return e.h}function Gl(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=b(r);if(o instanceof oe){const i=o;e=Gl(n+1,ge(i)),t=we(i);continue e}else return n+1|0}else return n|0}}function hp(e){return Gl(0,e)}function Be(e,t,n,r){let o,i,s;const a=e;if(a!=null){const c=b(a);s=c instanceof oe?(o=c,Pt(o)):1}else s=0;let l;const u=r;if(u!=null){const c=b(u);l=c instanceof oe?(i=c,Pt(i)):1}else l=0;const f=(s<l?l:s)|0;return f===0?yr(t,n):rr(t,n,e,r,f+1)}function ps(e,t,n,r){let o,i,s,a,l,u,f,c,h;const d=e;if(d!=null){const m=b(d);h=m instanceof oe?(o=m,Pt(o)):1}else h=0;let p;const g=r;if(g!=null){const m=b(g);p=m instanceof oe?(i=m,Pt(i)):1}else p=0;if(p>h+2){const m=b(r);if(m instanceof oe){const _=m;if(s=ge(_),(s!=null?(a=b(s),a instanceof oe?(l=a,Pt(l)):1):0)>h+1){const y=b(ge(_));if(y instanceof oe){const C=y;return Be(Be(e,t,n,ge(C)),_e(C),Ie(C),Be(we(C),_e(_),Ie(_),we(_)))}else throw new Error("internal error: Map.rebalance")}else return Be(Be(e,t,n,ge(_)),_e(_),Ie(_),we(_))}else throw new Error("internal error: Map.rebalance")}else if(h>p+2){const m=b(e);if(m instanceof oe){const _=m;if(u=we(_),(u!=null?(f=b(u),f instanceof oe?(c=f,Pt(c)):1):0)>p+1){const y=b(we(_));if(y instanceof oe){const C=y;return Be(Be(ge(_),_e(_),Ie(_),ge(C)),_e(C),Ie(C),Be(we(C),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return Be(ge(_),_e(_),Ie(_),Be(we(_),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return Be(e,t,n,r)}function rn(e,t,n,r){if(r!=null){const o=b(r),i=e.Compare(t,_e(o))|0;if(o instanceof oe){const s=o;return i<0?ps(rn(e,t,n,ge(s)),_e(s),Ie(s),we(s)):i===0?rr(t,n,ge(s),we(s),Pt(s)):ps(ge(s),_e(s),Ie(s),rn(e,t,n,we(s)))}else return i<0?rr(t,n,void 0,r,2):i===0?yr(t,n):rr(t,n,r,void 0,2)}else return yr(t,n)}function zl(e,t,n){e:for(;;){const r=e,o=t,i=n;if(i!=null){const s=b(i),a=r.Compare(o,_e(s))|0;if(a===0)return pe(Ie(s));if(s instanceof oe){const l=s;e=r,t=o,n=a<0?ge(l):we(l);continue e}else return}else return}}function pp(e,t,n){const r=zl(e,t,n);if(r==null)throw new Error;return b(r)}function mp(e,t,n){e:for(;;){const r=e,o=t,i=n;if(i!=null){const s=b(i),a=r.Compare(o,_e(s))|0;if(s instanceof oe){const l=s;if(a<0){e=r,t=o,n=ge(l);continue e}else{if(a===0)return!0;e=r,t=o,n=we(l);continue e}}else return a===0}else return!1}}function Wl(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=b(r);if(o instanceof oe){const i=o;Wl(n,ge(i)),n(_e(i),Ie(i)),e=n,t=we(i);continue e}else n(_e(o),Ie(o))}break}}function gp(e,t){Wl(e,t)}function wp(e,t,n){let r=n;gp((o,i)=>{tt(t,r,[o,i]),r=r+1|0},e)}function _p(e,t){return nt((n,r)=>rn(e,r[0],r[1],n),void 0,t)}function yp(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=rn(r,s[0],s[1],o),n=i;continue e}else return o}}function bp(e,t){let n=void 0;for(let r=0;r<=t.length-1;r++){const o=J(r,t);n=rn(e,o[0],o[1],n)}return n}function ql(e,t){if(Je(t))return bp(e,t);if(t instanceof be)return _p(e,t);{const n=ne(t);try{return yp(e,void 0,n)}finally{G(n)}}}class vp extends He{constructor(t,n){super(),this.stack=t,this.started=n}}function Yl(e){e:for(;;){const t=e;if(I(t))return ue();{const n=M(t),r=E(t);if(r!=null){const o=b(r);if(o instanceof oe){const i=o;e=q([ge(i),yr(_e(i),Ie(i)),we(i)],n);continue e}else return t}else{e=n;continue e}}}}function ms(e){return new vp(Yl(ee(e)),!1)}function Sp(){throw new Error("enumeration not started")}function Cp(){throw new Error("enumeration already finished")}function gs(e){if(e.started){const t=e.stack;if(I(t))return Cp();if(E(t)!=null){const n=b(E(t));if(n instanceof oe)throw new Error("Please report error: Map iterator, unexpected stack for current");return[_e(n),Ie(n)]}else throw new Error("Please report error: Map iterator, unexpected stack for current")}else return Sp()}function Ep(e){if(e.started){const t=e.stack;if(I(t))return!1;if(E(t)!=null){if(b(E(t))instanceof oe)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=Yl(M(t)),!I(e.stack)}else throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}else return e.started=!0,!I(e.stack)}function ws(e){let t=ms(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return gs(t)},"System.Collections.IEnumerator.get_Current"(){return gs(t)},"System.Collections.IEnumerator.MoveNext"(){return Ep(t)},"System.Collections.IEnumerator.Reset"(){t=ms(e)},Dispose(){}}}class br{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return Tp(this)|0}Equals(t){const n=this;if(t instanceof br){const r=t,o=ne(n);try{const i=ne(r);try{const s=()=>{const a=o["System.Collections.IEnumerator.MoveNext"]();if(a===i["System.Collections.IEnumerator.MoveNext"]())if(a){const l=o["System.Collections.Generic.IEnumerator`1.get_Current"](),u=i["System.Collections.Generic.IEnumerator`1.get_Current"]();return Oe(l[0],u[0])&&Oe(l[1],u[1])?s():!1}else return!0;else return!1};return s()}finally{G(i)}}finally{G(o)}}else return!1}toString(){return"map ["+un("; ",Re(n=>th("({0}, {1})",n[0],n[1]),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(){const t=this;return Array.from(t)}GetEnumerator(){return ws(this.tree)}[Symbol.iterator](){return Cr(ne(this))}"System.Collections.IEnumerable.GetEnumerator"(){return ws(this.tree)}CompareTo(t){const n=this;if(t instanceof br)return Rh((o,i)=>{const s=n.comparer.Compare(o[0],i[0])|0;return(s!==0?s:Le(o[1],i[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 ys(n,t[0])&&Oe(_s(n,t[0]),t[1])}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){wp(this.tree,t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return no(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return no(this)|0}get size(){return no(this)|0}clear(){throw new Error("Map cannot be mutated")}delete(t){throw new Error("Map cannot be mutated")}entries(){return Re(n=>[n[0],n[1]],this)}get(t){return _s(this,t)}has(t){return ys(this,t)}keys(){return Re(n=>n[0],this)}set(t,n){throw new Error("Map cannot be mutated")}values(){return Re(n=>n[1],this)}forEach(t,n){const r=this;Hl(o=>{t(o[1],o[0],r)},r)}}function Lr(e,t){return new br(e,t)}function xp(e){return Lr(e,void 0)}function kp(e,t,n){return Lr(e.comparer,rn(e.comparer,t,n,e.tree))}function _s(e,t){return pp(e.comparer,t,e.tree)}function no(e){return hp(e.tree)}function ys(e,t){return mp(e.comparer,t,e.tree)}function $p(e,t){return zl(e.comparer,t,e.tree)}function Tp(e){const t=(o,i)=>(o<<1)+i+631;let n=0;const r=ne(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const o=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n=t(n,pt(o[0]))|0,n=t(n,pt(o[1]))|0}}finally{G(r)}return n|0}function Zl(e,t,n){return kp(n,e,t)}function Jl(e,t){return $p(t,e)}function Mp(e,t){return Lr(t,ql(t,e))}function Ap(e,t){return Lr(t,ql(t,e))}function mi(e){return xp(e)}class Kl{constructor(t){this.k=t}}function $e(e){return new Kl(e)}function k(e){return e.k}class O extends Kl{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 O(e,t,n,r)}function U(e){return e.left}function F(e){return e.right}function qt(e){return e.h}function Xl(e,t){e:for(;;){const n=e,r=t;if(n!=null){const o=b(n);if(o instanceof O){const i=o;e=U(i),t=Xl(F(i),r+1);continue e}else return r+1|0}else return r|0}}function Ip(e){return Xl(e,0)}function Ge(e,t,n){let r,o,i;const s=e;if(s!=null){const f=b(s);i=f instanceof O?(r=f,qt(r)):1}else i=0;let a;const l=n;if(l!=null){const f=b(l);a=f instanceof O?(o=f,qt(o)):1}else a=0;const u=(i<a?a:i)|0;return u===0?$e(t):Te(t,e,n,u+1)}function bs(e,t,n){let r,o,i,s,a,l,u,f,c;const h=e;if(h!=null){const g=b(h);c=g instanceof O?(r=g,qt(r)):1}else c=0;let d;const p=n;if(p!=null){const g=b(p);d=g instanceof O?(o=g,qt(o)):1}else d=0;if(d>c+2){const g=b(n);if(g instanceof O){const m=g;if(i=U(m),(i!=null?(s=b(i),s instanceof O?(a=s,qt(a)):1):0)>c+1){const _=b(U(m));if(_ instanceof O){const y=_;return Ge(Ge(e,t,U(y)),k(y),Ge(F(y),k(m),F(m)))}else throw new Error("internal error: Set.rebalance")}else return Ge(Ge(e,t,U(m)),k(m),F(m))}else throw new Error("internal error: Set.rebalance")}else if(c>d+2){const g=b(e);if(g instanceof O){const m=g;if(l=F(m),(l!=null?(u=b(l),u instanceof O?(f=u,qt(f)):1):0)>d+1){const _=b(F(m));if(_ instanceof O){const y=_;return Ge(Ge(U(m),k(m),U(y)),k(y),Ge(F(y),t,n))}else throw new Error("internal error: Set.rebalance")}else return Ge(U(m),k(m),Ge(F(m),t,n))}else throw new Error("internal error: Set.rebalance")}else return Ge(e,t,n)}function on(e,t,n){if(n!=null){const r=b(n),o=e.Compare(t,k(r))|0;if(r instanceof O){const i=r;return o<0?bs(on(e,t,U(i)),k(i),F(i)):o===0?n:bs(U(i),k(i),on(e,t,F(i)))}else{const i=e.Compare(t,k(r))|0;return i<0?Te(t,void 0,n,2):i===0?n:Te(t,n,void 0,2)}}else return $e(t)}function Ql(e,t,n){e:for(;;){const r=e,o=t,i=n;if(i!=null){const s=b(i),a=r.Compare(o,k(s))|0;if(s instanceof O){const l=s;if(a<0){e=r,t=o,n=U(l);continue e}else{if(a===0)return!0;e=r,t=o,n=F(l);continue e}}else return a===0}else return!1}}function eu(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=b(r);if(o instanceof O){const i=o;eu(n,U(i)),n(k(i)),e=n,t=F(i);continue e}else n(k(o))}break}}class Op extends He{constructor(t,n){super(),this.stack=t,this.started=n}}function tu(e){e:for(;;){const t=e;if(I(t))return ue();{const n=E(t),r=M(t);if(n!=null){const o=b(n);if(o instanceof O){const i=o;e=q([U(i),$e(k(i)),F(i)],r);continue e}else return t}else{e=r;continue e}}}}function vs(e){return new Op(tu(ee(e)),!1)}function Np(){throw new Error("Enumeration not started")}function Pp(){throw new Error("Enumeration already started")}function Ss(e){if(e.started){const t=e.stack;if(I(t))return Pp();if(E(t)!=null){const n=b(E(t));return k(n)}else throw new Error("Please report error: Set iterator, unexpected stack for current")}else return Np()}function Dp(e){if(e.started){const t=e.stack;if(I(t))return!1;if(E(t)!=null){if(b(E(t))instanceof O)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=tu(M(t)),!I(e.stack)}else throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}else return e.started=!0,!I(e.stack)}function Cs(e){let t=vs(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return Ss(t)},"System.Collections.IEnumerator.get_Current"(){return Ss(t)},"System.Collections.IEnumerator.MoveNext"(){return Dp(t)},"System.Collections.IEnumerator.Reset"(){t=vs(e)},Dispose(){}}}function Fp(e,t,n){e:for(;;){const r=e,o=t,i=n;if(I(o))return I(i)?0:-1;if(I(i))return 1;if(E(i)!=null)if(E(o)!=null){const s=b(E(o)),a=b(E(i));if(s instanceof O){const l=s;if(U(l)==null)if(a instanceof O){const u=a;if(U(u)==null){const f=r.Compare(k(l),k(u))|0;if(f!==0)return f|0;e=r,t=Fe(F(l),M(o)),n=Fe(F(u),M(i));continue e}else{let f,c,h,d,p;switch(I(o)?I(i)?f=2:E(i)!=null?(f=1,d=M(i),p=b(E(i))):f=2:E(o)!=null?(f=0,c=M(o),h=b(E(o))):I(i)?f=2:E(i)!=null?(f=1,d=M(i),p=b(E(i))):f=2,f){case 0:if(h instanceof O){const g=h;e=r,t=q([U(g),Te(k(g),void 0,F(g),0)],c),n=i;continue e}else{e=r,t=q([void 0,$e(k(h))],c),n=i;continue e}case 1:if(p instanceof O){const g=p;e=r,t=o,n=q([U(g),Te(k(g),void 0,F(g),0)],d);continue e}else{e=r,t=o,n=q([void 0,$e(k(p))],d);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const u=r.Compare(k(l),k(a))|0;if(u!==0)return u|0;e=r,t=Fe(F(l),M(o)),n=Fe(void 0,M(i));continue e}else{let u,f,c,h,d;switch(I(o)?I(i)?u=2:E(i)!=null?(u=1,h=M(i),d=b(E(i))):u=2:E(o)!=null?(u=0,f=M(o),c=b(E(o))):I(i)?u=2:E(i)!=null?(u=1,h=M(i),d=b(E(i))):u=2,u){case 0:if(c instanceof O){const p=c;e=r,t=q([U(p),Te(k(p),void 0,F(p),0)],f),n=i;continue e}else{e=r,t=q([void 0,$e(k(c))],f),n=i;continue e}case 1:if(d instanceof O){const p=d;e=r,t=o,n=q([U(p),Te(k(p),void 0,F(p),0)],h);continue e}else{e=r,t=o,n=q([void 0,$e(k(d))],h);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else if(a instanceof O){const l=a;if(U(l)==null){const u=r.Compare(k(s),k(l))|0;if(u!==0)return u|0;e=r,t=Fe(void 0,M(o)),n=Fe(F(l),M(i));continue e}else{let u,f,c,h,d;switch(I(o)?I(i)?u=2:E(i)!=null?(u=1,h=M(i),d=b(E(i))):u=2:E(o)!=null?(u=0,f=M(o),c=b(E(o))):I(i)?u=2:E(i)!=null?(u=1,h=M(i),d=b(E(i))):u=2,u){case 0:if(c instanceof O){const p=c;e=r,t=q([U(p),Te(k(p),void 0,F(p),0)],f),n=i;continue e}else{e=r,t=q([void 0,$e(k(c))],f),n=i;continue e}case 1:if(d instanceof O){const p=d;e=r,t=o,n=q([U(p),Te(k(p),void 0,F(p),0)],h);continue e}else{e=r,t=o,n=q([void 0,$e(k(d))],h);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const l=r.Compare(k(s),k(a))|0;if(l!==0)return l|0;e=r,t=M(o),n=M(i);continue e}}else{b(E(i));let s,a,l,u,f;switch(I(o)?I(i)?s=2:E(i)!=null?(s=1,u=M(i),f=b(E(i))):s=2:E(o)!=null?(s=0,a=M(o),l=b(E(o))):I(i)?s=2:E(i)!=null?(s=1,u=M(i),f=b(E(i))):s=2,s){case 0:if(l instanceof O){const c=l;e=r,t=q([U(c),Te(k(c),void 0,F(c),0)],a),n=i;continue e}else{e=r,t=q([void 0,$e(k(l))],a),n=i;continue e}case 1:if(f instanceof O){const c=f;e=r,t=o,n=q([U(c),Te(k(c),void 0,F(c),0)],u);continue e}else{e=r,t=o,n=q([void 0,$e(k(f))],u);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else if(E(o)!=null){b(E(o));let s,a,l,u,f;switch(I(o)?I(i)?s=2:E(i)!=null?(s=1,u=M(i),f=b(E(i))):s=2:E(o)!=null?(s=0,a=M(o),l=b(E(o))):I(i)?s=2:E(i)!=null?(s=1,u=M(i),f=b(E(i))):s=2,s){case 0:if(l instanceof O){const c=l;e=r,t=q([U(c),Te(k(c),void 0,F(c),0)],a),n=i;continue e}else{e=r,t=q([void 0,$e(k(l))],a),n=i;continue e}case 1:if(f instanceof O){const c=f;e=r,t=o,n=q([U(c),Te(k(c),void 0,F(c),0)],u);continue e}else{e=r,t=o,n=q([void 0,$e(k(f))],u);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else{e=r,t=M(o),n=M(i);continue e}}}function Es(e,t,n){return t==null?n==null?0:-1:n==null?1:Fp(e,ee(t),ee(n))|0}function Rp(e,t,n){let r=n;eu(o=>{tt(t,r,o),r=r+1|0},e)}function Lp(e,t,n){e:for(;;){const r=e,o=t,i=n;if(i["System.Collections.IEnumerator.MoveNext"]()){e=r,t=on(r,i["System.Collections.Generic.IEnumerator`1.get_Current"](),o),n=i;continue e}else return o}}function Hp(e,t){return Pr((n,r)=>on(e,r,n),void 0,t)}function Up(e,t){return nt((n,r)=>on(e,r,n),void 0,t)}function nu(e,t){if(Je(t))return Hp(e,t);if(t instanceof be)return Up(e,t);{const n=ne(t);try{return Lp(e,void 0,n)}finally{G(n)}}}class gi{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return Bp(this)|0}Equals(t){let n;const r=this;return t instanceof gi&&(n=t,Es(Jt(r),ze(r),ze(n))===0)}toString(){return"set ["+un("; ",Re(n=>Xe(n),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(){const t=this;return Array.from(t)}CompareTo(t){const n=this;return Es(Jt(n),ze(n),ze(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 Ql(Jt(n),t,ze(n))}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){Rp(ze(this),t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return ro(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return ro(this)|0}GetEnumerator(){return Cs(ze(this))}[Symbol.iterator](){return Cr(ne(this))}"System.Collections.IEnumerable.GetEnumerator"(){return Cs(ze(this))}get size(){return ro(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 ru(this,t)}keys(){return Re(n=>n,this)}values(){return Re(n=>n,this)}entries(){return Re(n=>[n,n],this)}forEach(t,n){const r=this;Hl(o=>{t(o,o,r)},r)}}function Hr(e,t){return new gi(e,t)}function Jt(e){return e.comparer}function ze(e){return e.tree}function Vp(e){return Hr(e,void 0)}function jp(e,t){return Hr(Jt(e),on(Jt(e),t,ze(e)))}function ro(e){return Ip(ze(e))}function ru(e,t){return Ql(Jt(e),t,ze(e))}function Bp(e){let t=0;const n=ne(e);try{for(;n["System.Collections.IEnumerator.MoveNext"]();){const r=n["System.Collections.Generic.IEnumerator`1.get_Current"]();t=(t<<1)+pt(r)+631|0}}finally{G(n)}return Math.abs(t)|0}function Po(e,t){return ru(t,e)}function Gp(e,t){return jp(t,e)}function zp(e){return Vp(e)}function Wp(e,t){return Hr(t,nu(t,e))}function qp(e,t){return Hr(t,nu(t,e))}function _n(e,t,n){try{return"Expecting "+e+" but instead got:"+(n?`
6
+ `));let c=u.props,h=typeof(c==null?void 0:c.className)=="function"?(...p)=>sr(c==null?void 0:c.className(...p),a.className):sr(c==null?void 0:c.className,a.className),d=h?{className:h}:{};return mo(u,Object.assign({},na(u.props,$o(To(a,["ref"]))),f,l,Dc(u.ref,l.ref),d))}return v(o,Object.assign({},To(a,["ref"]),o!==ie&&l,o!==ie&&f),u)}function Dc(...e){return{ref:e.every(t=>t==null)?void 0:t=>{for(let n of e)n!=null&&(typeof n=="function"?n(t):n.current=t)}}}function na(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let o in r)o.startsWith("on")&&typeof r[o]=="function"?(n[o]!=null||(n[o]=[]),n[o].push(r[o])):t[o]=r[o];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map(r=>[r,void 0])));for(let r in n)Object.assign(t,{[r](o,...i){let s=n[r];for(let a of s){if((o instanceof Event||(o==null?void 0:o.nativeEvent)instanceof Event)&&o.defaultPrevented)return;a(o,...i)}}});return t}function we(e){var t;return Object.assign(fo(e),{displayName:(t=e.displayName)!=null?t:e.name})}function $o(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function To(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function ra(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=(t==null?void 0:t.getAttribute("disabled"))==="";return r&&Fc(n)?!1:r}function Fc(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}function Rc(e){var t,n;let r=(t=e==null?void 0:e.form)!=null?t:e.closest("form");if(r){for(let o of r.elements)if(o!==e&&(o.tagName==="INPUT"&&o.type==="submit"||o.tagName==="BUTTON"&&o.type==="submit"||o.nodeName==="INPUT"&&o.type==="image")){o.click();return}(n=r.requestSubmit)==null||n.call(r)}}let Lc="div";var Sn=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(Sn||{});function Hc(e,t){let{features:n=1,...r}=e,o={ref:t,"aria-hidden":(n&2)===2?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(n&4)===4&&(n&2)!==2&&{display:"none"}}};return ge({ourProps:o,theirProps:r,slot:{},defaultTag:Lc,name:"Hidden"})}let ur=we(Hc),Mo=xe(null);Mo.displayName="OpenClosedContext";var Me=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Me||{});function Ao(){return ae(Mo)}function Uc({value:e,children:t}){return x.createElement(Mo.Provider,{value:e},t)}var cr=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(cr||{});function Vc(e,t,n){let[r,o]=Q(n),i=e!==void 0,s=M(i),a=M(!1),l=M(!1);return i&&!s.current&&!a.current?(a.current=!0,s.current=i,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")):!i&&s.current&&!l.current&&(l.current=!0,s.current=i,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")),[i?e:r,I(u=>(i||o(u),t==null?void 0:t(u)))]}function Io(e,t){let n=M([]),r=I(e);F(()=>{let o=[...n.current];for(let[i,s]of t.entries())if(n.current[i]!==s){let a=r(t,o);return n.current=t,a}},[r,...t])}function jc(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function Cn(...e){return q(()=>Js(...e),[...e])}var En=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(En||{});function Bc(){let e=M(0);return Qs("keydown",t=>{t.key==="Tab"&&(e.current=t.shiftKey?1:0)},!0),e}function xn(){let e=M(!1);return me(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function oa(e,t,n,r){let o=ct(n);F(()=>{e=e??window;function i(s){o.current(s)}return e.addEventListener(t,i,r),()=>e.removeEventListener(t,i,r)},[e,t,r])}function Gc(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}function ia(e){let t=I(e),n=M(!1);F(()=>(n.current=!1,()=>{n.current=!0,nr(()=>{n.current&&t()})}),[t])}function sa(e){if(!e)return new Set;if(typeof e=="function")return new Set(e());let t=new Set;for(let n of e.current)n.current instanceof HTMLElement&&t.add(n.current);return t}let zc="div";var aa=(e=>(e[e.None=1]="None",e[e.InitialFocus=2]="InitialFocus",e[e.TabLock=4]="TabLock",e[e.FocusLock=8]="FocusLock",e[e.RestoreFocus=16]="RestoreFocus",e[e.All=30]="All",e))(aa||{});function Wc(e,t){let n=M(null),r=Te(n,t),{initialFocus:o,containers:i,features:s=30,...a}=e;Jt()||(s=1);let l=Cn(n);Zc({ownerDocument:l},!!(s&16));let u=Jc({ownerDocument:l,container:n,initialFocus:o},!!(s&2));Kc({ownerDocument:l,container:n,containers:i,previousActiveElement:u},!!(s&8));let f=Bc(),c=I(g=>{let m=n.current;m&&(_=>_())(()=>{fe(f.current,{[En.Forwards]:()=>{or(m,Ot.First,{skipElements:[g.relatedTarget]})},[En.Backwards]:()=>{or(m,Ot.Last,{skipElements:[g.relatedTarget]})}})})}),h=rr(),d=M(!1),p={ref:r,onKeyDown(g){g.key=="Tab"&&(d.current=!0,h.requestAnimationFrame(()=>{d.current=!1}))},onBlur(g){let m=sa(i);n.current instanceof HTMLElement&&m.add(n.current);let _=g.relatedTarget;_ instanceof HTMLElement&&_.dataset.headlessuiFocusGuard!=="true"&&(la(m,_)||(d.current?or(n.current,fe(f.current,{[En.Forwards]:()=>Ot.Next,[En.Backwards]:()=>Ot.Previous})|Ot.WrapAround,{relativeTo:g.target}):g.target instanceof HTMLElement&&Nt(g.target)))}};return x.createElement(x.Fragment,null,!!(s&4)&&x.createElement(ur,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:c,features:Sn.Focusable}),ge({ourProps:p,theirProps:a,defaultTag:zc,name:"FocusTrap"}),!!(s&4)&&x.createElement(ur,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:c,features:Sn.Focusable}))}let qc=we(Wc),kn=Object.assign(qc,{features:aa}),yt=[];Gc(()=>{function e(t){t.target instanceof HTMLElement&&t.target!==document.body&&yt[0]!==t.target&&(yt.unshift(t.target),yt=yt.filter(n=>n!=null&&n.isConnected),yt.splice(10))}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});function Yc(e=!0){let t=M(yt.slice());return Io(([n],[r])=>{r===!0&&n===!1&&nr(()=>{t.current.splice(0)}),r===!1&&n===!0&&(t.current=yt.slice())},[e,yt,t]),I(()=>{var n;return(n=t.current.find(r=>r!=null&&r.isConnected))!=null?n:null})}function Zc({ownerDocument:e},t){let n=Yc(t);Io(()=>{t||(e==null?void 0:e.activeElement)===(e==null?void 0:e.body)&&Nt(n())},[t]),ia(()=>{t&&Nt(n())})}function Jc({ownerDocument:e,container:t,initialFocus:n},r){let o=M(null),i=xn();return Io(()=>{if(!r)return;let s=t.current;s&&nr(()=>{if(!i.current)return;let a=e==null?void 0:e.activeElement;if(n!=null&&n.current){if((n==null?void 0:n.current)===a){o.current=a;return}}else if(s.contains(a)){o.current=a;return}n!=null&&n.current?Nt(n.current):or(s,Ot.First)===Ks.Error&&console.warn("There are no focusable elements inside the <FocusTrap />"),o.current=e==null?void 0:e.activeElement})},[r]),o}function Kc({ownerDocument:e,container:t,containers:n,previousActiveElement:r},o){let i=xn();oa(e==null?void 0:e.defaultView,"focus",s=>{if(!o||!i.current)return;let a=sa(n);t.current instanceof HTMLElement&&a.add(t.current);let l=r.current;if(!l)return;let u=s.target;u&&u instanceof HTMLElement?la(a,u)?(r.current=u,Nt(u)):(s.preventDefault(),s.stopPropagation(),Nt(l)):Nt(r.current)},!0)}function la(e,t){for(let n of e)if(n.contains(t))return!0;return!1}let ua=xe(!1);function Xc(){return ae(ua)}function Oo(e){return x.createElement(ua.Provider,{value:e.force},e.children)}function Qc(e){let t=Xc(),n=ae(ca),r=Cn(e),[o,i]=Q(()=>{if(!t&&n!==null||ut.isServer)return null;let s=r==null?void 0:r.getElementById("headlessui-portal-root");if(s)return s;if(r===null)return null;let a=r.createElement("div");return a.setAttribute("id","headlessui-portal-root"),r.body.appendChild(a)});return F(()=>{o!==null&&(r!=null&&r.body.contains(o)||r==null||r.body.appendChild(o))},[o,r]),F(()=>{t||n!==null&&i(n.current)},[n,i,t]),o}let ef=ie;function tf(e,t){let n=e,r=M(null),o=Te(Pc(f=>{r.current=f}),t),i=Cn(r),s=Qc(r),[a]=Q(()=>{var f;return ut.isServer?null:(f=i==null?void 0:i.createElement("div"))!=null?f:null}),l=ae(No),u=Jt();return me(()=>{!s||!a||s.contains(a)||(a.setAttribute("data-headlessui-portal",""),s.appendChild(a))},[s,a]),me(()=>{if(a&&l)return l.register(a)},[l,a]),ia(()=>{var f;!s||!a||(a instanceof Node&&s.contains(a)&&s.removeChild(a),s.childNodes.length<=0&&((f=s.parentElement)==null||f.removeChild(s)))}),u?!s||!a?null:ho(ge({ourProps:{ref:o},theirProps:n,defaultTag:ef,name:"Portal"}),a):null}let nf=ie,ca=xe(null);function rf(e,t){let{target:n,...r}=e,o={ref:Te(t)};return x.createElement(ca.Provider,{value:n},ge({ourProps:o,theirProps:r,defaultTag:nf,name:"Popover.Group"}))}let No=xe(null);function of(){let e=ae(No),t=M([]),n=I(i=>(t.current.push(i),e&&e.register(i),()=>r(i))),r=I(i=>{let s=t.current.indexOf(i);s!==-1&&t.current.splice(s,1),e&&e.unregister(i)}),o=q(()=>({register:n,unregister:r,portals:t}),[n,r,t]);return[t,q(()=>function({children:i}){return x.createElement(No.Provider,{value:o},i)},[o])]}let sf=we(tf),af=we(rf),Po=Object.assign(sf,{Group:af}),fa=xe(null);function da(){let e=ae(fa);if(e===null){let t=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,da),t}return e}function ha(){let[e,t]=Q([]);return[e.length>0?e.join(" "):void 0,q(()=>function(n){let r=I(i=>(t(s=>[...s,i]),()=>t(s=>{let a=s.slice(),l=a.indexOf(i);return l!==-1&&a.splice(l,1),a}))),o=q(()=>({register:r,slot:n.slot,name:n.name,props:n.props}),[r,n.slot,n.name,n.props]);return x.createElement(fa.Provider,{value:o},n.children)},[t])]}let lf="p";function uf(e,t){let n=wt(),{id:r=`headlessui-description-${n}`,...o}=e,i=da(),s=Te(t);me(()=>i.register(r),[r,i.register]);let a={ref:s,...i.props,id:r};return ge({ourProps:a,theirProps:o,slot:i.slot||{},defaultTag:lf,name:i.name||"Description"})}let cf=we(uf),pa=Object.assign(cf,{}),Do=xe(()=>{});Do.displayName="StackContext";var Fo=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(Fo||{});function ff(){return ae(Do)}function df({children:e,onUpdate:t,type:n,element:r,enabled:o}){let i=ff(),s=I((...a)=>{t==null||t(...a),i(...a)});return me(()=>{let a=o===void 0||o===!0;return a&&s(0,n,r),()=>{a&&s(1,n,r)}},[s,n,r,o]),x.createElement(Do.Provider,{value:s},e)}function hf(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}const pf=typeof Object.is=="function"?Object.is:hf,{useState:mf,useEffect:gf,useLayoutEffect:wf,useDebugValue:_f}=zt;function yf(e,t,n){const r=t(),[{inst:o},i]=mf({inst:{value:r,getSnapshot:t}});return wf(()=>{o.value=r,o.getSnapshot=t,Ro(o)&&i({inst:o})},[e,r,t]),gf(()=>(Ro(o)&&i({inst:o}),e(()=>{Ro(o)&&i({inst:o})})),[e]),_f(r),r}function Ro(e){const t=e.getSnapshot,n=e.value;try{const r=t();return!pf(n,r)}catch{return!0}}function bf(e,t,n){return t()}const vf=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Sf=!vf,Cf=Sf?bf:yf,Ef="useSyncExternalStore"in zt?(e=>e.useSyncExternalStore)(zt):Cf;function xf(e){return Ef(e.subscribe,e.getSnapshot,e.getSnapshot)}function kf(e,t){let n=e(),r=new Set;return{getSnapshot(){return n},subscribe(o){return r.add(o),()=>r.delete(o)},dispatch(o,...i){let s=t[o].call(n,...i);s&&(n=s,r.forEach(a=>a()))}}}function $f(){let e;return{before({doc:t}){var n;let r=t.documentElement;e=((n=t.defaultView)!=null?n:window).innerWidth-r.clientWidth},after({doc:t,d:n}){let r=t.documentElement,o=r.clientWidth-r.offsetWidth,i=e-o;n.style(r,"paddingRight",`${i}px`)}}}function Tf(){if(!jc())return{};let e;return{before(){e=window.pageYOffset},after({doc:t,d:n,meta:r}){function o(i){return r.containers.flatMap(s=>s()).some(s=>s.contains(i))}n.microTask(()=>{if(window.getComputedStyle(t.documentElement).scrollBehavior!=="auto"){let s=It();s.style(t.documentElement,"scroll-behavior","auto"),n.add(()=>n.microTask(()=>s.dispose()))}n.style(t.body,"marginTop",`-${e}px`),window.scrollTo(0,0);let i=null;n.addEventListener(t,"click",s=>{if(s.target instanceof HTMLElement)try{let a=s.target.closest("a");if(!a)return;let{hash:l}=new URL(a.href),u=t.querySelector(l);u&&!o(u)&&(i=u)}catch{}},!0),n.addEventListener(t,"touchmove",s=>{s.target instanceof HTMLElement&&!o(s.target)&&s.preventDefault()},{passive:!1}),n.add(()=>{window.scrollTo(0,window.pageYOffset+e),i&&i.isConnected&&(i.scrollIntoView({block:"nearest"}),i=null)})})}}}function Mf(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function Af(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let Pt=kf(()=>new Map,{PUSH(e,t){var n;let r=(n=this.get(e))!=null?n:{doc:e,count:0,d:It(),meta:new Set};return r.count++,r.meta.add(t),this.set(e,r),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:n}){let r={doc:e,d:t,meta:Af(n)},o=[Tf(),$f(),Mf()];o.forEach(({before:i})=>i==null?void 0:i(r)),o.forEach(({after:i})=>i==null?void 0:i(r))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});Pt.subscribe(()=>{let e=Pt.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let r=t.get(n.doc)==="hidden",o=n.count!==0;(o&&!r||!o&&r)&&Pt.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&Pt.dispatch("TEARDOWN",n)}});function If(e,t,n){let r=xf(Pt),o=e?r.get(e):void 0,i=o?o.count>0:!1;return me(()=>{if(!(!e||!t))return Pt.dispatch("PUSH",e,n),()=>Pt.dispatch("POP",e,n)},[t,e]),i}let Lo=new Map,$n=new Map;function ma(e,t=!0){me(()=>{var n;if(!t)return;let r=typeof e=="function"?e():e.current;if(!r)return;function o(){var s;if(!r)return;let a=(s=$n.get(r))!=null?s:1;if(a===1?$n.delete(r):$n.set(r,a-1),a!==1)return;let l=Lo.get(r);l&&(l["aria-hidden"]===null?r.removeAttribute("aria-hidden"):r.setAttribute("aria-hidden",l["aria-hidden"]),r.inert=l.inert,Lo.delete(r))}let i=(n=$n.get(r))!=null?n:0;return $n.set(r,i+1),i!==0||(Lo.set(r,{"aria-hidden":r.getAttribute("aria-hidden"),inert:r.inert}),r.setAttribute("aria-hidden","true"),r.inert=!0),o},[e,t])}function Of({defaultContainers:e=[],portals:t,mainTreeNodeRef:n}={}){var r;let o=M((r=n==null?void 0:n.current)!=null?r:null),i=Cn(o),s=I(()=>{var a;let l=[];for(let u of e)u!==null&&(u instanceof HTMLElement?l.push(u):"current"in u&&u.current instanceof HTMLElement&&l.push(u.current));if(t!=null&&t.current)for(let u of t.current)l.push(u);for(let u of(a=i==null?void 0:i.querySelectorAll("html > *, body > *"))!=null?a:[])u!==document.body&&u!==document.head&&u instanceof HTMLElement&&u.id!=="headlessui-portal-root"&&(u.contains(o.current)||l.some(f=>u.contains(f))||l.push(u));return l});return{resolveContainers:s,contains:I(a=>s().some(l=>l.contains(a))),mainTreeNodeRef:o,MainTreeNode:q(()=>function(){return n!=null?null:x.createElement(ur,{features:Sn.Hidden,ref:o})},[o,n])}}var Nf=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Nf||{}),Pf=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(Pf||{});let Df={0(e,t){return e.titleId===t.id?e:{...e,titleId:t.id}}},fr=xe(null);fr.displayName="DialogContext";function Tn(e){let t=ae(fr);if(t===null){let n=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Tn),n}return t}function Ff(e,t,n=()=>[document.body]){If(e,t,r=>{var o;return{containers:[...(o=r.containers)!=null?o:[],n]}})}function Rf(e,t){return fe(t.type,Df,e,t)}let Lf="div",Hf=ar.RenderStrategy|ar.Static;function Uf(e,t){var n;let r=wt(),{id:o=`headlessui-dialog-${r}`,open:i,onClose:s,initialFocus:a,__demoMode:l=!1,...u}=e,[f,c]=Q(0),h=Ao();i===void 0&&h!==null&&(i=(h&Me.Open)===Me.Open);let d=M(null),p=Te(d,t),g=Cn(d),m=e.hasOwnProperty("open")||h!==null,_=e.hasOwnProperty("onClose");if(!m&&!_)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!m)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!_)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if(typeof i!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${i}`);if(typeof s!="function")throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${s}`);let b=i?0:1,[C,H]=wn(Rf,{titleId:null,descriptionId:null,panelRef:Wr()}),K=I(()=>s(!1)),re=I(ce=>H({type:0,id:ce})),z=Jt()?l?!1:b===0:!1,Se=f>1,Qe=ae(fr)!==null,[nt,pe]=of(),{resolveContainers:Ee,mainTreeNodeRef:xt,MainTreeNode:ki}=Of({portals:nt,defaultContainers:[(n=C.panelRef.current)!=null?n:d.current]}),Lr=Se?"parent":"leaf",Hr=h!==null?(h&Me.Closing)===Me.Closing:!1,Ht=Qe||Hr?!1:z,$i=st(()=>{var ce,mt;return(mt=Array.from((ce=g==null?void 0:g.querySelectorAll("body > *"))!=null?ce:[]).find(Ve=>Ve.id==="headlessui-portal-root"?!1:Ve.contains(xt.current)&&Ve instanceof HTMLElement))!=null?mt:null},[xt]);ma($i,Ht);let Ti=Se?!0:z,hn=st(()=>{var ce,mt;return(mt=Array.from((ce=g==null?void 0:g.querySelectorAll("[data-headlessui-portal]"))!=null?ce:[]).find(Ve=>Ve.contains(xt.current)&&Ve instanceof HTMLElement))!=null?mt:null},[xt]);ma(hn,Ti),Oc(Ee,K,!(!z||Se));let Mi=!(Se||b!==0);oa(g==null?void 0:g.defaultView,"keydown",ce=>{Mi&&(ce.defaultPrevented||ce.key===cr.Escape&&(ce.preventDefault(),ce.stopPropagation(),K()))}),Ff(g,!(Hr||b!==0||Qe),Ee),F(()=>{if(b!==0||!d.current)return;let ce=new ResizeObserver(mt=>{for(let Ve of mt){let Ur=Ve.target.getBoundingClientRect();Ur.x===0&&Ur.y===0&&Ur.width===0&&Ur.height===0&&K()}});return ce.observe(d.current),()=>ce.disconnect()},[b,d,K]);let[_g,yg]=ha(),bg=q(()=>[{dialogState:b,close:K,setTitleId:re},C],[b,C,K,re]),mu=q(()=>({open:b===0}),[b]),vg={ref:p,id:o,role:"dialog","aria-modal":b===0?!0:void 0,"aria-labelledby":C.titleId,"aria-describedby":_g};return x.createElement(df,{type:"Dialog",enabled:b===0,element:d,onUpdate:I((ce,mt)=>{mt==="Dialog"&&fe(ce,{[Fo.Add]:()=>c(Ve=>Ve+1),[Fo.Remove]:()=>c(Ve=>Ve-1)})})},x.createElement(Oo,{force:!0},x.createElement(Po,null,x.createElement(fr.Provider,{value:bg},x.createElement(Po.Group,{target:d},x.createElement(Oo,{force:!1},x.createElement(yg,{slot:mu,name:"Dialog.Description"},x.createElement(kn,{initialFocus:a,containers:Ee,features:z?fe(Lr,{parent:kn.features.RestoreFocus,leaf:kn.features.All&~kn.features.FocusLock}):kn.features.None},x.createElement(pe,null,ge({ourProps:vg,theirProps:u,slot:mu,defaultTag:Lf,features:Hf,visible:b===0,name:"Dialog"}))))))))),x.createElement(ki,null))}let Vf="div";function jf(e,t){let n=wt(),{id:r=`headlessui-dialog-overlay-${n}`,...o}=e,[{dialogState:i,close:s}]=Tn("Dialog.Overlay"),a=Te(t),l=I(f=>{if(f.target===f.currentTarget){if(ra(f.currentTarget))return f.preventDefault();f.preventDefault(),f.stopPropagation(),s()}}),u=q(()=>({open:i===0}),[i]);return ge({ourProps:{ref:a,id:r,"aria-hidden":!0,onClick:l},theirProps:o,slot:u,defaultTag:Vf,name:"Dialog.Overlay"})}let Bf="div";function Gf(e,t){let n=wt(),{id:r=`headlessui-dialog-backdrop-${n}`,...o}=e,[{dialogState:i},s]=Tn("Dialog.Backdrop"),a=Te(t);F(()=>{if(s.panelRef.current===null)throw new Error("A <Dialog.Backdrop /> component is being used, but a <Dialog.Panel /> component is missing.")},[s.panelRef]);let l=q(()=>({open:i===0}),[i]);return x.createElement(Oo,{force:!0},x.createElement(Po,null,ge({ourProps:{ref:a,id:r,"aria-hidden":!0},theirProps:o,slot:l,defaultTag:Bf,name:"Dialog.Backdrop"})))}let zf="div";function Wf(e,t){let n=wt(),{id:r=`headlessui-dialog-panel-${n}`,...o}=e,[{dialogState:i},s]=Tn("Dialog.Panel"),a=Te(t,s.panelRef),l=q(()=>({open:i===0}),[i]),u=I(f=>{f.stopPropagation()});return ge({ourProps:{ref:a,id:r,onClick:u},theirProps:o,slot:l,defaultTag:zf,name:"Dialog.Panel"})}let qf="h2";function Yf(e,t){let n=wt(),{id:r=`headlessui-dialog-title-${n}`,...o}=e,[{dialogState:i,setTitleId:s}]=Tn("Dialog.Title"),a=Te(t);F(()=>(s(r),()=>s(null)),[r,s]);let l=q(()=>({open:i===0}),[i]);return ge({ourProps:{ref:a,id:r},theirProps:o,slot:l,defaultTag:qf,name:"Dialog.Title"})}let Zf=we(Uf),Jf=we(Gf),Kf=we(Wf),Xf=we(jf),Qf=we(Yf),Ho=Object.assign(Zf,{Backdrop:Jf,Panel:Kf,Overlay:Xf,Title:Qf,Description:pa});function ed(e=0){let[t,n]=Q(e),r=xn(),o=st(l=>{r.current&&n(u=>u|l)},[t,r]),i=st(l=>!!(t&l),[t]),s=st(l=>{r.current&&n(u=>u&~l)},[n,r]),a=st(l=>{r.current&&n(u=>u^l)},[n]);return{flags:t,addFlag:o,hasFlag:i,removeFlag:s,toggleFlag:a}}let ga=xe(null);function wa(){let e=ae(ga);if(e===null){let t=new Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,wa),t}return e}function td(){let[e,t]=Q([]);return[e.length>0?e.join(" "):void 0,q(()=>function(n){let r=I(i=>(t(s=>[...s,i]),()=>t(s=>{let a=s.slice(),l=a.indexOf(i);return l!==-1&&a.splice(l,1),a}))),o=q(()=>({register:r,slot:n.slot,name:n.name,props:n.props}),[r,n.slot,n.name,n.props]);return x.createElement(ga.Provider,{value:o},n.children)},[t])]}let nd="label";function rd(e,t){let n=wt(),{id:r=`headlessui-label-${n}`,passive:o=!1,...i}=e,s=wa(),a=Te(t);me(()=>s.register(r),[r,s.register]);let l={ref:a,...s.props,id:r};return o&&("onClick"in l&&(delete l.htmlFor,delete l.onClick),"onClick"in i&&delete i.onClick),ge({ourProps:l,theirProps:i,slot:s.slot||{},defaultTag:nd,name:s.name||"Label"})}let od=we(rd),id=Object.assign(od,{}),Uo=xe(null);Uo.displayName="GroupContext";let sd=ie;function ad(e){var t;let[n,r]=Q(null),[o,i]=td(),[s,a]=ha(),l=q(()=>({switch:n,setSwitch:r,labelledby:o,describedby:s}),[n,r,o,s]),u={},f=e;return x.createElement(a,{name:"Switch.Description"},x.createElement(i,{name:"Switch.Label",props:{htmlFor:(t=l.switch)==null?void 0:t.id,onClick(c){n&&(c.currentTarget.tagName==="LABEL"&&c.preventDefault(),n.click(),n.focus({preventScroll:!0}))}}},x.createElement(Uo.Provider,{value:l},ge({ourProps:u,theirProps:f,defaultTag:sd,name:"Switch.Group"}))))}let ld="button";function ud(e,t){let n=wt(),{id:r=`headlessui-switch-${n}`,checked:o,defaultChecked:i=!1,onChange:s,name:a,value:l,form:u,...f}=e,c=ae(Uo),h=M(null),d=Te(h,t,c===null?null:c.setSwitch),[p,g]=Vc(o,s,i),m=I(()=>g==null?void 0:g(!p)),_=I(z=>{if(ra(z.currentTarget))return z.preventDefault();z.preventDefault(),m()}),b=I(z=>{z.key===cr.Space?(z.preventDefault(),m()):z.key===cr.Enter&&Rc(z.currentTarget)}),C=I(z=>z.preventDefault()),H=q(()=>({checked:p}),[p]),K={id:r,ref:d,role:"switch",type:Nc(e,h),tabIndex:0,"aria-checked":p,"aria-labelledby":c==null?void 0:c.labelledby,"aria-describedby":c==null?void 0:c.describedby,onClick:_,onKeyUp:b,onKeyPress:C},re=rr();return F(()=>{var z;let Se=(z=h.current)==null?void 0:z.closest("form");Se&&i!==void 0&&re.addEventListener(Se,"reset",()=>{g(i)})},[h,g]),x.createElement(x.Fragment,null,a!=null&&p&&x.createElement(ur,{features:Sn.Hidden,...$o({as:"input",type:"checkbox",hidden:!0,readOnly:!0,form:u,checked:p,name:a,value:l})}),ge({ourProps:K,theirProps:f,slot:H,defaultTag:ld,name:"Switch"}))}let cd=we(ud),fd=ad,Vo=Object.assign(cd,{Group:fd,Label:id,Description:pa});function dd(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}function jo(e,...t){e&&t.length>0&&e.classList.add(...t)}function Bo(e,...t){e&&t.length>0&&e.classList.remove(...t)}function hd(e,t){let n=It();if(!e)return n.dispose;let{transitionDuration:r,transitionDelay:o}=getComputedStyle(e),[i,s]=[r,o].map(l=>{let[u=0]=l.split(",").filter(Boolean).map(f=>f.includes("ms")?parseFloat(f):parseFloat(f)*1e3).sort((f,c)=>c-f);return u}),a=i+s;if(a!==0){n.group(u=>{u.setTimeout(()=>{t(),u.dispose()},a),u.addEventListener(e,"transitionrun",f=>{f.target===f.currentTarget&&u.dispose()})});let l=n.addEventListener(e,"transitionend",u=>{u.target===u.currentTarget&&(t(),l())})}else t();return n.add(()=>t()),n.dispose}function pd(e,t,n,r){let o=n?"enter":"leave",i=It(),s=r!==void 0?dd(r):()=>{};o==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let a=fe(o,{enter:()=>t.enter,leave:()=>t.leave}),l=fe(o,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),u=fe(o,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return Bo(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),jo(e,...t.base,...a,...u),i.nextFrame(()=>{Bo(e,...t.base,...a,...u),jo(e,...t.base,...a,...l),hd(e,()=>(Bo(e,...t.base,...a),jo(e,...t.base,...t.entered),s()))}),i.dispose}function md({immediate:e,container:t,direction:n,classes:r,onStart:o,onStop:i}){let s=xn(),a=rr(),l=ct(n);me(()=>{e&&(l.current="enter")},[e]),me(()=>{let u=It();a.add(u.dispose);let f=t.current;if(f&&l.current!=="idle"&&s.current)return u.dispose(),o.current(l.current),u.add(pd(f,r.current,l.current==="enter",()=>{u.dispose(),i.current(l.current)})),u.dispose},[n])}function bt(e=""){return e.split(" ").filter(t=>t.trim().length>1)}let dr=xe(null);dr.displayName="TransitionContext";var gd=(e=>(e.Visible="visible",e.Hidden="hidden",e))(gd||{});function wd(){let e=ae(dr);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function _d(){let e=ae(hr);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let hr=xe(null);hr.displayName="NestingContext";function pr(e){return"children"in e?pr(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function _a(e,t){let n=ct(e),r=M([]),o=xn(),i=rr(),s=I((d,p=_t.Hidden)=>{let g=r.current.findIndex(({el:m})=>m===d);g!==-1&&(fe(p,{[_t.Unmount](){r.current.splice(g,1)},[_t.Hidden](){r.current[g].state="hidden"}}),i.microTask(()=>{var m;!pr(r)&&o.current&&((m=n.current)==null||m.call(n))}))}),a=I(d=>{let p=r.current.find(({el:g})=>g===d);return p?p.state!=="visible"&&(p.state="visible"):r.current.push({el:d,state:"visible"}),()=>s(d,_t.Unmount)}),l=M([]),u=M(Promise.resolve()),f=M({enter:[],leave:[],idle:[]}),c=I((d,p,g)=>{l.current.splice(0),t&&(t.chains.current[p]=t.chains.current[p].filter(([m])=>m!==d)),t==null||t.chains.current[p].push([d,new Promise(m=>{l.current.push(m)})]),t==null||t.chains.current[p].push([d,new Promise(m=>{Promise.all(f.current[p].map(([_,b])=>b)).then(()=>m())})]),p==="enter"?u.current=u.current.then(()=>t==null?void 0:t.wait.current).then(()=>g(p)):g(p)}),h=I((d,p,g)=>{Promise.all(f.current[p].splice(0).map(([m,_])=>_)).then(()=>{var m;(m=l.current.shift())==null||m()}).then(()=>g(p))});return q(()=>({children:r,register:a,unregister:s,onStart:c,onStop:h,wait:u,chains:f}),[a,s,r,c,h,f,u])}function yd(){}let bd=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function ya(e){var t;let n={};for(let r of bd)n[r]=(t=e[r])!=null?t:yd;return n}function vd(e){let t=M(ya(e));return F(()=>{t.current=ya(e)},[e]),t}let Sd="div",ba=ar.RenderStrategy;function Cd(e,t){var n,r;let{beforeEnter:o,afterEnter:i,beforeLeave:s,afterLeave:a,enter:l,enterFrom:u,enterTo:f,entered:c,leave:h,leaveFrom:d,leaveTo:p,...g}=e,m=M(null),_=Te(m,t),b=(n=g.unmount)==null||n?_t.Unmount:_t.Hidden,{show:C,appear:H,initial:K}=wd(),[re,z]=Q(C?"visible":"hidden"),Se=_d(),{register:Qe,unregister:nt}=Se;F(()=>Qe(m),[Qe,m]),F(()=>{if(b===_t.Hidden&&m.current){if(C&&re!=="visible"){z("visible");return}return fe(re,{hidden:()=>nt(m),visible:()=>Qe(m)})}},[re,m,Qe,nt,C,b]);let pe=ct({base:bt(g.className),enter:bt(l),enterFrom:bt(u),enterTo:bt(f),entered:bt(c),leave:bt(h),leaveFrom:bt(d),leaveTo:bt(p)}),Ee=vd({beforeEnter:o,afterEnter:i,beforeLeave:s,afterLeave:a}),xt=Jt();F(()=>{if(xt&&re==="visible"&&m.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[m,re,xt]);let ki=K&&!H,Lr=H&&C&&K,Hr=!xt||ki?"idle":C?"enter":"leave",Ht=ed(0),$i=I(pt=>fe(pt,{enter:()=>{Ht.addFlag(Me.Opening),Ee.current.beforeEnter()},leave:()=>{Ht.addFlag(Me.Closing),Ee.current.beforeLeave()},idle:()=>{}})),Ti=I(pt=>fe(pt,{enter:()=>{Ht.removeFlag(Me.Opening),Ee.current.afterEnter()},leave:()=>{Ht.removeFlag(Me.Closing),Ee.current.afterLeave()},idle:()=>{}})),hn=_a(()=>{z("hidden"),nt(m)},Se);md({immediate:Lr,container:m,classes:pe,direction:Hr,onStart:ct(pt=>{hn.onStart(m,pt,$i)}),onStop:ct(pt=>{hn.onStop(m,pt,Ti),pt==="leave"&&!pr(hn)&&(z("hidden"),nt(m))})});let Ut=g,Mi={ref:_};return Lr?Ut={...Ut,className:sr(g.className,...pe.current.enter,...pe.current.enterFrom)}:(Ut.className=sr(g.className,(r=m.current)==null?void 0:r.className),Ut.className===""&&delete Ut.className),x.createElement(hr.Provider,{value:hn},x.createElement(Uc,{value:fe(re,{visible:Me.Open,hidden:Me.Closed})|Ht.flags},ge({ourProps:Mi,theirProps:Ut,defaultTag:Sd,features:ba,visible:re==="visible",name:"Transition.Child"})))}function Ed(e,t){let{show:n,appear:r=!1,unmount:o=!0,...i}=e,s=M(null),a=Te(s,t);Jt();let l=Ao();if(n===void 0&&l!==null&&(n=(l&Me.Open)===Me.Open),![!0,!1].includes(n))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[u,f]=Q(n?"visible":"hidden"),c=_a(()=>{f("hidden")}),[h,d]=Q(!0),p=M([n]);me(()=>{h!==!1&&p.current[p.current.length-1]!==n&&(p.current.push(n),d(!1))},[p,n]);let g=q(()=>({show:n,appear:r,initial:h}),[n,r,h]);F(()=>{if(n)f("visible");else if(!pr(c))f("hidden");else{let C=s.current;if(!C)return;let H=C.getBoundingClientRect();H.x===0&&H.y===0&&H.width===0&&H.height===0&&f("hidden")}},[n,c]);let m={unmount:o},_=I(()=>{var C;h&&d(!1),(C=e.beforeEnter)==null||C.call(e)}),b=I(()=>{var C;h&&d(!1),(C=e.beforeLeave)==null||C.call(e)});return x.createElement(hr.Provider,{value:c},x.createElement(dr.Provider,{value:g},ge({ourProps:{...m,as:ie,children:x.createElement(va,{ref:a,...m,...i,beforeEnter:_,beforeLeave:b})},theirProps:{},defaultTag:ie,features:ba,visible:u==="visible",name:"Transition"})))}function xd(e,t){let n=ae(dr)!==null,r=Ao()!==null;return x.createElement(x.Fragment,null,!n&&r?x.createElement(Go,{ref:t,...e}):x.createElement(va,{ref:t,...e}))}let Go=we(Ed),va=we(Cd),kd=we(xd),Sa=Object.assign(Go,{Child:kd,Root:Go});const Dt={None:0,LowerFirst:1,SnakeCase:2,SnakeCaseAllCaps:3,KebabCase:4};function zo(e,t){return e.replace(/[a-z]?[A-Z]/g,n=>n.length===1?n.toLowerCase():n.charAt(0)+t+n.charAt(1).toLowerCase())}function $d(e,t){switch(t){case Dt.LowerFirst:return e.charAt(0).toLowerCase()+e.slice(1);case Dt.SnakeCase:return zo(e,"_");case Dt.SnakeCaseAllCaps:return zo(e,"_").toUpperCase();case Dt.KebabCase:return zo(e,"-");case Dt.None:default:return e}}function vt(e,t=Dt.None){const n={},r=t;function o(s){throw new Error("Cannot infer key and value of "+String(s))}function i(s,a,l){s=$d(s,a),n[s]=l}for(let s of e){let a=Dt.None;if(s==null&&o(s),s instanceof B){const l=s.cases()[s.tag];s=s.fields.length===0?l:[l].concat(s.fields),a=r}if(Array.isArray(s))switch(s.length){case 0:o(s);break;case 1:i(s[0],a,!0);break;case 2:const l=s[1];i(s[0],a,l);break;default:i(s[0],a,s.slice(1))}else typeof s=="string"?i(s,a,!0):o(s)}return n}let mr=class extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Checked","OnChange","ClassName","Children"]}};function Td(e){return v(Vo,vt(e,1))}class Ca extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["ClassName","Children"]}}function Md(e){return v(Vo.Label,vt(e,1))}class Ad extends B{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["Children"]}}function Id(e){return v(Vo.Group,vt(e,1))}const Od=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Nd=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],Pd=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Dd=["January","February","March","April","May","June","July","August","September","October","November","December"];function Ae(e,t,n){let r=0,o=t;for(;o<e.length&&e[o]===n;)o++,r++;return r}function Ea(e,t){return t>=e.length-1?-1:e.charCodeAt(t+1)}function Fd(e,t){let n=t;const r=e[t];let o="",i=!1;for(;t<e.length;){t++;const s=e[t];if(s===r){i=!0;break}else if(s==="\\")if(t<e.length)t++,o+=e[t];else throw new Error("Invalid string format");else o+=s}if(!i)throw new Error(`Invalid string format could not find matching quote for ${r}`);return[o,t-n+1]}function Wo(e,t,n){let r=0,o=0,i="";const s=n?Mn(e.getTime(),1):e;for(;r<t.length;){const a=t[r];switch(a){case"d":switch(o=Ae(t,r,"d"),r+=o,o){case 1:i+=$a(s);break;case 2:i+=P($a(s),2);break;case 3:i+=Od[Aa(s)];break;case 4:i+=Nd[Aa(s)];break}break;case"f":if(o=Ae(t,r,"f"),r+=o,o<=3){const m=10**(3-o);i+=P(Math.floor(yr(s)/m),o)}else o<=7&&(i+=(""+yr(s)).padEnd(o,"0"));break;case"F":if(o=Ae(t,r,"F"),r+=o,o<=3){const m=10**(3-o),_=Math.floor(yr(s)/m);_!=0&&(i+=P(_,o))}else if(o<=7){const m=yr(s);m!=0&&(i+=P(m,3))}break;case"g":o=Ae(t,r,"g"),r+=o,o<=2&&(i+="A.D.");break;case"h":switch(o=Ae(t,r,"h"),r+=o,o){case 1:i+=_r(s)%12;break;case 2:i+=P(_r(s)%12,2);break}break;case"H":switch(o=Ae(t,r,"H"),r+=o,o){case 1:i+=_r(s);break;case 2:i+=P(_r(s),2);break}break;case"K":switch(o=Ae(t,r,"K"),r+=o,o){case 1:switch(xa(s)){case 1:i+="Z";break;case 2:i+=Kt(s.getTimezoneOffset()*-6e4);break}break}break;case"m":switch(o=Ae(t,r,"m"),r+=o,o){case 1:i+=Ta(s);break;case 2:i+=P(Ta(s),2);break}break;case"M":switch(o=Ae(t,r,"M"),r+=o,o){case 1:i+=br(s);break;case 2:i+=P(br(s),2);break;case 3:i+=Pd[br(s)-1];break;case 4:i+=Dd[br(s)-1];break}break;case"s":switch(o=Ae(t,r,"s"),r+=o,o){case 1:i+=Ma(s);break;case 2:i+=P(Ma(s),2);break}break;case"t":switch(o=Ae(t,r,"t"),r+=o,o){case 1:i+=s.getHours()<12?"A":"P";break;case 2:i+=s.getHours()<12?"AM":"PM";break}break;case"y":switch(o=Ae(t,r,"y"),r+=o,o){case 1:i+=s.getFullYear()%100;break;case 2:i+=P(s.getFullYear()%100,2);break;case 3:i+=P(s.getFullYear(),3);break;case 4:i+=P(s.getFullYear(),4);break;case 5:i+=P(s.getFullYear(),5);break}break;case"z":o=Ae(t,r,"z"),r+=o;let l="";switch(xa(s)){case 1:l="+00:00";break;case 2:l=Kt(s.getTimezoneOffset()*-6e4);break;case 0:l=Kt(zd(s).getTimezoneOffset()*-6e4);break}const u=l[0]==="-"?"-":"+",f=parseInt(l.substring(1,3),10),c=parseInt(l.substring(4,6),10);switch(o){case 1:i+=`${u}${f}`;break;case 2:i+=`${u}${P(f,2)}`;break;default:i+=`${u}${P(f,2)}:${P(c,2)}`;break}break;case":":i+=":",r++;break;case"/":i+="/",r++;break;case"'":case'"':const[h,d]=Fd(t,r);i+=h,r+=d;break;case"%":const p=Ea(t,r);if(p>=0&&p!==37)r+=2,i+=Wo(s,String.fromCharCode(p),n);else throw new Error("Invalid format string");break;case"\\":const g=Ea(t,r);if(g>=0)r+=2,i+=String.fromCharCode(g);else throw new Error("Invalid format string");break;default:r++,i+=a;break}}return i}function xa(e){return e.kind||0}function Kt(e){const t=e<0;e=Math.abs(e);const n=~~(e/36e5),r=e%36e5/6e4;return(t?"-":"+")+P(n,2)+":"+P(r,2)}function gr(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 Rd(e,t){if(t)return e.toISOString();{const n=e.kind==null?!0:e.kind===2;return P(e.getFullYear(),4)+"-"+P(e.getMonth()+1,2)+"-"+P(e.getDate(),2)+"T"+P(e.getHours(),2)+":"+P(e.getMinutes(),2)+":"+P(e.getSeconds(),2)+"."+P(e.getMilliseconds(),3)+(n?Kt(e.getTimezoneOffset()*-6e4):"")}}function Ld(e,t){const n=e.toISOString();return n.substring(0,n.length-1)+Kt(t)}function Hd(e,t){const n=new Date(e.getTime()+(e.offset??0));if(typeof t!="string")return n.toISOString().replace(/\.\d+/,"").replace(/[A-Z]|\.\d+/g," ")+Kt(e.offset??0);if(t.length===1)switch(t){case"D":case"d":return gr(n,"first");case"T":case"t":return gr(n,"second");case"O":case"o":return Ld(n,e.offset??0);default:throw new Error("Unrecognized Date print format")}else return Wo(n,t,!0)}function Ud(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?gr(e,"first"):e.toLocaleDateString();case"T":case"t":return n?gr(e,"second"):e.toLocaleTimeString();case"O":case"o":return Rd(e,n);default:throw new Error("Unrecognized Date print format")}else return Wo(e,t,n)}function wr(e,t,n){return e.offset!=null?Hd(e,t):Ud(e,t)}function Mn(e,t){const n=new Date(e);return n.kind=(t??0)|0,n}function Vd(){return Mn(-621355968e5,1)}function ka(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 a=o[2].split(":"),l=parseInt(a[0],10);s=l*3600+parseInt(a[1]||"0",10)*60+parseFloat(a[2]||"0"),o[3]!=null&&o[3].toUpperCase()==="PM"&&l<12&&(s+=720)}if(o[4]!=null){if(o[1]!=null)i=new Date(o[1]+" UTC");else{const a=new Date;i=new Date(a.getUTCFullYear()+"/"+(a.getUTCMonth()+1)+"/"+a.getUTCDate())}if(o[4]==="Z")r="Z";else{let a=parseInt(o[5],10)*60+parseInt(o[6]||"0",10);o[4][0]==="-"&&(a*=-1),r=a,s-=a*60}}else if(o[1]!=null)i=new Date(o[1]);else{const a=new Date;i=new Date(a.getFullYear()+"/"+(a.getMonth()+1)+"/"+a.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 jd(e,t=!1){const[n,r]=ka(e),o=r!=null?t&&r==="Z"?1:2:0;return Mn(n.getTime(),o)}function Bd(e,t){try{return t.contents=jd(e),!0}catch{return!1}}function Gd(e){return e.kind===1?e:Mn(e.getTime(),1)}function zd(e){return e.kind===2?e:Mn(e.getTime(),2)}function $a(e){return e.kind===1?e.getUTCDate():e.getDate()}function _r(e){return e.kind===1?e.getUTCHours():e.getHours()}function yr(e){return e.kind===1?e.getUTCMilliseconds():e.getMilliseconds()}function Ta(e){return e.kind===1?e.getUTCMinutes():e.getMinutes()}function br(e){return(e.kind===1?e.getUTCMonth():e.getMonth())+1}function Ma(e){return e.kind===1?e.getUTCSeconds():e.getSeconds()}function Aa(e){return e.kind===1?e.getUTCDay():e.getDay()}function Wd(e,t=0){if(t&-284)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 Ia(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function Oa(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 qd(e,t,n,r,o=0){function i(){let s=arguments[0];if(r){r--;const a=[],l=arguments.length,u=typeof arguments[l-1]!="string";let f=u?l-3:l-2;for(let c=0;c<f;c++)a.push(arguments[c]);a.index=arguments[f++],a.input=arguments[f++],u&&(a.groups=arguments[f]),s=n(a)}return s}if(typeof e=="string"){const s=e;e=Wd(t,r??0),t=s,r=void 0}if(typeof n=="function")return r=r??-1,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 a=t.substring(o),l=Oa(e,a),u=Oa.length>r?(s=l[r-1],a.substring(0,s.index+s[0].length)):a;return t.substring(0,o)+u.replace(e,n)+t.substring(o+u.length)}else return t.replace(e,n)}const An=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g,In=/(?:(^|[^%])%([0+\- ]*)(\d+)?(?:\.(\d+))?(\w))?%P\(\)/g,Yd=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function Na(e,t){return cc(e,t)<0}function St(e){return{input:e,cont:Jd(e)}}function Zd(e,t){let n=0,r=0,o="";In.lastIndex=0;let i=In.exec(e);for(;i;){const s=i.index+(i[1]||"").length;o+=e.substring(r,s).replace(/%%/g,"%");const[,,a,l,u,f]=i;r=In.lastIndex,o+=Fa(t[n++],a,l,u,f),In.lastIndex=r-1,i=In.exec(e)}return o+=e.substring(r).replace(/%%/g,"%"),o}function Pa(e,t){return typeof t=="string"?e(t):t.cont(e)}function Ft(e){return Pa(t=>t,e)}function Da(e){return Pa(t=>{throw new Error(t)},e)}function Fa(e,t,n,r,o){let i="";if(t=t||"",o=o||"",Ps(e))switch(o.toLowerCase()!=="x"&&(Na(e,0)?(e=bo(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??6,e=Xn(e,r);break;case"g":case"G":e=r!=null?Qn(e,r):Qn(e);break;case"e":case"E":e=r!=null?er(e,r):er(e);break;case"x":e=tr(e);break;case"X":e=tr(e).toUpperCase();break;default:e=String(e);break}else e instanceof Date?e=wr(e):e=We(e);if(n=typeof n=="number"?n:parseInt(n,10),isNaN(n))e=i+e;else{const s=t.indexOf("0")>=0,a=t.indexOf("-")>=0,l=a||!s?" ":"0";l==="0"?(e=On(e,n-i.length,l,a),e=i+e):e=On(i+e,n,l,a)}return e}function Ra(e,t,n,r="",o=-1){return(...i)=>{let s=r;const a=t.slice(),l=n.slice();for(const u of i){const[,,f,c,h,d]=l[0];let p=c;if(o>=0)p=o,o=-1;else if(p==="*"){if(u<0)throw new Error("Non-negative number required");o=u;continue}s+=a[0],s+=Fa(u,f,p,h,d),a.splice(0,1),l.splice(0,1)}return l.length===0?(s+=a[0],e(s)):Ra(e,a,l,s,o)}}function Jd(e){return t=>{An.lastIndex=0;const n=[],r=[];let o=0,i=An.exec(e);for(;i;){const s=i.index+(i[1]||"").length;n.push(e.substring(o,s).replace(/%%/g,"%")),r.push(i),o=An.lastIndex,An.lastIndex-=1,i=An.exec(e)}return n.length===0?t(e.replace(/%%/g,"%")):(n.push(e.substring(o).replace(/%%/g,"%")),Ra(t,n,r))}}function Kd(e,...t){let n;return n=e,n.replace(Yd,(r,o,i,s,a,l)=>{if(o<0||o>=t.length)throw new Error("Index must be greater or equal to zero and less than the arguments' length.");let u=t[o];if(Ps(u))switch(a=a==null?null:parseInt(a,10),s){case"f":case"F":a=a??2,u=Xn(u,a);break;case"g":case"G":u=a!=null?Qn(u,a):Qn(u);break;case"e":case"E":u=a!=null?er(u,a):er(u);break;case"p":case"P":a=a??2,u=Xn(bo(u,100),a)+" %";break;case"d":case"D":u=a!=null?qo(String(u),a,"0"):String(u);break;case"x":case"X":u=a!=null?qo(tr(u),a,"0"):tr(u),s==="X"&&(u=u.toUpperCase());break;default:if(l){let f="";u=l.replace(/([0#,]+)(\.[0#]+)?/,(c,h,d)=>{Na(u,0)&&(u=bo(u,-1),f="-"),d=d==null?"":d.substring(1),u=Xn(u,Math.max(d.length,0));let[p,g]=u.split(".");g||(g="");const m=h.replace(/,/g,"").replace(/^#+/,"").length;p=qo(p,m,"0");const _=d.replace(/#+$/,"").length;if(_>g.length?g=Qd(g,_,"0"):_<g.length&&(g=g.substring(0,_)+g.substring(_).replace(/0+$/,"")),h.indexOf(",")>0){const b=p.length%3,C=Math.floor(p.length/3);let H=b>0?p.substr(0,b)+(C>0?",":""):"";for(let K=0;K<C;K++)H+=p.substr(b+K*3,3)+(K<C-1?",":"");p=H}return g.length>0?p+"."+g:p}),u=f+u}}else u instanceof Date?u=wr(u,l||s):u=We(u);return i=parseInt((i||" ").substring(1),10),isNaN(i)||(u=On(String(u),Math.abs(i)," ",i<0)),u})}function Xd(e){return typeof e!="string"||e.length===0}function Xt(e,t){return Array.isArray(t)?t.join(e):Array.from(t).join(e)}function On(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 qo(e,t,n){return On(e,t,n)}function Qd(e,t,n){return On(e,t,n,!0)}function La(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(f=>f).map(Ia),t=t.length>0?t:["\\s"];const s=[],a=new RegExp(t.join("|"),"g");let l=!0,u=0;do{const f=a.exec(e);if(f===null){const c=i?e.substring(u).trim():e.substring(u);(!o||c.length>0)&&s.push(c),l=!1}else{const c=i?e.substring(u,f.index).trim():e.substring(u,f.index);(!o||c.length>0)&&(n!=null&&s.length+1===n?(s.push(i?e.substring(u).trim():e.substring(u)),l=!1):s.push(c)),u=a.lastIndex}}while(l);return s}function eh(e,...t){if(t.length===0)return e.trim();const n="["+Ia(t.join(""))+"]+";return e.replace(new RegExp("^"+n),"").replace(new RegExp(n+"$"),"")}class Qt{constructor(t){this.value=t}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return lt(this.value)}Equals(t){return t==null?!1:ke(this.value,t instanceof Qt?t.value:t)}CompareTo(t){return t==null?1:De(this.value,t instanceof Qt?t.value:t)}}function y(e){if(e==null)throw new Error("Option has no value");return e instanceof Qt?e.value:e}function de(e){return e==null||e instanceof Qt?new Qt(e):e}function Yo(e,t){return e!=null?y(e):t}function th(e,t){return e!=null?y(e):t()}function nh(e,t){return t!=null?de(e(y(t))):void 0}const Ha="Collection was empty.";function Ua(e,t){return new Array(t)}function Va(e,t){return e>t?e:t}function vr(e,t,n,r){const o=t|0;return e.fill(r,o,o+n)}function en(e,t,n){const r=t.length|0,o=Ua(n,r);for(let i=0;i<=r-1;i++)et(o,i,e(Z(i,t)));return o}function rh(e,t){const n=Ua(t,1);return et(n,0,e),n}function oh(e){return e.slice().reverse()}function ih(e,t){return t.find(e)}function sh(e,t,n){const r=[];for(let o=0;o<=t.length-1;o++){const i=e(Z(o,t));if(i!=null){const s=y(i);r.push(s)}}return ke(n,Ge())?r:en(o=>o,r,n)}function Sr(e,t,n){const r=e;return n.reduce(r,t)}function ah(e,t,n){return t==null}function Z(e,t){if(e<0||e>=t.length)throw new Error("Index was outside the bounds of the array.\\nParameter name: index");return t[e]}function et(e,t,n){if(t<0||t>=e.length)throw new Error("Index was outside the bounds of the array.\\nParameter name: index");e[t]=n}function ja(e,t,n){return t.reduceRight((r,o)=>e(o,r),n)}class _e extends Fe{constructor(t,n){super(),this.head=t,this.tail=n}toString(){return"["+Xt("; ",this)+"]"}Equals(t){const n=this;return n===t?!0:((o,i)=>{e:for(;;){const s=o,a=i,l=s.tail,u=a.tail;if(l!=null)if(u!=null){const f=y(l),c=y(u);if(ke(s.head,a.head)){o=f,i=c;continue e}else return!1}else return!1;else return u==null}})(n,t)}GetHashCode(){return((r,o,i)=>{e:for(;;){const s=r,a=o,l=i,u=l.tail;if(u!=null){const f=y(u);if(s>18)return a|0;r=s+1,o=(a<<1)+lt(l.head)+631*s,i=f;continue e}else return a|0}})(0,0,this)|0}toJSON(){const t=this;return Array.from(t)}CompareTo(t){return((o,i)=>{e:for(;;){const s=o,a=i,l=s.tail,u=a.tail;if(l!=null)if(u!=null){const f=y(l),c=y(u),h=De(s.head,a.head)|0;if(h===0){o=f,i=c;continue e}else return h|0}else return 1;else return u!=null?-1:0}})(this,t)|0}GetEnumerator(){return uh(this)}[Symbol.iterator](){return qn(ee(this))}"System.Collections.IEnumerable.GetEnumerator"(){return ee(this)}}class lh{constructor(t){this.xs=t,this.it=this.xs,this.current=Ge()}"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=y(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=Ge()}Dispose(){}}function uh(e){return new lh(e)}function se(){return new _e(Ge(),void 0)}function Nn(e,t){return new _e(e,t)}function Cr(e){return e.tail==null}function ch(e){return((n,r)=>{e:for(;;){const o=n,s=r.tail;if(s!=null){n=o+1,r=y(s);continue e}else return o|0}})(0,e)|0}function Zo(e){if(e.tail!=null)return e.head;throw new Error(Ha+"\\nParameter name: list")}function qe(e){const t=e.tail;if(t!=null)return y(t);throw new Error(Ha+"\\nParameter name: list")}function le(){return se()}function He(e,t){return Nn(e,t)}function te(e){return Nn(e,se())}function O(e){return Cr(e)}function E(e){return Zo(e)}function A(e){return qe(e)}function Pn(e){const t=ch(e)|0,n=vr(new Array(t),0,t,null);return((o,i)=>{e:for(;;){const s=o,a=i;if(!Cr(a)){et(n,s,Zo(a)),o=s+1,i=qe(a);continue e}break}})(0,e),n}function tt(e,t,n){let r=t,o=n;for(;!Cr(o);)r=e(r,E(o)),o=qe(o);return r}function Jo(e){return tt((t,n)=>Nn(n,t),se(),e)}function fh(e,t,n){return ja(e,Pn(t),n)}function Dn(e,t){tt((n,r)=>{e(r)},void 0,t)}function J(e,t){let n=t;for(let r=e.length-1;r>=0;r--)n=Nn(Z(r,e),n);return n}function k(e){return J(e,se())}function dh(e){let t,n;if(Be(e))return k(e);if(e instanceof _e)return e;{const r=se();let o=r;const i=ee(e);try{for(;i["System.Collections.IEnumerator.MoveNext"]();){const l=i["System.Collections.Generic.IEnumerator`1.get_Current"]();o=(t=o,n=new _e(l,void 0),t.tail=n,n)}}finally{V(i)}const s=o,a=se();return s.tail=a,qe(r)}}function hh(e){const t=se();let n=t;const r=s=>{n=tt((a,l)=>{const u=new _e(l,void 0);return a.tail=u,u},n,s)};if(Be(e))e.forEach(r);else if(e instanceof _e)Dn(r,e);else{const s=ee(e);try{for(;s["System.Collections.IEnumerator.MoveNext"]();)r(s["System.Collections.Generic.IEnumerator`1.get_Current"]())}finally{V(s)}}const o=n,i=se();return o.tail=i,qe(t)}function Ko(e,t){return tt((n,r)=>Nn(r,n),t,Jo(e))}function Ba(e,t){const n=se(),r=tt((i,s)=>{const a=new _e(e(s),void 0);return i.tail=a,a},n,t),o=se();return r.tail=o,qe(n)}function ph(e,t){return((r,o)=>{e:for(;;){const i=r,s=o;if(Cr(s))return;if(e(Zo(s)))return i;r=i+1,o=qe(s);continue e}})(0,t)}function mh(e,t){const n=se(),r=tt((i,s)=>{if(e(s)){const a=new _e(s,void 0);return i.tail=a,a}else return i},n,t),o=se();return r.tail=o,qe(n)}function gh(e,t){const n=se(),r=se(),o=n,i=tt((l,u)=>{let f,c;const h=l[0],d=l[1];return e(u)?[(f=new _e(u,void 0),h.tail=f,f),d]:[h,(c=new _e(u,void 0),d.tail=c,c)]},[o,r],t),s=se();i[0].tail=s;const a=se();return i[1].tail=a,[qe(o),qe(r)]}function wh(e,t){const n=se(),r=tt((i,s)=>{const a=e(s);if(a==null)return i;{const l=new _e(y(a),void 0);return i.tail=l,l}},n,t),o=se();return r.tail=o,qe(n)}function Ga(e,t,n){return ph(r=>n.Equals(e,r),t)!=null}const X=x;function _h(e){throw new Error(e)}const yh="Enumeration already finished.",bh="Enumeration has not started. Call MoveNext.",za="The input sequence has an insufficient number of elements.",vh="Reset is not supported on this enumerator.";function Sh(){throw new Error(vh)}function Xo(){throw new Error(bh)}function Qo(){throw new Error(yh)}class Ch{constructor(t){this.f=t}toString(){const t=this;let n=0,r="seq [";const o=ee(t);try{for(;n<4&&o["System.Collections.IEnumerator.MoveNext"]();)n>0&&(r=r+"; "),r=r+We(o["System.Collections.Generic.IEnumerator`1.get_Current"]()),n=n+1|0;return n===4&&(r=r+"; ..."),r+"]"}finally{V(o)}}GetEnumerator(){return this.f()}[Symbol.iterator](){return qn(ee(this))}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}function Eh(e){return new Ch(e)}class xh{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"(){Sh()}Dispose(){this.dispose()}}function Er(e,t,n){return new xh(e,t,n)}function kh(e){let t,n,r=!1,o=!1,i;const s=()=>{if(o=!0,n!=null){const a=y(n);try{V(a)}finally{n=void 0}}if(t!=null){const a=y(t);try{V(a)}finally{t=void 0}}};return Er(()=>(r?o&&Qo():Xo(),i!=null?y(i):Qo()),()=>{let a;if(r||(r=!0),o)return!1;{let l;for(;l==null;){const u=t,f=n;if(u!=null)if(f!=null){const c=y(f);if(c["System.Collections.IEnumerator.MoveNext"]())i=de(c["System.Collections.Generic.IEnumerator`1.get_Current"]()),l=!0;else try{V(c)}finally{n=void 0}}else{const c=y(u);c["System.Collections.IEnumerator.MoveNext"]()?n=(a=c["System.Collections.Generic.IEnumerator`1.get_Current"](),ee(a)):(s(),l=!1)}else t=ee(e)}return y(l)}},()=>{o||s()})}function $h(e,t){return Er(()=>t["System.Collections.Generic.IEnumerator`1.get_Current"](),()=>t["System.Collections.IEnumerator.MoveNext"](),()=>{try{V(t)}finally{}})}function Wa(e,t,n){let r=!1,o,i=de(e());const s=()=>{if(i!=null){const l=y(i);try{n(l)}finally{i=void 0}}},a=()=>{try{s()}finally{o=void 0}};return Er(()=>(r||Xo(),o!=null?y(o):Qo()),()=>{if(r||(r=!0),i!=null){const l=y(i);let u;try{u=t(l)}catch(f){throw a(),f}return u!=null?(o=u,!0):(a(),!1)}else return!1},s)}function Th(e,t){let n,r=t;return Er(()=>{if(n!=null){const o=y(n)[0];return y(n)[1],o}else return Xo()},()=>(n=e(r),n!=null?(y(n)[0],r=y(n)[1],!0):!1),()=>{})}function Mh(e,t){t==null&&_h(e)}function tn(e){return Eh(e)}function Ct(e){return Mh("source",e),ee(e)}function ne(e){return tn(()=>ee(e()))}function qa(e){return tn(()=>kh(e))}function Ah(e,t){return tn(()=>Th(e,t))}function Ya(){return ne(()=>new Array(0))}function Ce(e){return ne(()=>rh(e))}function Cg(e){return e}function Ih(e){return e instanceof _e?Pn(e):Array.from(e)}function xr(e){return Be(e)?k(e):e instanceof _e?e:dh(e)}function Oh(e,t,n){return tn(()=>Wa(e,t,n))}function Za(e,t,n){return tn(()=>{let r=-1;return Wa(e,o=>(r=r+1|0,t(r,o)),n)})}function Ye(e,t){return qa([e,t])}function Nh(e,t,n){const r=Ct(t);try{const o=Ct(n);try{let i=0,s=r["System.Collections.IEnumerator.MoveNext"](),a=o["System.Collections.IEnumerator.MoveNext"]();for(;i===0&&s&&a;)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"](),a=o["System.Collections.IEnumerator.MoveNext"]());return(i!==0?i:s?1:a?-1:0)|0}finally{V(o)}}finally{V(r)}}function nn(e,t,n){const r=Ct(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{V(r)}}function kr(e,t,n){const r=Ct(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{V(r)}}function Ja(e,t){kr((n,r)=>{e(r)},void 0,t)}function Ue(e,t){return Oh(()=>Ct(t),n=>n["System.Collections.IEnumerator.MoveNext"]()?de(e(n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{V(n)})}function Ph(e,t){return Za(()=>Ct(t),(n,r)=>r["System.Collections.IEnumerator.MoveNext"]()?de(e(n,r["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{V(n)})}function Dh(e){return ne(()=>oh(Ih(e)))}function Fh(e,t){return tn(()=>{const n=Ct(t);try{for(let r=1;r<=e;r++)if(!n["System.Collections.IEnumerator.MoveNext"]())throw new Error(za+"\\nParameter name: source");return $h(()=>{},n)}catch(r){throw V(n),r}})}function Rh(e,t){return Za(()=>Ct(t),(n,r)=>{if(n<e){if(r["System.Collections.IEnumerator.MoveNext"]())return de(r["System.Collections.Generic.IEnumerator`1.get_Current"]());throw new Error(za+"\\nParameter name: source")}else return},n=>{V(n)})}function Lh(e,t){return ne(()=>qa(Ue(e,t)))}function Hh(e){return new w(0,[e])}function Ka(e){return new w(1,[e])}class w extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Ok","Error"]}}function ft(e,t){return t.tag===0?Hh(e(t.fields[0])):Ka(t.fields[0])}function Uh(e,t){return t.tag===0?e(t.fields[0]):Ka(t.fields[0])}class S extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class rn extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["PascalCase","CamelCase","SnakeCase"]}}function Xa(e){return e.slice(void 0,1).toLowerCase()+e.slice(1,e.length)}function Qa(e,t){switch(e.tag){case 2:return qd(Xa(t),"[A-Z]","_$0").toLowerCase();case 0:return t;default:return Xa(t)}}const Vh=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,el=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,jh=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function Bh(e){function t(r){return r.replace(el,"$1-$2-$3-$4-$5")}const n=e.trim().toLowerCase();if(Vh.test(n))return eh(n,"{","}","(",")");if(el.test(n))return t(n);if(jh.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 Gh(e,t){try{return t.contents=Bh(e),!0}catch{return!1}}var ei;(function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"})(ei||(ei={}));function zh(e,t){const[,n,r,o]=e;return{sign:n||"",prefix:r||"",digits:o,radix:t}}function tl(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 Wh(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 qh(e,t){if(t&ei.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 Yh(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||qh(i,t),!Wh(n).test(s))return zh(o,n)}return null}function Zh(e,t,n,r,o){const i=Yh(e,t,o);if(i!=null){let s=Number.parseInt(i.sign+i.digits,i.radix);if(!Number.isNaN(s)){const[a,l]=tl(!0,r);!n&&i.radix!==10&&s>=a&&s<=l&&(s=s<<32-r>>32-r);const[u,f]=tl(n,r);if(s>=u&&s<=f)return s}}throw new Error(`The input string ${e} was not in a correct format.`)}function on(e,t,n,r,o){try{return o.contents=Zh(e,t,n,r),!0}catch{return!1}}function nl(e,t){Jh(t);const n=new Date(e);return n.offset=t??new Date().getTimezoneOffset()*-6e4,n}function Jh(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 Kh(){return nl(-621355968e5,0)}function Xh(e){const[t,n]=ka(e),r=n==null?t.getTimezoneOffset()*-6e4:n==="Z"?0:n*6e4;return nl(t.getTime(),r)}function Qh(e,t){try{return t.contents=Xh(e),!0}catch{return!1}}function Fn(e){return e<0?Math.ceil(e):Math.floor(e)}function rl(e=0,t=0,n=0,r=0,o=0){switch(arguments.length){case 1:return ep(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 ep(e){return Number(BigInt(e)/10000n)}function tp(e){return Fn(e/864e5)}function np(e){return Fn(e%864e5/36e5)}function rp(e){return Fn(e%36e5/6e4)}function op(e){return Fn(e%6e4/1e3)}function ip(e){return Fn(e%1e3)}function sp(e,t="c",n){if(["c","g","G"].indexOf(t)===-1)throw new Error("Custom formats are not supported");const r=Math.abs(tp(e)),o=Math.abs(np(e)),i=Math.abs(rp(e)),s=Math.abs(op(e)),a=Math.abs(ip(e));return`${e<0?"-":""}${r===0&&(t==="c"||t==="g")?"":t==="c"?r+".":r+":"}${t==="g"?o:P(o,2)}:${P(i,2)}:${P(s,2)}${a===0&&(t==="c"||t==="g")?"":t==="g"?"."+P(a,3):"."+Bu(a,3,7)}`}function ap(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 rl(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 a=r[1]!=null&&r[1]==="-"?-1:1,l=+r[4],u=+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 a*rl(o,l,u,s,i)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}function lp(e,t){try{return t.contents=ap(e),!0}catch{return!1}}class ol{constructor(t,n){this.k=t,this.v=n}}function $r(e,t){return new ol(e,t)}function ye(e){return e.k}function Ie(e){return e.v}class oe extends ol{constructor(t,n,r,o,i){super(t,n),this.left=r,this.right=o,this.h=i|0}}function Tr(e,t,n,r,o){return new oe(e,t,n,r,o)}function be(e){return e.left}function ve(e){return e.right}function Rt(e){return e.h}function Eg(){}function il(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=y(r);if(o instanceof oe){const i=o;e=il(n+1,be(i)),t=ve(i);continue e}else return n+1|0}else return n|0}}function up(e){return il(0,e)}function Ze(e,t,n,r){let o,i,s;const a=e;if(a!=null){const c=y(a);s=c instanceof oe?(o=c,Rt(o)):1}else s=0;let l;const u=r;if(u!=null){const c=y(u);l=c instanceof oe?(i=c,Rt(i)):1}else l=0;const f=(s<l?l:s)|0;return f===0?$r(t,n):Tr(t,n,e,r,f+1)}function sl(e,t,n,r){let o,i,s,a,l,u,f,c,h;const d=e;if(d!=null){const m=y(d);h=m instanceof oe?(o=m,Rt(o)):1}else h=0;let p;const g=r;if(g!=null){const m=y(g);p=m instanceof oe?(i=m,Rt(i)):1}else p=0;if(p>h+2){const m=y(r);if(m instanceof oe){const _=m;if(s=be(_),(s!=null?(a=y(s),a instanceof oe?(l=a,Rt(l)):1):0)>h+1){const b=y(be(_));if(b instanceof oe){const C=b;return Ze(Ze(e,t,n,be(C)),ye(C),Ie(C),Ze(ve(C),ye(_),Ie(_),ve(_)))}else throw new Error("internal error: Map.rebalance")}else return Ze(Ze(e,t,n,be(_)),ye(_),Ie(_),ve(_))}else throw new Error("internal error: Map.rebalance")}else if(h>p+2){const m=y(e);if(m instanceof oe){const _=m;if(u=ve(_),(u!=null?(f=y(u),f instanceof oe?(c=f,Rt(c)):1):0)>p+1){const b=y(ve(_));if(b instanceof oe){const C=b;return Ze(Ze(be(_),ye(_),Ie(_),be(C)),ye(C),Ie(C),Ze(ve(C),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return Ze(be(_),ye(_),Ie(_),Ze(ve(_),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return Ze(e,t,n,r)}function sn(e,t,n,r){if(r!=null){const o=y(r),i=e.Compare(t,ye(o))|0;if(o instanceof oe){const s=o;return i<0?sl(sn(e,t,n,be(s)),ye(s),Ie(s),ve(s)):i===0?Tr(t,n,be(s),ve(s),Rt(s)):sl(be(s),ye(s),Ie(s),sn(e,t,n,ve(s)))}else return i<0?Tr(t,n,void 0,r,2):i===0?$r(t,n):Tr(t,n,r,void 0,2)}else return $r(t,n)}function al(e,t,n){e:for(;;){const r=e,o=t,i=n;if(i!=null){const s=y(i),a=r.Compare(o,ye(s))|0;if(a===0)return de(Ie(s));if(s instanceof oe){const l=s;e=r,t=o,n=a<0?be(l):ve(l);continue e}else return}else return}}function cp(e,t,n){const r=al(e,t,n);if(r==null)throw new Error;return y(r)}function fp(e,t,n){e:for(;;){const r=e,o=t,i=n;if(i!=null){const s=y(i),a=r.Compare(o,ye(s))|0;if(s instanceof oe){const l=s;if(a<0){e=r,t=o,n=be(l);continue e}else{if(a===0)return!0;e=r,t=o,n=ve(l);continue e}}else return a===0}else return!1}}function ll(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=y(r);if(o instanceof oe){const i=o;ll(n,be(i)),n(ye(i),Ie(i)),e=n,t=ve(i);continue e}else n(ye(o),Ie(o))}break}}function dp(e,t){ll(e,t)}function hp(e,t,n){let r=n;dp((o,i)=>{et(t,r,[o,i]),r=r+1|0},e)}function pp(e,t){return tt((n,r)=>sn(e,r[0],r[1],n),void 0,t)}function mp(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=sn(r,s[0],s[1],o),n=i;continue e}else return o}}function gp(e,t){let n=void 0;for(let r=0;r<=t.length-1;r++){const o=Z(r,t);n=sn(e,o[0],o[1],n)}return n}function ul(e,t){if(Be(t))return gp(e,t);if(t instanceof _e)return pp(e,t);{const n=ee(t);try{return mp(e,void 0,n)}finally{V(n)}}}class wp extends Fe{constructor(t,n){super(),this.stack=t,this.started=n}}function cl(e){e:for(;;){const t=e;if(O(t))return le();{const n=A(t),r=E(t);if(r!=null){const o=y(r);if(o instanceof oe){const i=o;e=J([be(i),$r(ye(i),Ie(i)),ve(i)],n);continue e}else return t}else{e=n;continue e}}}}function fl(e){return new wp(cl(te(e)),!1)}function _p(){throw new Error("enumeration not started")}function yp(){throw new Error("enumeration already finished")}function dl(e){if(e.started){const t=e.stack;if(O(t))return yp();if(E(t)!=null){const n=y(E(t));if(n instanceof oe)throw new Error("Please report error: Map iterator, unexpected stack for current");return[ye(n),Ie(n)]}else throw new Error("Please report error: Map iterator, unexpected stack for current")}else return _p()}function bp(e){if(e.started){const t=e.stack;if(O(t))return!1;if(E(t)!=null){if(y(E(t))instanceof oe)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=cl(A(t)),!O(e.stack)}else throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}else return e.started=!0,!O(e.stack)}function hl(e){let t=fl(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return dl(t)},"System.Collections.IEnumerator.get_Current"(){return dl(t)},"System.Collections.IEnumerator.MoveNext"(){return bp(t)},"System.Collections.IEnumerator.Reset"(){t=fl(e)},Dispose(){}}}class Mr{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return Ep(this)|0}Equals(t){const n=this;if(t instanceof Mr){const r=t,o=ee(n);try{const i=ee(r);try{const s=()=>{const a=o["System.Collections.IEnumerator.MoveNext"]();if(a===i["System.Collections.IEnumerator.MoveNext"]())if(a){const l=o["System.Collections.Generic.IEnumerator`1.get_Current"](),u=i["System.Collections.Generic.IEnumerator`1.get_Current"]();return ke(l[0],u[0])&&ke(l[1],u[1])?s():!1}else return!0;else return!1};return s()}finally{V(i)}}finally{V(o)}}else return!1}toString(){return"map ["+Xt("; ",Ue(n=>Kd("({0}, {1})",n[0],n[1]),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(){const t=this;return Array.from(t)}GetEnumerator(){return hl(this.tree)}[Symbol.iterator](){return qn(ee(this))}"System.Collections.IEnumerable.GetEnumerator"(){return hl(this.tree)}CompareTo(t){const n=this;if(t instanceof Mr)return Nh((o,i)=>{const s=n.comparer.Compare(o[0],i[0])|0;return(s!==0?s:De(o[1],i[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 ml(n,t[0])&&ke(pl(n,t[0]),t[1])}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){hp(this.tree,t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return ti(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return ti(this)|0}get size(){return ti(this)|0}clear(){throw new Error("Map cannot be mutated")}delete(t){throw new Error("Map cannot be mutated")}entries(){return Ue(n=>[n[0],n[1]],this)}get(t){return pl(this,t)}has(t){return ml(this,t)}keys(){return Ue(n=>n[0],this)}set(t,n){throw new Error("Map cannot be mutated")}values(){return Ue(n=>n[1],this)}forEach(t,n){const r=this;Ja(o=>{t(o[1],o[0],r)},r)}}function Ar(e,t){return new Mr(e,t)}function vp(e){return Ar(e,void 0)}function Sp(e,t,n){return Ar(e.comparer,sn(e.comparer,t,n,e.tree))}function pl(e,t){return cp(e.comparer,t,e.tree)}function ti(e){return up(e.tree)}function ml(e,t){return fp(e.comparer,t,e.tree)}function Cp(e,t){return al(e.comparer,t,e.tree)}function Ep(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,lt(o[0]))|0,n=t(n,lt(o[1]))|0}}finally{V(r)}return n|0}function gl(e,t,n){return Sp(n,e,t)}function wl(e,t){return Cp(t,e)}function xp(e,t){return Ar(t,ul(t,e))}function kp(e,t){return Ar(t,ul(t,e))}function ni(e){return vp(e)}class _l{constructor(t){this.k=t}}function Oe(e){return new _l(e)}function $(e){return e.k}class N extends _l{constructor(t,n,r,o){super(t),this.left=n,this.right=r,this.h=o|0}}function Ne(e,t,n,r){return new N(e,t,n,r)}function U(e){return e.left}function R(e){return e.right}function an(e){return e.h}function xg(){}function yl(e,t){e:for(;;){const n=e,r=t;if(n!=null){const o=y(n);if(o instanceof N){const i=o;e=U(i),t=yl(R(i),r+1);continue e}else return r+1|0}else return r|0}}function $p(e){return yl(e,0)}function Je(e,t,n){let r,o,i;const s=e;if(s!=null){const f=y(s);i=f instanceof N?(r=f,an(r)):1}else i=0;let a;const l=n;if(l!=null){const f=y(l);a=f instanceof N?(o=f,an(o)):1}else a=0;const u=(i<a?a:i)|0;return u===0?Oe(t):Ne(t,e,n,u+1)}function bl(e,t,n){let r,o,i,s,a,l,u,f,c;const h=e;if(h!=null){const g=y(h);c=g instanceof N?(r=g,an(r)):1}else c=0;let d;const p=n;if(p!=null){const g=y(p);d=g instanceof N?(o=g,an(o)):1}else d=0;if(d>c+2){const g=y(n);if(g instanceof N){const m=g;if(i=U(m),(i!=null?(s=y(i),s instanceof N?(a=s,an(a)):1):0)>c+1){const _=y(U(m));if(_ instanceof N){const b=_;return Je(Je(e,t,U(b)),$(b),Je(R(b),$(m),R(m)))}else throw new Error("internal error: Set.rebalance")}else return Je(Je(e,t,U(m)),$(m),R(m))}else throw new Error("internal error: Set.rebalance")}else if(c>d+2){const g=y(e);if(g instanceof N){const m=g;if(l=R(m),(l!=null?(u=y(l),u instanceof N?(f=u,an(f)):1):0)>d+1){const _=y(R(m));if(_ instanceof N){const b=_;return Je(Je(U(m),$(m),U(b)),$(b),Je(R(b),t,n))}else throw new Error("internal error: Set.rebalance")}else return Je(U(m),$(m),Je(R(m),t,n))}else throw new Error("internal error: Set.rebalance")}else return Je(e,t,n)}function ln(e,t,n){if(n!=null){const r=y(n),o=e.Compare(t,$(r))|0;if(r instanceof N){const i=r;return o<0?bl(ln(e,t,U(i)),$(i),R(i)):o===0?n:bl(U(i),$(i),ln(e,t,R(i)))}else{const i=e.Compare(t,$(r))|0;return i<0?Ne(t,void 0,n,2):i===0?n:Ne(t,n,void 0,2)}}else return Oe(t)}function vl(e,t,n){e:for(;;){const r=e,o=t,i=n;if(i!=null){const s=y(i),a=r.Compare(o,$(s))|0;if(s instanceof N){const l=s;if(a<0){e=r,t=o,n=U(l);continue e}else{if(a===0)return!0;e=r,t=o,n=R(l);continue e}}else return a===0}else return!1}}function Sl(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=y(r);if(o instanceof N){const i=o;Sl(n,U(i)),n($(i)),e=n,t=R(i);continue e}else n($(o))}break}}class Tp extends Fe{constructor(t,n){super(),this.stack=t,this.started=n}}function Cl(e){e:for(;;){const t=e;if(O(t))return le();{const n=E(t),r=A(t);if(n!=null){const o=y(n);if(o instanceof N){const i=o;e=J([U(i),Oe($(i)),R(i)],r);continue e}else return t}else{e=r;continue e}}}}function El(e){return new Tp(Cl(te(e)),!1)}function Mp(){throw new Error("Enumeration not started")}function Ap(){throw new Error("Enumeration already started")}function xl(e){if(e.started){const t=e.stack;if(O(t))return Ap();if(E(t)!=null){const n=y(E(t));return $(n)}else throw new Error("Please report error: Set iterator, unexpected stack for current")}else return Mp()}function Ip(e){if(e.started){const t=e.stack;if(O(t))return!1;if(E(t)!=null){if(y(E(t))instanceof N)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=Cl(A(t)),!O(e.stack)}else throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}else return e.started=!0,!O(e.stack)}function kl(e){let t=El(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return xl(t)},"System.Collections.IEnumerator.get_Current"(){return xl(t)},"System.Collections.IEnumerator.MoveNext"(){return Ip(t)},"System.Collections.IEnumerator.Reset"(){t=El(e)},Dispose(){}}}function Op(e,t,n){e:for(;;){const r=e,o=t,i=n;if(O(o))return O(i)?0:-1;if(O(i))return 1;if(E(i)!=null)if(E(o)!=null){const s=y(E(o)),a=y(E(i));if(s instanceof N){const l=s;if(U(l)==null)if(a instanceof N){const u=a;if(U(u)==null){const f=r.Compare($(l),$(u))|0;if(f!==0)return f|0;e=r,t=He(R(l),A(o)),n=He(R(u),A(i));continue e}else{let f,c,h,d,p;switch(O(o)?O(i)?f=2:E(i)!=null?(f=1,d=A(i),p=y(E(i))):f=2:E(o)!=null?(f=0,c=A(o),h=y(E(o))):O(i)?f=2:E(i)!=null?(f=1,d=A(i),p=y(E(i))):f=2,f){case 0:if(h instanceof N){const g=h;e=r,t=J([U(g),Ne($(g),void 0,R(g),0)],c),n=i;continue e}else{e=r,t=J([void 0,Oe($(h))],c),n=i;continue e}case 1:if(p instanceof N){const g=p;e=r,t=o,n=J([U(g),Ne($(g),void 0,R(g),0)],d);continue e}else{e=r,t=o,n=J([void 0,Oe($(p))],d);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const u=r.Compare($(l),$(a))|0;if(u!==0)return u|0;e=r,t=He(R(l),A(o)),n=He(void 0,A(i));continue e}else{let u,f,c,h,d;switch(O(o)?O(i)?u=2:E(i)!=null?(u=1,h=A(i),d=y(E(i))):u=2:E(o)!=null?(u=0,f=A(o),c=y(E(o))):O(i)?u=2:E(i)!=null?(u=1,h=A(i),d=y(E(i))):u=2,u){case 0:if(c instanceof N){const p=c;e=r,t=J([U(p),Ne($(p),void 0,R(p),0)],f),n=i;continue e}else{e=r,t=J([void 0,Oe($(c))],f),n=i;continue e}case 1:if(d instanceof N){const p=d;e=r,t=o,n=J([U(p),Ne($(p),void 0,R(p),0)],h);continue e}else{e=r,t=o,n=J([void 0,Oe($(d))],h);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else if(a instanceof N){const l=a;if(U(l)==null){const u=r.Compare($(s),$(l))|0;if(u!==0)return u|0;e=r,t=He(void 0,A(o)),n=He(R(l),A(i));continue e}else{let u,f,c,h,d;switch(O(o)?O(i)?u=2:E(i)!=null?(u=1,h=A(i),d=y(E(i))):u=2:E(o)!=null?(u=0,f=A(o),c=y(E(o))):O(i)?u=2:E(i)!=null?(u=1,h=A(i),d=y(E(i))):u=2,u){case 0:if(c instanceof N){const p=c;e=r,t=J([U(p),Ne($(p),void 0,R(p),0)],f),n=i;continue e}else{e=r,t=J([void 0,Oe($(c))],f),n=i;continue e}case 1:if(d instanceof N){const p=d;e=r,t=o,n=J([U(p),Ne($(p),void 0,R(p),0)],h);continue e}else{e=r,t=o,n=J([void 0,Oe($(d))],h);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const l=r.Compare($(s),$(a))|0;if(l!==0)return l|0;e=r,t=A(o),n=A(i);continue e}}else{y(E(i));let s,a,l,u,f;switch(O(o)?O(i)?s=2:E(i)!=null?(s=1,u=A(i),f=y(E(i))):s=2:E(o)!=null?(s=0,a=A(o),l=y(E(o))):O(i)?s=2:E(i)!=null?(s=1,u=A(i),f=y(E(i))):s=2,s){case 0:if(l instanceof N){const c=l;e=r,t=J([U(c),Ne($(c),void 0,R(c),0)],a),n=i;continue e}else{e=r,t=J([void 0,Oe($(l))],a),n=i;continue e}case 1:if(f instanceof N){const c=f;e=r,t=o,n=J([U(c),Ne($(c),void 0,R(c),0)],u);continue e}else{e=r,t=o,n=J([void 0,Oe($(f))],u);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else if(E(o)!=null){y(E(o));let s,a,l,u,f;switch(O(o)?O(i)?s=2:E(i)!=null?(s=1,u=A(i),f=y(E(i))):s=2:E(o)!=null?(s=0,a=A(o),l=y(E(o))):O(i)?s=2:E(i)!=null?(s=1,u=A(i),f=y(E(i))):s=2,s){case 0:if(l instanceof N){const c=l;e=r,t=J([U(c),Ne($(c),void 0,R(c),0)],a),n=i;continue e}else{e=r,t=J([void 0,Oe($(l))],a),n=i;continue e}case 1:if(f instanceof N){const c=f;e=r,t=o,n=J([U(c),Ne($(c),void 0,R(c),0)],u);continue e}else{e=r,t=o,n=J([void 0,Oe($(f))],u);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else{e=r,t=A(o),n=A(i);continue e}}}function $l(e,t,n){return t==null?n==null?0:-1:n==null?1:Op(e,te(t),te(n))|0}function Np(e,t,n){let r=n;Sl(o=>{et(t,r,o),r=r+1|0},e)}function Pp(e,t,n){e:for(;;){const r=e,o=t,i=n;if(i["System.Collections.IEnumerator.MoveNext"]()){e=r,t=ln(r,i["System.Collections.Generic.IEnumerator`1.get_Current"](),o),n=i;continue e}else return o}}function Dp(e,t){return Sr((n,r)=>ln(e,r,n),void 0,t)}function Fp(e,t){return tt((n,r)=>ln(e,r,n),void 0,t)}function Tl(e,t){if(Be(t))return Dp(e,t);if(t instanceof _e)return Fp(e,t);{const n=ee(t);try{return Pp(e,void 0,n)}finally{V(n)}}}class ri{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return Hp(this)|0}Equals(t){let n;const r=this;return t instanceof ri&&(n=t,$l(un(r),Ke(r),Ke(n))===0)}toString(){return"set ["+Xt("; ",Ue(n=>We(n),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(){const t=this;return Array.from(t)}CompareTo(t){const n=this;return $l(un(n),Ke(n),Ke(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 vl(un(n),t,Ke(n))}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){Np(Ke(this),t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return oi(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return oi(this)|0}GetEnumerator(){return kl(Ke(this))}[Symbol.iterator](){return qn(ee(this))}"System.Collections.IEnumerable.GetEnumerator"(){return kl(Ke(this))}get size(){return oi(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 Ml(this,t)}keys(){return Ue(n=>n,this)}values(){return Ue(n=>n,this)}entries(){return Ue(n=>[n,n],this)}forEach(t,n){const r=this;Ja(o=>{t(o,o,r)},r)}}function Ir(e,t){return new ri(e,t)}function un(e){return e.comparer}function Ke(e){return e.tree}function Rp(e){return Ir(e,void 0)}function Lp(e,t){return Ir(un(e),ln(un(e),t,Ke(e)))}function oi(e){return $p(Ke(e))}function Ml(e,t){return vl(un(e),t,Ke(e))}function Hp(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)+lt(r)+631|0}}finally{V(n)}return Math.abs(t)|0}function ii(e,t){return Ml(t,e)}function Up(e,t){return Lp(t,e)}function Vp(e){return Rp(e)}function jp(e,t){return Ir(t,Tl(t,e))}function Bp(e,t){return Ir(t,Tl(t,e))}function Rn(e,t,n){try{return"Expecting "+e+" but instead got:"+(n?`
7
7
  `:" ")+(JSON.stringify(t,null,4)+"")}catch{return"Expecting "+e+" but decoder failed. Couldn't report given value due to circular structure."+(n?`
8
- `:" ")}}function Yp(e,t){const n=t.tag===2?_n(t.fields[0],t.fields[1],!0):t.tag===1?_n(t.fields[0],t.fields[1],!1)+`
9
- Reason: `+t.fields[2]:t.tag===3?_n(t.fields[0],t.fields[1],!0):t.tag===4?_n(t.fields[0],t.fields[1],!0)+("\nNode `"+t.fields[2]+"` is unkown."):t.tag===5?"Expecting "+t.fields[0]+`.
8
+ `:" ")}}function Gp(e,t){const n=t.tag===2?Rn(t.fields[0],t.fields[1],!0):t.tag===1?Rn(t.fields[0],t.fields[1],!1)+`
9
+ Reason: `+t.fields[2]:t.tag===3?Rn(t.fields[0],t.fields[1],!0):t.tag===4?Rn(t.fields[0],t.fields[1],!0)+("\nNode `"+t.fields[2]+"` is unkown."):t.tag===5?"Expecting "+t.fields[0]+`.
10
10
  `+(JSON.stringify(t.fields[1],null,4)+""):t.tag===7?`The following errors were found:
11
11
 
12
- `+un(`
12
+ `+Xt(`
13
13
 
14
- `,t.fields[0]):t.tag===6?"The following `failure` occurred with the decoder: "+t.fields[0]:_n(t.fields[0],t.fields[1],!1);return t.tag===7?n:"Error at: `"+e+"`\n"+n}function ou(e,t,n){const r=t(e,n);if(r.tag===1){const o=r.fields[0];return new w(1,[Yp(o[0],o[1])])}else return new w(0,[r.fields[0]])}function wi(e,t){try{return ou("$",e,JSON.parse(t))}catch(n){if(n instanceof SyntaxError)return new w(1,["Given an invalid JSON: "+n.message]);throw n}}function iu(e,t){return typeof t=="string"?new w(0,[t]):new w(1,[[e,new S(0,["a string",t])]])}function Zp(e,t){if(typeof t=="string"){const n=t;return n.length===1?new w(0,[n[0]]):new w(1,[[e,new S(0,["a single character string",t])]])}else return new w(1,[[e,new S(0,["a char",t])]])}function Jp(e,t){if(typeof t=="string"){let n,r="00000000-0000-0000-0000-000000000000";return n=[Yh(t,new Ue(()=>r,o=>{r=o})),r],n[0]?new w(0,[n[1]]):new w(1,[[e,new S(0,["a guid",t])]])}else return new w(1,[[e,new S(0,["a guid",t])]])}function Kp(e,t){return t==null?new w(0,[void 0]):new w(1,[[e,new S(0,["null",t])]])}const xs=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?-128<=o&&o<=127?new w(0,[(o+128&255)-128]):new w(1,[[n,new S(1,["a sbyte",o,"Value was either too large or too small for a sbyte"])]]):new w(1,[[n,new S(1,["a sbyte",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,i=0;return o=[hn(r,511,!1,8,new Ue(()=>i,s=>{i=s|0})),i],o[0]?new w(0,[o[1]]):new w(1,[[n,new S(0,["a sbyte",r])]])}else return new w(1,[[n,new S(0,["a sbyte",r])]])},ks=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?0<=o&&o<=255?new w(0,[o&255]):new w(1,[[n,new S(1,["a byte",o,"Value was either too large or too small for a byte"])]]):new w(1,[[n,new S(1,["a byte",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,i=0;return o=[hn(r,511,!0,8,new Ue(()=>i,s=>{i=s})),i],o[0]?new w(0,[o[1]]):new w(1,[[n,new S(0,["a byte",r])]])}else return new w(1,[[n,new S(0,["a byte",r])]])},$s=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?-32768<=o&&o<=32767?new w(0,[(o+32768&65535)-32768]):new w(1,[[n,new S(1,["an int16",o,"Value was either too large or too small for an int16"])]]):new w(1,[[n,new S(1,["an int16",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,i=0;return o=[hn(r,511,!1,16,new Ue(()=>i,s=>{i=s|0})),i],o[0]?new w(0,[o[1]]):new w(1,[[n,new S(0,["an int16",r])]])}else return new w(1,[[n,new S(0,["an int16",r])]])},Ts=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?0<=o&&o<=65535?new w(0,[o&65535]):new w(1,[[n,new S(1,["an uint16",o,"Value was either too large or too small for an uint16"])]]):new w(1,[[n,new S(1,["an uint16",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,i=0;return o=[hn(r,511,!0,16,new Ue(()=>i,s=>{i=s})),i],o[0]?new w(0,[o[1]]):new w(1,[[n,new S(0,["an uint16",r])]])}else return new w(1,[[n,new S(0,["an uint16",r])]])},Ms=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?-2147483648<=o&&o<=2147483647?new w(0,[~~o]):new w(1,[[n,new S(1,["an int",o,"Value was either too large or too small for an int"])]]):new w(1,[[n,new S(1,["an int",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,i=0;return o=[hn(r,511,!1,32,new Ue(()=>i,s=>{i=s|0})),i],o[0]?new w(0,[o[1]]):new w(1,[[n,new S(0,["an int",r])]])}else return new w(1,[[n,new S(0,["an int",r])]])},As=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?0<=o&&o<=4294967295?new w(0,[o>>>0]):new w(1,[[n,new S(1,["an uint32",o,"Value was either too large or too small for an uint32"])]]):new w(1,[[n,new S(1,["an uint32",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,i=0;return o=[hn(r,511,!0,32,new Ue(()=>i,s=>{i=s})),i],o[0]?new w(0,[o[1]]):new w(1,[[n,new S(0,["an uint32",r])]])}else return new w(1,[[n,new S(0,["an uint32",r])]])};function Xp(e,t){return typeof t=="boolean"?new w(0,[t]):new w(1,[[e,new S(0,["a boolean",t])]])}function Qp(e,t){return typeof t=="number"?new w(0,[t]):new w(1,[[e,new S(0,["a float",t])]])}function em(e,t){return typeof t=="number"?new w(0,[t]):new w(1,[[e,new S(0,["a float32",t])]])}function tm(e,t){if(typeof t=="string"){let n,r=zd();return n=[qd(t,new Ue(()=>r,o=>{r=o})),r],n[0]?new w(0,[Yd(n[1])]):new w(1,[[e,new S(0,["a datetime",t])]])}else return new w(1,[[e,new S(0,["a datetime",t])]])}function nm(e,t){if(typeof t=="string"){let n,r=tp();return n=[rp(t,new Ue(()=>r,o=>{r=o})),r],n[0]?new w(0,[n[1]]):new w(1,[[e,new S(0,["a datetimeoffset",t])]])}else return new w(1,[[e,new S(0,["a datetime",t])]])}function rm(e,t){if(typeof t=="string"){let n,r=0;return n=[dp(t,new Ue(()=>r,o=>{r=o})),r],n[0]?new w(0,[n[1]]):new w(1,[[e,new S(0,["a timespan",t])]])}else return new w(1,[[e,new S(0,["a timespan",t])]])}function Is(e,t,n,r){let o;const i=n+".["+Dt(e)+"]";if(Array.isArray(r)){const s=r;return e<s.length?t(i,J(e,s)):new w(1,[[i,new S(5,["a longer array. Need index `"+Dt(e)+"` but there are only `"+(o=s.length,Dt(o))+"` entries",r])]])}else return new w(1,[[i,new S(0,["an array",r])]])}function om(e,t,n){return n==null?new w(0,[void 0]):mt(pe,e(t,n))}function Os(e,t,n){if(Array.isArray(n)){let r=-1;return mt(di,Pr((o,i)=>{if(r=r+1|0,o.tag===0){const s=e(t+".["+Dt(r)+"]",i);return s.tag===0?new w(0,[Fe(s.fields[0],o.fields[0])]):new w(1,[s.fields[0]])}else return o},new w(0,[ue()]),n))}else return new w(1,[[t,new S(0,["a list",n])]])}function im(e,t,n){if(Array.isArray(n)){let r=-1;return mt(Hh,Pr((o,i)=>{if(r=r+1|0,o.tag===0){const s=e(t+".["+Dt(r)+"]",i);return s.tag===0?new w(0,[Ye([s.fields[0]],o.fields[0])]):new w(1,[s.fields[0]])}else return o},new w(0,[[]]),n))}else return new w(1,[[t,new S(0,["a seq",n])]])}function Ns(e,t,n){if(Array.isArray(n)){let r=-1;const o=n;return Pr((i,s)=>{if(r=r+1|0,i.tag===0){const a=i.fields[0],l=e(t+".["+Dt(r)+"]",s);return l.tag===0?(tt(a,r,l.fields[0]),new w(0,[a])):new w(1,[l.fields[0]])}else return i},new w(0,[Nr(new Array(o.length),0,o.length,null)]),o)}else return new w(1,[[t,new S(0,["an array",n])]])}function sm(e,t,n){return((o,i)=>{e:for(;;){const s=o,a=i;if(I(s))return new w(1,[[t,new S(7,[a])]]);{const l=ou(t,Y(E(s)),n);if(l.tag===1){o=M(s),i=hi(a,ee(l.fields[0]));continue e}else return new w(0,[l.fields[0]])}}})(e,ue())}function am(e,t,n){return new w(0,[e])}function Ps(e,t,n,r){const o=t(n,r);return o.tag===0?e(o.fields[0],n,r):new w(1,[o.fields[0]])}function lm(e,t,n,r){const o=t(n,r);return o.tag===1?new w(1,[o.fields[0]]):new w(0,[e(o.fields[0])])}function um(e,t){let n;const r=e;return n=o=>i=>Is(0,r,o,i),o=>i=>Ps(bo(s=>{let a;const l=t;return a=u=>f=>Is(1,l,u,f),u=>f=>Ps((c,h,d)=>am([s,c]),Y(a),u,f)}),Y(n),o,i)}function cm(e){return Mp(e,{Compare:Le})}function fm(e){return qp(e,{Compare:Le})}function dm(e,t,n){return n!==null&&Object.getPrototypeOf(n||!1)===Object.prototype?Il((r,o)=>{const i=r[0];return o.tag===0?mt(s=>Fe(s,o.fields[0]),r[1](t+"."+i)(n[i])):o},e,new w(0,[ue()])):new w(1,[[t,new S(0,["an object",n])]])}function hm(e,t,n,r){return r!==null&&Object.getPrototypeOf(r||!1)===Object.prototype?Rr((o,i)=>{if(o.tag===0){const s=e(n,i);if(s.tag===0){const a=t(n+"."+i,r[i]);return a.tag===0?new w(0,[Fe([s.fields[0],a.fields[0]],o.fields[0])]):new w(1,[a.fields[0]])}else return new w(1,[s.fields[0]])}else return o},new w(0,[ue()]),Object.keys(r)):new w(1,[[n,new S(0,["an object",r])]])}function su(e,t,n,r){let o;const i=t.length+e|0;if(i!==r.length)return new w(1,[[n,new S(6,[(o=r.length|0,Rt(St("Expected array of length %i but got %i"))(i)(o))])]]);{let s=new w(0,[ue()]);for(let a=e;a<=r.length-1;a++)if(s.tag===0){const l=s.fields[0],u=Rt(St("%s[%i]"))(n)(a),f=J(a-e,t),c=J(a,r);s=mt(h=>Fe(h,l),f(u)(c))}return mt(di,s)}}function Ds(e,t,n,r,o,i){const s=uh(a=>Yt(a)===r,Wa(n));if(s!=null){const a=s,l=cn(u=>We(e,t,!1,u[1]),Ja(a));return mt(u=>Sc(a,Ln(u)),l.length===0&&i.length<=1?new w(0,[ue()]):su(1,l,o,i))}else return new w(1,[[o,new S(6,["Cannot find case "+r+" in "+j(n)])]])}function Fs(e,t,n,r){let o;const i=new Ue(Ke());let s;const a=j(r);s=a===""?e:Zl(a,i,e);let l;if(Za(r)){const u=cn(f=>[Vl(t,Yt(f)),We(s,t,!1,f[1])],xn(r));l=f=>c=>mt(h=>Cc(r,Ln(h)),dm(u,f,c))}else if(Ya(r))l=u=>f=>{if(typeof f=="string")return Ds(s,t,r,f,u,[]);if(Array.isArray(f)){const c=f;return Gh(h=>Ds(s,t,r,h,u,c),iu(u+"[0]",J(0,c)))}else return new w(1,[[u,new S(0,["a string or array",f])]])};else if(n)l=u=>f=>new w(1,[[u,new S(2,["an extra coder for "+j(r),f])]]);else throw new Error((o=j(r),Rt(St(`Cannot generate auto decoder for %s. Please pass an extra decoder.
14
+ `,t.fields[0]):t.tag===6?"The following `failure` occurred with the decoder: "+t.fields[0]:Rn(t.fields[0],t.fields[1],!1);return t.tag===7?n:"Error at: `"+e+"`\n"+n}function Al(e,t,n){const r=t(e,n);if(r.tag===1){const o=r.fields[0];return new w(1,[Gp(o[0],o[1])])}else return new w(0,[r.fields[0]])}function si(e,t){try{return Al("$",e,JSON.parse(t))}catch(n){if(n instanceof SyntaxError)return new w(1,["Given an invalid JSON: "+n.message]);throw n}}function Il(e,t){return typeof t=="string"?new w(0,[t]):new w(1,[[e,new S(0,["a string",t])]])}function zp(e,t){if(typeof t=="string"){const n=t;return n.length===1?new w(0,[n[0]]):new w(1,[[e,new S(0,["a single character string",t])]])}else return new w(1,[[e,new S(0,["a char",t])]])}function Wp(e,t){if(typeof t=="string"){let n,r="00000000-0000-0000-0000-000000000000";return n=[Gh(t,new Re(()=>r,o=>{r=o})),r],n[0]?new w(0,[n[1]]):new w(1,[[e,new S(0,["a guid",t])]])}else return new w(1,[[e,new S(0,["a guid",t])]])}function qp(e,t){return t==null?new w(0,[void 0]):new w(1,[[e,new S(0,["null",t])]])}const Ol=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?-128<=o&&o<=127?new w(0,[(o+128&255)-128]):new w(1,[[n,new S(1,["a sbyte",o,"Value was either too large or too small for a sbyte"])]]):new w(1,[[n,new S(1,["a sbyte",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,i=0;return o=[on(r,511,!1,8,new Re(()=>i,s=>{i=s|0})),i],o[0]?new w(0,[o[1]]):new w(1,[[n,new S(0,["a sbyte",r])]])}else return new w(1,[[n,new S(0,["a sbyte",r])]])},Nl=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?0<=o&&o<=255?new w(0,[o&255]):new w(1,[[n,new S(1,["a byte",o,"Value was either too large or too small for a byte"])]]):new w(1,[[n,new S(1,["a byte",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,i=0;return o=[on(r,511,!0,8,new Re(()=>i,s=>{i=s})),i],o[0]?new w(0,[o[1]]):new w(1,[[n,new S(0,["a byte",r])]])}else return new w(1,[[n,new S(0,["a byte",r])]])},Pl=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?-32768<=o&&o<=32767?new w(0,[(o+32768&65535)-32768]):new w(1,[[n,new S(1,["an int16",o,"Value was either too large or too small for an int16"])]]):new w(1,[[n,new S(1,["an int16",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,i=0;return o=[on(r,511,!1,16,new Re(()=>i,s=>{i=s|0})),i],o[0]?new w(0,[o[1]]):new w(1,[[n,new S(0,["an int16",r])]])}else return new w(1,[[n,new S(0,["an int16",r])]])},Dl=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?0<=o&&o<=65535?new w(0,[o&65535]):new w(1,[[n,new S(1,["an uint16",o,"Value was either too large or too small for an uint16"])]]):new w(1,[[n,new S(1,["an uint16",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,i=0;return o=[on(r,511,!0,16,new Re(()=>i,s=>{i=s})),i],o[0]?new w(0,[o[1]]):new w(1,[[n,new S(0,["an uint16",r])]])}else return new w(1,[[n,new S(0,["an uint16",r])]])},Fl=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?-2147483648<=o&&o<=2147483647?new w(0,[~~o]):new w(1,[[n,new S(1,["an int",o,"Value was either too large or too small for an int"])]]):new w(1,[[n,new S(1,["an int",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,i=0;return o=[on(r,511,!1,32,new Re(()=>i,s=>{i=s|0})),i],o[0]?new w(0,[o[1]]):new w(1,[[n,new S(0,["an int",r])]])}else return new w(1,[[n,new S(0,["an int",r])]])},Rl=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?0<=o&&o<=4294967295?new w(0,[o>>>0]):new w(1,[[n,new S(1,["an uint32",o,"Value was either too large or too small for an uint32"])]]):new w(1,[[n,new S(1,["an uint32",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,i=0;return o=[on(r,511,!0,32,new Re(()=>i,s=>{i=s})),i],o[0]?new w(0,[o[1]]):new w(1,[[n,new S(0,["an uint32",r])]])}else return new w(1,[[n,new S(0,["an uint32",r])]])};function Yp(e,t){return typeof t=="boolean"?new w(0,[t]):new w(1,[[e,new S(0,["a boolean",t])]])}function Zp(e,t){return typeof t=="number"?new w(0,[t]):new w(1,[[e,new S(0,["a float",t])]])}function Jp(e,t){return typeof t=="number"?new w(0,[t]):new w(1,[[e,new S(0,["a float32",t])]])}function Kp(e,t){if(typeof t=="string"){let n,r=Vd();return n=[Bd(t,new Re(()=>r,o=>{r=o})),r],n[0]?new w(0,[Gd(n[1])]):new w(1,[[e,new S(0,["a datetime",t])]])}else return new w(1,[[e,new S(0,["a datetime",t])]])}function Xp(e,t){if(typeof t=="string"){let n,r=Kh();return n=[Qh(t,new Re(()=>r,o=>{r=o})),r],n[0]?new w(0,[n[1]]):new w(1,[[e,new S(0,["a datetimeoffset",t])]])}else return new w(1,[[e,new S(0,["a datetime",t])]])}function Qp(e,t){if(typeof t=="string"){let n,r=0;return n=[lp(t,new Re(()=>r,o=>{r=o})),r],n[0]?new w(0,[n[1]]):new w(1,[[e,new S(0,["a timespan",t])]])}else return new w(1,[[e,new S(0,["a timespan",t])]])}function Ll(e,t,n,r){let o;const i=n+".["+Mt(e)+"]";if(Array.isArray(r)){const s=r;return e<s.length?t(i,Z(e,s)):new w(1,[[i,new S(5,["a longer array. Need index `"+Mt(e)+"` but there are only `"+(o=s.length,Mt(o))+"` entries",r])]])}else return new w(1,[[i,new S(0,["an array",r])]])}function em(e,t,n){return n==null?new w(0,[void 0]):ft(de,e(t,n))}function Hl(e,t,n){if(Array.isArray(n)){let r=-1;return ft(Jo,Sr((o,i)=>{if(r=r+1|0,o.tag===0){const s=e(t+".["+Mt(r)+"]",i);return s.tag===0?new w(0,[He(s.fields[0],o.fields[0])]):new w(1,[s.fields[0]])}else return o},new w(0,[le()]),n))}else return new w(1,[[t,new S(0,["a list",n])]])}function tm(e,t,n){if(Array.isArray(n)){let r=-1;return ft(Dh,Sr((o,i)=>{if(r=r+1|0,o.tag===0){const s=e(t+".["+Mt(r)+"]",i);return s.tag===0?new w(0,[Ye([s.fields[0]],o.fields[0])]):new w(1,[s.fields[0]])}else return o},new w(0,[[]]),n))}else return new w(1,[[t,new S(0,["a seq",n])]])}function Ul(e,t,n){if(Array.isArray(n)){let r=-1;const o=n;return Sr((i,s)=>{if(r=r+1|0,i.tag===0){const a=i.fields[0],l=e(t+".["+Mt(r)+"]",s);return l.tag===0?(et(a,r,l.fields[0]),new w(0,[a])):new w(1,[l.fields[0]])}else return i},new w(0,[vr(new Array(o.length),0,o.length,null)]),o)}else return new w(1,[[t,new S(0,["an array",n])]])}function nm(e,t,n){return((o,i)=>{e:for(;;){const s=o,a=i;if(O(s))return new w(1,[[t,new S(7,[a])]]);{const l=Al(t,Y(E(s)),n);if(l.tag===1){o=A(s),i=Ko(a,te(l.fields[0]));continue e}else return new w(0,[l.fields[0]])}}})(e,le())}function rm(e,t,n){return new w(0,[e])}function Vl(e,t,n,r){const o=t(n,r);return o.tag===0?e(o.fields[0],n,r):new w(1,[o.fields[0]])}function om(e,t,n,r){const o=t(n,r);return o.tag===1?new w(1,[o.fields[0]]):new w(0,[e(o.fields[0])])}function im(e,t){let n;const r=e;return n=o=>i=>Ll(0,r,o,i),o=>i=>Vl(_o(s=>{let a;const l=t;return a=u=>f=>Ll(1,l,u,f),u=>f=>Vl((c,h,d)=>rm([s,c]),Y(a),u,f)}),Y(n),o,i)}function sm(e){return xp(e,{Compare:De})}function am(e){return Bp(e,{Compare:De})}function lm(e,t,n){return n!==null&&Object.getPrototypeOf(n||!1)===Object.prototype?ja((r,o)=>{const i=r[0];return o.tag===0?ft(s=>He(s,o.fields[0]),r[1](t+"."+i)(n[i])):o},e,new w(0,[le()])):new w(1,[[t,new S(0,["an object",n])]])}function um(e,t,n,r){return r!==null&&Object.getPrototypeOf(r||!1)===Object.prototype?kr((o,i)=>{if(o.tag===0){const s=e(n,i);if(s.tag===0){const a=t(n+"."+i,r[i]);return a.tag===0?new w(0,[He([s.fields[0],a.fields[0]],o.fields[0])]):new w(1,[a.fields[0]])}else return new w(1,[s.fields[0]])}else return o},new w(0,[le()]),Object.keys(r)):new w(1,[[n,new S(0,["an object",r])]])}function jl(e,t,n,r){let o;const i=t.length+e|0;if(i!==r.length)return new w(1,[[n,new S(6,[(o=r.length|0,Ft(St("Expected array of length %i but got %i"))(i)(o))])]]);{let s=new w(0,[le()]);for(let a=e;a<=r.length-1;a++)if(s.tag===0){const l=s.fields[0],u=Ft(St("%s[%i]"))(n)(a),f=Z(a-e,t),c=Z(a,r);s=ft(h=>He(h,l),f(u)(c))}return ft(Jo,s)}}function Bl(e,t,n,r,o,i){const s=ih(a=>qt(a)===r,Gs(n));if(s!=null){const a=s,l=en(u=>Xe(e,t,!1,u[1]),Ys(a));return ft(u=>_c(a,Pn(u)),l.length===0&&i.length<=1?new w(0,[le()]):jl(1,l,o,i))}else return new w(1,[[o,new S(6,["Cannot find case "+r+" in "+G(n)])]])}function Gl(e,t,n,r){let o;const i=new Re(Ge());let s;const a=G(r);s=a===""?e:gl(a,i,e);let l;if(qs(r)){const u=en(f=>[Qa(t,qt(f)),Xe(s,t,!1,f[1])],vn(r));l=f=>c=>ft(h=>yc(r,Pn(h)),lm(u,f,c))}else if(Ws(r))l=u=>f=>{if(typeof f=="string")return Bl(s,t,r,f,u,[]);if(Array.isArray(f)){const c=f;return Uh(h=>Bl(s,t,r,h,u,c),Il(u+"[0]",Z(0,c)))}else return new w(1,[[u,new S(0,["a string or array",f])]])};else if(n)l=u=>f=>new w(1,[[u,new S(2,["an extra coder for "+G(r),f])]]);else throw new Error((o=G(r),Ft(St(`Cannot generate auto decoder for %s. Please pass an extra decoder.
15
15
 
16
- Documentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders`))(o)));return i.contents=l,l}function We(e,t,n,r){let o,i,s,a;const l=j(r),u=Jl(l,e);if(u==null)if(ja(r)){const f=We(e,t,!1,On(r));return c=>h=>Ns(Y(f),c,h)}else if(ti(r))switch(j(za(r))){case"System.SByte":return c=>h=>{const d=r,p=c,g=h,m=xs(p)(g);if(m.tag===1)return new w(1,[m.fields[0]]);{const _=m.fields[0]|0;return Gt(_,jt(d),{Equals:(y,C)=>y===C,GetHashCode:qe})?new w(0,[Bt(d,_.toString())]):new w(1,[[p,new S(1,[j(d),g,"Unkown value provided for the enum"])]])}};case"System.Byte":return c=>h=>{const d=r,p=c,g=h,m=ks(p)(g);if(m.tag===1)return new w(1,[m.fields[0]]);{const _=m.fields[0];return Gt(_,jt(d),{Equals:(y,C)=>y===C,GetHashCode:qe})?new w(0,[Bt(d,_.toString())]):new w(1,[[p,new S(1,[j(d),g,"Unkown value provided for the enum"])]])}};case"System.Int16":return c=>h=>{const d=r,p=c,g=h,m=$s(p)(g);if(m.tag===1)return new w(1,[m.fields[0]]);{const _=m.fields[0]|0;return Gt(_,jt(d),{Equals:(y,C)=>y===C,GetHashCode:qe})?new w(0,[Bt(d,Yu(_))]):new w(1,[[p,new S(1,[j(d),g,"Unkown value provided for the enum"])]])}};case"System.UInt16":return c=>h=>{const d=r,p=c,g=h,m=Ts(p)(g);if(m.tag===1)return new w(1,[m.fields[0]]);{const _=m.fields[0];return Gt(_,jt(d),{Equals:(y,C)=>y===C,GetHashCode:qe})?new w(0,[Bt(d,_.toString())]):new w(1,[[p,new S(1,[j(d),g,"Unkown value provided for the enum"])]])}};case"System.Int32":return c=>h=>{const d=r,p=c,g=h,m=Ms(p)(g);if(m.tag===1)return new w(1,[m.fields[0]]);{const _=m.fields[0]|0;return Gt(_,jt(d),{Equals:(y,C)=>y===C,GetHashCode:qe})?new w(0,[Bt(d,Dt(_))]):new w(1,[[p,new S(1,[j(d),g,"Unkown value provided for the enum"])]])}};case"System.UInt32":return c=>h=>{const d=r,p=c,g=h,m=As(p)(g);if(m.tag===1)return new w(1,[m.fields[0]]);{const _=m.fields[0];return Gt(_,jt(d),{Equals:(y,C)=>y===C,GetHashCode:qe})?new w(0,[Bt(d,_.toString())]):new w(1,[[p,new S(1,[j(d),g,"Unkown value provided for the enum"])]])}};default:{const c=j(r),h=xl(St(`Cannot generate auto decoder for %s.
16
+ Documentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders`))(o)));return i.contents=l,l}function Xe(e,t,n,r){let o,i,s,a;const l=G(r),u=wl(l,e);if(u==null)if(Us(r)){const f=Xe(e,t,!1,bn(r));return c=>h=>Ul(Y(f),c,h)}else if(Co(r))switch(G(Bs(r))){case"System.SByte":return c=>h=>{const d=r,p=c,g=h,m=Ol(p)(g);if(m.tag===1)return new w(1,[m.fields[0]]);{const _=m.fields[0]|0;return nn(_,Yt(d),{Equals:(b,C)=>b===C,GetHashCode:ze})?new w(0,[Zt(d,_.toString())]):new w(1,[[p,new S(1,[G(d),g,"Unkown value provided for the enum"])]])}};case"System.Byte":return c=>h=>{const d=r,p=c,g=h,m=Nl(p)(g);if(m.tag===1)return new w(1,[m.fields[0]]);{const _=m.fields[0];return nn(_,Yt(d),{Equals:(b,C)=>b===C,GetHashCode:ze})?new w(0,[Zt(d,_.toString())]):new w(1,[[p,new S(1,[G(d),g,"Unkown value provided for the enum"])]])}};case"System.Int16":return c=>h=>{const d=r,p=c,g=h,m=Pl(p)(g);if(m.tag===1)return new w(1,[m.fields[0]]);{const _=m.fields[0]|0;return nn(_,Yt(d),{Equals:(b,C)=>b===C,GetHashCode:ze})?new w(0,[Zt(d,Gu(_))]):new w(1,[[p,new S(1,[G(d),g,"Unkown value provided for the enum"])]])}};case"System.UInt16":return c=>h=>{const d=r,p=c,g=h,m=Dl(p)(g);if(m.tag===1)return new w(1,[m.fields[0]]);{const _=m.fields[0];return nn(_,Yt(d),{Equals:(b,C)=>b===C,GetHashCode:ze})?new w(0,[Zt(d,_.toString())]):new w(1,[[p,new S(1,[G(d),g,"Unkown value provided for the enum"])]])}};case"System.Int32":return c=>h=>{const d=r,p=c,g=h,m=Fl(p)(g);if(m.tag===1)return new w(1,[m.fields[0]]);{const _=m.fields[0]|0;return nn(_,Yt(d),{Equals:(b,C)=>b===C,GetHashCode:ze})?new w(0,[Zt(d,Mt(_))]):new w(1,[[p,new S(1,[G(d),g,"Unkown value provided for the enum"])]])}};case"System.UInt32":return c=>h=>{const d=r,p=c,g=h,m=Rl(p)(g);if(m.tag===1)return new w(1,[m.fields[0]]);{const _=m.fields[0];return nn(_,Yt(d),{Equals:(b,C)=>b===C,GetHashCode:ze})?new w(0,[Zt(d,_.toString())]):new w(1,[[p,new S(1,[G(d),g,"Unkown value provided for the enum"])]])}};default:{const c=G(r),h=Da(St(`Cannot generate auto decoder for %s.
17
17
  Thoth.Json.Net only support the following enum types:
18
18
  - sbyte
19
19
  - byte
@@ -22,10 +22,10 @@ Thoth.Json.Net only support the following enum types:
22
22
  - int
23
23
  - uint32
24
24
  If you can't use one of these types, please pass an extra decoder.
25
- `))(c);return d=>h(d)}}else if(Ba(r))if(ni(r)){const f=cn(c=>We(e,t,!1,c),qa(r));return c=>h=>Array.isArray(h)?mt(d=>Ec(Ln(d)),su(0,f,c,h)):new w(1,[[c,new S(0,["an array",h])]])}else switch(j(Ga(r))){case"Microsoft.FSharp.Core.FSharpOption`1[System.Object]":return o=We(e,t,!0,J(0,Me(r))),c=>h=>om(Y(o),c,h);case"Microsoft.FSharp.Collections.FSharpList`1[System.Object]":return i=We(e,t,!1,J(0,Me(r))),c=>h=>Os(Y(i),c,h);case"System.Collections.Generic.IEnumerable`1[System.Object]":return s=We(e,t,!1,J(0,Me(r))),c=>h=>im(Y(s),c,h);case"Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]":{const c=We(e,t,!1,J(0,Me(r))),h=We(e,t,!1,J(1,Me(r)));let d;const p=$([g=>m=>hm(Y(c),Y(h),g,m),(a=um(Y(c),Y(h)),g=>m=>Os(Y(a),g,m))]);return d=g=>m=>sm(p,g,m),g=>m=>lm(cm,Y(d),g,m)}case"Microsoft.FSharp.Collections.FSharpSet`1[System.Object]":{const c=We(e,t,!1,J(0,Me(r)));return h=>d=>{const p=Ns(Y(c),h,d);return p.tag===0?new w(0,[fm(p.fields[0])]):new w(1,[p.fields[0]])}}default:return Fs(e,t,n,r)}else switch(l){case"System.Boolean":return f=>c=>Xp(f,c);case"Microsoft.FSharp.Core.Unit":return f=>c=>Kp(f,c);case"System.String":return f=>c=>iu(f,c);case"System.Char":return f=>c=>Zp(f,c);case"System.SByte":return xs;case"System.Byte":return ks;case"System.Int16":return $s;case"System.UInt16":return Ts;case"System.Int32":return Ms;case"System.UInt32":return As;case"System.Double":return f=>c=>Qp(f,c);case"System.Single":return f=>c=>em(f,c);case"System.DateTime":return f=>c=>tm(f,c);case"System.DateTimeOffset":return f=>c=>nm(f,c);case"System.TimeSpan":return f=>c=>rm(f,c);case"System.Guid":return f=>c=>Jp(f,c);case"System.Object":return f=>c=>new w(0,[c]);default:return Fs(e,t,n,r)}else{const f=u;return c=>h=>f.contents(c)(h)}}function pm(e){return mi({Compare:xr})}function _i(e,t,n){const r=Io(t,new dn(0,[]));return We(pm(),r,!1,e)}class mm{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 yi extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,yi.prototype)}}class bi{static get maxTrampolineCallCount(){return 2e3}constructor(){this.callCount=0}incrementAndCheck(){return this.callCount++>bi.maxTrampolineCallCount}hijack(t){this.callCount=0,setTimeout(t,0)}}function bt(e){return t=>{if(t.cancelToken.isCancelled)t.onCancel(new yi);else if(t.trampoline.incrementAndCheck())t.trampoline.hijack(()=>{try{e(t)}catch(n){t.onError(lr(n))}});else try{e(t)}catch(n){t.onError(lr(n))}}}function gm(e,t){return bt(n=>{e({onSuccess:r=>{try{t(r)(n)}catch(o){n.onError(lr(o))}},onError:n.onError,onCancel:n.onCancel,cancelToken:n.cancelToken,trampoline:n.trampoline})})}function wm(e){return bt(t=>t.onSuccess(e))}class _m{Bind(t,n){return gm(t,n)}Combine(t,n){return this.Bind(t,()=>n)}Delay(t){return bt(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 wm(t)}ReturnFrom(t){return t}TryFinally(t,n){return bt(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 bt(r=>{t({onSuccess:r.onSuccess,onCancel:r.onCancel,cancelToken:r.cancelToken,trampoline:r.trampoline,onError:o=>{try{n(o)(r)}catch(i){r.onError(lr(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 bt(t=>t.onSuccess(void 0))}}const R=new _m;function ym(e){return new au(0,[e])}function bm(e){return new au(1,[e])}class au extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Choice1Of2","Choice2Of2"]}}function vm(e){return ym(e)}function Sm(e){return bm(e)}function oo(e){}const Cm=new mm;function Em(e){return bt(t=>{e({onSuccess:n=>t.onSuccess(vm(n)),onError:n=>t.onSuccess(Sm(n)),onCancel:t.onCancel,cancelToken:t.cancelToken,trampoline:t.trampoline})})}function xm(e){return bt(t=>e([t.onSuccess,t.onError,t.onCancel]))}function km(e,t){return Tm(e,t)}function $m(e,t){return km(e,t)}function Tm(e,t,n,r,o){typeof t!="function"&&(o=t,t=void 0);const i=new bi;e({onSuccess:t||oo,onError:oo,onCancel:oo,cancelToken:o||Cm,trampoline:i})}class Ur extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class Mm extends z{constructor(t,n){super(),this.tag=0,this.fields=[t,n]}cases(){return["Header"]}}class lu extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Empty","Text","Binary","Form"]}}class Un extends He{constructor(t,n,r,o,i,s,a,l){super(),this.url=t,this.method=n,this.headers=r,this.withCredentials=o,this.overridenMimeType=i,this.overridenResponseType=s,this.timeout=a,this.content=l}}class zt extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class uu extends He{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}}function Am(e){return new Mm("Authorization",e)}const Tt=new Un("",new Ur(0,[]),ue(),!1,void 0,void 0,void 0,new lu(0,[]));new uu(0,"","","",mi({Compare:xr}),new zt(0,[""]));function Rs(e,t){return nh(t)?new Array(0):Tl(t,[e],void 0,0)}function Im(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 vi(e){return new Un(e,Tt.method,Tt.headers,Tt.withCredentials,Tt.overridenMimeType,Tt.overridenResponseType,Tt.timeout,Tt.content)}function Si(e,t){return new Un(t.url,e,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function Om(e,t){return new Un(t.url,t.method,hi(t.headers,ee(e)),t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function Nm(e,t){return new Un(t.url,t.method,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,e)}function Ls(e){return xm(t=>{const n=new XMLHttpRequest;n.open(Im(e.method),e.url),n.onreadystatechange=()=>{let l,u,f,c,h,d,p;n.readyState===4&&t[0]((l=(u=n.responseType,u===""||u==="text"?n.responseText:""),f=n.status|0,c=n.responseType,h=(d=n.responseType,d===""?new zt(0,[n.responseText]):d==="text"?new zt(0,[n.responseText]):d==="arraybuffer"?new zt(2,[n.response]):d==="blob"?new zt(1,[n.response]):new zt(3,[n.response])),p=Ap(ch(g=>{const m=$(Rs(":",g));if(!I(m))return[E(m).toLocaleLowerCase(),un(":",M(m)).trim()]},Rs(`\r
26
- `,n.getAllResponseHeaders())),{Compare:xr}),new uu(f,l,c,n.responseURL,p,h)))};const r=ne(e.headers);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const l=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n.setRequestHeader(l.fields[0],l.fields[1])}}finally{G(r)}n.withCredentials=e.withCredentials;const o=e.overridenMimeType;if(o!=null){const l=o;n.overrideMimeType(l)}const i=e.overridenResponseType;if(i!=null)switch(i.tag){case 1:{n.responseType="blob";break}case 2:{n.responseType="arraybuffer";break}default:n.responseType="text"}const s=e.timeout;if(s!=null){const l=s|0;n.timeout=l|0}const a=e.content;switch(a.tag){case 1:{n.send(pe(a.fields[0]));break}case 3:{n.send(pe(a.fields[0]));break}case 2:{n.send(pe(a.fields[0]));break}default:n.send()}})}function Pm(e){return e}const cu=Ke();function Kn(e){return Array.from(e)}function Dm(e){return Or(e,"O")}function Fm(e){return cp(e)}function Rm(){return Ke()}function Lm(e){return Or(e,"O")}function Hm(e,t){return JSON.stringify(t,void 0,pe(e))}function Um(e){return t=>ih(sh(e,t),()=>cu)}function Hs(e,t,n,r){let o;const i=new Ue(Ke());let s;const a=j(r);s=a===""?e:Zl(a,i,e);let l;if(Za(r)){const u=cn(f=>{const c=Vl(t,Yt(f)),h=st(s,t,n,f[1]);return d=>p=>{const g=vc(d,f);return(!n||n&&g!=null)&&(p[c]=h(g)),p}},xn(r));l=f=>Rr((c,h)=>h(f)(c),{},u)}else if(Ya(r))l=u=>{const f=bc(u,r),c=f[0],h=f[1],d=h.length|0;if(d===0)return Yt(c);{const p=d|0,g=Ja(c),m=Nr(new Array(p+1),0,p+1,null);tt(m,0,Yt(c));for(let _=1;_<=p;_++){const y=st(s,t,n,J(_-1,g)[1]);tt(m,_,y(J(_-1,h)))}return m}};else throw new Error((o=j(r),Rt(St(`Cannot generate auto encoder for %s. Please pass an extra encoder.
25
+ `))(c);return d=>h(d)}}else if(Vs(r))if(Eo(r)){const f=en(c=>Xe(e,t,!1,c),zs(r));return c=>h=>Array.isArray(h)?ft(d=>bc(Pn(d)),jl(0,f,c,h)):new w(1,[[c,new S(0,["an array",h])]])}else switch(G(js(r))){case"Microsoft.FSharp.Core.FSharpOption`1[System.Object]":return o=Xe(e,t,!0,Z(0,$e(r))),c=>h=>em(Y(o),c,h);case"Microsoft.FSharp.Collections.FSharpList`1[System.Object]":return i=Xe(e,t,!1,Z(0,$e(r))),c=>h=>Hl(Y(i),c,h);case"System.Collections.Generic.IEnumerable`1[System.Object]":return s=Xe(e,t,!1,Z(0,$e(r))),c=>h=>tm(Y(s),c,h);case"Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]":{const c=Xe(e,t,!1,Z(0,$e(r))),h=Xe(e,t,!1,Z(1,$e(r)));let d;const p=k([g=>m=>um(Y(c),Y(h),g,m),(a=im(Y(c),Y(h)),g=>m=>Hl(Y(a),g,m))]);return d=g=>m=>nm(p,g,m),g=>m=>om(sm,Y(d),g,m)}case"Microsoft.FSharp.Collections.FSharpSet`1[System.Object]":{const c=Xe(e,t,!1,Z(0,$e(r)));return h=>d=>{const p=Ul(Y(c),h,d);return p.tag===0?new w(0,[am(p.fields[0])]):new w(1,[p.fields[0]])}}default:return Gl(e,t,n,r)}else switch(l){case"System.Boolean":return f=>c=>Yp(f,c);case"Microsoft.FSharp.Core.Unit":return f=>c=>qp(f,c);case"System.String":return f=>c=>Il(f,c);case"System.Char":return f=>c=>zp(f,c);case"System.SByte":return Ol;case"System.Byte":return Nl;case"System.Int16":return Pl;case"System.UInt16":return Dl;case"System.Int32":return Fl;case"System.UInt32":return Rl;case"System.Double":return f=>c=>Zp(f,c);case"System.Single":return f=>c=>Jp(f,c);case"System.DateTime":return f=>c=>Kp(f,c);case"System.DateTimeOffset":return f=>c=>Xp(f,c);case"System.TimeSpan":return f=>c=>Qp(f,c);case"System.Guid":return f=>c=>Wp(f,c);case"System.Object":return f=>c=>new w(0,[c]);default:return Gl(e,t,n,r)}else{const f=u;return c=>h=>f.contents(c)(h)}}function cm(e){return ni({Compare:Zn})}function ai(e,t,n){const r=Yo(t,new rn(0,[]));return Xe(cm(),r,!1,e)}class fm{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 li extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,li.prototype)}}class ui{static get maxTrampolineCallCount(){return 2e3}constructor(){this.callCount=0}incrementAndCheck(){return this.callCount++>ui.maxTrampolineCallCount}hijack(t){this.callCount=0,setTimeout(t,0)}}function Et(e){return t=>{if(t.cancelToken.isCancelled)t.onCancel(new li);else if(t.trampoline.incrementAndCheck())t.trampoline.hijack(()=>{try{e(t)}catch(n){t.onError(Kn(n))}});else try{e(t)}catch(n){t.onError(Kn(n))}}}function dm(e,t){return Et(n=>{e({onSuccess:r=>{try{t(r)(n)}catch(o){n.onError(Kn(o))}},onError:n.onError,onCancel:n.onCancel,cancelToken:n.cancelToken,trampoline:n.trampoline})})}function hm(e){return Et(t=>t.onSuccess(e))}class pm{Bind(t,n){return dm(t,n)}Combine(t,n){return this.Bind(t,()=>n)}Delay(t){return Et(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 hm(t)}ReturnFrom(t){return t}TryFinally(t,n){return Et(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 Et(r=>{t({onSuccess:r.onSuccess,onCancel:r.onCancel,cancelToken:r.cancelToken,trampoline:r.trampoline,onError:o=>{try{n(o)(r)}catch(i){r.onError(Kn(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 Et(t=>t.onSuccess(void 0))}}const L=new pm;function mm(e){return new zl(0,[e])}function gm(e){return new zl(1,[e])}class zl extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Choice1Of2","Choice2Of2"]}}function wm(e){return mm(e)}function _m(e){return gm(e)}function ci(e){}const ym=new fm;function bm(e){return Et(t=>{e({onSuccess:n=>t.onSuccess(wm(n)),onError:n=>t.onSuccess(_m(n)),onCancel:t.onCancel,cancelToken:t.cancelToken,trampoline:t.trampoline})})}function vm(e){return Et(t=>e([t.onSuccess,t.onError,t.onCancel]))}function Sm(e,t){return Em(e,t)}function Cm(e,t){return Sm(e,t)}function Em(e,t,n,r,o){typeof t!="function"&&(o=t,t=void 0);const i=new ui;e({onSuccess:t||ci,onError:ci,onCancel:ci,cancelToken:o||ym,trampoline:i})}class Or extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class xm extends B{constructor(t,n){super(),this.tag=0,this.fields=[t,n]}cases(){return["Header"]}}class Wl extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Empty","Text","Binary","Form"]}}class Ln extends Fe{constructor(t,n,r,o,i,s,a,l){super(),this.url=t,this.method=n,this.headers=r,this.withCredentials=o,this.overridenMimeType=i,this.overridenResponseType=s,this.timeout=a,this.content=l}}class cn extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class ql extends Fe{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}}function km(e){return new xm("Authorization",e)}const Lt=new Ln("",new Or(0,[]),le(),!1,void 0,void 0,void 0,new Wl(0,[]));new ql(0,"","","",ni({Compare:Zn}),new cn(0,[""]));function Yl(e,t){return Xd(t)?new Array(0):La(t,[e],void 0,0)}function $m(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 fi(e){return new Ln(e,Lt.method,Lt.headers,Lt.withCredentials,Lt.overridenMimeType,Lt.overridenResponseType,Lt.timeout,Lt.content)}function di(e,t){return new Ln(t.url,e,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function Tm(e,t){return new Ln(t.url,t.method,Ko(t.headers,te(e)),t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function Mm(e,t){return new Ln(t.url,t.method,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,e)}function Zl(e){return vm(t=>{const n=new XMLHttpRequest;n.open($m(e.method),e.url),n.onreadystatechange=()=>{let l,u,f,c,h,d,p;n.readyState===4&&t[0]((l=(u=n.responseType,u===""||u==="text"?n.responseText:""),f=n.status|0,c=n.responseType,h=(d=n.responseType,d===""?new cn(0,[n.responseText]):d==="text"?new cn(0,[n.responseText]):d==="arraybuffer"?new cn(2,[n.response]):d==="blob"?new cn(1,[n.response]):new cn(3,[n.response])),p=kp(sh(g=>{const m=k(Yl(":",g));if(!O(m))return[E(m).toLocaleLowerCase(),Xt(":",A(m)).trim()]},Yl(`\r
26
+ `,n.getAllResponseHeaders())),{Compare:Zn}),new ql(f,l,c,n.responseURL,p,h)))};const r=ee(e.headers);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const l=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n.setRequestHeader(l.fields[0],l.fields[1])}}finally{V(r)}n.withCredentials=e.withCredentials;const o=e.overridenMimeType;if(o!=null){const l=o;n.overrideMimeType(l)}const i=e.overridenResponseType;if(i!=null)switch(i.tag){case 1:{n.responseType="blob";break}case 2:{n.responseType="arraybuffer";break}default:n.responseType="text"}const s=e.timeout;if(s!=null){const l=s|0;n.timeout=l|0}const a=e.content;switch(a.tag){case 1:{n.send(de(a.fields[0]));break}case 3:{n.send(de(a.fields[0]));break}case 2:{n.send(de(a.fields[0]));break}default:n.send()}})}function Am(e){return e}const Jl=Ge();function Nr(e){return Array.from(e)}function Im(e){return wr(e,"O")}function Om(e){return sp(e)}function Nm(){return Ge()}function Pm(e){return wr(e,"O")}function Dm(e,t){return JSON.stringify(t,void 0,de(e))}function Fm(e){return t=>th(nh(e,t),()=>Jl)}function Kl(e,t,n,r){let o;const i=new Re(Ge());let s;const a=G(r);s=a===""?e:gl(a,i,e);let l;if(qs(r)){const u=en(f=>{const c=Qa(t,qt(f)),h=dt(s,t,n,f[1]);return d=>p=>{const g=wc(d,f);return(!n||n&&g!=null)&&(p[c]=h(g)),p}},vn(r));l=f=>kr((c,h)=>h(f)(c),{},u)}else if(Ws(r))l=u=>{const f=gc(u,r),c=f[0],h=f[1],d=h.length|0;if(d===0)return qt(c);{const p=d|0,g=Ys(c),m=vr(new Array(p+1),0,p+1,null);et(m,0,qt(c));for(let _=1;_<=p;_++){const b=dt(s,t,n,Z(_-1,g)[1]);et(m,_,b(Z(_-1,h)))}return m}};else throw new Error((o=G(r),Ft(St(`Cannot generate auto encoder for %s. Please pass an extra encoder.
27
27
 
28
- Documentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders`))(o)));return i.contents=l,l}function st(e,t,n,r){const o=j(r),i=Jl(o,e);if(i==null)if(ja(r)){const s=st(e,t,n,On(r));return a=>Kn(Re(s,a))}else if(ti(r))switch(j(za(r))){case"System.SByte":return a=>a;case"System.Byte":return a=>a;case"System.Int16":return a=>a;case"System.UInt16":return a=>a;case"System.Int32":return a=>a;case"System.UInt32":return a=>a;default:{const a=j(r);return xl(St(`Cannot generate auto encoder for %s.
28
+ Documentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders`))(o)));return i.contents=l,l}function dt(e,t,n,r){const o=G(r),i=wl(o,e);if(i==null)if(Us(r)){const s=dt(e,t,n,bn(r));return a=>Nr(Ue(s,a))}else if(Co(r))switch(G(Bs(r))){case"System.SByte":return a=>a;case"System.Byte":return a=>a;case"System.Int16":return a=>a;case"System.UInt16":return a=>a;case"System.Int32":return a=>a;case"System.UInt32":return a=>a;default:{const a=G(r);return Da(St(`Cannot generate auto encoder for %s.
29
29
  Thoth.Json.Net only support the following enum types:
30
30
  - sbyte
31
31
  - byte
@@ -37,7 +37,7 @@ Thoth.Json.Net only support the following enum types:
37
37
  If you can't use one of these types, please pass an extra encoder.
38
38
 
39
39
  Documentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders
40
- `))(a)}}else if(Ba(r))if(ni(r)){const s=cn(a=>st(e,t,n,a),qa(r));return a=>Kn(Lh((l,u)=>J(l,s)(u),a))}else{const s=j(Ga(r));if(s==="Microsoft.FSharp.Core.FSharpOption`1[System.Object]"){const a=new Wu(()=>Um(st(e,t,n,J(0,Me(r)))));return l=>l==null?cu:a.Value(l)}else if(s==="Microsoft.FSharp.Collections.FSharpList`1[System.Object]"||s==="Microsoft.FSharp.Collections.FSharpSet`1[System.Object]"||s==="System.Collections.Generic.IEnumerable`1[System.Object]"){const a=st(e,t,n,J(0,Me(r)));return l=>Kn(Re(a,l))}else if(s==="Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"){const a=J(0,Me(r)),l=st(e,t,n,J(1,Me(r)));if(j(a)==="System.String"||j(a)==="System.Guid")return u=>Rr((f,c)=>{const h=c;return f[h[0]]=l(h[1]),f},{},u);{let u;return u=st(e,t,n,a),c=>Kn(Re(h=>{const d=h;return[u(d[0]),l(d[1])]},c))}}else return Hs(e,t,n,r)}else switch(o){case"System.Boolean":return s=>s;case"Microsoft.FSharp.Core.Unit":return Rm;case"System.String":return s=>s;case"System.Char":return s=>s;case"System.SByte":return s=>s;case"System.Byte":return s=>s;case"System.Int16":return s=>s;case"System.UInt16":return s=>s;case"System.Int32":return s=>s;case"System.UInt32":return s=>s;case"System.Double":return s=>s;case"System.Single":return s=>s;case"System.DateTime":return Lm;case"System.DateTimeOffset":return Dm;case"System.TimeSpan":return Fm;case"System.Guid":return Pm;case"System.Object":return s=>s;default:return Hs(e,t,n,r)}else{const s=i;return a=>s.contents(a)}}function Vm(e){return mi({Compare:xr})}function jm(e,t,n,r){const o=Io(t,new dn(0,[])),i=Io(r,!0);return st(Vm(),o,i,e)}class fu extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Inherited","Default","Specific"]}}function Bm(){return gc("BankDetails.AdminUI.Service.ConfigOwnership",[],fu,()=>[[],[],[]])}class vr extends He{constructor(t,n,r){super(),this.MaxAccounts=t|0,this.ConfigOwnership=n,this.AllowPercentageSplit=r}}function Gm(){return La("BankDetails.AdminUI.Service.Model",[],vr,()=>[["MaxAccounts",Va],["ConfigOwnership",Bm()],["AllowPercentageSplit",Ua]])}function zm(){return new vr(0,new fu(1,[]),!1)}class Wm extends He{constructor(t){super(),this.Message=t}}function qm(){return La("BankDetails.AdminUI.Service.ErrorMessage",[],Wm,()=>[["Message",Co]])}function Ci(e){return`${e}/bank-details/admin`}function Ei(e,t){return R.Delay(()=>{const n=Om(Am(`Bearer ${e}`),t);let r;const o=Ls(n);return r=R.Bind(o,i=>R.Return(new w(0,[i]))),R.Bind(r,i=>{const s=i;if(s.tag===1)return R.Return(new w(1,[s.fields[0]]));{const a=s.fields[0];if(a.statusCode===429||a.statusCode>=500){const l=Ls(n);return R.Bind(l,u=>R.Return(new w(0,[u])))}else return R.Return(new w(0,[a]))}})})}function xi(e,t){const n=wi(Y(_i(qm(),new dn(1,[]))),t);return n.tag===0?new w(1,[n.fields[0].Message]):new w(1,[Rt(Qd("Error code: %d%P()",[e]))])}function Ym(e,t,n,r){return R.Delay(()=>{let o;const i=Ei(t,Si(new Ur(0,[]),vi((o=Ci(e),r==null?`${o}/partners/${n}/config`:`${o}/partners/${n}/accounts/${b(r)}/config`))));return R.Bind(i,s=>{const a=s;if(a.tag===1)return R.Return(new w(1,[a.fields[0]]));{const l=a.fields[0];if(l.statusCode===200){const u=wi(Y(_i(Gm(),new dn(1,[]))),l.responseText);return R.Return(u)}else{const u=xi(l.statusCode,l.responseText);return R.Return(u)}}})})}function Zm(e,t,n,r,o,i){return R.Delay(()=>{let s,a;const l=Ci(e);a=r==null?`${l}/partners/${n}/config`:`${l}/partners/${n}/accounts/${r}/config`;const u=Ei(t,Si(new Ur(2,[]),Nm(new lu(1,[(s={AllowPercentageSplit:i,MaxAccounts:o},Hm(0,jm(Ha(["AllowPercentageSplit",Ua],["MaxAccounts",Va]),new dn(1,[]),void 0,void 0)(s)))]),vi(a))));return R.Bind(u,f=>{const c=f;if(c.tag===1)return R.Return(new w(1,[c.fields[0]]));{const h=c.fields[0];if(h.statusCode===200)return R.Return(new w(0,[void 0]));{const d=xi(h.statusCode,h.responseText);return R.Return(d)}}})})}function Jm(e,t,n,r){return R.Delay(()=>{let o;const i=Ei(t,Si(new Ur(4,[]),vi((o=Ci(e),r==null?`${o}/partners/${n}/config`:`${o}/partners/${n}/accounts/${b(r)}/config`))));return R.Bind(i,s=>{const a=s;if(a.tag===1)return R.Return(new w(1,[a.fields[0]]));{const l=a.fields[0];if(l.statusCode===200)return R.Return(new w(0,[void 0]));{const u=xi(l.statusCode,l.responseText);return R.Return(u)}}})})}class Km{constructor(t,n,r,o){this.baseUrl=t,this.accessToken=n,this.partnerId=r,this.accountId=o}}function Xm(e,t,n,r){return new Km(e,t,n,r)}function Qm(e){return Ym(e.baseUrl,e.accessToken,e.partnerId,e.accountId)}function e0(e,t){return Zm(e.baseUrl,e.accessToken,e.partnerId,e.accountId,t.MaxAccounts,t.AllowPercentageSplit)}function t0(e){return Jm(e.baseUrl,e.accessToken,e.partnerId,e.accountId)}class Kt extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Started","Finished"]}}class n0{constructor(t,n,r){this.OnNext=t,this.OnError=n||(o=>{}),this.OnCompleted=r||(()=>{})}}function r0(e,t){t.Subscribe(new n0(e))}class o0{constructor(){this.delegates=[]}_add(t){this.delegates.push(t)}_remove(t){const n=this.delegates.indexOf(t);n>-1&&this.delegates.splice(n,1)}get Publish(){return s0(t=>{this._add(t)},t=>{this._remove(t)})}Trigger(t,n){let r=null;const o=n===void 0?t:(r=t,n);this.delegates.forEach(i=>{i(r,o)})}}let i0=class extends o0{};function s0(e,t){return{AddHandler(n){e(n)},RemoveHandler(n){t(n)},Subscribe(n){const r=(o,i)=>n.OnNext(i);return e(r),{Dispose(){t(r)}}}}}class a0{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 i0}Elapsed(){return this._elapsed.Publish}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 l0(e,t){console.error(pe(e),t)}function u0(e,t){let n,r=new a0(e);r.AutoReset=!1,n=r,r0(t,n.Elapsed()),n.Enabled=!0,n.Start()}function Us(e,t,n){Tn(r=>{try{r(t)}catch(o){e(o)}},n)}function it(){return ue()}function Xn(e){return wh(e)}function io(e,t,n,r){return ee(o=>{e(R.Delay(()=>R.Bind(Em(t(n)),i=>{const s=i;return s.tag===0&&o(r(s.fields[0])),R.Zero()})))})}function so(e){u0(1,t=>{$m(e)})}class ki extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["AccessRole"]}}function c0(e){return new ki(e)}function f0(e){return Ol(c0,e)}function d0(e){if(Nl(new ki("BankDetails.Access"),e,{Equals:Oe,GetHashCode:Oa}))return pe(void 0)}function h0(e){if(Nl(new ki("BankDetails.EditConfig"),e,{Equals:Oe,GetHashCode:Oa}))return pe(void 0)}class Vs extends He{constructor(t,n){super(),this.UserName=t,this.Roles=n}}function du(e){return h0(e.Roles)!=null}function p0(e){let t;const n=Tl(e??"",["."],void 0,0);if(!fh((r,o)=>r===o,n)&&n.length===3){let r;const o=J(1,n);r=atob(o),t=wi(Y(_i(Ha(["Name",Co],["Roles",wc(Co)]),new dn(1,[]))),r)}else t=new w(1,["Failed to identify the user"]);if(t.tag===1)return new Vs(void 0,ue());{const r=t.fields[0];return new Vs(r.Name,f0($(r.Roles)))}}class ke extends He{constructor(t,n,r,o,i,s){super(),this.Config=t,this.Error=n,this.IsLoading=r,this.Mode=o,this.ShowConfirmationDialog=i,this.ShowEditButton=s}}class Cn extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["View","Edit"]}}function m0(){return new ke(zm(),void 0,!0,new Cn(0,[]),!1,!1)}function js(e){return e.Mode.tag!==0}class le extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["UpdateMaxAccounts","UpdateAllowPercentageSplit","FetchConfig","UpdateConfig","DeleteConfig","SetMode","CancelEdit","ShowConfirmationDialog","DeleteConfigConfirmed"]}}function or(){return new le(2,[new Kt(0,[void 0])])}function g0(){return new le(3,[new Kt(0,[void 0])])}function w0(){return new le(4,[new Kt(0,[void 0])])}function _0(e){let t,n;return[(t=m0(),new ke(t.Config,t.Error,t.IsLoading,t.Mode,t.ShowConfirmationDialog,du(e))),(n=or(),ee(r=>{r(n)}))]}function y0(e,t,n,r){let o,i,s,a,l,u;switch(n.tag){case 5:return[new ke(r.Config,r.Error,r.IsLoading,n.fields[0],r.ShowConfirmationDialog,n.fields[0].tag===0&&du(e)),it()];case 6:return[r,Xn($([ee(f=>{f(new le(5,[new Cn(0,[])]))}),(o=or(),ee(f=>{f(o)}))]))];case 0:return[new ke((i=r.Config,new vr(n.fields[0],i.ConfigOwnership,i.AllowPercentageSplit)),r.Error,r.IsLoading,r.Mode,r.ShowConfirmationDialog,r.ShowEditButton),it()];case 1:return[new ke((s=r.Config,new vr(s.MaxAccounts,s.ConfigOwnership,n.fields[0])),r.Error,r.IsLoading,r.Mode,r.ShowConfirmationDialog,r.ShowEditButton),it()];case 2:return n.fields[0].tag===1?n.fields[0].fields[0].tag===1?[new ke(r.Config,n.fields[0].fields[0].fields[0],!1,r.Mode,r.ShowConfirmationDialog,r.ShowEditButton),it()]:[new ke(n.fields[0].fields[0].fields[0],void 0,!1,r.Mode,r.ShowConfirmationDialog,r.ShowEditButton),it()]:[new ke(r.Config,r.Error,!0,r.Mode,r.ShowConfirmationDialog,r.ShowEditButton),io(f=>{so(f)},()=>Qm(t),void 0,f=>new le(2,[new Kt(1,[f])]))];case 3:return n.fields[0].tag===1?n.fields[0].fields[0].tag===1?[new ke(r.Config,n.fields[0].fields[0].fields[0],r.IsLoading,r.Mode,r.ShowConfirmationDialog,r.ShowEditButton),it()]:[new ke(r.Config,void 0,r.IsLoading,r.Mode,r.ShowConfirmationDialog,r.ShowEditButton),Xn($([ee(f=>{f(new le(5,[new Cn(0,[])]))}),(a=or(),ee(f=>{f(a)}))]))]:[r,io(f=>{so(f)},f=>e0(t,f),r.Config,f=>new le(3,[new Kt(1,[f])]))];case 4:return n.fields[0].tag===1?n.fields[0].fields[0].tag===1?[new ke(r.Config,n.fields[0].fields[0].fields[0],r.IsLoading,r.Mode,r.ShowConfirmationDialog,r.ShowEditButton),it()]:[new ke(r.Config,void 0,r.IsLoading,r.Mode,r.ShowConfirmationDialog,r.ShowEditButton),Xn($([ee(f=>{f(new le(5,[new Cn(0,[])]))}),(l=or(),ee(f=>{f(l)}))]))]:[r,io(f=>{so(f)},()=>t0(t),void 0,f=>new le(4,[new Kt(1,[f])]))];case 8:return[r,Xn($([ee(f=>{f(new le(7,[!1]))}),(u=w0(),ee(f=>{f(u)}))]))];default:return[new ke(r.Config,r.Error,r.IsLoading,r.Mode,n.fields[0],r.ShowEditButton),it()]}}const b0=v("svg",B($([["className","h-6 w-6 text-red-600"],["fill","none"],["iconType","2"],["stroke","currentColor"],["strokeWidth",1.5],["viewBox","0 0 24 24"],["xmlns","http://www.w3.org/2000/svg"],(()=>{let e;const t=ee(v("path",B($([["strokeLinecap","round"],["strokeLinejoin","round"],(e="M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126zM12 15.75h.007v.008H12v-.008z",["d",e])]))));return["children",X.Children.toArray(Array.from(t))]})()]))),v0=v("svg",B($([["className","w-6 h-6"],["fill","none"],["stroke","currentColor"],["strokeWidth",1.5],["viewBox","0 0 24 24"],["xmlns","http://www.w3.org/2000/svg"],(()=>{let e;const t=ee(v("path",B($([["strokeLinecap","round"],["strokeLinejoin","round"],(e="M16.862 4.487l1.687-1.688a1.875 1.875 0 112.652 2.652L6.832 19.82a4.5 4.5 0 01-1.897 1.13l-2.685.8.8-2.685a4.5 4.5 0 011.13-1.897L16.863 4.487zm0 0L19.5 7.125",["d",e])]))));return["children",X.Children.toArray(Array.from(t))]})()]))),S0=v("svg",B($([["className","w-6 h-6"],["fill","none"],["stroke","currentColor"],["strokeWidth",1.5],["viewBox","0 0 24 24"],["xmlns","http://www.w3.org/2000/svg"],(()=>{let e;const t=ee(v("path",B($([["strokeLinecap","round"],["strokeLinejoin","round"],(e="M14.74 9l-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 01-2.244 2.077H8.084a2.25 2.25 0 01-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 00-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 013.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 00-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 00-7.5 0",["d",e])]))));return["children",X.Children.toArray(Array.from(t))]})()])));class ao extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Key","As","Show","Children"]}}function C0(e){return v(bl.Root,xt(e,1))}class de extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Key","Appear","Show","ClassName","Enter","EnterFrom","EnterTo","Leave","LeaveFrom","LeaveTo","Children"]}}function Bs(e){return v(bl.Child,xt(e,1))}let yn=class extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["As","Key","ClassName","Open","OnClose","Children"]}};function E0(e){return v(ai,xt(e,1))}class lo extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Key","ClassName","Children"]}}function x0(e){return v(ai.Panel,xt(e,1))}class Qn extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["As","Key","ClassName","Children"]}}function k0(e){return v(ai.Title,xt(e,1))}class $0 extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Primary","Warning"]}}class T0 extends He{constructor(t,n,r,o,i,s,a,l,u){super(),this.show=t,this.title=n,this.message=r,this.dialogIcon=o,this.okButtonText=i,this.okButtonClick=s,this.okButtonThem=a,this.cancelButtonText=l,this.cancelButtonClick=u}}function M0(e){let t,n,r,o;return C0($([new ao(0,["1"]),new ao(2,[e.show]),new ao(3,[[E0($([new yn(1,["1"]),new yn(0,["div"]),new yn(2,["relative z-10"]),new yn(4,[e.cancelButtonClick]),new yn(5,[[Bs($([new de(0,["1"]),new de(3,["fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity"]),new de(4,["ease-out duration-300"]),new de(5,["opacity-0"]),new de(6,["opacity-100"]),new de(7,["ease-in duration-200"]),new de(8,["opacity-100"]),new de(9,["opacity-0"])])),v("div",B($([["className","fixed inset-0 z-10 overflow-y-auto"],["key","2"],(t=[v("div",B($([["key","1"],["className","flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0"],(n=[Bs($([new de(0,["1"]),new de(4,["ease-out duration-300"]),new de(5,["opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"]),new de(6,["opacity-100 translate-y-0 sm:scale-100"]),new de(7,["ease-in duration-200"]),new de(8,["opacity-100 translate-y-0 sm:scale-100"]),new de(9,["opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"]),new de(10,[[x0($([new lo(0,["1"]),new lo(1,["relative transform overflow-hidden rounded-lg bg-white px-4 pt-5 pb-4 text-left shadow-xl transition-all sm:my-8 sm:w-full sm:max-w-lg sm:p-6"]),new lo(2,[[v("div",B($([["key","1"],["className","sm:flex sm:items-start"],(r=_r(te(()=>{let i,s,a;return Ye((i=e.dialogIcon,i==null?Rl():(s=i,Ee(v("div",B($([["key","1"],(a="mx-auto flex h-12 w-12 flex-shrink-0 items-center justify-center sm:mx-0 sm:h-10 sm:w-10 sm:mr-4 rounded-full bg-red-100",["className",a]),["children",X.Children.toArray([s])]])))))),te(()=>{let l,u;return Ee(v("div",B($([["key","2"],["className","mt-3 text-center sm:mt-0 sm:text-left"],(l=[k0($([new Qn(1,["1"]),new Qn(0,["h3"]),new Qn(2,["text-lg font-medium leading-6 text-gray-900"]),new Qn(3,[[v("span",{children:e.title,key:"1"})]])])),v("div",B($([["className","mt-2"],["key","2"],(u=[v("p",{className:"text-sm text-gray-500",children:e.message})],["children",X.Children.toArray(Array.from(u))])])))],["children",X.Children.toArray(Array.from(l))])]))))}))})),["children",X.Children.toArray(Array.from(r))])]))),v("div",B($([["key","2"],["className","mt-5 sm:mt-4 sm:flex sm:flex-row-reverse"],(o=_r(te(()=>Ye(Ee(v("button",{key:"Ok",type:"button",className:e.okButtonThem.tag===1?"inline-flex w-full justify-center rounded-md border border-transparent bg-red-600 px-4 py-2 text-base font-medium text-white shadow-sm hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-gray-300 focus:ring-offset-2 sm:ml-3 sm:w-auto sm:text-sm":"inline-flex w-full justify-center rounded-md border border-transparent bg-white px-4 py-2 text-base font-medium text-white shadow-sm hover:bg-primary-700 focus:outline-none focus:ring-2 focus:ring-gray-300 focus:ring-offset-2 sm:ml-3 sm:w-auto sm:text-sm",onClick:i=>{e.okButtonClick()},children:e.okButtonText})),te(()=>{let i;return Ee(v("button",B($([["key","Cancel"],["type","button"],(i="mt-3 inline-flex w-full justify-center rounded-md border border-gray-300 bg-white px-4 py-2 text-base font-medium text-gray-700 shadow-sm hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-gray-200 focus:ring-offset-2 sm:mt-0 sm:w-auto sm:text-sm",["className",i]),["onClick",s=>{e.cancelButtonClick()}],["children",e.cancelButtonText]]))))})))),["children",X.Children.toArray(Array.from(o))])])))]])]))]])]))],["children",X.Children.toArray(Array.from(n))])])))],["children",X.Children.toArray(Array.from(t))])])))]])]))]])]))}function A0(){return ue()}function $i(e){return un("/",e)}function I0(e,t){const n=new Error("Duplicate SubId");return e(["Duplicate SubId: "+$i(t),n])}function hu(e,t,n){try{G(n)}catch(r){e(["Error stopping subscription: "+$i(t),r])}}function O0(e,t,n,r){try{return[n,r(t)]}catch(o){e(["Error starting subscription: "+$i(n),o]);return}}function N0(e,t){Tn(n=>{hu(e,n[0],n[1])},t)}function Gs(e,t,n,r,o,i){return Tn(s=>{I0(e,s)},n),Tn(s=>{hu(e,s[0],s[1])},r),hi(o,vh(s=>O0(e,t,s[0],s[1]),i))}function P0(){return[ue(),zp({Compare:Le}),ue()]}function D0(e,t,n,r,o){return Po(e,r)?[Fe(e,n),r,o]:[n,Gp(e,r),Fe([e,t],o)]}function F0(e){return mh((t,n)=>D0(t[0],t[1],n[0],n[1],n[2]),e,P0())}const R0=ue();function zs(e,t){const n=Wp(Ol(s=>s[0],e),{Compare:Le}),r=F0(t),o=r[1],i=r[0];if(n.Equals(o))return[i,ue(),e,ue()];{const s=bh(a=>Po(a[0],o),e);return[i,s[1],s[0],yh(a=>!Po(a[0],n),r[2])]}}function L0(e,t,n,r){const o=Le(e,n)|0;if(o===0)throw new Error("The step of a range cannot be zero");const i=o>0;return s=>{const a=Le(s,t)|0;return i&&a<=0||!i&&a>=0?[s,r(s,e)]:void 0}}function H0(e,t,n,r,o){const i=L0(t,n,r,o);return te(()=>Ph(i,e))}function U0(e,t,n){return H0(e,t,n,0,(r,o)=>r+o)}class Xt extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Writable","ReadWritable"]}}class V0{constructor(t){this.state=new Xt(0,[Nr(new Array(us(t,10)),0,us(t,10),null),0])}}function j0(e){return new V0(e)}function Ws(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 Xt(0,[o,n]):e.state=new Xt(1,[o,n,i]),pe(J(r,o))}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];tt(i,r,t);const s=(r+1)%i.length|0;s===o?e.state=new Xt(1,[G0(e,o,i),i.length,0]):e.state=new Xt(1,[i,s,o])}else{const r=n.fields[1]|0,o=n.fields[0];tt(o,r,t);const i=(r+1)%o.length|0;e.state=new Xt(1,[o,i,r])}}function G0(e,t,n){return Array.from(te(()=>Ye(Uh(t,n),te(()=>Ye(Vh(t,n),te(()=>jh(r=>Ee(Ke()),U0(0,1,n.length))))))))}class Ti extends He{constructor(t,n,r,o,i,s,a){super(),this.init=t,this.update=n,this.subscribe=r,this.view=o,this.setState=i,this.onError=s,this.termination=a}}function z0(e,t,n){return new Ti(e,t,r=>A0(),n,Y(r=>{const o=At(n)(r);return i=>{o(i)}}),r=>{l0(r[0],r[1])},[r=>!1,r=>{}])}function W0(e,t){return new Ti(t.init,t.update,t.subscribe,t.view,e,t.onError,t.termination)}function q0(e){return e.init}function Y0(e,t,n,r,o,i,s){const a=At(e)(s.init),l=qr(t)(At(s.update)),u=qr(n)(At(s.view)),f=qr(r)(At(s.setState));return new Ti(a,Y(l),At(o)(s.subscribe),Y(u),Y(f),s.onError,i(s.termination))}function Z0(e,t,n){let r;const o=n.init(t),i=o[0],s=n.subscribe(i),a=n.termination,l=j0(10);let u=!1,f=i,c=R0,h=!1;const d=m=>{h||(B0(l,m),u||(u=!0,g(),u=!1))},p=At(e)(d),g=()=>{let m,_=Ws(l);for(;!h&&_!=null;){const y=b(_);if(a[0](y))N0(n.onError,c),a[1](f),h=!0;else{const C=n.update(y,f),D=C[0],W=n.subscribe(D);n.setState(D,p),Us(Q=>{n.onError([Rt(St("Error handling the message: %A"))(y),Q])},p,C[1]),f=D,c=(m=zs(c,W),Gs(n.onError,p,m[0],m[1],m[2],m[3])),_=Ws(l)}}};u=!0,n.setState(i,p),Us(m=>{n.onError([Rt(St("Error intitializing:")),m])},p,o[1]),c=(r=zs(c,s),Gs(n.onError,p,r[0],r[1],r[2],r[3])),g(),u=!1}function J0(e,t){Z0(Y(n=>n),e,t)}function K0(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var uo={exports:{}},co={};const X0=K0(tn);/**
40
+ `))(a)}}else if(Vs(r))if(Eo(r)){const s=en(a=>dt(e,t,n,a),zs(r));return a=>Nr(Ph((l,u)=>Z(l,s)(u),a))}else{const s=G(js(r));if(s==="Microsoft.FSharp.Core.FSharpOption`1[System.Object]"){const a=new ju(()=>Fm(dt(e,t,n,Z(0,$e(r)))));return l=>l==null?Jl:a.Value(l)}else if(s==="Microsoft.FSharp.Collections.FSharpList`1[System.Object]"||s==="Microsoft.FSharp.Collections.FSharpSet`1[System.Object]"||s==="System.Collections.Generic.IEnumerable`1[System.Object]"){const a=dt(e,t,n,Z(0,$e(r)));return l=>Nr(Ue(a,l))}else if(s==="Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"){const a=Z(0,$e(r)),l=dt(e,t,n,Z(1,$e(r)));if(G(a)==="System.String"||G(a)==="System.Guid")return u=>kr((f,c)=>{const h=c;return f[h[0]]=l(h[1]),f},{},u);{let u;return u=dt(e,t,n,a),c=>Nr(Ue(h=>{const d=h;return[u(d[0]),l(d[1])]},c))}}else return Kl(e,t,n,r)}else switch(o){case"System.Boolean":return s=>s;case"Microsoft.FSharp.Core.Unit":return Nm;case"System.String":return s=>s;case"System.Char":return s=>s;case"System.SByte":return s=>s;case"System.Byte":return s=>s;case"System.Int16":return s=>s;case"System.UInt16":return s=>s;case"System.Int32":return s=>s;case"System.UInt32":return s=>s;case"System.Double":return s=>s;case"System.Single":return s=>s;case"System.DateTime":return Pm;case"System.DateTimeOffset":return Im;case"System.TimeSpan":return Om;case"System.Guid":return Am;case"System.Object":return s=>s;default:return Kl(e,t,n,r)}else{const s=i;return a=>s.contents(a)}}function Rm(e){return ni({Compare:Zn})}function Lm(e,t,n,r){const o=Yo(t,new rn(0,[])),i=Yo(r,!0);return dt(Rm(),o,i,e)}class Xl extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Inherited","Default","Specific"]}}function Hm(){return dc("BankDetails.AdminUI.Service.ConfigOwnership",[],Xl,()=>[[],[],[]])}class Pr extends Fe{constructor(t,n,r){super(),this.MaxAccounts=t|0,this.ConfigOwnership=n,this.AllowPercentageSplit=r}}function Um(){return Fs("BankDetails.AdminUI.Service.Model",[],Pr,()=>[["MaxAccounts",Hs],["ConfigOwnership",Hm()],["AllowPercentageSplit",Ls]])}function Vm(){return new Pr(0,new Xl(1,[]),!1)}class jm extends Fe{constructor(t){super(),this.Message=t}}function Bm(){return Fs("BankDetails.AdminUI.Service.ErrorMessage",[],jm,()=>[["Message",So]])}function hi(e){return`${e}/bank-details/admin`}function pi(e,t){return L.Delay(()=>{const n=Tm(km(`Bearer ${e}`),t);let r;const o=Zl(n);return r=L.Bind(o,i=>L.Return(new w(0,[i]))),L.Bind(r,i=>{const s=i;if(s.tag===1)return L.Return(new w(1,[s.fields[0]]));{const a=s.fields[0];if(a.statusCode===429||a.statusCode>=500){const l=Zl(n);return L.Bind(l,u=>L.Return(new w(0,[u])))}else return L.Return(new w(0,[a]))}})})}function mi(e,t){const n=si(Y(ai(Bm(),new rn(1,[]))),t);return n.tag===0?new w(1,[n.fields[0].Message]):new w(1,[Ft(Zd("Error code: %d%P()",[e]))])}function Gm(e,t,n,r){return L.Delay(()=>{let o;const i=pi(t,di(new Or(0,[]),fi((o=hi(e),r==null?`${o}/partners/${n}/config`:`${o}/partners/${n}/accounts/${y(r)}/config`))));return L.Bind(i,s=>{const a=s;if(a.tag===1)return L.Return(new w(1,[a.fields[0]]));{const l=a.fields[0];if(l.statusCode===200){const u=si(Y(ai(Um(),new rn(1,[]))),l.responseText);return L.Return(u)}else{const u=mi(l.statusCode,l.responseText);return L.Return(u)}}})})}function zm(e,t,n,r,o,i){return L.Delay(()=>{let s,a;const l=hi(e);a=r==null?`${l}/partners/${n}/config`:`${l}/partners/${n}/accounts/${r}/config`;const u=pi(t,di(new Or(2,[]),Mm(new Wl(1,[(s={AllowPercentageSplit:i,MaxAccounts:o},Dm(0,Lm(Rs(["AllowPercentageSplit",Ls],["MaxAccounts",Hs]),new rn(1,[]),void 0,void 0)(s)))]),fi(a))));return L.Bind(u,f=>{const c=f;if(c.tag===1)return L.Return(new w(1,[c.fields[0]]));{const h=c.fields[0];if(h.statusCode===200)return L.Return(new w(0,[void 0]));{const d=mi(h.statusCode,h.responseText);return L.Return(d)}}})})}function Wm(e,t,n,r){return L.Delay(()=>{let o;const i=pi(t,di(new Or(4,[]),fi((o=hi(e),r==null?`${o}/partners/${n}/config`:`${o}/partners/${n}/accounts/${y(r)}/config`))));return L.Bind(i,s=>{const a=s;if(a.tag===1)return L.Return(new w(1,[a.fields[0]]));{const l=a.fields[0];if(l.statusCode===200)return L.Return(new w(0,[void 0]));{const u=mi(l.statusCode,l.responseText);return L.Return(u)}}})})}class qm{constructor(t,n,r,o){this.baseUrl=t,this.accessToken=n,this.partnerId=r,this.accountId=o}}function Ym(e,t,n,r){return new qm(e,t,n,r)}function Zm(e){return Gm(e.baseUrl,e.accessToken,e.partnerId,e.accountId)}function Jm(e,t){return zm(e.baseUrl,e.accessToken,e.partnerId,e.accountId,t.MaxAccounts,t.AllowPercentageSplit)}function Km(e){return Wm(e.baseUrl,e.accessToken,e.partnerId,e.accountId)}class fn extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Started","Finished"]}}class Xm{constructor(t,n,r){this.OnNext=t,this.OnError=n||(o=>{}),this.OnCompleted=r||(()=>{})}}function Qm(e,t){t.Subscribe(new Xm(e))}class e0{constructor(){this.delegates=[]}_add(t){this.delegates.push(t)}_remove(t){const n=this.delegates.indexOf(t);n>-1&&this.delegates.splice(n,1)}get Publish(){return n0(t=>{this._add(t)},t=>{this._remove(t)})}Trigger(t,n){let r=null;const o=n===void 0?t:(r=t,n);this.delegates.forEach(i=>{i(r,o)})}}let t0=class extends e0{};function n0(e,t){return{AddHandler(n){e(n)},RemoveHandler(n){t(n)},Subscribe(n){const r=(o,i)=>n.OnNext(i);return e(r),{Dispose(){t(r)}}}}}class r0{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 t0}Elapsed(){return this._elapsed.Publish}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 o0(e,t){console.error(de(e),t)}function i0(e,t){let n,r=new r0(e);r.AutoReset=!1,n=r,Qm(t,n.Elapsed()),n.Enabled=!0,n.Start()}function Ql(e,t,n){Dn(r=>{try{r(t)}catch(o){e(o)}},n)}function ht(){return le()}function Dr(e){return hh(e)}function gi(e,t,n,r){return te(o=>{e(L.Delay(()=>L.Bind(bm(t(n)),i=>{const s=i;return s.tag===0&&o(r(s.fields[0])),L.Zero()})))})}function wi(e){i0(1,t=>{Cm(e)})}class _i extends B{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["AccessRole"]}}function s0(e){return new _i(e)}function a0(e){return Ba(s0,e)}function l0(e){if(Ga(new _i("BankDetails.Access"),e,{Equals:ke,GetHashCode:As}))return de(void 0)}function u0(e){if(Ga(new _i("BankDetails.EditConfig"),e,{Equals:ke,GetHashCode:As}))return de(void 0)}class eu extends Fe{constructor(t,n){super(),this.UserName=t,this.Roles=n}}function tu(e){return u0(e.Roles)!=null}function c0(e){let t;const n=La(e??"",["."],void 0,0);if(!ah((r,o)=>r===o,n)&&n.length===3){let r;const o=Z(1,n);r=atob(o),t=si(Y(ai(Rs(["Name",So],["Roles",hc(So)]),new rn(1,[]))),r)}else t=new w(1,["Failed to identify the user"]);if(t.tag===1)return new eu(void 0,le());{const r=t.fields[0];return new eu(r.Name,a0(k(r.Roles)))}}class Pe extends Fe{constructor(t,n,r,o,i,s){super(),this.Config=t,this.Error=n,this.IsLoading=r,this.Mode=o,this.ShowConfirmationDialog=i,this.ShowEditButton=s}}class Hn extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["View","Edit"]}}function f0(){return new Pe(Vm(),void 0,!0,new Hn(0,[]),!1,!1)}function nu(e){return e.Mode.tag!==0}class ue extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["UpdateMaxAccounts","UpdateAllowPercentageSplit","FetchConfig","UpdateConfig","DeleteConfig","SetMode","CancelEdit","ShowConfirmationDialog","DeleteConfigConfirmed"]}}function Fr(){return new ue(2,[new fn(0,[void 0])])}function d0(){return new ue(3,[new fn(0,[void 0])])}function h0(){return new ue(4,[new fn(0,[void 0])])}function p0(e){let t,n;return[(t=f0(),new Pe(t.Config,t.Error,t.IsLoading,t.Mode,t.ShowConfirmationDialog,tu(e))),(n=Fr(),te(r=>{r(n)}))]}function m0(e,t,n,r){let o,i,s,a,l,u;switch(n.tag){case 5:return[new Pe(r.Config,r.Error,r.IsLoading,n.fields[0],r.ShowConfirmationDialog,n.fields[0].tag===0&&tu(e)),ht()];case 6:return[r,Dr(k([te(f=>{f(new ue(5,[new Hn(0,[])]))}),(o=Fr(),te(f=>{f(o)}))]))];case 0:return[new Pe((i=r.Config,new Pr(n.fields[0],i.ConfigOwnership,i.AllowPercentageSplit)),r.Error,r.IsLoading,r.Mode,r.ShowConfirmationDialog,r.ShowEditButton),ht()];case 1:return[new Pe((s=r.Config,new Pr(s.MaxAccounts,s.ConfigOwnership,n.fields[0])),r.Error,r.IsLoading,r.Mode,r.ShowConfirmationDialog,r.ShowEditButton),ht()];case 2:return n.fields[0].tag===1?n.fields[0].fields[0].tag===1?[new Pe(r.Config,n.fields[0].fields[0].fields[0],!1,r.Mode,r.ShowConfirmationDialog,r.ShowEditButton),ht()]:[new Pe(n.fields[0].fields[0].fields[0],void 0,!1,r.Mode,r.ShowConfirmationDialog,r.ShowEditButton),ht()]:[new Pe(r.Config,r.Error,!0,r.Mode,r.ShowConfirmationDialog,r.ShowEditButton),gi(f=>{wi(f)},()=>Zm(t),void 0,f=>new ue(2,[new fn(1,[f])]))];case 3:return n.fields[0].tag===1?n.fields[0].fields[0].tag===1?[new Pe(r.Config,n.fields[0].fields[0].fields[0],r.IsLoading,r.Mode,r.ShowConfirmationDialog,r.ShowEditButton),ht()]:[new Pe(r.Config,void 0,r.IsLoading,r.Mode,r.ShowConfirmationDialog,r.ShowEditButton),Dr(k([te(f=>{f(new ue(5,[new Hn(0,[])]))}),(a=Fr(),te(f=>{f(a)}))]))]:[r,gi(f=>{wi(f)},f=>Jm(t,f),r.Config,f=>new ue(3,[new fn(1,[f])]))];case 4:return n.fields[0].tag===1?n.fields[0].fields[0].tag===1?[new Pe(r.Config,n.fields[0].fields[0].fields[0],r.IsLoading,r.Mode,r.ShowConfirmationDialog,r.ShowEditButton),ht()]:[new Pe(r.Config,void 0,r.IsLoading,r.Mode,r.ShowConfirmationDialog,r.ShowEditButton),Dr(k([te(f=>{f(new ue(5,[new Hn(0,[])]))}),(l=Fr(),te(f=>{f(l)}))]))]:[r,gi(f=>{wi(f)},()=>Km(t),void 0,f=>new ue(4,[new fn(1,[f])]))];case 8:return[r,Dr(k([te(f=>{f(new ue(7,[!1]))}),(u=h0(),te(f=>{f(u)}))]))];default:return[new Pe(r.Config,r.Error,r.IsLoading,r.Mode,n.fields[0],r.ShowEditButton),ht()]}}const g0=v("svg",j(k([["className","h-6 w-6 text-red-600"],["fill","none"],["iconType","2"],["stroke","currentColor"],["strokeWidth",1.5],["viewBox","0 0 24 24"],["xmlns","http://www.w3.org/2000/svg"],(()=>{let e;const t=te(v("path",j(k([["strokeLinecap","round"],["strokeLinejoin","round"],(e="M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126zM12 15.75h.007v.008H12v-.008z",["d",e])]))));return["children",X.Children.toArray(Array.from(t))]})()]))),w0=v("svg",j(k([["className","w-6 h-6"],["fill","none"],["stroke","currentColor"],["strokeWidth",1.5],["viewBox","0 0 24 24"],["xmlns","http://www.w3.org/2000/svg"],(()=>{let e;const t=te(v("path",j(k([["strokeLinecap","round"],["strokeLinejoin","round"],(e="M16.862 4.487l1.687-1.688a1.875 1.875 0 112.652 2.652L6.832 19.82a4.5 4.5 0 01-1.897 1.13l-2.685.8.8-2.685a4.5 4.5 0 011.13-1.897L16.863 4.487zm0 0L19.5 7.125",["d",e])]))));return["children",X.Children.toArray(Array.from(t))]})()]))),_0=v("svg",j(k([["className","w-6 h-6"],["fill","none"],["stroke","currentColor"],["strokeWidth",1.5],["viewBox","0 0 24 24"],["xmlns","http://www.w3.org/2000/svg"],(()=>{let e;const t=te(v("path",j(k([["strokeLinecap","round"],["strokeLinejoin","round"],(e="M14.74 9l-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 01-2.244 2.077H8.084a2.25 2.25 0 01-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 00-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 013.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 00-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 00-7.5 0",["d",e])]))));return["children",X.Children.toArray(Array.from(t))]})()])));class yi extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Key","As","Show","Children"]}}function y0(e){return v(Sa.Root,vt(e,1))}class he extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Key","Appear","Show","ClassName","Enter","EnterFrom","EnterTo","Leave","LeaveFrom","LeaveTo","Children"]}}function ru(e){return v(Sa.Child,vt(e,1))}let Un=class extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["As","Key","ClassName","Open","OnClose","Children"]}};function b0(e){return v(Ho,vt(e,1))}class bi extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Key","ClassName","Children"]}}function v0(e){return v(Ho.Panel,vt(e,1))}class Rr extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["As","Key","ClassName","Children"]}}function S0(e){return v(Ho.Title,vt(e,1))}class C0 extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Primary","Warning"]}}class E0 extends Fe{constructor(t,n,r,o,i,s,a,l,u){super(),this.show=t,this.title=n,this.message=r,this.dialogIcon=o,this.okButtonText=i,this.okButtonClick=s,this.okButtonThem=a,this.cancelButtonText=l,this.cancelButtonClick=u}}function x0(e){let t,n,r,o;return y0(k([new yi(0,["1"]),new yi(2,[e.show]),new yi(3,[[b0(k([new Un(1,["1"]),new Un(0,["div"]),new Un(2,["relative z-10"]),new Un(4,[e.cancelButtonClick]),new Un(5,[[ru(k([new he(0,["1"]),new he(3,["fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity"]),new he(4,["ease-out duration-300"]),new he(5,["opacity-0"]),new he(6,["opacity-100"]),new he(7,["ease-in duration-200"]),new he(8,["opacity-100"]),new he(9,["opacity-0"])])),v("div",j(k([["className","fixed inset-0 z-10 overflow-y-auto"],["key","2"],(t=[v("div",j(k([["key","1"],["className","flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0"],(n=[ru(k([new he(0,["1"]),new he(4,["ease-out duration-300"]),new he(5,["opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"]),new he(6,["opacity-100 translate-y-0 sm:scale-100"]),new he(7,["ease-in duration-200"]),new he(8,["opacity-100 translate-y-0 sm:scale-100"]),new he(9,["opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"]),new he(10,[[v0(k([new bi(0,["1"]),new bi(1,["relative transform overflow-hidden rounded-lg bg-white px-4 pt-5 pb-4 text-left shadow-xl transition-all sm:my-8 sm:w-full sm:max-w-lg sm:p-6"]),new bi(2,[[v("div",j(k([["key","1"],["className","sm:flex sm:items-start"],(r=xr(ne(()=>{let i,s,a;return Ye((i=e.dialogIcon,i==null?Ya():(s=i,Ce(v("div",j(k([["key","1"],(a="mx-auto flex h-12 w-12 flex-shrink-0 items-center justify-center sm:mx-0 sm:h-10 sm:w-10 sm:mr-4 rounded-full bg-red-100",["className",a]),["children",X.Children.toArray([s])]])))))),ne(()=>{let l,u;return Ce(v("div",j(k([["key","2"],["className","mt-3 text-center sm:mt-0 sm:text-left"],(l=[S0(k([new Rr(1,["1"]),new Rr(0,["h3"]),new Rr(2,["text-lg font-medium leading-6 text-gray-900"]),new Rr(3,[[v("span",{children:e.title,key:"1"})]])])),v("div",j(k([["className","mt-2"],["key","2"],(u=[v("p",{className:"text-sm text-gray-500",children:e.message})],["children",X.Children.toArray(Array.from(u))])])))],["children",X.Children.toArray(Array.from(l))])]))))}))})),["children",X.Children.toArray(Array.from(r))])]))),v("div",j(k([["key","2"],["className","mt-5 sm:mt-4 sm:flex sm:flex-row-reverse"],(o=xr(ne(()=>Ye(Ce(v("button",{key:"Ok",type:"button",className:e.okButtonThem.tag===1?"inline-flex w-full justify-center rounded-md border border-transparent bg-red-600 px-4 py-2 text-base font-medium text-white shadow-sm hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-gray-300 focus:ring-offset-2 sm:ml-3 sm:w-auto sm:text-sm":"inline-flex w-full justify-center rounded-md border border-transparent bg-white px-4 py-2 text-base font-medium text-white shadow-sm hover:bg-primary-700 focus:outline-none focus:ring-2 focus:ring-gray-300 focus:ring-offset-2 sm:ml-3 sm:w-auto sm:text-sm",onClick:i=>{e.okButtonClick()},children:e.okButtonText})),ne(()=>{let i;return Ce(v("button",j(k([["key","Cancel"],["type","button"],(i="mt-3 inline-flex w-full justify-center rounded-md border border-gray-300 bg-white px-4 py-2 text-base font-medium text-gray-700 shadow-sm hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-gray-200 focus:ring-offset-2 sm:mt-0 sm:w-auto sm:text-sm",["className",i]),["onClick",s=>{e.cancelButtonClick()}],["children",e.cancelButtonText]]))))})))),["children",X.Children.toArray(Array.from(o))])])))]])]))]])]))],["children",X.Children.toArray(Array.from(n))])])))],["children",X.Children.toArray(Array.from(t))])])))]])]))]])]))}function k0(){return le()}function vi(e){return Xt("/",e)}function $0(e,t){const n=new Error("Duplicate SubId");return e(["Duplicate SubId: "+vi(t),n])}function ou(e,t,n){try{V(n)}catch(r){e(["Error stopping subscription: "+vi(t),r])}}function T0(e,t,n,r){try{return[n,r(t)]}catch(o){e(["Error starting subscription: "+vi(n),o]);return}}function M0(e,t){Dn(n=>{ou(e,n[0],n[1])},t)}function iu(e,t,n,r,o,i){return Dn(s=>{$0(e,s)},n),Dn(s=>{ou(e,s[0],s[1])},r),Ko(o,wh(s=>T0(e,t,s[0],s[1]),i))}function A0(){return[le(),Vp({Compare:De}),le()]}function I0(e,t,n,r,o){return ii(e,r)?[He(e,n),r,o]:[n,Up(e,r),He([e,t],o)]}function O0(e){return fh((t,n)=>I0(t[0],t[1],n[0],n[1],n[2]),e,A0())}const N0=le();function su(e,t){const n=jp(Ba(s=>s[0],e),{Compare:De}),r=O0(t),o=r[1],i=r[0];if(n.Equals(o))return[i,le(),e,le()];{const s=gh(a=>ii(a[0],o),e);return[i,s[1],s[0],mh(a=>!ii(a[0],n),r[2])]}}function P0(e,t,n,r){const o=De(e,n)|0;if(o===0)throw new Error("The step of a range cannot be zero");const i=o>0;return s=>{const a=De(s,t)|0;return i&&a<=0||!i&&a>=0?[s,r(s,e)]:void 0}}function D0(e,t,n,r,o){const i=P0(t,n,r,o);return ne(()=>Ah(i,e))}function F0(e,t,n){return D0(e,t,n,0,(r,o)=>r+o)}class dn extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Writable","ReadWritable"]}}class R0{constructor(t){this.state=new dn(0,[vr(new Array(Va(t,10)),0,Va(t,10),null),0])}}function L0(e){return new R0(e)}function au(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 dn(0,[o,n]):e.state=new dn(1,[o,n,i]),de(Z(r,o))}else return}function H0(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];et(i,r,t);const s=(r+1)%i.length|0;s===o?e.state=new dn(1,[U0(e,o,i),i.length,0]):e.state=new dn(1,[i,s,o])}else{const r=n.fields[1]|0,o=n.fields[0];et(o,r,t);const i=(r+1)%o.length|0;e.state=new dn(1,[o,i,r])}}function U0(e,t,n){return Array.from(ne(()=>Ye(Fh(t,n),ne(()=>Ye(Rh(t,n),ne(()=>Lh(r=>Ce(Ge()),F0(0,1,n.length))))))))}class Si extends Fe{constructor(t,n,r,o,i,s,a){super(),this.init=t,this.update=n,this.subscribe=r,this.view=o,this.setState=i,this.onError=s,this.termination=a}}function V0(e,t,n){return new Si(e,t,r=>k0(),n,Y(r=>{const o=At(n)(r);return i=>{o(i)}}),r=>{o0(r[0],r[1])},[r=>!1,r=>{}])}function j0(e,t){return new Si(t.init,t.update,t.subscribe,t.view,e,t.onError,t.termination)}function B0(e){return e.init}function G0(e,t,n,r,o,i,s){const a=At(e)(s.init),l=yo(t)(At(s.update)),u=yo(n)(At(s.view)),f=yo(r)(At(s.setState));return new Si(a,Y(l),At(o)(s.subscribe),Y(u),Y(f),s.onError,i(s.termination))}function z0(e,t,n){let r;const o=n.init(t),i=o[0],s=n.subscribe(i),a=n.termination,l=L0(10);let u=!1,f=i,c=N0,h=!1;const d=m=>{h||(H0(l,m),u||(u=!0,g(),u=!1))},p=At(e)(d),g=()=>{let m,_=au(l);for(;!h&&_!=null;){const b=y(_);if(a[0](b))M0(n.onError,c),a[1](f),h=!0;else{const C=n.update(b,f),H=C[0],K=n.subscribe(H);n.setState(H,p),Ql(re=>{n.onError([Ft(St("Error handling the message: %A"))(b),re])},p,C[1]),f=H,c=(m=su(c,K),iu(n.onError,p,m[0],m[1],m[2],m[3])),_=au(l)}}};u=!0,n.setState(i,p),Ql(m=>{n.onError([Ft(St("Error intitializing:")),m])},p,o[1]),c=(r=su(c,s),iu(n.onError,p,r[0],r[1],r[2],r[3])),g(),u=!1}function W0(e,t){z0(Y(n=>n),e,t)}function q0(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var Ci={exports:{}},Ei={};const Y0=q0(zt);/**
41
41
  * @license React
42
42
  * use-sync-external-store-shim.production.js
43
43
  *
@@ -45,4 +45,4 @@ Documentation available at: https://thoth-org.github.io/Thoth.Json/documentation
45
45
  *
46
46
  * This source code is licensed under the MIT license found in the
47
47
  * LICENSE file in the root directory of this source tree.
48
- */var qs;function Q0(){if(qs)return co;qs=1;var e=X0;function t(c,h){return c===h&&(c!==0||1/c===1/h)||c!==c&&h!==h}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,o=e.useEffect,i=e.useLayoutEffect,s=e.useDebugValue;function a(c,h){var d=h(),p=r({inst:{value:d,getSnapshot:h}}),g=p[0].inst,m=p[1];return i(function(){g.value=d,g.getSnapshot=h,l(g)&&m({inst:g})},[c,d,h]),o(function(){return l(g)&&m({inst:g}),c(function(){l(g)&&m({inst:g})})},[c]),s(d),d}function l(c){var h=c.getSnapshot;c=c.value;try{var d=h();return!n(c,d)}catch{return!0}}function u(c,h){return h()}var f=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:a;return co.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:f,co}var Ys;function eg(){return Ys||(Ys=1,uo.exports=Q0()),uo.exports}var tg=eg();class ng{constructor(t,n,r){this.arg=n,this.dependencies=r;const o=t(),i=[];this.finalDispatch=void 0;let s;const a=q0(o)(this.arg);let l=a[0],u=a[1];s=[[l,f=>{const c=this.finalDispatch;c==null?i.push(f):c(f)},!1,i],u],this.state=s[0],this.cmd=s[1],this.subscribe=f=>{let c=!1;const h=_o(this.state[0]);return J0(this.arg,W0((d,p)=>{const g=this.state;this.finalDispatch=p,this.state=[d,g[1],!0,i],d!==g[0]&&f()},Y0((d,p)=>{const g=this.cmd;return this.cmd=it(),[this.state[0],g]},(d,p,g)=>d(p)(this.state[0]),bo(d=>d),bo(d=>d),Y(d=>d),d=>[p=>d[0](p)?!0:h&&c,p=>{const g=p;_o(g)?G(g):d[1](p)}],o))),()=>{c=!0}}}}function Zs(e,t,n){return new ng(e,t,n)}function rg(e){return e.state}function og(e){return e.subscribe}function ig(e,t,n){return Oe(e.arg,t)?!Oe(e.dependencies,n):!0}function sg(e,t,n){const r=re(()=>Zs(e,t,n)),o=r[0];ig(o,t,n)&&r[1](Zs(e,t,n));const i=tg.useSyncExternalStore(og(o),()=>rg(o)),s=i[2],a=i[3],l=i[1];return H(()=>{if(s&&a.length>0){let u=ne(a);try{for(;u["System.Collections.IEnumerator.MoveNext"]();){const f=u["System.Collections.Generic.IEnumerator`1.get_Current"]();setTimeout(()=>{l(f)})}}finally{G(u)}rc(a)}},[s,a]),[i[0],l]}const ag='*,: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-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--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: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::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-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--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: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{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,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}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-feature-settings:normal;font-variation-settings:normal;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-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([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}dialog{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]:where(:not([hidden=until-found])){display:none}@font-face{font-family:Inter}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.pointer-events-none{pointer-events:none}.static{position:static}.fixed{position:fixed}.relative{position:relative}.inset-0{top:0;right:0;bottom:0;left:0}.z-10{z-index:10}.mx-auto{margin-left:auto;margin-right:auto}.my-5{margin-top:1.25rem;margin-bottom:1.25rem}.ml-3{margin-left:.75rem}.mr-5{margin-right:1.25rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.hidden{display:none}.h-12{height:3rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.min-h-full{min-height:100%}.w-11{width:2.75rem}.w-12{width:3rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-full{width:100%}.flex-1{flex:1 1 0%}.flex-shrink-0{flex-shrink:0}.translate-x-0{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-5{--tw-translate-x: 1.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-0{--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-4{--tw-translate-y: 1rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.flex-row{flex-direction:row}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-center{justify-content:center}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.border{border-width:1px}.border-2{border-width:2px}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1))}.border-transparent{border-color:transparent}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.bg-gray-300{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity, 1))}.bg-gray-500{--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity, 1))}.bg-gray-900{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity, 1))}.bg-indigo-600{--tw-bg-opacity: 1;background-color:rgb(79 70 229 / var(--tw-bg-opacity, 1))}.bg-red-100{--tw-bg-opacity: 1;background-color:rgb(254 226 226 / var(--tw-bg-opacity, 1))}.bg-red-600{--tw-bg-opacity: 1;background-color:rgb(220 38 38 / var(--tw-bg-opacity, 1))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-opacity-75{--tw-bg-opacity: .75}.p-4{padding:1rem}.px-2\\.5{padding-left:.625rem;padding-right:.625rem}.px-4{padding-left:1rem;padding-right:1rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.pb-4{padding-bottom:1rem}.pt-5{padding-top:1.25rem}.text-left{text-align:left}.text-center{text-align:center}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-medium{font-weight:500}.font-semibold{font-weight:600}.leading-5{line-height:1.25rem}.leading-6{line-height:1.5rem}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.opacity-0{opacity:0}.opacity-100{opacity:1}.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-0{--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(0px + 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)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.hover\\:bg-gray-50:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}.hover\\:bg-indigo-700:hover{--tw-bg-opacity: 1;background-color:rgb(67 56 202 / var(--tw-bg-opacity, 1))}.hover\\:bg-red-700:hover{--tw-bg-opacity: 1;background-color:rgb(185 28 28 / var(--tw-bg-opacity, 1))}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-2:focus{--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, 0 0 #0000)}.focus\\:ring-gray-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(229 231 235 / var(--tw-ring-opacity, 1))}.focus\\:ring-gray-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity, 1))}.focus\\:ring-indigo-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(99 102 241 / var(--tw-ring-opacity, 1))}.focus\\:ring-offset-2:focus{--tw-ring-offset-width: 2px}@media (min-width: 640px){.sm\\:mx-0{margin-left:0;margin-right:0}.sm\\:my-8{margin-top:2rem;margin-bottom:2rem}.sm\\:ml-3{margin-left:.75rem}.sm\\:mr-4{margin-right:1rem}.sm\\:mt-0{margin-top:0}.sm\\:mt-4{margin-top:1rem}.sm\\:flex{display:flex}.sm\\:h-10{height:2.5rem}.sm\\:w-10{width:2.5rem}.sm\\:w-auto{width:auto}.sm\\:w-full{width:100%}.sm\\:max-w-lg{max-width:32rem}.sm\\:translate-y-0{--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.sm\\:scale-100{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.sm\\:scale-95{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.sm\\:flex-row-reverse{flex-direction:row-reverse}.sm\\:items-start{align-items:flex-start}.sm\\:items-center{align-items:center}.sm\\:p-0{padding:0}.sm\\:p-6{padding:1.5rem}.sm\\:text-left{text-align:left}.sm\\:text-sm{font-size:.875rem;line-height:1.25rem}}',lg=Xe(ag);function Mi(){return(Mi=Object.assign?Object.assign.bind():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)}var ug=["context","children"];function cg(e){this.getChildContext=function(){return e.context};var t=e.children,n=function(r,o){if(r==null)return{};var i,s,a={},l=Object.keys(r);for(s=0;s<l.length;s++)o.indexOf(i=l[s])>=0||(a[i]=r[i]);return a}(e,ug);return Vo(t,n)}function fg(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=v(cg,Mi({},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,a=n.attributes,l=n.childNodes;for(s=a.length;s--;)a[s].name!=="slot"&&(i[a[s].name]=a[s].value,i[pu(a[s].name)]=a[s].value);for(s=l.length;s--;){var u=t(l[s],null),f=l[s].slot;f?i[f]=v(Js,{name:f},u):o[s]=u}var c=r?v(Js,null,o):o;return v(r||n.nodeName.toLowerCase(),i,c)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?Uo:vt)(this._vdom,this._root)}function pu(e){return e.replace(/-(\w)/g,function(t,n){return n?n.toUpperCase():""})}function dg(e,t,n){if(this._vdom){var r={};r[e]=n=n??void 0,r[pu(e)]=n,this._vdom=Vo(this._vdom,r),vt(this._vdom,this._root)}}function hg(){vt(this._vdom=null,this._root)}function Js(e,t){var n=this;return v("slot",Mi({},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 pg(e,t,n,r){function o(){var i=Reflect.construct(HTMLElement,[],o);return i._vdomComponent=e,i._root=i,i}return(o.prototype=Object.create(HTMLElement.prototype)).constructor=o,o.prototype.connectedCallback=fg,o.prototype.attributeChangedCallback=dg,o.prototype.disconnectedCallback=hg,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 a=typeof s;s!=null&&a!=="string"&&a!=="boolean"&&a!=="number"||this.setAttribute(i,s)}})}),customElements.define(t,o)}function mg(e,t){pg(e,t)}function mu(e){return e.tag===2?"":`(${e})`}function gg(e){let t;const n=e.onChange,r=e.enabled,o=e.title,i=e.isChecked;return v("div",B($([["className","mt-3"],(t=[Dd(ee(new Pd([Od($([new qn(0,[i]),new qn(1,[s=>{r&&n(s)}]),new qn(2,[`${i?"bg-gray-900":"bg-gray-300"} relative inline-flex h-6 w-11 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2 focus:ring-primary-600 focus:ring-offset-2`]),new qn(3,[[v("span",{className:`${i?"translate-x-5":"translate-x-0"} pointer-events-none inline-block h-5 w-5 transform rounded-full bg-white shadow ring-0 transition duration-200 ease-in-out`})]])])),Nd($([new ts(0,["ml-3"]),new ts(1,[[v("span",{className:"text-sm leading-5 font-medium text-gray-900",children:o})]])]))])))],["children",X.Children.toArray(Array.from(t))])])))}function wg(e){let t;return v("div",B($([["className","mt-4"],(t=[v("label",{className:"inline-flex text-sm font-medium text-gray-900 mr-5",for:"max-accounts",children:`Max Accounts ${mu(e.configOwnership)}: `}),v("input",{className:"inline-flex",id:"max-accounts",type:"number",min:1,max:3,value:e.selected,onChange:n=>{const r=n.target.valueAsNumber;r!=null&&!Number.isNaN(r)&&e.handleMaxAccountChanged(nc(r))},disabled:e.readOnly})],["children",X.Children.toArray(Array.from(t))])])))}function Ks(e){let t;const n=e.msg;return v("div",B($([["className","text-sm font-medium text-gray-900 my-5"],(t=[v("span",{children:[n]})],["children",X.Children.toArray(Array.from(t))])])))}function _g(e,t,n){let r,o;const i=e.tag===2&&t?"":"hidden";return v("div",B($([["className","flex-1"],(r=[v("div",B($([["className","flex flex-row space-x-2"],(o=_r(te(()=>{let s,a;return t?Ye(Ee(v("button",B($([(s="inline-flex items-center rounded border border-transparent bg-indigo-600 py-1.5 px-2.5 text-xs font-medium text-white shadow-sm hover:bg-indigo-700 focus:outline-none",["className",s]),["type","button"],["onClick",l=>{n(new le(5,[new Cn(1,[])]))}],["children",X.Children.toArray([v0])]])))),te(()=>Ee(v("button",{className:`${i} inline-flex items-center rounded border border-transparent bg-red-600 py-1.5 px-2.5 text-xs font-medium text-white shadow-sm hover:bg-red-700 focus:outline-none`,type:"button",children:"Reset",onClick:l=>{n(new le(7,[!0]))},children:X.Children.toArray([S0])})))):Ye(Ee(v("button",B($([(a="inline-flex items-center rounded border border-transparent bg-indigo-600 py-2 px-4 text-xs font-medium text-white shadow-sm hover:bg-indigo-700 focus:outline-none",["className",a]),["type","button"],["children","Save"],["onClick",l=>{n(g0())}]])))),te(()=>{let l;return Ee(v("button",B($([(l="inline-flex justify-center rounded-md border border-transparent py-2 px-4 shadow-sm focus:outline-none focus:ring-indigo-500 focus:ring-2 focus:ring-offset-2 text-sm font-medium border-gray-300 bg-white text-gray-700 hover:bg-gray-50 focus:ring-gray-300",["className",l]),["type","button"],["children","Cancel"],["onClick",u=>{n(new le(6,[]))}]]))))}))})),["children",X.Children.toArray(Array.from(o))])])))],["children",X.Children.toArray(Array.from(r))])])))}function yg(e){let t;return v("div",B($([["className","flex-1"],(t=[v("h3",{className:"text-lg font-semibold text-gray-900",children:`Bank Settings ${mu(e)}`})],["children",X.Children.toArray(Array.from(t))])])))}function bg(e){return M0(new T0(!0,"Reset Bank Configuration","Are you sure you want to reset the current bank configuration? This action cannot be undone.",b0,"Reset",()=>{e(new le(8,[]))},new $0(1,[]),"Cancel",()=>{e(new le(7,[!1]))}))}function vg(e){let t;const n=p0(e.accessToken),r=Xm(e.backendUrl,e.accessToken,e.partnerId,e.accountId);let o;const i=_0(n);o=sg(()=>z0(()=>i,(h,d)=>y0(n,r,h,d),(h,d)=>{}),void 0,void 0);const s=o[0],a=o[1];let l;const u=s.Error;u!=null?l=v(Ks,{msg:u}):l=Ke();const f=d0(n.Roles)!=null?s.IsLoading?s.Error==null?v("div",{children:["Please wait"]}):l:v("div",B($([["className","mt-5"],(t=_r(te(()=>{let h;return Ye(Ee(v("div",B($([["className","flex"],(h=[yg(s.Config.ConfigOwnership),_g(s.Config.ConfigOwnership,s.ShowEditButton,a)],["children",X.Children.toArray(Array.from(h))])])))),te(()=>Ye(Ee(v(wg,{configOwnership:s.Config.ConfigOwnership,handleMaxAccountChanged:d=>{a(new le(0,[d]))},readOnly:!js(s),selected:s.Config.MaxAccounts})),te(()=>Ye(Ee(v(gg,{isChecked:s.Config.AllowPercentageSplit,title:"Allow percentage split",enabled:js(s),onChange:d=>{a(new le(1,[d]))}})),te(()=>Ye(s.ShowConfirmationDialog?Ee(bg(a)):Rl(),te(()=>Ee(l)))))))))})),["children",X.Children.toArray(Array.from(t))])]))):v(Ks,{msg:"You do not have the appropriate permissions to view this information"}),c=$([v("style",{children:[lg]}),f]);return v("div",{children:X.Children.toArray(Array.from(c))})}mg(e=>v(vg,e),"superhero-bank-details");
48
+ */var lu;function Z0(){if(lu)return Ei;lu=1;var e=Y0;function t(c,h){return c===h&&(c!==0||1/c===1/h)||c!==c&&h!==h}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,o=e.useEffect,i=e.useLayoutEffect,s=e.useDebugValue;function a(c,h){var d=h(),p=r({inst:{value:d,getSnapshot:h}}),g=p[0].inst,m=p[1];return i(function(){g.value=d,g.getSnapshot=h,l(g)&&m({inst:g})},[c,d,h]),o(function(){return l(g)&&m({inst:g}),c(function(){l(g)&&m({inst:g})})},[c]),s(d),d}function l(c){var h=c.getSnapshot;c=c.value;try{var d=h();return!n(c,d)}catch{return!0}}function u(c,h){return h()}var f=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:a;return Ei.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:f,Ei}var uu;function J0(){return uu||(uu=1,Ci.exports=Z0()),Ci.exports}var K0=J0();class X0{constructor(t,n,r){this.arg=n,this.dependencies=r;const o=t(),i=[];this.finalDispatch=void 0;let s;const a=B0(o)(this.arg);let l=a[0],u=a[1];s=[[l,f=>{const c=this.finalDispatch;c==null?i.push(f):c(f)},!1,i],u],this.state=s[0],this.cmd=s[1],this.subscribe=f=>{let c=!1;const h=go(this.state[0]);return W0(this.arg,j0((d,p)=>{const g=this.state;this.finalDispatch=p,this.state=[d,g[1],!0,i],d!==g[0]&&f()},G0((d,p)=>{const g=this.cmd;return this.cmd=ht(),[this.state[0],g]},(d,p,g)=>d(p)(this.state[0]),_o(d=>d),_o(d=>d),Y(d=>d),d=>[p=>d[0](p)?!0:h&&c,p=>{const g=p;go(g)?V(g):d[1](p)}],o))),()=>{c=!0}}}}function cu(e,t,n){return new X0(e,t,n)}function Q0(e){return e.state}function eg(e){return e.subscribe}function tg(e,t,n){return ke(e.arg,t)?!ke(e.dependencies,n):!0}function ng(e,t,n){const r=Q(()=>cu(e,t,n)),o=r[0];tg(o,t,n)&&r[1](cu(e,t,n));const i=K0.useSyncExternalStore(eg(o),()=>Q0(o)),s=i[2],a=i[3],l=i[1];return F(()=>{if(s&&a.length>0){let u=ee(a);try{for(;u["System.Collections.IEnumerator.MoveNext"]();){const f=u["System.Collections.Generic.IEnumerator`1.get_Current"]();setTimeout(()=>{l(f)})}}finally{V(u)}Qu(a)}},[s,a]),[i[0],l]}const rg='*,: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-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--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: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::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-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--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: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{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,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}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-feature-settings:normal;font-variation-settings:normal;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-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([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}dialog{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]:where(:not([hidden=until-found])){display:none}@font-face{font-family:Inter}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.pointer-events-none{pointer-events:none}.static{position:static}.fixed{position:fixed}.relative{position:relative}.inset-0{top:0;right:0;bottom:0;left:0}.z-10{z-index:10}.mx-auto{margin-left:auto;margin-right:auto}.my-5{margin-top:1.25rem;margin-bottom:1.25rem}.ml-3{margin-left:.75rem}.mr-5{margin-right:1.25rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.hidden{display:none}.h-12{height:3rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.min-h-full{min-height:100%}.w-11{width:2.75rem}.w-12{width:3rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-full{width:100%}.flex-1{flex:1 1 0%}.flex-shrink-0{flex-shrink:0}.translate-x-0{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-5{--tw-translate-x: 1.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-0{--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-4{--tw-translate-y: 1rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.flex-row{flex-direction:row}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-center{justify-content:center}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.border{border-width:1px}.border-2{border-width:2px}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1))}.border-transparent{border-color:transparent}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.bg-gray-300{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity, 1))}.bg-gray-500{--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity, 1))}.bg-gray-900{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity, 1))}.bg-indigo-600{--tw-bg-opacity: 1;background-color:rgb(79 70 229 / var(--tw-bg-opacity, 1))}.bg-red-100{--tw-bg-opacity: 1;background-color:rgb(254 226 226 / var(--tw-bg-opacity, 1))}.bg-red-600{--tw-bg-opacity: 1;background-color:rgb(220 38 38 / var(--tw-bg-opacity, 1))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-opacity-75{--tw-bg-opacity: .75}.p-4{padding:1rem}.px-2\\.5{padding-left:.625rem;padding-right:.625rem}.px-4{padding-left:1rem;padding-right:1rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.pb-4{padding-bottom:1rem}.pt-5{padding-top:1.25rem}.text-left{text-align:left}.text-center{text-align:center}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-medium{font-weight:500}.font-semibold{font-weight:600}.leading-5{line-height:1.25rem}.leading-6{line-height:1.5rem}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.opacity-0{opacity:0}.opacity-100{opacity:1}.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-0{--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(0px + 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)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.hover\\:bg-gray-50:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}.hover\\:bg-indigo-700:hover{--tw-bg-opacity: 1;background-color:rgb(67 56 202 / var(--tw-bg-opacity, 1))}.hover\\:bg-red-700:hover{--tw-bg-opacity: 1;background-color:rgb(185 28 28 / var(--tw-bg-opacity, 1))}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-2:focus{--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, 0 0 #0000)}.focus\\:ring-gray-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(229 231 235 / var(--tw-ring-opacity, 1))}.focus\\:ring-gray-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity, 1))}.focus\\:ring-indigo-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(99 102 241 / var(--tw-ring-opacity, 1))}.focus\\:ring-offset-2:focus{--tw-ring-offset-width: 2px}@media (min-width: 640px){.sm\\:mx-0{margin-left:0;margin-right:0}.sm\\:my-8{margin-top:2rem;margin-bottom:2rem}.sm\\:ml-3{margin-left:.75rem}.sm\\:mr-4{margin-right:1rem}.sm\\:mt-0{margin-top:0}.sm\\:mt-4{margin-top:1rem}.sm\\:flex{display:flex}.sm\\:h-10{height:2.5rem}.sm\\:w-10{width:2.5rem}.sm\\:w-auto{width:auto}.sm\\:w-full{width:100%}.sm\\:max-w-lg{max-width:32rem}.sm\\:translate-y-0{--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.sm\\:scale-100{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.sm\\:scale-95{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.sm\\:flex-row-reverse{flex-direction:row-reverse}.sm\\:items-start{align-items:flex-start}.sm\\:items-center{align-items:center}.sm\\:p-0{padding:0}.sm\\:p-6{padding:1.5rem}.sm\\:text-left{text-align:left}.sm\\:text-sm{font-size:.875rem;line-height:1.25rem}}',og=We(rg);function xi(){return(xi=Object.assign?Object.assign.bind():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)}var ig=["context","children"];function sg(e){this.getChildContext=function(){return e.context};var t=e.children,n=function(r,o){if(r==null)return{};var i,s,a={},l=Object.keys(r);for(s=0;s<l.length;s++)o.indexOf(i=l[s])>=0||(a[i]=r[i]);return a}(e,ig);return Kr(t,n)}function ag(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=v(sg,xi({},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,a=n.attributes,l=n.childNodes;for(s=a.length;s--;)a[s].name!=="slot"&&(i[a[s].name]=a[s].value,i[fu(a[s].name)]=a[s].value);for(s=l.length;s--;){var u=t(l[s],null),f=l[s].slot;f?i[f]=v(du,{name:f},u):o[s]=u}var c=r?v(du,null,o):o;return v(r||n.nodeName.toLowerCase(),i,c)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?Jr:gt)(this._vdom,this._root)}function fu(e){return e.replace(/-(\w)/g,function(t,n){return n?n.toUpperCase():""})}function lg(e,t,n){if(this._vdom){var r={};r[e]=n=n??void 0,r[fu(e)]=n,this._vdom=Kr(this._vdom,r),gt(this._vdom,this._root)}}function ug(){gt(this._vdom=null,this._root)}function du(e,t){var n=this;return v("slot",xi({},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 cg(e,t,n,r){function o(){var i=Reflect.construct(HTMLElement,[],o);return i._vdomComponent=e,i._root=i,i}return(o.prototype=Object.create(HTMLElement.prototype)).constructor=o,o.prototype.connectedCallback=ag,o.prototype.attributeChangedCallback=lg,o.prototype.disconnectedCallback=ug,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 a=typeof s;s!=null&&a!=="string"&&a!=="boolean"&&a!=="number"||this.setAttribute(i,s)}})}),customElements.define(t,o)}function fg(e,t){cg(e,t)}function hu(e){return e.tag===2?"":`(${e})`}function dg(e){let t;const n=e.onChange,r=e.enabled,o=e.title,i=e.isChecked;return v("div",j(k([["className","mt-3"],(t=[Id(te(new Ad([Td(k([new mr(0,[i]),new mr(1,[s=>{r&&n(s)}]),new mr(2,[`${i?"bg-gray-900":"bg-gray-300"} relative inline-flex h-6 w-11 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2 focus:ring-primary-600 focus:ring-offset-2`]),new mr(3,[[v("span",{className:`${i?"translate-x-5":"translate-x-0"} pointer-events-none inline-block h-5 w-5 transform rounded-full bg-white shadow ring-0 transition duration-200 ease-in-out`})]])])),Md(k([new Ca(0,["ml-3"]),new Ca(1,[[v("span",{className:"text-sm leading-5 font-medium text-gray-900",children:o})]])]))])))],["children",X.Children.toArray(Array.from(t))])])))}function hg(e){let t;return v("div",j(k([["className","mt-4"],(t=[v("label",{className:"inline-flex text-sm font-medium text-gray-900 mr-5",for:"max-accounts",children:`Max Accounts ${hu(e.configOwnership)}: `}),v("input",{className:"inline-flex",id:"max-accounts",type:"number",min:1,max:3,value:e.selected,onChange:n=>{const r=n.target.valueAsNumber;r!=null&&!Number.isNaN(r)&&e.handleMaxAccountChanged(Xu(r))},disabled:e.readOnly})],["children",X.Children.toArray(Array.from(t))])])))}function pu(e){let t;const n=e.msg;return v("div",j(k([["className","text-sm font-medium text-gray-900 my-5"],(t=[v("span",{children:[n]})],["children",X.Children.toArray(Array.from(t))])])))}function pg(e,t,n){let r,o;const i=e.tag===2&&t?"":"hidden";return v("div",j(k([["className","flex-1"],(r=[v("div",j(k([["className","flex flex-row space-x-2"],(o=xr(ne(()=>{let s,a;return t?Ye(Ce(v("button",j(k([(s="inline-flex items-center rounded border border-transparent bg-indigo-600 py-1.5 px-2.5 text-xs font-medium text-white shadow-sm hover:bg-indigo-700 focus:outline-none",["className",s]),["type","button"],["onClick",l=>{n(new ue(5,[new Hn(1,[])]))}],["children",X.Children.toArray([w0])]])))),ne(()=>Ce(v("button",{className:`${i} inline-flex items-center rounded border border-transparent bg-red-600 py-1.5 px-2.5 text-xs font-medium text-white shadow-sm hover:bg-red-700 focus:outline-none`,type:"button",children:"Reset",onClick:l=>{n(new ue(7,[!0]))},children:X.Children.toArray([_0])})))):Ye(Ce(v("button",j(k([(a="inline-flex items-center rounded border border-transparent bg-indigo-600 py-2 px-4 text-xs font-medium text-white shadow-sm hover:bg-indigo-700 focus:outline-none",["className",a]),["type","button"],["children","Save"],["onClick",l=>{n(d0())}]])))),ne(()=>{let l;return Ce(v("button",j(k([(l="inline-flex justify-center rounded-md border border-transparent py-2 px-4 shadow-sm focus:outline-none focus:ring-indigo-500 focus:ring-2 focus:ring-offset-2 text-sm font-medium border-gray-300 bg-white text-gray-700 hover:bg-gray-50 focus:ring-gray-300",["className",l]),["type","button"],["children","Cancel"],["onClick",u=>{n(new ue(6,[]))}]]))))}))})),["children",X.Children.toArray(Array.from(o))])])))],["children",X.Children.toArray(Array.from(r))])])))}function mg(e){let t;return v("div",j(k([["className","flex-1"],(t=[v("h3",{className:"text-lg font-semibold text-gray-900",children:`Bank Settings ${hu(e)}`})],["children",X.Children.toArray(Array.from(t))])])))}function gg(e){return x0(new E0(!0,"Reset Bank Configuration","Are you sure you want to reset the current bank configuration? This action cannot be undone.",g0,"Reset",()=>{e(new ue(8,[]))},new C0(1,[]),"Cancel",()=>{e(new ue(7,[!1]))}))}function wg(e){let t;const n=c0(e.accessToken),r=Ym(e.backendUrl,e.accessToken,e.partnerId,e.accountId);let o;const i=p0(n);o=ng(()=>V0(()=>i,(h,d)=>m0(n,r,h,d),(h,d)=>{}),void 0,void 0);const s=o[0],a=o[1];let l;const u=s.Error;u!=null?l=v(pu,{msg:u}):l=Ge();const f=l0(n.Roles)!=null?s.IsLoading?s.Error==null?v("div",{children:["Please wait"]}):l:v("div",j(k([["className","mt-5"],(t=xr(ne(()=>{let h;return Ye(Ce(v("div",j(k([["className","flex"],(h=[mg(s.Config.ConfigOwnership),pg(s.Config.ConfigOwnership,s.ShowEditButton,a)],["children",X.Children.toArray(Array.from(h))])])))),ne(()=>Ye(Ce(v(hg,{configOwnership:s.Config.ConfigOwnership,handleMaxAccountChanged:d=>{a(new ue(0,[d]))},readOnly:!nu(s),selected:s.Config.MaxAccounts})),ne(()=>Ye(Ce(v(dg,{isChecked:s.Config.AllowPercentageSplit,title:"Allow percentage split",enabled:nu(s),onChange:d=>{a(new ue(1,[d]))}})),ne(()=>Ye(s.ShowConfirmationDialog?Ce(gg(a)):Ya(),ne(()=>Ce(l)))))))))})),["children",X.Children.toArray(Array.from(t))])]))):v(pu,{msg:"You do not have the appropriate permissions to view this information"}),c=k([v("style",{children:[og]}),f]);return v("div",{children:X.Children.toArray(Array.from(c))})}fg(e=>v(wg,e),"superhero-bank-details")})();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flarehr/superhero-bank-details",
3
- "version": "3.13.0",
3
+ "version": "3.14.0",
4
4
  "type": "module",
5
5
  "description": "Flare Superhero Bank Details Components",
6
6
  "license": "SEE LICENSE IN LICENSE.md",