@flarehr/superhero-account-registry 2.33.50 → 2.34.51
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,16 +1,16 @@
|
|
|
1
|
-
(function(){"use strict";function
|
|
2
|
-
`)+" }":(r==null?void 0:r.name)??""}}return String(e)}function
|
|
3
|
-
`)+" }"}function ku(e){const t=Object.values(e).map(n=>dt(n));return zn(t)}function Su(e,t){if(e===t)return!0;if(vr(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++)if(!he(e[n[r]],t[n[r]]))return!1;return!0}else return!1}function Au(e,t){if(e===t)return 0;if(vr(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++){const o=qe(e[n[r]],t[n[r]]);if(o!==0)return o}return 0}else return-1}class K{toJSON(){return xu(this)}toString(){return Cu(this)}GetHashCode(){return ku(this)}Equals(t){return Su(this,t)}CompareTo(t){return Au(this,t)}}class Re{get contents(){return this.getter()}set contents(t){this.setter(t)}constructor(t,n){typeof n=="function"?(this.getter=t,this.setter=n):(this.getter=()=>t,this.setter=r=>{t=r})}}class Eu{constructor(t){this.message=t}}function Iu(e){return e instanceof Eu||e instanceof Error}function Tu(e){return e instanceof Promise}function kr(e){return Iu(e)||Tu(e)?e:new Error(String(e))}const fn=Symbol("numeric");function oi(e){return typeof e=="number"||typeof e=="bigint"||(e==null?void 0:e[fn])}function $u(e,t){return typeof e=="number"||typeof e=="bigint"?e<t?-1:e>t?1:0:e.CompareTo(t)}function Eo(e,t){return typeof e=="number"?e*t:typeof e=="bigint"?e*BigInt(t):e[fn]().multiply(t)}function Sr(e,t){return typeof e=="number"?e.toFixed(t):typeof e=="bigint"?e:e[fn]().toFixed(t)}function Ar(e,t){return typeof e=="number"?e.toPrecision(t):typeof e=="bigint"?e:e[fn]().toPrecision(t)}function Er(e,t){return typeof e=="number"?e.toExponential(t):typeof e=="bigint"?e:e[fn]().toExponential(t)}function Ir(e){return typeof e=="number"?(Number(e)>>>0).toString(16):typeof e=="bigint"?BigInt.asUintN(64,e).toString(16):e[fn]().toHex()}class ht{constructor(t,n,r,o,s,i,a){this.fullname=t,this.generics=n,this.construct=r,this.parent=o,this.fields=s,this.cases=i,this.enumCases=a}toString(){return be(this)}GetHashCode(){return si(this)}Equals(t){return Io(this,t)}}function pt(e){return e.generics!=null?e.generics:[]}function si(e){const t=un(e.fullname),n=pt(e).map(si);return zn([t,...n])}function Io(e,t){return e.fullname===""?t.fullname===""&&ko($r(e),$r(t),([n,r],[o,s])=>n===o&&Io(r,s)):e.fullname===t.fullname&&ko(pt(e),pt(t),Io)}function Pt(e,t,n,r){return new ht(e,t,n,void 0,r)}function ye(e){return new ht("Microsoft.FSharp.Core.FSharpOption`1",[e])}function To(e){return new ht("Microsoft.FSharp.Collections.FSharpList`1",[e])}const Nu=new ht("System.Object"),z=new ht("System.String");function $o(e){if(Array.isArray(e))return e[0];if(e instanceof ht){const t=Tr(e);if(t!=null)return $o(t)+"[]";{const n=e.fullname.lastIndexOf(".");return n===-1?e.fullname:e.fullname.substr(n+1)}}else return e.name}function be(e){const t=Tr(e);return t!=null?be(t)+"[]":e.generics==null||e.generics.length===0?e.fullname:e.fullname+"["+e.generics.map(n=>be(n)).join(",")+"]"}function Mu(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 Du(e){return e.generics!=null&&e.generics.length>0}function ii(e){return e.enumCases!=null&&e.enumCases.length>0}function Pu(e){return e.generics==null?e:new ht(e.fullname,e.generics.map(()=>Nu))}function Ru(e){var t;return(t=e.generics)==null?void 0:t[0]}function dn(e){if(ii(e)&&e.enumCases!=null)return e.enumCases.map(t=>t[1]);throw new Error(`${e.fullname} is not an enum type`)}function Ou(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 hn(e,t){const n=parseInt(t,10);return Ou(e,isNaN(n)?t:n)[1]}function Fu(e){if(e.cases!=null)return e.cases();throw new Error(`${e.fullname} is not an F# union type`)}function $r(e){if(e.fields!=null)return e.fields();throw new Error(`${e.fullname} is not an F# record type`)}function Bu(e){if(ai(e)&&e.generics!=null)return e.generics;throw new Error(`${e.fullname} is not a tuple type`)}function Lu(e){return e instanceof ht?e.cases!=null:e instanceof B}function Vu(e){return e instanceof ht?e.fields!=null:e instanceof K}function ai(e){return e.fullname.startsWith("System.Tuple")}function Uu(e){return e.fields==null?[]:e.fields}function Hu(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 ju(e,t){const n=$r(e);if(n.length!==t.length)throw new Error(`Expected an array of length ${n.length} but got ${t.length}`);return e.construct!=null?new e.construct(...t):n.reduce((r,[o,s],i)=>(r[o]=t[i],r),{})}function zu(e,t){return e}const Gu=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Wu=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],qu=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Zu=["January","February","March","April","May","June","July","August","September","October","November","December"];function Ue(e,t,n){let r=0,o=t;for(;o<e.length&&e[o]===n;)o++,r++;return r}function li(e,t){return t>=e.length-1?-1:e.charCodeAt(t+1)}function Ku(e,t){let n=t;const r=e[t];let o="",s=!1;for(;t<e.length;){t++;const i=e[t];if(i===r){s=!0;break}else if(i==="\\")if(t<e.length)t++,o+=e[t];else throw new Error("Invalid string format");else o+=i}if(!s)throw new Error(`Invalid string format could not find matching quote for ${r}`);return[o,t-n+1]}function No(e,t,n){let r=0,o=0,s="";const i=n?Gn(e.getTime(),1):e;for(;r<t.length;){const a=t[r];switch(a){case"d":switch(o=Ue(t,r,"d"),r+=o,o){case 1:s+=di(i);break;case 2:s+=re(di(i),2);break;case 3:s+=Gu[mi(i)];break;case 4:s+=Wu[mi(i)];break}break;case"f":if(o=Ue(t,r,"f"),r+=o,o<=3){const w=10**(3-o);s+=re(Math.floor(Dr(i)/w),o)}else o<=7&&(s+=(""+Dr(i)).padEnd(o,"0"));break;case"F":if(o=Ue(t,r,"F"),r+=o,o<=3){const w=10**(3-o),x=Math.floor(Dr(i)/w);x!=0&&(s+=re(x,o))}else if(o<=7){const w=Dr(i);w!=0&&(s+=re(w,3))}break;case"g":o=Ue(t,r,"g"),r+=o,o<=2&&(s+="A.D.");break;case"h":switch(o=Ue(t,r,"h"),r+=o,o){case 1:s+=Mr(i)%12;break;case 2:s+=re(Mr(i)%12,2);break}break;case"H":switch(o=Ue(t,r,"H"),r+=o,o){case 1:s+=Mr(i);break;case 2:s+=re(Mr(i),2);break}break;case"K":switch(o=Ue(t,r,"K"),r+=o,o){case 1:switch(ci(i)){case 1:s+="Z";break;case 2:s+=pn(i.getTimezoneOffset()*-6e4);break}break}break;case"m":switch(o=Ue(t,r,"m"),r+=o,o){case 1:s+=hi(i);break;case 2:s+=re(hi(i),2);break}break;case"M":switch(o=Ue(t,r,"M"),r+=o,o){case 1:s+=Pr(i);break;case 2:s+=re(Pr(i),2);break;case 3:s+=qu[Pr(i)-1];break;case 4:s+=Zu[Pr(i)-1];break}break;case"s":switch(o=Ue(t,r,"s"),r+=o,o){case 1:s+=pi(i);break;case 2:s+=re(pi(i),2);break}break;case"t":switch(o=Ue(t,r,"t"),r+=o,o){case 1:s+=i.getHours()<12?"A":"P";break;case 2:s+=i.getHours()<12?"AM":"PM";break}break;case"y":switch(o=Ue(t,r,"y"),r+=o,o){case 1:s+=i.getFullYear()%100;break;case 2:s+=re(i.getFullYear()%100,2);break;case 3:s+=re(i.getFullYear(),3);break;case 4:s+=re(i.getFullYear(),4);break;case 5:s+=re(i.getFullYear(),5);break}break;case"z":o=Ue(t,r,"z"),r+=o;let l="";switch(ci(i)){case 1:l="+00:00";break;case 2:l=pn(i.getTimezoneOffset()*-6e4);break;case 0:l=pn(of(i).getTimezoneOffset()*-6e4);break}const c=l[0]==="-"?"-":"+",f=parseInt(l.substring(1,3),10),u=parseInt(l.substring(4,6),10);switch(o){case 1:s+=`${c}${f}`;break;case 2:s+=`${c}${re(f,2)}`;break;default:s+=`${c}${re(f,2)}:${re(u,2)}`;break}break;case":":s+=":",r++;break;case"/":s+="/",r++;break;case"'":case'"':const[h,d]=Ku(t,r);s+=h,r+=d;break;case"%":const g=li(t,r);if(g>=0&&g!==37)r+=2,s+=No(i,String.fromCharCode(g),n);else throw new Error("Invalid format string");break;case"\\":const y=li(t,r);if(y>=0)r+=2,s+=String.fromCharCode(y);else throw new Error("Invalid format string");break;default:r++,s+=a;break}}return s}function ci(e){return e.kind||0}function pn(e){const t=e<0;e=Math.abs(e);const n=~~(e/36e5),r=e%36e5/6e4;return(t?"-":"+")+re(n,2)+":"+re(r,2)}function Nr(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 Ju(e,t){if(t)return e.toISOString();{const n=e.kind==null?!0:e.kind===2;return re(e.getFullYear(),4)+"-"+re(e.getMonth()+1,2)+"-"+re(e.getDate(),2)+"T"+re(e.getHours(),2)+":"+re(e.getMinutes(),2)+":"+re(e.getSeconds(),2)+"."+re(e.getMilliseconds(),3)+(n?pn(e.getTimezoneOffset()*-6e4):"")}}function Yu(e,t){const n=e.toISOString();return n.substring(0,n.length-1)+pn(t)}function Xu(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," ")+pn(e.offset??0);if(t.length===1)switch(t){case"D":case"d":return Nr(n,"first");case"T":case"t":return Nr(n,"second");case"O":case"o":return Yu(n,e.offset??0);default:throw new Error("Unrecognized Date print format")}else return No(n,t,!0)}function Qu(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?Nr(e,"first"):e.toLocaleDateString();case"T":case"t":return n?Nr(e,"second"):e.toLocaleTimeString();case"O":case"o":return Ju(e,n);default:throw new Error("Unrecognized Date print format")}else return No(e,t,n)}function ui(e,t,n){return e.offset!=null?Xu(e,t):Qu(e,t)}function Gn(e,t){const n=new Date(e);return n.kind=(t??0)|0,n}function ef(){return Gn(-621355968e5,1)}function fi(e){function t(){throw new Error(`The string is not a valid Date: ${e}`)}(e==null||e.trim()==="")&&t(),e.length===10&&e[4]==="-"&&e[7]==="-"&&(e+="T00:00:00");let n=new Date(e),r=null;if(isNaN(n.getTime())){const o=/^\s*(\d+[^\w\s:]\d+[^\w\s:]\d+)?\s*(\d+:\d+(?::\d+(?:\.\d+)?)?)?\s*([AaPp][Mm])?\s*(Z|[+-]([01]?\d):?([0-5]?\d)?)?\s*$/.exec(e);if(o!=null){let s,i=0;if(o[2]!=null){const a=o[2].split(":"),l=parseInt(a[0],10);i=l*3600+parseInt(a[1]||"0",10)*60+parseFloat(a[2]||"0"),o[3]!=null&&o[3].toUpperCase()==="PM"&&l<12&&(i+=720)}if(o[4]!=null){if(o[1]!=null)s=new Date(o[1]+" UTC");else{const a=new Date;s=new Date(a.getUTCFullYear()+"/"+(a.getUTCMonth()+1)+"/"+a.getUTCDate())}if(o[4]==="Z")r="Z";else{let a=parseInt(o[5],10)*60+parseInt(o[6]||"0",10);o[4][0]==="-"&&(a*=-1),r=a,i-=a*60}}else if(o[1]!=null)s=new Date(o[1]);else{const a=new Date;s=new Date(a.getFullYear()+"/"+(a.getMonth()+1)+"/"+a.getDate())}n=new Date(s.getTime()+i*1e3),n=new Date(n.getTime()+(n.getTimezoneOffset()-s.getTimezoneOffset())*6e4)}else t();isNaN(n.getTime())&&t()}return[n,r]}function tf(e,t=!1){const[n,r]=fi(e),o=r!=null?t&&r==="Z"?1:2:0;return Gn(n.getTime(),o)}function nf(e,t){try{return t.contents=tf(e),!0}catch{return!1}}function rf(e){return e.kind===1?e:Gn(e.getTime(),1)}function of(e){return e.kind===2?e:Gn(e.getTime(),2)}function di(e){return e.kind===1?e.getUTCDate():e.getDate()}function Mr(e){return e.kind===1?e.getUTCHours():e.getHours()}function Dr(e){return e.kind===1?e.getUTCMilliseconds():e.getMilliseconds()}function hi(e){return e.kind===1?e.getUTCMinutes():e.getMinutes()}function Pr(e){return(e.kind===1?e.getUTCMonth():e.getMonth())+1}function pi(e){return e.kind===1?e.getUTCSeconds():e.getSeconds()}function mi(e){return e.kind===1?e.getUTCDay():e.getDay()}function gi(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 Mo(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function sf(e,t,n=0){return e.lastIndex=n,e.exec(t)}function wi(e,t,n=0){if(t==null)throw new Error("Input cannot ve null");if(!e.global)throw new Error("Non-global RegExp");e.lastIndex=n;const r=[];let o,s=-1;for(;(o=e.exec(t))!=null;)o.index===s?e.lastIndex++:(s=o.index,r.push(o));return r}function af(e,t,n,r,o=0){function s(){let i=arguments[0];if(r){r--;const a=[],l=arguments.length,c=typeof arguments[l-1]!="string";let f=c?l-3:l-2;for(let u=0;u<f;u++)a.push(arguments[u]);a.index=arguments[f++],a.input=arguments[f++],c&&(a.groups=arguments[f]),i=n(a)}return i}if(typeof e=="string"){const i=e;e=gi(t,r??0),t=i,r=void 0}if(typeof n=="function")return r=r??-1,t.substring(0,o)+t.substring(o).replace(e,s);if(n=n.replace(/\$0/g,i=>"$&").replace(/\${([^}]+)}/g,"$<$1>"),r!=null){let i;const a=t.substring(o),l=wi(e,a),c=wi.length>r?(i=l[r-1],a.substring(0,i.index+i[0].length)):a;return t.substring(0,o)+c.replace(e,n)+t.substring(o+c.length)}else return t.replace(e,n)}const Wn=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g,qn=/(?:(^|[^%])%([0+\- ]*)(\d+)?(?:\.(\d+))?(\w))?%P\(\)/g,lf=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function _i(e,t){return $u(e,t)<0}function mt(e){return{input:e,cont:uf(e)}}function yi(e,t){let n=0,r=0,o="";qn.lastIndex=0;let s=qn.exec(e);for(;s;){const i=s.index+(s[1]||"").length;o+=e.substring(r,i).replace(/%%/g,"%");const[,,a,l,c,f]=s;r=qn.lastIndex,o+=vi(t[n++],a,l,c,f),qn.lastIndex=r-1,s=qn.exec(e)}return o+=e.substring(r).replace(/%%/g,"%"),o}function Do(e,t){return typeof t=="string"?e(t):t.cont(e)}function bi(e){return Do(t=>console.log(t),e)}function gt(e){return Do(t=>t,e)}function cf(e){return Do(t=>{throw new Error(t)},e)}function vi(e,t,n,r,o){let s="";if(t=t||"",o=o||"",oi(e))switch(o.toLowerCase()!=="x"&&(_i(e,0)?(e=Eo(e,-1),s="-"):t.indexOf(" ")>=0?s=" ":t.indexOf("+")>=0&&(s="+")),r=r==null?null:parseInt(r,10),o){case"f":case"F":r=r??6,e=Sr(e,r);break;case"g":case"G":e=r!=null?Ar(e,r):Ar(e);break;case"e":case"E":e=r!=null?Er(e,r):Er(e);break;case"x":e=Ir(e);break;case"X":e=Ir(e).toUpperCase();break;default:e=String(e);break}else e instanceof Date?e=ui(e):e=Ie(e);if(n=typeof n=="number"?n:parseInt(n,10),isNaN(n))e=s+e;else{const i=t.indexOf("0")>=0,a=t.indexOf("-")>=0,l=a||!i?" ":"0";l==="0"?(e=Zn(e,n-s.length,l,a),e=s+e):e=Zn(s+e,n,l,a)}return e}function xi(e,t,n,r="",o=-1){return(...s)=>{let i=r;const a=t.slice(),l=n.slice();for(const c of s){const[,,f,u,h,d]=l[0];let g=u;if(o>=0)g=o,o=-1;else if(g==="*"){if(c<0)throw new Error("Non-negative number required");o=c;continue}i+=a[0],i+=vi(c,f,g,h,d),a.splice(0,1),l.splice(0,1)}return l.length===0?(i+=a[0],e(i)):xi(e,a,l,i,o)}}function uf(e){return t=>{Wn.lastIndex=0;const n=[],r=[];let o=0,s=Wn.exec(e);for(;s;){const i=s.index+(s[1]||"").length;n.push(e.substring(o,i).replace(/%%/g,"%")),r.push(s),o=Wn.lastIndex,Wn.lastIndex-=1,s=Wn.exec(e)}return n.length===0?t(e.replace(/%%/g,"%")):(n.push(e.substring(o).replace(/%%/g,"%")),xi(t,n,r))}}function Ci(e,...t){let n;return typeof e=="object"?(n=String(t[0]),t.shift()):n=e,n.replace(lf,(r,o,s,i,a,l)=>{if(o<0||o>=t.length)throw new Error("Index must be greater or equal to zero and less than the arguments' length.");let c=t[o];if(oi(c))switch(a=a==null?null:parseInt(a,10),i){case"f":case"F":a=a??2,c=Sr(c,a);break;case"g":case"G":c=a!=null?Ar(c,a):Ar(c);break;case"e":case"E":c=a!=null?Er(c,a):Er(c);break;case"p":case"P":a=a??2,c=Sr(Eo(c,100),a)+" %";break;case"d":case"D":c=a!=null?Po(String(c),a,"0"):String(c);break;case"x":case"X":c=a!=null?Po(Ir(c),a,"0"):Ir(c),i==="X"&&(c=c.toUpperCase());break;default:if(l){let f="";c=l.replace(/([0#,]+)(\.[0#]+)?/,(u,h,d)=>{_i(c,0)&&(c=Eo(c,-1),f="-"),d=d==null?"":d.substring(1),c=Sr(c,Math.max(d.length,0));let[g,y]=c.split(".");y||(y="");const w=h.replace(/,/g,"").replace(/^#+/,"").length;g=Po(g,w,"0");const x=d.replace(/#+$/,"").length;if(x>y.length?y=df(y,x,"0"):x<y.length&&(y=y.substring(0,x)+y.substring(x).replace(/0+$/,"")),h.indexOf(",")>0){const v=g.length%3,k=Math.floor(g.length/3);let O=v>0?g.substr(0,v)+(k>0?",":""):"";for(let U=0;U<k;U++)O+=g.substr(v+U*3,3)+(U<k-1?",":"");g=O}return y.length>0?g+"."+y:g}),c=f+c}}else c instanceof Date?c=ui(c,l||i):c=Ie(c);return s=parseInt((s||" ").substring(1),10),isNaN(s)||(c=Zn(String(c),Math.abs(s)," ",s<0)),c})}function ff(e,t){const n=e.lastIndexOf(t);return n>=0&&n===e.length-t.length}function ki(e){return typeof e!="string"||e.length===0}function Si(e){return typeof e!="string"||/^\s*$/.test(e)}function W(e,t){return Array.isArray(t)?t.join(e):Array.from(t).join(e)}function Zn(e,t,n,r){n=n||" ",t=t-e.length;for(let o=0;o<t;o++)e=r?e+n:n+e;return e}function Po(e,t,n){return Zn(e,t,n)}function df(e,t,n){return Zn(e,t,n,!0)}function Ro(e,t,n,r){if(n=typeof n=="number"?n:void 0,r=typeof r=="number"?r:0,n&&n<0)throw new Error("Count cannot be less than zero");if(n===0)return[];const o=(r&1)===1,s=(r&2)===2;t=t||[],t=t.filter(f=>f).map(Mo),t=t.length>0?t:["\\s"];const i=[],a=new RegExp(t.join("|"),"g");let l=!0,c=0;do{const f=a.exec(e);if(f===null){const u=s?e.substring(c).trim():e.substring(c);(!o||u.length>0)&&i.push(u),l=!1}else{const u=s?e.substring(c,f.index).trim():e.substring(c,f.index);(!o||u.length>0)&&(n!=null&&i.length+1===n?(i.push(s?e.substring(c).trim():e.substring(c)),l=!1):i.push(u)),c=a.lastIndex}}while(l);return i}function hf(e,...t){if(t.length===0)return e.trim();const n="["+Mo(t.join(""))+"]+";return e.replace(new RegExp("^"+n),"").replace(new RegExp(n+"$"),"")}function pf(e,...t){return t.length===0?e.trimEnd():e.replace(new RegExp("["+Mo(t.join(""))+"]+$"),"")}function Ai(e,t,n){if(t+(n||0)>e.length)throw new Error("Invalid startIndex and/or length");return n!=null?e.substr(t,n):e.substr(t)}class jt{constructor(t){this.value=t}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return dt(this.value)}Equals(t){return t==null?!1:he(this.value,t instanceof jt?t.value:t)}CompareTo(t){return t==null?1:qe(this.value,t instanceof jt?t.value:t)}}function S(e){if(e==null)throw new Error("Option has no value");return e instanceof jt?e.value:e}function Oo(e){return e instanceof jt?e.value:e}function ke(e){return e==null||e instanceof jt?new jt(e):e}function Fo(e){return e==null?[]:[S(e)]}function Se(e,t){return e!=null?S(e):t}function mf(e,t){return e!=null?S(e):t()}function Xe(e,t){return t!=null?ke(e(S(t))):void 0}const Ei="Collection was empty.";function Ii(e,t){return new Array(t)}function Ti(e,t){return e>t?e:t}function Bo(e,t,n,r){const o=t|0;return e.fill(r,o,o+n)}function Kn(e,t,n){const r=t.length|0,o=Ii(n,r);for(let s=0;s<=r-1;s++)wt(o,s,e(ce(s,t)));return o}function gf(e,t){const n=Ii(t,1);return wt(n,0,e),n}function wf(e){return e.slice().reverse()}function _f(e,t){return t.find(e)}function yf(e,t,n){const r=[];for(let o=0;o<=t.length-1;o++){const s=e(ce(o,t));if(s!=null){const i=S(s);r.push(i)}}return he(n,Q())?r:Kn(o=>o,r,n)}function Rr(e,t,n){const r=e;return n.reduce(r,t)}function bf(e,t){if(e<1)throw new Error("The input must be positive.\\nParameter name: size");if(t.length===0)return[[]];{const n=[];for(let r=0;r<=~~Math.ceil(t.length/e)-1;r++){let o;const s=r*e|0;o=t.slice(s,s+e),n.push(o)}return n}}function Lo(e,t,n){return t==null}function ce(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 wt(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 $i(e,t,n){return t.reduceRight((r,o)=>e(o,r),n)}class Te extends K{constructor(t,n){super(),this.head=t,this.tail=n}toString(){return"["+W("; ",this)+"]"}Equals(t){const n=this;return n===t?!0:((o,s)=>{e:for(;;){const i=o,a=s,l=i.tail,c=a.tail;if(l!=null)if(c!=null){const f=S(l),u=S(c);if(he(i.head,a.head)){o=f,s=u;continue e}else return!1}else return!1;else return c==null}})(n,t)}GetHashCode(){return((r,o,s)=>{e:for(;;){const i=r,a=o,l=s,c=l.tail;if(c!=null){const f=S(c);if(i>18)return a|0;r=i+1,o=(a<<1)+dt(l.head)+631*i,s=f;continue e}else return a|0}})(0,0,this)|0}toJSON(){const t=this;return Array.from(t)}CompareTo(t){return((o,s)=>{e:for(;;){const i=o,a=s,l=i.tail,c=a.tail;if(l!=null)if(c!=null){const f=S(l),u=S(c),h=qe(i.head,a.head)|0;if(h===0){o=f,s=u;continue e}else return h|0}else return 1;else return c!=null?-1:0}})(this,t)|0}GetEnumerator(){return xf(this)}[Symbol.iterator](){return jn(ie(this))}"System.Collections.IEnumerable.GetEnumerator"(){return ie(this)}}class vf{constructor(t){this.xs=t,this.it=this.xs,this.current=Q()}"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=S(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=Q()}Dispose(){}}function xf(e){return new vf(e)}function fe(){return new Te(Q(),void 0)}function Jn(e,t){return new Te(e,t)}function _t(e){return e.tail==null}function Ni(e){return((n,r)=>{e:for(;;){const o=n,i=r.tail;if(i!=null){n=o+1,r=S(i);continue e}else return o|0}})(0,e)|0}function Rt(e){if(e.tail!=null)return e.head;throw new Error(Ei+"\\nParameter name: list")}function ve(e){const t=e.tail;if(t!=null)return S(t);throw new Error(Ei+"\\nParameter name: list")}function ue(){return fe()}function He(e,t){return Jn(e,t)}function j(e){return Jn(e,fe())}function F(e){return _t(e)}function mn(e){return Ni(e)}function M(e){return Rt(e)}function _(e){return ve(e)}function zt(e){const t=Ni(e)|0,n=Bo(new Array(t),0,t,null);return((o,s)=>{e:for(;;){const i=o,a=s;if(!_t(a)){wt(n,i,Rt(a)),o=i+1,s=ve(a);continue e}break}})(0,e),n}function yt(e,t,n){let r=t,o=n;for(;!_t(o);)r=e(r,M(o)),o=ve(o);return r}function Or(e){return yt((t,n)=>Jn(n,t),fe(),e)}function Cf(e,t,n){return $i(e,zt(t),n)}function kf(e,t,n){return((o,s,i)=>{e:for(;;){const a=o,l=s,c=i;if(_t(c))return l;o=a+1,s=e(a,l,Rt(c)),i=ve(c);continue e}})(0,t,n)}function Fr(e,t){yt((n,r)=>{e(r)},void 0,t)}function ae(e,t){let n=t;for(let r=e.length-1;r>=0;r--)n=Jn(ce(r,e),n);return n}function b(e){return ae(e,fe())}function Sf(e){let t,n;if(st(e))return b(e);if(e instanceof Te)return e;{const r=fe();let o=r;const s=ie(e);try{for(;s["System.Collections.IEnumerator.MoveNext"]();){const l=s["System.Collections.Generic.IEnumerator`1.get_Current"]();o=(t=o,n=new Te(l,void 0),t.tail=n,n)}}finally{Z(s)}const i=o,a=fe();return i.tail=a,ve(r)}}function $e(e,t){return yt((n,r)=>Jn(r,n),t,Or(e))}function Af(e,t){let n,r;const o=fe();let s=o,i=t;for(;!_t(i);){let c=e(Rt(i));for(;!_t(c);)s=(n=s,r=new Te(Rt(c),void 0),n.tail=r,r),c=ve(c);i=ve(i)}const a=s,l=fe();return a.tail=l,ve(o)}function Ef(e,t){const n=fe(),r=kf((s,i,a)=>{const l=new Te(e(s,a),void 0);return i.tail=l,l},n,t),o=fe();return r.tail=o,ve(n)}function Yn(e,t){const n=fe(),r=yt((s,i)=>{const a=new Te(e(i),void 0);return s.tail=a,a},n,t),o=fe();return r.tail=o,ve(n)}function If(e,t){return(r=>{e:for(;;){const o=r;if(_t(o))return;{const s=e(Rt(o));if(s==null){r=ve(o);continue e}else return s}}})(t)}function Tf(e,t){return If(n=>e(n)?ke(n):void 0,t)}function $f(e,t){return((r,o)=>{e:for(;;){const s=r,i=o;if(_t(i))return;if(e(Rt(i)))return s;r=s+1,o=ve(i);continue e}})(0,t)}function Nf(e,t){return((r,o)=>{e:for(;;){const s=r,i=o;if(_t(i))return;if(s===e)return ke(Rt(i));r=s+1,o=ve(i);continue e}})(0,t)}function Mi(e,t){const n=fe(),r=yt((s,i)=>{if(e(i)){const a=new Te(i,void 0);return s.tail=a,a}else return s},n,t),o=fe();return r.tail=o,ve(n)}function Mf(e,t){const n=fe(),r=fe(),o=n,s=yt((l,c)=>{let f,u;const h=l[0],d=l[1];return e(c)?[(f=new Te(c,void 0),h.tail=f,f),d]:[h,(u=new Te(c,void 0),d.tail=u,u)]},[o,r],t),i=fe();s[0].tail=i;const a=fe();return s[1].tail=a,[ve(o),ve(r)]}function Di(e,t){const n=fe(),r=yt((s,i)=>{const a=e(i);if(a==null)return s;{const l=new Te(S(a),void 0);return s.tail=l,l}},n,t),o=fe();return r.tail=o,ve(n)}function Pi(e,t,n){return $f(r=>n.Equals(e,r),t)!=null}function Df(e,t){const n=zt(t);return n.sort(e),b(n)}function Pf(e,t,n){return Df((r,o)=>n.Compare(e(r),e(o)),t)}function Rf(e,t){return b(Kn(b,bf(e,zt(t))))}function Of(e){return new m(0,[e])}function Ri(e){return new m(1,[e])}class m extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Ok","Error"]}}function bt(e,t){return t.tag===0?Of(e(t.fields[0])):Ri(t.fields[0])}function Ff(e,t){return t.tag===0?e(t.fields[0]):Ri(t.fields[0])}class Bf extends B{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["Name"]}}function Oi(e){return new Bf(e)}function Vo(e){return e.fields[0]}class Lf extends B{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["Website"]}}class Vf extends B{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["FirstName"]}}class Uf extends B{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["LastName"]}}class Hf extends B{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["Email"]}}class jf extends B{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["MobilePhone"]}}let zf=class extends K{constructor(t,n,r,o){super(),this.FirstName=t,this.LastName=n,this.Email=r,this.MobilePhone=o}};class Gf extends B{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["Notes"]}}class Wf extends B{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["PartnerId"]}}function vt(e){return e.fields[0]}function pe(e){return new Wf(e)}function Fi(e){return vt(e)}class qf extends B{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["AccountId"]}}function it(e){return e.fields[0]}function xt(e){return new qf(e)}function Bi(e){return it(e)}function Zf(e){throw new Error(e)}const Kf="Enumeration already finished.",Jf="Enumeration has not started. Call MoveNext.",Li="The input sequence has an insufficient number of elements.",Yf="Reset is not supported on this enumerator.";function Xf(){throw new Error(Yf)}function Uo(){throw new Error(Jf)}function Ho(){throw new Error(Kf)}class Qf{constructor(t){this.f=t}toString(){const t=this;let n=0,r="seq [";const o=ie(t);try{for(;n<4&&o["System.Collections.IEnumerator.MoveNext"]();)n>0&&(r=r+"; "),r=r+Ie(o["System.Collections.Generic.IEnumerator`1.get_Current"]()),n=n+1|0;return n===4&&(r=r+"; ..."),r+"]"}finally{Z(o)}}GetEnumerator(){return this.f()}[Symbol.iterator](){return jn(ie(this))}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}function ed(e){return new Qf(e)}class td{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"(){Xf()}Dispose(){this.dispose()}}function Br(e,t,n){return new td(e,t,n)}function nd(e){let t,n,r=!1,o=!1,s;const i=()=>{if(o=!0,n!=null){const a=S(n);try{Z(a)}finally{n=void 0}}if(t!=null){const a=S(t);try{Z(a)}finally{t=void 0}}};return Br(()=>(r?o&&Ho():Uo(),s!=null?S(s):Ho()),()=>{let a;if(r||(r=!0),o)return!1;{let l;for(;l==null;){const c=t,f=n;if(c!=null)if(f!=null){const u=S(f);if(u["System.Collections.IEnumerator.MoveNext"]())s=ke(u["System.Collections.Generic.IEnumerator`1.get_Current"]()),l=!0;else try{Z(u)}finally{n=void 0}}else{const u=S(c);u["System.Collections.IEnumerator.MoveNext"]()?n=(a=u["System.Collections.Generic.IEnumerator`1.get_Current"](),ie(a)):(i(),l=!1)}else t=ie(e)}return S(l)}},()=>{o||i()})}function rd(e,t){return Br(()=>t["System.Collections.Generic.IEnumerator`1.get_Current"](),()=>t["System.Collections.IEnumerator.MoveNext"](),()=>{try{Z(t)}finally{}})}function Vi(e,t,n){let r=!1,o,s=ke(e());const i=()=>{if(s!=null){const l=S(s);try{n(l)}finally{s=void 0}}},a=()=>{try{i()}finally{o=void 0}};return Br(()=>(r||Uo(),o!=null?S(o):Ho()),()=>{if(r||(r=!0),s!=null){const l=S(s);let c;try{c=t(l)}catch(f){throw a(),f}return c!=null?(o=c,!0):(a(),!1)}else return!1},i)}function od(e,t){let n,r=t;return Br(()=>{if(n!=null){const o=S(n)[0];return S(n)[1],o}else return Uo()},()=>(n=e(r),n!=null?(S(n)[0],r=S(n)[1],!0):!1),()=>{})}function sd(e,t){t==null&&Zf(e)}function gn(e){return ed(e)}function Ct(e){return sd("source",e),ie(e)}function T(e){return gn(()=>ie(e()))}function jo(e){return gn(()=>nd(e))}function id(e,t){return gn(()=>od(e,t))}function Ze(){return T(()=>new Array(0))}function $(e){return T(()=>gf(e))}function Dw(e){return e}function zo(e){return e instanceof Te?zt(e):Array.from(e)}function me(e){return st(e)?b(e):e instanceof Te?e:Sf(e)}function Ui(e,t,n){return gn(()=>Vi(e,t,n))}function Hi(e,t,n){return gn(()=>{let r=-1;return Vi(e,o=>(r=r+1|0,t(r,o)),n)})}function P(e,t){return jo([e,t])}function wn(e,t){return Ui(()=>Ct(t),n=>{let r;for(;r==null&&n["System.Collections.IEnumerator.MoveNext"]();)r=e(n["System.Collections.Generic.IEnumerator`1.get_Current"]());return r},n=>{Z(n)})}function ad(e,t,n){const r=Ct(t);try{const o=Ct(n);try{let s=0,i=r["System.Collections.IEnumerator.MoveNext"](),a=o["System.Collections.IEnumerator.MoveNext"]();for(;s===0&&i&&a;)s=e(r["System.Collections.Generic.IEnumerator`1.get_Current"](),o["System.Collections.Generic.IEnumerator`1.get_Current"]())|0,s===0&&(i=r["System.Collections.IEnumerator.MoveNext"](),a=o["System.Collections.IEnumerator.MoveNext"]());return(s!==0?s:i?1:a?-1:0)|0}finally{Z(o)}}finally{Z(r)}}function _n(e,t,n){const r=Ct(t);try{let o=!1;for(;!o&&r["System.Collections.IEnumerator.MoveNext"]();)o=n.Equals(e,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return o}finally{Z(r)}}function Go(e,t,n){const r=Ct(n);try{let o=t;for(;r["System.Collections.IEnumerator.MoveNext"]();)o=e(o,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return o}finally{Z(r)}}function yn(e,t){Go((n,r)=>{e(r)},void 0,t)}function ld(e,t){Go((n,r)=>(e(n,r),n+1|0),0,t)}function de(e,t){return Ui(()=>Ct(t),n=>n["System.Collections.IEnumerator.MoveNext"]()?ke(e(n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{Z(n)})}function ji(e,t){return Hi(()=>Ct(t),(n,r)=>r["System.Collections.IEnumerator.MoveNext"]()?ke(e(n,r["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{Z(n)})}function cd(e){return T(()=>wf(zo(e)))}function ud(e,t){return gn(()=>{const n=Ct(t);try{for(let r=1;r<=e;r++)if(!n["System.Collections.IEnumerator.MoveNext"]())throw new Error(Li+"\\nParameter name: source");return rd(()=>{},n)}catch(r){throw Z(n),r}})}function fd(e,t){return Hi(()=>Ct(t),(n,r)=>{if(n<e){if(r["System.Collections.IEnumerator.MoveNext"]())return ke(r["System.Collections.Generic.IEnumerator`1.get_Current"]());throw new Error(Li+"\\nParameter name: source")}else return},n=>{Z(n)})}function dd(e,t){return T(()=>jo(de(e,t)))}const Gt={None:0,LowerFirst:1,SnakeCase:2,SnakeCaseAllCaps:3,KebabCase:4};function Wo(e,t){return e.replace(/[a-z]?[A-Z]/g,n=>n.length===1?n.toLowerCase():n.charAt(0)+t+n.charAt(1).toLowerCase())}function hd(e,t){switch(t){case Gt.LowerFirst:return e.charAt(0).toLowerCase()+e.slice(1);case Gt.SnakeCase:return Wo(e,"_");case Gt.SnakeCaseAllCaps:return Wo(e,"_").toUpperCase();case Gt.KebabCase:return Wo(e,"-");case Gt.None:default:return e}}function Wt(e,t=Gt.None){const n={},r=t;function o(i){throw new Error("Cannot infer key and value of "+String(i))}function s(i,a,l){i=hd(i,a),n[i]=l}for(let i of e){let a=Gt.None;if(i==null&&o(i),i instanceof B){const l=i.cases()[i.tag];i=i.fields.length===0?l:[l].concat(i.fields),a=r}if(Array.isArray(i))switch(i.length){case 0:o(i);break;case 1:s(i[0],a,!0);break;case 2:const l=i[1];s(i[0],a,l);break;default:s(i[0],a,i.slice(1))}else typeof i=="string"?s(i,a,!0):o(i)}return n}function zi(e,t,n){return e.has(t)?(n.contents=e.get(t),!0):!1}function Xn(e,t){if(e.has(t))return e.get(t);throw new Error(`The given key '${t}' was not present in the dictionary.`)}class pd{constructor(t,n){const r=new Re(Q());this.comparer=n,r.contents=this,this.hashMap=new Map([]),this["init@9"]=1;const o=ie(t);try{for(;o["System.Collections.IEnumerator.MoveNext"]();){const s=o["System.Collections.Generic.IEnumerator`1.get_Current"]();qo(r.contents,s[0],s[1])}}finally{Z(o)}}get[Symbol.toStringTag](){return"Dictionary"}toJSON(){const t=this;return Array.from(t)}"System.Collections.IEnumerable.GetEnumerator"(){return ie(this)}GetEnumerator(){return ie(jo(this.hashMap.values()))}[Symbol.iterator](){return jn(ie(this))}"System.Collections.Generic.ICollection`1.Add2B595"(t){qo(this,t[0],t[1])}"System.Collections.Generic.ICollection`1.Clear"(){Gi(this)}"System.Collections.Generic.ICollection`1.Contains2B595"(t){const r=Lr(this,t[0]);let o;switch(r!=null&&he(S(r)[1],t[1])?(o=0,S(r)):o=1,o){case 0:return!0;default:return!1}}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){ld((o,s)=>{wt(t,n+o,s)},this)}"System.Collections.Generic.ICollection`1.get_Count"(){return Wi(this)|0}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!1}"System.Collections.Generic.ICollection`1.Remove2B595"(t){const n=this,r=Lr(n,t[0]);return r!=null?(he(S(r)[1],t[1])&&Zo(n,t[0]),!0):!1}"System.Collections.Generic.IDictionary`2.Add5BDDA1"(t,n){qo(this,t,n)}"System.Collections.Generic.IDictionary`2.ContainsKey2B595"(t){return Ki(this,t)}"System.Collections.Generic.IDictionary`2.get_Item2B595"(t){return qi(this,t)}"System.Collections.Generic.IDictionary`2.set_Item5BDDA1"(t,n){Zi(this,t,n)}"System.Collections.Generic.IDictionary`2.get_Keys"(){const t=this;return zo(T(()=>de(n=>n[0],t)))}"System.Collections.Generic.IDictionary`2.Remove2B595"(t){return Zo(this,t)}"System.Collections.Generic.IDictionary`2.TryGetValue6DC89625"(t,n){const o=Lr(this,t);if(o!=null){const s=S(o);return n.contents=s[1],!0}else return!1}"System.Collections.Generic.IDictionary`2.get_Values"(){const t=this;return zo(T(()=>de(n=>n[1],t)))}get size(){return Wi(this)|0}clear(){Gi(this)}delete(t){return Zo(this,t)}entries(){return de(n=>[n[0],n[1]],this)}get(t){return qi(this,t)}has(t){return Ki(this,t)}keys(){return de(n=>n[0],this)}set(t,n){const r=this;return Zi(r,t,n),r}values(){return de(n=>n[1],this)}forEach(t,n){const r=this;yn(o=>{t(o[1],o[0],r)},r)}}function Qn(e,t){const n=e.comparer.GetHashCode(t)|0;let r,o=Q();return r=[zi(e.hashMap,n,new Re(()=>o,s=>{o=s})),o],r[0]?[!0,n,r[1].findIndex(s=>e.comparer.Equals(t,s[0]))]:[!1,n,-1]}function Lr(e,t){const n=Qn(e,t);let r;switch(n[0]&&n[2]>-1?r=0:r=1,r){case 0:return Xn(e.hashMap,n[1])[n[2]];default:return}}function Gi(e){e.hashMap.clear()}function Wi(e){let t=0,n=ie(e.hashMap.values());try{for(;n["System.Collections.IEnumerator.MoveNext"]();){const r=n["System.Collections.Generic.IEnumerator`1.get_Current"]();t=t+r.length|0}}finally{Z(n)}return t|0}function qi(e,t){const n=Lr(e,t);if(n!=null)return S(n)[1];throw new Error("The item was not found in collection")}function Zi(e,t,n){const r=Qn(e,t);r[0]?r[2]>-1?Xn(e.hashMap,r[1])[r[2]]=[t,n]:Xn(e.hashMap,r[1]).push([t,n]):e.hashMap.set(r[1],[[t,n]])}function qo(e,t,n){const r=Qn(e,t);if(r[0]){if(r[2]>-1)throw new Error(Ci("An item with the same key has already been added. Key: {0}",t));Xn(e.hashMap,r[1]).push([t,n])}else e.hashMap.set(r[1],[[t,n]])}function Ki(e,t){const n=Qn(e,t);let r;switch(n[0]&&n[2]>-1?r=0:r=1,r){case 0:return!0;default:return!1}}function Zo(e,t){const n=Qn(e,t);let r;switch(n[0]&&n[2]>-1?r=0:r=1,r){case 0:return Xn(e.hashMap,n[1]).splice(n[2],1),!0;default:return!1}}function md(e){return new Ji(0,[e])}function gd(e){return new Ji(1,[e])}class Ji extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Choice1Of2","Choice2Of2"]}}function wd(e){return md(e)}function _d(e){return gd(e)}const yd=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,Yi=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,bd=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function vd(e){function t(r){return r.replace(Yi,"$1-$2-$3-$4-$5")}const n=e.trim().toLowerCase();if(yd.test(n))return hf(n,"{","}","(",")");if(Yi.test(n))return t(n);if(bd.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 xd(e,t){try{return t.contents=vd(e),!0}catch{return!1}}class Xi extends B{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["StreamId"]}}function at(e){return e.fields[0]}var Ko;(function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"})(Ko||(Ko={}));function Cd(e,t){const[,n,r,o]=e;return{sign:n||"",prefix:r||"",digits:o,radix:t}}function Qi(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 kd(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 Sd(e,t){if(t&Ko.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 Ad(e,t,n){const o=/^\s*([\+\-])?(0[xXoObB])?([0-9a-fA-F]+)\s*$/.exec(e.replace(/_/g,""));if(o!=null){const[,,s,i]=o;if(n=n||Sd(s,t),!kd(n).test(i))return Cd(o,n)}return null}function Ed(e,t,n,r,o){const s=Ad(e,t,o);if(s!=null){let i=Number.parseInt(s.sign+s.digits,s.radix);if(!Number.isNaN(i)){const[a,l]=Qi(!0,r);!n&&s.radix!==10&&i>=a&&i<=l&&(i=i<<32-r>>32-r);const[c,f]=Qi(n,r);if(i>=c&&i<=f)return i}}throw new Error(`The input string ${e} was not in a correct format.`)}function bn(e,t,n,r,o){try{return o.contents=Ed(e,t,n,r),!0}catch{return!1}}function Id(e,t){const n=sf(gi(e),t);if(n!=null)return _(me(T(()=>de(r=>r||"",n))))}function Td(e){let t;const n=Id(".*?@(.*)",e);switch(n!=null?F(n)?t=1:F(_(n))?t=0:t=1:t=1,t){case 0:return e;default:return}}function vn(e,t){return ki(t)?new m(1,[gt(mt("%s cannot be null or empty"))(e)]):new m(0,[t])}function $d(e){const t=Td(e);if(t!=null){const n=t;return new m(0,[n])}else return new m(1,["Email is not in the correct format"])}function Nd(e){const t=vn("Name",e);return t.tag===1?new m(1,[t.fields[0]]):new m(0,[Oi(t.fields[0])])}function Vr(e){return Vo(e)}function Md(e){const t=vn("Website",e);return t.tag===1?new m(1,[t.fields[0]]):new m(0,[new Lf(t.fields[0])])}function ea(e){return e.fields[0]}function Dd(e){const t=vn("FirstName",e);return t.tag===1?new m(1,[t.fields[0]]):new m(0,[new Vf(t.fields[0])])}function ta(e){return e.fields[0]}function Pd(e){const t=vn("LastName",e);return t.tag===1?new m(1,[t.fields[0]]):new m(0,[new Uf(t.fields[0])])}function na(e){return e.fields[0]}function Rd(e){let t;const n=vn("Email",e);return t=n.tag===1?new m(1,[n.fields[0]]):$d(n.fields[0]),t.tag===1?new m(1,[t.fields[0]]):new m(0,[new Hf(t.fields[0])])}function Od(e){const t=vn("MobilePhone",e);return t.tag===1?new m(1,[t.fields[0]]):new m(0,[new jf(t.fields[0])])}function ra(e){return e.fields[0]}class Fd extends K{constructor(t,n,r,o){super(),this.FirstName=t,this.LastName=n,this.Email=r,this.MobilePhone=o}}function oa(){return Pt("AccountRegistry.Shared.Primitives.ContactDetails",[],Fd,()=>[["FirstName",z],["LastName",z],["Email",z],["MobilePhone",z]])}function Bd(e){const t=Dd(e.FirstName);if(t.tag===1)return new m(1,[t.fields[0]]);{const n=Pd(e.LastName);if(n.tag===1)return new m(1,[n.fields[0]]);{const r=Rd(e.Email);if(r.tag===1)return new m(1,[r.fields[0]]);{const o=Od(e.MobilePhone);return o.tag===1?new m(1,[o.fields[0]]):new m(0,[new zf(t.fields[0],n.fields[0],r.fields[0],o.fields[0])])}}}}function Ld(e){const t=e;if(t!=null)return new Gf(t)}function Vd(e){if(e!=null)return e.fields[0]}function te(e){return vt(e)}function Oe(e){return it(e)}class Ud extends K{constructor(t,n,r,o,s,i,a,l,c){super(),this.BusinessName=t,this.BusinessNumber=n,this.Address1=r,this.Address2=o,this.City=s,this.Postcode=i,this.State=a,this.Phone=l,this.CountryCode=c}}function Hd(){return Pt("AccountRegistry.Shared.Primitives.LegalEntity",[],Ud,()=>[["BusinessName",z],["BusinessNumber",z],["Address1",z],["Address2",ye(z)],["City",z],["Postcode",z],["State",ye(z)],["Phone",z],["CountryCode",ye(z)]])}let jd=class extends K{constructor(t,n,r,o,s){super(),this.StreamId=t,this.Name=n,this.Website=r,this.ContactDetails=o,this.Notes=s}};function zd(){return Pt("AccountRegistry.Shared.AdminApi.Partner",[],jd,()=>[["StreamId",z],["Name",z],["Website",z],["ContactDetails",ye(oa())],["Notes",ye(z)]])}class Gd extends K{constructor(t,n,r,o,s,i,a,l,c){super(),this.StreamId=t,this.PartnerId=n,this.Name=r,this.Website=o,this.ContactDetails=s,this.Notes=i,this.LegalEntity=a,this.ExternalId=l,this.ChannelId=c}}function Wd(){return Pt("AccountRegistry.Shared.AdminApi.Account",[],Gd,()=>[["StreamId",z],["PartnerId",z],["Name",z],["Website",z],["ContactDetails",ye(oa())],["Notes",ye(z)],["LegalEntity",ye(Hd())],["ExternalId",ye(z)],["ChannelId",ye(z)]])}class qd extends K{constructor(t,n,r,o,s,i,a,l,c){super(),this.AccountId=t,this.Name=n,this.Contact=r,this.ContactMobilePhone=o,this.Website=s,this.BusinessName=i,this.BusinessNumber=a,this.ExternalId=l,this.ChannelId=c}}function Zd(){return Pt("AccountRegistry.Shared.AdminApi.AccountLookupItem",[],qd,()=>[["AccountId",z],["Name",z],["Contact",ye(z)],["ContactMobilePhone",ye(z)],["Website",z],["BusinessName",ye(z)],["BusinessNumber",ye(z)],["ExternalId",ye(z)],["ChannelId",ye(z)]])}class sa extends K{constructor(t,n){super(),this.Accounts=t,this.Token=n}}function Kd(){return Pt("AccountRegistry.Shared.AdminApi.AccountLookup",[],sa,()=>[["Accounts",To(Zd())],["Token",ye(z)]])}class Jd extends K{constructor(t,n){super(),this.PartnerId=t,this.AccountId=n}}function Yd(){return Pt("AccountRegistry.Shared.AdminApi.FindAccountResponse",[],Jd,()=>[["PartnerId",z],["AccountId",z]])}var er,G,ia,qt,aa,la,Jo,Yo,Xo,Qo,ca,tr={},ua=[],Xd=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Ur=Array.isArray;function kt(e,t){for(var n in t)e[n]=t[n];return e}function fa(e){var t=e.parentNode;t&&t.removeChild(e)}function p(e,t,n){var r,o,s,i={};for(s in t)s=="key"?r=t[s]:s=="ref"?o=t[s]:i[s]=t[s];if(arguments.length>2&&(i.children=arguments.length>3?er.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(s in e.defaultProps)i[s]===void 0&&(i[s]=e.defaultProps[s]);return nr(e,i,r,o,null)}function nr(e,t,n,r,o){var s={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:o??++ia,__i:-1,__u:0};return o==null&&G.vnode!=null&&G.vnode(s),s}function da(){return{current:null}}function Ae(e){return e.children}function Qe(e,t){this.props=e,this.context=t}function Zt(e,t){if(t==null)return e.__?Zt(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"?Zt(e):null}function ha(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 ha(e)}}function es(e){(!e.__d&&(e.__d=!0)&&qt.push(e)&&!Hr.__r++||aa!==G.debounceRendering)&&((aa=G.debounceRendering)||la)(Hr)}function Hr(){var e,t,n,r,o,s,i,a;for(qt.sort(Jo);e=qt.shift();)e.__d&&(t=qt.length,r=void 0,s=(o=(n=e).__v).__e,i=[],a=[],n.__P&&((r=kt({},o)).__v=o.__v+1,G.vnode&&G.vnode(r),ts(n.__P,r,o,n.__n,n.__P.namespaceURI,32&o.__u?[s]:null,i,s??Zt(o),!!(32&o.__u),a),r.__v=o.__v,r.__.__k[r.__i]=r,_a(i,r,a),r.__e!=s&&ha(r)),qt.length>t&&qt.sort(Jo));Hr.__r=0}function pa(e,t,n,r,o,s,i,a,l,c,f){var u,h,d,g,y,w=r&&r.__k||ua,x=t.length;for(n.__d=l,Qd(n,t,w),l=n.__d,u=0;u<x;u++)(d=n.__k[u])!=null&&typeof d!="boolean"&&typeof d!="function"&&(h=d.__i===-1?tr:w[d.__i]||tr,d.__i=u,ts(e,d,h,o,s,i,a,l,c,f),g=d.__e,d.ref&&h.ref!=d.ref&&(h.ref&&ns(h.ref,null,d),f.push(d.ref,d.__c||g,d)),y==null&&g!=null&&(y=g),65536&d.__u||h.__k===d.__k?(l&&!l.isConnected&&(l=Zt(h)),l=ma(d,l,e)):typeof d.type=="function"&&d.__d!==void 0?l=d.__d:g&&(l=g.nextSibling),d.__d=void 0,d.__u&=-196609);n.__d=l,n.__e=y}function Qd(e,t,n){var r,o,s,i,a,l=t.length,c=n.length,f=c,u=0;for(e.__k=[],r=0;r<l;r++)i=r+u,(o=e.__k[r]=(o=t[r])==null||typeof o=="boolean"||typeof o=="function"?null:typeof o=="string"||typeof o=="number"||typeof o=="bigint"||o.constructor==String?nr(null,o,null,null,null):Ur(o)?nr(Ae,{children:o},null,null,null):o.constructor===void 0&&o.__b>0?nr(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)!=null?(o.__=e,o.__b=e.__b+1,a=eh(o,n,i,f),o.__i=a,s=null,a!==-1&&(f--,(s=n[a])&&(s.__u|=131072)),s==null||s.__v===null?(a==-1&&u--,typeof o.type!="function"&&(o.__u|=65536)):a!==i&&(a===i+1?u++:a>i?f>l-i?u+=a-i:u--:a<i?a==i-1&&(u=a-i):u=0,a!==r+u&&(o.__u|=65536))):(s=n[i])&&s.key==null&&s.__e&&!(131072&s.__u)&&(s.__e==e.__d&&(e.__d=Zt(s)),rs(s,s,!1),n[i]=null,f--);if(f)for(r=0;r<c;r++)(s=n[r])!=null&&!(131072&s.__u)&&(s.__e==e.__d&&(e.__d=Zt(s)),rs(s,s))}function ma(e,t,n){var r,o;if(typeof e.type=="function"){for(r=e.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=e,t=ma(r[o],t,n));return t}e.__e!=t&&(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"||(Ur(e)?e.some(function(n){St(n,t)}):t.push(e)),t}function eh(e,t,n,r){var o=e.key,s=e.type,i=n-1,a=n+1,l=t[n];if(l===null||l&&o==l.key&&s===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)&&o==l.key&&s===l.type)return i;i--}if(a<t.length){if((l=t[a])&&!(131072&l.__u)&&o==l.key&&s===l.type)return a;a++}}return-1}function ga(e,t,n){t[0]==="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||Xd.test(t)?n:n+"px"}function jr(e,t,n,r,o){var s;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||ga(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||ga(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")s=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+s]=n,n?r?n.u=r.u:(n.u=Yo,e.addEventListener(t,s?Qo:Xo,s)):e.removeEventListener(t,s?Qo:Xo,s);else{if(o=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!=="-"?e.removeAttribute(t):e.setAttribute(t,n))}}function wa(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=Yo++;else if(t.t<n.u)return;return n(G.event?G.event(t):t)}}}function ts(e,t,n,r,o,s,i,a,l,c){var f,u,h,d,g,y,w,x,v,k,O,U,oe,we,Ve,se=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(l=!!(32&n.__u),s=[a=t.__e=n.__e]),(f=G.__b)&&f(t);e:if(typeof se=="function")try{if(x=t.props,v=(f=se.contextType)&&r[f.__c],k=f?v?v.props.value:f.__:r,n.__c?w=(u=t.__c=n.__c).__=u.__E:("prototype"in se&&se.prototype.render?t.__c=u=new se(x,k):(t.__c=u=new Qe(x,k),u.constructor=se,u.render=nh),v&&v.sub(u),u.props=x,u.state||(u.state={}),u.context=k,u.__n=r,h=u.__d=!0,u.__h=[],u._sb=[]),u.__s==null&&(u.__s=u.state),se.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=kt({},u.__s)),kt(u.__s,se.getDerivedStateFromProps(x,u.__s))),d=u.props,g=u.state,u.__v=t,h)se.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(se.getDerivedStateFromProps==null&&x!==d&&u.componentWillReceiveProps!=null&&u.componentWillReceiveProps(x,k),!u.__e&&(u.shouldComponentUpdate!=null&&u.shouldComponentUpdate(x,u.__s,k)===!1||t.__v===n.__v)){for(t.__v!==n.__v&&(u.props=x,u.state=u.__s,u.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(Ce){Ce&&(Ce.__=t)}),O=0;O<u._sb.length;O++)u.__h.push(u._sb[O]);u._sb=[],u.__h.length&&i.push(u);break e}u.componentWillUpdate!=null&&u.componentWillUpdate(x,u.__s,k),u.componentDidUpdate!=null&&u.__h.push(function(){u.componentDidUpdate(d,g,y)})}if(u.context=k,u.props=x,u.__P=e,u.__e=!1,U=G.__r,oe=0,"prototype"in se&&se.prototype.render){for(u.state=u.__s,u.__d=!1,U&&U(t),f=u.render(u.props,u.state,u.context),we=0;we<u._sb.length;we++)u.__h.push(u._sb[we]);u._sb=[]}else do u.__d=!1,U&&U(t),f=u.render(u.props,u.state,u.context),u.state=u.__s;while(u.__d&&++oe<25);u.state=u.__s,u.getChildContext!=null&&(r=kt(kt({},r),u.getChildContext())),h||u.getSnapshotBeforeUpdate==null||(y=u.getSnapshotBeforeUpdate(d,g)),pa(e,Ur(Ve=f!=null&&f.type===Ae&&f.key==null?f.props.children:f)?Ve:[Ve],t,n,r,o,s,i,a,l,c),u.base=t.__e,t.__u&=-161,u.__h.length&&i.push(u),w&&(u.__E=u.__=null)}catch(Ce){t.__v=null,l||s!=null?(t.__e=a,t.__u|=l?160:32,s[s.indexOf(a)]=null):(t.__e=n.__e,t.__k=n.__k),G.__e(Ce,t,n)}else s==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=th(n.__e,t,n,r,o,s,i,l,c);(f=G.diffed)&&f(t)}function _a(e,t,n){t.__d=void 0;for(var r=0;r<n.length;r++)ns(n[r],n[++r],n[++r]);G.__c&&G.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(s){s.call(o)})}catch(s){G.__e(s,o.__v)}})}function th(e,t,n,r,o,s,i,a,l){var c,f,u,h,d,g,y,w=n.props,x=t.props,v=t.type;if(v==="svg"?o="http://www.w3.org/2000/svg":v==="math"?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),s!=null){for(c=0;c<s.length;c++)if((d=s[c])&&"setAttribute"in d==!!v&&(v?d.localName===v:d.nodeType===3)){e=d,s[c]=null;break}}if(e==null){if(v===null)return document.createTextNode(x);e=document.createElementNS(o,v,x.is&&x),s=null,a=!1}if(v===null)w===x||a&&e.data===x||(e.data=x);else{if(s=s&&er.call(e.childNodes),w=n.props||tr,!a&&s!=null)for(w={},c=0;c<e.attributes.length;c++)w[(d=e.attributes[c]).name]=d.value;for(c in w)if(d=w[c],c!="children"){if(c=="dangerouslySetInnerHTML")u=d;else if(c!=="key"&&!(c in x)){if(c=="value"&&"defaultValue"in x||c=="checked"&&"defaultChecked"in x)continue;jr(e,c,null,d,o)}}for(c in x)d=x[c],c=="children"?h=d:c=="dangerouslySetInnerHTML"?f=d:c=="value"?g=d:c=="checked"?y=d:c==="key"||a&&typeof d!="function"||w[c]===d||jr(e,c,d,w[c],o);if(f)a||u&&(f.__html===u.__html||f.__html===e.innerHTML)||(e.innerHTML=f.__html),t.__k=[];else if(u&&(e.innerHTML=""),pa(e,Ur(h)?h:[h],t,n,r,v==="foreignObject"?"http://www.w3.org/1999/xhtml":o,s,i,s?s[0]:n.__k&&Zt(n,0),a,l),s!=null)for(c=s.length;c--;)s[c]!=null&&fa(s[c]);a||(c="value",g!==void 0&&(g!==e[c]||v==="progress"&&!g||v==="option"&&g!==w[c])&&jr(e,c,g,w[c],o),c="checked",y!==void 0&&y!==e[c]&&jr(e,c,y,w[c],o))}return e}function ns(e,t,n){try{typeof e=="function"?e(t):e.current=t}catch(r){G.__e(r,n)}}function rs(e,t,n){var r,o;if(G.unmount&&G.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||ns(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(s){G.__e(s,t)}r.base=r.__P=null}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&rs(r[o],t,n||typeof e.type!="function");n||e.__e==null||fa(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function nh(e,t,n){return this.constructor(e,n)}function Ot(e,t,n){var r,o,s,i;G.__&&G.__(e,t),o=(r=typeof n=="function")?null:n&&n.__k||t.__k,s=[],i=[],ts(t,e=(!r&&n||t).__k=p(Ae,null,[e]),o||tr,tr,t.namespaceURI,!r&&n?[n]:o?null:t.firstChild?er.call(t.childNodes):null,s,!r&&n?n:o?o.__e:t.firstChild,r,i),_a(s,e,i)}function os(e,t){Ot(e,t,os)}function ss(e,t,n){var r,o,s,i,a=kt({},e.props);for(s in e.type&&e.type.defaultProps&&(i=e.type.defaultProps),t)s=="key"?r=t[s]:s=="ref"?o=t[s]:a[s]=t[s]===void 0&&i!==void 0?i[s]:t[s];return arguments.length>2&&(a.children=arguments.length>3?er.call(arguments,2):n),nr(e.type,a,r||e.key,o||e.ref,null)}function rr(e,t){var n={__c:t="__cC"+ca++,__:e,Consumer:function(r,o){return r.children(o)},Provider:function(r){var o,s;return this.getChildContext||(o=[],(s={})[t]=this,this.getChildContext=function(){return s},this.shouldComponentUpdate=function(i){this.props.value!==i.value&&o.some(function(a){a.__e=!0,es(a)})},this.sub=function(i){o.push(i);var a=i.componentWillUnmount;i.componentWillUnmount=function(){o.splice(o.indexOf(i),1),a&&a.call(i)}}),r.children}};return n.Provider.__=n.Consumer.contextType=n}er=ua.slice,G={__e:function(e,t,n,r){for(var o,s,i;t=t.__;)if((o=t.__c)&&!o.__)try{if((s=o.constructor)&&s.getDerivedStateFromError!=null&&(o.setState(s.getDerivedStateFromError(e)),i=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,r||{}),i=o.__d),i)return o.__E=o}catch(a){e=a}throw e}},ia=0,Qe.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=kt({},this.state),typeof e=="function"&&(e=e(kt({},n),this.props)),e&&kt(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),es(this))},Qe.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),es(this))},Qe.prototype.render=Ae,qt=[],la=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Jo=function(e,t){return e.__v.__b-t.__v.__b},Hr.__r=0,Yo=0,Xo=wa(!1),Qo=wa(!0),ca=0;var At,J,is,ya,xn=0,ba=[],zr=[],le=G,va=le.__b,xa=le.__r,Ca=le.diffed,ka=le.__c,Sa=le.unmount,Aa=le.__;function Kt(e,t){le.__h&&le.__h(J,e,xn||t),xn=0;var n=J.__H||(J.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:zr}),n.__[e]}function Ke(e){return xn=1,Gr(Ia,e)}function Gr(e,t,n){var r=Kt(At++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Ia(void 0,t),function(a){var l=r.__N?r.__N[0]:r.__[0],c=r.t(l,a);l!==c&&(r.__N=[c,r.__[1]],r.__c.setState({}))}],r.__c=J,!J.u)){var o=function(a,l,c){if(!r.__c.__H)return!0;var f=r.__c.__H.__.filter(function(h){return!!h.__c});if(f.every(function(h){return!h.__N}))return!s||s.call(this,a,l,c);var u=!1;return f.forEach(function(h){if(h.__N){var d=h.__[0];h.__=h.__N,h.__N=void 0,d!==h.__[0]&&(u=!0)}}),!(!u&&r.__c.props===a)&&(!s||s.call(this,a,l,c))};J.u=!0;var s=J.shouldComponentUpdate,i=J.componentWillUpdate;J.componentWillUpdate=function(a,l,c){if(this.__e){var f=s;s=void 0,o(a,l,c),s=f}i&&i.call(this,a,l,c)},J.shouldComponentUpdate=o}return r.__N||r.__}function xe(e,t){var n=Kt(At++,3);!le.__s&&fs(n.__H,t)&&(n.__=e,n.i=t,J.__H.__h.push(n))}function Ft(e,t){var n=Kt(At++,4);!le.__s&&fs(n.__H,t)&&(n.__=e,n.i=t,J.__h.push(n))}function Ne(e){return xn=5,Jt(function(){return{current:e}},[])}function as(e,t,n){xn=6,Ft(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 Jt(e,t){var n=Kt(At++,7);return fs(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function Yt(e,t){return xn=8,Jt(function(){return e},t)}function Xt(e){var t=J.context[e.__c],n=Kt(At++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(J)),t.props.value):e.__}function ls(e,t){le.useDebugValue&&le.useDebugValue(t?t(e):e)}function rh(e){var t=Kt(At++,10),n=Ke();return t.__=e,J.componentDidCatch||(J.componentDidCatch=function(r,o){t.__&&t.__(r,o),n[1](r)}),[n[0],function(){n[1](void 0)}]}function cs(){var e=Kt(At++,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 oh(){for(var e;e=ba.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Wr),e.__H.__h.forEach(us),e.__H.__h=[]}catch(t){e.__H.__h=[],le.__e(t,e.__v)}}le.__b=function(e){J=null,va&&va(e)},le.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Aa&&Aa(e,t)},le.__r=function(e){xa&&xa(e),At=0;var t=(J=e.__c).__H;t&&(is===J?(t.__h=[],J.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=zr,n.__N=n.i=void 0})):(t.__h.forEach(Wr),t.__h.forEach(us),t.__h=[],At=0)),is=J},le.diffed=function(e){Ca&&Ca(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(ba.push(t)!==1&&ya===le.requestAnimationFrame||((ya=le.requestAnimationFrame)||sh)(oh)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==zr&&(n.__=n.__V),n.i=void 0,n.__V=zr})),is=J=null},le.__c=function(e,t){t.some(function(n){try{n.__h.forEach(Wr),n.__h=n.__h.filter(function(r){return!r.__||us(r)})}catch(r){t.some(function(o){o.__h&&(o.__h=[])}),t=[],le.__e(r,n.__v)}}),ka&&ka(e,t)},le.unmount=function(e){Sa&&Sa(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{Wr(r)}catch(o){t=o}}),n.__H=void 0,t&&le.__e(t,n.__v))};var Ea=typeof requestAnimationFrame=="function";function sh(e){var t,n=function(){clearTimeout(r),Ea&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Ea&&(t=requestAnimationFrame(n))}function Wr(e){var t=J,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),J=t}function us(e){var t=J;e.__c=e.__(),J=t}function fs(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function Ia(e,t){return typeof t=="function"?t(e):t}function Ta(e,t){for(var n in t)e[n]=t[n];return e}function ds(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 qr(e,t){this.props=e,this.context=t}function $a(e,t){function n(o){var s=this.props.ref,i=s==o.ref;return!i&&s&&(s.call?s(null):s.current=null),t?!t(this.props,o)||!i:ds(this.props,o)}function r(o){return this.shouldComponentUpdate=n,p(e,o)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(qr.prototype=new Qe).isPureReactComponent=!0,qr.prototype.shouldComponentUpdate=function(e,t){return ds(this.props,e)||ds(this.state,t)};var Na=G.__b;G.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Na&&Na(e)};var ih=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Zr(e){function t(n){var r=Ta({},n);return delete r.ref,e(r,n.ref||null)}return t.$$typeof=ih,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Ma=function(e,t){return e==null?null:St(St(e).map(t))},Da={map:Ma,forEach:Ma,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},ah=G.__e;G.__e=function(e,t,n,r){if(e.then){for(var o,s=t;s=s.__;)if((o=s.__c)&&o.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t)}ah(e,t,n,r)};var Pa=G.unmount;function Ra(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=Ta({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return Ra(r,t,n)})),e}function Oa(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return Oa(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 or(){this.__u=0,this.t=null,this.__b=null}function Fa(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Ba(e){var t,n,r;function o(s){if(t||(t=e()).then(function(i){n=i.default||i},function(i){r=i}),r)throw r;if(!n)throw t;return p(n,s)}return o.displayName="Lazy",o.__f=!0,o}function Cn(){this.u=null,this.o=null}G.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Pa&&Pa(e)},(or.prototype=new Qe).__c=function(e,t){var n=t.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var o=Fa(r.__v),s=!1,i=function(){s||(s=!0,n.__R=null,o?o(a):a())};n.__R=i;var a=function(){if(!--r.__u){if(r.state.__a){var l=r.state.__a;r.__v.__k[0]=Oa(l,l.__c.__P,l.__c.__O)}var c;for(r.setState({__a:r.__b=null});c=r.t.pop();)c.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(i,i)},or.prototype.componentWillUnmount=function(){this.t=[]},or.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]=Ra(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&p(Ae,null,e.fallback);return o&&(o.__u&=-33),[p(Ae,null,t.__a?null:e.children),o]};var La=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 lh(e){return this.getChildContext=function(){return e.context},e.children}function ch(e){var t=this,n=e.i;t.componentWillUnmount=function(){Ot(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:[],appendChild:function(r){this.childNodes.push(r),t.i.appendChild(r)},insertBefore:function(r,o){this.childNodes.push(r),t.i.appendChild(r)},removeChild:function(r){this.childNodes.splice(this.childNodes.indexOf(r)>>>1,1),t.i.removeChild(r)}}),Ot(p(lh,{context:t.context},e.__v),t.l)}function Va(e,t){var n=p(ch,{__v:e,i:t});return n.containerInfo=t,n}(Cn.prototype=new Qe).__a=function(e){var t=this,n=Fa(t.__v),r=t.o.get(e);return r[0]++,function(o){var s=function(){t.props.revealOrder?(r.push(o),La(t,e,r)):o()};n?n(s):s()}},Cn.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},Cn.prototype.componentDidUpdate=Cn.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){La(e,n,t)})};var Ua=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,uh=/^(?: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]/,fh=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,dh=/[A-Z0-9]/g,hh=typeof document<"u",ph=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function Ha(e,t,n){return t.__k==null&&(t.textContent=""),Ot(e,t),typeof n=="function"&&n(),e?e.__c:null}function ja(e,t,n){return os(e,t),typeof n=="function"&&n(),e?e.__c:null}Qe.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(Qe.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var za=G.event;function mh(){}function gh(){return this.cancelBubble}function wh(){return this.defaultPrevented}G.event=function(e){return za&&(e=za(e)),e.persist=mh,e.isPropagationStopped=gh,e.isDefaultPrevented=wh,e.nativeEvent=e};var hs,_h={enumerable:!1,configurable:!0,get:function(){return this.class}},Ga=G.vnode;G.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,r=t.type,o={};for(var s in n){var i=n[s];if(!(s==="value"&&"defaultValue"in n&&i==null||hh&&s==="children"&&r==="noscript"||s==="class"||s==="className")){var a=s.toLowerCase();s==="defaultValue"&&"value"in n&&n.value==null?s="value":s==="download"&&i===!0?i="":a==="translate"&&i==="no"?i=!1:a==="ondoubleclick"?s="ondblclick":a!=="onchange"||r!=="input"&&r!=="textarea"||ph(n.type)?a==="onfocus"?s="onfocusin":a==="onblur"?s="onfocusout":fh.test(s)?s=a:r.indexOf("-")===-1&&uh.test(s)?s=s.replace(dh,"-$&").toLowerCase():i===null&&(i=void 0):a=s="oninput",a==="oninput"&&o[s=a]&&(s="oninputCapture"),o[s]=i}}r=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=St(n.children).forEach(function(l){l.props.selected=o.value.indexOf(l.props.value)!=-1})),r=="select"&&o.defaultValue!=null&&(o.value=St(n.children).forEach(function(l){l.props.selected=o.multiple?o.defaultValue.indexOf(l.props.value)!=-1:o.defaultValue==l.props.value})),n.class&&!n.className?(o.class=n.class,Object.defineProperty(o,"className",_h)):(n.className&&!n.class||n.class&&n.className)&&(o.class=o.className=n.className),t.props=o}(e),e.$$typeof=Ua,Ga&&Ga(e)};var Wa=G.__r;G.__r=function(e){Wa&&Wa(e),hs=e.__c};var qa=G.diffed;G.diffed=function(e){qa&&qa(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),hs=null};var Za={ReactCurrentDispatcher:{current:{readContext:function(e){return hs.__n[e.__c].props.value},useCallback:Yt,useContext:Xt,useDebugValue:ls,useDeferredValue:gs,useEffect:xe,useId:cs,useImperativeHandle:as,useInsertionEffect:_s,useLayoutEffect:Ft,useMemo:Jt,useReducer:Gr,useRef:Ne,useState:Ke,useSyncExternalStore:ys,useTransition:ws}}},yh="17.0.2";function Ka(e){return p.bind(null,e)}function kn(e){return!!e&&e.$$typeof===Ua}function Ja(e){return kn(e)&&e.type===Ae}function Ya(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function ps(e){return kn(e)?ss.apply(null,arguments):e}function Xa(e){return!!e.__k&&(Ot(null,e),!0)}function Qa(e){return e&&(e.base||e.nodeType===1&&e)||null}var el=function(e,t){return e(t)},tl=function(e,t){return e(t)},nl=Ae;function ms(e){e()}function gs(e){return e}function ws(){return[!1,ms]}var _s=Ft,rl=kn;function ys(e,t){var n=t(),r=Ke({h:{__:n,v:t}}),o=r[0].h,s=r[1];return Ft(function(){o.__=n,o.v=t,bs(o)&&s({h:o})},[e,n,t]),xe(function(){return bs(o)&&s({h:o}),e(function(){bs(o)&&s({h:o})})},[e]),n}function bs(e){var t,n,r=e.v,o=e.__;try{var s=r();return!((t=o)===(n=s)&&(t!==0||1/t==1/n)||t!=t&&n!=n)}catch{return!0}}var je={useState:Ke,useId:cs,useReducer:Gr,useEffect:xe,useLayoutEffect:Ft,useInsertionEffect:_s,useTransition:ws,useDeferredValue:gs,useSyncExternalStore:ys,startTransition:ms,useRef:Ne,useImperativeHandle:as,useMemo:Jt,useCallback:Yt,useContext:Xt,useDebugValue:ls,version:"17.0.2",Children:Da,render:Ha,hydrate:ja,unmountComponentAtNode:Xa,createPortal:Va,createElement:p,createContext:rr,createFactory:Ka,cloneElement:ps,createRef:da,Fragment:Ae,isValidElement:kn,isElement:rl,isFragment:Ja,isMemo:Ya,findDOMNode:Qa,Component:Qe,PureComponent:qr,memo:$a,forwardRef:Zr,flushSync:tl,unstable_batchedUpdates:el,StrictMode:nl,Suspense:or,SuspenseList:Cn,lazy:Ba,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Za};const vs=Object.freeze(Object.defineProperty({__proto__:null,Children:Da,Component:Qe,Fragment:Ae,PureComponent:qr,StrictMode:nl,Suspense:or,SuspenseList:Cn,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Za,cloneElement:ps,createContext:rr,createElement:p,createFactory:Ka,createPortal:Va,createRef:da,default:je,findDOMNode:Qa,flushSync:tl,forwardRef:Zr,hydrate:ja,isElement:rl,isFragment:Ja,isMemo:Ya,isValidElement:kn,lazy:Ba,memo:$a,render:Ha,startTransition:ms,unmountComponentAtNode:Xa,unstable_batchedUpdates:el,useCallback:Yt,useContext:Xt,useDebugValue:ls,useDeferredValue:gs,useEffect:xe,useErrorBoundary:rh,useId:cs,useImperativeHandle:as,useInsertionEffect:_s,useLayoutEffect:Ft,useMemo:Jt,useReducer:Gr,useRef:Ne,useState:Ke,useSyncExternalStore:ys,useTransition:ws,version:yh},Symbol.toStringTag,{value:"Module"})),bh=e=>{xe(()=>{const t=e();return()=>{t.Dispose()}})},vh=(e,t)=>{xe(()=>{const n=e();return()=>{n.Dispose()}},t)},xh=e=>{Ft(()=>{const t=e();return()=>{t.Dispose()}})},A=je,Ch=bh,ol=vh,kh=xh;function Sh(e,t,n,r){const o=A.memo(e,ee(Se(Xe(Dt,n),Q())));return yn(s=>{e.displayName=s},Fo(t)),s=>{const i=Ah(r,s);return A.createElement(o,i)}}function Ah(e,t){if(e==null)return t;{const n=e;return t.key=n(t),t}}function sr(e){return{Dispose(){e()}}}function Eh(e,t){ol(e,t)}function Ih(e){kh(t=>(e(),sr(()=>{})))}function xs(e){const t=A.useRef(!1);$h(()=>{t.current||(t.current=!0,e())},[])}function sl(e){const t=A.useRef(void 0),n=A.useRef(!1),r=A.useRef(!1);n.current&&(r.current=!0),Eh(()=>{let o;return n.current?o=void 0:(n.current=!0,t.current=ke(e()),o=r.current?t.current:void 0),{Dispose(){yn(s=>{Z(s)},Fo(o))}}},[])}function Th(e){Ch(t=>(e(),sr(()=>{})))}function $h(e,t){ol(n=>(e(),sr(()=>{})),t)}function Nh(e,t){const n=Se(t,[]);return A.useCallback(e,n)}function il(e){return A.useRef(e)}function Mh(e,t,n){return Sh(e,void 0,Oo(n),Oo(t))}function Dh(e,t){const n=A.createContext(Se(t,void 0));return yn(r=>{n.displayName=r},Fo(e)),n}function Ph(e,t,n){return A.createElement(e.Provider,{value:t},...n)}function Sn(e){return A.useContext(e)}function al(e){const t=il(e),n=Nh(r=>t.current(r),[]);return Ih(()=>{t.current=e}),n}function ir(e){return A.useState(e)}class ll{constructor(t=!1){this._id=0,this._cancelled=t,this._listeners=new Map}get isCancelled(){return this._cancelled}cancel(){if(!this._cancelled){this._cancelled=!0;for(const[,t]of this._listeners)t()}}addListener(t){const n=this._id;return this._listeners.set(this._id++,t),n}removeListener(t){return this._listeners.delete(t)}register(t,n){const r=this,o=this.addListener(n==null?t:()=>t(n));return{Dispose(){r.removeListener(o)}}}Dispose(){}}class Kr extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,Kr.prototype)}}class Cs{static get maxTrampolineCallCount(){return 2e3}constructor(){this.callCount=0}incrementAndCheck(){return this.callCount++>Cs.maxTrampolineCallCount}hijack(t){this.callCount=0,setTimeout(t,0)}}function Et(e){return t=>{if(t.cancelToken.isCancelled)t.onCancel(new Kr);else if(t.trampoline.incrementAndCheck())t.trampoline.hijack(()=>{try{e(t)}catch(n){t.onError(kr(n))}});else try{e(t)}catch(n){t.onError(kr(n))}}}function Rh(e,t){return Et(n=>{e({onSuccess:r=>{try{t(r)(n)}catch(o){n.onError(kr(o))}},onError:n.onError,onCancel:n.onCancel,cancelToken:n.cancelToken,trampoline:n.trampoline})})}function Oh(e){return Et(t=>t.onSuccess(e))}class Fh{Bind(t,n){return Rh(t,n)}Combine(t,n){return this.Bind(t,()=>n)}Delay(t){return Et(n=>t()(n))}For(t,n){const r=t[Symbol.iterator]();let o=r.next();return this.While(()=>!o.done,this.Delay(()=>{const s=n(o.value);return o=r.next(),s}))}Return(t){return Oh(t)}ReturnFrom(t){return t}TryFinally(t,n){return Et(r=>{t({onSuccess:o=>{n(),r.onSuccess(o)},onError:o=>{n(),r.onError(o)},onCancel:o=>{n(),r.onCancel(o)},cancelToken:r.cancelToken,trampoline:r.trampoline})})}TryWith(t,n){return Et(r=>{t({onSuccess:r.onSuccess,onCancel:r.onCancel,cancelToken:r.cancelToken,trampoline:r.trampoline,onError:o=>{try{n(o)(r)}catch(s){r.onError(kr(s))}}})})}Using(t,n){return this.TryFinally(n(t),()=>t.Dispose())}While(t,n){return t()?this.Bind(n,()=>this.While(t,n)):this.Return(void 0)}Zero(){return Et(t=>t.onSuccess(void 0))}}const L=new Fh;function ks(e){}function Bh(e){return new ll(!1)}function Lh(e){e.cancel()}function Vh(e){return e!=null&&e.isCancelled}const Uh=new ll;function Hh(e){return Et(t=>{e({onSuccess:n=>t.onSuccess(wd(n)),onError:n=>t.onSuccess(_d(n)),onCancel:t.onCancel,cancelToken:t.cancelToken,trampoline:t.trampoline})})}function jh(e){return Et(t=>e([t.onSuccess,t.onError,t.onCancel]))}function zh(e){return Et(t=>{let n;const r=setTimeout(()=>{t.cancelToken.removeListener(n),t.onSuccess(void 0)},e);n=t.cancelToken.addListener(()=>{clearTimeout(r),t.onCancel(new Kr)})})}function Gh(e,t){return Wh(e,t)}function An(e,t){return Gh(e,t)}function Wh(e,t,n,r,o){typeof t!="function"&&(o=t,t=void 0);const s=new Cs;e({onSuccess:t||ks,onError:ks,onCancel:ks,cancelToken:o||Uh,trampoline:s})}class cl{constructor(t,n){this.k=t,this.v=n}}function Jr(e,t){return new cl(e,t)}function Me(e){return e.k}function ze(e){return e.v}class ge extends cl{constructor(t,n,r,o,s){super(t,n),this.left=r,this.right=o,this.h=s|0}}function Yr(e,t,n,r,o){return new ge(e,t,n,r,o)}function De(e){return e.left}function Pe(e){return e.right}function Qt(e){return e.h}function Pw(){}function ul(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=S(r);if(o instanceof ge){const s=o;e=ul(n+1,De(s)),t=Pe(s);continue e}else return n+1|0}else return n|0}}function qh(e){return ul(0,e)}function et(e,t,n,r){let o,s,i;const a=e;if(a!=null){const u=S(a);i=u instanceof ge?(o=u,Qt(o)):1}else i=0;let l;const c=r;if(c!=null){const u=S(c);l=u instanceof ge?(s=u,Qt(s)):1}else l=0;const f=(i<l?l:i)|0;return f===0?Jr(t,n):Yr(t,n,e,r,f+1)}function fl(e,t,n,r){let o,s,i,a,l,c,f,u,h;const d=e;if(d!=null){const w=S(d);h=w instanceof ge?(o=w,Qt(o)):1}else h=0;let g;const y=r;if(y!=null){const w=S(y);g=w instanceof ge?(s=w,Qt(s)):1}else g=0;if(g>h+2){const w=S(r);if(w instanceof ge){const x=w;if(i=De(x),(i!=null?(a=S(i),a instanceof ge?(l=a,Qt(l)):1):0)>h+1){const v=S(De(x));if(v instanceof ge){const k=v;return et(et(e,t,n,De(k)),Me(k),ze(k),et(Pe(k),Me(x),ze(x),Pe(x)))}else throw new Error("internal error: Map.rebalance")}else return et(et(e,t,n,De(x)),Me(x),ze(x),Pe(x))}else throw new Error("internal error: Map.rebalance")}else if(h>g+2){const w=S(e);if(w instanceof ge){const x=w;if(c=Pe(x),(c!=null?(f=S(c),f instanceof ge?(u=f,Qt(u)):1):0)>g+1){const v=S(Pe(x));if(v instanceof ge){const k=v;return et(et(De(x),Me(x),ze(x),De(k)),Me(k),ze(k),et(Pe(k),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return et(De(x),Me(x),ze(x),et(Pe(x),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return et(e,t,n,r)}function En(e,t,n,r){if(r!=null){const o=S(r),s=e.Compare(t,Me(o))|0;if(o instanceof ge){const i=o;return s<0?fl(En(e,t,n,De(i)),Me(i),ze(i),Pe(i)):s===0?Yr(t,n,De(i),Pe(i),Qt(i)):fl(De(i),Me(i),ze(i),En(e,t,n,Pe(i)))}else return s<0?Yr(t,n,void 0,r,2):s===0?Jr(t,n):Yr(t,n,r,void 0,2)}else return Jr(t,n)}function dl(e,t,n){e:for(;;){const r=e,o=t,s=n;if(s!=null){const i=S(s),a=r.Compare(o,Me(i))|0;if(a===0)return ke(ze(i));if(i instanceof ge){const l=i;e=r,t=o,n=a<0?De(l):Pe(l);continue e}else return}else return}}function Zh(e,t,n){const r=dl(e,t,n);if(r==null)throw new Error;return S(r)}function Kh(e,t,n){e:for(;;){const r=e,o=t,s=n;if(s!=null){const i=S(s),a=r.Compare(o,Me(i))|0;if(i instanceof ge){const l=i;if(a<0){e=r,t=o,n=De(l);continue e}else{if(a===0)return!0;e=r,t=o,n=Pe(l);continue e}}else return a===0}else return!1}}function hl(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=S(r);if(o instanceof ge){const s=o;hl(n,De(s)),n(Me(s),ze(s)),e=n,t=Pe(s);continue e}else n(Me(o),ze(o))}break}}function Jh(e,t){hl(e,t)}function Yh(e,t,n){let r=n;Jh((o,s)=>{wt(t,r,[o,s]),r=r+1|0},e)}function Xh(e,t){return yt((n,r)=>En(e,r[0],r[1],n),void 0,t)}function Qh(e,t,n){e:for(;;){const r=e,o=t,s=n;if(s["System.Collections.IEnumerator.MoveNext"]()){const i=s["System.Collections.Generic.IEnumerator`1.get_Current"]();e=r,t=En(r,i[0],i[1],o),n=s;continue e}else return o}}function ep(e,t){let n=void 0;for(let r=0;r<=t.length-1;r++){const o=ce(r,t);n=En(e,o[0],o[1],n)}return n}function pl(e,t){if(st(t))return ep(e,t);if(t instanceof Te)return Xh(e,t);{const n=ie(t);try{return Qh(e,void 0,n)}finally{Z(n)}}}class tp extends K{constructor(t,n){super(),this.stack=t,this.started=n}}function ml(e){e:for(;;){const t=e;if(F(t))return ue();{const n=_(t),r=M(t);if(r!=null){const o=S(r);if(o instanceof ge){const s=o;e=ae([De(s),Jr(Me(s),ze(s)),Pe(s)],n);continue e}else return t}else{e=n;continue e}}}}function gl(e){return new tp(ml(j(e)),!1)}function np(){throw new Error("enumeration not started")}function rp(){throw new Error("enumeration already finished")}function wl(e){if(e.started){const t=e.stack;if(F(t))return rp();if(M(t)!=null){const n=S(M(t));if(n instanceof ge)throw new Error("Please report error: Map iterator, unexpected stack for current");return[Me(n),ze(n)]}else throw new Error("Please report error: Map iterator, unexpected stack for current")}else return np()}function op(e){if(e.started){const t=e.stack;if(F(t))return!1;if(M(t)!=null){if(S(M(t))instanceof ge)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=ml(_(t)),!F(e.stack)}else throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}else return e.started=!0,!F(e.stack)}function _l(e){let t=gl(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return wl(t)},"System.Collections.IEnumerator.get_Current"(){return wl(t)},"System.Collections.IEnumerator.MoveNext"(){return op(t)},"System.Collections.IEnumerator.Reset"(){t=gl(e)},Dispose(){}}}class Xr{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return lp(this)|0}Equals(t){const n=this;if(t instanceof Xr){const r=t,o=ie(n);try{const s=ie(r);try{const i=()=>{const a=o["System.Collections.IEnumerator.MoveNext"]();if(a===s["System.Collections.IEnumerator.MoveNext"]())if(a){const l=o["System.Collections.Generic.IEnumerator`1.get_Current"](),c=s["System.Collections.Generic.IEnumerator`1.get_Current"]();return he(l[0],c[0])&&he(l[1],c[1])?i():!1}else return!0;else return!1};return i()}finally{Z(s)}}finally{Z(o)}}else return!1}toString(){return"map ["+W("; ",de(n=>Ci("({0}, {1})",n[0],n[1]),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(){const t=this;return Array.from(t)}GetEnumerator(){return _l(this.tree)}[Symbol.iterator](){return jn(ie(this))}"System.Collections.IEnumerable.GetEnumerator"(){return _l(this.tree)}CompareTo(t){const n=this;if(t instanceof Xr)return ad((o,s)=>{const i=n.comparer.Compare(o[0],s[0])|0;return(i!==0?i:qe(o[1],s[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 bl(n,t[0])&&he(yl(n,t[0]),t[1])}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){Yh(this.tree,t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return Ss(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return Ss(this)|0}get size(){return Ss(this)|0}clear(){throw new Error("Map cannot be mutated")}delete(t){throw new Error("Map cannot be mutated")}entries(){return de(n=>[n[0],n[1]],this)}get(t){return yl(this,t)}has(t){return bl(this,t)}keys(){return de(n=>n[0],this)}set(t,n){throw new Error("Map cannot be mutated")}values(){return de(n=>n[1],this)}forEach(t,n){const r=this;yn(o=>{t(o[1],o[0],r)},r)}}function Qr(e,t){return new Xr(e,t)}function sp(e){return Qr(e,void 0)}function ip(e,t,n){return Qr(e.comparer,En(e.comparer,t,n,e.tree))}function yl(e,t){return Zh(e.comparer,t,e.tree)}function Ss(e){return qh(e.tree)}function bl(e,t){return Kh(e.comparer,t,e.tree)}function ap(e,t){return dl(e.comparer,t,e.tree)}function lp(e){const t=(o,s)=>(o<<1)+s+631;let n=0;const r=ie(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const o=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n=t(n,dt(o[0]))|0,n=t(n,dt(o[1]))|0}}finally{Z(r)}return n|0}function cp(e,t,n){return ip(n,e,t)}function up(e,t){return ap(t,e)}function fp(e,t){return Qr(t,pl(t,e))}function dp(e,t){return Qr(t,pl(t,e))}function vl(e){return sp(e)}class Y extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["HasNotStartedYet","InProgress","Resolved","Failed"]}}function xl(e,t){const n=il(Bh());return sl(()=>sr(()=>{Lh(n.current)})),al(r=>{Vh(n.current)||An(L.Delay(()=>L.TryWith(L.Delay(()=>(t(new Y(1,[])),L.Bind(e(r),o=>(t(new Y(2,[o])),L.Zero())))),o=>(t(new Y(3,[o])),L.Zero()))),n.current)})}class hp{constructor(t,n,r){this.OnNext=t,this.OnError=n||(o=>{}),this.OnCompleted=r||(()=>{})}}function pp(e,t){t.Subscribe(new hp(e))}class mp{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 wp(t=>{this._add(t)},t=>{this._remove(t)})}Trigger(t,n){let r=null;const o=n===void 0?t:(r=t,n);this.delegates.forEach(s=>{s(r,o)})}}let gp=class extends mp{};function wp(e,t){return{AddHandler(n){e(n)},RemoveHandler(n){t(n)},Subscribe(n){const r=(o,s)=>n.OnNext(s);return e(r),{Dispose(){t(r)}}}}}class _p{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 gp}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 yp(e,t){console.error(ke(e),t)}function bp(e,t){let n,r=new _p(e);r.AutoReset=!1,n=r,pp(t,n.Elapsed()),n.Enabled=!0,n.Start()}function Cl(e,t,n){Fr(r=>{try{r(t)}catch(o){e(o)}},n)}function Fe(){return ue()}function Ee(e){return j(e)}function vp(e,t,n,r){return j(o=>{e(L.Delay(()=>L.Bind(Hh(t(n)),s=>{const i=s;return i.tag===0&&o(r(i.fields[0])),L.Zero()})))})}function xp(e){bp(1,t=>{An(e)})}function In(e,t){if(t.indexOf(e)===0)return t}function kl(e,t){if(ff(t,e))return t}function Cp(e){return e===1?t=>{let n,r,o,s,i,a;return n=In("/",t),n!=null?(r=n,"#"+r):(o=In("#/",t),o!=null?(s=o,s):(i=In("#",t),i!=null?(a=i,"#/"+Ai(a,1,a.length-1)):"#/"+t))}:t=>{let n,r;return n=In("/",t),n!=null?(r=n,r):"/"+t}}function N(e,t){return Cp(t)(W("/",Yn(n=>n.indexOf("?")>=0||n.indexOf("#")===0||n.indexOf("/")===0?n:encodeURIComponent(n),e)))}function Be(e,t,n){history.pushState(void 0,"",N(e,n));const r=document.createEvent("CustomEvent");r.initEvent("CUSTOM_NAVIGATION_EVENT",!0,!0),window.dispatchEvent(r)}function Sl(e,t){return Af(n=>{if(Si(n))return ue();{const r=pf(n,"#");if(r==="?")return ue();if(In("?",r)!=null)return j(r);{const o=r.split("?");if(!Lo((s,i)=>s===i,o)&&o.length===1){const s=ce(0,o);return j(decodeURIComponent(s))}else if(!Lo((s,i)=>s===i,o)&&o.length===2)if(ce(1,o)===""){const s=ce(0,o);return j(decodeURIComponent(s))}else{const s=ce(0,o),i=ce(1,o);return b([decodeURIComponent(s),"?"+i])}else return ue()}}},b(Ro(In("#",e)!=null?Ai(e,1,e.length-1):t===1&&(kl("#",e)!=null||kl("#/",e)!=null)?"":e,["/"],void 0,0)))}function kp(e,t,n){return t(Sl(e===2?window.location.pathname+window.location.search:window.location.hash,e))}const Sp=Mh(e=>{const t=al(r=>{const o=Se(e.onUrlChanged,s=>{});kp(Se(e.hashMode,1),o)});sl(()=>(window.navigator.userAgent.indexOf("Trident")>=0||window.navigator.userAgent.indexOf("MSIE")>=0?window.addEventListener("hashchange",t):window.addEventListener("popstate",t),window.addEventListener("CUSTOM_NAVIGATION_EVENT",t),sr(()=>{window.navigator.userAgent.indexOf("Trident")>=0||window.navigator.userAgent.indexOf("MSIE")>=0?window.removeEventListener("hashchange",t):window.removeEventListener("popstate",t),window.removeEventListener("CUSTOM_NAVIGATION_EVENT",t)}))),xs(()=>{const r=document.createEvent("CustomEvent");r.initEvent("CUSTOM_NAVIGATION_EVENT",!0,!0),window.dispatchEvent(r)});const n=e.application;return n??Q()});class It extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["AccountId","Name"]}}class en extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Asc","Desc"]}}function Al(e){return e.tag===0?new en(1,[]):new en(0,[])}class ar extends B{constructor(t,n){super(),this.tag=0,this.fields=[t,n]}cases(){return["Sort"]}}const Ap=new ar(new It(1,[]),new en(0,[]));function Ep(e){return[e.fields[0],e.fields[1]]}function El(e){return e.fields[0]}function Il(e){return e.fields[1]}function Tl(e,t){const n=t.fields[0],r=t.fields[1];return e.tag===1?n.tag===1?new ar(new It(1,[]),Al(r)):new ar(new It(1,[]),new en(0,[])):n.tag===0?new ar(new It(0,[]),Al(r)):new ar(new It(0,[]),new en(0,[]))}class $l extends B{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["SearchText"]}}const Ip=new $l("");function Tp(e){return new $l(e.trim())}function Nl(e){return e.fields[0]}class $p extends B{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["PageSize"]}}function Np(e){return new $p(e)}function Ml(e){return e.fields[0]}class As extends K{constructor(t,n,r){super(),this.SearchText=t,this.Sort=n,this.PageSize=r}}class Mp extends B{constructor(t,n){super(),this.tag=0,this.fields=[t,n]}cases(){return["AccountKey"]}}function Dp(e){return[e.fields[0],e.fields[1]]}function Pp(e,t){return new Mp(e,t)}function Rp(e){const t=Dp(e);return[t[0],t[1]]}function Op(){return new pd([],{Equals:he,GetHashCode:mu})}function Fp(e,t){let n,r=Q();if(n=[zi(e,t,new Re(()=>r,o=>{r=o})),r],n[0])return n[1]}function Dl(e,t,n){return e.set(t,n),e}class Bp extends K{constructor(t,n,r,o,s){super(),this.StreamId=t,this.Name=n,this.Website=r,this.ContactDetails=o,this.Notes=s}}function Lp(e){const t=Nd(e.Name);if(t.tag===1)return new m(1,[t.fields[0]]);{const n=Md(e.Website);if(n.tag===1)return new m(1,[n.fields[0]]);{let r;const o=e.ContactDetails;if(o!=null){const s=Bd(o);r=s.tag===1?new m(1,[s.fields[0]]):new m(0,[s.fields[0]])}else r=new m(0,[void 0]);return r.tag===1?new m(1,[r.fields[0]]):new m(0,[new Bp(new Xi(e.StreamId),t.fields[0],n.fields[0],r.fields[0],Ld(e.Notes))])}}}function Pl(e,t){return Tf(n=>at(n.StreamId)===Fi(t),e)}class C extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["PartnerList","Partner","PartnerProfilesDirectory","PartnerAccountList","PartnerSuperConfiguration","PartnerBenefitsOnboardingConfiguration","PartnerBankDetailsConfiguration","Account","AccountProfilesDirectory","AccountImports","AccountSuperConfiguration","AccountBenefitsOnboardingConfiguration","AccountBankDetailsConfiguration","AccountSalaryPackagingConfiguration","NotFound"]}}function Rl(e){let t,n,r,o,s,i,a,l,c,f,u,h,d,g,y,w,x,v,k,O,U;if(F(e))t=14;else if(M(e)==="account-registry")if(F(_(e)))t=14;else if(M(_(e))==="partners")if(F(_(_(e))))t=0;else if(F(_(_(_(e)))))t=1,n=M(_(_(e)));else switch(M(_(_(_(e))))){case"accounts":{if(F(_(_(_(_(e))))))t=2,r=M(_(_(e)));else if(F(_(_(_(_(_(e)))))))t=7,l=M(_(_(_(_(e))))),c=M(_(_(e)));else switch(M(_(_(_(_(_(e))))))){case"directory":{F(_(_(_(_(_(_(e)))))))?(t=8,f=M(_(_(_(_(e))))),u=M(_(_(e)))):t=14;break}case"imports":{F(_(_(_(_(_(_(e)))))))?(t=9,h=M(_(_(_(_(e))))),d=M(_(_(e)))):t=14;break}case"super-configuration":{F(_(_(_(_(_(_(e)))))))?(t=10,g=M(_(_(_(_(e))))),y=M(_(_(e)))):t=14;break}case"benefits-onboarding-configuration":{F(_(_(_(_(_(_(e)))))))?(t=11,w=M(_(_(_(_(e))))),x=M(_(_(e)))):t=14;break}case"bank-details-configuration":{F(_(_(_(_(_(_(e)))))))?(t=12,v=M(_(_(_(_(e))))),k=M(_(_(e)))):t=14;break}case"salary-packaging-configuration":{F(_(_(_(_(_(_(e)))))))?(t=13,O=M(_(_(_(_(e))))),U=M(_(_(e)))):t=14;break}default:t=14}break}case"super-configuration":{F(_(_(_(_(e)))))?(t=3,o=M(_(_(e)))):t=14;break}case"benefits-onboarding-configuration":{F(_(_(_(_(e)))))?(t=4,s=M(_(_(e)))):t=14;break}case"directory":{F(_(_(_(_(e)))))?(t=5,i=M(_(_(e)))):t=14;break}case"bank-details-configuration":{F(_(_(_(_(e)))))?(t=6,a=M(_(_(e)))):t=14;break}default:t=14}else t=14;else t=14;switch(t){case 0:return new C(0,[]);case 1:return new C(1,[pe(n)]);case 2:return new C(3,[pe(r)]);case 3:return new C(4,[pe(o)]);case 4:return new C(5,[pe(s)]);case 5:return new C(2,[pe(i)]);case 6:return new C(6,[pe(a)]);case 7:return new C(7,[pe(c),xt(l)]);case 8:return new C(8,[pe(u),xt(f)]);case 9:return new C(9,[pe(d),xt(h)]);case 10:return new C(10,[pe(y),xt(g)]);case 11:return new C(11,[pe(x),xt(w)]);case 12:return new C(12,[pe(k),xt(v)]);case 13:return new C(13,[pe(U),xt(O)]);default:return new C(14,[])}}function E(e){switch(e.tag){case 1:return b(["account-registry","partners",te(e.fields[0])]);case 3:return b(["account-registry","partners",te(e.fields[0]),"accounts"]);case 4:return b(["account-registry","partners",te(e.fields[0]),"super-configuration"]);case 5:return b(["account-registry","partners",te(e.fields[0]),"benefits-onboarding-configuration"]);case 6:return b(["account-registry","partners",te(e.fields[0]),"bank-details-configuration"]);case 2:return b(["account-registry","partners",te(e.fields[0]),"directory"]);case 7:return b(["account-registry","partners",te(e.fields[0]),"accounts",Oe(e.fields[1])]);case 8:return b(["account-registry","partners",te(e.fields[0]),"accounts",Oe(e.fields[1]),"directory"]);case 9:return b(["account-registry","partners",te(e.fields[0]),"accounts",Oe(e.fields[1]),"imports"]);case 10:return b(["account-registry","partners",te(e.fields[0]),"accounts",Oe(e.fields[1]),"super-configuration"]);case 11:return b(["account-registry","partners",te(e.fields[0]),"accounts",Oe(e.fields[1]),"benefits-onboarding-configuration"]);case 12:return b(["account-registry","partners",te(e.fields[0]),"accounts",Oe(e.fields[1]),"bank-details-configuration"]);case 13:return b(["account-registry","partners",te(e.fields[0]),"accounts",Oe(e.fields[1]),"salary-packaging-configuration"]);default:return b(["account-registry","partners"])}}function Ol(e){switch(e.tag){case 1:{const t=["account-registry","partners",te(e.fields[0])];return Ee(n=>{Be(b(t),1,1)})}case 3:{const t=["account-registry","partners",te(e.fields[0]),"accounts"];return Ee(n=>{Be(b(t),1,1)})}case 4:{const t=["account-registry","partners",te(e.fields[0]),"super-configuration"];return Ee(n=>{Be(b(t),1,1)})}case 5:{const t=["account-registry","partners",te(e.fields[0]),"benefits-onboarding-configuration"];return Ee(n=>{Be(b(t),1,1)})}case 6:{const t=["account-registry","partners",te(e.fields[0]),"bank-details-configuration"];return Ee(n=>{Be(b(t),1,1)})}case 2:{const t=["account-registry","partners",te(e.fields[0]),"directory"];return Ee(n=>{Be(b(t),1,1)})}case 7:{const t=["account-registry","partners",te(e.fields[0]),"accounts",Oe(e.fields[1])];return Ee(n=>{Be(b(t),1,1)})}case 8:{const t=["account-registry","partners",te(e.fields[0]),"accounts",Oe(e.fields[1]),"directory"];return Ee(n=>{Be(b(t),1,1)})}case 9:{const t=["account-registry","partners",te(e.fields[0]),"accounts",Oe(e.fields[1]),"imports"];return Ee(n=>{Be(b(t),1,1)})}case 10:{const t=["account-registry","partners",te(e.fields[0]),"accounts",Oe(e.fields[1]),"super-configuration"];return Ee(n=>{Be(b(t),1,1)})}case 11:{const t=["account-registry","partners",te(e.fields[0]),"accounts",Oe(e.fields[1]),"benefits-onboarding-configuration"];return Ee(n=>{Be(b(t),1,1)})}case 12:{const t=["account-registry","partners",te(e.fields[0]),"accounts",Oe(e.fields[1]),"bank-details-configuration"];return Ee(n=>{Be(b(t),1,1)})}case 13:{const t=["account-registry","partners",te(e.fields[0]),"accounts",Oe(e.fields[1]),"salary-packaging-configuration"];return Ee(n=>{Be(b(t),1,1)})}default:return Fe()}}function Vp(e,t){switch(t.tag){case 1:return new Y(1,[]);case 2:return t.fields[0].tag===1?new Y(2,[new m(1,[t.fields[0].fields[0]])]):new Y(2,[new m(0,[e(t.fields[0].fields[0])])]);case 3:return new Y(3,[t.fields[0]]);default:return new Y(0,[])}}class Fl extends K{constructor(t,n){super(),this.ReadProtectedData=t,this.ProvisionAccounts=n}}function Up(e){return new Fl(Pi("AccountRegistry.ReadProtectedData",e.Roles,{Equals:(t,n)=>t===n,GetHashCode:un}),Pi("AccountRegistry.ProvisionAccounts",e.Roles,{Equals:(t,n)=>t===n,GetHashCode:un}))}const Hp=new Fl(!1,!1);class R extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class Tn extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["PascalCase","CamelCase","SnakeCase"]}}function Bl(e){return e.slice(void 0,1).toLowerCase()+e.slice(1,e.length)}function jp(e,t){switch(e.tag){case 2:return af(Bl(t),"[A-Z]","_$0").toLowerCase();case 0:return t;default:return Bl(t)}}function Ll(e,t){zp(t);const n=new Date(e);return n.offset=t??new Date().getTimezoneOffset()*-6e4,n}function zp(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 Gp(){return Ll(-621355968e5,0)}function Wp(e){const[t,n]=fi(e),r=n==null?t.getTimezoneOffset()*-6e4:n==="Z"?0:n*6e4;return Ll(t.getTime(),r)}function qp(e,t){try{return t.contents=Wp(e),!0}catch{return!1}}function Vl(e=0,t=0,n=0,r=0,o=0){switch(arguments.length){case 1:return Zp(arguments[0]);case 3:e=0,t=arguments[0],n=arguments[1],r=arguments[2],o=0;break}return e*864e5+t*36e5+n*6e4+r*1e3+o}function Zp(e){return Number(BigInt(e)/10000n)}function Kp(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 Vl(r,0,0,0,0)}if(n>0){const r=/^(-?)((\d+)\.)?(?:0*)([0-9]|0[0-9]|1[0-9]|2[0-3]):(?:0*)([0-5][0-9]|[0-9])(:(?:0*)([0-5][0-9]|[0-9]))?\.?(\d+)?$/.exec(e);if(r!=null&&r[4]!=null&&r[5]!=null){let o=0,s=0,i=0;const a=r[1]!=null&&r[1]==="-"?-1:1,l=+r[4],c=+r[5];if(r[3]!=null&&(o=+r[3]),r[7]!=null&&(i=+r[7]),r[8]!=null)switch(r[8].length){case 1:s=+r[8]*100;break;case 2:s=+r[8]*10;break;case 3:s=+r[8];break;case 4:s=+r[8]/10;break;case 5:s=+r[8]/100;break;case 6:s=+r[8]/1e3;break;case 7:s=+r[8]/1e4;break;default:throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}return a*Vl(o,l,c,i,s)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}function Jp(e,t){try{return t.contents=Kp(e),!0}catch{return!1}}class Ul{constructor(t){this.k=t}}function Ge(e){return new Ul(e)}function V(e){return e.k}class q extends Ul{constructor(t,n,r,o){super(t),this.left=n,this.right=r,this.h=o|0}}function We(e,t,n,r){return new q(e,t,n,r)}function ne(e){return e.left}function X(e){return e.right}function $n(e){return e.h}function Rw(){}function Hl(e,t){e:for(;;){const n=e,r=t;if(n!=null){const o=S(n);if(o instanceof q){const s=o;e=ne(s),t=Hl(X(s),r+1);continue e}else return r+1|0}else return r|0}}function Yp(e){return Hl(e,0)}function tt(e,t,n){let r,o,s;const i=e;if(i!=null){const f=S(i);s=f instanceof q?(r=f,$n(r)):1}else s=0;let a;const l=n;if(l!=null){const f=S(l);a=f instanceof q?(o=f,$n(o)):1}else a=0;const c=(s<a?a:s)|0;return c===0?Ge(t):We(t,e,n,c+1)}function jl(e,t,n){let r,o,s,i,a,l,c,f,u;const h=e;if(h!=null){const y=S(h);u=y instanceof q?(r=y,$n(r)):1}else u=0;let d;const g=n;if(g!=null){const y=S(g);d=y instanceof q?(o=y,$n(o)):1}else d=0;if(d>u+2){const y=S(n);if(y instanceof q){const w=y;if(s=ne(w),(s!=null?(i=S(s),i instanceof q?(a=i,$n(a)):1):0)>u+1){const x=S(ne(w));if(x instanceof q){const v=x;return tt(tt(e,t,ne(v)),V(v),tt(X(v),V(w),X(w)))}else throw new Error("internal error: Set.rebalance")}else return tt(tt(e,t,ne(w)),V(w),X(w))}else throw new Error("internal error: Set.rebalance")}else if(u>d+2){const y=S(e);if(y instanceof q){const w=y;if(l=X(w),(l!=null?(c=S(l),c instanceof q?(f=c,$n(f)):1):0)>d+1){const x=S(X(w));if(x instanceof q){const v=x;return tt(tt(ne(w),V(w),ne(v)),V(v),tt(X(v),t,n))}else throw new Error("internal error: Set.rebalance")}else return tt(ne(w),V(w),tt(X(w),t,n))}else throw new Error("internal error: Set.rebalance")}else return tt(e,t,n)}function Nn(e,t,n){if(n!=null){const r=S(n),o=e.Compare(t,V(r))|0;if(r instanceof q){const s=r;return o<0?jl(Nn(e,t,ne(s)),V(s),X(s)):o===0?n:jl(ne(s),V(s),Nn(e,t,X(s)))}else{const s=e.Compare(t,V(r))|0;return s<0?We(t,void 0,n,2):s===0?n:We(t,n,void 0,2)}}else return Ge(t)}function zl(e,t,n){e:for(;;){const r=e,o=t,s=n;if(s!=null){const i=S(s),a=r.Compare(o,V(i))|0;if(i instanceof q){const l=i;if(a<0){e=r,t=o,n=ne(l);continue e}else{if(a===0)return!0;e=r,t=o,n=X(l);continue e}}else return a===0}else return!1}}function Gl(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=S(r);if(o instanceof q){const s=o;Gl(n,ne(s)),n(V(s)),e=n,t=X(s);continue e}else n(V(o))}break}}class Xp extends K{constructor(t,n){super(),this.stack=t,this.started=n}}function Wl(e){e:for(;;){const t=e;if(F(t))return ue();{const n=M(t),r=_(t);if(n!=null){const o=S(n);if(o instanceof q){const s=o;e=ae([ne(s),Ge(V(s)),X(s)],r);continue e}else return t}else{e=r;continue e}}}}function ql(e){return new Xp(Wl(j(e)),!1)}function Qp(){throw new Error("Enumeration not started")}function e0(){throw new Error("Enumeration already started")}function Zl(e){if(e.started){const t=e.stack;if(F(t))return e0();if(M(t)!=null){const n=S(M(t));return V(n)}else throw new Error("Please report error: Set iterator, unexpected stack for current")}else return Qp()}function t0(e){if(e.started){const t=e.stack;if(F(t))return!1;if(M(t)!=null){if(S(M(t))instanceof q)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=Wl(_(t)),!F(e.stack)}else throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}else return e.started=!0,!F(e.stack)}function Kl(e){let t=ql(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return Zl(t)},"System.Collections.IEnumerator.get_Current"(){return Zl(t)},"System.Collections.IEnumerator.MoveNext"(){return t0(t)},"System.Collections.IEnumerator.Reset"(){t=ql(e)},Dispose(){}}}function n0(e,t,n){e:for(;;){const r=e,o=t,s=n;if(F(o))return F(s)?0:-1;if(F(s))return 1;if(M(s)!=null)if(M(o)!=null){const i=S(M(o)),a=S(M(s));if(i instanceof q){const l=i;if(ne(l)==null)if(a instanceof q){const c=a;if(ne(c)==null){const f=r.Compare(V(l),V(c))|0;if(f!==0)return f|0;e=r,t=He(X(l),_(o)),n=He(X(c),_(s));continue e}else{let f,u,h,d,g;switch(F(o)?F(s)?f=2:M(s)!=null?(f=1,d=_(s),g=S(M(s))):f=2:M(o)!=null?(f=0,u=_(o),h=S(M(o))):F(s)?f=2:M(s)!=null?(f=1,d=_(s),g=S(M(s))):f=2,f){case 0:if(h instanceof q){const y=h;e=r,t=ae([ne(y),We(V(y),void 0,X(y),0)],u),n=s;continue e}else{e=r,t=ae([void 0,Ge(V(h))],u),n=s;continue e}case 1:if(g instanceof q){const y=g;e=r,t=o,n=ae([ne(y),We(V(y),void 0,X(y),0)],d);continue e}else{e=r,t=o,n=ae([void 0,Ge(V(g))],d);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const c=r.Compare(V(l),V(a))|0;if(c!==0)return c|0;e=r,t=He(X(l),_(o)),n=He(void 0,_(s));continue e}else{let c,f,u,h,d;switch(F(o)?F(s)?c=2:M(s)!=null?(c=1,h=_(s),d=S(M(s))):c=2:M(o)!=null?(c=0,f=_(o),u=S(M(o))):F(s)?c=2:M(s)!=null?(c=1,h=_(s),d=S(M(s))):c=2,c){case 0:if(u instanceof q){const g=u;e=r,t=ae([ne(g),We(V(g),void 0,X(g),0)],f),n=s;continue e}else{e=r,t=ae([void 0,Ge(V(u))],f),n=s;continue e}case 1:if(d instanceof q){const g=d;e=r,t=o,n=ae([ne(g),We(V(g),void 0,X(g),0)],h);continue e}else{e=r,t=o,n=ae([void 0,Ge(V(d))],h);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else if(a instanceof q){const l=a;if(ne(l)==null){const c=r.Compare(V(i),V(l))|0;if(c!==0)return c|0;e=r,t=He(void 0,_(o)),n=He(X(l),_(s));continue e}else{let c,f,u,h,d;switch(F(o)?F(s)?c=2:M(s)!=null?(c=1,h=_(s),d=S(M(s))):c=2:M(o)!=null?(c=0,f=_(o),u=S(M(o))):F(s)?c=2:M(s)!=null?(c=1,h=_(s),d=S(M(s))):c=2,c){case 0:if(u instanceof q){const g=u;e=r,t=ae([ne(g),We(V(g),void 0,X(g),0)],f),n=s;continue e}else{e=r,t=ae([void 0,Ge(V(u))],f),n=s;continue e}case 1:if(d instanceof q){const g=d;e=r,t=o,n=ae([ne(g),We(V(g),void 0,X(g),0)],h);continue e}else{e=r,t=o,n=ae([void 0,Ge(V(d))],h);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=_(o),n=_(s);continue e}}else{S(M(s));let i,a,l,c,f;switch(F(o)?F(s)?i=2:M(s)!=null?(i=1,c=_(s),f=S(M(s))):i=2:M(o)!=null?(i=0,a=_(o),l=S(M(o))):F(s)?i=2:M(s)!=null?(i=1,c=_(s),f=S(M(s))):i=2,i){case 0:if(l instanceof q){const u=l;e=r,t=ae([ne(u),We(V(u),void 0,X(u),0)],a),n=s;continue e}else{e=r,t=ae([void 0,Ge(V(l))],a),n=s;continue e}case 1:if(f instanceof q){const u=f;e=r,t=o,n=ae([ne(u),We(V(u),void 0,X(u),0)],c);continue e}else{e=r,t=o,n=ae([void 0,Ge(V(f))],c);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else if(M(o)!=null){S(M(o));let i,a,l,c,f;switch(F(o)?F(s)?i=2:M(s)!=null?(i=1,c=_(s),f=S(M(s))):i=2:M(o)!=null?(i=0,a=_(o),l=S(M(o))):F(s)?i=2:M(s)!=null?(i=1,c=_(s),f=S(M(s))):i=2,i){case 0:if(l instanceof q){const u=l;e=r,t=ae([ne(u),We(V(u),void 0,X(u),0)],a),n=s;continue e}else{e=r,t=ae([void 0,Ge(V(l))],a),n=s;continue e}case 1:if(f instanceof q){const u=f;e=r,t=o,n=ae([ne(u),We(V(u),void 0,X(u),0)],c);continue e}else{e=r,t=o,n=ae([void 0,Ge(V(f))],c);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else{e=r,t=_(o),n=_(s);continue e}}}function Jl(e,t,n){return t==null?n==null?0:-1:n==null?1:n0(e,j(t),j(n))|0}function r0(e,t,n){let r=n;Gl(o=>{wt(t,r,o),r=r+1|0},e)}function o0(e,t,n){e:for(;;){const r=e,o=t,s=n;if(s["System.Collections.IEnumerator.MoveNext"]()){e=r,t=Nn(r,s["System.Collections.Generic.IEnumerator`1.get_Current"](),o),n=s;continue e}else return o}}function s0(e,t){return Rr((n,r)=>Nn(e,r,n),void 0,t)}function i0(e,t){return yt((n,r)=>Nn(e,r,n),void 0,t)}function Yl(e,t){if(st(t))return s0(e,t);if(t instanceof Te)return i0(e,t);{const n=ie(t);try{return o0(e,void 0,n)}finally{Z(n)}}}class Es{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return c0(this)|0}Equals(t){let n;const r=this;return t instanceof Es&&(n=t,Jl(Mn(r),nt(r),nt(n))===0)}toString(){return"set ["+W("; ",de(n=>Ie(n),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(){const t=this;return Array.from(t)}CompareTo(t){const n=this;return Jl(Mn(n),nt(n),nt(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 zl(Mn(n),t,nt(n))}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){r0(nt(this),t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return Is(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return Is(this)|0}GetEnumerator(){return Kl(nt(this))}[Symbol.iterator](){return jn(ie(this))}"System.Collections.IEnumerable.GetEnumerator"(){return Kl(nt(this))}get size(){return Is(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 Xl(this,t)}keys(){return de(n=>n,this)}values(){return de(n=>n,this)}entries(){return de(n=>[n,n],this)}forEach(t,n){const r=this;yn(o=>{t(o,o,r)},r)}}function eo(e,t){return new Es(e,t)}function Mn(e){return e.comparer}function nt(e){return e.tree}function a0(e){return eo(e,void 0)}function l0(e,t){return eo(Mn(e),Nn(Mn(e),t,nt(e)))}function Is(e){return Yp(nt(e))}function Xl(e,t){return zl(Mn(e),t,nt(e))}function c0(e){let t=0;const n=ie(e);try{for(;n["System.Collections.IEnumerator.MoveNext"]();){const r=n["System.Collections.Generic.IEnumerator`1.get_Current"]();t=(t<<1)+dt(r)+631|0}}finally{Z(n)}return Math.abs(t)|0}function Ts(e,t){return Xl(t,e)}function u0(e,t){return l0(t,e)}function f0(e){return a0(e)}function d0(e,t){return eo(t,Yl(t,e))}function h0(e,t){return eo(t,Yl(t,e))}function lr(e,t,n){try{return"Expecting "+e+" but instead got:"+(n?`
|
|
1
|
+
(function(){"use strict";function at(e){return Array.isArray(e)||ArrayBuffer.isView(e)}function wu(e){return e!=null&&typeof e.GetEnumerator=="function"}function _u(e){return e!=null&&typeof e.CompareTo=="function"}function yu(e){return e!=null&&typeof e.Equals=="function"}function ci(e){return e!=null&&typeof e.GetHashCode=="function"}function So(e){return e!=null&&typeof e.Dispose=="function"}function J(e){So(e)&&e.Dispose()}function te(){return null}function xr(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 bu{constructor(t){this.iter=t,this.current=te()}"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 ie(e){return wu(e)?e.GetEnumerator():new bu(e[Symbol.iterator]())}function zn(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 oe(e,t){return e.toString(10).padStart(t,"0")}function li(e){const t=e;return typeof t.offset=="number"?t.offset:e.kind===1?0:e.getTimezoneOffset()*-6e4}function vu(e,t){return e=e<0&&t!=null&&t!==10?65535+e+1:e,e.toString(t)}function zt(e,t){return e=e<0&&t!=null&&t!==10?4294967295+e+1:e,e.toString(t)}class ht{static id(t){return ht.idMap.has(t)||ht.idMap.set(t,++ht.count),ht.idMap.get(t)}}ht.idMap=new WeakMap,ht.count=0;function hn(e){let t=0,n=5381;const r=e.length;for(;t<r;)n=n*33^e.charCodeAt(t++);return n}function Xe(e){return e*2654435761|0}function ui(e){return hn(e.toString(32))}function Gn(e){let t=0;const n=e.length;for(let r=0;r<n;r++){const o=e[r];t=(t<<5)+t^o}return t}function xu(e){if(e==null)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return Xe(e);case"bigint":return ui(e);case"string":return hn(e);default:return Xe(ht.id(e))}}function Cu(e){return ci(e)?e.GetHashCode():xu(e)}function ku(e){return e.getTime()}function Su(e){const t=e.length,n=new Array(t);for(let r=0;r<t;r++)n[r]=pt(e[r]);return Gn(n)}function pt(e){var t;if(e==null)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return Xe(e);case"bigint":return ui(e);case"string":return hn(e);default:{if(ci(e))return e.GetHashCode();if(at(e))return Su(e);if(e instanceof Date)return ku(e);if(((t=Object.getPrototypeOf(e))==null?void 0:t.constructor)===Object){const n=Object.values(e).map(r=>pt(r));return Gn(n)}else return Xe(ht.id(e))}}}function Au(e){return Cu(e)}function Ao(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 di(e,t){return Ao(e,t,me)}function Eu(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;n.sort(),r.sort();for(let o=0;o<n.length;o++)if(n[o]!==r[o]||!me(e[n[o]],t[r[o]]))return!1;return!0}function me(e,t){var n;return e===t?!0:e==null?t==null:t==null?!1:yu(e)?e.Equals(t):at(e)?at(t)&&di(e,t):typeof e!="object"?!1:e instanceof Date?t instanceof Date&&fi(e,t)===0:((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===Object&&Eu(e,t)}function fi(e,t){let n,r;return"offset"in e&&"offset"in t?(n=e.getTime(),r=t.getTime()):(n=e.getTime()+li(e),r=t.getTime()+li(t)),n===r?0:n<r?-1:1}function Cr(e,t){return e===t?0:e<t?-1:1}function Iu(e,t,n){if(e==null)return t==null?0:1;if(t==null)return-1;if(e.length!==t.length)return e.length<t.length?-1:1;for(let r=0,o=0;r<e.length;r++)if(o=n(e[r],t[r]),o!==0)return o;return 0}function hi(e,t){return Iu(e,t,qe)}function Tu(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return n.length<r.length?-1:1;n.sort(),r.sort();for(let o=0,s=0;o<n.length;o++){const i=n[o];if(i!==r[o])return i<r[o]?-1:1;if(s=qe(e[i],t[i]),s!==0)return s}return 0}function qe(e,t){var n;return e===t?0:e==null?t==null?0:-1:t==null?1:_u(e)?e.CompareTo(t):at(e)?at(t)?hi(e,t):-1:typeof e!="object"?e<t?-1:1:e instanceof Date?t instanceof Date?fi(e,t):-1:((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===Object?Tu(e,t):-1}function D(e){const t={};for(const n of e)t[n[0]]=n[1];return t}function $u(e){at(e)?e.splice(0):e.clear()}const kr=new WeakMap;function ne(e){if(e==null)return null;const t=(n,r)=>e(n)(r);return kr.set(t,e),t}function Dt(e){return kr.get(e)??(t=>n=>e(t,n))}function Eo(e){if(e==null)return null;const t=(n,r,o)=>e(n)(r)(o);return kr.set(t,e),t}function Io(e){return kr.get(e)??(t=>n=>r=>e(t,n,r))}function Nu(e){let t=0,n="[";for(const r of e){if(t===0)n+=De(r);else if(t===100){n+="; ...";break}else n+="; "+De(r);t++}return n+"]"}function De(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 Nu(e);{const r=(n=Object.getPrototypeOf(e))==null?void 0:n.constructor;return r===Object&&t<10?"{ "+Object.entries(e).map(([o,s])=>o+" = "+De(s,t+1)).join(`
|
|
2
|
+
`)+" }":(r==null?void 0:r.name)??""}}return String(e)}function Mu(e,t){if(t.length===0)return e;{let n,r=!0;return t.length===1?(n=De(t[0]),r=n.indexOf(" ")>=0):n=t.map(o=>De(o)).join(", "),e+(r?" (":" ")+n+(r?")":"")}}class L{get name(){return this.cases()[this.tag]}toJSON(){return this.fields.length===0?this.name:[this.name].concat(this.fields)}toString(){return Mu(this.name,this.fields)}GetHashCode(){const t=this.fields.map(n=>pt(n));return t.splice(0,0,Xe(this.tag)),Gn(t)}Equals(t){return this===t?!0:xr(this,t)&&this.tag===t.tag?di(this.fields,t.fields):!1}CompareTo(t){return this===t?0:xr(this,t)?this.tag===t.tag?hi(this.fields,t.fields):this.tag<t.tag?-1:1:-1}}function Du(e){const t={},n=Object.keys(e);for(let r=0;r<n.length;r++)t[n[r]]=e[n[r]];return t}function Pu(e){return"{ "+Object.entries(e).map(([t,n])=>t+" = "+De(n)).join(`
|
|
3
|
+
`)+" }"}function Ru(e){const t=Object.values(e).map(n=>pt(n));return Gn(t)}function Ou(e,t){if(e===t)return!0;if(xr(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 Fu(e,t){if(e===t)return 0;if(xr(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++){const o=qe(e[n[r]],t[n[r]]);if(o!==0)return o}return 0}else return-1}class K{toJSON(){return Du(this)}toString(){return Pu(this)}GetHashCode(){return Ru(this)}Equals(t){return Ou(this,t)}CompareTo(t){return Fu(this,t)}}class Le{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 Bu{constructor(t){this.message=t}}function Lu(e){return e instanceof Bu||e instanceof Error}function Vu(e){return e instanceof Promise}function Sr(e){return Lu(e)||Vu(e)?e:new Error(String(e))}const pn=Symbol("numeric");function pi(e){return typeof e=="number"||typeof e=="bigint"||(e==null?void 0:e[pn])}function Uu(e,t){return typeof e=="number"||typeof e=="bigint"?e<t?-1:e>t?1:0:e.CompareTo(t)}function To(e,t){return typeof e=="number"?e*t:typeof e=="bigint"?e*BigInt(t):e[pn]().multiply(t)}function Ar(e,t){return typeof e=="number"?e.toFixed(t):typeof e=="bigint"?e:e[pn]().toFixed(t)}function Er(e,t){return typeof e=="number"?e.toPrecision(t):typeof e=="bigint"?e:e[pn]().toPrecision(t)}function Ir(e,t){return typeof e=="number"?e.toExponential(t):typeof e=="bigint"?e:e[pn]().toExponential(t)}function Tr(e){return typeof e=="number"?(Number(e)>>>0).toString(16):typeof e=="bigint"?BigInt.asUintN(64,e).toString(16):e[pn]().toHex()}class mt{constructor(t,n,r,o,s,i,a){this.fullname=t,this.generics=n,this.construct=r,this.parent=o,this.fields=s,this.cases=i,this.enumCases=a}toString(){return ve(this)}GetHashCode(){return mi(this)}Equals(t){return $o(this,t)}}function gt(e){return e.generics!=null?e.generics:[]}function mi(e){const t=hn(e.fullname),n=gt(e).map(mi);return Gn([t,...n])}function $o(e,t){return e.fullname===""?t.fullname===""&&Ao(Nr(e),Nr(t),([n,r],[o,s])=>n===o&&$o(r,s)):e.fullname===t.fullname&&Ao(gt(e),gt(t),$o)}function Pt(e,t,n,r){return new mt(e,t,n,void 0,r)}function be(e){return new mt("Microsoft.FSharp.Core.FSharpOption`1",[e])}function No(e){return new mt("Microsoft.FSharp.Collections.FSharpList`1",[e])}const Hu=new mt("System.Object"),z=new mt("System.String");function Mo(e){if(Array.isArray(e))return e[0];if(e instanceof mt){const t=$r(e);if(t!=null)return Mo(t)+"[]";{const n=e.fullname.lastIndexOf(".");return n===-1?e.fullname:e.fullname.substr(n+1)}}else return e.name}function ve(e){const t=$r(e);return t!=null?ve(t)+"[]":e.generics==null||e.generics.length===0?e.fullname:e.fullname+"["+e.generics.map(n=>ve(n)).join(",")+"]"}function ju(e){return $r(e)!=null}function $r(e){var t;return e.fullname==="[]"&&((t=e.generics)==null?void 0:t.length)===1?e.generics[0]:void 0}function zu(e){return e.generics!=null&&e.generics.length>0}function gi(e){return e.enumCases!=null&&e.enumCases.length>0}function Gu(e){return e.generics==null?e:new mt(e.fullname,e.generics.map(()=>Hu))}function Wu(e){var t;return(t=e.generics)==null?void 0:t[0]}function mn(e){if(gi(e)&&e.enumCases!=null)return e.enumCases.map(t=>t[1]);throw new Error(`${e.fullname} is not an enum type`)}function qu(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 gn(e,t){const n=parseInt(t,10);return qu(e,isNaN(n)?t:n)[1]}function Zu(e){if(e.cases!=null)return e.cases();throw new Error(`${e.fullname} is not an F# union type`)}function Nr(e){if(e.fields!=null)return e.fields();throw new Error(`${e.fullname} is not an F# record type`)}function Ku(e){if(wi(e)&&e.generics!=null)return e.generics;throw new Error(`${e.fullname} is not a tuple type`)}function Ju(e){return e instanceof mt?e.cases!=null:e instanceof L}function Yu(e){return e instanceof mt?e.fields!=null:e instanceof K}function wi(e){return e.fullname.startsWith("System.Tuple")}function Xu(e){return e.fields==null?[]:e.fields}function Qu(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 ed(e,t){const n=Nr(e);if(n.length!==t.length)throw new Error(`Expected an array of length ${n.length} but got ${t.length}`);return e.construct!=null?new e.construct(...t):n.reduce((r,[o,s],i)=>(r[o]=t[i],r),{})}function td(e,t){return e}const nd=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],rd=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],od=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],sd=["January","February","March","April","May","June","July","August","September","October","November","December"];function Ue(e,t,n){let r=0,o=t;for(;o<e.length&&e[o]===n;)o++,r++;return r}function _i(e,t){return t>=e.length-1?-1:e.charCodeAt(t+1)}function id(e,t){let n=t;const r=e[t];let o="",s=!1;for(;t<e.length;){t++;const i=e[t];if(i===r){s=!0;break}else if(i==="\\")if(t<e.length)t++,o+=e[t];else throw new Error("Invalid string format");else o+=i}if(!s)throw new Error(`Invalid string format could not find matching quote for ${r}`);return[o,t-n+1]}function Do(e,t,n){let r=0,o=0,s="";const i=n?Wn(e.getTime(),1):e;for(;r<t.length;){const a=t[r];switch(a){case"d":switch(o=Ue(t,r,"d"),r+=o,o){case 1:s+=xi(i);break;case 2:s+=oe(xi(i),2);break;case 3:s+=nd[Si(i)];break;case 4:s+=rd[Si(i)];break}break;case"f":if(o=Ue(t,r,"f"),r+=o,o<=3){const _=10**(3-o);s+=oe(Math.floor(Pr(i)/_),o)}else o<=7&&(s+=(""+Pr(i)).padEnd(o,"0"));break;case"F":if(o=Ue(t,r,"F"),r+=o,o<=3){const _=10**(3-o),C=Math.floor(Pr(i)/_);C!=0&&(s+=oe(C,o))}else if(o<=7){const _=Pr(i);_!=0&&(s+=oe(_,3))}break;case"g":o=Ue(t,r,"g"),r+=o,o<=2&&(s+="A.D.");break;case"h":switch(o=Ue(t,r,"h"),r+=o,o){case 1:s+=Dr(i)%12;break;case 2:s+=oe(Dr(i)%12,2);break}break;case"H":switch(o=Ue(t,r,"H"),r+=o,o){case 1:s+=Dr(i);break;case 2:s+=oe(Dr(i),2);break}break;case"K":switch(o=Ue(t,r,"K"),r+=o,o){case 1:switch(yi(i)){case 1:s+="Z";break;case 2:s+=wn(i.getTimezoneOffset()*-6e4);break}break}break;case"m":switch(o=Ue(t,r,"m"),r+=o,o){case 1:s+=Ci(i);break;case 2:s+=oe(Ci(i),2);break}break;case"M":switch(o=Ue(t,r,"M"),r+=o,o){case 1:s+=Rr(i);break;case 2:s+=oe(Rr(i),2);break;case 3:s+=od[Rr(i)-1];break;case 4:s+=sd[Rr(i)-1];break}break;case"s":switch(o=Ue(t,r,"s"),r+=o,o){case 1:s+=ki(i);break;case 2:s+=oe(ki(i),2);break}break;case"t":switch(o=Ue(t,r,"t"),r+=o,o){case 1:s+=i.getHours()<12?"A":"P";break;case 2:s+=i.getHours()<12?"AM":"PM";break}break;case"y":switch(o=Ue(t,r,"y"),r+=o,o){case 1:s+=i.getFullYear()%100;break;case 2:s+=oe(i.getFullYear()%100,2);break;case 3:s+=oe(i.getFullYear(),3);break;case 4:s+=oe(i.getFullYear(),4);break;case 5:s+=oe(i.getFullYear(),5);break}break;case"z":o=Ue(t,r,"z"),r+=o;let c="";switch(yi(i)){case 1:c="+00:00";break;case 2:c=wn(i.getTimezoneOffset()*-6e4);break;case 0:c=wn(md(i).getTimezoneOffset()*-6e4);break}const l=c[0]==="-"?"-":"+",d=parseInt(c.substring(1,3),10),u=parseInt(c.substring(4,6),10);switch(o){case 1:s+=`${l}${d}`;break;case 2:s+=`${l}${oe(d,2)}`;break;default:s+=`${l}${oe(d,2)}:${oe(u,2)}`;break}break;case":":s+=":",r++;break;case"/":s+="/",r++;break;case"'":case'"':const[p,f]=id(t,r);s+=p,r+=f;break;case"%":const w=_i(t,r);if(w>=0&&w!==37)r+=2,s+=Do(i,String.fromCharCode(w),n);else throw new Error("Invalid format string");break;case"\\":const y=_i(t,r);if(y>=0)r+=2,s+=String.fromCharCode(y);else throw new Error("Invalid format string");break;default:r++,s+=a;break}}return s}function yi(e){return e.kind||0}function wn(e){const t=e<0;e=Math.abs(e);const n=~~(e/36e5),r=e%36e5/6e4;return(t?"-":"+")+oe(n,2)+":"+oe(r,2)}function Mr(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 ad(e,t){if(t)return e.toISOString();{const n=e.kind==null?!0:e.kind===2;return oe(e.getFullYear(),4)+"-"+oe(e.getMonth()+1,2)+"-"+oe(e.getDate(),2)+"T"+oe(e.getHours(),2)+":"+oe(e.getMinutes(),2)+":"+oe(e.getSeconds(),2)+"."+oe(e.getMilliseconds(),3)+(n?wn(e.getTimezoneOffset()*-6e4):"")}}function cd(e,t){const n=e.toISOString();return n.substring(0,n.length-1)+wn(t)}function ld(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," ")+wn(e.offset??0);if(t.length===1)switch(t){case"D":case"d":return Mr(n,"first");case"T":case"t":return Mr(n,"second");case"O":case"o":return cd(n,e.offset??0);default:throw new Error("Unrecognized Date print format")}else return Do(n,t,!0)}function ud(e,t){const n=e.kind===1;if(typeof t!="string")return n?e.toUTCString():e.toLocaleString();if(t.length===1)switch(t){case"D":case"d":return n?Mr(e,"first"):e.toLocaleDateString();case"T":case"t":return n?Mr(e,"second"):e.toLocaleTimeString();case"O":case"o":return ad(e,n);default:throw new Error("Unrecognized Date print format")}else return Do(e,t,n)}function bi(e,t,n){return e.offset!=null?ld(e,t):ud(e,t)}function Wn(e,t){const n=new Date(e);return n.kind=(t??0)|0,n}function dd(){return Wn(-621355968e5,1)}function vi(e){function t(){throw new Error(`The string is not a valid Date: ${e}`)}(e==null||e.trim()==="")&&t(),e.length===10&&e[4]==="-"&&e[7]==="-"&&(e+="T00:00:00");let n=new Date(e),r=null;if(isNaN(n.getTime())){const o=/^\s*(\d+[^\w\s:]\d+[^\w\s:]\d+)?\s*(\d+:\d+(?::\d+(?:\.\d+)?)?)?\s*([AaPp][Mm])?\s*(Z|[+-]([01]?\d):?([0-5]?\d)?)?\s*$/.exec(e);if(o!=null){let s,i=0;if(o[2]!=null){const a=o[2].split(":"),c=parseInt(a[0],10);i=c*3600+parseInt(a[1]||"0",10)*60+parseFloat(a[2]||"0"),o[3]!=null&&o[3].toUpperCase()==="PM"&&c<12&&(i+=720)}if(o[4]!=null){if(o[1]!=null)s=new Date(o[1]+" UTC");else{const a=new Date;s=new Date(a.getUTCFullYear()+"/"+(a.getUTCMonth()+1)+"/"+a.getUTCDate())}if(o[4]==="Z")r="Z";else{let a=parseInt(o[5],10)*60+parseInt(o[6]||"0",10);o[4][0]==="-"&&(a*=-1),r=a,i-=a*60}}else if(o[1]!=null)s=new Date(o[1]);else{const a=new Date;s=new Date(a.getFullYear()+"/"+(a.getMonth()+1)+"/"+a.getDate())}n=new Date(s.getTime()+i*1e3),n=new Date(n.getTime()+(n.getTimezoneOffset()-s.getTimezoneOffset())*6e4)}else t();isNaN(n.getTime())&&t()}return[n,r]}function fd(e,t=!1){const[n,r]=vi(e),o=r!=null?t&&r==="Z"?1:2:0;return Wn(n.getTime(),o)}function hd(e,t){try{return t.contents=fd(e),!0}catch{return!1}}function pd(e){return e.kind===1?e:Wn(e.getTime(),1)}function md(e){return e.kind===2?e:Wn(e.getTime(),2)}function xi(e){return e.kind===1?e.getUTCDate():e.getDate()}function Dr(e){return e.kind===1?e.getUTCHours():e.getHours()}function Pr(e){return e.kind===1?e.getUTCMilliseconds():e.getMilliseconds()}function Ci(e){return e.kind===1?e.getUTCMinutes():e.getMinutes()}function Rr(e){return(e.kind===1?e.getUTCMonth():e.getMonth())+1}function ki(e){return e.kind===1?e.getUTCSeconds():e.getSeconds()}function Si(e){return e.kind===1?e.getUTCDay():e.getDay()}function Ai(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 Po(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function gd(e,t,n=0){return e.lastIndex=n,e.exec(t)}function Ei(e,t,n=0){if(t==null)throw new Error("Input cannot ve null");if(!e.global)throw new Error("Non-global RegExp");e.lastIndex=n;const r=[];let o,s=-1;for(;(o=e.exec(t))!=null;)o.index===s?e.lastIndex++:(s=o.index,r.push(o));return r}function wd(e,t,n,r,o=0){function s(){let i=arguments[0];if(r){r--;const a=[],c=arguments.length,l=typeof arguments[c-1]!="string";let d=l?c-3:c-2;for(let u=0;u<d;u++)a.push(arguments[u]);a.index=arguments[d++],a.input=arguments[d++],l&&(a.groups=arguments[d]),i=n(a)}return i}if(typeof e=="string"){const i=e;e=Ai(t,r??0),t=i,r=void 0}if(typeof n=="function")return r=r??-1,t.substring(0,o)+t.substring(o).replace(e,s);if(n=n.replace(/\$0/g,i=>"$&").replace(/\${([^}]+)}/g,"$<$1>"),r!=null){let i;const a=t.substring(o),c=Ei(e,a),l=Ei.length>r?(i=c[r-1],a.substring(0,i.index+i[0].length)):a;return t.substring(0,o)+l.replace(e,n)+t.substring(o+l.length)}else return t.replace(e,n)}const qn=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g,Zn=/(?:(^|[^%])%([0+\- ]*)(\d+)?(?:\.(\d+))?(\w))?%P\(\)/g,_d=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function Ii(e,t){return Uu(e,t)<0}function wt(e){return{input:e,cont:bd(e)}}function Ti(e,t){let n=0,r=0,o="";Zn.lastIndex=0;let s=Zn.exec(e);for(;s;){const i=s.index+(s[1]||"").length;o+=e.substring(r,i).replace(/%%/g,"%");const[,,a,c,l,d]=s;r=Zn.lastIndex,o+=Ni(t[n++],a,c,l,d),Zn.lastIndex=r-1,s=Zn.exec(e)}return o+=e.substring(r).replace(/%%/g,"%"),o}function Ro(e,t){return typeof t=="string"?e(t):t.cont(e)}function $i(e){return Ro(t=>console.log(t),e)}function _t(e){return Ro(t=>t,e)}function yd(e){return Ro(t=>{throw new Error(t)},e)}function Ni(e,t,n,r,o){let s="";if(t=t||"",o=o||"",pi(e))switch(o.toLowerCase()!=="x"&&(Ii(e,0)?(e=To(e,-1),s="-"):t.indexOf(" ")>=0?s=" ":t.indexOf("+")>=0&&(s="+")),r=r==null?null:parseInt(r,10),o){case"f":case"F":r=r??6,e=Ar(e,r);break;case"g":case"G":e=r!=null?Er(e,r):Er(e);break;case"e":case"E":e=r!=null?Ir(e,r):Ir(e);break;case"x":e=Tr(e);break;case"X":e=Tr(e).toUpperCase();break;default:e=String(e);break}else e instanceof Date?e=bi(e):e=De(e);if(n=typeof n=="number"?n:parseInt(n,10),isNaN(n))e=s+e;else{const i=t.indexOf("0")>=0,a=t.indexOf("-")>=0,c=a||!i?" ":"0";c==="0"?(e=Kn(e,n-s.length,c,a),e=s+e):e=Kn(s+e,n,c,a)}return e}function Mi(e,t,n,r="",o=-1){return(...s)=>{let i=r;const a=t.slice(),c=n.slice();for(const l of s){const[,,d,u,p,f]=c[0];let w=u;if(o>=0)w=o,o=-1;else if(w==="*"){if(l<0)throw new Error("Non-negative number required");o=l;continue}i+=a[0],i+=Ni(l,d,w,p,f),a.splice(0,1),c.splice(0,1)}return c.length===0?(i+=a[0],e(i)):Mi(e,a,c,i,o)}}function bd(e){return t=>{qn.lastIndex=0;const n=[],r=[];let o=0,s=qn.exec(e);for(;s;){const i=s.index+(s[1]||"").length;n.push(e.substring(o,i).replace(/%%/g,"%")),r.push(s),o=qn.lastIndex,qn.lastIndex-=1,s=qn.exec(e)}return n.length===0?t(e.replace(/%%/g,"%")):(n.push(e.substring(o).replace(/%%/g,"%")),Mi(t,n,r))}}function Di(e,...t){let n;return typeof e=="object"?(n=String(t[0]),t.shift()):n=e,n.replace(_d,(r,o,s,i,a,c)=>{if(o<0||o>=t.length)throw new Error("Index must be greater or equal to zero and less than the arguments' length.");let l=t[o];if(pi(l))switch(a=a==null?null:parseInt(a,10),i){case"f":case"F":a=a??2,l=Ar(l,a);break;case"g":case"G":l=a!=null?Er(l,a):Er(l);break;case"e":case"E":l=a!=null?Ir(l,a):Ir(l);break;case"p":case"P":a=a??2,l=Ar(To(l,100),a)+" %";break;case"d":case"D":l=a!=null?Oo(String(l),a,"0"):String(l);break;case"x":case"X":l=a!=null?Oo(Tr(l),a,"0"):Tr(l),i==="X"&&(l=l.toUpperCase());break;default:if(c){let d="";l=c.replace(/([0#,]+)(\.[0#]+)?/,(u,p,f)=>{Ii(l,0)&&(l=To(l,-1),d="-"),f=f==null?"":f.substring(1),l=Ar(l,Math.max(f.length,0));let[w,y]=l.split(".");y||(y="");const _=p.replace(/,/g,"").replace(/^#+/,"").length;w=Oo(w,_,"0");const C=f.replace(/#+$/,"").length;if(C>y.length?y=xd(y,C,"0"):C<y.length&&(y=y.substring(0,C)+y.substring(C).replace(/0+$/,"")),p.indexOf(",")>0){const x=w.length%3,A=Math.floor(w.length/3);let O=x>0?w.substr(0,x)+(A>0?",":""):"";for(let H=0;H<A;H++)O+=w.substr(x+H*3,3)+(H<A-1?",":"");w=O}return y.length>0?w+"."+y:w}),l=d+l}}else l instanceof Date?l=bi(l,c||i):l=De(l);return s=parseInt((s||" ").substring(1),10),isNaN(s)||(l=Kn(String(l),Math.abs(s)," ",s<0)),l})}function vd(e,t){const n=e.lastIndexOf(t);return n>=0&&n===e.length-t.length}function Pi(e){return typeof e!="string"||e.length===0}function Ri(e){return typeof e!="string"||/^\s*$/.test(e)}function W(e,t){return Array.isArray(t)?t.join(e):Array.from(t).join(e)}function Kn(e,t,n,r){n=n||" ",t=t-e.length;for(let o=0;o<t;o++)e=r?e+n:n+e;return e}function Oo(e,t,n){return Kn(e,t,n)}function xd(e,t,n){return Kn(e,t,n,!0)}function Fo(e,t,n,r){if(n=typeof n=="number"?n:void 0,r=typeof r=="number"?r:0,n&&n<0)throw new Error("Count cannot be less than zero");if(n===0)return[];const o=(r&1)===1,s=(r&2)===2;t=t||[],t=t.filter(d=>d).map(Po),t=t.length>0?t:["\\s"];const i=[],a=new RegExp(t.join("|"),"g");let c=!0,l=0;do{const d=a.exec(e);if(d===null){const u=s?e.substring(l).trim():e.substring(l);(!o||u.length>0)&&i.push(u),c=!1}else{const u=s?e.substring(l,d.index).trim():e.substring(l,d.index);(!o||u.length>0)&&(n!=null&&i.length+1===n?(i.push(s?e.substring(l).trim():e.substring(l)),c=!1):i.push(u)),l=a.lastIndex}}while(c);return i}function Cd(e,...t){if(t.length===0)return e.trim();const n="["+Po(t.join(""))+"]+";return e.replace(new RegExp("^"+n),"").replace(new RegExp(n+"$"),"")}function kd(e,...t){return t.length===0?e.trimEnd():e.replace(new RegExp("["+Po(t.join(""))+"]+$"),"")}function Oi(e,t,n){if(t+(n||0)>e.length)throw new Error("Invalid startIndex and/or length");return n!=null?e.substr(t,n):e.substr(t)}class Gt{constructor(t){this.value=t}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return pt(this.value)}Equals(t){return t==null?!1:me(this.value,t instanceof Gt?t.value:t)}CompareTo(t){return t==null?1:qe(this.value,t instanceof Gt?t.value:t)}}function I(e){if(e==null)throw new Error("Option has no value");return e instanceof Gt?e.value:e}function Bo(e){return e instanceof Gt?e.value:e}function Ee(e){return e==null||e instanceof Gt?new Gt(e):e}function Lo(e){return e==null?[]:[I(e)]}function Ie(e,t){return e!=null?I(e):t}function Sd(e,t){return e!=null?I(e):t()}function Ze(e,t){return t!=null?Ee(e(I(t))):void 0}const Fi="Collection was empty.";function Bi(e,t){return new Array(t)}function Li(e,t){return e>t?e:t}function Vo(e,t,n,r){const o=t|0;return e.fill(r,o,o+n)}function Jn(e,t,n){const r=t.length|0,o=Bi(n,r);for(let s=0;s<=r-1;s++)yt(o,s,e(de(s,t)));return o}function Ad(e,t){const n=Bi(t,1);return yt(n,0,e),n}function Ed(e){return e.slice().reverse()}function Id(e,t){return t.find(e)}function Td(e,t,n){const r=[];for(let o=0;o<=t.length-1;o++){const s=e(de(o,t));if(s!=null){const i=I(s);r.push(i)}}return me(n,te())?r:Jn(o=>o,r,n)}function Or(e,t,n){const r=e;return n.reduce(r,t)}function $d(e,t){if(e<1)throw new Error("The input must be positive.\\nParameter name: size");if(t.length===0)return[[]];{const n=[];for(let r=0;r<=~~Math.ceil(t.length/e)-1;r++){let o;const s=r*e|0;o=t.slice(s,s+e),n.push(o)}return n}}function Uo(e,t,n){return t==null}function de(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 yt(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 Vi(e,t,n){return t.reduceRight((r,o)=>e(o,r),n)}class Pe extends K{constructor(t,n){super(),this.head=t,this.tail=n}toString(){return"["+W("; ",this)+"]"}Equals(t){const n=this;return n===t?!0:((o,s)=>{e:for(;;){const i=o,a=s,c=i.tail,l=a.tail;if(c!=null)if(l!=null){const d=I(c),u=I(l);if(me(i.head,a.head)){o=d,s=u;continue e}else return!1}else return!1;else return l==null}})(n,t)}GetHashCode(){return((r,o,s)=>{e:for(;;){const i=r,a=o,c=s,l=c.tail;if(l!=null){const d=I(l);if(i>18)return a|0;r=i+1,o=(a<<1)+pt(c.head)+631*i,s=d;continue e}else return a|0}})(0,0,this)|0}toJSON(){const t=this;return Array.from(t)}CompareTo(t){return((o,s)=>{e:for(;;){const i=o,a=s,c=i.tail,l=a.tail;if(c!=null)if(l!=null){const d=I(c),u=I(l),p=qe(i.head,a.head)|0;if(p===0){o=d,s=u;continue e}else return p|0}else return 1;else return l!=null?-1:0}})(this,t)|0}GetEnumerator(){return Md(this)}[Symbol.iterator](){return zn(ie(this))}"System.Collections.IEnumerable.GetEnumerator"(){return ie(this)}}class Nd{constructor(t){this.xs=t,this.it=this.xs,this.current=te()}"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=I(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=te()}Dispose(){}}function Md(e){return new Nd(e)}function he(){return new Pe(te(),void 0)}function Yn(e,t){return new Pe(e,t)}function bt(e){return e.tail==null}function Ui(e){return((n,r)=>{e:for(;;){const o=n,i=r.tail;if(i!=null){n=o+1,r=I(i);continue e}else return o|0}})(0,e)|0}function Rt(e){if(e.tail!=null)return e.head;throw new Error(Fi+"\\nParameter name: list")}function xe(e){const t=e.tail;if(t!=null)return I(t);throw new Error(Fi+"\\nParameter name: list")}function fe(){return he()}function He(e,t){return Yn(e,t)}function j(e){return Yn(e,he())}function F(e){return bt(e)}function _n(e){return Ui(e)}function M(e){return Rt(e)}function m(e){return xe(e)}function Wt(e){const t=Ui(e)|0,n=Vo(new Array(t),0,t,null);return((o,s)=>{e:for(;;){const i=o,a=s;if(!bt(a)){yt(n,i,Rt(a)),o=i+1,s=xe(a);continue e}break}})(0,e),n}function vt(e,t,n){let r=t,o=n;for(;!bt(o);)r=e(r,M(o)),o=xe(o);return r}function Fr(e){return vt((t,n)=>Yn(n,t),he(),e)}function Dd(e,t,n){return Vi(e,Wt(t),n)}function Pd(e,t,n){return((o,s,i)=>{e:for(;;){const a=o,c=s,l=i;if(bt(l))return c;o=a+1,s=e(a,c,Rt(l)),i=xe(l);continue e}})(0,t,n)}function Br(e,t){vt((n,r)=>{e(r)},void 0,t)}function ae(e,t){let n=t;for(let r=e.length-1;r>=0;r--)n=Yn(de(r,e),n);return n}function b(e){return ae(e,he())}function Rd(e){let t,n;if(at(e))return b(e);if(e instanceof Pe)return e;{const r=he();let o=r;const s=ie(e);try{for(;s["System.Collections.IEnumerator.MoveNext"]();){const c=s["System.Collections.Generic.IEnumerator`1.get_Current"]();o=(t=o,n=new Pe(c,void 0),t.tail=n,n)}}finally{J(s)}const i=o,a=he();return i.tail=a,xe(r)}}function Ce(e,t){return vt((n,r)=>Yn(r,n),t,Fr(e))}function Od(e,t){let n,r;const o=he();let s=o,i=t;for(;!bt(i);){let l=e(Rt(i));for(;!bt(l);)s=(n=s,r=new Pe(Rt(l),void 0),n.tail=r,r),l=xe(l);i=xe(i)}const a=s,c=he();return a.tail=c,xe(o)}function Fd(e,t){const n=he(),r=Pd((s,i,a)=>{const c=new Pe(e(s,a),void 0);return i.tail=c,c},n,t),o=he();return r.tail=o,xe(n)}function Xn(e,t){const n=he(),r=vt((s,i)=>{const a=new Pe(e(i),void 0);return s.tail=a,a},n,t),o=he();return r.tail=o,xe(n)}function Bd(e,t){return(r=>{e:for(;;){const o=r;if(bt(o))return;{const s=e(Rt(o));if(s==null){r=xe(o);continue e}else return s}}})(t)}function Ld(e,t){return Bd(n=>e(n)?Ee(n):void 0,t)}function Vd(e,t){return((r,o)=>{e:for(;;){const s=r,i=o;if(bt(i))return;if(e(Rt(i)))return s;r=s+1,o=xe(i);continue e}})(0,t)}function Ud(e,t){return((r,o)=>{e:for(;;){const s=r,i=o;if(bt(i))return;if(s===e)return Ee(Rt(i));r=s+1,o=xe(i);continue e}})(0,t)}function Hi(e,t){const n=he(),r=vt((s,i)=>{if(e(i)){const a=new Pe(i,void 0);return s.tail=a,a}else return s},n,t),o=he();return r.tail=o,xe(n)}function Hd(e,t){const n=he(),r=he(),o=n,s=vt((c,l)=>{let d,u;const p=c[0],f=c[1];return e(l)?[(d=new Pe(l,void 0),p.tail=d,d),f]:[p,(u=new Pe(l,void 0),f.tail=u,u)]},[o,r],t),i=he();s[0].tail=i;const a=he();return s[1].tail=a,[xe(o),xe(r)]}function ji(e,t){const n=he(),r=vt((s,i)=>{const a=e(i);if(a==null)return s;{const c=new Pe(I(a),void 0);return s.tail=c,c}},n,t),o=he();return r.tail=o,xe(n)}function zi(e,t,n){return Vd(r=>n.Equals(e,r),t)!=null}function jd(e,t){const n=Wt(t);return n.sort(e),b(n)}function zd(e,t,n){return jd((r,o)=>n.Compare(e(r),e(o)),t)}function Gd(e,t){return b(Jn(b,$d(e,Wt(t))))}function Wd(e){return new g(0,[e])}function Gi(e){return new g(1,[e])}class g extends L{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Ok","Error"]}}function xt(e,t){return t.tag===0?Wd(e(t.fields[0])):Gi(t.fields[0])}function qd(e,t){return t.tag===0?e(t.fields[0]):Gi(t.fields[0])}class Zd extends L{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["Name"]}}function Wi(e){return new Zd(e)}function Ho(e){return e.fields[0]}class Kd extends L{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["Website"]}}class Jd extends L{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["FirstName"]}}class Yd extends L{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["LastName"]}}class Xd extends L{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["Email"]}}class Qd extends L{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["MobilePhone"]}}let ef=class extends K{constructor(t,n,r,o){super(),this.FirstName=t,this.LastName=n,this.Email=r,this.MobilePhone=o}};class tf extends L{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["Notes"]}}class nf extends L{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["PartnerId"]}}function ct(e){return e.fields[0]}function le(e){return new nf(e)}function qi(e){return ct(e)}class rf extends L{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["AccountId"]}}function Qe(e){return e.fields[0]}function lt(e){return new rf(e)}function Zi(e){return Qe(e)}function of(e){throw new Error(e)}const sf="Enumeration already finished.",af="Enumeration has not started. Call MoveNext.",Ki="The input sequence has an insufficient number of elements.",cf="Reset is not supported on this enumerator.";function lf(){throw new Error(cf)}function jo(){throw new Error(af)}function zo(){throw new Error(sf)}class uf{constructor(t){this.f=t}toString(){const t=this;let n=0,r="seq [";const o=ie(t);try{for(;n<4&&o["System.Collections.IEnumerator.MoveNext"]();)n>0&&(r=r+"; "),r=r+De(o["System.Collections.Generic.IEnumerator`1.get_Current"]()),n=n+1|0;return n===4&&(r=r+"; ..."),r+"]"}finally{J(o)}}GetEnumerator(){return this.f()}[Symbol.iterator](){return zn(ie(this))}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}function df(e){return new uf(e)}class ff{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"(){lf()}Dispose(){this.dispose()}}function Lr(e,t,n){return new ff(e,t,n)}function hf(e){let t,n,r=!1,o=!1,s;const i=()=>{if(o=!0,n!=null){const a=I(n);try{J(a)}finally{n=void 0}}if(t!=null){const a=I(t);try{J(a)}finally{t=void 0}}};return Lr(()=>(r?o&&zo():jo(),s!=null?I(s):zo()),()=>{let a;if(r||(r=!0),o)return!1;{let c;for(;c==null;){const l=t,d=n;if(l!=null)if(d!=null){const u=I(d);if(u["System.Collections.IEnumerator.MoveNext"]())s=Ee(u["System.Collections.Generic.IEnumerator`1.get_Current"]()),c=!0;else try{J(u)}finally{n=void 0}}else{const u=I(l);u["System.Collections.IEnumerator.MoveNext"]()?n=(a=u["System.Collections.Generic.IEnumerator`1.get_Current"](),ie(a)):(i(),c=!1)}else t=ie(e)}return I(c)}},()=>{o||i()})}function pf(e,t){return Lr(()=>t["System.Collections.Generic.IEnumerator`1.get_Current"](),()=>t["System.Collections.IEnumerator.MoveNext"](),()=>{try{J(t)}finally{}})}function Ji(e,t,n){let r=!1,o,s=Ee(e());const i=()=>{if(s!=null){const c=I(s);try{n(c)}finally{s=void 0}}},a=()=>{try{i()}finally{o=void 0}};return Lr(()=>(r||jo(),o!=null?I(o):zo()),()=>{if(r||(r=!0),s!=null){const c=I(s);let l;try{l=t(c)}catch(d){throw a(),d}return l!=null?(o=l,!0):(a(),!1)}else return!1},i)}function mf(e,t){let n,r=t;return Lr(()=>{if(n!=null){const o=I(n)[0];return I(n)[1],o}else return jo()},()=>(n=e(r),n!=null?(I(n)[0],r=I(n)[1],!0):!1),()=>{})}function gf(e,t){t==null&&of(e)}function yn(e){return df(e)}function Ct(e){return gf("source",e),ie(e)}function $(e){return yn(()=>ie(e()))}function Go(e){return yn(()=>hf(e))}function wf(e,t){return yn(()=>mf(e,t))}function Ke(){return $(()=>new Array(0))}function N(e){return $(()=>Ad(e))}function qw(e){return e}function Wo(e){return e instanceof Pe?Wt(e):Array.from(e)}function ge(e){return at(e)?b(e):e instanceof Pe?e:Rd(e)}function Yi(e,t,n){return yn(()=>Ji(e,t,n))}function Xi(e,t,n){return yn(()=>{let r=-1;return Ji(e,o=>(r=r+1|0,t(r,o)),n)})}function P(e,t){return Go([e,t])}function qt(e,t){return Yi(()=>Ct(t),n=>{let r;for(;r==null&&n["System.Collections.IEnumerator.MoveNext"]();)r=e(n["System.Collections.Generic.IEnumerator`1.get_Current"]());return r},n=>{J(n)})}function _f(e,t,n){const r=Ct(t);try{const o=Ct(n);try{let s=0,i=r["System.Collections.IEnumerator.MoveNext"](),a=o["System.Collections.IEnumerator.MoveNext"]();for(;s===0&&i&&a;)s=e(r["System.Collections.Generic.IEnumerator`1.get_Current"](),o["System.Collections.Generic.IEnumerator`1.get_Current"]())|0,s===0&&(i=r["System.Collections.IEnumerator.MoveNext"](),a=o["System.Collections.IEnumerator.MoveNext"]());return(s!==0?s:i?1:a?-1:0)|0}finally{J(o)}}finally{J(r)}}function bn(e,t,n){const r=Ct(t);try{let o=!1;for(;!o&&r["System.Collections.IEnumerator.MoveNext"]();)o=n.Equals(e,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return o}finally{J(r)}}function qo(e,t,n){const r=Ct(n);try{let o=t;for(;r["System.Collections.IEnumerator.MoveNext"]();)o=e(o,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return o}finally{J(r)}}function vn(e,t){qo((n,r)=>{e(r)},void 0,t)}function yf(e,t){qo((n,r)=>(e(n,r),n+1|0),0,t)}function pe(e,t){return Yi(()=>Ct(t),n=>n["System.Collections.IEnumerator.MoveNext"]()?Ee(e(n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{J(n)})}function Qi(e,t){return Xi(()=>Ct(t),(n,r)=>r["System.Collections.IEnumerator.MoveNext"]()?Ee(e(n,r["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{J(n)})}function bf(e){return $(()=>Ed(Wo(e)))}function vf(e,t){return yn(()=>{const n=Ct(t);try{for(let r=1;r<=e;r++)if(!n["System.Collections.IEnumerator.MoveNext"]())throw new Error(Ki+"\\nParameter name: source");return pf(()=>{},n)}catch(r){throw J(n),r}})}function xf(e,t){return Xi(()=>Ct(t),(n,r)=>{if(n<e){if(r["System.Collections.IEnumerator.MoveNext"]())return Ee(r["System.Collections.Generic.IEnumerator`1.get_Current"]());throw new Error(Ki+"\\nParameter name: source")}else return},n=>{J(n)})}function Cf(e,t){return $(()=>Go(pe(e,t)))}const Zt={None:0,LowerFirst:1,SnakeCase:2,SnakeCaseAllCaps:3,KebabCase:4};function Zo(e,t){return e.replace(/[a-z]?[A-Z]/g,n=>n.length===1?n.toLowerCase():n.charAt(0)+t+n.charAt(1).toLowerCase())}function kf(e,t){switch(t){case Zt.LowerFirst:return e.charAt(0).toLowerCase()+e.slice(1);case Zt.SnakeCase:return Zo(e,"_");case Zt.SnakeCaseAllCaps:return Zo(e,"_").toUpperCase();case Zt.KebabCase:return Zo(e,"-");case Zt.None:default:return e}}function Ot(e,t=Zt.None){const n={},r=t;function o(i){throw new Error("Cannot infer key and value of "+String(i))}function s(i,a,c){i=kf(i,a),n[i]=c}for(let i of e){let a=Zt.None;if(i==null&&o(i),i instanceof L){const c=i.cases()[i.tag];i=i.fields.length===0?c:[c].concat(i.fields),a=r}if(Array.isArray(i))switch(i.length){case 0:o(i);break;case 1:s(i[0],a,!0);break;case 2:const c=i[1];s(i[0],a,c);break;default:s(i[0],a,i.slice(1))}else typeof i=="string"?s(i,a,!0):o(i)}return n}function ea(e,t,n){return e.has(t)?(n.contents=e.get(t),!0):!1}function Qn(e,t){if(e.has(t))return e.get(t);throw new Error(`The given key '${t}' was not present in the dictionary.`)}class Sf{constructor(t,n){const r=new Le(te());this.comparer=n,r.contents=this,this.hashMap=new Map([]),this["init@9"]=1;const o=ie(t);try{for(;o["System.Collections.IEnumerator.MoveNext"]();){const s=o["System.Collections.Generic.IEnumerator`1.get_Current"]();Ko(r.contents,s[0],s[1])}}finally{J(o)}}get[Symbol.toStringTag](){return"Dictionary"}toJSON(){const t=this;return Array.from(t)}"System.Collections.IEnumerable.GetEnumerator"(){return ie(this)}GetEnumerator(){return ie(Go(this.hashMap.values()))}[Symbol.iterator](){return zn(ie(this))}"System.Collections.Generic.ICollection`1.Add2B595"(t){Ko(this,t[0],t[1])}"System.Collections.Generic.ICollection`1.Clear"(){ta(this)}"System.Collections.Generic.ICollection`1.Contains2B595"(t){const r=Vr(this,t[0]);let o;switch(r!=null&&me(I(r)[1],t[1])?(o=0,I(r)):o=1,o){case 0:return!0;default:return!1}}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){yf((o,s)=>{yt(t,n+o,s)},this)}"System.Collections.Generic.ICollection`1.get_Count"(){return na(this)|0}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!1}"System.Collections.Generic.ICollection`1.Remove2B595"(t){const n=this,r=Vr(n,t[0]);return r!=null?(me(I(r)[1],t[1])&&Jo(n,t[0]),!0):!1}"System.Collections.Generic.IDictionary`2.Add5BDDA1"(t,n){Ko(this,t,n)}"System.Collections.Generic.IDictionary`2.ContainsKey2B595"(t){return sa(this,t)}"System.Collections.Generic.IDictionary`2.get_Item2B595"(t){return ra(this,t)}"System.Collections.Generic.IDictionary`2.set_Item5BDDA1"(t,n){oa(this,t,n)}"System.Collections.Generic.IDictionary`2.get_Keys"(){const t=this;return Wo($(()=>pe(n=>n[0],t)))}"System.Collections.Generic.IDictionary`2.Remove2B595"(t){return Jo(this,t)}"System.Collections.Generic.IDictionary`2.TryGetValue6DC89625"(t,n){const o=Vr(this,t);if(o!=null){const s=I(o);return n.contents=s[1],!0}else return!1}"System.Collections.Generic.IDictionary`2.get_Values"(){const t=this;return Wo($(()=>pe(n=>n[1],t)))}get size(){return na(this)|0}clear(){ta(this)}delete(t){return Jo(this,t)}entries(){return pe(n=>[n[0],n[1]],this)}get(t){return ra(this,t)}has(t){return sa(this,t)}keys(){return pe(n=>n[0],this)}set(t,n){const r=this;return oa(r,t,n),r}values(){return pe(n=>n[1],this)}forEach(t,n){const r=this;vn(o=>{t(o[1],o[0],r)},r)}}function er(e,t){const n=e.comparer.GetHashCode(t)|0;let r,o=te();return r=[ea(e.hashMap,n,new Le(()=>o,s=>{o=s})),o],r[0]?[!0,n,r[1].findIndex(s=>e.comparer.Equals(t,s[0]))]:[!1,n,-1]}function Vr(e,t){const n=er(e,t);let r;switch(n[0]&&n[2]>-1?r=0:r=1,r){case 0:return Qn(e.hashMap,n[1])[n[2]];default:return}}function ta(e){e.hashMap.clear()}function na(e){let t=0,n=ie(e.hashMap.values());try{for(;n["System.Collections.IEnumerator.MoveNext"]();){const r=n["System.Collections.Generic.IEnumerator`1.get_Current"]();t=t+r.length|0}}finally{J(n)}return t|0}function ra(e,t){const n=Vr(e,t);if(n!=null)return I(n)[1];throw new Error("The item was not found in collection")}function oa(e,t,n){const r=er(e,t);r[0]?r[2]>-1?Qn(e.hashMap,r[1])[r[2]]=[t,n]:Qn(e.hashMap,r[1]).push([t,n]):e.hashMap.set(r[1],[[t,n]])}function Ko(e,t,n){const r=er(e,t);if(r[0]){if(r[2]>-1)throw new Error(Di("An item with the same key has already been added. Key: {0}",t));Qn(e.hashMap,r[1]).push([t,n])}else e.hashMap.set(r[1],[[t,n]])}function sa(e,t){const n=er(e,t);let r;switch(n[0]&&n[2]>-1?r=0:r=1,r){case 0:return!0;default:return!1}}function Jo(e,t){const n=er(e,t);let r;switch(n[0]&&n[2]>-1?r=0:r=1,r){case 0:return Qn(e.hashMap,n[1]).splice(n[2],1),!0;default:return!1}}function Af(e){return new ia(0,[e])}function Ef(e){return new ia(1,[e])}class ia extends L{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Choice1Of2","Choice2Of2"]}}function If(e){return Af(e)}function Tf(e){return Ef(e)}const $f=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,aa=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,Nf=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function Mf(e){function t(r){return r.replace(aa,"$1-$2-$3-$4-$5")}const n=e.trim().toLowerCase();if($f.test(n))return Cd(n,"{","}","(",")");if(aa.test(n))return t(n);if(Nf.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 Df(e,t){try{return t.contents=Mf(e),!0}catch{return!1}}class ca extends L{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["StreamId"]}}function et(e){return e.fields[0]}var Yo;(function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"})(Yo||(Yo={}));function Pf(e,t){const[,n,r,o]=e;return{sign:n||"",prefix:r||"",digits:o,radix:t}}function la(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 Rf(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 Of(e,t){if(t&Yo.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 Ff(e,t,n){const o=/^\s*([\+\-])?(0[xXoObB])?([0-9a-fA-F]+)\s*$/.exec(e.replace(/_/g,""));if(o!=null){const[,,s,i]=o;if(n=n||Of(s,t),!Rf(n).test(i))return Pf(o,n)}return null}function Bf(e,t,n,r,o){const s=Ff(e,t,o);if(s!=null){let i=Number.parseInt(s.sign+s.digits,s.radix);if(!Number.isNaN(i)){const[a,c]=la(!0,r);!n&&s.radix!==10&&i>=a&&i<=c&&(i=i<<32-r>>32-r);const[l,d]=la(n,r);if(i>=l&&i<=d)return i}}throw new Error(`The input string ${e} was not in a correct format.`)}function xn(e,t,n,r,o){try{return o.contents=Bf(e,t,n,r),!0}catch{return!1}}function Lf(e,t){const n=gd(Ai(e),t);if(n!=null)return m(ge($(()=>pe(r=>r||"",n))))}function Vf(e){let t;const n=Lf(".*?@(.*)",e);switch(n!=null?F(n)?t=1:F(m(n))?t=0:t=1:t=1,t){case 0:return e;default:return}}function Cn(e,t){return Pi(t)?new g(1,[_t(wt("%s cannot be null or empty"))(e)]):new g(0,[t])}function Uf(e){const t=Vf(e);if(t!=null){const n=t;return new g(0,[n])}else return new g(1,["Email is not in the correct format"])}function Hf(e){const t=Cn("Name",e);return t.tag===1?new g(1,[t.fields[0]]):new g(0,[Wi(t.fields[0])])}function Ur(e){return Ho(e)}function jf(e){const t=Cn("Website",e);return t.tag===1?new g(1,[t.fields[0]]):new g(0,[new Kd(t.fields[0])])}function ua(e){return e.fields[0]}function zf(e){const t=Cn("FirstName",e);return t.tag===1?new g(1,[t.fields[0]]):new g(0,[new Jd(t.fields[0])])}function da(e){return e.fields[0]}function Gf(e){const t=Cn("LastName",e);return t.tag===1?new g(1,[t.fields[0]]):new g(0,[new Yd(t.fields[0])])}function fa(e){return e.fields[0]}function Wf(e){let t;const n=Cn("Email",e);return t=n.tag===1?new g(1,[n.fields[0]]):Uf(n.fields[0]),t.tag===1?new g(1,[t.fields[0]]):new g(0,[new Xd(t.fields[0])])}function qf(e){const t=Cn("MobilePhone",e);return t.tag===1?new g(1,[t.fields[0]]):new g(0,[new Qd(t.fields[0])])}function ha(e){return e.fields[0]}class Zf extends K{constructor(t,n,r,o){super(),this.FirstName=t,this.LastName=n,this.Email=r,this.MobilePhone=o}}function pa(){return Pt("AccountRegistry.Shared.Primitives.ContactDetails",[],Zf,()=>[["FirstName",z],["LastName",z],["Email",z],["MobilePhone",z]])}function Kf(e){const t=zf(e.FirstName);if(t.tag===1)return new g(1,[t.fields[0]]);{const n=Gf(e.LastName);if(n.tag===1)return new g(1,[n.fields[0]]);{const r=Wf(e.Email);if(r.tag===1)return new g(1,[r.fields[0]]);{const o=qf(e.MobilePhone);return o.tag===1?new g(1,[o.fields[0]]):new g(0,[new ef(t.fields[0],n.fields[0],r.fields[0],o.fields[0])])}}}}function Jf(e){const t=e;if(t!=null)return new tf(t)}function Yf(e){if(e!=null)return e.fields[0]}function q(e){return ct(e)}function Te(e){return Qe(e)}class Xf extends K{constructor(t,n,r,o,s,i,a,c,l){super(),this.BusinessName=t,this.BusinessNumber=n,this.Address1=r,this.Address2=o,this.City=s,this.Postcode=i,this.State=a,this.Phone=c,this.CountryCode=l}}function Qf(){return Pt("AccountRegistry.Shared.Primitives.LegalEntity",[],Xf,()=>[["BusinessName",z],["BusinessNumber",z],["Address1",z],["Address2",be(z)],["City",z],["Postcode",z],["State",be(z)],["Phone",z],["CountryCode",be(z)]])}let eh=class extends K{constructor(t,n,r,o,s){super(),this.StreamId=t,this.Name=n,this.Website=r,this.ContactDetails=o,this.Notes=s}};function th(){return Pt("AccountRegistry.Shared.AdminApi.Partner",[],eh,()=>[["StreamId",z],["Name",z],["Website",z],["ContactDetails",be(pa())],["Notes",be(z)]])}class nh extends K{constructor(t,n,r,o,s,i,a,c,l){super(),this.StreamId=t,this.PartnerId=n,this.Name=r,this.Website=o,this.ContactDetails=s,this.Notes=i,this.LegalEntity=a,this.ExternalId=c,this.ChannelId=l}}function rh(){return Pt("AccountRegistry.Shared.AdminApi.Account",[],nh,()=>[["StreamId",z],["PartnerId",z],["Name",z],["Website",z],["ContactDetails",be(pa())],["Notes",be(z)],["LegalEntity",be(Qf())],["ExternalId",be(z)],["ChannelId",be(z)]])}class oh extends K{constructor(t,n,r,o,s,i,a,c,l){super(),this.AccountId=t,this.Name=n,this.Contact=r,this.ContactMobilePhone=o,this.Website=s,this.BusinessName=i,this.BusinessNumber=a,this.ExternalId=c,this.ChannelId=l}}function sh(){return Pt("AccountRegistry.Shared.AdminApi.AccountLookupItem",[],oh,()=>[["AccountId",z],["Name",z],["Contact",be(z)],["ContactMobilePhone",be(z)],["Website",z],["BusinessName",be(z)],["BusinessNumber",be(z)],["ExternalId",be(z)],["ChannelId",be(z)]])}class ma extends K{constructor(t,n){super(),this.Accounts=t,this.Token=n}}function ih(){return Pt("AccountRegistry.Shared.AdminApi.AccountLookup",[],ma,()=>[["Accounts",No(sh())],["Token",be(z)]])}class ah extends K{constructor(t,n){super(),this.PartnerId=t,this.AccountId=n}}function ch(){return Pt("AccountRegistry.Shared.AdminApi.FindAccountResponse",[],ah,()=>[["PartnerId",z],["AccountId",z]])}var tr,G,ga,Kt,wa,_a,Xo,Qo,es,ts,ya,nr={},ba=[],lh=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Hr=Array.isArray;function kt(e,t){for(var n in t)e[n]=t[n];return e}function va(e){var t=e.parentNode;t&&t.removeChild(e)}function h(e,t,n){var r,o,s,i={};for(s in t)s=="key"?r=t[s]:s=="ref"?o=t[s]:i[s]=t[s];if(arguments.length>2&&(i.children=arguments.length>3?tr.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(s in e.defaultProps)i[s]===void 0&&(i[s]=e.defaultProps[s]);return rr(e,i,r,o,null)}function rr(e,t,n,r,o){var s={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:o??++ga,__i:-1,__u:0};return o==null&&G.vnode!=null&&G.vnode(s),s}function xa(){return{current:null}}function $e(e){return e.children}function tt(e,t){this.props=e,this.context=t}function Jt(e,t){if(t==null)return e.__?Jt(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"?Jt(e):null}function Ca(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 Ca(e)}}function ns(e){(!e.__d&&(e.__d=!0)&&Kt.push(e)&&!jr.__r++||wa!==G.debounceRendering)&&((wa=G.debounceRendering)||_a)(jr)}function jr(){var e,t,n,r,o,s,i,a;for(Kt.sort(Xo);e=Kt.shift();)e.__d&&(t=Kt.length,r=void 0,s=(o=(n=e).__v).__e,i=[],a=[],n.__P&&((r=kt({},o)).__v=o.__v+1,G.vnode&&G.vnode(r),rs(n.__P,r,o,n.__n,n.__P.namespaceURI,32&o.__u?[s]:null,i,s??Jt(o),!!(32&o.__u),a),r.__v=o.__v,r.__.__k[r.__i]=r,Ia(i,r,a),r.__e!=s&&Ca(r)),Kt.length>t&&Kt.sort(Xo));jr.__r=0}function ka(e,t,n,r,o,s,i,a,c,l,d){var u,p,f,w,y,_=r&&r.__k||ba,C=t.length;for(n.__d=c,uh(n,t,_),c=n.__d,u=0;u<C;u++)(f=n.__k[u])!=null&&typeof f!="boolean"&&typeof f!="function"&&(p=f.__i===-1?nr:_[f.__i]||nr,f.__i=u,rs(e,f,p,o,s,i,a,c,l,d),w=f.__e,f.ref&&p.ref!=f.ref&&(p.ref&&os(p.ref,null,f),d.push(f.ref,f.__c||w,f)),y==null&&w!=null&&(y=w),65536&f.__u||p.__k===f.__k?(c&&!c.isConnected&&(c=Jt(p)),c=Sa(f,c,e)):typeof f.type=="function"&&f.__d!==void 0?c=f.__d:w&&(c=w.nextSibling),f.__d=void 0,f.__u&=-196609);n.__d=c,n.__e=y}function uh(e,t,n){var r,o,s,i,a,c=t.length,l=n.length,d=l,u=0;for(e.__k=[],r=0;r<c;r++)i=r+u,(o=e.__k[r]=(o=t[r])==null||typeof o=="boolean"||typeof o=="function"?null:typeof o=="string"||typeof o=="number"||typeof o=="bigint"||o.constructor==String?rr(null,o,null,null,null):Hr(o)?rr($e,{children:o},null,null,null):o.constructor===void 0&&o.__b>0?rr(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)!=null?(o.__=e,o.__b=e.__b+1,a=dh(o,n,i,d),o.__i=a,s=null,a!==-1&&(d--,(s=n[a])&&(s.__u|=131072)),s==null||s.__v===null?(a==-1&&u--,typeof o.type!="function"&&(o.__u|=65536)):a!==i&&(a===i+1?u++:a>i?d>c-i?u+=a-i:u--:a<i?a==i-1&&(u=a-i):u=0,a!==r+u&&(o.__u|=65536))):(s=n[i])&&s.key==null&&s.__e&&!(131072&s.__u)&&(s.__e==e.__d&&(e.__d=Jt(s)),ss(s,s,!1),n[i]=null,d--);if(d)for(r=0;r<l;r++)(s=n[r])!=null&&!(131072&s.__u)&&(s.__e==e.__d&&(e.__d=Jt(s)),ss(s,s))}function Sa(e,t,n){var r,o;if(typeof e.type=="function"){for(r=e.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=e,t=Sa(r[o],t,n));return t}e.__e!=t&&(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"||(Hr(e)?e.some(function(n){St(n,t)}):t.push(e)),t}function dh(e,t,n,r){var o=e.key,s=e.type,i=n-1,a=n+1,c=t[n];if(c===null||c&&o==c.key&&s===c.type&&!(131072&c.__u))return n;if(r>(c!=null&&!(131072&c.__u)?1:0))for(;i>=0||a<t.length;){if(i>=0){if((c=t[i])&&!(131072&c.__u)&&o==c.key&&s===c.type)return i;i--}if(a<t.length){if((c=t[a])&&!(131072&c.__u)&&o==c.key&&s===c.type)return a;a++}}return-1}function Aa(e,t,n){t[0]==="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||lh.test(t)?n:n+"px"}function zr(e,t,n,r,o){var s;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||Aa(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||Aa(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")s=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+s]=n,n?r?n.u=r.u:(n.u=Qo,e.addEventListener(t,s?ts:es,s)):e.removeEventListener(t,s?ts:es,s);else{if(o=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!=="-"?e.removeAttribute(t):e.setAttribute(t,n))}}function Ea(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=Qo++;else if(t.t<n.u)return;return n(G.event?G.event(t):t)}}}function rs(e,t,n,r,o,s,i,a,c,l){var d,u,p,f,w,y,_,C,x,A,O,H,Y,ue,Se,se=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(c=!!(32&n.__u),s=[a=t.__e=n.__e]),(d=G.__b)&&d(t);e:if(typeof se=="function")try{if(C=t.props,x=(d=se.contextType)&&r[d.__c],A=d?x?x.props.value:d.__:r,n.__c?_=(u=t.__c=n.__c).__=u.__E:("prototype"in se&&se.prototype.render?t.__c=u=new se(C,A):(t.__c=u=new tt(C,A),u.constructor=se,u.render=hh),x&&x.sub(u),u.props=C,u.state||(u.state={}),u.context=A,u.__n=r,p=u.__d=!0,u.__h=[],u._sb=[]),u.__s==null&&(u.__s=u.state),se.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=kt({},u.__s)),kt(u.__s,se.getDerivedStateFromProps(C,u.__s))),f=u.props,w=u.state,u.__v=t,p)se.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(se.getDerivedStateFromProps==null&&C!==f&&u.componentWillReceiveProps!=null&&u.componentWillReceiveProps(C,A),!u.__e&&(u.shouldComponentUpdate!=null&&u.shouldComponentUpdate(C,u.__s,A)===!1||t.__v===n.__v)){for(t.__v!==n.__v&&(u.props=C,u.state=u.__s,u.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(Ae){Ae&&(Ae.__=t)}),O=0;O<u._sb.length;O++)u.__h.push(u._sb[O]);u._sb=[],u.__h.length&&i.push(u);break e}u.componentWillUpdate!=null&&u.componentWillUpdate(C,u.__s,A),u.componentDidUpdate!=null&&u.__h.push(function(){u.componentDidUpdate(f,w,y)})}if(u.context=A,u.props=C,u.__P=e,u.__e=!1,H=G.__r,Y=0,"prototype"in se&&se.prototype.render){for(u.state=u.__s,u.__d=!1,H&&H(t),d=u.render(u.props,u.state,u.context),ue=0;ue<u._sb.length;ue++)u.__h.push(u._sb[ue]);u._sb=[]}else do u.__d=!1,H&&H(t),d=u.render(u.props,u.state,u.context),u.state=u.__s;while(u.__d&&++Y<25);u.state=u.__s,u.getChildContext!=null&&(r=kt(kt({},r),u.getChildContext())),p||u.getSnapshotBeforeUpdate==null||(y=u.getSnapshotBeforeUpdate(f,w)),ka(e,Hr(Se=d!=null&&d.type===$e&&d.key==null?d.props.children:d)?Se:[Se],t,n,r,o,s,i,a,c,l),u.base=t.__e,t.__u&=-161,u.__h.length&&i.push(u),_&&(u.__E=u.__=null)}catch(Ae){t.__v=null,c||s!=null?(t.__e=a,t.__u|=c?160:32,s[s.indexOf(a)]=null):(t.__e=n.__e,t.__k=n.__k),G.__e(Ae,t,n)}else s==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=fh(n.__e,t,n,r,o,s,i,c,l);(d=G.diffed)&&d(t)}function Ia(e,t,n){t.__d=void 0;for(var r=0;r<n.length;r++)os(n[r],n[++r],n[++r]);G.__c&&G.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(s){s.call(o)})}catch(s){G.__e(s,o.__v)}})}function fh(e,t,n,r,o,s,i,a,c){var l,d,u,p,f,w,y,_=n.props,C=t.props,x=t.type;if(x==="svg"?o="http://www.w3.org/2000/svg":x==="math"?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),s!=null){for(l=0;l<s.length;l++)if((f=s[l])&&"setAttribute"in f==!!x&&(x?f.localName===x:f.nodeType===3)){e=f,s[l]=null;break}}if(e==null){if(x===null)return document.createTextNode(C);e=document.createElementNS(o,x,C.is&&C),s=null,a=!1}if(x===null)_===C||a&&e.data===C||(e.data=C);else{if(s=s&&tr.call(e.childNodes),_=n.props||nr,!a&&s!=null)for(_={},l=0;l<e.attributes.length;l++)_[(f=e.attributes[l]).name]=f.value;for(l in _)if(f=_[l],l!="children"){if(l=="dangerouslySetInnerHTML")u=f;else if(l!=="key"&&!(l in C)){if(l=="value"&&"defaultValue"in C||l=="checked"&&"defaultChecked"in C)continue;zr(e,l,null,f,o)}}for(l in C)f=C[l],l=="children"?p=f:l=="dangerouslySetInnerHTML"?d=f:l=="value"?w=f:l=="checked"?y=f:l==="key"||a&&typeof f!="function"||_[l]===f||zr(e,l,f,_[l],o);if(d)a||u&&(d.__html===u.__html||d.__html===e.innerHTML)||(e.innerHTML=d.__html),t.__k=[];else if(u&&(e.innerHTML=""),ka(e,Hr(p)?p:[p],t,n,r,x==="foreignObject"?"http://www.w3.org/1999/xhtml":o,s,i,s?s[0]:n.__k&&Jt(n,0),a,c),s!=null)for(l=s.length;l--;)s[l]!=null&&va(s[l]);a||(l="value",w!==void 0&&(w!==e[l]||x==="progress"&&!w||x==="option"&&w!==_[l])&&zr(e,l,w,_[l],o),l="checked",y!==void 0&&y!==e[l]&&zr(e,l,y,_[l],o))}return e}function os(e,t,n){try{typeof e=="function"?e(t):e.current=t}catch(r){G.__e(r,n)}}function ss(e,t,n){var r,o;if(G.unmount&&G.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||os(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(s){G.__e(s,t)}r.base=r.__P=null}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&ss(r[o],t,n||typeof e.type!="function");n||e.__e==null||va(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function hh(e,t,n){return this.constructor(e,n)}function Ft(e,t,n){var r,o,s,i;G.__&&G.__(e,t),o=(r=typeof n=="function")?null:n&&n.__k||t.__k,s=[],i=[],rs(t,e=(!r&&n||t).__k=h($e,null,[e]),o||nr,nr,t.namespaceURI,!r&&n?[n]:o?null:t.firstChild?tr.call(t.childNodes):null,s,!r&&n?n:o?o.__e:t.firstChild,r,i),Ia(s,e,i)}function is(e,t){Ft(e,t,is)}function as(e,t,n){var r,o,s,i,a=kt({},e.props);for(s in e.type&&e.type.defaultProps&&(i=e.type.defaultProps),t)s=="key"?r=t[s]:s=="ref"?o=t[s]:a[s]=t[s]===void 0&&i!==void 0?i[s]:t[s];return arguments.length>2&&(a.children=arguments.length>3?tr.call(arguments,2):n),rr(e.type,a,r||e.key,o||e.ref,null)}function or(e,t){var n={__c:t="__cC"+ya++,__:e,Consumer:function(r,o){return r.children(o)},Provider:function(r){var o,s;return this.getChildContext||(o=[],(s={})[t]=this,this.getChildContext=function(){return s},this.shouldComponentUpdate=function(i){this.props.value!==i.value&&o.some(function(a){a.__e=!0,ns(a)})},this.sub=function(i){o.push(i);var a=i.componentWillUnmount;i.componentWillUnmount=function(){o.splice(o.indexOf(i),1),a&&a.call(i)}}),r.children}};return n.Provider.__=n.Consumer.contextType=n}tr=ba.slice,G={__e:function(e,t,n,r){for(var o,s,i;t=t.__;)if((o=t.__c)&&!o.__)try{if((s=o.constructor)&&s.getDerivedStateFromError!=null&&(o.setState(s.getDerivedStateFromError(e)),i=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,r||{}),i=o.__d),i)return o.__E=o}catch(a){e=a}throw e}},ga=0,tt.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=kt({},this.state),typeof e=="function"&&(e=e(kt({},n),this.props)),e&&kt(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),ns(this))},tt.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),ns(this))},tt.prototype.render=$e,Kt=[],_a=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Xo=function(e,t){return e.__v.__b-t.__v.__b},jr.__r=0,Qo=0,es=Ea(!1),ts=Ea(!0),ya=0;var At,X,cs,Ta,kn=0,$a=[],Gr=[],ce=G,Na=ce.__b,Ma=ce.__r,Da=ce.diffed,Pa=ce.__c,Ra=ce.unmount,Oa=ce.__;function Yt(e,t){ce.__h&&ce.__h(X,e,kn||t),kn=0;var n=X.__H||(X.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:Gr}),n.__[e]}function Je(e){return kn=1,Wr(Ba,e)}function Wr(e,t,n){var r=Yt(At++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Ba(void 0,t),function(a){var c=r.__N?r.__N[0]:r.__[0],l=r.t(c,a);c!==l&&(r.__N=[l,r.__[1]],r.__c.setState({}))}],r.__c=X,!X.u)){var o=function(a,c,l){if(!r.__c.__H)return!0;var d=r.__c.__H.__.filter(function(p){return!!p.__c});if(d.every(function(p){return!p.__N}))return!s||s.call(this,a,c,l);var u=!1;return d.forEach(function(p){if(p.__N){var f=p.__[0];p.__=p.__N,p.__N=void 0,f!==p.__[0]&&(u=!0)}}),!(!u&&r.__c.props===a)&&(!s||s.call(this,a,c,l))};X.u=!0;var s=X.shouldComponentUpdate,i=X.componentWillUpdate;X.componentWillUpdate=function(a,c,l){if(this.__e){var d=s;s=void 0,o(a,c,l),s=d}i&&i.call(this,a,c,l)},X.shouldComponentUpdate=o}return r.__N||r.__}function ke(e,t){var n=Yt(At++,3);!ce.__s&&hs(n.__H,t)&&(n.__=e,n.i=t,X.__H.__h.push(n))}function Bt(e,t){var n=Yt(At++,4);!ce.__s&&hs(n.__H,t)&&(n.__=e,n.i=t,X.__h.push(n))}function Re(e){return kn=5,Xt(function(){return{current:e}},[])}function ls(e,t,n){kn=6,Bt(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 Xt(e,t){var n=Yt(At++,7);return hs(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function Qt(e,t){return kn=8,Xt(function(){return e},t)}function en(e){var t=X.context[e.__c],n=Yt(At++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(X)),t.props.value):e.__}function us(e,t){ce.useDebugValue&&ce.useDebugValue(t?t(e):e)}function ph(e){var t=Yt(At++,10),n=Je();return t.__=e,X.componentDidCatch||(X.componentDidCatch=function(r,o){t.__&&t.__(r,o),n[1](r)}),[n[0],function(){n[1](void 0)}]}function ds(){var e=Yt(At++,11);if(!e.__){for(var t=X.__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 mh(){for(var e;e=$a.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(qr),e.__H.__h.forEach(fs),e.__H.__h=[]}catch(t){e.__H.__h=[],ce.__e(t,e.__v)}}ce.__b=function(e){X=null,Na&&Na(e)},ce.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Oa&&Oa(e,t)},ce.__r=function(e){Ma&&Ma(e),At=0;var t=(X=e.__c).__H;t&&(cs===X?(t.__h=[],X.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=Gr,n.__N=n.i=void 0})):(t.__h.forEach(qr),t.__h.forEach(fs),t.__h=[],At=0)),cs=X},ce.diffed=function(e){Da&&Da(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&($a.push(t)!==1&&Ta===ce.requestAnimationFrame||((Ta=ce.requestAnimationFrame)||gh)(mh)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==Gr&&(n.__=n.__V),n.i=void 0,n.__V=Gr})),cs=X=null},ce.__c=function(e,t){t.some(function(n){try{n.__h.forEach(qr),n.__h=n.__h.filter(function(r){return!r.__||fs(r)})}catch(r){t.some(function(o){o.__h&&(o.__h=[])}),t=[],ce.__e(r,n.__v)}}),Pa&&Pa(e,t)},ce.unmount=function(e){Ra&&Ra(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{qr(r)}catch(o){t=o}}),n.__H=void 0,t&&ce.__e(t,n.__v))};var Fa=typeof requestAnimationFrame=="function";function gh(e){var t,n=function(){clearTimeout(r),Fa&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Fa&&(t=requestAnimationFrame(n))}function qr(e){var t=X,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),X=t}function fs(e){var t=X;e.__c=e.__(),X=t}function hs(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function Ba(e,t){return typeof t=="function"?t(e):t}function La(e,t){for(var n in t)e[n]=t[n];return e}function ps(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 Zr(e,t){this.props=e,this.context=t}function Va(e,t){function n(o){var s=this.props.ref,i=s==o.ref;return!i&&s&&(s.call?s(null):s.current=null),t?!t(this.props,o)||!i:ps(this.props,o)}function r(o){return this.shouldComponentUpdate=n,h(e,o)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(Zr.prototype=new tt).isPureReactComponent=!0,Zr.prototype.shouldComponentUpdate=function(e,t){return ps(this.props,e)||ps(this.state,t)};var Ua=G.__b;G.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Ua&&Ua(e)};var wh=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Kr(e){function t(n){var r=La({},n);return delete r.ref,e(r,n.ref||null)}return t.$$typeof=wh,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Ha=function(e,t){return e==null?null:St(St(e).map(t))},ja={map:Ha,forEach:Ha,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},_h=G.__e;G.__e=function(e,t,n,r){if(e.then){for(var o,s=t;s=s.__;)if((o=s.__c)&&o.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t)}_h(e,t,n,r)};var za=G.unmount;function Ga(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=La({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return Ga(r,t,n)})),e}function Wa(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return Wa(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 sr(){this.__u=0,this.t=null,this.__b=null}function qa(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Za(e){var t,n,r;function o(s){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,s)}return o.displayName="Lazy",o.__f=!0,o}function Sn(){this.u=null,this.o=null}G.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),za&&za(e)},(sr.prototype=new tt).__c=function(e,t){var n=t.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var o=qa(r.__v),s=!1,i=function(){s||(s=!0,n.__R=null,o?o(a):a())};n.__R=i;var a=function(){if(!--r.__u){if(r.state.__a){var c=r.state.__a;r.__v.__k[0]=Wa(c,c.__c.__P,c.__c.__O)}var l;for(r.setState({__a:r.__b=null});l=r.t.pop();)l.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(i,i)},sr.prototype.componentWillUnmount=function(){this.t=[]},sr.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]=Ga(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&h($e,null,e.fallback);return o&&(o.__u&=-33),[h($e,null,t.__a?null:e.children),o]};var Ka=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 yh(e){return this.getChildContext=function(){return e.context},e.children}function bh(e){var t=this,n=e.i;t.componentWillUnmount=function(){Ft(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:[],appendChild:function(r){this.childNodes.push(r),t.i.appendChild(r)},insertBefore:function(r,o){this.childNodes.push(r),t.i.appendChild(r)},removeChild:function(r){this.childNodes.splice(this.childNodes.indexOf(r)>>>1,1),t.i.removeChild(r)}}),Ft(h(yh,{context:t.context},e.__v),t.l)}function Ja(e,t){var n=h(bh,{__v:e,i:t});return n.containerInfo=t,n}(Sn.prototype=new tt).__a=function(e){var t=this,n=qa(t.__v),r=t.o.get(e);return r[0]++,function(o){var s=function(){t.props.revealOrder?(r.push(o),Ka(t,e,r)):o()};n?n(s):s()}},Sn.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},Sn.prototype.componentDidUpdate=Sn.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){Ka(e,n,t)})};var Ya=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,vh=/^(?: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]/,xh=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Ch=/[A-Z0-9]/g,kh=typeof document<"u",Sh=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function Xa(e,t,n){return t.__k==null&&(t.textContent=""),Ft(e,t),typeof n=="function"&&n(),e?e.__c:null}function Qa(e,t,n){return is(e,t),typeof n=="function"&&n(),e?e.__c:null}tt.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(tt.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var ec=G.event;function Ah(){}function Eh(){return this.cancelBubble}function Ih(){return this.defaultPrevented}G.event=function(e){return ec&&(e=ec(e)),e.persist=Ah,e.isPropagationStopped=Eh,e.isDefaultPrevented=Ih,e.nativeEvent=e};var ms,Th={enumerable:!1,configurable:!0,get:function(){return this.class}},tc=G.vnode;G.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,r=t.type,o={};for(var s in n){var i=n[s];if(!(s==="value"&&"defaultValue"in n&&i==null||kh&&s==="children"&&r==="noscript"||s==="class"||s==="className")){var a=s.toLowerCase();s==="defaultValue"&&"value"in n&&n.value==null?s="value":s==="download"&&i===!0?i="":a==="translate"&&i==="no"?i=!1:a==="ondoubleclick"?s="ondblclick":a!=="onchange"||r!=="input"&&r!=="textarea"||Sh(n.type)?a==="onfocus"?s="onfocusin":a==="onblur"?s="onfocusout":xh.test(s)?s=a:r.indexOf("-")===-1&&vh.test(s)?s=s.replace(Ch,"-$&").toLowerCase():i===null&&(i=void 0):a=s="oninput",a==="oninput"&&o[s=a]&&(s="oninputCapture"),o[s]=i}}r=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=St(n.children).forEach(function(c){c.props.selected=o.value.indexOf(c.props.value)!=-1})),r=="select"&&o.defaultValue!=null&&(o.value=St(n.children).forEach(function(c){c.props.selected=o.multiple?o.defaultValue.indexOf(c.props.value)!=-1:o.defaultValue==c.props.value})),n.class&&!n.className?(o.class=n.class,Object.defineProperty(o,"className",Th)):(n.className&&!n.class||n.class&&n.className)&&(o.class=o.className=n.className),t.props=o}(e),e.$$typeof=Ya,tc&&tc(e)};var nc=G.__r;G.__r=function(e){nc&&nc(e),ms=e.__c};var rc=G.diffed;G.diffed=function(e){rc&&rc(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),ms=null};var oc={ReactCurrentDispatcher:{current:{readContext:function(e){return ms.__n[e.__c].props.value},useCallback:Qt,useContext:en,useDebugValue:us,useDeferredValue:_s,useEffect:ke,useId:ds,useImperativeHandle:ls,useInsertionEffect:bs,useLayoutEffect:Bt,useMemo:Xt,useReducer:Wr,useRef:Re,useState:Je,useSyncExternalStore:vs,useTransition:ys}}},$h="17.0.2";function sc(e){return h.bind(null,e)}function An(e){return!!e&&e.$$typeof===Ya}function ic(e){return An(e)&&e.type===$e}function ac(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function gs(e){return An(e)?as.apply(null,arguments):e}function cc(e){return!!e.__k&&(Ft(null,e),!0)}function lc(e){return e&&(e.base||e.nodeType===1&&e)||null}var uc=function(e,t){return e(t)},dc=function(e,t){return e(t)},fc=$e;function ws(e){e()}function _s(e){return e}function ys(){return[!1,ws]}var bs=Bt,hc=An;function vs(e,t){var n=t(),r=Je({h:{__:n,v:t}}),o=r[0].h,s=r[1];return Bt(function(){o.__=n,o.v=t,xs(o)&&s({h:o})},[e,n,t]),ke(function(){return xs(o)&&s({h:o}),e(function(){xs(o)&&s({h:o})})},[e]),n}function xs(e){var t,n,r=e.v,o=e.__;try{var s=r();return!((t=o)===(n=s)&&(t!==0||1/t==1/n)||t!=t&&n!=n)}catch{return!0}}var je={useState:Je,useId:ds,useReducer:Wr,useEffect:ke,useLayoutEffect:Bt,useInsertionEffect:bs,useTransition:ys,useDeferredValue:_s,useSyncExternalStore:vs,startTransition:ws,useRef:Re,useImperativeHandle:ls,useMemo:Xt,useCallback:Qt,useContext:en,useDebugValue:us,version:"17.0.2",Children:ja,render:Xa,hydrate:Qa,unmountComponentAtNode:cc,createPortal:Ja,createElement:h,createContext:or,createFactory:sc,cloneElement:gs,createRef:xa,Fragment:$e,isValidElement:An,isElement:hc,isFragment:ic,isMemo:ac,findDOMNode:lc,Component:tt,PureComponent:Zr,memo:Va,forwardRef:Kr,flushSync:dc,unstable_batchedUpdates:uc,StrictMode:fc,Suspense:sr,SuspenseList:Sn,lazy:Za,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:oc};const Cs=Object.freeze(Object.defineProperty({__proto__:null,Children:ja,Component:tt,Fragment:$e,PureComponent:Zr,StrictMode:fc,Suspense:sr,SuspenseList:Sn,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:oc,cloneElement:gs,createContext:or,createElement:h,createFactory:sc,createPortal:Ja,createRef:xa,default:je,findDOMNode:lc,flushSync:dc,forwardRef:Kr,hydrate:Qa,isElement:hc,isFragment:ic,isMemo:ac,isValidElement:An,lazy:Za,memo:Va,render:Xa,startTransition:ws,unmountComponentAtNode:cc,unstable_batchedUpdates:uc,useCallback:Qt,useContext:en,useDebugValue:us,useDeferredValue:_s,useEffect:ke,useErrorBoundary:ph,useId:ds,useImperativeHandle:ls,useInsertionEffect:bs,useLayoutEffect:Bt,useMemo:Xt,useReducer:Wr,useRef:Re,useState:Je,useSyncExternalStore:vs,useTransition:ys,version:$h},Symbol.toStringTag,{value:"Module"})),Nh=e=>{ke(()=>{const t=e();return()=>{t.Dispose()}})},Mh=(e,t)=>{ke(()=>{const n=e();return()=>{n.Dispose()}},t)},Dh=e=>{Bt(()=>{const t=e();return()=>{t.Dispose()}})},T=je,Ph=Nh,pc=Mh,Rh=Dh;function Oh(e,t,n,r){const o=T.memo(e,ne(Ie(Ze(Dt,n),te())));return vn(s=>{e.displayName=s},Lo(t)),s=>{const i=Fh(r,s);return T.createElement(o,i)}}function Fh(e,t){if(e==null)return t;{const n=e;return t.key=n(t),t}}function ir(e){return{Dispose(){e()}}}function Bh(e,t){pc(e,t)}function Lh(e){Rh(t=>(e(),ir(()=>{})))}function ks(e){const t=T.useRef(!1);Uh(()=>{t.current||(t.current=!0,e())},[])}function mc(e){const t=T.useRef(void 0),n=T.useRef(!1),r=T.useRef(!1);n.current&&(r.current=!0),Bh(()=>{let o;return n.current?o=void 0:(n.current=!0,t.current=Ee(e()),o=r.current?t.current:void 0),{Dispose(){vn(s=>{J(s)},Lo(o))}}},[])}function Vh(e){Ph(t=>(e(),ir(()=>{})))}function Uh(e,t){pc(n=>(e(),ir(()=>{})),t)}function Hh(e,t){const n=Ie(t,[]);return T.useCallback(e,n)}function gc(e){return T.useRef(e)}function jh(e,t,n){return Oh(e,void 0,Bo(n),Bo(t))}function zh(e,t){const n=T.createContext(Ie(t,void 0));return vn(r=>{n.displayName=r},Lo(e)),n}function Gh(e,t,n){return T.createElement(e.Provider,{value:t},...n)}function En(e){return T.useContext(e)}function wc(e){const t=gc(e),n=Hh(r=>t.current(r),[]);return Lh(()=>{t.current=e}),n}function ar(e){return T.useState(e)}class _c{constructor(t=!1){this._id=0,this._cancelled=t,this._listeners=new Map}get isCancelled(){return this._cancelled}cancel(){if(!this._cancelled){this._cancelled=!0;for(const[,t]of this._listeners)t()}}addListener(t){const n=this._id;return this._listeners.set(this._id++,t),n}removeListener(t){return this._listeners.delete(t)}register(t,n){const r=this,o=this.addListener(n==null?t:()=>t(n));return{Dispose(){r.removeListener(o)}}}Dispose(){}}class Jr extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,Jr.prototype)}}class Ss{static get maxTrampolineCallCount(){return 2e3}constructor(){this.callCount=0}incrementAndCheck(){return this.callCount++>Ss.maxTrampolineCallCount}hijack(t){this.callCount=0,setTimeout(t,0)}}function Et(e){return t=>{if(t.cancelToken.isCancelled)t.onCancel(new Jr);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 Wh(e,t){return Et(n=>{e({onSuccess:r=>{try{t(r)(n)}catch(o){n.onError(Sr(o))}},onError:n.onError,onCancel:n.onCancel,cancelToken:n.cancelToken,trampoline:n.trampoline})})}function qh(e){return Et(t=>t.onSuccess(e))}class Zh{Bind(t,n){return Wh(t,n)}Combine(t,n){return this.Bind(t,()=>n)}Delay(t){return Et(n=>t()(n))}For(t,n){const r=t[Symbol.iterator]();let o=r.next();return this.While(()=>!o.done,this.Delay(()=>{const s=n(o.value);return o=r.next(),s}))}Return(t){return qh(t)}ReturnFrom(t){return t}TryFinally(t,n){return Et(r=>{t({onSuccess:o=>{n(),r.onSuccess(o)},onError:o=>{n(),r.onError(o)},onCancel:o=>{n(),r.onCancel(o)},cancelToken:r.cancelToken,trampoline:r.trampoline})})}TryWith(t,n){return Et(r=>{t({onSuccess:r.onSuccess,onCancel:r.onCancel,cancelToken:r.cancelToken,trampoline:r.trampoline,onError:o=>{try{n(o)(r)}catch(s){r.onError(Sr(s))}}})})}Using(t,n){return this.TryFinally(n(t),()=>t.Dispose())}While(t,n){return t()?this.Bind(n,()=>this.While(t,n)):this.Return(void 0)}Zero(){return Et(t=>t.onSuccess(void 0))}}const V=new Zh;function As(e){}function Kh(e){return new _c(!1)}function Jh(e){e.cancel()}function Yh(e){return e!=null&&e.isCancelled}const Xh=new _c;function Qh(e){return Et(t=>{e({onSuccess:n=>t.onSuccess(If(n)),onError:n=>t.onSuccess(Tf(n)),onCancel:t.onCancel,cancelToken:t.cancelToken,trampoline:t.trampoline})})}function ep(e){return Et(t=>e([t.onSuccess,t.onError,t.onCancel]))}function tp(e){return Et(t=>{let n;const r=setTimeout(()=>{t.cancelToken.removeListener(n),t.onSuccess(void 0)},e);n=t.cancelToken.addListener(()=>{clearTimeout(r),t.onCancel(new Jr)})})}function np(e,t){return rp(e,t)}function In(e,t){return np(e,t)}function rp(e,t,n,r,o){typeof t!="function"&&(o=t,t=void 0);const s=new Ss;e({onSuccess:t||As,onError:As,onCancel:As,cancelToken:o||Xh,trampoline:s})}class yc{constructor(t,n){this.k=t,this.v=n}}function Yr(e,t){return new yc(e,t)}function Oe(e){return e.k}function ze(e){return e.v}class we extends yc{constructor(t,n,r,o,s){super(t,n),this.left=r,this.right=o,this.h=s|0}}function Xr(e,t,n,r,o){return new we(e,t,n,r,o)}function Fe(e){return e.left}function Be(e){return e.right}function tn(e){return e.h}function Zw(){}function bc(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=I(r);if(o instanceof we){const s=o;e=bc(n+1,Fe(s)),t=Be(s);continue e}else return n+1|0}else return n|0}}function op(e){return bc(0,e)}function nt(e,t,n,r){let o,s,i;const a=e;if(a!=null){const u=I(a);i=u instanceof we?(o=u,tn(o)):1}else i=0;let c;const l=r;if(l!=null){const u=I(l);c=u instanceof we?(s=u,tn(s)):1}else c=0;const d=(i<c?c:i)|0;return d===0?Yr(t,n):Xr(t,n,e,r,d+1)}function vc(e,t,n,r){let o,s,i,a,c,l,d,u,p;const f=e;if(f!=null){const _=I(f);p=_ instanceof we?(o=_,tn(o)):1}else p=0;let w;const y=r;if(y!=null){const _=I(y);w=_ instanceof we?(s=_,tn(s)):1}else w=0;if(w>p+2){const _=I(r);if(_ instanceof we){const C=_;if(i=Fe(C),(i!=null?(a=I(i),a instanceof we?(c=a,tn(c)):1):0)>p+1){const x=I(Fe(C));if(x instanceof we){const A=x;return nt(nt(e,t,n,Fe(A)),Oe(A),ze(A),nt(Be(A),Oe(C),ze(C),Be(C)))}else throw new Error("internal error: Map.rebalance")}else return nt(nt(e,t,n,Fe(C)),Oe(C),ze(C),Be(C))}else throw new Error("internal error: Map.rebalance")}else if(p>w+2){const _=I(e);if(_ instanceof we){const C=_;if(l=Be(C),(l!=null?(d=I(l),d instanceof we?(u=d,tn(u)):1):0)>w+1){const x=I(Be(C));if(x instanceof we){const A=x;return nt(nt(Fe(C),Oe(C),ze(C),Fe(A)),Oe(A),ze(A),nt(Be(A),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return nt(Fe(C),Oe(C),ze(C),nt(Be(C),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return nt(e,t,n,r)}function Tn(e,t,n,r){if(r!=null){const o=I(r),s=e.Compare(t,Oe(o))|0;if(o instanceof we){const i=o;return s<0?vc(Tn(e,t,n,Fe(i)),Oe(i),ze(i),Be(i)):s===0?Xr(t,n,Fe(i),Be(i),tn(i)):vc(Fe(i),Oe(i),ze(i),Tn(e,t,n,Be(i)))}else return s<0?Xr(t,n,void 0,r,2):s===0?Yr(t,n):Xr(t,n,r,void 0,2)}else return Yr(t,n)}function xc(e,t,n){e:for(;;){const r=e,o=t,s=n;if(s!=null){const i=I(s),a=r.Compare(o,Oe(i))|0;if(a===0)return Ee(ze(i));if(i instanceof we){const c=i;e=r,t=o,n=a<0?Fe(c):Be(c);continue e}else return}else return}}function sp(e,t,n){const r=xc(e,t,n);if(r==null)throw new Error;return I(r)}function ip(e,t,n){e:for(;;){const r=e,o=t,s=n;if(s!=null){const i=I(s),a=r.Compare(o,Oe(i))|0;if(i instanceof we){const c=i;if(a<0){e=r,t=o,n=Fe(c);continue e}else{if(a===0)return!0;e=r,t=o,n=Be(c);continue e}}else return a===0}else return!1}}function Cc(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=I(r);if(o instanceof we){const s=o;Cc(n,Fe(s)),n(Oe(s),ze(s)),e=n,t=Be(s);continue e}else n(Oe(o),ze(o))}break}}function ap(e,t){Cc(e,t)}function cp(e,t,n){let r=n;ap((o,s)=>{yt(t,r,[o,s]),r=r+1|0},e)}function lp(e,t){return vt((n,r)=>Tn(e,r[0],r[1],n),void 0,t)}function up(e,t,n){e:for(;;){const r=e,o=t,s=n;if(s["System.Collections.IEnumerator.MoveNext"]()){const i=s["System.Collections.Generic.IEnumerator`1.get_Current"]();e=r,t=Tn(r,i[0],i[1],o),n=s;continue e}else return o}}function dp(e,t){let n=void 0;for(let r=0;r<=t.length-1;r++){const o=de(r,t);n=Tn(e,o[0],o[1],n)}return n}function kc(e,t){if(at(t))return dp(e,t);if(t instanceof Pe)return lp(e,t);{const n=ie(t);try{return up(e,void 0,n)}finally{J(n)}}}class fp extends K{constructor(t,n){super(),this.stack=t,this.started=n}}function Sc(e){e:for(;;){const t=e;if(F(t))return fe();{const n=m(t),r=M(t);if(r!=null){const o=I(r);if(o instanceof we){const s=o;e=ae([Fe(s),Yr(Oe(s),ze(s)),Be(s)],n);continue e}else return t}else{e=n;continue e}}}}function Ac(e){return new fp(Sc(j(e)),!1)}function hp(){throw new Error("enumeration not started")}function pp(){throw new Error("enumeration already finished")}function Ec(e){if(e.started){const t=e.stack;if(F(t))return pp();if(M(t)!=null){const n=I(M(t));if(n instanceof we)throw new Error("Please report error: Map iterator, unexpected stack for current");return[Oe(n),ze(n)]}else throw new Error("Please report error: Map iterator, unexpected stack for current")}else return hp()}function mp(e){if(e.started){const t=e.stack;if(F(t))return!1;if(M(t)!=null){if(I(M(t))instanceof we)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=Sc(m(t)),!F(e.stack)}else throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}else return e.started=!0,!F(e.stack)}function Ic(e){let t=Ac(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return Ec(t)},"System.Collections.IEnumerator.get_Current"(){return Ec(t)},"System.Collections.IEnumerator.MoveNext"(){return mp(t)},"System.Collections.IEnumerator.Reset"(){t=Ac(e)},Dispose(){}}}class Qr{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return yp(this)|0}Equals(t){const n=this;if(t instanceof Qr){const r=t,o=ie(n);try{const s=ie(r);try{const i=()=>{const a=o["System.Collections.IEnumerator.MoveNext"]();if(a===s["System.Collections.IEnumerator.MoveNext"]())if(a){const c=o["System.Collections.Generic.IEnumerator`1.get_Current"](),l=s["System.Collections.Generic.IEnumerator`1.get_Current"]();return me(c[0],l[0])&&me(c[1],l[1])?i():!1}else return!0;else return!1};return i()}finally{J(s)}}finally{J(o)}}else return!1}toString(){return"map ["+W("; ",pe(n=>Di("({0}, {1})",n[0],n[1]),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(){const t=this;return Array.from(t)}GetEnumerator(){return Ic(this.tree)}[Symbol.iterator](){return zn(ie(this))}"System.Collections.IEnumerable.GetEnumerator"(){return Ic(this.tree)}CompareTo(t){const n=this;if(t instanceof Qr)return _f((o,s)=>{const i=n.comparer.Compare(o[0],s[0])|0;return(i!==0?i:qe(o[1],s[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 $c(n,t[0])&&me(Tc(n,t[0]),t[1])}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){cp(this.tree,t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return Es(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return Es(this)|0}get size(){return Es(this)|0}clear(){throw new Error("Map cannot be mutated")}delete(t){throw new Error("Map cannot be mutated")}entries(){return pe(n=>[n[0],n[1]],this)}get(t){return Tc(this,t)}has(t){return $c(this,t)}keys(){return pe(n=>n[0],this)}set(t,n){throw new Error("Map cannot be mutated")}values(){return pe(n=>n[1],this)}forEach(t,n){const r=this;vn(o=>{t(o[1],o[0],r)},r)}}function eo(e,t){return new Qr(e,t)}function gp(e){return eo(e,void 0)}function wp(e,t,n){return eo(e.comparer,Tn(e.comparer,t,n,e.tree))}function Tc(e,t){return sp(e.comparer,t,e.tree)}function Es(e){return op(e.tree)}function $c(e,t){return ip(e.comparer,t,e.tree)}function _p(e,t){return xc(e.comparer,t,e.tree)}function yp(e){const t=(o,s)=>(o<<1)+s+631;let n=0;const r=ie(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const o=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n=t(n,pt(o[0]))|0,n=t(n,pt(o[1]))|0}}finally{J(r)}return n|0}function bp(e,t,n){return wp(n,e,t)}function vp(e,t){return _p(t,e)}function xp(e,t){return eo(t,kc(t,e))}function Cp(e,t){return eo(t,kc(t,e))}function Nc(e){return gp(e)}class Q extends L{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["HasNotStartedYet","InProgress","Resolved","Failed"]}}function Mc(e,t){const n=gc(Kh());return mc(()=>ir(()=>{Jh(n.current)})),wc(r=>{Yh(n.current)||In(V.Delay(()=>V.TryWith(V.Delay(()=>(t(new Q(1,[])),V.Bind(e(r),o=>(t(new Q(2,[o])),V.Zero())))),o=>(t(new Q(3,[o])),V.Zero()))),n.current)})}class kp{constructor(t,n,r){this.OnNext=t,this.OnError=n||(o=>{}),this.OnCompleted=r||(()=>{})}}function Sp(e,t){t.Subscribe(new kp(e))}class Ap{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 Ip(t=>{this._add(t)},t=>{this._remove(t)})}Trigger(t,n){let r=null;const o=n===void 0?t:(r=t,n);this.delegates.forEach(s=>{s(r,o)})}}let Ep=class extends Ap{};function Ip(e,t){return{AddHandler(n){e(n)},RemoveHandler(n){t(n)},Subscribe(n){const r=(o,s)=>n.OnNext(s);return e(r),{Dispose(){t(r)}}}}}class Tp{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 Ep}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 $p(e,t){console.error(Ee(e),t)}function Np(e,t){let n,r=new Tp(e);r.AutoReset=!1,n=r,Sp(t,n.Elapsed()),n.Enabled=!0,n.Start()}function Dc(e,t,n){Br(r=>{try{r(t)}catch(o){e(o)}},n)}function Ve(){return fe()}function _e(e){return j(e)}function Mp(e,t,n,r){return j(o=>{e(V.Delay(()=>V.Bind(Qh(t(n)),s=>{const i=s;return i.tag===0&&o(r(i.fields[0])),V.Zero()})))})}function Dp(e){Np(1,t=>{In(e)})}function $n(e,t){if(t.indexOf(e)===0)return t}function Pc(e,t){if(vd(t,e))return t}function Pp(e){return e===1?t=>{let n,r,o,s,i,a;return n=$n("/",t),n!=null?(r=n,"#"+r):(o=$n("#/",t),o!=null?(s=o,s):(i=$n("#",t),i!=null?(a=i,"#/"+Oi(a,1,a.length-1)):"#/"+t))}:t=>{let n,r;return n=$n("/",t),n!=null?(r=n,r):"/"+t}}function E(e,t){return Pp(t)(W("/",Xn(n=>n.indexOf("?")>=0||n.indexOf("#")===0||n.indexOf("/")===0?n:encodeURIComponent(n),e)))}function Ne(e,t,n){history.pushState(void 0,"",E(e,n));const r=document.createEvent("CustomEvent");r.initEvent("CUSTOM_NAVIGATION_EVENT",!0,!0),window.dispatchEvent(r)}function Rc(e,t){return Od(n=>{if(Ri(n))return fe();{const r=kd(n,"#");if(r==="?")return fe();if($n("?",r)!=null)return j(r);{const o=r.split("?");if(!Uo((s,i)=>s===i,o)&&o.length===1){const s=de(0,o);return j(decodeURIComponent(s))}else if(!Uo((s,i)=>s===i,o)&&o.length===2)if(de(1,o)===""){const s=de(0,o);return j(decodeURIComponent(s))}else{const s=de(0,o),i=de(1,o);return b([decodeURIComponent(s),"?"+i])}else return fe()}}},b(Fo($n("#",e)!=null?Oi(e,1,e.length-1):t===1&&(Pc("#",e)!=null||Pc("#/",e)!=null)?"":e,["/"],void 0,0)))}function Rp(e,t,n){return t(Rc(e===2?window.location.pathname+window.location.search:window.location.hash,e))}const Op=jh(e=>{const t=wc(r=>{const o=Ie(e.onUrlChanged,s=>{});Rp(Ie(e.hashMode,1),o)});mc(()=>(window.navigator.userAgent.indexOf("Trident")>=0||window.navigator.userAgent.indexOf("MSIE")>=0?window.addEventListener("hashchange",t):window.addEventListener("popstate",t),window.addEventListener("CUSTOM_NAVIGATION_EVENT",t),ir(()=>{window.navigator.userAgent.indexOf("Trident")>=0||window.navigator.userAgent.indexOf("MSIE")>=0?window.removeEventListener("hashchange",t):window.removeEventListener("popstate",t),window.removeEventListener("CUSTOM_NAVIGATION_EVENT",t)}))),ks(()=>{const r=document.createEvent("CustomEvent");r.initEvent("CUSTOM_NAVIGATION_EVENT",!0,!0),window.dispatchEvent(r)});const n=e.application;return n??te()});class It extends L{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["AccountId","Name"]}}class nn extends L{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Asc","Desc"]}}function Oc(e){return e.tag===0?new nn(1,[]):new nn(0,[])}class cr extends L{constructor(t,n){super(),this.tag=0,this.fields=[t,n]}cases(){return["Sort"]}}const Fp=new cr(new It(1,[]),new nn(0,[]));function Bp(e){return[e.fields[0],e.fields[1]]}function Fc(e){return e.fields[0]}function Bc(e){return e.fields[1]}function Lc(e,t){const n=t.fields[0],r=t.fields[1];return e.tag===1?n.tag===1?new cr(new It(1,[]),Oc(r)):new cr(new It(1,[]),new nn(0,[])):n.tag===0?new cr(new It(0,[]),Oc(r)):new cr(new It(0,[]),new nn(0,[]))}class Vc extends L{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["SearchText"]}}const Lp=new Vc("");function Vp(e){return new Vc(e.trim())}function Uc(e){return e.fields[0]}class Up extends L{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["PageSize"]}}function Hp(e){return new Up(e)}function Hc(e){return e.fields[0]}class Is extends K{constructor(t,n,r){super(),this.SearchText=t,this.Sort=n,this.PageSize=r}}class jp extends L{constructor(t,n){super(),this.tag=0,this.fields=[t,n]}cases(){return["AccountKey"]}}function zp(e){return[e.fields[0],e.fields[1]]}function Gp(e,t){return new jp(e,t)}function Wp(e){const t=zp(e);return[t[0],t[1]]}function qp(){return new Sf([],{Equals:me,GetHashCode:Au})}function Zp(e,t){let n,r=te();if(n=[ea(e,t,new Le(()=>r,o=>{r=o})),r],n[0])return n[1]}function jc(e,t,n){return e.set(t,n),e}class Kp extends K{constructor(t,n,r,o,s){super(),this.StreamId=t,this.Name=n,this.Website=r,this.ContactDetails=o,this.Notes=s}}function Jp(e){const t=Hf(e.Name);if(t.tag===1)return new g(1,[t.fields[0]]);{const n=jf(e.Website);if(n.tag===1)return new g(1,[n.fields[0]]);{let r;const o=e.ContactDetails;if(o!=null){const s=Kf(o);r=s.tag===1?new g(1,[s.fields[0]]):new g(0,[s.fields[0]])}else r=new g(0,[void 0]);return r.tag===1?new g(1,[r.fields[0]]):new g(0,[new Kp(new ca(e.StreamId),t.fields[0],n.fields[0],r.fields[0],Jf(e.Notes))])}}}function zc(e,t){return Ld(n=>et(n.StreamId)===qi(t),e)}class v extends L{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["PartnerList","Partner","PartnerProfilesDirectory","PartnerAccountList","PartnerSuperConfiguration","PartnerBenefitsOnboardingConfiguration","PartnerBankDetailsConfiguration","PartnerWorkspace","Account","AccountProfilesDirectory","AccountImports","AccountSuperConfiguration","AccountBenefitsOnboardingConfiguration","AccountBankDetailsConfiguration","AccountSalaryPackagingConfiguration","AccountWorkspace","NotFound"]}}function Gc(e){let t,n,r,o,s,i,a,c,l,d,u,p,f,w,y,_,C,x,A,O,H,Y,ue,Se;if(F(e))t=16;else if(M(e)==="account-registry")if(F(m(e)))t=16;else if(M(m(e))==="partners")if(F(m(m(e))))t=0;else if(F(m(m(m(e)))))t=1,n=M(m(m(e)));else switch(M(m(m(m(e))))){case"accounts":{if(F(m(m(m(m(e))))))t=2,r=M(m(m(e)));else if(F(m(m(m(m(m(e)))))))t=8,l=M(m(m(m(m(e))))),d=M(m(m(e)));else switch(M(m(m(m(m(m(e))))))){case"directory":{F(m(m(m(m(m(m(e)))))))?(t=9,u=M(m(m(m(m(e))))),p=M(m(m(e)))):t=16;break}case"imports":{F(m(m(m(m(m(m(e)))))))?(t=10,f=M(m(m(m(m(e))))),w=M(m(m(e)))):t=16;break}case"super-configuration":{F(m(m(m(m(m(m(e)))))))?(t=11,y=M(m(m(m(m(e))))),_=M(m(m(e)))):t=16;break}case"benefits-onboarding-configuration":{F(m(m(m(m(m(m(e)))))))?(t=12,C=M(m(m(m(m(e))))),x=M(m(m(e)))):t=16;break}case"bank-details-configuration":{F(m(m(m(m(m(m(e)))))))?(t=13,A=M(m(m(m(m(e))))),O=M(m(m(e)))):t=16;break}case"salary-packaging-configuration":{F(m(m(m(m(m(m(e)))))))?(t=14,H=M(m(m(m(m(e))))),Y=M(m(m(e)))):t=16;break}case"workspace":{F(m(m(m(m(m(m(e)))))))?(t=15,ue=M(m(m(m(m(e))))),Se=M(m(m(e)))):t=16;break}default:t=16}break}case"super-configuration":{F(m(m(m(m(e)))))?(t=3,o=M(m(m(e)))):t=16;break}case"benefits-onboarding-configuration":{F(m(m(m(m(e)))))?(t=4,s=M(m(m(e)))):t=16;break}case"directory":{F(m(m(m(m(e)))))?(t=5,i=M(m(m(e)))):t=16;break}case"bank-details-configuration":{F(m(m(m(m(e)))))?(t=6,a=M(m(m(e)))):t=16;break}case"workspace":{F(m(m(m(m(e)))))?(t=7,c=M(m(m(e)))):t=16;break}default:t=16}else t=16;else t=16;switch(t){case 0:return new v(0,[]);case 1:return new v(1,[le(n)]);case 2:return new v(3,[le(r)]);case 3:return new v(4,[le(o)]);case 4:return new v(5,[le(s)]);case 5:return new v(2,[le(i)]);case 6:return new v(6,[le(a)]);case 7:return new v(7,[le(c)]);case 8:return new v(8,[le(d),lt(l)]);case 9:return new v(9,[le(p),lt(u)]);case 10:return new v(10,[le(w),lt(f)]);case 11:return new v(11,[le(_),lt(y)]);case 12:return new v(12,[le(x),lt(C)]);case 13:return new v(13,[le(O),lt(A)]);case 14:return new v(14,[le(Y),lt(H)]);case 15:return new v(15,[le(Se),lt(ue)]);default:return new v(16,[])}}function k(e){switch(e.tag){case 3:return b(["account-registry","partners",q(e.fields[0]),"accounts"]);case 4:return b(["account-registry","partners",q(e.fields[0]),"super-configuration"]);case 5:return b(["account-registry","partners",q(e.fields[0]),"benefits-onboarding-configuration"]);case 6:return b(["account-registry","partners",q(e.fields[0]),"bank-details-configuration"]);case 2:return b(["account-registry","partners",q(e.fields[0]),"directory"]);case 7:return b(["account-registry","partners",q(e.fields[0]),"workspace"]);case 8:return b(["account-registry","partners",q(e.fields[0]),"accounts",Te(e.fields[1])]);case 9:return b(["account-registry","partners",q(e.fields[0]),"accounts",Te(e.fields[1]),"directory"]);case 10:return b(["account-registry","partners",q(e.fields[0]),"accounts",Te(e.fields[1]),"imports"]);case 11:return b(["account-registry","partners",q(e.fields[0]),"accounts",Te(e.fields[1]),"super-configuration"]);case 12:return b(["account-registry","partners",q(e.fields[0]),"accounts",Te(e.fields[1]),"benefits-onboarding-configuration"]);case 13:return b(["account-registry","partners",q(e.fields[0]),"accounts",Te(e.fields[1]),"bank-details-configuration"]);case 14:return b(["account-registry","partners",q(e.fields[0]),"accounts",Te(e.fields[1]),"salary-packaging-configuration"]);case 15:return b(["account-registry","partners",q(e.fields[0]),"accounts",Te(e.fields[1]),"workspace"]);case 16:case 0:return b(["account-registry","partners"]);default:return b(["account-registry","partners",q(e.fields[0])])}}function Wc(e){switch(e.tag){case 3:{const t=["account-registry","partners",q(e.fields[0]),"accounts"];return _e(n=>{Ne(b(t),1,1)})}case 4:{const t=["account-registry","partners",q(e.fields[0]),"super-configuration"];return _e(n=>{Ne(b(t),1,1)})}case 5:{const t=["account-registry","partners",q(e.fields[0]),"benefits-onboarding-configuration"];return _e(n=>{Ne(b(t),1,1)})}case 6:{const t=["account-registry","partners",q(e.fields[0]),"bank-details-configuration"];return _e(n=>{Ne(b(t),1,1)})}case 2:{const t=["account-registry","partners",q(e.fields[0]),"directory"];return _e(n=>{Ne(b(t),1,1)})}case 7:{const t=["account-registry","partners",q(e.fields[0]),"workspace"];return _e(n=>{Ne(b(t),1,1)})}case 8:{const t=["account-registry","partners",q(e.fields[0]),"accounts",Te(e.fields[1])];return _e(n=>{Ne(b(t),1,1)})}case 9:{const t=["account-registry","partners",q(e.fields[0]),"accounts",Te(e.fields[1]),"directory"];return _e(n=>{Ne(b(t),1,1)})}case 10:{const t=["account-registry","partners",q(e.fields[0]),"accounts",Te(e.fields[1]),"imports"];return _e(n=>{Ne(b(t),1,1)})}case 11:{const t=["account-registry","partners",q(e.fields[0]),"accounts",Te(e.fields[1]),"super-configuration"];return _e(n=>{Ne(b(t),1,1)})}case 12:{const t=["account-registry","partners",q(e.fields[0]),"accounts",Te(e.fields[1]),"benefits-onboarding-configuration"];return _e(n=>{Ne(b(t),1,1)})}case 13:{const t=["account-registry","partners",q(e.fields[0]),"accounts",Te(e.fields[1]),"bank-details-configuration"];return _e(n=>{Ne(b(t),1,1)})}case 14:{const t=["account-registry","partners",q(e.fields[0]),"accounts",Te(e.fields[1]),"salary-packaging-configuration"];return _e(n=>{Ne(b(t),1,1)})}case 15:{const t=["account-registry","partners",q(e.fields[0]),"accounts",Te(e.fields[1]),"workspace"];return _e(n=>{Ne(b(t),1,1)})}case 0:case 16:return Ve();default:{const t=["account-registry","partners",q(e.fields[0])];return _e(n=>{Ne(b(t),1,1)})}}}function Yp(e,t){switch(t.tag){case 1:return new Q(1,[]);case 2:return t.fields[0].tag===1?new Q(2,[new g(1,[t.fields[0].fields[0]])]):new Q(2,[new g(0,[e(t.fields[0].fields[0])])]);case 3:return new Q(3,[t.fields[0]]);default:return new Q(0,[])}}class qc extends K{constructor(t,n){super(),this.ReadProtectedData=t,this.ProvisionAccounts=n}}function Xp(e){return new qc(zi("AccountRegistry.ReadProtectedData",e.Roles,{Equals:(t,n)=>t===n,GetHashCode:hn}),zi("AccountRegistry.ProvisionAccounts",e.Roles,{Equals:(t,n)=>t===n,GetHashCode:hn}))}const Qp=new qc(!1,!1);class R extends L{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class Nn extends L{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["PascalCase","CamelCase","SnakeCase"]}}function Zc(e){return e.slice(void 0,1).toLowerCase()+e.slice(1,e.length)}function e0(e,t){switch(e.tag){case 2:return wd(Zc(t),"[A-Z]","_$0").toLowerCase();case 0:return t;default:return Zc(t)}}function Kc(e,t){t0(t);const n=new Date(e);return n.offset=t??new Date().getTimezoneOffset()*-6e4,n}function t0(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 n0(){return Kc(-621355968e5,0)}function r0(e){const[t,n]=vi(e),r=n==null?t.getTimezoneOffset()*-6e4:n==="Z"?0:n*6e4;return Kc(t.getTime(),r)}function o0(e,t){try{return t.contents=r0(e),!0}catch{return!1}}function Jc(e=0,t=0,n=0,r=0,o=0){switch(arguments.length){case 1:return s0(arguments[0]);case 3:e=0,t=arguments[0],n=arguments[1],r=arguments[2],o=0;break}return e*864e5+t*36e5+n*6e4+r*1e3+o}function s0(e){return Number(BigInt(e)/10000n)}function i0(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 Jc(r,0,0,0,0)}if(n>0){const r=/^(-?)((\d+)\.)?(?:0*)([0-9]|0[0-9]|1[0-9]|2[0-3]):(?:0*)([0-5][0-9]|[0-9])(:(?:0*)([0-5][0-9]|[0-9]))?\.?(\d+)?$/.exec(e);if(r!=null&&r[4]!=null&&r[5]!=null){let o=0,s=0,i=0;const a=r[1]!=null&&r[1]==="-"?-1:1,c=+r[4],l=+r[5];if(r[3]!=null&&(o=+r[3]),r[7]!=null&&(i=+r[7]),r[8]!=null)switch(r[8].length){case 1:s=+r[8]*100;break;case 2:s=+r[8]*10;break;case 3:s=+r[8];break;case 4:s=+r[8]/10;break;case 5:s=+r[8]/100;break;case 6:s=+r[8]/1e3;break;case 7:s=+r[8]/1e4;break;default:throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}return a*Jc(o,c,l,i,s)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}function a0(e,t){try{return t.contents=i0(e),!0}catch{return!1}}class Yc{constructor(t){this.k=t}}function Ge(e){return new Yc(e)}function U(e){return e.k}class Z extends Yc{constructor(t,n,r,o){super(t),this.left=n,this.right=r,this.h=o|0}}function We(e,t,n,r){return new Z(e,t,n,r)}function re(e){return e.left}function ee(e){return e.right}function Mn(e){return e.h}function Kw(){}function Xc(e,t){e:for(;;){const n=e,r=t;if(n!=null){const o=I(n);if(o instanceof Z){const s=o;e=re(s),t=Xc(ee(s),r+1);continue e}else return r+1|0}else return r|0}}function c0(e){return Xc(e,0)}function rt(e,t,n){let r,o,s;const i=e;if(i!=null){const d=I(i);s=d instanceof Z?(r=d,Mn(r)):1}else s=0;let a;const c=n;if(c!=null){const d=I(c);a=d instanceof Z?(o=d,Mn(o)):1}else a=0;const l=(s<a?a:s)|0;return l===0?Ge(t):We(t,e,n,l+1)}function Qc(e,t,n){let r,o,s,i,a,c,l,d,u;const p=e;if(p!=null){const y=I(p);u=y instanceof Z?(r=y,Mn(r)):1}else u=0;let f;const w=n;if(w!=null){const y=I(w);f=y instanceof Z?(o=y,Mn(o)):1}else f=0;if(f>u+2){const y=I(n);if(y instanceof Z){const _=y;if(s=re(_),(s!=null?(i=I(s),i instanceof Z?(a=i,Mn(a)):1):0)>u+1){const C=I(re(_));if(C instanceof Z){const x=C;return rt(rt(e,t,re(x)),U(x),rt(ee(x),U(_),ee(_)))}else throw new Error("internal error: Set.rebalance")}else return rt(rt(e,t,re(_)),U(_),ee(_))}else throw new Error("internal error: Set.rebalance")}else if(u>f+2){const y=I(e);if(y instanceof Z){const _=y;if(c=ee(_),(c!=null?(l=I(c),l instanceof Z?(d=l,Mn(d)):1):0)>f+1){const C=I(ee(_));if(C instanceof Z){const x=C;return rt(rt(re(_),U(_),re(x)),U(x),rt(ee(x),t,n))}else throw new Error("internal error: Set.rebalance")}else return rt(re(_),U(_),rt(ee(_),t,n))}else throw new Error("internal error: Set.rebalance")}else return rt(e,t,n)}function Dn(e,t,n){if(n!=null){const r=I(n),o=e.Compare(t,U(r))|0;if(r instanceof Z){const s=r;return o<0?Qc(Dn(e,t,re(s)),U(s),ee(s)):o===0?n:Qc(re(s),U(s),Dn(e,t,ee(s)))}else{const s=e.Compare(t,U(r))|0;return s<0?We(t,void 0,n,2):s===0?n:We(t,n,void 0,2)}}else return Ge(t)}function el(e,t,n){e:for(;;){const r=e,o=t,s=n;if(s!=null){const i=I(s),a=r.Compare(o,U(i))|0;if(i instanceof Z){const c=i;if(a<0){e=r,t=o,n=re(c);continue e}else{if(a===0)return!0;e=r,t=o,n=ee(c);continue e}}else return a===0}else return!1}}function tl(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=I(r);if(o instanceof Z){const s=o;tl(n,re(s)),n(U(s)),e=n,t=ee(s);continue e}else n(U(o))}break}}class l0 extends K{constructor(t,n){super(),this.stack=t,this.started=n}}function nl(e){e:for(;;){const t=e;if(F(t))return fe();{const n=M(t),r=m(t);if(n!=null){const o=I(n);if(o instanceof Z){const s=o;e=ae([re(s),Ge(U(s)),ee(s)],r);continue e}else return t}else{e=r;continue e}}}}function rl(e){return new l0(nl(j(e)),!1)}function u0(){throw new Error("Enumeration not started")}function d0(){throw new Error("Enumeration already started")}function ol(e){if(e.started){const t=e.stack;if(F(t))return d0();if(M(t)!=null){const n=I(M(t));return U(n)}else throw new Error("Please report error: Set iterator, unexpected stack for current")}else return u0()}function f0(e){if(e.started){const t=e.stack;if(F(t))return!1;if(M(t)!=null){if(I(M(t))instanceof Z)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=nl(m(t)),!F(e.stack)}else throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}else return e.started=!0,!F(e.stack)}function sl(e){let t=rl(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return ol(t)},"System.Collections.IEnumerator.get_Current"(){return ol(t)},"System.Collections.IEnumerator.MoveNext"(){return f0(t)},"System.Collections.IEnumerator.Reset"(){t=rl(e)},Dispose(){}}}function h0(e,t,n){e:for(;;){const r=e,o=t,s=n;if(F(o))return F(s)?0:-1;if(F(s))return 1;if(M(s)!=null)if(M(o)!=null){const i=I(M(o)),a=I(M(s));if(i instanceof Z){const c=i;if(re(c)==null)if(a instanceof Z){const l=a;if(re(l)==null){const d=r.Compare(U(c),U(l))|0;if(d!==0)return d|0;e=r,t=He(ee(c),m(o)),n=He(ee(l),m(s));continue e}else{let d,u,p,f,w;switch(F(o)?F(s)?d=2:M(s)!=null?(d=1,f=m(s),w=I(M(s))):d=2:M(o)!=null?(d=0,u=m(o),p=I(M(o))):F(s)?d=2:M(s)!=null?(d=1,f=m(s),w=I(M(s))):d=2,d){case 0:if(p instanceof Z){const y=p;e=r,t=ae([re(y),We(U(y),void 0,ee(y),0)],u),n=s;continue e}else{e=r,t=ae([void 0,Ge(U(p))],u),n=s;continue e}case 1:if(w instanceof Z){const y=w;e=r,t=o,n=ae([re(y),We(U(y),void 0,ee(y),0)],f);continue e}else{e=r,t=o,n=ae([void 0,Ge(U(w))],f);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const l=r.Compare(U(c),U(a))|0;if(l!==0)return l|0;e=r,t=He(ee(c),m(o)),n=He(void 0,m(s));continue e}else{let l,d,u,p,f;switch(F(o)?F(s)?l=2:M(s)!=null?(l=1,p=m(s),f=I(M(s))):l=2:M(o)!=null?(l=0,d=m(o),u=I(M(o))):F(s)?l=2:M(s)!=null?(l=1,p=m(s),f=I(M(s))):l=2,l){case 0:if(u instanceof Z){const w=u;e=r,t=ae([re(w),We(U(w),void 0,ee(w),0)],d),n=s;continue e}else{e=r,t=ae([void 0,Ge(U(u))],d),n=s;continue e}case 1:if(f instanceof Z){const w=f;e=r,t=o,n=ae([re(w),We(U(w),void 0,ee(w),0)],p);continue e}else{e=r,t=o,n=ae([void 0,Ge(U(f))],p);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else if(a instanceof Z){const c=a;if(re(c)==null){const l=r.Compare(U(i),U(c))|0;if(l!==0)return l|0;e=r,t=He(void 0,m(o)),n=He(ee(c),m(s));continue e}else{let l,d,u,p,f;switch(F(o)?F(s)?l=2:M(s)!=null?(l=1,p=m(s),f=I(M(s))):l=2:M(o)!=null?(l=0,d=m(o),u=I(M(o))):F(s)?l=2:M(s)!=null?(l=1,p=m(s),f=I(M(s))):l=2,l){case 0:if(u instanceof Z){const w=u;e=r,t=ae([re(w),We(U(w),void 0,ee(w),0)],d),n=s;continue e}else{e=r,t=ae([void 0,Ge(U(u))],d),n=s;continue e}case 1:if(f instanceof Z){const w=f;e=r,t=o,n=ae([re(w),We(U(w),void 0,ee(w),0)],p);continue e}else{e=r,t=o,n=ae([void 0,Ge(U(f))],p);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const c=r.Compare(U(i),U(a))|0;if(c!==0)return c|0;e=r,t=m(o),n=m(s);continue e}}else{I(M(s));let i,a,c,l,d;switch(F(o)?F(s)?i=2:M(s)!=null?(i=1,l=m(s),d=I(M(s))):i=2:M(o)!=null?(i=0,a=m(o),c=I(M(o))):F(s)?i=2:M(s)!=null?(i=1,l=m(s),d=I(M(s))):i=2,i){case 0:if(c instanceof Z){const u=c;e=r,t=ae([re(u),We(U(u),void 0,ee(u),0)],a),n=s;continue e}else{e=r,t=ae([void 0,Ge(U(c))],a),n=s;continue e}case 1:if(d instanceof Z){const u=d;e=r,t=o,n=ae([re(u),We(U(u),void 0,ee(u),0)],l);continue e}else{e=r,t=o,n=ae([void 0,Ge(U(d))],l);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else if(M(o)!=null){I(M(o));let i,a,c,l,d;switch(F(o)?F(s)?i=2:M(s)!=null?(i=1,l=m(s),d=I(M(s))):i=2:M(o)!=null?(i=0,a=m(o),c=I(M(o))):F(s)?i=2:M(s)!=null?(i=1,l=m(s),d=I(M(s))):i=2,i){case 0:if(c instanceof Z){const u=c;e=r,t=ae([re(u),We(U(u),void 0,ee(u),0)],a),n=s;continue e}else{e=r,t=ae([void 0,Ge(U(c))],a),n=s;continue e}case 1:if(d instanceof Z){const u=d;e=r,t=o,n=ae([re(u),We(U(u),void 0,ee(u),0)],l);continue e}else{e=r,t=o,n=ae([void 0,Ge(U(d))],l);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else{e=r,t=m(o),n=m(s);continue e}}}function il(e,t,n){return t==null?n==null?0:-1:n==null?1:h0(e,j(t),j(n))|0}function p0(e,t,n){let r=n;tl(o=>{yt(t,r,o),r=r+1|0},e)}function m0(e,t,n){e:for(;;){const r=e,o=t,s=n;if(s["System.Collections.IEnumerator.MoveNext"]()){e=r,t=Dn(r,s["System.Collections.Generic.IEnumerator`1.get_Current"](),o),n=s;continue e}else return o}}function g0(e,t){return Or((n,r)=>Dn(e,r,n),void 0,t)}function w0(e,t){return vt((n,r)=>Dn(e,r,n),void 0,t)}function al(e,t){if(at(t))return g0(e,t);if(t instanceof Pe)return w0(e,t);{const n=ie(t);try{return m0(e,void 0,n)}finally{J(n)}}}class Ts{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return b0(this)|0}Equals(t){let n;const r=this;return t instanceof Ts&&(n=t,il(Pn(r),ot(r),ot(n))===0)}toString(){return"set ["+W("; ",pe(n=>De(n),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(){const t=this;return Array.from(t)}CompareTo(t){const n=this;return il(Pn(n),ot(n),ot(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 el(Pn(n),t,ot(n))}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){p0(ot(this),t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return $s(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return $s(this)|0}GetEnumerator(){return sl(ot(this))}[Symbol.iterator](){return zn(ie(this))}"System.Collections.IEnumerable.GetEnumerator"(){return sl(ot(this))}get size(){return $s(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 cl(this,t)}keys(){return pe(n=>n,this)}values(){return pe(n=>n,this)}entries(){return pe(n=>[n,n],this)}forEach(t,n){const r=this;vn(o=>{t(o,o,r)},r)}}function to(e,t){return new Ts(e,t)}function Pn(e){return e.comparer}function ot(e){return e.tree}function _0(e){return to(e,void 0)}function y0(e,t){return to(Pn(e),Dn(Pn(e),t,ot(e)))}function $s(e){return c0(ot(e))}function cl(e,t){return el(Pn(e),t,ot(e))}function b0(e){let t=0;const n=ie(e);try{for(;n["System.Collections.IEnumerator.MoveNext"]();){const r=n["System.Collections.Generic.IEnumerator`1.get_Current"]();t=(t<<1)+pt(r)+631|0}}finally{J(n)}return Math.abs(t)|0}function Ns(e,t){return cl(t,e)}function v0(e,t){return y0(t,e)}function x0(e){return _0(e)}function C0(e,t){return to(t,al(t,e))}function k0(e,t){return to(t,al(t,e))}function lr(e,t,n){try{return"Expecting "+e+" but instead got:"+(n?`
|
|
4
4
|
`:" ")+(JSON.stringify(t,null,4)+"")}catch{return"Expecting "+e+" but decoder failed. Couldn't report given value due to circular structure."+(n?`
|
|
5
|
-
`:" ")}}function
|
|
5
|
+
`:" ")}}function S0(e,t){const n=t.tag===2?lr(t.fields[0],t.fields[1],!0):t.tag===1?lr(t.fields[0],t.fields[1],!1)+`
|
|
6
6
|
Reason: `+t.fields[2]:t.tag===3?lr(t.fields[0],t.fields[1],!0):t.tag===4?lr(t.fields[0],t.fields[1],!0)+("\nNode `"+t.fields[2]+"` is unkown."):t.tag===5?"Expecting "+t.fields[0]+`.
|
|
7
7
|
`+(JSON.stringify(t.fields[1],null,4)+""):t.tag===7?`The following errors were found:
|
|
8
8
|
|
|
9
9
|
`+W(`
|
|
10
10
|
|
|
11
|
-
`,t.fields[0]):t.tag===6?"The following `failure` occurred with the decoder: "+t.fields[0]:lr(t.fields[0],t.fields[1],!1);return t.tag===7?n:"Error at: `"+e+"`\n"+n}function
|
|
11
|
+
`,t.fields[0]):t.tag===6?"The following `failure` occurred with the decoder: "+t.fields[0]:lr(t.fields[0],t.fields[1],!1);return t.tag===7?n:"Error at: `"+e+"`\n"+n}function ll(e,t,n){const r=t(e,n);if(r.tag===1){const o=r.fields[0];return new g(1,[S0(o[0],o[1])])}else return new g(0,[r.fields[0]])}function ur(e,t){try{return ll("$",e,JSON.parse(t))}catch(n){if(n instanceof SyntaxError)return new g(1,["Given an invalid JSON: "+n.message]);throw n}}function ul(e,t){return typeof t=="string"?new g(0,[t]):new g(1,[[e,new R(0,["a string",t])]])}function A0(e,t){if(typeof t=="string"){const n=t;return n.length===1?new g(0,[n[0]]):new g(1,[[e,new R(0,["a single character string",t])]])}else return new g(1,[[e,new R(0,["a char",t])]])}function E0(e,t){if(typeof t=="string"){let n,r="00000000-0000-0000-0000-000000000000";return n=[Df(t,new Le(()=>r,o=>{r=o})),r],n[0]?new g(0,[n[1]]):new g(1,[[e,new R(0,["a guid",t])]])}else return new g(1,[[e,new R(0,["a guid",t])]])}function I0(e,t){return t==null?new g(0,[void 0]):new g(1,[[e,new R(0,["null",t])]])}const dl=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?-128<=o&&o<=127?new g(0,[(o+128&255)-128]):new g(1,[[n,new R(1,["a sbyte",o,"Value was either too large or too small for a sbyte"])]]):new g(1,[[n,new R(1,["a sbyte",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,s=0;return o=[xn(r,511,!1,8,new Le(()=>s,i=>{s=i|0})),s],o[0]?new g(0,[o[1]]):new g(1,[[n,new R(0,["a sbyte",r])]])}else return new g(1,[[n,new R(0,["a sbyte",r])]])},fl=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?0<=o&&o<=255?new g(0,[o&255]):new g(1,[[n,new R(1,["a byte",o,"Value was either too large or too small for a byte"])]]):new g(1,[[n,new R(1,["a byte",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,s=0;return o=[xn(r,511,!0,8,new Le(()=>s,i=>{s=i})),s],o[0]?new g(0,[o[1]]):new g(1,[[n,new R(0,["a byte",r])]])}else return new g(1,[[n,new R(0,["a byte",r])]])},hl=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?-32768<=o&&o<=32767?new g(0,[(o+32768&65535)-32768]):new g(1,[[n,new R(1,["an int16",o,"Value was either too large or too small for an int16"])]]):new g(1,[[n,new R(1,["an int16",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,s=0;return o=[xn(r,511,!1,16,new Le(()=>s,i=>{s=i|0})),s],o[0]?new g(0,[o[1]]):new g(1,[[n,new R(0,["an int16",r])]])}else return new g(1,[[n,new R(0,["an int16",r])]])},pl=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?0<=o&&o<=65535?new g(0,[o&65535]):new g(1,[[n,new R(1,["an uint16",o,"Value was either too large or too small for an uint16"])]]):new g(1,[[n,new R(1,["an uint16",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,s=0;return o=[xn(r,511,!0,16,new Le(()=>s,i=>{s=i})),s],o[0]?new g(0,[o[1]]):new g(1,[[n,new R(0,["an uint16",r])]])}else return new g(1,[[n,new R(0,["an uint16",r])]])},ml=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?-2147483648<=o&&o<=2147483647?new g(0,[~~o]):new g(1,[[n,new R(1,["an int",o,"Value was either too large or too small for an int"])]]):new g(1,[[n,new R(1,["an int",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,s=0;return o=[xn(r,511,!1,32,new Le(()=>s,i=>{s=i|0})),s],o[0]?new g(0,[o[1]]):new g(1,[[n,new R(0,["an int",r])]])}else return new g(1,[[n,new R(0,["an int",r])]])},gl=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?0<=o&&o<=4294967295?new g(0,[o>>>0]):new g(1,[[n,new R(1,["an uint32",o,"Value was either too large or too small for an uint32"])]]):new g(1,[[n,new R(1,["an uint32",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,s=0;return o=[xn(r,511,!0,32,new Le(()=>s,i=>{s=i})),s],o[0]?new g(0,[o[1]]):new g(1,[[n,new R(0,["an uint32",r])]])}else return new g(1,[[n,new R(0,["an uint32",r])]])};function T0(e,t){return typeof t=="boolean"?new g(0,[t]):new g(1,[[e,new R(0,["a boolean",t])]])}function $0(e,t){return typeof t=="number"?new g(0,[t]):new g(1,[[e,new R(0,["a float",t])]])}function N0(e,t){return typeof t=="number"?new g(0,[t]):new g(1,[[e,new R(0,["a float32",t])]])}function M0(e,t){if(typeof t=="string"){let n,r=dd();return n=[hd(t,new Le(()=>r,o=>{r=o})),r],n[0]?new g(0,[pd(n[1])]):new g(1,[[e,new R(0,["a datetime",t])]])}else return new g(1,[[e,new R(0,["a datetime",t])]])}function D0(e,t){if(typeof t=="string"){let n,r=n0();return n=[o0(t,new Le(()=>r,o=>{r=o})),r],n[0]?new g(0,[n[1]]):new g(1,[[e,new R(0,["a datetimeoffset",t])]])}else return new g(1,[[e,new R(0,["a datetime",t])]])}function P0(e,t){if(typeof t=="string"){let n,r=0;return n=[a0(t,new Le(()=>r,o=>{r=o})),r],n[0]?new g(0,[n[1]]):new g(1,[[e,new R(0,["a timespan",t])]])}else return new g(1,[[e,new R(0,["a timespan",t])]])}function wl(e,t,n,r){let o;const s=n+".["+zt(e)+"]";if(Array.isArray(r)){const i=r;return e<i.length?t(s,de(e,i)):new g(1,[[s,new R(5,["a longer array. Need index `"+zt(e)+"` but there are only `"+(o=i.length,zt(o))+"` entries",r])]])}else return new g(1,[[s,new R(0,["an array",r])]])}function R0(e,t,n){return n==null?new g(0,[void 0]):xt(Ee,e(t,n))}function _l(e,t,n){if(Array.isArray(n)){let r=-1;return xt(Fr,Or((o,s)=>{if(r=r+1|0,o.tag===0){const i=e(t+".["+zt(r)+"]",s);return i.tag===0?new g(0,[He(i.fields[0],o.fields[0])]):new g(1,[i.fields[0]])}else return o},new g(0,[fe()]),n))}else return new g(1,[[t,new R(0,["a list",n])]])}function O0(e,t,n){if(Array.isArray(n)){let r=-1;return xt(bf,Or((o,s)=>{if(r=r+1|0,o.tag===0){const i=e(t+".["+zt(r)+"]",s);return i.tag===0?new g(0,[P([i.fields[0]],o.fields[0])]):new g(1,[i.fields[0]])}else return o},new g(0,[[]]),n))}else return new g(1,[[t,new R(0,["a seq",n])]])}function yl(e,t,n){if(Array.isArray(n)){let r=-1;const o=n;return Or((s,i)=>{if(r=r+1|0,s.tag===0){const a=s.fields[0],c=e(t+".["+zt(r)+"]",i);return c.tag===0?(yt(a,r,c.fields[0]),new g(0,[a])):new g(1,[c.fields[0]])}else return s},new g(0,[Vo(new Array(o.length),0,o.length,null)]),o)}else return new g(1,[[t,new R(0,["an array",n])]])}function F0(e,t,n){return((o,s)=>{e:for(;;){const i=o,a=s;if(F(i))return new g(1,[[t,new R(7,[a])]]);{const c=ll(t,ne(M(i)),n);if(c.tag===1){o=m(i),s=Ce(a,j(c.fields[0]));continue e}else return new g(0,[c.fields[0]])}}})(e,fe())}function B0(e,t,n){return new g(0,[e])}function bl(e,t,n,r){const o=t(n,r);return o.tag===0?e(o.fields[0],n,r):new g(1,[o.fields[0]])}function L0(e,t,n,r){const o=t(n,r);return o.tag===1?new g(1,[o.fields[0]]):new g(0,[e(o.fields[0])])}function V0(e,t){let n;const r=e;return n=o=>s=>wl(0,r,o,s),o=>s=>bl(Eo(i=>{let a;const c=t;return a=l=>d=>wl(1,c,l,d),l=>d=>bl((u,p,f)=>B0([i,u]),ne(a),l,d)}),ne(n),o,s)}function U0(e){return xp(e,{Compare:qe})}function H0(e){return k0(e,{Compare:qe})}function j0(e,t,n){return n!==null&&Object.getPrototypeOf(n||!1)===Object.prototype?Vi((r,o)=>{const s=r[0];return o.tag===0?xt(i=>He(i,o.fields[0]),r[1](t+"."+s)(n[s])):o},e,new g(0,[fe()])):new g(1,[[t,new R(0,["an object",n])]])}function z0(e,t,n,r){return r!==null&&Object.getPrototypeOf(r||!1)===Object.prototype?qo((o,s)=>{if(o.tag===0){const i=e(n,s);if(i.tag===0){const a=t(n+"."+s,r[s]);return a.tag===0?new g(0,[He([i.fields[0],a.fields[0]],o.fields[0])]):new g(1,[a.fields[0]])}else return new g(1,[i.fields[0]])}else return o},new g(0,[fe()]),Object.keys(r)):new g(1,[[n,new R(0,["an object",r])]])}function vl(e,t,n,r){let o;const s=t.length+e|0;if(s!==r.length)return new g(1,[[n,new R(6,[(o=r.length|0,_t(wt("Expected array of length %i but got %i"))(s)(o))])]]);{let i=new g(0,[fe()]);for(let a=e;a<=r.length-1;a++)if(i.tag===0){const c=i.fields[0],l=_t(wt("%s[%i]"))(n)(a),d=de(a-e,t),u=de(a,r);i=xt(p=>He(p,c),d(l)(u))}return xt(Fr,i)}}function xl(e,t,n,r,o,s){const i=Id(a=>Mo(a)===r,Zu(n));if(i!=null){const a=i,c=Jn(l=>st(e,t,!1,l[1]),Xu(a));return xt(l=>Qu(a,Wt(l)),c.length===0&&s.length<=1?new g(0,[fe()]):vl(1,c,o,s))}else return new g(1,[[o,new R(6,["Cannot find case "+r+" in "+ve(n)])]])}function Cl(e,t,n,r){let o;const s=new Le(te());let i;const a=ve(r);i=a===""?e:bp(a,s,e);let c;if(Yu(r)){const l=Jn(d=>[e0(t,Mo(d)),st(i,t,!1,d[1])],Nr(r));c=d=>u=>xt(p=>ed(r,Wt(p)),j0(l,d,u))}else if(Ju(r))c=l=>d=>{if(typeof d=="string")return xl(i,t,r,d,l,[]);if(Array.isArray(d)){const u=d;return qd(p=>xl(i,t,r,p,l,u),ul(l+"[0]",de(0,u)))}else return new g(1,[[l,new R(0,["a string or array",d])]])};else if(n)c=l=>d=>new g(1,[[l,new R(2,["an extra coder for "+ve(r),d])]]);else throw new Error((o=ve(r),_t(wt(`Cannot generate auto decoder for %s. Please pass an extra decoder.
|
|
12
12
|
|
|
13
|
-
Documentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders`))(o)));return s.contents=
|
|
13
|
+
Documentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders`))(o)));return s.contents=c,c}function st(e,t,n,r){let o,s,i,a;const c=ve(r),l=vp(c,e);if(l==null)if(ju(r)){const d=st(e,t,!1,$r(r));return u=>p=>yl(ne(d),u,p)}else if(gi(r))switch(ve(Wu(r))){case"System.SByte":return u=>p=>{const f=r,w=u,y=p,_=dl(w)(y);if(_.tag===1)return new g(1,[_.fields[0]]);{const C=_.fields[0]|0;return bn(C,mn(f),{Equals:(x,A)=>x===A,GetHashCode:Xe})?new g(0,[gn(f,C.toString())]):new g(1,[[w,new R(1,[ve(f),y,"Unkown value provided for the enum"])]])}};case"System.Byte":return u=>p=>{const f=r,w=u,y=p,_=fl(w)(y);if(_.tag===1)return new g(1,[_.fields[0]]);{const C=_.fields[0];return bn(C,mn(f),{Equals:(x,A)=>x===A,GetHashCode:Xe})?new g(0,[gn(f,C.toString())]):new g(1,[[w,new R(1,[ve(f),y,"Unkown value provided for the enum"])]])}};case"System.Int16":return u=>p=>{const f=r,w=u,y=p,_=hl(w)(y);if(_.tag===1)return new g(1,[_.fields[0]]);{const C=_.fields[0]|0;return bn(C,mn(f),{Equals:(x,A)=>x===A,GetHashCode:Xe})?new g(0,[gn(f,vu(C))]):new g(1,[[w,new R(1,[ve(f),y,"Unkown value provided for the enum"])]])}};case"System.UInt16":return u=>p=>{const f=r,w=u,y=p,_=pl(w)(y);if(_.tag===1)return new g(1,[_.fields[0]]);{const C=_.fields[0];return bn(C,mn(f),{Equals:(x,A)=>x===A,GetHashCode:Xe})?new g(0,[gn(f,C.toString())]):new g(1,[[w,new R(1,[ve(f),y,"Unkown value provided for the enum"])]])}};case"System.Int32":return u=>p=>{const f=r,w=u,y=p,_=ml(w)(y);if(_.tag===1)return new g(1,[_.fields[0]]);{const C=_.fields[0]|0;return bn(C,mn(f),{Equals:(x,A)=>x===A,GetHashCode:Xe})?new g(0,[gn(f,zt(C))]):new g(1,[[w,new R(1,[ve(f),y,"Unkown value provided for the enum"])]])}};case"System.UInt32":return u=>p=>{const f=r,w=u,y=p,_=gl(w)(y);if(_.tag===1)return new g(1,[_.fields[0]]);{const C=_.fields[0];return bn(C,mn(f),{Equals:(x,A)=>x===A,GetHashCode:Xe})?new g(0,[gn(f,C.toString())]):new g(1,[[w,new R(1,[ve(f),y,"Unkown value provided for the enum"])]])}};default:{const u=ve(r),p=yd(wt(`Cannot generate auto decoder for %s.
|
|
14
14
|
Thoth.Json.Net only support the following enum types:
|
|
15
15
|
- sbyte
|
|
16
16
|
- byte
|
|
@@ -19,7 +19,7 @@ Thoth.Json.Net only support the following enum types:
|
|
|
19
19
|
- int
|
|
20
20
|
- uint32
|
|
21
21
|
If you can't use one of these types, please pass an extra decoder.
|
|
22
|
-
`))(u);return
|
|
22
|
+
`))(u);return f=>p(f)}}else if(zu(r))if(wi(r)){const d=Jn(u=>st(e,t,!1,u),Ku(r));return u=>p=>Array.isArray(p)?xt(f=>td(Wt(f)),vl(0,d,u,p)):new g(1,[[u,new R(0,["an array",p])]])}else switch(ve(Gu(r))){case"Microsoft.FSharp.Core.FSharpOption`1[System.Object]":return o=st(e,t,!0,de(0,gt(r))),u=>p=>R0(ne(o),u,p);case"Microsoft.FSharp.Collections.FSharpList`1[System.Object]":return s=st(e,t,!1,de(0,gt(r))),u=>p=>_l(ne(s),u,p);case"System.Collections.Generic.IEnumerable`1[System.Object]":return i=st(e,t,!1,de(0,gt(r))),u=>p=>O0(ne(i),u,p);case"Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]":{const u=st(e,t,!1,de(0,gt(r))),p=st(e,t,!1,de(1,gt(r)));let f;const w=b([y=>_=>z0(ne(u),ne(p),y,_),(a=V0(ne(u),ne(p)),y=>_=>_l(ne(a),y,_))]);return f=y=>_=>F0(w,y,_),y=>_=>L0(U0,ne(f),y,_)}case"Microsoft.FSharp.Collections.FSharpSet`1[System.Object]":{const u=st(e,t,!1,de(0,gt(r)));return p=>f=>{const w=yl(ne(u),p,f);return w.tag===0?new g(0,[H0(w.fields[0])]):new g(1,[w.fields[0]])}}default:return Cl(e,t,n,r)}else switch(c){case"System.Boolean":return d=>u=>T0(d,u);case"Microsoft.FSharp.Core.Unit":return d=>u=>I0(d,u);case"System.String":return d=>u=>ul(d,u);case"System.Char":return d=>u=>A0(d,u);case"System.SByte":return dl;case"System.Byte":return fl;case"System.Int16":return hl;case"System.UInt16":return pl;case"System.Int32":return ml;case"System.UInt32":return gl;case"System.Double":return d=>u=>$0(d,u);case"System.Single":return d=>u=>N0(d,u);case"System.DateTime":return d=>u=>M0(d,u);case"System.DateTimeOffset":return d=>u=>D0(d,u);case"System.TimeSpan":return d=>u=>P0(d,u);case"System.Guid":return d=>u=>E0(d,u);case"System.Object":return d=>u=>new g(0,[u]);default:return Cl(e,t,n,r)}else{const d=l;return u=>p=>d.contents(u)(p)}}function G0(e){return Nc({Compare:Cr})}function dr(e,t,n){const r=Ie(t,new Nn(0,[]));return st(G0(),r,!1,e)}class W0 extends K{constructor(t){super(),this.Roles=t}}function q0(){return Pt("AccountRegistry.AdminUI.Jwt.JwtPayload",[],W0,()=>[["Roles",No(z)]])}function Z0(e){const t=Fo(e??"",["."],void 0,0);if(!Uo((n,r)=>n===r,t)&&t.length===3){let n;const r=de(1,t);return n=atob(r),ur(ne(dr(q0(),new Nn(1,[]))),n)}else return new g(1,["Failed to decode access token"])}function kl(e,t,n,r){return Mp(o=>{Dp(o)},e,t,o=>o.tag===1?r(o.fields[0]):n(o.fields[0]))}function K0(){return fe()}function Ms(e){return W("/",e)}function J0(e,t){const n=new Error("Duplicate SubId");return e(["Duplicate SubId: "+Ms(t),n])}function Sl(e,t,n){try{J(n)}catch(r){e(["Error stopping subscription: "+Ms(t),r])}}function Y0(e,t,n,r){try{return[n,r(t)]}catch(o){e(["Error starting subscription: "+Ms(n),o]);return}}function X0(e,t){Br(n=>{Sl(e,n[0],n[1])},t)}function Al(e,t,n,r,o,s){return Br(i=>{J0(e,i)},n),Br(i=>{Sl(e,i[0],i[1])},r),Ce(o,ji(i=>Y0(e,t,i[0],i[1]),s))}function Q0(){return[fe(),x0({Compare:qe}),fe()]}function em(e,t,n,r,o){return Ns(e,r)?[He(e,n),r,o]:[n,v0(e,r),He([e,t],o)]}function tm(e){return Dd((t,n)=>em(t[0],t[1],n[0],n[1],n[2]),e,Q0())}const nm=fe();function El(e,t){const n=C0(Xn(i=>i[0],e),{Compare:qe}),r=tm(t),o=r[1],s=r[0];if(n.Equals(o))return[s,fe(),e,fe()];{const i=Hd(a=>Ns(a[0],o),e);return[s,i[1],i[0],Hi(a=>!Ns(a[0],n),r[2])]}}function rm(e,t,n,r){const o=qe(e,n)|0;if(o===0)throw new Error("The step of a range cannot be zero");const s=o>0;return i=>{const a=qe(i,t)|0;return s&&a<=0||!s&&a>=0?[i,r(i,e)]:void 0}}function om(e,t,n,r,o){const s=rm(t,n,r,o);return $(()=>wf(s,e))}function sm(e,t,n){return om(e,t,n,0,(r,o)=>r+o)}class Rn extends L{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Writable","ReadWritable"]}}class im{constructor(t){this.state=new Rn(0,[Vo(new Array(Li(t,10)),0,Li(t,10),null),0])}}function am(e){return new im(e)}function Il(e){const t=e.state;if(t.tag===1){const n=t.fields[1]|0,r=t.fields[2]|0,o=t.fields[0],s=(r+1)%o.length|0;return s===n?e.state=new Rn(0,[o,n]):e.state=new Rn(1,[o,n,s]),Ee(de(r,o))}else return}function cm(e,t){const n=e.state;if(n.tag===1){const r=n.fields[1]|0,o=n.fields[2]|0,s=n.fields[0];yt(s,r,t);const i=(r+1)%s.length|0;i===o?e.state=new Rn(1,[lm(e,o,s),s.length,0]):e.state=new Rn(1,[s,i,o])}else{const r=n.fields[1]|0,o=n.fields[0];yt(o,r,t);const s=(r+1)%o.length|0;e.state=new Rn(1,[o,s,r])}}function lm(e,t,n){return Array.from($(()=>P(vf(t,n),$(()=>P(xf(t,n),$(()=>Cf(r=>N(te()),sm(0,1,n.length))))))))}class Ds extends K{constructor(t,n,r,o,s,i,a){super(),this.init=t,this.update=n,this.subscribe=r,this.view=o,this.setState=s,this.onError=i,this.termination=a}}function Ps(e,t,n){return new Ds(e,t,r=>K0(),n,ne(r=>{const o=Dt(n)(r);return s=>{o(s)}}),r=>{$p(r[0],r[1])},[r=>!1,r=>{}])}function um(e,t){return new Ds(t.init,t.update,t.subscribe,t.view,e,t.onError,t.termination)}function dm(e){return e.init}function fm(e,t,n,r,o,s,i){const a=Dt(e)(i.init),c=Io(t)(Dt(i.update)),l=Io(n)(Dt(i.view)),d=Io(r)(Dt(i.setState));return new Ds(a,ne(c),Dt(o)(i.subscribe),ne(l),ne(d),i.onError,s(i.termination))}function hm(e,t,n){let r;const o=n.init(t),s=o[0],i=n.subscribe(s),a=n.termination,c=am(10);let l=!1,d=s,u=nm,p=!1;const f=_=>{p||(cm(c,_),l||(l=!0,y(),l=!1))},w=Dt(e)(f),y=()=>{let _,C=Il(c);for(;!p&&C!=null;){const x=I(C);if(a[0](x))X0(n.onError,u),a[1](d),p=!0;else{const A=n.update(x,d),O=A[0],H=n.subscribe(O);n.setState(O,w),Dc(Y=>{n.onError([_t(wt("Error handling the message: %A"))(x),Y])},w,A[1]),d=O,u=(_=El(u,H),Al(n.onError,w,_[0],_[1],_[2],_[3])),C=Il(c)}}};l=!0,n.setState(s,w),Dc(_=>{n.onError([_t(wt("Error intitializing:")),_])},w,o[1]),u=(r=El(u,i),Al(n.onError,w,r[0],r[1],r[2],r[3])),y(),l=!1}function pm(e,t){hm(ne(n=>n),e,t)}function mm(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var Tl={exports:{}},$l={};const gm=mm(Cs);/**
|
|
23
23
|
* @license React
|
|
24
24
|
* use-sync-external-store-shim.production.min.js
|
|
25
25
|
*
|
|
@@ -27,10 +27,10 @@ If you can't use one of these types, please pass an extra decoder.
|
|
|
27
27
|
*
|
|
28
28
|
* This source code is licensed under the MIT license found in the
|
|
29
29
|
* LICENSE file in the root directory of this source tree.
|
|
30
|
-
*/var
|
|
31
|
-
`,n.getAllResponseHeaders())),{Compare:xr}),new Cc(f,l,u,n.responseURL,g,h)))};const r=ie(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 o=e.overridenMimeType;if(o!=null){const l=o;n.overrideMimeType(l)}const s=e.overridenResponseType;if(s!=null)switch(s.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(ke(a.fields[0]));break}case 3:{n.send(ke(a.fields[0]));break}case 2:{n.send(ke(a.fields[0]));break}default:n.send()}})}function Cm(e,t,n){e:for(;;){const r=e,o=t,s=n;if(F(s)){const i=r;return i.tag===1?new m(1,[i.fields[0]]):new m(0,[Or(i.fields[0])])}else{let i;const a=o(M(s));if(a.tag===1)i=new m(1,[a.fields[0]]);else{const l=r;i=l.tag===1?new m(1,[l.fields[0]]):new m(0,[He(a.fields[0],l.fields[0])])}if(i.tag===1)return i;e=i,t=o,n=_(s);continue e}}}function km(e,t){return Cm(new m(0,[ue()]),e,t)}function Sm(e){return km(t=>t,e)}function Rs(e){return new Xi(vt(e))}function oo(e){return`${e}/account-registry/admin`}function so(e,t){return L.Delay(()=>{const n=Sc(vm(gt(mt("Bearer %s"))(e)),t);let r;const o=Ac(n);return r=L.Bind(o,s=>L.Return(new m(0,[s]))),L.Bind(r,s=>{const i=s;if(i.tag===1)return L.Return(new m(1,[i.fields[0]]));{const a=i.fields[0];if(a.statusCode===429||a.statusCode>=500){const l=Ac(n);return L.Bind(l,c=>L.Return(new m(0,[c])))}else return L.Return(new m(0,[a]))}})})}function Am(e,t){return L.Delay(()=>{const n=so(t,ro(new fr(0,[]),no(`${oo(e)}/partners`)));return L.Bind(n,r=>{const o=r;if(o.tag===1)return L.Return(new m(1,[o.fields[0]]));{const s=o.fields[0];if(s.statusCode===200){let i;const a=cr(ee(ur(To(zd()),new Tn(1,[]))),s.responseText);return i=a.tag===1?new m(1,[a.fields[0]]):Sm(Yn(Lp,a.fields[0])),L.Return(i)}else return L.Return(new m(1,["Unexpected response from backend"]))}})})}function Em(e,t,n,r){const o=vt(n),s=it(r);return L.Delay(()=>{const i=so(t,ro(new fr(0,[]),no(`${oo(e)}/partners/${o}/accounts/${s}`)));return L.Bind(i,a=>{const l=a;if(l.tag===1)return L.Return(new m(1,[l.fields[0]]));{const c=l.fields[0];if(c.statusCode===200){const f=cr(ee(ur(Wd(),new Tn(1,[]))),c.responseText);return L.Return(f)}else return L.Return(new m(1,["Unexpected response from backend"]))}})})}function Os(e,t,n,r,o){return L.Delay(()=>{let s,i,a,l;const c="?"+W("&",Di(u=>u,b([(s=Nl(r.SearchText),Si(s)?void 0:`search=${encodeURIComponent(s)}`),(i=Ep(r.Sort),i[0].tag===1?i[1].tag===1?"sort_by=name&sort_direction=desc":"sort_by=name&sort_direction=asc":i[1].tag===1?"sort_by=accountid&sort_direction=desc":"sort_by=accountid&sort_direction=asc"),(a=Ml(r.PageSize)|0,a<=100&&a>=10?`page_size=${a}`:void 0)]))),f=so(t,(l=ro(new fr(0,[]),no(`${oo(e)}/partners/${at(n)}/accounts${c}`)),o==null?l:Sc(new xc("token",o),l)));return L.Bind(f,u=>{const h=u;if(h.tag===1)return L.Return(new m(1,[h.fields[0]]));{const d=h.fields[0];if(d.statusCode===200){const g=cr(ee(ur(Kd(),new Tn(1,[]))),d.responseText);return L.Return(g)}else return L.Return(new m(1,["Unexpected response from backend"]))}})})}function Im(e,t,n){const r=it(n);return L.Delay(()=>{const o=so(t,ro(new fr(0,[]),no(`${oo(e)}/search-by-id/${r}`)));return L.Bind(o,s=>{const i=s;if(i.tag===1)return L.Return(new m(1,[i.fields[0]]));{const a=i.fields[0];if(a.statusCode===200){const l=cr(ee(ur(Yd(),new Tn(1,[]))),a.responseText);return L.Return(l)}else return L.Return(new m(1,["Unexpected response from backend"]))}})})}function Tm(e,t){return p("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),p("path",{fillRule:"evenodd",d:"M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z",clipRule:"evenodd"}))}const $m=Zr(Tm);class Le extends B{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["BreadCrumb"]}}function Nm(e,t,n){let r,o;return p("li",D(b([["key",e],["className","flex"],(r=[p("div",D(b([["className","flex items-center"],(o=me(T(()=>{let s;return P(n?Ze():$((s={className:"flex-shrink-0 h-5 w-5 text-gray-400"},p($m,s))),T(()=>$(p("a",D(me(T(()=>P($(["children",e]),T(()=>P(t!=null?$(["href",N(S(t),1)]):Ze(),T(()=>$(["className","ml-4 text-sm font-medium text-gray-500 hover:text-gray-700"]))))))))))))})),["children",A.Children.toArray(Array.from(o))])])))],["children",A.Children.toArray(Array.from(r))])])))}function Mm(e){let t,n;return p("nav",D(b([["className","pt-2"],["aria-label","Breadcrumb"],(t=[p("ol",D(b([["className","-ml-3 max-w-screen-xl w-full flex space-x-4"],(n=Ef((r,o)=>Nm(o.fields[0][0],o.fields[0][1],r===0),e),["children",A.Children.toArray(Array.from(n))])])))],["children",A.Children.toArray(Array.from(t))])])))}function Ec(){return new Le(["Partners",E(new C(0,[]))])}function Ic(e,t){return new Le([t,E(new C(1,[e]))])}function Dm(e){return new Le(["Super",E(new C(4,[e]))])}function Pm(e){return new Le(["Benefits",E(new C(5,[e]))])}function Rm(e){return new Le(["Bank Details",E(new C(6,[e]))])}function Om(e){return new Le(["Directory",E(new C(2,[e]))])}function Fm(e){return new Le(["Accounts",E(new C(3,[e]))])}function Bm(e){return new Le([e,void 0])}function Lm(e,t){let n;return new Le(["Directory",E((n=[e,t],new C(8,[n[0],n[1]])))])}function Vm(e,t){let n;return new Le(["Imports",E((n=[e,t],new C(9,[n[0],n[1]])))])}function Um(e,t){let n;return new Le(["Super",E((n=[e,t],new C(10,[n[0],n[1]])))])}function Hm(e,t){let n;return new Le(["Benefits",E((n=[e,t],new C(11,[n[0],n[1]])))])}function jm(e,t){let n;return new Le(["Bank Details",E((n=[e,t],new C(12,[n[0],n[1]])))])}function zm(e,t){let n;return new Le(["Salary Packaging",E((n=[e,t],new C(13,[n[0],n[1]])))])}function dr(e){let t,n;const r=e.partner;if(r==null)n="...";else{const h=r,d=h.Name;n=d.tag===2?d.fields[0].tag===1?Fi(h.Id):Vo(d.fields[0].fields[0]):"..."}let o;const s=e.account;if(s==null)o="...";else{const h=s,d=h.Name;o=d.tag===2?d.fields[0].tag===1?Bi(h.Id):Vo(d.fields[0].fields[0]):"..."}let i;const a=e.partner,l=e.account;let c,f,u;switch(a==null?(l==null,c=2):l==null?(c=1,u=a):(c=0,f=a),c){case 0:{i=b([Ec(),Ic(f.Id,n),Fm(f.Id),Bm(o)]);break}case 1:{i=b([Ec(),Ic(u.Id,n)]);break}default:i=ue()}return Mm((t=e.page,t.tag===14||t.tag===1||t.tag===3?i:t.tag===4?$e(i,j(Dm(t.fields[0]))):t.tag===5?$e(i,j(Pm(t.fields[0]))):t.tag===6?$e(i,j(Rm(t.fields[0]))):t.tag===2?$e(i,j(Om(t.fields[0]))):t.tag===7?i:t.tag===8?$e(i,j(Lm(t.fields[0],t.fields[1]))):t.tag===9?$e(i,j(Vm(t.fields[0],t.fields[1]))):t.tag===10?$e(i,j(Um(t.fields[0],t.fields[1]))):t.tag===11?$e(i,j(Hm(t.fields[0],t.fields[1]))):t.tag===12?$e(i,j(jm(t.fields[0],t.fields[1]))):t.tag===13?$e(i,j(zm(t.fields[0],t.fields[1]))):i))}class Gm extends B{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["Tab"]}}function Wm(e){return new Gm(e)}function qm(e){return e.fields[0]}function I(e,t){const n=(t!=null?"border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300":"border-indigo-500 text-indigo-600")+" whitespace-nowrap py-4 px-1 border-b-2 font-medium text-sm";return Wm(p("a",D(me(T(()=>P($(["key",e]),T(()=>P($(["children",e]),T(()=>P($(["className",n]),T(()=>t!=null?$(["href",N(j(S(t)),1)]):Ze())))))))))))}function Tc(e){let t,n;return p("div",D(b([["className","border-b border-gray-200"],(t=[p("nav",D(b([["className","-mb-px flex space-x-8"],["aria-label","Tabs"],(n=de(qm,e),["children",A.Children.toArray(Array.from(n))])])))],["children",A.Children.toArray(Array.from(t))])])))}class Zm extends K{constructor(t,n,r){super(),this.Roles=t,this.BackendUrl=n,this.AccessToken=r}}const nn=Dh();let rn=class extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["UpdateSearchText","UpdateSort","LoadAccountLookup","UpdateAccountLookup","QueryAccountLookup"]}};class Km{constructor(t){this.props=t}}function Jm(e){return new Km(e)}function $c(e){return t=>n=>L.Delay(()=>{const r=Rs(e.props.partnerId);return L.Bind(Os(e.props.backendUrl,e.props.accessToken,r,t,void 0),o=>(n(new rn(2,[new Y(2,[o])])),L.Zero()))})}function Ym(e){return t=>n=>r=>L.Delay(()=>{const o=Rs(e.props.partnerId);return L.Bind(Os(e.props.backendUrl,e.props.accessToken,o,t,n),s=>(r(new rn(3,[s])),L.Zero()))})}function Xm(e,t,n){return Os(e.props.backendUrl,e.props.accessToken,Rs(e.props.partnerId),t,void 0)}let On=class extends K{constructor(t,n,r,o){super(),this.Data=t,this.SearchText=n,this.Sort=r,this.PageSize=o}};function Qm(){return[new On(new Y(0,[]),Ip,Ap,Np(20)),Fe()]}function eg(e,t,n){let r,o,s,i;switch(t.tag){case 1:{const a=t.fields[0];return[new On(new Y(1,[]),n.SearchText,a,n.PageSize),Ee(l=>{const c=new As(n.SearchText,a,n.PageSize);An($c(e)(c)(l))})]}case 2:return[new On(t.fields[0],n.SearchText,n.Sort,n.PageSize),Fe()];case 3:{const a=t.fields[0];return[new On((r=n.Data,r.tag===2?r.fields[0].tag===0?(o=a,o.tag===1?new Y(2,[new m(1,[o.fields[0]])]):new Y(2,[new m(0,[new sa($e(r.fields[0].fields[0].Accounts,o.fields[0].Accounts),o.fields[0].Token)])])):(s=a,s.tag===1?new Y(2,[new m(1,[s.fields[0]])]):new Y(3,[new Error("Failed to retrieve the account data")])):(i=a,i.tag===1?new Y(2,[new m(1,[i.fields[0]])]):new Y(3,[new Error("Failed to retrieve the account data")]))),n.SearchText,n.Sort,n.PageSize),Fe()]}case 4:return[new On(new Y(1,[]),n.SearchText,n.Sort,n.PageSize),Ee(a=>{const l=new As(n.SearchText,n.Sort,n.PageSize);An($c(e)(l)(a))})];default:return[new On(n.Data,Tp(t.fields[0]),n.Sort,n.PageSize),Fe()]}}function Nc(e,t,n,r){let o,s;return p("div",D(b([["className",W(" ",["flex-grow","max-w-md"])],(o=[p("label",{for:"search",children:"Search",className:W(" ",["block","text-sm","font-medium","text-gray-700"])}),p("div",D(b([["className","mt-1"],(s=[p("input",{id:"search",name:"search",type:"text",className:W(" ",["py-2","shadow-sm","focus:ring-indigo-500","focus:border-indigo-500","block","w-full","sm:text-sm","border-gray-300","rounded-md"]),placeholder:t,value:e,onKeyUp:i=>{i.key==="Enter"&&r()},onChange:i=>{n(i.target.value)}})],["children",A.Children.toArray(Array.from(s))])])))],["children",A.Children.toArray(Array.from(o))])])))}function tg(e){let t,n;return p("div",D(b([["className","pt-6"],(t=[p("div",D(b([["className",W(" ",["flex","justify-end"])],(n=[p("button",{type:"search",children:"Search",className:W(" ",["ml-3","inline-flex","justify-center","py-2","px-4","border","border-transparent","shadow-sm","text-sm","font-medium","rounded-md","text-white","bg-indigo-600","hover:bg-indigo-700","focus:outline-none","focus:ring-2","focus:ring-offset-2","focus:ring-indigo-500"]),onClick:e})],["children",A.Children.toArray(Array.from(n))])])))],["children",A.Children.toArray(Array.from(t))])])))}class ng extends B{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["ColumnHeader"]}}function Mc(e){return new ng(e)}function Dc(e){return e.fields[0]}class rg extends B{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["RowCell"]}}function Fn(e){return new rg(e)}function Pc(e){return e.fields[0]}function og(){return["scope","col"]}function on(e){return Mc(p("th",D(b([["className","px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider"],og(),["children",e]]))))}function sg(e,t){let n;return Fn(p("td",D(b([["className","px-6 py-4 whitespace-nowrap text-sm"],(n=[p("a",{className:"text-indigo-600 hover:text-indigo-900",children:t,href:e})],["children",A.Children.toArray(Array.from(n))])]))))}function io(e,t){return Fn(p("td",{className:W(" ",P(e,["px-6","py-4","whitespace-nowrap","text-sm"])),children:t}))}function ig(e,t){let n,r,o,s,i,a,l;return p("div",D(b([["className","flex flex-col mt-4"],(n=[p("div",D(b([["className","-my-2 overflow-x-auto sm:-mx-6 lg:-mx-8"],(r=[p("div",D(b([["className","py-2 align-middle inline-block min-w-full sm:px-6 lg:px-8"],(o=[p("div",D(b([["className","shadow overflow-hidden border-b border-gray-200 sm:rounded-lg"],(s=[p("table",D(b([["className","min-w-full divide-y divide-gray-200"],(i=[p("thead",{className:"bg-gray-50",children:(a=de(Dc,e),p("tr",{children:A.Children.toArray(Array.from(a))}))}),(l=ji((c,f)=>(u=>{let h;return p("tr",D(b([["className",c%2===0?"bg-white":"bg-gray-50"],(h=de(Pc,u),["children",A.Children.toArray(Array.from(h))])])))})(f),t),p("tbody",{children:A.Children.toArray(Array.from(l))}))],["children",A.Children.toArray(Array.from(i))])])))],["children",A.Children.toArray(Array.from(s))])])))],["children",A.Children.toArray(Array.from(o))])])))],["children",A.Children.toArray(Array.from(r))])])))],["children",A.Children.toArray(Array.from(n))])])))}function Rc(e){return["fillRule",e]}function Oc(e){return["clipRule",e]}const ag=p("svg",D(b([["className",W(" ",["h-5","w-5"])],["fill","currentColor"],["viewBox","0 0 20 20"],["xmlns","http://www.w3.org/2000/svg"],(()=>{let e;const t=j(p("path",D(b([(e="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",["d",e]),Rc("evenodd"),Oc("evenodd")]))));return["children",A.Children.toArray(Array.from(t))]})()]))),lg=p("svg",D(b([["className",W(" ",["h-5","w-5"])],["fill","currentColor"],["viewBox","0 0 20 20"],["xmlns","http://www.w3.org/2000/svg"],(()=>{let e;const t=j(p("path",D(b([(e="M14.707 12.707a1 1 0 01-1.414 0L10 9.414l-3.293 3.293a1 1 0 01-1.414-1.414l4-4a1 1 0 011.414 0l4 4a1 1 0 010 1.414z",["d",e]),Rc("evenodd"),Oc("evenodd")]))));return["children",A.Children.toArray(Array.from(t))]})()]))),Fc=p("svg",D(b([["className","size-6"],["fill","none"],["stroke","currentColor"],["strokeWidth",1.5],["viewBox","0 0 24 24"],["xmlns","http://www.w3.org/2000/svg"],(()=>{const e=j(p("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"}));return["children",A.Children.toArray(Array.from(e))]})()])));function cg(e,t,n){return e?$e(n,t):n}function Bc(e,t,n,r){let o,s,i;return Mc(p("th",D(b([["className",W(" ",["px-6","py-3","text-left","text-xs","font-medium","text-gray-500","sm:pl-6","uppercase","tracking-wider"])],["scope","col"],(o=[p("a",D(b([["className",W(" ",["group","inline-flex","cursor-pointer"])],["onClick",n],(s=[r,p("span",D(b([["className",W(" ",cg(!e,j("invisible"),b(["ml-2","flex-none","rounded","text-gray-400","group-hover:visible","group-focus:visible"])))],(i=me(T(()=>$(t?ag:lg))),["children",A.Children.toArray(Array.from(i))])])))],["children",A.Children.toArray(Array.from(s))])])))],["children",A.Children.toArray(Array.from(o))])]))))}function ug(e,t){return Bc(he(El(e.Sort),new It(1,[])),he(Il(e.Sort),new en(0,[])),n=>{t(new rn(1,[Tl(new It(1,[]),e.Sort)]))},"Name")}function fg(e,t){return Bc(he(El(e.Sort),new It(0,[])),he(Il(e.Sort),new en(0,[])),n=>{t(new rn(1,[Tl(new It(0,[]),e.Sort)]))},"Id")}function dg(e,t){let n;return Fn(p("td",D(b([["className",W(" ",["text-gray-500","px-6","py-2","whitespace-nowrap","text-sm","align-top"])],(n=[p("span",{children:[e]}),p("br",{}),p("span",{children:[t]})],["children",A.Children.toArray(Array.from(n))])]))))}function hg(e,t,n){let r;return Fn(p("td",D(b([["className",W(" ",["text-gray-500","px-6","py-2","whitespace-nowrap","text-sm","align-top"])],(r=me(T(()=>{let o;return P($(p("div",D(b([["className",W(" ",["font-medium"])],(o=[p("span",{children:[e]})],["children",A.Children.toArray(Array.from(o))])])))),T(()=>{let s;return P((s=t,s==null?$(Q()):$(p("span",{children:["Legal Entity: "+s]}))),T(()=>{const i=n;if(i==null)return $(Q());{const a=i;return P($(p("br",{})),T(()=>$(p("span",{children:["ABN: "+a]}))))}}))}))})),["children",A.Children.toArray(Array.from(r))])]))))}function pg(e){return Fn(p("td",{className:W(" ",["px-6","py-2","whitespace-nowrap","text-sm","text-gray-500","align-top"]),children:e}))}function mg(e,t,n,r){let o;return Fn(p("td",D(b([["className","px-6 py-2 whitespace-nowrap text-sm align-top"],(o=me(T(()=>P($(p("a",{className:"text-indigo-600 hover:text-indigo-900",children:t,href:e})),T(()=>{let s,i;return P((s=r,s==null?$(Q()):(i=s,P($(p("br",{})),T(()=>$(p("span",{children:[`Channel ID: ${i}`]})))))),T(()=>{const a=n;if(a==null)return $(Q());{const l=a;return P($(p("br",{})),T(()=>$(p("span",{children:[`External ID: ${l}`]}))))}}))})))),["children",A.Children.toArray(Array.from(o))])]))))}function gg(e,t,n){const r=xt(n.AccountId);return me(T(()=>{let o;return P($(mg(N(E((o=[e,r],new C(7,[o[0],o[1]]))),1),n.AccountId,n.ExternalId,n.ChannelId)),T(()=>P($(hg(n.Name,n.BusinessName,n.BusinessNumber)),T(()=>P(t.ReadProtectedData?$(dg(Se(n.Contact,""),Se(n.ContactMobilePhone,""))):Ze(),T(()=>$(pg(n.Website))))))))}))}class wg extends K{constructor(t,n){super(),this.Data=t,this.LoadNext=n}}class Lc extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Resolved","InProgress"]}}class Vc extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Known","Unknown"]}}function _g(e){let t;return p("thead",{className:"bg-gray-50",children:(t=de(Dc,e),p("tr",{children:A.Children.toArray(Array.from(t))}))})}function yg(e,t){let n;return p("tr",D(b([["className",e%2===0?"bg-white":"bg-gray-50"],(n=de(Pc,t),["children",A.Children.toArray(Array.from(n))])])))}function bg(e,t,n,r,o,s){let i,a,l,c,f,u,h;const d=t!=null&&n!=null?(i=t|0,a=n|0,me(T(()=>P($("Showing "),T(()=>P($(p("span",{className:"font-medium",children:`${i}`})),T(()=>P($(" to "),T(()=>P($(p("span",{className:"font-medium",children:`${a}`})),T(()=>P($(" of "),T(()=>r.tag===1?j(" many"):b([p("span",{className:"font-medium",children:Ie(r.fields[0])})," results"])))))))))))))):j(Q()),g=me(T(()=>{let y,w;return P((y=s,y==null?$(Q()):(w=y,$(p("a",{className:W(" ",["relative","inline-flex","items-center","px-4","py-2","border","border-gray-300","text-sm","font-medium","rounded-md","text-gray-700","bg-white","hover:bg-gray-50","cursor-pointer"]),onClick:w,children:"Previous "})))),T(()=>{const x=o;if(x==null)return $(Q());{const v=x;return $(p("a",{className:W(" ",["ml-3","relative","inline-flex","items-center","px-4","py-2","border","border-gray-300","text-sm","font-medium","rounded-md","text-gray-700","bg-white","hover:bg-gray-50","cursor-pointer"]),onClick:v,children:" Next"}))}}))}));return p("tfoot",D(b([["className",W(" ",["w-full"])],(l=[p("tr",D(j((c=[p("td",D(b([["colSpan",e],(f=[p("nav",D(b([["className",W(" ",["bg-white","px-4","py-3","flex","items-center","justify-between","border-t-1","border-gray-200","sm:px-6"])],(u=[p("div",D(b([["className",W(" ",["hidden","sm:block"])],(h=[p("p",{className:W(" ",["text-sm","text-gray-700"]),children:A.Children.toArray(Array.from(d))})],["children",A.Children.toArray(Array.from(h))])]))),p("div",{className:W(" ",["flex-1","flex","justify-between","sm:justify-end"]),children:A.Children.toArray(Array.from(g))})],["children",A.Children.toArray(Array.from(u))])])))],["children",A.Children.toArray(Array.from(f))])])))],["children",A.Children.toArray(Array.from(c))]))))],["children",A.Children.toArray(Array.from(l))])])))}function vg(e,t){const n=ir(1),r=n[1],o=n[0]|0;return[o,s=>{if(o===e){if(t!=null){const i=t;bi(mt("Calling Load")),i(),r(o+1)}}else r(o+1)},s=>{r(o-1)}]}function xg(e){let t,n,r,o,s;const i=e.data,a=e.pageSize,l=e.renderRowCells,c=e.columnHeaders,f=Rf(a,i.Data),u=vg(mn(f),i.LoadNext),h=u[0]|0,d=u[1];let g;const y=Nf(h-1,f);g=y==null?new Lc(1,[]):new Lc(0,[y]);const w=mn(i.Data)|0,x=i.LoadNext==null?new Vc(0,[w]):new Vc(1,[]),v=g.tag===1?void 0:w>=1?(h-1)*a+1:void 0,k=g.tag===1?void 0:w>=1?(h-1)*a+mn(g.fields[0]):void 0,O=h===1?void 0:u[2],U=h===mn(f)?i.LoadNext!=null?d:void 0:h<mn(f)?d:void 0;return p("div",D(b([["className","flex flex-col mt-4"],(t=[p("div",D(b([["className","-my-2 overflow-x-auto sm:-mx-6 lg:-mx-8"],(n=[p("div",D(b([["className","py-2 align-middle inline-block min-w-full sm:px-6 lg:px-8"],(r=[p("div",D(b([["className","shadow overflow-hidden border-b border-gray-200 sm:rounded-lg"],(o=[p("table",D(b([["className","min-w-full divide-y divide-gray-200"],(s=me(T(()=>P($(_g(c)),T(()=>{let oe,we;return P((oe=g,oe.tag===1?$(Q()):$((we=ji(yg,l(oe.fields[0])),p("tbody",{children:A.Children.toArray(Array.from(we))})))),T(()=>$(bg(mn(c),v,k,x,U,O))))})))),["children",A.Children.toArray(Array.from(s))])])))],["children",A.Children.toArray(Array.from(o))])])))],["children",A.Children.toArray(Array.from(r))])])))],["children",A.Children.toArray(Array.from(n))])])))],["children",A.Children.toArray(Array.from(t))])])))}function sn(e){const t=e.error,n=j(p("span",{children:[t]}));return p("div",{children:A.Children.toArray(Array.from(n))})}function ao(){const e=j(p("span",{children:["Please wait..."]}));return p("div",{children:A.Children.toArray(Array.from(e))})}function Cg(e){let t,n,r,o,s,i,a;const l=Sn(nn),c=Jm({accessToken:l.AccessToken,backendUrl:l.BackendUrl,partnerId:e.partnerId}),f=Ps(()=>Ms(Qm,(O,U)=>eg(c,O,U),(O,U)=>{}),void 0,void 0),u=f[0],h=f[1],d=new As(u.SearchText,u.Sort,u.PageSize);xs((t=[()=>Xm(c,d),O=>{h(new rn(2,[O]))}],xl(t[0],t[1])));const g=O=>{h(new rn(4,[]))},y=u.Data;let w,x,v,k;switch(y.tag){case 0:case 1:{w=2;break}case 3:{w=3,k=y.fields[0];break}default:y.fields[0].tag===1?(w=1,v=y.fields[0].fields[0]):(w=0,x=y.fields[0].fields[0])}switch(w){case 0:{const O=b([p("div",D(b([["className",W(" ",["grid","grid-cols-2","pt-2","sm:-mr-6","lg:mr-0"])],(n=[p("div",D(b([["className",W(" ",["flex","flex-row","gap-4","sm:-mr-6","lg:mr-0"])],(r=[Nc(Nl(u.SearchText),"Account ID, Name, Legal Entity, Channel ID or External ID",U=>{h(new rn(0,[U]))},g),tg(g)],["children",A.Children.toArray(Array.from(r))])])))],["children",A.Children.toArray(Array.from(n))])]))),(o=x,s=me(T(()=>P($(fg(u,h)),T(()=>P($(ug(u,h)),T(()=>P(l.Roles.ReadProtectedData?$(on("Contact")):Ze(),T(()=>$(on("Website")))))))))),i=new wg(o.Accounts,Xe(U=>()=>{An(Ym(c)(d)(U)(h))},o.Token)),a=Ml(u.PageSize)|0,p(xg,{columnHeaders:s,renderRowCells:U=>Yn(oe=>gg(e.partnerId,l.Roles,oe),U),pageSize:a,data:i}))]);return p("div",{children:A.Children.toArray(Array.from(O))})}case 1:return p(sn,{error:v});case 2:return p(ao,null);default:{const O=Ie(k);return p(sn,{error:O})}}}let lo=class extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["backend-url","access-token","partner-id","account-id"]}};function Uc(e){const t=e.accessToken,n=e.backendUrl,r=e.accountId,o=e.partnerId,s=wn(i=>i,[new lo(1,[t]),new lo(0,[n]),new lo(2,[vt(o)]),Xe(i=>new lo(3,[it(i)]),r)]);return p("superhero-super-configuration",Wt(s,1))}let co=class extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["backend-url","access-token","partner-id","account-id"]}};function Hc(e){const t=e.accessToken,n=e.backendUrl,r=e.accountId,o=e.partnerId,s=wn(i=>i,[new co(1,[t]),new co(0,[n]),new co(2,[vt(o)]),Xe(i=>new co(3,[it(i)]),r)]);return p("superhero-benefits-onboarding-configuration",Wt(s,1))}let uo=class extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["backend-url","access-token","partner-id","account-id"]}};function jc(e){const t=e.accessToken,n=e.backendUrl,r=e.accountId,o=e.partnerId,s=wn(i=>i,[new uo(1,[t]),new uo(0,[n]),new uo(2,[vt(o)]),Xe(i=>new uo(3,[it(i)]),r)]);return p("superhero-bank-details",Wt(s,1))}let fo=class extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["backend-url","access-token","partner-id","account-id"]}};function zc(e){const t=e.accessToken,n=e.backendUrl,r=e.accountId,o=e.partnerId,s=wn(i=>i,[new fo(1,[t]),new fo(0,[n]),new fo(2,[vt(o)]),Xe(i=>new fo(3,[it(i)]),r)]);return p("superhero-profile-directory-app",Wt(s,1))}var kg=Object.defineProperty,Sg=(e,t,n)=>t in e?kg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Fs=(e,t,n)=>(Sg(e,typeof t!="symbol"?t+"":t,n),n);let Ag=class{constructor(){Fs(this,"current",this.detect()),Fs(this,"handoffState","pending"),Fs(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},ho=new Ag,hr=(e,t)=>{ho.isServer?xe(e,t):Ft(e,t)};function Bn(e){let t=Ne(e);return hr(()=>{t.current=e},[e]),t}let Tt=function(e){let t=Bn(e);return je.useCallback((...n)=>t.current(...n),[t])};function Eg(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function pr(){let e=[],t={addEventListener(n,r,o,s){return n.addEventListener(r,o,s),t.add(()=>n.removeEventListener(r,o,s))},requestAnimationFrame(...n){let r=requestAnimationFrame(...n);return t.add(()=>cancelAnimationFrame(r))},nextFrame(...n){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...n))},setTimeout(...n){let r=setTimeout(...n);return t.add(()=>clearTimeout(r))},microTask(...n){let r={current:!0};return Eg(()=>{r.current&&n[0]()}),t.add(()=>{r.current=!1})},style(n,r,o){let s=n.style.getPropertyValue(r);return Object.assign(n.style,{[r]:o}),this.add(()=>{Object.assign(n.style,{[r]:s})})},group(n){let r=pr();return n(r),this.add(()=>r.dispose())},add(n){return e.push(n),()=>{let r=e.indexOf(n);if(r>=0)for(let o of e.splice(r,1))o()}},dispose(){for(let n of e.splice(0))n()}};return t}function Gc(){let[e]=Ke(pr);return xe(()=>()=>e.dispose(),[e]),e}function Ig(){let e=typeof document>"u";return"useSyncExternalStore"in vs?(t=>t.useSyncExternalStore)(vs)(()=>()=>{},()=>!1,()=>!e):!1}function Wc(){let e=Ig(),[t,n]=Ke(ho.isHandoffComplete);return t&&ho.isHandoffComplete===!1&&n(!1),xe(()=>{t!==!0&&n(!0)},[t]),xe(()=>ho.handoff(),[]),e?!1:t}function lt(e,t,...n){if(e in t){let o=t[e];return typeof o=="function"?o(...n):o}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(o=>`"${o}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,lt),r}let Tg=Symbol();function qc(...e){let t=Ne(e);xe(()=>{t.current=e},[e]);let n=Tt(r=>{for(let o of t.current)o!=null&&(typeof o=="function"?o(r):o.current=r)});return e.every(r=>r==null||(r==null?void 0:r[Tg]))?void 0:n}function po(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}var Zc=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(Zc||{}),Bt=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(Bt||{});function Kc({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:s=!0,name:i,mergeRefs:a}){a=a??$g;let l=Jc(t,e);if(s)return mo(l,n,r,i,a);let c=o??0;if(c&2){let{static:f=!1,...u}=l;if(f)return mo(u,n,r,i,a)}if(c&1){let{unmount:f=!0,...u}=l;return lt(f?0:1,{0(){return null},1(){return mo({...u,hidden:!0,style:{display:"none"}},n,r,i,a)}})}return mo(l,n,r,i,a)}function mo(e,t={},n,r,o){let{as:s=n,children:i,refName:a="ref",...l}=Ls(e,["unmount","static"]),c=e.ref!==void 0?{[a]:e.ref}:{},f=typeof i=="function"?i(t):i;"className"in l&&l.className&&typeof l.className=="function"&&(l.className=l.className(t));let u={};if(t){let h=!1,d=[];for(let[g,y]of Object.entries(t))typeof y=="boolean"&&(h=!0),y===!0&&d.push(g);h&&(u["data-headlessui-state"]=d.join(" "))}if(s===Ae&&Object.keys(Yc(l)).length>0){if(!kn(f)||Array.isArray(f)&&f.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(l).map(y=>` - ${y}`).join(`
|
|
30
|
+
*/var On=gm;function wm(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var _m=typeof Object.is=="function"?Object.is:wm,ym=On.useState,bm=On.useEffect,vm=On.useLayoutEffect,xm=On.useDebugValue;function Cm(e,t){var n=t(),r=ym({inst:{value:n,getSnapshot:t}}),o=r[0].inst,s=r[1];return vm(function(){o.value=n,o.getSnapshot=t,Rs(o)&&s({inst:o})},[e,n,t]),bm(function(){return Rs(o)&&s({inst:o}),e(function(){Rs(o)&&s({inst:o})})},[e]),xm(n),n}function Rs(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!_m(e,n)}catch{return!0}}function km(e,t){return t()}var Sm=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?km:Cm;$l.useSyncExternalStore=On.useSyncExternalStore!==void 0?On.useSyncExternalStore:Sm,Tl.exports=$l;var Am=Tl.exports;class Em{constructor(t,n,r){this.arg=n,this.dependencies=r;const o=t(),s=[];this.finalDispatch=void 0;let i;const a=dm(o)(this.arg);let c=a[0],l=a[1];i=[[c,d=>{const u=this.finalDispatch;u==null?s.push(d):u(d)},!1,s],l],this.state=i[0],this.cmd=i[1],this.subscribe=d=>{let u=!1;const p=So(this.state[0]);return pm(this.arg,um((f,w)=>{const y=this.state;this.finalDispatch=w,this.state=[f,y[1],!0,s],f!==y[0]&&d()},fm((f,w)=>{const y=this.cmd;return this.cmd=Ve(),[this.state[0],y]},(f,w,y)=>f(w)(this.state[0]),Eo(f=>f),Eo(f=>f),ne(f=>f),f=>[w=>f[0](w)?!0:p&&u,w=>{const y=w;So(y)?J(y):f[1](w)}],o))),()=>{u=!0}}}}function Nl(e,t,n){return new Em(e,t,n)}function Im(e){return e.state}function Tm(e){return e.subscribe}function $m(e,t,n){return me(e.arg,t)?!me(e.dependencies,n):!0}function Os(e,t,n){const r=Je(()=>Nl(e,t,n)),o=r[0];$m(o,t,n)&&r[1](Nl(e,t,n));const s=Am.useSyncExternalStore(Tm(o),()=>Im(o)),i=s[2],a=s[3],c=s[1];return ke(()=>{if(i&&a.length>0){let l=ie(a);try{for(;l["System.Collections.IEnumerator.MoveNext"]();){const d=l["System.Collections.Generic.IEnumerator`1.get_Current"]();setTimeout(()=>{c(d)})}}finally{J(l)}$u(a)}},[i,a]),[s[0],c]}class fr extends L{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class Ml extends L{constructor(t,n){super(),this.tag=0,this.fields=[t,n]}cases(){return["Header"]}}class Nm extends L{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Empty","Text","Binary","Form"]}}class no extends K{constructor(t,n,r,o,s,i,a,c){super(),this.url=t,this.method=n,this.headers=r,this.withCredentials=o,this.overridenMimeType=s,this.overridenResponseType=i,this.timeout=a,this.content=c}}class Fn extends L{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class Dl extends K{constructor(t,n,r,o,s,i){super(),this.statusCode=t|0,this.responseText=n,this.responseType=r,this.responseUrl=o,this.responseHeaders=s,this.content=i}}function Mm(e){return new Ml("Authorization",e)}const rn=new no("",new fr(0,[]),fe(),!1,void 0,void 0,void 0,new Nm(0,[]));new Dl(0,"","","",Nc({Compare:Cr}),new Fn(0,[""]));function Pl(e,t){return Pi(t)?new Array(0):Fo(t,[e],void 0,0)}function Dm(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 ro(e){return new no(e,rn.method,rn.headers,rn.withCredentials,rn.overridenMimeType,rn.overridenResponseType,rn.timeout,rn.content)}function oo(e,t){return new no(t.url,e,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function Rl(e,t){return new no(t.url,t.method,Ce(t.headers,j(e)),t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function Ol(e){return ep(t=>{const n=new XMLHttpRequest;n.open(Dm(e.method),e.url),n.onreadystatechange=()=>{let c,l,d,u,p,f,w;n.readyState===4&&t[0]((c=(l=n.responseType,l===""||l==="text"?n.responseText:""),d=n.status|0,u=n.responseType,p=(f=n.responseType,f===""?new Fn(0,[n.responseText]):f==="text"?new Fn(0,[n.responseText]):f==="arraybuffer"?new Fn(2,[n.response]):f==="blob"?new Fn(1,[n.response]):new Fn(3,[n.response])),w=Cp(Td(y=>{const _=b(Pl(":",y));if(!F(_))return[M(_).toLocaleLowerCase(),W(":",m(_)).trim()]},Pl(`\r
|
|
31
|
+
`,n.getAllResponseHeaders())),{Compare:Cr}),new Dl(d,c,u,n.responseURL,w,p)))};const r=ie(e.headers);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const c=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n.setRequestHeader(c.fields[0],c.fields[1])}}finally{J(r)}n.withCredentials=e.withCredentials;const o=e.overridenMimeType;if(o!=null){const c=o;n.overrideMimeType(c)}const s=e.overridenResponseType;if(s!=null)switch(s.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 c=i|0;n.timeout=c|0}const a=e.content;switch(a.tag){case 1:{n.send(Ee(a.fields[0]));break}case 3:{n.send(Ee(a.fields[0]));break}case 2:{n.send(Ee(a.fields[0]));break}default:n.send()}})}function Pm(e,t,n){e:for(;;){const r=e,o=t,s=n;if(F(s)){const i=r;return i.tag===1?new g(1,[i.fields[0]]):new g(0,[Fr(i.fields[0])])}else{let i;const a=o(M(s));if(a.tag===1)i=new g(1,[a.fields[0]]);else{const c=r;i=c.tag===1?new g(1,[c.fields[0]]):new g(0,[He(a.fields[0],c.fields[0])])}if(i.tag===1)return i;e=i,t=o,n=m(s);continue e}}}function Rm(e,t){return Pm(new g(0,[fe()]),e,t)}function Om(e){return Rm(t=>t,e)}function Fs(e){return new ca(ct(e))}function so(e){return`${e}/account-registry/admin`}function io(e,t){return V.Delay(()=>{const n=Rl(Mm(_t(wt("Bearer %s"))(e)),t);let r;const o=Ol(n);return r=V.Bind(o,s=>V.Return(new g(0,[s]))),V.Bind(r,s=>{const i=s;if(i.tag===1)return V.Return(new g(1,[i.fields[0]]));{const a=i.fields[0];if(a.statusCode===429||a.statusCode>=500){const c=Ol(n);return V.Bind(c,l=>V.Return(new g(0,[l])))}else return V.Return(new g(0,[a]))}})})}function Fm(e,t){return V.Delay(()=>{const n=io(t,oo(new fr(0,[]),ro(`${so(e)}/partners`)));return V.Bind(n,r=>{const o=r;if(o.tag===1)return V.Return(new g(1,[o.fields[0]]));{const s=o.fields[0];if(s.statusCode===200){let i;const a=ur(ne(dr(No(th()),new Nn(1,[]))),s.responseText);return i=a.tag===1?new g(1,[a.fields[0]]):Om(Xn(Jp,a.fields[0])),V.Return(i)}else return V.Return(new g(1,["Unexpected response from backend"]))}})})}function Bm(e,t,n,r){const o=ct(n),s=Qe(r);return V.Delay(()=>{const i=io(t,oo(new fr(0,[]),ro(`${so(e)}/partners/${o}/accounts/${s}`)));return V.Bind(i,a=>{const c=a;if(c.tag===1)return V.Return(new g(1,[c.fields[0]]));{const l=c.fields[0];if(l.statusCode===200){const d=ur(ne(dr(rh(),new Nn(1,[]))),l.responseText);return V.Return(d)}else return V.Return(new g(1,["Unexpected response from backend"]))}})})}function Bs(e,t,n,r,o){return V.Delay(()=>{let s,i,a,c;const l="?"+W("&",ji(u=>u,b([(s=Uc(r.SearchText),Ri(s)?void 0:`search=${encodeURIComponent(s)}`),(i=Bp(r.Sort),i[0].tag===1?i[1].tag===1?"sort_by=name&sort_direction=desc":"sort_by=name&sort_direction=asc":i[1].tag===1?"sort_by=accountid&sort_direction=desc":"sort_by=accountid&sort_direction=asc"),(a=Hc(r.PageSize)|0,a<=100&&a>=10?`page_size=${a}`:void 0)]))),d=io(t,(c=oo(new fr(0,[]),ro(`${so(e)}/partners/${et(n)}/accounts${l}`)),o==null?c:Rl(new Ml("token",o),c)));return V.Bind(d,u=>{const p=u;if(p.tag===1)return V.Return(new g(1,[p.fields[0]]));{const f=p.fields[0];if(f.statusCode===200){const w=ur(ne(dr(ih(),new Nn(1,[]))),f.responseText);return V.Return(w)}else return V.Return(new g(1,["Unexpected response from backend"]))}})})}function Lm(e,t,n){const r=Qe(n);return V.Delay(()=>{const o=io(t,oo(new fr(0,[]),ro(`${so(e)}/search-by-id/${r}`)));return V.Bind(o,s=>{const i=s;if(i.tag===1)return V.Return(new g(1,[i.fields[0]]));{const a=i.fields[0];if(a.statusCode===200){const c=ur(ne(dr(ch(),new Nn(1,[]))),a.responseText);return V.Return(c)}else return V.Return(new g(1,["Unexpected response from backend"]))}})})}function Vm(e,t){return h("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),h("path",{fillRule:"evenodd",d:"M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z",clipRule:"evenodd"}))}const Um=Kr(Vm);class Me extends L{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["BreadCrumb"]}}function Hm(e,t,n){let r,o;return h("li",D(b([["key",e],["className","flex"],(r=[h("div",D(b([["className","flex items-center"],(o=ge($(()=>{let s;return P(n?Ke():N((s={className:"flex-shrink-0 h-5 w-5 text-gray-400"},h(Um,s))),$(()=>N(h("a",D(ge($(()=>P(N(["children",e]),$(()=>P(t!=null?N(["href",E(I(t),1)]):Ke(),$(()=>N(["className","ml-4 text-sm font-medium text-gray-500 hover:text-gray-700"]))))))))))))})),["children",T.Children.toArray(Array.from(o))])])))],["children",T.Children.toArray(Array.from(r))])])))}function jm(e){let t,n;return h("nav",D(b([["className","pt-2"],["aria-label","Breadcrumb"],(t=[h("ol",D(b([["className","-ml-3 max-w-screen-xl w-full flex space-x-4"],(n=Fd((r,o)=>Hm(o.fields[0][0],o.fields[0][1],r===0),e),["children",T.Children.toArray(Array.from(n))])])))],["children",T.Children.toArray(Array.from(t))])])))}function Fl(){return new Me(["Partners",k(new v(0,[]))])}function Bl(e,t){return new Me([t,k(new v(1,[e]))])}function zm(e){return new Me(["Super",k(new v(4,[e]))])}function Gm(e){return new Me(["Benefits",k(new v(5,[e]))])}function Wm(e){return new Me(["Bank Details",k(new v(6,[e]))])}function qm(e){return new Me(["Directory",k(new v(2,[e]))])}function Zm(e){return new Me(["Workspace",k(new v(7,[e]))])}function Km(e){return new Me(["Accounts",k(new v(3,[e]))])}function Jm(e){return new Me([e,void 0])}function Ym(e,t){let n;return new Me(["Directory",k((n=[e,t],new v(9,[n[0],n[1]])))])}function Xm(e,t){let n;return new Me(["Imports",k((n=[e,t],new v(10,[n[0],n[1]])))])}function Qm(e,t){let n;return new Me(["Super",k((n=[e,t],new v(11,[n[0],n[1]])))])}function eg(e,t){let n;return new Me(["Benefits",k((n=[e,t],new v(12,[n[0],n[1]])))])}function tg(e,t){let n;return new Me(["Bank Details",k((n=[e,t],new v(13,[n[0],n[1]])))])}function ng(e,t){let n;return new Me(["Salary Packaging",k((n=[e,t],new v(14,[n[0],n[1]])))])}function rg(e,t){let n;return new Me(["Workspace",k((n=[e,t],new v(15,[n[0],n[1]])))])}function hr(e){let t,n;const r=e.partner;if(r==null)n="...";else{const p=r,f=p.Name;n=f.tag===2?f.fields[0].tag===1?qi(p.Id):Ho(f.fields[0].fields[0]):"..."}let o;const s=e.account;if(s==null)o="...";else{const p=s,f=p.Name;o=f.tag===2?f.fields[0].tag===1?Zi(p.Id):Ho(f.fields[0].fields[0]):"..."}let i;const a=e.partner,c=e.account;let l,d,u;switch(a==null?(c==null,l=2):c==null?(l=1,u=a):(l=0,d=a),l){case 0:{i=b([Fl(),Bl(d.Id,n),Km(d.Id),Jm(o)]);break}case 1:{i=b([Fl(),Bl(u.Id,n)]);break}default:i=fe()}return jm((t=e.page,t.tag===16||t.tag===1||t.tag===3?i:t.tag===4?Ce(i,j(zm(t.fields[0]))):t.tag===5?Ce(i,j(Gm(t.fields[0]))):t.tag===6?Ce(i,j(Wm(t.fields[0]))):t.tag===2?Ce(i,j(qm(t.fields[0]))):t.tag===7?Ce(i,j(Zm(t.fields[0]))):t.tag===8?i:t.tag===9?Ce(i,j(Ym(t.fields[0],t.fields[1]))):t.tag===10?Ce(i,j(Xm(t.fields[0],t.fields[1]))):t.tag===11?Ce(i,j(Qm(t.fields[0],t.fields[1]))):t.tag===12?Ce(i,j(eg(t.fields[0],t.fields[1]))):t.tag===13?Ce(i,j(tg(t.fields[0],t.fields[1]))):t.tag===14?Ce(i,j(ng(t.fields[0],t.fields[1]))):t.tag===15?Ce(i,j(rg(t.fields[0],t.fields[1]))):i))}class og extends L{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["Tab"]}}function sg(e){return new og(e)}function ig(e){return e.fields[0]}function S(e,t){const n=(t!=null?"border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300":"border-indigo-500 text-indigo-600")+" whitespace-nowrap py-4 px-1 border-b-2 font-medium text-sm";return sg(h("a",D(ge($(()=>P(N(["key",e]),$(()=>P(N(["children",e]),$(()=>P(N(["className",n]),$(()=>t!=null?N(["href",E(j(I(t)),1)]):Ke())))))))))))}function Ll(e){let t,n;return h("div",D(b([["className","border-b border-gray-200"],(t=[h("nav",D(b([["className","-mb-px flex space-x-8"],["aria-label","Tabs"],(n=pe(ig,e),["children",T.Children.toArray(Array.from(n))])])))],["children",T.Children.toArray(Array.from(t))])])))}class ag extends K{constructor(t,n,r){super(),this.Roles=t,this.BackendUrl=n,this.AccessToken=r}}const on=zh();let sn=class extends L{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["UpdateSearchText","UpdateSort","LoadAccountLookup","UpdateAccountLookup","QueryAccountLookup"]}};class cg{constructor(t){this.props=t}}function lg(e){return new cg(e)}function Vl(e){return t=>n=>V.Delay(()=>{const r=Fs(e.props.partnerId);return V.Bind(Bs(e.props.backendUrl,e.props.accessToken,r,t,void 0),o=>(n(new sn(2,[new Q(2,[o])])),V.Zero()))})}function ug(e){return t=>n=>r=>V.Delay(()=>{const o=Fs(e.props.partnerId);return V.Bind(Bs(e.props.backendUrl,e.props.accessToken,o,t,n),s=>(r(new sn(3,[s])),V.Zero()))})}function dg(e,t,n){return Bs(e.props.backendUrl,e.props.accessToken,Fs(e.props.partnerId),t,void 0)}let Bn=class extends K{constructor(t,n,r,o){super(),this.Data=t,this.SearchText=n,this.Sort=r,this.PageSize=o}};function fg(){return[new Bn(new Q(0,[]),Lp,Fp,Hp(20)),Ve()]}function hg(e,t,n){let r,o,s,i;switch(t.tag){case 1:{const a=t.fields[0];return[new Bn(new Q(1,[]),n.SearchText,a,n.PageSize),_e(c=>{const l=new Is(n.SearchText,a,n.PageSize);In(Vl(e)(l)(c))})]}case 2:return[new Bn(t.fields[0],n.SearchText,n.Sort,n.PageSize),Ve()];case 3:{const a=t.fields[0];return[new Bn((r=n.Data,r.tag===2?r.fields[0].tag===0?(o=a,o.tag===1?new Q(2,[new g(1,[o.fields[0]])]):new Q(2,[new g(0,[new ma(Ce(r.fields[0].fields[0].Accounts,o.fields[0].Accounts),o.fields[0].Token)])])):(s=a,s.tag===1?new Q(2,[new g(1,[s.fields[0]])]):new Q(3,[new Error("Failed to retrieve the account data")])):(i=a,i.tag===1?new Q(2,[new g(1,[i.fields[0]])]):new Q(3,[new Error("Failed to retrieve the account data")]))),n.SearchText,n.Sort,n.PageSize),Ve()]}case 4:return[new Bn(new Q(1,[]),n.SearchText,n.Sort,n.PageSize),_e(a=>{const c=new Is(n.SearchText,n.Sort,n.PageSize);In(Vl(e)(c)(a))})];default:return[new Bn(n.Data,Vp(t.fields[0]),n.Sort,n.PageSize),Ve()]}}function Ul(e,t,n,r){let o,s;return h("div",D(b([["className",W(" ",["flex-grow","max-w-md"])],(o=[h("label",{for:"search",children:"Search",className:W(" ",["block","text-sm","font-medium","text-gray-700"])}),h("div",D(b([["className","mt-1"],(s=[h("input",{id:"search",name:"search",type:"text",className:W(" ",["py-2","shadow-sm","focus:ring-indigo-500","focus:border-indigo-500","block","w-full","sm:text-sm","border-gray-300","rounded-md"]),placeholder:t,value:e,onKeyUp:i=>{i.key==="Enter"&&r()},onChange:i=>{n(i.target.value)}})],["children",T.Children.toArray(Array.from(s))])])))],["children",T.Children.toArray(Array.from(o))])])))}function pg(e){let t,n;return h("div",D(b([["className","pt-6"],(t=[h("div",D(b([["className",W(" ",["flex","justify-end"])],(n=[h("button",{type:"search",children:"Search",className:W(" ",["ml-3","inline-flex","justify-center","py-2","px-4","border","border-transparent","shadow-sm","text-sm","font-medium","rounded-md","text-white","bg-indigo-600","hover:bg-indigo-700","focus:outline-none","focus:ring-2","focus:ring-offset-2","focus:ring-indigo-500"]),onClick:e})],["children",T.Children.toArray(Array.from(n))])])))],["children",T.Children.toArray(Array.from(t))])])))}class mg extends L{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["ColumnHeader"]}}function Hl(e){return new mg(e)}function jl(e){return e.fields[0]}class gg extends L{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["RowCell"]}}function Ln(e){return new gg(e)}function zl(e){return e.fields[0]}function wg(){return["scope","col"]}function an(e){return Hl(h("th",D(b([["className","px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider"],wg(),["children",e]]))))}function _g(e,t){let n;return Ln(h("td",D(b([["className","px-6 py-4 whitespace-nowrap text-sm"],(n=[h("a",{className:"text-indigo-600 hover:text-indigo-900",children:t,href:e})],["children",T.Children.toArray(Array.from(n))])]))))}function ao(e,t){return Ln(h("td",{className:W(" ",P(e,["px-6","py-4","whitespace-nowrap","text-sm"])),children:t}))}function yg(e,t){let n,r,o,s,i,a,c;return h("div",D(b([["className","flex flex-col mt-4"],(n=[h("div",D(b([["className","-my-2 overflow-x-auto sm:-mx-6 lg:-mx-8"],(r=[h("div",D(b([["className","py-2 align-middle inline-block min-w-full sm:px-6 lg:px-8"],(o=[h("div",D(b([["className","shadow overflow-hidden border-b border-gray-200 sm:rounded-lg"],(s=[h("table",D(b([["className","min-w-full divide-y divide-gray-200"],(i=[h("thead",{className:"bg-gray-50",children:(a=pe(jl,e),h("tr",{children:T.Children.toArray(Array.from(a))}))}),(c=Qi((l,d)=>(u=>{let p;return h("tr",D(b([["className",l%2===0?"bg-white":"bg-gray-50"],(p=pe(zl,u),["children",T.Children.toArray(Array.from(p))])])))})(d),t),h("tbody",{children:T.Children.toArray(Array.from(c))}))],["children",T.Children.toArray(Array.from(i))])])))],["children",T.Children.toArray(Array.from(s))])])))],["children",T.Children.toArray(Array.from(o))])])))],["children",T.Children.toArray(Array.from(r))])])))],["children",T.Children.toArray(Array.from(n))])])))}function Gl(e){return["fillRule",e]}function Wl(e){return["clipRule",e]}const bg=h("svg",D(b([["className",W(" ",["h-5","w-5"])],["fill","currentColor"],["viewBox","0 0 20 20"],["xmlns","http://www.w3.org/2000/svg"],(()=>{let e;const t=j(h("path",D(b([(e="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",["d",e]),Gl("evenodd"),Wl("evenodd")]))));return["children",T.Children.toArray(Array.from(t))]})()]))),vg=h("svg",D(b([["className",W(" ",["h-5","w-5"])],["fill","currentColor"],["viewBox","0 0 20 20"],["xmlns","http://www.w3.org/2000/svg"],(()=>{let e;const t=j(h("path",D(b([(e="M14.707 12.707a1 1 0 01-1.414 0L10 9.414l-3.293 3.293a1 1 0 01-1.414-1.414l4-4a1 1 0 011.414 0l4 4a1 1 0 010 1.414z",["d",e]),Gl("evenodd"),Wl("evenodd")]))));return["children",T.Children.toArray(Array.from(t))]})()]))),ql=h("svg",D(b([["className","size-6"],["fill","none"],["stroke","currentColor"],["strokeWidth",1.5],["viewBox","0 0 24 24"],["xmlns","http://www.w3.org/2000/svg"],(()=>{const e=j(h("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"}));return["children",T.Children.toArray(Array.from(e))]})()])));function xg(e,t,n){return e?Ce(n,t):n}function Zl(e,t,n,r){let o,s,i;return Hl(h("th",D(b([["className",W(" ",["px-6","py-3","text-left","text-xs","font-medium","text-gray-500","sm:pl-6","uppercase","tracking-wider"])],["scope","col"],(o=[h("a",D(b([["className",W(" ",["group","inline-flex","cursor-pointer"])],["onClick",n],(s=[r,h("span",D(b([["className",W(" ",xg(!e,j("invisible"),b(["ml-2","flex-none","rounded","text-gray-400","group-hover:visible","group-focus:visible"])))],(i=ge($(()=>N(t?bg:vg))),["children",T.Children.toArray(Array.from(i))])])))],["children",T.Children.toArray(Array.from(s))])])))],["children",T.Children.toArray(Array.from(o))])]))))}function Cg(e,t){return Zl(me(Fc(e.Sort),new It(1,[])),me(Bc(e.Sort),new nn(0,[])),n=>{t(new sn(1,[Lc(new It(1,[]),e.Sort)]))},"Name")}function kg(e,t){return Zl(me(Fc(e.Sort),new It(0,[])),me(Bc(e.Sort),new nn(0,[])),n=>{t(new sn(1,[Lc(new It(0,[]),e.Sort)]))},"Id")}function Sg(e,t){let n;return Ln(h("td",D(b([["className",W(" ",["text-gray-500","px-6","py-2","whitespace-nowrap","text-sm","align-top"])],(n=[h("span",{children:[e]}),h("br",{}),h("span",{children:[t]})],["children",T.Children.toArray(Array.from(n))])]))))}function Ag(e,t,n){let r;return Ln(h("td",D(b([["className",W(" ",["text-gray-500","px-6","py-2","whitespace-nowrap","text-sm","align-top"])],(r=ge($(()=>{let o;return P(N(h("div",D(b([["className",W(" ",["font-medium"])],(o=[h("span",{children:[e]})],["children",T.Children.toArray(Array.from(o))])])))),$(()=>{let s;return P((s=t,s==null?N(te()):N(h("span",{children:["Legal Entity: "+s]}))),$(()=>{const i=n;if(i==null)return N(te());{const a=i;return P(N(h("br",{})),$(()=>N(h("span",{children:["ABN: "+a]}))))}}))}))})),["children",T.Children.toArray(Array.from(r))])]))))}function Eg(e){return Ln(h("td",{className:W(" ",["px-6","py-2","whitespace-nowrap","text-sm","text-gray-500","align-top"]),children:e}))}function Ig(e,t,n,r){let o;return Ln(h("td",D(b([["className","px-6 py-2 whitespace-nowrap text-sm align-top"],(o=ge($(()=>P(N(h("a",{className:"text-indigo-600 hover:text-indigo-900",children:t,href:e})),$(()=>{let s,i;return P((s=r,s==null?N(te()):(i=s,P(N(h("br",{})),$(()=>N(h("span",{children:[`Channel ID: ${i}`]})))))),$(()=>{const a=n;if(a==null)return N(te());{const c=a;return P(N(h("br",{})),$(()=>N(h("span",{children:[`External ID: ${c}`]}))))}}))})))),["children",T.Children.toArray(Array.from(o))])]))))}function Tg(e,t,n){const r=lt(n.AccountId);return ge($(()=>{let o;return P(N(Ig(E(k((o=[e,r],new v(8,[o[0],o[1]]))),1),n.AccountId,n.ExternalId,n.ChannelId)),$(()=>P(N(Ag(n.Name,n.BusinessName,n.BusinessNumber)),$(()=>P(t.ReadProtectedData?N(Sg(Ie(n.Contact,""),Ie(n.ContactMobilePhone,""))):Ke(),$(()=>N(Eg(n.Website))))))))}))}class $g extends K{constructor(t,n){super(),this.Data=t,this.LoadNext=n}}class Kl extends L{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Resolved","InProgress"]}}class Jl extends L{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Known","Unknown"]}}function Ng(e){let t;return h("thead",{className:"bg-gray-50",children:(t=pe(jl,e),h("tr",{children:T.Children.toArray(Array.from(t))}))})}function Mg(e,t){let n;return h("tr",D(b([["className",e%2===0?"bg-white":"bg-gray-50"],(n=pe(zl,t),["children",T.Children.toArray(Array.from(n))])])))}function Dg(e,t,n,r,o,s){let i,a,c,l,d,u,p;const f=t!=null&&n!=null?(i=t|0,a=n|0,ge($(()=>P(N("Showing "),$(()=>P(N(h("span",{className:"font-medium",children:`${i}`})),$(()=>P(N(" to "),$(()=>P(N(h("span",{className:"font-medium",children:`${a}`})),$(()=>P(N(" of "),$(()=>r.tag===1?j(" many"):b([h("span",{className:"font-medium",children:De(r.fields[0])})," results"])))))))))))))):j(te()),w=ge($(()=>{let y,_;return P((y=s,y==null?N(te()):(_=y,N(h("a",{className:W(" ",["relative","inline-flex","items-center","px-4","py-2","border","border-gray-300","text-sm","font-medium","rounded-md","text-gray-700","bg-white","hover:bg-gray-50","cursor-pointer"]),onClick:_,children:"Previous "})))),$(()=>{const C=o;if(C==null)return N(te());{const x=C;return N(h("a",{className:W(" ",["ml-3","relative","inline-flex","items-center","px-4","py-2","border","border-gray-300","text-sm","font-medium","rounded-md","text-gray-700","bg-white","hover:bg-gray-50","cursor-pointer"]),onClick:x,children:" Next"}))}}))}));return h("tfoot",D(b([["className",W(" ",["w-full"])],(c=[h("tr",D(j((l=[h("td",D(b([["colSpan",e],(d=[h("nav",D(b([["className",W(" ",["bg-white","px-4","py-3","flex","items-center","justify-between","border-t-1","border-gray-200","sm:px-6"])],(u=[h("div",D(b([["className",W(" ",["hidden","sm:block"])],(p=[h("p",{className:W(" ",["text-sm","text-gray-700"]),children:T.Children.toArray(Array.from(f))})],["children",T.Children.toArray(Array.from(p))])]))),h("div",{className:W(" ",["flex-1","flex","justify-between","sm:justify-end"]),children:T.Children.toArray(Array.from(w))})],["children",T.Children.toArray(Array.from(u))])])))],["children",T.Children.toArray(Array.from(d))])])))],["children",T.Children.toArray(Array.from(l))]))))],["children",T.Children.toArray(Array.from(c))])])))}function Pg(e,t){const n=ar(1),r=n[1],o=n[0]|0;return[o,s=>{if(o===e){if(t!=null){const i=t;$i(wt("Calling Load")),i(),r(o+1)}}else r(o+1)},s=>{r(o-1)}]}function Rg(e){let t,n,r,o,s;const i=e.data,a=e.pageSize,c=e.renderRowCells,l=e.columnHeaders,d=Gd(a,i.Data),u=Pg(_n(d),i.LoadNext),p=u[0]|0,f=u[1];let w;const y=Ud(p-1,d);w=y==null?new Kl(1,[]):new Kl(0,[y]);const _=_n(i.Data)|0,C=i.LoadNext==null?new Jl(0,[_]):new Jl(1,[]),x=w.tag===1?void 0:_>=1?(p-1)*a+1:void 0,A=w.tag===1?void 0:_>=1?(p-1)*a+_n(w.fields[0]):void 0,O=p===1?void 0:u[2],H=p===_n(d)?i.LoadNext!=null?f:void 0:p<_n(d)?f:void 0;return h("div",D(b([["className","flex flex-col mt-4"],(t=[h("div",D(b([["className","-my-2 overflow-x-auto sm:-mx-6 lg:-mx-8"],(n=[h("div",D(b([["className","py-2 align-middle inline-block min-w-full sm:px-6 lg:px-8"],(r=[h("div",D(b([["className","shadow overflow-hidden border-b border-gray-200 sm:rounded-lg"],(o=[h("table",D(b([["className","min-w-full divide-y divide-gray-200"],(s=ge($(()=>P(N(Ng(l)),$(()=>{let Y,ue;return P((Y=w,Y.tag===1?N(te()):N((ue=Qi(Mg,c(Y.fields[0])),h("tbody",{children:T.Children.toArray(Array.from(ue))})))),$(()=>N(Dg(_n(l),x,A,C,H,O))))})))),["children",T.Children.toArray(Array.from(s))])])))],["children",T.Children.toArray(Array.from(o))])])))],["children",T.Children.toArray(Array.from(r))])])))],["children",T.Children.toArray(Array.from(n))])])))],["children",T.Children.toArray(Array.from(t))])])))}function cn(e){const t=e.error,n=j(h("span",{children:[t]}));return h("div",{children:T.Children.toArray(Array.from(n))})}function co(){const e=j(h("span",{children:["Please wait..."]}));return h("div",{children:T.Children.toArray(Array.from(e))})}function Og(e){let t,n,r,o,s,i,a;const c=En(on),l=lg({accessToken:c.AccessToken,backendUrl:c.BackendUrl,partnerId:e.partnerId}),d=Os(()=>Ps(fg,(O,H)=>hg(l,O,H),(O,H)=>{}),void 0,void 0),u=d[0],p=d[1],f=new Is(u.SearchText,u.Sort,u.PageSize);ks((t=[()=>dg(l,f),O=>{p(new sn(2,[O]))}],Mc(t[0],t[1])));const w=O=>{p(new sn(4,[]))},y=u.Data;let _,C,x,A;switch(y.tag){case 0:case 1:{_=2;break}case 3:{_=3,A=y.fields[0];break}default:y.fields[0].tag===1?(_=1,x=y.fields[0].fields[0]):(_=0,C=y.fields[0].fields[0])}switch(_){case 0:{const O=b([h("div",D(b([["className",W(" ",["grid","grid-cols-2","pt-2","sm:-mr-6","lg:mr-0"])],(n=[h("div",D(b([["className",W(" ",["flex","flex-row","gap-4","sm:-mr-6","lg:mr-0"])],(r=[Ul(Uc(u.SearchText),"Account ID, Name, Legal Entity, Channel ID or External ID",H=>{p(new sn(0,[H]))},w),pg(w)],["children",T.Children.toArray(Array.from(r))])])))],["children",T.Children.toArray(Array.from(n))])]))),(o=C,s=ge($(()=>P(N(kg(u,p)),$(()=>P(N(Cg(u,p)),$(()=>P(c.Roles.ReadProtectedData?N(an("Contact")):Ke(),$(()=>N(an("Website")))))))))),i=new $g(o.Accounts,Ze(H=>()=>{In(ug(l)(f)(H)(p))},o.Token)),a=Hc(u.PageSize)|0,h(Rg,{columnHeaders:s,renderRowCells:H=>Xn(Y=>Tg(e.partnerId,c.Roles,Y),H),pageSize:a,data:i}))]);return h("div",{children:T.Children.toArray(Array.from(O))})}case 1:return h(cn,{error:x});case 2:return h(co,null);default:{const O=De(A);return h(cn,{error:O})}}}let lo=class extends L{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["backend-url","access-token","partner-id","account-id"]}};function Yl(e){const t=e.accessToken,n=e.backendUrl,r=e.accountId,o=e.partnerId,s=qt(i=>i,[new lo(1,[t]),new lo(0,[n]),new lo(2,[ct(o)]),Ze(i=>new lo(3,[Qe(i)]),r)]);return h("superhero-super-configuration",Ot(s,1))}let uo=class extends L{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["backend-url","access-token","partner-id","account-id"]}};function Xl(e){const t=e.accessToken,n=e.backendUrl,r=e.accountId,o=e.partnerId,s=qt(i=>i,[new uo(1,[t]),new uo(0,[n]),new uo(2,[ct(o)]),Ze(i=>new uo(3,[Qe(i)]),r)]);return h("superhero-benefits-onboarding-configuration",Ot(s,1))}let fo=class extends L{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["backend-url","access-token","partner-id","account-id"]}};function Ql(e){const t=e.accessToken,n=e.backendUrl,r=e.accountId,o=e.partnerId,s=qt(i=>i,[new fo(1,[t]),new fo(0,[n]),new fo(2,[ct(o)]),Ze(i=>new fo(3,[Qe(i)]),r)]);return h("superhero-bank-details",Ot(s,1))}let ho=class extends L{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["backend-url","access-token","partner-id","account-id"]}};function eu(e){const t=e.accessToken,n=e.backendUrl,r=e.accountId,o=e.partnerId,s=qt(i=>i,[new ho(1,[t]),new ho(0,[n]),new ho(2,[ct(o)]),Ze(i=>new ho(3,[Qe(i)]),r)]);return h("superhero-profile-directory-app",Ot(s,1))}let po=class extends L{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["backend-url","access-token","partner-id","account-id"]}};function tu(e){const t=e.accountId,n=e.partnerId,r=e.accessToken,o=e.backendUrl,s=qt(i=>i,[new po(1,[r]),new po(0,[o]),new po(2,[ct(n)]),Ze(i=>new po(3,[Qe(i)]),t)]);return h("workspace-account-registry-app",Ot(s,1))}var Fg=Object.defineProperty,Bg=(e,t,n)=>t in e?Fg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ls=(e,t,n)=>(Bg(e,typeof t!="symbol"?t+"":t,n),n);let Lg=class{constructor(){Ls(this,"current",this.detect()),Ls(this,"handoffState","pending"),Ls(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},mo=new Lg,pr=(e,t)=>{mo.isServer?ke(e,t):Bt(e,t)};function Vn(e){let t=Re(e);return pr(()=>{t.current=e},[e]),t}let Tt=function(e){let t=Vn(e);return je.useCallback((...n)=>t.current(...n),[t])};function Vg(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function mr(){let e=[],t={addEventListener(n,r,o,s){return n.addEventListener(r,o,s),t.add(()=>n.removeEventListener(r,o,s))},requestAnimationFrame(...n){let r=requestAnimationFrame(...n);return t.add(()=>cancelAnimationFrame(r))},nextFrame(...n){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...n))},setTimeout(...n){let r=setTimeout(...n);return t.add(()=>clearTimeout(r))},microTask(...n){let r={current:!0};return Vg(()=>{r.current&&n[0]()}),t.add(()=>{r.current=!1})},style(n,r,o){let s=n.style.getPropertyValue(r);return Object.assign(n.style,{[r]:o}),this.add(()=>{Object.assign(n.style,{[r]:s})})},group(n){let r=mr();return n(r),this.add(()=>r.dispose())},add(n){return e.push(n),()=>{let r=e.indexOf(n);if(r>=0)for(let o of e.splice(r,1))o()}},dispose(){for(let n of e.splice(0))n()}};return t}function nu(){let[e]=Je(mr);return ke(()=>()=>e.dispose(),[e]),e}function Ug(){let e=typeof document>"u";return"useSyncExternalStore"in Cs?(t=>t.useSyncExternalStore)(Cs)(()=>()=>{},()=>!1,()=>!e):!1}function ru(){let e=Ug(),[t,n]=Je(mo.isHandoffComplete);return t&&mo.isHandoffComplete===!1&&n(!1),ke(()=>{t!==!0&&n(!0)},[t]),ke(()=>mo.handoff(),[]),e?!1:t}function ut(e,t,...n){if(e in t){let o=t[e];return typeof o=="function"?o(...n):o}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(o=>`"${o}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,ut),r}let Hg=Symbol();function ou(...e){let t=Re(e);ke(()=>{t.current=e},[e]);let n=Tt(r=>{for(let o of t.current)o!=null&&(typeof o=="function"?o(r):o.current=r)});return e.every(r=>r==null||(r==null?void 0:r[Hg]))?void 0:n}function go(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}var su=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(su||{}),Lt=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(Lt||{});function iu({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:s=!0,name:i,mergeRefs:a}){a=a??jg;let c=au(t,e);if(s)return wo(c,n,r,i,a);let l=o??0;if(l&2){let{static:d=!1,...u}=c;if(d)return wo(u,n,r,i,a)}if(l&1){let{unmount:d=!0,...u}=c;return ut(d?0:1,{0(){return null},1(){return wo({...u,hidden:!0,style:{display:"none"}},n,r,i,a)}})}return wo(c,n,r,i,a)}function wo(e,t={},n,r,o){let{as:s=n,children:i,refName:a="ref",...c}=Us(e,["unmount","static"]),l=e.ref!==void 0?{[a]:e.ref}:{},d=typeof i=="function"?i(t):i;"className"in c&&c.className&&typeof c.className=="function"&&(c.className=c.className(t));let u={};if(t){let p=!1,f=[];for(let[w,y]of Object.entries(t))typeof y=="boolean"&&(p=!0),y===!0&&f.push(w);p&&(u["data-headlessui-state"]=f.join(" "))}if(s===$e&&Object.keys(cu(c)).length>0){if(!An(d)||Array.isArray(d)&&d.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(c).map(y=>` - ${y}`).join(`
|
|
32
32
|
`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(y=>` - ${y}`).join(`
|
|
33
33
|
`)].join(`
|
|
34
|
-
`));let h=f.props,d=typeof(h==null?void 0:h.className)=="function"?(...y)=>po(h==null?void 0:h.className(...y),l.className):po(h==null?void 0:h.className,l.className),g=d?{className:d}:{};return ps(f,Object.assign({},Jc(f.props,Yc(Ls(l,["ref"]))),u,c,{ref:o(f.ref,c.ref)},g))}return p(s,Object.assign({},Ls(l,["ref"]),s!==Ae&&c,s!==Ae&&u),f)}function $g(...e){return e.every(t=>t==null)?void 0:t=>{for(let n of e)n!=null&&(typeof n=="function"?n(t):n.current=t)}}function Jc(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let o in r)o.startsWith("on")&&typeof r[o]=="function"?(n[o]!=null||(n[o]=[]),n[o].push(r[o])):t[o]=r[o];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map(r=>[r,void 0])));for(let r in n)Object.assign(t,{[r](o,...s){let i=n[r];for(let a of i){if((o instanceof Event||(o==null?void 0:o.nativeEvent)instanceof Event)&&o.defaultPrevented)return;a(o,...s)}}});return t}function Bs(e){var t;return Object.assign(Zr(e),{displayName:(t=e.displayName)!=null?t:e.name})}function Yc(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function Ls(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}let Vs=rr(null);Vs.displayName="OpenClosedContext";var $t=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))($t||{});function Xc(){return Xt(Vs)}function Ng({value:e,children:t}){return je.createElement(Vs.Provider,{value:e},t)}function Us(){let e=Ne(!1);return hr(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function Mg(e=0){let[t,n]=Ke(e),r=Us(),o=Yt(l=>{r.current&&n(c=>c|l)},[t,r]),s=Yt(l=>!!(t&l),[t]),i=Yt(l=>{r.current&&n(c=>c&~l)},[n,r]),a=Yt(l=>{r.current&&n(c=>c^l)},[n]);return{flags:t,addFlag:o,hasFlag:s,removeFlag:i,toggleFlag:a}}function Dg(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}function Hs(e,...t){e&&t.length>0&&e.classList.add(...t)}function js(e,...t){e&&t.length>0&&e.classList.remove(...t)}function Pg(e,t){let n=pr();if(!e)return n.dispose;let{transitionDuration:r,transitionDelay:o}=getComputedStyle(e),[s,i]=[r,o].map(l=>{let[c=0]=l.split(",").filter(Boolean).map(f=>f.includes("ms")?parseFloat(f):parseFloat(f)*1e3).sort((f,u)=>u-f);return c}),a=s+i;if(a!==0){n.group(c=>{c.setTimeout(()=>{t(),c.dispose()},a),c.addEventListener(e,"transitionrun",f=>{f.target===f.currentTarget&&c.dispose()})});let l=n.addEventListener(e,"transitionend",c=>{c.target===c.currentTarget&&(t(),l())})}else t();return n.add(()=>t()),n.dispose}function Rg(e,t,n,r){let o=n?"enter":"leave",s=pr(),i=r!==void 0?Dg(r):()=>{};o==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let a=lt(o,{enter:()=>t.enter,leave:()=>t.leave}),l=lt(o,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),c=lt(o,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return js(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),Hs(e,...t.base,...a,...c),s.nextFrame(()=>{js(e,...t.base,...a,...c),Hs(e,...t.base,...a,...l),Pg(e,()=>(js(e,...t.base,...a),Hs(e,...t.base,...t.entered),i()))}),s.dispose}function Og({immediate:e,container:t,direction:n,classes:r,onStart:o,onStop:s}){let i=Us(),a=Gc(),l=Bn(n);hr(()=>{e&&(l.current="enter")},[e]),hr(()=>{let c=pr();a.add(c.dispose);let f=t.current;if(f&&l.current!=="idle"&&i.current)return c.dispose(),o.current(l.current),c.add(Rg(f,r.current,l.current==="enter",()=>{c.dispose(),s.current(l.current)})),c.dispose},[n])}function Lt(e=""){return e.split(/\s+/).filter(t=>t.length>1)}let go=rr(null);go.displayName="TransitionContext";var Fg=(e=>(e.Visible="visible",e.Hidden="hidden",e))(Fg||{});function Bg(){let e=Xt(go);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function Lg(){let e=Xt(wo);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let wo=rr(null);wo.displayName="NestingContext";function _o(e){return"children"in e?_o(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function Qc(e,t){let n=Bn(e),r=Ne([]),o=Us(),s=Gc(),i=Tt((d,g=Bt.Hidden)=>{let y=r.current.findIndex(({el:w})=>w===d);y!==-1&&(lt(g,{[Bt.Unmount](){r.current.splice(y,1)},[Bt.Hidden](){r.current[y].state="hidden"}}),s.microTask(()=>{var w;!_o(r)&&o.current&&((w=n.current)==null||w.call(n))}))}),a=Tt(d=>{let g=r.current.find(({el:y})=>y===d);return g?g.state!=="visible"&&(g.state="visible"):r.current.push({el:d,state:"visible"}),()=>i(d,Bt.Unmount)}),l=Ne([]),c=Ne(Promise.resolve()),f=Ne({enter:[],leave:[],idle:[]}),u=Tt((d,g,y)=>{l.current.splice(0),t&&(t.chains.current[g]=t.chains.current[g].filter(([w])=>w!==d)),t==null||t.chains.current[g].push([d,new Promise(w=>{l.current.push(w)})]),t==null||t.chains.current[g].push([d,new Promise(w=>{Promise.all(f.current[g].map(([x,v])=>v)).then(()=>w())})]),g==="enter"?c.current=c.current.then(()=>t==null?void 0:t.wait.current).then(()=>y(g)):y(g)}),h=Tt((d,g,y)=>{Promise.all(f.current[g].splice(0).map(([w,x])=>x)).then(()=>{var w;(w=l.current.shift())==null||w()}).then(()=>y(g))});return Jt(()=>({children:r,register:a,unregister:i,onStart:u,onStop:h,wait:c,chains:f}),[a,i,r,u,h,f,c])}function Vg(){}let Ug=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function eu(e){var t;let n={};for(let r of Ug)n[r]=(t=e[r])!=null?t:Vg;return n}function Hg(e){let t=Ne(eu(e));return xe(()=>{t.current=eu(e)},[e]),t}let jg="div",tu=Zc.RenderStrategy;function zg(e,t){var n,r;let{beforeEnter:o,afterEnter:s,beforeLeave:i,afterLeave:a,enter:l,enterFrom:c,enterTo:f,entered:u,leave:h,leaveFrom:d,leaveTo:g,...y}=e,w=Ne(null),x=qc(w,t),v=(n=y.unmount)==null||n?Bt.Unmount:Bt.Hidden,{show:k,appear:O,initial:U}=Bg(),[oe,we]=Ke(k?"visible":"hidden"),Ve=Lg(),{register:se,unregister:Ce}=Ve;xe(()=>se(w),[se,w]),xe(()=>{if(v===Bt.Hidden&&w.current){if(k&&oe!=="visible"){we("visible");return}return lt(oe,{hidden:()=>Ce(w),visible:()=>se(w)})}},[oe,w,se,Ce,k,v]);let ct=Bn({base:Lt(y.className),enter:Lt(l),enterFrom:Lt(c),enterTo:Lt(f),entered:Lt(u),leave:Lt(h),leaveFrom:Lt(d),leaveTo:Lt(g)}),ot=Hg({beforeEnter:o,afterEnter:s,beforeLeave:i,afterLeave:a}),Vt=Wc();xe(()=>{if(Vt&&oe==="visible"&&w.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[w,oe,Vt]);let ln=U&&!O,Hn=O&&k&&U,wr=!Vt||ln?"idle":k?"enter":"leave",Mt=Mg(0),_r=Tt(Je=>lt(Je,{enter:()=>{Mt.addFlag($t.Opening),ot.current.beforeEnter()},leave:()=>{Mt.addFlag($t.Closing),ot.current.beforeLeave()},idle:()=>{}})),yr=Tt(Je=>lt(Je,{enter:()=>{Mt.removeFlag($t.Opening),ot.current.afterEnter()},leave:()=>{Mt.removeFlag($t.Closing),ot.current.afterLeave()},idle:()=>{}})),Ut=Qc(()=>{we("hidden"),Ce(w)},Ve),cn=Ne(!1);Og({immediate:Hn,container:w,classes:ct,direction:wr,onStart:Bn(Je=>{cn.current=!0,Ut.onStart(w,Je,_r)}),onStop:Bn(Je=>{cn.current=!1,Ut.onStop(w,Je,yr),Je==="leave"&&!_o(Ut)&&(we("hidden"),Ce(w))})});let ut=y,br={ref:x};return Hn?ut={...ut,className:po(y.className,...ct.current.enter,...ct.current.enterFrom)}:cn.current&&(ut.className=po(y.className,(r=w.current)==null?void 0:r.className),ut.className===""&&delete ut.className),je.createElement(wo.Provider,{value:Ut},je.createElement(Ng,{value:lt(oe,{visible:$t.Open,hidden:$t.Closed})|Mt.flags},Kc({ourProps:br,theirProps:ut,defaultTag:jg,features:tu,visible:oe==="visible",name:"Transition.Child"})))}function Gg(e,t){let{show:n,appear:r=!1,unmount:o=!0,...s}=e,i=Ne(null),a=qc(i,t);Wc();let l=Xc();if(n===void 0&&l!==null&&(n=(l&$t.Open)===$t.Open),![!0,!1].includes(n))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[c,f]=Ke(n?"visible":"hidden"),u=Qc(()=>{f("hidden")}),[h,d]=Ke(!0),g=Ne([n]);hr(()=>{h!==!1&&g.current[g.current.length-1]!==n&&(g.current.push(n),d(!1))},[g,n]);let y=Jt(()=>({show:n,appear:r,initial:h}),[n,r,h]);xe(()=>{if(n)f("visible");else if(!_o(u))f("hidden");else{let k=i.current;if(!k)return;let O=k.getBoundingClientRect();O.x===0&&O.y===0&&O.width===0&&O.height===0&&f("hidden")}},[n,u]);let w={unmount:o},x=Tt(()=>{var k;h&&d(!1),(k=e.beforeEnter)==null||k.call(e)}),v=Tt(()=>{var k;h&&d(!1),(k=e.beforeLeave)==null||k.call(e)});return je.createElement(wo.Provider,{value:u},je.createElement(go.Provider,{value:y},Kc({ourProps:{...w,as:Ae,children:je.createElement(nu,{ref:a,...w,...s,beforeEnter:x,beforeLeave:v})},theirProps:{},defaultTag:Ae,features:tu,visible:c==="visible",name:"Transition"})))}function Wg(e,t){let n=Xt(go)!==null,r=Xc()!==null;return je.createElement(je.Fragment,null,!n&&r?je.createElement(zs,{ref:t,...e}):je.createElement(nu,{ref:t,...e}))}let zs=Bs(Gg),nu=Bs(zg),qg=Bs(Wg),Zg=Object.assign(zs,{Child:qg,Root:zs}),Nt=class extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Key","Appear","Show","ClassName","Enter","EnterFrom","EnterTo","Leave","LeaveFrom","LeaveTo","Children"]}};function Kg(e){const t=Wt(e,1);return p(Zg,t)}function yo(e,t){let n;return p("div",D(b([["className","px-4 py-4 sm:px-0"],(n=[p("h3",{className:"text-lg font-semibold leading-7 text-gray-900",children:e}),Se(Xe(r=>p("p",{className:"mt-1 max-w-2xl text-sm leading-6 text-gray-500",children:r}),t),Q())],["children",A.Children.toArray(Array.from(n))])])))}function _e(e,t){let n;return p("div",D(b([["className","px-4 py-4 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"],(n=[p("dt",{className:"text-sm font-medium leading-6 text-gray-700",children:e}),p("dd",{className:"px-1 mt-1 text-sm leading-6 text-gray-700 sm:col-span-2 sm:mt-0",children:t})],["children",A.Children.toArray(Array.from(n))])])))}function Gs(e){let t,n;const r=e.value,o=e.label,s=ir(!1),i=s[0],a=s[1];return Th(()=>{An(L.Delay(()=>i?L.Bind(zh(2e3),()=>(a(!1),L.Zero())):L.Zero()))}),p("div",D(b([["className","px-4 py-2 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"],(t=[p("dt",{className:"text-sm font-medium leading-6 text-gray-700",children:o}),p("dd",D(b([["className","flex mt-1 text-sm leading-6 text-primary-700 sm:col-span-2 sm:mt-0 relative"],(n=[Kg(b([new Nt(3,["absolute bottom-8 flex flex-row bg-gray-900 items-start w-[69px] h-8 shadow-md px-3 py-2 rounded-md"]),new Nt(2,[i]),new Nt(4,["transition-opacity ease-in duration-100"]),new Nt(5,["opacity-0"]),new Nt(6,["opacity-90"]),new Nt(7,["transition-opacity ease-out duration-500"]),new Nt(8,["opacity-90"]),new Nt(9,["opacity-0"]),new Nt(10,[[p("div",{className:"w-[45px] h-4 not-italic font-medium text-xs leading-4 text-white flex-none order-none grow-0",children:"Copied"})]])])),p("div",{className:"px-1 cursor-pointer hover:text-primary-900 hover:bg-gray-300 rounded-md shrink",children:r})],["children",A.Children.toArray(Array.from(n))]),["onClick",l=>{navigator.clipboard.writeText(r),a(!0)}]])))],["children",A.Children.toArray(Array.from(t))])])))}function bo(e,t){let n;const r=b([e,p("div",D(b([["className","mt-2 border-b border-gray-200"],(n=[p("dl",{className:"divide-y divide-gray-200 px-0 sm:px-4 max-w-2xl",children:A.Children.toArray(Array.from(t))})],["children",A.Children.toArray(Array.from(n))])])))]);return p("div",{children:A.Children.toArray(Array.from(r))})}function Jg(e){const t=Sn(nn);return bo(yo("Partner Information",void 0),me(T(()=>{let n;return P($((n=["ID",at(e.StreamId)],p(Gs,{label:n[0],value:n[1]}))),T(()=>{let r;return P($((r=["Name",Vr(e.Name)],_e(r[0],r[1]))),T(()=>{let o,s,i;return P(t.Roles.ReadProtectedData?(o=e.ContactDetails,o!=null?(s=o,P($((i=["Contact",`${ta(s.FirstName)} ${na(s.LastName)}`],_e(i[0],i[1]))),T(()=>{let a;return $((a=["Phone",ra(s.MobilePhone)],_e(a[0],a[1])))}))):Ze()):Ze(),T(()=>{let a;return P($((a=["Website",ea(e.Website)],_e(a[0],a[1]))),T(()=>{let l;return $((l=["Notes",Se(Vd(e.Notes),"")],_e(l[0],l[1])))}))}))}))}))})))}let Ln=class extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Details","AccountList","SuperConfiguration","BenefitsOnboardingConfiguration","BankDetailsConfiguration","ProfileDirectory"]}};class Yg extends K{constructor(t,n,r){super(),this.PartnerId=t,this.BackendUrl=n,this.AccessToken=r}}class Xg extends K{constructor(t,n,r){super(),this.PartnerId=t,this.BackendUrl=n,this.AccessToken=r}}class Qg extends K{constructor(t,n,r){super(),this.PartnerId=t,this.BackendUrl=n,this.AccessToken=r}}class ew extends K{constructor(t,n,r){super(),this.PartnerId=t,this.BackendUrl=n,this.AccessToken=r}}function tw(e){let t,n,r,o,s,i;return Tc(e.tag===1?(t=e.fields[0],b([I("Details",N(E(new C(1,[t.partnerId])),1)),I("Accounts",void 0),I("Super",N(E(new C(4,[t.partnerId])),1)),I("Benefits",N(E(new C(5,[t.partnerId])),1)),I("Bank Details",N(E(new C(6,[t.partnerId])),1)),I("Directory",N(E(new C(2,[t.partnerId])),1))])):e.tag===2?(n=e.fields[0].PartnerId,b([I("Details",N(E(new C(1,[n])),1)),I("Accounts",N(E(new C(3,[n])),1)),I("Super",void 0),I("Benefits",N(E(new C(5,[n])),1)),I("Bank Details",N(E(new C(6,[n])),1)),I("Directory",N(E(new C(2,[n])),1))])):e.tag===3?(r=e.fields[0].PartnerId,b([I("Details",N(E(new C(1,[r])),1)),I("Accounts",N(E(new C(3,[r])),1)),I("Super",N(E(new C(4,[r])),1)),I("Benefits",void 0),I("Bank Details",N(E(new C(6,[r])),1)),I("Directory",N(E(new C(2,[r])),1))])):e.tag===4?(o=e.fields[0].PartnerId,b([I("Details",N(E(new C(1,[o])),1)),I("Accounts",N(E(new C(3,[o])),1)),I("Super",N(E(new C(4,[o])),1)),I("Benefits",N(E(new C(5,[o])),1)),I("Bank Details",void 0),I("Directory",N(E(new C(2,[o])),1))])):e.tag===5?(s=e.fields[0].PartnerId,b([I("Details",N(E(new C(1,[s])),1)),I("Accounts",N(E(new C(3,[s])),1)),I("Super",N(E(new C(4,[s])),1)),I("Benefits",N(E(new C(5,[s])),1)),I("Bank Details",N(E(new C(6,[s])),1)),I("Directory",void 0)])):(i=e.fields[0],b([I("Details",void 0),I("Accounts",N(E(new C(3,[pe(at(i.StreamId))])),1)),I("Super",N(E(new C(4,[pe(at(i.StreamId))])),1)),I("Benefits",N(E(new C(5,[pe(at(i.StreamId))])),1)),I("Bank Details",N(E(new C(6,[pe(at(i.StreamId))])),1)),I("Directory",N(E(new C(2,[pe(at(i.StreamId))])),1))])))}function nw(e){switch(e.tag){case 1:return p(Cg,e.fields[0]);case 2:return p(Uc,{partnerId:e.fields[0].PartnerId,backendUrl:e.fields[0].BackendUrl,accessToken:e.fields[0].AccessToken});case 3:return p(Hc,{partnerId:e.fields[0].PartnerId,backendUrl:e.fields[0].BackendUrl,accessToken:e.fields[0].AccessToken});case 4:return p(jc,{partnerId:e.fields[0].PartnerId,backendUrl:e.fields[0].BackendUrl,accessToken:e.fields[0].AccessToken});case 5:return p(zc,{partnerId:e.fields[0].PartnerId,backendUrl:e.fields[0].BackendUrl,accessToken:e.fields[0].AccessToken});default:return p(Jg,e.fields[0])}}function ru(e){let t;const n=e.mode;return p("div",D(j((t=[tw(n),nw(n)],["children",A.Children.toArray(Array.from(t))]))))}let vo=class extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["backend-url","access-token","partner-id","account-id"]}};function rw(e){const t=e.accessToken,n=e.backendUrl,r=e.accountId,o=e.partnerId,s=wn(i=>i,[new vo(1,[t]),new vo(0,[n]),new vo(2,[vt(o)]),Xe(i=>new vo(3,[it(i)]),r)]);return p("superhero-import-app",Wt(s,1))}class Ws extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["backend-url","access-token","account-id"]}}function ow(e){const t=e.accessToken,n=e.backendUrl,r=e.accountId,o=wn(s=>s,[new Ws(1,[t]),new Ws(0,[n]),Xe(s=>new Ws(2,[it(s)]),r)]);return p("superhero-salpac-profile-admin",Wt(o,1))}function sw(e){const t=Sn(nn);return bo(yo("Account Information",void 0),me(T(()=>{let n;return P($((n=["ID",e.StreamId],p(Gs,{label:n[0],value:n[1]}))),T(()=>{let r;return P($((r=["Name",e.Name],p(Gs,{label:r[0],value:r[1]}))),T(()=>{let o;return P($((o=["External ID",Se(e.ExternalId,"")],_e(o[0],o[1]))),T(()=>{let s;return P($((s=["Channel ID",Se(e.ChannelId,"")],_e(s[0],s[1]))),T(()=>{let i;if(t.Roles.ReadProtectedData){const a=e.ContactDetails;if(a!=null){const l=a;return P($((i=["Contact",`${l.FirstName} ${l.LastName}`],_e(i[0],i[1]))),T(()=>{let c;return P($((c=["Phone",l.MobilePhone],_e(c[0],c[1]))),T(()=>{let f;return $((f=["Email",l.Email],_e(f[0],f[1])))}))}))}else return Ze()}else return Ze()}))}))}))}))})))}function iw(e){let t,n,r,o,s,i,a;if(e==null)return Q();{const l=e;return bo(yo("Legal Entity",void 0),b([(t=["Business Name",l.BusinessName],_e(t[0],t[1])),(n=["Business Number",l.BusinessNumber],_e(n[0],n[1])),(r=["Address Line 1",l.Address1],_e(r[0],r[1])),(o=["Address Line 2",Se(l.Address2,"")],_e(o[0],o[1])),(s=["City",l.City],_e(s[0],s[1])),(i=["State",Se(l.State,"")],_e(i[0],i[1])),(a=["Postcode",l.Postcode],_e(a[0],a[1]))]))}}function aw(e){let t;if(e==null)return Q();{const n=e;return bo(yo("Legal Entity",void 0),j((t=["Notes",n],_e(t[0],t[1]))))}}function lw(e){const t=b([p(sw,e),iw(e.LegalEntity),aw(e.Notes)]);return p("div",{children:A.Children.toArray(Array.from(t))})}class an extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Details","ProfilesDirectory","Imports","SuperConfiguration","BenefitsOnboardingConfiguration","BankDetailsConfiguration","SalaryPackagingConfiguration"]}}function cw(e,t,n){let r,o,s,i,a,l,c,f,u,h,d,g,y,w,x,v,k,O,U,oe,we,Ve,se,Ce,ct,ot,Vt,ln,Hn,wr,Mt,_r,yr,Ut,cn,ut,br,Je,Zs,Ks,Js,Ys;const H=[e,t];return Tc(n.tag===1?b([I("Details",N(E((r=H,new C(7,[r[0],r[1]]))),1)),I("Directory",void 0),I("Imports",N(E((o=H,new C(9,[o[0],o[1]]))),1)),I("Super",N(E((s=H,new C(10,[s[0],s[1]]))),1)),I("Benefits",N(E((i=H,new C(11,[i[0],i[1]]))),1)),I("Bank Details",N(E((a=H,new C(12,[a[0],a[1]]))),1)),I("Salary Packaging",N(E((l=H,new C(13,[l[0],l[1]]))),1))]):n.tag===2?b([I("Details",N(E((c=H,new C(7,[c[0],c[1]]))),1)),I("Directory",N(E((f=H,new C(8,[f[0],f[1]]))),1)),I("Imports",void 0),I("Super",N(E((u=H,new C(10,[u[0],u[1]]))),1)),I("Benefits",N(E((h=H,new C(11,[h[0],h[1]]))),1)),I("Bank Details",N(E((d=H,new C(12,[d[0],d[1]]))),1)),I("Salary Packaging",N(E((g=H,new C(13,[g[0],g[1]]))),1))]):n.tag===3?b([I("Details",N(E((y=H,new C(7,[y[0],y[1]]))),1)),I("Directory",N(E((w=H,new C(8,[w[0],w[1]]))),1)),I("Imports",N(E((x=H,new C(9,[x[0],x[1]]))),1)),I("Super",void 0),I("Benefits",N(E((v=H,new C(11,[v[0],v[1]]))),1)),I("Bank Details",N(E((k=H,new C(12,[k[0],k[1]]))),1)),I("Salary Packaging",N(E((O=H,new C(13,[O[0],O[1]]))),1))]):n.tag===4?b([I("Details",N(E((U=H,new C(7,[U[0],U[1]]))),1)),I("Directory",N(E((oe=H,new C(8,[oe[0],oe[1]]))),1)),I("Imports",N(E((we=H,new C(9,[we[0],we[1]]))),1)),I("Super",N(E((Ve=H,new C(10,[Ve[0],Ve[1]]))),1)),I("Benefits",void 0),I("Bank Details",N(E((se=H,new C(12,[se[0],se[1]]))),1)),I("Salary Packaging",N(E((Ce=H,new C(13,[Ce[0],Ce[1]]))),1))]):n.tag===5?b([I("Details",N(E((ct=H,new C(7,[ct[0],ct[1]]))),1)),I("Directory",N(E((ot=H,new C(8,[ot[0],ot[1]]))),1)),I("Imports",N(E((Vt=H,new C(9,[Vt[0],Vt[1]]))),1)),I("Super",N(E((ln=H,new C(10,[ln[0],ln[1]]))),1)),I("Benefits",N(E((Hn=H,new C(11,[Hn[0],Hn[1]]))),1)),I("Bank Details",void 0),I("Salary Packaging",N(E((wr=H,new C(13,[wr[0],wr[1]]))),1))]):n.tag===6?b([I("Details",N(E((Mt=H,new C(7,[Mt[0],Mt[1]]))),1)),I("Directory",N(E((_r=H,new C(8,[_r[0],_r[1]]))),1)),I("Imports",N(E((yr=H,new C(9,[yr[0],yr[1]]))),1)),I("Super",N(E((Ut=H,new C(10,[Ut[0],Ut[1]]))),1)),I("Benefits",N(E((cn=H,new C(11,[cn[0],cn[1]]))),1)),I("Bank Details",N(E((ut=H,new C(12,[ut[0],ut[1]]))),1)),I("Salary Packaging",void 0)]):b([I("Details",void 0),I("Directory",N(E((br=H,new C(8,[br[0],br[1]]))),1)),I("Imports",N(E((Je=H,new C(9,[Je[0],Je[1]]))),1)),I("Super",N(E((Zs=H,new C(10,[Zs[0],Zs[1]]))),1)),I("Benefits",N(E((Ks=H,new C(11,[Ks[0],Ks[1]]))),1)),I("Bank Details",N(E((Js=H,new C(12,[Js[0],Js[1]]))),1)),I("Salary Packaging",N(E((Ys=H,new C(13,[Ys[0],Ys[1]]))),1))]))}function uw(e){const t=e.account,n=e.mode,r=e.props,o=Sn(nn);switch(n.tag){case 1:{const s=r.accountDetails;return p(zc,{partnerId:s[0],accountId:s[1],backendUrl:o.BackendUrl,accessToken:o.AccessToken})}case 2:{const s=r.accountDetails;return p(rw,{partnerId:s[0],accountId:s[1],backendUrl:o.BackendUrl,accessToken:o.AccessToken})}case 3:{const s=r.accountDetails;return p(Uc,{partnerId:s[0],accountId:s[1],backendUrl:o.BackendUrl,accessToken:o.AccessToken})}case 4:{const s=r.accountDetails;return p(Hc,{partnerId:s[0],accountId:s[1],backendUrl:o.BackendUrl,accessToken:o.AccessToken})}case 5:{const s=r.accountDetails;return p(jc,{partnerId:s[0],accountId:s[1],backendUrl:o.BackendUrl,accessToken:o.AccessToken})}case 6:return p(ow,{accountId:r.accountDetails[1],backendUrl:o.BackendUrl,accessToken:o.AccessToken});default:{let s,i,a;switch(t.tag){case 0:case 1:{s=2;break}case 3:{s=3,a=t.fields[0];break}default:t.fields[0].tag===0?(s=0,i=t.fields[0].fields[0]):s=1}switch(s){case 0:return p(lw,i);case 1:return p(sn,{error:"There was an error retrieving account "});case 2:return p(ao,null);default:{const l=Ie(a);return p(sn,{error:l})}}}}}function fw(e){let t,n;const r=e.account,o=e.mode,s=e.props;return p("div",D(j((t=[(n=s.accountDetails,cw(n[0],n[1],o)),p(uw,{props:s,mode:o,account:r})],["children",A.Children.toArray(Array.from(t))]))))}class Vn extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["NotStarted","Started","Finished","Failed"]}}let xo=class extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["UpdateAccountId","Search","SearchSuccess","SearchFailure"]}},Un=class extends K{constructor(t,n){super(),this.AccountId=t,this.AccountDetails=n}};function dw(){return[new Un(void 0,new Vn(0,[])),Fe()]}function hw(e,t,n,r){switch(n.tag){case 1:{const o=r.AccountId;if(o!=null){const s=o;return[new Un(r.AccountId,new Vn(1,[])),pc(()=>Im(e,t,s),void 0,i=>new xo(2,[i]),i=>new xo(3,[i]))]}else return[new Un(r.AccountId,new Vn(3,["Account Id is required"])),Fe()]}case 2:{const o=n.fields[0];return[new Un(r.AccountId,new Vn(2,[o])),Ee(s=>{Be(j(`#/account-registry/partners/${o.PartnerId}/accounts/${o.AccountId}`),1,2)})]}case 3:return[new Un(r.AccountId,new Vn(3,["Account not found"])),Fe()];default:return[new Un(xt(n.fields[0]),r.AccountDetails),Fe()]}}const pw=p("h3",{className:"text-base font-semibold text-gray-900",id:"modal-title",children:"Account Search"}),mw=p("div",D(b([["className","mt-2"],(()=>{let e;const t=[p("p",D(b([["className","text-sm text-gray-500 whitespace-pre-line"],(e=`Enter an Account Id below to search for an account.
|
|
34
|
+
`));let p=d.props,f=typeof(p==null?void 0:p.className)=="function"?(...y)=>go(p==null?void 0:p.className(...y),c.className):go(p==null?void 0:p.className,c.className),w=f?{className:f}:{};return gs(d,Object.assign({},au(d.props,cu(Us(c,["ref"]))),u,l,{ref:o(d.ref,l.ref)},w))}return h(s,Object.assign({},Us(c,["ref"]),s!==$e&&l,s!==$e&&u),d)}function jg(...e){return e.every(t=>t==null)?void 0:t=>{for(let n of e)n!=null&&(typeof n=="function"?n(t):n.current=t)}}function au(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let o in r)o.startsWith("on")&&typeof r[o]=="function"?(n[o]!=null||(n[o]=[]),n[o].push(r[o])):t[o]=r[o];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map(r=>[r,void 0])));for(let r in n)Object.assign(t,{[r](o,...s){let i=n[r];for(let a of i){if((o instanceof Event||(o==null?void 0:o.nativeEvent)instanceof Event)&&o.defaultPrevented)return;a(o,...s)}}});return t}function Vs(e){var t;return Object.assign(Kr(e),{displayName:(t=e.displayName)!=null?t:e.name})}function cu(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function Us(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}let Hs=or(null);Hs.displayName="OpenClosedContext";var $t=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))($t||{});function lu(){return en(Hs)}function zg({value:e,children:t}){return je.createElement(Hs.Provider,{value:e},t)}function js(){let e=Re(!1);return pr(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function Gg(e=0){let[t,n]=Je(e),r=js(),o=Qt(c=>{r.current&&n(l=>l|c)},[t,r]),s=Qt(c=>!!(t&c),[t]),i=Qt(c=>{r.current&&n(l=>l&~c)},[n,r]),a=Qt(c=>{r.current&&n(l=>l^c)},[n]);return{flags:t,addFlag:o,hasFlag:s,removeFlag:i,toggleFlag:a}}function Wg(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}function zs(e,...t){e&&t.length>0&&e.classList.add(...t)}function Gs(e,...t){e&&t.length>0&&e.classList.remove(...t)}function qg(e,t){let n=mr();if(!e)return n.dispose;let{transitionDuration:r,transitionDelay:o}=getComputedStyle(e),[s,i]=[r,o].map(c=>{let[l=0]=c.split(",").filter(Boolean).map(d=>d.includes("ms")?parseFloat(d):parseFloat(d)*1e3).sort((d,u)=>u-d);return l}),a=s+i;if(a!==0){n.group(l=>{l.setTimeout(()=>{t(),l.dispose()},a),l.addEventListener(e,"transitionrun",d=>{d.target===d.currentTarget&&l.dispose()})});let c=n.addEventListener(e,"transitionend",l=>{l.target===l.currentTarget&&(t(),c())})}else t();return n.add(()=>t()),n.dispose}function Zg(e,t,n,r){let o=n?"enter":"leave",s=mr(),i=r!==void 0?Wg(r):()=>{};o==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let a=ut(o,{enter:()=>t.enter,leave:()=>t.leave}),c=ut(o,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),l=ut(o,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return Gs(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),zs(e,...t.base,...a,...l),s.nextFrame(()=>{Gs(e,...t.base,...a,...l),zs(e,...t.base,...a,...c),qg(e,()=>(Gs(e,...t.base,...a),zs(e,...t.base,...t.entered),i()))}),s.dispose}function Kg({immediate:e,container:t,direction:n,classes:r,onStart:o,onStop:s}){let i=js(),a=nu(),c=Vn(n);pr(()=>{e&&(c.current="enter")},[e]),pr(()=>{let l=mr();a.add(l.dispose);let d=t.current;if(d&&c.current!=="idle"&&i.current)return l.dispose(),o.current(c.current),l.add(Zg(d,r.current,c.current==="enter",()=>{l.dispose(),s.current(c.current)})),l.dispose},[n])}function Vt(e=""){return e.split(/\s+/).filter(t=>t.length>1)}let _o=or(null);_o.displayName="TransitionContext";var Jg=(e=>(e.Visible="visible",e.Hidden="hidden",e))(Jg||{});function Yg(){let e=en(_o);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function Xg(){let e=en(yo);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let yo=or(null);yo.displayName="NestingContext";function bo(e){return"children"in e?bo(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function uu(e,t){let n=Vn(e),r=Re([]),o=js(),s=nu(),i=Tt((f,w=Lt.Hidden)=>{let y=r.current.findIndex(({el:_})=>_===f);y!==-1&&(ut(w,{[Lt.Unmount](){r.current.splice(y,1)},[Lt.Hidden](){r.current[y].state="hidden"}}),s.microTask(()=>{var _;!bo(r)&&o.current&&((_=n.current)==null||_.call(n))}))}),a=Tt(f=>{let w=r.current.find(({el:y})=>y===f);return w?w.state!=="visible"&&(w.state="visible"):r.current.push({el:f,state:"visible"}),()=>i(f,Lt.Unmount)}),c=Re([]),l=Re(Promise.resolve()),d=Re({enter:[],leave:[],idle:[]}),u=Tt((f,w,y)=>{c.current.splice(0),t&&(t.chains.current[w]=t.chains.current[w].filter(([_])=>_!==f)),t==null||t.chains.current[w].push([f,new Promise(_=>{c.current.push(_)})]),t==null||t.chains.current[w].push([f,new Promise(_=>{Promise.all(d.current[w].map(([C,x])=>x)).then(()=>_())})]),w==="enter"?l.current=l.current.then(()=>t==null?void 0:t.wait.current).then(()=>y(w)):y(w)}),p=Tt((f,w,y)=>{Promise.all(d.current[w].splice(0).map(([_,C])=>C)).then(()=>{var _;(_=c.current.shift())==null||_()}).then(()=>y(w))});return Xt(()=>({children:r,register:a,unregister:i,onStart:u,onStop:p,wait:l,chains:d}),[a,i,r,u,p,d,l])}function Qg(){}let ew=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function du(e){var t;let n={};for(let r of ew)n[r]=(t=e[r])!=null?t:Qg;return n}function tw(e){let t=Re(du(e));return ke(()=>{t.current=du(e)},[e]),t}let nw="div",fu=su.RenderStrategy;function rw(e,t){var n,r;let{beforeEnter:o,afterEnter:s,beforeLeave:i,afterLeave:a,enter:c,enterFrom:l,enterTo:d,entered:u,leave:p,leaveFrom:f,leaveTo:w,...y}=e,_=Re(null),C=ou(_,t),x=(n=y.unmount)==null||n?Lt.Unmount:Lt.Hidden,{show:A,appear:O,initial:H}=Yg(),[Y,ue]=Je(A?"visible":"hidden"),Se=Xg(),{register:se,unregister:Ae}=Se;ke(()=>se(_),[se,_]),ke(()=>{if(x===Lt.Hidden&&_.current){if(A&&Y!=="visible"){ue("visible");return}return ut(Y,{hidden:()=>Ae(_),visible:()=>se(_)})}},[Y,_,se,Ae,A,x]);let dt=Vn({base:Vt(y.className),enter:Vt(c),enterFrom:Vt(l),enterTo:Vt(d),entered:Vt(u),leave:Vt(p),leaveFrom:Vt(f),leaveTo:Vt(w)}),it=tw({beforeEnter:o,afterEnter:s,beforeLeave:i,afterLeave:a}),Ht=ru();ke(()=>{if(Ht&&Y==="visible"&&_.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[_,Y,Ht]);let un=H&&!O,jn=O&&A&&H,_r=!Ht||un?"idle":A?"enter":"leave",Mt=Gg(0),yr=Tt(Ye=>ut(Ye,{enter:()=>{Mt.addFlag($t.Opening),it.current.beforeEnter()},leave:()=>{Mt.addFlag($t.Closing),it.current.beforeLeave()},idle:()=>{}})),br=Tt(Ye=>ut(Ye,{enter:()=>{Mt.removeFlag($t.Opening),it.current.afterEnter()},leave:()=>{Mt.removeFlag($t.Closing),it.current.afterLeave()},idle:()=>{}})),jt=uu(()=>{ue("hidden"),Ae(_)},Se),dn=Re(!1);Kg({immediate:jn,container:_,classes:dt,direction:_r,onStart:Vn(Ye=>{dn.current=!0,jt.onStart(_,Ye,yr)}),onStop:Vn(Ye=>{dn.current=!1,jt.onStop(_,Ye,br),Ye==="leave"&&!bo(jt)&&(ue("hidden"),Ae(_))})});let ft=y,vr={ref:C};return jn?ft={...ft,className:go(y.className,...dt.current.enter,...dt.current.enterFrom)}:dn.current&&(ft.className=go(y.className,(r=_.current)==null?void 0:r.className),ft.className===""&&delete ft.className),je.createElement(yo.Provider,{value:jt},je.createElement(zg,{value:ut(Y,{visible:$t.Open,hidden:$t.Closed})|Mt.flags},iu({ourProps:vr,theirProps:ft,defaultTag:nw,features:fu,visible:Y==="visible",name:"Transition.Child"})))}function ow(e,t){let{show:n,appear:r=!1,unmount:o=!0,...s}=e,i=Re(null),a=ou(i,t);ru();let c=lu();if(n===void 0&&c!==null&&(n=(c&$t.Open)===$t.Open),![!0,!1].includes(n))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[l,d]=Je(n?"visible":"hidden"),u=uu(()=>{d("hidden")}),[p,f]=Je(!0),w=Re([n]);pr(()=>{p!==!1&&w.current[w.current.length-1]!==n&&(w.current.push(n),f(!1))},[w,n]);let y=Xt(()=>({show:n,appear:r,initial:p}),[n,r,p]);ke(()=>{if(n)d("visible");else if(!bo(u))d("hidden");else{let A=i.current;if(!A)return;let O=A.getBoundingClientRect();O.x===0&&O.y===0&&O.width===0&&O.height===0&&d("hidden")}},[n,u]);let _={unmount:o},C=Tt(()=>{var A;p&&f(!1),(A=e.beforeEnter)==null||A.call(e)}),x=Tt(()=>{var A;p&&f(!1),(A=e.beforeLeave)==null||A.call(e)});return je.createElement(yo.Provider,{value:u},je.createElement(_o.Provider,{value:y},iu({ourProps:{..._,as:$e,children:je.createElement(hu,{ref:a,..._,...s,beforeEnter:C,beforeLeave:x})},theirProps:{},defaultTag:$e,features:fu,visible:l==="visible",name:"Transition"})))}function sw(e,t){let n=en(_o)!==null,r=lu()!==null;return je.createElement(je.Fragment,null,!n&&r?je.createElement(Ws,{ref:t,...e}):je.createElement(hu,{ref:t,...e}))}let Ws=Vs(ow),hu=Vs(rw),iw=Vs(sw),aw=Object.assign(Ws,{Child:iw,Root:Ws}),Nt=class extends L{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Key","Appear","Show","ClassName","Enter","EnterFrom","EnterTo","Leave","LeaveFrom","LeaveTo","Children"]}};function cw(e){const t=Ot(e,1);return h(aw,t)}function vo(e,t){let n;return h("div",D(b([["className","px-4 py-4 sm:px-0"],(n=[h("h3",{className:"text-lg font-semibold leading-7 text-gray-900",children:e}),Ie(Ze(r=>h("p",{className:"mt-1 max-w-2xl text-sm leading-6 text-gray-500",children:r}),t),te())],["children",T.Children.toArray(Array.from(n))])])))}function ye(e,t){let n;return h("div",D(b([["className","px-4 py-4 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"],(n=[h("dt",{className:"text-sm font-medium leading-6 text-gray-700",children:e}),h("dd",{className:"px-1 mt-1 text-sm leading-6 text-gray-700 sm:col-span-2 sm:mt-0",children:t})],["children",T.Children.toArray(Array.from(n))])])))}function qs(e){let t,n;const r=e.value,o=e.label,s=ar(!1),i=s[0],a=s[1];return Vh(()=>{In(V.Delay(()=>i?V.Bind(tp(2e3),()=>(a(!1),V.Zero())):V.Zero()))}),h("div",D(b([["className","px-4 py-2 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"],(t=[h("dt",{className:"text-sm font-medium leading-6 text-gray-700",children:o}),h("dd",D(b([["className","flex mt-1 text-sm leading-6 text-primary-700 sm:col-span-2 sm:mt-0 relative"],(n=[cw(b([new Nt(3,["absolute bottom-8 flex flex-row bg-gray-900 items-start w-[69px] h-8 shadow-md px-3 py-2 rounded-md"]),new Nt(2,[i]),new Nt(4,["transition-opacity ease-in duration-100"]),new Nt(5,["opacity-0"]),new Nt(6,["opacity-90"]),new Nt(7,["transition-opacity ease-out duration-500"]),new Nt(8,["opacity-90"]),new Nt(9,["opacity-0"]),new Nt(10,[[h("div",{className:"w-[45px] h-4 not-italic font-medium text-xs leading-4 text-white flex-none order-none grow-0",children:"Copied"})]])])),h("div",{className:"px-1 cursor-pointer hover:text-primary-900 hover:bg-gray-300 rounded-md shrink",children:r})],["children",T.Children.toArray(Array.from(n))]),["onClick",c=>{navigator.clipboard.writeText(r),a(!0)}]])))],["children",T.Children.toArray(Array.from(t))])])))}function xo(e,t){let n;const r=b([e,h("div",D(b([["className","mt-2 border-b border-gray-200"],(n=[h("dl",{className:"divide-y divide-gray-200 px-0 sm:px-4 max-w-2xl",children:T.Children.toArray(Array.from(t))})],["children",T.Children.toArray(Array.from(n))])])))]);return h("div",{children:T.Children.toArray(Array.from(r))})}function lw(e){const t=En(on);return xo(vo("Partner Information",void 0),ge($(()=>{let n;return P(N((n=["ID",et(e.StreamId)],h(qs,{label:n[0],value:n[1]}))),$(()=>{let r;return P(N((r=["Name",Ur(e.Name)],ye(r[0],r[1]))),$(()=>{let o,s,i;return P(t.Roles.ReadProtectedData?(o=e.ContactDetails,o!=null?(s=o,P(N((i=["Contact",`${da(s.FirstName)} ${fa(s.LastName)}`],ye(i[0],i[1]))),$(()=>{let a;return N((a=["Phone",ha(s.MobilePhone)],ye(a[0],a[1])))}))):Ke()):Ke(),$(()=>{let a;return P(N((a=["Website",ua(e.Website)],ye(a[0],a[1]))),$(()=>{let c;return N((c=["Notes",Ie(Yf(e.Notes),"")],ye(c[0],c[1])))}))}))}))}))})))}let ln=class extends L{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Details","AccountList","SuperConfiguration","BenefitsOnboardingConfiguration","BankDetailsConfiguration","ProfileDirectory","Workspace"]}};class uw extends K{constructor(t,n,r){super(),this.PartnerId=t,this.BackendUrl=n,this.AccessToken=r}}class dw extends K{constructor(t,n,r){super(),this.PartnerId=t,this.BackendUrl=n,this.AccessToken=r}}class fw extends K{constructor(t,n,r){super(),this.PartnerId=t,this.BackendUrl=n,this.AccessToken=r}}class hw extends K{constructor(t,n,r){super(),this.PartnerId=t,this.BackendUrl=n,this.AccessToken=r}}class pw extends K{constructor(t,n,r){super(),this.PartnerId=t,this.BackendUrl=n,this.AccessToken=r}}function mw(e){let t,n,r,o,s,i,a;const c=l=>S("Workspace",E(k(new v(7,[l])),1));return Ll(e.tag===1?(t=e.fields[0],b([S("Details",E(k(new v(1,[t.partnerId])),1)),S("Accounts",void 0),S("Super",E(k(new v(4,[t.partnerId])),1)),S("Benefits",E(k(new v(5,[t.partnerId])),1)),S("Bank Details",E(k(new v(6,[t.partnerId])),1)),S("Directory",E(k(new v(2,[t.partnerId])),1)),c(t.partnerId)])):e.tag===2?(n=e.fields[0].PartnerId,b([S("Details",E(k(new v(1,[n])),1)),S("Accounts",E(k(new v(3,[n])),1)),S("Super",void 0),S("Benefits",E(k(new v(5,[n])),1)),S("Bank Details",E(k(new v(6,[n])),1)),S("Directory",E(k(new v(2,[n])),1)),c(n)])):e.tag===3?(r=e.fields[0].PartnerId,b([S("Details",E(k(new v(1,[r])),1)),S("Accounts",E(k(new v(3,[r])),1)),S("Super",E(k(new v(4,[r])),1)),S("Benefits",void 0),S("Bank Details",E(k(new v(6,[r])),1)),S("Directory",E(k(new v(2,[r])),1)),c(r)])):e.tag===4?(o=e.fields[0].PartnerId,b([S("Details",E(k(new v(1,[o])),1)),S("Accounts",E(k(new v(3,[o])),1)),S("Super",E(k(new v(4,[o])),1)),S("Benefits",E(k(new v(5,[o])),1)),S("Bank Details",void 0),S("Directory",E(k(new v(2,[o])),1)),c(o)])):e.tag===5?(s=e.fields[0].PartnerId,b([S("Details",E(k(new v(1,[s])),1)),S("Accounts",E(k(new v(3,[s])),1)),S("Super",E(k(new v(4,[s])),1)),S("Benefits",E(k(new v(5,[s])),1)),S("Bank Details",E(k(new v(6,[s])),1)),S("Directory",void 0),c(s)])):e.tag===6?(i=e.fields[0].PartnerId,b([S("Details",E(k(new v(1,[i])),1)),S("Accounts",E(k(new v(3,[i])),1)),S("Super",E(k(new v(4,[i])),1)),S("Benefits",E(k(new v(5,[i])),1)),S("Bank Details",E(k(new v(6,[i])),1)),S("Directory",E(k(new v(2,[i])),1)),S("Workspace",void 0)])):(a=e.fields[0],b([S("Details",void 0),S("Accounts",E(k(new v(3,[le(et(a.StreamId))])),1)),S("Super",E(k(new v(4,[le(et(a.StreamId))])),1)),S("Benefits",E(k(new v(5,[le(et(a.StreamId))])),1)),S("Bank Details",E(k(new v(6,[le(et(a.StreamId))])),1)),S("Directory",E(k(new v(2,[le(et(a.StreamId))])),1)),c(le(et(a.StreamId)))])))}function gw(e){switch(e.tag){case 1:return h(Og,e.fields[0]);case 2:return h(Yl,{partnerId:e.fields[0].PartnerId,backendUrl:e.fields[0].BackendUrl,accessToken:e.fields[0].AccessToken});case 3:return h(Xl,{partnerId:e.fields[0].PartnerId,backendUrl:e.fields[0].BackendUrl,accessToken:e.fields[0].AccessToken});case 4:return h(Ql,{partnerId:e.fields[0].PartnerId,backendUrl:e.fields[0].BackendUrl,accessToken:e.fields[0].AccessToken});case 5:return h(eu,{partnerId:e.fields[0].PartnerId,backendUrl:e.fields[0].BackendUrl,accessToken:e.fields[0].AccessToken});case 6:return h(tu,{backendUrl:e.fields[0].BackendUrl,accessToken:e.fields[0].AccessToken,partnerId:e.fields[0].PartnerId});default:return h(lw,e.fields[0])}}function pu(e){let t;const n=e.mode;return h("div",D(j((t=[mw(n),gw(n)],["children",T.Children.toArray(Array.from(t))]))))}let Co=class extends L{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["backend-url","access-token","partner-id","account-id"]}};function ww(e){const t=e.accessToken,n=e.backendUrl,r=e.accountId,o=e.partnerId,s=qt(i=>i,[new Co(1,[t]),new Co(0,[n]),new Co(2,[ct(o)]),Ze(i=>new Co(3,[Qe(i)]),r)]);return h("superhero-import-app",Ot(s,1))}class Zs extends L{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["backend-url","access-token","account-id"]}}function _w(e){const t=e.accessToken,n=e.backendUrl,r=e.accountId,o=qt(s=>s,[new Zs(1,[t]),new Zs(0,[n]),Ze(s=>new Zs(2,[Qe(s)]),r)]);return h("superhero-salpac-profile-admin",Ot(o,1))}function yw(e){const t=En(on);return xo(vo("Account Information",void 0),ge($(()=>{let n;return P(N((n=["ID",e.StreamId],h(qs,{label:n[0],value:n[1]}))),$(()=>{let r;return P(N((r=["Name",e.Name],h(qs,{label:r[0],value:r[1]}))),$(()=>{let o;return P(N((o=["External ID",Ie(e.ExternalId,"")],ye(o[0],o[1]))),$(()=>{let s;return P(N((s=["Channel ID",Ie(e.ChannelId,"")],ye(s[0],s[1]))),$(()=>{let i;if(t.Roles.ReadProtectedData){const a=e.ContactDetails;if(a!=null){const c=a;return P(N((i=["Contact",`${c.FirstName} ${c.LastName}`],ye(i[0],i[1]))),$(()=>{let l;return P(N((l=["Phone",c.MobilePhone],ye(l[0],l[1]))),$(()=>{let d;return N((d=["Email",c.Email],ye(d[0],d[1])))}))}))}else return Ke()}else return Ke()}))}))}))}))})))}function bw(e){let t,n,r,o,s,i,a;if(e==null)return te();{const c=e;return xo(vo("Legal Entity",void 0),b([(t=["Business Name",c.BusinessName],ye(t[0],t[1])),(n=["Business Number",c.BusinessNumber],ye(n[0],n[1])),(r=["Address Line 1",c.Address1],ye(r[0],r[1])),(o=["Address Line 2",Ie(c.Address2,"")],ye(o[0],o[1])),(s=["City",c.City],ye(s[0],s[1])),(i=["State",Ie(c.State,"")],ye(i[0],i[1])),(a=["Postcode",c.Postcode],ye(a[0],a[1]))]))}}function vw(e){let t;if(e==null)return te();{const n=e;return xo(vo("Legal Entity",void 0),j((t=["Notes",n],ye(t[0],t[1]))))}}function xw(e){const t=b([h(yw,e),bw(e.LegalEntity),vw(e.Notes)]);return h("div",{children:T.Children.toArray(Array.from(t))})}class Ut extends L{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Details","ProfilesDirectory","Imports","SuperConfiguration","BenefitsOnboardingConfiguration","BankDetailsConfiguration","SalaryPackagingConfiguration","Workspace"]}}function Cw(e,t,n){let r,o,s,i,a,c,l,d,u,p,f,w,y,_,C,x,A,O,H,Y,ue,Se,se,Ae,dt,it,Ht,un,jn,_r,Mt,yr,br,jt,dn,ft,vr,Ye,Js,Ys,Xs,Qs,ei,ti,ni,ri,oi,si,ii,ai;const B=[e,t],fn=S("Workspace",E(k((r=B,new v(15,[r[0],r[1]]))),1));return Ll(n.tag===1?b([S("Details",E(k((o=B,new v(8,[o[0],o[1]]))),1)),S("Directory",void 0),S("Imports",E(k((s=B,new v(10,[s[0],s[1]]))),1)),S("Super",E(k((i=B,new v(11,[i[0],i[1]]))),1)),S("Benefits",E(k((a=B,new v(12,[a[0],a[1]]))),1)),S("Bank Details",E(k((c=B,new v(13,[c[0],c[1]]))),1)),S("Salary Packaging",E(k((l=B,new v(14,[l[0],l[1]]))),1)),fn]):n.tag===2?b([S("Details",E(k((d=B,new v(8,[d[0],d[1]]))),1)),S("Directory",E(k((u=B,new v(9,[u[0],u[1]]))),1)),S("Imports",void 0),S("Super",E(k((p=B,new v(11,[p[0],p[1]]))),1)),S("Benefits",E(k((f=B,new v(12,[f[0],f[1]]))),1)),S("Bank Details",E(k((w=B,new v(13,[w[0],w[1]]))),1)),S("Salary Packaging",E(k((y=B,new v(14,[y[0],y[1]]))),1)),fn]):n.tag===3?b([S("Details",E(k((_=B,new v(8,[_[0],_[1]]))),1)),S("Directory",E(k((C=B,new v(9,[C[0],C[1]]))),1)),S("Imports",E(k((x=B,new v(10,[x[0],x[1]]))),1)),S("Super",void 0),S("Benefits",E(k((A=B,new v(12,[A[0],A[1]]))),1)),S("Bank Details",E(k((O=B,new v(13,[O[0],O[1]]))),1)),S("Salary Packaging",E(k((H=B,new v(14,[H[0],H[1]]))),1)),fn]):n.tag===4?b([S("Details",E(k((Y=B,new v(8,[Y[0],Y[1]]))),1)),S("Directory",E(k((ue=B,new v(9,[ue[0],ue[1]]))),1)),S("Imports",E(k((Se=B,new v(10,[Se[0],Se[1]]))),1)),S("Super",E(k((se=B,new v(11,[se[0],se[1]]))),1)),S("Benefits",void 0),S("Bank Details",E(k((Ae=B,new v(13,[Ae[0],Ae[1]]))),1)),S("Salary Packaging",E(k((dt=B,new v(14,[dt[0],dt[1]]))),1)),fn]):n.tag===5?b([S("Details",E(k((it=B,new v(8,[it[0],it[1]]))),1)),S("Directory",E(k((Ht=B,new v(9,[Ht[0],Ht[1]]))),1)),S("Imports",E(k((un=B,new v(10,[un[0],un[1]]))),1)),S("Super",E(k((jn=B,new v(11,[jn[0],jn[1]]))),1)),S("Benefits",E(k((_r=B,new v(12,[_r[0],_r[1]]))),1)),S("Bank Details",void 0),S("Salary Packaging",E(k((Mt=B,new v(14,[Mt[0],Mt[1]]))),1)),fn]):n.tag===6?b([S("Details",E(k((yr=B,new v(8,[yr[0],yr[1]]))),1)),S("Directory",E(k((br=B,new v(9,[br[0],br[1]]))),1)),S("Imports",E(k((jt=B,new v(10,[jt[0],jt[1]]))),1)),S("Super",E(k((dn=B,new v(11,[dn[0],dn[1]]))),1)),S("Benefits",E(k((ft=B,new v(12,[ft[0],ft[1]]))),1)),S("Bank Details",E(k((vr=B,new v(13,[vr[0],vr[1]]))),1)),S("Salary Packaging",void 0),fn]):n.tag===7?b([S("Details",E(k((Ye=B,new v(8,[Ye[0],Ye[1]]))),1)),S("Directory",E(k((Js=B,new v(9,[Js[0],Js[1]]))),1)),S("Imports",E(k((Ys=B,new v(10,[Ys[0],Ys[1]]))),1)),S("Super",E(k((Xs=B,new v(11,[Xs[0],Xs[1]]))),1)),S("Benefits",E(k((Qs=B,new v(12,[Qs[0],Qs[1]]))),1)),S("Bank Details",E(k((ei=B,new v(13,[ei[0],ei[1]]))),1)),S("Salary Packaging",E(k((ti=B,new v(14,[ti[0],ti[1]]))),1)),S("Workspace",void 0)]):b([S("Details",void 0),S("Directory",E(k((ni=B,new v(9,[ni[0],ni[1]]))),1)),S("Imports",E(k((ri=B,new v(10,[ri[0],ri[1]]))),1)),S("Super",E(k((oi=B,new v(11,[oi[0],oi[1]]))),1)),S("Benefits",E(k((si=B,new v(12,[si[0],si[1]]))),1)),S("Bank Details",E(k((ii=B,new v(13,[ii[0],ii[1]]))),1)),S("Salary Packaging",E(k((ai=B,new v(14,[ai[0],ai[1]]))),1)),fn]))}function kw(e){const t=e.account,n=e.mode,r=e.props,o=En(on);switch(n.tag){case 1:{const s=r.accountDetails;return h(eu,{partnerId:s[0],accountId:s[1],backendUrl:o.BackendUrl,accessToken:o.AccessToken})}case 2:{const s=r.accountDetails;return h(ww,{partnerId:s[0],accountId:s[1],backendUrl:o.BackendUrl,accessToken:o.AccessToken})}case 3:{const s=r.accountDetails;return h(Yl,{partnerId:s[0],accountId:s[1],backendUrl:o.BackendUrl,accessToken:o.AccessToken})}case 4:{const s=r.accountDetails;return h(Xl,{partnerId:s[0],accountId:s[1],backendUrl:o.BackendUrl,accessToken:o.AccessToken})}case 5:{const s=r.accountDetails;return h(Ql,{partnerId:s[0],accountId:s[1],backendUrl:o.BackendUrl,accessToken:o.AccessToken})}case 6:return h(_w,{accountId:r.accountDetails[1],backendUrl:o.BackendUrl,accessToken:o.AccessToken});case 7:{const s=r.accountDetails;return h(tu,{backendUrl:o.BackendUrl,accessToken:o.AccessToken,partnerId:s[0],accountId:s[1]})}default:{let s,i,a;switch(t.tag){case 0:case 1:{s=2;break}case 3:{s=3,a=t.fields[0];break}default:t.fields[0].tag===0?(s=0,i=t.fields[0].fields[0]):s=1}switch(s){case 0:return h(xw,i);case 1:return h(cn,{error:"There was an error retrieving account "});case 2:return h(co,null);default:{const c=De(a);return h(cn,{error:c})}}}}}function Sw(e){let t,n;const r=e.account,o=e.mode,s=e.props;return h("div",D(j((t=[(n=s.accountDetails,Cw(n[0],n[1],o)),h(kw,{props:s,mode:o,account:r})],["children",T.Children.toArray(Array.from(t))]))))}class Un extends L{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["NotStarted","Started","Finished","Failed"]}}let ko=class extends L{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["UpdateAccountId","Search","SearchSuccess","SearchFailure"]}},Hn=class extends K{constructor(t,n){super(),this.AccountId=t,this.AccountDetails=n}};function Aw(){return[new Hn(void 0,new Un(0,[])),Ve()]}function Ew(e,t,n,r){switch(n.tag){case 1:{const o=r.AccountId;if(o!=null){const s=o;return[new Hn(r.AccountId,new Un(1,[])),kl(()=>Lm(e,t,s),void 0,i=>new ko(2,[i]),i=>new ko(3,[i]))]}else return[new Hn(r.AccountId,new Un(3,["Account Id is required"])),Ve()]}case 2:{const o=n.fields[0];return[new Hn(r.AccountId,new Un(2,[o])),_e(s=>{Ne(j(`#/account-registry/partners/${o.PartnerId}/accounts/${o.AccountId}`),1,2)})]}case 3:return[new Hn(r.AccountId,new Un(3,["Account not found"])),Ve()];default:return[new Hn(lt(n.fields[0]),r.AccountDetails),Ve()]}}const Iw=h("h3",{className:"text-base font-semibold text-gray-900",id:"modal-title",children:"Account Search"}),Tw=h("div",D(b([["className","mt-2"],(()=>{let e;const t=[h("p",D(b([["className","text-sm text-gray-500 whitespace-pre-line"],(e=`Enter an Account Id below to search for an account.
|
|
35
35
|
|
|
36
|
-
If the account is found you will be redirected to the account details page.`,["children",e])])))];return["children",A.Children.toArray(Array.from(t))]})()])));function gw(e){let t,n,r,o;return p("div",D(b([["className","absolute right-0 top-0 hidden pr-4 pt-4 sm:block"],(t=[p("button",D(b([(n="rounded-md bg-white text-gray-400 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2",["className",n]),["type","button"],["onClick",e],(r=[p("span",{className:"sr-only",children:"Close"}),p("svg",D(b([["className","h-6 w-6"],["fill","none"],["stroke","currentColor"],["strokeWidth",1.5],["viewBox","0 0 24 24"],(o=j(p("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18 18 6M6 6l12 12"})),["children",A.Children.toArray(Array.from(o))])])))],["children",A.Children.toArray(Array.from(r))])])))],["children",A.Children.toArray(Array.from(t))])])))}function ww(e,t,n,r){let o,s,i;return p("div",D(b([["className","mt-5 sm:flex sm:items-center"],(o=[p("div",D(b([["className","w-full sm:max-w-xs"],(s=[p("label",{className:"sr-only",for:"account-id",children:"Account Id"}),p("input",D(me(T(()=>P($(["id","account-id"]),T(()=>P($(["autoComplete","off"]),T(()=>{let a;return P($((a="block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm/6",["className",a])),T(()=>P($(["placeholder","Account Id"]),T(()=>P($(["disabled",!n]),T(()=>P($(["onChange",l=>{e(l.target.value)}]),T(()=>{const l=r;return l==null?Ze():$(["value",Bi(l)])}))))))))}))))))))],["children",A.Children.toArray(Array.from(s))])]))),p("button",D(b([["className",W(" ",["mt-3 inline-flex w-full items-center justify-center rounded-md bg-indigo-600 px-3 py-2 text-sm font-semibold text-white shadow-sm","hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600","sm:ml-3 sm:mt-0 sm:w-auto","disabled:opacity-50"])],(i=me(T(()=>$(n?p("span",{children:["Search"]}):p("span",{children:["Searching..."]})))),["children",A.Children.toArray(Array.from(i))]),["onClick",t],["disabled",!n]])))],["children",A.Children.toArray(Array.from(o))])])))}function _w(e){let t,n,r,o,s,i,a;const l=e.closeModal,c=Sn(nn),f=Ps(()=>Ms(dw,(w,x)=>hw(c.BackendUrl,c.AccessToken,w,x),(w,x)=>{}),void 0,void 0),u=f[0],h=f[1],d=ww(w=>{h(new xo(0,[w]))},w=>{h(new xo(1,[]))},!he(u.AccountDetails,new Vn(1,[])),u.AccountId);let g;const y=u.AccountDetails;return g=y.tag===3?p("div",{className:W(" ",["mt-2 text-sm text-red-600"]),children:y.fields[0]}):Q(),p("div",D(b([["className","relative z-10"],["role",W(" ",["dialog"])],(t=[p("div",{className:"fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity","aria-hidden":!0}),p("div",D(b([["className","fixed inset-0 z-10 w-screen overflow-y-auto"],(n=[p("div",D(b([["className","flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0"],["onClick",l],(r=[p("div",D(b([(o="relative transform overflow-hidden rounded-lg bg-white px-4 pb-4 pt-5 text-left shadow-xl transition-all sm:my-8 sm:w-full sm:max-w-lg sm:p-6",["className",o]),["onClick",w=>{w.preventDefault(),w.stopPropagation()}],(s=[gw(l),p("div",D(b([["className","sm:flex sm:items-start"],(i=[p("div",D(b([(a="mx-auto flex h-12 w-12 flex-shrink-0 items-center justify-center rounded-full bg-indigo-100 sm:mx-0 sm:h-10 sm:w-10",["className",a]),["children",A.Children.toArray([Fc])]]))),p("div",{className:"mt-3 text-center sm:ml-4 sm:mt-0 sm:text-left",children:A.Children.toArray([pw,mw,d,g])})],["children",A.Children.toArray(Array.from(i))])])))],["children",A.Children.toArray(Array.from(s))])])))],["children",A.Children.toArray(Array.from(r))])])))],["children",A.Children.toArray(Array.from(n))])])))],["children",A.Children.toArray(Array.from(t))])])))}function yw(e,t){return Mi(n=>{const r=e.toLocaleLowerCase();return at(n.StreamId).toLocaleLowerCase().indexOf(r)>=0?!0:Vr(n.Name).toLocaleLowerCase().indexOf(r)>=0},t)}function bw(e){const t=Sn(nn),n=Pf(c=>Vr(c.Name).toLocaleLowerCase(),e.partnerList,{Compare:xr}),r=ir(n),o=ir(""),s=ir(!1),i=s[1],a=me(T(()=>P($(on("ID")),T(()=>P($(on("Name")),T(()=>P(t.Roles.ReadProtectedData?P($(on("Contact")),T(()=>$(on("Phone")))):Ze(),T(()=>$(on("Website")))))))))),l=me(T(()=>P(s[0]?$(p(_w,{closeModal:c=>{i(!1)}})):$(Q()),T(()=>{let c;return P($(p("div",D(b([["className","flex items-end place-content-between"],(c=[Nc(o[0],"Partner ID or Name",f=>{o[1](f),r[1](yw(f,n))},()=>{}),p("button",{className:W(" ",["max-h-10 inline-flex items-center gap-x-2 rounded-md bg-indigo-600 px-3.5 py-2.5 text-sm font-semibold text-white shadow-sm","hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600"]),type:"button",onClick:f=>{i(!0)},children:A.Children.toArray(["Account Search ",Fc])})],["children",A.Children.toArray(Array.from(c))])])))),T(()=>$(ig(a,Yn(f=>{const u=at(f.StreamId),h=pe(u);return me(T(()=>{let d;return P($((d=[N(E(new C(1,[h])),1),u],sg(d[0],d[1]))),T(()=>P($(io(["text-gray-500"],Vr(f.Name))),T(()=>P(t.Roles.ReadProtectedData?P($(io(["text-gray-500"],Se(Xe(g=>`${ta(g.FirstName)} ${na(g.LastName)}`,f.ContactDetails),""))),T(()=>$(io(["text-gray-500"],Se(Xe(g=>ra(g.MobilePhone),f.ContactDetails),""))))):Ze(),T(()=>$(io(["text-gray-500"],ea(f.Website)))))))))}))},r[0])))))}))));return p("div",{children:A.Children.toArray(Array.from(l))})}const vw=`*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}[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}.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}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.\\!visible{visibility:visible!important}.visible{visibility:visible}.invisible{visibility:hidden}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.bottom-8{bottom:2rem}.right-0{right:0}.top-0{top:0}.z-10{z-index:10}.order-none{order:0}.-my-2{margin-top:-.5rem;margin-bottom:-.5rem}.mx-auto{margin-left:auto;margin-right:auto}.-mb-px{margin-bottom:-1px}.-ml-3{margin-left:-.75rem}.ml-2{margin-left:.5rem}.ml-3{margin-left:.75rem}.ml-4{margin-left:1rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.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}.size-6{width:1.5rem;height:1.5rem}.h-12{height:3rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-8{height:2rem}.max-h-10{max-height:2.5rem}.min-h-full{min-height:100%}.w-12{width:3rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-\\[45px\\]{width:45px}.w-\\[69px\\]{width:69px}.w-full{width:100%}.w-screen{width:100vw}.min-w-full{min-width:100%}.max-w-2xl{max-width:42rem}.max-w-md{max-width:28rem}.max-w-screen-xl{max-width:1280px}.flex-1{flex:1 1 0%}.flex-none{flex:none}.flex-shrink{flex-shrink:1}.flex-shrink-0{flex-shrink:0}.shrink{flex-shrink:1}.flex-grow,.grow{flex-grow:1}.grow-0{flex-grow:0}.border-collapse{border-collapse:collapse}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.resize{resize:both}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.place-content-between{place-content:space-between}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-4{gap:1rem}.gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.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-x-8>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(2rem * var(--tw-space-x-reverse));margin-left:calc(2rem * calc(1 - var(--tw-space-x-reverse)))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.divide-gray-200>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(229 231 235 / var(--tw-divide-opacity))}.self-start{align-self:flex-start}.self-end{align-self:flex-end}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-line{white-space:pre-line}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.border{border-width:1px}.border-0{border-width:0px}.border-b{border-bottom-width:1px}.border-b-2{border-bottom-width:2px}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.border-indigo-500{--tw-border-opacity: 1;border-color:rgb(99 102 241 / var(--tw-border-opacity))}.border-transparent{border-color:transparent}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.bg-gray-500{--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}.bg-gray-900{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}.bg-indigo-100{--tw-bg-opacity: 1;background-color:rgb(224 231 255 / var(--tw-bg-opacity))}.bg-indigo-600{--tw-bg-opacity: 1;background-color:rgb(79 70 229 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-opacity-75{--tw-bg-opacity: .75}.p-4{padding:1rem}.px-0{padding-left:0;padding-right:0}.px-1{padding-left:.25rem;padding-right:.25rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-3\\.5{padding-left:.875rem;padding-right:.875rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\\.5{padding-top:.625rem;padding-bottom:.625rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.pb-4{padding-bottom:1rem}.pr-4{padding-right:1rem}.pt-2{padding-top:.5rem}.pt-4{padding-top:1rem}.pt-5{padding-top:1.25rem}.pt-6{padding-top:1.5rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.text-justify{text-align:justify}.align-top{vertical-align:top}.align-middle{vertical-align:middle}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.lowercase{text-transform:lowercase}.capitalize{text-transform:capitalize}.italic{font-style:italic}.not-italic{font-style:normal}.leading-4{line-height:1rem}.leading-6{line-height:1.5rem}.leading-7{line-height:1.75rem}.tracking-wider{letter-spacing:.05em}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.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-indigo-600{--tw-text-opacity: 1;color:rgb(79 70 229 / var(--tw-text-opacity))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.underline{text-decoration-line:underline}.overline{text-decoration-line:overline}.line-through{text-decoration-line:line-through}.opacity-0{opacity:0}.opacity-90{opacity:.9}.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-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline{outline-style:solid}.ring{--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(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-1{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-inset{--tw-ring-inset: inset}.ring-gray-300{--tw-ring-opacity: 1;--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity))}.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,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-100{transition-duration:.1s}.duration-500{transition-duration:.5s}.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)}.placeholder\\:text-gray-400::-moz-placeholder{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.placeholder\\:text-gray-400::placeholder{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.hover\\:border-gray-300:hover{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.hover\\:bg-gray-300:hover{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}.hover\\:bg-gray-50:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.hover\\:bg-indigo-500:hover{--tw-bg-opacity: 1;background-color:rgb(99 102 241 / var(--tw-bg-opacity))}.hover\\:bg-indigo-700:hover{--tw-bg-opacity: 1;background-color:rgb(67 56 202 / var(--tw-bg-opacity))}.hover\\:text-gray-500:hover{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.hover\\:text-gray-700:hover{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.hover\\:text-indigo-900:hover{--tw-text-opacity: 1;color:rgb(49 46 129 / var(--tw-text-opacity))}.focus\\:border-indigo-500:focus{--tw-border-opacity: 1;border-color:rgb(99 102 241 / 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-inset:focus{--tw-ring-inset: inset}.focus\\:ring-indigo-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(99 102 241 / var(--tw-ring-opacity))}.focus\\:ring-indigo-600:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(79 70 229 / var(--tw-ring-opacity))}.focus\\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.focus-visible\\:outline:focus-visible{outline-style:solid}.focus-visible\\:outline-2:focus-visible{outline-width:2px}.focus-visible\\:outline-offset-2:focus-visible{outline-offset:2px}.focus-visible\\:outline-indigo-600:focus-visible{outline-color:#4f46e5}.disabled\\:opacity-50:disabled{opacity:.5}.group:hover .group-hover\\:visible{visibility:visible}.group:focus .group-focus\\:visible{visibility:visible}@media (min-width: 640px){.sm\\:col-span-2{grid-column:span 2 / span 2}.sm\\:-mx-6{margin-left:-1.5rem;margin-right:-1.5rem}.sm\\:mx-0{margin-left:0;margin-right:0}.sm\\:my-8{margin-top:2rem;margin-bottom:2rem}.sm\\:-mr-6{margin-right:-1.5rem}.sm\\:ml-3{margin-left:.75rem}.sm\\:ml-4{margin-left:1rem}.sm\\:mt-0{margin-top:0}.sm\\:block{display:block}.sm\\:flex{display:flex}.sm\\:grid{display:grid}.sm\\:h-10{height:2.5rem}.sm\\:w-10{width:2.5rem}.sm\\:w-auto{width:auto}.sm\\:w-full{width:100%}.sm\\:max-w-lg{max-width:32rem}.sm\\:max-w-xs{max-width:20rem}.sm\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\\:items-start{align-items:flex-start}.sm\\:items-center{align-items:center}.sm\\:justify-end{justify-content:flex-end}.sm\\:gap-4{gap:1rem}.sm\\:rounded-lg{border-radius:.5rem}.sm\\:p-0{padding:0}.sm\\:p-6{padding:1.5rem}.sm\\:px-0{padding-left:0;padding-right:0}.sm\\:px-4{padding-left:1rem;padding-right:1rem}.sm\\:px-6{padding-left:1.5rem;padding-right:1.5rem}.sm\\:pl-6{padding-left:1.5rem}.sm\\:text-left{text-align:left}.sm\\:text-sm{font-size:.875rem;line-height:1.25rem}.sm\\:text-sm\\/6{font-size:.875rem;line-height:1.5rem}}@media (min-width: 1024px){.lg\\:-mx-8{margin-left:-2rem;margin-right:-2rem}.lg\\:mr-0{margin-right:0}.lg\\:px-8{padding-left:2rem;padding-right:2rem}}`,xw=Ie(vw);function qs(){return(qs=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 Cw=["context","children"];function kw(e){this.getChildContext=function(){return e.context};var t=e.children,n=function(r,o){if(r==null)return{};var s,i,a={},l=Object.keys(r);for(i=0;i<l.length;i++)o.indexOf(s=l[i])>=0||(a[s]=r[s]);return a}(e,Cw);return ss(t,n)}function Sw(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=p(kw,qs({},this._props,{context:e.detail.context}),function t(n,r){if(n.nodeType===3)return n.data;if(n.nodeType!==1)return null;var o=[],s={},i=0,a=n.attributes,l=n.childNodes;for(i=a.length;i--;)a[i].name!=="slot"&&(s[a[i].name]=a[i].value,s[ou(a[i].name)]=a[i].value);for(i=l.length;i--;){var c=t(l[i],null),f=l[i].slot;f?s[f]=p(su,{name:f},c):o[i]=c}var u=r?p(su,null,o):o;return p(r||n.nodeName.toLowerCase(),s,u)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?os:Ot)(this._vdom,this._root)}function ou(e){return e.replace(/-(\w)/g,function(t,n){return n?n.toUpperCase():""})}function Aw(e,t,n){if(this._vdom){var r={};r[e]=n=n??void 0,r[ou(e)]=n,this._vdom=ss(this._vdom,r),Ot(this._vdom,this._root)}}function Ew(){Ot(this._vdom=null,this._root)}function su(e,t){var n=this;return p("slot",qs({},e,{ref:function(r){r?(n.ref=r,n._listener||(n._listener=function(o){o.stopPropagation(),o.detail.context=t},r.addEventListener("_preact",n._listener))):n.ref.removeEventListener("_preact",n._listener)}}))}function Iw(e,t,n,r){function o(){var s=Reflect.construct(HTMLElement,[],o);return s._vdomComponent=e,s._root=r&&r.shadow?s.attachShadow({mode:r.mode||"open"}):s,s}return(o.prototype=Object.create(HTMLElement.prototype)).constructor=o,o.prototype.connectedCallback=Sw,o.prototype.attributeChangedCallback=Aw,o.prototype.disconnectedCallback=Ew,n=n||e.observedAttributes||Object.keys(e.propTypes||{}),o.observedAttributes=n,n.forEach(function(s){Object.defineProperty(o.prototype,s,{get:function(){return this._vdom.props[s]},set:function(i){this._vdom?this.attributeChangedCallback(s,null,i):(this._props||(this._props={}),this._props[s]=i,this.connectedCallback());var a=typeof i;i!=null&&a!=="string"&&a!=="boolean"&&a!=="number"||this.setAttribute(s,i)}})}),customElements.define(t,o)}function Tw(e,t){Iw(e,t,void 0,{shadow:!0})}class mr extends K{constructor(t,n,r,o){super(),this.Partners=t,this.Accounts=n,this.CurrentPage=r,this.Roles=o}}class gr extends B{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["PageChanged","GetAccountName","AppendAccount","LoadPartners"]}}function $w(e){let t;const n=Rl(Sl(window.location.hash,1)),r=n.tag===14?Ol(new C(0,[])):Fe();return[new mr(new Y(0,[]),Op(),n,(t=F0(e),t.tag===1?(bi(`Failed to decode jwt: ${t.fields[0]}`),Hp):Up(t.fields[0]))),r]}function Nw(e,t,n){switch(t.tag){case 1:{const r=t.fields[0],o=pc(e,r,s=>new gr(2,[r,new m(0,[s])]),s=>new gr(2,[r,new m(1,["Failed to retrieve account name"])]));return[new mr(n.Partners,Dl(n.Accounts,r,new Y(1,[])),n.CurrentPage,n.Roles),o]}case 2:return[new mr(n.Partners,Dl(n.Accounts,t.fields[0],new Y(2,[t.fields[1]])),n.CurrentPage,n.Roles),Fe()];case 0:{const r=t.fields[0];return r.tag===14?[n,Ol(r)]:[new mr(n.Partners,n.Accounts,r,n.Roles),Fe()]}default:return[new mr(t.fields[0],n.Accounts,n.CurrentPage,n.Roles),Fe()]}}function Mw(e){let t,n,r,o;const s=$w(e.accessToken);o=Ps(()=>Ms(()=>s,(v,k)=>Nw(O=>{const U=Rp(O);return Em(e.backendUrl,e.accessToken,U[0],U[1])},v,k),(v,k)=>{}),void 0,void 0);const i=o[0],a=o[1];xs(xl(()=>Am(e.backendUrl,e.accessToken),v=>{a(new gr(3,[v]))}));const l=v=>{let k;const O=i.Partners;switch(O.tag){case 0:return new Y(0,[]);case 1:return new Y(1,[]);case 3:return new Y(3,[O.fields[0]]);default:return O.fields[0].tag===1?new Y(2,[new m(1,[gt(yi("Unknown partner: %A%P()",[v]))])]):new Y(2,[(k=Pl(O.fields[0].fields[0],v),k==null?new m(1,[gt(yi("Unknown partner: %A%P()",[v]))]):new m(0,[k.Name]))])}},c=v=>p(dr,{page:i.CurrentPage,partner:{Id:v,Name:l(v)}}),f=(v,k)=>{const O=p(ru,{mode:k});return[c(v),O]},u=(v,k)=>{let O,U,oe;const we=v[0],Ve=v[1];let se,Ce;const ct=[we,Ve];Ce=Pp(ct[0],ct[1]),se=mf(Fp(i.Accounts,Ce),()=>(a(new gr(1,[Ce])),new Y(0,[])));let ot;return ot=p(fw,{props:{accountDetails:[we,Ve]},mode:k,account:se}),[(O=[we,Ve,se],U=O[0],p(dr,(oe={Id:U,Name:l(U)},{account:{Id:O[1],Name:Vp(ln=>Oi(ln.Name),O[2])},page:i.CurrentPage,partner:Oo(oe)}))),ot]};let h;const d=i.Partners;let g,y,w,x;switch(d.tag){case 2:{d.fields[0].tag===1?(g=2,w=d.fields[0].fields[0]):(g=1,y=d.fields[0].fields[0]);break}case 3:{g=3,x=d.fields[0];break}default:g=0}switch(g){case 0:{h=[p(ao,null),p(ao,null)];break}case 1:{const v=i.CurrentPage;switch(v.tag){case 1:{const k=v.fields[0],O=c(k),U=Pl(y,k);h=U==null?[O,p(sn,{error:"Unknown Partner"})]:[O,(t=new Ln(0,[U]),p(ru,{mode:t}))];break}case 3:{const k=v.fields[0];h=f(k,new Ln(1,[{partnerId:k}]));break}case 4:{const k=v.fields[0];h=f(k,new Ln(2,[new Yg(k,e.backendUrl,e.accessToken)]));break}case 5:{const k=v.fields[0];h=f(k,new Ln(3,[new Xg(k,e.backendUrl,e.accessToken)]));break}case 6:{const k=v.fields[0];h=f(k,new Ln(4,[new Qg(k,e.backendUrl,e.accessToken)]));break}case 2:{const k=v.fields[0];h=f(k,new Ln(5,[new ew(k,e.backendUrl,e.accessToken)]));break}case 7:{h=u([v.fields[0],v.fields[1]],new an(0,[]));break}case 8:{h=u([v.fields[0],v.fields[1]],new an(1,[]));break}case 9:{h=u([v.fields[0],v.fields[1]],new an(2,[]));break}case 10:{h=u([v.fields[0],v.fields[1]],new an(3,[]));break}case 11:{h=u([v.fields[0],v.fields[1]],new an(4,[]));break}case 12:{h=u([v.fields[0],v.fields[1]],new an(5,[]));break}case 13:{h=u([v.fields[0],v.fields[1]],new an(6,[]));break}default:h=[p(dr,{page:i.CurrentPage}),p(bw,{partnerList:y})]}break}case 2:{h=[p(dr,{page:i.CurrentPage}),p(sn,{error:w})];break}default:h=[p(dr,{page:i.CurrentPage}),(n=Ie(x),p(sn,{error:n}))]}return Ph(nn,new Zm(i.Roles,e.backendUrl,e.accessToken),j((r=b([p("style",{children:[xw]}),Sp({onUrlChanged:v=>{a(new gr(0,[Rl(v)]))},application:p(Ae,{},h[0],h[1])})]),p("div",{children:A.Children.toArray(Array.from(r))}))))}Tw(e=>p(Mw,e),"superhero-account-registry")})();
|
|
36
|
+
If the account is found you will be redirected to the account details page.`,["children",e])])))];return["children",T.Children.toArray(Array.from(t))]})()])));function $w(e){let t,n,r,o;return h("div",D(b([["className","absolute right-0 top-0 hidden pr-4 pt-4 sm:block"],(t=[h("button",D(b([(n="rounded-md bg-white text-gray-400 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2",["className",n]),["type","button"],["onClick",e],(r=[h("span",{className:"sr-only",children:"Close"}),h("svg",D(b([["className","h-6 w-6"],["fill","none"],["stroke","currentColor"],["strokeWidth",1.5],["viewBox","0 0 24 24"],(o=j(h("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18 18 6M6 6l12 12"})),["children",T.Children.toArray(Array.from(o))])])))],["children",T.Children.toArray(Array.from(r))])])))],["children",T.Children.toArray(Array.from(t))])])))}function Nw(e,t,n,r){let o,s,i;return h("div",D(b([["className","mt-5 sm:flex sm:items-center"],(o=[h("div",D(b([["className","w-full sm:max-w-xs"],(s=[h("label",{className:"sr-only",for:"account-id",children:"Account Id"}),h("input",D(ge($(()=>P(N(["id","account-id"]),$(()=>P(N(["autoComplete","off"]),$(()=>{let a;return P(N((a="block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm/6",["className",a])),$(()=>P(N(["placeholder","Account Id"]),$(()=>P(N(["disabled",!n]),$(()=>P(N(["onChange",c=>{e(c.target.value)}]),$(()=>{const c=r;return c==null?Ke():N(["value",Zi(c)])}))))))))}))))))))],["children",T.Children.toArray(Array.from(s))])]))),h("button",D(b([["className",W(" ",["mt-3 inline-flex w-full items-center justify-center rounded-md bg-indigo-600 px-3 py-2 text-sm font-semibold text-white shadow-sm","hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600","sm:ml-3 sm:mt-0 sm:w-auto","disabled:opacity-50"])],(i=ge($(()=>N(n?h("span",{children:["Search"]}):h("span",{children:["Searching..."]})))),["children",T.Children.toArray(Array.from(i))]),["onClick",t],["disabled",!n]])))],["children",T.Children.toArray(Array.from(o))])])))}function Mw(e){let t,n,r,o,s,i,a;const c=e.closeModal,l=En(on),d=Os(()=>Ps(Aw,(_,C)=>Ew(l.BackendUrl,l.AccessToken,_,C),(_,C)=>{}),void 0,void 0),u=d[0],p=d[1],f=Nw(_=>{p(new ko(0,[_]))},_=>{p(new ko(1,[]))},!me(u.AccountDetails,new Un(1,[])),u.AccountId);let w;const y=u.AccountDetails;return w=y.tag===3?h("div",{className:W(" ",["mt-2 text-sm text-red-600"]),children:y.fields[0]}):te(),h("div",D(b([["className","relative z-10"],["role",W(" ",["dialog"])],(t=[h("div",{className:"fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity","aria-hidden":!0}),h("div",D(b([["className","fixed inset-0 z-10 w-screen overflow-y-auto"],(n=[h("div",D(b([["className","flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0"],["onClick",c],(r=[h("div",D(b([(o="relative transform overflow-hidden rounded-lg bg-white px-4 pb-4 pt-5 text-left shadow-xl transition-all sm:my-8 sm:w-full sm:max-w-lg sm:p-6",["className",o]),["onClick",_=>{_.preventDefault(),_.stopPropagation()}],(s=[$w(c),h("div",D(b([["className","sm:flex sm:items-start"],(i=[h("div",D(b([(a="mx-auto flex h-12 w-12 flex-shrink-0 items-center justify-center rounded-full bg-indigo-100 sm:mx-0 sm:h-10 sm:w-10",["className",a]),["children",T.Children.toArray([ql])]]))),h("div",{className:"mt-3 text-center sm:ml-4 sm:mt-0 sm:text-left",children:T.Children.toArray([Iw,Tw,f,w])})],["children",T.Children.toArray(Array.from(i))])])))],["children",T.Children.toArray(Array.from(s))])])))],["children",T.Children.toArray(Array.from(r))])])))],["children",T.Children.toArray(Array.from(n))])])))],["children",T.Children.toArray(Array.from(t))])])))}function Dw(e,t){return Hi(n=>{const r=e.toLocaleLowerCase();return et(n.StreamId).toLocaleLowerCase().indexOf(r)>=0?!0:Ur(n.Name).toLocaleLowerCase().indexOf(r)>=0},t)}function Pw(e){const t=En(on),n=zd(l=>Ur(l.Name).toLocaleLowerCase(),e.partnerList,{Compare:Cr}),r=ar(n),o=ar(""),s=ar(!1),i=s[1],a=ge($(()=>P(N(an("ID")),$(()=>P(N(an("Name")),$(()=>P(t.Roles.ReadProtectedData?P(N(an("Contact")),$(()=>N(an("Phone")))):Ke(),$(()=>N(an("Website")))))))))),c=ge($(()=>P(s[0]?N(h(Mw,{closeModal:l=>{i(!1)}})):N(te()),$(()=>{let l;return P(N(h("div",D(b([["className","flex items-end place-content-between"],(l=[Ul(o[0],"Partner ID or Name",d=>{o[1](d),r[1](Dw(d,n))},()=>{}),h("button",{className:W(" ",["max-h-10 inline-flex items-center gap-x-2 rounded-md bg-indigo-600 px-3.5 py-2.5 text-sm font-semibold text-white shadow-sm","hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600"]),type:"button",onClick:d=>{i(!0)},children:T.Children.toArray(["Account Search ",ql])})],["children",T.Children.toArray(Array.from(l))])])))),$(()=>N(yg(a,Xn(d=>{const u=et(d.StreamId),p=le(u);return ge($(()=>{let f;return P(N((f=[E(k(new v(1,[p])),1),u],_g(f[0],f[1]))),$(()=>P(N(ao(["text-gray-500"],Ur(d.Name))),$(()=>P(t.Roles.ReadProtectedData?P(N(ao(["text-gray-500"],Ie(Ze(w=>`${da(w.FirstName)} ${fa(w.LastName)}`,d.ContactDetails),""))),$(()=>N(ao(["text-gray-500"],Ie(Ze(w=>ha(w.MobilePhone),d.ContactDetails),""))))):Ke(),$(()=>N(ao(["text-gray-500"],ua(d.Website)))))))))}))},r[0])))))}))));return h("div",{children:T.Children.toArray(Array.from(c))})}const Rw=`*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}[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}.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}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.\\!visible{visibility:visible!important}.visible{visibility:visible}.invisible{visibility:hidden}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.bottom-8{bottom:2rem}.right-0{right:0}.top-0{top:0}.z-10{z-index:10}.order-none{order:0}.-my-2{margin-top:-.5rem;margin-bottom:-.5rem}.mx-auto{margin-left:auto;margin-right:auto}.-mb-px{margin-bottom:-1px}.-ml-3{margin-left:-.75rem}.ml-2{margin-left:.5rem}.ml-3{margin-left:.75rem}.ml-4{margin-left:1rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.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}.size-6{width:1.5rem;height:1.5rem}.h-12{height:3rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-8{height:2rem}.max-h-10{max-height:2.5rem}.min-h-full{min-height:100%}.w-12{width:3rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-\\[45px\\]{width:45px}.w-\\[69px\\]{width:69px}.w-full{width:100%}.w-screen{width:100vw}.min-w-full{min-width:100%}.max-w-2xl{max-width:42rem}.max-w-md{max-width:28rem}.max-w-screen-xl{max-width:1280px}.flex-1{flex:1 1 0%}.flex-none{flex:none}.flex-shrink{flex-shrink:1}.flex-shrink-0{flex-shrink:0}.shrink{flex-shrink:1}.flex-grow,.grow{flex-grow:1}.grow-0{flex-grow:0}.border-collapse{border-collapse:collapse}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.resize{resize:both}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.place-content-between{place-content:space-between}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-4{gap:1rem}.gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.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-x-8>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(2rem * var(--tw-space-x-reverse));margin-left:calc(2rem * calc(1 - var(--tw-space-x-reverse)))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.divide-gray-200>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(229 231 235 / var(--tw-divide-opacity))}.self-start{align-self:flex-start}.self-end{align-self:flex-end}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-line{white-space:pre-line}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.border{border-width:1px}.border-0{border-width:0px}.border-b{border-bottom-width:1px}.border-b-2{border-bottom-width:2px}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.border-indigo-500{--tw-border-opacity: 1;border-color:rgb(99 102 241 / var(--tw-border-opacity))}.border-transparent{border-color:transparent}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.bg-gray-500{--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}.bg-gray-900{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}.bg-indigo-100{--tw-bg-opacity: 1;background-color:rgb(224 231 255 / var(--tw-bg-opacity))}.bg-indigo-600{--tw-bg-opacity: 1;background-color:rgb(79 70 229 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-opacity-75{--tw-bg-opacity: .75}.p-4{padding:1rem}.px-0{padding-left:0;padding-right:0}.px-1{padding-left:.25rem;padding-right:.25rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-3\\.5{padding-left:.875rem;padding-right:.875rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\\.5{padding-top:.625rem;padding-bottom:.625rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.pb-4{padding-bottom:1rem}.pr-4{padding-right:1rem}.pt-2{padding-top:.5rem}.pt-4{padding-top:1rem}.pt-5{padding-top:1.25rem}.pt-6{padding-top:1.5rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.text-justify{text-align:justify}.align-top{vertical-align:top}.align-middle{vertical-align:middle}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.lowercase{text-transform:lowercase}.capitalize{text-transform:capitalize}.italic{font-style:italic}.not-italic{font-style:normal}.leading-4{line-height:1rem}.leading-6{line-height:1.5rem}.leading-7{line-height:1.75rem}.tracking-wider{letter-spacing:.05em}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.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-indigo-600{--tw-text-opacity: 1;color:rgb(79 70 229 / var(--tw-text-opacity))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.underline{text-decoration-line:underline}.overline{text-decoration-line:overline}.line-through{text-decoration-line:line-through}.opacity-0{opacity:0}.opacity-90{opacity:.9}.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-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline{outline-style:solid}.ring{--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(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-1{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-inset{--tw-ring-inset: inset}.ring-gray-300{--tw-ring-opacity: 1;--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity))}.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,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-100{transition-duration:.1s}.duration-500{transition-duration:.5s}.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)}.placeholder\\:text-gray-400::-moz-placeholder{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.placeholder\\:text-gray-400::placeholder{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.hover\\:border-gray-300:hover{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.hover\\:bg-gray-300:hover{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}.hover\\:bg-gray-50:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.hover\\:bg-indigo-500:hover{--tw-bg-opacity: 1;background-color:rgb(99 102 241 / var(--tw-bg-opacity))}.hover\\:bg-indigo-700:hover{--tw-bg-opacity: 1;background-color:rgb(67 56 202 / var(--tw-bg-opacity))}.hover\\:text-gray-500:hover{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.hover\\:text-gray-700:hover{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.hover\\:text-indigo-900:hover{--tw-text-opacity: 1;color:rgb(49 46 129 / var(--tw-text-opacity))}.focus\\:border-indigo-500:focus{--tw-border-opacity: 1;border-color:rgb(99 102 241 / 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-inset:focus{--tw-ring-inset: inset}.focus\\:ring-indigo-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(99 102 241 / var(--tw-ring-opacity))}.focus\\:ring-indigo-600:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(79 70 229 / var(--tw-ring-opacity))}.focus\\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.focus-visible\\:outline:focus-visible{outline-style:solid}.focus-visible\\:outline-2:focus-visible{outline-width:2px}.focus-visible\\:outline-offset-2:focus-visible{outline-offset:2px}.focus-visible\\:outline-indigo-600:focus-visible{outline-color:#4f46e5}.disabled\\:opacity-50:disabled{opacity:.5}.group:hover .group-hover\\:visible{visibility:visible}.group:focus .group-focus\\:visible{visibility:visible}@media (min-width: 640px){.sm\\:col-span-2{grid-column:span 2 / span 2}.sm\\:-mx-6{margin-left:-1.5rem;margin-right:-1.5rem}.sm\\:mx-0{margin-left:0;margin-right:0}.sm\\:my-8{margin-top:2rem;margin-bottom:2rem}.sm\\:-mr-6{margin-right:-1.5rem}.sm\\:ml-3{margin-left:.75rem}.sm\\:ml-4{margin-left:1rem}.sm\\:mt-0{margin-top:0}.sm\\:block{display:block}.sm\\:flex{display:flex}.sm\\:grid{display:grid}.sm\\:h-10{height:2.5rem}.sm\\:w-10{width:2.5rem}.sm\\:w-auto{width:auto}.sm\\:w-full{width:100%}.sm\\:max-w-lg{max-width:32rem}.sm\\:max-w-xs{max-width:20rem}.sm\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\\:items-start{align-items:flex-start}.sm\\:items-center{align-items:center}.sm\\:justify-end{justify-content:flex-end}.sm\\:gap-4{gap:1rem}.sm\\:rounded-lg{border-radius:.5rem}.sm\\:p-0{padding:0}.sm\\:p-6{padding:1.5rem}.sm\\:px-0{padding-left:0;padding-right:0}.sm\\:px-4{padding-left:1rem;padding-right:1rem}.sm\\:px-6{padding-left:1.5rem;padding-right:1.5rem}.sm\\:pl-6{padding-left:1.5rem}.sm\\:text-left{text-align:left}.sm\\:text-sm{font-size:.875rem;line-height:1.25rem}.sm\\:text-sm\\/6{font-size:.875rem;line-height:1.5rem}}@media (min-width: 1024px){.lg\\:-mx-8{margin-left:-2rem;margin-right:-2rem}.lg\\:mr-0{margin-right:0}.lg\\:px-8{padding-left:2rem;padding-right:2rem}}`,Ow=De(Rw);function Ks(){return(Ks=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 Fw=["context","children"];function Bw(e){this.getChildContext=function(){return e.context};var t=e.children,n=function(r,o){if(r==null)return{};var s,i,a={},c=Object.keys(r);for(i=0;i<c.length;i++)o.indexOf(s=c[i])>=0||(a[s]=r[s]);return a}(e,Fw);return as(t,n)}function Lw(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=h(Bw,Ks({},this._props,{context:e.detail.context}),function t(n,r){if(n.nodeType===3)return n.data;if(n.nodeType!==1)return null;var o=[],s={},i=0,a=n.attributes,c=n.childNodes;for(i=a.length;i--;)a[i].name!=="slot"&&(s[a[i].name]=a[i].value,s[mu(a[i].name)]=a[i].value);for(i=c.length;i--;){var l=t(c[i],null),d=c[i].slot;d?s[d]=h(gu,{name:d},l):o[i]=l}var u=r?h(gu,null,o):o;return h(r||n.nodeName.toLowerCase(),s,u)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?is:Ft)(this._vdom,this._root)}function mu(e){return e.replace(/-(\w)/g,function(t,n){return n?n.toUpperCase():""})}function Vw(e,t,n){if(this._vdom){var r={};r[e]=n=n??void 0,r[mu(e)]=n,this._vdom=as(this._vdom,r),Ft(this._vdom,this._root)}}function Uw(){Ft(this._vdom=null,this._root)}function gu(e,t){var n=this;return h("slot",Ks({},e,{ref:function(r){r?(n.ref=r,n._listener||(n._listener=function(o){o.stopPropagation(),o.detail.context=t},r.addEventListener("_preact",n._listener))):n.ref.removeEventListener("_preact",n._listener)}}))}function Hw(e,t,n,r){function o(){var s=Reflect.construct(HTMLElement,[],o);return s._vdomComponent=e,s._root=r&&r.shadow?s.attachShadow({mode:r.mode||"open"}):s,s}return(o.prototype=Object.create(HTMLElement.prototype)).constructor=o,o.prototype.connectedCallback=Lw,o.prototype.attributeChangedCallback=Vw,o.prototype.disconnectedCallback=Uw,n=n||e.observedAttributes||Object.keys(e.propTypes||{}),o.observedAttributes=n,n.forEach(function(s){Object.defineProperty(o.prototype,s,{get:function(){return this._vdom.props[s]},set:function(i){this._vdom?this.attributeChangedCallback(s,null,i):(this._props||(this._props={}),this._props[s]=i,this.connectedCallback());var a=typeof i;i!=null&&a!=="string"&&a!=="boolean"&&a!=="number"||this.setAttribute(s,i)}})}),customElements.define(t,o)}function jw(e,t){Hw(e,t,void 0,{shadow:!0})}class gr extends K{constructor(t,n,r,o){super(),this.Partners=t,this.Accounts=n,this.CurrentPage=r,this.Roles=o}}class wr extends L{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["PageChanged","GetAccountName","AppendAccount","LoadPartners"]}}function zw(e){let t;const n=Gc(Rc(window.location.hash,1)),r=n.tag===16?Wc(new v(0,[])):Ve();return[new gr(new Q(0,[]),qp(),n,(t=Z0(e),t.tag===1?($i(`Failed to decode jwt: ${t.fields[0]}`),Qp):Xp(t.fields[0]))),r]}function Gw(e,t,n){switch(t.tag){case 1:{const r=t.fields[0],o=kl(e,r,s=>new wr(2,[r,new g(0,[s])]),s=>new wr(2,[r,new g(1,["Failed to retrieve account name"])]));return[new gr(n.Partners,jc(n.Accounts,r,new Q(1,[])),n.CurrentPage,n.Roles),o]}case 2:return[new gr(n.Partners,jc(n.Accounts,t.fields[0],new Q(2,[t.fields[1]])),n.CurrentPage,n.Roles),Ve()];case 0:{const r=t.fields[0];return r.tag===16?[n,Wc(r)]:[new gr(n.Partners,n.Accounts,r,n.Roles),Ve()]}default:return[new gr(t.fields[0],n.Accounts,n.CurrentPage,n.Roles),Ve()]}}function Ww(e){let t,n,r,o;const s=zw(e.accessToken);o=Os(()=>Ps(()=>s,(x,A)=>Gw(O=>{const H=Wp(O);return Bm(e.backendUrl,e.accessToken,H[0],H[1])},x,A),(x,A)=>{}),void 0,void 0);const i=o[0],a=o[1];ks(Mc(()=>Fm(e.backendUrl,e.accessToken),x=>{a(new wr(3,[x]))}));const c=x=>{let A;const O=i.Partners;switch(O.tag){case 0:return new Q(0,[]);case 1:return new Q(1,[]);case 3:return new Q(3,[O.fields[0]]);default:return O.fields[0].tag===1?new Q(2,[new g(1,[_t(Ti("Unknown partner: %A%P()",[x]))])]):new Q(2,[(A=zc(O.fields[0].fields[0],x),A==null?new g(1,[_t(Ti("Unknown partner: %A%P()",[x]))]):new g(0,[A.Name]))])}},l=x=>h(hr,{page:i.CurrentPage,partner:{Id:x,Name:c(x)}}),d=(x,A)=>{const O=h(pu,{mode:A});return[l(x),O]},u=(x,A)=>{let O,H,Y;const ue=x[0],Se=x[1];let se,Ae;const dt=[ue,Se];Ae=Gp(dt[0],dt[1]),se=Sd(Zp(i.Accounts,Ae),()=>(a(new wr(1,[Ae])),new Q(0,[])));let it;return it=h(Sw,{props:{accountDetails:[ue,Se]},mode:A,account:se}),[(O=[ue,Se,se],H=O[0],h(hr,(Y={Id:H,Name:c(H)},{account:{Id:O[1],Name:Yp(un=>Wi(un.Name),O[2])},page:i.CurrentPage,partner:Bo(Y)}))),it]};let p;const f=i.Partners;let w,y,_,C;switch(f.tag){case 2:{f.fields[0].tag===1?(w=2,_=f.fields[0].fields[0]):(w=1,y=f.fields[0].fields[0]);break}case 3:{w=3,C=f.fields[0];break}default:w=0}switch(w){case 0:{p=[h(co,null),h(co,null)];break}case 1:{const x=i.CurrentPage;switch(x.tag){case 3:{const A=x.fields[0];p=d(A,new ln(1,[{partnerId:A}]));break}case 4:{const A=x.fields[0];p=d(A,new ln(2,[new uw(A,e.backendUrl,e.accessToken)]));break}case 5:{const A=x.fields[0];p=d(A,new ln(3,[new dw(A,e.backendUrl,e.accessToken)]));break}case 6:{const A=x.fields[0];p=d(A,new ln(4,[new fw(A,e.backendUrl,e.accessToken)]));break}case 2:{const A=x.fields[0];p=d(A,new ln(5,[new hw(A,e.backendUrl,e.accessToken)]));break}case 7:{const A=x.fields[0];p=d(A,new ln(6,[new pw(A,e.backendUrl,e.accessToken)]));break}case 8:{p=u([x.fields[0],x.fields[1]],new Ut(0,[]));break}case 9:{p=u([x.fields[0],x.fields[1]],new Ut(1,[]));break}case 10:{p=u([x.fields[0],x.fields[1]],new Ut(2,[]));break}case 11:{p=u([x.fields[0],x.fields[1]],new Ut(3,[]));break}case 12:{p=u([x.fields[0],x.fields[1]],new Ut(4,[]));break}case 13:{p=u([x.fields[0],x.fields[1]],new Ut(5,[]));break}case 14:{p=u([x.fields[0],x.fields[1]],new Ut(6,[]));break}case 15:{p=u([x.fields[0],x.fields[1]],new Ut(7,[]));break}case 0:case 16:{p=[h(hr,{page:i.CurrentPage}),h(Pw,{partnerList:y})];break}default:{const A=x.fields[0],O=l(A),H=zc(y,A);p=H==null?[O,h(cn,{error:"Unknown Partner"})]:[O,(t=new ln(0,[H]),h(pu,{mode:t}))]}}break}case 2:{p=[h(hr,{page:i.CurrentPage}),h(cn,{error:_})];break}default:p=[h(hr,{page:i.CurrentPage}),(n=De(C),h(cn,{error:n}))]}return Gh(on,new ag(i.Roles,e.backendUrl,e.accessToken),j((r=b([h("style",{children:[Ow]}),Op({onUrlChanged:x=>{a(new wr(0,[Gc(x)]))},application:h($e,{},p[0],p[1])})]),h("div",{children:T.Children.toArray(Array.from(r))}))))}jw(e=>h(Ww,e),"superhero-account-registry")})();
|