@flarehr/apollo-super-selection-app 0.4.56441 → 0.4.57441
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,17 +1,17 @@
|
|
|
1
|
-
var kn,I,wi,kt,Js,_i,Ir,Qr,Vr,Lr,gi,yn={},bi=[],Vu=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,rr=Array.isArray;function rt(e,t){for(var n in t)e[n]=t[n];return e}function yi(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function h(e,t,n){var r,s,o,i={};for(o in t)o=="key"?r=t[o]:o=="ref"?s=t[o]:i[o]=t[o];if(arguments.length>2&&(i.children=arguments.length>3?kn.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(o in e.defaultProps)i[o]===void 0&&(i[o]=e.defaultProps[o]);return gn(e,i,r,s,null)}function gn(e,t,n,r,s){var o={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:s??++wi,__i:-1,__u:0};return s==null&&I.vnode!=null&&I.vnode(o),o}function vi(){return{current:null}}function ve(e){return e.children}function Pe(e,t){this.props=e,this.context=t}function en(e,t){if(t==null)return e.__?en(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"?en(e):null}function xi(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 xi(e)}}function Or(e){(!e.__d&&(e.__d=!0)&&kt.push(e)&&!Gn.__r++||Js!==I.debounceRendering)&&((Js=I.debounceRendering)||_i)(Gn)}function Gn(){var e,t,n,r,s,o,i,a;for(kt.sort(Ir);e=kt.shift();)e.__d&&(t=kt.length,r=void 0,o=(s=(n=e).__v).__e,i=[],a=[],n.__P&&((r=rt({},s)).__v=s.__v+1,I.vnode&&I.vnode(r),Xr(n.__P,r,s,n.__n,n.__P.namespaceURI,32&s.__u?[o]:null,i,o??en(s),!!(32&s.__u),a),r.__v=s.__v,r.__.__k[r.__i]=r,Fi(i,r,a),r.__e!=o&&xi(r)),kt.length>t&&kt.sort(Ir));Gn.__r=0}function Si(e,t,n,r,s,o,i,a,l,u,f){var c,p,m,w,b,g=r&&r.__k||bi,_=t.length;for(n.__d=l,Lu(n,t,g),l=n.__d,c=0;c<_;c++)(m=n.__k[c])!=null&&(p=m.__i===-1?yn:g[m.__i]||yn,m.__i=c,Xr(e,m,p,s,o,i,a,l,u,f),w=m.__e,m.ref&&p.ref!=m.ref&&(p.ref&&es(p.ref,null,m),f.push(m.ref,m.__c||w,m)),b==null&&w!=null&&(b=w),65536&m.__u||p.__k===m.__k?l=Ci(m,l,e):typeof m.type=="function"&&m.__d!==void 0?l=m.__d:w&&(l=w.nextSibling),m.__d=void 0,m.__u&=-196609);n.__d=l,n.__e=b}function Lu(e,t,n){var r,s,o,i,a,l=t.length,u=n.length,f=u,c=0;for(e.__k=[],r=0;r<l;r++)(s=t[r])!=null&&typeof s!="boolean"&&typeof s!="function"?(i=r+c,(s=e.__k[r]=typeof s=="string"||typeof s=="number"||typeof s=="bigint"||s.constructor==String?gn(null,s,null,null,null):rr(s)?gn(ve,{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,o=null,(a=s.__i=Ou(s,n,i,f))!==-1&&(f--,(o=n[a])&&(o.__u|=131072)),o==null||o.__v===null?(a==-1&&c--,typeof s.type!="function"&&(s.__u|=65536)):a!==i&&(a==i-1?c--:a==i+1?c++:(a>i?c--:c++,s.__u|=65536))):s=e.__k[r]=null;if(f)for(r=0;r<u;r++)(o=n[r])!=null&&!(131072&o.__u)&&(o.__e==e.__d&&(e.__d=en(o)),Ai(o,o))}function Ci(e,t,n){var r,s;if(typeof e.type=="function"){for(r=e.__k,s=0;r&&s<r.length;s++)r[s]&&(r[s].__=e,t=Ci(r[s],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=en(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"||(rr(e)?e.some(function(n){ot(n,t)}):t.push(e)),t}function Ou(e,t,n,r){var s=e.key,o=e.type,i=n-1,a=n+1,l=t[n];if(l===null||l&&s==l.key&&o===l.type&&!(131072&l.__u))return n;if(r>(l!=null&&!(131072&l.__u)?1:0))for(;i>=0||a<t.length;){if(i>=0){if((l=t[i])&&!(131072&l.__u)&&s==l.key&&o===l.type)return i;i--}if(a<t.length){if((l=t[a])&&!(131072&l.__u)&&s==l.key&&o===l.type)return a;a++}}return-1}function Ks(e,t,n){t[0]==="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||Vu.test(t)?n:n+"px"}function On(e,t,n,r,s){var o;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||Ks(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||Ks(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")o=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e||t==="onFocusOut"||t==="onFocusIn"?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=n,n?r?n.u=r.u:(n.u=Qr,e.addEventListener(t,o?Lr:Vr,o)):e.removeEventListener(t,o?Lr:Vr,o);else{if(s=="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 Ys(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=Qr++;else if(t.t<n.u)return;return n(I.event?I.event(t):t)}}}function Xr(e,t,n,r,s,o,i,a,l,u){var f,c,p,m,w,b,g,_,F,x,Z,ae,Ie,vt,xt,ft,ge=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(l=!!(32&n.__u),o=[a=t.__e=n.__e]),(f=I.__b)&&f(t);e:if(typeof ge=="function")try{if(_=t.props,F="prototype"in ge&&ge.prototype.render,x=(f=ge.contextType)&&r[f.__c],Z=f?x?x.props.value:f.__:r,n.__c?g=(c=t.__c=n.__c).__=c.__E:(F?t.__c=c=new ge(_,Z):(t.__c=c=new Pe(_,Z),c.constructor=ge,c.render=Ru),x&&x.sub(c),c.props=_,c.state||(c.state={}),c.context=Z,c.__n=r,p=c.__d=!0,c.__h=[],c._sb=[]),F&&c.__s==null&&(c.__s=c.state),F&&ge.getDerivedStateFromProps!=null&&(c.__s==c.state&&(c.__s=rt({},c.__s)),rt(c.__s,ge.getDerivedStateFromProps(_,c.__s))),m=c.props,w=c.state,c.__v=t,p)F&&ge.getDerivedStateFromProps==null&&c.componentWillMount!=null&&c.componentWillMount(),F&&c.componentDidMount!=null&&c.__h.push(c.componentDidMount);else{if(F&&ge.getDerivedStateFromProps==null&&_!==m&&c.componentWillReceiveProps!=null&&c.componentWillReceiveProps(_,Z),!c.__e&&(c.shouldComponentUpdate!=null&&c.shouldComponentUpdate(_,c.__s,Z)===!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(Ln){Ln&&(Ln.__=t)}),ae=0;ae<c._sb.length;ae++)c.__h.push(c._sb[ae]);c._sb=[],c.__h.length&&i.push(c);break e}c.componentWillUpdate!=null&&c.componentWillUpdate(_,c.__s,Z),F&&c.componentDidUpdate!=null&&c.__h.push(function(){c.componentDidUpdate(m,w,b)})}if(c.context=Z,c.props=_,c.__P=e,c.__e=!1,Ie=I.__r,vt=0,F){for(c.state=c.__s,c.__d=!1,Ie&&Ie(t),f=c.render(c.props,c.state,c.context),xt=0;xt<c._sb.length;xt++)c.__h.push(c._sb[xt]);c._sb=[]}else do c.__d=!1,Ie&&Ie(t),f=c.render(c.props,c.state,c.context),c.state=c.__s;while(c.__d&&++vt<25);c.state=c.__s,c.getChildContext!=null&&(r=rt(rt({},r),c.getChildContext())),F&&!p&&c.getSnapshotBeforeUpdate!=null&&(b=c.getSnapshotBeforeUpdate(m,w)),Si(e,rr(ft=f!=null&&f.type===ve&&f.key==null?f.props.children:f)?ft:[ft],t,n,r,s,o,i,a,l,u),c.base=t.__e,t.__u&=-161,c.__h.length&&i.push(c),g&&(c.__E=c.__=null)}catch(Ln){if(t.__v=null,l||o!=null){for(t.__u|=l?160:32;a&&a.nodeType===8&&a.nextSibling;)a=a.nextSibling;o[o.indexOf(a)]=null,t.__e=a}else t.__e=n.__e,t.__k=n.__k;I.__e(Ln,t,n)}else o==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=Du(n.__e,t,n,r,s,o,i,l,u);(f=I.diffed)&&f(t)}function Fi(e,t,n){t.__d=void 0;for(var r=0;r<n.length;r++)es(n[r],n[++r],n[++r]);I.__c&&I.__c(t,e),e.some(function(s){try{e=s.__h,s.__h=[],e.some(function(o){o.call(s)})}catch(o){I.__e(o,s.__v)}})}function Du(e,t,n,r,s,o,i,a,l){var u,f,c,p,m,w,b,g=n.props,_=t.props,F=t.type;if(F==="svg"?s="http://www.w3.org/2000/svg":F==="math"?s="http://www.w3.org/1998/Math/MathML":s||(s="http://www.w3.org/1999/xhtml"),o!=null){for(u=0;u<o.length;u++)if((m=o[u])&&"setAttribute"in m==!!F&&(F?m.localName===F:m.nodeType===3)){e=m,o[u]=null;break}}if(e==null){if(F===null)return document.createTextNode(_);e=document.createElementNS(s,F,_.is&&_),a&&(I.__m&&I.__m(t,o),a=!1),o=null}if(F===null)g===_||a&&e.data===_||(e.data=_);else{if(o=o&&kn.call(e.childNodes),g=n.props||yn,!a&&o!=null)for(g={},u=0;u<e.attributes.length;u++)g[(m=e.attributes[u]).name]=m.value;for(u in g)if(m=g[u],u!="children"){if(u=="dangerouslySetInnerHTML")c=m;else if(!(u in _)){if(u=="value"&&"defaultValue"in _||u=="checked"&&"defaultChecked"in _)continue;On(e,u,null,m,s)}}for(u in _)m=_[u],u=="children"?p=m:u=="dangerouslySetInnerHTML"?f=m:u=="value"?w=m:u=="checked"?b=m:a&&typeof m!="function"||g[u]===m||On(e,u,m,g[u],s);if(f)a||c&&(f.__html===c.__html||f.__html===e.innerHTML)||(e.innerHTML=f.__html),t.__k=[];else if(c&&(e.innerHTML=""),Si(e,rr(p)?p:[p],t,n,r,F==="foreignObject"?"http://www.w3.org/1999/xhtml":s,o,i,o?o[0]:n.__k&&en(n,0),a,l),o!=null)for(u=o.length;u--;)yi(o[u]);a||(u="value",F==="progress"&&w==null?e.removeAttribute("value"):w!==void 0&&(w!==e[u]||F==="progress"&&!w||F==="option"&&w!==g[u])&&On(e,u,w,g[u],s),u="checked",b!==void 0&&b!==e[u]&&On(e,u,b,g[u],s))}return e}function es(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(s){I.__e(s,n)}}function Ai(e,t,n){var r,s;if(I.unmount&&I.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||es(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(o){I.__e(o,t)}r.base=r.__P=null}if(r=e.__k)for(s=0;s<r.length;s++)r[s]&&Ai(r[s],t,n||typeof e.type!="function");n||yi(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function Ru(e,t,n){return this.constructor(e,n)}function gt(e,t,n){var r,s,o,i;I.__&&I.__(e,t),s=(r=typeof n=="function")?null:n&&n.__k||t.__k,o=[],i=[],Xr(t,e=(!r&&n||t).__k=h(ve,null,[e]),s||yn,yn,t.namespaceURI,!r&&n?[n]:s?null:t.firstChild?kn.call(t.childNodes):null,o,!r&&n?n:s?s.__e:t.firstChild,r,i),Fi(o,e,i)}function ts(e,t){gt(e,t,ts)}function ns(e,t,n){var r,s,o,i,a=rt({},e.props);for(o in e.type&&e.type.defaultProps&&(i=e.type.defaultProps),t)o=="key"?r=t[o]:o=="ref"?s=t[o]:a[o]=t[o]===void 0&&i!==void 0?i[o]:t[o];return arguments.length>2&&(a.children=arguments.length>3?kn.call(arguments,2):n),gn(e.type,a,r||e.key,s||e.ref,null)}function ki(e,t){var n={__c:t="__cC"+gi++,__:e,Consumer:function(r,s){return r.children(s)},Provider:function(r){var s,o;return this.getChildContext||(s=[],(o={})[t]=this,this.getChildContext=function(){return o},this.componentWillUnmount=function(){s=null},this.shouldComponentUpdate=function(i){this.props.value!==i.value&&s.some(function(a){a.__e=!0,Or(a)})},this.sub=function(i){s.push(i);var a=i.componentWillUnmount;i.componentWillUnmount=function(){s&&s.splice(s.indexOf(i),1),a&&a.call(i)}}),r.children}};return n.Provider.__=n.Consumer.contextType=n}kn=bi.slice,I={__e:function(e,t,n,r){for(var s,o,i;t=t.__;)if((s=t.__c)&&!s.__)try{if((o=s.constructor)&&o.getDerivedStateFromError!=null&&(s.setState(o.getDerivedStateFromError(e)),i=s.__d),s.componentDidCatch!=null&&(s.componentDidCatch(e,r||{}),i=s.__d),i)return s.__E=s}catch(a){e=a}throw e}},wi=0,Pe.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),Or(this))},Pe.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Or(this))},Pe.prototype.render=ve,kt=[],_i=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Ir=function(e,t){return e.__v.__b-t.__v.__b},Gn.__r=0,Qr=0,Vr=Ys(!1),Lr=Ys(!0),gi=0;var at,W,Cr,Qs,tn=0,Ni=[],X=I,Xs=X.__b,eo=X.__r,to=X.diffed,no=X.__c,ro=X.unmount,so=X.__;function Vt(e,t){X.__h&&X.__h(W,e,tn||t),tn=0;var n=W.__H||(W.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function un(e){return tn=1,sr(Mi,e)}function sr(e,t,n){var r=Vt(at++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Mi(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=W,!W.u)){var s=function(a,l,u){if(!r.__c.__H)return!0;var f=r.__c.__H.__.filter(function(p){return!!p.__c});if(f.every(function(p){return!p.__N}))return!o||o.call(this,a,l,u);var c=!1;return f.forEach(function(p){if(p.__N){var m=p.__[0];p.__=p.__N,p.__N=void 0,m!==p.__[0]&&(c=!0)}}),!(!c&&r.__c.props===a)&&(!o||o.call(this,a,l,u))};W.u=!0;var o=W.shouldComponentUpdate,i=W.componentWillUpdate;W.componentWillUpdate=function(a,l,u){if(this.__e){var f=o;o=void 0,s(a,l,u),o=f}i&&i.call(this,a,l,u)},W.shouldComponentUpdate=s}return r.__N||r.__}function Nn(e,t){var n=Vt(at++,3);!X.__s&&ls(n.__H,t)&&(n.__=e,n.i=t,W.__H.__h.push(n))}function ln(e,t){var n=Vt(at++,4);!X.__s&&ls(n.__H,t)&&(n.__=e,n.i=t,W.__h.push(n))}function rs(e){return tn=5,Mn(function(){return{current:e}},[])}function ss(e,t,n){tn=6,ln(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 Mn(e,t){var n=Vt(at++,7);return ls(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function os(e,t){return tn=8,Mn(function(){return e},t)}function is(e){var t=W.context[e.__c],n=Vt(at++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(W)),t.props.value):e.__}function as(e,t){X.useDebugValue&&X.useDebugValue(t?t(e):e)}function Uu(e){var t=Vt(at++,10),n=un();return t.__=e,W.componentDidCatch||(W.componentDidCatch=function(r,s){t.__&&t.__(r,s),n[1](r)}),[n[0],function(){n[1](void 0)}]}function us(){var e=Vt(at++,11);if(!e.__){for(var t=W.__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 Pu(){for(var e;e=Ni.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Hn),e.__H.__h.forEach(Dr),e.__H.__h=[]}catch(t){e.__H.__h=[],X.__e(t,e.__v)}}X.__b=function(e){W=null,Xs&&Xs(e)},X.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),so&&so(e,t)},X.__r=function(e){eo&&eo(e),at=0;var t=(W=e.__c).__H;t&&(Cr===W?(t.__h=[],W.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.i=n.__N=void 0})):(t.__h.forEach(Hn),t.__h.forEach(Dr),t.__h=[],at=0)),Cr=W},X.diffed=function(e){to&&to(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Ni.push(t)!==1&&Qs===X.requestAnimationFrame||((Qs=X.requestAnimationFrame)||Hu)(Pu)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.i=void 0})),Cr=W=null},X.__c=function(e,t){t.some(function(n){try{n.__h.forEach(Hn),n.__h=n.__h.filter(function(r){return!r.__||Dr(r)})}catch(r){t.some(function(s){s.__h&&(s.__h=[])}),t=[],X.__e(r,n.__v)}}),no&&no(e,t)},X.unmount=function(e){ro&&ro(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{Hn(r)}catch(s){t=s}}),n.__H=void 0,t&&X.__e(t,n.__v))};var oo=typeof requestAnimationFrame=="function";function Hu(e){var t,n=function(){clearTimeout(r),oo&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);oo&&(t=requestAnimationFrame(n))}function Hn(e){var t=W,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),W=t}function Dr(e){var t=W;e.__c=e.__(),W=t}function ls(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function Mi(e,t){return typeof t=="function"?t(e):t}function Ei(e,t){for(var n in t)e[n]=t[n];return e}function Rr(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 Wn(e,t){this.props=e,this.context=t}function $i(e,t){function n(s){var o=this.props.ref,i=o==s.ref;return!i&&o&&(o.call?o(null):o.current=null),t?!t(this.props,s)||!i:Rr(this.props,s)}function r(s){return this.shouldComponentUpdate=n,h(e,s)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(Wn.prototype=new Pe).isPureReactComponent=!0,Wn.prototype.shouldComponentUpdate=function(e,t){return Rr(this.props,e)||Rr(this.state,t)};var io=I.__b;I.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),io&&io(e)};var zu=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Ti(e){function t(n){var r=Ei({},n);return delete r.ref,e(r,n.ref||null)}return t.$$typeof=zu,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var ao=function(e,t){return e==null?null:ot(ot(e).map(t))},Bi={map:ao,forEach:ao,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},ju=I.__e;I.__e=function(e,t,n,r){if(e.then){for(var s,o=t;o=o.__;)if((s=o.__c)&&s.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),s.__c(e,t)}ju(e,t,n,r)};var uo=I.unmount;function Ii(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=Ei({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return Ii(r,t,n)})),e}function Vi(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return Vi(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 bn(){this.__u=0,this.t=null,this.__b=null}function Li(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Oi(e){var t,n,r;function s(o){if(t||(t=e()).then(function(i){n=i.default||i},function(i){r=i}),r)throw r;if(!n)throw t;return h(n,o)}return s.displayName="Lazy",s.__f=!0,s}function qt(){this.u=null,this.o=null}I.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),uo&&uo(e)},(bn.prototype=new Pe).__c=function(e,t){var n=t.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var s=Li(r.__v),o=!1,i=function(){o||(o=!0,n.__R=null,s?s(a):a())};n.__R=i;var a=function(){if(!--r.__u){if(r.state.__a){var l=r.state.__a;r.__v.__k[0]=Vi(l,l.__c.__P,l.__c.__O)}var u;for(r.setState({__a:r.__b=null});u=r.t.pop();)u.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(i,i)},bn.prototype.componentWillUnmount=function(){this.t=[]},bn.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]=Ii(this.__b,n,r.__O=r.__P)}this.__b=null}var s=t.__a&&h(ve,null,e.fallback);return s&&(s.__u&=-33),[h(ve,null,t.__a?null:e.children),s]};var lo=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function Gu(e){return this.getChildContext=function(){return e.context},e.children}function Wu(e){var t=this,n=e.i;t.componentWillUnmount=function(){gt(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],contains:function(){return!0},appendChild:function(r){this.childNodes.push(r),t.i.appendChild(r)},insertBefore:function(r,s){this.childNodes.push(r),t.i.appendChild(r)},removeChild:function(r){this.childNodes.splice(this.childNodes.indexOf(r)>>>1,1),t.i.removeChild(r)}}),gt(h(Gu,{context:t.context},e.__v),t.l)}function Di(e,t){var n=h(Wu,{__v:e,i:t});return n.containerInfo=t,n}(qt.prototype=new Pe).__a=function(e){var t=this,n=Li(t.__v),r=t.o.get(e);return r[0]++,function(s){var o=function(){t.props.revealOrder?(r.push(s),lo(t,e,r)):s()};n?n(o):o()}},qt.prototype.render=function(e){this.u=null,this.o=new Map;var t=ot(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},qt.prototype.componentDidUpdate=qt.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){lo(e,n,t)})};var Ri=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,qu=/^(?: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]/,Zu=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Ju=/[A-Z0-9]/g,Ku=typeof document<"u",Yu=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function Ui(e,t,n){return t.__k==null&&(t.textContent=""),gt(e,t),typeof n=="function"&&n(),e?e.__c:null}function Pi(e,t,n){return ts(e,t),typeof n=="function"&&n(),e?e.__c:null}Pe.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(Pe.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var co=I.event;function Qu(){}function Xu(){return this.cancelBubble}function el(){return this.defaultPrevented}I.event=function(e){return co&&(e=co(e)),e.persist=Qu,e.isPropagationStopped=Xu,e.isDefaultPrevented=el,e.nativeEvent=e};var cs,tl={enumerable:!1,configurable:!0,get:function(){return this.class}},fo=I.vnode;I.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,r=t.type,s={},o=r.indexOf("-")===-1;for(var i in n){var a=n[i];if(!(i==="value"&&"defaultValue"in n&&a==null||Ku&&i==="children"&&r==="noscript"||i==="class"||i==="className")){var l=i.toLowerCase();i==="defaultValue"&&"value"in n&&n.value==null?i="value":i==="download"&&a===!0?a="":l==="translate"&&a==="no"?a=!1:l[0]==="o"&&l[1]==="n"?l==="ondoubleclick"?i="ondblclick":l!=="onchange"||r!=="input"&&r!=="textarea"||Yu(n.type)?l==="onfocus"?i="onfocusin":l==="onblur"?i="onfocusout":Zu.test(i)&&(i=l):l=i="oninput":o&&qu.test(i)?i=i.replace(Ju,"-$&").toLowerCase():a===null&&(a=void 0),l==="oninput"&&s[i=l]&&(i="oninputCapture"),s[i]=a}}r=="select"&&s.multiple&&Array.isArray(s.value)&&(s.value=ot(n.children).forEach(function(u){u.props.selected=s.value.indexOf(u.props.value)!=-1})),r=="select"&&s.defaultValue!=null&&(s.value=ot(n.children).forEach(function(u){u.props.selected=s.multiple?s.defaultValue.indexOf(u.props.value)!=-1:s.defaultValue==u.props.value})),n.class&&!n.className?(s.class=n.class,Object.defineProperty(s,"className",tl)):(n.className&&!n.class||n.class&&n.className)&&(s.class=s.className=n.className),t.props=s}(e),e.$$typeof=Ri,fo&&fo(e)};var ho=I.__r;I.__r=function(e){ho&&ho(e),cs=e.__c};var mo=I.diffed;I.diffed=function(e){mo&&mo(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),cs=null};var Hi={ReactCurrentDispatcher:{current:{readContext:function(e){return cs.__n[e.__c].props.value},useCallback:os,useContext:is,useDebugValue:as,useDeferredValue:fs,useEffect:Nn,useId:us,useImperativeHandle:ss,useInsertionEffect:ms,useLayoutEffect:ln,useMemo:Mn,useReducer:sr,useRef:rs,useState:un,useSyncExternalStore:ps,useTransition:hs}}},nl="18.3.1";function zi(e){return h.bind(null,e)}function En(e){return!!e&&e.$$typeof===Ri}function ji(e){return En(e)&&e.type===ve}function Gi(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function Wi(e){return En(e)?ns.apply(null,arguments):e}function qi(e){return!!e.__k&&(gt(null,e),!0)}function Zi(e){return e&&(e.base||e.nodeType===1&&e)||null}var Ji=function(e,t){return e(t)},Ki=function(e,t){return e(t)},Yi=ve;function ds(e){e()}function fs(e){return e}function hs(){return[!1,ds]}var ms=ln,Qi=En;function ps(e,t){var n=t(),r=un({h:{__:n,v:t}}),s=r[0].h,o=r[1];return ln(function(){s.__=n,s.v=t,Fr(s)&&o({h:s})},[e,n,t]),Nn(function(){return Fr(s)&&o({h:s}),e(function(){Fr(s)&&o({h:s})})},[e]),n}function Fr(e){var t,n,r=e.v,s=e.__;try{var o=r();return!((t=s)===(n=o)&&(t!==0||1/t==1/n)||t!=t&&n!=n)}catch{return!0}}var Xi={useState:un,useId:us,useReducer:sr,useEffect:Nn,useLayoutEffect:ln,useInsertionEffect:ms,useTransition:hs,useDeferredValue:fs,useSyncExternalStore:ps,startTransition:ds,useRef:rs,useImperativeHandle:ss,useMemo:Mn,useCallback:os,useContext:is,useDebugValue:as,version:"18.3.1",Children:Bi,render:Ui,hydrate:Pi,unmountComponentAtNode:qi,createPortal:Di,createElement:h,createContext:ki,createFactory:zi,cloneElement:Wi,createRef:vi,Fragment:ve,isValidElement:En,isElement:Qi,isFragment:ji,isMemo:Gi,findDOMNode:Zi,Component:Pe,PureComponent:Wn,memo:$i,forwardRef:Ti,flushSync:Ki,unstable_batchedUpdates:Ji,StrictMode:Yi,Suspense:bn,SuspenseList:qt,lazy:Oi,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Hi};const rl=Object.freeze(Object.defineProperty({__proto__:null,Children:Bi,Component:Pe,Fragment:ve,PureComponent:Wn,StrictMode:Yi,Suspense:bn,SuspenseList:qt,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Hi,cloneElement:Wi,createContext:ki,createElement:h,createFactory:zi,createPortal:Di,createRef:vi,default:Xi,findDOMNode:Zi,flushSync:Ki,forwardRef:Ti,hydrate:Pi,isElement:Qi,isFragment:ji,isMemo:Gi,isValidElement:En,lazy:Oi,memo:$i,render:Ui,startTransition:ds,unmountComponentAtNode:qi,unstable_batchedUpdates:Ji,useCallback:os,useContext:is,useDebugValue:as,useDeferredValue:fs,useEffect:Nn,useErrorBoundary:Uu,useId:us,useImperativeHandle:ss,useInsertionEffect:ms,useLayoutEffect:ln,useMemo:Mn,useReducer:sr,useRef:rs,useState:un,useSyncExternalStore:ps,useTransition:hs,version:nl},Symbol.toStringTag,{value:"Module"})),sl=`*,: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]{display:none}[type=text],input:where(:not([type])),[type=email],[type=url],[type=password],[type=number],[type=date],[type=datetime-local],[type=month],[type=search],[type=tel],[type=time],[type=week],[multiple],textarea,select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#6b7280;border-width:1px;border-radius:0;padding:.5rem .75rem;font-size:1rem;line-height:1.5rem;--tw-shadow: 0 0 #0000}[type=text]:focus,input:where(:not([type])):focus,[type=email]:focus,[type=url]:focus,[type=password]:focus,[type=number]:focus,[type=date]:focus,[type=datetime-local]:focus,[type=month]:focus,[type=search]:focus,[type=tel]:focus,[type=time]:focus,[type=week]:focus,[multiple]:focus,textarea:focus,select:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: #2563eb;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);border-color:#2563eb}input::-moz-placeholder,textarea::-moz-placeholder{color:#6b7280;opacity:1}input::placeholder,textarea::placeholder{color:#6b7280;opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit,::-webkit-datetime-edit-year-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-meridiem-field{padding-top:0;padding-bottom:0}select{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem;-webkit-print-color-adjust:exact;print-color-adjust:exact}[multiple],[size]:where(select:not([size="1"])){background-image:initial;background-position:initial;background-repeat:unset;background-size:initial;padding-right:.75rem;-webkit-print-color-adjust:unset;print-color-adjust:unset}[type=checkbox],[type=radio]{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;-webkit-print-color-adjust:exact;print-color-adjust:exact;display:inline-block;vertical-align:middle;background-origin:border-box;-webkit-user-select:none;-moz-user-select:none;user-select:none;flex-shrink:0;height:1rem;width:1rem;color:#2563eb;background-color:#fff;border-color:#6b7280;border-width:1px;--tw-shadow: 0 0 #0000}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 2px;--tw-ring-offset-color: #fff;--tw-ring-color: #2563eb;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}[type=checkbox]:checked,[type=radio]:checked{border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:center;background-repeat:no-repeat}[type=checkbox]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e")}@media (forced-colors: active){[type=checkbox]:checked{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=radio]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e")}@media (forced-colors: active){[type=radio]:checked{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=checkbox]:checked:hover,[type=checkbox]:checked:focus,[type=radio]:checked:hover,[type=radio]:checked:focus{border-color:transparent;background-color:currentColor}[type=checkbox]:indeterminate{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3e%3c/svg%3e");border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:center;background-repeat:no-repeat}@media (forced-colors: active){[type=checkbox]:indeterminate{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=checkbox]:indeterminate:hover,[type=checkbox]:indeterminate:focus{border-color:transparent;background-color:currentColor}[type=file]{background:unset;border-color:inherit;border-width:0;border-radius:0;padding:0;font-size:unset;line-height:inherit}[type=file]:focus{outline:1px solid ButtonText;outline:1px auto -webkit-focus-ring-color}@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-auto{pointer-events:auto}.visible{visibility:visible}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.left-0{left:0}.top-0{top:0}.z-10{z-index:10}.mx-auto{margin-left:auto;margin-right:auto}.my-3{margin-top:.75rem;margin-bottom:.75rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-8{margin-bottom:2rem}.ml-2{margin-left:.5rem}.ml-3{margin-left:.75rem}.ml-6{margin-left:1.5rem}.mt-0\\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.inline-table{display:inline-table}.table-caption{display:table-caption}.table-cell{display:table-cell}.table-column{display:table-column}.table-column-group{display:table-column-group}.table-footer-group{display:table-footer-group}.table-header-group{display:table-header-group}.table-row-group{display:table-row-group}.table-row{display:table-row}.flow-root{display:flow-root}.grid{display:grid}.inline-grid{display:inline-grid}.contents{display:contents}.list-item{display:list-item}.hidden{display:none}.h-10{height:2.5rem}.h-14{height:3.5rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-80{height:20rem}.h-9{height:2.25rem}.h-full{height:100%}.h-px{height:1px}.max-h-\\[min\\(320px\\,50vh\\)\\]{max-height:min(320px,50vh)}.w-1\\/2{width:50%}.w-5{width:1.25rem}.w-full{width:100%}.min-w-0{min-width:0px}.max-w-3xl{max-width:48rem}.max-w-48{max-width:12rem}.max-w-7xl{max-width:80rem}.max-w-96{max-width:24rem}.flex-1{flex:1 1 0%}.flex-shrink{flex-shrink:1}.flex-shrink-0{flex-shrink:0}.shrink{flex-shrink:1}.flex-grow,.grow{flex-grow:1}.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))}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.resize{resize:both}.list-outside{list-style-position:outside}.list-disc{list-style-type:disc}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-center{justify-content:center}.gap-10{gap:2.5rem}.gap-2{gap:.5rem}.gap-6{gap:1.5rem}.-space-x-px>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(-1px * var(--tw-space-x-reverse));margin-left:calc(-1px * calc(1 - var(--tw-space-x-reverse)))}.-space-y-px>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(-1px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(-1px * var(--tw-space-y-reverse))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.self-start{align-self:flex-start}.self-end{align-self:flex-end}.self-stretch{align-self:stretch}.overflow-auto{overflow:auto}.whitespace-pre-wrap{white-space:pre-wrap}.text-wrap{text-wrap:wrap}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-none{border-radius:0}.rounded-t-md{border-top-left-radius:.375rem;border-top-right-radius:.375rem}.rounded-bl-md{border-bottom-left-radius:.375rem}.rounded-br-md{border-bottom-right-radius:.375rem}.border{border-width:1px}.border-l-4{border-left-width:4px}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.border-red-300{--tw-border-opacity: 1;border-color:rgb(252 165 165 / var(--tw-border-opacity))}.border-transparent{border-color:transparent}.border-yellow-400{--tw-border-opacity: 1;border-color:rgb(250 204 21 / var(--tw-border-opacity))}.border-zinc-200{--tw-border-opacity: 1;border-color:rgb(228 228 231 / var(--tw-border-opacity))}.bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.bg-primary-base{background-color:var(--fl-color-primary)}.bg-primary-disabled{background-color:var(--fl-color-primary-disabled)}.bg-primary-light{background-color:var(--fl-color-primary-light)}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-yellow-50{--tw-bg-opacity: 1;background-color:rgb(254 252 232 / var(--tw-bg-opacity))}.p-4{padding:1rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-8{padding-left:2rem;padding-right:2rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-20{padding-top:5rem;padding-bottom:5rem}.pb-6{padding-bottom:1.5rem}.pl-4{padding-left:1rem}.pl-5{padding-left:1.25rem}.text-center{text-align:center}.text-2xl{font-size:1.5rem;line-height:2rem}.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}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.lowercase{text-transform:lowercase}.capitalize{text-transform:capitalize}.italic{font-style:italic}.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))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity))}.text-red-900{--tw-text-opacity: 1;color:rgb(127 29 29 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.text-yellow-700{--tw-text-opacity: 1;color:rgb(161 98 7 / var(--tw-text-opacity))}.underline{text-decoration-line:underline}.overline{text-decoration-line:overline}.line-through{text-decoration-line:line-through}.placeholder-red-300::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(252 165 165 / var(--tw-placeholder-opacity))}.placeholder-red-300::placeholder{--tw-placeholder-opacity: 1;color:rgb(252 165 165 / var(--tw-placeholder-opacity))}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-none{--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;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)}.outline{outline-style:solid}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow{--tw-drop-shadow: drop-shadow(0 1px 2px rgb(0 0 0 / .1)) drop-shadow(0 1px 1px rgb(0 0 0 / .06));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.grayscale{--tw-grayscale: grayscale(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.invert{--tw-invert: invert(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.sepia{--tw-sepia: sepia(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,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}.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))}.hover\\:bg-primary-hover:hover{background-color:var(--fl-color-primary-hover)}.focus\\:z-10:focus{z-index:10}.focus\\:border-primary-base:focus{border-color:var(--fl-color-primary)}.focus\\:border-red-500:focus{--tw-border-opacity: 1;border-color:rgb(239 68 68 / var(--tw-border-opacity))}.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-primary-focus:focus{--tw-ring-color: var(--fl-color-primary-focus)}.focus\\:ring-red-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(239 68 68 / var(--tw-ring-opacity))}.focus\\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.disabled\\:pointer-events-none:disabled{pointer-events:none}.disabled\\:border-gray-300:disabled{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.disabled\\:bg-gray-100:disabled{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.disabled\\:text-gray-400:disabled{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}@media (min-width: 640px){.sm\\:mb-8{margin-bottom:2rem}.sm\\:space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.sm\\:p-6{padding:1.5rem}.sm\\:pb-8{padding-bottom:2rem}.sm\\:text-3xl{font-size:1.875rem;line-height:2.25rem}.sm\\:text-lg{font-size:1.125rem;line-height:1.75rem}.sm\\:text-sm{font-size:.875rem;line-height:1.25rem}.sm\\:leading-8{line-height:2rem}}`;function He(e){return Array.isArray(e)||ArrayBuffer.isView(e)}function ol(e){return e!=null&&typeof e.GetEnumerator=="function"}function il(e){return e!=null&&typeof e.CompareTo=="function"}function al(e){return e!=null&&typeof e.Equals=="function"}function ul(e){return e!=null&&typeof e.GetHashCode=="function"}function Ur(e){return e!=null&&typeof e.Dispose=="function"}function Y(e){Ur(e)&&e.Dispose()}function ze(){return null}function qn(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 ll{constructor(t){this.iter=t,this.current=ze()}"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 re(e){return ol(e)?e.GetEnumerator():new ll(e[Symbol.iterator]())}function or(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}}}}function J(e,t){return e.toString(10).padStart(t,"0")}function po(e){const t=e;return typeof t.offset=="number"?t.offset:e.kind===1?0:e.getTimezoneOffset()*-6e4}function cl(e,t){return e=e<0&&t!=null&&t!==10?65535+e+1:e,e.toString(t)}function Mt(e,t){return e=e<0&&t!=null&&t!==10?4294967295+e+1:e,e.toString(t)}class pt{static id(t){return pt.idMap.has(t)||pt.idMap.set(t,++pt.count),pt.idMap.get(t)}}pt.idMap=new WeakMap;pt.count=0;function ws(e){let t=0,n=5381;const r=e.length;for(;t<r;)n=n*33^e.charCodeAt(t++);return n}function tt(e){return e*2654435761|0}function dl(e){return ws(e.toString(32))}function $n(e){let t=0;const n=e.length;for(let r=0;r<n;r++){const s=e[r];t=(t<<5)+t^s}return t}function fl(e){return e.getTime()}function hl(e){const t=e.length,n=new Array(t);for(let r=0;r<t;r++)n[r]=ut(e[r]);return $n(n)}function ut(e){var t;if(e==null)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return tt(e);case"bigint":return dl(e);case"string":return ws(e);default:{if(ul(e))return e.GetHashCode();if(He(e))return hl(e);if(e instanceof Date)return fl(e);if(((t=Object.getPrototypeOf(e))==null?void 0:t.constructor)===Object){const n=Object.values(e).map(r=>ut(r));return $n(n)}else return tt(pt.id(e))}}}function Pr(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 ea(e,t){return Pr(e,t,ce)}function ml(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;n.sort(),r.sort();for(let s=0;s<n.length;s++)if(n[s]!==r[s]||!ce(e[n[s]],t[r[s]]))return!1;return!0}function ce(e,t){var n;return e===t?!0:e==null?t==null:t==null?!1:al(e)?e.Equals(t):He(e)?He(t)&&ea(e,t):typeof e!="object"?!1:e instanceof Date?t instanceof Date&&ta(e,t)===0:((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===Object&&ml(e,t)}function ta(e,t){let n,r;return"offset"in e&&"offset"in t?(n=e.getTime(),r=t.getTime()):(n=e.getTime()+po(e),r=t.getTime()+po(t)),n===r?0:n<r?-1:1}function ir(e,t){return e===t?0:e<t?-1:1}function pl(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,s=0;r<e.length;r++)if(s=n(e[r],t[r]),s!==0)return s;return 0}function na(e,t){return pl(e,t,Be)}function wl(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 s=0,o=0;s<n.length;s++){const i=n[s];if(i!==r[s])return i<r[s]?-1:1;if(o=Be(e[i],t[i]),o!==0)return o}return 0}function Be(e,t){var n;return e===t?0:e==null?t==null?0:-1:t==null?1:il(e)?e.CompareTo(t):He(e)?He(t)?na(e,t):-1:typeof e!="object"?e<t?-1:1:e instanceof Date?t instanceof Date?ta(e,t):-1:((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===Object?wl(e,t):-1}function S(e){const t={};for(const n of e)t[n[0]]=n[1];return t}function _l(e){He(e)?e.splice(0):e.clear()}const ar=new WeakMap;function z(e){if(e==null)return null;const t=(n,r)=>e(n)(r);return ar.set(t,e),t}function O(e){return ar.get(e)??(t=>n=>e(t,n))}function Hr(e){if(e==null)return null;const t=(n,r,s)=>e(n)(r)(s);return ar.set(t,e),t}function Ar(e){return ar.get(e)??(t=>n=>r=>e(t,n,r))}function gl(e){let t=0,n="[";for(const r of e){if(t===0)n+=je(r);else if(t===100){n+="; ...";break}else n+="; "+je(r);t++}return n+"]"}function je(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 gl(e);{const r=(n=Object.getPrototypeOf(e))==null?void 0:n.constructor;return r===Object&&t<10?"{ "+Object.entries(e).map(([s,o])=>s+" = "+je(o,t+1)).join(`
|
|
2
|
-
`)+" }":(r==null?void 0:r.name)??""}}return String(e)}function
|
|
3
|
-
`)+" }"}function xl(e){const t=Object.values(e).map(n=>ut(n));return $n(t)}function Sl(e,t){if(e===t)return!0;if(qn(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++)if(!ce(e[n[r]],t[n[r]]))return!1;return!0}else return!1}function Cl(e,t){if(e===t)return 0;if(qn(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++){const s=Be(e[n[r]],t[n[r]]);if(s!==0)return s}return 0}else return-1}class L{toJSON(){return yl(this)}toString(){return vl(this)}GetHashCode(){return xl(this)}Equals(t){return Sl(this,t)}CompareTo(t){return Cl(this,t)}}class Ge{get contents(){return this.getter()}set contents(t){this.setter(t)}constructor(t,n){typeof n=="function"?(this.getter=t,this.setter=n):(this.getter=()=>t,this.setter=r=>{t=r})}}class Fl{constructor(t){this.message=t}}function Al(e){return e instanceof Fl||e instanceof Error}function kl(e){return e instanceof Promise}function Zn(e){return Al(e)||kl(e)?e:new Error(String(e))}const _s=je(sl),y=Xi,cn=Symbol("numeric");function ra(e){return typeof e=="number"||typeof e=="bigint"||(e==null?void 0:e[cn])}function Nl(e,t){return typeof e=="number"||typeof e=="bigint"?e<t?-1:e>t?1:0:e.CompareTo(t)}function zr(e,t){return typeof e=="number"?e*t:typeof e=="bigint"?e*BigInt(t):e[cn]().multiply(t)}function zn(e,t){return typeof e=="number"?e.toFixed(t):typeof e=="bigint"?e:e[cn]().toFixed(t)}function Jn(e,t){return typeof e=="number"?e.toPrecision(t):typeof e=="bigint"?e:e[cn]().toPrecision(t)}function Kn(e,t){return typeof e=="number"?e.toExponential(t):typeof e=="bigint"?e:e[cn]().toExponential(t)}function Yn(e){return typeof e=="number"?(Number(e)>>>0).toString(16):typeof e=="bigint"?BigInt.asUintN(64,e).toString(16):e[cn]().toHex()}const Ml=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],El=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],$l=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Tl=["January","February","March","April","May","June","July","August","September","October","November","December"];function Ce(e,t,n){let r=0,s=t;for(;s<e.length&&e[s]===n;)s++,r++;return r}function wo(e,t){return t>=e.length-1?-1:e.charCodeAt(t+1)}function Bl(e,t){let n=t;const r=e[t];let s="",o=!1;for(;t<e.length;){t++;const i=e[t];if(i===r){o=!0;break}else if(i==="\\")if(t<e.length)t++,s+=e[t];else throw new Error("Invalid string format");else s+=i}if(!o)throw new Error(`Invalid string format could not find matching quote for ${r}`);return[s,t-n+1]}function gs(e,t,n){let r=0,s=0,o="";const i=n?Tn(e.getTime(),1):e;for(;r<t.length;){const a=t[r];switch(a){case"d":switch(s=Ce(t,r,"d"),r+=s,s){case 1:o+=go(i);break;case 2:o+=J(go(i),2);break;case 3:o+=Ml[vo(i)];break;case 4:o+=El[vo(i)];break}break;case"f":if(s=Ce(t,r,"f"),r+=s,s<=3){const g=10**(3-s);o+=J(Math.floor(Rn(i)/g),s)}else s<=7&&(o+=(""+Rn(i)).padEnd(s,"0"));break;case"F":if(s=Ce(t,r,"F"),r+=s,s<=3){const g=10**(3-s),_=Math.floor(Rn(i)/g);_!=0&&(o+=J(_,s))}else if(s<=7){const g=Rn(i);g!=0&&(o+=J(g,3))}break;case"g":s=Ce(t,r,"g"),r+=s,s<=2&&(o+="A.D.");break;case"h":switch(s=Ce(t,r,"h"),r+=s,s){case 1:o+=Dn(i)%12;break;case 2:o+=J(Dn(i)%12,2);break}break;case"H":switch(s=Ce(t,r,"H"),r+=s,s){case 1:o+=Dn(i);break;case 2:o+=J(Dn(i),2);break}break;case"K":switch(s=Ce(t,r,"K"),r+=s,s){case 1:switch(_o(i)){case 1:o+="Z";break;case 2:o+=Yt(i.getTimezoneOffset()*-6e4);break}break}break;case"m":switch(s=Ce(t,r,"m"),r+=s,s){case 1:o+=bo(i);break;case 2:o+=J(bo(i),2);break}break;case"M":switch(s=Ce(t,r,"M"),r+=s,s){case 1:o+=Un(i);break;case 2:o+=J(Un(i),2);break;case 3:o+=$l[Un(i)-1];break;case 4:o+=Tl[Un(i)-1];break}break;case"s":switch(s=Ce(t,r,"s"),r+=s,s){case 1:o+=yo(i);break;case 2:o+=J(yo(i),2);break}break;case"t":switch(s=Ce(t,r,"t"),r+=s,s){case 1:o+=i.getHours()<12?"A":"P";break;case 2:o+=i.getHours()<12?"AM":"PM";break}break;case"y":switch(s=Ce(t,r,"y"),r+=s,s){case 1:o+=i.getFullYear()%100;break;case 2:o+=J(i.getFullYear()%100,2);break;case 3:o+=J(i.getFullYear(),3);break;case 4:o+=J(i.getFullYear(),4);break;case 5:o+=J(i.getFullYear(),5);break}break;case"z":s=Ce(t,r,"z"),r+=s;let l="";switch(_o(i)){case 1:l="+00:00";break;case 2:l=Yt(i.getTimezoneOffset()*-6e4);break;case 0:l=Yt(Hl(i).getTimezoneOffset()*-6e4);break}const u=l[0]==="-"?"-":"+",f=parseInt(l.substring(1,3),10),c=parseInt(l.substring(4,6),10);switch(s){case 1:o+=`${u}${f}`;break;case 2:o+=`${u}${J(f,2)}`;break;default:o+=`${u}${J(f,2)}:${J(c,2)}`;break}break;case":":o+=":",r++;break;case"/":o+="/",r++;break;case"'":case'"':const[p,m]=Bl(t,r);o+=p,r+=m;break;case"%":const w=wo(t,r);if(w>=0&&w!==37)r+=2,o+=gs(i,String.fromCharCode(w),n);else throw new Error("Invalid format string");break;case"\\":const b=wo(t,r);if(b>=0)r+=2,o+=String.fromCharCode(b);else throw new Error("Invalid format string");break;default:r++,o+=a;break}}return o}function _o(e){return e.kind||0}function Yt(e){const t=e<0;e=Math.abs(e);const n=~~(e/36e5),r=e%36e5/6e4;return(t?"-":"+")+J(n,2)+":"+J(r,2)}function Qn(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 Il(e,t){if(t)return e.toISOString();{const n=e.kind==null?!0:e.kind===2;return J(e.getFullYear(),4)+"-"+J(e.getMonth()+1,2)+"-"+J(e.getDate(),2)+"T"+J(e.getHours(),2)+":"+J(e.getMinutes(),2)+":"+J(e.getSeconds(),2)+"."+J(e.getMilliseconds(),3)+(n?Yt(e.getTimezoneOffset()*-6e4):"")}}function Vl(e,t){const n=e.toISOString();return n.substring(0,n.length-1)+Yt(t)}function Ll(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," ")+Yt(e.offset??0);if(t.length===1)switch(t){case"D":case"d":return Qn(n,"first");case"T":case"t":return Qn(n,"second");case"O":case"o":return Vl(n,e.offset??0);default:throw new Error("Unrecognized Date print format")}else return gs(n,t,!0)}function Ol(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?Qn(e,"first"):e.toLocaleDateString();case"T":case"t":return n?Qn(e,"second"):e.toLocaleTimeString();case"O":case"o":return Il(e,n);default:throw new Error("Unrecognized Date print format")}else return gs(e,t,n)}function sa(e,t,n){return e.offset!=null?Ll(e,t):Ol(e,t)}function Tn(e,t){const n=new Date(e);return n.kind=(t??0)|0,n}function Dl(){return Tn(-621355968e5,1)}function oa(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 s=/^\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(s!=null){let o,i=0;if(s[2]!=null){const a=s[2].split(":"),l=parseInt(a[0],10);i=l*3600+parseInt(a[1]||"0",10)*60+parseFloat(a[2]||"0"),s[3]!=null&&s[3].toUpperCase()==="PM"&&l<12&&(i+=720)}if(s[4]!=null){if(s[1]!=null)o=new Date(s[1]+" UTC");else{const a=new Date;o=new Date(a.getUTCFullYear()+"/"+(a.getUTCMonth()+1)+"/"+a.getUTCDate())}if(s[4]==="Z")r="Z";else{let a=parseInt(s[5],10)*60+parseInt(s[6]||"0",10);s[4][0]==="-"&&(a*=-1),r=a,i-=a*60}}else if(s[1]!=null)o=new Date(s[1]);else{const a=new Date;o=new Date(a.getFullYear()+"/"+(a.getMonth()+1)+"/"+a.getDate())}n=new Date(o.getTime()+i*1e3),n=new Date(n.getTime()+(n.getTimezoneOffset()-o.getTimezoneOffset())*6e4)}else t();isNaN(n.getTime())&&t()}return[n,r]}function Rl(e,t=!1){const[n,r]=oa(e),s=r!=null?t&&r==="Z"?1:2:0;return Tn(n.getTime(),s)}function Ul(e,t){try{return t.contents=Rl(e),!0}catch{return!1}}function Pl(e){return e.kind===1?e:Tn(e.getTime(),1)}function Hl(e){return e.kind===2?e:Tn(e.getTime(),2)}function go(e){return e.kind===1?e.getUTCDate():e.getDate()}function Dn(e){return e.kind===1?e.getUTCHours():e.getHours()}function Rn(e){return e.kind===1?e.getUTCMilliseconds():e.getMilliseconds()}function bo(e){return e.kind===1?e.getUTCMinutes():e.getMinutes()}function Un(e){return(e.kind===1?e.getUTCMonth():e.getMonth())+1}function yo(e){return e.kind===1?e.getUTCSeconds():e.getSeconds()}function vo(e){return e.kind===1?e.getUTCDay():e.getDay()}function ia(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 aa(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function zl(e,t,n=0){return e.lastIndex=n,e.test(t)}function xo(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 s,o=-1;for(;(s=e.exec(t))!=null;)s.index===o?e.lastIndex++:(o=s.index,r.push(s));return r}function bs(e,t,n,r,s=0){function o(){let i=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]),i=n(a)}return i}if(typeof e=="string"){const i=e;e=ia(t,r??0),t=i,r=void 0}if(typeof n=="function")return r=r??-1,t.substring(0,s)+t.substring(s).replace(e,o);if(n=n.replace(/\$0/g,i=>"$&").replace(/\${([^}]+)}/g,"$<$1>"),r!=null){let i;const a=t.substring(s),l=xo(e,a),u=xo.length>r?(i=l[r-1],a.substring(0,i.index+i[0].length)):a;return t.substring(0,s)+u.replace(e,n)+t.substring(s+u.length)}else return t.replace(e,n)}const pn=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g,jl=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function ua(e,t){return Nl(e,t)<0}function nn(e){return{input:e,cont:ql(e)}}function la(e,t){return typeof t=="string"?e(t):t.cont(e)}function vn(e){return la(t=>t,e)}function Gl(e){return la(t=>{throw new Error(t)},e)}function Wl(e,t,n,r,s){let o="";if(t=t||"",s=s||"",ra(e))switch(s.toLowerCase()!=="x"&&(ua(e,0)?(e=zr(e,-1),o="-"):t.indexOf(" ")>=0?o=" ":t.indexOf("+")>=0&&(o="+")),r=r==null?null:parseInt(r,10),s){case"f":case"F":r=r??6,e=zn(e,r);break;case"g":case"G":e=r!=null?Jn(e,r):Jn(e);break;case"e":case"E":e=r!=null?Kn(e,r):Kn(e);break;case"x":e=Yn(e);break;case"X":e=Yn(e).toUpperCase();break;default:e=String(e);break}else e instanceof Date?e=sa(e):e=je(e);if(n=typeof n=="number"?n:parseInt(n,10),isNaN(n))e=o+e;else{const i=t.indexOf("0")>=0,a=t.indexOf("-")>=0,l=a||!i?" ":"0";l==="0"?(e=xn(e,n-o.length,l,a),e=o+e):e=xn(o+e,n,l,a)}return e}function ca(e,t,n,r="",s=-1){return(...o)=>{let i=r;const a=t.slice(),l=n.slice();for(const u of o){const[,,f,c,p,m]=l[0];let w=c;if(s>=0)w=s,s=-1;else if(w==="*"){if(u<0)throw new Error("Non-negative number required");s=u;continue}i+=a[0],i+=Wl(u,f,w,p,m),a.splice(0,1),l.splice(0,1)}return l.length===0?(i+=a[0],e(i)):ca(e,a,l,i,s)}}function ql(e){return t=>{pn.lastIndex=0;const n=[],r=[];let s=0,o=pn.exec(e);for(;o;){const i=o.index+(o[1]||"").length;n.push(e.substring(s,i).replace(/%%/g,"%")),r.push(o),s=pn.lastIndex,pn.lastIndex-=1,o=pn.exec(e)}return n.length===0?t(e.replace(/%%/g,"%")):(n.push(e.substring(s).replace(/%%/g,"%")),ca(t,n,r))}}function Zl(e,...t){let n;return n=e,n.replace(jl,(r,s,o,i,a,l)=>{if(s<0||s>=t.length)throw new Error("Index must be greater or equal to zero and less than the arguments' length.");let u=t[s];if(ra(u))switch(a=a==null?null:parseInt(a,10),i){case"f":case"F":a=a??2,u=zn(u,a);break;case"g":case"G":u=a!=null?Jn(u,a):Jn(u);break;case"e":case"E":u=a!=null?Kn(u,a):Kn(u);break;case"p":case"P":a=a??2,u=zn(zr(u,100),a)+" %";break;case"d":case"D":u=a!=null?kr(String(u),a,"0"):String(u);break;case"x":case"X":u=a!=null?kr(Yn(u),a,"0"):Yn(u),i==="X"&&(u=u.toUpperCase());break;default:if(l){let f="";u=l.replace(/([0#,]+)(\.[0#]+)?/,(c,p,m)=>{ua(u,0)&&(u=zr(u,-1),f="-"),m=m==null?"":m.substring(1),u=zn(u,Math.max(m.length,0));let[w,b]=u.split(".");b||(b="");const g=p.replace(/,/g,"").replace(/^#+/,"").length;w=kr(w,g,"0");const _=m.replace(/#+$/,"").length;if(_>b.length?b=Kl(b,_,"0"):_<b.length&&(b=b.substring(0,_)+b.substring(_).replace(/0+$/,"")),p.indexOf(",")>0){const F=w.length%3,x=Math.floor(w.length/3);let Z=F>0?w.substr(0,F)+(x>0?",":""):"";for(let ae=0;ae<x;ae++)Z+=w.substr(F+ae*3,3)+(ae<x-1?",":"");w=Z}return b.length>0?w+"."+b:w}),u=f+u}}else u instanceof Date?u=sa(u,l||i):u=je(u);return o=parseInt((o||" ").substring(1),10),isNaN(o)||(u=xn(String(u),Math.abs(o)," ",o<0)),u})}function Jl(e){return typeof e!="string"||e.length===0}function da(e){return typeof e!="string"||/^\s*$/.test(e)}function D(e,t){return Array.isArray(t)?t.join(e):Array.from(t).join(e)}function xn(e,t,n,r){n=n||" ",t=t-e.length;for(let s=0;s<t;s++)e=r?e+n:n+e;return e}function kr(e,t,n){return xn(e,t,n)}function Kl(e,t,n){return xn(e,t,n,!0)}function Yl(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 s=(r&1)===1,o=(r&2)===2;t=t||[],t=t.filter(f=>f).map(aa),t=t.length>0?t:["\\s"];const i=[],a=new RegExp(t.join("|"),"g");let l=!0,u=0;do{const f=a.exec(e);if(f===null){const c=o?e.substring(u).trim():e.substring(u);(!s||c.length>0)&&i.push(c),l=!1}else{const c=o?e.substring(u,f.index).trim():e.substring(u,f.index);(!s||c.length>0)&&(n!=null&&i.length+1===n?(i.push(o?e.substring(u).trim():e.substring(u)),l=!1):i.push(c)),u=a.lastIndex}}while(l);return i}function Ql(e,...t){if(t.length===0)return e.trim();const n="["+aa(t.join(""))+"]+";return e.replace(new RegExp("^"+n),"").replace(new RegExp(n+"$"),"")}class $t{constructor(t){this.value=t}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return ut(this.value)}Equals(t){return t==null?!1:ce(this.value,t instanceof $t?t.value:t)}CompareTo(t){return t==null?1:Be(this.value,t instanceof $t?t.value:t)}}function C(e){if(e==null)throw new Error("Option has no value");return e instanceof $t?e.value:e}function ys(e){return e instanceof $t?e.value:e}function Te(e){return e==null||e instanceof $t?new $t(e):e}function Xl(e){return e==null?[]:[C(e)]}function ur(e,t){return e!=null?C(e):t}function vs(e,t){return t!=null?Te(e(C(t))):void 0}class ec{constructor(t,n,r,s){this.declaringType=t,this.tag=n,this.name=r,this.fields=s}}class Ee{constructor(t,n,r,s,o,i,a){this.fullname=t,this.generics=n,this.construct=r,this.parent=s,this.fields=o,this.cases=i,this.enumCases=a}toString(){return oe(this)}GetHashCode(){return fa(this)}Equals(t){return jr(this,t)}}function nt(e){return e.generics!=null?e.generics:[]}function fa(e){const t=ws(e.fullname),n=nt(e).map(fa);return $n([t,...n])}function jr(e,t){return e.fullname===""?t.fullname===""&&Pr(Xn(e),Xn(t),([n,r],[s,o])=>n===s&&jr(r,o)):e.fullname===t.fullname&&Pr(nt(e),nt(t),jr)}function So(e,t,n,r){return new Ee(e,t,n,r)}function We(e,t,n,r){return new Ee(e,t,n,void 0,r)}function tc(...e){return new Ee("",void 0,void 0,void 0,()=>e)}function nc(e,t,n,r){const s=new Ee(e,t,n,void 0,void 0,()=>{const o=n.prototype.cases();return r().map((i,a)=>new ec(s,a,o[a],i))});return s}function Qe(e){return new Ee("Microsoft.FSharp.Core.FSharpOption`1",[e])}function rc(e){return new Ee("Microsoft.FSharp.Collections.FSharpList`1",[e])}const sc=new Ee("System.Object"),G=new Ee("System.String"),Gr=new Ee("System.Boolean");function xs(e){if(Array.isArray(e))return e[0];if(e instanceof Ee){const t=lr(e);if(t!=null)return xs(t)+"[]";{const n=e.fullname.lastIndexOf(".");return n===-1?e.fullname:e.fullname.substr(n+1)}}else return e.name}function oe(e){const t=lr(e);return t!=null?oe(t)+"[]":e.generics==null||e.generics.length===0?e.fullname:e.fullname+"["+e.generics.map(n=>oe(n)).join(",")+"]"}function oc(e){return lr(e)!=null}function lr(e){var t;return e.fullname==="[]"&&((t=e.generics)==null?void 0:t.length)===1?e.generics[0]:void 0}function ic(e){return e.generics!=null&&e.generics.length>0}function ha(e){return e.enumCases!=null&&e.enumCases.length>0}function ac(e){return e.generics==null?e:new Ee(e.fullname,e.generics.map(()=>sc))}function uc(e){var t;return(t=e.generics)==null?void 0:t[0]}function Lt(e){if(ha(e)&&e.enumCases!=null)return e.enumCases.map(t=>t[1]);throw new Error(`${e.fullname} is not an enum type`)}function lc(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 Ot(e,t){const n=parseInt(t,10);return lc(e,isNaN(n)?t:n)[1]}function cc(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 dc(e){if(ma(e)&&e.generics!=null)return e.generics;throw new Error(`${e.fullname} is not a tuple type`)}function fc(e){return e instanceof Ee?e.cases!=null:e instanceof N}function hc(e){return e instanceof Ee?e.fields!=null:e instanceof L}function ma(e){return e.fullname.startsWith("System.Tuple")}function mc(e){return e.fields==null?[]:e.fields}function pc(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 wc(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,[s,o],i)=>(r[s]=t[i],r),{})}function _c(e,t){return e}const gc="The index was outside the range of elements in the collection.",pa="Collection was empty.";function wa(e,t){return new Array(t)}function Wr(e,t){return e>t?e:t}function bc(e,t){return e<t?e:t}function Ss(e,t,n,r){const s=t|0;return e.fill(r,s,s+n)}function cr(e,t,n){const r=t.length|0,s=wa(n,r);for(let o=0;o<=r-1;o++)bt(s,o,e(we(o,t)));return s}function yc(e,t){const n=wa(t,1);return bt(n,0,e),n}function vc(e){return e.slice().reverse()}function xc(e,t){return t.find(e)}function Sc(e,t,n){const r=[];for(let s=0;s<=t.length-1;s++){const o=e(we(s,t));if(o!=null){const i=C(o);r.push(i)}}return ce(n,ze())?r:cr(s=>s,r,n)}function dr(e,t,n){const r=e;return n.reduce(r,t)}function we(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 bt(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 _a(e,t,n){return t.reduceRight((r,s)=>e(s,r),n)}class de extends L{constructor(t,n){super(),this.head=t,this.tail=n}toString(){return"["+D("; ",this)+"]"}Equals(t){const n=this;return n===t?!0:((s,o)=>{e:for(;;){const i=s,a=o,l=i.tail,u=a.tail;if(l!=null)if(u!=null){const f=C(l),c=C(u);if(ce(i.head,a.head)){s=f,o=c;continue e}else return!1}else return!1;else return u==null}})(n,t)}GetHashCode(){return((r,s,o)=>{e:for(;;){const i=r,a=s,l=o,u=l.tail;if(u!=null){const f=C(u);if(i>18)return a|0;r=i+1,s=(a<<1)+ut(l.head)+631*i,o=f;continue e}else return a|0}})(0,0,this)|0}toJSON(){const t=this;return Array.from(t)}CompareTo(t){return((s,o)=>{e:for(;;){const i=s,a=o,l=i.tail,u=a.tail;if(l!=null)if(u!=null){const f=C(l),c=C(u),p=Be(i.head,a.head)|0;if(p===0){s=f,o=c;continue e}else return p|0}else return 1;else return u!=null?-1:0}})(this,t)|0}GetEnumerator(){return Fc(this)}[Symbol.iterator](){return or(re(this))}"System.Collections.IEnumerable.GetEnumerator"(){return re(this)}}class Cc{constructor(t){this.xs=t,this.it=this.xs,this.current=ze()}"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=C(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=ze()}Dispose(){}}function Fc(e){return new Cc(e)}function ne(){return new de(ze(),void 0)}function Bn(e,t){return new de(e,t)}function yt(e){return e.tail==null}function ga(e){return((n,r)=>{e:for(;;){const s=n,i=r.tail;if(i!=null){n=s+1,r=C(i);continue e}else return s|0}})(0,e)|0}function Tt(e){if(e.tail!=null)return e.head;throw new Error(pa+"\\nParameter name: list")}function fe(e){const t=e.tail;if(t!=null)return C(t);throw new Error(pa+"\\nParameter name: list")}function Ac(e,t){return((r,s)=>{e:for(;;){const o=r,i=s,a=i.tail;if(a!=null){if(o===t)return i.head;r=o+1,s=C(a);continue e}else throw new Error(gc+"\\nParameter name: index")}})(0,e)}function he(){return ne()}function Ne(e,t){return Bn(e,t)}function T(e){return Bn(e,ne())}function P(e){return yt(e)}function Et(e){return ga(e)}function E(e){return Tt(e)}function U(e){return fe(e)}function dn(e){const t=ga(e)|0,n=Ss(new Array(t),0,t,null);return((s,o)=>{e:for(;;){const i=s,a=o;if(!yt(a)){bt(n,i,Tt(a)),s=i+1,o=fe(a);continue e}break}})(0,e),n}function qe(e,t,n){let r=t,s=n;for(;!yt(s);)r=e(r,E(s)),s=fe(s);return r}function Cs(e){return qe((t,n)=>Bn(n,t),ne(),e)}function kc(e,t,n){return _a(e,dn(t),n)}function Nc(e,t,n){return((s,o,i)=>{e:for(;;){const a=s,l=o,u=i;if(yt(u))return l;s=a+1,o=e(a,l,Tt(u)),i=fe(u);continue e}})(0,t,n)}function Mc(e,t,n,r){let s=t,o=n,i=r;for(;!yt(o)&&!yt(i);)s=e(s,Tt(o),Tt(i)),o=fe(o),i=fe(i);return s}function Sn(e,t){qe((n,r)=>{e(r)},void 0,t)}function Q(e,t){let n=t;for(let r=e.length-1;r>=0;r--)n=Bn(we(r,e),n);return n}function v(e){return Q(e,ne())}function Ec(e){let t,n;if(He(e))return v(e);if(e instanceof de)return e;{const r=ne();let s=r;const o=re(e);try{for(;o["System.Collections.IEnumerator.MoveNext"]();){const l=o["System.Collections.Generic.IEnumerator`1.get_Current"]();s=(t=s,n=new de(l,void 0),t.tail=n,n)}}finally{Y(o)}const i=s,a=ne();return i.tail=a,fe(r)}}function $c(e){const t=ne();let n=t;const r=i=>{n=qe((a,l)=>{const u=new de(l,void 0);return a.tail=u,u},n,i)};if(He(e))e.forEach(r);else if(e instanceof de)Sn(r,e);else{const i=re(e);try{for(;i["System.Collections.IEnumerator.MoveNext"]();)r(i["System.Collections.Generic.IEnumerator`1.get_Current"]())}finally{Y(i)}}const s=n,o=ne();return s.tail=o,fe(t)}function Fs(e,t){return qe((n,r)=>Bn(r,n),t,Cs(e))}function Tc(e,t){const n=ne(),r=Nc((o,i,a)=>{const l=new de(e(o,a),void 0);return i.tail=l,l},n,t),s=ne();return r.tail=s,fe(n)}function As(e,t){const n=ne(),r=qe((o,i)=>{const a=new de(e(i),void 0);return o.tail=a,a},n,t),s=ne();return r.tail=s,fe(n)}function Bc(e,t){return(r=>{e:for(;;){const s=r;if(yt(s))return;{const o=e(Tt(s));if(o==null){r=fe(s);continue e}else return o}}})(t)}function Ic(e,t){return((r,s)=>{e:for(;;){const o=r,i=s;if(yt(i))return;if(e(Tt(i)))return o;r=o+1,s=fe(i);continue e}})(0,t)}function Cn(e,t){return Ac(t,e)}function Vc(e,t){const n=ne(),r=qe((o,i)=>{if(e(i)){const a=new de(i,void 0);return o.tail=a,a}else return o},n,t),s=ne();return r.tail=s,fe(n)}function Lc(e,t){const n=ne(),r=ne(),s=n,o=qe((l,u)=>{let f,c;const p=l[0],m=l[1];return e(u)?[(f=new de(u,void 0),p.tail=f,f),m]:[p,(c=new de(u,void 0),m.tail=c,c)]},[s,r],t),i=ne();o[0].tail=i;const a=ne();return o[1].tail=a,[fe(s),fe(r)]}function Oc(e,t){const n=ne(),r=qe((o,i)=>{const a=e(i);if(a==null)return o;{const l=new de(C(a),void 0);return o.tail=l,l}},n,t),s=ne();return r.tail=s,fe(n)}function ba(e,t){return qe((n,r)=>n&&e(r),!0,t)}function Dc(e,t){const n=dn(t);return n.sort(e),v(n)}function Rc(e,t,n){return Dc((r,s)=>n.Compare(e(r),e(s)),t)}class Uc{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,s=this.addListener(n==null?t:()=>t(n));return{Dispose(){r.removeListener(s)}}}Dispose(){}}class fr extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,fr.prototype)}}class ks{static get maxTrampolineCallCount(){return 2e3}constructor(){this.callCount=0}incrementAndCheck(){return this.callCount++>ks.maxTrampolineCallCount}hijack(t){this.callCount=0,setTimeout(t,0)}}function st(e){return t=>{if(t.cancelToken.isCancelled)t.onCancel(new fr);else if(t.trampoline.incrementAndCheck())t.trampoline.hijack(()=>{try{e(t)}catch(n){t.onError(Zn(n))}});else try{e(t)}catch(n){t.onError(Zn(n))}}}function Pc(e,t){return st(n=>{e({onSuccess:r=>{try{t(r)(n)}catch(s){n.onError(Zn(s))}},onError:n.onError,onCancel:n.onCancel,cancelToken:n.cancelToken,trampoline:n.trampoline})})}function Hc(e){return st(t=>t.onSuccess(e))}class zc{Bind(t,n){return Pc(t,n)}Combine(t,n){return this.Bind(t,()=>n)}Delay(t){return st(n=>t()(n))}For(t,n){const r=t[Symbol.iterator]();let s=r.next();return this.While(()=>!s.done,this.Delay(()=>{const o=n(s.value);return s=r.next(),o}))}Return(t){return Hc(t)}ReturnFrom(t){return t}TryFinally(t,n){return st(r=>{t({onSuccess:s=>{n(),r.onSuccess(s)},onError:s=>{n(),r.onError(s)},onCancel:s=>{n(),r.onCancel(s)},cancelToken:r.cancelToken,trampoline:r.trampoline})})}TryWith(t,n){return st(r=>{t({onSuccess:r.onSuccess,onCancel:r.onCancel,cancelToken:r.cancelToken,trampoline:r.trampoline,onError:s=>{try{n(s)(r)}catch(o){r.onError(Zn(o))}}})})}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 st(t=>t.onSuccess(void 0))}}const V=new zc;function jc(e){return new ya(0,[e])}function Gc(e){return new ya(1,[e])}class ya extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Choice1Of2","Choice2Of2"]}}function Wc(e){return jc(e)}function qc(e){return Gc(e)}function Nr(e){}const Zc=new Uc;function Jc(e){return st(t=>{e({onSuccess:n=>t.onSuccess(Wc(n)),onError:n=>t.onSuccess(qc(n)),onCancel:t.onCancel,cancelToken:t.cancelToken,trampoline:t.trampoline})})}function Kc(e){return st(t=>e([t.onSuccess,t.onError,t.onCancel]))}function va(e){return st(t=>{let n;const r=setTimeout(()=>{t.cancelToken.removeListener(n),t.onSuccess(void 0)},e);n=t.cancelToken.addListener(()=>{clearTimeout(r),t.onCancel(new fr)})})}function Yc(e,t){return Xc(e,t)}function Qc(e,t){return Yc(e,t)}function Xc(e,t,n,r,s){typeof t!="function"&&(s=t,t=void 0);const o=new ks;e({onSuccess:t||Nr,onError:Nr,onCancel:Nr,cancelToken:s||Zc,trampoline:o})}class Ft extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class ed extends N{constructor(t,n){super(),this.tag=0,this.fields=[t,n]}cases(){return["Header"]}}class td extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Empty","Text","Binary","Form"]}}class hr extends L{constructor(t,n,r,s,o,i,a,l){super(),this.url=t,this.method=n,this.headers=r,this.withCredentials=s,this.overridenMimeType=o,this.overridenResponseType=i,this.timeout=a,this.content=l}}class Wt extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class xa extends L{constructor(t,n,r,s,o,i){super(),this.statusCode=t|0,this.responseText=n,this.responseType=r,this.responseUrl=s,this.responseHeaders=o,this.content=i}}function nd(e){throw new Error(e)}const rd="Enumeration already finished.",sd="Enumeration has not started. Call MoveNext.",Sa="The input sequence has an insufficient number of elements.",od="Reset is not supported on this enumerator.";function id(){throw new Error(od)}function Ns(){throw new Error(sd)}function qr(){throw new Error(rd)}class ad{constructor(t){this.f=t}toString(){const t=this;let n=0,r="seq [";const s=re(t);try{for(;n<4&&s["System.Collections.IEnumerator.MoveNext"]();)n>0&&(r=r+"; "),r=r+je(s["System.Collections.Generic.IEnumerator`1.get_Current"]()),n=n+1|0;return n===4&&(r=r+"; ..."),r+"]"}finally{Y(s)}}GetEnumerator(){return this.f()}[Symbol.iterator](){return or(re(this))}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}function ud(e){return new ad(e)}class ld{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"(){id()}Dispose(){this.dispose()}}function mr(e,t,n){return new ld(e,t,n)}function cd(e){let t,n,r=!1,s=!1,o;const i=()=>{if(s=!0,n!=null){const a=C(n);try{Y(a)}finally{n=void 0}}if(t!=null){const a=C(t);try{Y(a)}finally{t=void 0}}};return mr(()=>(r?s&&qr():Ns(),o!=null?C(o):qr()),()=>{let a;if(r||(r=!0),s)return!1;{let l;for(;l==null;){const u=t,f=n;if(u!=null)if(f!=null){const c=C(f);if(c["System.Collections.IEnumerator.MoveNext"]())o=Te(c["System.Collections.Generic.IEnumerator`1.get_Current"]()),l=!0;else try{Y(c)}finally{n=void 0}}else{const c=C(u);c["System.Collections.IEnumerator.MoveNext"]()?n=(a=c["System.Collections.Generic.IEnumerator`1.get_Current"](),re(a)):(i(),l=!1)}else t=re(e)}return C(l)}},()=>{s||i()})}function dd(e,t){return mr(()=>t["System.Collections.Generic.IEnumerator`1.get_Current"](),()=>t["System.Collections.IEnumerator.MoveNext"](),()=>{try{Y(t)}finally{}})}function Ca(e,t,n){let r=!1,s,o=Te(e());const i=()=>{if(o!=null){const l=C(o);try{n(l)}finally{o=void 0}}},a=()=>{try{i()}finally{s=void 0}};return mr(()=>(r||Ns(),s!=null?C(s):qr()),()=>{if(r||(r=!0),o!=null){const l=C(o);let u;try{u=t(l)}catch(f){throw a(),f}return u!=null?(s=u,!0):(a(),!1)}else return!1},i)}function fd(e,t){let n,r=t;return mr(()=>{if(n!=null){const s=C(n)[0];return C(n)[1],s}else return Ns()},()=>(n=e(r),n!=null?(C(n)[0],r=C(n)[1],!0):!1),()=>{})}function hd(e,t){t==null&&nd(e)}function fn(e){return ud(e)}function Bt(e){return hd("source",e),re(e)}function M(e){return fn(()=>re(e()))}function Fa(e){return fn(()=>cd(e))}function md(e,t){return fn(()=>fd(e,t))}function ie(){return M(()=>new Array(0))}function $(e){return M(()=>yc(e))}function pd(e){return e instanceof de?dn(e):Array.from(e)}function ee(e){return He(e)?v(e):e instanceof de?e:Ec(e)}function wd(e,t,n){return fn(()=>Ca(e,t,n))}function _d(e,t,n){return fn(()=>{let r=-1;return Ca(e,s=>(r=r+1|0,t(r,s)),n)})}function K(e,t){return Fa([e,t])}function gd(e,t,n){const r=Bt(t);try{const s=Bt(n);try{let o=0,i=r["System.Collections.IEnumerator.MoveNext"](),a=s["System.Collections.IEnumerator.MoveNext"]();for(;o===0&&i&&a;)o=e(r["System.Collections.Generic.IEnumerator`1.get_Current"](),s["System.Collections.Generic.IEnumerator`1.get_Current"]())|0,o===0&&(i=r["System.Collections.IEnumerator.MoveNext"](),a=s["System.Collections.IEnumerator.MoveNext"]());return(o!==0?o:i?1:a?-1:0)|0}finally{Y(s)}}finally{Y(r)}}function Dt(e,t,n){const r=Bt(t);try{let s=!1;for(;!s&&r["System.Collections.IEnumerator.MoveNext"]();)s=n.Equals(e,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return s}finally{Y(r)}}function Aa(e,t,n){const r=Bt(n);try{let s=t;for(;r["System.Collections.IEnumerator.MoveNext"]();)s=e(s,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return s}finally{Y(r)}}function Ms(e,t){Aa((n,r)=>{e(r)},void 0,t)}function Ue(e,t){return wd(()=>Bt(t),n=>n["System.Collections.IEnumerator.MoveNext"]()?Te(e(n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{Y(n)})}function bd(e){return M(()=>vc(pd(e)))}function yd(e,t){return fn(()=>{const n=Bt(t);try{for(let r=1;r<=e;r++)if(!n["System.Collections.IEnumerator.MoveNext"]())throw new Error(Sa+"\\nParameter name: source");return dd(()=>{},n)}catch(r){throw Y(n),r}})}function vd(e,t){return _d(()=>Bt(t),(n,r)=>{if(n<e){if(r["System.Collections.IEnumerator.MoveNext"]())return Te(r["System.Collections.Generic.IEnumerator`1.get_Current"]());throw new Error(Sa+"\\nParameter name: source")}else return},n=>{Y(n)})}function xd(e,t){return M(()=>Fa(Ue(e,t)))}class ka{constructor(t,n){this.k=t,this.v=n}}function er(e,t){return new ka(e,t)}function _e(e){return e.k}function Me(e){return e.v}class se extends ka{constructor(t,n,r,s,o){super(t,n),this.left=r,this.right=s,this.h=o|0}}function jn(e,t,n,r,s){return new se(e,t,n,r,s)}function me(e){return e.left}function pe(e){return e.right}function Nt(e){return e.h}function Na(e,t){e:for(;;){const n=e,r=t;if(r!=null){const s=C(r);if(s instanceof se){const o=s;e=Na(n+1,me(o)),t=pe(o);continue e}else return n+1|0}else return n|0}}function Sd(e){return Na(0,e)}function Ve(e,t,n,r){let s,o,i;const a=e;if(a!=null){const c=C(a);i=c instanceof se?(s=c,Nt(s)):1}else i=0;let l;const u=r;if(u!=null){const c=C(u);l=c instanceof se?(o=c,Nt(o)):1}else l=0;const f=(i<l?l:i)|0;return f===0?er(t,n):jn(t,n,e,r,f+1)}function Co(e,t,n,r){let s,o,i,a,l,u,f,c,p;const m=e;if(m!=null){const g=C(m);p=g instanceof se?(s=g,Nt(s)):1}else p=0;let w;const b=r;if(b!=null){const g=C(b);w=g instanceof se?(o=g,Nt(o)):1}else w=0;if(w>p+2){const g=C(r);if(g instanceof se){const _=g;if(i=me(_),(i!=null?(a=C(i),a instanceof se?(l=a,Nt(l)):1):0)>p+1){const F=C(me(_));if(F instanceof se){const x=F;return Ve(Ve(e,t,n,me(x)),_e(x),Me(x),Ve(pe(x),_e(_),Me(_),pe(_)))}else throw new Error("internal error: Map.rebalance")}else return Ve(Ve(e,t,n,me(_)),_e(_),Me(_),pe(_))}else throw new Error("internal error: Map.rebalance")}else if(p>w+2){const g=C(e);if(g instanceof se){const _=g;if(u=pe(_),(u!=null?(f=C(u),f instanceof se?(c=f,Nt(c)):1):0)>w+1){const F=C(pe(_));if(F instanceof se){const x=F;return Ve(Ve(me(_),_e(_),Me(_),me(x)),_e(x),Me(x),Ve(pe(x),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return Ve(me(_),_e(_),Me(_),Ve(pe(_),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return Ve(e,t,n,r)}function rn(e,t,n,r){if(r!=null){const s=C(r),o=e.Compare(t,_e(s))|0;if(s instanceof se){const i=s;return o<0?Co(rn(e,t,n,me(i)),_e(i),Me(i),pe(i)):o===0?jn(t,n,me(i),pe(i),Nt(i)):Co(me(i),_e(i),Me(i),rn(e,t,n,pe(i)))}else return o<0?jn(t,n,void 0,r,2):o===0?er(t,n):jn(t,n,r,void 0,2)}else return er(t,n)}function Ma(e,t,n){e:for(;;){const r=e,s=t,o=n;if(o!=null){const i=C(o),a=r.Compare(s,_e(i))|0;if(a===0)return Te(Me(i));if(i instanceof se){const l=i;e=r,t=s,n=a<0?me(l):pe(l);continue e}else return}else return}}function Cd(e,t,n){const r=Ma(e,t,n);if(r==null)throw new Error;return C(r)}function Fd(e,t,n){e:for(;;){const r=e,s=t,o=n;if(o!=null){const i=C(o),a=r.Compare(s,_e(i))|0;if(i instanceof se){const l=i;if(a<0){e=r,t=s,n=me(l);continue e}else{if(a===0)return!0;e=r,t=s,n=pe(l);continue e}}else return a===0}else return!1}}function Ea(e,t){e:for(;;){const n=e,r=t;if(r!=null){const s=C(r);if(s instanceof se){const o=s;Ea(n,me(o)),n(_e(o),Me(o)),e=n,t=pe(o);continue e}else n(_e(s),Me(s))}break}}function Ad(e,t){Ea(e,t)}function kd(e,t,n){let r=n;Ad((s,o)=>{bt(t,r,[s,o]),r=r+1|0},e)}function Nd(e,t){return qe((n,r)=>rn(e,r[0],r[1],n),void 0,t)}function Md(e,t,n){e:for(;;){const r=e,s=t,o=n;if(o["System.Collections.IEnumerator.MoveNext"]()){const i=o["System.Collections.Generic.IEnumerator`1.get_Current"]();e=r,t=rn(r,i[0],i[1],s),n=o;continue e}else return s}}function Ed(e,t){let n=void 0;for(let r=0;r<=t.length-1;r++){const s=we(r,t);n=rn(e,s[0],s[1],n)}return n}function $a(e,t){if(He(t))return Ed(e,t);if(t instanceof de)return Nd(e,t);{const n=re(t);try{return Md(e,void 0,n)}finally{Y(n)}}}class $d extends L{constructor(t,n){super(),this.stack=t,this.started=n}}function Ta(e){e:for(;;){const t=e;if(P(t))return he();{const n=U(t),r=E(t);if(r!=null){const s=C(r);if(s instanceof se){const o=s;e=Q([me(o),er(_e(o),Me(o)),pe(o)],n);continue e}else return t}else{e=n;continue e}}}}function Fo(e){return new $d(Ta(T(e)),!1)}function Td(){throw new Error("enumeration not started")}function Bd(){throw new Error("enumeration already finished")}function Ao(e){if(e.started){const t=e.stack;if(P(t))return Bd();if(E(t)!=null){const n=C(E(t));if(n instanceof se)throw new Error("Please report error: Map iterator, unexpected stack for current");return[_e(n),Me(n)]}else throw new Error("Please report error: Map iterator, unexpected stack for current")}else return Td()}function Id(e){if(e.started){const t=e.stack;if(P(t))return!1;if(E(t)!=null){if(C(E(t))instanceof se)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=Ta(U(t)),!P(e.stack)}else throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}else return e.started=!0,!P(e.stack)}function ko(e){let t=Fo(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return Ao(t)},"System.Collections.IEnumerator.get_Current"(){return Ao(t)},"System.Collections.IEnumerator.MoveNext"(){return Id(t)},"System.Collections.IEnumerator.Reset"(){t=Fo(e)},Dispose(){}}}class tr{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return Dd(this)|0}Equals(t){const n=this;if(t instanceof tr){const r=t,s=re(n);try{const o=re(r);try{const i=()=>{const a=s["System.Collections.IEnumerator.MoveNext"]();if(a===o["System.Collections.IEnumerator.MoveNext"]())if(a){const l=s["System.Collections.Generic.IEnumerator`1.get_Current"](),u=o["System.Collections.Generic.IEnumerator`1.get_Current"]();return ce(l[0],u[0])&&ce(l[1],u[1])?i():!1}else return!0;else return!1};return i()}finally{Y(o)}}finally{Y(s)}}else return!1}toString(){return"map ["+D("; ",Ue(n=>Zl("({0}, {1})",n[0],n[1]),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(){const t=this;return Array.from(t)}GetEnumerator(){return ko(this.tree)}[Symbol.iterator](){return or(re(this))}"System.Collections.IEnumerable.GetEnumerator"(){return ko(this.tree)}CompareTo(t){const n=this;if(t instanceof tr)return gd((s,o)=>{const i=n.comparer.Compare(s[0],o[0])|0;return(i!==0?i:Be(s[1],o[1]))|0},n,t)|0;throw new Error("not comparable\\nParameter name: obj")}"System.Collections.Generic.ICollection`1.Add2B595"(t){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Clear"(){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Remove2B595"(t){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Contains2B595"(t){const n=this;return Mo(n,t[0])&&ce(No(n,t[0]),t[1])}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){kd(this.tree,t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return Mr(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return Mr(this)|0}get size(){return Mr(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 No(this,t)}has(t){return Mo(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;Ms(s=>{t(s[1],s[0],r)},r)}}function pr(e,t){return new tr(e,t)}function Vd(e){return pr(e,void 0)}function Ld(e,t,n){return pr(e.comparer,rn(e.comparer,t,n,e.tree))}function No(e,t){return Cd(e.comparer,t,e.tree)}function Mr(e){return Sd(e.tree)}function Mo(e,t){return Fd(e.comparer,t,e.tree)}function Od(e,t){return Ma(e.comparer,t,e.tree)}function Dd(e){const t=(s,o)=>(s<<1)+o+631;let n=0;const r=re(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const s=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n=t(n,ut(s[0]))|0,n=t(n,ut(s[1]))|0}}finally{Y(r)}return n|0}function Rd(e,t,n){return Ld(n,e,t)}function Ud(e,t){return Od(t,e)}function Pd(e,t){return pr(t,$a(t,e))}function Hd(e,t){return pr(t,$a(t,e))}function Ba(e){return Vd(e)}function Rt(e){return new ed("Authorization",e)}const St=new hr("",new Ft(0,[]),he(),!1,void 0,void 0,void 0,new td(0,[]));new xa(0,"","","",Ba({Compare:ir}),new Wt(0,[""]));function Eo(e,t){return Jl(t)?new Array(0):Yl(t,[e],void 0,0)}function zd(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 Ut(e){return new hr(e,St.method,St.headers,St.withCredentials,St.overridenMimeType,St.overridenResponseType,St.timeout,St.content)}function Pt(e,t){return new hr(t.url,e,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function Ht(e,t){return new hr(t.url,t.method,Fs(t.headers,T(e)),t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function zt(e){return Kc(t=>{const n=new XMLHttpRequest;n.open(zd(e.method),e.url),n.onreadystatechange=()=>{let l,u,f,c,p,m,w;n.readyState===4&&t[0]((l=(u=n.responseType,u===""||u==="text"?n.responseText:""),f=n.status|0,c=n.responseType,p=(m=n.responseType,m===""?new Wt(0,[n.responseText]):m==="text"?new Wt(0,[n.responseText]):m==="arraybuffer"?new Wt(2,[n.response]):m==="blob"?new Wt(1,[n.response]):new Wt(3,[n.response])),w=Hd(Sc(b=>{const g=v(Eo(":",b));if(!P(g))return[E(g).toLocaleLowerCase(),D(":",U(g)).trim()]},Eo(`\r
|
|
4
|
-
`,n.getAllResponseHeaders())),{Compare:ir}),new xa(f,l,c,n.responseURL,w,p)))};const r=re(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{Y(r)}n.withCredentials=e.withCredentials;const s=e.overridenMimeType;if(s!=null){const l=s;n.overrideMimeType(l)}const o=e.overridenResponseType;if(o!=null)switch(o.tag){case 1:{n.responseType="blob";break}case 2:{n.responseType="arraybuffer";break}default:n.responseType="text"}const i=e.timeout;if(i!=null){const l=i|0;n.timeout=l|0}const a=e.content;switch(a.tag){case 1:{n.send(Te(a.fields[0]));break}case 3:{n.send(Te(a.fields[0]));break}case 2:{n.send(Te(a.fields[0]));break}default:n.send()}})}function jd(e){return new d(0,[e])}function Ia(e){return new d(1,[e])}class d extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Ok","Error"]}}function Xe(e,t){return t.tag===0?jd(e(t.fields[0])):Ia(t.fields[0])}function Gd(e,t){return t.tag===0?e(t.fields[0]):Ia(t.fields[0])}class k extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class At extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["PascalCase","CamelCase","SnakeCase"]}}function $o(e){return e.slice(void 0,1).toLowerCase()+e.slice(1,e.length)}function Wd(e,t){switch(e.tag){case 2:return bs($o(t),"[A-Z]","_$0").toLowerCase();case 0:return t;default:return $o(t)}}const qd=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,To=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,Zd=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function Jd(e){function t(r){return r.replace(To,"$1-$2-$3-$4-$5")}const n=e.trim().toLowerCase();if(qd.test(n))return Ql(n,"{","}","(",")");if(To.test(n))return t(n);if(Zd.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 Kd(e,t){try{return t.contents=Jd(e),!0}catch{return!1}}function Er(){let e="";for(let t=0;t++<36;)e+=t*51&52?(t^15?8^Math.random()*(t^20?16:4):4).toString(16):"-";return e}var Zr;(function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"})(Zr||(Zr={}));function Yd(e,t){const[,n,r,s]=e;return{sign:n||"",prefix:r||"",digits:s,radix:t}}function Bo(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 Qd(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 Xd(e,t){if(t&Zr.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 ef(e,t,n){const s=/^\s*([\+\-])?(0[xXoObB])?([0-9a-fA-F]+)\s*$/.exec(e.replace(/_/g,""));if(s!=null){const[,,o,i]=s;if(n=n||Xd(o,t),!Qd(n).test(i))return Yd(s,n)}return null}function tf(e,t,n,r,s){const o=ef(e,t,s);if(o!=null){let i=Number.parseInt(o.sign+o.digits,o.radix);if(!Number.isNaN(i)){const[a,l]=Bo(!0,r);!n&&o.radix!==10&&i>=a&&i<=l&&(i=i<<32-r>>32-r);const[u,f]=Bo(n,r);if(i>=u&&i<=f)return i}}throw new Error(`The input string ${e} was not in a correct format.`)}function hn(e,t,n,r,s){try{return s.contents=tf(e,t,n,r),!0}catch{return!1}}function Va(e,t){nf(t);const n=new Date(e);return n.offset=t??new Date().getTimezoneOffset()*-6e4,n}function nf(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 rf(){return Va(-621355968e5,0)}function sf(e){const[t,n]=oa(e),r=n==null?t.getTimezoneOffset()*-6e4:n==="Z"?0:n*6e4;return Va(t.getTime(),r)}function of(e,t){try{return t.contents=sf(e),!0}catch{return!1}}function Io(e=0,t=0,n=0,r=0,s=0){switch(arguments.length){case 1:return af(arguments[0]);case 3:e=0,t=arguments[0],n=arguments[1],r=arguments[2],s=0;break}return e*864e5+t*36e5+n*6e4+r*1e3+s}function af(e){return Number(BigInt(e)/10000n)}function uf(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 Io(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 s=0,o=0,i=0;const a=r[1]!=null&&r[1]==="-"?-1:1,l=+r[4],u=+r[5];if(r[3]!=null&&(s=+r[3]),r[7]!=null&&(i=+r[7]),r[8]!=null)switch(r[8].length){case 1:o=+r[8]*100;break;case 2:o=+r[8]*10;break;case 3:o=+r[8];break;case 4:o=+r[8]/10;break;case 5:o=+r[8]/100;break;case 6:o=+r[8]/1e3;break;case 7:o=+r[8]/1e4;break;default:throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}return a*Io(s,l,u,i,o)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}function lf(e,t){try{return t.contents=uf(e),!0}catch{return!1}}class La{constructor(t){this.k=t}}function Fe(e){return new La(e)}function B(e){return e.k}class H extends La{constructor(t,n,r,s){super(t),this.left=n,this.right=r,this.h=s|0}}function Ae(e,t,n,r){return new H(e,t,n,r)}function q(e){return e.left}function j(e){return e.right}function Zt(e){return e.h}function Oa(e,t){e:for(;;){const n=e,r=t;if(n!=null){const s=C(n);if(s instanceof H){const o=s;e=q(o),t=Oa(j(o),r+1);continue e}else return r+1|0}else return r|0}}function cf(e){return Oa(e,0)}function Le(e,t,n){let r,s,o;const i=e;if(i!=null){const f=C(i);o=f instanceof H?(r=f,Zt(r)):1}else o=0;let a;const l=n;if(l!=null){const f=C(l);a=f instanceof H?(s=f,Zt(s)):1}else a=0;const u=(o<a?a:o)|0;return u===0?Fe(t):Ae(t,e,n,u+1)}function Vo(e,t,n){let r,s,o,i,a,l,u,f,c;const p=e;if(p!=null){const b=C(p);c=b instanceof H?(r=b,Zt(r)):1}else c=0;let m;const w=n;if(w!=null){const b=C(w);m=b instanceof H?(s=b,Zt(s)):1}else m=0;if(m>c+2){const b=C(n);if(b instanceof H){const g=b;if(o=q(g),(o!=null?(i=C(o),i instanceof H?(a=i,Zt(a)):1):0)>c+1){const _=C(q(g));if(_ instanceof H){const F=_;return Le(Le(e,t,q(F)),B(F),Le(j(F),B(g),j(g)))}else throw new Error("internal error: Set.rebalance")}else return Le(Le(e,t,q(g)),B(g),j(g))}else throw new Error("internal error: Set.rebalance")}else if(c>m+2){const b=C(e);if(b instanceof H){const g=b;if(l=j(g),(l!=null?(u=C(l),u instanceof H?(f=u,Zt(f)):1):0)>m+1){const _=C(j(g));if(_ instanceof H){const F=_;return Le(Le(q(g),B(g),q(F)),B(F),Le(j(F),t,n))}else throw new Error("internal error: Set.rebalance")}else return Le(q(g),B(g),Le(j(g),t,n))}else throw new Error("internal error: Set.rebalance")}else return Le(e,t,n)}function sn(e,t,n){if(n!=null){const r=C(n),s=e.Compare(t,B(r))|0;if(r instanceof H){const o=r;return s<0?Vo(sn(e,t,q(o)),B(o),j(o)):s===0?n:Vo(q(o),B(o),sn(e,t,j(o)))}else{const o=e.Compare(t,B(r))|0;return o<0?Ae(t,void 0,n,2):o===0?n:Ae(t,n,void 0,2)}}else return Fe(t)}function Da(e,t,n){e:for(;;){const r=e,s=t,o=n;if(o!=null){const i=C(o),a=r.Compare(s,B(i))|0;if(i instanceof H){const l=i;if(a<0){e=r,t=s,n=q(l);continue e}else{if(a===0)return!0;e=r,t=s,n=j(l);continue e}}else return a===0}else return!1}}function Ra(e,t){e:for(;;){const n=e,r=t;if(r!=null){const s=C(r);if(s instanceof H){const o=s;Ra(n,q(o)),n(B(o)),e=n,t=j(o);continue e}else n(B(s))}break}}class df extends L{constructor(t,n){super(),this.stack=t,this.started=n}}function Ua(e){e:for(;;){const t=e;if(P(t))return he();{const n=E(t),r=U(t);if(n!=null){const s=C(n);if(s instanceof H){const o=s;e=Q([q(o),Fe(B(o)),j(o)],r);continue e}else return t}else{e=r;continue e}}}}function Lo(e){return new df(Ua(T(e)),!1)}function ff(){throw new Error("Enumeration not started")}function hf(){throw new Error("Enumeration already started")}function Oo(e){if(e.started){const t=e.stack;if(P(t))return hf();if(E(t)!=null){const n=C(E(t));return B(n)}else throw new Error("Please report error: Set iterator, unexpected stack for current")}else return ff()}function mf(e){if(e.started){const t=e.stack;if(P(t))return!1;if(E(t)!=null){if(C(E(t))instanceof H)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=Ua(U(t)),!P(e.stack)}else throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}else return e.started=!0,!P(e.stack)}function Do(e){let t=Lo(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return Oo(t)},"System.Collections.IEnumerator.get_Current"(){return Oo(t)},"System.Collections.IEnumerator.MoveNext"(){return mf(t)},"System.Collections.IEnumerator.Reset"(){t=Lo(e)},Dispose(){}}}function pf(e,t,n){e:for(;;){const r=e,s=t,o=n;if(P(s))return P(o)?0:-1;if(P(o))return 1;if(E(o)!=null)if(E(s)!=null){const i=C(E(s)),a=C(E(o));if(i instanceof H){const l=i;if(q(l)==null)if(a instanceof H){const u=a;if(q(u)==null){const f=r.Compare(B(l),B(u))|0;if(f!==0)return f|0;e=r,t=Ne(j(l),U(s)),n=Ne(j(u),U(o));continue e}else{let f,c,p,m,w;switch(P(s)?P(o)?f=2:E(o)!=null?(f=1,m=U(o),w=C(E(o))):f=2:E(s)!=null?(f=0,c=U(s),p=C(E(s))):P(o)?f=2:E(o)!=null?(f=1,m=U(o),w=C(E(o))):f=2,f){case 0:if(p instanceof H){const b=p;e=r,t=Q([q(b),Ae(B(b),void 0,j(b),0)],c),n=o;continue e}else{e=r,t=Q([void 0,Fe(B(p))],c),n=o;continue e}case 1:if(w instanceof H){const b=w;e=r,t=s,n=Q([q(b),Ae(B(b),void 0,j(b),0)],m);continue e}else{e=r,t=s,n=Q([void 0,Fe(B(w))],m);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const u=r.Compare(B(l),B(a))|0;if(u!==0)return u|0;e=r,t=Ne(j(l),U(s)),n=Ne(void 0,U(o));continue e}else{let u,f,c,p,m;switch(P(s)?P(o)?u=2:E(o)!=null?(u=1,p=U(o),m=C(E(o))):u=2:E(s)!=null?(u=0,f=U(s),c=C(E(s))):P(o)?u=2:E(o)!=null?(u=1,p=U(o),m=C(E(o))):u=2,u){case 0:if(c instanceof H){const w=c;e=r,t=Q([q(w),Ae(B(w),void 0,j(w),0)],f),n=o;continue e}else{e=r,t=Q([void 0,Fe(B(c))],f),n=o;continue e}case 1:if(m instanceof H){const w=m;e=r,t=s,n=Q([q(w),Ae(B(w),void 0,j(w),0)],p);continue e}else{e=r,t=s,n=Q([void 0,Fe(B(m))],p);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else if(a instanceof H){const l=a;if(q(l)==null){const u=r.Compare(B(i),B(l))|0;if(u!==0)return u|0;e=r,t=Ne(void 0,U(s)),n=Ne(j(l),U(o));continue e}else{let u,f,c,p,m;switch(P(s)?P(o)?u=2:E(o)!=null?(u=1,p=U(o),m=C(E(o))):u=2:E(s)!=null?(u=0,f=U(s),c=C(E(s))):P(o)?u=2:E(o)!=null?(u=1,p=U(o),m=C(E(o))):u=2,u){case 0:if(c instanceof H){const w=c;e=r,t=Q([q(w),Ae(B(w),void 0,j(w),0)],f),n=o;continue e}else{e=r,t=Q([void 0,Fe(B(c))],f),n=o;continue e}case 1:if(m instanceof H){const w=m;e=r,t=s,n=Q([q(w),Ae(B(w),void 0,j(w),0)],p);continue e}else{e=r,t=s,n=Q([void 0,Fe(B(m))],p);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const l=r.Compare(B(i),B(a))|0;if(l!==0)return l|0;e=r,t=U(s),n=U(o);continue e}}else{C(E(o));let i,a,l,u,f;switch(P(s)?P(o)?i=2:E(o)!=null?(i=1,u=U(o),f=C(E(o))):i=2:E(s)!=null?(i=0,a=U(s),l=C(E(s))):P(o)?i=2:E(o)!=null?(i=1,u=U(o),f=C(E(o))):i=2,i){case 0:if(l instanceof H){const c=l;e=r,t=Q([q(c),Ae(B(c),void 0,j(c),0)],a),n=o;continue e}else{e=r,t=Q([void 0,Fe(B(l))],a),n=o;continue e}case 1:if(f instanceof H){const c=f;e=r,t=s,n=Q([q(c),Ae(B(c),void 0,j(c),0)],u);continue e}else{e=r,t=s,n=Q([void 0,Fe(B(f))],u);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else if(E(s)!=null){C(E(s));let i,a,l,u,f;switch(P(s)?P(o)?i=2:E(o)!=null?(i=1,u=U(o),f=C(E(o))):i=2:E(s)!=null?(i=0,a=U(s),l=C(E(s))):P(o)?i=2:E(o)!=null?(i=1,u=U(o),f=C(E(o))):i=2,i){case 0:if(l instanceof H){const c=l;e=r,t=Q([q(c),Ae(B(c),void 0,j(c),0)],a),n=o;continue e}else{e=r,t=Q([void 0,Fe(B(l))],a),n=o;continue e}case 1:if(f instanceof H){const c=f;e=r,t=s,n=Q([q(c),Ae(B(c),void 0,j(c),0)],u);continue e}else{e=r,t=s,n=Q([void 0,Fe(B(f))],u);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else{e=r,t=U(s),n=U(o);continue e}}}function Ro(e,t,n){return t==null?n==null?0:-1:n==null?1:pf(e,T(t),T(n))|0}function wf(e,t,n){let r=n;Ra(s=>{bt(t,r,s),r=r+1|0},e)}function _f(e,t,n){e:for(;;){const r=e,s=t,o=n;if(o["System.Collections.IEnumerator.MoveNext"]()){e=r,t=sn(r,o["System.Collections.Generic.IEnumerator`1.get_Current"](),s),n=o;continue e}else return s}}function gf(e,t){return dr((n,r)=>sn(e,r,n),void 0,t)}function bf(e,t){return qe((n,r)=>sn(e,r,n),void 0,t)}function Pa(e,t){if(He(t))return gf(e,t);if(t instanceof de)return bf(e,t);{const n=re(t);try{return _f(e,void 0,n)}finally{Y(n)}}}class Es{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return xf(this)|0}Equals(t){let n;const r=this;return t instanceof Es&&(n=t,Ro(Qt(r),De(r),De(n))===0)}toString(){return"set ["+D("; ",Ue(n=>je(n),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(){const t=this;return Array.from(t)}CompareTo(t){const n=this;return Ro(Qt(n),De(n),De(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 Da(Qt(n),t,De(n))}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){wf(De(this),t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return $r(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return $r(this)|0}GetEnumerator(){return Do(De(this))}[Symbol.iterator](){return or(re(this))}"System.Collections.IEnumerable.GetEnumerator"(){return Do(De(this))}get size(){return $r(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 Ha(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;Ms(s=>{t(s,s,r)},r)}}function wr(e,t){return new Es(e,t)}function Qt(e){return e.comparer}function De(e){return e.tree}function yf(e){return wr(e,void 0)}function vf(e,t){return wr(Qt(e),sn(Qt(e),t,De(e)))}function $r(e){return cf(De(e))}function Ha(e,t){return Da(Qt(e),t,De(e))}function xf(e){let t=0;const n=re(e);try{for(;n["System.Collections.IEnumerator.MoveNext"]();){const r=n["System.Collections.Generic.IEnumerator`1.get_Current"]();t=(t<<1)+ut(r)+631|0}}finally{Y(n)}return Math.abs(t)|0}function Jr(e,t){return Ha(t,e)}function Sf(e,t){return vf(t,e)}function Cf(e){return yf(e)}function Ff(e,t){return wr(t,Pa(t,e))}function Af(e,t){return wr(t,Pa(t,e))}function wn(e,t,n){try{return"Expecting "+e+" but instead got:"+(n?`
|
|
1
|
+
var Jn,L,Xi,Gt,No,ea,fs,Es,ms,hs,ta,Un={},na=[],Vl=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Er=Array.isArray;function gt(e,t){for(var n in t)e[n]=t[n];return e}function ra(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function m(e,t,n){var r,s,o,i={};for(o in t)o=="key"?r=t[o]:o=="ref"?s=t[o]:i[o]=t[o];if(arguments.length>2&&(i.children=arguments.length>3?Jn.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(o in e.defaultProps)i[o]===void 0&&(i[o]=e.defaultProps[o]);return On(e,i,r,s,null)}function On(e,t,n,r,s){var o={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:s??++Xi,__i:-1,__u:0};return s==null&&L.vnode!=null&&L.vnode(o),o}function sa(){return{current:null}}function Ae(e){return e.children}function Xe(e,t){this.props=e,this.context=t}function pn(e,t){if(t==null)return e.__?pn(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"?pn(e):null}function oa(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 oa(e)}}function ps(e){(!e.__d&&(e.__d=!0)&&Gt.push(e)&&!gr.__r++||No!==L.debounceRendering)&&((No=L.debounceRendering)||ea)(gr)}function gr(){var e,t,n,r,s,o,i,a;for(Gt.sort(fs);e=Gt.shift();)e.__d&&(t=Gt.length,r=void 0,o=(s=(n=e).__v).__e,i=[],a=[],n.__P&&((r=gt({},s)).__v=s.__v+1,L.vnode&&L.vnode(r),Ms(n.__P,r,s,n.__n,n.__P.namespaceURI,32&s.__u?[o]:null,i,o??pn(s),!!(32&s.__u),a),r.__v=s.__v,r.__.__k[r.__i]=r,ua(i,r,a),r.__e!=o&&oa(r)),Gt.length>t&&Gt.sort(fs));gr.__r=0}function ia(e,t,n,r,s,o,i,a,l,u,f){var c,p,h,w,g,b=r&&r.__k||na,_=t.length;for(n.__d=l,Ll(n,t,b),l=n.__d,c=0;c<_;c++)(h=n.__k[c])!=null&&(p=h.__i===-1?Un:b[h.__i]||Un,h.__i=c,Ms(e,h,p,s,o,i,a,l,u,f),w=h.__e,h.ref&&p.ref!=h.ref&&(p.ref&&Ts(p.ref,null,h),f.push(h.ref,h.__c||w,h)),g==null&&w!=null&&(g=w),65536&h.__u||p.__k===h.__k?l=aa(h,l,e):typeof h.type=="function"&&h.__d!==void 0?l=h.__d:w&&(l=w.nextSibling),h.__d=void 0,h.__u&=-196609);n.__d=l,n.__e=g}function Ll(e,t,n){var r,s,o,i,a,l=t.length,u=n.length,f=u,c=0;for(e.__k=[],r=0;r<l;r++)(s=t[r])!=null&&typeof s!="boolean"&&typeof s!="function"?(i=r+c,(s=e.__k[r]=typeof s=="string"||typeof s=="number"||typeof s=="bigint"||s.constructor==String?On(null,s,null,null,null):Er(s)?On(Ae,{children:s},null,null,null):s.constructor===void 0&&s.__b>0?On(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):s).__=e,s.__b=e.__b+1,o=null,(a=s.__i=Ol(s,n,i,f))!==-1&&(f--,(o=n[a])&&(o.__u|=131072)),o==null||o.__v===null?(a==-1&&c--,typeof s.type!="function"&&(s.__u|=65536)):a!==i&&(a==i-1?c--:a==i+1?c++:(a>i?c--:c++,s.__u|=65536))):s=e.__k[r]=null;if(f)for(r=0;r<u;r++)(o=n[r])!=null&&!(131072&o.__u)&&(o.__e==e.__d&&(e.__d=pn(o)),la(o,o))}function aa(e,t,n){var r,s;if(typeof e.type=="function"){for(r=e.__k,s=0;r&&s<r.length;s++)r[s]&&(r[s].__=e,t=aa(r[s],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=pn(e)),n.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType===8);return t}function St(e,t){return t=t||[],e==null||typeof e=="boolean"||(Er(e)?e.some(function(n){St(n,t)}):t.push(e)),t}function Ol(e,t,n,r){var s=e.key,o=e.type,i=n-1,a=n+1,l=t[n];if(l===null||l&&s==l.key&&o===l.type&&!(131072&l.__u))return n;if(r>(l!=null&&!(131072&l.__u)?1:0))for(;i>=0||a<t.length;){if(i>=0){if((l=t[i])&&!(131072&l.__u)&&s==l.key&&o===l.type)return i;i--}if(a<t.length){if((l=t[a])&&!(131072&l.__u)&&s==l.key&&o===l.type)return a;a++}}return-1}function ko(e,t,n){t[0]==="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||Vl.test(t)?n:n+"px"}function ir(e,t,n,r,s){var o;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||ko(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||ko(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")o=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e||t==="onFocusOut"||t==="onFocusIn"?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=n,n?r?n.u=r.u:(n.u=Es,e.addEventListener(t,o?hs:ms,o)):e.removeEventListener(t,o?hs:ms,o);else{if(s=="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 Eo(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=Es++;else if(t.t<n.u)return;return n(L.event?L.event(t):t)}}}function Ms(e,t,n,r,s,o,i,a,l,u){var f,c,p,h,w,g,b,_,x,v,Y,ce,We,Pt,Rt,Nt,Se=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(l=!!(32&n.__u),o=[a=t.__e=n.__e]),(f=L.__b)&&f(t);e:if(typeof Se=="function")try{if(_=t.props,x="prototype"in Se&&Se.prototype.render,v=(f=Se.contextType)&&r[f.__c],Y=f?v?v.props.value:f.__:r,n.__c?b=(c=t.__c=n.__c).__=c.__E:(x?t.__c=c=new Se(_,Y):(t.__c=c=new Xe(_,Y),c.constructor=Se,c.render=Rl),v&&v.sub(c),c.props=_,c.state||(c.state={}),c.context=Y,c.__n=r,p=c.__d=!0,c.__h=[],c._sb=[]),x&&c.__s==null&&(c.__s=c.state),x&&Se.getDerivedStateFromProps!=null&&(c.__s==c.state&&(c.__s=gt({},c.__s)),gt(c.__s,Se.getDerivedStateFromProps(_,c.__s))),h=c.props,w=c.state,c.__v=t,p)x&&Se.getDerivedStateFromProps==null&&c.componentWillMount!=null&&c.componentWillMount(),x&&c.componentDidMount!=null&&c.__h.push(c.componentDidMount);else{if(x&&Se.getDerivedStateFromProps==null&&_!==h&&c.componentWillReceiveProps!=null&&c.componentWillReceiveProps(_,Y),!c.__e&&(c.shouldComponentUpdate!=null&&c.shouldComponentUpdate(_,c.__s,Y)===!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(or){or&&(or.__=t)}),ce=0;ce<c._sb.length;ce++)c.__h.push(c._sb[ce]);c._sb=[],c.__h.length&&i.push(c);break e}c.componentWillUpdate!=null&&c.componentWillUpdate(_,c.__s,Y),x&&c.componentDidUpdate!=null&&c.__h.push(function(){c.componentDidUpdate(h,w,g)})}if(c.context=Y,c.props=_,c.__P=e,c.__e=!1,We=L.__r,Pt=0,x){for(c.state=c.__s,c.__d=!1,We&&We(t),f=c.render(c.props,c.state,c.context),Rt=0;Rt<c._sb.length;Rt++)c.__h.push(c._sb[Rt]);c._sb=[]}else do c.__d=!1,We&&We(t),f=c.render(c.props,c.state,c.context),c.state=c.__s;while(c.__d&&++Pt<25);c.state=c.__s,c.getChildContext!=null&&(r=gt(gt({},r),c.getChildContext())),x&&!p&&c.getSnapshotBeforeUpdate!=null&&(g=c.getSnapshotBeforeUpdate(h,w)),ia(e,Er(Nt=f!=null&&f.type===Ae&&f.key==null?f.props.children:f)?Nt:[Nt],t,n,r,s,o,i,a,l,u),c.base=t.__e,t.__u&=-161,c.__h.length&&i.push(c),b&&(c.__E=c.__=null)}catch(or){if(t.__v=null,l||o!=null){for(t.__u|=l?160:32;a&&a.nodeType===8&&a.nextSibling;)a=a.nextSibling;o[o.indexOf(a)]=null,t.__e=a}else t.__e=n.__e,t.__k=n.__k;L.__e(or,t,n)}else o==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=Pl(n.__e,t,n,r,s,o,i,l,u);(f=L.diffed)&&f(t)}function ua(e,t,n){t.__d=void 0;for(var r=0;r<n.length;r++)Ts(n[r],n[++r],n[++r]);L.__c&&L.__c(t,e),e.some(function(s){try{e=s.__h,s.__h=[],e.some(function(o){o.call(s)})}catch(o){L.__e(o,s.__v)}})}function Pl(e,t,n,r,s,o,i,a,l){var u,f,c,p,h,w,g,b=n.props,_=t.props,x=t.type;if(x==="svg"?s="http://www.w3.org/2000/svg":x==="math"?s="http://www.w3.org/1998/Math/MathML":s||(s="http://www.w3.org/1999/xhtml"),o!=null){for(u=0;u<o.length;u++)if((h=o[u])&&"setAttribute"in h==!!x&&(x?h.localName===x:h.nodeType===3)){e=h,o[u]=null;break}}if(e==null){if(x===null)return document.createTextNode(_);e=document.createElementNS(s,x,_.is&&_),a&&(L.__m&&L.__m(t,o),a=!1),o=null}if(x===null)b===_||a&&e.data===_||(e.data=_);else{if(o=o&&Jn.call(e.childNodes),b=n.props||Un,!a&&o!=null)for(b={},u=0;u<e.attributes.length;u++)b[(h=e.attributes[u]).name]=h.value;for(u in b)if(h=b[u],u!="children"){if(u=="dangerouslySetInnerHTML")c=h;else if(!(u in _)){if(u=="value"&&"defaultValue"in _||u=="checked"&&"defaultChecked"in _)continue;ir(e,u,null,h,s)}}for(u in _)h=_[u],u=="children"?p=h:u=="dangerouslySetInnerHTML"?f=h:u=="value"?w=h:u=="checked"?g=h:a&&typeof h!="function"||b[u]===h||ir(e,u,h,b[u],s);if(f)a||c&&(f.__html===c.__html||f.__html===e.innerHTML)||(e.innerHTML=f.__html),t.__k=[];else if(c&&(e.innerHTML=""),ia(e,Er(p)?p:[p],t,n,r,x==="foreignObject"?"http://www.w3.org/1999/xhtml":s,o,i,o?o[0]:n.__k&&pn(n,0),a,l),o!=null)for(u=o.length;u--;)ra(o[u]);a||(u="value",x==="progress"&&w==null?e.removeAttribute("value"):w!==void 0&&(w!==e[u]||x==="progress"&&!w||x==="option"&&w!==b[u])&&ir(e,u,w,b[u],s),u="checked",g!==void 0&&g!==e[u]&&ir(e,u,g,b[u],s))}return e}function Ts(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(s){L.__e(s,n)}}function la(e,t,n){var r,s;if(L.unmount&&L.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||Ts(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(o){L.__e(o,t)}r.base=r.__P=null}if(r=e.__k)for(s=0;s<r.length;s++)r[s]&&la(r[s],t,n||typeof e.type!="function");n||ra(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function Rl(e,t,n){return this.constructor(e,n)}function Bt(e,t,n){var r,s,o,i;L.__&&L.__(e,t),s=(r=typeof n=="function")?null:n&&n.__k||t.__k,o=[],i=[],Ms(t,e=(!r&&n||t).__k=m(Ae,null,[e]),s||Un,Un,t.namespaceURI,!r&&n?[n]:s?null:t.firstChild?Jn.call(t.childNodes):null,o,!r&&n?n:s?s.__e:t.firstChild,r,i),ua(o,e,i)}function $s(e,t){Bt(e,t,$s)}function Is(e,t,n){var r,s,o,i,a=gt({},e.props);for(o in e.type&&e.type.defaultProps&&(i=e.type.defaultProps),t)o=="key"?r=t[o]:o=="ref"?s=t[o]:a[o]=t[o]===void 0&&i!==void 0?i[o]:t[o];return arguments.length>2&&(a.children=arguments.length>3?Jn.call(arguments,2):n),On(e.type,a,r||e.key,s||e.ref,null)}function ca(e,t){var n={__c:t="__cC"+ta++,__:e,Consumer:function(r,s){return r.children(s)},Provider:function(r){var s,o;return this.getChildContext||(s=[],(o={})[t]=this,this.getChildContext=function(){return o},this.componentWillUnmount=function(){s=null},this.shouldComponentUpdate=function(i){this.props.value!==i.value&&s.some(function(a){a.__e=!0,ps(a)})},this.sub=function(i){s.push(i);var a=i.componentWillUnmount;i.componentWillUnmount=function(){s&&s.splice(s.indexOf(i),1),a&&a.call(i)}}),r.children}};return n.Provider.__=n.Consumer.contextType=n}Jn=na.slice,L={__e:function(e,t,n,r){for(var s,o,i;t=t.__;)if((s=t.__c)&&!s.__)try{if((o=s.constructor)&&o.getDerivedStateFromError!=null&&(s.setState(o.getDerivedStateFromError(e)),i=s.__d),s.componentDidCatch!=null&&(s.componentDidCatch(e,r||{}),i=s.__d),i)return s.__E=s}catch(a){e=a}throw e}},Xi=0,Xe.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=gt({},this.state),typeof e=="function"&&(e=e(gt({},n),this.props)),e&>(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),ps(this))},Xe.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),ps(this))},Xe.prototype.render=Ae,Gt=[],ea=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,fs=function(e,t){return e.__v.__b-t.__v.__b},gr.__r=0,Es=0,ms=Eo(!1),hs=Eo(!0),ta=0;var Ft,J,Qr,Mo,wn=0,da=[],te=L,To=te.__b,$o=te.__r,Io=te.diffed,Do=te.__c,Bo=te.unmount,Vo=te.__;function Qt(e,t){te.__h&&te.__h(J,e,wn||t),wn=0;var n=J.__H||(J.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function vn(e){return wn=1,Mr(fa,e)}function Mr(e,t,n){var r=Qt(Ft++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):fa(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=J,!J.u)){var s=function(a,l,u){if(!r.__c.__H)return!0;var f=r.__c.__H.__.filter(function(p){return!!p.__c});if(f.every(function(p){return!p.__N}))return!o||o.call(this,a,l,u);var c=!1;return f.forEach(function(p){if(p.__N){var h=p.__[0];p.__=p.__N,p.__N=void 0,h!==p.__[0]&&(c=!0)}}),!(!c&&r.__c.props===a)&&(!o||o.call(this,a,l,u))};J.u=!0;var o=J.shouldComponentUpdate,i=J.componentWillUpdate;J.componentWillUpdate=function(a,l,u){if(this.__e){var f=o;o=void 0,s(a,l,u),o=f}i&&i.call(this,a,l,u)},J.shouldComponentUpdate=s}return r.__N||r.__}function Fn(e,t){var n=Qt(Ft++,3);!te.__s&&Rs(n.__H,t)&&(n.__=e,n.i=t,J.__H.__h.push(n))}function Cn(e,t){var n=Qt(Ft++,4);!te.__s&&Rs(n.__H,t)&&(n.__=e,n.i=t,J.__h.push(n))}function Ds(e){return wn=5,Zn(function(){return{current:e}},[])}function Bs(e,t,n){wn=6,Cn(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 Zn(e,t){var n=Qt(Ft++,7);return Rs(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function Vs(e,t){return wn=8,Zn(function(){return e},t)}function Ls(e){var t=J.context[e.__c],n=Qt(Ft++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(J)),t.props.value):e.__}function Os(e,t){te.useDebugValue&&te.useDebugValue(t?t(e):e)}function Ul(e){var t=Qt(Ft++,10),n=vn();return t.__=e,J.componentDidCatch||(J.componentDidCatch=function(r,s){t.__&&t.__(r,s),n[1](r)}),[n[0],function(){n[1](void 0)}]}function Ps(){var e=Qt(Ft++,11);if(!e.__){for(var t=J.__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 Hl(){for(var e;e=da.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(hr),e.__H.__h.forEach(ws),e.__H.__h=[]}catch(t){e.__H.__h=[],te.__e(t,e.__v)}}te.__b=function(e){J=null,To&&To(e)},te.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Vo&&Vo(e,t)},te.__r=function(e){$o&&$o(e),Ft=0;var t=(J=e.__c).__H;t&&(Qr===J?(t.__h=[],J.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.i=n.__N=void 0})):(t.__h.forEach(hr),t.__h.forEach(ws),t.__h=[],Ft=0)),Qr=J},te.diffed=function(e){Io&&Io(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(da.push(t)!==1&&Mo===te.requestAnimationFrame||((Mo=te.requestAnimationFrame)||zl)(Hl)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.i=void 0})),Qr=J=null},te.__c=function(e,t){t.some(function(n){try{n.__h.forEach(hr),n.__h=n.__h.filter(function(r){return!r.__||ws(r)})}catch(r){t.some(function(s){s.__h&&(s.__h=[])}),t=[],te.__e(r,n.__v)}}),Do&&Do(e,t)},te.unmount=function(e){Bo&&Bo(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{hr(r)}catch(s){t=s}}),n.__H=void 0,t&&te.__e(t,n.__v))};var Lo=typeof requestAnimationFrame=="function";function zl(e){var t,n=function(){clearTimeout(r),Lo&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Lo&&(t=requestAnimationFrame(n))}function hr(e){var t=J,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),J=t}function ws(e){var t=J;e.__c=e.__(),J=t}function Rs(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function fa(e,t){return typeof t=="function"?t(e):t}function ma(e,t){for(var n in t)e[n]=t[n];return e}function _s(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 br(e,t){this.props=e,this.context=t}function ha(e,t){function n(s){var o=this.props.ref,i=o==s.ref;return!i&&o&&(o.call?o(null):o.current=null),t?!t(this.props,s)||!i:_s(this.props,s)}function r(s){return this.shouldComponentUpdate=n,m(e,s)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(br.prototype=new Xe).isPureReactComponent=!0,br.prototype.shouldComponentUpdate=function(e,t){return _s(this.props,e)||_s(this.state,t)};var Oo=L.__b;L.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Oo&&Oo(e)};var Gl=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function pa(e){function t(n){var r=ma({},n);return delete r.ref,e(r,n.ref||null)}return t.$$typeof=Gl,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Po=function(e,t){return e==null?null:St(St(e).map(t))},wa={map:Po,forEach:Po,count:function(e){return e?St(e).length:0},only:function(e){var t=St(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:St},jl=L.__e;L.__e=function(e,t,n,r){if(e.then){for(var s,o=t;o=o.__;)if((s=o.__c)&&s.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),s.__c(e,t)}jl(e,t,n,r)};var Ro=L.unmount;function _a(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=ma({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return _a(r,t,n)})),e}function ga(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return ga(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 Pn(){this.__u=0,this.t=null,this.__b=null}function ba(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function ya(e){var t,n,r;function s(o){if(t||(t=e()).then(function(i){n=i.default||i},function(i){r=i}),r)throw r;if(!n)throw t;return m(n,o)}return s.displayName="Lazy",s.__f=!0,s}function on(){this.u=null,this.o=null}L.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Ro&&Ro(e)},(Pn.prototype=new Xe).__c=function(e,t){var n=t.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var s=ba(r.__v),o=!1,i=function(){o||(o=!0,n.__R=null,s?s(a):a())};n.__R=i;var a=function(){if(!--r.__u){if(r.state.__a){var l=r.state.__a;r.__v.__k[0]=ga(l,l.__c.__P,l.__c.__O)}var u;for(r.setState({__a:r.__b=null});u=r.t.pop();)u.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(i,i)},Pn.prototype.componentWillUnmount=function(){this.t=[]},Pn.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]=_a(this.__b,n,r.__O=r.__P)}this.__b=null}var s=t.__a&&m(Ae,null,e.fallback);return s&&(s.__u&=-33),[m(Ae,null,t.__a?null:e.children),s]};var Uo=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function Wl(e){return this.getChildContext=function(){return e.context},e.children}function ql(e){var t=this,n=e.i;t.componentWillUnmount=function(){Bt(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],contains:function(){return!0},appendChild:function(r){this.childNodes.push(r),t.i.appendChild(r)},insertBefore:function(r,s){this.childNodes.push(r),t.i.appendChild(r)},removeChild:function(r){this.childNodes.splice(this.childNodes.indexOf(r)>>>1,1),t.i.removeChild(r)}}),Bt(m(Wl,{context:t.context},e.__v),t.l)}function Sa(e,t){var n=m(ql,{__v:e,i:t});return n.containerInfo=t,n}(on.prototype=new Xe).__a=function(e){var t=this,n=ba(t.__v),r=t.o.get(e);return r[0]++,function(s){var o=function(){t.props.revealOrder?(r.push(s),Uo(t,e,r)):s()};n?n(o):o()}},on.prototype.render=function(e){this.u=null,this.o=new Map;var t=St(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},on.prototype.componentDidUpdate=on.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){Uo(e,n,t)})};var va=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Jl=/^(?: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]/,Zl=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Kl=/[A-Z0-9]/g,Yl=typeof document<"u",Ql=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function Fa(e,t,n){return t.__k==null&&(t.textContent=""),Bt(e,t),typeof n=="function"&&n(),e?e.__c:null}function Ca(e,t,n){return $s(e,t),typeof n=="function"&&n(),e?e.__c:null}Xe.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(Xe.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Ho=L.event;function Xl(){}function ec(){return this.cancelBubble}function tc(){return this.defaultPrevented}L.event=function(e){return Ho&&(e=Ho(e)),e.persist=Xl,e.isPropagationStopped=ec,e.isDefaultPrevented=tc,e.nativeEvent=e};var Us,nc={enumerable:!1,configurable:!0,get:function(){return this.class}},zo=L.vnode;L.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,r=t.type,s={},o=r.indexOf("-")===-1;for(var i in n){var a=n[i];if(!(i==="value"&&"defaultValue"in n&&a==null||Yl&&i==="children"&&r==="noscript"||i==="class"||i==="className")){var l=i.toLowerCase();i==="defaultValue"&&"value"in n&&n.value==null?i="value":i==="download"&&a===!0?a="":l==="translate"&&a==="no"?a=!1:l[0]==="o"&&l[1]==="n"?l==="ondoubleclick"?i="ondblclick":l!=="onchange"||r!=="input"&&r!=="textarea"||Ql(n.type)?l==="onfocus"?i="onfocusin":l==="onblur"?i="onfocusout":Zl.test(i)&&(i=l):l=i="oninput":o&&Jl.test(i)?i=i.replace(Kl,"-$&").toLowerCase():a===null&&(a=void 0),l==="oninput"&&s[i=l]&&(i="oninputCapture"),s[i]=a}}r=="select"&&s.multiple&&Array.isArray(s.value)&&(s.value=St(n.children).forEach(function(u){u.props.selected=s.value.indexOf(u.props.value)!=-1})),r=="select"&&s.defaultValue!=null&&(s.value=St(n.children).forEach(function(u){u.props.selected=s.multiple?s.defaultValue.indexOf(u.props.value)!=-1:s.defaultValue==u.props.value})),n.class&&!n.className?(s.class=n.class,Object.defineProperty(s,"className",nc)):(n.className&&!n.class||n.class&&n.className)&&(s.class=s.className=n.className),t.props=s}(e),e.$$typeof=va,zo&&zo(e)};var Go=L.__r;L.__r=function(e){Go&&Go(e),Us=e.__c};var jo=L.diffed;L.diffed=function(e){jo&&jo(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),Us=null};var xa={ReactCurrentDispatcher:{current:{readContext:function(e){return Us.__n[e.__c].props.value},useCallback:Vs,useContext:Ls,useDebugValue:Os,useDeferredValue:zs,useEffect:Fn,useId:Ps,useImperativeHandle:Bs,useInsertionEffect:js,useLayoutEffect:Cn,useMemo:Zn,useReducer:Mr,useRef:Ds,useState:vn,useSyncExternalStore:Ws,useTransition:Gs}}},rc="18.3.1";function Aa(e){return m.bind(null,e)}function Kn(e){return!!e&&e.$$typeof===va}function Na(e){return Kn(e)&&e.type===Ae}function ka(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function Ea(e){return Kn(e)?Is.apply(null,arguments):e}function Ma(e){return!!e.__k&&(Bt(null,e),!0)}function Ta(e){return e&&(e.base||e.nodeType===1&&e)||null}var $a=function(e,t){return e(t)},Ia=function(e,t){return e(t)},Da=Ae;function Hs(e){e()}function zs(e){return e}function Gs(){return[!1,Hs]}var js=Cn,Ba=Kn;function Ws(e,t){var n=t(),r=vn({h:{__:n,v:t}}),s=r[0].h,o=r[1];return Cn(function(){s.__=n,s.v=t,Xr(s)&&o({h:s})},[e,n,t]),Fn(function(){return Xr(s)&&o({h:s}),e(function(){Xr(s)&&o({h:s})})},[e]),n}function Xr(e){var t,n,r=e.v,s=e.__;try{var o=r();return!((t=s)===(n=o)&&(t!==0||1/t==1/n)||t!=t&&n!=n)}catch{return!0}}var Va={useState:vn,useId:Ps,useReducer:Mr,useEffect:Fn,useLayoutEffect:Cn,useInsertionEffect:js,useTransition:Gs,useDeferredValue:zs,useSyncExternalStore:Ws,startTransition:Hs,useRef:Ds,useImperativeHandle:Bs,useMemo:Zn,useCallback:Vs,useContext:Ls,useDebugValue:Os,version:"18.3.1",Children:wa,render:Fa,hydrate:Ca,unmountComponentAtNode:Ma,createPortal:Sa,createElement:m,createContext:ca,createFactory:Aa,cloneElement:Ea,createRef:sa,Fragment:Ae,isValidElement:Kn,isElement:Ba,isFragment:Na,isMemo:ka,findDOMNode:Ta,Component:Xe,PureComponent:br,memo:ha,forwardRef:pa,flushSync:Ia,unstable_batchedUpdates:$a,StrictMode:Da,Suspense:Pn,SuspenseList:on,lazy:ya,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:xa};const sc=Object.freeze(Object.defineProperty({__proto__:null,Children:wa,Component:Xe,Fragment:Ae,PureComponent:br,StrictMode:Da,Suspense:Pn,SuspenseList:on,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:xa,cloneElement:Ea,createContext:ca,createElement:m,createFactory:Aa,createPortal:Sa,createRef:sa,default:Va,findDOMNode:Ta,flushSync:Ia,forwardRef:pa,hydrate:Ca,isElement:Ba,isFragment:Na,isMemo:ka,isValidElement:Kn,lazy:ya,memo:ha,render:Fa,startTransition:Hs,unmountComponentAtNode:Ma,unstable_batchedUpdates:$a,useCallback:Vs,useContext:Ls,useDebugValue:Os,useDeferredValue:zs,useEffect:Fn,useErrorBoundary:Ul,useId:Ps,useImperativeHandle:Bs,useInsertionEffect:js,useLayoutEffect:Cn,useMemo:Zn,useReducer:Mr,useRef:Ds,useState:vn,useSyncExternalStore:Ws,useTransition:Gs,version:rc},Symbol.toStringTag,{value:"Module"})),oc=`*,: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]{display:none}[type=text],input:where(:not([type])),[type=email],[type=url],[type=password],[type=number],[type=date],[type=datetime-local],[type=month],[type=search],[type=tel],[type=time],[type=week],[multiple],textarea,select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#6b7280;border-width:1px;border-radius:0;padding:.5rem .75rem;font-size:1rem;line-height:1.5rem;--tw-shadow: 0 0 #0000}[type=text]:focus,input:where(:not([type])):focus,[type=email]:focus,[type=url]:focus,[type=password]:focus,[type=number]:focus,[type=date]:focus,[type=datetime-local]:focus,[type=month]:focus,[type=search]:focus,[type=tel]:focus,[type=time]:focus,[type=week]:focus,[multiple]:focus,textarea:focus,select:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: #2563eb;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);border-color:#2563eb}input::-moz-placeholder,textarea::-moz-placeholder{color:#6b7280;opacity:1}input::placeholder,textarea::placeholder{color:#6b7280;opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit,::-webkit-datetime-edit-year-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-meridiem-field{padding-top:0;padding-bottom:0}select{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem;-webkit-print-color-adjust:exact;print-color-adjust:exact}[multiple],[size]:where(select:not([size="1"])){background-image:initial;background-position:initial;background-repeat:unset;background-size:initial;padding-right:.75rem;-webkit-print-color-adjust:unset;print-color-adjust:unset}[type=checkbox],[type=radio]{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;-webkit-print-color-adjust:exact;print-color-adjust:exact;display:inline-block;vertical-align:middle;background-origin:border-box;-webkit-user-select:none;-moz-user-select:none;user-select:none;flex-shrink:0;height:1rem;width:1rem;color:#2563eb;background-color:#fff;border-color:#6b7280;border-width:1px;--tw-shadow: 0 0 #0000}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 2px;--tw-ring-offset-color: #fff;--tw-ring-color: #2563eb;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}[type=checkbox]:checked,[type=radio]:checked{border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:center;background-repeat:no-repeat}[type=checkbox]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e")}@media (forced-colors: active){[type=checkbox]:checked{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=radio]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e")}@media (forced-colors: active){[type=radio]:checked{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=checkbox]:checked:hover,[type=checkbox]:checked:focus,[type=radio]:checked:hover,[type=radio]:checked:focus{border-color:transparent;background-color:currentColor}[type=checkbox]:indeterminate{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3e%3c/svg%3e");border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:center;background-repeat:no-repeat}@media (forced-colors: active){[type=checkbox]:indeterminate{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=checkbox]:indeterminate:hover,[type=checkbox]:indeterminate:focus{border-color:transparent;background-color:currentColor}[type=file]{background:unset;border-color:inherit;border-width:0;border-radius:0;padding:0;font-size:unset;line-height:inherit}[type=file]:focus{outline:1px solid ButtonText;outline:1px auto -webkit-focus-ring-color}@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-auto{pointer-events:auto}.absolute{position:absolute}.relative{position:relative}.left-0{left:0}.top-0{top:0}.z-10{z-index:10}.mx-auto{margin-left:auto;margin-right:auto}.my-3{margin-top:.75rem;margin-bottom:.75rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-8{margin-bottom:2rem}.ml-2{margin-left:.5rem}.ml-3{margin-left:.75rem}.ml-6{margin-left:1.5rem}.mt-0\\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.block{display:block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.hidden{display:none}.h-10{height:2.5rem}.h-14{height:3.5rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-80{height:20rem}.h-9{height:2.25rem}.h-full{height:100%}.h-px{height:1px}.max-h-\\[min\\(320px\\,50vh\\)\\]{max-height:min(320px,50vh)}.w-1\\/2{width:50%}.w-5{width:1.25rem}.w-full{width:100%}.min-w-0{min-width:0px}.max-w-3xl{max-width:48rem}.max-w-48{max-width:12rem}.max-w-7xl{max-width:80rem}.max-w-96{max-width:24rem}.flex-1{flex:1 1 0%}.flex-shrink{flex-shrink:1}.flex-shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.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))}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.list-outside{list-style-position:outside}.list-disc{list-style-type:disc}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-center{justify-content:center}.gap-10{gap:2.5rem}.gap-2{gap:.5rem}.gap-6{gap:1.5rem}.-space-x-px>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(-1px * var(--tw-space-x-reverse));margin-left:calc(-1px * calc(1 - var(--tw-space-x-reverse)))}.-space-y-px>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(-1px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(-1px * var(--tw-space-y-reverse))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.self-stretch{align-self:stretch}.overflow-auto{overflow:auto}.whitespace-pre-wrap{white-space:pre-wrap}.text-wrap{text-wrap:wrap}.rounded{border-radius:.25rem}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-none{border-radius:0}.rounded-t-md{border-top-left-radius:.375rem;border-top-right-radius:.375rem}.rounded-bl-md{border-bottom-left-radius:.375rem}.rounded-br-md{border-bottom-right-radius:.375rem}.border{border-width:1px}.border-l-4{border-left-width:4px}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.border-red-300{--tw-border-opacity: 1;border-color:rgb(252 165 165 / var(--tw-border-opacity))}.border-transparent{border-color:transparent}.border-yellow-400{--tw-border-opacity: 1;border-color:rgb(250 204 21 / var(--tw-border-opacity))}.border-zinc-200{--tw-border-opacity: 1;border-color:rgb(228 228 231 / var(--tw-border-opacity))}.bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.bg-primary-base{background-color:var(--fl-color-primary)}.bg-primary-disabled{background-color:var(--fl-color-primary-disabled)}.bg-primary-light{background-color:var(--fl-color-primary-light)}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-yellow-50{--tw-bg-opacity: 1;background-color:rgb(254 252 232 / var(--tw-bg-opacity))}.p-4{padding:1rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-8{padding-left:2rem;padding-right:2rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-20{padding-top:5rem;padding-bottom:5rem}.pb-6{padding-bottom:1.5rem}.pl-4{padding-left:1rem}.pl-5{padding-left:1.25rem}.text-center{text-align:center}.text-2xl{font-size:1.5rem;line-height:2rem}.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}.font-bold{font-weight:700}.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))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity))}.text-red-900{--tw-text-opacity: 1;color:rgb(127 29 29 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.text-yellow-700{--tw-text-opacity: 1;color:rgb(161 98 7 / var(--tw-text-opacity))}.placeholder-red-300::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(252 165 165 / var(--tw-placeholder-opacity))}.placeholder-red-300::placeholder{--tw-placeholder-opacity: 1;color:rgb(252 165 165 / var(--tw-placeholder-opacity))}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-none{--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;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)}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.hover\\:bg-gray-50:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.hover\\:bg-primary-hover:hover{background-color:var(--fl-color-primary-hover)}.focus\\:z-10:focus{z-index:10}.focus\\:border-primary-base:focus{border-color:var(--fl-color-primary)}.focus\\:border-red-500:focus{--tw-border-opacity: 1;border-color:rgb(239 68 68 / var(--tw-border-opacity))}.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-primary-focus:focus{--tw-ring-color: var(--fl-color-primary-focus)}.focus\\:ring-red-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(239 68 68 / var(--tw-ring-opacity))}.focus\\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.disabled\\:pointer-events-none:disabled{pointer-events:none}.disabled\\:border-gray-300:disabled{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.disabled\\:bg-gray-100:disabled{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.disabled\\:text-gray-400:disabled{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}@media (min-width: 640px){.sm\\:mb-8{margin-bottom:2rem}.sm\\:space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.sm\\:p-6{padding:1.5rem}.sm\\:pb-8{padding-bottom:2rem}.sm\\:text-3xl{font-size:1.875rem;line-height:2.25rem}.sm\\:text-lg{font-size:1.125rem;line-height:1.75rem}.sm\\:text-sm{font-size:.875rem;line-height:1.25rem}.sm\\:leading-8{line-height:2rem}}`;function et(e){return Array.isArray(e)||ArrayBuffer.isView(e)}function ic(e){return e!=null&&typeof e.GetEnumerator=="function"}function ac(e){return e!=null&&typeof e.CompareTo=="function"}function uc(e){return e!=null&&typeof e.Equals=="function"}function lc(e){return e!=null&&typeof e.GetHashCode=="function"}function gs(e){return e!=null&&typeof e.Dispose=="function"}function Z(e){gs(e)&&e.Dispose()}function Ne(){return null}function yr(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 cc{constructor(t){this.iter=t,this.current=Ne()}"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 se(e){return ic(e)?e.GetEnumerator():new cc(e[Symbol.iterator]())}function Tr(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 dc{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 G(e,t){return e.toString(10).padStart(t,"0")}function fc(e,t,n){return e.toString(10).padStart(t,"0").padEnd(n,"0")}function Wo(e){const t=e;return typeof t.offset=="number"?t.offset:e.kind===1?0:e.getTimezoneOffset()*-6e4}function mc(e,t){return e=e<0&&t!=null&&t!==10?65535+e+1:e,e.toString(t)}function Wt(e,t){return e=e<0&&t!=null&&t!==10?4294967295+e+1:e,e.toString(t)}class It{static id(t){return It.idMap.has(t)||It.idMap.set(t,++It.count),It.idMap.get(t)}}It.idMap=new WeakMap;It.count=0;function qs(e){let t=0,n=5381;const r=e.length;for(;t<r;)n=n*33^e.charCodeAt(t++);return n}function wt(e){return e*2654435761|0}function hc(e){return qs(e.toString(32))}function Yn(e){let t=0;const n=e.length;for(let r=0;r<n;r++){const s=e[r];t=(t<<5)+t^s}return t}function pc(e){return e.getTime()}function wc(e){const t=e.length,n=new Array(t);for(let r=0;r<t;r++)n[r]=Ct(e[r]);return Yn(n)}function Ct(e){var t;if(e==null)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return wt(e);case"bigint":return hc(e);case"string":return qs(e);default:{if(lc(e))return e.GetHashCode();if(et(e))return wc(e);if(e instanceof Date)return pc(e);if(((t=Object.getPrototypeOf(e))==null?void 0:t.constructor)===Object){const n=Object.values(e).map(r=>Ct(r));return Yn(n)}else return wt(It.id(e))}}}function bs(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 La(e,t){return bs(e,t,me)}function _c(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;n.sort(),r.sort();for(let s=0;s<n.length;s++)if(n[s]!==r[s]||!me(e[n[s]],t[r[s]]))return!1;return!0}function me(e,t){var n;return e===t?!0:e==null?t==null:t==null?!1:uc(e)?e.Equals(t):et(e)?et(t)&&La(e,t):typeof e!="object"?!1:e instanceof Date?t instanceof Date&&Oa(e,t)===0:((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===Object&&_c(e,t)}function Oa(e,t){let n,r;return"offset"in e&&"offset"in t?(n=e.getTime(),r=t.getTime()):(n=e.getTime()+Wo(e),r=t.getTime()+Wo(t)),n===r?0:n<r?-1:1}function Qn(e,t){return e===t?0:e<t?-1:1}function gc(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,s=0;r<e.length;r++)if(s=n(e[r],t[r]),s!==0)return s;return 0}function Pa(e,t){return gc(e,t,ze)}function bc(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 s=0,o=0;s<n.length;s++){const i=n[s];if(i!==r[s])return i<r[s]?-1:1;if(o=ze(e[i],t[i]),o!==0)return o}return 0}function ze(e,t){var n;return e===t?0:e==null?t==null?0:-1:t==null?1:ac(e)?e.CompareTo(t):et(e)?et(t)?Pa(e,t):-1:typeof e!="object"?e<t?-1:1:e instanceof Date?t instanceof Date?Oa(e,t):-1:((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===Object?bc(e,t):-1}function F(e){const t={};for(const n of e)t[n[0]]=n[1];return t}function yc(e){et(e)?e.splice(0):e.clear()}const $r=new WeakMap;function j(e){if(e==null)return null;const t=(n,r)=>e(n)(r);return $r.set(t,e),t}function O(e){return $r.get(e)??(t=>n=>e(t,n))}function ys(e){if(e==null)return null;const t=(n,r,s)=>e(n)(r)(s);return $r.set(t,e),t}function es(e){return $r.get(e)??(t=>n=>r=>e(t,n,r))}function Sc(e){let t=0,n="[";for(const r of e){if(t===0)n+=tt(r);else if(t===100){n+="; ...";break}else n+="; "+tt(r);t++}return n+"]"}function tt(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 Sc(e);{const r=(n=Object.getPrototypeOf(e))==null?void 0:n.constructor;return r===Object&&t<10?"{ "+Object.entries(e).map(([s,o])=>s+" = "+tt(o,t+1)).join(`
|
|
2
|
+
`)+" }":(r==null?void 0:r.name)??""}}return String(e)}function vc(e,t){if(t.length===0)return e;{let n,r=!0;return t.length===1?(n=tt(t[0]),r=n.indexOf(" ")>=0):n=t.map(s=>tt(s)).join(", "),e+(r?" (":" ")+n+(r?")":"")}}class N{get name(){return this.cases()[this.tag]}toJSON(){return this.fields.length===0?this.name:[this.name].concat(this.fields)}toString(){return vc(this.name,this.fields)}GetHashCode(){const t=this.fields.map(n=>Ct(n));return t.splice(0,0,wt(this.tag)),Yn(t)}Equals(t){return this===t?!0:yr(this,t)&&this.tag===t.tag?La(this.fields,t.fields):!1}CompareTo(t){return this===t?0:yr(this,t)?this.tag===t.tag?Pa(this.fields,t.fields):this.tag<t.tag?-1:1:-1}}function Fc(e){const t={},n=Object.keys(e);for(let r=0;r<n.length;r++)t[n[r]]=e[n[r]];return t}function Cc(e){return"{ "+Object.entries(e).map(([t,n])=>t+" = "+tt(n)).join(`
|
|
3
|
+
`)+" }"}function xc(e){const t=Object.values(e).map(n=>Ct(n));return Yn(t)}function Ac(e,t){if(e===t)return!0;if(yr(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++)if(!me(e[n[r]],t[n[r]]))return!1;return!0}else return!1}function Nc(e,t){if(e===t)return 0;if(yr(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++){const s=ze(e[n[r]],t[n[r]]);if(s!==0)return s}return 0}else return-1}class ${toJSON(){return Fc(this)}toString(){return Cc(this)}GetHashCode(){return xc(this)}Equals(t){return Ac(this,t)}CompareTo(t){return Nc(this,t)}}class je{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 kc{constructor(t){this.message=t}}function Ec(e){return e instanceof kc||e instanceof Error}function Mc(e){return e instanceof Promise}function Sr(e){return Ec(e)||Mc(e)?e:new Error(String(e))}const Js=tt(oc),y=Va,xn=Symbol("numeric");function Ra(e){return typeof e=="number"||typeof e=="bigint"||(e==null?void 0:e[xn])}function Tc(e,t){return typeof e=="number"||typeof e=="bigint"?e<t?-1:e>t?1:0:e.CompareTo(t)}function Ss(e,t){return typeof e=="number"?e*t:typeof e=="bigint"?e*BigInt(t):e[xn]().multiply(t)}function pr(e,t){return typeof e=="number"?e.toFixed(t):typeof e=="bigint"?e:e[xn]().toFixed(t)}function vr(e,t){return typeof e=="number"?e.toPrecision(t):typeof e=="bigint"?e:e[xn]().toPrecision(t)}function Fr(e,t){return typeof e=="number"?e.toExponential(t):typeof e=="bigint"?e:e[xn]().toExponential(t)}function Cr(e){return typeof e=="number"?(Number(e)>>>0).toString(16):typeof e=="bigint"?BigInt.asUintN(64,e).toString(16):e[xn]().toHex()}const $c=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Ic=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],Dc=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Bc=["January","February","March","April","May","June","July","August","September","October","November","December"];function Me(e,t,n){let r=0,s=t;for(;s<e.length&&e[s]===n;)s++,r++;return r}function qo(e,t){return t>=e.length-1?-1:e.charCodeAt(t+1)}function Vc(e,t){let n=t;const r=e[t];let s="",o=!1;for(;t<e.length;){t++;const i=e[t];if(i===r){o=!0;break}else if(i==="\\")if(t<e.length)t++,s+=e[t];else throw new Error("Invalid string format");else s+=i}if(!o)throw new Error(`Invalid string format could not find matching quote for ${r}`);return[s,t-n+1]}function Zs(e,t,n){let r=0,s=0,o="";const i=n?Xn(e.getTime(),1):e;for(;r<t.length;){const a=t[r];switch(a){case"d":switch(s=Me(t,r,"d"),r+=s,s){case 1:o+=Zo(i);break;case 2:o+=G(Zo(i),2);break;case 3:o+=$c[Qo(i)];break;case 4:o+=Ic[Qo(i)];break}break;case"f":if(s=Me(t,r,"f"),r+=s,s<=3){const b=10**(3-s);o+=G(Math.floor(ur(i)/b),s)}else s<=7&&(o+=(""+ur(i)).padEnd(s,"0"));break;case"F":if(s=Me(t,r,"F"),r+=s,s<=3){const b=10**(3-s),_=Math.floor(ur(i)/b);_!=0&&(o+=G(_,s))}else if(s<=7){const b=ur(i);b!=0&&(o+=G(b,3))}break;case"g":s=Me(t,r,"g"),r+=s,s<=2&&(o+="A.D.");break;case"h":switch(s=Me(t,r,"h"),r+=s,s){case 1:o+=ar(i)%12;break;case 2:o+=G(ar(i)%12,2);break}break;case"H":switch(s=Me(t,r,"H"),r+=s,s){case 1:o+=ar(i);break;case 2:o+=G(ar(i),2);break}break;case"K":switch(s=Me(t,r,"K"),r+=s,s){case 1:switch(Jo(i)){case 1:o+="Z";break;case 2:o+=cn(i.getTimezoneOffset()*-6e4);break}break}break;case"m":switch(s=Me(t,r,"m"),r+=s,s){case 1:o+=Ko(i);break;case 2:o+=G(Ko(i),2);break}break;case"M":switch(s=Me(t,r,"M"),r+=s,s){case 1:o+=lr(i);break;case 2:o+=G(lr(i),2);break;case 3:o+=Dc[lr(i)-1];break;case 4:o+=Bc[lr(i)-1];break}break;case"s":switch(s=Me(t,r,"s"),r+=s,s){case 1:o+=Yo(i);break;case 2:o+=G(Yo(i),2);break}break;case"t":switch(s=Me(t,r,"t"),r+=s,s){case 1:o+=i.getHours()<12?"A":"P";break;case 2:o+=i.getHours()<12?"AM":"PM";break}break;case"y":switch(s=Me(t,r,"y"),r+=s,s){case 1:o+=i.getFullYear()%100;break;case 2:o+=G(i.getFullYear()%100,2);break;case 3:o+=G(i.getFullYear(),3);break;case 4:o+=G(i.getFullYear(),4);break;case 5:o+=G(i.getFullYear(),5);break}break;case"z":s=Me(t,r,"z"),r+=s;let l="";switch(Jo(i)){case 1:l="+00:00";break;case 2:l=cn(i.getTimezoneOffset()*-6e4);break;case 0:l=cn(jc(i).getTimezoneOffset()*-6e4);break}const u=l[0]==="-"?"-":"+",f=parseInt(l.substring(1,3),10),c=parseInt(l.substring(4,6),10);switch(s){case 1:o+=`${u}${f}`;break;case 2:o+=`${u}${G(f,2)}`;break;default:o+=`${u}${G(f,2)}:${G(c,2)}`;break}break;case":":o+=":",r++;break;case"/":o+="/",r++;break;case"'":case'"':const[p,h]=Vc(t,r);o+=p,r+=h;break;case"%":const w=qo(t,r);if(w>=0&&w!==37)r+=2,o+=Zs(i,String.fromCharCode(w),n);else throw new Error("Invalid format string");break;case"\\":const g=qo(t,r);if(g>=0)r+=2,o+=String.fromCharCode(g);else throw new Error("Invalid format string");break;default:r++,o+=a;break}}return o}function Jo(e){return e.kind||0}function cn(e){const t=e<0;e=Math.abs(e);const n=~~(e/36e5),r=e%36e5/6e4;return(t?"-":"+")+G(n,2)+":"+G(r,2)}function xr(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 Lc(e,t){if(t)return e.toISOString();{const n=e.kind==null?!0:e.kind===2;return G(e.getFullYear(),4)+"-"+G(e.getMonth()+1,2)+"-"+G(e.getDate(),2)+"T"+G(e.getHours(),2)+":"+G(e.getMinutes(),2)+":"+G(e.getSeconds(),2)+"."+G(e.getMilliseconds(),3)+(n?cn(e.getTimezoneOffset()*-6e4):"")}}function Oc(e,t){const n=e.toISOString();return n.substring(0,n.length-1)+cn(t)}function Pc(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," ")+cn(e.offset??0);if(t.length===1)switch(t){case"D":case"d":return xr(n,"first");case"T":case"t":return xr(n,"second");case"O":case"o":return Oc(n,e.offset??0);default:throw new Error("Unrecognized Date print format")}else return Zs(n,t,!0)}function Rc(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?xr(e,"first"):e.toLocaleDateString();case"T":case"t":return n?xr(e,"second"):e.toLocaleTimeString();case"O":case"o":return Lc(e,n);default:throw new Error("Unrecognized Date print format")}else return Zs(e,t,n)}function Ir(e,t,n){return e.offset!=null?Pc(e,t):Rc(e,t)}function Xn(e,t){const n=new Date(e);return n.kind=(t??0)|0,n}function Uc(){return Xn(-621355968e5,1)}function Ua(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 s=/^\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(s!=null){let o,i=0;if(s[2]!=null){const a=s[2].split(":"),l=parseInt(a[0],10);i=l*3600+parseInt(a[1]||"0",10)*60+parseFloat(a[2]||"0"),s[3]!=null&&s[3].toUpperCase()==="PM"&&l<12&&(i+=720)}if(s[4]!=null){if(s[1]!=null)o=new Date(s[1]+" UTC");else{const a=new Date;o=new Date(a.getUTCFullYear()+"/"+(a.getUTCMonth()+1)+"/"+a.getUTCDate())}if(s[4]==="Z")r="Z";else{let a=parseInt(s[5],10)*60+parseInt(s[6]||"0",10);s[4][0]==="-"&&(a*=-1),r=a,i-=a*60}}else if(s[1]!=null)o=new Date(s[1]);else{const a=new Date;o=new Date(a.getFullYear()+"/"+(a.getMonth()+1)+"/"+a.getDate())}n=new Date(o.getTime()+i*1e3),n=new Date(n.getTime()+(n.getTimezoneOffset()-o.getTimezoneOffset())*6e4)}else t();isNaN(n.getTime())&&t()}return[n,r]}function Hc(e,t=!1){const[n,r]=Ua(e),s=r!=null?t&&r==="Z"?1:2:0;return Xn(n.getTime(),s)}function zc(e,t){try{return t.contents=Hc(e),!0}catch{return!1}}function Gc(e){return e.kind===1?e:Xn(e.getTime(),1)}function jc(e){return e.kind===2?e:Xn(e.getTime(),2)}function Zo(e){return e.kind===1?e.getUTCDate():e.getDate()}function ar(e){return e.kind===1?e.getUTCHours():e.getHours()}function ur(e){return e.kind===1?e.getUTCMilliseconds():e.getMilliseconds()}function Ko(e){return e.kind===1?e.getUTCMinutes():e.getMinutes()}function lr(e){return(e.kind===1?e.getUTCMonth():e.getMonth())+1}function Yo(e){return e.kind===1?e.getUTCSeconds():e.getSeconds()}function Qo(e){return e.kind===1?e.getUTCDay():e.getDay()}function Ha(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 Ks(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function Wc(e,t,n=0){return e.lastIndex=n,e.test(t)}function Xo(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 s,o=-1;for(;(s=e.exec(t))!=null;)s.index===o?e.lastIndex++:(o=s.index,r.push(s));return r}function Ys(e,t,n,r,s=0){function o(){let i=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]),i=n(a)}return i}if(typeof e=="string"){const i=e;e=Ha(t,r??0),t=i,r=void 0}if(typeof n=="function")return r=r??-1,t.substring(0,s)+t.substring(s).replace(e,o);if(n=n.replace(/\$0/g,i=>"$&").replace(/\${([^}]+)}/g,"$<$1>"),r!=null){let i;const a=t.substring(s),l=Xo(e,a),u=Xo.length>r?(i=l[r-1],a.substring(0,i.index+i[0].length)):a;return t.substring(0,s)+u.replace(e,n)+t.substring(s+u.length)}else return t.replace(e,n)}const In=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g,qc=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function za(e,t){return Tc(e,t)<0}function Vt(e){return{input:e,cont:Zc(e)}}function Ga(e,t){return typeof t=="string"?e(t):t.cont(e)}function _n(e){return Ga(t=>t,e)}function ja(e){return Ga(t=>{throw new Error(t)},e)}function Jc(e,t,n,r,s){let o="";if(t=t||"",s=s||"",Ra(e))switch(s.toLowerCase()!=="x"&&(za(e,0)?(e=Ss(e,-1),o="-"):t.indexOf(" ")>=0?o=" ":t.indexOf("+")>=0&&(o="+")),r=r==null?null:parseInt(r,10),s){case"f":case"F":r=r??6,e=pr(e,r);break;case"g":case"G":e=r!=null?vr(e,r):vr(e);break;case"e":case"E":e=r!=null?Fr(e,r):Fr(e);break;case"x":e=Cr(e);break;case"X":e=Cr(e).toUpperCase();break;default:e=String(e);break}else e instanceof Date?e=Ir(e):e=tt(e);if(n=typeof n=="number"?n:parseInt(n,10),isNaN(n))e=o+e;else{const i=t.indexOf("0")>=0,a=t.indexOf("-")>=0,l=a||!i?" ":"0";l==="0"?(e=Hn(e,n-o.length,l,a),e=o+e):e=Hn(o+e,n,l,a)}return e}function Wa(e,t,n,r="",s=-1){return(...o)=>{let i=r;const a=t.slice(),l=n.slice();for(const u of o){const[,,f,c,p,h]=l[0];let w=c;if(s>=0)w=s,s=-1;else if(w==="*"){if(u<0)throw new Error("Non-negative number required");s=u;continue}i+=a[0],i+=Jc(u,f,w,p,h),a.splice(0,1),l.splice(0,1)}return l.length===0?(i+=a[0],e(i)):Wa(e,a,l,i,s)}}function Zc(e){return t=>{In.lastIndex=0;const n=[],r=[];let s=0,o=In.exec(e);for(;o;){const i=o.index+(o[1]||"").length;n.push(e.substring(s,i).replace(/%%/g,"%")),r.push(o),s=In.lastIndex,In.lastIndex-=1,o=In.exec(e)}return n.length===0?t(e.replace(/%%/g,"%")):(n.push(e.substring(s).replace(/%%/g,"%")),Wa(t,n,r))}}function Kc(e,...t){let n;return n=e,n.replace(qc,(r,s,o,i,a,l)=>{if(s<0||s>=t.length)throw new Error("Index must be greater or equal to zero and less than the arguments' length.");let u=t[s];if(Ra(u))switch(a=a==null?null:parseInt(a,10),i){case"f":case"F":a=a??2,u=pr(u,a);break;case"g":case"G":u=a!=null?vr(u,a):vr(u);break;case"e":case"E":u=a!=null?Fr(u,a):Fr(u);break;case"p":case"P":a=a??2,u=pr(Ss(u,100),a)+" %";break;case"d":case"D":u=a!=null?ts(String(u),a,"0"):String(u);break;case"x":case"X":u=a!=null?ts(Cr(u),a,"0"):Cr(u),i==="X"&&(u=u.toUpperCase());break;default:if(l){let f="";u=l.replace(/([0#,]+)(\.[0#]+)?/,(c,p,h)=>{za(u,0)&&(u=Ss(u,-1),f="-"),h=h==null?"":h.substring(1),u=pr(u,Math.max(h.length,0));let[w,g]=u.split(".");g||(g="");const b=p.replace(/,/g,"").replace(/^#+/,"").length;w=ts(w,b,"0");const _=h.replace(/#+$/,"").length;if(_>g.length?g=Qc(g,_,"0"):_<g.length&&(g=g.substring(0,_)+g.substring(_).replace(/0+$/,"")),p.indexOf(",")>0){const x=w.length%3,v=Math.floor(w.length/3);let Y=x>0?w.substr(0,x)+(v>0?",":""):"";for(let ce=0;ce<v;ce++)Y+=w.substr(x+ce*3,3)+(ce<v-1?",":"");w=Y}return g.length>0?w+"."+g:w}),u=f+u}}else u instanceof Date?u=Ir(u,l||i):u=tt(u);return o=parseInt((o||" ").substring(1),10),isNaN(o)||(u=Hn(String(u),Math.abs(o)," ",o<0)),u})}function Yc(e){return typeof e!="string"||e.length===0}function qa(e){return typeof e!="string"||/^\s*$/.test(e)}function P(e,t){return Array.isArray(t)?t.join(e):Array.from(t).join(e)}function Hn(e,t,n,r){n=n||" ",t=t-e.length;for(let s=0;s<t;s++)e=r?e+n:n+e;return e}function ts(e,t,n){return Hn(e,t,n)}function Qc(e,t,n){return Hn(e,t,n,!0)}function Xc(e,t,n){return e.replace(new RegExp(Ks(t),"g"),n)}function ed(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 s=(r&1)===1,o=(r&2)===2;t=t||[],t=t.filter(f=>f).map(Ks),t=t.length>0?t:["\\s"];const i=[],a=new RegExp(t.join("|"),"g");let l=!0,u=0;do{const f=a.exec(e);if(f===null){const c=o?e.substring(u).trim():e.substring(u);(!s||c.length>0)&&i.push(c),l=!1}else{const c=o?e.substring(u,f.index).trim():e.substring(u,f.index);(!s||c.length>0)&&(n!=null&&i.length+1===n?(i.push(o?e.substring(u).trim():e.substring(u)),l=!1):i.push(c)),u=a.lastIndex}}while(l);return i}function td(e,...t){if(t.length===0)return e.trim();const n="["+Ks(t.join(""))+"]+";return e.replace(new RegExp("^"+n),"").replace(new RegExp(n+"$"),"")}class Jt{constructor(t){this.value=t}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return Ct(this.value)}Equals(t){return t==null?!1:me(this.value,t instanceof Jt?t.value:t)}CompareTo(t){return t==null?1:ze(this.value,t instanceof Jt?t.value:t)}}function C(e){if(e==null)throw new Error("Option has no value");return e instanceof Jt?e.value:e}function Tt(e){return e instanceof Jt?e.value:e}function ye(e){return e==null||e instanceof Jt?new Jt(e):e}function Ja(e){return e==null?[]:[C(e)]}function Pe(e,t){return e!=null?C(e):t}function nd(e,t){return e!=null?C(e):t()}function er(e,t){return t!=null?ye(e(C(t))):void 0}class rd{constructor(t,n,r,s){this.declaringType=t,this.tag=n,this.name=r,this.fields=s}}class Oe{constructor(t,n,r,s,o,i,a){this.fullname=t,this.generics=n,this.construct=r,this.parent=s,this.fields=o,this.cases=i,this.enumCases=a}toString(){return Q(this)}GetHashCode(){return Za(this)}Equals(t){return vs(this,t)}}function De(e){return e.generics!=null?e.generics:[]}function Za(e){const t=qs(e.fullname),n=De(e).map(Za);return Yn([t,...n])}function vs(e,t){return e.fullname===""?t.fullname===""&&bs(zn(e),zn(t),([n,r],[s,o])=>n===s&&vs(r,o)):e.fullname===t.fullname&&bs(De(e),De(t),vs)}function ei(e,t,n,r){return new Oe(e,t,n,r)}function we(e,t,n,r){return new Oe(e,t,n,void 0,r)}function sd(...e){return new Oe("",void 0,void 0,void 0,()=>e)}function od(e,t,n,r){const s=new Oe(e,t,n,void 0,void 0,()=>{const o=n.prototype.cases();return r().map((i,a)=>new rd(s,a,o[a],i))});return s}function ae(e){return new Oe("Microsoft.FSharp.Core.FSharpOption`1",[e])}function Qs(e){return new Oe("Microsoft.FSharp.Collections.FSharpList`1",[e])}const id=new Oe("System.Object"),B=new Oe("System.String"),dt=new Oe("System.Boolean");function dn(e){if(Array.isArray(e))return e[0];if(e instanceof Oe){const t=tr(e);if(t!=null)return dn(t)+"[]";{const n=e.fullname.lastIndexOf(".");return n===-1?e.fullname:e.fullname.substr(n+1)}}else return e.name}function Q(e){const t=tr(e);return t!=null?Q(t)+"[]":e.generics==null||e.generics.length===0?e.fullname:e.fullname+"["+e.generics.map(n=>Q(n)).join(",")+"]"}function Ka(e){return tr(e)!=null}function tr(e){var t;return e.fullname==="[]"&&((t=e.generics)==null?void 0:t.length)===1?e.generics[0]:void 0}function Ya(e){return e.generics!=null&&e.generics.length>0}function Xs(e){return e.enumCases!=null&&e.enumCases.length>0}function Qa(e){return e.generics==null?e:new Oe(e.fullname,e.generics.map(()=>id))}function Xa(e){var t;return(t=e.generics)==null?void 0:t[0]}function Xt(e){if(Xs(e)&&e.enumCases!=null)return e.enumCases.map(t=>t[1]);throw new Error(`${e.fullname} is not an enum type`)}function ad(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 en(e,t){const n=parseInt(t,10);return ad(e,isNaN(n)?t:n)[1]}function eu(e){if(e.cases!=null)return e.cases();throw new Error(`${e.fullname} is not an F# union type`)}function zn(e){if(e.fields!=null)return e.fields();throw new Error(`${e.fullname} is not an F# record type`)}function tu(e){if(eo(e)&&e.generics!=null)return e.generics;throw new Error(`${e.fullname} is not a tuple type`)}function nu(e){return e instanceof Oe?e.cases!=null:e instanceof N}function ru(e){return e instanceof Oe?e.fields!=null:e instanceof $}function eo(e){return e.fullname.startsWith("System.Tuple")}function ud(e,t){const r=eu(t)[e.tag];if(r==null)throw new Error(`Cannot find case ${e.name} in union type`);return[r,e.fields]}function su(e){return e.fields==null?[]:e.fields}function ld(e,t){return e[t[0]]}function cd(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 dd(e,t){const n=zn(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,[s,o],i)=>(r[s]=t[i],r),{})}function fd(e,t){return e}const md="The index was outside the range of elements in the collection.",ou="Collection was empty.";function iu(e,t){return new Array(t)}function Fs(e,t){return e>t?e:t}function hd(e,t){return e<t?e:t}function Dr(e,t,n,r){const s=t|0;return e.fill(r,s,s+n)}function An(e,t,n){const r=t.length|0,s=iu(n,r);for(let o=0;o<=r-1;o++)ft(s,o,e(re(o,t)));return s}function pd(e,t){const n=iu(t,1);return ft(n,0,e),n}function wd(e){return e.slice().reverse()}function _d(e,t){return t.find(e)}function au(e,t,n){const r=[];for(let s=0;s<=t.length-1;s++){const o=e(re(s,t));if(o!=null){const i=C(o);r.push(i)}}return me(n,Ne())?r:An(s=>s,r,n)}function Br(e,t,n){const r=e;return n.reduce(r,t)}function re(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 ft(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 uu(e,t,n){return t.reduceRight((r,s)=>e(s,r),n)}class he extends ${constructor(t,n){super(),this.head=t,this.tail=n}toString(){return"["+P("; ",this)+"]"}Equals(t){const n=this;return n===t?!0:((s,o)=>{e:for(;;){const i=s,a=o,l=i.tail,u=a.tail;if(l!=null)if(u!=null){const f=C(l),c=C(u);if(me(i.head,a.head)){s=f,o=c;continue e}else return!1}else return!1;else return u==null}})(n,t)}GetHashCode(){return((r,s,o)=>{e:for(;;){const i=r,a=s,l=o,u=l.tail;if(u!=null){const f=C(u);if(i>18)return a|0;r=i+1,s=(a<<1)+Ct(l.head)+631*i,o=f;continue e}else return a|0}})(0,0,this)|0}toJSON(){const t=this;return Array.from(t)}CompareTo(t){return((s,o)=>{e:for(;;){const i=s,a=o,l=i.tail,u=a.tail;if(l!=null)if(u!=null){const f=C(l),c=C(u),p=ze(i.head,a.head)|0;if(p===0){s=f,o=c;continue e}else return p|0}else return 1;else return u!=null?-1:0}})(this,t)|0}GetEnumerator(){return bd(this)}[Symbol.iterator](){return Tr(se(this))}"System.Collections.IEnumerable.GetEnumerator"(){return se(this)}}class gd{constructor(t){this.xs=t,this.it=this.xs,this.current=Ne()}"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=C(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=Ne()}Dispose(){}}function bd(e){return new gd(e)}function oe(){return new he(Ne(),void 0)}function nr(e,t){return new he(e,t)}function Lt(e){return e.tail==null}function lu(e){return((n,r)=>{e:for(;;){const s=n,i=r.tail;if(i!=null){n=s+1,r=C(i);continue e}else return s|0}})(0,e)|0}function Zt(e){if(e.tail!=null)return e.head;throw new Error(ou+"\\nParameter name: list")}function pe(e){const t=e.tail;if(t!=null)return C(t);throw new Error(ou+"\\nParameter name: list")}function yd(e,t){return((r,s)=>{e:for(;;){const o=r,i=s,a=i.tail;if(a!=null){if(o===t)return i.head;r=o+1,s=C(a);continue e}else throw new Error(md+"\\nParameter name: index")}})(0,e)}function le(){return oe()}function Be(e,t){return nr(e,t)}function D(e){return nr(e,oe())}function H(e){return Lt(e)}function qt(e){return lu(e)}function I(e){return Zt(e)}function U(e){return pe(e)}function Nn(e){const t=lu(e)|0,n=Dr(new Array(t),0,t,null);return((s,o)=>{e:for(;;){const i=s,a=o;if(!Lt(a)){ft(n,i,Zt(a)),s=i+1,o=pe(a);continue e}break}})(0,e),n}function nt(e,t,n){let r=t,s=n;for(;!Lt(s);)r=e(r,I(s)),s=pe(s);return r}function to(e){return nt((t,n)=>nr(n,t),oe(),e)}function Sd(e,t,n){return uu(e,Nn(t),n)}function vd(e,t,n){return((s,o,i)=>{e:for(;;){const a=s,l=o,u=i;if(Lt(u))return l;s=a+1,o=e(a,l,Zt(u)),i=pe(u);continue e}})(0,t,n)}function Fd(e,t,n,r){let s=t,o=n,i=r;for(;!Lt(o)&&!Lt(i);)s=e(s,Zt(o),Zt(i)),o=pe(o),i=pe(i);return s}function Gn(e,t){nt((n,r)=>{e(r)},void 0,t)}function ee(e,t){let n=t;for(let r=e.length-1;r>=0;r--)n=nr(re(r,e),n);return n}function S(e){return ee(e,oe())}function Cd(e){let t,n;if(et(e))return S(e);if(e instanceof he)return e;{const r=oe();let s=r;const o=se(e);try{for(;o["System.Collections.IEnumerator.MoveNext"]();){const l=o["System.Collections.Generic.IEnumerator`1.get_Current"]();s=(t=s,n=new he(l,void 0),t.tail=n,n)}}finally{Z(o)}const i=s,a=oe();return i.tail=a,pe(r)}}function xd(e){const t=oe();let n=t;const r=i=>{n=nt((a,l)=>{const u=new he(l,void 0);return a.tail=u,u},n,i)};if(et(e))e.forEach(r);else if(e instanceof he)Gn(r,e);else{const i=se(e);try{for(;i["System.Collections.IEnumerator.MoveNext"]();)r(i["System.Collections.Generic.IEnumerator`1.get_Current"]())}finally{Z(i)}}const s=n,o=oe();return s.tail=o,pe(t)}function no(e,t){return nt((n,r)=>nr(r,n),t,to(e))}function Ad(e,t){const n=oe(),r=vd((o,i,a)=>{const l=new he(e(o,a),void 0);return i.tail=l,l},n,t),s=oe();return r.tail=s,pe(n)}function Kt(e,t){const n=oe(),r=nt((o,i)=>{const a=new he(e(i),void 0);return o.tail=a,a},n,t),s=oe();return r.tail=s,pe(n)}function Nd(e,t){return(r=>{e:for(;;){const s=r;if(Lt(s))return;{const o=e(Zt(s));if(o==null){r=pe(s);continue e}else return o}}})(t)}function kd(e,t){return((r,s)=>{e:for(;;){const o=r,i=s;if(Lt(i))return;if(e(Zt(i)))return o;r=o+1,s=pe(i);continue e}})(0,t)}function jn(e,t){return yd(t,e)}function Ed(e,t){const n=oe(),r=nt((o,i)=>{if(e(i)){const a=new he(i,void 0);return o.tail=a,a}else return o},n,t),s=oe();return r.tail=s,pe(n)}function Md(e,t){const n=oe(),r=oe(),s=n,o=nt((l,u)=>{let f,c;const p=l[0],h=l[1];return e(u)?[(f=new he(u,void 0),p.tail=f,f),h]:[p,(c=new he(u,void 0),h.tail=c,c)]},[s,r],t),i=oe();o[0].tail=i;const a=oe();return o[1].tail=a,[pe(s),pe(r)]}function Td(e,t){const n=oe(),r=nt((o,i)=>{const a=e(i);if(a==null)return o;{const l=new he(C(a),void 0);return o.tail=l,l}},n,t),s=oe();return r.tail=s,pe(n)}function cu(e,t){return nt((n,r)=>n&&e(r),!0,t)}function $d(e,t){const n=Nn(t);return n.sort(e),S(n)}function Id(e,t,n){return $d((r,s)=>n.Compare(e(r),e(s)),t)}class Dd extends ${constructor(t){super(),this.SmsfChoice=t}}function Bd(){return we("SuperSelection.UI.Backend.Dto.SMSFChoiceResponse",[],Dd,()=>[["SmsfChoice",ae(Ld())]])}class Vd extends ${constructor(t,n,r,s,o,i,a,l,u){super(),this.Abn=t,this.FundName=n,this.FundAddress=r,this.Bsb=s,this.BankAccountName=o,this.BankAccountNumber=i,this.ElectronicServiceAddress=a,this.MemberFirstName=l,this.MemberFamilyName=u}}function Ld(){return we("SuperSelection.UI.Backend.Dto.SMSFChoiceDto",[],Vd,()=>[["Abn",B],["FundName",B],["FundAddress",Pd()],["Bsb",B],["BankAccountName",B],["BankAccountNumber",B],["ElectronicServiceAddress",B],["MemberFirstName",ae(B)],["MemberFamilyName",ae(B)]])}class Od extends ${constructor(t,n,r,s,o){super(),this.AddressLine1=t,this.AddressLine2=n,this.City=r,this.State=s,this.Postcode=o}}function Pd(){return we("SuperSelection.UI.Backend.Dto.AustralianFundAddressDto",[],Od,()=>[["AddressLine1",B],["AddressLine2",ae(B)],["City",B],["State",B],["Postcode",B]])}class Rd extends ${constructor(t){super(),this.BankDetails=t}}function Ud(){return we("SuperSelection.UI.Backend.Dto.BsbLookupResponse",[],Rd,()=>[["BankDetails",ae(zd())]])}class Hd extends ${constructor(t,n,r){super(),this.Bsb=t,this.Bank=n,this.Branch=r}}function zd(){return we("SuperSelection.UI.Backend.Dto.BankDetailsDto",[],Hd,()=>[["Bsb",B],["Bank",B],["Branch",B]])}class Gd extends ${constructor(t,n,r,s,o){super(),this.Usi=t,this.FundName=n,this.MemberNumber=r,this.MemberFirstName=s,this.MemberFamilyName=o}}function jd(){return we("SuperSelection.UI.Backend.Dto.OwnFundChoiceDto",[],Gd,()=>[["Usi",B],["FundName",B],["MemberNumber",B],["MemberFirstName",ae(B)],["MemberFamilyName",ae(B)]])}class Wd extends ${constructor(t){super(),this.OwnFundChoice=t}}function qd(){return we("SuperSelection.UI.Backend.Dto.OwnFundChoiceResponse",[],Wd,()=>[["OwnFundChoice",ae(jd())]])}class Jd extends ${constructor(t){super(),this.EmployersDefaultFund=t}}function Zd(){return we("SuperSelection.UI.Backend.Dto.DefaultFundResponse",[],Jd,()=>[["EmployersDefaultFund",ae(Yd())]])}class Kd extends ${constructor(t,n){super(),this.FundUsi=t,this.FundName=n}}function Yd(){return we("SuperSelection.UI.Backend.Dto.DefaultFundDetailDto",[],Kd,()=>[["FundUsi",B],["FundName",B]])}class Qd extends ${constructor(t,n){super(),this.Data=t,this.Result=n}}function Xd(){return we("SuperSelection.UI.Backend.Dto.AustralianSuperFundListDto",[],Qd,()=>[["Data",Qs(rf())],["Result",tf()]])}class ef extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Success","TooManyResults"]}}function tf(){return od("SuperSelection.UI.Backend.Dto.AustralianSuperFundListResultDto",[],ef,()=>[[],[]])}class nf extends ${constructor(t,n,r,s,o,i,a,l){super(),this.Abn=t,this.FundName=n,this.Usi=r,this.ProductName=s,this.ContributionRestriction=o,this.DateFrom=i,this.DateTo=a,this.IsActive=l}}function rf(){return we("SuperSelection.UI.Backend.Dto.AustralianSuperFundDto",[],nf,()=>[["Abn",B],["FundName",B],["Usi",B],["ProductName",B],["ContributionRestriction",dt],["DateFrom",ei("System.DateTimeOffset")],["DateTo",ei("System.DateTimeOffset")],["IsActive",ae(dt)]])}class sf extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SuperSelection","SuperCampaign"]}}class of extends ${constructor(t,n,r,s){super(),this.PlacementId=t,this.ShownFunds=n,this.PromotedDefaultFundPosition=r,this.PromotedFundsConfigSource=s}}class ti extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Promoted","PromotedDefault"]}}class du extends ${constructor(t,n,r,s){super(),this.FundUsi=t,this.FundName=n,this.PageName=r,this.SuperCampaignEnabled=s}}function af(){return we("SuperSelection.UI.Backend.Dto.SuperFundPdsViewedDetail",[],du,()=>[["FundUsi",ae(B)],["FundName",B],["PageName",B],["SuperCampaignEnabled",dt]])}class fu extends ${constructor(t,n,r,s,o,i,a,l,u){super(),this.FundUsi=t,this.FundName=n,this.PromotedFundId=r,this.PromotedFundsShown=s,this.DefaultFundUsiSet=o,this.SuperCampaignEnabled=i,this.PlacementId=a,this.SourceOfJoin=l,this.IsDefaultExclusive=u}}function uf(){return we("SuperSelection.UI.Backend.Dto.ViewedPromotedFundDetail",[],fu,()=>[["FundUsi",ae(B)],["FundName",B],["PromotedFundId",B],["PromotedFundsShown",Qs(B)],["DefaultFundUsiSet",ae(B)],["SuperCampaignEnabled",dt],["PlacementId",B],["SourceOfJoin",ae(B)],["IsDefaultExclusive",ae(dt)]])}class mu extends ${constructor(t,n,r,s,o,i,a,l,u){super(),this.FundUsi=t,this.FundName=n,this.PromotedFundId=r,this.PromotedFundsShown=s,this.DefaultFundUsiSet=o,this.SuperCampaignEnabled=i,this.PlacementId=a,this.SourceOfJoin=l,this.IsDefaultExclusive=u}}function lf(){return we("SuperSelection.UI.Backend.Dto.ViewedPromotedDefaultFundDetail",[],mu,()=>[["FundUsi",B],["FundName",B],["PromotedFundId",B],["PromotedFundsShown",Qs(B)],["DefaultFundUsiSet",ae(B)],["SuperCampaignEnabled",dt],["PlacementId",B],["SourceOfJoin",ae(B)],["IsDefaultExclusive",ae(dt)]])}class hu extends ${constructor(t,n){super(),this.IsDefinedBenefitsEligible=t,this.SuperCampaignEnabled=n}}function cf(){return we("SuperSelection.UI.Backend.Dto.SuperFundDisclaimerViewedDetail",[],hu,()=>[["IsDefinedBenefitsEligible",B],["SuperCampaignEnabled",dt]])}class pu extends ${constructor(t){super(),this.SuperCampaignEnabled=t}}function df(){return we("SuperSelection.UI.Backend.Dto.SuperFundDisclaimerAcceptedDetail",[],pu,()=>[["SuperCampaignEnabled",dt]])}class ni extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["PromotedFund","PromotedDefaultFund"]}}class kt extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SuperFundPdsViewed","SuperFundDetailViewed","SuperFundDisclaimerViewed","SuperFundDisclaimerAccepted","SuperCampaignActivationSucceeded","SuperCampaignActivationFailed","SuperCampaignOperationFailed"]}}class ri extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SuperCampaignActivationFailed","SuperCampaignOperationFailed"]}}class si extends ${constructor(t,n){super(),this.Type=t,this.Reason=n}}function ff(e){return new d(0,[e])}function wu(e){return new d(1,[e])}class d extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Ok","Error"]}}function mt(e,t){return t.tag===0?ff(e(t.fields[0])):wu(t.fields[0])}function mf(e,t){return t.tag===0?e(t.fields[0]):wu(t.fields[0])}class hf{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,s=this.addListener(n==null?t:()=>t(n));return{Dispose(){r.removeListener(s)}}}Dispose(){}}class Vr extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,Vr.prototype)}}class ro{static get maxTrampolineCallCount(){return 2e3}constructor(){this.callCount=0}incrementAndCheck(){return this.callCount++>ro.maxTrampolineCallCount}hijack(t){this.callCount=0,setTimeout(t,0)}}function bt(e){return t=>{if(t.cancelToken.isCancelled)t.onCancel(new Vr);else if(t.trampoline.incrementAndCheck())t.trampoline.hijack(()=>{try{e(t)}catch(n){t.onError(Sr(n))}});else try{e(t)}catch(n){t.onError(Sr(n))}}}function pf(e,t){return bt(n=>{e({onSuccess:r=>{try{t(r)(n)}catch(s){n.onError(Sr(s))}},onError:n.onError,onCancel:n.onCancel,cancelToken:n.cancelToken,trampoline:n.trampoline})})}function wf(e){return bt(t=>t.onSuccess(e))}class _f{Bind(t,n){return pf(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 s=r.next();return this.While(()=>!s.done,this.Delay(()=>{const o=n(s.value);return s=r.next(),o}))}Return(t){return wf(t)}ReturnFrom(t){return t}TryFinally(t,n){return bt(r=>{t({onSuccess:s=>{n(),r.onSuccess(s)},onError:s=>{n(),r.onError(s)},onCancel:s=>{n(),r.onCancel(s)},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:s=>{try{n(s)(r)}catch(o){r.onError(Sr(o))}}})})}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 E=new _f;function gf(e){return new _u(0,[e])}function bf(e){return new _u(1,[e])}class _u extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Choice1Of2","Choice2Of2"]}}function yf(e){return gf(e)}function Sf(e){return bf(e)}function ns(e){}const vf=new hf;function gu(e){return bt(t=>{e({onSuccess:n=>t.onSuccess(yf(n)),onError:n=>t.onSuccess(Sf(n)),onCancel:t.onCancel,cancelToken:t.cancelToken,trampoline:t.trampoline})})}function Ff(e){return bt(t=>e([t.onSuccess,t.onError,t.onCancel]))}function bu(e){return bt(t=>{let n;const r=setTimeout(()=>{t.cancelToken.removeListener(n),t.onSuccess(void 0)},e);n=t.cancelToken.addListener(()=>{clearTimeout(r),t.onCancel(new Vr)})})}function Cf(e,t){return Af(e,t)}function xf(e,t){return Cf(e,t)}function Af(e,t,n,r,s){typeof t!="function"&&(s=t,t=void 0);const o=new ro;e({onSuccess:t||ns,onError:ns,onCancel:ns,cancelToken:s||vf,trampoline:o})}class Nf{constructor(t,n,r){this.OnNext=t,this.OnError=n||(s=>{}),this.OnCompleted=r||(()=>{})}}function kf(e,t){t.Subscribe(new Nf(e))}class Ef{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 Tf(t=>{this._add(t)},t=>{this._remove(t)})}Trigger(t,n){let r=null;const s=n===void 0?t:(r=t,n);this.delegates.forEach(o=>{o(r,s)})}}class Mf extends Ef{}function Tf(e,t){return{AddHandler(n){e(n)},RemoveHandler(n){t(n)},Subscribe(n){const r=(s,o)=>n.OnNext(o);return e(r),{Dispose(){t(r)}}}}}class $f{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 Mf}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 If(e,t){console.error(ye(e),t)}function Df(e,t){let n,r=new $f(e);r.AutoReset=!1,n=r,kf(t,n.Elapsed()),n.Enabled=!0,n.Start()}function oi(e,t,n){Gn(r=>{try{r(t)}catch(s){e(s)}},n)}function A(){return le()}function Yt(e,t){return Kt(n=>r=>{n(s=>{r(e(s))})},t)}function fn(e){return xd(e)}function Ue(e){return D(e)}function Bf(e,t,n,r,s){return D(o=>{e(E.Delay(()=>E.Bind(gu(t(n)),i=>{const a=i;return o(a.tag===1?s(a.fields[0]):r(a.fields[0])),E.Zero()})))})}function Dt(e,t,n,r){return D(s=>{e(E.Delay(()=>E.Bind(gu(t(n)),o=>{const i=o;return i.tag===0&&s(r(i.fields[0])),E.Zero()})))})}function yt(e){Df(1,t=>{xf(e)})}class Vf extends ${constructor(t,n,r,s,o,i,a,l,u,f,c,p,h){super(),this.FundName=t,this.FundAbn=n,this.FundEsa=r,this.FundAddressLine1=s,this.FundAddressLine2=o,this.FundCity=i,this.FundState=a,this.FundPostcode=l,this.MemberFirstName=u,this.MemberLastName=f,this.BankAccountName=c,this.BankAccountBsb=p,this.BankAccountNumber=h}}function so(e,t){const n={detail:t};return new CustomEvent(e,n)}const Lf=so("smsf-loaded",{sender:"super-smsf"}),Of=so("smsf-cancelled",{sender:"super-smsf"});function Pf(e){return so("smsf-completed",{bankAccountName:e.BankAccountName,bankAccountNumber:e.BankAccountNumber,bankBsb:e.BankAccountBsb,fundAbn:e.FundAbn,fundAddressLine1:e.FundAddressLine1,fundAddressLine2:Tt(e.FundAddressLine2),fundCity:e.FundCity,fundEsa:e.FundEsa,fundName:e.FundName,fundPostcode:e.FundPostcode,fundState:e.FundState,memberFirstName:e.MemberFirstName,memberLastName:e.MemberLastName,sender:"super-smsf"})}class oo extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Loaded","Cancelled","Completed"]}}function io(e){let t;t=e.tag===1?Of:e.tag===2?Pf(e.fields[0]):Lf,document.dispatchEvent(t)}function Rf(e){return Ue(t=>{io(new oo(2,[e]))})}function Uf(){return Ue(e=>{io(new oo(0,[]))})}function Hf(){return Ue(e=>{io(new oo(1,[]))})}class Ke extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class yu extends N{constructor(t,n){super(),this.tag=0,this.fields=[t,n]}cases(){return["Header"]}}class Vn extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Empty","Text","Binary","Form"]}}class rr extends ${constructor(t,n,r,s,o,i,a,l){super(),this.url=t,this.method=n,this.headers=r,this.withCredentials=s,this.overridenMimeType=o,this.overridenResponseType=i,this.timeout=a,this.content=l}}class sn extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class Su extends ${constructor(t,n,r,s,o,i){super(),this.statusCode=t|0,this.responseText=n,this.responseType=r,this.responseUrl=s,this.responseHeaders=o,this.content=i}}function zf(e){throw new Error(e)}const Gf="Enumeration already finished.",jf="Enumeration has not started. Call MoveNext.",vu="The input sequence has an insufficient number of elements.",Wf="Reset is not supported on this enumerator.";function qf(){throw new Error(Wf)}function ao(){throw new Error(jf)}function Cs(){throw new Error(Gf)}class Jf{constructor(t){this.f=t}toString(){const t=this;let n=0,r="seq [";const s=se(t);try{for(;n<4&&s["System.Collections.IEnumerator.MoveNext"]();)n>0&&(r=r+"; "),r=r+tt(s["System.Collections.Generic.IEnumerator`1.get_Current"]()),n=n+1|0;return n===4&&(r=r+"; ..."),r+"]"}finally{Z(s)}}GetEnumerator(){return this.f()}[Symbol.iterator](){return Tr(se(this))}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}function Zf(e){return new Jf(e)}class Kf{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"(){qf()}Dispose(){this.dispose()}}function Lr(e,t,n){return new Kf(e,t,n)}function Yf(e){let t,n,r=!1,s=!1,o;const i=()=>{if(s=!0,n!=null){const a=C(n);try{Z(a)}finally{n=void 0}}if(t!=null){const a=C(t);try{Z(a)}finally{t=void 0}}};return Lr(()=>(r?s&&Cs():ao(),o!=null?C(o):Cs()),()=>{let a;if(r||(r=!0),s)return!1;{let l;for(;l==null;){const u=t,f=n;if(u!=null)if(f!=null){const c=C(f);if(c["System.Collections.IEnumerator.MoveNext"]())o=ye(c["System.Collections.Generic.IEnumerator`1.get_Current"]()),l=!0;else try{Z(c)}finally{n=void 0}}else{const c=C(u);c["System.Collections.IEnumerator.MoveNext"]()?n=(a=c["System.Collections.Generic.IEnumerator`1.get_Current"](),se(a)):(i(),l=!1)}else t=se(e)}return C(l)}},()=>{s||i()})}function Qf(e,t){return Lr(()=>t["System.Collections.Generic.IEnumerator`1.get_Current"](),()=>t["System.Collections.IEnumerator.MoveNext"](),()=>{try{Z(t)}finally{}})}function Fu(e,t,n){let r=!1,s,o=ye(e());const i=()=>{if(o!=null){const l=C(o);try{n(l)}finally{o=void 0}}},a=()=>{try{i()}finally{s=void 0}};return Lr(()=>(r||ao(),s!=null?C(s):Cs()),()=>{if(r||(r=!0),o!=null){const l=C(o);let u;try{u=t(l)}catch(f){throw a(),f}return u!=null?(s=u,!0):(a(),!1)}else return!1},i)}function Xf(e,t){let n,r=t;return Lr(()=>{if(n!=null){const s=C(n)[0];return C(n)[1],s}else return ao()},()=>(n=e(r),n!=null?(C(n)[0],r=C(n)[1],!0):!1),()=>{})}function em(e,t){t==null&&zf(e)}function kn(e){return Zf(e)}function Ot(e){return em("source",e),se(e)}function M(e){return kn(()=>se(e()))}function Cu(e){return kn(()=>Yf(e))}function tm(e,t){return kn(()=>Xf(e,t))}function ue(){return M(()=>new Array(0))}function T(e){return M(()=>pd(e))}function nm(e){return e instanceof he?Nn(e):Array.from(e)}function X(e){return et(e)?S(e):e instanceof he?e:Cd(e)}function rm(e,t,n){return kn(()=>Fu(e,t,n))}function xu(e,t,n){return kn(()=>{let r=-1;return Fu(e,s=>(r=r+1|0,t(r,s)),n)})}function W(e,t){return Cu([e,t])}function sm(e,t,n){const r=Ot(t);try{const s=Ot(n);try{let o=0,i=r["System.Collections.IEnumerator.MoveNext"](),a=s["System.Collections.IEnumerator.MoveNext"]();for(;o===0&&i&&a;)o=e(r["System.Collections.Generic.IEnumerator`1.get_Current"](),s["System.Collections.Generic.IEnumerator`1.get_Current"]())|0,o===0&&(i=r["System.Collections.IEnumerator.MoveNext"](),a=s["System.Collections.IEnumerator.MoveNext"]());return(o!==0?o:i?1:a?-1:0)|0}finally{Z(s)}}finally{Z(r)}}function tn(e,t,n){const r=Ot(t);try{let s=!1;for(;!s&&r["System.Collections.IEnumerator.MoveNext"]();)s=n.Equals(e,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return s}finally{Z(r)}}function Or(e,t,n){const r=Ot(n);try{let s=t;for(;r["System.Collections.IEnumerator.MoveNext"]();)s=e(s,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return s}finally{Z(r)}}function Pr(e,t){Or((n,r)=>{e(r)},void 0,t)}function xe(e,t){return rm(()=>Ot(t),n=>n["System.Collections.IEnumerator.MoveNext"]()?ye(e(n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{Z(n)})}function om(e,t){return xu(()=>Ot(t),(n,r)=>r["System.Collections.IEnumerator.MoveNext"]()?ye(e(n,r["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{Z(n)})}function im(e){return M(()=>wd(nm(e)))}function am(e,t){return kn(()=>{const n=Ot(t);try{for(let r=1;r<=e;r++)if(!n["System.Collections.IEnumerator.MoveNext"]())throw new Error(vu+"\\nParameter name: source");return Qf(()=>{},n)}catch(r){throw Z(n),r}})}function um(e,t){return xu(()=>Ot(t),(n,r)=>{if(n<e){if(r["System.Collections.IEnumerator.MoveNext"]())return ye(r["System.Collections.Generic.IEnumerator`1.get_Current"]());throw new Error(vu+"\\nParameter name: source")}else return},n=>{Z(n)})}function lm(e,t){return M(()=>Cu(xe(e,t)))}class Au{constructor(t,n){this.k=t,this.v=n}}function Ar(e,t){return new Au(e,t)}function be(e){return e.k}function Ve(e){return e.v}class ie extends Au{constructor(t,n,r,s,o){super(t,n),this.left=r,this.right=s,this.h=o|0}}function wr(e,t,n,r,s){return new ie(e,t,n,r,s)}function _e(e){return e.left}function ge(e){return e.right}function jt(e){return e.h}function Nu(e,t){e:for(;;){const n=e,r=t;if(r!=null){const s=C(r);if(s instanceof ie){const o=s;e=Nu(n+1,_e(o)),t=ge(o);continue e}else return n+1|0}else return n|0}}function cm(e){return Nu(0,e)}function qe(e,t,n,r){let s,o,i;const a=e;if(a!=null){const c=C(a);i=c instanceof ie?(s=c,jt(s)):1}else i=0;let l;const u=r;if(u!=null){const c=C(u);l=c instanceof ie?(o=c,jt(o)):1}else l=0;const f=(i<l?l:i)|0;return f===0?Ar(t,n):wr(t,n,e,r,f+1)}function ii(e,t,n,r){let s,o,i,a,l,u,f,c,p;const h=e;if(h!=null){const b=C(h);p=b instanceof ie?(s=b,jt(s)):1}else p=0;let w;const g=r;if(g!=null){const b=C(g);w=b instanceof ie?(o=b,jt(o)):1}else w=0;if(w>p+2){const b=C(r);if(b instanceof ie){const _=b;if(i=_e(_),(i!=null?(a=C(i),a instanceof ie?(l=a,jt(l)):1):0)>p+1){const x=C(_e(_));if(x instanceof ie){const v=x;return qe(qe(e,t,n,_e(v)),be(v),Ve(v),qe(ge(v),be(_),Ve(_),ge(_)))}else throw new Error("internal error: Map.rebalance")}else return qe(qe(e,t,n,_e(_)),be(_),Ve(_),ge(_))}else throw new Error("internal error: Map.rebalance")}else if(p>w+2){const b=C(e);if(b instanceof ie){const _=b;if(u=ge(_),(u!=null?(f=C(u),f instanceof ie?(c=f,jt(c)):1):0)>w+1){const x=C(ge(_));if(x instanceof ie){const v=x;return qe(qe(_e(_),be(_),Ve(_),_e(v)),be(v),Ve(v),qe(ge(v),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return qe(_e(_),be(_),Ve(_),qe(ge(_),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return qe(e,t,n,r)}function gn(e,t,n,r){if(r!=null){const s=C(r),o=e.Compare(t,be(s))|0;if(s instanceof ie){const i=s;return o<0?ii(gn(e,t,n,_e(i)),be(i),Ve(i),ge(i)):o===0?wr(t,n,_e(i),ge(i),jt(i)):ii(_e(i),be(i),Ve(i),gn(e,t,n,ge(i)))}else return o<0?wr(t,n,void 0,r,2):o===0?Ar(t,n):wr(t,n,r,void 0,2)}else return Ar(t,n)}function ku(e,t,n){e:for(;;){const r=e,s=t,o=n;if(o!=null){const i=C(o),a=r.Compare(s,be(i))|0;if(a===0)return ye(Ve(i));if(i instanceof ie){const l=i;e=r,t=s,n=a<0?_e(l):ge(l);continue e}else return}else return}}function dm(e,t,n){const r=ku(e,t,n);if(r==null)throw new Error;return C(r)}function fm(e,t,n){e:for(;;){const r=e,s=t,o=n;if(o!=null){const i=C(o),a=r.Compare(s,be(i))|0;if(i instanceof ie){const l=i;if(a<0){e=r,t=s,n=_e(l);continue e}else{if(a===0)return!0;e=r,t=s,n=ge(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 s=C(r);if(s instanceof ie){const o=s;Eu(n,_e(o)),n(be(o),Ve(o)),e=n,t=ge(o);continue e}else n(be(s),Ve(s))}break}}function mm(e,t){Eu(e,t)}function hm(e,t,n){let r=n;mm((s,o)=>{ft(t,r,[s,o]),r=r+1|0},e)}function pm(e,t){return nt((n,r)=>gn(e,r[0],r[1],n),void 0,t)}function wm(e,t,n){e:for(;;){const r=e,s=t,o=n;if(o["System.Collections.IEnumerator.MoveNext"]()){const i=o["System.Collections.Generic.IEnumerator`1.get_Current"]();e=r,t=gn(r,i[0],i[1],s),n=o;continue e}else return s}}function _m(e,t){let n=void 0;for(let r=0;r<=t.length-1;r++){const s=re(r,t);n=gn(e,s[0],s[1],n)}return n}function Mu(e,t){if(et(t))return _m(e,t);if(t instanceof he)return pm(e,t);{const n=se(t);try{return wm(e,void 0,n)}finally{Z(n)}}}class gm extends ${constructor(t,n){super(),this.stack=t,this.started=n}}function Tu(e){e:for(;;){const t=e;if(H(t))return le();{const n=U(t),r=I(t);if(r!=null){const s=C(r);if(s instanceof ie){const o=s;e=ee([_e(o),Ar(be(o),Ve(o)),ge(o)],n);continue e}else return t}else{e=n;continue e}}}}function ai(e){return new gm(Tu(D(e)),!1)}function bm(){throw new Error("enumeration not started")}function ym(){throw new Error("enumeration already finished")}function ui(e){if(e.started){const t=e.stack;if(H(t))return ym();if(I(t)!=null){const n=C(I(t));if(n instanceof ie)throw new Error("Please report error: Map iterator, unexpected stack for current");return[be(n),Ve(n)]}else throw new Error("Please report error: Map iterator, unexpected stack for current")}else return bm()}function Sm(e){if(e.started){const t=e.stack;if(H(t))return!1;if(I(t)!=null){if(C(I(t))instanceof ie)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=Tu(U(t)),!H(e.stack)}else throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}else return e.started=!0,!H(e.stack)}function li(e){let t=ai(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return ui(t)},"System.Collections.IEnumerator.get_Current"(){return ui(t)},"System.Collections.IEnumerator.MoveNext"(){return Sm(t)},"System.Collections.IEnumerator.Reset"(){t=ai(e)},Dispose(){}}}class Nr{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return xm(this)|0}Equals(t){const n=this;if(t instanceof Nr){const r=t,s=se(n);try{const o=se(r);try{const i=()=>{const a=s["System.Collections.IEnumerator.MoveNext"]();if(a===o["System.Collections.IEnumerator.MoveNext"]())if(a){const l=s["System.Collections.Generic.IEnumerator`1.get_Current"](),u=o["System.Collections.Generic.IEnumerator`1.get_Current"]();return me(l[0],u[0])&&me(l[1],u[1])?i():!1}else return!0;else return!1};return i()}finally{Z(o)}}finally{Z(s)}}else return!1}toString(){return"map ["+P("; ",xe(n=>Kc("({0}, {1})",n[0],n[1]),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(){const t=this;return Array.from(t)}GetEnumerator(){return li(this.tree)}[Symbol.iterator](){return Tr(se(this))}"System.Collections.IEnumerable.GetEnumerator"(){return li(this.tree)}CompareTo(t){const n=this;if(t instanceof Nr)return sm((s,o)=>{const i=n.comparer.Compare(s[0],o[0])|0;return(i!==0?i:ze(s[1],o[1]))|0},n,t)|0;throw new Error("not comparable\\nParameter name: obj")}"System.Collections.Generic.ICollection`1.Add2B595"(t){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Clear"(){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Remove2B595"(t){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Contains2B595"(t){const n=this;return di(n,t[0])&&me(ci(n,t[0]),t[1])}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){hm(this.tree,t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return rs(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return rs(this)|0}get size(){return rs(this)|0}clear(){throw new Error("Map cannot be mutated")}delete(t){throw new Error("Map cannot be mutated")}entries(){return xe(n=>[n[0],n[1]],this)}get(t){return ci(this,t)}has(t){return di(this,t)}keys(){return xe(n=>n[0],this)}set(t,n){throw new Error("Map cannot be mutated")}values(){return xe(n=>n[1],this)}forEach(t,n){const r=this;Pr(s=>{t(s[1],s[0],r)},r)}}function Rr(e,t){return new Nr(e,t)}function vm(e){return Rr(e,void 0)}function Fm(e,t,n){return Rr(e.comparer,gn(e.comparer,t,n,e.tree))}function ci(e,t){return dm(e.comparer,t,e.tree)}function rs(e){return cm(e.tree)}function di(e,t){return fm(e.comparer,t,e.tree)}function Cm(e,t){return ku(e.comparer,t,e.tree)}function xm(e){const t=(s,o)=>(s<<1)+o+631;let n=0;const r=se(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const s=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n=t(n,Ct(s[0]))|0,n=t(n,Ct(s[1]))|0}}finally{Z(r)}return n|0}function $u(e,t,n){return Fm(n,e,t)}function Iu(e,t){return Cm(t,e)}function Am(e,t){return Rr(t,Mu(t,e))}function Nm(e,t){return Rr(t,Mu(t,e))}function uo(e){return vm(e)}function cr(e){return new yu("Content-Type",e)}function km(e){return new yu("Authorization",e)}const Ut=new rr("",new Ke(0,[]),le(),!1,void 0,void 0,void 0,new Vn(0,[]));new Su(0,"","","",uo({Compare:Qn}),new sn(0,[""]));function fi(e,t){return Yc(t)?new Array(0):ed(t,[e],void 0,0)}function Em(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 rt(e){return new rr(e,Ut.method,Ut.headers,Ut.withCredentials,Ut.overridenMimeType,Ut.overridenResponseType,Ut.timeout,Ut.content)}function st(e,t){return new rr(t.url,e,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function ve(e,t){return new rr(t.url,t.method,no(t.headers,D(e)),t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function dr(e,t){return new rr(t.url,t.method,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,e)}function ot(e){return Ff(t=>{const n=new XMLHttpRequest;n.open(Em(e.method),e.url),n.onreadystatechange=()=>{let l,u,f,c,p,h,w;n.readyState===4&&t[0]((l=(u=n.responseType,u===""||u==="text"?n.responseText:""),f=n.status|0,c=n.responseType,p=(h=n.responseType,h===""?new sn(0,[n.responseText]):h==="text"?new sn(0,[n.responseText]):h==="arraybuffer"?new sn(2,[n.response]):h==="blob"?new sn(1,[n.response]):new sn(3,[n.response])),w=Nm(au(g=>{const b=S(fi(":",g));if(!H(b))return[I(b).toLocaleLowerCase(),P(":",U(b)).trim()]},fi(`\r
|
|
4
|
+
`,n.getAllResponseHeaders())),{Compare:Qn}),new Su(f,l,c,n.responseURL,w,p)))};const r=se(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{Z(r)}n.withCredentials=e.withCredentials;const s=e.overridenMimeType;if(s!=null){const l=s;n.overrideMimeType(l)}const o=e.overridenResponseType;if(o!=null)switch(o.tag){case 1:{n.responseType="blob";break}case 2:{n.responseType="arraybuffer";break}default:n.responseType="text"}const i=e.timeout;if(i!=null){const l=i|0;n.timeout=l|0}const a=e.content;switch(a.tag){case 1:{n.send(ye(a.fields[0]));break}case 3:{n.send(ye(a.fields[0]));break}case 2:{n.send(ye(a.fields[0]));break}default:n.send()}})}class k extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class Le extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["PascalCase","CamelCase","SnakeCase"]}}function mi(e){return e.slice(void 0,1).toLowerCase()+e.slice(1,e.length)}function Du(e,t){switch(e.tag){case 2:return Ys(mi(t),"[A-Z]","_$0").toLowerCase();case 0:return t;default:return mi(t)}}const Mm=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,hi=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,Tm=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function $m(e){function t(r){return r.replace(hi,"$1-$2-$3-$4-$5")}const n=e.trim().toLowerCase();if(Mm.test(n))return td(n,"{","}","(",")");if(hi.test(n))return t(n);if(Tm.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 Im(e,t){try{return t.contents=$m(e),!0}catch{return!1}}function ss(){let e="";for(let t=0;t++<36;)e+=t*51&52?(t^15?8^Math.random()*(t^20?16:4):4).toString(16):"-";return e}var xs;(function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"})(xs||(xs={}));function Dm(e,t){const[,n,r,s]=e;return{sign:n||"",prefix:r||"",digits:s,radix:t}}function pi(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 Bm(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 Vm(e,t){if(t&xs.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 Lm(e,t,n){const s=/^\s*([\+\-])?(0[xXoObB])?([0-9a-fA-F]+)\s*$/.exec(e.replace(/_/g,""));if(s!=null){const[,,o,i]=s;if(n=n||Vm(o,t),!Bm(n).test(i))return Dm(s,n)}return null}function Om(e,t,n,r,s){const o=Lm(e,t,s);if(o!=null){let i=Number.parseInt(o.sign+o.digits,o.radix);if(!Number.isNaN(i)){const[a,l]=pi(!0,r);!n&&o.radix!==10&&i>=a&&i<=l&&(i=i<<32-r>>32-r);const[u,f]=pi(n,r);if(i>=u&&i<=f)return i}}throw new Error(`The input string ${e} was not in a correct format.`)}function En(e,t,n,r,s){try{return s.contents=Om(e,t,n,r),!0}catch{return!1}}function Bu(e,t){Pm(t);const n=new Date(e);return n.offset=t??new Date().getTimezoneOffset()*-6e4,n}function Pm(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 Rm(){return Bu(-621355968e5,0)}function Um(e){const[t,n]=Ua(e),r=n==null?t.getTimezoneOffset()*-6e4:n==="Z"?0:n*6e4;return Bu(t.getTime(),r)}function Hm(e,t){try{return t.contents=Um(e),!0}catch{return!1}}function sr(e){return e<0?Math.ceil(e):Math.floor(e)}function wi(e=0,t=0,n=0,r=0,s=0){switch(arguments.length){case 1:return zm(arguments[0]);case 3:e=0,t=arguments[0],n=arguments[1],r=arguments[2],s=0;break}return e*864e5+t*36e5+n*6e4+r*1e3+s}function zm(e){return Number(BigInt(e)/10000n)}function Gm(e){return sr(e/864e5)}function jm(e){return sr(e%864e5/36e5)}function Wm(e){return sr(e%36e5/6e4)}function qm(e){return sr(e%6e4/1e3)}function Jm(e){return sr(e%1e3)}function Zm(e,t="c",n){if(["c","g","G"].indexOf(t)===-1)throw new Error("Custom formats are not supported");const r=Math.abs(Gm(e)),s=Math.abs(jm(e)),o=Math.abs(Wm(e)),i=Math.abs(qm(e)),a=Math.abs(Jm(e));return`${e<0?"-":""}${r===0&&(t==="c"||t==="g")?"":t==="c"?r+".":r+":"}${t==="g"?s:G(s,2)}:${G(o,2)}:${G(i,2)}${a===0&&(t==="c"||t==="g")?"":t==="g"?"."+G(a,3):"."+fc(a,3,7)}`}function Km(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 wi(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 s=0,o=0,i=0;const a=r[1]!=null&&r[1]==="-"?-1:1,l=+r[4],u=+r[5];if(r[3]!=null&&(s=+r[3]),r[7]!=null&&(i=+r[7]),r[8]!=null)switch(r[8].length){case 1:o=+r[8]*100;break;case 2:o=+r[8]*10;break;case 3:o=+r[8];break;case 4:o=+r[8]/10;break;case 5:o=+r[8]/100;break;case 6:o=+r[8]/1e3;break;case 7:o=+r[8]/1e4;break;default:throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}return a*wi(s,l,u,i,o)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}function Ym(e,t){try{return t.contents=Km(e),!0}catch{return!1}}class Vu{constructor(t){this.k=t}}function Te(e){return new Vu(e)}function V(e){return e.k}class z extends Vu{constructor(t,n,r,s){super(t),this.left=n,this.right=r,this.h=s|0}}function $e(e,t,n,r){return new z(e,t,n,r)}function K(e){return e.left}function q(e){return e.right}function an(e){return e.h}function Lu(e,t){e:for(;;){const n=e,r=t;if(n!=null){const s=C(n);if(s instanceof z){const o=s;e=K(o),t=Lu(q(o),r+1);continue e}else return r+1|0}else return r|0}}function Qm(e){return Lu(e,0)}function Je(e,t,n){let r,s,o;const i=e;if(i!=null){const f=C(i);o=f instanceof z?(r=f,an(r)):1}else o=0;let a;const l=n;if(l!=null){const f=C(l);a=f instanceof z?(s=f,an(s)):1}else a=0;const u=(o<a?a:o)|0;return u===0?Te(t):$e(t,e,n,u+1)}function _i(e,t,n){let r,s,o,i,a,l,u,f,c;const p=e;if(p!=null){const g=C(p);c=g instanceof z?(r=g,an(r)):1}else c=0;let h;const w=n;if(w!=null){const g=C(w);h=g instanceof z?(s=g,an(s)):1}else h=0;if(h>c+2){const g=C(n);if(g instanceof z){const b=g;if(o=K(b),(o!=null?(i=C(o),i instanceof z?(a=i,an(a)):1):0)>c+1){const _=C(K(b));if(_ instanceof z){const x=_;return Je(Je(e,t,K(x)),V(x),Je(q(x),V(b),q(b)))}else throw new Error("internal error: Set.rebalance")}else return Je(Je(e,t,K(b)),V(b),q(b))}else throw new Error("internal error: Set.rebalance")}else if(c>h+2){const g=C(e);if(g instanceof z){const b=g;if(l=q(b),(l!=null?(u=C(l),u instanceof z?(f=u,an(f)):1):0)>h+1){const _=C(q(b));if(_ instanceof z){const x=_;return Je(Je(K(b),V(b),K(x)),V(x),Je(q(x),t,n))}else throw new Error("internal error: Set.rebalance")}else return Je(K(b),V(b),Je(q(b),t,n))}else throw new Error("internal error: Set.rebalance")}else return Je(e,t,n)}function bn(e,t,n){if(n!=null){const r=C(n),s=e.Compare(t,V(r))|0;if(r instanceof z){const o=r;return s<0?_i(bn(e,t,K(o)),V(o),q(o)):s===0?n:_i(K(o),V(o),bn(e,t,q(o)))}else{const o=e.Compare(t,V(r))|0;return o<0?$e(t,void 0,n,2):o===0?n:$e(t,n,void 0,2)}}else return Te(t)}function Ou(e,t,n){e:for(;;){const r=e,s=t,o=n;if(o!=null){const i=C(o),a=r.Compare(s,V(i))|0;if(i instanceof z){const l=i;if(a<0){e=r,t=s,n=K(l);continue e}else{if(a===0)return!0;e=r,t=s,n=q(l);continue e}}else return a===0}else return!1}}function Pu(e,t){e:for(;;){const n=e,r=t;if(r!=null){const s=C(r);if(s instanceof z){const o=s;Pu(n,K(o)),n(V(o)),e=n,t=q(o);continue e}else n(V(s))}break}}class Xm extends ${constructor(t,n){super(),this.stack=t,this.started=n}}function Ru(e){e:for(;;){const t=e;if(H(t))return le();{const n=I(t),r=U(t);if(n!=null){const s=C(n);if(s instanceof z){const o=s;e=ee([K(o),Te(V(o)),q(o)],r);continue e}else return t}else{e=r;continue e}}}}function gi(e){return new Xm(Ru(D(e)),!1)}function eh(){throw new Error("Enumeration not started")}function th(){throw new Error("Enumeration already started")}function bi(e){if(e.started){const t=e.stack;if(H(t))return th();if(I(t)!=null){const n=C(I(t));return V(n)}else throw new Error("Please report error: Set iterator, unexpected stack for current")}else return eh()}function nh(e){if(e.started){const t=e.stack;if(H(t))return!1;if(I(t)!=null){if(C(I(t))instanceof z)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=Ru(U(t)),!H(e.stack)}else throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}else return e.started=!0,!H(e.stack)}function yi(e){let t=gi(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return bi(t)},"System.Collections.IEnumerator.get_Current"(){return bi(t)},"System.Collections.IEnumerator.MoveNext"(){return nh(t)},"System.Collections.IEnumerator.Reset"(){t=gi(e)},Dispose(){}}}function rh(e,t,n){e:for(;;){const r=e,s=t,o=n;if(H(s))return H(o)?0:-1;if(H(o))return 1;if(I(o)!=null)if(I(s)!=null){const i=C(I(s)),a=C(I(o));if(i instanceof z){const l=i;if(K(l)==null)if(a instanceof z){const u=a;if(K(u)==null){const f=r.Compare(V(l),V(u))|0;if(f!==0)return f|0;e=r,t=Be(q(l),U(s)),n=Be(q(u),U(o));continue e}else{let f,c,p,h,w;switch(H(s)?H(o)?f=2:I(o)!=null?(f=1,h=U(o),w=C(I(o))):f=2:I(s)!=null?(f=0,c=U(s),p=C(I(s))):H(o)?f=2:I(o)!=null?(f=1,h=U(o),w=C(I(o))):f=2,f){case 0:if(p instanceof z){const g=p;e=r,t=ee([K(g),$e(V(g),void 0,q(g),0)],c),n=o;continue e}else{e=r,t=ee([void 0,Te(V(p))],c),n=o;continue e}case 1:if(w instanceof z){const g=w;e=r,t=s,n=ee([K(g),$e(V(g),void 0,q(g),0)],h);continue e}else{e=r,t=s,n=ee([void 0,Te(V(w))],h);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const u=r.Compare(V(l),V(a))|0;if(u!==0)return u|0;e=r,t=Be(q(l),U(s)),n=Be(void 0,U(o));continue e}else{let u,f,c,p,h;switch(H(s)?H(o)?u=2:I(o)!=null?(u=1,p=U(o),h=C(I(o))):u=2:I(s)!=null?(u=0,f=U(s),c=C(I(s))):H(o)?u=2:I(o)!=null?(u=1,p=U(o),h=C(I(o))):u=2,u){case 0:if(c instanceof z){const w=c;e=r,t=ee([K(w),$e(V(w),void 0,q(w),0)],f),n=o;continue e}else{e=r,t=ee([void 0,Te(V(c))],f),n=o;continue e}case 1:if(h instanceof z){const w=h;e=r,t=s,n=ee([K(w),$e(V(w),void 0,q(w),0)],p);continue e}else{e=r,t=s,n=ee([void 0,Te(V(h))],p);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else if(a instanceof z){const l=a;if(K(l)==null){const u=r.Compare(V(i),V(l))|0;if(u!==0)return u|0;e=r,t=Be(void 0,U(s)),n=Be(q(l),U(o));continue e}else{let u,f,c,p,h;switch(H(s)?H(o)?u=2:I(o)!=null?(u=1,p=U(o),h=C(I(o))):u=2:I(s)!=null?(u=0,f=U(s),c=C(I(s))):H(o)?u=2:I(o)!=null?(u=1,p=U(o),h=C(I(o))):u=2,u){case 0:if(c instanceof z){const w=c;e=r,t=ee([K(w),$e(V(w),void 0,q(w),0)],f),n=o;continue e}else{e=r,t=ee([void 0,Te(V(c))],f),n=o;continue e}case 1:if(h instanceof z){const w=h;e=r,t=s,n=ee([K(w),$e(V(w),void 0,q(w),0)],p);continue e}else{e=r,t=s,n=ee([void 0,Te(V(h))],p);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const l=r.Compare(V(i),V(a))|0;if(l!==0)return l|0;e=r,t=U(s),n=U(o);continue e}}else{C(I(o));let i,a,l,u,f;switch(H(s)?H(o)?i=2:I(o)!=null?(i=1,u=U(o),f=C(I(o))):i=2:I(s)!=null?(i=0,a=U(s),l=C(I(s))):H(o)?i=2:I(o)!=null?(i=1,u=U(o),f=C(I(o))):i=2,i){case 0:if(l instanceof z){const c=l;e=r,t=ee([K(c),$e(V(c),void 0,q(c),0)],a),n=o;continue e}else{e=r,t=ee([void 0,Te(V(l))],a),n=o;continue e}case 1:if(f instanceof z){const c=f;e=r,t=s,n=ee([K(c),$e(V(c),void 0,q(c),0)],u);continue e}else{e=r,t=s,n=ee([void 0,Te(V(f))],u);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else if(I(s)!=null){C(I(s));let i,a,l,u,f;switch(H(s)?H(o)?i=2:I(o)!=null?(i=1,u=U(o),f=C(I(o))):i=2:I(s)!=null?(i=0,a=U(s),l=C(I(s))):H(o)?i=2:I(o)!=null?(i=1,u=U(o),f=C(I(o))):i=2,i){case 0:if(l instanceof z){const c=l;e=r,t=ee([K(c),$e(V(c),void 0,q(c),0)],a),n=o;continue e}else{e=r,t=ee([void 0,Te(V(l))],a),n=o;continue e}case 1:if(f instanceof z){const c=f;e=r,t=s,n=ee([K(c),$e(V(c),void 0,q(c),0)],u);continue e}else{e=r,t=s,n=ee([void 0,Te(V(f))],u);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else{e=r,t=U(s),n=U(o);continue e}}}function Si(e,t,n){return t==null?n==null?0:-1:n==null?1:rh(e,D(t),D(n))|0}function sh(e,t,n){let r=n;Pu(s=>{ft(t,r,s),r=r+1|0},e)}function oh(e,t,n){e:for(;;){const r=e,s=t,o=n;if(o["System.Collections.IEnumerator.MoveNext"]()){e=r,t=bn(r,o["System.Collections.Generic.IEnumerator`1.get_Current"](),s),n=o;continue e}else return s}}function ih(e,t){return Br((n,r)=>bn(e,r,n),void 0,t)}function ah(e,t){return nt((n,r)=>bn(e,r,n),void 0,t)}function Uu(e,t){if(et(t))return ih(e,t);if(t instanceof he)return ah(e,t);{const n=se(t);try{return oh(e,void 0,n)}finally{Z(n)}}}class lo{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return ch(this)|0}Equals(t){let n;const r=this;return t instanceof lo&&(n=t,Si(mn(r),Ye(r),Ye(n))===0)}toString(){return"set ["+P("; ",xe(n=>tt(n),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(){const t=this;return Array.from(t)}CompareTo(t){const n=this;return Si(mn(n),Ye(n),Ye(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 Ou(mn(n),t,Ye(n))}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){sh(Ye(this),t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return os(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return os(this)|0}GetEnumerator(){return yi(Ye(this))}[Symbol.iterator](){return Tr(se(this))}"System.Collections.IEnumerable.GetEnumerator"(){return yi(Ye(this))}get size(){return os(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 Hu(this,t)}keys(){return xe(n=>n,this)}values(){return xe(n=>n,this)}entries(){return xe(n=>[n,n],this)}forEach(t,n){const r=this;Pr(s=>{t(s,s,r)},r)}}function Ur(e,t){return new lo(e,t)}function mn(e){return e.comparer}function Ye(e){return e.tree}function uh(e){return Ur(e,void 0)}function lh(e,t){return Ur(mn(e),bn(mn(e),t,Ye(e)))}function os(e){return Qm(Ye(e))}function Hu(e,t){return Ou(mn(e),t,Ye(e))}function ch(e){let t=0;const n=se(e);try{for(;n["System.Collections.IEnumerator.MoveNext"]();){const r=n["System.Collections.Generic.IEnumerator`1.get_Current"]();t=(t<<1)+Ct(r)+631|0}}finally{Z(n)}return Math.abs(t)|0}function As(e,t){return Hu(t,e)}function dh(e,t){return lh(t,e)}function fh(e){return uh(e)}function mh(e,t){return Ur(t,Uu(t,e))}function hh(e,t){return Ur(t,Uu(t,e))}function Dn(e,t,n){try{return"Expecting "+e+" but instead got:"+(n?`
|
|
5
5
|
`:" ")+(JSON.stringify(t,null,4)+"")}catch{return"Expecting "+e+" but decoder failed. Couldn't report given value due to circular structure."+(n?`
|
|
6
|
-
`:" ")}}function
|
|
7
|
-
Reason: `+t.fields[2]:t.tag===3?
|
|
6
|
+
`:" ")}}function ph(e,t){const n=t.tag===2?Dn(t.fields[0],t.fields[1],!0):t.tag===1?Dn(t.fields[0],t.fields[1],!1)+`
|
|
7
|
+
Reason: `+t.fields[2]:t.tag===3?Dn(t.fields[0],t.fields[1],!0):t.tag===4?Dn(t.fields[0],t.fields[1],!0)+("\nNode `"+t.fields[2]+"` is unkown."):t.tag===5?"Expecting "+t.fields[0]+`.
|
|
8
8
|
`+(JSON.stringify(t.fields[1],null,4)+""):t.tag===7?`The following errors were found:
|
|
9
9
|
|
|
10
|
-
`+
|
|
10
|
+
`+P(`
|
|
11
11
|
|
|
12
|
-
`,t.fields[0]):t.tag===6?"The following `failure` occurred with the decoder: "+t.fields[0]:
|
|
12
|
+
`,t.fields[0]):t.tag===6?"The following `failure` occurred with the decoder: "+t.fields[0]:Dn(t.fields[0],t.fields[1],!1);return t.tag===7?n:"Error at: `"+e+"`\n"+n}function zu(e,t,n){const r=t(e,n);if(r.tag===1){const s=r.fields[0];return new d(1,[ph(s[0],s[1])])}else return new d(0,[r.fields[0]])}function nn(e,t){try{return zu("$",e,JSON.parse(t))}catch(n){if(n instanceof SyntaxError)return new d(1,["Given an invalid JSON: "+n.message]);throw n}}function Gu(e,t){return typeof t=="string"?new d(0,[t]):new d(1,[[e,new k(0,["a string",t])]])}function wh(e,t){if(typeof t=="string"){const n=t;return n.length===1?new d(0,[n[0]]):new d(1,[[e,new k(0,["a single character string",t])]])}else return new d(1,[[e,new k(0,["a char",t])]])}function _h(e,t){if(typeof t=="string"){let n,r="00000000-0000-0000-0000-000000000000";return n=[Im(t,new je(()=>r,s=>{r=s})),r],n[0]?new d(0,[n[1]]):new d(1,[[e,new k(0,["a guid",t])]])}else return new d(1,[[e,new k(0,["a guid",t])]])}function gh(e,t){return t==null?new d(0,[void 0]):new d(1,[[e,new k(0,["null",t])]])}const vi=e=>t=>{const n=e,r=t;if(typeof r=="number"){const s=r;return isFinite(s)&&Math.floor(s)===s?-128<=s&&s<=127?new d(0,[(s+128&255)-128]):new d(1,[[n,new k(1,["a sbyte",s,"Value was either too large or too small for a sbyte"])]]):new d(1,[[n,new k(1,["a sbyte",s,"Value is not an integral value"])]])}else if(typeof r=="string"){let s,o=0;return s=[En(r,511,!1,8,new je(()=>o,i=>{o=i|0})),o],s[0]?new d(0,[s[1]]):new d(1,[[n,new k(0,["a sbyte",r])]])}else return new d(1,[[n,new k(0,["a sbyte",r])]])},Fi=e=>t=>{const n=e,r=t;if(typeof r=="number"){const s=r;return isFinite(s)&&Math.floor(s)===s?0<=s&&s<=255?new d(0,[s&255]):new d(1,[[n,new k(1,["a byte",s,"Value was either too large or too small for a byte"])]]):new d(1,[[n,new k(1,["a byte",s,"Value is not an integral value"])]])}else if(typeof r=="string"){let s,o=0;return s=[En(r,511,!0,8,new je(()=>o,i=>{o=i})),o],s[0]?new d(0,[s[1]]):new d(1,[[n,new k(0,["a byte",r])]])}else return new d(1,[[n,new k(0,["a byte",r])]])},Ci=e=>t=>{const n=e,r=t;if(typeof r=="number"){const s=r;return isFinite(s)&&Math.floor(s)===s?-32768<=s&&s<=32767?new d(0,[(s+32768&65535)-32768]):new d(1,[[n,new k(1,["an int16",s,"Value was either too large or too small for an int16"])]]):new d(1,[[n,new k(1,["an int16",s,"Value is not an integral value"])]])}else if(typeof r=="string"){let s,o=0;return s=[En(r,511,!1,16,new je(()=>o,i=>{o=i|0})),o],s[0]?new d(0,[s[1]]):new d(1,[[n,new k(0,["an int16",r])]])}else return new d(1,[[n,new k(0,["an int16",r])]])},xi=e=>t=>{const n=e,r=t;if(typeof r=="number"){const s=r;return isFinite(s)&&Math.floor(s)===s?0<=s&&s<=65535?new d(0,[s&65535]):new d(1,[[n,new k(1,["an uint16",s,"Value was either too large or too small for an uint16"])]]):new d(1,[[n,new k(1,["an uint16",s,"Value is not an integral value"])]])}else if(typeof r=="string"){let s,o=0;return s=[En(r,511,!0,16,new je(()=>o,i=>{o=i})),o],s[0]?new d(0,[s[1]]):new d(1,[[n,new k(0,["an uint16",r])]])}else return new d(1,[[n,new k(0,["an uint16",r])]])},Ai=e=>t=>{const n=e,r=t;if(typeof r=="number"){const s=r;return isFinite(s)&&Math.floor(s)===s?-2147483648<=s&&s<=2147483647?new d(0,[~~s]):new d(1,[[n,new k(1,["an int",s,"Value was either too large or too small for an int"])]]):new d(1,[[n,new k(1,["an int",s,"Value is not an integral value"])]])}else if(typeof r=="string"){let s,o=0;return s=[En(r,511,!1,32,new je(()=>o,i=>{o=i|0})),o],s[0]?new d(0,[s[1]]):new d(1,[[n,new k(0,["an int",r])]])}else return new d(1,[[n,new k(0,["an int",r])]])},Ni=e=>t=>{const n=e,r=t;if(typeof r=="number"){const s=r;return isFinite(s)&&Math.floor(s)===s?0<=s&&s<=4294967295?new d(0,[s>>>0]):new d(1,[[n,new k(1,["an uint32",s,"Value was either too large or too small for an uint32"])]]):new d(1,[[n,new k(1,["an uint32",s,"Value is not an integral value"])]])}else if(typeof r=="string"){let s,o=0;return s=[En(r,511,!0,32,new je(()=>o,i=>{o=i})),o],s[0]?new d(0,[s[1]]):new d(1,[[n,new k(0,["an uint32",r])]])}else return new d(1,[[n,new k(0,["an uint32",r])]])};function bh(e,t){return typeof t=="boolean"?new d(0,[t]):new d(1,[[e,new k(0,["a boolean",t])]])}function yh(e,t){return typeof t=="number"?new d(0,[t]):new d(1,[[e,new k(0,["a float",t])]])}function Sh(e,t){return typeof t=="number"?new d(0,[t]):new d(1,[[e,new k(0,["a float32",t])]])}function vh(e,t){if(typeof t=="string"){let n,r=Uc();return n=[zc(t,new je(()=>r,s=>{r=s})),r],n[0]?new d(0,[Gc(n[1])]):new d(1,[[e,new k(0,["a datetime",t])]])}else return new d(1,[[e,new k(0,["a datetime",t])]])}function Fh(e,t){if(typeof t=="string"){let n,r=Rm();return n=[Hm(t,new je(()=>r,s=>{r=s})),r],n[0]?new d(0,[n[1]]):new d(1,[[e,new k(0,["a datetimeoffset",t])]])}else return new d(1,[[e,new k(0,["a datetime",t])]])}function Ch(e,t){if(typeof t=="string"){let n,r=0;return n=[Ym(t,new je(()=>r,s=>{r=s})),r],n[0]?new d(0,[n[1]]):new d(1,[[e,new k(0,["a timespan",t])]])}else return new d(1,[[e,new k(0,["a timespan",t])]])}function ki(e,t,n,r){let s;const o=n+".["+Wt(e)+"]";if(Array.isArray(r)){const i=r;return e<i.length?t(o,re(e,i)):new d(1,[[o,new k(5,["a longer array. Need index `"+Wt(e)+"` but there are only `"+(s=i.length,Wt(s))+"` entries",r])]])}else return new d(1,[[o,new k(0,["an array",r])]])}function xh(e,t,n){return n==null?new d(0,[void 0]):mt(ye,e(t,n))}function Ei(e,t,n){if(Array.isArray(n)){let r=-1;return mt(to,Br((s,o)=>{if(r=r+1|0,s.tag===0){const i=e(t+".["+Wt(r)+"]",o);return i.tag===0?new d(0,[Be(i.fields[0],s.fields[0])]):new d(1,[i.fields[0]])}else return s},new d(0,[le()]),n))}else return new d(1,[[t,new k(0,["a list",n])]])}function Ah(e,t,n){if(Array.isArray(n)){let r=-1;return mt(im,Br((s,o)=>{if(r=r+1|0,s.tag===0){const i=e(t+".["+Wt(r)+"]",o);return i.tag===0?new d(0,[W([i.fields[0]],s.fields[0])]):new d(1,[i.fields[0]])}else return s},new d(0,[[]]),n))}else return new d(1,[[t,new k(0,["a seq",n])]])}function Mi(e,t,n){if(Array.isArray(n)){let r=-1;const s=n;return Br((o,i)=>{if(r=r+1|0,o.tag===0){const a=o.fields[0],l=e(t+".["+Wt(r)+"]",i);return l.tag===0?(ft(a,r,l.fields[0]),new d(0,[a])):new d(1,[l.fields[0]])}else return o},new d(0,[Dr(new Array(s.length),0,s.length,null)]),s)}else return new d(1,[[t,new k(0,["an array",n])]])}function Nh(e,t,n){return((s,o)=>{e:for(;;){const i=s,a=o;if(H(i))return new d(1,[[t,new k(7,[a])]]);{const l=zu(t,j(I(i)),n);if(l.tag===1){s=U(i),o=no(a,D(l.fields[0]));continue e}else return new d(0,[l.fields[0]])}}})(e,le())}function kh(e,t,n){return new d(0,[e])}function Ti(e,t,n,r){const s=t(n,r);return s.tag===0?e(s.fields[0],n,r):new d(1,[s.fields[0]])}function Eh(e,t,n,r){const s=t(n,r);return s.tag===1?new d(1,[s.fields[0]]):new d(0,[e(s.fields[0])])}function Mh(e,t){let n;const r=e;return n=s=>o=>ki(0,r,s,o),s=>o=>Ti(ys(i=>{let a;const l=t;return a=u=>f=>ki(1,l,u,f),u=>f=>Ti((c,p,h)=>kh([i,c]),j(a),u,f)}),j(n),s,o)}function Th(e){return Am(e,{Compare:ze})}function $h(e){return hh(e,{Compare:ze})}function Ih(e,t,n){return n!==null&&Object.getPrototypeOf(n||!1)===Object.prototype?uu((r,s)=>{const o=r[0];return s.tag===0?mt(i=>Be(i,s.fields[0]),r[1](t+"."+o)(n[o])):s},e,new d(0,[le()])):new d(1,[[t,new k(0,["an object",n])]])}function Dh(e,t,n,r){return r!==null&&Object.getPrototypeOf(r||!1)===Object.prototype?Or((s,o)=>{if(s.tag===0){const i=e(n,o);if(i.tag===0){const a=t(n+"."+o,r[o]);return a.tag===0?new d(0,[Be([i.fields[0],a.fields[0]],s.fields[0])]):new d(1,[a.fields[0]])}else return new d(1,[i.fields[0]])}else return s},new d(0,[le()]),Object.keys(r)):new d(1,[[n,new k(0,["an object",r])]])}function ju(e,t,n,r){let s;const o=t.length+e|0;if(o!==r.length)return new d(1,[[n,new k(6,[(s=r.length|0,_n(Vt("Expected array of length %i but got %i"))(o)(s))])]]);{let i=new d(0,[le()]);for(let a=e;a<=r.length-1;a++)if(i.tag===0){const l=i.fields[0],u=_n(Vt("%s[%i]"))(n)(a),f=re(a-e,t),c=re(a,r);i=mt(p=>Be(p,l),f(u)(c))}return mt(to,i)}}function $i(e,t,n,r,s,o){const i=_d(a=>dn(a)===r,eu(n));if(i!=null){const a=i,l=An(u=>Qe(e,t,!1,u[1]),su(a));return mt(u=>cd(a,Nn(u)),l.length===0&&o.length<=1?new d(0,[le()]):ju(1,l,s,o))}else return new d(1,[[s,new k(6,["Cannot find case "+r+" in "+Q(n)])]])}function Ii(e,t,n,r){let s;const o=new je(Ne());let i;const a=Q(r);i=a===""?e:$u(a,o,e);let l;if(ru(r)){const u=An(f=>[Du(t,dn(f)),Qe(i,t,!1,f[1])],zn(r));l=f=>c=>mt(p=>dd(r,Nn(p)),Ih(u,f,c))}else if(nu(r))l=u=>f=>{if(typeof f=="string")return $i(i,t,r,f,u,[]);if(Array.isArray(f)){const c=f;return mf(p=>$i(i,t,r,p,u,c),Gu(u+"[0]",re(0,c)))}else return new d(1,[[u,new k(0,["a string or array",f])]])};else if(n)l=u=>f=>new d(1,[[u,new k(2,["an extra coder for "+Q(r),f])]]);else throw new Error((s=Q(r),_n(Vt(`Cannot generate auto decoder for %s. Please pass an extra decoder.
|
|
13
13
|
|
|
14
|
-
Documentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders`))(s)));return o.contents=l,l}function
|
|
14
|
+
Documentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders`))(s)));return o.contents=l,l}function Qe(e,t,n,r){let s,o,i,a;const l=Q(r),u=Iu(l,e);if(u==null)if(Ka(r)){const f=Qe(e,t,!1,tr(r));return c=>p=>Mi(j(f),c,p)}else if(Xs(r))switch(Q(Xa(r))){case"System.SByte":return c=>p=>{const h=r,w=c,g=p,b=vi(w)(g);if(b.tag===1)return new d(1,[b.fields[0]]);{const _=b.fields[0]|0;return tn(_,Xt(h),{Equals:(x,v)=>x===v,GetHashCode:wt})?new d(0,[en(h,_.toString())]):new d(1,[[w,new k(1,[Q(h),g,"Unkown value provided for the enum"])]])}};case"System.Byte":return c=>p=>{const h=r,w=c,g=p,b=Fi(w)(g);if(b.tag===1)return new d(1,[b.fields[0]]);{const _=b.fields[0];return tn(_,Xt(h),{Equals:(x,v)=>x===v,GetHashCode:wt})?new d(0,[en(h,_.toString())]):new d(1,[[w,new k(1,[Q(h),g,"Unkown value provided for the enum"])]])}};case"System.Int16":return c=>p=>{const h=r,w=c,g=p,b=Ci(w)(g);if(b.tag===1)return new d(1,[b.fields[0]]);{const _=b.fields[0]|0;return tn(_,Xt(h),{Equals:(x,v)=>x===v,GetHashCode:wt})?new d(0,[en(h,mc(_))]):new d(1,[[w,new k(1,[Q(h),g,"Unkown value provided for the enum"])]])}};case"System.UInt16":return c=>p=>{const h=r,w=c,g=p,b=xi(w)(g);if(b.tag===1)return new d(1,[b.fields[0]]);{const _=b.fields[0];return tn(_,Xt(h),{Equals:(x,v)=>x===v,GetHashCode:wt})?new d(0,[en(h,_.toString())]):new d(1,[[w,new k(1,[Q(h),g,"Unkown value provided for the enum"])]])}};case"System.Int32":return c=>p=>{const h=r,w=c,g=p,b=Ai(w)(g);if(b.tag===1)return new d(1,[b.fields[0]]);{const _=b.fields[0]|0;return tn(_,Xt(h),{Equals:(x,v)=>x===v,GetHashCode:wt})?new d(0,[en(h,Wt(_))]):new d(1,[[w,new k(1,[Q(h),g,"Unkown value provided for the enum"])]])}};case"System.UInt32":return c=>p=>{const h=r,w=c,g=p,b=Ni(w)(g);if(b.tag===1)return new d(1,[b.fields[0]]);{const _=b.fields[0];return tn(_,Xt(h),{Equals:(x,v)=>x===v,GetHashCode:wt})?new d(0,[en(h,_.toString())]):new d(1,[[w,new k(1,[Q(h),g,"Unkown value provided for the enum"])]])}};default:{const c=Q(r),p=ja(Vt(`Cannot generate auto decoder for %s.
|
|
15
15
|
Thoth.Json.Net only support the following enum types:
|
|
16
16
|
- sbyte
|
|
17
17
|
- byte
|
|
@@ -20,7 +20,21 @@ Thoth.Json.Net only support the following enum types:
|
|
|
20
20
|
- int
|
|
21
21
|
- uint32
|
|
22
22
|
If you can't use one of these types, please pass an extra decoder.
|
|
23
|
-
`))(c);return m=>p(m)}}else if(ic(r))if(ma(r)){const f=cr(c=>Re(e,t,!1,c),dc(r));return c=>p=>Array.isArray(p)?Xe(m=>_c(dn(m)),Ga(0,f,c,p)):new d(1,[[c,new k(0,["an array",p])]])}else switch(oe(ac(r))){case"Microsoft.FSharp.Core.FSharpOption`1[System.Object]":return s=Re(e,t,!0,we(0,nt(r))),c=>p=>Of(z(s),c,p);case"Microsoft.FSharp.Collections.FSharpList`1[System.Object]":return o=Re(e,t,!1,we(0,nt(r))),c=>p=>qo(z(o),c,p);case"System.Collections.Generic.IEnumerable`1[System.Object]":return i=Re(e,t,!1,we(0,nt(r))),c=>p=>Df(z(i),c,p);case"Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]":{const c=Re(e,t,!1,we(0,nt(r))),p=Re(e,t,!1,we(1,nt(r)));let m;const w=v([b=>g=>Wf(z(c),z(p),b,g),(a=Hf(z(c),z(p)),b=>g=>qo(z(a),b,g))]);return m=b=>g=>Rf(w,b,g),b=>g=>Pf(zf,z(m),b,g)}case"Microsoft.FSharp.Collections.FSharpSet`1[System.Object]":{const c=Re(e,t,!1,we(0,nt(r)));return p=>m=>{const w=Zo(z(c),p,m);return w.tag===0?new d(0,[jf(w.fields[0])]):new d(1,[w.fields[0]])}}default:return Yo(e,t,n,r)}else switch(l){case"System.Boolean":return f=>c=>$f(f,c);case"Microsoft.FSharp.Core.Unit":return f=>c=>Ef(f,c);case"System.String":return f=>c=>ja(f,c);case"System.Char":return f=>c=>Nf(f,c);case"System.SByte":return Uo;case"System.Byte":return Po;case"System.Int16":return Ho;case"System.UInt16":return zo;case"System.Int32":return jo;case"System.UInt32":return Go;case"System.Double":return f=>c=>Tf(f,c);case"System.Single":return f=>c=>Bf(f,c);case"System.DateTime":return f=>c=>If(f,c);case"System.DateTimeOffset":return f=>c=>Vf(f,c);case"System.TimeSpan":return f=>c=>Lf(f,c);case"System.Guid":return f=>c=>Mf(f,c);case"System.Object":return f=>c=>new d(0,[c]);default:return Yo(e,t,n,r)}else{const f=u;return c=>p=>f.contents(c)(p)}}function qf(e){return Ba({Compare:ir})}function Gt(e,t,n){const r=ur(t,new At(0,[]));return Re(qf(),r,!1,e)}class Zf extends L{constructor(t){super(),this.SmsfChoice=t}}function Jf(){return We("SuperSelection.UI.BackendService.SMSFChoiceResponse",[],Zf,()=>[["SmsfChoice",Qe(Yf())]])}class Kf extends L{constructor(t,n,r,s,o,i,a,l,u){super(),this.Abn=t,this.FundName=n,this.FundAddress=r,this.Bsb=s,this.BankAccountName=o,this.BankAccountNumber=i,this.ElectronicServiceAddress=a,this.MemberFirstName=l,this.MemberFamilyName=u}}function Yf(){return We("SuperSelection.UI.BackendService.SMSFChoiceDto",[],Kf,()=>[["Abn",G],["FundName",G],["FundAddress",Xf()],["Bsb",G],["BankAccountName",G],["BankAccountNumber",G],["ElectronicServiceAddress",G],["MemberFirstName",Qe(G)],["MemberFamilyName",Qe(G)]])}class Qf extends L{constructor(t,n,r,s,o){super(),this.AddressLine1=t,this.AddressLine2=n,this.City=r,this.State=s,this.Postcode=o}}function Xf(){return We("SuperSelection.UI.BackendService.AustralianFundAddressDto",[],Qf,()=>[["AddressLine1",G],["AddressLine2",Qe(G)],["City",G],["State",G],["Postcode",G]])}class eh extends L{constructor(t){super(),this.BankDetails=t}}function th(){return We("SuperSelection.UI.BackendService.BsbLookupResponse",[],eh,()=>[["BankDetails",Qe(rh())]])}class nh extends L{constructor(t,n,r){super(),this.Bsb=t,this.Bank=n,this.Branch=r}}function rh(){return We("SuperSelection.UI.BackendService.BankDetailsDto",[],nh,()=>[["Bsb",G],["Bank",G],["Branch",G]])}class sh extends L{constructor(t,n,r,s,o){super(),this.Usi=t,this.FundName=n,this.MemberNumber=r,this.MemberFirstName=s,this.MemberFamilyName=o}}function oh(){return We("SuperSelection.UI.BackendService.OwnFundChoiceDto",[],sh,()=>[["Usi",G],["FundName",G],["MemberNumber",G],["MemberFirstName",Qe(G)],["MemberFamilyName",Qe(G)]])}class ih extends L{constructor(t){super(),this.OwnFundChoice=t}}function ah(){return We("SuperSelection.UI.BackendService.OwnFundChoiceResponse",[],ih,()=>[["OwnFundChoice",Qe(oh())]])}class uh extends L{constructor(t){super(),this.EmployersDefaultFund=t}}function lh(){return We("SuperSelection.UI.BackendService.DefaultFundResponse",[],uh,()=>[["EmployersDefaultFund",Qe(dh())]])}class ch extends L{constructor(t,n){super(),this.FundUsi=t,this.FundName=n}}function dh(){return We("SuperSelection.UI.BackendService.DefaultFundDetailDto",[],ch,()=>[["FundUsi",G],["FundName",G]])}class fh extends L{constructor(t,n){super(),this.Data=t,this.Result=n}}function hh(){return We("SuperSelection.UI.BackendService.AustralianSuperFundListDto",[],fh,()=>[["Data",rc(_h())],["Result",ph()]])}class mh extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Success","TooManyResults"]}}function ph(){return nc("SuperSelection.UI.BackendService.AustralianSuperFundListResultDto",[],mh,()=>[[],[]])}class wh extends L{constructor(t,n,r,s,o,i,a,l){super(),this.Abn=t,this.FundName=n,this.Usi=r,this.ProductName=s,this.ContributionRestriction=o,this.DateFrom=i,this.DateTo=a,this.IsActive=l}}function _h(){return We("SuperSelection.UI.BackendService.AustralianSuperFundDto",[],wh,()=>[["Abn",G],["FundName",G],["Usi",G],["ProductName",G],["ContributionRestriction",Gr],["DateFrom",So("System.DateTimeOffset")],["DateTo",So("System.DateTimeOffset")],["IsActive",Qe(Gr)]])}class gh{constructor(t,n){this.accessToken=n,this.baseUrl=`${t}/super-selection/backend`}get GetSmsfChoice(){const t=this;return()=>Pn(t,5,V.Delay(()=>{let n;return V.Bind(zt((n=Pt(new Ft(0,[]),Ut(`${t.baseUrl}/v1.0/super-choice/smsf`)),Ht(Rt(`Bearer ${t.accessToken}`),n))),r=>{const s=r;return s.statusCode===200?V.Return(jt(z(Gt(Jf(),new At(1,[]))),s.responseText)):V.Return(new d(1,["Failed to retrieve SMSF choice"]))})}))}get BsbLookup(){const t=this;return n=>V.Delay(()=>{let r;return V.Bind(zt((r=Pt(new Ft(0,[]),Ut(`${t.baseUrl}/v1.0/bsb-lookup/${n}`)),Ht(Rt(`Bearer ${t.accessToken}`),r))),s=>{const o=s;return o.statusCode===200?V.Return(jt(z(Gt(th(),new At(1,[]))),o.responseText)):V.Return(new d(1,["Failed to lookup BSB"]))})})}get IsRegulatedFundAbn(){const t=this;return n=>V.Delay(()=>{let r;return V.Bind(zt((r=Pt(new Ft(0,[]),Ut(`${t.baseUrl}/v1.0/super-choice/smsf/${n}/validate`)),Ht(Rt(`Bearer ${t.accessToken}`),r))),s=>{const o=s;return o.statusCode===200?V.Return(Xe(i=>!i.Result,jt(z(Gt(tc(["Result",Gr]),new At(1,[]))),o.responseText))):V.Return(new d(1,["Failed to query ABN"]))})})}get GetOwnFundChoice(){const t=this;return()=>Pn(t,5,V.Delay(()=>{let n;return V.Bind(zt((n=Pt(new Ft(0,[]),Ut(`${t.baseUrl}/v1.0/super-choice/byof`)),Ht(Rt(`Bearer ${t.accessToken}`),n))),r=>{const s=r;return s.statusCode===200?V.Return(jt(z(Gt(ah(),new At(1,[]))),s.responseText)):V.Return(new d(1,["Failed to retrieve own fund choice"]))})}))}get GetDefaultFund(){const t=this;return()=>Pn(t,5,V.Delay(()=>{let n;return V.Bind(zt((n=Pt(new Ft(0,[]),Ut(`${t.baseUrl}/v1.0/super-choice/default`)),Ht(Rt(`Bearer ${t.accessToken}`),n))),r=>{const s=r;return s.statusCode===200?V.Return(jt(z(Gt(lh(),new At(1,[]))),s.responseText)):V.Return(new d(1,["Failed to retrieve default fund choice"]))})}))}get GetAustralianFundList(){const t=this;return n=>{const r=n[1];return Pn(t,5,V.Delay(()=>{let s;const o=r==null?"":`&maxRecordCount=${r}`;return V.Bind(zt((s=Pt(new Ft(0,[]),Ut(`${t.baseUrl}/v1.0/super-choice/australian-funds-v2?search=${n[0]}${o}`)),Ht(Rt(`Bearer ${t.accessToken}`),s))),i=>{const a=i;return a.statusCode===200?V.Return(jt(z(Gt(hh(),new At(1,[]))),a.responseText)):V.Return(new d(1,["Failed to retrieve fund list"]))})}))}}}function $s(e,t){return new gh(e,t)}function Pn(e,t,n){const r=s=>V.Delay(()=>V.Bind(n,o=>{const i=o;return i.tag===1?s>1?V.Bind(va(1e3),()=>V.ReturnFrom(r(s-1))):V.Return(new d(1,[i.fields[0]])):V.Return(new d(0,[i.fields[0]]))}));return r(t)}class bh{constructor(t,n,r){this.OnNext=t,this.OnError=n||(s=>{}),this.OnCompleted=r||(()=>{})}}function yh(e,t){t.Subscribe(new bh(e))}class vh{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 Sh(t=>{this._add(t)},t=>{this._remove(t)})}Trigger(t,n){let r=null;const s=n===void 0?t:(r=t,n);this.delegates.forEach(o=>{o(r,s)})}}class xh extends vh{}function Sh(e,t){return{AddHandler(n){e(n)},RemoveHandler(n){t(n)},Subscribe(n){const r=(s,o)=>n.OnNext(o);return e(r),{Dispose(){t(r)}}}}}class Ch{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 xh}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 Fh(e,t){console.error(Te(e),t)}function Ah(e,t){let n,r=new Ch(e);r.AutoReset=!1,n=r,yh(t,n.Elapsed()),n.Enabled=!0,n.Start()}function Qo(e,t,n){Sn(r=>{try{r(t)}catch(s){e(s)}},n)}function A(){return he()}function It(e,t){return As(n=>r=>{n(s=>{r(e(s))})},t)}function Wa(e){return $c(e)}function lt(e){return T(e)}function wt(e,t,n,r){return T(s=>{e(V.Delay(()=>V.Bind(Jc(t(n)),o=>{const i=o;return i.tag===0&&s(r(i.fields[0])),V.Zero()})))})}function _t(e){Ah(1,t=>{Qc(e)})}class kh extends L{constructor(t,n,r,s,o,i,a,l,u,f,c,p,m){super(),this.FundName=t,this.FundAbn=n,this.FundEsa=r,this.FundAddressLine1=s,this.FundAddressLine2=o,this.FundCity=i,this.FundState=a,this.FundPostcode=l,this.MemberFirstName=u,this.MemberLastName=f,this.BankAccountName=c,this.BankAccountBsb=p,this.BankAccountNumber=m}}function Ts(e,t){const n={detail:t};return new CustomEvent(e,n)}const Nh=Ts("smsf-loaded",{sender:"super-smsf"}),Mh=Ts("smsf-cancelled",{sender:"super-smsf"});function Eh(e){return Ts("smsf-completed",{bankAccountName:e.BankAccountName,bankAccountNumber:e.BankAccountNumber,bankBsb:e.BankAccountBsb,fundAbn:e.FundAbn,fundAddressLine1:e.FundAddressLine1,fundAddressLine2:ys(e.FundAddressLine2),fundCity:e.FundCity,fundEsa:e.FundEsa,fundName:e.FundName,fundPostcode:e.FundPostcode,fundState:e.FundState,memberFirstName:e.MemberFirstName,memberLastName:e.MemberLastName,sender:"super-smsf"})}class Bs extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Loaded","Cancelled","Completed"]}}function Is(e){let t;t=e.tag===1?Mh:e.tag===2?Eh(e.fields[0]):Nh,document.dispatchEvent(t)}function $h(e){return lt(t=>{Is(new Bs(2,[e]))})}function Th(){return lt(e=>{Is(new Bs(0,[]))})}function Bh(){return lt(e=>{Is(new Bs(1,[]))})}function Ih(){return he()}function Vs(e){return D("/",e)}function Vh(e,t){const n=new Error("Duplicate SubId");return e(["Duplicate SubId: "+Vs(t),n])}function qa(e,t,n){try{Y(n)}catch(r){e(["Error stopping subscription: "+Vs(t),r])}}function Lh(e,t,n,r){try{return[n,r(t)]}catch(s){e(["Error starting subscription: "+Vs(n),s]);return}}function Oh(e,t){Sn(n=>{qa(e,n[0],n[1])},t)}function Xo(e,t,n,r,s,o){return Sn(i=>{Vh(e,i)},n),Sn(i=>{qa(e,i[0],i[1])},r),Fs(s,Oc(i=>Lh(e,t,i[0],i[1]),o))}function Dh(){return[he(),Cf({Compare:Be}),he()]}function Rh(e,t,n,r,s){return Jr(e,r)?[Ne(e,n),r,s]:[n,Sf(e,r),Ne([e,t],s)]}function Uh(e){return kc((t,n)=>Rh(t[0],t[1],n[0],n[1],n[2]),e,Dh())}const Ph=he();function ei(e,t){const n=Ff(As(i=>i[0],e),{Compare:Be}),r=Uh(t),s=r[1],o=r[0];if(n.Equals(s))return[o,he(),e,he()];{const i=Lc(a=>Jr(a[0],s),e);return[o,i[1],i[0],Vc(a=>!Jr(a[0],n),r[2])]}}function Hh(e,t,n,r){const s=Be(e,n)|0;if(s===0)throw new Error("The step of a range cannot be zero");const o=s>0;return i=>{const a=Be(i,t)|0;return o&&a<=0||!o&&a>=0?[i,r(i,e)]:void 0}}function zh(e,t,n,r,s){const o=Hh(t,n,r,s);return M(()=>md(o,e))}function Za(e,t,n){return zh(e,t,n,0,(r,s)=>r+s)}class Xt extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Writable","ReadWritable"]}}class jh{constructor(t){this.state=new Xt(0,[Ss(new Array(Wr(t,10)),0,Wr(t,10),null),0])}}function Gh(e){return new jh(e)}function ti(e){const t=e.state;if(t.tag===1){const n=t.fields[1]|0,r=t.fields[2]|0,s=t.fields[0],o=(r+1)%s.length|0;return o===n?e.state=new Xt(0,[s,n]):e.state=new Xt(1,[s,n,o]),Te(we(r,s))}else return}function Wh(e,t){const n=e.state;if(n.tag===1){const r=n.fields[1]|0,s=n.fields[2]|0,o=n.fields[0];bt(o,r,t);const i=(r+1)%o.length|0;i===s?e.state=new Xt(1,[qh(e,s,o),o.length,0]):e.state=new Xt(1,[o,i,s])}else{const r=n.fields[1]|0,s=n.fields[0];bt(s,r,t);const o=(r+1)%s.length|0;e.state=new Xt(1,[s,o,r])}}function qh(e,t,n){return Array.from(M(()=>K(yd(t,n),M(()=>K(vd(t,n),M(()=>xd(r=>$(ze()),Za(0,1,n.length))))))))}class Ls extends L{constructor(t,n,r,s,o,i,a){super(),this.init=t,this.update=n,this.subscribe=r,this.view=s,this.setState=o,this.onError=i,this.termination=a}}function In(e,t,n){return new Ls(e,t,r=>Ih(),n,z(r=>{const s=O(n)(r);return o=>{s(o)}}),r=>{Fh(r[0],r[1])},[r=>!1,r=>{}])}function Zh(e,t){return new Ls(t.init,t.update,t.subscribe,t.view,e,t.onError,t.termination)}function Jh(e){return e.init}function Kh(e,t,n,r,s,o,i){const a=O(e)(i.init),l=Ar(t)(O(i.update)),u=Ar(n)(O(i.view)),f=Ar(r)(O(i.setState));return new Ls(a,z(l),O(s)(i.subscribe),z(u),z(f),i.onError,o(i.termination))}function Yh(e,t,n){let r;const s=n.init(t),o=s[0],i=n.subscribe(o),a=n.termination,l=Gh(10);let u=!1,f=o,c=Ph,p=!1;const m=g=>{p||(Wh(l,g),u||(u=!0,b(),u=!1))},w=O(e)(m),b=()=>{let g,_=ti(l);for(;!p&&_!=null;){const F=C(_);if(a[0](F))Oh(n.onError,c),a[1](f),p=!0;else{const x=n.update(F,f),Z=x[0],ae=n.subscribe(Z);n.setState(Z,w),Qo(Ie=>{n.onError([vn(nn("Error handling the message: %A"))(F),Ie])},w,x[1]),f=Z,c=(g=ei(c,ae),Xo(n.onError,w,g[0],g[1],g[2],g[3])),_=ti(l)}}};u=!0,n.setState(o,w),Qo(g=>{n.onError([vn(nn("Error intitializing:")),g])},w,s[1]),c=(r=ei(c,i),Xo(n.onError,w,r[0],r[1],r[2],r[3])),b(),u=!1}function Qh(e,t){Yh(z(n=>n),e,t)}function Xh(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 s=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,s.get?s:{enumerable:!0,get:function(){return e[r]}})}),n}var Ja={exports:{}},Ka={};const em=Xh(rl);/**
|
|
23
|
+
`))(c);return h=>p(h)}}else if(Ya(r))if(eo(r)){const f=An(c=>Qe(e,t,!1,c),tu(r));return c=>p=>Array.isArray(p)?mt(h=>fd(Nn(h)),ju(0,f,c,p)):new d(1,[[c,new k(0,["an array",p])]])}else switch(Q(Qa(r))){case"Microsoft.FSharp.Core.FSharpOption`1[System.Object]":return s=Qe(e,t,!0,re(0,De(r))),c=>p=>xh(j(s),c,p);case"Microsoft.FSharp.Collections.FSharpList`1[System.Object]":return o=Qe(e,t,!1,re(0,De(r))),c=>p=>Ei(j(o),c,p);case"System.Collections.Generic.IEnumerable`1[System.Object]":return i=Qe(e,t,!1,re(0,De(r))),c=>p=>Ah(j(i),c,p);case"Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]":{const c=Qe(e,t,!1,re(0,De(r))),p=Qe(e,t,!1,re(1,De(r)));let h;const w=S([g=>b=>Dh(j(c),j(p),g,b),(a=Mh(j(c),j(p)),g=>b=>Ei(j(a),g,b))]);return h=g=>b=>Nh(w,g,b),g=>b=>Eh(Th,j(h),g,b)}case"Microsoft.FSharp.Collections.FSharpSet`1[System.Object]":{const c=Qe(e,t,!1,re(0,De(r)));return p=>h=>{const w=Mi(j(c),p,h);return w.tag===0?new d(0,[$h(w.fields[0])]):new d(1,[w.fields[0]])}}default:return Ii(e,t,n,r)}else switch(l){case"System.Boolean":return f=>c=>bh(f,c);case"Microsoft.FSharp.Core.Unit":return f=>c=>gh(f,c);case"System.String":return f=>c=>Gu(f,c);case"System.Char":return f=>c=>wh(f,c);case"System.SByte":return vi;case"System.Byte":return Fi;case"System.Int16":return Ci;case"System.UInt16":return xi;case"System.Int32":return Ai;case"System.UInt32":return Ni;case"System.Double":return f=>c=>yh(f,c);case"System.Single":return f=>c=>Sh(f,c);case"System.DateTime":return f=>c=>vh(f,c);case"System.DateTimeOffset":return f=>c=>Fh(f,c);case"System.TimeSpan":return f=>c=>Ch(f,c);case"System.Guid":return f=>c=>_h(f,c);case"System.Object":return f=>c=>new d(0,[c]);default:return Ii(e,t,n,r)}else{const f=u;return c=>p=>f.contents(c)(p)}}function Bh(e){return uo({Compare:Qn})}function rn(e,t,n){const r=Pe(t,new Le(0,[]));return Qe(Bh(),r,!1,e)}function Vh(e){return e}const Wu=Ne();function He(e){const t={},n=se(e);try{for(;n["System.Collections.IEnumerator.MoveNext"]();){const r=n["System.Collections.Generic.IEnumerator`1.get_Current"]();t[r[0]]=r[1]}}finally{Z(n)}return t}function Lh(e){return Array.from(e)}function fr(e){return Array.from(e)}function Oh(e){return Ir(e,"O")}function Ph(e){return Zm(e)}function Rh(){return Ne()}function Uh(e){return Ir(e,"O")}function Hr(e,t){return JSON.stringify(t,void 0,ye(e))}function Hh(e){return t=>nd(er(e,t),()=>Wu)}function Di(e,t,n,r){let s;const o=new je(Ne());let i;const a=Q(r);i=a===""?e:$u(a,o,e);let l;if(ru(r)){const u=An(f=>{const c=Du(t,dn(f)),p=_t(i,t,n,f[1]);return h=>w=>{const g=ld(h,f);return(!n||n&&g!=null)&&(w[c]=p(g)),w}},zn(r));l=f=>Or((c,p)=>p(f)(c),{},u)}else if(nu(r))l=u=>{const f=ud(u,r),c=f[0],p=f[1],h=p.length|0;if(h===0)return dn(c);{const w=h|0,g=su(c),b=Dr(new Array(w+1),0,w+1,null);ft(b,0,dn(c));for(let _=1;_<=w;_++){const x=_t(i,t,n,re(_-1,g)[1]);ft(b,_,x(re(_-1,p)))}return b}};else throw new Error((s=Q(r),_n(Vt(`Cannot generate auto encoder for %s. Please pass an extra encoder.
|
|
24
|
+
|
|
25
|
+
Documentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders`))(s)));return o.contents=l,l}function _t(e,t,n,r){const s=Q(r),o=Iu(s,e);if(o==null)if(Ka(r)){const i=_t(e,t,n,tr(r));return a=>fr(xe(i,a))}else if(Xs(r))switch(Q(Xa(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=Q(r);return ja(Vt(`Cannot generate auto encoder for %s.
|
|
26
|
+
Thoth.Json.Net only support the following enum types:
|
|
27
|
+
- sbyte
|
|
28
|
+
- byte
|
|
29
|
+
- int16
|
|
30
|
+
- uint16
|
|
31
|
+
- int
|
|
32
|
+
- uint32
|
|
33
|
+
|
|
34
|
+
If you can't use one of these types, please pass an extra encoder.
|
|
35
|
+
|
|
36
|
+
Documentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders
|
|
37
|
+
`))(a)}}else if(Ya(r))if(eo(r)){const i=An(a=>_t(e,t,n,a),tu(r));return a=>fr(om((l,u)=>re(l,i)(u),a))}else{const i=Q(Qa(r));if(i==="Microsoft.FSharp.Core.FSharpOption`1[System.Object]"){const a=new dc(()=>Hh(_t(e,t,n,re(0,De(r)))));return l=>l==null?Wu:a.Value(l)}else if(i==="Microsoft.FSharp.Collections.FSharpList`1[System.Object]"||i==="Microsoft.FSharp.Collections.FSharpSet`1[System.Object]"||i==="System.Collections.Generic.IEnumerable`1[System.Object]"){const a=_t(e,t,n,re(0,De(r)));return l=>fr(xe(a,l))}else if(i==="Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"){const a=re(0,De(r)),l=_t(e,t,n,re(1,De(r)));if(Q(a)==="System.String"||Q(a)==="System.Guid")return u=>Or((f,c)=>{const p=c;return f[p[0]]=l(p[1]),f},{},u);{let u;return u=_t(e,t,n,a),c=>fr(xe(p=>{const h=p;return[u(h[0]),l(h[1])]},c))}}else return Di(e,t,n,r)}else switch(s){case"System.Boolean":return i=>i;case"Microsoft.FSharp.Core.Unit":return Rh;case"System.String":return i=>i;case"System.Char":return i=>i;case"System.SByte":return i=>i;case"System.Byte":return i=>i;case"System.Int16":return i=>i;case"System.UInt16":return i=>i;case"System.Int32":return i=>i;case"System.UInt32":return i=>i;case"System.Double":return i=>i;case"System.Single":return i=>i;case"System.DateTime":return Uh;case"System.DateTimeOffset":return Oh;case"System.TimeSpan":return Ph;case"System.Guid":return Vh;case"System.Object":return i=>i;default:return Di(e,t,n,r)}else{const i=o;return a=>i.contents(a)}}function zh(e){return uo({Compare:Qn})}function Rn(e,t,n,r){const s=Pe(t,new Le(0,[])),o=Pe(r,!0);return _t(zh(),s,o,e)}function Bi(e,t){return He([["fundId",e],["placementId",t]])}function Gh(e){return Hr(0,e.tag===1?He([["promotedDefault",Bi(e.fields[0],e.fields[1])]]):He([["promoted",Bi(e.fields[0],e.fields[1])]]))}function jh(e){return e.tag===1?He([["PromotedDefaultFund",Rn(lf(),new Le(1,[]),void 0,void 0)(e.fields[0])]]):He([["PromotedFund",Rn(uf(),new Le(1,[]),void 0,void 0)(e.fields[0])]])}function Ht(e,t){return He([["event",He([[e,t]])]])}function Wh(e){return Hr(0,e.tag===1?Ht("SuperFundDetailViewed",jh(e.fields[0])):e.tag===2?Ht("SuperFundDisclaimerViewed",Rn(cf(),new Le(1,[]),void 0,void 0)(e.fields[0])):e.tag===3?Ht("SuperFundDisclaimerAccepted",Rn(df(),new Le(1,[]),void 0,void 0)(e.fields[0])):e.tag===4?Ht("SuperCampaignActivationSucceeded",He([])):e.tag===5?Ht("SuperCampaignActivationFailed",He([["reason",e.fields[0]]])):e.tag===6?Ht("SuperCampaignOperationFailed",He([["reason",e.fields[0]]])):Ht("SuperFundPdsViewed",Rn(af(),new Le(1,[]),void 0,void 0)(e.fields[0])))}function qh(e){return e.tag===1?"superCampaign":"superSelection"}function Jh(e){return Hr(0,He(X(M(()=>W(T(["placementId",e.PlacementId]),M(()=>W(T(["shownFunds",Lh(Kt(t=>t,e.ShownFunds))]),M(()=>{let t;return W((t=e.PromotedDefaultFundPosition,t==null?ue():T(["promotedDefaultFundPosition",t])),M(()=>T(["promotedFundsConfigSource",qh(e.PromotedFundsConfigSource)])))}))))))))}function Zh(e){return e.tag===1?"SuperCampaignOperationFailed":"SuperCampaignActivationFailed"}function Kh(e){return Hr(0,He([["type",Zh(e.Type)],["reason",e.Reason]]))}class Yh{constructor(t,n){this.baseUrl=`${t}/super-selection/backend`,this.authHeader=km(`Bearer ${n}`)}get GetSmsfChoice(){const t=this;return()=>Et(t,5,E.Delay(()=>E.Bind(ot(ve(t.authHeader,st(new Ke(0,[]),rt(`${t.baseUrl}/v1.0/super-choice/smsf`)))),n=>{const r=n;return r.statusCode===200?E.Return(nn(j(rn(Bd(),new Le(1,[]))),r.responseText)):E.Return(new d(1,["Failed to retrieve SMSF choice"]))})))}get BsbLookup(){const t=this;return n=>E.Delay(()=>E.Bind(ot(ve(t.authHeader,st(new Ke(0,[]),rt(`${t.baseUrl}/v1.0/bsb-lookup/${n}`)))),r=>{const s=r;return s.statusCode===200?E.Return(nn(j(rn(Ud(),new Le(1,[]))),s.responseText)):E.Return(new d(1,["Failed to lookup BSB"]))}))}get IsRegulatedFundAbn(){const t=this;return n=>E.Delay(()=>E.Bind(ot(ve(t.authHeader,st(new Ke(0,[]),rt(`${t.baseUrl}/v1.0/super-choice/smsf/${n}/validate`)))),r=>{const s=r;return s.statusCode===200?E.Return(mt(o=>!o.Result,nn(j(rn(sd(["Result",dt]),new Le(1,[]))),s.responseText))):E.Return(new d(1,["Failed to query ABN"]))}))}get GetOwnFundChoice(){const t=this;return()=>Et(t,5,E.Delay(()=>E.Bind(ot(ve(t.authHeader,st(new Ke(0,[]),rt(`${t.baseUrl}/v1.0/super-choice/byof`)))),n=>{const r=n;return r.statusCode===200?E.Return(nn(j(rn(qd(),new Le(1,[]))),r.responseText)):E.Return(new d(1,["Failed to retrieve own fund choice"]))})))}get GetDefaultFund(){const t=this;return()=>Et(t,5,E.Delay(()=>E.Bind(ot(ve(t.authHeader,st(new Ke(0,[]),rt(`${t.baseUrl}/v1.0/super-choice/default`)))),n=>{const r=n;return r.statusCode===200?E.Return(nn(j(rn(Zd(),new Le(1,[]))),r.responseText)):E.Return(new d(1,["Failed to retrieve default fund choice"]))})))}get GetAustralianFundList(){const t=this;return n=>{const r=n[1];return Et(t,5,E.Delay(()=>{const s=r==null?"":`&maxRecordCount=${r}`;return E.Bind(ot(ve(t.authHeader,st(new Ke(0,[]),rt(`${t.baseUrl}/v1.0/super-choice/australian-funds-v2?search=${n[0]}${s}`)))),o=>{const i=o;return i.statusCode===200?E.Return(nn(j(rn(Xd(),new Le(1,[]))),i.responseText)):E.Return(new d(1,["Failed to retrieve fund list"]))})}))}}ClickPromotedTile(t){const n=this;return Et(n,5,E.Delay(()=>{let r,s;return E.Bind(ot((r=(s=ve(n.authHeader,st(new Ke(1,[]),rt(`${n.baseUrl}/v1.0/click-promoted-tile`))),ve(cr("application/json"),s)),dr(new Vn(1,[Gh(t)]),r))),o=>{let i;return i=o.statusCode|0,i>=200&&i<300?E.Return(new d(0,[void 0])):E.Return(new d(1,["Failed to track click promoted tile"]))})}))}PostSuperCampaignError(t){const n=this;return Et(n,5,E.Delay(()=>{let r,s;return E.Bind(ot((r=(s=ve(n.authHeader,st(new Ke(1,[]),rt(`${n.baseUrl}/v1.0/super-campaign/errors`))),ve(cr("application/json"),s)),dr(new Vn(1,[Kh(t)]),r))),o=>{let i;return i=o.statusCode|0,i>=200&&i<300?E.Return(new d(0,[void 0])):E.Return(new d(1,["Failed to post super campaign error"]))})}))}TrackAnalyticsEvent(t){const n=this;return Et(n,5,E.Delay(()=>{let r,s;return E.Bind(ot((r=(s=ve(n.authHeader,st(new Ke(1,[]),rt(`${n.baseUrl}/v1.0/analytics-events`))),ve(cr("application/json"),s)),dr(new Vn(1,[Wh(t)]),r))),o=>{let i;return i=o.statusCode|0,i>=200&&i<300?E.Return(new d(0,[void 0])):E.Return(new d(1,["Failed to track analytics event"]))})}))}ViewSuperFundPanel(t){const n=this;return Et(n,5,E.Delay(()=>{let r,s;return E.Bind(ot((r=(s=ve(n.authHeader,st(new Ke(1,[]),rt(`${n.baseUrl}/v1.0/view-super-fund-panel`))),ve(cr("application/json"),s)),dr(new Vn(1,[Jh(t)]),r))),o=>{let i;return i=o.statusCode|0,i>=200&&i<300?E.Return(new d(0,[void 0])):E.Return(new d(1,["Failed to track view super fund panel"]))})}))}}function zr(e,t){return new Yh(e,t)}function Et(e,t,n){const r=s=>E.Delay(()=>E.Bind(n,o=>{const i=o;return i.tag===1?s>1?E.Bind(bu(1e3),()=>E.ReturnFrom(r(s-1))):E.Return(new d(1,[i.fields[0]])):E.Return(new d(0,[i.fields[0]]))}));return r(t)}function Qh(){return le()}function co(e){return P("/",e)}function Xh(e,t){const n=new Error("Duplicate SubId");return e(["Duplicate SubId: "+co(t),n])}function qu(e,t,n){try{Z(n)}catch(r){e(["Error stopping subscription: "+co(t),r])}}function e0(e,t,n,r){try{return[n,r(t)]}catch(s){e(["Error starting subscription: "+co(n),s]);return}}function t0(e,t){Gn(n=>{qu(e,n[0],n[1])},t)}function Vi(e,t,n,r,s,o){return Gn(i=>{Xh(e,i)},n),Gn(i=>{qu(e,i[0],i[1])},r),no(s,Td(i=>e0(e,t,i[0],i[1]),o))}function n0(){return[le(),fh({Compare:ze}),le()]}function r0(e,t,n,r,s){return As(e,r)?[Be(e,n),r,s]:[n,dh(e,r),Be([e,t],s)]}function s0(e){return Sd((t,n)=>r0(t[0],t[1],n[0],n[1],n[2]),e,n0())}const o0=le();function Li(e,t){const n=mh(Kt(i=>i[0],e),{Compare:ze}),r=s0(t),s=r[1],o=r[0];if(n.Equals(s))return[o,le(),e,le()];{const i=Md(a=>As(a[0],s),e);return[o,i[1],i[0],Ed(a=>!As(a[0],n),r[2])]}}function i0(e,t,n,r){const s=ze(e,n)|0;if(s===0)throw new Error("The step of a range cannot be zero");const o=s>0;return i=>{const a=ze(i,t)|0;return o&&a<=0||!o&&a>=0?[i,r(i,e)]:void 0}}function a0(e,t,n,r,s){const o=i0(t,n,r,s);return M(()=>tm(o,e))}function Ju(e,t,n){return a0(e,t,n,0,(r,s)=>r+s)}class hn extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Writable","ReadWritable"]}}class u0{constructor(t){this.state=new hn(0,[Dr(new Array(Fs(t,10)),0,Fs(t,10),null),0])}}function l0(e){return new u0(e)}function Oi(e){const t=e.state;if(t.tag===1){const n=t.fields[1]|0,r=t.fields[2]|0,s=t.fields[0],o=(r+1)%s.length|0;return o===n?e.state=new hn(0,[s,n]):e.state=new hn(1,[s,n,o]),ye(re(r,s))}else return}function c0(e,t){const n=e.state;if(n.tag===1){const r=n.fields[1]|0,s=n.fields[2]|0,o=n.fields[0];ft(o,r,t);const i=(r+1)%o.length|0;i===s?e.state=new hn(1,[d0(e,s,o),o.length,0]):e.state=new hn(1,[o,i,s])}else{const r=n.fields[1]|0,s=n.fields[0];ft(s,r,t);const o=(r+1)%s.length|0;e.state=new hn(1,[s,o,r])}}function d0(e,t,n){return Array.from(M(()=>W(am(t,n),M(()=>W(um(t,n),M(()=>lm(r=>T(Ne()),Ju(0,1,n.length))))))))}class fo extends ${constructor(t,n,r,s,o,i,a){super(),this.init=t,this.update=n,this.subscribe=r,this.view=s,this.setState=o,this.onError=i,this.termination=a}}function Mn(e,t,n){return new fo(e,t,r=>Qh(),n,j(r=>{const s=O(n)(r);return o=>{s(o)}}),r=>{If(r[0],r[1])},[r=>!1,r=>{}])}function f0(e,t){return new fo(t.init,t.update,t.subscribe,t.view,e,t.onError,t.termination)}function m0(e){return e.init}function h0(e,t,n,r,s,o,i){const a=O(e)(i.init),l=es(t)(O(i.update)),u=es(n)(O(i.view)),f=es(r)(O(i.setState));return new fo(a,j(l),O(s)(i.subscribe),j(u),j(f),i.onError,o(i.termination))}function p0(e,t,n){let r;const s=n.init(t),o=s[0],i=n.subscribe(o),a=n.termination,l=l0(10);let u=!1,f=o,c=o0,p=!1;const h=b=>{p||(c0(l,b),u||(u=!0,g(),u=!1))},w=O(e)(h),g=()=>{let b,_=Oi(l);for(;!p&&_!=null;){const x=C(_);if(a[0](x))t0(n.onError,c),a[1](f),p=!0;else{const v=n.update(x,f),Y=v[0],ce=n.subscribe(Y);n.setState(Y,w),oi(We=>{n.onError([_n(Vt("Error handling the message: %A"))(x),We])},w,v[1]),f=Y,c=(b=Li(c,ce),Vi(n.onError,w,b[0],b[1],b[2],b[3])),_=Oi(l)}}};u=!0,n.setState(o,w),oi(b=>{n.onError([_n(Vt("Error intitializing:")),b])},w,s[1]),c=(r=Li(c,i),Vi(n.onError,w,r[0],r[1],r[2],r[3])),g(),u=!1}function w0(e,t){p0(j(n=>n),e,t)}function _0(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 s=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,s.get?s:{enumerable:!0,get:function(){return e[r]}})}),n}var Zu={exports:{}},Ku={};const g0=_0(sc);/**
|
|
24
38
|
* @license React
|
|
25
39
|
* use-sync-external-store-shim.production.min.js
|
|
26
40
|
*
|
|
@@ -28,4 +42,4 @@ If you can't use one of these types, please pass an extra decoder.
|
|
|
28
42
|
*
|
|
29
43
|
* This source code is licensed under the MIT license found in the
|
|
30
44
|
* LICENSE file in the root directory of this source tree.
|
|
31
|
-
*/var on=em;function tm(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var nm=typeof Object.is=="function"?Object.is:tm,rm=on.useState,sm=on.useEffect,om=on.useLayoutEffect,im=on.useDebugValue;function am(e,t){var n=t(),r=rm({inst:{value:n,getSnapshot:t}}),s=r[0].inst,o=r[1];return om(function(){s.value=n,s.getSnapshot=t,Tr(s)&&o({inst:s})},[e,n,t]),sm(function(){return Tr(s)&&o({inst:s}),e(function(){Tr(s)&&o({inst:s})})},[e]),im(n),n}function Tr(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!nm(e,n)}catch{return!0}}function um(e,t){return t()}var lm=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?um:am;Ka.useSyncExternalStore=on.useSyncExternalStore!==void 0?on.useSyncExternalStore:lm;Ja.exports=Ka;var cm=Ja.exports;class dm{constructor(t,n,r){this.arg=n,this.dependencies=r;const s=t(),o=[];this.finalDispatch=void 0;let i;const a=Jh(s)(this.arg);let l=a[0],u=a[1];i=[[l,f=>{const c=this.finalDispatch;c==null?o.push(f):c(f)},!1,o],u],this.state=i[0],this.cmd=i[1],this.subscribe=f=>{let c=!1;const p=Ur(this.state[0]);return Qh(this.arg,Zh((m,w)=>{const b=this.state;this.finalDispatch=w,this.state=[m,b[1],!0,o],m!==b[0]&&f()},Kh((m,w)=>{const b=this.cmd;return this.cmd=A(),[this.state[0],b]},(m,w,b)=>m(w)(this.state[0]),Hr(m=>m),Hr(m=>m),z(m=>m),m=>[w=>m[0](w)?!0:p&&c,w=>{const b=w;Ur(b)?Y(b):m[1](w)}],s))),()=>{c=!0}}}}function ni(e,t,n){return new dm(e,t,n)}function fm(e){return e.state}function hm(e){return e.subscribe}function mm(e,t,n){return ce(e.arg,t)?!ce(e.dependencies,n):!0}function Vn(e,t,n){const r=un(()=>ni(e,t,n)),s=r[0];mm(s,t,n)&&r[1](ni(e,t,n));const o=cm.useSyncExternalStore(hm(s),()=>fm(s)),i=o[2],a=o[3],l=o[1];return Nn(()=>{if(i&&a.length>0){let u=re(a);try{for(;u["System.Collections.IEnumerator.MoveNext"]();){const f=u["System.Collections.Generic.IEnumerator`1.get_Current"]();setTimeout(()=>{l(f)})}}finally{Y(u)}_l(a)}},[i,a]),[o[0],l]}function xe(e,t){return da(t)?new d(1,[`${e} is required`]):new d(0,[t])}function ct(e,t,n){return n.length>=t?new d(0,[n]):new d(1,[`${e} requires a minimum length of ${t} characters`])}function Os(e,t,n){return n.length<=t?new d(0,[n]):new d(1,[`${e} exceeds maximum length of ${t} characters`])}function _r(e){return e.trim()}function Ds(e){return bs(e,"\\s+","")}function mn(e,t,n){return zl(ia(t),n)?new d(0,[n]):new d(1,[`${e} is invalid`])}function pm(e){return bs(e,"[^0-9]","")}class Je extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Started","Finished"]}}class Rs extends L{constructor(t,n,r,s){super(),this.Value=t,this.IsTouched=n,this.Validator=r,this.ErrorMessage=s}}class ye extends L{constructor(t,n,r){super(),this.Field=t,this.OnBlur=n,this.OnChange=r}}function Se(e,t){return new Rs(ur(t,""),!1,e,void 0)}function Ya(e,t){let n;return new Rs(t,e.IsTouched,e.Validator,(n=e.Validator(t),n.tag===1&&e.IsTouched?n.fields[0]:void 0))}function le(e){let t;return new Rs(e.Value,!0,e.Validator,(t=e.Validator(e.Value),t.tag===1?t.fields[0]:void 0))}function gr(e){const t=e.target,n=pm(t.value);return t.value=n,n}let wm=class extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["FundName"]}};function Qa(e){let t;const n=xe("Fund name",_r(e));return t=n.tag===1?new d(1,[n.fields[0]]):ct("Fund name",2,n.fields[0]),t.tag===1?new d(1,[t.fields[0]]):new d(0,[new wm(t.fields[0])])}function Xa(e){return Se(Qa,e)}function _m(e){return e.fields[0]}class gm extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["FundAbn"]}}function br(e){const t=ee(Ue(s=>~~s.charCodeAt(0)-48,e.split(""))),n=v([10,1,3,5,7,9,11,13,15,17,19]),r=ba(s=>s>=0?s<=9:!1,t)?new d(0,[void 0]):new d(1,["Enter a valid fund ABN (digits only)"]);if(r.tag===1)return new d(1,[r.fields[0]]);{const s=Et(t)===Et(n)?new d(0,[void 0]):new d(1,["Enter a valid fund ABN"]);if(s.tag===1)return new d(1,[s.fields[0]]);{const o=Mc((i,a,l)=>i+a*l,0,Tc((i,a)=>i===0?a-1|0:a|0,t),n)%89===0?new d(0,[void 0]):new d(1,["Enter a valid fund ABN"]);return o.tag===1?new d(1,[o.fields[0]]):new d(0,[new gm(e)])}}}function bm(e){return e.fields[0]}class ym extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["FundEsa"]}}function eu(e){let t;const n=xe("Fund ESA",_r(e));return t=n.tag===1?new d(1,[n.fields[0]]):ct("Fund ESA",2,n.fields[0]),t.tag===1?new d(1,[t.fields[0]]):new d(0,[new ym(t.fields[0])])}function tu(e){return Se(eu,e)}function vm(e){return e.fields[0]}class xm extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["AddressLine1"]}}function nu(e){let t;const n=xe("Address Line 1",e);return t=n.tag===1?new d(1,[n.fields[0]]):ct("Address Line 1",2,n.fields[0]),t.tag===1?new d(1,[t.fields[0]]):new d(0,[new xm(t.fields[0])])}function ru(e){return Se(nu,e)}function Sm(e){return e.fields[0]}class Cm extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["AddressLine2"]}}function su(e){if(da(e))return new d(0,[void 0]);{const t=ct("Address Line 2",2,e);return t.tag===1?new d(1,[t.fields[0]]):new d(0,[new Cm(t.fields[0])])}}function ou(e){return Se(su,e)}function Fm(e){if(e!=null)return e.fields[0]}class Am extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["City"]}}function iu(e){const t=xe("City",e);return t.tag===1?new d(1,[t.fields[0]]):new d(0,[new Am(t.fields[0])])}function au(e){return Se(iu,e)}function km(e){return e.fields[0]}class ht extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["NSW","QLD","ACT","VIC","TAS","WA","SA","NT"]}}function uu(e){const t=xe("State",e);if(t.tag===1)return new d(1,[t.fields[0]]);switch(t.fields[0]){case"NSW":return new d(0,[new ht(0,[])]);case"QLD":return new d(0,[new ht(1,[])]);case"ACT":return new d(0,[new ht(2,[])]);case"VIC":return new d(0,[new ht(3,[])]);case"TAS":return new d(0,[new ht(4,[])]);case"WA":return new d(0,[new ht(5,[])]);case"SA":return new d(0,[new ht(6,[])]);case"NT":return new d(0,[new ht(7,[])]);default:return new d(1,["Select a state'"])}}function lu(e){return Se(uu,e)}function Nm(e){switch(e.tag){case 1:return"QLD";case 2:return"ACT";case 3:return"VIC";case 4:return"TAS";case 5:return"WA";case 6:return"SA";case 7:return"NT";default:return"NSW"}}class Mm extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["Postcode"]}}function cu(e){let t,n;const r=xe("Postcode",Ds(e));return n=r.tag===1?new d(1,[r.fields[0]]):ct("Postcode",4,r.fields[0]),t=n.tag===1?new d(1,[n.fields[0]]):Os("Postcode",4,n.fields[0]),t.tag===1?new d(1,[t.fields[0]]):new d(0,[new Mm(t.fields[0])])}function du(e){return Se(cu,e)}function Em(e){return e.fields[0]}let $m=class extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["MemberFirstName"]}};const Tm="[A-Za-z][A-Za-z']+(( |-)[A-Za-z][A-Za-z']+)*\\s*$";function fu(e){let t;const n=xe("Member given name(s)",e);return t=n.tag===1?new d(1,[n.fields[0]]):mn("Member given name(s)",Tm,n.fields[0]),t.tag===1?new d(1,[t.fields[0]]):new d(0,[new $m(t.fields[0])])}function hu(e){return Se(fu,e)}function Bm(e){return e.fields[0]}let Im=class extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["MemberLastName"]}};const Vm="[A-Za-z][A-Za-z']+(( |-)[A-Za-z][A-Za-z']+)*\\s*$";function mu(e){let t;const n=xe("Last Name",e);return t=n.tag===1?new d(1,[n.fields[0]]):mn("Last Name",Vm,n.fields[0]),t.tag===1?new d(1,[t.fields[0]]):new d(0,[new Im(t.fields[0])])}function pu(e){return Se(mu,e)}function Lm(e){return e.fields[0]}class Om extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["BankAccountName"]}}function wu(e){let t;const n=xe("Account name",_r(e));return t=n.tag===1?new d(1,[n.fields[0]]):ct("Account name",2,n.fields[0]),t.tag===1?new d(1,[t.fields[0]]):new d(0,[new Om(t.fields[0])])}function _u(e){return Se(wu,e)}function Dm(e){return e.fields[0]}class Rm extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["BankAccountBsb"]}}function yr(e){let t,n,r;const s=xe("BSB",Ds(e));return r=s.tag===1?new d(1,[s.fields[0]]):ct("BSB",6,s.fields[0]),n=r.tag===1?new d(1,[r.fields[0]]):Os("BSB",6,r.fields[0]),t=n.tag===1?new d(1,[n.fields[0]]):mn("BSB","^\\d{6}$",n.fields[0]),t.tag===1?new d(1,[t.fields[0]]):new d(0,[new Rm(t.fields[0])])}function Um(e){return e.fields[0]}class Pm extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["BankAccountNumber"]}}function gu(e){let t,n,r;const s=xe("Account Number",Ds(e));return r=s.tag===1?new d(1,[s.fields[0]]):ct("Account Number",2,s.fields[0]),n=r.tag===1?new d(1,[r.fields[0]]):Os("Account Number",11,r.fields[0]),t=n.tag===1?new d(1,[n.fields[0]]):mn("Account Number","^\\d{2,11}$",n.fields[0]),t.tag===1?new d(1,[t.fields[0]]):new d(0,[new Pm(t.fields[0])])}function bu(e){return Se(gu,e)}function Hm(e){return e.fields[0]}class zm extends L{constructor(t,n,r,s,o){super(),this.AddressLine1=t,this.AddressLine2=n,this.City=r,this.AddressState=s,this.Postcode=o}}class jm extends L{constructor(t,n,r,s,o,i,a,l,u,f,c,p,m){super(),this.FundName=t,this.FundAbn=n,this.FundEsa=r,this.FundAddressLine1=s,this.FundAddressLine2=o,this.FundCity=i,this.FundState=a,this.FundPostcode=l,this.MemberFirstName=u,this.MemberLastName=f,this.BankAccountName=c,this.BankAccountBsb=p,this.BankAccountNumber=m}}const Gm=h("svg",S(v([["fill","#facc15"],["className","h-5 w-5"],["viewBox","0 0 20 20"],["xmlns","http://www.w3.org/2000/svg"],(()=>{let e;const t=T(h("path",S(v([["fill-rule","evenodd"],(e="M8.257 3.099c.765-1.36 2.722-1.36 3.486 0l5.58 9.92c.75 1.334-.213 2.98-1.742 2.98H4.42c-1.53 0-2.493-1.646-1.743-2.98l5.58-9.92zM11 13a1 1 0 11-2 0 1 1 0 012 0zm-1-8a1 1 0 00-1 1v3a1 1 0 002 0V6a1 1 0 00-1-1z",["d",e]),["clipRule","evenodd"]]))));return["children",y.Children.toArray(Array.from(t))]})()]))),Wm=h("div",S(v([["className","bg-yellow-50 border-l-4 border-yellow-400 p-4 my-3"],(()=>{let e;const t=[h("div",S(v([["className","flex"],(e=[h("div",{className:"flex-shrink-0",children:y.Children.toArray([Gm])}),h("div",{className:"ml-3 text-sm text-yellow-700 leading-5",children:"Make sure your Self-managed super fund (SMSF) is a registered fund before completing this step."})],["children",y.Children.toArray(Array.from(e))])])))];return["children",y.Children.toArray(Array.from(t))]})()])));function dt(e){if(e==null)return ze();{const t=e;return h("div",{className:D(" ",["mt-2 text-sm text-red-600"]),children:t})}}function vr(e){return ee(M(()=>K($("relative shadow-sm focus:ring-primary-focus focus:border-primary-base block w-full text-base sm:text-sm border-gray-300 rounded-md focus:z-10"),M(()=>e?$("border-red-300 text-red-900 placeholder-red-300 focus:ring-red-500 focus:border-red-500"):ie()))))}function qm(e){let t,n;return h("div",S(v([["className","mt-3"],(t=[h("label",{className:"text-sm font-medium text-gray-700",htmlFor:"fundName",children:"Fund name"}),h("div",S(v([["className","mt-1"],(n=[h("input",{type:"text",className:D(" ",vr(e.Field.ErrorMessage!=null)),id:"fundName",value:e.Field.Value,onBlur:e.OnBlur,onChange:r=>{e.OnChange(r.target.value)}}),dt(e.Field.ErrorMessage)],["children",y.Children.toArray(Array.from(n))])])))],["children",y.Children.toArray(Array.from(t))])])))}function Zm(e){let t,n;return h("div",S(v([["className","mt-3"],(t=[h("label",{className:"text-sm font-medium text-gray-700",htmlFor:"fundEsa",children:"Electronic service address alias (ESA)"}),h("div",S(v([["className","mt-1"],(n=[h("input",{id:"fundEsa",type:"text",value:e.Field.Value,className:D(" ",vr(e.Field.ErrorMessage!=null)),onBlur:e.OnBlur,onChange:r=>{e.OnChange(r.target.value)}}),dt(e.Field.ErrorMessage)],["children",y.Children.toArray(Array.from(n))])])))],["children",y.Children.toArray(Array.from(t))])])))}function Jm(e,t){return h("input",{placeholder:"Address line 1",type:"text",className:D(" ",ee(M(()=>K($("relative shadow-sm focus:ring-primary-focus focus:border-primary-base block w-full text-base sm:text-sm border-gray-300 rounded-md focus:z-10 rounded-none rounded-t-md shadow-none"),M(()=>e&&t.Field.ErrorMessage!=null?$("border-red-300 text-red-900 placeholder-red-300 focus:ring-red-500 focus:border-red-500"):ie()))))),required:!0,minLength:2,id:"addressLine1",value:t.Field.Value,onBlur:t.OnBlur,onChange:n=>{t.OnChange(n.target.value)}})}function Km(e,t){return h("input",{placeholder:"Address line 2 (optional)",type:"text",className:D(" ",ee(M(()=>K($("relative shadow-sm focus:ring-primary-focus focus:border-primary-base block w-full text-base sm:text-sm border-gray-300 rounded-md focus:z-10 rounded-none shadow-none"),M(()=>e&&t.Field.ErrorMessage!=null?$("border-red-300 text-red-900 placeholder-red-300 focus:ring-red-500 focus:border-red-500"):ie()))))),id:"addressLine2",value:t.Field.Value,onBlur:t.OnBlur,onChange:n=>{t.OnChange(n.target.value)}})}function Ym(e,t){return h("input",{placeholder:"City/suburb",type:"text",className:D(" ",ee(M(()=>K($("relative shadow-sm focus:ring-primary-focus focus:border-primary-base block w-full text-base sm:text-sm border-gray-300 rounded-md focus:z-10 rounded-none shadow-none"),M(()=>e&&t.Field.ErrorMessage!=null?$("border-red-300 text-red-900 placeholder-red-300 focus:ring-red-500 focus:border-red-500"):ie()))))),required:!0,id:"city",value:t.Field.Value,onBlur:t.OnBlur,onChange:n=>{t.OnChange(n.target.value)}})}function Qm(e,t){let n;return h("div",S(v([["className","flex-1 min-w-0"],(n=[h("input",{placeholder:"Postcode",type:"text",required:!0,className:D(" ",ee(M(()=>K($("relative shadow-sm focus:ring-primary-focus focus:border-primary-base block w-full text-base sm:text-sm border-gray-300 rounded-md focus:z-10 rounded-none rounded-bl-md shadow-none"),M(()=>e&&t.Field.ErrorMessage!=null?$("border-red-300 text-red-900 placeholder-red-300 focus:ring-red-500 focus:border-red-500"):ie()))))),minLength:4,maxLength:4,pattern:"[0-9]{4}",inputMode:"numeric",id:"postcode",value:t.Field.Value,onKeyUp:r=>{t.OnChange(gr(r))},onBlur:t.OnBlur,onChange:r=>{t.OnChange(r.target.value)}})],["children",y.Children.toArray(Array.from(n))])])))}function Xm(e,t){let n;const r=h("option",{disabled:!0,value:"",children:"State",selected:t.Field.Value===""}),s=As(o=>h("option",{value:o,children:o,selected:t.Field.Value===o}),v(["NSW","QLD","ACT","VIC","TAS","WA","SA","NT"]));return h("div",S(v([["className","w-1/2 flex-1 min-w-0"],(n=[h("select",{className:D(" ",ee(M(()=>K($("relative shadow-sm focus:ring-primary-focus focus:border-primary-base block w-full text-base sm:text-sm border-gray-300 rounded-md focus:z-10 rounded-none rounded-br-md shadow-none text-gray-500"),M(()=>e&&t.Field.ErrorMessage!=null?$("border-red-300 text-red-900 placeholder-red-300 focus:ring-red-500 focus:border-red-500"):ie()))))),id:"state",required:!0,children:y.Children.toArray(Array.from(Ne(r,s))),onBlur:t.OnBlur,onChange:o=>{t.OnChange(o.target.value)}})],["children",y.Children.toArray(Array.from(n))])])))}function e0(e){let t,n,r,s;const o=a=>a.IsTouched;s=ba(a=>a,v([o(e.AddressLine1.Field),o(e.AddressLine2.Field),o(e.City.Field),o(e.AddressState.Field),o(e.Postcode.Field)]));const i=Bc(a=>a,v([e.AddressLine1.Field.ErrorMessage,e.AddressLine2.Field.ErrorMessage,e.City.Field.ErrorMessage,e.AddressState.Field.ErrorMessage,e.Postcode.Field.ErrorMessage]));return h("div",S(v([["className","mt-3"],(t=[h("label",{className:"text-sm font-medium text-gray-700",children:"Fund address"}),h("div",S(v([["className","mt-1 rounded-md shadow-sm -space-y-px"],(n=[Jm(s,e.AddressLine1),Km(s,e.AddressLine2),Ym(s,e.City),h("div",S(v([["className","flex -space-x-px"],(r=[Qm(s,e.Postcode),Xm(s,e.AddressState)],["children",y.Children.toArray(Array.from(r))])])))],["children",y.Children.toArray(Array.from(n))])]))),dt(s?i:void 0)],["children",y.Children.toArray(Array.from(t))])])))}function t0(e){let t,n;return h("div",S(v([["className","mt-3 w-1/2"],(t=[h("label",{className:"text-sm font-medium text-gray-700",htmlFor:"memberGivenNames",children:"Given name(s)"}),h("div",S(v([["className","mt-1"],(n=[h("input",{type:"text",className:D(" ",vr(e.Field.ErrorMessage!=null)),id:"memberGivenNames",value:e.Field.Value,onBlur:e.OnBlur,onChange:r=>{e.OnChange(r.target.value)}}),dt(e.Field.ErrorMessage)],["children",y.Children.toArray(Array.from(n))])])))],["children",y.Children.toArray(Array.from(t))])])))}function n0(e){let t,n;return h("div",S(v([["className","mt-3 w-1/2"],(t=[h("label",{className:"text-sm font-medium text-gray-700",htmlFor:"memberLastNames",children:"Last name"}),h("div",S(v([["className","mt-1"],(n=[h("input",{type:"text",className:D(" ",vr(e.Field.ErrorMessage!=null)),id:"memberLastName",value:e.Field.Value,onBlur:e.OnBlur,onChange:r=>{e.OnChange(r.target.value)}}),dt(e.Field.ErrorMessage)],["children",y.Children.toArray(Array.from(n))])])))],["children",y.Children.toArray(Array.from(t))])])))}function r0(e){let t,n;const r=e.Field.IsTouched&&e.Field.ErrorMessage!=null;return h("div",S(v([["className","mt-3"],(t=[h("label",{className:"text-sm font-medium text-gray-700",htmlFor:"bankAccountName",children:"Account name"}),h("div",S(v([["className","mt-1"],(n=[h("input",{id:"bankAccountName",type:"text",value:e.Field.Value,className:D(" ",ee(M(()=>K($("peer relative shadow-sm focus:ring-primary-focus focus:border-primary-base block w-full text-base sm:text-sm border-gray-300 rounded-md focus:z-10"),M(()=>r?$("border-red-300 text-red-900 placeholder-red-300 focus:ring-red-500 focus:border-red-500"):ie()))))),onBlur:e.OnBlur,onChange:s=>{e.OnChange(s.target.value)}}),dt(e.Field.ErrorMessage)],["children",y.Children.toArray(Array.from(n))])])))],["children",y.Children.toArray(Array.from(t))])])))}function s0(e){let t,n;const r=e.Field.IsTouched&&e.Field.ErrorMessage!=null;return h("div",S(v([["className","mt-3"],(t=[h("label",{className:"text-sm font-medium text-gray-700",htmlFor:"bankAccountNumber",children:"Account number"}),h("div",S(v([["className","mt-1"],(n=[h("input",{id:"bankAccountNumber",type:"text",value:e.Field.Value,inputMode:"numeric",className:D(" ",ee(M(()=>K($("peer relative shadow-sm focus:ring-primary-focus focus:border-primary-base block w-full text-base sm:text-sm border-gray-300 rounded-md focus:z-10"),M(()=>r?$("border-red-300 text-red-900 placeholder-red-300 focus:ring-red-500 focus:border-red-500"):ie()))))),onKeyUp:s=>{e.OnChange(gr(s))},onBlur:e.OnBlur,onChange:s=>{e.OnChange(s.target.value)}}),dt(e.Field.ErrorMessage)],["children",y.Children.toArray(Array.from(n))])])))],["children",y.Children.toArray(Array.from(t))])])))}function o0(e,t){let n;return h("div",S(v([["className","mb-4"],(n=[h("div",S(ee(M(()=>K(e?ie():$(["onClick",t]),M(()=>{let r;return $((r=[h("button",{className:D(" ",["px-4 py-2 text-base inline-flex items-center justify-center border font-medium","rounded-md shadow-sm pointer-events-auto border-transparent text-white bg-primary-base w-full","disabled:pointer-events-none disabled:border-gray-300 disabled:bg-gray-100 disabled:text-gray-400","focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-focus","hover:bg-primary-hover"]),"data-testid":"continue-button",disabled:!e,children:"Continue",onClick:t})],["children",y.Children.toArray(Array.from(r))]))}))))))],["children",y.Children.toArray(Array.from(n))])])))}function i0(e){let t,n,r;return h("div",S(T((t=[h("a",S(v([["href","/"],(n=[h("div",S(T((r=[h("button",{className:D(" ",["px-4 py-2 text-base inline-flex items-center justify-center border font-medium rounded-md shadow-sm pointer-events-auto border-gray-300 text-gray-700 bg-white w-full","disabled:pointer-events-none disabled:border-gray-300 disabled:bg-gray-100 disabled:text-gray-400","focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-focus","hover:bg-gray-50"]),"data-testid":"back-button",children:"Back",onClick:e})],["children",y.Children.toArray(Array.from(r))]))))],["children",y.Children.toArray(Array.from(n))])])))],["children",y.Children.toArray(Array.from(t))]))))}let ri=class extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SetValue","SetTouched"]}},Fn=class extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["UpdateFundAbn","RegulatedFundCheck"]}},Ke=class extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["NotYetStarted","Pending","Valid","Invalid"]}},$e=class extends L{constructor(t,n,r,s){super(),this.RawValue=t,this.IsTouched=n,this.Value=r,this.ErrorMessage=s}};function yu(e,t){if(e==null)return[new $e("",!1,new Ke(0,[]),void 0),A()];{const n=e,r=br(n);return r.tag===1?[new $e(n,!1,new Ke(3,[]),r.fields[0]),A()]:[new $e(n,!1,new Ke(1,[]),void 0),T(s=>{s(new Fn(1,[new Je(0,[void 0])]))})]}}function a0(e,t){const n=br(e.RawValue);return n.tag===1?[new $e(e.RawValue,e.IsTouched,new Ke(3,[]),n.fields[0]),A()]:t?[new $e(e.RawValue,e.IsTouched,new Ke(3,[]),"The supplied ABN is for a regulated fund"),A()]:[new $e(e.RawValue,e.IsTouched,new Ke(2,[n.fields[0]]),e.ErrorMessage),A()]}function vu(e){const t=br(e.RawValue);return t.tag===1?[new $e(e.RawValue,!0,e.Value,t.fields[0]),A()]:[new $e(e.RawValue,!0,e.Value,e.ErrorMessage),A()]}function u0(e,t,n){if(t.tag===1)return t.fields[0].tag===1?t.fields[0].fields[0].tag===1?[new $e(n.RawValue,n.IsTouched,new Ke(3,[]),"Something went wrong when validating your fund ABN"),A()]:a0(n,t.fields[0].fields[0].fields[0]):[n,wt(r=>{_t(r)},e,n.RawValue,r=>new Fn(1,[new Je(1,[r])]))];if(t.fields[0].tag===1)return vu(n);{const r=br(t.fields[0].fields[0]);return r.tag===1?n.IsTouched?[new $e(t.fields[0].fields[0],n.IsTouched,new Ke(0,[]),r.fields[0]),A()]:[new $e(t.fields[0].fields[0],n.IsTouched,new Ke(0,[]),void 0),A()]:t.fields[0].fields[0]===n.RawValue?[n,A()]:[new $e(t.fields[0].fields[0],n.IsTouched,new Ke(1,[]),void 0),T(s=>{s(new Fn(1,[new Je(0,[void 0])]))})]}}function l0(e){let t,n;const r=e.dispatch,s=e.state,o=l=>{r(new Fn(0,[new ri(0,[l])]))},i=s.IsTouched&&s.ErrorMessage!=null,a=[h("div",S(v([["className","mt-3"],(t=[h("label",{className:"text-sm font-medium text-gray-700",htmlFor:"fundAbn",children:"Fund ABN"}),h("div",S(v([["className","mt-1"],(n=[h("input",{id:"fundAbn",type:"text",value:s.RawValue,inputMode:"numeric",className:D(" ",ee(M(()=>K($("peer relative shadow-sm focus:ring-primary-focus focus:border-primary-base block w-full text-base sm:text-sm border-gray-300 rounded-md focus:z-10"),M(()=>i?$("border-red-300 text-red-900 placeholder-red-300 focus:ring-red-500 focus:border-red-500"):ie()))))),onKeyUp:l=>{o(gr(l))},onBlur:l=>{r(new Fn(0,[new ri(1,[])]))},onChange:l=>{o(l.target.value)}}),dt(s.ErrorMessage)],["children",y.Children.toArray(Array.from(n))])])))],["children",y.Children.toArray(Array.from(t))])])))];return h(ve,{},...a)}class c0 extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["BankName"]}}function d0(e){return e.fields[0]}function f0(e){return new c0(`${e.Bank} - ${e.Branch}`)}let si=class extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SetValue","SetTouched"]}},An=class extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["UpdateBankAccountBsb","BsbLookup"]}};class it extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["NotYetStarted","Pending","Valid","Invalid"]}}let Ye=class extends L{constructor(t,n,r,s){super(),this.RawValue=t,this.IsTouched=n,this.Value=r,this.ErrorMessage=s}};function xu(e,t){if(e==null)return[new Ye("",!1,new it(0,[]),void 0),A()];{const n=e,r=yr(n);return r.tag===1?[new Ye(n,!1,new it(3,[]),r.fields[0]),A()]:[new Ye(n,!1,new it(1,[]),void 0),T(s=>{s(new An(1,[new Je(0,[void 0])]))})]}}function oi(e){return new Ye(e.RawValue,e.IsTouched,new it(3,[]),"Unable to identify the bank using the provided BSB number")}function h0(e,t){let n;const r=yr(e.RawValue);return n=r.tag===1?[new it(3,[]),r.fields[0]]:[new it(2,[[r.fields[0],f0(t)]]),void 0],new Ye(e.RawValue,e.IsTouched,n[0],n[1])}function Su(e){const t=yr(e.RawValue);return t.tag===1?[new Ye(e.RawValue,!0,e.Value,t.fields[0]),A()]:[new Ye(e.RawValue,!0,e.Value,e.ErrorMessage),A()]}function m0(e,t,n){if(t.tag===1)if(t.fields[0].tag===1){if(t.fields[0].fields[0].tag===1)return[oi(n),A()];{const r=t.fields[0].fields[0].fields[0].BankDetails;return r!=null?[h0(n,r),A()]:[oi(n),A()]}}else return[n,wt(r=>{_t(r)},e,n.RawValue,r=>new An(1,[new Je(1,[r])]))];else{if(t.fields[0].tag===1)return Su(n);{const r=yr(t.fields[0].fields[0]);return r.tag===1?n.IsTouched?[new Ye(t.fields[0].fields[0],n.IsTouched,new it(0,[]),r.fields[0]),A()]:[new Ye(t.fields[0].fields[0],n.IsTouched,new it(0,[]),void 0),A()]:t.fields[0].fields[0]===n.RawValue?[n,A()]:[new Ye(t.fields[0].fields[0],n.IsTouched,new it(1,[]),void 0),T(s=>{s(new An(1,[new Je(0,[void 0])]))})]}}}function p0(e){let t;return h("div",S(v([["className","mt-3"],(t=[h("label",{className:"text-sm font-medium text-gray-700",children:"Bank name",htmlFor:"bankName"}),h("div",{id:"bankName",className:"mt-1 shadow-sm px-3 py-2 rounded-md border border-gray-300 bg-gray-50 text-gray-500 text-sm",children:d0(e),"data-testid":"bank-name"})],["children",y.Children.toArray(Array.from(t))])])))}function w0(e){const t=e.dispatch,n=e.state,r=i=>{t(new An(0,[new si(0,[i])]))},s=n.IsTouched&&n.ErrorMessage!=null,o=ee(M(()=>{let i,a;return K($(h("div",S(v([["className","mt-3"],(i=[h("label",{className:"text-sm font-medium text-gray-700",htmlFor:"bankAccountBsb",children:"BSB"}),h("div",S(v([["className","mt-1"],(a=[h("input",{id:"bankAccountBsb",type:"text",value:n.RawValue,inputMode:"numeric",className:D(" ",ee(M(()=>K($("peer relative shadow-sm focus:ring-primary-focus focus:border-primary-base block w-full text-base sm:text-sm border-gray-300 rounded-md focus:z-10"),M(()=>s?$("border-red-300 text-red-900 placeholder-red-300 focus:ring-red-500 focus:border-red-500"):ie()))))),onKeyUp:l=>{r(gr(l))},onBlur:l=>{t(new An(0,[new si(1,[])]))},onChange:l=>{r(l.target.value)}}),dt(n.ErrorMessage)],["children",y.Children.toArray(Array.from(a))])])))],["children",y.Children.toArray(Array.from(i))])])))),M(()=>{const l=n.Value;switch(l.tag){case 2:return $(p0(l.fields[0][1]));default:return $(ze())}}))}));return h(ve,{},...o)}let ii=class extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SetValue","SetTouched"]}},R=class extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["UpdateFundName","UpdateFundAbn","UpdateFundEsa","UpdateAddressLine1","UpdateAddressLine2","UpdateCity","UpdateAddressState","UpdatePostcode","UpdateMemberFirstName","UpdateMemberLastName","UpdateBankAccountName","UpdateBankAccountBsb","UpdateBankAccountNumber","Submit","Cancel"]}},ue=class extends L{constructor(t,n,r,s,o,i,a,l,u,f){super(),this.FundName=t,this.FundAbn=n,this.FundEsa=r,this.FundAddress=s,this.MemberFirstName=o,this.MemberLastName=i,this.BankAccountName=a,this.BankAccountBsb=l,this.BankAccountNumber=u,this.BankName=f}};class mt extends L{constructor(t,n,r,s,o){super(),this.AddressLine1=t,this.AddressLine2=n,this.City=r,this.AddressState=s,this.Postcode=o}}const _0=(()=>{let e;const t=yu(void 0);e=[t[0],It(s=>new R(1,[s]),t[1])];let n;const r=xu(void 0);return n=[r[0],It(s=>new R(11,[s]),r[1])],[new ue(Xa(void 0),e[0],tu(void 0),new mt(ru(void 0),ou(void 0),au(void 0),lu(void 0),du(void 0)),hu(void 0),pu(void 0),_u(void 0),n[0],bu(void 0),void 0),Wa(v([e[1],n[1]]))]})();function g0(e){let t;const n=yu(e.Abn);t=[n[0],It(o=>new R(1,[o]),n[1])];let r;const s=xu(e.Bsb);return r=[s[0],It(o=>new R(11,[o]),s[1])],[new ue(Xa(e.FundName),t[0],tu(e.ElectronicServiceAddress),new mt(ru(e.FundAddress.AddressLine1),ou(e.FundAddress.AddressLine2),au(e.FundAddress.City),lu(e.FundAddress.State),du(e.FundAddress.Postcode)),hu(e.MemberFirstName),pu(e.MemberFamilyName),_u(e.BankAccountName),r[0],bu(e.BankAccountNumber),void 0),Wa(v([t[1],r[1]]))]}function b0(e){let t;return ur((t=e,t==null?void 0:g0(t)),_0)}function Cu(e){let t;const n=Qa(e.FundName.Value);if(t=n.tag===1?new d(1,[T(n.fields[0])]):new d(0,[n.fields[0]]),t.tag===1)return new d(1,[t.fields[0]]);{let r;const s=e.FundAbn.Value;if(r=s.tag===2?new d(0,[s.fields[0]]):new d(1,[T("Fund ABN is invalid")]),r.tag===1)return new d(1,[r.fields[0]]);{let o;const i=eu(e.FundEsa.Value);if(o=i.tag===1?new d(1,[T(i.fields[0])]):new d(0,[i.fields[0]]),o.tag===1)return new d(1,[o.fields[0]]);{let a;const l=nu(e.FundAddress.AddressLine1.Value);if(a=l.tag===1?new d(1,[T(l.fields[0])]):new d(0,[l.fields[0]]),a.tag===1)return new d(1,[a.fields[0]]);{let u;const f=su(e.FundAddress.AddressLine2.Value);if(u=f.tag===1?new d(1,[T(f.fields[0])]):new d(0,[f.fields[0]]),u.tag===1)return new d(1,[u.fields[0]]);{let c;const p=iu(e.FundAddress.City.Value);if(c=p.tag===1?new d(1,[T(p.fields[0])]):new d(0,[p.fields[0]]),c.tag===1)return new d(1,[c.fields[0]]);{let m;const w=uu(e.FundAddress.AddressState.Value);if(m=w.tag===1?new d(1,[T(w.fields[0])]):new d(0,[w.fields[0]]),m.tag===1)return new d(1,[m.fields[0]]);{let b;const g=cu(e.FundAddress.Postcode.Value);if(b=g.tag===1?new d(1,[T(g.fields[0])]):new d(0,[g.fields[0]]),b.tag===1)return new d(1,[b.fields[0]]);{let _;const F=fu(e.MemberFirstName.Value);if(_=F.tag===1?new d(1,[T(F.fields[0])]):new d(0,[F.fields[0]]),_.tag===1)return new d(1,[_.fields[0]]);{let x;const Z=mu(e.MemberLastName.Value);if(x=Z.tag===1?new d(1,[T(Z.fields[0])]):new d(0,[Z.fields[0]]),x.tag===1)return new d(1,[x.fields[0]]);{let ae;const Ie=wu(e.BankAccountName.Value);if(ae=Ie.tag===1?new d(1,[T(Ie.fields[0])]):new d(0,[Ie.fields[0]]),ae.tag===1)return new d(1,[ae.fields[0]]);{let vt;const xt=e.BankAccountBsb.Value;if(vt=xt.tag===2?new d(0,[xt.fields[0][0]]):new d(1,[T("Bank BSB is invalid")]),vt.tag===1)return new d(1,[vt.fields[0]]);{let ft;const ge=gu(e.BankAccountNumber.Value);return ft=ge.tag===1?new d(1,[T(ge.fields[0])]):new d(0,[ge.fields[0]]),ft.tag===1?new d(1,[ft.fields[0]]):new d(0,[new jm(t.fields[0],r.fields[0],o.fields[0],a.fields[0],u.fields[0],c.fields[0],m.fields[0],b.fields[0],_.fields[0],x.fields[0],ae.fields[0],vt.fields[0],ft.fields[0])])}}}}}}}}}}}}}function y0(e){return new ue(le(e.FundName),vu(e.FundAbn)[0],le(e.FundEsa),new mt(le(e.FundAddress.AddressLine1),le(e.FundAddress.AddressLine2),le(e.FundAddress.City),le(e.FundAddress.AddressState),le(e.FundAddress.Postcode)),le(e.MemberFirstName),le(e.MemberLastName),le(e.BankAccountName),Su(e.BankAccountBsb)[0],le(e.BankAccountNumber),e.BankName)}function Oe(e,t,n){return n(e.tag===1?le(t):Ya(t,e.fields[0]))}function v0(e,t,n){switch(t.tag){case 1:{const r=u0(e.IsRegulatedFundAbn,t.fields[0],n.FundAbn);return[new ue(n.FundName,r[0],n.FundEsa,n.FundAddress,n.MemberFirstName,n.MemberLastName,n.BankAccountName,n.BankAccountBsb,n.BankAccountNumber,n.BankName),It(s=>new R(1,[s]),r[1])]}case 2:return[Oe(t.fields[0],n.FundEsa,r=>new ue(n.FundName,n.FundAbn,r,n.FundAddress,n.MemberFirstName,n.MemberLastName,n.BankAccountName,n.BankAccountBsb,n.BankAccountNumber,n.BankName)),A()];case 3:return[Oe(t.fields[0],n.FundAddress.AddressLine1,r=>{let s;return new ue(n.FundName,n.FundAbn,n.FundEsa,(s=n.FundAddress,new mt(r,s.AddressLine2,s.City,s.AddressState,s.Postcode)),n.MemberFirstName,n.MemberLastName,n.BankAccountName,n.BankAccountBsb,n.BankAccountNumber,n.BankName)}),A()];case 4:return[Oe(t.fields[0],n.FundAddress.AddressLine2,r=>{let s;return new ue(n.FundName,n.FundAbn,n.FundEsa,(s=n.FundAddress,new mt(s.AddressLine1,r,s.City,s.AddressState,s.Postcode)),n.MemberFirstName,n.MemberLastName,n.BankAccountName,n.BankAccountBsb,n.BankAccountNumber,n.BankName)}),A()];case 5:return[Oe(t.fields[0],n.FundAddress.City,r=>{let s;return new ue(n.FundName,n.FundAbn,n.FundEsa,(s=n.FundAddress,new mt(s.AddressLine1,s.AddressLine2,r,s.AddressState,s.Postcode)),n.MemberFirstName,n.MemberLastName,n.BankAccountName,n.BankAccountBsb,n.BankAccountNumber,n.BankName)}),A()];case 6:return[Oe(t.fields[0],n.FundAddress.AddressState,r=>{let s;return new ue(n.FundName,n.FundAbn,n.FundEsa,(s=n.FundAddress,new mt(s.AddressLine1,s.AddressLine2,s.City,r,s.Postcode)),n.MemberFirstName,n.MemberLastName,n.BankAccountName,n.BankAccountBsb,n.BankAccountNumber,n.BankName)}),A()];case 7:return[Oe(t.fields[0],n.FundAddress.Postcode,r=>{let s;return new ue(n.FundName,n.FundAbn,n.FundEsa,(s=n.FundAddress,new mt(s.AddressLine1,s.AddressLine2,s.City,s.AddressState,r)),n.MemberFirstName,n.MemberLastName,n.BankAccountName,n.BankAccountBsb,n.BankAccountNumber,n.BankName)}),A()];case 8:return[Oe(t.fields[0],n.MemberFirstName,r=>new ue(n.FundName,n.FundAbn,n.FundEsa,n.FundAddress,r,n.MemberLastName,n.BankAccountName,n.BankAccountBsb,n.BankAccountNumber,n.BankName)),A()];case 9:return[Oe(t.fields[0],n.MemberLastName,r=>new ue(n.FundName,n.FundAbn,n.FundEsa,n.FundAddress,n.MemberFirstName,r,n.BankAccountName,n.BankAccountBsb,n.BankAccountNumber,n.BankName)),A()];case 10:return[Oe(t.fields[0],n.BankAccountName,r=>new ue(n.FundName,n.FundAbn,n.FundEsa,n.FundAddress,n.MemberFirstName,n.MemberLastName,r,n.BankAccountBsb,n.BankAccountNumber,n.BankName)),A()];case 11:{const r=m0(e.BsbLookup,t.fields[0],n.BankAccountBsb);return[new ue(n.FundName,n.FundAbn,n.FundEsa,n.FundAddress,n.MemberFirstName,n.MemberLastName,n.BankAccountName,r[0],n.BankAccountNumber,n.BankName),It(s=>new R(11,[s]),r[1])]}case 12:return[Oe(t.fields[0],n.BankAccountNumber,r=>new ue(n.FundName,n.FundAbn,n.FundEsa,n.FundAddress,n.MemberFirstName,n.MemberLastName,n.BankAccountName,n.BankAccountBsb,r,n.BankName)),A()];case 13:{const r=Cu(n);if(r.tag===1)return[y0(n),A()];{const s=r.fields[0];return[n,$h(new kh(_m(s.FundName),bm(s.FundAbn),vm(s.FundEsa),Sm(s.FundAddressLine1),Fm(s.FundAddressLine2),km(s.FundCity),Nm(s.FundState),Em(s.FundPostcode),Bm(s.MemberFirstName),Lm(s.MemberLastName),Dm(s.BankAccountName),Um(s.BankAccountBsb),Hm(s.BankAccountNumber)))]}}case 14:return[n,Bh()];default:return[Oe(t.fields[0],n.FundName,r=>new ue(r,n.FundAbn,n.FundEsa,n.FundAddress,n.MemberFirstName,n.MemberLastName,n.BankAccountName,n.BankAccountBsb,n.BankAccountNumber,n.BankName)),A()]}}function x0(e){let t,n,r,s,o,i,a;const l=e.smsfChoice,u=e.backendService;let f;const c=b0(l);f=Vn(()=>In(()=>c,(x,Z)=>v0(u,x,Z),(x,Z)=>{}),void 0,void 0);const p=f[0],m=f[1],w=(x,Z)=>{m(x(new ii(1,[])))},b=(x,Z)=>{m(x(new ii(0,[Z])))};let g;g=Cu(p).tag!==1;const F=T(h("form",S(v([["id","form"],["novalidate",""],(t=[h("div",S(v([["className","p-4 sm:p-6 pb-6 sm:pb-8 border shadow-sm rounded-lg max-w-560"],(n=[h("p",{className:"sm:text-lg font-bold",children:"Fund details"}),Wm,h("div",S(T((r=[(s=v([qm(new ye(p.FundName,O(w)(x=>new R(0,[x])),O(b)(x=>new R(0,[x])))),h(l0,{state:p.FundAbn,dispatch:x=>{m(new R(1,[x]))}}),Zm(new ye(p.FundEsa,O(w)(x=>new R(2,[x])),O(b)(x=>new R(2,[x])))),e0(new zm(new ye(p.FundAddress.AddressLine1,O(w)(x=>new R(3,[x])),O(b)(x=>new R(3,[x]))),new ye(p.FundAddress.AddressLine2,O(w)(x=>new R(4,[x])),O(b)(x=>new R(4,[x]))),new ye(p.FundAddress.City,O(w)(x=>new R(5,[x])),O(b)(x=>new R(5,[x]))),new ye(p.FundAddress.AddressState,O(w)(x=>new R(6,[x])),O(b)(x=>new R(6,[x]))),new ye(p.FundAddress.Postcode,O(w)(x=>new R(7,[x])),O(b)(x=>new R(7,[x]))))),h("div",S(v([["className","flex space-x-4"],(o=[t0(new ye(p.MemberFirstName,O(w)(x=>new R(8,[x])),O(b)(x=>new R(8,[x])))),n0(new ye(p.MemberLastName,O(w)(x=>new R(9,[x])),O(b)(x=>new R(9,[x]))))],["children",y.Children.toArray(Array.from(o))])]))),h("h3",{className:"text-lg font-bold mt-6",children:"Fund bank details"}),r0(new ye(p.BankAccountName,O(w)(x=>new R(10,[x])),O(b)(x=>new R(10,[x])))),h(w0,{state:p.BankAccountBsb,dispatch:x=>{m(new R(11,[x]))}}),s0(new ye(p.BankAccountNumber,O(w)(x=>new R(12,[x])),O(b)(x=>new R(12,[x]))))]),h("div",{children:y.Children.toArray(Array.from(s))}))],["children",y.Children.toArray(Array.from(r))]))))],["children",y.Children.toArray(Array.from(n))])]))),h("div",S(v([["className","flex justify-center mt-8"],(i=[h("div",S(v([["className","sm:max-w-320 w-full"],(a=[o0(g,x=>{x.preventDefault(),m(new R(13,[]))}),i0(x=>{x.preventDefault(),m(new R(14,[]))})],["children",y.Children.toArray(Array.from(a))])])))],["children",y.Children.toArray(Array.from(i))])])))],["children",y.Children.toArray(Array.from(t))])]))));return h("div",{children:y.Children.toArray(Array.from(F))})}const S0=h("svg",S(v([["fill","none"],["height",47],["viewBox","0 0 48 47"],["width",48],["xmlns","http://www.w3.org/2000/svg"],(()=>{let e,t,n,r;const s=v([h("rect",{width:48,height:47,rx:8,fill:"#FEE2E2"}),h("g",S(v([["clipPath","url(#clip0_153_10600)"],(e=v([h("path",{d:"M24 15V27",stroke:"#DC2626",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),h("path",S(v([(t="M24 34C24.8284 34 25.5 33.3284 25.5 32.5C25.5 31.6716 24.8284 31 24 31C23.1716 31 22.5 31.6716 22.5 32.5C22.5 33.3284 23.1716 34 24 34Z",["d",t]),["fill","#DC2626"]]))),h("path",{d:"M30.213 9H17.787L9 17.787V30.213L17.787 39H30.213L39 30.213V17.787L30.213 9Z",stroke:"#111827",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]),["children",y.Children.toArray(Array.from(e))])]))),(n=T(h("clipPath",S(v([["id","clip0_153_10600"],(r=T(h("rect",{width:32,height:32,fill:"white",transform:"translate(8,8)"})),["children",y.Children.toArray(Array.from(r))])])))),h("defs",{children:y.Children.toArray(Array.from(n))}))]);return["children",y.Children.toArray(Array.from(s))]})()])));function C0(e){return h("h1",{className:"mt-4 mb-4 sm:mb-8 text-2xl sm:text-3xl font-semibold text-gray-900",children:e})}function Fu(e){let t,n,r,s;return h("div",S(v([(t="w-full h-full px-8 py-20 bg-white rounded border border-zinc-200 flex-col justify-start items-center gap-10 inline-flex",["className",t]),(n=[S0,C0("Something went wrong"),h("div",S(v([["className","justify-start items-center"],(r=[h("p",S(v([(s="text-center text-base sm:text-lg text-gray-900 whitespace-pre-wrap leading-6 sm:leading-8 space-y-3 sm:space-y-4 mb-4",["className",s]),["children",e]]))),h("p",{className:"text-center text-base sm:text-lg text-gray-900 whitespace-pre-wrap leading-6 sm:leading-8 mb-8",children:"Please try again later."})],["children",y.Children.toArray(Array.from(r))])])))],["children",y.Children.toArray(Array.from(n))])])))}function xr(e,t){let n;return h("div",S(v([["className",D(" ",["animate-pulse w-full relative",e,t])],(n=[h("div",{className:D(" ",["w-full left-0 top-0 absolute bg-gray-200 rounded",e])})],["children",y.Children.toArray(Array.from(n))])])))}const F0=xr("h-9","max-w-96"),ai=xr("h-6","max-w-96"),A0=xr("h-80","max-w-96"),k0=xr("h-10","max-w-48"),Au=(()=>{let e,t,n;const r=[h("div",S(v([(e="w-full h-full px-8 py-20 bg-white rounded border border-zinc-200 flex-col justify-start items-center gap-10 inline-flex",["className",e]),(t=[h("div",S(v([["className","max-w-96 w-full flex-col justify-start items-center gap-6 flex"],(n=[F0,h("div",{className:"self-stretch h-14 flex-col justify-start items-center gap-2 flex",children:y.Children.toArray([ai,ai])})],["children",y.Children.toArray(Array.from(n))])]))),A0,k0],["children",y.Children.toArray(Array.from(t))])])))];return h(ve,{},...r)})();function Us(){return(Us=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 N0=["context","children"];function M0(e){this.getChildContext=function(){return e.context};var t=e.children,n=function(r,s){if(r==null)return{};var o,i,a={},l=Object.keys(r);for(i=0;i<l.length;i++)s.indexOf(o=l[i])>=0||(a[o]=r[o]);return a}(e,N0);return ns(t,n)}function E0(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=h(M0,Us({},this._props,{context:e.detail.context}),function t(n,r){if(n.nodeType===3)return n.data;if(n.nodeType!==1)return null;var s=[],o={},i=0,a=n.attributes,l=n.childNodes;for(i=a.length;i--;)a[i].name!=="slot"&&(o[a[i].name]=a[i].value,o[ku(a[i].name)]=a[i].value);for(i=l.length;i--;){var u=t(l[i],null),f=l[i].slot;f?o[f]=h(ui,{name:f},u):s[i]=u}var c=r?h(ui,null,s):s;return h(r||n.nodeName.toLowerCase(),o,c)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?ts:gt)(this._vdom,this._root)}function ku(e){return e.replace(/-(\w)/g,function(t,n){return n?n.toUpperCase():""})}function $0(e,t,n){if(this._vdom){var r={};r[e]=n=n??void 0,r[ku(e)]=n,this._vdom=ns(this._vdom,r),gt(this._vdom,this._root)}}function T0(){gt(this._vdom=null,this._root)}function ui(e,t){var n=this;return h("slot",Us({},e,{ref:function(r){r?(n.ref=r,n._listener||(n._listener=function(s){s.stopPropagation(),s.detail.context=t},r.addEventListener("_preact",n._listener))):n.ref.removeEventListener("_preact",n._listener)}}))}function B0(e,t,n,r){function s(){var o=Reflect.construct(HTMLElement,[],s);return o._vdomComponent=e,o._root=r&&r.shadow?o.attachShadow({mode:r.mode||"open"}):o,o}return(s.prototype=Object.create(HTMLElement.prototype)).constructor=s,s.prototype.connectedCallback=E0,s.prototype.attributeChangedCallback=$0,s.prototype.disconnectedCallback=T0,n=n||e.observedAttributes||Object.keys(e.propTypes||{}),s.observedAttributes=n,n.forEach(function(o){Object.defineProperty(s.prototype,o,{get:function(){return this._vdom.props[o]},set:function(i){this._vdom?this.attributeChangedCallback(o,null,i):(this._props||(this._props={}),this._props[o]=i,this.connectedCallback());var a=typeof i;i!=null&&a!=="string"&&a!=="boolean"&&a!=="number"||this.setAttribute(o,i)}})}),customElements.define(t||e.tagName||e.displayName||e.name,s)}function Ps(e,t){B0(e,t,void 0,{shadow:!0})}function I0(e){let t;const n=v([h("style",{children:[_s]}),h("div",S(v([["className","mx-auto max-w-7xl"],(t=[h("div",{className:"mx-auto max-w-3xl",children:y.Children.toArray([e])})],["children",y.Children.toArray(Array.from(t))])])))]);return h("div",{children:y.Children.toArray(Array.from(n))})}let Nu=class extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Initialise","LoadedSmsfChoice"]}},Kr=class extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Loading","Loaded","Failed"]}};function V0(){return[new Kr(0,[]),T(e=>{e(new Nu(0,[]))})]}function L0(e,t,n){return t.tag===1?t.fields[0].tag===1?[new Kr(2,[]),A()]:[new Kr(1,[t.fields[0].fields[0].SmsfChoice]),Th()]:[n,wt(r=>{_t(r)},e,void 0,r=>new Nu(1,[r]))]}function O0(e){let t,n;const r=$s(e.backendUrl,e.accessToken),s=(t=(n=r.GetSmsfChoice,o=>i=>L0(n,o,i)),Vn(()=>In(V0,z(t),(o,i)=>{}),void 0,void 0))[0];return I0(s.tag===1?h(x0,{backendService:r,smsfChoice:ys(s.fields[0])}):s.tag===2?Fu("We are unable to load the Self Managed Super Fund form at this time."):Au)}function D0(){Ps(e=>h(O0,e),"apollo-super-smsf")}class R0 extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["FundName"]}}function nr(e){return e.fields[0]}function li(e){return new R0(e)}class U0 extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["FundUsi"]}}function an(e){return e.fields[0]}function ci(e){return new U0(e)}class P0 extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["MemberNumber"]}}function Mu(e){let t;const n=xe("Member number",_r(e));return t=n.tag===1?new d(1,[n.fields[0]]):ct("Member number",2,n.fields[0]),t.tag===1?new d(1,[t.fields[0]]):new d(0,[new P0(t.fields[0])])}function H0(e){return Se(Mu,e)}function z0(e){return e.fields[0]}class j0 extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["MemberFirstName"]}}const G0="[A-Za-z][A-Za-z']+(( |-)[A-Za-z][A-Za-z']+)*\\s*$";function Eu(e){let t;const n=xe("Member given name(s)",e);return t=n.tag===1?new d(1,[n.fields[0]]):mn("Member given name(s)",G0,n.fields[0]),t.tag===1?new d(1,[t.fields[0]]):new d(0,[new j0(t.fields[0])])}function W0(e){return Se(Eu,e)}function q0(e){return e.fields[0]}class Z0 extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["MemberLastName"]}}const J0="[A-Za-z][A-Za-z']+(( |-)[A-Za-z][A-Za-z']+)*\\s*$";function $u(e){let t;const n=xe("Last Name",e);return t=n.tag===1?new d(1,[n.fields[0]]):mn("Last Name",J0,n.fields[0]),t.tag===1?new d(1,[t.fields[0]]):new d(0,[new Z0(t.fields[0])])}function K0(e){return Se($u,e)}function Y0(e){return e.fields[0]}class Q0 extends L{constructor(t,n,r,s,o){super(),this.FundName=t,this.FundUsi=n,this.MemberNumber=r,this.MemberFirstName=s,this.MemberLastName=o}}const X0=h("svg",S(v([["fill","#facc15"],["className","h-5 w-5"],["viewBox","0 0 20 20"],["xmlns","http://www.w3.org/2000/svg"],(()=>{let e;const t=T(h("path",S(v([["fill-rule","evenodd"],(e="M8.257 3.099c.765-1.36 2.722-1.36 3.486 0l5.58 9.92c.75 1.334-.213 2.98-1.742 2.98H4.42c-1.53 0-2.493-1.646-1.743-2.98l5.58-9.92zM11 13a1 1 0 11-2 0 1 1 0 012 0zm-1-8a1 1 0 00-1 1v3a1 1 0 002 0V6a1 1 0 00-1-1z",["d",e]),["clipRule","evenodd"]]))));return["children",y.Children.toArray(Array.from(t))]})()]))),ep=h("div",S(v([["className","bg-yellow-50 border-l-4 border-yellow-400 p-4 my-3"],(()=>{let e,t,n;const r=[h("div",S(v([["className","flex"],(e=[h("div",{className:"flex-shrink-0",children:y.Children.toArray([X0])}),h("div",S(v([["className","ml-2"],(t=[h("ul",S(v([["className","list-disc list-outside ml-6 space-y-2 text-sm text-yellow-700 leading-5"],(n=[h("li",{children:["Make sure you are a current member of the fund before completing this step."]}),h("li",{children:["Please check that the fund USI is correct as some funds have similar names."]})],["children",y.Children.toArray(Array.from(n))])])))],["children",y.Children.toArray(Array.from(t))])])))],["children",y.Children.toArray(Array.from(e))])])))];return["children",y.Children.toArray(Array.from(r))]})()])));function Sr(e){if(e==null)return ze();{const t=e;return h("div",{className:D(" ",["mt-2 text-sm text-red-600"]),children:t})}}function Hs(e){return ee(M(()=>K($("relative shadow-sm focus:ring-primary-focus focus:border-primary-base block w-full text-base sm:text-sm border-gray-300 rounded-md focus:z-10"),M(()=>e?$("border-red-300 text-red-900 placeholder-red-300 focus:ring-red-500 focus:border-red-500"):ie()))))}function tp(e){let t,n;return h("div",S(v([["className","mt-3"],(t=[h("label",{className:"text-sm font-medium text-gray-700",htmlFor:"memberNumber",children:"Member Number"}),h("div",S(v([["className","mt-1"],(n=[h("input",{id:"memberNumber","data-testid":"member-number-input",type:"text",value:e.Field.Value,className:D(" ",Hs(e.Field.ErrorMessage!=null)),onBlur:e.OnBlur,onChange:r=>{e.OnChange(r.target.value)}}),Sr(e.Field.ErrorMessage)],["children",y.Children.toArray(Array.from(n))])])))],["children",y.Children.toArray(Array.from(t))])])))}function np(e){let t,n;return h("div",S(v([["className","mt-3 w-1/2"],(t=[h("label",{className:"text-sm font-medium text-gray-700",htmlFor:"memberGivenNames",children:"Given name(s)"}),h("div",S(v([["className","mt-1"],(n=[h("input",{type:"text",className:D(" ",Hs(e.Field.ErrorMessage!=null)),id:"memberGivenNames","data-testid":"member-given-names-input",value:e.Field.Value,onBlur:e.OnBlur,onChange:r=>{e.OnChange(r.target.value)}}),Sr(e.Field.ErrorMessage)],["children",y.Children.toArray(Array.from(n))])])))],["children",y.Children.toArray(Array.from(t))])])))}function rp(e){let t,n;return h("div",S(v([["className","mt-3 w-1/2"],(t=[h("label",{className:"text-sm font-medium text-gray-700",htmlFor:"memberLastNames",children:"Last name"}),h("div",S(v([["className","mt-1"],(n=[h("input",{type:"text",className:D(" ",Hs(e.Field.ErrorMessage!=null)),id:"memberLastName","data-testid":"member-last-name-input",value:e.Field.Value,onBlur:e.OnBlur,onChange:r=>{e.OnChange(r.target.value)}}),Sr(e.Field.ErrorMessage)],["children",y.Children.toArray(Array.from(n))])])))],["children",y.Children.toArray(Array.from(t))])])))}function sp(e,t){let n;return h("div",S(v([["className","mb-4"],(n=[h("div",S(ee(M(()=>K(e?ie():$(["onClick",t]),M(()=>{let r;return $((r=[h("button",{className:D(" ",["px-4 py-2 text-base inline-flex items-center justify-center border font-medium","rounded-md shadow-sm pointer-events-auto border-transparent text-white bg-primary-base w-full","disabled:pointer-events-none disabled:border-gray-300 disabled:bg-gray-100 disabled:text-gray-400","focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-focus","hover:bg-primary-hover"]),"data-testid":"continue-button",disabled:!e,children:"Continue",onClick:t})],["children",y.Children.toArray(Array.from(r))]))}))))))],["children",y.Children.toArray(Array.from(n))])])))}function op(e){let t,n,r;return h("div",S(T((t=[h("a",S(v([["href","/"],(n=[h("div",S(T((r=[h("button",{className:D(" ",["px-4 py-2 text-base inline-flex items-center justify-center border font-medium rounded-md shadow-sm pointer-events-auto border-gray-300 text-gray-700 bg-white w-full","disabled:pointer-events-none disabled:border-gray-300 disabled:bg-gray-100 disabled:text-gray-400","focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-focus","hover:bg-gray-50"]),"data-testid":"back-button",children:"Back",onClick:e})],["children",y.Children.toArray(Array.from(r))]))))],["children",y.Children.toArray(Array.from(n))])])))],["children",y.Children.toArray(Array.from(t))]))))}class Jt extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Enter","DownArrow","UpArrow","Escape"]}}let ke=class extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SetValue","SetTouched","OnFocus","OnKeyboard","SelectFundIndex","FundSearch"]}};class Ct extends L{constructor(t,n){super(),this.Funds=t,this.SelectedIndex=n}}class et extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SearchSuccess","FoundTooMany","SearchError"]}}class be extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Pristine","SearchNotStarted","Searching","SearchResult"]}}let te=class extends L{constructor(t,n,r,s,o,i){super(),this.IsTouched=t,this.HasFocus=n,this.SearchCorrelationId=r,this.SearchState=s,this.ValidatedFund=o,this.ErrorMessage=i}};function ip(e){if(e.HasFocus){const t=e.SearchState;switch(t.tag){case 1:return t.fields[0];case 2:return t.fields[0];case 3:switch(t.fields[1].tag){case 1:return t.fields[0];case 2:return t.fields[0];default:{const n=t.fields[1].fields[0].SelectedIndex;if(n==null)return t.fields[0];{const r=Cn(n,t.fields[1].fields[0].Funds);return`${r.ProductName} (${r.Usi})`}}}default:return ur(vs(n=>`${nr(n[0])} (${an(n[1])})`,e.ValidatedFund),"")}}else{const t=e.ValidatedFund;if(t==null){const n=e.SearchState;switch(n.tag){case 1:return n.fields[0];case 2:return n.fields[0];case 3:return n.fields[0];default:return""}}else{const n=t[1];return`${nr(t[0])} (${an(n)})`}}}function ap(e){return vs(t=>t[0],e.ValidatedFund)}function up(e){return vs(t=>t[1],e.ValidatedFund)}function lp(e){return new te(!1,!1,void 0,new be(0,[]),e,void 0)}function Tu(e){return[new te(!0,!1,e.SearchCorrelationId,e.SearchState,e.ValidatedFund,e.ValidatedFund!=null?void 0:"Select a fund"),A()]}function cp(e,t,n){let r,s,o,i;const a=l=>V.Delay(()=>V.Bind(va(500),()=>V.Return(l)));switch(t.tag){case 1:return Tu(n);case 2:{const l=n.ValidatedFund,u=n.SearchState;let f,c,p,m;switch(l!=null&&u.tag===3&&u.fields[1].tag===0?(f=0,u.fields[0],c=u.fields[1].fields[0],p=l[0],m=l[1]):f=1,f){case 0:{const w=new Ct(c.Funds,Ic(b=>b.Usi===an(m),c.Funds));return[new te(n.IsTouched,!0,n.SearchCorrelationId,new be(3,[`${nr(p)} (${an(m)})`,new et(0,[w])]),n.ValidatedFund,n.ErrorMessage),A()]}default:return[new te(n.IsTouched,!0,n.SearchCorrelationId,n.SearchState,n.ValidatedFund,n.ErrorMessage),A()]}}case 3:{const l=n.SearchState;let u,f,c;switch(l.tag===3&&l.fields[1].tag===0?(u=0,f=l.fields[1].fields[0],c=l.fields[0]):u=1,u){case 0:if(Et(f.Funds)===0)return ce(t.fields[0],new Jt(3,[]))?[new te(n.IsTouched,!1,n.SearchCorrelationId,n.SearchState,n.ValidatedFund,n.ErrorMessage),A()]:[n,A()];{const p=f.SelectedIndex;switch(t.fields[0].tag){case 1:if(p==null)return[new te(n.IsTouched,n.HasFocus,n.SearchCorrelationId,new be(3,[c,new et(0,[new Ct(f.Funds,0)])]),n.ValidatedFund,n.ErrorMessage),A()];{const m=p|0;return[new te(n.IsTouched,n.HasFocus,n.SearchCorrelationId,new be(3,[c,new et(0,[new Ct(f.Funds,bc(Et(f.Funds)-1,m+1))])]),n.ValidatedFund,n.ErrorMessage),A()]}case 0:if(p!=null){const m=Cn(p,f.Funds);return[new te(n.IsTouched,!1,n.SearchCorrelationId,n.SearchState,[li(m.ProductName),ci(m.Usi)],void 0),A()]}else return[n,A()];case 3:return[new te(n.IsTouched,!1,n.SearchCorrelationId,n.SearchState,n.ValidatedFund,n.ErrorMessage),A()];default:return p==null?[new te(n.IsTouched,n.HasFocus,n.SearchCorrelationId,new be(3,[c,new et(0,[new Ct(f.Funds,0)])]),n.ValidatedFund,n.ErrorMessage),A()]:[new te(n.IsTouched,n.HasFocus,n.SearchCorrelationId,new be(3,[c,new et(0,[new Ct(f.Funds,Wr(0,p-1))])]),n.ValidatedFund,n.ErrorMessage),A()]}}default:return ce(t.fields[0],new Jt(3,[]))?[new te(n.IsTouched,!1,n.SearchCorrelationId,n.SearchState,n.ValidatedFund,n.ErrorMessage),A()]:[n,A()]}}case 4:{const l=n.SearchState;let u,f,c;switch(l.tag===3&&l.fields[1].tag===0&&t.fields[0]>=0&&t.fields[0]<Et(l.fields[1].fields[0].Funds)?(u=0,f=l.fields[1].fields[0],c=l.fields[0]):u=1,u){case 0:if(t.fields[1]){const p=Cn(t.fields[0],f.Funds);return[new te(n.IsTouched,!1,n.SearchCorrelationId,n.SearchState,[li(p.ProductName),ci(p.Usi)],void 0),A()]}else return[new te(n.IsTouched,n.HasFocus,n.SearchCorrelationId,new be(3,[c,new et(0,[new Ct(f.Funds,t.fields[0])])]),n.ValidatedFund,n.ErrorMessage),A()];default:return[n,A()]}}case 5:if(t.fields[0].tag===1)if(ce(n.SearchCorrelationId,t.fields[1])){const l=n.SearchState;return l.tag===2?[new te(n.IsTouched,n.HasFocus,void 0,new be(3,[l.fields[0],t.fields[0].fields[0].tag===1?new et(2,[t.fields[0].fields[0].fields[0]]):(r=t.fields[0].fields[0].fields[0],r.Result.tag===0?new et(0,[new Ct(Rc(u=>u.ProductName,r.Data,{Compare:ir}),void 0)]):new et(1,[]))]),n.ValidatedFund,n.ErrorMessage),A()]:[new te(n.IsTouched,n.HasFocus,void 0,n.SearchState,n.ValidatedFund,n.ErrorMessage),A()]}else return[n,A()];else return[n,ce(n.SearchCorrelationId,t.fields[1])?wt(l=>{_t(l)},e,[t.fields[0].fields[0][0],t.fields[0].fields[0][1]],l=>{const u=(f=>[new Je(1,[f]),t.fields[1]])(l);return new ke(5,[u[0],u[1]])}):A()];default:{const l=n.SearchState;let u;switch(l.tag){case 2:{l.fields[0]!==t.fields[0]?(u=1,l.fields[0]):u=2;break}case 3:{t.fields[0]!==l.fields[0]?(u=3,l.fields[0]):u=4;break}default:u=0}switch(u){case 0:if(t.fields[0].length>=3){const f=Er();return[new te(n.IsTouched,n.HasFocus,f,new be(2,[t.fields[0]]),n.ValidatedFund,n.ErrorMessage),wt(c=>{_t(c)},a,(s=[new Je(0,[[t.fields[0],25]]),f],new ke(5,[s[0],s[1]])),c=>c)]}else return[new te(n.IsTouched,n.HasFocus,n.SearchCorrelationId,new be(1,[t.fields[0]]),n.ValidatedFund,n.ErrorMessage),A()];case 1:if(t.fields[0].length>=3){const f=Er();return[new te(n.IsTouched,n.HasFocus,f,new be(2,[t.fields[0]]),n.ValidatedFund,n.ErrorMessage),wt(c=>{_t(c)},a,(o=[new Je(0,[[t.fields[0],25]]),f],new ke(5,[o[0],o[1]])),c=>c)]}else return[new te(n.IsTouched,n.HasFocus,void 0,new be(1,[t.fields[0]]),n.ValidatedFund,n.ErrorMessage),A()];case 2:return[n,A()];case 3:if(t.fields[0].length>=3){const f=Er();return[new te(n.IsTouched,n.HasFocus,f,new be(2,[t.fields[0]]),n.ValidatedFund,n.ErrorMessage),wt(c=>{_t(c)},a,(i=[new Je(0,[[t.fields[0],25]]),f],new ke(5,[i[0],i[1]])),c=>c)]}else return[new te(n.IsTouched,n.HasFocus,void 0,new be(1,[t.fields[0]]),n.ValidatedFund,n.ErrorMessage),A()];default:return[n,A()]}}}}function dp(e){let t;return h("div",S(v([["className","mt-3"],(t=[h("label",{className:"text-sm font-medium text-gray-700",children:"Fund USI",htmlFor:"fundUsi"}),h("div",{id:"fundUsi",className:"mt-1 shadow-sm px-3 py-2 rounded-md border border-gray-300 bg-gray-50 text-gray-500 text-sm",children:an(e),"data-testid":"fund-usi"})],["children",y.Children.toArray(Array.from(t))])])))}function _n(e){return h("span",{className:"cursor-pointer text-gray-500 py-1.5 pl-4",children:e})}function fp(e,t){let n;const r=e.SearchState;let s,o;switch(r.tag){case 2:{s=1;break}case 3:{switch(r.fields[1].tag){case 2:{s=3;break}case 0:{Et(r.fields[1].fields[0].Funds)===0?(s=4,r.fields[1].fields[0]):(s=5,o=r.fields[1].fields[0]);break}default:s=2}break}default:s=0}switch(s){case 0:return _n("Start typing to find the results");case 1:return _n("Searching...");case 2:return _n("Keep typing to narrow down your search.");case 3:return _n("Search failed.");case 4:return _n("No items match your search");default:return h("div",S(T((n=ee(M(()=>Ue(i=>h("div",{className:D(" ",ee(M(()=>K($("cursor-pointer text-wrap py-1.5 pl-4"),M(()=>ce(o.SelectedIndex,i)?$("bg-primary-light"):ie()))))),onClick:a=>{let l;t((l=[i,!0],new ke(4,[l[0],l[1]])))},onMouseEnter:a=>{let l;t((l=[i,!1],new ke(4,[l[0],l[1]])))},onMouseDown:a=>{a.preventDefault()},children:`${Cn(i,o.Funds).ProductName} (${Cn(i,o.Funds).Usi})`}),Za(0,1,Et(o.Funds)-1)))),["children",y.Children.toArray(Array.from(n))]))))}}function hp(e){const t=e.dispatch,n=e.state,r=n.IsTouched&&n.ErrorMessage!=null,s=y.useRef(void 0),o=[n.HasFocus];y.useEffect(()=>{n.HasFocus===!1&&Ms(a=>{a.blur()},Xl(s.current))},o);const i=ee(M(()=>{let a,l;return K($(h("div",S(v([["className","relative mt-3"],(a=[h("label",{className:"text-sm font-medium text-gray-700",htmlFor:"fundName",children:"Fund Name"}),h("div",S(v([["className","mt-1"],["onBlur",u=>{t(new ke(1,[]))}],(l=ee(M(()=>K($(h("input",{id:"fundName","data-testid":"fund-search-input",placeholder:"Type to search by name or USI...",type:"text",value:ip(n),inputMode:"search",className:D(" ",ee(M(()=>K($("relative shadow-sm focus:ring-primary-focus focus:border-primary-base block w-full text-base sm:text-sm border-gray-300 rounded-md focus:z-10"),M(()=>K(r?$("border-red-300 placeholder-red-300 focus:ring-red-500 focus:border-red-500"):ie(),M(()=>r&&!n.HasFocus?$("text-red-900"):ie()))))))),onKeyUp:u=>{switch(u.key){case"Enter":{t(new ke(3,[new Jt(0,[])]));break}case"ArrowDown":{t(new ke(3,[new Jt(1,[])]));break}case"ArrowUp":{t(new ke(3,[new Jt(2,[])]));break}case"Escape":{t(new ke(3,[new Jt(3,[])]));break}}u.preventDefault()},onChange:u=>{t(new ke(0,[u.target.value]))},onFocus:u=>{t(new ke(2,[]))},ref:s})),M(()=>{let u,f;return n.HasFocus?$(h("div",S(v([(u="max-h-[min(320px,50vh)] absolute shadow rounded-md border mt-0.5 overflow-auto w-full bg-white z-10 py-2 text-sm",["className",u]),(f=[fp(n,t)],["children",y.Children.toArray(Array.from(f))])])))):$(Sr(n.ErrorMessage))})))),["children",y.Children.toArray(Array.from(l))])])))],["children",y.Children.toArray(Array.from(a))])])))),M(()=>{const u=n.ValidatedFund;return u!=null?$(dp(u[1])):$(ze())}))}));return h(ve,{},...i)}class mp extends L{constructor(t,n,r,s,o){super(),this.FundName=t,this.FundUsi=n,this.MemberNumber=r,this.MemberFirstName=s,this.MemberLastName=o}}function zs(e,t){const n={detail:t};return new CustomEvent(e,n)}const pp=zs("byof-loaded",{sender:"super-byof"}),wp=zs("byof-cancelled",{sender:"super-byof"});function _p(e){return zs("byof-completed",{fundName:e.FundName,fundUsi:e.FundUsi,memberFirstName:e.MemberFirstName,memberLastName:e.MemberLastName,memberNumber:e.MemberNumber,sender:"super-byof"})}class js extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Loaded","Cancelled","Completed"]}}function Gs(e){let t;t=e.tag===1?wp:e.tag===2?_p(e.fields[0]):pp,document.dispatchEvent(t)}function gp(e,t){Gs(new js(2,[e]))}function bp(e){Gs(new js(0,[]))}function yp(e){Gs(new js(1,[]))}class di extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SetValue","SetTouched"]}}let Ze=class extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["UpdateFundName","UpdateMemberNumber","UpdateMemberFirstName","UpdateMemberLastName","Submit","Cancel"]}},Kt=class extends L{constructor(t,n,r,s){super(),this.Fund=t,this.MemberNumber=n,this.MemberFirstName=r,this.MemberLastName=s}};const vp=new Kt(lp(void 0),H0(void 0),W0(void 0),K0(void 0));function xp(){return[vp,lt(e=>{bp()})]}function Bu(e){let t,n;const r=ap(e.Fund);if(n=r==null?new d(1,["Invalid fund name"]):new d(0,[r]),t=n.tag===1?new d(1,[T(n.fields[0])]):new d(0,[n.fields[0]]),t.tag===1)return new d(1,[t.fields[0]]);{let s,o;const i=up(e.Fund);if(o=i==null?new d(1,["Invalid fund usi"]):new d(0,[i]),s=o.tag===1?new d(1,[T(o.fields[0])]):new d(0,[o.fields[0]]),s.tag===1)return new d(1,[s.fields[0]]);{let a;const l=Mu(e.MemberNumber.Value);if(a=l.tag===1?new d(1,[T(l.fields[0])]):new d(0,[l.fields[0]]),a.tag===1)return new d(1,[a.fields[0]]);{let u;const f=Eu(e.MemberFirstName.Value);if(u=f.tag===1?new d(1,[T(f.fields[0])]):new d(0,[f.fields[0]]),u.tag===1)return new d(1,[u.fields[0]]);{let c;const p=$u(e.MemberLastName.Value);return c=p.tag===1?new d(1,[T(p.fields[0])]):new d(0,[p.fields[0]]),c.tag===1?new d(1,[c.fields[0]]):new d(0,[new Q0(t.fields[0],s.fields[0],a.fields[0],u.fields[0],c.fields[0])])}}}}}function Sp(e){return new Kt(Tu(e.Fund)[0],le(e.MemberNumber),le(e.MemberFirstName),le(e.MemberLastName))}function Br(e,t,n){return n(e.tag===1?le(t):Ya(t,e.fields[0]))}function Cp(e,t,n){switch(t.tag){case 1:return[Br(t.fields[0],n.MemberNumber,r=>new Kt(n.Fund,r,n.MemberFirstName,n.MemberLastName)),A()];case 2:return[Br(t.fields[0],n.MemberFirstName,r=>new Kt(n.Fund,n.MemberNumber,r,n.MemberLastName)),A()];case 3:return[Br(t.fields[0],n.MemberLastName,r=>new Kt(n.Fund,n.MemberNumber,n.MemberFirstName,r)),A()];case 4:{const r=Bu(n);if(r.tag===1)return[Sp(n),A()];{const s=r.fields[0],o=new mp(nr(s.FundName),an(s.FundUsi),z0(s.MemberNumber),q0(s.MemberFirstName),Y0(s.MemberLastName));return[n,lt(i=>{gp(o)})]}}case 5:return[n,lt(r=>{yp()})];default:{const r=cp(e.GetAustralianFundList,t.fields[0],n.Fund);return[new Kt(r[0],n.MemberNumber,n.MemberFirstName,n.MemberLastName),It(s=>new Ze(0,[s]),r[1])]}}}function Fp(e){let t,n,r,s,o,i,a;const l=e.backendService,u=Vn(()=>In(xp,(_,F)=>Cp(l,_,F),(_,F)=>{}),void 0,void 0),f=u[0],c=u[1],p=(_,F)=>{c(_(new di(1,[])))},m=(_,F)=>{c(_(new di(0,[F])))};let w;w=Bu(f).tag!==1;const g=T(h("form",S(v([["id","form"],["novalidate",""],(t=[h("div",S(v([["className","p-4 sm:p-6 pb-6 sm:pb-8 border shadow-sm rounded-lg max-w-560"],(n=[h("p",{className:"sm:text-lg font-bold",children:"Fund details"}),ep,h("div",S(T((r=[(s=v([h(hp,{state:f.Fund,dispatch:_=>{c(new Ze(0,[_]))}}),tp(new ye(f.MemberNumber,O(p)(_=>new Ze(1,[_])),O(m)(_=>new Ze(1,[_])))),h("div",S(v([["className","flex space-x-4"],(o=[np(new ye(f.MemberFirstName,O(p)(_=>new Ze(2,[_])),O(m)(_=>new Ze(2,[_])))),rp(new ye(f.MemberLastName,O(p)(_=>new Ze(3,[_])),O(m)(_=>new Ze(3,[_]))))],["children",y.Children.toArray(Array.from(o))])])))]),h("div",{children:y.Children.toArray(Array.from(s))}))],["children",y.Children.toArray(Array.from(r))]))))],["children",y.Children.toArray(Array.from(n))])]))),h("div",S(v([["className","flex justify-center mt-8"],(i=[h("div",S(v([["className","sm:max-w-320 w-full"],(a=[sp(w,_=>{_.preventDefault(),c(new Ze(4,[]))}),op(_=>{_.preventDefault(),c(new Ze(5,[]))})],["children",y.Children.toArray(Array.from(a))])])))],["children",y.Children.toArray(Array.from(i))])])))],["children",y.Children.toArray(Array.from(t))])]))));return h("div",{children:y.Children.toArray(Array.from(g))})}function Ap(e){let t;const n=v([h("style",{children:[_s]}),h("div",S(v([["className","mx-auto max-w-7xl"],(t=[h("div",{className:"mx-auto max-w-3xl",children:y.Children.toArray([e])})],["children",y.Children.toArray(Array.from(t))])])))]);return h("div",{children:y.Children.toArray(Array.from(n))})}function kp(e){let t;return Ap((t=$s(e.backendUrl,e.accessToken),h(Fp,{backendService:t})))}function Np(){Ps(e=>h(kp,e),"apollo-super-byof")}class Mp extends L{constructor(t){super(),this.FundUsi=t}}class Ep extends L{constructor(t,n){super(),this.FundName=t,this.FundUsi=n}}function Ws(e,t){const n={detail:t};return new CustomEvent(e,n)}function $p(e){return Ws("default-fund-loaded",{fundUsi:ys(e.FundUsi),sender:"super-default-fund"})}const Tp=Ws("default-fund-cancelled",{sender:"super-default-fund"});function Bp(e){return Ws("default-fund-completed",{fundName:e.FundName,fundUsi:e.FundUsi,sender:"super-default-fund"})}class qs extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Loaded","Cancelled","Completed"]}}function Zs(e){let t;t=e.tag===1?Tp:e.tag===2?Bp(e.fields[0]):$p(e.fields[0]),document.dispatchEvent(t)}function Ip(e,t){Zs(new qs(2,[e]))}function Vp(e,t){Zs(new qs(0,[e]))}function Lp(e){Zs(new qs(1,[]))}class fi extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Submit","Cancel"]}}class Op extends L{constructor(t,n){super(),this.FundName=t,this.FundUsi=n}}class hi extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["NoEmployerDefault","ValidDefaultFund"]}}class mi extends L{constructor(t){super(),this.EmployersDefaultFund=t}}function Dp(e,t){const n=s=>{let o;return lt((o=new Mp(s),i=>{Vp(o)}))},r=e.EmployersDefaultFund;if(r!=null){const s=r;return[new mi(new hi(1,[new Op(s.FundName,s.FundUsi)])),n(s.FundUsi)]}else return[new mi(new hi(0,[])),n(void 0)]}function Rp(e,t){if(e.tag===1)return[t,lt(n=>{Lp()})];{const n=t.EmployersDefaultFund;if(n.tag===1){const r=n.fields[0],s=new Ep(r.FundName,r.FundUsi);return[t,lt(o=>{Ip(s)})]}else return[t,A()]}}const Up=h("svg",S(v([["fill","#facc15"],["className","h-5 w-5"],["viewBox","0 0 20 20"],["xmlns","http://www.w3.org/2000/svg"],(()=>{let e;const t=T(h("path",S(v([["fillRule","evenodd"],(e="M8.257 3.099c.765-1.36 2.722-1.36 3.486 0l5.58 9.92c.75 1.334-.213 2.98-1.742 2.98H4.42c-1.53 0-2.493-1.646-1.743-2.98l5.58-9.92zM11 13a1 1 0 11-2 0 1 1 0 012 0zm-1-8a1 1 0 00-1 1v3a1 1 0 002 0V6a1 1 0 00-1-1z",["d",e]),["clipRule","evenodd"]]))));return["children",y.Children.toArray(Array.from(t))]})()]))),Pp=h("div",S(v([["className","bg-yellow-50 border-l-4 border-yellow-400 p-4 my-3"],(()=>{let e,t,n;const r=[h("div",S(v([["className","flex"],(e=[h("div",{className:"flex-shrink-0",children:y.Children.toArray([Up])}),h("div",S(v([["className","ml-3 text-sm text-yellow-700 leading-5"],(t=[h("span",S(T((n="It looks like your employer has not specified a default fund, please contact them if you'd like to use your company's default fund.",["children",n]))))],["children",y.Children.toArray(Array.from(t))])])))],["children",y.Children.toArray(Array.from(e))])])))];return["children",y.Children.toArray(Array.from(r))]})()])));function pi(e,t){let n,r;return h("div",S(v([["className","mt-3"],(n=[h("label",{className:"text-sm font-medium text-gray-700",children:e}),h("div",S(v([(r="mt-1 shadow-sm px-3 py-2 rounded-md border border-gray-300 bg-gray-50 text-gray-500 text-base sm:text-sm",["className",r]),["children",t]])))],["children",y.Children.toArray(Array.from(n))])])))}const Hp=h("div",S(v([["className","text-sm text-gray-700"],(()=>{let e;const t=[h("label",{className:"font-semibold text-gray-900",children:"By clicking “Continue”, you acknowledge that:"}),h("ul",S(v([["className","list-disc list-outside pl-5"],(e=[h("li",{className:"mt-2",children:"you are choosing to join your employer's default super fund;"}),h("li",{className:"mt-2",children:"your employer will open a new account for you with their default super fund; and"}),h("li",{className:"mt-2",children:"your application to join is subject to Trustee approval."})],["children",y.Children.toArray(Array.from(e))])])))];return["children",y.Children.toArray(Array.from(t))]})()]))),zp=h("div",{className:"mt-8 mb-8 h-px w-full bg-gray-200"});function jp(e,t){let n;return h("div",S(v([["className","mb-4"],(n=[h("button",{className:D(" ",ee(M(()=>K($("w-full inline-flex justify-center py-2 px-4 text-sm font-medium rounded-lg transition-all text-white"),M(()=>$(e?"cursor-pointer bg-primary-base hover:bg-primary-hover":"cursor-not-allowed bg-primary-disabled")))))),"data-testid":"continue-button",disabled:!e,onClick:t,children:"Continue"})],["children",y.Children.toArray(Array.from(n))])])))}function Gp(e){let t;const n=T(h("button",S(v([(t="w-full inline-flex justify-center py-2 px-4 border border-gray-300 text-sm font-medium rounded-lg text-gray-700 bg-white hover:bg-gray-50 cursor-pointer",["className",t]),["data-testid","back-button"],["onClick",e],["children","Back"]]))));return h("div",{children:y.Children.toArray(Array.from(n))})}function Wp(e){let t,n,r;const s=Vn(()=>In(()=>Dp(e),Rp,(u,f)=>{}),void 0,void 0),o=s[0],i=s[1],a=o.EmployersDefaultFund.tag===1,l=v([h("div",S(v([["className","p-4 sm:p-6 pb-6 sm:pb-8 border shadow-sm rounded-lg max-w-560"],(t=ee(M(()=>K($(h("p",{className:"sm:text-lg font-bold mb-3",children:"Fund details"})),M(()=>{let u;const f=o.EmployersDefaultFund;if(f.tag===1){const c=f.fields[0];return $((u=v([pi("Fund Name",c.FundName),pi("Fund USI",c.FundUsi),zp,Hp]),h("div",{children:y.Children.toArray(Array.from(u))})))}else return $(Pp)})))),["children",y.Children.toArray(Array.from(t))])]))),h("div",S(v([["className","flex justify-center mt-8"],(n=[h("div",S(v([["className","sm:max-w-320 w-full"],(r=ee(M(()=>K(a?$(jp(a,u=>{u.preventDefault(),i(new fi(0,[]))})):ie(),M(()=>$(Gp(u=>{u.preventDefault(),i(new fi(1,[]))})))))),["children",y.Children.toArray(Array.from(r))])])))],["children",y.Children.toArray(Array.from(n))])])))]);return h("div",{children:y.Children.toArray(Array.from(l))})}function qp(e){let t;const n=v([h("style",{children:[_s]}),h("div",S(v([["className","mx-auto max-w-7xl"],(t=[h("div",{className:"mx-auto max-w-3xl",children:y.Children.toArray([e])})],["children",y.Children.toArray(Array.from(t))])])))]);return h("div",{children:y.Children.toArray(Array.from(n))})}class Iu extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Initialise","LoadedDefaultChoice"]}}class Yr extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Loading","Loaded","Failed"]}}function Zp(){return[new Yr(0,[]),T(e=>{e(new Iu(0,[]))})]}function Jp(e,t,n){return t.tag===1?t.fields[0].tag===1?[new Yr(2,[]),A()]:[new Yr(1,[t.fields[0].fields[0]]),A()]:[n,wt(r=>{_t(r)},e,void 0,r=>new Iu(1,[r]))]}function Kp(e){let t,n;const s=(t=(n=$s(e.backendUrl,e.accessToken).GetDefaultFund,o=>i=>Jp(n,o,i)),Vn(()=>In(Zp,z(t),(o,i)=>{}),void 0,void 0))[0];return qp(s.tag===2?Fu("We are unable to load the Default Fund form at this time."):s.tag===1?h(Wp,s.fields[0]):Au)}function Yp(){Ps(e=>h(Kp,e),"apollo-super-default-fund")}D0();Np();Yp();
|
|
45
|
+
*/var yn=g0;function b0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var y0=typeof Object.is=="function"?Object.is:b0,S0=yn.useState,v0=yn.useEffect,F0=yn.useLayoutEffect,C0=yn.useDebugValue;function x0(e,t){var n=t(),r=S0({inst:{value:n,getSnapshot:t}}),s=r[0].inst,o=r[1];return F0(function(){s.value=n,s.getSnapshot=t,is(s)&&o({inst:s})},[e,n,t]),v0(function(){return is(s)&&o({inst:s}),e(function(){is(s)&&o({inst:s})})},[e]),C0(n),n}function is(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!y0(e,n)}catch{return!0}}function A0(e,t){return t()}var N0=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?A0:x0;Ku.useSyncExternalStore=yn.useSyncExternalStore!==void 0?yn.useSyncExternalStore:N0;Zu.exports=Ku;var k0=Zu.exports;class E0{constructor(t,n,r){this.arg=n,this.dependencies=r;const s=t(),o=[];this.finalDispatch=void 0;let i;const a=m0(s)(this.arg);let l=a[0],u=a[1];i=[[l,f=>{const c=this.finalDispatch;c==null?o.push(f):c(f)},!1,o],u],this.state=i[0],this.cmd=i[1],this.subscribe=f=>{let c=!1;const p=gs(this.state[0]);return w0(this.arg,f0((h,w)=>{const g=this.state;this.finalDispatch=w,this.state=[h,g[1],!0,o],h!==g[0]&&f()},h0((h,w)=>{const g=this.cmd;return this.cmd=A(),[this.state[0],g]},(h,w,g)=>h(w)(this.state[0]),ys(h=>h),ys(h=>h),j(h=>h),h=>[w=>h[0](w)?!0:p&&c,w=>{const g=w;gs(g)?Z(g):h[1](w)}],s))),()=>{c=!0}}}}function Pi(e,t,n){return new E0(e,t,n)}function M0(e){return e.state}function T0(e){return e.subscribe}function $0(e,t,n){return me(e.arg,t)?!me(e.dependencies,n):!0}function Tn(e,t,n){const r=vn(()=>Pi(e,t,n)),s=r[0];$0(s,t,n)&&r[1](Pi(e,t,n));const o=k0.useSyncExternalStore(T0(s),()=>M0(s)),i=o[2],a=o[3],l=o[1];return Fn(()=>{if(i&&a.length>0){let u=se(a);try{for(;u["System.Collections.IEnumerator.MoveNext"]();){const f=u["System.Collections.Generic.IEnumerator`1.get_Current"]();setTimeout(()=>{l(f)})}}finally{Z(u)}yc(a)}},[i,a]),[o[0],l]}function ke(e,t){return qa(t)?new d(1,[`${e} is required`]):new d(0,[t])}function xt(e,t,n){return n.length>=t?new d(0,[n]):new d(1,[`${e} requires a minimum length of ${t} characters`])}function mo(e,t,n){return n.length<=t?new d(0,[n]):new d(1,[`${e} exceeds maximum length of ${t} characters`])}function Gr(e){return e.trim()}function ho(e){return Ys(e,"\\s+","")}function $n(e,t,n){return Wc(Ha(t),n)?new d(0,[n]):new d(1,[`${e} is invalid`])}function I0(e){return Ys(e,"[^0-9]","")}class ut extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Started","Finished"]}}class po extends ${constructor(t,n,r,s){super(),this.Value=t,this.IsTouched=n,this.Validator=r,this.ErrorMessage=s}}class Ce extends ${constructor(t,n,r){super(),this.Field=t,this.OnBlur=n,this.OnChange=r}}function Ee(e,t){return new po(Pe(t,""),!1,e,void 0)}function Yu(e,t){let n;return new po(t,e.IsTouched,e.Validator,(n=e.Validator(t),n.tag===1&&e.IsTouched?n.fields[0]:void 0))}function fe(e){let t;return new po(e.Value,!0,e.Validator,(t=e.Validator(e.Value),t.tag===1?t.fields[0]:void 0))}function jr(e){const t=e.target,n=I0(t.value);return t.value=n,n}let D0=class extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["FundName"]}};function Qu(e){let t;const n=ke("Fund name",Gr(e));return t=n.tag===1?new d(1,[n.fields[0]]):xt("Fund name",2,n.fields[0]),t.tag===1?new d(1,[t.fields[0]]):new d(0,[new D0(t.fields[0])])}function Xu(e){return Ee(Qu,e)}function B0(e){return e.fields[0]}class V0 extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["FundAbn"]}}function Wr(e){const t=X(xe(s=>~~s.charCodeAt(0)-48,e.split(""))),n=S([10,1,3,5,7,9,11,13,15,17,19]),r=cu(s=>s>=0?s<=9:!1,t)?new d(0,[void 0]):new d(1,["Enter a valid fund ABN (digits only)"]);if(r.tag===1)return new d(1,[r.fields[0]]);{const s=qt(t)===qt(n)?new d(0,[void 0]):new d(1,["Enter a valid fund ABN"]);if(s.tag===1)return new d(1,[s.fields[0]]);{const o=Fd((i,a,l)=>i+a*l,0,Ad((i,a)=>i===0?a-1|0:a|0,t),n)%89===0?new d(0,[void 0]):new d(1,["Enter a valid fund ABN"]);return o.tag===1?new d(1,[o.fields[0]]):new d(0,[new V0(e)])}}}function L0(e){return e.fields[0]}class O0 extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["FundEsa"]}}function el(e){let t;const n=ke("Fund ESA",Gr(e));return t=n.tag===1?new d(1,[n.fields[0]]):xt("Fund ESA",2,n.fields[0]),t.tag===1?new d(1,[t.fields[0]]):new d(0,[new O0(t.fields[0])])}function tl(e){return Ee(el,e)}function P0(e){return e.fields[0]}class R0 extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["AddressLine1"]}}function nl(e){let t;const n=ke("Address Line 1",e);return t=n.tag===1?new d(1,[n.fields[0]]):xt("Address Line 1",2,n.fields[0]),t.tag===1?new d(1,[t.fields[0]]):new d(0,[new R0(t.fields[0])])}function rl(e){return Ee(nl,e)}function U0(e){return e.fields[0]}class H0 extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["AddressLine2"]}}function sl(e){if(qa(e))return new d(0,[void 0]);{const t=xt("Address Line 2",2,e);return t.tag===1?new d(1,[t.fields[0]]):new d(0,[new H0(t.fields[0])])}}function ol(e){return Ee(sl,e)}function z0(e){if(e!=null)return e.fields[0]}class G0 extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["City"]}}function il(e){const t=ke("City",e);return t.tag===1?new d(1,[t.fields[0]]):new d(0,[new G0(t.fields[0])])}function al(e){return Ee(il,e)}function j0(e){return e.fields[0]}class Mt extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["NSW","QLD","ACT","VIC","TAS","WA","SA","NT"]}}function ul(e){const t=ke("State",e);if(t.tag===1)return new d(1,[t.fields[0]]);switch(t.fields[0]){case"NSW":return new d(0,[new Mt(0,[])]);case"QLD":return new d(0,[new Mt(1,[])]);case"ACT":return new d(0,[new Mt(2,[])]);case"VIC":return new d(0,[new Mt(3,[])]);case"TAS":return new d(0,[new Mt(4,[])]);case"WA":return new d(0,[new Mt(5,[])]);case"SA":return new d(0,[new Mt(6,[])]);case"NT":return new d(0,[new Mt(7,[])]);default:return new d(1,["Select a state'"])}}function ll(e){return Ee(ul,e)}function W0(e){switch(e.tag){case 1:return"QLD";case 2:return"ACT";case 3:return"VIC";case 4:return"TAS";case 5:return"WA";case 6:return"SA";case 7:return"NT";default:return"NSW"}}class q0 extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["Postcode"]}}function cl(e){let t,n;const r=ke("Postcode",ho(e));return n=r.tag===1?new d(1,[r.fields[0]]):xt("Postcode",4,r.fields[0]),t=n.tag===1?new d(1,[n.fields[0]]):mo("Postcode",4,n.fields[0]),t.tag===1?new d(1,[t.fields[0]]):new d(0,[new q0(t.fields[0])])}function dl(e){return Ee(cl,e)}function J0(e){return e.fields[0]}let Z0=class extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["MemberFirstName"]}};const K0="[A-Za-z][A-Za-z']+(( |-)[A-Za-z][A-Za-z']+)*\\s*$";function fl(e){let t;const n=ke("Member given name(s)",e);return t=n.tag===1?new d(1,[n.fields[0]]):$n("Member given name(s)",K0,n.fields[0]),t.tag===1?new d(1,[t.fields[0]]):new d(0,[new Z0(t.fields[0])])}function ml(e){return Ee(fl,e)}function Y0(e){return e.fields[0]}let Q0=class extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["MemberLastName"]}};const X0="[A-Za-z][A-Za-z']+(( |-)[A-Za-z][A-Za-z']+)*\\s*$";function hl(e){let t;const n=ke("Last Name",e);return t=n.tag===1?new d(1,[n.fields[0]]):$n("Last Name",X0,n.fields[0]),t.tag===1?new d(1,[t.fields[0]]):new d(0,[new Q0(t.fields[0])])}function pl(e){return Ee(hl,e)}function ep(e){return e.fields[0]}class tp extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["BankAccountName"]}}function wl(e){let t;const n=ke("Account name",Gr(e));return t=n.tag===1?new d(1,[n.fields[0]]):xt("Account name",2,n.fields[0]),t.tag===1?new d(1,[t.fields[0]]):new d(0,[new tp(t.fields[0])])}function _l(e){return Ee(wl,e)}function np(e){return e.fields[0]}class rp extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["BankAccountBsb"]}}function qr(e){let t,n,r;const s=ke("BSB",ho(e));return r=s.tag===1?new d(1,[s.fields[0]]):xt("BSB",6,s.fields[0]),n=r.tag===1?new d(1,[r.fields[0]]):mo("BSB",6,r.fields[0]),t=n.tag===1?new d(1,[n.fields[0]]):$n("BSB","^\\d{6}$",n.fields[0]),t.tag===1?new d(1,[t.fields[0]]):new d(0,[new rp(t.fields[0])])}function sp(e){return e.fields[0]}class op extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["BankAccountNumber"]}}function gl(e){let t,n,r;const s=ke("Account Number",ho(e));return r=s.tag===1?new d(1,[s.fields[0]]):xt("Account Number",2,s.fields[0]),n=r.tag===1?new d(1,[r.fields[0]]):mo("Account Number",11,r.fields[0]),t=n.tag===1?new d(1,[n.fields[0]]):$n("Account Number","^\\d{2,11}$",n.fields[0]),t.tag===1?new d(1,[t.fields[0]]):new d(0,[new op(t.fields[0])])}function bl(e){return Ee(gl,e)}function ip(e){return e.fields[0]}class ap extends ${constructor(t,n,r,s,o){super(),this.AddressLine1=t,this.AddressLine2=n,this.City=r,this.AddressState=s,this.Postcode=o}}class up extends ${constructor(t,n,r,s,o,i,a,l,u,f,c,p,h){super(),this.FundName=t,this.FundAbn=n,this.FundEsa=r,this.FundAddressLine1=s,this.FundAddressLine2=o,this.FundCity=i,this.FundState=a,this.FundPostcode=l,this.MemberFirstName=u,this.MemberLastName=f,this.BankAccountName=c,this.BankAccountBsb=p,this.BankAccountNumber=h}}const lp=m("svg",F(S([["fill","#facc15"],["className","h-5 w-5"],["viewBox","0 0 20 20"],["xmlns","http://www.w3.org/2000/svg"],(()=>{let e;const t=D(m("path",F(S([["fill-rule","evenodd"],(e="M8.257 3.099c.765-1.36 2.722-1.36 3.486 0l5.58 9.92c.75 1.334-.213 2.98-1.742 2.98H4.42c-1.53 0-2.493-1.646-1.743-2.98l5.58-9.92zM11 13a1 1 0 11-2 0 1 1 0 012 0zm-1-8a1 1 0 00-1 1v3a1 1 0 002 0V6a1 1 0 00-1-1z",["d",e]),["clipRule","evenodd"]]))));return["children",y.Children.toArray(Array.from(t))]})()]))),cp=m("div",F(S([["className","bg-yellow-50 border-l-4 border-yellow-400 p-4 my-3"],(()=>{let e;const t=[m("div",F(S([["className","flex"],(e=[m("div",{className:"flex-shrink-0",children:y.Children.toArray([lp])}),m("div",{className:"ml-3 text-sm text-yellow-700 leading-5",children:"Make sure your Self-managed super fund (SMSF) is a registered fund before completing this step."})],["children",y.Children.toArray(Array.from(e))])])))];return["children",y.Children.toArray(Array.from(t))]})()])));function At(e){if(e==null)return Ne();{const t=e;return m("div",{className:P(" ",["mt-2 text-sm text-red-600"]),children:t})}}function Jr(e){return X(M(()=>W(T("relative shadow-sm focus:ring-primary-focus focus:border-primary-base block w-full text-base sm:text-sm border-gray-300 rounded-md focus:z-10"),M(()=>e?T("border-red-300 text-red-900 placeholder-red-300 focus:ring-red-500 focus:border-red-500"):ue()))))}function dp(e){let t,n;return m("div",F(S([["className","mt-3"],(t=[m("label",{className:"text-sm font-medium text-gray-700",htmlFor:"fundName",children:"Fund name"}),m("div",F(S([["className","mt-1"],(n=[m("input",{type:"text",className:P(" ",Jr(e.Field.ErrorMessage!=null)),id:"fundName",value:e.Field.Value,onBlur:e.OnBlur,onChange:r=>{e.OnChange(r.target.value)}}),At(e.Field.ErrorMessage)],["children",y.Children.toArray(Array.from(n))])])))],["children",y.Children.toArray(Array.from(t))])])))}function fp(e){let t,n;return m("div",F(S([["className","mt-3"],(t=[m("label",{className:"text-sm font-medium text-gray-700",htmlFor:"fundEsa",children:"Electronic service address alias (ESA)"}),m("div",F(S([["className","mt-1"],(n=[m("input",{id:"fundEsa",type:"text",value:e.Field.Value,className:P(" ",Jr(e.Field.ErrorMessage!=null)),onBlur:e.OnBlur,onChange:r=>{e.OnChange(r.target.value)}}),At(e.Field.ErrorMessage)],["children",y.Children.toArray(Array.from(n))])])))],["children",y.Children.toArray(Array.from(t))])])))}function mp(e,t){return m("input",{placeholder:"Address line 1",type:"text",className:P(" ",X(M(()=>W(T("relative shadow-sm focus:ring-primary-focus focus:border-primary-base block w-full text-base sm:text-sm border-gray-300 rounded-md focus:z-10 rounded-none rounded-t-md shadow-none"),M(()=>e&&t.Field.ErrorMessage!=null?T("border-red-300 text-red-900 placeholder-red-300 focus:ring-red-500 focus:border-red-500"):ue()))))),required:!0,minLength:2,id:"addressLine1",value:t.Field.Value,onBlur:t.OnBlur,onChange:n=>{t.OnChange(n.target.value)}})}function hp(e,t){return m("input",{placeholder:"Address line 2 (optional)",type:"text",className:P(" ",X(M(()=>W(T("relative shadow-sm focus:ring-primary-focus focus:border-primary-base block w-full text-base sm:text-sm border-gray-300 rounded-md focus:z-10 rounded-none shadow-none"),M(()=>e&&t.Field.ErrorMessage!=null?T("border-red-300 text-red-900 placeholder-red-300 focus:ring-red-500 focus:border-red-500"):ue()))))),id:"addressLine2",value:t.Field.Value,onBlur:t.OnBlur,onChange:n=>{t.OnChange(n.target.value)}})}function pp(e,t){return m("input",{placeholder:"City/suburb",type:"text",className:P(" ",X(M(()=>W(T("relative shadow-sm focus:ring-primary-focus focus:border-primary-base block w-full text-base sm:text-sm border-gray-300 rounded-md focus:z-10 rounded-none shadow-none"),M(()=>e&&t.Field.ErrorMessage!=null?T("border-red-300 text-red-900 placeholder-red-300 focus:ring-red-500 focus:border-red-500"):ue()))))),required:!0,id:"city",value:t.Field.Value,onBlur:t.OnBlur,onChange:n=>{t.OnChange(n.target.value)}})}function wp(e,t){let n;return m("div",F(S([["className","flex-1 min-w-0"],(n=[m("input",{placeholder:"Postcode",type:"text",required:!0,className:P(" ",X(M(()=>W(T("relative shadow-sm focus:ring-primary-focus focus:border-primary-base block w-full text-base sm:text-sm border-gray-300 rounded-md focus:z-10 rounded-none rounded-bl-md shadow-none"),M(()=>e&&t.Field.ErrorMessage!=null?T("border-red-300 text-red-900 placeholder-red-300 focus:ring-red-500 focus:border-red-500"):ue()))))),minLength:4,maxLength:4,pattern:"[0-9]{4}",inputMode:"numeric",id:"postcode",value:t.Field.Value,onKeyUp:r=>{t.OnChange(jr(r))},onBlur:t.OnBlur,onChange:r=>{t.OnChange(r.target.value)}})],["children",y.Children.toArray(Array.from(n))])])))}function _p(e,t){let n;const r=m("option",{disabled:!0,value:"",children:"State",selected:t.Field.Value===""}),s=Kt(o=>m("option",{value:o,children:o,selected:t.Field.Value===o}),S(["NSW","QLD","ACT","VIC","TAS","WA","SA","NT"]));return m("div",F(S([["className","w-1/2 flex-1 min-w-0"],(n=[m("select",{className:P(" ",X(M(()=>W(T("relative shadow-sm focus:ring-primary-focus focus:border-primary-base block w-full text-base sm:text-sm border-gray-300 rounded-md focus:z-10 rounded-none rounded-br-md shadow-none text-gray-500"),M(()=>e&&t.Field.ErrorMessage!=null?T("border-red-300 text-red-900 placeholder-red-300 focus:ring-red-500 focus:border-red-500"):ue()))))),id:"state",required:!0,children:y.Children.toArray(Array.from(Be(r,s))),onBlur:t.OnBlur,onChange:o=>{t.OnChange(o.target.value)}})],["children",y.Children.toArray(Array.from(n))])])))}function gp(e){let t,n,r,s;const o=a=>a.IsTouched;s=cu(a=>a,S([o(e.AddressLine1.Field),o(e.AddressLine2.Field),o(e.City.Field),o(e.AddressState.Field),o(e.Postcode.Field)]));const i=Nd(a=>a,S([e.AddressLine1.Field.ErrorMessage,e.AddressLine2.Field.ErrorMessage,e.City.Field.ErrorMessage,e.AddressState.Field.ErrorMessage,e.Postcode.Field.ErrorMessage]));return m("div",F(S([["className","mt-3"],(t=[m("label",{className:"text-sm font-medium text-gray-700",children:"Fund address"}),m("div",F(S([["className","mt-1 rounded-md shadow-sm -space-y-px"],(n=[mp(s,e.AddressLine1),hp(s,e.AddressLine2),pp(s,e.City),m("div",F(S([["className","flex -space-x-px"],(r=[wp(s,e.Postcode),_p(s,e.AddressState)],["children",y.Children.toArray(Array.from(r))])])))],["children",y.Children.toArray(Array.from(n))])]))),At(s?i:void 0)],["children",y.Children.toArray(Array.from(t))])])))}function bp(e){let t,n;return m("div",F(S([["className","mt-3 w-1/2"],(t=[m("label",{className:"text-sm font-medium text-gray-700",htmlFor:"memberGivenNames",children:"Given name(s)"}),m("div",F(S([["className","mt-1"],(n=[m("input",{type:"text",className:P(" ",Jr(e.Field.ErrorMessage!=null)),id:"memberGivenNames",value:e.Field.Value,onBlur:e.OnBlur,onChange:r=>{e.OnChange(r.target.value)}}),At(e.Field.ErrorMessage)],["children",y.Children.toArray(Array.from(n))])])))],["children",y.Children.toArray(Array.from(t))])])))}function yp(e){let t,n;return m("div",F(S([["className","mt-3 w-1/2"],(t=[m("label",{className:"text-sm font-medium text-gray-700",htmlFor:"memberLastNames",children:"Last name"}),m("div",F(S([["className","mt-1"],(n=[m("input",{type:"text",className:P(" ",Jr(e.Field.ErrorMessage!=null)),id:"memberLastName",value:e.Field.Value,onBlur:e.OnBlur,onChange:r=>{e.OnChange(r.target.value)}}),At(e.Field.ErrorMessage)],["children",y.Children.toArray(Array.from(n))])])))],["children",y.Children.toArray(Array.from(t))])])))}function Sp(e){let t,n;const r=e.Field.IsTouched&&e.Field.ErrorMessage!=null;return m("div",F(S([["className","mt-3"],(t=[m("label",{className:"text-sm font-medium text-gray-700",htmlFor:"bankAccountName",children:"Account name"}),m("div",F(S([["className","mt-1"],(n=[m("input",{id:"bankAccountName",type:"text",value:e.Field.Value,className:P(" ",X(M(()=>W(T("peer relative shadow-sm focus:ring-primary-focus focus:border-primary-base block w-full text-base sm:text-sm border-gray-300 rounded-md focus:z-10"),M(()=>r?T("border-red-300 text-red-900 placeholder-red-300 focus:ring-red-500 focus:border-red-500"):ue()))))),onBlur:e.OnBlur,onChange:s=>{e.OnChange(s.target.value)}}),At(e.Field.ErrorMessage)],["children",y.Children.toArray(Array.from(n))])])))],["children",y.Children.toArray(Array.from(t))])])))}function vp(e){let t,n;const r=e.Field.IsTouched&&e.Field.ErrorMessage!=null;return m("div",F(S([["className","mt-3"],(t=[m("label",{className:"text-sm font-medium text-gray-700",htmlFor:"bankAccountNumber",children:"Account number"}),m("div",F(S([["className","mt-1"],(n=[m("input",{id:"bankAccountNumber",type:"text",value:e.Field.Value,inputMode:"numeric",className:P(" ",X(M(()=>W(T("peer relative shadow-sm focus:ring-primary-focus focus:border-primary-base block w-full text-base sm:text-sm border-gray-300 rounded-md focus:z-10"),M(()=>r?T("border-red-300 text-red-900 placeholder-red-300 focus:ring-red-500 focus:border-red-500"):ue()))))),onKeyUp:s=>{e.OnChange(jr(s))},onBlur:e.OnBlur,onChange:s=>{e.OnChange(s.target.value)}}),At(e.Field.ErrorMessage)],["children",y.Children.toArray(Array.from(n))])])))],["children",y.Children.toArray(Array.from(t))])])))}function Fp(e,t){let n;return m("div",F(S([["className","mb-4"],(n=[m("div",F(X(M(()=>W(e?ue():T(["onClick",t]),M(()=>{let r;return T((r=[m("button",{className:P(" ",["px-4 py-2 text-base inline-flex items-center justify-center border font-medium","rounded-md shadow-sm pointer-events-auto border-transparent text-white bg-primary-base w-full","disabled:pointer-events-none disabled:border-gray-300 disabled:bg-gray-100 disabled:text-gray-400","focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-focus","hover:bg-primary-hover"]),"data-testid":"continue-button",disabled:!e,children:"Continue",onClick:t})],["children",y.Children.toArray(Array.from(r))]))}))))))],["children",y.Children.toArray(Array.from(n))])])))}function Cp(e){let t,n,r;return m("div",F(D((t=[m("a",F(S([["href","/"],(n=[m("div",F(D((r=[m("button",{className:P(" ",["px-4 py-2 text-base inline-flex items-center justify-center border font-medium rounded-md shadow-sm pointer-events-auto border-gray-300 text-gray-700 bg-white w-full","disabled:pointer-events-none disabled:border-gray-300 disabled:bg-gray-100 disabled:text-gray-400","focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-focus","hover:bg-gray-50"]),"data-testid":"back-button",children:"Back",onClick:e})],["children",y.Children.toArray(Array.from(r))]))))],["children",y.Children.toArray(Array.from(n))])])))],["children",y.Children.toArray(Array.from(t))]))))}let Ri=class extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SetValue","SetTouched"]}},Wn=class extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["UpdateFundAbn","RegulatedFundCheck"]}},lt=class extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["NotYetStarted","Pending","Valid","Invalid"]}},Re=class extends ${constructor(t,n,r,s){super(),this.RawValue=t,this.IsTouched=n,this.Value=r,this.ErrorMessage=s}};function yl(e,t){if(e==null)return[new Re("",!1,new lt(0,[]),void 0),A()];{const n=e,r=Wr(n);return r.tag===1?[new Re(n,!1,new lt(3,[]),r.fields[0]),A()]:[new Re(n,!1,new lt(1,[]),void 0),D(s=>{s(new Wn(1,[new ut(0,[void 0])]))})]}}function xp(e,t){const n=Wr(e.RawValue);return n.tag===1?[new Re(e.RawValue,e.IsTouched,new lt(3,[]),n.fields[0]),A()]:t?[new Re(e.RawValue,e.IsTouched,new lt(3,[]),"The supplied ABN is for a regulated fund"),A()]:[new Re(e.RawValue,e.IsTouched,new lt(2,[n.fields[0]]),e.ErrorMessage),A()]}function Sl(e){const t=Wr(e.RawValue);return t.tag===1?[new Re(e.RawValue,!0,e.Value,t.fields[0]),A()]:[new Re(e.RawValue,!0,e.Value,e.ErrorMessage),A()]}function Ap(e,t,n){if(t.tag===1)return t.fields[0].tag===1?t.fields[0].fields[0].tag===1?[new Re(n.RawValue,n.IsTouched,new lt(3,[]),"Something went wrong when validating your fund ABN"),A()]:xp(n,t.fields[0].fields[0].fields[0]):[n,Dt(r=>{yt(r)},e,n.RawValue,r=>new Wn(1,[new ut(1,[r])]))];if(t.fields[0].tag===1)return Sl(n);{const r=Wr(t.fields[0].fields[0]);return r.tag===1?n.IsTouched?[new Re(t.fields[0].fields[0],n.IsTouched,new lt(0,[]),r.fields[0]),A()]:[new Re(t.fields[0].fields[0],n.IsTouched,new lt(0,[]),void 0),A()]:t.fields[0].fields[0]===n.RawValue?[n,A()]:[new Re(t.fields[0].fields[0],n.IsTouched,new lt(1,[]),void 0),D(s=>{s(new Wn(1,[new ut(0,[void 0])]))})]}}function Np(e){let t,n;const r=e.dispatch,s=e.state,o=l=>{r(new Wn(0,[new Ri(0,[l])]))},i=s.IsTouched&&s.ErrorMessage!=null,a=[m("div",F(S([["className","mt-3"],(t=[m("label",{className:"text-sm font-medium text-gray-700",htmlFor:"fundAbn",children:"Fund ABN"}),m("div",F(S([["className","mt-1"],(n=[m("input",{id:"fundAbn",type:"text",value:s.RawValue,inputMode:"numeric",className:P(" ",X(M(()=>W(T("peer relative shadow-sm focus:ring-primary-focus focus:border-primary-base block w-full text-base sm:text-sm border-gray-300 rounded-md focus:z-10"),M(()=>i?T("border-red-300 text-red-900 placeholder-red-300 focus:ring-red-500 focus:border-red-500"):ue()))))),onKeyUp:l=>{o(jr(l))},onBlur:l=>{r(new Wn(0,[new Ri(1,[])]))},onChange:l=>{o(l.target.value)}}),At(s.ErrorMessage)],["children",y.Children.toArray(Array.from(n))])])))],["children",y.Children.toArray(Array.from(t))])])))];return m(Ae,{},...a)}class kp extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["BankName"]}}function Ep(e){return e.fields[0]}function Mp(e){return new kp(`${e.Bank} - ${e.Branch}`)}let Ui=class extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SetValue","SetTouched"]}},qn=class extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["UpdateBankAccountBsb","BsbLookup"]}};class vt extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["NotYetStarted","Pending","Valid","Invalid"]}}let ct=class extends ${constructor(t,n,r,s){super(),this.RawValue=t,this.IsTouched=n,this.Value=r,this.ErrorMessage=s}};function vl(e,t){if(e==null)return[new ct("",!1,new vt(0,[]),void 0),A()];{const n=e,r=qr(n);return r.tag===1?[new ct(n,!1,new vt(3,[]),r.fields[0]),A()]:[new ct(n,!1,new vt(1,[]),void 0),D(s=>{s(new qn(1,[new ut(0,[void 0])]))})]}}function Hi(e){return new ct(e.RawValue,e.IsTouched,new vt(3,[]),"Unable to identify the bank using the provided BSB number")}function Tp(e,t){let n;const r=qr(e.RawValue);return n=r.tag===1?[new vt(3,[]),r.fields[0]]:[new vt(2,[[r.fields[0],Mp(t)]]),void 0],new ct(e.RawValue,e.IsTouched,n[0],n[1])}function Fl(e){const t=qr(e.RawValue);return t.tag===1?[new ct(e.RawValue,!0,e.Value,t.fields[0]),A()]:[new ct(e.RawValue,!0,e.Value,e.ErrorMessage),A()]}function $p(e,t,n){if(t.tag===1)if(t.fields[0].tag===1){if(t.fields[0].fields[0].tag===1)return[Hi(n),A()];{const r=t.fields[0].fields[0].fields[0].BankDetails;return r!=null?[Tp(n,r),A()]:[Hi(n),A()]}}else return[n,Dt(r=>{yt(r)},e,n.RawValue,r=>new qn(1,[new ut(1,[r])]))];else{if(t.fields[0].tag===1)return Fl(n);{const r=qr(t.fields[0].fields[0]);return r.tag===1?n.IsTouched?[new ct(t.fields[0].fields[0],n.IsTouched,new vt(0,[]),r.fields[0]),A()]:[new ct(t.fields[0].fields[0],n.IsTouched,new vt(0,[]),void 0),A()]:t.fields[0].fields[0]===n.RawValue?[n,A()]:[new ct(t.fields[0].fields[0],n.IsTouched,new vt(1,[]),void 0),D(s=>{s(new qn(1,[new ut(0,[void 0])]))})]}}}function Ip(e){let t;return m("div",F(S([["className","mt-3"],(t=[m("label",{className:"text-sm font-medium text-gray-700",children:"Bank name",htmlFor:"bankName"}),m("div",{id:"bankName",className:"mt-1 shadow-sm px-3 py-2 rounded-md border border-gray-300 bg-gray-50 text-gray-500 text-sm",children:Ep(e),"data-testid":"bank-name"})],["children",y.Children.toArray(Array.from(t))])])))}function Dp(e){const t=e.dispatch,n=e.state,r=i=>{t(new qn(0,[new Ui(0,[i])]))},s=n.IsTouched&&n.ErrorMessage!=null,o=X(M(()=>{let i,a;return W(T(m("div",F(S([["className","mt-3"],(i=[m("label",{className:"text-sm font-medium text-gray-700",htmlFor:"bankAccountBsb",children:"BSB"}),m("div",F(S([["className","mt-1"],(a=[m("input",{id:"bankAccountBsb",type:"text",value:n.RawValue,inputMode:"numeric",className:P(" ",X(M(()=>W(T("peer relative shadow-sm focus:ring-primary-focus focus:border-primary-base block w-full text-base sm:text-sm border-gray-300 rounded-md focus:z-10"),M(()=>s?T("border-red-300 text-red-900 placeholder-red-300 focus:ring-red-500 focus:border-red-500"):ue()))))),onKeyUp:l=>{r(jr(l))},onBlur:l=>{t(new qn(0,[new Ui(1,[])]))},onChange:l=>{r(l.target.value)}}),At(n.ErrorMessage)],["children",y.Children.toArray(Array.from(a))])])))],["children",y.Children.toArray(Array.from(i))])])))),M(()=>{const l=n.Value;switch(l.tag){case 2:return T(Ip(l.fields[0][1]));default:return T(Ne())}}))}));return m(Ae,{},...o)}let zi=class extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SetValue","SetTouched"]}},R=class extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["UpdateFundName","UpdateFundAbn","UpdateFundEsa","UpdateAddressLine1","UpdateAddressLine2","UpdateCity","UpdateAddressState","UpdatePostcode","UpdateMemberFirstName","UpdateMemberLastName","UpdateBankAccountName","UpdateBankAccountBsb","UpdateBankAccountNumber","Submit","Cancel"]}},de=class extends ${constructor(t,n,r,s,o,i,a,l,u,f){super(),this.FundName=t,this.FundAbn=n,this.FundEsa=r,this.FundAddress=s,this.MemberFirstName=o,this.MemberLastName=i,this.BankAccountName=a,this.BankAccountBsb=l,this.BankAccountNumber=u,this.BankName=f}};class $t extends ${constructor(t,n,r,s,o){super(),this.AddressLine1=t,this.AddressLine2=n,this.City=r,this.AddressState=s,this.Postcode=o}}const Bp=(()=>{let e;const t=yl(void 0);e=[t[0],Yt(s=>new R(1,[s]),t[1])];let n;const r=vl(void 0);return n=[r[0],Yt(s=>new R(11,[s]),r[1])],[new de(Xu(void 0),e[0],tl(void 0),new $t(rl(void 0),ol(void 0),al(void 0),ll(void 0),dl(void 0)),ml(void 0),pl(void 0),_l(void 0),n[0],bl(void 0),void 0),fn(S([e[1],n[1]]))]})();function Vp(e){let t;const n=yl(e.Abn);t=[n[0],Yt(o=>new R(1,[o]),n[1])];let r;const s=vl(e.Bsb);return r=[s[0],Yt(o=>new R(11,[o]),s[1])],[new de(Xu(e.FundName),t[0],tl(e.ElectronicServiceAddress),new $t(rl(e.FundAddress.AddressLine1),ol(e.FundAddress.AddressLine2),al(e.FundAddress.City),ll(e.FundAddress.State),dl(e.FundAddress.Postcode)),ml(e.MemberFirstName),pl(e.MemberFamilyName),_l(e.BankAccountName),r[0],bl(e.BankAccountNumber),void 0),fn(S([t[1],r[1]]))]}function Lp(e){let t;return Pe((t=e,t==null?void 0:Vp(t)),Bp)}function Cl(e){let t;const n=Qu(e.FundName.Value);if(t=n.tag===1?new d(1,[D(n.fields[0])]):new d(0,[n.fields[0]]),t.tag===1)return new d(1,[t.fields[0]]);{let r;const s=e.FundAbn.Value;if(r=s.tag===2?new d(0,[s.fields[0]]):new d(1,[D("Fund ABN is invalid")]),r.tag===1)return new d(1,[r.fields[0]]);{let o;const i=el(e.FundEsa.Value);if(o=i.tag===1?new d(1,[D(i.fields[0])]):new d(0,[i.fields[0]]),o.tag===1)return new d(1,[o.fields[0]]);{let a;const l=nl(e.FundAddress.AddressLine1.Value);if(a=l.tag===1?new d(1,[D(l.fields[0])]):new d(0,[l.fields[0]]),a.tag===1)return new d(1,[a.fields[0]]);{let u;const f=sl(e.FundAddress.AddressLine2.Value);if(u=f.tag===1?new d(1,[D(f.fields[0])]):new d(0,[f.fields[0]]),u.tag===1)return new d(1,[u.fields[0]]);{let c;const p=il(e.FundAddress.City.Value);if(c=p.tag===1?new d(1,[D(p.fields[0])]):new d(0,[p.fields[0]]),c.tag===1)return new d(1,[c.fields[0]]);{let h;const w=ul(e.FundAddress.AddressState.Value);if(h=w.tag===1?new d(1,[D(w.fields[0])]):new d(0,[w.fields[0]]),h.tag===1)return new d(1,[h.fields[0]]);{let g;const b=cl(e.FundAddress.Postcode.Value);if(g=b.tag===1?new d(1,[D(b.fields[0])]):new d(0,[b.fields[0]]),g.tag===1)return new d(1,[g.fields[0]]);{let _;const x=fl(e.MemberFirstName.Value);if(_=x.tag===1?new d(1,[D(x.fields[0])]):new d(0,[x.fields[0]]),_.tag===1)return new d(1,[_.fields[0]]);{let v;const Y=hl(e.MemberLastName.Value);if(v=Y.tag===1?new d(1,[D(Y.fields[0])]):new d(0,[Y.fields[0]]),v.tag===1)return new d(1,[v.fields[0]]);{let ce;const We=wl(e.BankAccountName.Value);if(ce=We.tag===1?new d(1,[D(We.fields[0])]):new d(0,[We.fields[0]]),ce.tag===1)return new d(1,[ce.fields[0]]);{let Pt;const Rt=e.BankAccountBsb.Value;if(Pt=Rt.tag===2?new d(0,[Rt.fields[0][0]]):new d(1,[D("Bank BSB is invalid")]),Pt.tag===1)return new d(1,[Pt.fields[0]]);{let Nt;const Se=gl(e.BankAccountNumber.Value);return Nt=Se.tag===1?new d(1,[D(Se.fields[0])]):new d(0,[Se.fields[0]]),Nt.tag===1?new d(1,[Nt.fields[0]]):new d(0,[new up(t.fields[0],r.fields[0],o.fields[0],a.fields[0],u.fields[0],c.fields[0],h.fields[0],g.fields[0],_.fields[0],v.fields[0],ce.fields[0],Pt.fields[0],Nt.fields[0])])}}}}}}}}}}}}}function Op(e){return new de(fe(e.FundName),Sl(e.FundAbn)[0],fe(e.FundEsa),new $t(fe(e.FundAddress.AddressLine1),fe(e.FundAddress.AddressLine2),fe(e.FundAddress.City),fe(e.FundAddress.AddressState),fe(e.FundAddress.Postcode)),fe(e.MemberFirstName),fe(e.MemberLastName),fe(e.BankAccountName),Fl(e.BankAccountBsb)[0],fe(e.BankAccountNumber),e.BankName)}function Ze(e,t,n){return n(e.tag===1?fe(t):Yu(t,e.fields[0]))}function Pp(e,t,n){switch(t.tag){case 1:{const r=Ap(e.IsRegulatedFundAbn,t.fields[0],n.FundAbn);return[new de(n.FundName,r[0],n.FundEsa,n.FundAddress,n.MemberFirstName,n.MemberLastName,n.BankAccountName,n.BankAccountBsb,n.BankAccountNumber,n.BankName),Yt(s=>new R(1,[s]),r[1])]}case 2:return[Ze(t.fields[0],n.FundEsa,r=>new de(n.FundName,n.FundAbn,r,n.FundAddress,n.MemberFirstName,n.MemberLastName,n.BankAccountName,n.BankAccountBsb,n.BankAccountNumber,n.BankName)),A()];case 3:return[Ze(t.fields[0],n.FundAddress.AddressLine1,r=>{let s;return new de(n.FundName,n.FundAbn,n.FundEsa,(s=n.FundAddress,new $t(r,s.AddressLine2,s.City,s.AddressState,s.Postcode)),n.MemberFirstName,n.MemberLastName,n.BankAccountName,n.BankAccountBsb,n.BankAccountNumber,n.BankName)}),A()];case 4:return[Ze(t.fields[0],n.FundAddress.AddressLine2,r=>{let s;return new de(n.FundName,n.FundAbn,n.FundEsa,(s=n.FundAddress,new $t(s.AddressLine1,r,s.City,s.AddressState,s.Postcode)),n.MemberFirstName,n.MemberLastName,n.BankAccountName,n.BankAccountBsb,n.BankAccountNumber,n.BankName)}),A()];case 5:return[Ze(t.fields[0],n.FundAddress.City,r=>{let s;return new de(n.FundName,n.FundAbn,n.FundEsa,(s=n.FundAddress,new $t(s.AddressLine1,s.AddressLine2,r,s.AddressState,s.Postcode)),n.MemberFirstName,n.MemberLastName,n.BankAccountName,n.BankAccountBsb,n.BankAccountNumber,n.BankName)}),A()];case 6:return[Ze(t.fields[0],n.FundAddress.AddressState,r=>{let s;return new de(n.FundName,n.FundAbn,n.FundEsa,(s=n.FundAddress,new $t(s.AddressLine1,s.AddressLine2,s.City,r,s.Postcode)),n.MemberFirstName,n.MemberLastName,n.BankAccountName,n.BankAccountBsb,n.BankAccountNumber,n.BankName)}),A()];case 7:return[Ze(t.fields[0],n.FundAddress.Postcode,r=>{let s;return new de(n.FundName,n.FundAbn,n.FundEsa,(s=n.FundAddress,new $t(s.AddressLine1,s.AddressLine2,s.City,s.AddressState,r)),n.MemberFirstName,n.MemberLastName,n.BankAccountName,n.BankAccountBsb,n.BankAccountNumber,n.BankName)}),A()];case 8:return[Ze(t.fields[0],n.MemberFirstName,r=>new de(n.FundName,n.FundAbn,n.FundEsa,n.FundAddress,r,n.MemberLastName,n.BankAccountName,n.BankAccountBsb,n.BankAccountNumber,n.BankName)),A()];case 9:return[Ze(t.fields[0],n.MemberLastName,r=>new de(n.FundName,n.FundAbn,n.FundEsa,n.FundAddress,n.MemberFirstName,r,n.BankAccountName,n.BankAccountBsb,n.BankAccountNumber,n.BankName)),A()];case 10:return[Ze(t.fields[0],n.BankAccountName,r=>new de(n.FundName,n.FundAbn,n.FundEsa,n.FundAddress,n.MemberFirstName,n.MemberLastName,r,n.BankAccountBsb,n.BankAccountNumber,n.BankName)),A()];case 11:{const r=$p(e.BsbLookup,t.fields[0],n.BankAccountBsb);return[new de(n.FundName,n.FundAbn,n.FundEsa,n.FundAddress,n.MemberFirstName,n.MemberLastName,n.BankAccountName,r[0],n.BankAccountNumber,n.BankName),Yt(s=>new R(11,[s]),r[1])]}case 12:return[Ze(t.fields[0],n.BankAccountNumber,r=>new de(n.FundName,n.FundAbn,n.FundEsa,n.FundAddress,n.MemberFirstName,n.MemberLastName,n.BankAccountName,n.BankAccountBsb,r,n.BankName)),A()];case 13:{const r=Cl(n);if(r.tag===1)return[Op(n),A()];{const s=r.fields[0];return[n,Rf(new Vf(B0(s.FundName),L0(s.FundAbn),P0(s.FundEsa),U0(s.FundAddressLine1),z0(s.FundAddressLine2),j0(s.FundCity),W0(s.FundState),J0(s.FundPostcode),Y0(s.MemberFirstName),ep(s.MemberLastName),np(s.BankAccountName),sp(s.BankAccountBsb),ip(s.BankAccountNumber)))]}}case 14:return[n,Hf()];default:return[Ze(t.fields[0],n.FundName,r=>new de(r,n.FundAbn,n.FundEsa,n.FundAddress,n.MemberFirstName,n.MemberLastName,n.BankAccountName,n.BankAccountBsb,n.BankAccountNumber,n.BankName)),A()]}}function Rp(e){let t,n,r,s,o,i,a;const l=e.smsfChoice,u=e.backendService;let f;const c=Lp(l);f=Tn(()=>Mn(()=>c,(v,Y)=>Pp(u,v,Y),(v,Y)=>{}),void 0,void 0);const p=f[0],h=f[1],w=(v,Y)=>{h(v(new zi(1,[])))},g=(v,Y)=>{h(v(new zi(0,[Y])))};let b;b=Cl(p).tag!==1;const x=D(m("form",F(S([["id","form"],["novalidate",""],(t=[m("div",F(S([["className","p-4 sm:p-6 pb-6 sm:pb-8 border shadow-sm rounded-lg max-w-560"],(n=[m("p",{className:"sm:text-lg font-bold",children:"Fund details"}),cp,m("div",F(D((r=[(s=S([dp(new Ce(p.FundName,O(w)(v=>new R(0,[v])),O(g)(v=>new R(0,[v])))),m(Np,{state:p.FundAbn,dispatch:v=>{h(new R(1,[v]))}}),fp(new Ce(p.FundEsa,O(w)(v=>new R(2,[v])),O(g)(v=>new R(2,[v])))),gp(new ap(new Ce(p.FundAddress.AddressLine1,O(w)(v=>new R(3,[v])),O(g)(v=>new R(3,[v]))),new Ce(p.FundAddress.AddressLine2,O(w)(v=>new R(4,[v])),O(g)(v=>new R(4,[v]))),new Ce(p.FundAddress.City,O(w)(v=>new R(5,[v])),O(g)(v=>new R(5,[v]))),new Ce(p.FundAddress.AddressState,O(w)(v=>new R(6,[v])),O(g)(v=>new R(6,[v]))),new Ce(p.FundAddress.Postcode,O(w)(v=>new R(7,[v])),O(g)(v=>new R(7,[v]))))),m("div",F(S([["className","flex space-x-4"],(o=[bp(new Ce(p.MemberFirstName,O(w)(v=>new R(8,[v])),O(g)(v=>new R(8,[v])))),yp(new Ce(p.MemberLastName,O(w)(v=>new R(9,[v])),O(g)(v=>new R(9,[v]))))],["children",y.Children.toArray(Array.from(o))])]))),m("h3",{className:"text-lg font-bold mt-6",children:"Fund bank details"}),Sp(new Ce(p.BankAccountName,O(w)(v=>new R(10,[v])),O(g)(v=>new R(10,[v])))),m(Dp,{state:p.BankAccountBsb,dispatch:v=>{h(new R(11,[v]))}}),vp(new Ce(p.BankAccountNumber,O(w)(v=>new R(12,[v])),O(g)(v=>new R(12,[v]))))]),m("div",{children:y.Children.toArray(Array.from(s))}))],["children",y.Children.toArray(Array.from(r))]))))],["children",y.Children.toArray(Array.from(n))])]))),m("div",F(S([["className","flex justify-center mt-8"],(i=[m("div",F(S([["className","sm:max-w-320 w-full"],(a=[Fp(b,v=>{v.preventDefault(),h(new R(13,[]))}),Cp(v=>{v.preventDefault(),h(new R(14,[]))})],["children",y.Children.toArray(Array.from(a))])])))],["children",y.Children.toArray(Array.from(i))])])))],["children",y.Children.toArray(Array.from(t))])]))));return m("div",{children:y.Children.toArray(Array.from(x))})}const Up=m("svg",F(S([["fill","none"],["height",47],["viewBox","0 0 48 47"],["width",48],["xmlns","http://www.w3.org/2000/svg"],(()=>{let e,t,n,r;const s=S([m("rect",{width:48,height:47,rx:8,fill:"#FEE2E2"}),m("g",F(S([["clipPath","url(#clip0_153_10600)"],(e=S([m("path",{d:"M24 15V27",stroke:"#DC2626",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),m("path",F(S([(t="M24 34C24.8284 34 25.5 33.3284 25.5 32.5C25.5 31.6716 24.8284 31 24 31C23.1716 31 22.5 31.6716 22.5 32.5C22.5 33.3284 23.1716 34 24 34Z",["d",t]),["fill","#DC2626"]]))),m("path",{d:"M30.213 9H17.787L9 17.787V30.213L17.787 39H30.213L39 30.213V17.787L30.213 9Z",stroke:"#111827",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]),["children",y.Children.toArray(Array.from(e))])]))),(n=D(m("clipPath",F(S([["id","clip0_153_10600"],(r=D(m("rect",{width:32,height:32,fill:"white",transform:"translate(8,8)"})),["children",y.Children.toArray(Array.from(r))])])))),m("defs",{children:y.Children.toArray(Array.from(n))}))]);return["children",y.Children.toArray(Array.from(s))]})()])));function Hp(e){return m("h1",{className:"mt-4 mb-4 sm:mb-8 text-2xl sm:text-3xl font-semibold text-gray-900",children:e})}function xl(e){let t,n,r,s;return m("div",F(S([(t="w-full h-full px-8 py-20 bg-white rounded border border-zinc-200 flex-col justify-start items-center gap-10 inline-flex",["className",t]),(n=[Up,Hp("Something went wrong"),m("div",F(S([["className","justify-start items-center"],(r=[m("p",F(S([(s="text-center text-base sm:text-lg text-gray-900 whitespace-pre-wrap leading-6 sm:leading-8 space-y-3 sm:space-y-4 mb-4",["className",s]),["children",e]]))),m("p",{className:"text-center text-base sm:text-lg text-gray-900 whitespace-pre-wrap leading-6 sm:leading-8 mb-8",children:"Please try again later."})],["children",y.Children.toArray(Array.from(r))])])))],["children",y.Children.toArray(Array.from(n))])])))}function Zr(e,t){let n;return m("div",F(S([["className",P(" ",["animate-pulse w-full relative",e,t])],(n=[m("div",{className:P(" ",["w-full left-0 top-0 absolute bg-gray-200 rounded",e])})],["children",y.Children.toArray(Array.from(n))])])))}const zp=Zr("h-9","max-w-96"),Gi=Zr("h-6","max-w-96"),Gp=Zr("h-80","max-w-96"),jp=Zr("h-10","max-w-48"),Al=(()=>{let e,t,n;const r=[m("div",F(S([(e="w-full h-full px-8 py-20 bg-white rounded border border-zinc-200 flex-col justify-start items-center gap-10 inline-flex",["className",e]),(t=[m("div",F(S([["className","max-w-96 w-full flex-col justify-start items-center gap-6 flex"],(n=[zp,m("div",{className:"self-stretch h-14 flex-col justify-start items-center gap-2 flex",children:y.Children.toArray([Gi,Gi])})],["children",y.Children.toArray(Array.from(n))])]))),Gp,jp],["children",y.Children.toArray(Array.from(t))])])))];return m(Ae,{},...r)})();function wo(){return(wo=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 Wp=["context","children"];function qp(e){this.getChildContext=function(){return e.context};var t=e.children,n=function(r,s){if(r==null)return{};var o,i,a={},l=Object.keys(r);for(i=0;i<l.length;i++)s.indexOf(o=l[i])>=0||(a[o]=r[o]);return a}(e,Wp);return Is(t,n)}function Jp(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=m(qp,wo({},this._props,{context:e.detail.context}),function t(n,r){if(n.nodeType===3)return n.data;if(n.nodeType!==1)return null;var s=[],o={},i=0,a=n.attributes,l=n.childNodes;for(i=a.length;i--;)a[i].name!=="slot"&&(o[a[i].name]=a[i].value,o[Nl(a[i].name)]=a[i].value);for(i=l.length;i--;){var u=t(l[i],null),f=l[i].slot;f?o[f]=m(ji,{name:f},u):s[i]=u}var c=r?m(ji,null,s):s;return m(r||n.nodeName.toLowerCase(),o,c)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?$s:Bt)(this._vdom,this._root)}function Nl(e){return e.replace(/-(\w)/g,function(t,n){return n?n.toUpperCase():""})}function Zp(e,t,n){if(this._vdom){var r={};r[e]=n=n??void 0,r[Nl(e)]=n,this._vdom=Is(this._vdom,r),Bt(this._vdom,this._root)}}function Kp(){Bt(this._vdom=null,this._root)}function ji(e,t){var n=this;return m("slot",wo({},e,{ref:function(r){r?(n.ref=r,n._listener||(n._listener=function(s){s.stopPropagation(),s.detail.context=t},r.addEventListener("_preact",n._listener))):n.ref.removeEventListener("_preact",n._listener)}}))}function Yp(e,t,n,r){function s(){var o=Reflect.construct(HTMLElement,[],s);return o._vdomComponent=e,o._root=r&&r.shadow?o.attachShadow({mode:r.mode||"open"}):o,o}return(s.prototype=Object.create(HTMLElement.prototype)).constructor=s,s.prototype.connectedCallback=Jp,s.prototype.attributeChangedCallback=Zp,s.prototype.disconnectedCallback=Kp,n=n||e.observedAttributes||Object.keys(e.propTypes||{}),s.observedAttributes=n,n.forEach(function(o){Object.defineProperty(s.prototype,o,{get:function(){return this._vdom.props[o]},set:function(i){this._vdom?this.attributeChangedCallback(o,null,i):(this._props||(this._props={}),this._props[o]=i,this.connectedCallback());var a=typeof i;i!=null&&a!=="string"&&a!=="boolean"&&a!=="number"||this.setAttribute(o,i)}})}),customElements.define(t||e.tagName||e.displayName||e.name,s)}function Kr(e,t){Yp(e,t,void 0,{shadow:!0})}function Qp(e){let t;const n=S([m("style",{children:[Js]}),m("div",F(S([["className","mx-auto max-w-7xl"],(t=[m("div",{className:"mx-auto max-w-3xl",children:y.Children.toArray([e])})],["children",y.Children.toArray(Array.from(t))])])))]);return m("div",{children:y.Children.toArray(Array.from(n))})}let kl=class extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Initialise","LoadedSmsfChoice"]}},Ns=class extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Loading","Loaded","Failed"]}};function Xp(){return[new Ns(0,[]),D(e=>{e(new kl(0,[]))})]}function ew(e,t,n){return t.tag===1?t.fields[0].tag===1?[new Ns(2,[]),A()]:[new Ns(1,[t.fields[0].fields[0].SmsfChoice]),Uf()]:[n,Dt(r=>{yt(r)},e,void 0,r=>new kl(1,[r]))]}function tw(e){let t,n;const r=zr(e.backendUrl,e.accessToken),s=(t=(n=r.GetSmsfChoice,o=>i=>ew(n,o,i)),Tn(()=>Mn(Xp,j(t),(o,i)=>{}),void 0,void 0))[0];return Qp(s.tag===1?m(Rp,{backendService:r,smsfChoice:Tt(s.fields[0])}):s.tag===2?xl("We are unable to load the Self Managed Super Fund form at this time."):Al)}function nw(){Kr(e=>m(tw,e),"apollo-super-smsf")}class rw extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["FundName"]}}function kr(e){return e.fields[0]}function Wi(e){return new rw(e)}class sw extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["FundUsi"]}}function Sn(e){return e.fields[0]}function qi(e){return new sw(e)}class ow extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["MemberNumber"]}}function El(e){let t;const n=ke("Member number",Gr(e));return t=n.tag===1?new d(1,[n.fields[0]]):xt("Member number",2,n.fields[0]),t.tag===1?new d(1,[t.fields[0]]):new d(0,[new ow(t.fields[0])])}function iw(e){return Ee(El,e)}function aw(e){return e.fields[0]}class uw extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["MemberFirstName"]}}const lw="[A-Za-z][A-Za-z']+(( |-)[A-Za-z][A-Za-z']+)*\\s*$";function Ml(e){let t;const n=ke("Member given name(s)",e);return t=n.tag===1?new d(1,[n.fields[0]]):$n("Member given name(s)",lw,n.fields[0]),t.tag===1?new d(1,[t.fields[0]]):new d(0,[new uw(t.fields[0])])}function cw(e){return Ee(Ml,e)}function dw(e){return e.fields[0]}class fw extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["MemberLastName"]}}const mw="[A-Za-z][A-Za-z']+(( |-)[A-Za-z][A-Za-z']+)*\\s*$";function Tl(e){let t;const n=ke("Last Name",e);return t=n.tag===1?new d(1,[n.fields[0]]):$n("Last Name",mw,n.fields[0]),t.tag===1?new d(1,[t.fields[0]]):new d(0,[new fw(t.fields[0])])}function hw(e){return Ee(Tl,e)}function pw(e){return e.fields[0]}class ww extends ${constructor(t,n,r,s,o){super(),this.FundName=t,this.FundUsi=n,this.MemberNumber=r,this.MemberFirstName=s,this.MemberLastName=o}}const _w=m("svg",F(S([["fill","#facc15"],["className","h-5 w-5"],["viewBox","0 0 20 20"],["xmlns","http://www.w3.org/2000/svg"],(()=>{let e;const t=D(m("path",F(S([["fill-rule","evenodd"],(e="M8.257 3.099c.765-1.36 2.722-1.36 3.486 0l5.58 9.92c.75 1.334-.213 2.98-1.742 2.98H4.42c-1.53 0-2.493-1.646-1.743-2.98l5.58-9.92zM11 13a1 1 0 11-2 0 1 1 0 012 0zm-1-8a1 1 0 00-1 1v3a1 1 0 002 0V6a1 1 0 00-1-1z",["d",e]),["clipRule","evenodd"]]))));return["children",y.Children.toArray(Array.from(t))]})()]))),gw=m("div",F(S([["className","bg-yellow-50 border-l-4 border-yellow-400 p-4 my-3"],(()=>{let e,t,n;const r=[m("div",F(S([["className","flex"],(e=[m("div",{className:"flex-shrink-0",children:y.Children.toArray([_w])}),m("div",F(S([["className","ml-2"],(t=[m("ul",F(S([["className","list-disc list-outside ml-6 space-y-2 text-sm text-yellow-700 leading-5"],(n=[m("li",{children:["Make sure you are a current member of the fund before completing this step."]}),m("li",{children:["Please check that the fund USI is correct as some funds have similar names."]})],["children",y.Children.toArray(Array.from(n))])])))],["children",y.Children.toArray(Array.from(t))])])))],["children",y.Children.toArray(Array.from(e))])])))];return["children",y.Children.toArray(Array.from(r))]})()])));function Yr(e){if(e==null)return Ne();{const t=e;return m("div",{className:P(" ",["mt-2 text-sm text-red-600"]),children:t})}}function _o(e){return X(M(()=>W(T("relative shadow-sm focus:ring-primary-focus focus:border-primary-base block w-full text-base sm:text-sm border-gray-300 rounded-md focus:z-10"),M(()=>e?T("border-red-300 text-red-900 placeholder-red-300 focus:ring-red-500 focus:border-red-500"):ue()))))}function bw(e){let t,n;return m("div",F(S([["className","mt-3"],(t=[m("label",{className:"text-sm font-medium text-gray-700",htmlFor:"memberNumber",children:"Member Number"}),m("div",F(S([["className","mt-1"],(n=[m("input",{id:"memberNumber","data-testid":"member-number-input",type:"text",value:e.Field.Value,className:P(" ",_o(e.Field.ErrorMessage!=null)),onBlur:e.OnBlur,onChange:r=>{e.OnChange(r.target.value)}}),Yr(e.Field.ErrorMessage)],["children",y.Children.toArray(Array.from(n))])])))],["children",y.Children.toArray(Array.from(t))])])))}function yw(e){let t,n;return m("div",F(S([["className","mt-3 w-1/2"],(t=[m("label",{className:"text-sm font-medium text-gray-700",htmlFor:"memberGivenNames",children:"Given name(s)"}),m("div",F(S([["className","mt-1"],(n=[m("input",{type:"text",className:P(" ",_o(e.Field.ErrorMessage!=null)),id:"memberGivenNames","data-testid":"member-given-names-input",value:e.Field.Value,onBlur:e.OnBlur,onChange:r=>{e.OnChange(r.target.value)}}),Yr(e.Field.ErrorMessage)],["children",y.Children.toArray(Array.from(n))])])))],["children",y.Children.toArray(Array.from(t))])])))}function Sw(e){let t,n;return m("div",F(S([["className","mt-3 w-1/2"],(t=[m("label",{className:"text-sm font-medium text-gray-700",htmlFor:"memberLastNames",children:"Last name"}),m("div",F(S([["className","mt-1"],(n=[m("input",{type:"text",className:P(" ",_o(e.Field.ErrorMessage!=null)),id:"memberLastName","data-testid":"member-last-name-input",value:e.Field.Value,onBlur:e.OnBlur,onChange:r=>{e.OnChange(r.target.value)}}),Yr(e.Field.ErrorMessage)],["children",y.Children.toArray(Array.from(n))])])))],["children",y.Children.toArray(Array.from(t))])])))}function vw(e,t){let n;return m("div",F(S([["className","mb-4"],(n=[m("div",F(X(M(()=>W(e?ue():T(["onClick",t]),M(()=>{let r;return T((r=[m("button",{className:P(" ",["px-4 py-2 text-base inline-flex items-center justify-center border font-medium","rounded-md shadow-sm pointer-events-auto border-transparent text-white bg-primary-base w-full","disabled:pointer-events-none disabled:border-gray-300 disabled:bg-gray-100 disabled:text-gray-400","focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-focus","hover:bg-primary-hover"]),"data-testid":"continue-button",disabled:!e,children:"Continue",onClick:t})],["children",y.Children.toArray(Array.from(r))]))}))))))],["children",y.Children.toArray(Array.from(n))])])))}function Fw(e){let t,n,r;return m("div",F(D((t=[m("a",F(S([["href","/"],(n=[m("div",F(D((r=[m("button",{className:P(" ",["px-4 py-2 text-base inline-flex items-center justify-center border font-medium rounded-md shadow-sm pointer-events-auto border-gray-300 text-gray-700 bg-white w-full","disabled:pointer-events-none disabled:border-gray-300 disabled:bg-gray-100 disabled:text-gray-400","focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-focus","hover:bg-gray-50"]),"data-testid":"back-button",children:"Back",onClick:e})],["children",y.Children.toArray(Array.from(r))]))))],["children",y.Children.toArray(Array.from(n))])])))],["children",y.Children.toArray(Array.from(t))]))))}class un extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Enter","DownArrow","UpArrow","Escape"]}}let Ie=class extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SetValue","SetTouched","OnFocus","OnKeyboard","SelectFundIndex","FundSearch"]}};class zt extends ${constructor(t,n){super(),this.Funds=t,this.SelectedIndex=n}}class pt extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SearchSuccess","FoundTooMany","SearchError"]}}class Fe extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Pristine","SearchNotStarted","Searching","SearchResult"]}}let ne=class extends ${constructor(t,n,r,s,o,i){super(),this.IsTouched=t,this.HasFocus=n,this.SearchCorrelationId=r,this.SearchState=s,this.ValidatedFund=o,this.ErrorMessage=i}};function Cw(e){if(e.HasFocus){const t=e.SearchState;switch(t.tag){case 1:return t.fields[0];case 2:return t.fields[0];case 3:switch(t.fields[1].tag){case 1:return t.fields[0];case 2:return t.fields[0];default:{const n=t.fields[1].fields[0].SelectedIndex;if(n==null)return t.fields[0];{const r=jn(n,t.fields[1].fields[0].Funds);return`${r.ProductName} (${r.Usi})`}}}default:return Pe(er(n=>`${kr(n[0])} (${Sn(n[1])})`,e.ValidatedFund),"")}}else{const t=e.ValidatedFund;if(t==null){const n=e.SearchState;switch(n.tag){case 1:return n.fields[0];case 2:return n.fields[0];case 3:return n.fields[0];default:return""}}else{const n=t[1];return`${kr(t[0])} (${Sn(n)})`}}}function xw(e){return er(t=>t[0],e.ValidatedFund)}function Aw(e){return er(t=>t[1],e.ValidatedFund)}function Nw(e){return new ne(!1,!1,void 0,new Fe(0,[]),e,void 0)}function $l(e){return[new ne(!0,!1,e.SearchCorrelationId,e.SearchState,e.ValidatedFund,e.ValidatedFund!=null?void 0:"Select a fund"),A()]}function kw(e,t,n){let r,s,o,i;const a=l=>E.Delay(()=>E.Bind(bu(500),()=>E.Return(l)));switch(t.tag){case 1:return $l(n);case 2:{const l=n.ValidatedFund,u=n.SearchState;let f,c,p,h;switch(l!=null&&u.tag===3&&u.fields[1].tag===0?(f=0,u.fields[0],c=u.fields[1].fields[0],p=l[0],h=l[1]):f=1,f){case 0:{const w=new zt(c.Funds,kd(g=>g.Usi===Sn(h),c.Funds));return[new ne(n.IsTouched,!0,n.SearchCorrelationId,new Fe(3,[`${kr(p)} (${Sn(h)})`,new pt(0,[w])]),n.ValidatedFund,n.ErrorMessage),A()]}default:return[new ne(n.IsTouched,!0,n.SearchCorrelationId,n.SearchState,n.ValidatedFund,n.ErrorMessage),A()]}}case 3:{const l=n.SearchState;let u,f,c;switch(l.tag===3&&l.fields[1].tag===0?(u=0,f=l.fields[1].fields[0],c=l.fields[0]):u=1,u){case 0:if(qt(f.Funds)===0)return me(t.fields[0],new un(3,[]))?[new ne(n.IsTouched,!1,n.SearchCorrelationId,n.SearchState,n.ValidatedFund,n.ErrorMessage),A()]:[n,A()];{const p=f.SelectedIndex;switch(t.fields[0].tag){case 1:if(p==null)return[new ne(n.IsTouched,n.HasFocus,n.SearchCorrelationId,new Fe(3,[c,new pt(0,[new zt(f.Funds,0)])]),n.ValidatedFund,n.ErrorMessage),A()];{const h=p|0;return[new ne(n.IsTouched,n.HasFocus,n.SearchCorrelationId,new Fe(3,[c,new pt(0,[new zt(f.Funds,hd(qt(f.Funds)-1,h+1))])]),n.ValidatedFund,n.ErrorMessage),A()]}case 0:if(p!=null){const h=jn(p,f.Funds);return[new ne(n.IsTouched,!1,n.SearchCorrelationId,n.SearchState,[Wi(h.ProductName),qi(h.Usi)],void 0),A()]}else return[n,A()];case 3:return[new ne(n.IsTouched,!1,n.SearchCorrelationId,n.SearchState,n.ValidatedFund,n.ErrorMessage),A()];default:return p==null?[new ne(n.IsTouched,n.HasFocus,n.SearchCorrelationId,new Fe(3,[c,new pt(0,[new zt(f.Funds,0)])]),n.ValidatedFund,n.ErrorMessage),A()]:[new ne(n.IsTouched,n.HasFocus,n.SearchCorrelationId,new Fe(3,[c,new pt(0,[new zt(f.Funds,Fs(0,p-1))])]),n.ValidatedFund,n.ErrorMessage),A()]}}default:return me(t.fields[0],new un(3,[]))?[new ne(n.IsTouched,!1,n.SearchCorrelationId,n.SearchState,n.ValidatedFund,n.ErrorMessage),A()]:[n,A()]}}case 4:{const l=n.SearchState;let u,f,c;switch(l.tag===3&&l.fields[1].tag===0&&t.fields[0]>=0&&t.fields[0]<qt(l.fields[1].fields[0].Funds)?(u=0,f=l.fields[1].fields[0],c=l.fields[0]):u=1,u){case 0:if(t.fields[1]){const p=jn(t.fields[0],f.Funds);return[new ne(n.IsTouched,!1,n.SearchCorrelationId,n.SearchState,[Wi(p.ProductName),qi(p.Usi)],void 0),A()]}else return[new ne(n.IsTouched,n.HasFocus,n.SearchCorrelationId,new Fe(3,[c,new pt(0,[new zt(f.Funds,t.fields[0])])]),n.ValidatedFund,n.ErrorMessage),A()];default:return[n,A()]}}case 5:if(t.fields[0].tag===1)if(me(n.SearchCorrelationId,t.fields[1])){const l=n.SearchState;return l.tag===2?[new ne(n.IsTouched,n.HasFocus,void 0,new Fe(3,[l.fields[0],t.fields[0].fields[0].tag===1?new pt(2,[t.fields[0].fields[0].fields[0]]):(r=t.fields[0].fields[0].fields[0],r.Result.tag===0?new pt(0,[new zt(Id(u=>u.ProductName,r.Data,{Compare:Qn}),void 0)]):new pt(1,[]))]),n.ValidatedFund,n.ErrorMessage),A()]:[new ne(n.IsTouched,n.HasFocus,void 0,n.SearchState,n.ValidatedFund,n.ErrorMessage),A()]}else return[n,A()];else return[n,me(n.SearchCorrelationId,t.fields[1])?Dt(l=>{yt(l)},e,[t.fields[0].fields[0][0],t.fields[0].fields[0][1]],l=>{const u=(f=>[new ut(1,[f]),t.fields[1]])(l);return new Ie(5,[u[0],u[1]])}):A()];default:{const l=n.SearchState;let u;switch(l.tag){case 2:{l.fields[0]!==t.fields[0]?(u=1,l.fields[0]):u=2;break}case 3:{t.fields[0]!==l.fields[0]?(u=3,l.fields[0]):u=4;break}default:u=0}switch(u){case 0:if(t.fields[0].length>=3){const f=ss();return[new ne(n.IsTouched,n.HasFocus,f,new Fe(2,[t.fields[0]]),n.ValidatedFund,n.ErrorMessage),Dt(c=>{yt(c)},a,(s=[new ut(0,[[t.fields[0],25]]),f],new Ie(5,[s[0],s[1]])),c=>c)]}else return[new ne(n.IsTouched,n.HasFocus,n.SearchCorrelationId,new Fe(1,[t.fields[0]]),n.ValidatedFund,n.ErrorMessage),A()];case 1:if(t.fields[0].length>=3){const f=ss();return[new ne(n.IsTouched,n.HasFocus,f,new Fe(2,[t.fields[0]]),n.ValidatedFund,n.ErrorMessage),Dt(c=>{yt(c)},a,(o=[new ut(0,[[t.fields[0],25]]),f],new Ie(5,[o[0],o[1]])),c=>c)]}else return[new ne(n.IsTouched,n.HasFocus,void 0,new Fe(1,[t.fields[0]]),n.ValidatedFund,n.ErrorMessage),A()];case 2:return[n,A()];case 3:if(t.fields[0].length>=3){const f=ss();return[new ne(n.IsTouched,n.HasFocus,f,new Fe(2,[t.fields[0]]),n.ValidatedFund,n.ErrorMessage),Dt(c=>{yt(c)},a,(i=[new ut(0,[[t.fields[0],25]]),f],new Ie(5,[i[0],i[1]])),c=>c)]}else return[new ne(n.IsTouched,n.HasFocus,void 0,new Fe(1,[t.fields[0]]),n.ValidatedFund,n.ErrorMessage),A()];default:return[n,A()]}}}}function Ew(e){let t;return m("div",F(S([["className","mt-3"],(t=[m("label",{className:"text-sm font-medium text-gray-700",children:"Fund USI",htmlFor:"fundUsi"}),m("div",{id:"fundUsi",className:"mt-1 shadow-sm px-3 py-2 rounded-md border border-gray-300 bg-gray-50 text-gray-500 text-sm",children:Sn(e),"data-testid":"fund-usi"})],["children",y.Children.toArray(Array.from(t))])])))}function Bn(e){return m("span",{className:"cursor-pointer text-gray-500 py-1.5 pl-4",children:e})}function Mw(e,t){let n;const r=e.SearchState;let s,o;switch(r.tag){case 2:{s=1;break}case 3:{switch(r.fields[1].tag){case 2:{s=3;break}case 0:{qt(r.fields[1].fields[0].Funds)===0?(s=4,r.fields[1].fields[0]):(s=5,o=r.fields[1].fields[0]);break}default:s=2}break}default:s=0}switch(s){case 0:return Bn("Start typing to find the results");case 1:return Bn("Searching...");case 2:return Bn("Keep typing to narrow down your search.");case 3:return Bn("Search failed.");case 4:return Bn("No items match your search");default:return m("div",F(D((n=X(M(()=>xe(i=>m("div",{className:P(" ",X(M(()=>W(T("cursor-pointer text-wrap py-1.5 pl-4"),M(()=>me(o.SelectedIndex,i)?T("bg-primary-light"):ue()))))),onClick:a=>{let l;t((l=[i,!0],new Ie(4,[l[0],l[1]])))},onMouseEnter:a=>{let l;t((l=[i,!1],new Ie(4,[l[0],l[1]])))},onMouseDown:a=>{a.preventDefault()},children:`${jn(i,o.Funds).ProductName} (${jn(i,o.Funds).Usi})`}),Ju(0,1,qt(o.Funds)-1)))),["children",y.Children.toArray(Array.from(n))]))))}}function Tw(e){const t=e.dispatch,n=e.state,r=n.IsTouched&&n.ErrorMessage!=null,s=y.useRef(void 0),o=[n.HasFocus];y.useEffect(()=>{n.HasFocus===!1&&Pr(a=>{a.blur()},Ja(s.current))},o);const i=X(M(()=>{let a,l;return W(T(m("div",F(S([["className","relative mt-3"],(a=[m("label",{className:"text-sm font-medium text-gray-700",htmlFor:"fundName",children:"Fund Name"}),m("div",F(S([["className","mt-1"],["onBlur",u=>{t(new Ie(1,[]))}],(l=X(M(()=>W(T(m("input",{id:"fundName","data-testid":"fund-search-input",placeholder:"Type to search by name or USI...",type:"text",value:Cw(n),inputMode:"search",className:P(" ",X(M(()=>W(T("relative shadow-sm focus:ring-primary-focus focus:border-primary-base block w-full text-base sm:text-sm border-gray-300 rounded-md focus:z-10"),M(()=>W(r?T("border-red-300 placeholder-red-300 focus:ring-red-500 focus:border-red-500"):ue(),M(()=>r&&!n.HasFocus?T("text-red-900"):ue()))))))),onKeyUp:u=>{switch(u.key){case"Enter":{t(new Ie(3,[new un(0,[])]));break}case"ArrowDown":{t(new Ie(3,[new un(1,[])]));break}case"ArrowUp":{t(new Ie(3,[new un(2,[])]));break}case"Escape":{t(new Ie(3,[new un(3,[])]));break}}u.preventDefault()},onChange:u=>{t(new Ie(0,[u.target.value]))},onFocus:u=>{t(new Ie(2,[]))},ref:s})),M(()=>{let u,f;return n.HasFocus?T(m("div",F(S([(u="max-h-[min(320px,50vh)] absolute shadow rounded-md border mt-0.5 overflow-auto w-full bg-white z-10 py-2 text-sm",["className",u]),(f=[Mw(n,t)],["children",y.Children.toArray(Array.from(f))])])))):T(Yr(n.ErrorMessage))})))),["children",y.Children.toArray(Array.from(l))])])))],["children",y.Children.toArray(Array.from(a))])])))),M(()=>{const u=n.ValidatedFund;return u!=null?T(Ew(u[1])):T(Ne())}))}));return m(Ae,{},...i)}class $w extends ${constructor(t,n,r,s,o){super(),this.FundName=t,this.FundUsi=n,this.MemberNumber=r,this.MemberFirstName=s,this.MemberLastName=o}}function go(e,t){const n={detail:t};return new CustomEvent(e,n)}const Iw=go("byof-loaded",{sender:"super-byof"}),Dw=go("byof-cancelled",{sender:"super-byof"});function Bw(e){return go("byof-completed",{fundName:e.FundName,fundUsi:e.FundUsi,memberFirstName:e.MemberFirstName,memberLastName:e.MemberLastName,memberNumber:e.MemberNumber,sender:"super-byof"})}class bo extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Loaded","Cancelled","Completed"]}}function yo(e){let t;t=e.tag===1?Dw:e.tag===2?Bw(e.fields[0]):Iw,document.dispatchEvent(t)}function Vw(e,t){yo(new bo(2,[e]))}function Lw(e){yo(new bo(0,[]))}function Ow(e){yo(new bo(1,[]))}class Ji extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SetValue","SetTouched"]}}let it=class extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["UpdateFundName","UpdateMemberNumber","UpdateMemberFirstName","UpdateMemberLastName","Submit","Cancel"]}},ln=class extends ${constructor(t,n,r,s){super(),this.Fund=t,this.MemberNumber=n,this.MemberFirstName=r,this.MemberLastName=s}};const Pw=new ln(Nw(void 0),iw(void 0),cw(void 0),hw(void 0));function Rw(){return[Pw,Ue(e=>{Lw()})]}function Il(e){let t,n;const r=xw(e.Fund);if(n=r==null?new d(1,["Invalid fund name"]):new d(0,[r]),t=n.tag===1?new d(1,[D(n.fields[0])]):new d(0,[n.fields[0]]),t.tag===1)return new d(1,[t.fields[0]]);{let s,o;const i=Aw(e.Fund);if(o=i==null?new d(1,["Invalid fund usi"]):new d(0,[i]),s=o.tag===1?new d(1,[D(o.fields[0])]):new d(0,[o.fields[0]]),s.tag===1)return new d(1,[s.fields[0]]);{let a;const l=El(e.MemberNumber.Value);if(a=l.tag===1?new d(1,[D(l.fields[0])]):new d(0,[l.fields[0]]),a.tag===1)return new d(1,[a.fields[0]]);{let u;const f=Ml(e.MemberFirstName.Value);if(u=f.tag===1?new d(1,[D(f.fields[0])]):new d(0,[f.fields[0]]),u.tag===1)return new d(1,[u.fields[0]]);{let c;const p=Tl(e.MemberLastName.Value);return c=p.tag===1?new d(1,[D(p.fields[0])]):new d(0,[p.fields[0]]),c.tag===1?new d(1,[c.fields[0]]):new d(0,[new ww(t.fields[0],s.fields[0],a.fields[0],u.fields[0],c.fields[0])])}}}}}function Uw(e){return new ln($l(e.Fund)[0],fe(e.MemberNumber),fe(e.MemberFirstName),fe(e.MemberLastName))}function as(e,t,n){return n(e.tag===1?fe(t):Yu(t,e.fields[0]))}function Hw(e,t,n){switch(t.tag){case 1:return[as(t.fields[0],n.MemberNumber,r=>new ln(n.Fund,r,n.MemberFirstName,n.MemberLastName)),A()];case 2:return[as(t.fields[0],n.MemberFirstName,r=>new ln(n.Fund,n.MemberNumber,r,n.MemberLastName)),A()];case 3:return[as(t.fields[0],n.MemberLastName,r=>new ln(n.Fund,n.MemberNumber,n.MemberFirstName,r)),A()];case 4:{const r=Il(n);if(r.tag===1)return[Uw(n),A()];{const s=r.fields[0],o=new $w(kr(s.FundName),Sn(s.FundUsi),aw(s.MemberNumber),dw(s.MemberFirstName),pw(s.MemberLastName));return[n,Ue(i=>{Vw(o)})]}}case 5:return[n,Ue(r=>{Ow()})];default:{const r=kw(e.GetAustralianFundList,t.fields[0],n.Fund);return[new ln(r[0],n.MemberNumber,n.MemberFirstName,n.MemberLastName),Yt(s=>new it(0,[s]),r[1])]}}}function zw(e){let t,n,r,s,o,i,a;const l=e.backendService,u=Tn(()=>Mn(Rw,(_,x)=>Hw(l,_,x),(_,x)=>{}),void 0,void 0),f=u[0],c=u[1],p=(_,x)=>{c(_(new Ji(1,[])))},h=(_,x)=>{c(_(new Ji(0,[x])))};let w;w=Il(f).tag!==1;const b=D(m("form",F(S([["id","form"],["novalidate",""],(t=[m("div",F(S([["className","p-4 sm:p-6 pb-6 sm:pb-8 border shadow-sm rounded-lg max-w-560"],(n=[m("p",{className:"sm:text-lg font-bold",children:"Fund details"}),gw,m("div",F(D((r=[(s=S([m(Tw,{state:f.Fund,dispatch:_=>{c(new it(0,[_]))}}),bw(new Ce(f.MemberNumber,O(p)(_=>new it(1,[_])),O(h)(_=>new it(1,[_])))),m("div",F(S([["className","flex space-x-4"],(o=[yw(new Ce(f.MemberFirstName,O(p)(_=>new it(2,[_])),O(h)(_=>new it(2,[_])))),Sw(new Ce(f.MemberLastName,O(p)(_=>new it(3,[_])),O(h)(_=>new it(3,[_]))))],["children",y.Children.toArray(Array.from(o))])])))]),m("div",{children:y.Children.toArray(Array.from(s))}))],["children",y.Children.toArray(Array.from(r))]))))],["children",y.Children.toArray(Array.from(n))])]))),m("div",F(S([["className","flex justify-center mt-8"],(i=[m("div",F(S([["className","sm:max-w-320 w-full"],(a=[vw(w,_=>{_.preventDefault(),c(new it(4,[]))}),Fw(_=>{_.preventDefault(),c(new it(5,[]))})],["children",y.Children.toArray(Array.from(a))])])))],["children",y.Children.toArray(Array.from(i))])])))],["children",y.Children.toArray(Array.from(t))])]))));return m("div",{children:y.Children.toArray(Array.from(b))})}function Gw(e){let t;const n=S([m("style",{children:[Js]}),m("div",F(S([["className","mx-auto max-w-7xl"],(t=[m("div",{className:"mx-auto max-w-3xl",children:y.Children.toArray([e])})],["children",y.Children.toArray(Array.from(t))])])))]);return m("div",{children:y.Children.toArray(Array.from(n))})}function jw(e){let t;return Gw((t=zr(e.backendUrl,e.accessToken),m(zw,{backendService:t})))}function Ww(){Kr(e=>m(jw,e),"apollo-super-byof")}class qw extends ${constructor(t){super(),this.FundUsi=t}}class Jw extends ${constructor(t,n){super(),this.FundName=t,this.FundUsi=n}}function So(e,t){const n={detail:t};return new CustomEvent(e,n)}function Zw(e){return So("default-fund-loaded",{fundUsi:Tt(e.FundUsi),sender:"super-default-fund"})}const Kw=So("default-fund-cancelled",{sender:"super-default-fund"});function Yw(e){return So("default-fund-completed",{fundName:e.FundName,fundUsi:e.FundUsi,sender:"super-default-fund"})}class vo extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Loaded","Cancelled","Completed"]}}function Fo(e){let t;t=e.tag===1?Kw:e.tag===2?Yw(e.fields[0]):Zw(e.fields[0]),document.dispatchEvent(t)}function Qw(e,t){Fo(new vo(2,[e]))}function Xw(e,t){Fo(new vo(0,[e]))}function e_(e){Fo(new vo(1,[]))}let Zi=class extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Submit","Cancel"]}};class t_ extends ${constructor(t,n){super(),this.FundName=t,this.FundUsi=n}}class Ki extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["NoEmployerDefault","ValidDefaultFund"]}}let Yi=class extends ${constructor(t){super(),this.EmployersDefaultFund=t}};function n_(e,t){const n=s=>{let o;return Ue((o=new qw(s),i=>{Xw(o)}))},r=e.EmployersDefaultFund;if(r!=null){const s=r;return[new Yi(new Ki(1,[new t_(s.FundName,s.FundUsi)])),n(s.FundUsi)]}else return[new Yi(new Ki(0,[])),n(void 0)]}function r_(e,t){if(e.tag===1)return[t,Ue(n=>{e_()})];{const n=t.EmployersDefaultFund;if(n.tag===1){const r=n.fields[0],s=new Jw(r.FundName,r.FundUsi);return[t,Ue(o=>{Qw(s)})]}else return[t,A()]}}const s_=m("svg",F(S([["fill","#facc15"],["className","h-5 w-5"],["viewBox","0 0 20 20"],["xmlns","http://www.w3.org/2000/svg"],(()=>{let e;const t=D(m("path",F(S([["fillRule","evenodd"],(e="M8.257 3.099c.765-1.36 2.722-1.36 3.486 0l5.58 9.92c.75 1.334-.213 2.98-1.742 2.98H4.42c-1.53 0-2.493-1.646-1.743-2.98l5.58-9.92zM11 13a1 1 0 11-2 0 1 1 0 012 0zm-1-8a1 1 0 00-1 1v3a1 1 0 002 0V6a1 1 0 00-1-1z",["d",e]),["clipRule","evenodd"]]))));return["children",y.Children.toArray(Array.from(t))]})()]))),o_=m("div",F(S([["className","bg-yellow-50 border-l-4 border-yellow-400 p-4 my-3"],(()=>{let e,t,n;const r=[m("div",F(S([["className","flex"],(e=[m("div",{className:"flex-shrink-0",children:y.Children.toArray([s_])}),m("div",F(S([["className","ml-3 text-sm text-yellow-700 leading-5"],(t=[m("span",F(D((n="It looks like your employer has not specified a default fund, please contact them if you'd like to use your company's default fund.",["children",n]))))],["children",y.Children.toArray(Array.from(t))])])))],["children",y.Children.toArray(Array.from(e))])])))];return["children",y.Children.toArray(Array.from(r))]})()])));function Qi(e,t){let n,r;return m("div",F(S([["className","mt-3"],(n=[m("label",{className:"text-sm font-medium text-gray-700",children:e}),m("div",F(S([(r="mt-1 shadow-sm px-3 py-2 rounded-md border border-gray-300 bg-gray-50 text-gray-500 text-base sm:text-sm",["className",r]),["children",t]])))],["children",y.Children.toArray(Array.from(n))])])))}const i_=m("div",F(S([["className","text-sm text-gray-700"],(()=>{let e;const t=[m("label",{className:"font-semibold text-gray-900",children:"By clicking “Continue”, you acknowledge that:"}),m("ul",F(S([["className","list-disc list-outside pl-5"],(e=[m("li",{className:"mt-2",children:"you are choosing to join your employer's default super fund;"}),m("li",{className:"mt-2",children:"your employer will open a new account for you with their default super fund; and"}),m("li",{className:"mt-2",children:"your application to join is subject to Trustee approval."})],["children",y.Children.toArray(Array.from(e))])])))];return["children",y.Children.toArray(Array.from(t))]})()]))),a_=m("div",{className:"mt-8 mb-8 h-px w-full bg-gray-200"});function u_(e,t){let n;return m("div",F(S([["className","mb-4"],(n=[m("button",{className:P(" ",X(M(()=>W(T("w-full inline-flex justify-center py-2 px-4 text-sm font-medium rounded-lg transition-all text-white"),M(()=>T(e?"cursor-pointer bg-primary-base hover:bg-primary-hover":"cursor-not-allowed bg-primary-disabled")))))),"data-testid":"continue-button",disabled:!e,onClick:t,children:"Continue"})],["children",y.Children.toArray(Array.from(n))])])))}function l_(e){let t;const n=D(m("button",F(S([(t="w-full inline-flex justify-center py-2 px-4 border border-gray-300 text-sm font-medium rounded-lg text-gray-700 bg-white hover:bg-gray-50 cursor-pointer",["className",t]),["data-testid","back-button"],["onClick",e],["children","Back"]]))));return m("div",{children:y.Children.toArray(Array.from(n))})}function c_(e){let t,n,r;const s=Tn(()=>Mn(()=>n_(e),r_,(u,f)=>{}),void 0,void 0),o=s[0],i=s[1],a=o.EmployersDefaultFund.tag===1,l=S([m("div",F(S([["className","p-4 sm:p-6 pb-6 sm:pb-8 border shadow-sm rounded-lg max-w-560"],(t=X(M(()=>W(T(m("p",{className:"sm:text-lg font-bold mb-3",children:"Fund details"})),M(()=>{let u;const f=o.EmployersDefaultFund;if(f.tag===1){const c=f.fields[0];return T((u=S([Qi("Fund Name",c.FundName),Qi("Fund USI",c.FundUsi),a_,i_]),m("div",{children:y.Children.toArray(Array.from(u))})))}else return T(o_)})))),["children",y.Children.toArray(Array.from(t))])]))),m("div",F(S([["className","flex justify-center mt-8"],(n=[m("div",F(S([["className","sm:max-w-320 w-full"],(r=X(M(()=>W(a?T(u_(a,u=>{u.preventDefault(),i(new Zi(0,[]))})):ue(),M(()=>T(l_(u=>{u.preventDefault(),i(new Zi(1,[]))})))))),["children",y.Children.toArray(Array.from(r))])])))],["children",y.Children.toArray(Array.from(n))])])))]);return m("div",{children:y.Children.toArray(Array.from(l))})}function d_(e){let t;const n=S([m("style",{children:[Js]}),m("div",F(S([["className","mx-auto max-w-7xl"],(t=[m("div",{className:"mx-auto max-w-3xl",children:y.Children.toArray([e])})],["children",y.Children.toArray(Array.from(t))])])))]);return m("div",{children:y.Children.toArray(Array.from(n))})}class Dl extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Initialise","LoadedDefaultChoice"]}}class ks extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Loading","Loaded","Failed"]}}function f_(){return[new ks(0,[]),D(e=>{e(new Dl(0,[]))})]}function m_(e,t,n){return t.tag===1?t.fields[0].tag===1?[new ks(2,[]),A()]:[new ks(1,[t.fields[0].fields[0]]),A()]:[n,Dt(r=>{yt(r)},e,void 0,r=>new Dl(1,[r]))]}function h_(e){let t,n;const s=(t=(n=zr(e.backendUrl,e.accessToken).GetDefaultFund,o=>i=>m_(n,o,i)),Tn(()=>Mn(f_,j(t),(o,i)=>{}),void 0,void 0))[0];return d_(s.tag===2?xl("We are unable to load the Default Fund form at this time."):s.tag===1?m(c_,s.fields[0]):Al)}function p_(){Kr(e=>m(h_,e),"apollo-super-default-fund")}class us extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Promoted","PromotedDefault","DefinedBenefits"]}}class w_ extends ${constructor(t,n){super(),this.FundId=t,this.FundType=n}}class __ extends ${constructor(t,n,r,s,o,i,a,l){super(),this.FundId=t,this.FundName=n,this.Usi=r,this.MemberNumber=s,this.MemberFirstName=o,this.MemberFamilyName=i,this.SourceOfJoin=a,this.IsDefaultExclusive=l}}class g_ extends ${constructor(t,n,r,s,o){super(),this.FundId=t,this.FundName=n,this.Usi=r,this.SourceOfJoin=s,this.IsDefaultExclusive=o}}class b_ extends ${constructor(t,n,r,s,o,i,a,l){super(),this.FundId=t,this.FundName=n,this.Usi=r,this.MemberNumber=s,this.MemberFirstName=o,this.MemberFamilyName=i,this.SourceOfJoin=a,this.IsDefaultExclusive=l}}class y_ extends ${constructor(t,n,r,s,o,i,a,l){super(),this.FundId=t,this.FundName=n,this.Usi=r,this.MemberNumber=s,this.MemberElectContributionRatePreTax=o,this.MemberElectContributionRatePostTax=i,this.SourceOfJoin=a,this.IsDefaultExclusive=l}}class mr extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Promoted","PromotedDefault","PromotedDefaultWithJoin","DefinedBenefits"]}}function Bl(e){switch(e){case"promoted":return new us(0,[]);case"promoted-default":return new us(1,[]);case"defined-benefits":return new us(2,[]);default:return}}function S_(e){return er(t=>new w_(e.fundId,t),Bl(e.fundType))}function v_(e){return S(au(S_,e))}function F_(e){switch(e.fundType){case"Promoted":return new mr(0,[new __(e.fundId,e.fundName,e.usi,Pe(e.memberNumber,""),e.memberFirstName,e.memberFamilyName,e.sourceOfJoin,e.isDefaultExclusive)]);case"PromotedDefault":return new mr(1,[new g_(e.fundId,e.fundName,e.usi,e.sourceOfJoin,e.isDefaultExclusive)]);case"PromotedDefaultWithJoin":return new mr(2,[new b_(e.fundId,e.fundName,e.usi,Pe(e.memberNumber,""),Pe(e.memberFirstName,""),Pe(e.memberFamilyName,""),e.sourceOfJoin,e.isDefaultExclusive)]);case"DefinedBenefits":{const n=e.memberElectContributionRatePreTax,r=e.memberElectContributionRatePostTax;let s,o,i;switch(n!=null&&r!=null?(s=0,o=r,i=n):s=1,s){case 0:return new mr(3,[new y_(e.fundId,e.fundName,e.usi,Pe(e.memberNumber,""),i,o,e.sourceOfJoin,e.isDefaultExclusive)]);default:return}}default:return}}class ls extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Promoted","PromotedDefault","PromotedDefaultWithJoin"]}}class cs extends ${constructor(t,n,r,s,o,i,a,l,u){super(),this.FundType=t,this.FundId=n,this.FundUsi=r,this.FundName=s,this.MemberNumber=o,this.MemberFirstName=i,this.MemberFamilyName=a,this.SourceOfJoin=l,this.IsDefaultExclusive=u}}function Co(e,t){const n={detail:t};return new CustomEvent(e,n)}function C_(e){switch(e.tag){case 1:return"PromotedDefault";case 2:return"PromotedDefaultWithJoin";default:return"Promoted"}}const x_=Co("promoted-fund-loaded",{sender:"super-promoted-fund"}),A_=Co("promoted-fund-cancelled",{sender:"super-promoted-fund"});function N_(e){return Co("promoted-fund-completed",{fundId:e.FundId,fundName:e.FundName,fundType:C_(e.FundType),fundUsi:e.FundUsi,isDefaultExclusive:Tt(e.IsDefaultExclusive),memberFamilyName:Tt(e.MemberFamilyName),memberFirstName:Tt(e.MemberFirstName),memberNumber:Tt(e.MemberNumber),sender:"super-promoted-fund",sourceOfJoin:Tt(e.SourceOfJoin)})}class xo extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Loaded","Cancelled","Completed"]}}function Ao(e){let t;t=e.tag===1?A_:e.tag===2?N_(e.fields[0]):x_,document.dispatchEvent(t)}function k_(e,t){Ao(new xo(2,[e]))}function E_(e){Ao(new xo(0,[]))}function M_(e){Ao(new xo(1,[]))}class _r extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["NotLoaded","Loaded","Failed"]}}class Ge extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SuperCampaignLoaded","SuperCampaignLoadFailed","SuperCampaignFailed","ChooseAnotherFundRequested","FundPanelShown","FundTileClicked","FundPdsViewed","DisclaimerViewed","DisclaimerAccepted","PromotedFundJoined","BackendCallCompleted"]}}class Ln extends ${constructor(t,n,r,s){super(),this.Status=t,this.ShownFunds=n,this.DefaultFundUsiSet=r,this.IsDefinedBenefitsEligible=s}}function T_(){return[new Ln(new _r(0,[]),le(),void 0,void 0),A()]}function ds(e){return Xc(e," ","")}function $_(e){switch(e.tag){case 1:{const t=e.fields[0];return new cs(new ls(1,[]),t.FundId,ds(t.Usi),t.FundName,void 0,void 0,void 0,t.SourceOfJoin,t.IsDefaultExclusive)}case 2:{const t=e.fields[0];return new cs(new ls(2,[]),t.FundId,ds(t.Usi),t.FundName,t.MemberNumber,t.MemberFirstName,t.MemberFamilyName,t.SourceOfJoin,t.IsDefaultExclusive)}case 3:return;default:{const t=e.fields[0];return new cs(new ls(0,[]),t.FundId,ds(t.Usi),t.FundName,t.MemberNumber,t.MemberFirstName,t.MemberFamilyName,t.SourceOfJoin,t.IsDefaultExclusive)}}}function at(e){return Bf(t=>{yt(t)},()=>e,void 0,t=>new Ge(10,[]),t=>new Ge(10,[]))}function I_(e){return fn(Kt(at,e))}function D_(e,t,n){let r;switch(t.tag){case 1:{const s=t.fields[0],o=new si(new ri(0,[]),s);return[new Ln(new _r(2,[s]),n.ShownFunds,n.DefaultFundUsiSet,n.IsDefinedBenefitsEligible),fn(S([at(e.TrackAnalyticsEvent(new kt(5,[s]))),at(e.PostSuperCampaignError(o))]))]}case 2:{const s=t.fields[0],o=new si(new ri(1,[]),s);return[new Ln(new _r(2,[s]),n.ShownFunds,n.DefaultFundUsiSet,n.IsDefinedBenefitsEligible),fn(S([at(e.TrackAnalyticsEvent(new kt(6,[s]))),at(e.PostSuperCampaignError(o))]))]}case 3:return[n,Ue(s=>{M_()})];case 4:{const s=t.fields[0],o=new of("panel",Kt(i=>i.FundId,s),void 0,new sf(1,[]));return[new Ln(n.Status,s,n.DefaultFundUsiSet,n.IsDefinedBenefitsEligible),at(e.ViewSuperFundPanel(o))]}case 5:{const s=t.fields[4],o=t.fields[5],i=t.fields[1],a=t.fields[3],l=t.fields[2],u=t.fields[0],f=Kt(h=>h.FundId,n.ShownFunds),c=a.tag===1?new ti(1,[u,"panel"]):new ti(0,[u,"panel"]),p=a.tag===1?new kt(1,[new ni(1,[new mu(Pe(i,""),l,u,f,n.DefaultFundUsiSet,!0,"panel",s,o)])]):new kt(1,[new ni(0,[new fu(i,l,u,f,n.DefaultFundUsiSet,!0,"panel",s,o)])]);return[n,I_(S([e.ClickPromotedTile(c),e.TrackAnalyticsEvent(p)]))]}case 6:{const s=new kt(0,[new du(t.fields[0],t.fields[1],t.fields[2],!0)]);return[n,at(e.TrackAnalyticsEvent(s))]}case 7:{const s=new kt(2,[new hu((r=n.IsDefinedBenefitsEligible,r==null?"Not set":r?"True":"False"),!0)]);return[n,at(e.TrackAnalyticsEvent(s))]}case 8:{const s=new kt(3,[new pu(!0)]);return[n,at(e.TrackAnalyticsEvent(s))]}case 9:{const s=$_(t.fields[0]);if(s==null)return[n,A()];{const o=s;return[n,Ue(i=>{k_(o)})]}}case 10:return[n,A()];default:{const s=at(e.TrackAnalyticsEvent(new kt(4,[void 0])));return[new Ln(new _r(1,[]),n.ShownFunds,n.DefaultFundUsiSet,n.IsDefinedBenefitsEligible),fn(S([Ue(o=>{E_()}),s]))]}}}const B_=(e,t)=>{Fn(()=>{const n=e();return()=>{n.Dispose()}},t)};function V_(e){return{Dispose(){Pr(t=>{Z(t)},Ja(e))}}}function L_(e){const t=y.useRef(void 0),n=y.useRef(!1),r=y.useRef(!1);n.current&&(r.current=!0),B_(()=>V_(n.current?void 0:(n.current=!0,t.current=ye(e()),r.current?t.current:void 0)),[])}function ht(e){return e==="super-campaign"?!0:e==="featured-funds"}function O_(e,t){const n=t.detail;n!=null&&ht(n.sender)&&e(new Ge(0,[]))}function P_(e,t){const n=t.detail;n!=null&&ht(n.sender)&&e(new Ge(1,[n.reason]))}function R_(e,t){const n=t.detail;n!=null&&ht(n.sender)&&e(new Ge(2,[n.reason]))}function U_(e,t){const n=t.detail;n!=null&&ht(n.sender)&&e(new Ge(3,[]))}function H_(e,t){const n=t.detail;n!=null&&ht(n.sender)&&e(new Ge(4,[v_(n.shownFunds)]))}function z_(e,t){const n=t.detail;if(n!=null&&ht(n.sender)){const r=Bl(n.fundType);if(r!=null){const s=r;e(new Ge(5,[n.fundId,n.fundUsi,n.fundName,s,n.sourceOfJoin,n.isDefaultExclusive]))}}}function G_(e,t){const n=t.detail;n!=null&&ht(n.sender)&&e(new Ge(6,[n.fundUsi,n.fundName,n.pageName]))}function j_(e,t){const n=t.detail;n!=null&&ht(n.sender)&&e(new Ge(7,[]))}function W_(e,t){const n=t.detail;n!=null&&ht(n.sender)&&e(new Ge(8,[]))}function q_(e,t){const n=t.detail;if(n!=null&&ht(n.sender)){const r=F_(n.fundJoinInfo);r==null||e(new Ge(9,[r]))}}class J_ extends ${constructor(t,n,r,s,o,i,a,l,u,f){super(),this.SuperCampaignLoaded=t,this.SuperCampaignLoadFailed=n,this.SuperCampaignFailed=r,this.ChooseAnotherFundRequested=s,this.FundPanelShown=o,this.FundTileClicked=i,this.FundPdsViewed=a,this.DisclaimerViewed=l,this.DisclaimerAccepted=u,this.PromotedFundJoined=f}}function Z_(e){return new J_(t=>{O_(e,t)},t=>{P_(e,t)},t=>{R_(e,t)},t=>{U_(e,t)},t=>{H_(e,t)},t=>{z_(e,t)},t=>{G_(e,t)},t=>{j_(e,t)},t=>{W_(e,t)},t=>{q_(e,t)})}function K_(e){document.addEventListener("super-campaign-loaded",e.SuperCampaignLoaded),document.addEventListener("super-campaign-load-failed",e.SuperCampaignLoadFailed),document.addEventListener("super-campaign-failed",e.SuperCampaignFailed),document.addEventListener("choose-another-fund-requested",e.ChooseAnotherFundRequested),document.addEventListener("fund-panel-shown",e.FundPanelShown),document.addEventListener("fund-tile-clicked",e.FundTileClicked),document.addEventListener("fund-pds-viewed",e.FundPdsViewed),document.addEventListener("disclaimer-viewed",e.DisclaimerViewed),document.addEventListener("disclaimer-accepted",e.DisclaimerAccepted),document.addEventListener("promoted-fund-joined",e.PromotedFundJoined)}function Y_(e){document.removeEventListener("super-campaign-loaded",e.SuperCampaignLoaded),document.removeEventListener("super-campaign-load-failed",e.SuperCampaignLoadFailed),document.removeEventListener("super-campaign-failed",e.SuperCampaignFailed),document.removeEventListener("choose-another-fund-requested",e.ChooseAnotherFundRequested),document.removeEventListener("fund-panel-shown",e.FundPanelShown),document.removeEventListener("fund-tile-clicked",e.FundTileClicked),document.removeEventListener("fund-pds-viewed",e.FundPdsViewed),document.removeEventListener("disclaimer-viewed",e.DisclaimerViewed),document.removeEventListener("disclaimer-accepted",e.DisclaimerAccepted),document.removeEventListener("promoted-fund-joined",e.PromotedFundJoined)}function Q_(e){let t;const n=zr(e.backendUrl,e.accessToken),r=Tn(()=>Mn(T_,(o,i)=>D_(n,o,i),(o,i)=>{}),void 0,void 0),s=y.useRef(void 0);return L_(()=>{const o=Z_(r[1]);return s.current=o,K_(o),{Dispose(){const i=s.current;i==null||Y_(i)}}}),m("div",F(D((t=[y.createElement("apollo-super-campaign",{"backend-url":e.backendUrl,"access-token":e.accessToken})],["children",y.Children.toArray(Array.from(t))]))))}function X_(e){return m(Q_,{accessToken:e.accessToken,backendUrl:e.backendUrl})}function eg(){Kr(e=>m(X_,e),"apollo-super-promoted-fund")}nw();Ww();p_();eg();
|