@flarehr/apollo-personal-details-app 3.40.25 → 3.41.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- (()=>{"use strict";var e={118:(e,t,n)=>{n.d(t,{Z:()=>g});var r=n(81),o=n.n(r),i=n(645),s=n.n(i),u=n(667),a=n.n(u),l=new URL(n(578),n.b),c=new URL(n(254),n.b),$=new URL(n(184),n.b),f=new URL(n(421),n.b),d=s()(o()),h=a()(l),m=a()(c),p=a()($),w=a()(f);d.push([e.id,'/*! tailwindcss v3.0.23 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}html{-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}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,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-size:100%;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-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,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input:-ms-input-placeholder,textarea:-ms-input-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}[multiple],[type=date],[type=datetime-local],[type=email],[type=month],[type=number],[type=password],[type=search],[type=tel],[type=text],[type=time],[type=url],[type=week],select,textarea{--tw-shadow:0 0 #0000;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#6b7280;border-radius:0;border-width:1px;font-size:1rem;line-height:1.5rem;padding:.5rem .75rem}[multiple]:focus,[type=date]:focus,[type=datetime-local]:focus,[type=email]:focus,[type=month]:focus,[type=number]:focus,[type=password]:focus,[type=search]:focus,[type=tel]:focus,[type=text]:focus,[type=time]:focus,[type=url]:focus,[type=week]:focus,select:focus,textarea:focus{--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);border-color:#2563eb;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);outline:2px solid transparent;outline-offset:2px}input::-moz-placeholder,textarea::-moz-placeholder{color:#6b7280;opacity:1}input:-ms-input-placeholder,textarea:-ms-input-placeholder{color:#6b7280;opacity:1}input::placeholder,textarea::placeholder{color:#6b7280;opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em}::-webkit-datetime-edit,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-meridiem-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-year-field{padding-bottom:0;padding-top:0}select{color-adjust:exact;background-image:url('+h+");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem;-webkit-print-color-adjust:exact}[multiple]{color-adjust:unset;background-image:none;background-position:0 0;background-repeat:unset;background-size:initial;padding-right:.75rem;-webkit-print-color-adjust:unset}[type=checkbox],[type=radio]{color-adjust:exact;--tw-shadow:0 0 #0000;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;background-origin:border-box;border-color:#6b7280;border-width:1px;color:#2563eb;display:inline-block;flex-shrink:0;height:1rem;padding:0;-webkit-print-color-adjust:exact;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:middle;width:1rem}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{--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);outline:2px solid transparent;outline-offset:2px}[type=checkbox]:checked,[type=radio]:checked{background-color:currentColor;background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:transparent}[type=checkbox]:checked{background-image:url("+m+")}[type=radio]:checked{background-image:url("+p+")}[type=checkbox]:checked:focus,[type=checkbox]:checked:hover,[type=radio]:checked:focus,[type=radio]:checked:hover{background-color:currentColor;border-color:transparent}[type=checkbox]:indeterminate{background-color:currentColor;background-image:url("+w+");background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:transparent}[type=checkbox]:indeterminate:focus,[type=checkbox]:indeterminate:hover{background-color:currentColor;border-color:transparent}[type=file]{background:unset;border-color:inherit;border-radius:0;border-width:0;font-size:unset;line-height:inherit;padding:0}[type=file]:focus{outline:1px auto -webkit-focus-ring-color}*,:after,:before{--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(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: }.col-span-1{grid-column:span 1/span 1}.col-span-2{grid-column:span 2/span 2}.my-4{margin-bottom:1rem;margin-top:1rem}.-mx-1\\.5{margin-left:-.375rem;margin-right:-.375rem}.-my-1\\.5{margin-bottom:-.375rem;margin-top:-.375rem}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.-my-1{margin-bottom:-.25rem;margin-top:-.25rem}.ml-auto{margin-left:auto}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.-ml-1{margin-left:-.25rem}.mr-3{margin-right:.75rem}.mt-4{margin-top:1rem}.mb-2{margin-bottom:.5rem}.block{display:block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.hidden{display:none}.h-5{height:1.25rem}.w-5{width:1.25rem}.w-full{width:100%}@-webkit-keyframes spin{to{transform:rotate(1turn)}}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin{-webkit-animation:spin 1s linear infinite;animation:spin 1s linear infinite}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.flex-row-reverse{flex-direction:row-reverse}.items-center{align-items:center}.gap-1{gap:.25rem}.gap-x-6{-moz-column-gap:1.5rem;column-gap:1.5rem}.gap-y-4{row-gap:1rem}.rounded-md{border-radius:.375rem}.border{border-width:1px}.border-red-300{--tw-border-opacity:1;border-color:rgb(252 165 165/var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity))}.border-transparent{border-color:transparent}.bg-red-50{--tw-bg-opacity:1;background-color:rgb(254 242 242/var(--tw-bg-opacity))}.bg-green-50{--tw-bg-opacity:1;background-color:rgb(240 253 244/var(--tw-bg-opacity))}.bg-blue-50{--tw-bg-opacity:1;background-color:rgb(239 246 255/var(--tw-bg-opacity))}.bg-primary-base{background-color:var(--fl-color-primary)}.bg-primary-disabled{background-color:var(--fl-color-primary-disabled)}.p-4{padding:1rem}.p-1\\.5{padding:.375rem}.p-1{padding:.25rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.px-4{padding-left:1rem;padding-right:1rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.pl-3{padding-left:.75rem}.pr-10{padding-right:2.5rem}.font-sans{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.text-sm{font-size:.875rem;line-height:1.25rem}.text-base{font-size:1rem;line-height:1.5rem}.text-2xl{font-size:1.5rem;line-height:2rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.font-medium{font-weight:500}.font-semibold{font-weight:600}.text-red-700{--tw-text-opacity:1;color:rgb(185 28 28/var(--tw-text-opacity))}.text-green-700{--tw-text-opacity:1;color:rgb(21 128 61/var(--tw-text-opacity))}.text-blue-700{--tw-text-opacity:1;color:rgb(29 78 216/var(--tw-text-opacity))}.text-red-500{--tw-text-opacity:1;color:rgb(239 68 68/var(--tw-text-opacity))}.text-green-500{--tw-text-opacity:1;color:rgb(34 197 94/var(--tw-text-opacity))}.text-blue-500{--tw-text-opacity:1;color:rgb(59 130 246/var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity))}.text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.text-red-900{--tw-text-opacity:1;color:rgb(127 29 29/var(--tw-text-opacity))}.text-black{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.text-primary-text{color:var(--fl-color-primary-text)}.placeholder-red-300::-moz-placeholder{--tw-placeholder-opacity:1;color:rgb(252 165 165/var(--tw-placeholder-opacity))}.placeholder-red-300:-ms-input-placeholder{--tw-placeholder-opacity:1;color:rgb(252 165 165/var(--tw-placeholder-opacity))}.placeholder-red-300::placeholder{--tw-placeholder-opacity:1;color:rgb(252 165 165/var(--tw-placeholder-opacity))}.opacity-25{opacity:.25}.opacity-75{opacity:.75}.shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)}.shadow,.shadow-sm{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)}.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)}.hover\\:bg-red-100:hover{--tw-bg-opacity:1;background-color:rgb(254 226 226/var(--tw-bg-opacity))}.hover\\:bg-green-100:hover{--tw-bg-opacity:1;background-color:rgb(220 252 231/var(--tw-bg-opacity))}.hover\\:bg-blue-100:hover{--tw-bg-opacity:1;background-color:rgb(219 234 254/var(--tw-bg-opacity))}.hover\\:bg-primary-hover:hover{background-color:var(--fl-color-primary-hover)}.focus\\:border-red-500:focus{--tw-border-opacity:1;border-color:rgb(239 68 68/var(--tw-border-opacity))}.focus\\:border-primary-focus:focus{border-color:var(--fl-color-primary-focus)}.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-red-600:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(220 38 38/var(--tw-ring-opacity))}.focus\\:ring-green-600:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(22 163 74/var(--tw-ring-opacity))}.focus\\:ring-blue-600:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(37 99 235/var(--tw-ring-opacity))}.focus\\:ring-red-500:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(239 68 68/var(--tw-ring-opacity))}.focus\\:ring-primary-focus:focus{--tw-ring-color:var(--fl-color-primary-focus)}.focus\\:ring-offset-2:focus{--tw-ring-offset-width:2px}.focus\\:ring-offset-red-50:focus{--tw-ring-offset-color:#fef2f2}.focus\\:ring-offset-green-50:focus{--tw-ring-offset-color:#f0fdf4}.focus\\:ring-offset-blue-50:focus{--tw-ring-offset-color:#eff6ff}@media (min-width:640px){.sm\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\\:text-sm{font-size:.875rem;line-height:1.25rem}}",""]);const g=d},645:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,o,i){"string"==typeof e&&(e=[[null,e,void 0]]);var s={};if(r)for(var u=0;u<this.length;u++){var a=this[u][0];null!=a&&(s[a]=!0)}for(var l=0;l<e.length;l++){var c=[].concat(e[l]);r&&s[c[0]]||(void 0!==i&&(void 0===c[5]||(c[1]="@layer".concat(c[5].length>0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=i),n&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=n):c[2]=n),o&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=o):c[4]="".concat(o)),t.push(c))}},t}},667:e=>{e.exports=function(e,t){return t||(t={}),e?(e=String(e.__esModule?e.default:e),/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]|(%20)/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e):e}},81:e=>{e.exports=function(e){return e[1]}},89:(e,t,n)=>{function r(e){return Array.isArray(e)||ArrayBuffer.isView(e)}function o(e){return"function"==typeof e.GetHashCode}function i(e){return null!=e&&"function"==typeof e.Dispose}function s(e){i(e)&&e.Dispose()}function u(e,t){var n,r;return(null===(n=Object.getPrototypeOf(e))||void 0===n?void 0:n.constructor)===(null===(r=Object.getPrototypeOf(t))||void 0===r?void 0:r.constructor)}class a{constructor(e){this.iter=e}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current}"System.Collections.IEnumerator.get_Current"(){return this.current}"System.Collections.IEnumerator.MoveNext"(){const e=this.iter.next();return this.current=e.value,!e.done}"System.Collections.IEnumerator.Reset"(){throw new Error("JS iterators cannot be reset")}Dispose(){}}function l(e){return"function"==typeof e.GetEnumerator?e.GetEnumerator():new a(e[Symbol.iterator]())}function c(e){return{[Symbol.iterator](){return this},next(){const t=e["System.Collections.IEnumerator.MoveNext"]();return{done:!t,value:t?e["System.Collections.IEnumerator.get_Current"]():void 0}}}}class ${constructor(e){this.factory=e,this.isValueCreated=!1}get Value(){return this.isValueCreated||(this.createdValue=this.factory(),this.isValueCreated=!0),this.createdValue}get IsValueCreated(){return this.isValueCreated}}function f(e,t){let n=e.toString(10);for(;n.length<t;)n="0"+n;return n}function d(e){const t=e;return"number"==typeof t.offset?t.offset:1===e.kind?0:-6e4*e.getTimezoneOffset()}function h(e,t){return(e=e<0&&null!=t&&10!==t?4294967295+e+1:e).toString(t)}class m{static id(e){return m.idMap.has(e)||m.idMap.set(e,++m.count),m.idMap.get(e)}}function p(e){let t=0,n=5381;const r=e.length;for(;t<r;)n=33*n^e.charCodeAt(t++);return n}function w(e){return 2654435761*e|0}function g(e){return 0===e.length?0:e.reduce(((e,t)=>(e<<5)+e^t))}function y(e){var t;if(null==e)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return w(e);case"string":return p(e);default:if(o(e))return e.GetHashCode();if(r(e))return function(e){const t=e.length,n=new Array(t);for(let r=0;r<t;r++)n[r]=y(e[r]);return g(n)}(e);if(e instanceof Date)return function(e){return e.getTime()}(e);if((null===(t=Object.getPrototypeOf(e))||void 0===t?void 0:t.constructor)===Object){const t=Object.values(e).map((e=>y(e)));return g(t)}return w(m.id(e))}}function _(e){return null==e?0:o(e)?e.GetHashCode():w(m.id(e))}function v(e,t,n){if(null==e)return null==t;if(null==t)return!1;if(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 b(e,t){return v(e,t,C)}function C(e,t){var n;return e===t||(null==e?null==t:null!=t&&"object"==typeof e&&(function(e){return"function"==typeof e.Equals}(e)?e.Equals(t):r(e)?r(t)&&b(e,t):e instanceof Date?t instanceof Date&&0===S(e,t):(null===(n=Object.getPrototypeOf(e))||void 0===n?void 0:n.constructor)===Object&&function(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]||!C(e[n[o]],t[r[o]]))return!1;return!0}(e,t)))}function S(e,t){let n,r;return"offset"in e&&"offset"in t?(n=e.getTime(),r=t.getTime()):(n=e.getTime()+d(e),r=t.getTime()+d(t)),n===r?0:n<r?-1:1}function x(e,t){return e===t?0:e<t?-1:1}function E(e,t){return function(e,t,n){if(null==e)return null==t?0:1;if(null==t)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]),0!==o)return o;return 0}(e,t,k)}function k(e,t){var n;return e===t?0:null==e?null==t?0:-1:null==t?1:"object"!=typeof e?e<t?-1:1:function(e){return"function"==typeof e.CompareTo}(e)?e.CompareTo(t):r(e)?r(t)?E(e,t):-1:e instanceof Date?t instanceof Date?S(e,t):-1:(null===(n=Object.getPrototypeOf(e))||void 0===n?void 0:n.constructor)===Object?function(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return n.length<r.length?-1:1;n.sort(),r.sort();for(let o=0,i=0;o<n.length;o++){const s=n[o];if(s!==r[o])return s<r[o]?-1:1;if(i=k(e[s],t[s]),0!==i)return i}return 0}(e,t):-1}function N(e,t,n){return e(t,n)>0?t:n}function A(e){const t={};for(const n of e)t[n[0]]=n[1];return t}m.idMap=new WeakMap,m.count=0;const M=Symbol("curried");function T(e,t){if(null==t||t.length>1)return t;const n=(...n)=>{let r=t;for(let t=0;t<e;t++)r=r(n[t]);return r};return n[M]=t,n}function I(e,t,n){return r=>1===t?n(...e.concat([r])):I(e.concat([r]),t-1,n)}function O(e,t,n){if(null!=t){if(M in t){t=t[M];for(let e=0;e<n.length;e++)t=t(n[e]);return t}return I(n,e,t)}}class P{constructor(e){this.value=e}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return y(this.value)}Equals(e){return null!=e&&C(this.value,e instanceof P?e.value:e)}CompareTo(e){return null==e?1:k(this.value,e instanceof P?e.value:e)}}function D(e){return null==e||e instanceof P?new P(e):e}function F(e){if(null==e)throw new Error("Option has no value");return e instanceof P?e.value:e}function R(e){return null==e?void 0:e}function G(e){return null==e?[]:[F(e)]}function U(e,t){return null!=e?F(e):t}function L(e,t){return null!=t?D(e(F(t))):void 0}function B(e,t){return null!=t?e(F(t)):void 0}function H(e,t=0){var n,r;if(null!=e&&"object"==typeof e){if("function"==typeof e.toString)return e.toString();if(Symbol.iterator in e)return function(e){let t=0,n="[";for(const r of e){if(0===t)n+=H(r);else{if(100===t){n+="; ...";break}n+="; "+H(r)}t++}return n+"]"}(e);{const o=null===(n=Object.getPrototypeOf(e))||void 0===n?void 0:n.constructor;return o===Object&&t<10?"{ "+Object.entries(e).map((([e,n])=>e+" = "+H(n,t+1))).join("\n ")+" }":null!==(r=null==o?void 0:o.name)&&void 0!==r?r:""}}return String(e)}class j{get name(){return this.cases()[this.tag]}toJSON(){return 0===this.fields.length?this.name:[this.name].concat(this.fields)}toString(){return function(e,t){if(0===t.length)return e;{let n="",r=!0;return 1===t.length?(n=H(t[0]),r=n.indexOf(" ")>=0):n=t.map((e=>H(e))).join(", "),e+(r?" (":" ")+n+(r?")":"")}}(this.name,this.fields)}GetHashCode(){const e=this.fields.map((e=>y(e)));return e.splice(0,0,w(this.tag)),g(e)}Equals(e){return this===e||!!u(this,e)&&this.tag===e.tag&&b(this.fields,e.fields)}CompareTo(e){return this===e?0:u(this,e)?this.tag===e.tag?E(this.fields,e.fields):this.tag<e.tag?-1:1:-1}}class z{toJSON(){return function(e){const t={},n=Object.keys(e);for(let r=0;r<n.length;r++)t[n[r]]=e[n[r]];return t}(this)}toString(){return function(e){return"{ "+Object.entries(e).map((([e,t])=>e+" = "+H(t))).join("\n ")+" }"}(this)}GetHashCode(){return function(e){const t=Object.values(e).map((e=>y(e)));return g(t)}(this)}Equals(e){return function(e,t){if(e===t)return!0;if(u(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++)if(!C(e[n[r]],t[n[r]]))return!1;return!0}return!1}(this,e)}CompareTo(e){return function(e,t){if(e===t)return 0;if(u(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++){const o=k(e[n[r]],t[n[r]]);if(0!==o)return o}return 0}return-1}(this,e)}}class q{constructor(e,t){"function"==typeof t?(this.getter=e,this.setter=t):(this.getter=()=>e,this.setter=t=>{e=t})}get contents(){return this.getter()}set contents(e){this.setter(e)}}function W(e){return function(e){return e instanceof class{constructor(e){this.message=e}}||e instanceof Error}(e)?e:new Error(String(e))}function V(e){const t=e<0,n=(e=Math.abs(e))%36e5/6e4;return(t?"-":"+")+f(~~(e/36e5),2)+":"+f(n,2)}function Z(e,t){const n=e.toISOString();return"first"===t?n.substring(0,n.indexOf("T")):n.substring(n.indexOf("T")+1,n.length-1)}function Y(e,t,n){return t.replace(/(\w)\1*/g,(t=>{let r=Number.NaN;switch(t.substring(0,1)){case"y":const o=n?e.getUTCFullYear():e.getFullYear();r=t.length<4?o%100:o;break;case"M":r=(n?e.getUTCMonth():e.getMonth())+1;break;case"d":r=n?e.getUTCDate():e.getDate();break;case"H":r=n?e.getUTCHours():e.getHours();break;case"h":const i=n?e.getUTCHours():e.getHours();r=i>12?i%12:i;break;case"m":r=n?e.getUTCMinutes():e.getMinutes();break;case"s":r=n?e.getUTCSeconds():e.getSeconds();break;case"f":r=n?e.getUTCMilliseconds():e.getMilliseconds()}return Number.isNaN(r)?t:r<10&&t.length>1?"0"+r:""+r}))}function J(e,t,n){return null!=e.offset?function(e,t){var n,r,o;const i=new Date(e.getTime()+(null!==(n=e.offset)&&void 0!==n?n:0));if("string"!=typeof t)return i.toISOString().replace(/\.\d+/,"").replace(/[A-Z]|\.\d+/g," ")+V(null!==(r=e.offset)&&void 0!==r?r:0);if(1!==t.length)return Y(i,t,!0);switch(t){case"D":case"d":return Z(i,"first");case"T":case"t":return Z(i,"second");case"O":case"o":return function(e,t){const n=e.toISOString();return n.substring(0,n.length-1)+V(t)}(i,null!==(o=e.offset)&&void 0!==o?o:0);default:throw new Error("Unrecognized Date print format")}}(e,t):function(e,t){const n=1===e.kind;if("string"!=typeof t)return n?e.toUTCString():e.toLocaleString();if(1!==t.length)return Y(e,t,n);switch(t){case"D":case"d":return n?Z(e,"first"):e.toLocaleDateString();case"T":case"t":return n?Z(e,"second"):e.toLocaleTimeString();case"O":case"o":return function(e,t){if(t)return e.toISOString();{const t=null==e.kind||2===e.kind;return f(e.getFullYear(),4)+"-"+f(e.getMonth()+1,2)+"-"+f(e.getDate(),2)+"T"+f(e.getHours(),2)+":"+f(e.getMinutes(),2)+":"+f(e.getSeconds(),2)+"."+f(e.getMilliseconds(),3)+(t?V(-6e4*e.getTimezoneOffset()):"")}}(e,n);default:throw new Error("Unrecognized Date print format")}}(e,t)}function X(e,t){const n=new Date(e);return n.kind=0|(null==t?0:t),n}function K(){return X(-621355968e5,0)}function Q(e){function t(){throw new Error(`The string is not a valid Date: ${e}`)}null!=e&&""!==e.trim()||t(),10===e.length&&"-"===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(null!=o){let e,t=0;if(null!=o[2]){const e=o[2].split(":");t=3600*parseInt(e[0],10)+60*parseInt(e[1]||"0",10)+parseFloat(e[2]||"0"),null!=o[3]&&"PM"===o[3].toUpperCase()&&(t+=720)}if(null!=o[4]){if(null!=o[1])e=new Date(o[1]+" UTC");else{const t=new Date;e=new Date(t.getUTCFullYear()+"/"+(t.getUTCMonth()+1)+"/"+t.getUTCDate())}if("Z"===o[4])r="Z";else{let e=60*parseInt(o[5],10)+parseInt(o[6]||"0",10);"-"===o[4][0]&&(e*=-1),r=e,t-=60*e}}else if(null!=o[1])e=new Date(o[1]);else{const t=new Date;e=new Date(t.getFullYear()+"/"+(t.getMonth()+1)+"/"+t.getDate())}n=new Date(e.getTime()+1e3*t),n=new Date(n.getTime()+6e4*(n.getTimezoneOffset()-e.getTimezoneOffset()))}else t();isNaN(n.getTime())&&t()}return[n,r]}function ee(e,t){try{return t.contents=function(e,t=!1){const[n,r]=Q(e),o=null!=r?t&&"Z"===r?1:2:0;return X(n.getTime(),o)}(e),!0}catch(e){return!1}}function te(e,t,n,r=0,o=0,i=0,s=0,u){const a=1===u?Date.UTC(e,t-1,n,r,o,i,s):new Date(e,t-1,n,r,o,i,s).getTime();if(isNaN(a))throw new Error("The parameters describe an unrepresentable Date.");const l=X(a,u);return e<=99&&l.setFullYear(e,t-1,n),l}function ne(){return oe(X(Date.now(),2))}function re(e){return e%4==0&&e%100!=0||e%400==0}function oe(e){return te(ue(e),se(e),ie(e),0,0,0,0,e.kind)}function ie(e){return 1===e.kind?e.getUTCDate():e.getDate()}function se(e){return(1===e.kind?e.getUTCMonth():e.getMonth())+1}function ue(e){return 1===e.kind?e.getUTCFullYear():e.getFullYear()}const ae=S,le=Symbol("numeric");function ce(e){return"number"==typeof e||(null==e?void 0:e[le])}function $e(e,t){return"number"==typeof e?e*t:e[le]().multiply(t)}function fe(e,t){return"number"==typeof e?e.toFixed(t):e[le]().toFixed(t)}function de(e,t){return"number"==typeof e?e.toPrecision(t):e[le]().toPrecision(t)}function he(e,t){return"number"==typeof e?e.toExponential(t):e[le]().toExponential(t)}function me(e){return"number"==typeof e?(Number(e)>>>0).toString(16):e[le]().toHex()}function pe(e,t=0){if(0!=(-284&t))throw new Error("RegexOptions only supports: IgnoreCase, Multiline, Compiled, Singleline and ECMAScript");let n="gu";return n+=1&t?"i":"",n+=2&t?"m":"",n+=16&t?"s":"",new RegExp(e,n)}function we(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function ge(e,t,n=0){return e.lastIndex=n,e.exec(t)}function ye(e,t,n=0){if(null==t)throw new Error("Input cannot ve null");if(!e.global)throw new Error("Non-global RegExp");e.lastIndex=n;const r=[];let o,i=-1;for(;null!=(o=e.exec(t));)o.index===i?e.lastIndex++:(i=o.index,r.push(o));return r}const _e=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g,ve=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function be(e,t){return function(e,t){return"number"==typeof e?e<t?-1:e>t?1:0:e.CompareTo(t)}(e,t)<0}function Ce(e,t,n){function r(e){return!0===e||1===e||3===e||5===e}return null==e?null==t?0:-1:null==t?1:4===(o=n)||5===o?(r(n)&&(e=e.toLowerCase(),t=t.toLowerCase()),e===t?0:e<t?-1:1):(r(n)&&(e=e.toLocaleLowerCase(),t=t.toLocaleLowerCase()),e.localeCompare(t));var o}function Se(e){return{input:e,cont:(t=e,e=>{_e.lastIndex=0;const n=[],r=[];let o=0,i=_e.exec(t);for(;i;){const e=i.index+(i[1]||"").length;n.push(t.substring(o,e).replace(/%%/g,"%")),r.push(i),o=_e.lastIndex,_e.lastIndex-=1,i=_e.exec(t)}return 0===n.length?e(t.replace(/%%/g,"%")):(n.push(t.substring(o).replace(/%%/g,"%")),Ae(e,n,r))})};var t}function xe(e,t){return"string"==typeof t?e(t):t.cont(e)}function Ee(e){return xe((e=>e),e)}function ke(e){return xe((e=>{throw new Error(e)}),e)}function Ne(e,t,n,r,o){let i="";if(t=t||"",o=o||"",ce(e))switch("x"!==o.toLowerCase()&&(be(e,0)?(e=$e(e,-1),i="-"):t.indexOf(" ")>=0?i=" ":t.indexOf("+")>=0&&(i="+")),r=null==r?null:parseInt(r,10),o){case"f":case"F":e=fe(e,r=null!=r?r:6);break;case"g":case"G":e=null!=r?de(e,r):de(e);break;case"e":case"E":e=null!=r?he(e,r):he(e);break;case"x":e=me(e);break;case"X":e=me(e).toUpperCase();break;default:e=String(e)}else e=e instanceof Date?J(e):H(e);if(n="number"==typeof n?n:parseInt(n,10),isNaN(n))e=i+e;else{const r=t.indexOf("0")>=0,o=t.indexOf("-")>=0,s=o||!r?" ":"0";e="0"===s?i+(e=Oe(e,n-i.length,s,o)):Oe(i+e,n,s,o)}return e}function Ae(e,t,n,r="",o=-1){return(...i)=>{let s=r;const u=t.slice(),a=n.slice();for(const e of i){const[,,t,n,r,i]=a[0];let l=n;if(o>=0)l=o,o=-1;else if("*"===l){if(e<0)throw new Error("Non-negative number required");o=e;continue}s+=u[0],s+=Ne(e,t,l,r,i),u.splice(0,1),a.splice(0,1)}return 0===a.length?(s+=u[0],e(s)):Ae(e,u,a,s,o)}}function Me(e,...t){return"object"==typeof e&&t.length>0&&(e=t[0],t.shift()),e.replace(ve,((e,n,r,o,i,s)=>{if(n<0||n>=t.length)throw new Error("Index must be greater or equal to zero and less than the arguments' length.");let u=t[n];if(ce(u))switch(i=null==i?null:parseInt(i,10),o){case"f":case"F":u=fe(u,i=null!=i?i:2);break;case"g":case"G":u=null!=i?de(u,i):de(u);break;case"e":case"E":u=null!=i?he(u,i):he(u);break;case"p":case"P":i=null!=i?i:2,u=fe($e(u,100),i)+" %";break;case"d":case"D":u=null!=i?Pe(String(u),i,"0"):String(u);break;case"x":case"X":u=null!=i?Pe(me(u),i,"0"):me(u),"X"===o&&(u=u.toUpperCase());break;default:if(s){let e="";u=s.replace(/([0#,]+)(\.[0#]+)?/,((t,n,r)=>{be(u,0)&&(u=$e(u,-1),e="-"),r=null==r?"":r.substring(1),u=fe(u,Math.max(r.length,0));let[o,i]=u.split(".");i||(i=""),o=Pe(o,n.replace(/,/g,"").replace(/^#+/,"").length,"0");const s=r.replace(/#+$/,"").length;if(s>i.length?i=function(e,t,n){return Oe(e,t,"0",!0)}(i,s):s<i.length&&(i=i.substring(0,s)+i.substring(s).replace(/0+$/,"")),n.indexOf(",")>0){const e=o.length%3,t=Math.floor(o.length/3);let n=e>0?o.substr(0,e)+(t>0?",":""):"";for(let r=0;r<t;r++)n+=o.substr(e+3*r,3)+(r<t-1?",":"");o=n}return i.length>0?o+"."+i:o})),u=e+u}}else u=u instanceof Date?J(u,s||o):H(u);return r=parseInt((r||" ").substring(1),10),isNaN(r)||(u=Oe(String(u),Math.abs(r)," ",r<0)),u}))}function Te(e){return"string"!=typeof e||/^\s*$/.test(e)}function Ie(e,t){return Array.isArray(t)?t.join(e):Array.from(t).join(e)}function Oe(e,t,n,r){n=n||" ",t-=e.length;for(let o=0;o<t;o++)e=r?e+n:n+e;return e}function Pe(e,t,n){return Oe(e,t,n)}function De(e,t){return t.split("").filter((t=>e(t))).join("")}function Fe(e,t,n){if(t+(n||0)>e.length)throw new Error("Invalid startIndex and/or length");return null!=n?e.substr(t,n):e.substr(t)}function Re(e,t){return"function"==typeof e?new e(t):new Array(t)}function Ge(e,t,n,r){const o=0|t;return e.fill(r,o,o+n)}function Ue(e,t,n){const r=0|t.length,o=Re(n,r);for(let n=0;n<=r-1;n++)o[n]=e(t[n]);return o}function Le(e,t,n){return n.reduce(e,t)}function Be(e,t,n,r){return function(e,t,n,r){let o=r;t.length!==n.length&&function(){throw new Error("Arrays had different lengths")}();const i=0|t.length;for(let r=1;r<=i;r++)o=e(0,t[i-r],n[i-r],o);return o}(((t,n,r,o)=>e(n,r,o)),t,n,r)}class He extends z{constructor(e,t){super(),this.head=e,this.tail=t}toString(){return"["+Ie("; ",this)+"]"}Equals(e){return this===e||((e,t)=>{e:for(;;){const n=e,r=t,o=[n.tail,r.tail];if(null!=o[0]){if(null!=o[1]){const i=o[0],s=o[1];if(C(n.head,r.head)){e=i,t=s;continue e}return!1}return!1}return null==o[1]}})(this,e)}GetHashCode(){return 0|((e,t,n)=>{for(;;){const r=e,o=t,i=n,s=i.tail;if(null==s)return 0|o;{const u=s;if(r>18)return 0|o;e=r+1,t=(o<<1)+y(i.head)+631*r,n=u}}})(0,0,this)}toJSON(e){return Array.from(this)}CompareTo(e){return 0|((e,t)=>{e:for(;;){const n=e,r=t,o=[n.tail,r.tail];if(null!=o[0]){if(null!=o[1]){const i=o[0],s=o[1],u=0|k(n.head,r.head);if(0===u){e=i,t=s;continue e}return 0|u}return 1}return null!=o[1]?-1:0}})(this,e)}GetEnumerator(){return new je(this)}[Symbol.iterator](){return c(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return l(this)}}class je{constructor(e){this.xs=e,this.it=this.xs,this.current=null}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current}"System.Collections.IEnumerator.get_Current"(){return this.current}"System.Collections.IEnumerator.MoveNext"(){const e=this,t=e.it.tail;if(null!=t){const n=t;return e.current=e.it.head,e.it=n,!0}return!1}"System.Collections.IEnumerator.Reset"(){const e=this;e.it=e.xs,e.current=null}Dispose(){}}function ze(){return new He(null,void 0)}function qe(e,t){return new He(e,t)}function We(e){return null==e.tail}function Ve(e){return 0|((e,t)=>{for(;;){const n=e,r=t.tail;if(null==r)return 0|n;e=n+1,t=r}})(0,e)}function Ze(e){if(null!=e.tail)return e.head;throw new Error("Collection was empty.\\nParameter name: list")}function Ye(e){const t=e.tail;if(null!=t)return t;throw new Error("Collection was empty.\\nParameter name: list")}function Je(){return ze()}function Xe(e,t){return qe(e,t)}function Ke(e){return qe(e,ze())}function Qe(e){return We(e)}function et(e){return Ve(e)}function tt(e){return Ze(e)}function nt(e){return Ye(e)}function rt(e){const t=0|Ve(e),n=Ge(new Array(t),0,t,null);return((e,t)=>{for(;;){const r=e,o=t;if(We(o))break;n[r]=Ze(o),e=r+1,t=Ye(o)}})(0,e),n}function ot(e,t,n){let r=t,o=n;for(;!We(o);)r=e(r,Ze(o)),o=Ye(o);return r}function it(e){return ot(((e,t)=>qe(t,e)),ze(),e)}function st(e,t){let n=t;for(let t=e.length-1;t>=0;t--)n=qe(e[t],n);return n}function ut(e){return st(e,ze())}function at(e){let t,n;if(r(e))return ut(e);if(e instanceof He)return e;{const r=ze();let o=r;const i=l(e);try{for(;i["System.Collections.IEnumerator.MoveNext"]();){const e=i["System.Collections.Generic.IEnumerator`1.get_Current"]();t=o,n=new He(e,void 0),t.tail=n,o=n}}finally{s(i)}const u=o,a=ze();return u.tail=a,Ye(r)}}function lt(e,t){return ot(((e,t)=>qe(t,e)),t,it(e))}function ct(e,t){const n=ze(),r=ot(((t,n)=>{const r=new He(e(n),void 0);return t.tail=r,r}),n,t),o=ze();return r.tail=o,Ye(n)}function $t(e,t){return(t=>{e:for(;;){const n=t;if(We(n))return;{const r=e(Ze(n));if(null==r){t=Ye(n);continue e}return r}}})(t)}function ft(e,t){return((t,n)=>{for(;;){const r=t,o=n;if(We(o))return;if(e(Ze(o)))return r;t=r+1,n=Ye(o)}})(0,t)}function dt(e,t){return null!=ft(e,t)}class ht{constructor(e=!1){this._id=0,this._cancelled=e,this._listeners=new Map}get isCancelled(){return this._cancelled}cancel(){if(!this._cancelled){this._cancelled=!0;for(const[,e]of this._listeners)e()}}addListener(e){const t=this._id;return this._listeners.set(this._id++,e),t}removeListener(e){return this._listeners.delete(e)}register(e,t){const n=this,r=this.addListener(null==t?e:()=>e(t));return{Dispose(){n.removeListener(r)}}}Dispose(){}}class mt extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,mt.prototype)}}class pt{constructor(){this.callCount=0}static get maxTrampolineCallCount(){return 2e3}incrementAndCheck(){return this.callCount++>pt.maxTrampolineCallCount}hijack(e){this.callCount=0,setTimeout(e,0)}}function wt(e){return t=>{if(t.cancelToken.isCancelled)t.onCancel(new mt);else if(t.trampoline.incrementAndCheck())t.trampoline.hijack((()=>{try{e(t)}catch(e){t.onError(W(e))}}));else try{e(t)}catch(e){t.onError(W(e))}}}const gt=new class{Bind(e,t){return function(e,t){return wt((n=>{e({onSuccess:e=>{try{t(e)(n)}catch(e){n.onError(W(e))}},onError:n.onError,onCancel:n.onCancel,cancelToken:n.cancelToken,trampoline:n.trampoline})}))}(e,t)}Combine(e,t){return this.Bind(e,(()=>t))}Delay(e){return wt((t=>e()(t)))}For(e,t){const n=e[Symbol.iterator]();let r=n.next();return this.While((()=>!r.done),this.Delay((()=>{const e=t(r.value);return r=n.next(),e})))}Return(e){return function(e){return wt((t=>t.onSuccess(e)))}(e)}ReturnFrom(e){return e}TryFinally(e,t){return wt((n=>{e({onSuccess:e=>{t(),n.onSuccess(e)},onError:e=>{t(),n.onError(e)},onCancel:e=>{t(),n.onCancel(e)},cancelToken:n.cancelToken,trampoline:n.trampoline})}))}TryWith(e,t){return wt((n=>{e({onSuccess:n.onSuccess,onCancel:n.onCancel,cancelToken:n.cancelToken,trampoline:n.trampoline,onError:e=>{try{t(e)(n)}catch(e){n.onError(W(e))}}})}))}Using(e,t){return this.TryFinally(t(e),(()=>e.Dispose()))}While(e,t){return e()?this.Bind(t,(()=>this.While(e,t))):this.Return(void 0)}Zero(){return wt((e=>e.onSuccess(void 0)))}};class yt extends j{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Ok","Error"]}}function _t(e,t){return 0===t.tag?new yt(0,e(t.fields[0])):new yt(1,t.fields[0])}function vt(e,t){return 0===t.tag?new yt(0,t.fields[0]):new yt(1,e(t.fields[0]))}function bt(e,t){return 0===t.tag?e(t.fields[0]):new yt(1,t.fields[0])}class Ct extends j{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Choice1Of2","Choice2Of2"]}}function St(e){}function xt(e){const t=new ht("boolean"==typeof e&&e);return"number"==typeof e&&setTimeout((()=>{t.cancel()}),e),t}function Et(e){e.cancel()}const kt=new ht;function Nt(e,t){return function(e,t){return function(e,t,n,r,o){"function"!=typeof t&&(o=t,t=void 0);const i=new pt;e({onSuccess:t||St,onError:n||St,onCancel:r||St,cancelToken:o||kt,trampoline:i})}(e,t)}(e,t)}const At=class{constructor(){this.delegates=[]}Add(e){this._addHandler(e)}get Publish(){return this}Trigger(e,t){let n,r;void 0===t?(n=null,r=e):(n=e,r=t),this.delegates.forEach((e=>1===e.length?e(r):e(n,r)))}AddHandler(e){this._addHandler(e)}RemoveHandler(e){this._removeHandler(e)}Subscribe(e){const t="function"==typeof e?e:e.OnNext;return this._addHandler(t),{Dispose:()=>{this._removeHandler(t)}}}_addHandler(e){this.delegates.push(e)}_removeHandler(e){const t=this.delegates.indexOf(e);t>-1&&this.delegates.splice(t,1)}};class Mt{constructor(e,t,n){this.OnNext=e,this.OnError=t||(e=>{}),this.OnCompleted=n||(()=>{})}}function Tt(e,t){let n,r=new class{constructor(e){this._enabled=!1,this._isDisposed=!1,this._intervalId=0,this._timeoutId=0,this.Interval=e&&e>0?e:100,this.AutoReset=!0,this._elapsed=new At}Elapsed(){return this._elapsed}get Enabled(){return this._enabled}set Enabled(e){this._isDisposed||this._enabled===e||(this._enabled=e,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}}(e);r.AutoReset=!1,n=r,function(e,t){t.Subscribe(new Mt(e))}(t,n.Elapsed()),n.Enabled=!0,n.Start()}function It(e,t){var n;n=t=>{t(e)},ot(((e,t)=>{n(t)}),void 0,t)}function Ot(){return Je()}function Pt(e){return Ke((t=>{t(e)}))}function Dt(e,t,n,r,o){return Ke((i=>{e(gt.Delay((()=>{return gt.Bind((e=t(n),wt((t=>{e({onSuccess:e=>t.onSuccess(function(e){return new Ct(0,e)}(e)),onError:e=>t.onSuccess(function(e){return new Ct(1,e)}(e)),onCancel:t.onCancel,cancelToken:t.cancelToken,trampoline:t.trampoline})}))),(e=>{const t=e;return i(1===t.tag?o(t.fields[0]):r(t.fields[0])),gt.Zero()}));var e})))}))}function Ft(e){Tt(0,(t=>{Nt(e)}))}function Rt(){return e=k,{Compare:(t,n)=>e(t,n)};var e}const Gt="The input sequence has an insufficient number of elements.";function Ut(){throw new Error("Enumeration has not started. Call MoveNext.")}function Lt(){throw new Error("Enumeration already finished.")}class Bt{constructor(e){this.f=e}toString(){let e=0,t="seq [";const n=l(this);try{for(;e<4&&n["System.Collections.IEnumerator.MoveNext"]();)e>0&&(t+="; "),t+=H(n["System.Collections.Generic.IEnumerator`1.get_Current"]()),e=e+1|0;return 4===e&&(t+="; ..."),t+"]"}finally{s(n)}}GetEnumerator(){return this.f()}[Symbol.iterator](){return c(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}class Ht{constructor(e,t,n){this.current=e,this.next=t,this.dispose=n}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current()}"System.Collections.IEnumerator.get_Current"(){return this.current()}"System.Collections.IEnumerator.MoveNext"(){return this.next()}"System.Collections.IEnumerator.Reset"(){!function(){throw new Error("Reset is not supported on this enumerator.")}()}Dispose(){this.dispose()}}function jt(e,t,n){return new Ht(e,t,n)}function zt(e,t,n){let r,o=!1,i=D(e());const s=()=>{if(null!=i){const e=F(i);try{n(e)}finally{i=void 0}}},u=()=>{try{s()}finally{r=void 0}};return jt((()=>(o||Ut(),null!=r?F(r):Lt())),(()=>{if(o||(o=!0),null!=i){const e=F(i);let n;try{n=t(e)}catch(e){throw u(),e}return null!=n?(r=n,!0):(u(),!1)}return!1}),s)}function qt(e){return function(e){return new Bt(e)}(e)}function Wt(e){return t="source",null==e&&function(e){throw new Error(e)}(t),l(e);var t}function Vt(e){return qt((()=>l(e())))}function Zt(e){return qt((()=>function(e){let t,n,r,o=!1,i=!1;const u=()=>{if(i=!0,null!=n){const e=n;try{s(e)}finally{n=void 0}}if(null!=t){const e=t;try{s(e)}finally{t=void 0}}};return jt((()=>(o?i&&Lt():Ut(),null!=r?F(r):Lt())),(()=>{let a;if(o||(o=!0),i)return!1;{let o;for(;null==o;){const i=[t,n];if(null!=i[0])if(null!=i[1]){const e=i[1];if(e["System.Collections.IEnumerator.MoveNext"]())r=D(e["System.Collections.Generic.IEnumerator`1.get_Current"]()),o=!0;else try{s(e)}finally{n=void 0}}else{const e=i[0];e["System.Collections.IEnumerator.MoveNext"]()?(a=e["System.Collections.Generic.IEnumerator`1.get_Current"](),n=l(a)):(u(),o=!1)}else t=l(e)}return F(o)}}),(()=>{i||u()}))}(e)))}function Yt(){return Vt((()=>new Array(0)))}function Jt(e){return Vt((()=>function(e,t){const n=Re(void 0,1);return n[0]=e,n}(e)))}function Xt(e){return r(e)?ut(e):e instanceof He?e:at(e)}function Kt(e,t,n){return qt((()=>zt(e,t,n)))}function Qt(e,t,n){return qt((()=>{let r=-1;return zt(e,(e=>(r=r+1|0,t(r,e))),n)}))}function en(e,t){return Zt([e,t])}function tn(e,t,n){const r=Wt(t);try{let t=!1;for(;!t&&r["System.Collections.IEnumerator.MoveNext"]();)t=n.Equals(e,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return t}finally{s(r)}}function nn(e,t,n){const r=Wt(n);try{let n=t;for(;r["System.Collections.IEnumerator.MoveNext"]();)n=e(n,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return n}finally{s(r)}}function rn(e,t){nn(((t,n)=>{e(n)}),void 0,t)}function on(e,t){return Kt((()=>Wt(t)),(t=>t["System.Collections.IEnumerator.MoveNext"]()?D(e(t["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0),(e=>{s(e)}))}function sn(e,t){return qt((()=>{const n=Wt(t);try{for(let t=1;t<=e;t++)if(!n["System.Collections.IEnumerator.MoveNext"]())throw new Error(Gt+"\\nParameter name: source");return function(e,t){return jt((()=>t["System.Collections.Generic.IEnumerator`1.get_Current"]()),(()=>t["System.Collections.IEnumerator.MoveNext"]()),(()=>{try{s(t)}finally{e()}}))}((()=>{}),n)}catch(e){throw s(n),e}}))}function un(e,t){return Vt((()=>Zt(on(e,t))))}function an(e,t,n,r,o){const i=function(e,t,n,r){const o=0|k(e,n);if(0===o)throw new Error("The step of a range cannot be zero");const i=o>0;return n=>{const o=0|k(n,t);return i&&o<=0||!i&&o>=0?[n,r(n,e)]:void 0}}(t,n,r,o);return Vt((()=>{return t=i,n=e,qt((()=>function(e,t){let n,r=t;return jt((()=>{if(null!=n){const e=n[0];return n[1],e}return Ut()}),(()=>{if(n=e(r),null!=n){n[0];const e=n[1];return r=e,!0}return!1}),(()=>{}))}(t,n)));var t,n}))}Symbol.iterator;class ln extends j{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Writable","ReadWritable"]}}class cn{constructor(e){this.state=new ln(0,Ge(new Array(N(x,e,10)),0,N(x,e,10),null),0)}}function $n(e){const t=e.state;if(1===t.tag){const n=0|t.fields[1],r=0|t.fields[2],o=t.fields[0],i=(r+1)%o.length|0;return e.state=i===n?new ln(0,o,n):new ln(1,o,n,i),D(o[r])}}class fn extends z{constructor(e,t,n,r,o,i,s){super(),this.init=e,this.update=t,this.subscribe=n,this.view=r,this.setState=o,this.onError=i,this.syncDispatch=s}}function dn(e,t){const n=t.init(e),r=n[0],o=new cn(10);let i=!1,u=r;const a=O(1,t.syncDispatch,[e=>{if(i)!function(e,t){const n=e.state;if(1===n.tag){const i=0|n.fields[1],u=0|n.fields[2],a=n.fields[0];a[i]=t;const l=(i+1)%a.length|0;e.state=l===u?new ln(1,(r=u,o=a,Array.from(Vt((()=>en(sn(r,o),Vt((()=>{return en((e=r,t=o,Qt((()=>Wt(t)),((t,n)=>{if(t<e){if(n["System.Collections.IEnumerator.MoveNext"]())return D(n["System.Collections.Generic.IEnumerator`1.get_Current"]());throw new Error(Gt+"\\nParameter name: source")}}),(e=>{s(e)}))),Vt((()=>un((e=>Jt(null)),an(0,1,o.length,0,((e,t)=>e+t))))));var e,t}))))))),a.length,0):new ln(1,a,l,u)}else{const r=0|n.fields[1],o=n.fields[0];o[r]=t;const i=(r+1)%o.length|0;e.state=new ln(1,o,i,r)}var r,o}(o,e);else{i=!0;let n=D(e);for(;null!=n;){const e=F(n);try{const n=t.update(e,u),r=n[0];t.setState(r,a),It(a,n[1]),u=r}catch(n){t.onError([Ee(Se("Unable to process the message: %A"))(e),n])}n=$n(o)}i=!1}}]);t.setState(r,a),It(a,lt((()=>{try{return t.subscribe(r)}catch(e){return t.onError(["Unable to subscribe:",e]),Ot()}})(),n[1]))}var hn,mn,pn,wn,gn,yn,_n,vn={},bn=[],Cn=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function Sn(e,t){for(var n in t)e[n]=t[n];return e}function xn(e){var t=e.parentNode;t&&t.removeChild(e)}function En(e,t,n){var r,o,i,s={};for(i in t)"key"==i?r=t[i]:"ref"==i?o=t[i]:s[i]=t[i];if(arguments.length>2&&(s.children=arguments.length>3?hn.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(i in e.defaultProps)void 0===s[i]&&(s[i]=e.defaultProps[i]);return kn(e,s,r,o,null)}function kn(e,t,n,r,o){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==o?++pn:o};return null!=mn.vnode&&mn.vnode(i),i}function Nn(e){return e.children}function An(e,t){this.props=e,this.context=t}function Mn(e,t){if(null==t)return e.__?Mn(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?Mn(e):null}function Tn(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return Tn(e)}}function In(e){(!e.__d&&(e.__d=!0)&&wn.push(e)&&!On.__r++||yn!==mn.debounceRendering)&&((yn=mn.debounceRendering)||gn)(On)}function On(){for(var e;On.__r=wn.length;)e=wn.sort((function(e,t){return e.__v.__b-t.__v.__b})),wn=[],e.some((function(e){var t,n,r,o,i,s;e.__d&&(i=(o=(t=e).__v).__e,(s=t.__P)&&(n=[],(r=Sn({},o)).__v=o.__v+1,Hn(s,o,r,t.__n,void 0!==s.ownerSVGElement,null!=o.__h?[i]:null,n,null==i?Mn(o):i,o.__h),jn(n,o),o.__e!=i&&Tn(o)))}))}function Pn(e,t,n,r,o,i,s,u,a,l){var c,$,f,d,h,m,p,w=r&&r.__k||bn,g=w.length;for(n.__k=[],c=0;c<t.length;c++)if(null!=(d=n.__k[c]=null==(d=t[c])||"boolean"==typeof d?null:"string"==typeof d||"number"==typeof d||"bigint"==typeof d?kn(null,d,null,null,d):Array.isArray(d)?kn(Nn,{children:d},null,null,null):d.__b>0?kn(d.type,d.props,d.key,null,d.__v):d)){if(d.__=n,d.__b=n.__b+1,null===(f=w[c])||f&&d.key==f.key&&d.type===f.type)w[c]=void 0;else for($=0;$<g;$++){if((f=w[$])&&d.key==f.key&&d.type===f.type){w[$]=void 0;break}f=null}Hn(e,d,f=f||vn,o,i,s,u,a,l),h=d.__e,($=d.ref)&&f.ref!=$&&(p||(p=[]),f.ref&&p.push(f.ref,null,d),p.push($,d.__c||h,d)),null!=h?(null==m&&(m=h),"function"==typeof d.type&&null!=d.__k&&d.__k===f.__k?d.__d=a=Dn(d,a,e):a=Rn(e,d,f,w,h,a),l||"option"!==n.type?"function"==typeof n.type&&(n.__d=a):e.value=""):a&&f.__e==a&&a.parentNode!=e&&(a=Mn(f))}for(n.__e=m,c=g;c--;)null!=w[c]&&("function"==typeof n.type&&null!=w[c].__e&&w[c].__e==n.__d&&(n.__d=Mn(r,c+1)),Wn(w[c],w[c]));if(p)for(c=0;c<p.length;c++)qn(p[c],p[++c],p[++c])}function Dn(e,t,n){var r,o;for(r=0;r<e.__k.length;r++)(o=e.__k[r])&&(o.__=e,t="function"==typeof o.type?Dn(o,t,n):Rn(n,o,o,e.__k,o.__e,t));return t}function Fn(e,t){return t=t||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some((function(e){Fn(e,t)})):t.push(e)),t}function Rn(e,t,n,r,o,i){var s,u,a;if(void 0!==t.__d)s=t.__d,t.__d=void 0;else if(null==n||o!=i||null==o.parentNode)e:if(null==i||i.parentNode!==e)e.appendChild(o),s=null;else{for(u=i,a=0;(u=u.nextSibling)&&a<r.length;a+=2)if(u==o)break e;e.insertBefore(o,i),s=i}return void 0!==s?s:o.nextSibling}function Gn(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||Cn.test(t)?n:n+"px"}function Un(e,t,n,r,o){var i;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||Gn(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||Gn(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r||e.addEventListener(t,i?Bn:Ln,i):e.removeEventListener(t,i?Bn:Ln,i);else if("dangerouslySetInnerHTML"!==t){if(o)t=t.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null!=n&&(!1!==n||"a"===t[0]&&"r"===t[1])?e.setAttribute(t,n):e.removeAttribute(t))}}function Ln(e){this.l[e.type+!1](mn.event?mn.event(e):e)}function Bn(e){this.l[e.type+!0](mn.event?mn.event(e):e)}function Hn(e,t,n,r,o,i,s,u,a){var l,c,$,f,d,h,m,p,w,g,y,_=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(a=n.__h,u=t.__e=n.__e,t.__h=null,i=[u]),(l=mn.__b)&&l(t);try{e:if("function"==typeof _){if(p=t.props,w=(l=_.contextType)&&r[l.__c],g=l?w?w.props.value:l.__:r,n.__c?m=(c=t.__c=n.__c).__=c.__E:("prototype"in _&&_.prototype.render?t.__c=c=new _(p,g):(t.__c=c=new An(p,g),c.constructor=_,c.render=Vn),w&&w.sub(c),c.props=p,c.state||(c.state={}),c.context=g,c.__n=r,$=c.__d=!0,c.__h=[]),null==c.__s&&(c.__s=c.state),null!=_.getDerivedStateFromProps&&(c.__s==c.state&&(c.__s=Sn({},c.__s)),Sn(c.__s,_.getDerivedStateFromProps(p,c.__s))),f=c.props,d=c.state,$)null==_.getDerivedStateFromProps&&null!=c.componentWillMount&&c.componentWillMount(),null!=c.componentDidMount&&c.__h.push(c.componentDidMount);else{if(null==_.getDerivedStateFromProps&&p!==f&&null!=c.componentWillReceiveProps&&c.componentWillReceiveProps(p,g),!c.__e&&null!=c.shouldComponentUpdate&&!1===c.shouldComponentUpdate(p,c.__s,g)||t.__v===n.__v){c.props=p,c.state=c.__s,t.__v!==n.__v&&(c.__d=!1),c.__v=t,t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),c.__h.length&&s.push(c);break e}null!=c.componentWillUpdate&&c.componentWillUpdate(p,c.__s,g),null!=c.componentDidUpdate&&c.__h.push((function(){c.componentDidUpdate(f,d,h)}))}c.context=g,c.props=p,c.state=c.__s,(l=mn.__r)&&l(t),c.__d=!1,c.__v=t,c.__P=e,l=c.render(c.props,c.state,c.context),c.state=c.__s,null!=c.getChildContext&&(r=Sn(Sn({},r),c.getChildContext())),$||null==c.getSnapshotBeforeUpdate||(h=c.getSnapshotBeforeUpdate(f,d)),y=null!=l&&l.type===Nn&&null==l.key?l.props.children:l,Pn(e,Array.isArray(y)?y:[y],t,n,r,o,i,s,u,a),c.base=t.__e,t.__h=null,c.__h.length&&s.push(c),m&&(c.__E=c.__=null),c.__e=!1}else null==i&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=zn(n.__e,t,n,r,o,i,s,a);(l=mn.diffed)&&l(t)}catch(e){t.__v=null,(a||null!=i)&&(t.__e=u,t.__h=!!a,i[i.indexOf(u)]=null),mn.__e(e,t,n)}}function jn(e,t){mn.__c&&mn.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){mn.__e(e,t.__v)}}))}function zn(e,t,n,r,o,i,s,u){var a,l,c,$=n.props,f=t.props,d=t.type,h=0;if("svg"===d&&(o=!0),null!=i)for(;h<i.length;h++)if((a=i[h])&&(a===e||(d?a.localName==d:3==a.nodeType))){e=a,i[h]=null;break}if(null==e){if(null===d)return document.createTextNode(f);e=o?document.createElementNS("http://www.w3.org/2000/svg",d):document.createElement(d,f.is&&f),i=null,u=!1}if(null===d)$===f||u&&e.data===f||(e.data=f);else{if(i=i&&hn.call(e.childNodes),l=($=n.props||vn).dangerouslySetInnerHTML,c=f.dangerouslySetInnerHTML,!u){if(null!=i)for($={},h=0;h<e.attributes.length;h++)$[e.attributes[h].name]=e.attributes[h].value;(c||l)&&(c&&(l&&c.__html==l.__html||c.__html===e.innerHTML)||(e.innerHTML=c&&c.__html||""))}if(function(e,t,n,r,o){var i;for(i in n)"children"===i||"key"===i||i in t||Un(e,i,null,n[i],r);for(i in t)o&&"function"!=typeof t[i]||"children"===i||"key"===i||"value"===i||"checked"===i||n[i]===t[i]||Un(e,i,t[i],n[i],r)}(e,f,$,o,u),c)t.__k=[];else if(h=t.props.children,Pn(e,Array.isArray(h)?h:[h],t,n,r,o&&"foreignObject"!==d,i,s,i?i[0]:n.__k&&Mn(n,0),u),null!=i)for(h=i.length;h--;)null!=i[h]&&xn(i[h]);u||("value"in f&&void 0!==(h=f.value)&&(h!==e.value||"progress"===d&&!h)&&Un(e,"value",h,$.value,!1),"checked"in f&&void 0!==(h=f.checked)&&h!==e.checked&&Un(e,"checked",h,$.checked,!1))}return e}function qn(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){mn.__e(e,n)}}function Wn(e,t,n){var r,o;if(mn.unmount&&mn.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||qn(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){mn.__e(e,t)}r.base=r.__P=null}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&Wn(r[o],t,"function"!=typeof e.type);n||null==e.__e||xn(e.__e),e.__e=e.__d=void 0}function Vn(e,t,n){return this.constructor(e,n)}function Zn(e,t,n){var r,o,i;mn.__&&mn.__(e,t),o=(r="function"==typeof n)?null:n&&n.__k||t.__k,i=[],Hn(t,e=(!r&&n||t).__k=En(Nn,null,[e]),o||vn,vn,void 0!==t.ownerSVGElement,!r&&n?[n]:o?null:t.firstChild?hn.call(t.childNodes):null,i,!r&&n?n:o?o.__e:t.firstChild,r),jn(i,e)}function Yn(e,t){Zn(e,t,Yn)}function Jn(e,t,n){var r,o,i,s=Sn({},e.props);for(i in t)"key"==i?r=t[i]:"ref"==i?o=t[i]:s[i]=t[i];return arguments.length>2&&(s.children=arguments.length>3?hn.call(arguments,2):n),kn(e.type,s,r||e.key,o||e.ref,null)}hn=bn.slice,mn={__e:function(e,t){for(var n,r,o;t=t.__;)if((n=t.__c)&&!n.__)try{if((r=n.constructor)&&null!=r.getDerivedStateFromError&&(n.setState(r.getDerivedStateFromError(e)),o=n.__d),null!=n.componentDidCatch&&(n.componentDidCatch(e),o=n.__d),o)return n.__E=n}catch(t){e=t}throw e}},pn=0,An.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=Sn({},this.state),"function"==typeof e&&(e=e(Sn({},n),this.props)),e&&Sn(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),In(this))},An.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),In(this))},An.prototype.render=Nn,wn=[],gn="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,On.__r=0,_n=0;var Xn,Kn,Qn,er=0,tr=[],nr=mn.__b,rr=mn.__r,or=mn.diffed,ir=mn.__c,sr=mn.unmount;function ur(e,t){mn.__h&&mn.__h(Kn,e,er||t),er=0;var n=Kn.__H||(Kn.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function ar(e){return er=1,lr(yr,e)}function lr(e,t,n){var r=ur(Xn++,2);return r.t=e,r.__c||(r.__=[n?n(t):yr(void 0,t),function(e){var t=r.t(r.__[0],e);r.__[0]!==t&&(r.__=[t,r.__[1]],r.__c.setState({}))}],r.__c=Kn),r.__}function cr(e,t){var n=ur(Xn++,3);!mn.__s&&gr(n.__H,t)&&(n.__=e,n.__H=t,Kn.__H.__h.push(n))}function $r(e,t){var n=ur(Xn++,4);!mn.__s&&gr(n.__H,t)&&(n.__=e,n.__H=t,Kn.__h.push(n))}function fr(e){return er=5,dr((function(){return{current:e}}),[])}function dr(e,t){var n=ur(Xn++,7);return gr(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function hr(){tr.forEach((function(e){if(e.__P)try{e.__H.__h.forEach(pr),e.__H.__h.forEach(wr),e.__H.__h=[]}catch(t){e.__H.__h=[],mn.__e(t,e.__v)}})),tr=[]}mn.__b=function(e){Kn=null,nr&&nr(e)},mn.__r=function(e){rr&&rr(e),Xn=0;var t=(Kn=e.__c).__H;t&&(t.__h.forEach(pr),t.__h.forEach(wr),t.__h=[])},mn.diffed=function(e){or&&or(e);var t=e.__c;t&&t.__H&&t.__H.__h.length&&(1!==tr.push(t)&&Qn===mn.requestAnimationFrame||((Qn=mn.requestAnimationFrame)||function(e){var t,n=function(){clearTimeout(r),mr&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);mr&&(t=requestAnimationFrame(n))})(hr)),Kn=void 0},mn.__c=function(e,t){t.some((function(e){try{e.__h.forEach(pr),e.__h=e.__h.filter((function(e){return!e.__||wr(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],mn.__e(n,e.__v)}})),ir&&ir(e,t)},mn.unmount=function(e){sr&&sr(e);var t=e.__c;if(t&&t.__H)try{t.__H.__.forEach(pr)}catch(e){mn.__e(e,t.__v)}};var mr="function"==typeof requestAnimationFrame;function pr(e){var t=Kn;"function"==typeof e.__c&&e.__c(),Kn=t}function wr(e){var t=Kn;e.__c=e.__(),Kn=t}function gr(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function yr(e,t){return"function"==typeof t?t(e):t}function _r(e,t){for(var n in t)e[n]=t[n];return e}function vr(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function br(e){this.props=e}(br.prototype=new An).isPureReactComponent=!0,br.prototype.shouldComponentUpdate=function(e,t){return vr(this.props,e)||vr(this.state,t)};var Cr=mn.__b;mn.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Cr&&Cr(e)};var Sr="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911,xr=function(e,t){return null==e?null:Fn(Fn(e).map(t))},Er={map:xr,forEach:xr,count:function(e){return e?Fn(e).length:0},only:function(e){var t=Fn(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:Fn},kr=mn.__e;mn.__e=function(e,t,n){if(e.then)for(var r,o=t;o=o.__;)if((r=o.__c)&&r.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),r.__c(e,t);kr(e,t,n)};var Nr=mn.unmount;function Ar(){this.__u=0,this.t=null,this.__b=null}function Mr(e){var t=e.__.__c;return t&&t.__e&&t.__e(e)}function Tr(){this.u=null,this.o=null}mn.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&!0===e.__h&&(e.type=null),Nr&&Nr(e)},(Ar.prototype=new An).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var o=Mr(r.__v),i=!1,s=function(){i||(i=!0,n.__R=null,o?o(u):u())};n.__R=s;var u=function(){if(!--r.__u){if(r.state.__e){var e=r.state.__e;r.__v.__k[0]=function e(t,n,r){return t&&(t.__v=null,t.__k=t.__k&&t.__k.map((function(t){return e(t,n,r)})),t.__c&&t.__c.__P===n&&(t.__e&&r.insertBefore(t.__e,t.__d),t.__c.__e=!0,t.__c.__P=r)),t}(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__e:r.__b=null});t=r.t.pop();)t.forceUpdate()}},a=!0===t.__h;r.__u++||a||r.setState({__e:r.__b=r.__v.__k[0]}),e.then(s,s)},Ar.prototype.componentWillUnmount=function(){this.t=[]},Ar.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]=function e(t,n,r){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),t.__c.__H=null),null!=(t=_r({},t)).__c&&(t.__c.__P===r&&(t.__c.__P=n),t.__c=null),t.__k=t.__k&&t.__k.map((function(t){return e(t,n,r)}))),t}(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__e&&En(Nn,null,e.fallback);return o&&(o.__h=null),[En(Nn,null,t.__e?null:e.children),o]};var Ir=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!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 Or(e){return this.getChildContext=function(){return e.context},e.children}function Pr(e){var t=this,n=e.i;t.componentWillUnmount=function(){Zn(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),e.__v?(t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(e){this.childNodes.push(e),t.i.appendChild(e)},insertBefore:function(e,n){this.childNodes.push(e),t.i.appendChild(e)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.i.removeChild(e)}}),Zn(En(Or,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}(Tr.prototype=new An).__e=function(e){var t=this,n=Mr(t.__v),r=t.o.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),Ir(t,e,r)):o()};n?n(i):i()}},Tr.prototype.render=function(e){this.u=null,this.o=new Map;var t=Fn(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},Tr.prototype.componentDidUpdate=Tr.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){Ir(e,n,t)}))};var Dr="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,Fr=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Rr=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(e)};An.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(An.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var Gr=mn.event;function Ur(){}function Lr(){return this.cancelBubble}function Br(){return this.defaultPrevented}mn.event=function(e){return Gr&&(e=Gr(e)),e.persist=Ur,e.isPropagationStopped=Lr,e.isDefaultPrevented=Br,e.nativeEvent=e};var Hr,jr={configurable:!0,get:function(){return this.class}},zr=mn.vnode;mn.vnode=function(e){var t=e.type,n=e.props,r=n;if("string"==typeof t){for(var o in r={},n){var i=n[o];"value"===o&&"defaultValue"in n&&null==i||("defaultValue"===o&&"value"in n&&null==n.value?o="value":"download"===o&&!0===i?i="":/ondoubleclick/i.test(o)?o="ondblclick":/^onchange(textarea|input)/i.test(o+t)&&!Rr(n.type)?o="oninput":/^on(Ani|Tra|Tou|BeforeInp)/.test(o)?o=o.toLowerCase():Fr.test(o)?o=o.replace(/[A-Z0-9]/,"-$&").toLowerCase():null===i&&(i=void 0),r[o]=i)}"select"==t&&r.multiple&&Array.isArray(r.value)&&(r.value=Fn(n.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==t&&null!=r.defaultValue&&(r.value=Fn(n.children).forEach((function(e){e.props.selected=r.multiple?-1!=r.defaultValue.indexOf(e.props.value):r.defaultValue==e.props.value}))),e.props=r}t&&n.class!=n.className&&(jr.enumerable="className"in n,null!=n.className&&(r.class=n.className),Object.defineProperty(r,"className",jr)),e.$$typeof=Dr,zr&&zr(e)};var qr=mn.__r;mn.__r=function(e){qr&&qr(e),Hr=e.__c};var Wr={ReactCurrentDispatcher:{current:{readContext:function(e){return Hr.__n[e.__c].props.value}}}};function Vr(e){return!!e&&e.$$typeof===Dr}const Zr={useState:ar,useReducer:lr,useEffect:cr,useLayoutEffect:$r,useRef:fr,useImperativeHandle:function(e,t,n){er=6,$r((function(){"function"==typeof e?e(t()):e&&(e.current=t())}),null==n?n:n.concat(e))},useMemo:dr,useCallback:function(e,t){return er=8,dr((function(){return e}),t)},useContext:function(e){var t=Kn.context[e.__c],n=ur(Xn++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(Kn)),t.props.value):e.__},useDebugValue:function(e,t){mn.useDebugValue&&mn.useDebugValue(t?t(e):e)},version:"17.0.2",Children:Er,render:function(e,t,n){return null==t.__k&&(t.textContent=""),Zn(e,t),"function"==typeof n&&n(),e?e.__c:null},hydrate:function(e,t,n){return Yn(e,t),"function"==typeof n&&n(),e?e.__c:null},unmountComponentAtNode:function(e){return!!e.__k&&(Zn(null,e),!0)},createPortal:function(e,t){return En(Pr,{__v:e,i:t})},createElement:En,createContext:function(e,t){var n={__c:t="__cC"+_n++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some(In)},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n},createFactory:function(e){return En.bind(null,e)},cloneElement:function(e){return Vr(e)?Jn.apply(null,arguments):e},createRef:function(){return{current:null}},Fragment:Nn,isValidElement:Vr,findDOMNode:function(e){return e&&(e.base||1===e.nodeType&&e)||null},Component:An,PureComponent:br,memo:function(e,t){function n(e){var n=this.props.ref,r=n==e.ref;return!r&&n&&(n.call?n(null):n.current=null),t?!t(this.props,e)||!r:vr(this.props,e)}function r(t){return this.shouldComponentUpdate=n,En(e,t)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r},forwardRef:function(e){function t(t,n){var r=_r({},t);return delete r.ref,e(r,(n=t.ref||n)&&("object"!=typeof n||"current"in n)?n:null)}return t.$$typeof=Sr,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t},flushSync:function(e,t){return e(t)},unstable_batchedUpdates:function(e,t){return e(t)},StrictMode:Nn,Suspense:Ar,SuspenseList:Tr,lazy:function(e){var t,n,r;function o(o){if(t||(t=e()).then((function(e){n=e.default||e}),(function(e){r=e})),r)throw r;if(!n)throw t;return En(n,o)}return o.displayName="Lazy",o.__f=!0,o},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Wr},Yr=Zr,Jr=(e,t)=>{cr((()=>{const t=e();return()=>{t.Dispose()}}),t)};function Xr(e){return{Dispose(){e()}}}function Kr(e){return Yr.useState(e)}function Qr(e,t){Jr(e,t)}function eo(e){!function(e,t){Jr((t=>(e(),Xr((()=>{})))),[])}(e)}function to(e){return Yr.useRef(e)}function no(e){const t=to(e),n=function(e,n){const r=U([],[]);return Yr.useCallback((e=>t.current(e)),r)}();var r,o;return r=()=>{t.current=e},o=e=>(r(),Xr((()=>{}))),$r((()=>{const e=o();return()=>{e.Dispose()}})),n}class ro{constructor(){this.hasDisposedOnce=!1,this.state=void 0,this.listener=void 0,this.dispatcher=void 0}}function oo(){return new ro}function io(e,t,n,r){dn(t,function(e,t){return new fn(t.init,t.update,t.subscribe,t.view,((e,t)=>{!function(e,t,n){e.state=D(t),e.dispatcher=n;const r=e.listener;null!=r&&r(t)}(n,e,t)}),t.onError,t.syncDispatch)}(0,e()));const o=function(e){return e.state}(n);if(null!=o)return F(o);throw new Error("Elmish program has not initialized")}function so(e,t){return function(e,t,n){const r=Kr(oo)[0],o=Kr((()=>io(e,t,r))),u=o[1];return Qr((()=>(function(e){return e.hasDisposedOnce}(r)&&u(io(e,t,r)),Xr((()=>{!function(e){const t=e.state;if(null!=t){const e=F(t);i(e)&&s(e)}e.dispatcher=void 0,e.state=void 0,e.hasDisposedOnce=!0}(r)})))),U(n,[])),function(e,t){null==e.listener&&(e.listener=t)}(r,u),[o[0],e=>{!function(e,t){const n=e.dispatcher;null!=n&&n(t)}(r,e)}]}(e,void 0,t)}function uo(e,t,n){return so((()=>function(e,t,n){return new fn(e,t,(e=>Ot()),n,T(2,(e=>{const t=O(1,n,[e]);return e=>{t(e)}})),(e=>{var t,n;t=e[0],n=e[1],console.error(D(t),n)}),T(2,(e=>e)))}((()=>e),t,((e,t)=>{}))),n)}function ao(){return(ao=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function lo(e){this.getChildContext=function(){return e.context};var t=e.children,n=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t.indexOf(n=i[r])>=0||(o[n]=e[n]);return o}(e,["context","children"]);return Jn(t,n)}function co(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=En(lo,ao({},this._props,{context:e.detail.context}),function e(t,n){if(3===t.nodeType)return t.data;if(1!==t.nodeType)return null;var r=[],o={},i=0,s=t.attributes,u=t.childNodes;for(i=s.length;i--;)"slot"!==s[i].name&&(o[s[i].name]=s[i].value,o[$o(s[i].name)]=s[i].value);for(i=u.length;i--;){var a=e(u[i],null),l=u[i].slot;l?o[l]=En(mo,{name:l},a):r[i]=a}var c=n?En(mo,null,r):r;return En(n||t.nodeName.toLowerCase(),o,c)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?Yn:Zn)(this._vdom,this._root)}function $o(e){return e.replace(/-(\w)/g,(function(e,t){return t?t.toUpperCase():""}))}function fo(e,t,n){if(this._vdom){var r={};r[e]=n=null==n?void 0:n,r[$o(e)]=n,this._vdom=Jn(this._vdom,r),Zn(this._vdom,this._root)}}function ho(){Zn(this._vdom=null,this._root)}function mo(e,t){var n=this;return En("slot",ao({},e,{ref:function(e){e?(n.ref=e,n._listener||(n._listener=function(e){e.stopPropagation(),e.detail.context=t},e.addEventListener("_preact",n._listener))):n.ref.removeEventListener("_preact",n._listener)}}))}function po(e,t){return t}function wo(e,t,n){return _t(n,t)}new class{constructor(){}};function go(e,t){const n=function(e,t){return new yt(0,t)}(0,t);return gt.Return(n)}function yo(e,t){return gt.Delay(t)}new class{constructor(){}};class _o extends j{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class vo extends j{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Header"]}}class bo extends j{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Empty","Text","Binary","Form"]}}class Co extends z{constructor(e,t,n,r,o,i,s,u){super(),this.url=e,this.method=t,this.headers=n,this.withCredentials=r,this.overridenMimeType=o,this.overridenResponseType=i,this.timeout=s,this.content=u}}class So extends j{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class xo extends z{constructor(e,t,n,r,o){super(),this.statusCode=0|e,this.responseText=t,this.responseType=n,this.responseHeaders=r,this.content=o}}class Eo{constructor(e,t){this.k=e,this.v=t}}function ko(e,t){return new Eo(e,t)}function No(e){return e.k}function Ao(e){return e.v}class Mo extends Eo{constructor(e,t,n,r,o){super(e,t),this.left=n,this.right=r,this.h=0|o}}function To(e,t,n,r,o){return new Mo(e,t,n,r,o)}function Io(e){return e.left}function Oo(e){return e.right}function Po(e){return e.h}function Do(e,t){e:for(;;){const n=e,r=t;if(null!=r){const o=r;if(o instanceof Mo){e=Do(n+1,Io(o)),t=Oo(o);continue e}return n+1|0}return 0|n}}function Fo(e){return Do(0,e)}function Ro(e,t,n,r){let o,i;if(null!=e){const t=e;o=t instanceof Mo?Po(t):1}else o=0;if(null!=r){const e=r;i=e instanceof Mo?Po(e):1}else i=0;const s=0|(o<i?i:o);return 0===s?ko(t,n):To(t,n,e,r,s+1)}function Go(e,t,n,r){let o,i,s,u,a,l;if(null!=e){const t=e;a=t instanceof Mo?Po(t):1}else a=0;if(null!=r){const e=r;l=e instanceof Mo?Po(e):1}else l=0;if(l>a+2){const s=F(r);if(s instanceof Mo){if(o=Io(s),(null!=o?(i=o,i instanceof Mo?Po(i):1):0)>a+1){const r=F(Io(s));if(r instanceof Mo)return Ro(Ro(e,t,n,Io(r)),No(r),Ao(r),Ro(Oo(r),No(s),Ao(s),Oo(s)));throw new Error("internal error: Map.rebalance")}return Ro(Ro(e,t,n,Io(s)),No(s),Ao(s),Oo(s))}throw new Error("internal error: Map.rebalance")}if(a>l+2){const o=F(e);if(o instanceof Mo){if(s=Oo(o),(null!=s?(u=s,u instanceof Mo?Po(u):1):0)>l+1){const e=F(Oo(o));if(e instanceof Mo)return Ro(Ro(Io(o),No(o),Ao(o),Io(e)),No(e),Ao(e),Ro(Oo(e),t,n,r));throw new Error("internal error: Map.rebalance")}return Ro(Io(o),No(o),Ao(o),Ro(Oo(o),t,n,r))}throw new Error("internal error: Map.rebalance")}return Ro(e,t,n,r)}function Uo(e,t,n,r){if(null!=r){const o=r,i=0|e.Compare(t,No(o));return o instanceof Mo?i<0?Go(Uo(e,t,n,Io(o)),No(o),Ao(o),Oo(o)):0===i?To(t,n,Io(o),Oo(o),Po(o)):Go(Io(o),No(o),Ao(o),Uo(e,t,n,Oo(o))):i<0?To(t,n,void 0,r,2):0===i?ko(t,n):To(t,n,r,void 0,2)}return ko(t,n)}function Lo(e,t,n){e:for(;;){const r=e,o=t,i=n;if(null!=i){const s=i,u=0|r.Compare(o,No(s));if(0===u)return D(Ao(s));if(s instanceof Mo){e=r,t=o,n=u<0?Io(s):Oo(s);continue e}return}return}}function Bo(e,t){e:for(;;){const n=e,r=t;if(null!=r){const o=r;if(o instanceof Mo){Bo(n,Io(o)),n(No(o),Ao(o)),e=n,t=Oo(o);continue e}n(No(o),Ao(o))}break}}function Ho(e,t){Bo(e,t)}function jo(e,t){if(null!=t){const n=t;if(n instanceof Mo){const t=jo(e,Io(n)),r=e(No(n),Ao(n)),o=jo(e,Oo(n));return To(No(n),r,t,o,Po(n))}return ko(No(n),e(No(n),Ao(n)))}}function zo(e,t){return jo(e,t)}function qo(e,t){let n;for(let r=0;r<=t.length-1;r++){const o=t[r];n=Uo(e,o[0],o[1],n)}return n}class Wo extends z{constructor(e,t){super(),this.stack=e,this.started=t}}function Vo(e){e:for(;;){const t=e;if(Qe(t))return Je();{const n=nt(t),r=tt(t);if(null!=r){const o=r;if(o instanceof Mo){e=st([Io(o),ko(No(o),Ao(o)),Oo(o)],n);continue e}return t}e=n;continue e}}}function Zo(e){return new Wo(Vo(Ke(e)),!1)}function Yo(e){if(e.started){const t=e.stack;if(Qe(t))return function(){throw new Error("enumeration already finished")}();if(null!=tt(t)){const e=tt(t);if(e instanceof Mo)throw new Error("Please report error: Map iterator, unexpected stack for current");return[No(e),Ao(e)]}throw new Error("Please report error: Map iterator, unexpected stack for current")}return function(){throw new Error("enumeration not started")}()}function Jo(e){let t=Zo(e);return{"System.Collections.Generic.IEnumerator`1.get_Current":()=>Yo(t),"System.Collections.IEnumerator.get_Current":()=>Yo(t),"System.Collections.IEnumerator.MoveNext":()=>function(e){if(e.started){const t=e.stack;if(Qe(t))return!1;if(null!=tt(t)){if(tt(t)instanceof Mo)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=Vo(nt(t)),!Qe(e.stack)}throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}return e.started=!0,!Qe(e.stack)}(t),"System.Collections.IEnumerator.Reset"(){t=Zo(e)},Dispose(){}}}class Xo{constructor(e,t){this.comparer=e,this.tree=t}GetHashCode(){return 0|function(e){const t=(e,t)=>(e<<1)+t+631;let n=0;const r=l(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const e=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n=0|t(n,y(e[0])),n=0|t(n,y(e[1]))}}finally{s(r)}return 0|n}(this)}Equals(e){if(!(e instanceof Xo))return!1;{const t=l(this);try{const n=l(e);try{const e=()=>{const r=t["System.Collections.IEnumerator.MoveNext"]();if(r===n["System.Collections.IEnumerator.MoveNext"]()){if(r){const r=t["System.Collections.Generic.IEnumerator`1.get_Current"](),o=n["System.Collections.Generic.IEnumerator`1.get_Current"]();return!(!C(r[0],o[0])||!C(r[1],o[1]))&&e()}return!0}return!1};return e()}finally{s(n)}}finally{s(t)}}}toString(){return"map ["+Ie("; ",on((e=>Me("({0}, {1})",e[0],e[1])),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(e){return Array.from(this)}GetEnumerator(){return Jo(this.tree)}[Symbol.iterator](){return c(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return Jo(this.tree)}CompareTo(e){const t=this;if(e instanceof Xo)return 0|function(e,t,n){const r=Wt(t);try{const t=Wt(n);try{let n=0,o=r["System.Collections.IEnumerator.MoveNext"](),i=t["System.Collections.IEnumerator.MoveNext"]();for(;0===n&&o&&i;)n=0|e(r["System.Collections.Generic.IEnumerator`1.get_Current"](),t["System.Collections.Generic.IEnumerator`1.get_Current"]()),0===n&&(o=r["System.Collections.IEnumerator.MoveNext"](),i=t["System.Collections.IEnumerator.MoveNext"]());return 0|(0!==n?n:o?1:i?-1:0)}finally{s(t)}}finally{s(r)}}(((e,n)=>{const r=0|t.comparer.Compare(e[0],n[0]);return 0|(0!==r?r:k(e[1],n[1]))}),t,e);throw new Error("not comparable\\nParameter name: obj")}"System.Collections.Generic.ICollection`1.Add2B595"(e){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Clear"(){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Remove2B595"(e){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Contains2B595"(e){return ni(this,e[0])&&C(ei(this,e[0]),e[1])}"System.Collections.Generic.ICollection`1.CopyToZ2E171D71"(e,t){!function(e,t,n){let r=n;Ho(((e,n)=>{t[r]=[e,n],r=r+1|0}),e)}(this.tree,e,t)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|ti(this)}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return 0|ti(this)}get size(){return 0|ti(this)}clear(){throw new Error("Map cannot be mutated")}delete(e){throw new Error("Map cannot be mutated")}entries(){return on((e=>[e[0],e[1]]),this)}get(e){return ei(this,e)}has(e){return ni(this,e)}keys(){return on((e=>e[0]),this)}set(e,t){throw new Error("Map cannot be mutated")}values(){return on((e=>e[1]),this)}forEach(e,t){const n=this;rn((t=>{e(t[1],t[0],n)}),n)}}function Ko(e,t){return new Xo(e,t)}function Qo(e){const t=Rt();return Ko(t,function(e,t){if(r(t))return qo(e,t);if(t instanceof He)return function(e,t){return ot(((t,n)=>Uo(e,n[0],n[1],t)),void 0,t)}(e,t);{const n=l(t);try{return function(e,t,n){for(;;){const r=e,o=t,i=n;if(!i["System.Collections.IEnumerator.MoveNext"]())return o;{const s=i["System.Collections.Generic.IEnumerator`1.get_Current"]();e=r,t=Uo(r,s[0],s[1],o),n=i}}}(e,void 0,n)}finally{s(n)}}}(t,e))}function ei(e,t){return function(e,t,n){const r=Lo(e,t,n);if(null==r)throw new Error;return F(r)}(e.comparer,t,e.tree)}function ti(e){return Fo(e.tree)}function ni(e,t){return function(e,t,n){e:for(;;){const r=e,o=t,i=n;if(null!=i){const s=i,u=0|r.Compare(o,No(s));if(s instanceof Mo){if(u<0){e=r,t=o,n=Io(s);continue e}if(0===u)return!0;e=r,t=o,n=Oo(s);continue e}return 0===u}return!1}}(e.comparer,t,e.tree)}function ri(e,t,n){return function(e,t,n){return Ko(e.comparer,Uo(e.comparer,t,n,e.tree))}(n,e,t)}function oi(e,t){return function(e,t){return Lo(e.comparer,t,e.tree)}(t,e)}function ii(e,t){return function(e,t){return Ko(e.comparer,zo(t,e.tree))}(t,e)}function si(){return Xo.empty}function ui(e){return new vo(0,"Content-Type",e)}Xo.empty=Ko(Rt(),void 0);const ai=new Co("",new _o(0),Je(),!1,void 0,void 0,void 0,new bo(0));function li(e,t){return"string"!=typeof(n=t)||0===n.length?[t]:function(e,t,n,r){if(r="number"==typeof r?r:0,(n="number"==typeof n?n:void 0)&&n<0)throw new Error("Count cannot be less than zero");if(0===n)return[];const o=1==(1&r),i=2==(2&r);t=(t=t||[]).filter((e=>e)).map(we),t=t.length>0?t:["\\s"];const s=[],u=new RegExp(t.join("|"),"g");let a=!0,l=0;do{const t=u.exec(e);if(null===t){const t=i?e.substring(l).trim():e.substring(l);(!o||t.length>0)&&s.push(t),a=!1}else{const r=i?e.substring(l,t.index).trim():e.substring(l,t.index);(!o||r.length>0)&&(null!=n&&s.length+1===n?(s.push(i?e.substring(l).trim():e.substring(l)),a=!1):s.push(r)),l=u.lastIndex}}while(a);return s}(t,[e],null,0);var n}function ci(e){return new Co(e,ai.method,ai.headers,ai.withCredentials,ai.overridenMimeType,ai.overridenResponseType,ai.timeout,ai.content)}function $i(e,t){return new Co(t.url,e,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function fi(e,t){return new Co(t.url,t.method,lt(t.headers,Ke(e)),t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function di(e,t){return new Co(t.url,t.method,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,e)}function hi(e){return function(e){return wt((t=>e([t.onSuccess,t.onError,t.onCancel])))}((t=>{const n=new XMLHttpRequest;n.open(function(e){switch(e.tag){case 1:return"POST";case 3:return"PATCH";case 2:return"PUT";case 4:return"DELETE";case 6:return"OPTIONS";case 5:return"HEAD";default:return"GET"}}(e.method),e.url),n.onreadystatechange=()=>{let e,r,o,i,s,u;4===n.readyState&&t[0]((r=n.responseType,e=""===r||"text"===r?n.responseText:"",o=0|n.status,i=n.responseType,u=n.responseType,s=""===u||"text"===u?new So(0,n.responseText):new So("arraybuffer"===u?2:"blob"===u?1:3,n.response),new xo(o,e,i,function(e){const t=Rt();return Ko(t,qo(t,e))}(function(e,t,n){const r=[];for(let n=0;n<=t.length-1;n++){const o=e(t[n]);if(null!=o){const e=F(o);r.push(e)}}return r}((e=>{const t=ut(li(":",e));return Qe(t)?void 0:[tt(t).toLocaleLowerCase(),Ie(":",nt(t)).trim()]}),li("\r\n",n.getAllResponseHeaders()))),s)))};const r=l(e.headers);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const e=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n.setRequestHeader(e.fields[0],e.fields[1])}}finally{s(r)}n.withCredentials=e.withCredentials;const o=e.overridenMimeType;if(null==o);else{const e=o;n.overrideMimeType(e)}const i=e.overridenResponseType;null==i||(1===i.tag?n.responseType="blob":2===i.tag?n.responseType="arraybuffer":n.responseType="text");const u=e.timeout;if(null==u);else{const e=0|u;n.timeout=0|e}const a=[e.method,e.content];0===a[0].tag?n.send(D(void 0)):1===a[1].tag||3===a[1].tag||2===a[1].tag?n.send(D(a[1].fields[0])):n.send(D(void 0))}))}function mi(e){return Te(e)?void 0:e}function pi(e){let t,n=K();return t=[ee(e,new q((()=>n),(e=>{n=e}))),n],t[0]?t[1]:void 0}function wi(e,t){!function(e,t,n,r){function o(){var t=Reflect.construct(HTMLElement,[],o);return t._vdomComponent=e,t._root=r&&r.shadow?t.attachShadow({mode:"open"}):t,t}(o.prototype=Object.create(HTMLElement.prototype)).constructor=o,o.prototype.connectedCallback=co,o.prototype.attributeChangedCallback=fo,o.prototype.disconnectedCallback=ho,n=n||e.observedAttributes||Object.keys(e.propTypes||{}),o.observedAttributes=n,n.forEach((function(e){Object.defineProperty(o.prototype,e,{get:function(){return this._vdom.props[e]},set:function(t){this._vdom?this.attributeChangedCallback(e,null,t):(this._props||(this._props={}),this._props[e]=t,this.connectedCallback());var n=typeof t;null!=t&&"string"!==n&&"boolean"!==n&&"number"!==n||this.setAttribute(e,t)}})})),customElements.define(t||e.tagName||e.displayName||e.name,o)}(e,t,void 0,{shadow:!0})}function gi(e,t){return yo(0,(()=>{const n=fi((r=Ee(Se("Bearer %s"))(e),new vo(0,"Authorization",r)),t);var r;let o;const i=hi(n);return o=gt.Bind(i,(e=>gt.Return(new yt(0,e)))),gt.Delay((()=>gt.Bind(o,(e=>{let t,r;const o=e;return 1===o.tag?gt.Return(new yt(1,o.fields[0])):gt.ReturnFrom((t=o.fields[0],429===t.statusCode||t.statusCode>=500?(r=hi(n),gt.Bind(r,(e=>gt.Return(new yt(0,e))))):go(0,t)))}))))}))}function yi(e,t,n){return $t((n=>{return 0===n.indexOf(e)?(r=e,o=t,n.replace(new RegExp(we(r),"g"),o)):void 0;var r,o}),n)}new xo(0,"","",si(),new So(0,""));class _i{constructor(e,t,n,r){this.declaringType=e,this.tag=t,this.name=n,this.fields=r}}class vi{constructor(e,t,n,r,o,i,s){this.fullname=e,this.generics=t,this.construct=n,this.parent=r,this.fields=o,this.cases=i,this.enumCases=s}toString(){return Ii(this)}GetHashCode(){return Ci(this)}Equals(e){return Si(this,e)}}function bi(e){return null!=e.generics?e.generics:[]}function Ci(e){return g([p(e.fullname),...bi(e).map(Ci)])}function Si(e,t){return""===e.fullname?""===t.fullname&&v(Hi(e),Hi(t),(([e,t],[n,r])=>e===n&&Si(t,r))):e.fullname===t.fullname&&v(bi(e),bi(t),Si)}function xi(e,t,n,r){return new vi(e,t,n,void 0,r)}function Ei(e,t,n,r){const o=new vi(e,t,n,void 0,void 0,(()=>{const e=n.prototype.cases();return r().map(((t,n)=>new _i(o,n,e[n],t)))}));return o}function ki(e){return new vi("Microsoft.FSharp.Core.FSharpOption`1",[e])}function Ni(e){return new vi("Microsoft.FSharp.Collections.FSharpList`1",[e])}const Ai=new vi("System.Object"),Mi=(new vi("Microsoft.FSharp.Core.Unit"),new vi("System.Char"),new vi("System.String"));function Ti(e){if(Array.isArray(e))return e[0];if(e instanceof vi){const t=Pi(e);if(null!=t)return Ti(t)+"[]";{const t=e.fullname.lastIndexOf(".");return-1===t?e.fullname:e.fullname.substr(t+1)}}return e.name}function Ii(e){const t=Pi(e);return null!=t?Ii(t)+"[]":null==e.generics||0===e.generics.length?e.fullname:e.fullname+"["+e.generics.map((e=>Ii(e))).join(",")+"]"}function Oi(e){return null!=Pi(e)}function Pi(e){var t;return"[]"===e.fullname&&1===(null===(t=e.generics)||void 0===t?void 0:t.length)?e.generics[0]:void 0}function Di(e){return null!=e.generics&&e.generics.length>0}function Fi(e){return null!=e.enumCases&&e.enumCases.length>0}function Ri(e){return null==e.generics?e:new vi(e.fullname,e.generics.map((()=>Ai)))}function Gi(e){var t;return null===(t=e.generics)||void 0===t?void 0:t[0]}function Ui(e){if(Fi(e)&&null!=e.enumCases)return e.enumCases.map((e=>e[1]));throw new Error(`${e.fullname} is not an enum type`)}function Li(e,t){const n=parseInt(t,10);return function(e,t){if(null!=e.enumCases){if("string"==typeof t){for(const n of e.enumCases)if(n[0]===t)return n;throw new Error(`'${t}' was not found in ${e.fullname}`)}for(const n of e.enumCases)if(n[1]===t)return n;return["",t]}throw new Error(`${e.fullname} is not an enum type`)}(e,isNaN(n)?t:n)[1]}function Bi(e){if(null!=e.cases)return e.cases();throw new Error(`${e.fullname} is not an F# union type`)}function Hi(e){if(null!=e.fields)return e.fields();throw new Error(`${e.fullname} is not an F# record type`)}function ji(e){if(Wi(e)&&null!=e.generics)return e.generics;throw new Error(`${e.fullname} is not a tuple type`)}function zi(e){return e instanceof vi?null!=e.cases:e instanceof j}function qi(e){return e instanceof vi?null!=e.fields:e instanceof z}function Wi(e){return e.fullname.startsWith("System.Tuple")}function Vi(e){return null==e.fields?[]:e.fields}function Zi(e,t){const n=(e.fields||[]).length;if(t.length!==n)throw new Error(`Expected an array of length ${n} but got ${t.length}`);return null!=e.declaringType.construct?new e.declaringType.construct(e.tag,...t):{}}var Yi;function Ji(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 Xi(e,t,n,r,o){const i=function(e,t,n){const r=/^\s*([\+\-])?(0[xXoObB])?([0-9a-fA-F]+)\s*$/.exec(e.replace(/_/g,""));if(null!=r){const[,,e,o]=r;n=n||function(e,t){if(t&Yi.AllowHexSpecifier)return 16;switch(e){case"0b":case"0B":return 2;case"0o":case"0O":return 8;case"0x":case"0X":return 16;default:return 10}}(e,t);const i=function(e){switch(e){case 2:return/[^0-1]/;case 8:return/[^0-7]/;case 10:return/[^0-9]/;case 16:return/[^0-9a-fA-F]/;default:throw new Error("Invalid Base.")}}(n);if(!i.test(o))return function(e,t){const[,n,r,o]=e;return{sign:n||"",prefix:r||"",digits:o,radix:t}}(r,n)}return null}(e,t,o);if(null!=i){let e=Number.parseInt(i.sign+i.digits,i.radix);if(!Number.isNaN(e)){const[t,o]=Ji(!0,r);!n&&10!==i.radix&&e>=t&&e<=o&&(e=e<<32-r>>32-r);const[s,u]=Ji(n,r);if(e>=s&&e<=u)return e}}throw new Error("Input string was not in a correct format.")}function Ki(e,t,n,r,o){try{return o.contents=Xi(e,t,n,r),!0}catch(e){return!1}}function Qi(e){let t,n=0;return t=[Ki(e,511,!1,32,new q((()=>n),(e=>{n=0|e}))),n],t[0]?t[1]:void 0}function es(e,t,n){return n>=e&&n<=t?D(void 0):void 0}function ts(e){return re(e)}function ns(e,t,n){return po(0,(()=>bt((n=>{const r=0|n[0],o=0|n[1],i=0|n[2];if(r<=0)return new yt(1,e);{const n=[o,i];let s;switch(s=2===n[0]&&null!=es(1,29,n[1])&&ts(r)?0:1,s){case 0:return new yt(0,t(r,o,i));case 1:{let s;switch(s=2===n[0]&&null!=es(1,28,n[1])?ts(r)?1:0:1,s){case 0:return new yt(0,t(r,o,i));case 1:{let s;switch(s=1===n[0]||3===n[0]||5===n[0]||7===n[0]||8===n[0]||10===n[0]?null!=es(1,31,n[1])?0:1:12===n[0]&&null!=es(1,31,n[1])?0:1,s){case 0:return new yt(0,t(r,o,i));case 1:{let s;switch(s=4===n[0]||6===n[0]||9===n[0]?null!=es(1,30,n[1])?0:1:11===n[0]&&null!=es(1,30,n[1])?0:1,s){case 0:return new yt(0,t(r,o,i));case 1:return new yt(1,e)}}}}}}}}}),function(e,t){const n=function(e,t){const n=ge(pe(e),t);return null!=n?nt(Xt(Vt((()=>on((e=>e||""),n))))):void 0}("^(\\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$",t);if(null==n)return new yt(1,e);{const t=n;let r,o,i,s;switch(Qe(t)||Qe(nt(t))||Qe(nt(nt(t)))?r=1:Qe(nt(nt(nt(t))))?(r=0,o=tt(nt(nt(t))),i=tt(nt(t)),s=tt(t)):r=1,r){case 0:{const t=[s,i,o],n=[t[0],t[1],t[2]];let r,u,a,l;const c=Qi(n[0]);if(null!=c){const e=Qi(n[1]);if(null!=e){const t=Qi(n[2]);null!=t?(r=0,u=t,a=e,l=c):r=1}else r=1}else r=1;switch(r){case 0:return new yt(0,[l,a,u]);case 1:return new yt(1,e)}}case 1:return new yt(1,e)}}}(e,n))))()}new vi("System.Boolean"),new vi("System.SByte"),new vi("System.Byte"),new vi("System.Int16"),new vi("System.UInt16"),new vi("System.Int32"),new vi("System.UInt32"),new vi("System.Single"),new vi("System.Double"),new vi("System.Decimal"),function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"}(Yi||(Yi={}));class rs extends j{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Male","Female","Intersex","Transgender","PreferNotToAnswer","Other","NotSet"]}}class os extends j{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Spouse","Parent","Child","Sibling","Partner","Sister","Husband","Father","Mother","Daughter","Defacto","Fiance","Boyfriend","Brother","Wife","Son","Engaged","Friend","Girlfriend","Other"]}}function is(e){switch(e.tag){case 1:return"Parent";case 2:return"Child";case 3:return"Sibling";case 4:return"Partner";case 5:return"Sister";case 6:return"Husband";case 7:return"Father";case 8:return"Mother";case 9:return"Daughter";case 10:return"Defacto";case 11:return"Fiance";case 12:return"Boyfriend";case 13:return"Brother";case 14:return"Wife";case 15:return"Son";case 16:return"Engaged";case 17:return"Friend";case 18:return"Girlfriend";case 19:return"Other";default:return"Spouse"}}class ss extends j{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["NSW","QLD","WA","SA","NT","VIC","TAS","ACT"]}}function us(e){return _t((e=>{}),e)}function as(e,t){return t?new yt(0,void 0):new yt(1,e)}function ls(e,t){return null==t?new yt(1,e):new yt(0,F(t))}class cs extends z{constructor(e,t,n){super(),this.FirstName=e,this.MiddleName=t,this.LastName=n}}function $s(){return xi("Dto.Primitives.Name",[],cs,(()=>[["FirstName",Mi],["MiddleName",ki(Mi)],["LastName",Mi]]))}function fs(e){switch(e.tag){case 1:return"Female";case 2:return"Intersex";case 3:return"Transgender";case 4:return"PreferNotToAnswer";case 5:return"Other";case 6:return"NotSet";default:return"Male"}}class ds extends z{constructor(e,t,n,r,o,i){super(),this.AddressLine1=e,this.AddressLine2=t,this.City=n,this.State=r,this.Postcode=o,this.CountryCode=i}}function hs(){return xi("Dto.Primitives.Address",[],ds,(()=>[["AddressLine1",Mi],["AddressLine2",ki(Mi)],["City",Mi],["State",Mi],["Postcode",Mi],["CountryCode",Mi]]))}class ms extends z{constructor(e,t,n,r,o){super(),this.FullName=e,this.Relationship=t,this.MobilePhone=n,this.Email=r,this.Address=o}}function ps(){return xi("Dto.Primitives.EmergencyContactDto",[],ms,(()=>[["FullName",Mi],["Relationship",Mi],["MobilePhone",Mi],["Email",ki(Mi)],["Address",ki(hs())]]))}const ws=function(){const e=[..."#C$&$&$$$$$$%-%&%=$$$$$$=$$$$D$$'$$$$$$$$$$$$%$$%$$$$&$:$*;$+$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$%$$$$$$$$$$$$$$$%$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$%$$$$&%$$$%$&%'$%$&&%$%$$$$$%$$%$$%$&$$$%%$$&'$$$$$$$$$$$$$$$$$$$$$$$$%$$$$$$$$$$$$$$$$$%$$$$$&$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$*%$%%$$'$$$$$$$$h$>5'/1(*$$$4“$$$$$$$$%$&$$'%$$&$$$%$4$,F$%&&$$$$$$$$$$$$$$$$$$$$$$$($$$$$%%VS$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$(%$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$%$$$$$$$$$$$$%$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$I%$)L$$%%$$P$$$%$%$$+>''%.)&%$%%.$$$%C$-8-'%$†$$*$$)%%$'%-&%$1$$$$A>%|.$1-D,%$&$%$%9'$,$&$(%2$<&%$$.X8$5.2$C$Y$$$$&+'$%$*-%%-$$2$%$+%%%9$*$$&'%$$&'%%%%$$+$'%$&%%-%%)$$$$$%%$$)'%%9$*$%$%$%%$$&%'%%&&$*'$$*-%&$$-%$$,$&$9$*$%$(%$$&($%$$%$%$2%%%-$$*$)$$%$+%%%9$*$%$(%$$$$$'%%%%$*%$'%$&%%-$$)-$$$)&&$'&%$$$%&%&&&/'%$%&&$&$%$)$1-&)$$($&$+$&$:$3&$&'$&$'*%$&(%%%-*$*$$$%$+$&$:$-$(%$$$$($$%$%%*%*$$%%%-$%0%%,$&$L%$&'$&$&$$$'&$*&%%-,$)$$%$5&;$,$$%*&$'&&$$$+)-%%$/S$%*'$)$+$-%H%$$$($;$$$-$%,$%($$$)%-%'C$&2$$&%)--$$$$$$$$$$%+$G'1$($%(.$G$+$)$%('%HN%'$)$%%%$-))%%'&$&%*&'0$%%)$$$-&$%I$$($%N$$&Ŭ$'%*$$$'%L$'%D$'%*$$$'%2$\\$'%f%&,7&3-)y%)%$ʏ$$4$=$$&n&&+*0$'&.5&%,5%/0$&$%/W%$*+$%.&$&$$$%-)-))$'&$$-)F$X*(%E$$(i-B$&'%&'%$)&'$&%-A%(.O'=)-$&E:%%$%%X$$$*$$$$%+)-%$-)-)*$)%1$%b'$R$$($$($%*'-*-,,&%$A$'%%$&%-O$$%&$$&%+'G++%%&(-&&-A)%,*N%&++&$0$*'$)$%$%$(Ob0$EH]$($$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$,$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$,+)%)%++++)%)%+$$$$$$$$++1%++++++($%'$$$&&$%'$&'%%'$&+(&%&$%'$%$.()%$$$%$$$+$$($,$$'%&$$$.$$$-$($-$$%)&$$$-&$$$0&C30'$&/2%$'$%$&%&$$$%$()$$$$$$'$$'$'$%%%($'$$%$$3F$$'$%'((%'$%$%$*$B%%$$$Bį+$$$$7%*$$t$A<K)h<.8_q9Ú$,$Y+’$ě$$$$$$$$$$$$$$AO($$B$$$$$$$$$$3ģ¦$$$$$$$$$$$$$$$$$$$$$$b$$$$C$$ĥS8%)J%C$ŒR$R$$$&%$$$$$$'$$%$)%&$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$%)$$$$&$$('$%I$$($%[*$$1$:,*$*$*$*$*$*$*$*$C%$$$$&$$$$$,$%$$$$%$$$$$$$$$$($-%'$$$0%$P=$|/ù=/'$&$$$$$$$$$$$$$$%$$$$$$$$$$%$,'%$(%&$$$%$y%%%%$$}$&$(N$$%'-CG/3B$-A+$2C-J2ţ᧣c删&8$Қ&Z,K)%į$&3-%7$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$&$-$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$%%i-%)+:,%$$$$$$$$$$$$$&$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$+$$$$%$$$$$$$$$$%$$$$$$$$&$$$$$$$$$$$$$$$$$$$$($($$$$$$$$$$$%$$'$$$M$$$%$*$&$'$:%%$'$&)%$$)W'+%U3%+%-)5)&$$%$-?+%:.%.$@&&$R$%'%%&0$$-'%($$,-($L)%%%%,&$+$$%-%'3$)&$$$$U$$&%%(%$$$;%$%.$%%%$%$$-)%)%),*$*$N$',$%'sF%$%$%$$$%-)⯇/:'T'ࠣᤣƑ%I*/(($$-$0$($$$%$%$34Ǝ$$3c%YK/$$%3*$$$)3$%%$$$$$$$$$$$$$$$$%$$'&&$'$$$$$$$&$$&$$$%'($ª%$$&$&$$$$$$%-%&%=$$$$$$=$$$$$$$$$%-$P%B&)%)%)%&&%$$$%$$'%-&%%/$=$6$%$2%1Ež(&'P&,X'4%&$0&$RP$¥@&T2$>'C',7$+$(I((A$$G'+$(MKKq%-)G'G'K+W.$³Ś,9-+»)%$$O$%&$%:$$+:%*B+,S6$%((9)&$=($c['%%3%Q$&$%(''$&$@%&'$,*,*@%$@&C+$?%'(*,Y&*9%+6(+5*'/*slZV0V*)G'+-ʼnB$M$%$%%q@-$+9.'(y8*7:,$$$X2*'7-2&$P&'%%%$'.$%<*-)&G($+$-'$%$+F$%$,%$S&,%'''$$$-$$$&$7.5$<&&%$$%)$d*$$$'$2$-$)R$&+(-)%%$+%%%9$*$%$($%$%$'%%%&%$)$((%%*&(®X&+%&$$'(-%$$$&AS&)$$'%$%%$$+-ÉR&'%'%$%:'%ES&+%$$%&$.-)06N$$$%)$$$*-Y>%&%'$('-%&$ãO&,$%$‡CC-,/+%$%+$%$;)$%%%$$$$$$$&,-i+%J&'%%'$$$$$>$-K)$$'+$+$)%&Q0$%&$(@\\Ī,$H$*$)$$$(--6&%A%9$$*$%$%l*$%$I)&$$%$*$$+-))$%$C($%$%$$$$*-ř6%%%Ú$28+'40$ν‰’$(.ç૟ђ$,࿪ɪ⇜ɜ*B$-'%ƒA%($-S*(''$$--$*$8(6˓CC:'ˆn'$$Z*'0c%$$$.%1᠛+ӹM,⌚łT&4'+ƯधŽ(0&,*-%$%$'፿ę-J%_%&&)++%*A'^:e&$½7/z,<ª===*$5==$$%%$%%%'$+'$$$*$.==%$'%+$*$=%$'$($$&*$============?%<$<$)<$<$)<$<$)<$<$)<$<$)$$%UȣZ'U+$1$%(2($2ճ*$4%*$%$(øP&**%-'$$ƓO'-($ԣè%,*LEE*$'-'%̴^$&$'oP$2å'$>$%$$%$$-$'$$$$)$'$$$$$$&$%$$%$$$$$$$$$$%$$%'$*$'$'$$$-$4(&$($4W%ıO'‡/2%2$2$H-0Ä[@0O',*%1)½Ğ(˻+0&0&—/|*/7/'[+-)K+A%%qœ$u$ª/1%(&&(*,<**,&0*L¶$ZH-Щ꜁Eၘ.ā%ᚥ1ᵔూɁ؅፮򮳙$Aƒ£ē︳𐀡%𐀡"].map((e=>{var t;return(null!==(t=e.codePointAt(0))&&void 0!==t?t:0)-35})),t=[..."1.;=;78;<;6;+;<;#7;8>5>$7<8<1.;=?;>?'9<2?>?<->$;>-':-;#<#$<$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$'#$'#%$#%$#%$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#%$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$'$&>&>&>&>&>(#$#$&>#$@&$;#@>#;#@#@#$#@#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$<#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$?(*#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$@#@&;$;6@?=@(6(;(;(;(@'@';@2<;=;?(;2@;'&'(+;'(';'(2?(&(?('+'?';@2'('(@'('@+'(&?;&@(='(&(&(&(@;@'(@;@'@'@'@(2()'()(')()()'('(;+;&'()@'@'@'@'@'@'@(')(@)@)('@)@'@'(@+'=-?=';(@()@'@'@'@'@'@'@'@(@)(@(@(@(@'@'@+('(;@()@'@'@'@'@'@'@(')(@()@)(@'@'(@+;=@'(@()@'@'@'@'@'@'@(')()(@)@)(@()@'@'(@+?'-@('@'@'@'@'@'@'@'@'@'@)()@)@)(@'@)@+-?=?@()('@'@'@'@'()@(@(@(@'@'(@+@;-?'();'@'@'@'@'@(')()@()@)(@)@'@'(@+@'@()'@'@'(')(@)@)('?@')-'(@+-?'@()@'@'@'@'@'@(@)(@(@)@+@);@'('(@='&(;+;@'@'@'@'@'@'('('@'@&@(@+@'@'?;?;?(?+-?(?(?(7878)'@'@()(;('(@(@?(?@?;?;@')()()()('+;')('(')')'('()()(')+)(?#@#@#@$;&$'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@(;-@'?@#@$@6'?;'.'78@';,'@'@'(@'(;@'(@'@'@(@'()()()(;&;='(@+@-@;6;(2@+@'&'@'('('@'@'@()()@)()(@?@;+'@'@'@'@+-@?'()(@;')()(@()()()(@(+@+@;&;@(*(@()'()()()()'@+;?(?@()')()()('+'()()()()@;')()(@;+@'+'&;$@#@#;@(;()('('(')('@$&$&$&(@(#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$@#@$#$#$@#@$@#@#@#@#$#$@$%$%$%$@$#%>$>$@$#%>$@$#@>$#>@$@$#%>@.26;9:79:79;/02.;9:;5;<78;<;5;.2@2-&@-<78&-<78@&@=@(*(*(@?#?#?$#$#$?#?<#?#?#?#?#?$#$'$?$#<#$?<?$?-,#$,-?@<?<?<?<?<?<?<?<?<?<?7878?<?78?<?<?<?@?@-?-?<?<?<?<?78787878787878-?<78<7878787878<?<7878787878787878787878<7878<78<?<?<?@?@?#@$@#$#$#$#$#$#$#$#$&#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$?#$#$(#$@;-;$@$@$@'@&;@('@'@'@'@'@'@'@'@'@(;9:9:;9:;9:;6;6;9:;9:78787878;&;6;6;7;?;@?@?@?@?@.;?&',7878787878?78787878678?,()6&?,&';?@'@(>&'6';&'@'@'@?-?'?@'?@-?-?-?-?-?'?'@'&'@?@'&;'&;'+'@#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$'(*;(;&#$#$#$#$#$#$#$#$#$#$#$#$#$#$&(',(;@>&>#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$&$#$#$#$#$#$#$#$&>#$#$'#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$@#$#$#$@#$'&$'('('(')()?(@-?=?@';@)')(@;+@(';';'(+'(;'()@;'@()'()()();@&+@;'(&'+'@'()()(@'('()@+@;'&'?')()'('('('('('@'&;')();'&)(@'@'@'@'@'@$>&$&>@$')()();)(@+@'@'@'@34'@'@$@$@'('<'@'@'@'@'@'>@'87@'@'@'=?@(;78;@(;657878787878787878;78;5;@;6787878;<6<@;=;@'@'@2@;=;78;<;6;+;<;#7;8>5>$7<8<78;78;'&'&'@'@'@'@'@=<>?=@?<?@2?@'@'@'@'@'@'@'@;@-@?,-?-?@?@?@?(@'@'@(-@'-@',',@'(@'@;'@';,@#$'@+@#@$@'@'@;@'@'@'@'@'@'@'@'@'@;-'?-'@-@'@'@-'-@;'@;@'@-'-@-'(@(@('@'@'@(@(-@;@'-;'-@'?'(@-;@'@;'@-'@-'@;@-@'@#@$@-'(@+@-@'@(6@'@'-'@'(-;@'-@'@)()'(;@-+@()')()(;2;@2@'@+@('()(@+;')'@'(;'@()')()';(;)(+';';@-@'@')()()(;(@'@'@'@'@';@'()(@+@()@'@'@'@'@'@'@(')()@)@)@'@)@')@(@(@')()()(';+;@;('@')()()()(';'@+@')(@)()(;'(@')()()(;'@+@;@'()()()('@+@'@()()(@+-;?@')()(;@#$+-@'@'@'@'@')@)@()(')')(;@+@'@')(@()(';')@'('()'(;(@'()('()(;';@'@'@')(@()(';@+-@;'@(@)()()(@'@'@'(@(@(@('(@+@'@'@')@(@)()('@+@'();@'@-?=?@;'@,@;@'@'@2@'@'@'@+@;@'@(;@'(;?&;?@+@-@'@'@#$-;@'@(')@(&@&;&(@)@'@'@'@'@'@'@'@'@'@'@'@?(;2@?@?@?)(?)2(?(?(?@?(?@-@?@-@#$#$@$#$#@#@#@#@#@#$@$@$@$#$#@#@#@#@$#@#@#@#@#@$#$#$#$#$#$#$@#<$<$#<$<$#<$<$#<$<$#<$<$#$@+?(?(?(?(?;@(@(@(@(@(@(@(@'@(&@+@'?@'(+@=@'@-(@#$(&@+@;@-?-=-@-?-@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@<@?@?@?@?@?@?@-?@?@?@?@?@?@?>?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@+@'@'@'@'@'@'@'@2@2@(@4@4@"].map((e=>{var t;return(null!==(t=e.codePointAt(0))&&void 0!==t?t:0)-35})),n=new Uint32Array(e),r=new Uint8Array(t);for(let e=1;e<n.length;++e)n[e]+=n[e-1];return e=>{let t=n.length,o=0;for(;t-o>1;){const r=Math.floor((t+o)/2),i=n[r];if(e<i)t=r;else{if(e===i){t=o=r;break}i<e&&(o=r)}}return r[o]}}();const gs=e=>function(e,t){return 0!=(1<<function(e,t){const n=function(e,t){if(t>=0&&t<e.length)return e.charCodeAt(t);throw new Error("Index out of range.")}(e,t);return ws(n)}(e,0)&256)}(e);class ys extends j{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Saving","Loading"]}}function _s(e){return 1===e.tag?"We ran an into an issue loading your details. Please try refreshing the page.":"We ran an into an issue saving your details. Please try saving again by clicking on the Submit button."}function vs(e){return H(e)}function bs(){return ct((e=>[e,vs(e)]),at(on((e=>Zi(e,[])),Bi(Ei("DomainPrimitives.AuState",[],ss,(()=>[[],[],[],[],[],[],[],[]]))))))}function Cs(e){return $t((t=>t[1]===e?t[0]:void 0),bs())}function Ss(e){return 0===e.indexOf("04")?`+61${Fe(e,1)}`:function(e){return 0===e.indexOf("+")?e:`+${e}`}(e)}const xs=Ss;function Es(e){return Ss(De(gs,e))}class ks extends j{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Required","MaxLen","MinLen","Regex","NumbersOnly","DuSelection","Email","Date","DateOfBirth","PhoneNumber","NotStartWith"]}}class Ns extends j{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Over100","Under13"]}}function As(e){return Te(e)?new yt(1,new ks(0)):new yt(0,void 0)}function Ms(e){return De(gs,e)===e?new yt(0,void 0):new yt(1,new ks(4))}function Ts(e,t){return t.length>e?new yt(1,new ks(1,e)):new yt(0,void 0)}function Is(e,t){return po(0,(()=>{const n=function(e,t){return function(e,t){const n=X(e.getTime()+t,e.kind);if(2===e.kind){const t=e.getTimezoneOffset(),r=n.getTimezoneOffset();return t!==r?X(n.getTime()+6e4*(r-t),e.kind):n}return n}(e,864e5)}(e);let r;const o=ue(n)-ue(t)|0;return r=ae(oe(t),function(e,t){const n=se(e),r=ue(e)+t,o=function(e,t){return 2===t?re(e)?29:28:t>=8?t%2==0?31:30:t%2==0?30:31}(r,n);return te(r,n,Math.min(o,ie(e)),function(e){return 1===e.kind?e.getUTCHours():e.getHours()}(e),function(e){return 1===e.kind?e.getUTCMinutes():e.getMinutes()}(e),function(e){return 1===e.kind?e.getUTCSeconds():e.getSeconds()}(e),function(e){return 1===e.kind?e.getUTCMilliseconds():e.getMilliseconds()}(e),e.kind)}(n,function(e){return-2147483648===e?e:-e}(o)))>0?o-1:o,bt((()=>wo(0,as(new ks(8,new Ns(0)),r<100),(()=>{}))),as(new ks(8,new Ns(1)),r>=13))}))()}function Os(e,t){return null!=ge(pe(e),t)?new yt(0,void 0):new yt(1,new ks(3))}function Ps(e){return!(e.length<=320)||e.indexOf("..")>=0||e.indexOf(".@")>=0||null==ge(/^[A-Z0-9][A-Z0-9._%+-]{0,63}@(?:[A-Z0-9-]{1,63}\.){1,125}[A-Z]{2,63}$/giu,e)?new yt(1,new ks(6)):new yt(0,void 0)}function Ds(e,t){return 0===t.indexOf(e)?new yt(1,new ks(10,e)):new yt(0,void 0)}function Fs(e,t){return us(function(e,t){return function(e,t,n){e:for(;;){const r=e,o=t,i=n;if(Qe(i))return _t(it,r);{const s=po(0,(()=>bt((e=>wo(0,r,(t=>Xe(e,t)))),o(tt(i)))))();if(1===s.tag)return s;e=s,t=o,n=nt(i);continue e}}}(new yt(0,Je()),e,t)}((e=>e(t)),e))}const Rs=e=>Fs(ut([As,e=>Ts(60,e),e=>Ds("-",e),e=>Ds("'",e),e=>Os("(^[A-Za-zÀ-ÖØ-öø-ÿĀ-ž])[A-Za-zÀ-ÖØ-öø-ÿĀ-ž\\- ']{0,59}$",e)]),e),Gs=e=>Fs(ut([As,e=>Ts(60,e),e=>Os("(^[0-9A-Za-z])[0-9A-Za-z\\- '\\/,\\.]{0,59}$",e)]),e),Us=e=>Fs(ut([As,Ps]),e);const Ls=e=>Fs(ut([As,e=>Ts(60,e),e=>Os("(^[A-Za-z])[A-Za-z\\- ]{0,59}$",e)]),e),Bs=e=>Fs(ut([As,e=>Ts(4,e),Ms]),e);var Hs=null;try{Hs=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch(vn){}function js(e,t,n){this.low=0|e,this.high=0|t,this.unsigned=!!n}function zs(e){return!0===(e&&e.__isLong__)}js.prototype.GetHashCode=function(){let e=this.unsigned?1:0;return e=(e<<5)+e^this.high,e=(e<<5)+e^this.low,e},js.prototype.Equals=function(e){return wu(this,e)},js.prototype.CompareTo=function(e){return vu(this,e)},js.prototype.toString=function(e){return du(this,e)},js.prototype.toJSON=function(){return du(this)},js.prototype[le]=function(){const e=this;return{multiply:t=>xu(e,t),toPrecision:t=>String(e)+(0).toPrecision(t).substr(1),toExponential:t=>String(e)+(0).toExponential(t).substr(1),toFixed:t=>String(e)+(0).toFixed(t).substr(1),toHex:()=>{return du(e.unsigned?e:function(e,t,n){return n?function(e,t){return new js(e[0]|e[1]<<8|e[2]<<16|e[3]<<24,e[4]|e[5]<<8|e[6]<<16|e[7]<<24,t)}(e,t):function(e,t){return new js(e[4]<<24|e[5]<<16|e[6]<<8|e[7],e[0]<<24|e[1]<<16|e[2]<<8|e[3],t)}(e,t)}((t=e,n?function(e){var t=e.high,n=e.low;return[255&n,n>>>8&255,n>>>16&255,n>>>24,255&t,t>>>8&255,t>>>16&255,t>>>24]}(t):function(e){var t=e.high,n=e.low;return[t>>>24,t>>>16&255,t>>>8&255,255&t,n>>>24,n>>>16&255,n>>>8&255,255&n]}(t)),!0),16);var t,n}}},js.prototype.__isLong__,Object.defineProperty(js.prototype,"__isLong__",{value:!0});var qs={},Ws={};function Vs(e,t){var n,r,o;return t?(o=0<=(e>>>=0)&&e<256)&&(r=Ws[e])?r:(n=Ys(e,(0|e)<0?-1:0,!0),o&&(Ws[e]=n),n):(o=-128<=(e|=0)&&e<128)&&(r=qs[e])?r:(n=Ys(e,e<0?-1:0,!1),o&&(qs[e]=n),n)}function Zs(e,t){if(isNaN(e))return t?ou:ru;if(t){if(e<0)return ou;if(e>=eu)return lu}else{if(e<=-tu)return cu;if(e+1>=tu)return au}return e<0?bu(Zs(-e,t)):Ys(e%Qs|0,e/Qs|0,t)}function Ys(e,t,n){return new js(e,t,n)}var Js=Math.pow;function Xs(e,t,n){if(0===e.length)throw Error("empty string");if("NaN"===e||"Infinity"===e||"+Infinity"===e||"-Infinity"===e)return ru;if("number"==typeof t?(n=t,t=!1):t=!!t,(n=n||10)<2||36<n)throw RangeError("radix");var r=e.indexOf("-");if(r>0)throw Error("interior hyphen");if(0===r)return bu(Xs(e.substring(1),t,n));for(var o=Zs(Js(n,8)),i=ru,s=0;s<e.length;s+=8){var u=Math.min(8,e.length-s),a=parseInt(e.substring(s,s+u),n);i=Cu(u<8?xu(i,Zs(Js(n,u))):i=xu(i,o),Zs(a))}return i.unsigned=t,i}function Ks(e,t){return"number"==typeof e?Zs(e,t):"string"==typeof e?Xs(e,t):Ys(e.low,e.high,"boolean"==typeof t?t:e.unsigned)}var Qs=4294967296,eu=Qs*Qs,tu=eu/2,nu=Vs(1<<24),ru=Vs(0),ou=Vs(0,!0),iu=Vs(1),su=Vs(1,!0),uu=Vs(-1),au=Ys(-1,2147483647,!1),lu=Ys(-1,-1,!0),cu=Ys(0,-2147483648,!1);function $u(e){return e.unsigned?e.low>>>0:e.low}function fu(e){return e.unsigned?(e.high>>>0)*Qs+(e.low>>>0):e.high*Qs+(e.low>>>0)}function du(e,t){if((t=t||10)<2||36<t)throw RangeError("radix");if(hu(e))return"0";if(mu(e)){if(wu(e,cu)){var n=Zs(t),r=Eu(e,n),o=Su(xu(r,n),e);return du(r,t)+$u(o).toString(t)}return"-"+du(bu(e),t)}for(var i=Zs(Js(t,6),e.unsigned),s=e,u="";;){var a=Eu(s,i),l=($u(Su(s,xu(a,i)))>>>0).toString(t);if(hu(s=a))return l+u;for(;l.length<6;)l="0"+l;u=""+l+u}}function hu(e){return 0===e.high&&0===e.low}function mu(e){return!e.unsigned&&e.high<0}function pu(e){return 1==(1&e.low)}function wu(e,t){return zs(t)||(t=Ks(t)),(e.unsigned===t.unsigned||e.high>>>31!=1||t.high>>>31!=1)&&e.high===t.high&&e.low===t.low}function gu(e,t){return vu(e,t)<0}function yu(e,t){return vu(e,t)>0}function _u(e,t){return vu(e,t)>=0}function vu(e,t){if(zs(t)||(t=Ks(t)),wu(e,t))return 0;var n=mu(e),r=mu(t);return n&&!r?-1:!n&&r?1:e.unsigned?t.high>>>0>e.high>>>0||t.high===e.high&&t.low>>>0>e.low>>>0?-1:1:mu(Su(e,t))?-1:1}function bu(e){return!e.unsigned&&wu(e,cu)?cu:Cu(function(e){return Ys(~e.low,~e.high,e.unsigned)}(e),iu)}function Cu(e,t){zs(t)||(t=Ks(t));var n=e.high>>>16,r=65535&e.high,o=e.low>>>16,i=65535&e.low,s=t.high>>>16,u=65535&t.high,a=t.low>>>16,l=0,c=0,$=0,f=0;return $+=(f+=i+(65535&t.low))>>>16,c+=($+=o+a)>>>16,l+=(c+=r+u)>>>16,l+=n+s,Ys(($&=65535)<<16|(f&=65535),(l&=65535)<<16|(c&=65535),e.unsigned)}function Su(e,t){return zs(t)||(t=Ks(t)),Cu(e,bu(t))}function xu(e,t){if(hu(e))return e.unsigned?ou:ru;if(zs(t)||(t=Ks(t)),Hs)return Ys(Hs.mul(e.low,e.high,t.low,t.high),Hs.get_high(),e.unsigned);if(hu(t))return e.unsigned?ou:ru;if(wu(e,cu))return pu(t)?cu:ru;if(wu(t,cu))return pu(e)?cu:ru;if(mu(e))return mu(t)?xu(bu(e),bu(t)):bu(xu(bu(e),t));if(mu(t))return bu(xu(e,bu(t)));if(gu(e,nu)&&gu(t,nu))return Zs(fu(e)*fu(t),e.unsigned);var n=e.high>>>16,r=65535&e.high,o=e.low>>>16,i=65535&e.low,s=t.high>>>16,u=65535&t.high,a=t.low>>>16,l=65535&t.low,c=0,$=0,f=0,d=0;return f+=(d+=i*l)>>>16,$+=(f+=o*l)>>>16,f&=65535,$+=(f+=i*a)>>>16,c+=($+=r*l)>>>16,$&=65535,c+=($+=o*a)>>>16,$&=65535,c+=($+=i*u)>>>16,c+=n*l+r*a+o*u+i*s,Ys((f&=65535)<<16|(d&=65535),(c&=65535)<<16|($&=65535),e.unsigned)}function Eu(e,t){if(zs(t)||(t=Ks(t)),hu(t))throw Error("division by zero");var n,r,o;if(Hs)return e.unsigned||-2147483648!==e.high||-1!==t.low||-1!==t.high?Ys((e.unsigned?Hs.div_u:Hs.div_s)(e.low,e.high,t.low,t.high),Hs.get_high(),e.unsigned):e;if(hu(e))return e.unsigned?ou:ru;if(e.unsigned){if(t.unsigned||(t=function(e){return e.unsigned?e:Ys(e.low,e.high,!0)}(t)),yu(t,e))return ou;if(yu(t,function(e,t){if(zs(t)&&(t=$u(t)),0==(t&=63))return e;var n=e.high;return t<32?Ys(e.low>>>t|n<<32-t,n>>>t,e.unsigned):Ys(32===t?n:n>>>t-32,0,e.unsigned)}(e,1)))return su;o=ou}else{if(wu(e,cu))return wu(t,iu)||wu(t,uu)?cu:wu(t,cu)?iu:wu(n=function(e,t){return zs(t)&&(t=$u(t)),0==(t&=63)?e:t<32?Ys(e.low<<t,e.high<<t|e.low>>>32-t,e.unsigned):Ys(0,e.low<<t-32,e.unsigned)}(Eu(function(e,t){return zs(t)&&(t=$u(t)),0==(t&=63)?e:t<32?Ys(e.low>>>t|e.high<<32-t,e.high>>t,e.unsigned):Ys(e.high>>t-32,e.high>=0?0:-1,e.unsigned)}(e,1),t),1),ru)?mu(t)?iu:uu:o=Cu(n,Eu(r=Su(e,xu(t,n)),t));if(wu(t,cu))return e.unsigned?ou:ru;if(mu(e))return mu(t)?Eu(bu(e),bu(t)):bu(Eu(bu(e),t));if(mu(t))return bu(Eu(e,bu(t)));o=ru}for(r=e;_u(r,t);){n=Math.max(1,Math.floor(fu(r)/fu(t)));for(var i=Math.ceil(Math.log(n)/Math.LN2),s=i<=48?1:Js(2,i-48),u=Zs(n),a=xu(u,t);mu(a)||yu(a,r);)a=xu(u=Zs(n-=s,e.unsigned),t);hu(u)&&(u=iu),o=Cu(o,u),r=Su(r,a)}return o}const ku=Eu,Nu=fu;function Au(e){return e<0?Math.ceil(e):Math.floor(e)}function Mu(e=0,t=0,n=0,r=0,o=0){switch(arguments.length){case 1:return Tu(arguments[0]);case 3:e=0,t=arguments[0],n=arguments[1],r=arguments[2],o=0}return 864e5*e+36e5*t+6e4*n+1e3*r+o}function Tu(e){return Nu(ku(e,1e4))}function Iu(e,t){try{return t.contents=function(e){const t=e.search("\\."),n=e.search("\\:");if(-1===t&&-1===n){const t=parseInt(e,0);if(isNaN(t))throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`);return Mu(t,0,0,0,0)}if(n>0){const t=/^(-?)((\d+)\.)?(?:0*)([0-9]|0[0-9]|1[0-9]|2[0-3]):(?:0*)([0-5][0-9]|[0-9])(:(?:0*)([0-5][0-9]|[0-9]))?\.?(\d+)?$/.exec(e);if(null!=t&&null!=t[4]&&null!=t[5]){let n=0,r=0,o=0;const i=null!=t[1]&&"-"===t[1]?-1:1,s=+t[4],u=+t[5];if(null!=t[3]&&(n=+t[3]),null!=t[7]&&(o=+t[7]),null!=t[8])switch(t[8].length){case 1:r=100*+t[8];break;case 2:r=10*+t[8];break;case 3:r=+t[8];break;case 4:r=+t[8]/10;break;case 5:r=+t[8]/100;break;case 6:r=+t[8]/1e3;break;case 7:r=+t[8]/1e4;break;default:throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}return i*Mu(n,s,u,o,r)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}(e),!0}catch(e){return!1}}class Ou extends j{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class Pu extends j{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["PascalCase","CamelCase","SnakeCase"]}}class Du{constructor(){this.cache=new Map([])}}function Fu(){return new Du}function Ru(e){return e.slice(void 0,1).toLowerCase()+e.slice(1,e.length)}function Gu(e,t){switch(e.tag){case 2:return function(e,t,n,r,o=0){if("string"==typeof e){const n=e;e=pe(t,null!=r?r:0),t=n,r=void 0}if("function"==typeof n)return r=null==r?-1:r,t.substring(0,o)+t.substring(o).replace(e,(function(){let e=arguments[0];if(r){r--;const t=[],o=arguments.length,i="string"!=typeof arguments[o-1];let s=i?o-3:o-2;for(let e=0;e<s;e++)t.push(arguments[e]);t.index=arguments[s++],t.input=arguments[s++],i&&(t.groups=arguments[s]),e=n(t)}return e}));if(n=n.replace(/\$0/g,(e=>"$&")).replace(/\${([^}]+)}/g,"$<$1>"),null!=r){let i;const s=t.substring(o),u=ye(e,s),a=ye.length>r?(i=u[r-1],s.substring(0,i.index+i[0].length)):s;return t.substring(0,o)+a.replace(e,n)+t.substring(o+a.length)}return t.replace(e,n)}(Ru(t),"[A-Z]","_$0").toLowerCase();case 0:return t;default:return Ru(t)}}function Uu(e){return e}function Lu(e){return Array.from(e)}function Bu(e){return J(e,"O")}function Hu(e){return function(e,t="c",n){if(-1===["c","g","G"].indexOf(t))throw new Error("Custom formats are not supported");const r=Math.abs(function(e){return Au(e/864e5)}(e)),o=Math.abs(function(e){return Au(e%864e5/36e5)}(e)),i=Math.abs(function(e){return Au(e%36e5/6e4)}(e)),s=Math.abs(function(e){return Au(e%6e4/1e3)}(e)),u=Math.abs(function(e){return Au(e%1e3)}(e));return`${e<0?"-":""}${0!==r||"c"!==t&&"g"!==t?"c"===t?r+".":r+":":""}${"g"===t?o:f(o,2)}:${f(i,2)}:${f(s,2)}${0!==u||"c"!==t&&"g"!==t?"g"===t?"."+f(u,3):"."+function(e,t,n){let r=e.toString(10);for(;r.length<3;)r="0"+r;for(;r.length<7;)r+="0";return r}(u):""}`}(e)}function ju(){return null}function zu(e){return J(e,"O")}function qu(e,t){return JSON.stringify(t,T(2,null),D(e))}function Wu(e,t,n,r){const o=new q(null),i=ri(Ii(r),o,e);let s;if(qi(r)){const e=Ue((e=>{const r=Gu(t,Ti(e)),o=Vu(i,t,n,e[1]);return t=>i=>{const s=function(e,t){return e[t[0]]}(t,e);return(!n||n&&null!=s)&&(i[r]=o(s)),i}}),Hi(r));s=t=>nn(((e,n)=>n(t)(e)),{},e)}else{if(!zi(r)){let e;const t=Ii(r);throw e=Ee(Se("Cannot generate auto encoder for %s. Please pass an extra encoder."))(t),new Error(e)}s=e=>{const o=function(e,t){const n=Bi(t)[e.tag];if(null==n)throw new Error(`Cannot find case ${e.name} in union type`);return[n,e.fields]}(e,r),s=o[0],u=o[1],a=0|u.length;if(0===a)return Ti(s);{const e=0|a,r=Vi(s),o=Ge(new Array(e+1),0,e+1,null);o[0]=Ti(s);for(let s=1;s<=e;s++){const e=Vu(i,t,n,r[s-1][1]);o[s]=e(u[s-1])}return o}}}return o.contents=s,s}function Vu(e,t,n,r){const o=Ii(r),i=oi(o,e);if(null==i){if(Oi(r)){const o=Vu(e,t,n,Pi(r));return e=>Lu(on(o,e))}if(Fi(r)){const e=Ii(Gi(r));if("System.SByte"===e)return e=>e;if("System.Byte"===e)return e=>e;if("System.Int16"===e)return e=>e;if("System.UInt16"===e)return e=>e;if("System.Int32"===e)return e=>e;if("System.UInt32"===e)return e=>e;{const e=Ii(r);return ke(Se("Cannot generate auto encoder for %s.\nThoth.Json.Net only support the folluwing enum types:\n- sbyte\n- byte\n- int16\n- uint16\n- int\n- uint32\nIf you can't use one of these types, please pass an extra encoder.\n "))(e)}}if(Di(r)){if(Wi(r)){const o=Ue((r=>Vu(e,t,n,r)),ji(r));return e=>{return Lu((t=(e,t)=>o[e](t),n=e,Qt((()=>Wt(n)),((e,n)=>n["System.Collections.IEnumerator.MoveNext"]()?D(t(e,n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0),(e=>{s(e)}))));var t,n}}{const o=Ii(Ri(r));if("Microsoft.FSharp.Core.FSharpOption`1[System.Object]"===o){const o=new $((()=>{return o=Vu(e,t,n,bi(r)[0]),e=>{return null!=(t=L(o,e))?F(t):null;var t};var o}));return e=>null==e?null:o.Value(e)}if("Microsoft.FSharp.Collections.FSharpList`1[System.Object]"===o||"Microsoft.FSharp.Collections.FSharpSet`1[System.Object]"===o){const o=Vu(e,t,n,bi(r)[0]);return e=>Lu(on(o,e))}if("Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"===o){const o=bi(r)[0],i=Vu(e,t,n,bi(r)[1]);if("System.String"===Ii(o)||"System.Guid"===Ii(o))return e=>nn(((e,t)=>{const n=t;return e[n[0]]=i(n[1]),e}),{},e);{let r;const s=Vu(e,t,n,o);return r=s,e=>Lu(on((e=>{const t=e;return[r(t[0]),i(t[1])]}),e))}}return Wu(e,t,n,r)}}return"System.Boolean"===o?e=>e:"Microsoft.FSharp.Core.Unit"===o?ju:"System.String"===o?e=>e:"System.SByte"===o?e=>e:"System.Byte"===o?e=>e:"System.Int16"===o?e=>e:"System.UInt16"===o?e=>e:"System.Int32"===o?e=>e:"System.UInt32"===o?e=>e:"System.Double"===o?e=>e:"System.Single"===o?e=>e:"System.DateTime"===o?zu:"System.DateTimeOffset"===o?Bu:"System.TimeSpan"===o?Hu:"System.Guid"===o?Uu:"System.Object"===o?e=>e:Wu(e,t,n,r)}{const e=i;return t=>e.contents(t)}}function Zu(e,t,n,r){const o=U(t,new Pu(0)),i=U(r,!0);return Vu(function(e){return null!=e?ii(((e,t)=>new q(t[0])),e.Coders):si()}(n),o,i,e)}Fu(),Fu();const Yu=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,Ju=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,Xu=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function Ku(e,t){try{return t.contents=function(e){function t(e){return e.replace(Ju,"$1-$2-$3-$4-$5")}const n=e.trim().toLowerCase();if(Yu.test(n))return function(e,...t){if(0===t.length)return e.trim();const n="["+we(t.join(""))+"]+";return e.replace(new RegExp("^"+n),"").replace(new RegExp(n+"$"),"")}(n,"{","}","(",")");if(Ju.test(n))return t(n);if(Xu.test(n))return t(n.replace(/[\{\},]|0x/g,""));throw new Error("Guid should contain 32 digits with 4 dashes: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx")}(e),!0}catch(e){return!1}}function Qu(e,t){!function(e){if(null!=e&&0!==e){if(e%6e4!=0)throw new Error("Offset must be specified in whole minutes.");if(Math.abs(e/36e5)>14)throw new Error("Offset must be within plus or minus 14 hours.")}}(t);const n=new Date(e);return n.offset=null!=t?t:-6e4*(new Date).getTimezoneOffset(),n}function ea(e,t){try{return t.contents=function(e){const[t,n]=Q(e),r=null==n?-6e4*t.getTimezoneOffset():"Z"===n?0:6e4*n;return Qu(t.getTime(),r)}(e),!0}catch(e){return!1}}class ta{constructor(e){this.k=e}}function na(e){return new ta(e)}function ra(e){return e.k}class oa extends ta{constructor(e,t,n,r){super(e),this.left=t,this.right=n,this.h=0|r}}function ia(e,t,n,r){return new oa(e,t,n,r)}function sa(e){return e.left}function ua(e){return e.right}function aa(e){return e.h}function la(e,t){e:for(;;){const n=e,r=t;if(null!=n){const o=n;if(o instanceof oa){e=sa(o),t=la(ua(o),r+1);continue e}return r+1|0}return 0|r}}function ca(e){return la(e,0)}function $a(e,t,n){let r,o;if(null!=e){const t=e;r=t instanceof oa?aa(t):1}else r=0;if(null!=n){const e=n;o=e instanceof oa?aa(e):1}else o=0;const i=0|(r<o?o:r);return 0===i?na(t):ia(t,e,n,i+1)}function fa(e,t,n){let r,o,i,s,u,a;if(null!=e){const t=e;u=t instanceof oa?aa(t):1}else u=0;if(null!=n){const e=n;a=e instanceof oa?aa(e):1}else a=0;if(a>u+2){const i=F(n);if(i instanceof oa){if(r=sa(i),(null!=r?(o=r,o instanceof oa?aa(o):1):0)>u+1){const n=F(sa(i));if(n instanceof oa)return $a($a(e,t,sa(n)),ra(n),$a(ua(n),ra(i),ua(i)));throw new Error("internal error: Set.rebalance")}return $a($a(e,t,sa(i)),ra(i),ua(i))}throw new Error("internal error: Set.rebalance")}if(u>a+2){const r=F(e);if(r instanceof oa){if(i=ua(r),(null!=i?(s=i,s instanceof oa?aa(s):1):0)>a+1){const e=F(ua(r));if(e instanceof oa)return $a($a(sa(r),ra(r),sa(e)),ra(e),$a(ua(e),t,n));throw new Error("internal error: Set.rebalance")}return $a(sa(r),ra(r),$a(ua(r),t,n))}throw new Error("internal error: Set.rebalance")}return $a(e,t,n)}function da(e,t,n){if(null!=n){const r=n,o=0|e.Compare(t,ra(r));if(r instanceof oa)return o<0?fa(da(e,t,sa(r)),ra(r),ua(r)):0===o?n:fa(sa(r),ra(r),da(e,t,ua(r)));{const o=0|e.Compare(t,ra(r));return o<0?ia(t,void 0,n,2):0===o?n:ia(t,n,void 0,2)}}return na(t)}function ha(e,t,n){e:for(;;){const r=e,o=t,i=n;if(null!=i){const s=i,u=0|r.Compare(o,ra(s));if(s instanceof oa){if(u<0){e=r,t=o,n=sa(s);continue e}if(0===u)return!0;e=r,t=o,n=ua(s);continue e}return 0===u}return!1}}function ma(e,t){e:for(;;){const n=e,r=t;if(null!=r){const o=r;if(o instanceof oa){ma(n,sa(o)),n(ra(o)),e=n,t=ua(o);continue e}n(ra(o))}break}}class pa extends z{constructor(e,t){super(),this.stack=e,this.started=t}}function wa(e){e:for(;;){const t=e;if(Qe(t))return Je();{const n=tt(t),r=nt(t);if(null!=n){const o=n;if(o instanceof oa){e=st([sa(o),na(ra(o)),ua(o)],r);continue e}return t}e=r;continue e}}}function ga(e){return new pa(wa(Ke(e)),!1)}function ya(e){if(e.started){const t=e.stack;if(Qe(t))return function(){throw new Error("Enumeration already started")}();if(null!=tt(t))return ra(tt(t));throw new Error("Please report error: Set iterator, unexpected stack for current")}return function(){throw new Error("Enumeration not started")}()}function _a(e){let t=ga(e);return{"System.Collections.Generic.IEnumerator`1.get_Current":()=>ya(t),"System.Collections.IEnumerator.get_Current":()=>ya(t),"System.Collections.IEnumerator.MoveNext":()=>function(e){if(e.started){const t=e.stack;if(Qe(t))return!1;if(null!=tt(t)){if(tt(t)instanceof oa)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=wa(nt(t)),!Qe(e.stack)}throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}return e.started=!0,!Qe(e.stack)}(t),"System.Collections.IEnumerator.Reset"(){t=ga(e)},Dispose(){}}}function va(e,t,n){return null==t?null==n?0:-1:null==n?1:0|function(e,t,n){e:for(;;){const r=e,o=t,i=n,s=[o,i];if(Qe(s[0]))return Qe(s[1])?0:-1;if(Qe(s[1]))return 1;if(null!=tt(s[1]))if(null!=tt(s[0])){const u=tt(s[0]),a=tt(s[1]);if(u instanceof oa)if(null==sa(u)){if(!(a instanceof oa)){const o=0|r.Compare(ra(u),ra(a));if(0!==o)return 0|o;e=r,t=Xe(ua(u),nt(s[0])),n=Xe(void 0,nt(s[1]));continue e}if(null==sa(a)){const o=0|r.Compare(ra(u),ra(a));if(0!==o)return 0|o;e=r,t=Xe(ua(u),nt(s[0])),n=Xe(ua(a),nt(s[1]));continue e}{const s=[o,i];let u,a,l,c,$;switch(Qe(s[0])?Qe(s[1])?u=2:null!=tt(s[1])?(u=1,c=nt(s[1]),$=tt(s[1])):u=2:null!=tt(s[0])?(u=0,a=nt(s[0]),l=tt(s[0])):Qe(s[1])?u=2:null!=tt(s[1])?(u=1,c=nt(s[1]),$=tt(s[1])):u=2,u){case 0:if(l instanceof oa){e=r,t=st([sa(l),ia(ra(l),void 0,ua(l),0)],a),n=i;continue e}e=r,t=st([void 0,na(ra(l))],a),n=i;continue e;case 1:if($ instanceof oa){e=r,t=o,n=st([sa($),ia(ra($),void 0,ua($),0)],c);continue e}e=r,t=o,n=st([void 0,na(ra($))],c);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const s=[o,i];let u,a,l,c,$;switch(Qe(s[0])?Qe(s[1])?u=2:null!=tt(s[1])?(u=1,c=nt(s[1]),$=tt(s[1])):u=2:null!=tt(s[0])?(u=0,a=nt(s[0]),l=tt(s[0])):Qe(s[1])?u=2:null!=tt(s[1])?(u=1,c=nt(s[1]),$=tt(s[1])):u=2,u){case 0:if(l instanceof oa){e=r,t=st([sa(l),ia(ra(l),void 0,ua(l),0)],a),n=i;continue e}e=r,t=st([void 0,na(ra(l))],a),n=i;continue e;case 1:if($ instanceof oa){e=r,t=o,n=st([sa($),ia(ra($),void 0,ua($),0)],c);continue e}e=r,t=o,n=st([void 0,na(ra($))],c);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else{if(!(a instanceof oa)){const o=0|r.Compare(ra(u),ra(a));if(0!==o)return 0|o;e=r,t=nt(s[0]),n=nt(s[1]);continue e}if(null==sa(a)){const o=0|r.Compare(ra(u),ra(a));if(0!==o)return 0|o;e=r,t=Xe(void 0,nt(s[0])),n=Xe(ua(a),nt(s[1]));continue e}{const s=[o,i];let u,a,l,c,$;switch(Qe(s[0])?Qe(s[1])?u=2:null!=tt(s[1])?(u=1,c=nt(s[1]),$=tt(s[1])):u=2:null!=tt(s[0])?(u=0,a=nt(s[0]),l=tt(s[0])):Qe(s[1])?u=2:null!=tt(s[1])?(u=1,c=nt(s[1]),$=tt(s[1])):u=2,u){case 0:if(l instanceof oa){e=r,t=st([sa(l),ia(ra(l),void 0,ua(l),0)],a),n=i;continue e}e=r,t=st([void 0,na(ra(l))],a),n=i;continue e;case 1:if($ instanceof oa){e=r,t=o,n=st([sa($),ia(ra($),void 0,ua($),0)],c);continue e}e=r,t=o,n=st([void 0,na(ra($))],c);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}}else{tt(s[1]);const u=[o,i];let a,l,c,$,f;switch(Qe(u[0])?Qe(u[1])?a=2:null!=tt(u[1])?(a=1,$=nt(u[1]),f=tt(u[1])):a=2:null!=tt(u[0])?(a=0,l=nt(u[0]),c=tt(u[0])):Qe(u[1])?a=2:null!=tt(u[1])?(a=1,$=nt(u[1]),f=tt(u[1])):a=2,a){case 0:if(c instanceof oa){e=r,t=st([sa(c),ia(ra(c),void 0,ua(c),0)],l),n=i;continue e}e=r,t=st([void 0,na(ra(c))],l),n=i;continue e;case 1:if(f instanceof oa){e=r,t=o,n=st([sa(f),ia(ra(f),void 0,ua(f),0)],$);continue e}e=r,t=o,n=st([void 0,na(ra(f))],$);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else{if(null==tt(s[0])){e=r,t=nt(s[0]),n=nt(s[1]);continue e}{tt(s[0]);const u=[o,i];let a,l,c,$,f;switch(Qe(u[0])?Qe(u[1])?a=2:null!=tt(u[1])?(a=1,$=nt(u[1]),f=tt(u[1])):a=2:null!=tt(u[0])?(a=0,l=nt(u[0]),c=tt(u[0])):Qe(u[1])?a=2:null!=tt(u[1])?(a=1,$=nt(u[1]),f=tt(u[1])):a=2,a){case 0:if(c instanceof oa){e=r,t=st([sa(c),ia(ra(c),void 0,ua(c),0)],l),n=i;continue e}e=r,t=st([void 0,na(ra(c))],l),n=i;continue e;case 1:if(f instanceof oa){e=r,t=o,n=st([sa(f),ia(ra(f),void 0,ua(f),0)],$);continue e}e=r,t=o,n=st([void 0,na(ra(f))],$);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}break}}(e,Ke(t),Ke(n))}function ba(e,t,n){let r=n;ma((e=>{t[r]=e,r=r+1|0}),e)}function Ca(e,t){if(r(t))return function(e,t){return Le(((t,n)=>da(e,n,t)),void 0,t)}(e,t);if(t instanceof He)return function(e,t){return ot(((t,n)=>da(e,n,t)),void 0,t)}(e,t);{const n=l(t);try{return function(e,t,n){for(;;){const r=e,o=t,i=n;if(!i["System.Collections.IEnumerator.MoveNext"]())return o;e=r,t=da(r,i["System.Collections.Generic.IEnumerator`1.get_Current"](),o),n=i}}(e,void 0,n)}finally{s(n)}}}class Sa{constructor(e,t){this.comparer=e,this.tree=t}GetHashCode(){return 0|function(e){let t,n=0;const r=l(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();)n=0|(t=0|y(r["System.Collections.Generic.IEnumerator`1.get_Current"]()),(n<<1)+t+631)}finally{s(r)}return 0|Math.abs(n)}(this)}Equals(e){return e instanceof Sa&&0===va(xa(this),Ea(this),Ea(e))}toString(){return"set ["+Ie("; ",on((e=>H(e)),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(e){return Array.from(this)}CompareTo(e){return 0|va(xa(this),Ea(this),Ea(e))}"System.Collections.Generic.ICollection`1.Add2B595"(e){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Clear"(){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Remove2B595"(e){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Contains2B595"(e){return ha(xa(this),e,Ea(this))}"System.Collections.Generic.ICollection`1.CopyToZ2E171D71"(e,t){ba(Ea(this),e,t)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|ka(this)}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return 0|ka(this)}GetEnumerator(){return _a(Ea(this))}[Symbol.iterator](){return c(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return _a(Ea(this))}get size(){return 0|ka(this)}add(e){throw new Error("Set cannot be mutated")}clear(){throw new Error("Set cannot be mutated")}delete(e){throw new Error("Set cannot be mutated")}has(e){return function(e,t){return ha(xa(e),t,Ea(e))}(this,e)}keys(){return on((e=>e),this)}values(){return on((e=>e),this)}entries(){return on((e=>[e,e]),this)}forEach(e,t){const n=this;rn((t=>{e(t,t,n)}),n)}}function xa(e){return e.comparer}function Ea(e){return e.tree}function ka(e){return ca(Ea(e))}function Na(e,t,n){try{return"Expecting "+e+" but instead got:"+(n?"\n":" ")+JSON.stringify(t,null,4)}catch(t){return"Expecting "+e+" but decoder failed. Couldn't report given value due to circular structure."+(n?"\n":" ")}}function Aa(e,t,n){const r=t(e,n);if(1===r.tag){const e=r.fields[0];return new yt(1,function(e,t){const n=2===t.tag?Na(t.fields[0],t.fields[1],!0):1===t.tag?Na(t.fields[0],t.fields[1],!1)+"\nReason: "+t.fields[2]:3===t.tag?Na(t.fields[0],t.fields[1],!0):4===t.tag?Na(t.fields[0],t.fields[1],!0)+"\nNode `"+t.fields[2]+"` is unkown.":5===t.tag?"Expecting "+t.fields[0]+".\n"+JSON.stringify(t.fields[1],null,4):7===t.tag?"The following errors were found:\n\n"+Ie("\n\n",t.fields[0]):6===t.tag?"The following `failure` occurred with the decoder: "+t.fields[0]:Na(t.fields[0],t.fields[1],!1);return 7===t.tag?n:"Error at: `"+e+"`\n"+n}(e[0],e[1]))}return new yt(0,r.fields[0])}function Ma(e,t){try{return Aa("$",e,JSON.parse(t))}catch(e){if(e instanceof SyntaxError)return new yt(1,"Given an invalid JSON: "+e.message);throw e}}const Ta=e=>t=>{const n="a sbyte",r=e,o=t;if("number"==typeof o){const e=o;return isFinite(e)&&Math.floor(e)===e?-128<=e&&e<=127?new yt(0,(e+128&255)-128):new yt(1,[r,new Ou(1,n,e,"Value was either too large or too small for a sbyte")]):new yt(1,[r,new Ou(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[Ki(o,511,!1,8,new q((()=>t),(e=>{t=0|e}))),t],e[0]?new yt(0,e[1]):new yt(1,[r,new Ou(0,n,o)])}return new yt(1,[r,new Ou(0,n,o)])},Ia=e=>t=>{const n="a byte",r=e,o=t;if("number"==typeof o){const e=o;return isFinite(e)&&Math.floor(e)===e?0<=e&&e<=255?new yt(0,255&e):new yt(1,[r,new Ou(1,n,e,"Value was either too large or too small for a byte")]):new yt(1,[r,new Ou(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[Ki(o,511,!0,8,new q((()=>t),(e=>{t=e}))),t],e[0]?new yt(0,e[1]):new yt(1,[r,new Ou(0,n,o)])}return new yt(1,[r,new Ou(0,n,o)])},Oa=e=>t=>{const n="an int16",r=e,o=t;if("number"==typeof o){const e=o;return isFinite(e)&&Math.floor(e)===e?-32768<=e&&e<=32767?new yt(0,(e+32768&65535)-32768):new yt(1,[r,new Ou(1,n,e,"Value was either too large or too small for "+n)]):new yt(1,[r,new Ou(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[Ki(o,511,!1,16,new q((()=>t),(e=>{t=0|e}))),t],e[0]?new yt(0,e[1]):new yt(1,[r,new Ou(0,n,o)])}return new yt(1,[r,new Ou(0,n,o)])},Pa=e=>t=>{const n="an uint16",r=e,o=t;if("number"==typeof o){const e=o;return isFinite(e)&&Math.floor(e)===e?0<=e&&e<=65535?new yt(0,65535&e):new yt(1,[r,new Ou(1,n,e,"Value was either too large or too small for "+n)]):new yt(1,[r,new Ou(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[Ki(o,511,!0,16,new q((()=>t),(e=>{t=e}))),t],e[0]?new yt(0,e[1]):new yt(1,[r,new Ou(0,n,o)])}return new yt(1,[r,new Ou(0,n,o)])},Da=e=>t=>{const n="an int",r=e,o=t;if("number"==typeof o){const e=o;return isFinite(e)&&Math.floor(e)===e?-2147483648<=e&&e<=2147483647?new yt(0,~~e):new yt(1,[r,new Ou(1,n,e,"Value was either too large or too small for an int")]):new yt(1,[r,new Ou(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[Ki(o,511,!1,32,new q((()=>t),(e=>{t=0|e}))),t],e[0]?new yt(0,e[1]):new yt(1,[r,new Ou(0,n,o)])}return new yt(1,[r,new Ou(0,n,o)])},Fa=e=>t=>{const n="an uint32",r=e,o=t;if("number"==typeof o){const e=o;return isFinite(e)&&Math.floor(e)===e?0<=e&&e<=4294967295?new yt(0,e>>>0):new yt(1,[r,new Ou(1,n,e,"Value was either too large or too small for "+n)]):new yt(1,[r,new Ou(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[Ki(o,511,!0,32,new q((()=>t),(e=>{t=e}))),t],e[0]?new yt(0,e[1]):new yt(1,[r,new Ou(0,n,o)])}return new yt(1,[r,new Ou(0,n,o)])};function Ra(e,t,n,r){let o;const i=n+".["+h(e)+"]";if(Array.isArray(r)){const n=r;return e<n.length?t(i,n[e]):new yt(1,[i,new Ou(5,"a longer array. Need index `"+h(e)+"` but there are only `"+(o=n.length,h(o)+"` entries"),r)])}return new yt(1,[i,new Ou(0,"an array",r)])}function Ga(e,t,n){if(Array.isArray(n)){let r=-1;return _t(it,Le(((n,o)=>{if(r=r+1|0,0===n.tag){const i=e(t+".["+h(r)+"]",o);return 0===i.tag?new yt(0,Xe(i.fields[0],n.fields[0])):new yt(1,i.fields[0])}return n}),new yt(0,Je()),n))}return new yt(1,[t,new Ou(0,"a list",n)])}function Ua(e,t,n){if(Array.isArray(n)){let r=-1;const o=n;return Le(((n,o)=>{if(r=r+1|0,0===n.tag){const i=n.fields[0],s=e(t+".["+h(r)+"]",o);return 0===s.tag?(i[r]=s.fields[0],new yt(0,i)):new yt(1,s.fields[0])}return n}),new yt(0,Ge(new Array(o.length),0,o.length,null)),o)}return new yt(1,[t,new Ou(0,"an array",n)])}function La(e,t,n,r){const o=t(n,r);return 0===o.tag?e(o.fields[0],n,r):new yt(1,o.fields[0])}function Ba(e,t){let n;const r=e;return n=e=>t=>Ra(0,r,e,t),e=>r=>La(T(3,(e=>{let n;const r=t;return n=e=>t=>Ra(1,r,e,t),t=>r=>La(((t,n,r)=>new yt(0,[e,t])),T(2,n),t,r)})),T(2,n),e,r)}function Ha(e){return Qo(e)}function ja(e){return function(e,t){return new Sa(e,t)}(t={Compare:k},Ca(t,e));var t}function za(e,t,n,r){let o,i;return t.length!==r.length?new yt(1,[n,new Ou(6,(o=0|r.length,i=0|t.length,Ee(Se("Expected %i %s but got %i"))(i)(e)(o)))]):Be(((e,t,r)=>0===r.tag?_t((e=>Xe(e,r.fields[0])),t(n)(e)):r),r,t,new yt(0,Je()))}function qa(e,t,n,r,o,i){const s=function(e,t){return t.find((e=>Ti(e)===r))}(0,Bi(n));if(null!=s){const n=s;return 0===i.length?new yt(0,Zi(n,[])):_t((e=>Zi(n,rt(e))),za("union fields",Ue((n=>Va(e,t,!1,n[1])),Vi(n)),o,i))}return new yt(1,[o,new Ou(6,"Cannot find case "+r+" in "+Ii(n))])}function Wa(e,t,n,r){const o=new q(null),i=ri(Ii(r),o,e);let s;if(qi(r)){const e=Ue((e=>[Gu(t,Ti(e)),Va(i,t,!1,e[1])]),Hi(r));s=t=>n=>_t((e=>function(e,t){const n=Hi(e);if(n.length!==t.length)throw new Error(`Expected an array of length ${n.length} but got ${t.length}`);return null!=e.construct?new e.construct(...t):n.reduce(((e,[n,r],o)=>(e[n]=t[o],e)),{})}(r,rt(e))),function(e,t,n){return null===n||Object.getPrototypeOf(n||!1)!==Object.prototype?new yt(1,[t,new Ou(0,"an object",n)]):function(e,t,n){return t.reduceRight(((t,n)=>e(n,t)),n)}(T(2,(e=>{const r=e[0];return o=>0===o.tag?_t((e=>Xe(e,o.fields[0])),e[1](t+"."+r)(n[r])):o})),e,new yt(0,Je()))}(e,t,n))}else if(zi(r))s=e=>n=>{if("string"==typeof n)return qa(i,t,r,n,e,[]);if(Array.isArray(n)){const o=n;return qa(i,t,r,o[0],e,o.slice(1,o.length))}return new yt(1,[e,new Ou(0,"a string or array",n)])};else{if(!n){let e;const t=Ii(r);throw e=Ee(Se("Cannot generate auto decoder for %s. Please pass an extra decoder."))(t),new Error(e)}s=e=>t=>new yt(1,[e,new Ou(2,"an extra coder for "+Ii(r),t)])}return o.contents=s,s}function Va(e,t,n,r){let o,i,s;const u=Ii(r),a=oi(u,e);if(null==a){if(Oi(r)){const n=Va(e,t,!1,Pi(r));return e=>t=>Ua(T(2,n),e,t)}if(Fi(r)){const e=Ii(Gi(r));if("System.SByte"===e)return e=>t=>{const n=r,o=e,i=t,s=Ta(o)(i);if(1===s.tag)return new yt(1,s.fields[0]);{const e=s.fields[0];return tn(e,Ui(n),{Equals:(e,t)=>e===t,GetHashCode:w})?new yt(0,Li(n,e.toString())):new yt(1,[o,new Ou(1,Ii(n),i,"Unkown value provided for the enum")])}};if("System.Byte"===e)return e=>t=>{const n=r,o=e,i=t,s=Ia(o)(i);if(1===s.tag)return new yt(1,s.fields[0]);{const e=s.fields[0];return tn(e,Ui(n),{Equals:(e,t)=>e===t,GetHashCode:w})?new yt(0,Li(n,e.toString())):new yt(1,[o,new Ou(1,Ii(n),i,"Unkown value provided for the enum")])}};if("System.Int16"===e)return e=>t=>{const n=r,o=e,i=t,s=Oa(o)(i);if(1===s.tag)return new yt(1,s.fields[0]);{const e=s.fields[0];return tn(e,Ui(n),{Equals:(e,t)=>e===t,GetHashCode:w})?new yt(0,Li(n,e.toString(u))):new yt(1,[o,new Ou(1,Ii(n),i,"Unkown value provided for the enum")])}var u};if("System.UInt16"===e)return e=>t=>{const n=r,o=e,i=t,s=Pa(o)(i);if(1===s.tag)return new yt(1,s.fields[0]);{const e=s.fields[0];return tn(e,Ui(n),{Equals:(e,t)=>e===t,GetHashCode:w})?new yt(0,Li(n,e.toString())):new yt(1,[o,new Ou(1,Ii(n),i,"Unkown value provided for the enum")])}};if("System.Int32"===e)return e=>t=>{const n=r,o=e,i=t,s=Da(o)(i);if(1===s.tag)return new yt(1,s.fields[0]);{const e=s.fields[0];return tn(e,Ui(n),{Equals:(e,t)=>e===t,GetHashCode:w})?new yt(0,Li(n,h(e))):new yt(1,[o,new Ou(1,Ii(n),i,"Unkown value provided for the enum")])}};if("System.UInt32"===e)return e=>t=>{const n=r,o=e,i=t,s=Fa(o)(i);if(1===s.tag)return new yt(1,s.fields[0]);{const e=s.fields[0];return tn(e,Ui(n),{Equals:(e,t)=>e===t,GetHashCode:w})?new yt(0,Li(n,e.toString())):new yt(1,[o,new Ou(1,Ii(n),i,"Unkown value provided for the enum")])}};{const e=Ii(r),t=ke(Se("Cannot generate auto decoder for %s.\nThoth.Json.Net only support the folluwing enum types:\n- sbyte\n- byte\n- int16\n- uint16\n- int\n- uint32\nIf you can't use one of these types, please pass an extra decoder.\n "))(e);return e=>t(e)}}if(Di(r)){if(Wi(r)){const n=Ue((n=>Va(e,t,!1,n)),ji(r));return e=>t=>Array.isArray(t)?_t((e=>rt(e)),za("tuple elements",n,e,t)):new yt(1,[e,new Ou(0,"an array",t)])}{const u=Ii(Ri(r));if("Microsoft.FSharp.Core.FSharpOption`1[System.Object]"===u)return o=Va(e,t,!0,bi(r)[0]),e=>t=>{return n=T(2,o),r=e,null==(i=t)?new yt(0,void 0):_t(D,n(r,i));var n,r,i};if("Microsoft.FSharp.Collections.FSharpList`1[System.Object]"===u)return i=Va(e,t,!1,bi(r)[0]),e=>t=>Ga(T(2,i),e,t);if("Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"===u){const n=Va(e,t,!1,bi(r)[0]),o=Va(e,t,!1,bi(r)[1]);let i;const u=ut([e=>t=>function(e,t,n,r){return null===r||Object.getPrototypeOf(r||!1)!==Object.prototype?new yt(1,[n,new Ou(0,"an object",r)]):nn(((o,i)=>{if(0===o.tag){const s=e(n,i);if(0===s.tag){const e=t(n+"."+i,r[i]);return 0===e.tag?new yt(0,Xe([s.fields[0],e.fields[0]],o.fields[0])):new yt(1,e.fields[0])}return new yt(1,s.fields[0])}return o}),new yt(0,Je()),Object.keys(r))}(T(2,n),T(2,o),e,t),(s=Ba(T(2,n),T(2,o)),e=>t=>Ga(T(2,s),e,t))]);return i=e=>t=>{return n=e,r=t,((e,t)=>{e:for(;;){const o=e,i=t;if(Qe(o))return new yt(1,[n,new Ou(7,i)]);{const s=Aa(n,T(2,tt(o)),r);if(1===s.tag){e=nt(o),t=lt(i,Ke(s.fields[0]));continue e}return new yt(0,s.fields[0])}}})(u,Je());var n,r},e=>t=>function(e,t,n,r){const o=t(n,r);return 1===o.tag?new yt(1,o.fields[0]):new yt(0,e(o.fields[0]))}(Ha,T(2,i),e,t)}if("Microsoft.FSharp.Collections.FSharpSet`1[System.Object]"===u){const n=Va(e,t,!1,bi(r)[0]);return e=>t=>{const r=Ua(T(2,n),e,t);return 0===r.tag?new yt(0,ja(r.fields[0])):new yt(1,r.fields[0])}}return Wa(e,t,n,r)}}return"System.Boolean"===u?e=>t=>{return n=e,"boolean"==typeof(r=t)?new yt(0,r):new yt(1,[n,new Ou(0,"a boolean",r)]);var n,r}:"Microsoft.FSharp.Core.Unit"===u?e=>t=>{return n=e,null==(r=t)?new yt(0,void 0):new yt(1,[n,new Ou(0,"null",r)]);var n,r}:"System.String"===u?e=>t=>{return n=e,"string"==typeof(r=t)?new yt(0,r):new yt(1,[n,new Ou(0,"a string",r)]);var n,r}:"System.SByte"===u?Ta:"System.Byte"===u?Ia:"System.Int16"===u?Oa:"System.UInt16"===u?Pa:"System.Int32"===u?Da:"System.UInt32"===u?Fa:"System.Double"===u?e=>t=>{return n=e,"number"==typeof(r=t)?new yt(0,r):new yt(1,[n,new Ou(0,"a float",r)]);var n,r}:"System.Single"===u?e=>t=>{return n=e,"number"==typeof(r=t)?new yt(0,r):new yt(1,[n,new Ou(0,"a float32",r)]);var n,r}:"System.DateTime"===u?e=>t=>function(e,t){if("string"==typeof t){let n,r=K();return n=[ee(t,new q((()=>r),(e=>{r=e}))),r],n[0]?new yt(0,function(e){return 1===e.kind?e:X(e.getTime(),1)}(n[1])):new yt(1,[e,new Ou(0,"a datetime",t)])}return new yt(1,[e,new Ou(0,"a datetime",t)])}(e,t):"System.DateTimeOffset"===u?e=>t=>function(e,t){if("string"==typeof t){let n,r=Qu(-621355968e5,0);return n=[ea(t,new q((()=>r),(e=>{r=e}))),r],n[0]?new yt(0,n[1]):new yt(1,[e,new Ou(0,"a datetimeoffset",t)])}return new yt(1,[e,new Ou(0,"a datetime",t)])}(e,t):"System.TimeSpan"===u?e=>t=>function(e,t){if("string"==typeof t){let n,r=0;return n=[Iu(t,new q((()=>r),(e=>{r=e}))),r],n[0]?new yt(0,n[1]):new yt(1,[e,new Ou(0,"a timespan",t)])}return new yt(1,[e,new Ou(0,"a timespan",t)])}(e,t):"System.Guid"===u?e=>t=>function(e,t){if("string"==typeof t){let n,r="00000000-0000-0000-0000-000000000000";return n=[Ku(t,new q((()=>r),(e=>{r=e}))),r],n[0]?new yt(0,n[1]):new yt(1,[e,new Ou(0,"a guid",t)])}return new yt(1,[e,new Ou(0,"a guid",t)])}(e,t):"System.Object"===u?e=>e=>new yt(0,e):Wa(e,t,n,r)}{const e=a;return t=>n=>e.contents(t)(n)}}function Za(e,t,n){const r=U(t,new Pu(0));return Va(function(e){return null!=e?ii(((e,t)=>new q(t[1])),e.Coders):si()}(n),r,!1,e)}class Ya extends z{constructor(e,t,n,r,o,i,s){super(),this.Name=e,this.Title=t,this.Gender=n,this.Email=r,this.MobilePhone=o,this.DateOfBirth=i,this.Address=s}}function Ja(){return xi("Dto.Api.Backend.Common.FullProfileDto",[],Ya,(()=>[["Name",$s()],["Title",Mi],["Gender",Mi],["Email",Mi],["MobilePhone",Mi],["DateOfBirth",Mi],["Address",hs()]]))}class Xa extends j{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Success","Failure","Info"]}}function Ka(e){switch(e.tag){case 0:return"text-green-700";case 2:return"text-blue-700";default:return"text-red-700"}}function Qa(e){switch(e.tag){case 0:return"bg-green-50";case 2:return"bg-blue-50";default:return"bg-red-50"}}function el(e){return e.tag,e.fields[0]}function tl(e){let t,n,r,o,i;const s=e.hideAlert,u=e.alert,a=xt();eo((()=>{!function(e,t){Nt(gt.Delay((()=>gt.Bind(wt((e=>{let t;const n=setTimeout((()=>{e.cancelToken.removeListener(t),e.onSuccess(void 0)}),5e3);t=e.cancelToken.addListener((()=>{clearTimeout(n),e.onCancel(new mt)}))})),(()=>(e(),gt.Zero()))))),t)}(s,a)}));const l=En("svg",A(ut([["className",Ie(" ",["h-5","w-5"])],["fill","currentColor"],["viewBox","0 0 20 20"],["xmlns","http://www.w3.org/2000/svg"],(t=Ke(En("path",{"fill-rule":"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"})),["children",Yr.Children.toArray(Array.from(t))])])));return En("div",A(ut([["className",Ie(" ",["rounded-md","p-4","my-4",Qa(u)])],(n=[En("div",A(ut([["className",Ie(" ",["flex"])],(r=[En("p",{className:Ie(" ",["text-sm",Ka(u)]),children:el(u)}),En("div",A(ut([["className",Ie(" ",["ml-auto"])],(o=[En("div",A(ut([["className",Ie(" ",["-mx-1.5","-my-1.5"])],(i=[En("button",{type:"button",className:Ie(" ",Xt(Vt((()=>en(Jt("inline-flex"),Vt((()=>en(Jt("rounded-md"),Vt((()=>en(Jt("p-1.5"),Vt((()=>en(Jt("focus:outline-none"),Vt((()=>en(Jt("focus:ring-2"),Vt((()=>en(Jt("focus:ring-offset-2"),Vt((()=>function(e){switch(e.tag){case 0:return ut(["bg-green-50","text-green-500","hover:bg-green-100","focus:ring-offset-green-50","focus:ring-green-600"]);case 2:return ut(["bg-blue-50","text-blue-500","hover:bg-blue-100","focus:ring-offset-blue-50","focus:ring-blue-600"]);default:return ut(["bg-red-50","text-red-500","hover:bg-red-100","focus:ring-offset-red-50","focus:ring-red-600"])}}(u))))))))))))))))))))))),children:Yr.Children.toArray([l]),onClick:e=>{Et(a),s()}})],["children",Yr.Children.toArray(Array.from(i))])])))],["children",Yr.Children.toArray(Array.from(o))])])))],["children",Yr.Children.toArray(Array.from(r))])])))],["children",Yr.Children.toArray(Array.from(n))])])))}class nl extends z{constructor(e,t,n,r,o,i,s){super(),this.Name=e,this.Email=t,this.MobilePhone=n,this.Title=r,this.Gender=o,this.DateOfBirth=i,this.Address=s}}class rl extends j{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Full","Partial"]}}class ol extends j{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Success","EmailNotUnique"]}}class il extends j{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["HasNotStartedYet","InProgress","Resolved","Failed"]}}function sl(e,t){const n=to(xt());return Qr((()=>Xr((()=>{Et(n.current)}))),[]),no((r=>{var o;null!=(o=n.current)&&o.isCancelled||Nt(gt.Delay((()=>gt.TryWith(gt.Delay((()=>(t(new il(1)),gt.Bind(e(r),(e=>(t(new il(2,e)),gt.Zero())))))),(e=>(t(new il(3,e)),gt.Zero()))))),n.current)}))}function ul(e){return pi(e)}function al(e){return J(e,"yyyy-MM-dd")}function ll(){return ut([[new rs(0),"Male"],[new rs(1),"Female"],[new rs(2),"Intersex"],[new rs(3),"Transgender"],[new rs(4),"Prefer not to answer"],[new rs(5),"Other"]])}function cl(e){return $t((t=>t[1]===e?t[0]:void 0),ll())}class $l extends j{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Mr","Miss","Mrs","Ms","Dr","Prof"]}}function fl(e){return H(e)}function dl(){return ut([[new $l(0),"Mr"],[new $l(1),"Miss"],[new $l(2),"Mrs"],[new $l(3),"Ms"],[new $l(4),"Dr"],[new $l(5),"Prof"]])}function hl(e){return $t((t=>t[1]===e?t[0]:void 0),dl())}class ml extends z{constructor(e,t,n,r,o,i){super(),this.FirstName=e,this.MiddleName=t,this.LastName=n,this.Title=r,this.DateOfBirth=o,this.Gender=i}}const pl=new ml("","","",void 0,void 0,void 0);class wl extends z{constructor(e,t,n,r,o,i,s){super(),this.Email=e,this.MobileNumber=t,this.StreetAddress=n,this.Suburb=r,this.State=o,this.Postcode=i,this.NonUniqueEmails=s}}const gl=new wl("","","","",void 0,"",Je());class yl extends z{constructor(e,t){super(),this.Identification=e,this.ContactDetails=t}}const _l=new yl(pl,gl);function vl(e){if(1===e.tag){const t=e.fields[0];return new yl(new ml(t.Name.FirstName,U(t.Name.MiddleName,""),t.Name.LastName,B(hl,t.Title),B(ul,t.DateOfBirth),B(cl,t.Gender)),new wl(t.Email,Es(U(t.MobilePhone,"")),U(L((e=>e.AddressLine1),t.Address),""),U(L((e=>e.City),t.Address),""),B((e=>Cs(e.State)),t.Address),U(L((e=>e.Postcode),t.Address),""),Je()))}{const t=e.fields[0];return new yl(new ml(t.Name.FirstName,U(t.Name.MiddleName,""),t.Name.LastName,hl(t.Title),ul(t.DateOfBirth),cl(t.Gender)),new wl(t.Email,Es(t.MobilePhone),t.Address.AddressLine1,t.Address.City,Cs(t.Address.State),t.Address.Postcode,Je()))}}class bl extends z{constructor(e,t,n,r){super(),this.FormModel=e,this.CurrentAlert=t,this.ExistingProfile=n,this.SaveStatus=r}}class Cl extends j{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["SetIdentification","SetContactDetails","GetProfileCallback","SaveStarted","SaveFinished","ShowAlert","HideAlert"]}}function Sl(e,t){return gt.Bind(t,(t=>{const n=(r=e,vt((e=>r),t));var r;return gt.Return(n)}))}function xl(e){return`${e}/profiles/backend/profiles`}function El(e,t){return Sl(new ys(1),yo(0,(()=>{const n=gi(t,$i(new _o(0),ci(xl(e))));return gt.Delay((()=>gt.Bind(n,(e=>{let t,n;const r=e;return 1===r.tag?gt.Return(new yt(1,r.fields[0])):gt.ReturnFrom((t=r.fields[0],200===t.statusCode?(o=t.responseText,n=Ma(T(2,Za(Ei("Dto.Api.Backend.Read.ProfileDto",[],rl,(()=>[[["Item",Ja()]],[["Item",xi("Dto.Api.Backend.Read.PartialProfileDto",[],nl,(()=>[["Name",$s()],["Email",Mi],["MobilePhone",ki(Mi)],["Title",ki(Mi)],["Gender",ki(Mi)],["DateOfBirth",ki(Mi)],["Address",ki(hs())]]))]]])),new Pu(1),void 0)),o),gt.Return(n)):gt.Return(new yt(1,""))));var o}))))})))}function kl(e,t,n){return Sl(new ys(0),yo(0,(()=>{let r;const o=gi(t,(r=di(new bo(1,function(e){return qu(0,Zu(Ja(),new Pu(1),void 0,void 0)(e))}(n)),$i(new _o(2),ci(xl(e)))),fi(ui("application/json"),r)));return gt.Delay((()=>gt.Bind(o,(e=>{let t,n;const r=e;return 1===r.tag?gt.Return(new yt(1,r.fields[0])):gt.ReturnFrom((t=r.fields[0],200===t.statusCode?(o=t.responseText,n=Ma(T(2,Za(Ei("Dto.Api.Backend.Read.ProfileUpdateStatus",[],ol,(()=>[[],[]])),new Pu(1),void 0)),o),gt.Return(n)):gt.Return(new yt(1,""))));var o}))))})))}function Nl(e,t){if(1===e.tag)return[new bl(new yl(t.FormModel.Identification,e.fields[0](t.FormModel.ContactDetails)),t.CurrentAlert,t.ExistingProfile,t.SaveStatus),Ot()];if(2!==e.tag){if(3===e.tag){const n=new bl(t.FormModel,t.CurrentAlert,t.ExistingProfile,new il(1)),r=function(e){return po(0,(()=>bt((t=>bt((n=>bt((r=>wo(0,_t(al,ls("DateOfBirth missing",e.Identification.DateOfBirth)),(o=>new Ya(new cs(e.Identification.FirstName.trim(),mi(e.Identification.MiddleName.trim()),e.Identification.LastName.trim()),r,t,e.ContactDetails.Email.trim(),xs(e.ContactDetails.MobileNumber),o,new ds(e.ContactDetails.StreetAddress.trim(),void 0,e.ContactDetails.Suburb.trim(),n,e.ContactDetails.Postcode.trim(),"AU"))))),_t(fl,ls("Title missing",e.Identification.Title)))),_t(vs,ls("State missing",e.ContactDetails.State)))),_t(fs,ls("Gender missing",e.Identification.Gender)))))()}(t.FormModel);return 1===r.tag?[n,Pt(new Cl(4,new yt(1,new ys(0))))]:[n,Dt((e=>{Ft(e)}),(t=>kl(e.fields[0],e.fields[1],t)),r.fields[0],(t=>new Cl(4,_t((t=>[t,e.fields[2]]),t))),(e=>new Cl(4,new yt(1,new ys(0)))))]}return 4===e.tag?1===e.fields[0].tag?[new bl(t.FormModel,t.CurrentAlert,t.ExistingProfile,new il(3,new Error(_s(e.fields[0].fields[0])))),Pt(new Cl(5,new Xa(1,_s(e.fields[0].fields[0]))))]:1===e.fields[0].fields[0][0].tag?[new bl(t.FormModel,t.CurrentAlert,t.ExistingProfile,new il(2,void 0)),Pt(new Cl(1,(e=>new wl(e.Email,e.MobileNumber,e.StreetAddress,e.Suburb,e.State,e.Postcode,lt(e.NonUniqueEmails,Ke(t.FormModel.ContactDetails.Email))))))]:(e.fields[0].fields[0][1](),[new bl(t.FormModel,t.CurrentAlert,t.ExistingProfile,new il(2,void 0)),Ot()]):5===e.tag?[new bl(t.FormModel,e.fields[0],t.ExistingProfile,t.SaveStatus),Ot()]:6===e.tag?[new bl(t.FormModel,void 0,t.ExistingProfile,t.SaveStatus),Ot()]:[new bl(new yl(e.fields[0](t.FormModel.Identification),t.FormModel.ContactDetails),t.CurrentAlert,t.ExistingProfile,t.SaveStatus),Ot()]}{let n,r;switch(3===e.fields[0].tag?n=1:0===e.fields[0].tag?n=2:1===e.fields[0].tag?n=3:1===e.fields[0].fields[0].tag?n=1:(n=0,r=e.fields[0].fields[0].fields[0]),n){case 0:return[new bl(vl(r),t.CurrentAlert,new il(2,r),t.SaveStatus),Ot()];case 1:return[new bl(t.FormModel,t.CurrentAlert,new il(3,new Error(_s(new ys(1)))),t.SaveStatus),Ot()];case 2:return[new bl(t.FormModel,t.CurrentAlert,new il(0),t.SaveStatus),Ot()];case 3:return[new bl(t.FormModel,t.CurrentAlert,new il(1),t.SaveStatus),Ot()]}}}function Al(e,t,n){return!!e.has(t)&&(n.contents=e.get(t),!0)}function Ml(e,t){if(e.has(t))return e.get(t);throw new Error(`The given key '${t}' was not present in the dictionary.`)}class Tl{constructor(e,t){const n=new q(null);this.comparer=t,n.contents=this,this.hashMap=new Map([]),this["init@8-2"]=1;const r=l(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const e=r["System.Collections.Generic.IEnumerator`1.get_Current"]();Dl(n.contents,e)}}finally{s(r)}}get[Symbol.toStringTag](){return"HashSet"}toJSON(e){return Array.from(this)}"System.Collections.IEnumerable.GetEnumerator"(){return l(this)}GetEnumerator(){return l(Zt(this.hashMap.values()))}[Symbol.iterator](){return c(this.GetEnumerator())}"System.Collections.Generic.ICollection`1.Add2B595"(e){Dl(this,e)}"System.Collections.Generic.ICollection`1.Clear"(){Ol(this)}"System.Collections.Generic.ICollection`1.Contains2B595"(e){return Fl(this,e)}"System.Collections.Generic.ICollection`1.CopyToZ2E171D71"(e,t){var n;n=(n,r)=>{e[t+n]=r},nn(((e,t)=>(n(e,t),e+1|0)),0,this)}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|Pl(this)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!1}"System.Collections.Generic.ICollection`1.Remove2B595"(e){return Rl(this,e)}get size(){return 0|Pl(this)}add(e){return Dl(this,e),this}clear(){Ol(this)}delete(e){return Rl(this,e)}has(e){return Fl(this,e)}keys(){return on((e=>e),this)}values(){return on((e=>e),this)}entries(){return on((e=>[e,e]),this)}forEach(e,t){const n=this;rn((t=>{e(t,t,n)}),n)}}function Il(e,t){const n=0|e.comparer.GetHashCode(t);let r,o=null;return r=[Al(e.hashMap,n,new q((()=>o),(e=>{o=e}))),o],r[0]?[!0,n,r[1].findIndex((n=>e.comparer.Equals(t,n)))]:[!1,n,-1]}function Ol(e){e.hashMap.clear()}function Pl(e){let t=0,n=l(e.hashMap.values());try{for(;n["System.Collections.IEnumerator.MoveNext"]();)t=t+n["System.Collections.Generic.IEnumerator`1.get_Current"]().length|0}finally{s(n)}return 0|t}function Dl(e,t){const n=Il(e,t);return n[0]?!(n[2]>-1)&&(Ml(e.hashMap,n[1]).push(t),!0):(e.hashMap.set(n[1],[t]),!0)}function Fl(e,t){const n=Il(e,t);let r;switch(r=n[0]&&n[2]>-1?0:1,r){case 0:return!0;case 1:return!1}}function Rl(e,t){const n=Il(e,t);let r;switch(r=n[0]&&n[2]>-1?0:1,r){case 0:return Ml(e.hashMap,n[1]).splice(n[2],1),!0;case 1:return!1}}function Gl(e,t){return Vt((()=>{const n=new Tl([],t);return function(e,t){return function(e,t){return Kt((()=>Wt(t)),(t=>{let n;for(;null==n&&t["System.Collections.IEnumerator.MoveNext"]();)n=e(t["System.Collections.Generic.IEnumerator`1.get_Current"]());return n}),(e=>{s(e)}))}((t=>e(t)?D(t):void 0),t)}((e=>function(e,t){return!t.has(e)&&(t.add(e),!0)}(e,n)),e)}))}function Ul(e){const t=ar(e);return[t[0],e=>{t[1](e)}]}class Ll extends j{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Required","MaxLen","MinLen","Regex","CustomRule"]}}function Bl(e){const t=e.values();return n=Xt(Vt((()=>un((e=>{const t=e[0],n=ct((t=>Me(t,e[1])),function(e,t){const n=ze(),r=ot(((e,t)=>{const n=1===(r=t).tag?r.fields[0]:void 0;var r;if(null==n)return e;{const t=new He(F(n),void 0);return e.tail=t,t}}),n,t),o=ze();return r.tail=o,Ye(n)}(0,ct((e=>{switch(e.tag){case 1:return function(e,t){return t.length>e?new yt(1,Ee(Se("{0} exceeds the max length of %i"))(e)):new yt(0,void 0)}(e.fields[0],t.value);case 2:return n=e.fields[0],t.value.length<n?new yt(1,Ee(Se("{0} must be at least %i characters"))(n)):new yt(0,void 0);case 3:return function(e,t,n){return null!=ge(pe(e),n)?new yt(0,void 0):new yt(1,Ee(Se("{0} is not a valid %s"))(t))}(e.fields[0],e.fields[1],t.value);case 4:return e.fields[0];default:return function(e){return Te(e)?new yt(1,"{0} is required"):new yt(0,void 0)}(t.value)}var n}),e[2])));return en(et(n)>0?(t.classList.add("error"),t.setAttribute("title",function(e,t){return function(e,t){return((e,n)=>{for(;;){const r=e,o=n,i=o.tail;if(null==i)throw new Error("The index was outside the range of elements in the collection.\\nParameter name: index");if(r===t)return o.head;e=r+1,n=i}})(0,e)}(t,e)}(0,n)),Yt()):(t.classList.remove("error"),t.removeAttribute("title"),Yt()),Vt((()=>n)))}),t)))),r={Equals:(e,t)=>e===t,GetHashCode:p},Xt(Gl(n,r));var n,r}function Hl(e){let t=l(e.values());try{for(;t["System.Collections.IEnumerator.MoveNext"]();){const e=t["System.Collections.Generic.IEnumerator`1.get_Current"]()[0];e.classList.remove("error"),e.removeAttribute("title")}}finally{s(t)}}function jl(){const e=fr(new Map([])).current,t=Ul(Je()),n=t[1],r=t[0],o=Ul(!1),i=o[1];return cr((()=>{if(o[0]){const t=Bl(e);C(t,r)||(n(t),Hl(e))}})),[fr((t=>n=>r=>{if(!C(r,null)){let o;o=r.hasAttribute("data-vkey")?r.getAttribute("data-vkey"):h(_(r)),e.set(o,[r,t,n])}})).current,()=>{i(!0);const t=Bl(e);return n(t),0===et(t)},()=>{i(!1),Hl(e),n(Je())},r]}const zl=H(n(118).Z),ql=ut(["grid","grid-cols-1","sm:grid-cols-3","gap-x-6","gap-y-4","mt-4"]);class Wl extends j{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Your","EmergencyContact"]}}function Vl(e){return 1===e.tag?"emergency contact":"your"}class Zl extends j{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["TestId"]}}function Yl(e){return e.fields[0]}function Jl(e,t){return e+(n=t,r=new Ll(0),o={Equals:C,GetHashCode:_},null!=ft((e=>o.Equals(r,e)),n)?" *":"");var n,r,o}function Xl(e,t,n,r,o){const i=Xt(Vt((()=>en(Jt(En("label",{className:Ie(" ",["block","text-sm","font-medium","text-gray-700"]),children:Jl(e,t)})),Vt((()=>en(Jt(En("div",{className:Ie(" ",["mt-1"]),children:Yr.Children.toArray([o])})),Vt((()=>{if(null!=n){const e=n;return Jt(En("p",{className:Ie(" ",["mt-2","text-sm","text-red-600"]),children:e,"data-testid":`${Yl(r)}-error`}))}return Jt(null)})))))))));return En("div",{children:Yr.Children.toArray(Array.from(i))})}const Kl=ut(["border-red-300","text-red-900","placeholder-red-300","focus:outline-none","focus:ring-red-500","focus:border-red-500"]);function Ql(e){return Xt(Vt((()=>en(Jt("block"),Vt((()=>en(Jt("shadow-sm"),Vt((()=>en(Jt("w-full"),Vt((()=>en(Jt("sm:text-sm"),Vt((()=>en(Jt("rounded-md"),Vt((()=>e?Kl:en(Jt("border-gray-300"),Vt((()=>en(Jt("focus:ring-primary-focus"),Vt((()=>Jt("focus:border-primary-focus")))))))))))))))))))))))))}function ec(e,t,n,r,o,i,s,u,a){return Xl(e,r,o,u,En("input",A(Xt(Vt((()=>en(Jt(["className",Ie(" ",Ql(null!=o))]),Vt((()=>en(Jt(["value",t]),Vt((()=>en(Jt(["ref",O(1,n,[r])]),Vt((()=>en(Jt(["type","text"]),Vt((()=>en(Jt(["onChange",e=>{i(e.target.value)}]),Vt((()=>en(Jt(["placeholder",`Enter ${Vl(s)} ${e.toLocaleLowerCase()}`]),Vt((()=>en(Jt(["data-testid",Yl(u)]),Vt((()=>a)))))))))))))))))))))))))))}class tc extends z{constructor(e,t,n){super(),this.Day=e,this.Month=t,this.Year=n}}const nc=new tc("","","");function rc(e){return 1===e.length?`0${e}`:e}function oc(e){const t=function(e){return`${e.Year}-${rc(e.Month)}-${rc(e.Day)}`}(e),n=(r=t,ns(new ks(7),((e,t,n)=>{}),r));var r;let o;switch(o=1===n.tag&&7===n.fields[0].tag?0:1,o){case 0:return new yt(1,void 0);case 1:return new yt(0,t)}}function ic(e){let t,n,r,o;const i=e.onChangeHandler,s=e.testId,u=e.error,a=e.validationRules,l=e.rulesForFieldName,c=e.value,$=e.fieldName,f=(d=null==c?nc:function(e){return new tc(rc(h(ie(e))),rc(h(se(e))),h(ue(e)))}(c),Yr.useState(d));var d;const m=f[0],p=e=>{let t;f[1](e),i((t=oc(e),1===t.tag?void 0:pi(t.fields[0])))},w=(e,t,n,r)=>{const o=De(gs,r);return 0==(0|o.length)?o:Xi(o,511,!1,32)<=t?Fe(o,0,function(e,t,n){return e(t,n)<0?t:n}(x,e,o.length)):n},g=Yl(s);return Xl($,a,u,s,En("div",A(ut([["className",Ie(" ",["grid","grid-cols-4","gap-1"])],(t=[En("div",A(ut([["className",Ie(" ",["col-span-1"])],(n=[En("input",{className:Ie(" ",Ql(null!=u)),type:"text",value:m.Day,placeholder:"dd",onChange:e=>{const t=e.target.value;p(new tc(w(2,31,m.Day,t),m.Month,m.Year))},onBlur:e=>{p(new tc(rc(m.Day),m.Month,m.Year))},inputMode:"numeric",autoComplete:"bday-day","data-testid":`${g}-day`})],["children",Yr.Children.toArray(Array.from(n))])]))),En("div",A(ut([["className",Ie(" ",["col-span-1"])],(r=[En("input",{className:Ie(" ",Ql(null!=u)),type:"text",value:m.Month,placeholder:"mm",onChange:e=>{const t=e.target.value;p(new tc(m.Day,w(2,12,m.Month,t),m.Year))},onBlur:e=>{p(new tc(m.Day,rc(m.Month),m.Year))},inputMode:"numeric",autoComplete:"bday-month","data-testid":`${g}-month`})],["children",Yr.Children.toArray(Array.from(r))])]))),En("div",A(ut([["className",Ie(" ",["col-span-2"])],(o=[En("input",{className:Ie(" ",Ql(null!=u)),type:"text",value:m.Year,placeholder:"yyyy",onChange:e=>{let t;const n=e.target.value;p(new tc(m.Day,m.Month,w(4,(t=ne(),ue(t)),m.Year,n)))},inputMode:"numeric",autoComplete:"bday-year","data-testid":`${g}-year`})],["children",Yr.Children.toArray(Array.from(o))])]))),En("input",{type:"hidden",ref:l(a),value:(y="",_=oc(m),1===_.tag?y:_.fields[0])})],["children",Yr.Children.toArray(Array.from(t))])]))));var y,_}function sc(e,t,n,r,o,i,s,u,a){let l;return Xl(e,o,i,a,En("select",A(ut([["className",Ie(" ",Xt(Vt((()=>en(Jt("mt-1"),Vt((()=>en(Jt("block"),Vt((()=>en(Jt("w-full"),Vt((()=>en(Jt("pl-3"),Vt((()=>en(Jt("pr-10"),Vt((()=>en(Jt("py-2"),Vt((()=>en(Jt("text-base"),Vt((()=>en(Jt("sm:text-sm"),Vt((()=>en(Jt("rounded-md"),Vt((()=>null==i?en(Jt("border-gray-300"),Vt((()=>en(Jt("focus:outline-none"),Vt((()=>en(Jt("focus:ring-primary-focus"),Vt((()=>Jt("focus:border-primary-focus")))))))))):Kl)))))))))))))))))))))))))))))))],["ref",O(1,r,[o])],(l=Xt(Vt((()=>en(Jt(En("option",{selected:null==t,disabled:!0,value:"",children:`Select ${Vl(u)} ${e.toLocaleLowerCase()}`})),Vt((()=>un((e=>{const n=e[1];return Jt(En("option",{selected:tn(e[0],G(t),{Equals:C,GetHashCode:y}),value:n,children:n,className:Ie(" ",["text-black"])}))}),n))))))),["children",Yr.Children.toArray(Array.from(l))]),["onChange",e=>{s(e.target.value)}],["data-testid",Yl(a)]]))))}function uc(e,t,n,r,o,i,s,u){return Xl(e,r,o,u,En("input",{className:Ie(" ",Ql(null!=o)),type:"tel",value:t,ref:O(1,n,[r]),onChange:e=>{let t;const n=e.target.value;i((t=De(gs,n),0===n.indexOf("+")?`+${t}`:t))},placeholder:`Enter ${Vl(s)} ${e.toLocaleLowerCase()}`,inputMode:"tel",autoComplete:"tel-national","data-testid":Yl(u)}))}function ac(e,t,n){let r,o,i,s;const u=n&&!C(t,new il(1)),a=En("svg",A(ut([["className",Ie(" ",["animate-spin","-ml-1","mr-3","h-5","w-5","text-white"])],["fill","none"],["viewBox","0 0 24 24"],["xmlns","http://www.w3.org/2000/svg"],(r=ut([En("circle",{className:Ie(" ",["opacity-25"]),cx:12,cy:12,r:10,stroke:"currentColor",strokeWidth:4}),En("path",{className:Ie(" ",["opacity-75"]),fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]),["children",Yr.Children.toArray(Array.from(r))])])));return En("div",A(ut([["className",Ie(" ",["flex","flex-row-reverse"])],(o=[(i=Ke(En("button",A(ut([["className",Ie(" ",Xt(Vt((()=>en(Jt("inline-flex"),Vt((()=>en(Jt("items-center"),Vt((()=>en(Jt("px-4"),Vt((()=>en(Jt("py-2"),Vt((()=>en(Jt("border"),Vt((()=>en(Jt("border-transparent"),Vt((()=>en(Jt("shadow-sm"),Vt((()=>en(Jt("text-sm"),Vt((()=>en(Jt("font-medium"),Vt((()=>en(Jt("rounded-md"),Vt((()=>en(Jt("text-primary-text"),Vt((()=>en(Jt("focus:outline-none"),Vt((()=>en(Jt("focus:ring-2"),Vt((()=>en(Jt("focus:ring-offset-2"),Vt((()=>en(Jt("focus:ring-primary-focus"),Vt((()=>{const e=[u,t];let n;switch(n=e[0]||1===e[1].tag?0:1,n){case 0:return en(Jt("bg-primary-base"),Vt((()=>Jt("hover:bg-primary-hover"))));case 1:return Jt("bg-primary-disabled")}})))))))))))))))))))))))))))))))))))))))))))))))))],["type","button"],["disabled",!u],["onClick",t=>{u&&e()}],(s=Xt(Vt((()=>en(1===t.tag?Jt(a):Jt(null),Vt((()=>Jt(En("span",{children:["Save and continue"]})))))))),["children",Yr.Children.toArray(Array.from(s))]),["data-testid","save"]])))),En("div",{children:Yr.Children.toArray(Array.from(i))}))],["children",Yr.Children.toArray(Array.from(o))])])))}function lc(e){return as(new ks(9),0===e.indexOf("04")?10===e.length:0===e.indexOf("614")?11===e.length:0===e.indexOf("+614")&&12===e.length)}function cc(e){return new Ll(4,us(vt((e=>1===e.tag?`{0} exceeds the character limit of ${e.fields[0]}`:2===e.tag?`{0} must be at least ${e.fields[0]} characters`:4===e.tag?"{0} must only have numbers":5===e.tag?"{0} is not valid":3===e.tag?"{0} has invalid characters":6===e.tag?"{0} is not valid":9===e.tag?"{0} is not a valid Australian mobile number":7===e.tag?"{0} is not valid":8===e.tag?0===e.fields[0].tag?"{0} must be under 100 years of age":"{0} must be at least 13 years of age":10===e.tag?"{0} must start with a letter":"{0} is required"),e)))}function $c(e,t){let n;n=new CustomEvent("step-completion",{bubbles:!0,detail:e}),t.dispatchEvent(n)}function fc(e){let t;const n=uo([new bl(_l,void 0,new il(0),new il(0)),Ot()],Nl),r=n[0],o=n[1],i=jl(),s=i[0],u=i[3];eo(sl((()=>El(e.backendUrl,e.accessToken)),(e=>{o(new Cl(2,e))})));const a=En("h3",{className:Ie(" ",["text-2xl","font-medium"]),children:"Personal Details"});return En("div",A(ut([["className",Ie(" ",["font-sans"])],(t=Xt(Vt((()=>en(Jt(En("style",{children:[zl]})),Vt((()=>{const t=r.ExistingProfile;switch(t.tag){case 1:default:return Jt(En("div",{children:["Please wait..."]}));case 2:return en(Jt(a),Vt((()=>en(Jt(function(e,t,n,r){let o;return En("div",A(ut([["className",Ie(" ",["py-3","mb-2"])],(o=Xt(Vt((()=>en(Jt(En("h6",{className:Ie(" ",["text-lg","font-semibold"]),children:"Identification"})),Vt((()=>{let o;const i="Identification";return Jt(En("div",A(ut([["className",Ie(" ",ql)],(o=Xt(Vt((()=>{const o="Legal first name",s=`${i}.${o}`;return en(Jt(ec(o,e.FirstName,T(2,O(2,t,[s])),ut([new Ll(0),cc(Rs(e.FirstName))]),yi(s,o,n),(e=>{r(new Cl(0,(t=>new ml(e,t.MiddleName,t.LastName,t.Title,t.DateOfBirth,t.Gender))))}),new Wl(0),new Zl(0,"first-name"),[["autoComplete","given-name"]])),Vt((()=>{const o="Middle name",s=`${i}.Middle name`;return en(Jt(ec(o,e.MiddleName,T(2,O(2,t,[s])),Ke(cc(function(e){return null!=e?Fs(ut([e=>Ts(60,e),e=>Ds("-",e),e=>Ds("'",e),e=>Os("(^[A-Za-zÀ-ÖØ-öø-ÿĀ-ž])[A-Za-zÀ-ÖØ-öø-ÿĀ-ž\\- ']{0,59}$",e)]),e):new yt(0,void 0)}(mi(e.MiddleName)))),yi(s,o,n),(e=>{r(new Cl(0,(t=>new ml(t.FirstName,e,t.LastName,t.Title,t.DateOfBirth,t.Gender))))}),new Wl(0),new Zl(0,"middle-name"),[["autoComplete","additional-name"]])),Vt((()=>{const o="Last name",s=`${i}.Last name`;return en(Jt(ec(o,e.LastName,T(2,O(2,t,[s])),ut([new Ll(0),cc(Rs(e.LastName))]),yi(s,o,n),(e=>{r(new Cl(0,(t=>new ml(t.FirstName,t.MiddleName,e,t.Title,t.DateOfBirth,t.Gender))))}),new Wl(0),new Zl(0,"last-name"),[["autoComplete","family-name"]])),Vt((()=>{const o="Title",s=`${i}.Title`;return en(Jt(sc(o,e.Title,dl(),T(2,O(2,t,[s])),ut([new Ll(0),cc(ls(new ks(0),e.Title))]),yi(s,o,n),(e=>{r(new Cl(0,(t=>new ml(t.FirstName,t.MiddleName,t.LastName,hl(e),t.DateOfBirth,t.Gender))))}),new Wl(0),new Zl(0,"title"))),Vt((()=>{let o;const s="Date of birth",u=`${i}.Date of birth`;return en(Jt(En(ic,{fieldName:s,value:e.DateOfBirth,rulesForFieldName:O(2,t,[u]),validationRules:ut([new Ll(0),cc((o=e.DateOfBirth,null==o?new yt(1,new ks(0)):(a=o,function(e){return t=>Fs(Ke((t=>Is(e,t))),t)}(X(Date.now(),1))(a))))]),error:yi(u,s,n),testId:new Zl(0,"dob"),onChangeHandler:e=>{r(new Cl(0,(t=>new ml(t.FirstName,t.MiddleName,t.LastName,t.Title,e,t.Gender))))}})),Vt((()=>{const o="Gender",s=`${i}.Gender`;return Jt(sc(o,e.Gender,ll(),T(2,O(2,t,[s])),ut([new Ll(0),cc(ls(new ks(0),e.Gender))]),yi(s,o,n),(e=>{r(new Cl(0,(t=>new ml(t.FirstName,t.MiddleName,t.LastName,t.Title,t.DateOfBirth,cl(e)))))}),new Wl(0),new Zl(0,"gender")))})));var a})))})))})))})))}))),["children",Yr.Children.toArray(Array.from(o))])]))))})))))),["children",Yr.Children.toArray(Array.from(o))])])))}(r.FormModel.Identification,T(3,s),u,o)),Vt((()=>en(Jt(function(e,t,n,r){let o;return En("div",A(ut([["className",Ie(" ",["py-3","mb-2"])],(o=Xt(Vt((()=>en(Jt(En("h6",{className:Ie(" ",["text-lg","font-semibold"]),children:"Contact details"})),Vt((()=>{let o;const i="ContactDetails";return en(Jt(En("div",A(ut([["className",Ie(" ",ql)],(o=Xt(Vt((()=>{const o="Email",s=`${i}.Email`;return en(Jt(ec(o,e.Email,T(2,O(2,t,[s])),ut([new Ll(0),cc(Us(e.Email)),new Ll(4,(u="{0} is already taken",a=dt((t=>0===function(...e){switch(e.length){case 2:return Ce(e[0],e[1],!1);case 3:return Ce(e[0],e[1],e[2]);case 4:return Ce(e[0],e[1],!0===e[2]);case 5:return Ce(e[0].substr(e[1],e[4]),e[2].substr(e[3],e[4]),!1);case 6:return Ce(e[0].substr(e[1],e[4]),e[2].substr(e[3],e[4]),e[5]);case 7:return Ce(e[0].substr(e[1],e[4]),e[2].substr(e[3],e[4]),!0===e[5]);default:throw new Error("String.compare: Unsupported number of parameters")}}(t,e.Email,5)),e.NonUniqueEmails),a?new yt(1,u):new yt(0,void 0)))]),yi(s,o,n),(e=>{r(new Cl(1,(t=>new wl(e,t.MobileNumber,t.StreetAddress,t.Suburb,t.State,t.Postcode,t.NonUniqueEmails))))}),new Wl(0),new Zl(0,"email"),[["autoComplete","email"]])),Vt((()=>{const o="Mobile number",s=`${i}.Mobile number`;return Jt(uc(o,e.MobileNumber,T(2,O(2,t,[s])),ut([new Ll(0),cc(lc(e.MobileNumber))]),yi(s,o,n),(e=>{r(new Cl(1,(t=>new wl(t.Email,e,t.StreetAddress,t.Suburb,t.State,t.Postcode,t.NonUniqueEmails))))}),new Wl(0),new Zl(0,"mobile")))})));var u,a}))),["children",Yr.Children.toArray(Array.from(o))])])))),Vt((()=>{let o;return Jt(En("div",A(ut([["className",Ie(" ",ql)],(o=Xt(Vt((()=>{const o="Street address",s=`${i}.Street address`;return en(Jt(ec(o,e.StreetAddress,T(2,O(2,t,[s])),ut([new Ll(0),cc(Gs(e.StreetAddress))]),yi(s,o,n),(e=>{r(new Cl(1,(t=>new wl(t.Email,t.MobileNumber,e,t.Suburb,t.State,t.Postcode,t.NonUniqueEmails))))}),new Wl(0),new Zl(0,"street-address"),[["autoComplete","street-address"]])),Vt((()=>{const o="Town/Suburb",s=`${i}.Town/Suburb`;return en(Jt(ec(o,e.Suburb,T(2,O(2,t,[s])),ut([new Ll(0),cc(Ls(e.Suburb))]),yi(s,o,n),(e=>{r(new Cl(1,(t=>new wl(t.Email,t.MobileNumber,t.StreetAddress,e,t.State,t.Postcode,t.NonUniqueEmails))))}),new Wl(0),new Zl(0,"town"),[["autoComplete","address-level2"]])),Vt((()=>{const o="State",s=`${i}.State`;return en(Jt(sc(o,e.State,bs(),T(2,O(2,t,[s])),ut([new Ll(0),cc(ls(new ks(0),e.State))]),yi(s,o,n),(e=>{r(new Cl(1,(t=>new wl(t.Email,t.MobileNumber,t.StreetAddress,t.Suburb,Cs(e),t.Postcode,t.NonUniqueEmails))))}),new Wl(0),new Zl(0,"state"))),Vt((()=>{const o="Postcode",s=`${i}.Postcode`;return Jt(ec(o,e.Postcode,T(2,O(2,t,[s])),ut([new Ll(0),cc(Bs(e.Postcode))]),yi(s,o,n),(e=>{r(new Cl(1,(t=>new wl(t.Email,t.MobileNumber,t.StreetAddress,t.Suburb,t.State,e,t.NonUniqueEmails))))}),new Wl(0),new Zl(0,"postcode"),[["inputMode","numeric"],["autoComplete","postal-code"]]))})))})))})))}))),["children",Yr.Children.toArray(Array.from(o))])]))))})))})))))),["children",Yr.Children.toArray(Array.from(o))])])))}(r.FormModel.ContactDetails,T(3,s),u,o)),Vt((()=>en(null!=r.CurrentAlert?Jt(En(tl,{alert:F(r.CurrentAlert),hideAlert:()=>{o(new Cl(6))}})):Yt(),Vt((()=>Jt(ac((()=>{i[1]()?o(new Cl(3,e.backendUrl,e.accessToken,(()=>{rn((e=>{$c("personal-details",e)}),G(R(document.querySelector("apollo-personal-details-app"))))}))):o(new Cl(5,new Xa(1,"There are some errors on the form, please correct them.")))}),r.SaveStatus,Qe(u)))))))))))))));case 3:return en(Jt(a),Vt((()=>{let e;return Jt((e=t.fields[0].message,En("p",{children:[e]})))})))}})))))),["children",Yr.Children.toArray(Array.from(t))])])))}function dc(e){return H(e)}function hc(){return ct((e=>[e,dc(e)]),at(on((e=>Zi(e,[])),Bi(Ei("DomainPrimitives.Relationship",[],os,(()=>[[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]]))))))}function mc(e){return $t((t=>t[1]===e?t[0]:void 0),hc())}class pc extends z{constructor(e,t,n,r,o,i,s,u){super(),this.FullName=e,this.Relationship=t,this.PhoneNumber=n,this.Email=r,this.StreetAddress=o,this.Suburb=i,this.State=s,this.Postcode=u}}const wc=new pc("",void 0,"","","","",void 0,"");function gc(e,t){return po(0,(()=>wo(0,function(e){return po(0,(()=>bt((t=>wo(0,_t(vs,ls("State missing",e.State)),(n=>new ms(e.FullName.trim(),t,xs(e.PhoneNumber),mi(e.Email),new ds(e.StreetAddress.trim(),void 0,e.Suburb.trim(),n,e.Postcode.trim(),"AU"))))),_t(is,ls("Relationship missing",e.Relationship)))))()}(e),(e=>{const n=e;return Qe(t)?Ke(n):function(e,t){const n=ze(),r=function(e,t,n){return((t,n,r)=>{for(;;){const o=t,i=n,s=r;if(We(s))return i;t=o+1,n=e(o,i,Ze(s)),r=Ye(s)}})(0,t,n)}(((t,n,r)=>{const o=new He(e(t,r),void 0);return n.tail=o,o}),n,t),o=ze();return r.tail=o,Ye(n)}(((e,t)=>0===e?n:t),t)}))))()}class yc extends z{constructor(e,t,n,r){super(),this.FormModel=e,this.CurrentAlert=t,this.SaveStatus=n,this.ExistingEmergencyContacts=r}}class _c extends j{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["SetEmergencyContact","GetEmergencyContactsCallback","SaveStarted","SaveFinished","ShowAlert","HideAlert"]}}function vc(e){return`${e}/profiles/backend/emergency-contacts`}function bc(e,t){let n,r;if(1!==e.tag){if(2===e.tag){const n=new yc(t.FormModel,t.CurrentAlert,new il(1),t.ExistingEmergencyContacts),o=bt((e=>gc(t.FormModel,e)),(r=t.ExistingEmergencyContacts,2===r.tag?new yt(0,r.fields[0]):new yt(1,"Existing ec has not been loaded")));return 1===o.tag?[n,Pt(new _c(3,new yt(1,new ys(0))))]:[n,Dt((e=>{Ft(e)}),(t=>function(e,t,n){return yo(0,(()=>{let r;const o=gi(t,(r=di(new bo(1,(i=n,qu(0,Zu(Ni(ps()),new Pu(1),void 0,void 0)(i)))),$i(new _o(2),ci(vc(e)))),fi(ui("application/json"),r)));var i;return gt.Delay((()=>gt.Bind(o,(e=>{const t=e;return 1===t.tag?gt.Return(new yt(1,t.fields[0])):gt.ReturnFrom(200===t.fields[0].statusCode?go():gt.Return(new yt(1,new ys(0))))}))))}))}(e.fields[0],e.fields[1],t)),o.fields[0],(t=>new _c(3,_t((t=>e.fields[2]),t))),(e=>new _c(3,new yt(1,new ys(0)))))]}return 3===e.tag?1===e.fields[0].tag?[new yc(t.FormModel,t.CurrentAlert,new il(3,new Error(_s(e.fields[0].fields[0]))),t.ExistingEmergencyContacts),Pt(new _c(4,new Xa(1,_s(e.fields[0].fields[0]))))]:(e.fields[0].fields[0](),[new yc(t.FormModel,t.CurrentAlert,new il(2,void 0),t.ExistingEmergencyContacts),Ot()]):4===e.tag?[new yc(t.FormModel,e.fields[0],t.SaveStatus,t.ExistingEmergencyContacts),Ot()]:5===e.tag?[new yc(t.FormModel,void 0,t.SaveStatus,t.ExistingEmergencyContacts),Ot()]:[new yc(e.fields[0](t.FormModel),t.CurrentAlert,t.SaveStatus,t.ExistingEmergencyContacts),Ot()]}{let r,s;switch(3===e.fields[0].tag?r=1:0===e.fields[0].tag?r=2:1===e.fields[0].tag?r=3:1===e.fields[0].fields[0].tag?r=1:(r=0,s=e.fields[0].fields[0].fields[0]),r){case 0:return[new yc((i=s,n=We(i)?void 0:D(Ze(i)),null==n?t.FormModel:(o=n,new pc(o.FullName,mc(o.Relationship),Es(o.MobilePhone),U(o.Email,""),U(L((e=>e.AddressLine1),o.Address),""),U(L((e=>e.City),o.Address),""),B((e=>Cs(e.State)),o.Address),U(L((e=>e.Postcode),o.Address),"")))),t.CurrentAlert,t.SaveStatus,new il(2,s)),Ot()];case 1:return[new yc(t.FormModel,t.CurrentAlert,t.SaveStatus,new il(3,new Error(_s(new ys(1))))),Ot()];case 2:return[new yc(t.FormModel,t.CurrentAlert,t.SaveStatus,new il(0)),Ot()];case 3:return[new yc(t.FormModel,t.CurrentAlert,t.SaveStatus,new il(1)),Ot()]}}var o,i}function Cc(e){let t;const n=uo([new yc(wc,void 0,new il(0),new il(0)),Ot()],bc),r=n[0],o=n[1],i=jl(),s=i[3];eo(sl((()=>{return t=e.backendUrl,n=e.accessToken,Sl(new ys(1),yo(0,(()=>{const e=gi(n,$i(new _o(0),ci(vc(t))));return gt.Delay((()=>gt.Bind(e,(e=>{let t,n;const r=e;return 1===r.tag?gt.Return(new yt(1,r.fields[0])):gt.ReturnFrom((t=r.fields[0],200===t.statusCode?(o=t.responseText,n=Ma(T(2,Za(Ni(ps()),new Pu(1),void 0)),o),gt.Return(n)):gt.Return(new yt(1,""))));var o}))))})));var t,n}),(e=>{o(new _c(1,e))})));const u=En("h3",{className:Ie(" ",["text-2xl","font-medium"]),children:"Emergency contact"});return En("div",A(ut([["className",Ie(" ",["font-sans"])],(t=Xt(Vt((()=>en(Jt(En("style",{children:[zl]})),Vt((()=>{const t=r.ExistingEmergencyContacts;switch(t.tag){case 1:default:return Jt(En("div",{children:["Please wait..."]}));case 2:return en(Jt(u),Vt((()=>en(Jt(function(e,t,n,r){let o;return En("div",A(ut([["className",Ie(" ",["py-3","mb-2"])],(o=Xt(Vt((()=>{let o;const i="EmergencyContact";return en(Jt(En("div",A(ut([["className",Ie(" ",ql)],(o=Xt(Vt((()=>{const o="Full name",s=`${i}.Full name`;return en(Jt(ec(o,e.FullName,T(2,O(2,t,[s])),ut([new Ll(0),cc(Rs(e.FullName))]),yi(s,o,n),(e=>{r(new _c(0,(t=>new pc(e,t.Relationship,t.PhoneNumber,t.Email,t.StreetAddress,t.Suburb,t.State,t.Postcode))))}),new Wl(1),new Zl(0,"full-name"),[])),Vt((()=>{const o="Relationship",s=`${i}.Relationship`;return Jt(sc(o,e.Relationship,hc(),T(2,O(2,t,[s])),ut([new Ll(0),cc(ls(new ks(0),e.Relationship))]),yi(s,o,n),(e=>{r(new _c(0,(t=>new pc(t.FullName,mc(e),t.PhoneNumber,t.Email,t.StreetAddress,t.Suburb,t.State,t.Postcode))))}),new Wl(1),new Zl(0,"relationship")))})))}))),["children",Yr.Children.toArray(Array.from(o))])])))),Vt((()=>{let o;return en(Jt(En("div",A(ut([["className",Ie(" ",ql)],(o=Xt(Vt((()=>{const o="Phone number",s=`${i}.Phone number`;return en(Jt(uc(o,e.PhoneNumber,T(2,O(2,t,[s])),ut([new Ll(0),cc(lc(e.PhoneNumber))]),yi(s,o,n),(e=>{r(new _c(0,(t=>new pc(t.FullName,t.Relationship,e,t.Email,t.StreetAddress,t.Suburb,t.State,t.Postcode))))}),new Wl(1),new Zl(0,"phone"))),Vt((()=>{const o="Email",s=`${i}.Email`;return Jt(ec(o,e.Email,T(2,O(2,t,[s])),Ke(cc(function(e){return null!=e?Fs(Ke(Us),e):new yt(0,void 0)}(mi(e.Email)))),yi(s,o,n),(e=>{r(new _c(0,(t=>new pc(t.FullName,t.Relationship,t.PhoneNumber,e,t.StreetAddress,t.Suburb,t.State,t.Postcode))))}),new Wl(1),new Zl(0,"email"),[]))})))}))),["children",Yr.Children.toArray(Array.from(o))])])))),Vt((()=>{let o;return Jt(En("div",A(ut([["className",Ie(" ",ql)],(o=Xt(Vt((()=>{const o="Street address",s=`${i}.Street address`;return en(Jt(ec(o,e.StreetAddress,T(2,O(2,t,[s])),ut([new Ll(0),cc(Gs(e.StreetAddress))]),yi(s,o,n),(e=>{r(new _c(0,(t=>new pc(t.FullName,t.Relationship,t.PhoneNumber,t.Email,e,t.Suburb,t.State,t.Postcode))))}),new Wl(1),new Zl(0,"street-address"),[["autoComplete","street-address"]])),Vt((()=>{const o="Town/Suburb",s=`${i}.Town/Suburb`;return en(Jt(ec(o,e.Suburb,T(2,O(2,t,[s])),ut([new Ll(0),cc(Ls(e.Suburb))]),yi(s,o,n),(e=>{r(new _c(0,(t=>new pc(t.FullName,t.Relationship,t.PhoneNumber,t.Email,t.StreetAddress,e,t.State,t.Postcode))))}),new Wl(1),new Zl(0,"town"),[["autoComplete","address-level2"]])),Vt((()=>{const o="State",s=`${i}.State`;return en(Jt(sc(o,e.State,bs(),T(2,O(2,t,[s])),ut([new Ll(0),cc(ls(new ks(0),e.State))]),yi(s,o,n),(e=>{r(new _c(0,(t=>new pc(t.FullName,t.Relationship,t.PhoneNumber,t.Email,t.StreetAddress,t.Suburb,Cs(e),t.Postcode))))}),new Wl(1),new Zl(0,"state"))),Vt((()=>{const o="Postcode",s=`${i}.Postcode`;return Jt(ec(o,e.Postcode,T(2,O(2,t,[s])),ut([new Ll(0),cc(Bs(e.Postcode))]),yi(s,o,n),(e=>{r(new _c(0,(t=>new pc(t.FullName,t.Relationship,t.PhoneNumber,t.Email,t.StreetAddress,t.Suburb,t.State,e))))}),new Wl(1),new Zl(0,"postcode"),[["inputMode","numeric"],["autoComplete","postal-code"]]))})))})))})))}))),["children",Yr.Children.toArray(Array.from(o))])]))))})))})))}))),["children",Yr.Children.toArray(Array.from(o))])])))}(r.FormModel,T(3,i[0]),s,o)),Vt((()=>en(null!=r.CurrentAlert?Jt(En(tl,{alert:F(r.CurrentAlert),hideAlert:()=>{o(new _c(5))}})):Yt(),Vt((()=>Jt(ac((()=>{i[1]()?o(new _c(2,e.backendUrl,e.accessToken,(()=>{rn((e=>{$c("emergency-contacts",e)}),G(R(document.querySelector("apollo-emergency-contacts-app"))))}))):o(new _c(4,new Xa(1,"There are some errors on the form, please correct them.")))}),r.SaveStatus,Qe(s))))))))))));case 3:return en(Jt(u),Vt((()=>{let e;return Jt((e=t.fields[0].message,En("p",{children:[e]})))})))}})))))),["children",Yr.Children.toArray(Array.from(t))])])))}wi((e=>En(fc,e)),"apollo-personal-details-app"),wi((e=>En(Cc,e)),"apollo-emergency-contacts-app")},184:e=>{e.exports="data:image/svg+xml;charset=utf-8,%3Csvg viewBox=%270 0 16 16%27 fill=%27%23fff%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Ccircle cx=%278%27 cy=%278%27 r=%273%27/%3E%3C/svg%3E"},254:e=>{e.exports="data:image/svg+xml;charset=utf-8,%3Csvg viewBox=%270 0 16 16%27 fill=%27%23fff%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath d=%27M12.207 4.793a1 1 0 0 1 0 1.414l-5 5a1 1 0 0 1-1.414 0l-2-2a1 1 0 0 1 1.414-1.414L6.5 9.086l4.293-4.293a1 1 0 0 1 1.414 0z%27/%3E%3C/svg%3E"},421:e=>{e.exports="data:image/svg+xml;charset=utf-8,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 fill=%27none%27 viewBox=%270 0 16 16%27%3E%3Cpath stroke=%27%23fff%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27 stroke-width=%272%27 d=%27M4 8h8%27/%3E%3C/svg%3E"},578:e=>{e.exports="data:image/svg+xml;charset=utf-8,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 fill=%27none%27 viewBox=%270 0 20 20%27%3E%3Cpath stroke=%27%236b7280%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27 stroke-width=%271.5%27 d=%27m6 8 4 4 4-4%27/%3E%3C/svg%3E"}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={id:r,exports:{}};return e[r](i,i.exports,n),i.exports}n.m=e,n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.b=document.baseURI||self.location.href,n(89),n(118)})();
1
+ (()=>{"use strict";var e={118:(e,t,n)=>{n.d(t,{Z:()=>g});var r=n(81),o=n.n(r),i=n(645),s=n.n(i),u=n(667),a=n.n(u),l=new URL(n(578),n.b),c=new URL(n(254),n.b),$=new URL(n(184),n.b),f=new URL(n(421),n.b),d=s()(o()),h=a()(l),m=a()(c),p=a()($),w=a()(f);d.push([e.id,'/*! tailwindcss v3.0.23 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}html{-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}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,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-size:100%;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-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,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input:-ms-input-placeholder,textarea:-ms-input-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}[multiple],[type=date],[type=datetime-local],[type=email],[type=month],[type=number],[type=password],[type=search],[type=tel],[type=text],[type=time],[type=url],[type=week],select,textarea{--tw-shadow:0 0 #0000;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#6b7280;border-radius:0;border-width:1px;font-size:1rem;line-height:1.5rem;padding:.5rem .75rem}[multiple]:focus,[type=date]:focus,[type=datetime-local]:focus,[type=email]:focus,[type=month]:focus,[type=number]:focus,[type=password]:focus,[type=search]:focus,[type=tel]:focus,[type=text]:focus,[type=time]:focus,[type=url]:focus,[type=week]:focus,select:focus,textarea:focus{--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);border-color:#2563eb;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);outline:2px solid transparent;outline-offset:2px}input::-moz-placeholder,textarea::-moz-placeholder{color:#6b7280;opacity:1}input:-ms-input-placeholder,textarea:-ms-input-placeholder{color:#6b7280;opacity:1}input::placeholder,textarea::placeholder{color:#6b7280;opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em}::-webkit-datetime-edit,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-meridiem-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-year-field{padding-bottom:0;padding-top:0}select{color-adjust:exact;background-image:url('+h+");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem;-webkit-print-color-adjust:exact}[multiple]{color-adjust:unset;background-image:none;background-position:0 0;background-repeat:unset;background-size:initial;padding-right:.75rem;-webkit-print-color-adjust:unset}[type=checkbox],[type=radio]{color-adjust:exact;--tw-shadow:0 0 #0000;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;background-origin:border-box;border-color:#6b7280;border-width:1px;color:#2563eb;display:inline-block;flex-shrink:0;height:1rem;padding:0;-webkit-print-color-adjust:exact;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:middle;width:1rem}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{--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);outline:2px solid transparent;outline-offset:2px}[type=checkbox]:checked,[type=radio]:checked{background-color:currentColor;background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:transparent}[type=checkbox]:checked{background-image:url("+m+")}[type=radio]:checked{background-image:url("+p+")}[type=checkbox]:checked:focus,[type=checkbox]:checked:hover,[type=radio]:checked:focus,[type=radio]:checked:hover{background-color:currentColor;border-color:transparent}[type=checkbox]:indeterminate{background-color:currentColor;background-image:url("+w+");background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:transparent}[type=checkbox]:indeterminate:focus,[type=checkbox]:indeterminate:hover{background-color:currentColor;border-color:transparent}[type=file]{background:unset;border-color:inherit;border-radius:0;border-width:0;font-size:unset;line-height:inherit;padding:0}[type=file]:focus{outline:1px auto -webkit-focus-ring-color}*,:after,:before{--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(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: }.col-span-1{grid-column:span 1/span 1}.col-span-2{grid-column:span 2/span 2}.my-4{margin-bottom:1rem;margin-top:1rem}.-mx-1\\.5{margin-left:-.375rem;margin-right:-.375rem}.-my-1\\.5{margin-bottom:-.375rem;margin-top:-.375rem}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.-my-1{margin-bottom:-.25rem;margin-top:-.25rem}.ml-auto{margin-left:auto}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.-ml-1{margin-left:-.25rem}.mr-3{margin-right:.75rem}.mt-4{margin-top:1rem}.mb-2{margin-bottom:.5rem}.block{display:block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.hidden{display:none}.h-5{height:1.25rem}.w-5{width:1.25rem}.w-full{width:100%}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin{animation:spin 1s linear infinite}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.flex-row-reverse{flex-direction:row-reverse}.items-center{align-items:center}.gap-1{gap:.25rem}.gap-x-6{-moz-column-gap:1.5rem;column-gap:1.5rem}.gap-y-4{row-gap:1rem}.rounded-md{border-radius:.375rem}.border{border-width:1px}.border-red-300{--tw-border-opacity:1;border-color:rgb(252 165 165/var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity))}.border-transparent{border-color:transparent}.bg-red-50{--tw-bg-opacity:1;background-color:rgb(254 242 242/var(--tw-bg-opacity))}.bg-green-50{--tw-bg-opacity:1;background-color:rgb(240 253 244/var(--tw-bg-opacity))}.bg-blue-50{--tw-bg-opacity:1;background-color:rgb(239 246 255/var(--tw-bg-opacity))}.bg-primary-base{background-color:var(--fl-color-primary)}.bg-primary-disabled{background-color:var(--fl-color-primary-disabled)}.p-4{padding:1rem}.p-1\\.5{padding:.375rem}.p-1{padding:.25rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.px-4{padding-left:1rem;padding-right:1rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.pl-3{padding-left:.75rem}.pr-10{padding-right:2.5rem}.font-sans{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.text-sm{font-size:.875rem;line-height:1.25rem}.text-base{font-size:1rem;line-height:1.5rem}.text-2xl{font-size:1.5rem;line-height:2rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.font-medium{font-weight:500}.font-semibold{font-weight:600}.text-red-700{--tw-text-opacity:1;color:rgb(185 28 28/var(--tw-text-opacity))}.text-green-700{--tw-text-opacity:1;color:rgb(21 128 61/var(--tw-text-opacity))}.text-blue-700{--tw-text-opacity:1;color:rgb(29 78 216/var(--tw-text-opacity))}.text-red-500{--tw-text-opacity:1;color:rgb(239 68 68/var(--tw-text-opacity))}.text-green-500{--tw-text-opacity:1;color:rgb(34 197 94/var(--tw-text-opacity))}.text-blue-500{--tw-text-opacity:1;color:rgb(59 130 246/var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity))}.text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.text-red-900{--tw-text-opacity:1;color:rgb(127 29 29/var(--tw-text-opacity))}.text-black{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.text-primary-text{color:var(--fl-color-primary-text)}.placeholder-red-300::-moz-placeholder{--tw-placeholder-opacity:1;color:rgb(252 165 165/var(--tw-placeholder-opacity))}.placeholder-red-300:-ms-input-placeholder{--tw-placeholder-opacity:1;color:rgb(252 165 165/var(--tw-placeholder-opacity))}.placeholder-red-300::placeholder{--tw-placeholder-opacity:1;color:rgb(252 165 165/var(--tw-placeholder-opacity))}.opacity-25{opacity:.25}.opacity-75{opacity:.75}.shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)}.shadow,.shadow-sm{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)}.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)}.hover\\:bg-red-100:hover{--tw-bg-opacity:1;background-color:rgb(254 226 226/var(--tw-bg-opacity))}.hover\\:bg-green-100:hover{--tw-bg-opacity:1;background-color:rgb(220 252 231/var(--tw-bg-opacity))}.hover\\:bg-blue-100:hover{--tw-bg-opacity:1;background-color:rgb(219 234 254/var(--tw-bg-opacity))}.hover\\:bg-primary-hover:hover{background-color:var(--fl-color-primary-hover)}.focus\\:border-red-500:focus{--tw-border-opacity:1;border-color:rgb(239 68 68/var(--tw-border-opacity))}.focus\\:border-primary-focus:focus{border-color:var(--fl-color-primary-focus)}.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-red-600:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(220 38 38/var(--tw-ring-opacity))}.focus\\:ring-green-600:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(22 163 74/var(--tw-ring-opacity))}.focus\\:ring-blue-600:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(37 99 235/var(--tw-ring-opacity))}.focus\\:ring-red-500:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(239 68 68/var(--tw-ring-opacity))}.focus\\:ring-primary-focus:focus{--tw-ring-color:var(--fl-color-primary-focus)}.focus\\:ring-offset-2:focus{--tw-ring-offset-width:2px}.focus\\:ring-offset-red-50:focus{--tw-ring-offset-color:#fef2f2}.focus\\:ring-offset-green-50:focus{--tw-ring-offset-color:#f0fdf4}.focus\\:ring-offset-blue-50:focus{--tw-ring-offset-color:#eff6ff}@media (min-width:640px){.sm\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\\:text-sm{font-size:.875rem;line-height:1.25rem}}",""]);const g=d},645:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,o,i){"string"==typeof e&&(e=[[null,e,void 0]]);var s={};if(r)for(var u=0;u<this.length;u++){var a=this[u][0];null!=a&&(s[a]=!0)}for(var l=0;l<e.length;l++){var c=[].concat(e[l]);r&&s[c[0]]||(void 0!==i&&(void 0===c[5]||(c[1]="@layer".concat(c[5].length>0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=i),n&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=n):c[2]=n),o&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=o):c[4]="".concat(o)),t.push(c))}},t}},667:e=>{e.exports=function(e,t){return t||(t={}),e?(e=String(e.__esModule?e.default:e),/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]|(%20)/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e):e}},81:e=>{e.exports=function(e){return e[1]}},89:(e,t,n)=>{function r(e){return Array.isArray(e)||ArrayBuffer.isView(e)}function o(e){return"function"==typeof e.GetHashCode}function i(e){return null!=e&&"function"==typeof e.Dispose}function s(e){i(e)&&e.Dispose()}function u(e,t){var n,r;return(null===(n=Object.getPrototypeOf(e))||void 0===n?void 0:n.constructor)===(null===(r=Object.getPrototypeOf(t))||void 0===r?void 0:r.constructor)}class a{constructor(e){this.iter=e}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current}"System.Collections.IEnumerator.get_Current"(){return this.current}"System.Collections.IEnumerator.MoveNext"(){const e=this.iter.next();return this.current=e.value,!e.done}"System.Collections.IEnumerator.Reset"(){throw new Error("JS iterators cannot be reset")}Dispose(){}}function l(e){return"function"==typeof e.GetEnumerator?e.GetEnumerator():new a(e[Symbol.iterator]())}function c(e){return{[Symbol.iterator](){return this},next(){const t=e["System.Collections.IEnumerator.MoveNext"]();return{done:!t,value:t?e["System.Collections.IEnumerator.get_Current"]():void 0}}}}class ${constructor(e){this.factory=e,this.isValueCreated=!1}get Value(){return this.isValueCreated||(this.createdValue=this.factory(),this.isValueCreated=!0),this.createdValue}get IsValueCreated(){return this.isValueCreated}}function f(e,t){let n=e.toString(10);for(;n.length<t;)n="0"+n;return n}function d(e){const t=e;return"number"==typeof t.offset?t.offset:1===e.kind?0:-6e4*e.getTimezoneOffset()}function h(e,t){return(e=e<0&&null!=t&&10!==t?4294967295+e+1:e).toString(t)}class m{static id(e){return m.idMap.has(e)||m.idMap.set(e,++m.count),m.idMap.get(e)}}function p(e){let t=0,n=5381;const r=e.length;for(;t<r;)n=33*n^e.charCodeAt(t++);return n}function w(e){return 2654435761*e|0}function g(e){return 0===e.length?0:e.reduce(((e,t)=>(e<<5)+e^t))}function y(e){var t;if(null==e)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return w(e);case"string":return p(e);default:if(o(e))return e.GetHashCode();if(r(e))return function(e){const t=e.length,n=new Array(t);for(let r=0;r<t;r++)n[r]=y(e[r]);return g(n)}(e);if(e instanceof Date)return function(e){return e.getTime()}(e);if((null===(t=Object.getPrototypeOf(e))||void 0===t?void 0:t.constructor)===Object){const t=Object.values(e).map((e=>y(e)));return g(t)}return w(m.id(e))}}function _(e){return null==e?0:o(e)?e.GetHashCode():w(m.id(e))}function v(e,t,n){if(null==e)return null==t;if(null==t)return!1;if(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 b(e,t){return v(e,t,C)}function C(e,t){var n;return e===t||(null==e?null==t:null!=t&&"object"==typeof e&&(function(e){return"function"==typeof e.Equals}(e)?e.Equals(t):r(e)?r(t)&&b(e,t):e instanceof Date?t instanceof Date&&0===S(e,t):(null===(n=Object.getPrototypeOf(e))||void 0===n?void 0:n.constructor)===Object&&function(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]||!C(e[n[o]],t[r[o]]))return!1;return!0}(e,t)))}function S(e,t){let n,r;return"offset"in e&&"offset"in t?(n=e.getTime(),r=t.getTime()):(n=e.getTime()+d(e),r=t.getTime()+d(t)),n===r?0:n<r?-1:1}function x(e,t){return e===t?0:e<t?-1:1}function E(e,t){return function(e,t,n){if(null==e)return null==t?0:1;if(null==t)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]),0!==o)return o;return 0}(e,t,k)}function k(e,t){var n;return e===t?0:null==e?null==t?0:-1:null==t?1:"object"!=typeof e?e<t?-1:1:function(e){return"function"==typeof e.CompareTo}(e)?e.CompareTo(t):r(e)?r(t)?E(e,t):-1:e instanceof Date?t instanceof Date?S(e,t):-1:(null===(n=Object.getPrototypeOf(e))||void 0===n?void 0:n.constructor)===Object?function(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return n.length<r.length?-1:1;n.sort(),r.sort();for(let o=0,i=0;o<n.length;o++){const s=n[o];if(s!==r[o])return s<r[o]?-1:1;if(i=k(e[s],t[s]),0!==i)return i}return 0}(e,t):-1}function N(e,t,n){return e(t,n)>0?t:n}function A(e){const t={};for(const n of e)t[n[0]]=n[1];return t}m.idMap=new WeakMap,m.count=0;const M=Symbol("curried");function T(e,t){if(null==t||t.length>1)return t;const n=(...n)=>{let r=t;for(let t=0;t<e;t++)r=r(n[t]);return r};return n[M]=t,n}function I(e,t,n){return r=>1===t?n(...e.concat([r])):I(e.concat([r]),t-1,n)}function O(e,t,n){if(null!=t){if(M in t){t=t[M];for(let e=0;e<n.length;e++)t=t(n[e]);return t}return I(n,e,t)}}class P{constructor(e){this.value=e}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return y(this.value)}Equals(e){return null!=e&&C(this.value,e instanceof P?e.value:e)}CompareTo(e){return null==e?1:k(this.value,e instanceof P?e.value:e)}}function D(e){return null==e||e instanceof P?new P(e):e}function F(e){if(null==e)throw new Error("Option has no value");return e instanceof P?e.value:e}function R(e){return null==e?void 0:e}function G(e){return null==e?[]:[F(e)]}function U(e,t){return null!=e?F(e):t}function L(e,t){return null!=t?D(e(F(t))):void 0}function B(e,t){return null!=t?e(F(t)):void 0}function H(e,t=0){var n,r;if(null!=e&&"object"==typeof e){if("function"==typeof e.toString)return e.toString();if(Symbol.iterator in e)return function(e){let t=0,n="[";for(const r of e){if(0===t)n+=H(r);else{if(100===t){n+="; ...";break}n+="; "+H(r)}t++}return n+"]"}(e);{const o=null===(n=Object.getPrototypeOf(e))||void 0===n?void 0:n.constructor;return o===Object&&t<10?"{ "+Object.entries(e).map((([e,n])=>e+" = "+H(n,t+1))).join("\n ")+" }":null!==(r=null==o?void 0:o.name)&&void 0!==r?r:""}}return String(e)}class j{get name(){return this.cases()[this.tag]}toJSON(){return 0===this.fields.length?this.name:[this.name].concat(this.fields)}toString(){return function(e,t){if(0===t.length)return e;{let n="",r=!0;return 1===t.length?(n=H(t[0]),r=n.indexOf(" ")>=0):n=t.map((e=>H(e))).join(", "),e+(r?" (":" ")+n+(r?")":"")}}(this.name,this.fields)}GetHashCode(){const e=this.fields.map((e=>y(e)));return e.splice(0,0,w(this.tag)),g(e)}Equals(e){return this===e||!!u(this,e)&&this.tag===e.tag&&b(this.fields,e.fields)}CompareTo(e){return this===e?0:u(this,e)?this.tag===e.tag?E(this.fields,e.fields):this.tag<e.tag?-1:1:-1}}class z{toJSON(){return function(e){const t={},n=Object.keys(e);for(let r=0;r<n.length;r++)t[n[r]]=e[n[r]];return t}(this)}toString(){return function(e){return"{ "+Object.entries(e).map((([e,t])=>e+" = "+H(t))).join("\n ")+" }"}(this)}GetHashCode(){return function(e){const t=Object.values(e).map((e=>y(e)));return g(t)}(this)}Equals(e){return function(e,t){if(e===t)return!0;if(u(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++)if(!C(e[n[r]],t[n[r]]))return!1;return!0}return!1}(this,e)}CompareTo(e){return function(e,t){if(e===t)return 0;if(u(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++){const o=k(e[n[r]],t[n[r]]);if(0!==o)return o}return 0}return-1}(this,e)}}class q{constructor(e,t){"function"==typeof t?(this.getter=e,this.setter=t):(this.getter=()=>e,this.setter=t=>{e=t})}get contents(){return this.getter()}set contents(e){this.setter(e)}}function W(e){return function(e){return e instanceof class{constructor(e){this.message=e}}||e instanceof Error}(e)?e:new Error(String(e))}function V(e){const t=e<0,n=(e=Math.abs(e))%36e5/6e4;return(t?"-":"+")+f(~~(e/36e5),2)+":"+f(n,2)}function Z(e,t){const n=e.toISOString();return"first"===t?n.substring(0,n.indexOf("T")):n.substring(n.indexOf("T")+1,n.length-1)}function Y(e,t,n){return t.replace(/(\w)\1*/g,(t=>{let r=Number.NaN;switch(t.substring(0,1)){case"y":const o=n?e.getUTCFullYear():e.getFullYear();r=t.length<4?o%100:o;break;case"M":r=(n?e.getUTCMonth():e.getMonth())+1;break;case"d":r=n?e.getUTCDate():e.getDate();break;case"H":r=n?e.getUTCHours():e.getHours();break;case"h":const i=n?e.getUTCHours():e.getHours();r=i>12?i%12:i;break;case"m":r=n?e.getUTCMinutes():e.getMinutes();break;case"s":r=n?e.getUTCSeconds():e.getSeconds();break;case"f":r=n?e.getUTCMilliseconds():e.getMilliseconds()}return Number.isNaN(r)?t:r<10&&t.length>1?"0"+r:""+r}))}function J(e,t,n){return null!=e.offset?function(e,t){var n,r,o;const i=new Date(e.getTime()+(null!==(n=e.offset)&&void 0!==n?n:0));if("string"!=typeof t)return i.toISOString().replace(/\.\d+/,"").replace(/[A-Z]|\.\d+/g," ")+V(null!==(r=e.offset)&&void 0!==r?r:0);if(1!==t.length)return Y(i,t,!0);switch(t){case"D":case"d":return Z(i,"first");case"T":case"t":return Z(i,"second");case"O":case"o":return function(e,t){const n=e.toISOString();return n.substring(0,n.length-1)+V(t)}(i,null!==(o=e.offset)&&void 0!==o?o:0);default:throw new Error("Unrecognized Date print format")}}(e,t):function(e,t){const n=1===e.kind;if("string"!=typeof t)return n?e.toUTCString():e.toLocaleString();if(1!==t.length)return Y(e,t,n);switch(t){case"D":case"d":return n?Z(e,"first"):e.toLocaleDateString();case"T":case"t":return n?Z(e,"second"):e.toLocaleTimeString();case"O":case"o":return function(e,t){if(t)return e.toISOString();{const t=null==e.kind||2===e.kind;return f(e.getFullYear(),4)+"-"+f(e.getMonth()+1,2)+"-"+f(e.getDate(),2)+"T"+f(e.getHours(),2)+":"+f(e.getMinutes(),2)+":"+f(e.getSeconds(),2)+"."+f(e.getMilliseconds(),3)+(t?V(-6e4*e.getTimezoneOffset()):"")}}(e,n);default:throw new Error("Unrecognized Date print format")}}(e,t)}function X(e,t){const n=new Date(e);return n.kind=0|(null==t?0:t),n}function K(){return X(-621355968e5,0)}function Q(e){function t(){throw new Error(`The string is not a valid Date: ${e}`)}null!=e&&""!==e.trim()||t(),10===e.length&&"-"===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(null!=o){let e,t=0;if(null!=o[2]){const e=o[2].split(":");t=3600*parseInt(e[0],10)+60*parseInt(e[1]||"0",10)+parseFloat(e[2]||"0"),null!=o[3]&&"PM"===o[3].toUpperCase()&&(t+=720)}if(null!=o[4]){if(null!=o[1])e=new Date(o[1]+" UTC");else{const t=new Date;e=new Date(t.getUTCFullYear()+"/"+(t.getUTCMonth()+1)+"/"+t.getUTCDate())}if("Z"===o[4])r="Z";else{let e=60*parseInt(o[5],10)+parseInt(o[6]||"0",10);"-"===o[4][0]&&(e*=-1),r=e,t-=60*e}}else if(null!=o[1])e=new Date(o[1]);else{const t=new Date;e=new Date(t.getFullYear()+"/"+(t.getMonth()+1)+"/"+t.getDate())}n=new Date(e.getTime()+1e3*t),n=new Date(n.getTime()+6e4*(n.getTimezoneOffset()-e.getTimezoneOffset()))}else t();isNaN(n.getTime())&&t()}return[n,r]}function ee(e,t){try{return t.contents=function(e,t=!1){const[n,r]=Q(e),o=null!=r?t&&"Z"===r?1:2:0;return X(n.getTime(),o)}(e),!0}catch(e){return!1}}function te(e,t,n,r=0,o=0,i=0,s=0,u){const a=1===u?Date.UTC(e,t-1,n,r,o,i,s):new Date(e,t-1,n,r,o,i,s).getTime();if(isNaN(a))throw new Error("The parameters describe an unrepresentable Date.");const l=X(a,u);return e<=99&&l.setFullYear(e,t-1,n),l}function ne(){return oe(X(Date.now(),2))}function re(e){return e%4==0&&e%100!=0||e%400==0}function oe(e){return te(ue(e),se(e),ie(e),0,0,0,0,e.kind)}function ie(e){return 1===e.kind?e.getUTCDate():e.getDate()}function se(e){return(1===e.kind?e.getUTCMonth():e.getMonth())+1}function ue(e){return 1===e.kind?e.getUTCFullYear():e.getFullYear()}const ae=S,le=Symbol("numeric");function ce(e){return"number"==typeof e||(null==e?void 0:e[le])}function $e(e,t){return"number"==typeof e?e*t:e[le]().multiply(t)}function fe(e,t){return"number"==typeof e?e.toFixed(t):e[le]().toFixed(t)}function de(e,t){return"number"==typeof e?e.toPrecision(t):e[le]().toPrecision(t)}function he(e,t){return"number"==typeof e?e.toExponential(t):e[le]().toExponential(t)}function me(e){return"number"==typeof e?(Number(e)>>>0).toString(16):e[le]().toHex()}function pe(e,t=0){if(0!=(-284&t))throw new Error("RegexOptions only supports: IgnoreCase, Multiline, Compiled, Singleline and ECMAScript");let n="gu";return n+=1&t?"i":"",n+=2&t?"m":"",n+=16&t?"s":"",new RegExp(e,n)}function we(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function ge(e,t,n=0){return e.lastIndex=n,e.exec(t)}function ye(e,t,n=0){if(null==t)throw new Error("Input cannot ve null");if(!e.global)throw new Error("Non-global RegExp");e.lastIndex=n;const r=[];let o,i=-1;for(;null!=(o=e.exec(t));)o.index===i?e.lastIndex++:(i=o.index,r.push(o));return r}const _e=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g,ve=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function be(e,t){return function(e,t){return"number"==typeof e?e<t?-1:e>t?1:0:e.CompareTo(t)}(e,t)<0}function Ce(e,t,n){function r(e){return!0===e||1===e||3===e||5===e}return null==e?null==t?0:-1:null==t?1:4===(o=n)||5===o?(r(n)&&(e=e.toLowerCase(),t=t.toLowerCase()),e===t?0:e<t?-1:1):(r(n)&&(e=e.toLocaleLowerCase(),t=t.toLocaleLowerCase()),e.localeCompare(t));var o}function Se(e){return{input:e,cont:(t=e,e=>{_e.lastIndex=0;const n=[],r=[];let o=0,i=_e.exec(t);for(;i;){const e=i.index+(i[1]||"").length;n.push(t.substring(o,e).replace(/%%/g,"%")),r.push(i),o=_e.lastIndex,_e.lastIndex-=1,i=_e.exec(t)}return 0===n.length?e(t.replace(/%%/g,"%")):(n.push(t.substring(o).replace(/%%/g,"%")),Ae(e,n,r))})};var t}function xe(e,t){return"string"==typeof t?e(t):t.cont(e)}function Ee(e){return xe((e=>e),e)}function ke(e){return xe((e=>{throw new Error(e)}),e)}function Ne(e,t,n,r,o){let i="";if(t=t||"",o=o||"",ce(e))switch("x"!==o.toLowerCase()&&(be(e,0)?(e=$e(e,-1),i="-"):t.indexOf(" ")>=0?i=" ":t.indexOf("+")>=0&&(i="+")),r=null==r?null:parseInt(r,10),o){case"f":case"F":e=fe(e,r=null!=r?r:6);break;case"g":case"G":e=null!=r?de(e,r):de(e);break;case"e":case"E":e=null!=r?he(e,r):he(e);break;case"x":e=me(e);break;case"X":e=me(e).toUpperCase();break;default:e=String(e)}else e=e instanceof Date?J(e):H(e);if(n="number"==typeof n?n:parseInt(n,10),isNaN(n))e=i+e;else{const r=t.indexOf("0")>=0,o=t.indexOf("-")>=0,s=o||!r?" ":"0";e="0"===s?i+(e=Oe(e,n-i.length,s,o)):Oe(i+e,n,s,o)}return e}function Ae(e,t,n,r="",o=-1){return(...i)=>{let s=r;const u=t.slice(),a=n.slice();for(const e of i){const[,,t,n,r,i]=a[0];let l=n;if(o>=0)l=o,o=-1;else if("*"===l){if(e<0)throw new Error("Non-negative number required");o=e;continue}s+=u[0],s+=Ne(e,t,l,r,i),u.splice(0,1),a.splice(0,1)}return 0===a.length?(s+=u[0],e(s)):Ae(e,u,a,s,o)}}function Me(e,...t){return"object"==typeof e&&t.length>0&&(e=t[0],t.shift()),e.replace(ve,((e,n,r,o,i,s)=>{if(n<0||n>=t.length)throw new Error("Index must be greater or equal to zero and less than the arguments' length.");let u=t[n];if(ce(u))switch(i=null==i?null:parseInt(i,10),o){case"f":case"F":u=fe(u,i=null!=i?i:2);break;case"g":case"G":u=null!=i?de(u,i):de(u);break;case"e":case"E":u=null!=i?he(u,i):he(u);break;case"p":case"P":i=null!=i?i:2,u=fe($e(u,100),i)+" %";break;case"d":case"D":u=null!=i?Pe(String(u),i,"0"):String(u);break;case"x":case"X":u=null!=i?Pe(me(u),i,"0"):me(u),"X"===o&&(u=u.toUpperCase());break;default:if(s){let e="";u=s.replace(/([0#,]+)(\.[0#]+)?/,((t,n,r)=>{be(u,0)&&(u=$e(u,-1),e="-"),r=null==r?"":r.substring(1),u=fe(u,Math.max(r.length,0));let[o,i]=u.split(".");i||(i=""),o=Pe(o,n.replace(/,/g,"").replace(/^#+/,"").length,"0");const s=r.replace(/#+$/,"").length;if(s>i.length?i=function(e,t,n){return Oe(e,t,"0",!0)}(i,s):s<i.length&&(i=i.substring(0,s)+i.substring(s).replace(/0+$/,"")),n.indexOf(",")>0){const e=o.length%3,t=Math.floor(o.length/3);let n=e>0?o.substr(0,e)+(t>0?",":""):"";for(let r=0;r<t;r++)n+=o.substr(e+3*r,3)+(r<t-1?",":"");o=n}return i.length>0?o+"."+i:o})),u=e+u}}else u=u instanceof Date?J(u,s||o):H(u);return r=parseInt((r||" ").substring(1),10),isNaN(r)||(u=Oe(String(u),Math.abs(r)," ",r<0)),u}))}function Te(e){return"string"!=typeof e||/^\s*$/.test(e)}function Ie(e,t){return Array.isArray(t)?t.join(e):Array.from(t).join(e)}function Oe(e,t,n,r){n=n||" ",t-=e.length;for(let o=0;o<t;o++)e=r?e+n:n+e;return e}function Pe(e,t,n){return Oe(e,t,n)}function De(e,t){return t.split("").filter((t=>e(t))).join("")}function Fe(e,t,n){if(t+(n||0)>e.length)throw new Error("Invalid startIndex and/or length");return null!=n?e.substr(t,n):e.substr(t)}function Re(e,t){return"function"==typeof e?new e(t):new Array(t)}function Ge(e,t,n,r){const o=0|t;return e.fill(r,o,o+n)}function Ue(e,t,n){const r=0|t.length,o=Re(n,r);for(let n=0;n<=r-1;n++)o[n]=e(t[n]);return o}function Le(e,t,n){return n.reduce(e,t)}function Be(e,t,n,r){return function(e,t,n,r){let o=r;t.length!==n.length&&function(){throw new Error("Arrays had different lengths")}();const i=0|t.length;for(let r=1;r<=i;r++)o=e(0,t[i-r],n[i-r],o);return o}(((t,n,r,o)=>e(n,r,o)),t,n,r)}class He extends z{constructor(e,t){super(),this.head=e,this.tail=t}toString(){return"["+Ie("; ",this)+"]"}Equals(e){return this===e||((e,t)=>{e:for(;;){const n=e,r=t,o=[n.tail,r.tail];if(null!=o[0]){if(null!=o[1]){const i=o[0],s=o[1];if(C(n.head,r.head)){e=i,t=s;continue e}return!1}return!1}return null==o[1]}})(this,e)}GetHashCode(){return 0|((e,t,n)=>{for(;;){const r=e,o=t,i=n,s=i.tail;if(null==s)return 0|o;{const u=s;if(r>18)return 0|o;e=r+1,t=(o<<1)+y(i.head)+631*r,n=u}}})(0,0,this)}toJSON(e){return Array.from(this)}CompareTo(e){return 0|((e,t)=>{e:for(;;){const n=e,r=t,o=[n.tail,r.tail];if(null!=o[0]){if(null!=o[1]){const i=o[0],s=o[1],u=0|k(n.head,r.head);if(0===u){e=i,t=s;continue e}return 0|u}return 1}return null!=o[1]?-1:0}})(this,e)}GetEnumerator(){return new je(this)}[Symbol.iterator](){return c(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return l(this)}}class je{constructor(e){this.xs=e,this.it=this.xs,this.current=null}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current}"System.Collections.IEnumerator.get_Current"(){return this.current}"System.Collections.IEnumerator.MoveNext"(){const e=this,t=e.it.tail;if(null!=t){const n=t;return e.current=e.it.head,e.it=n,!0}return!1}"System.Collections.IEnumerator.Reset"(){const e=this;e.it=e.xs,e.current=null}Dispose(){}}function ze(){return new He(null,void 0)}function qe(e,t){return new He(e,t)}function We(e){return null==e.tail}function Ve(e){return 0|((e,t)=>{for(;;){const n=e,r=t.tail;if(null==r)return 0|n;e=n+1,t=r}})(0,e)}function Ze(e){if(null!=e.tail)return e.head;throw new Error("Collection was empty.\\nParameter name: list")}function Ye(e){const t=e.tail;if(null!=t)return t;throw new Error("Collection was empty.\\nParameter name: list")}function Je(){return ze()}function Xe(e,t){return qe(e,t)}function Ke(e){return qe(e,ze())}function Qe(e){return We(e)}function et(e){return Ve(e)}function tt(e){return Ze(e)}function nt(e){return Ye(e)}function rt(e){const t=0|Ve(e),n=Ge(new Array(t),0,t,null);return((e,t)=>{for(;;){const r=e,o=t;if(We(o))break;n[r]=Ze(o),e=r+1,t=Ye(o)}})(0,e),n}function ot(e,t,n){let r=t,o=n;for(;!We(o);)r=e(r,Ze(o)),o=Ye(o);return r}function it(e){return ot(((e,t)=>qe(t,e)),ze(),e)}function st(e,t){let n=t;for(let t=e.length-1;t>=0;t--)n=qe(e[t],n);return n}function ut(e){return st(e,ze())}function at(e){let t,n;if(r(e))return ut(e);if(e instanceof He)return e;{const r=ze();let o=r;const i=l(e);try{for(;i["System.Collections.IEnumerator.MoveNext"]();){const e=i["System.Collections.Generic.IEnumerator`1.get_Current"]();t=o,n=new He(e,void 0),t.tail=n,o=n}}finally{s(i)}const u=o,a=ze();return u.tail=a,Ye(r)}}function lt(e,t){return ot(((e,t)=>qe(t,e)),t,it(e))}function ct(e,t){const n=ze(),r=ot(((t,n)=>{const r=new He(e(n),void 0);return t.tail=r,r}),n,t),o=ze();return r.tail=o,Ye(n)}function $t(e,t){return(t=>{e:for(;;){const n=t;if(We(n))return;{const r=e(Ze(n));if(null==r){t=Ye(n);continue e}return r}}})(t)}function ft(e,t){return((t,n)=>{for(;;){const r=t,o=n;if(We(o))return;if(e(Ze(o)))return r;t=r+1,n=Ye(o)}})(0,t)}function dt(e,t){return null!=ft(e,t)}class ht{constructor(e=!1){this._id=0,this._cancelled=e,this._listeners=new Map}get isCancelled(){return this._cancelled}cancel(){if(!this._cancelled){this._cancelled=!0;for(const[,e]of this._listeners)e()}}addListener(e){const t=this._id;return this._listeners.set(this._id++,e),t}removeListener(e){return this._listeners.delete(e)}register(e,t){const n=this,r=this.addListener(null==t?e:()=>e(t));return{Dispose(){n.removeListener(r)}}}Dispose(){}}class mt extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,mt.prototype)}}class pt{constructor(){this.callCount=0}static get maxTrampolineCallCount(){return 2e3}incrementAndCheck(){return this.callCount++>pt.maxTrampolineCallCount}hijack(e){this.callCount=0,setTimeout(e,0)}}function wt(e){return t=>{if(t.cancelToken.isCancelled)t.onCancel(new mt);else if(t.trampoline.incrementAndCheck())t.trampoline.hijack((()=>{try{e(t)}catch(e){t.onError(W(e))}}));else try{e(t)}catch(e){t.onError(W(e))}}}const gt=new class{Bind(e,t){return function(e,t){return wt((n=>{e({onSuccess:e=>{try{t(e)(n)}catch(e){n.onError(W(e))}},onError:n.onError,onCancel:n.onCancel,cancelToken:n.cancelToken,trampoline:n.trampoline})}))}(e,t)}Combine(e,t){return this.Bind(e,(()=>t))}Delay(e){return wt((t=>e()(t)))}For(e,t){const n=e[Symbol.iterator]();let r=n.next();return this.While((()=>!r.done),this.Delay((()=>{const e=t(r.value);return r=n.next(),e})))}Return(e){return function(e){return wt((t=>t.onSuccess(e)))}(e)}ReturnFrom(e){return e}TryFinally(e,t){return wt((n=>{e({onSuccess:e=>{t(),n.onSuccess(e)},onError:e=>{t(),n.onError(e)},onCancel:e=>{t(),n.onCancel(e)},cancelToken:n.cancelToken,trampoline:n.trampoline})}))}TryWith(e,t){return wt((n=>{e({onSuccess:n.onSuccess,onCancel:n.onCancel,cancelToken:n.cancelToken,trampoline:n.trampoline,onError:e=>{try{t(e)(n)}catch(e){n.onError(W(e))}}})}))}Using(e,t){return this.TryFinally(t(e),(()=>e.Dispose()))}While(e,t){return e()?this.Bind(t,(()=>this.While(e,t))):this.Return(void 0)}Zero(){return wt((e=>e.onSuccess(void 0)))}};class yt extends j{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Ok","Error"]}}function _t(e,t){return 0===t.tag?new yt(0,e(t.fields[0])):new yt(1,t.fields[0])}function vt(e,t){return 0===t.tag?new yt(0,t.fields[0]):new yt(1,e(t.fields[0]))}function bt(e,t){return 0===t.tag?e(t.fields[0]):new yt(1,t.fields[0])}class Ct extends j{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Choice1Of2","Choice2Of2"]}}function St(e){}function xt(e){const t=new ht("boolean"==typeof e&&e);return"number"==typeof e&&setTimeout((()=>{t.cancel()}),e),t}function Et(e){e.cancel()}const kt=new ht;function Nt(e,t){return function(e,t){return function(e,t,n,r,o){"function"!=typeof t&&(o=t,t=void 0);const i=new pt;e({onSuccess:t||St,onError:n||St,onCancel:r||St,cancelToken:o||kt,trampoline:i})}(e,t)}(e,t)}const At=class{constructor(){this.delegates=[]}Add(e){this._addHandler(e)}get Publish(){return this}Trigger(e,t){let n,r;void 0===t?(n=null,r=e):(n=e,r=t),this.delegates.forEach((e=>1===e.length?e(r):e(n,r)))}AddHandler(e){this._addHandler(e)}RemoveHandler(e){this._removeHandler(e)}Subscribe(e){const t="function"==typeof e?e:e.OnNext;return this._addHandler(t),{Dispose:()=>{this._removeHandler(t)}}}_addHandler(e){this.delegates.push(e)}_removeHandler(e){const t=this.delegates.indexOf(e);t>-1&&this.delegates.splice(t,1)}};class Mt{constructor(e,t,n){this.OnNext=e,this.OnError=t||(e=>{}),this.OnCompleted=n||(()=>{})}}function Tt(e,t){let n,r=new class{constructor(e){this._enabled=!1,this._isDisposed=!1,this._intervalId=0,this._timeoutId=0,this.Interval=e&&e>0?e:100,this.AutoReset=!0,this._elapsed=new At}Elapsed(){return this._elapsed}get Enabled(){return this._enabled}set Enabled(e){this._isDisposed||this._enabled===e||(this._enabled=e,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}}(e);r.AutoReset=!1,n=r,function(e,t){t.Subscribe(new Mt(e))}(t,n.Elapsed()),n.Enabled=!0,n.Start()}function It(e,t){var n;n=t=>{t(e)},ot(((e,t)=>{n(t)}),void 0,t)}function Ot(){return Je()}function Pt(e){return Ke((t=>{t(e)}))}function Dt(e,t,n,r,o){return Ke((i=>{e(gt.Delay((()=>{return gt.Bind((e=t(n),wt((t=>{e({onSuccess:e=>t.onSuccess(function(e){return new Ct(0,e)}(e)),onError:e=>t.onSuccess(function(e){return new Ct(1,e)}(e)),onCancel:t.onCancel,cancelToken:t.cancelToken,trampoline:t.trampoline})}))),(e=>{const t=e;return i(1===t.tag?o(t.fields[0]):r(t.fields[0])),gt.Zero()}));var e})))}))}function Ft(e){Tt(0,(t=>{Nt(e)}))}function Rt(){return e=k,{Compare:(t,n)=>e(t,n)};var e}const Gt="The input sequence has an insufficient number of elements.";function Ut(){throw new Error("Enumeration has not started. Call MoveNext.")}function Lt(){throw new Error("Enumeration already finished.")}class Bt{constructor(e){this.f=e}toString(){let e=0,t="seq [";const n=l(this);try{for(;e<4&&n["System.Collections.IEnumerator.MoveNext"]();)e>0&&(t+="; "),t+=H(n["System.Collections.Generic.IEnumerator`1.get_Current"]()),e=e+1|0;return 4===e&&(t+="; ..."),t+"]"}finally{s(n)}}GetEnumerator(){return this.f()}[Symbol.iterator](){return c(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}class Ht{constructor(e,t,n){this.current=e,this.next=t,this.dispose=n}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current()}"System.Collections.IEnumerator.get_Current"(){return this.current()}"System.Collections.IEnumerator.MoveNext"(){return this.next()}"System.Collections.IEnumerator.Reset"(){!function(){throw new Error("Reset is not supported on this enumerator.")}()}Dispose(){this.dispose()}}function jt(e,t,n){return new Ht(e,t,n)}function zt(e,t,n){let r,o=!1,i=D(e());const s=()=>{if(null!=i){const e=F(i);try{n(e)}finally{i=void 0}}},u=()=>{try{s()}finally{r=void 0}};return jt((()=>(o||Ut(),null!=r?F(r):Lt())),(()=>{if(o||(o=!0),null!=i){const e=F(i);let n;try{n=t(e)}catch(e){throw u(),e}return null!=n?(r=n,!0):(u(),!1)}return!1}),s)}function qt(e){return function(e){return new Bt(e)}(e)}function Wt(e){return t="source",null==e&&function(e){throw new Error(e)}(t),l(e);var t}function Vt(e){return qt((()=>l(e())))}function Zt(e){return qt((()=>function(e){let t,n,r,o=!1,i=!1;const u=()=>{if(i=!0,null!=n){const e=n;try{s(e)}finally{n=void 0}}if(null!=t){const e=t;try{s(e)}finally{t=void 0}}};return jt((()=>(o?i&&Lt():Ut(),null!=r?F(r):Lt())),(()=>{let a;if(o||(o=!0),i)return!1;{let o;for(;null==o;){const i=[t,n];if(null!=i[0])if(null!=i[1]){const e=i[1];if(e["System.Collections.IEnumerator.MoveNext"]())r=D(e["System.Collections.Generic.IEnumerator`1.get_Current"]()),o=!0;else try{s(e)}finally{n=void 0}}else{const e=i[0];e["System.Collections.IEnumerator.MoveNext"]()?(a=e["System.Collections.Generic.IEnumerator`1.get_Current"](),n=l(a)):(u(),o=!1)}else t=l(e)}return F(o)}}),(()=>{i||u()}))}(e)))}function Yt(){return Vt((()=>new Array(0)))}function Jt(e){return Vt((()=>function(e,t){const n=Re(void 0,1);return n[0]=e,n}(e)))}function Xt(e){return r(e)?ut(e):e instanceof He?e:at(e)}function Kt(e,t,n){return qt((()=>zt(e,t,n)))}function Qt(e,t,n){return qt((()=>{let r=-1;return zt(e,(e=>(r=r+1|0,t(r,e))),n)}))}function en(e,t){return Zt([e,t])}function tn(e,t,n){const r=Wt(t);try{let t=!1;for(;!t&&r["System.Collections.IEnumerator.MoveNext"]();)t=n.Equals(e,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return t}finally{s(r)}}function nn(e,t,n){const r=Wt(n);try{let n=t;for(;r["System.Collections.IEnumerator.MoveNext"]();)n=e(n,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return n}finally{s(r)}}function rn(e,t){nn(((t,n)=>{e(n)}),void 0,t)}function on(e,t){return Kt((()=>Wt(t)),(t=>t["System.Collections.IEnumerator.MoveNext"]()?D(e(t["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0),(e=>{s(e)}))}function sn(e,t){return qt((()=>{const n=Wt(t);try{for(let t=1;t<=e;t++)if(!n["System.Collections.IEnumerator.MoveNext"]())throw new Error(Gt+"\\nParameter name: source");return function(e,t){return jt((()=>t["System.Collections.Generic.IEnumerator`1.get_Current"]()),(()=>t["System.Collections.IEnumerator.MoveNext"]()),(()=>{try{s(t)}finally{e()}}))}((()=>{}),n)}catch(e){throw s(n),e}}))}function un(e,t){return Vt((()=>Zt(on(e,t))))}function an(e,t,n,r,o){const i=function(e,t,n,r){const o=0|k(e,n);if(0===o)throw new Error("The step of a range cannot be zero");const i=o>0;return n=>{const o=0|k(n,t);return i&&o<=0||!i&&o>=0?[n,r(n,e)]:void 0}}(t,n,r,o);return Vt((()=>{return t=i,n=e,qt((()=>function(e,t){let n,r=t;return jt((()=>{if(null!=n){const e=n[0];return n[1],e}return Ut()}),(()=>{if(n=e(r),null!=n){n[0];const e=n[1];return r=e,!0}return!1}),(()=>{}))}(t,n)));var t,n}))}Symbol.iterator;class ln extends j{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Writable","ReadWritable"]}}class cn{constructor(e){this.state=new ln(0,Ge(new Array(N(x,e,10)),0,N(x,e,10),null),0)}}function $n(e){const t=e.state;if(1===t.tag){const n=0|t.fields[1],r=0|t.fields[2],o=t.fields[0],i=(r+1)%o.length|0;return e.state=i===n?new ln(0,o,n):new ln(1,o,n,i),D(o[r])}}class fn extends z{constructor(e,t,n,r,o,i,s){super(),this.init=e,this.update=t,this.subscribe=n,this.view=r,this.setState=o,this.onError=i,this.syncDispatch=s}}function dn(e,t){const n=t.init(e),r=n[0],o=new cn(10);let i=!1,u=r;const a=O(1,t.syncDispatch,[e=>{if(i)!function(e,t){const n=e.state;if(1===n.tag){const i=0|n.fields[1],u=0|n.fields[2],a=n.fields[0];a[i]=t;const l=(i+1)%a.length|0;e.state=l===u?new ln(1,(r=u,o=a,Array.from(Vt((()=>en(sn(r,o),Vt((()=>{return en((e=r,t=o,Qt((()=>Wt(t)),((t,n)=>{if(t<e){if(n["System.Collections.IEnumerator.MoveNext"]())return D(n["System.Collections.Generic.IEnumerator`1.get_Current"]());throw new Error(Gt+"\\nParameter name: source")}}),(e=>{s(e)}))),Vt((()=>un((e=>Jt(null)),an(0,1,o.length,0,((e,t)=>e+t))))));var e,t}))))))),a.length,0):new ln(1,a,l,u)}else{const r=0|n.fields[1],o=n.fields[0];o[r]=t;const i=(r+1)%o.length|0;e.state=new ln(1,o,i,r)}var r,o}(o,e);else{i=!0;let n=D(e);for(;null!=n;){const e=F(n);try{const n=t.update(e,u),r=n[0];t.setState(r,a),It(a,n[1]),u=r}catch(n){t.onError([Ee(Se("Unable to process the message: %A"))(e),n])}n=$n(o)}i=!1}}]);t.setState(r,a),It(a,lt((()=>{try{return t.subscribe(r)}catch(e){return t.onError(["Unable to subscribe:",e]),Ot()}})(),n[1]))}var hn,mn,pn,wn,gn,yn,_n,vn={},bn=[],Cn=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function Sn(e,t){for(var n in t)e[n]=t[n];return e}function xn(e){var t=e.parentNode;t&&t.removeChild(e)}function En(e,t,n){var r,o,i,s={};for(i in t)"key"==i?r=t[i]:"ref"==i?o=t[i]:s[i]=t[i];if(arguments.length>2&&(s.children=arguments.length>3?hn.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(i in e.defaultProps)void 0===s[i]&&(s[i]=e.defaultProps[i]);return kn(e,s,r,o,null)}function kn(e,t,n,r,o){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==o?++pn:o};return null!=mn.vnode&&mn.vnode(i),i}function Nn(e){return e.children}function An(e,t){this.props=e,this.context=t}function Mn(e,t){if(null==t)return e.__?Mn(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?Mn(e):null}function Tn(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return Tn(e)}}function In(e){(!e.__d&&(e.__d=!0)&&wn.push(e)&&!On.__r++||yn!==mn.debounceRendering)&&((yn=mn.debounceRendering)||gn)(On)}function On(){for(var e;On.__r=wn.length;)e=wn.sort((function(e,t){return e.__v.__b-t.__v.__b})),wn=[],e.some((function(e){var t,n,r,o,i,s;e.__d&&(i=(o=(t=e).__v).__e,(s=t.__P)&&(n=[],(r=Sn({},o)).__v=o.__v+1,Hn(s,o,r,t.__n,void 0!==s.ownerSVGElement,null!=o.__h?[i]:null,n,null==i?Mn(o):i,o.__h),jn(n,o),o.__e!=i&&Tn(o)))}))}function Pn(e,t,n,r,o,i,s,u,a,l){var c,$,f,d,h,m,p,w=r&&r.__k||bn,g=w.length;for(n.__k=[],c=0;c<t.length;c++)if(null!=(d=n.__k[c]=null==(d=t[c])||"boolean"==typeof d?null:"string"==typeof d||"number"==typeof d||"bigint"==typeof d?kn(null,d,null,null,d):Array.isArray(d)?kn(Nn,{children:d},null,null,null):d.__b>0?kn(d.type,d.props,d.key,null,d.__v):d)){if(d.__=n,d.__b=n.__b+1,null===(f=w[c])||f&&d.key==f.key&&d.type===f.type)w[c]=void 0;else for($=0;$<g;$++){if((f=w[$])&&d.key==f.key&&d.type===f.type){w[$]=void 0;break}f=null}Hn(e,d,f=f||vn,o,i,s,u,a,l),h=d.__e,($=d.ref)&&f.ref!=$&&(p||(p=[]),f.ref&&p.push(f.ref,null,d),p.push($,d.__c||h,d)),null!=h?(null==m&&(m=h),"function"==typeof d.type&&null!=d.__k&&d.__k===f.__k?d.__d=a=Dn(d,a,e):a=Rn(e,d,f,w,h,a),l||"option"!==n.type?"function"==typeof n.type&&(n.__d=a):e.value=""):a&&f.__e==a&&a.parentNode!=e&&(a=Mn(f))}for(n.__e=m,c=g;c--;)null!=w[c]&&("function"==typeof n.type&&null!=w[c].__e&&w[c].__e==n.__d&&(n.__d=Mn(r,c+1)),Wn(w[c],w[c]));if(p)for(c=0;c<p.length;c++)qn(p[c],p[++c],p[++c])}function Dn(e,t,n){var r,o;for(r=0;r<e.__k.length;r++)(o=e.__k[r])&&(o.__=e,t="function"==typeof o.type?Dn(o,t,n):Rn(n,o,o,e.__k,o.__e,t));return t}function Fn(e,t){return t=t||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some((function(e){Fn(e,t)})):t.push(e)),t}function Rn(e,t,n,r,o,i){var s,u,a;if(void 0!==t.__d)s=t.__d,t.__d=void 0;else if(null==n||o!=i||null==o.parentNode)e:if(null==i||i.parentNode!==e)e.appendChild(o),s=null;else{for(u=i,a=0;(u=u.nextSibling)&&a<r.length;a+=2)if(u==o)break e;e.insertBefore(o,i),s=i}return void 0!==s?s:o.nextSibling}function Gn(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||Cn.test(t)?n:n+"px"}function Un(e,t,n,r,o){var i;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||Gn(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||Gn(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r||e.addEventListener(t,i?Bn:Ln,i):e.removeEventListener(t,i?Bn:Ln,i);else if("dangerouslySetInnerHTML"!==t){if(o)t=t.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null!=n&&(!1!==n||"a"===t[0]&&"r"===t[1])?e.setAttribute(t,n):e.removeAttribute(t))}}function Ln(e){this.l[e.type+!1](mn.event?mn.event(e):e)}function Bn(e){this.l[e.type+!0](mn.event?mn.event(e):e)}function Hn(e,t,n,r,o,i,s,u,a){var l,c,$,f,d,h,m,p,w,g,y,_=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(a=n.__h,u=t.__e=n.__e,t.__h=null,i=[u]),(l=mn.__b)&&l(t);try{e:if("function"==typeof _){if(p=t.props,w=(l=_.contextType)&&r[l.__c],g=l?w?w.props.value:l.__:r,n.__c?m=(c=t.__c=n.__c).__=c.__E:("prototype"in _&&_.prototype.render?t.__c=c=new _(p,g):(t.__c=c=new An(p,g),c.constructor=_,c.render=Vn),w&&w.sub(c),c.props=p,c.state||(c.state={}),c.context=g,c.__n=r,$=c.__d=!0,c.__h=[]),null==c.__s&&(c.__s=c.state),null!=_.getDerivedStateFromProps&&(c.__s==c.state&&(c.__s=Sn({},c.__s)),Sn(c.__s,_.getDerivedStateFromProps(p,c.__s))),f=c.props,d=c.state,$)null==_.getDerivedStateFromProps&&null!=c.componentWillMount&&c.componentWillMount(),null!=c.componentDidMount&&c.__h.push(c.componentDidMount);else{if(null==_.getDerivedStateFromProps&&p!==f&&null!=c.componentWillReceiveProps&&c.componentWillReceiveProps(p,g),!c.__e&&null!=c.shouldComponentUpdate&&!1===c.shouldComponentUpdate(p,c.__s,g)||t.__v===n.__v){c.props=p,c.state=c.__s,t.__v!==n.__v&&(c.__d=!1),c.__v=t,t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),c.__h.length&&s.push(c);break e}null!=c.componentWillUpdate&&c.componentWillUpdate(p,c.__s,g),null!=c.componentDidUpdate&&c.__h.push((function(){c.componentDidUpdate(f,d,h)}))}c.context=g,c.props=p,c.state=c.__s,(l=mn.__r)&&l(t),c.__d=!1,c.__v=t,c.__P=e,l=c.render(c.props,c.state,c.context),c.state=c.__s,null!=c.getChildContext&&(r=Sn(Sn({},r),c.getChildContext())),$||null==c.getSnapshotBeforeUpdate||(h=c.getSnapshotBeforeUpdate(f,d)),y=null!=l&&l.type===Nn&&null==l.key?l.props.children:l,Pn(e,Array.isArray(y)?y:[y],t,n,r,o,i,s,u,a),c.base=t.__e,t.__h=null,c.__h.length&&s.push(c),m&&(c.__E=c.__=null),c.__e=!1}else null==i&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=zn(n.__e,t,n,r,o,i,s,a);(l=mn.diffed)&&l(t)}catch(e){t.__v=null,(a||null!=i)&&(t.__e=u,t.__h=!!a,i[i.indexOf(u)]=null),mn.__e(e,t,n)}}function jn(e,t){mn.__c&&mn.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){mn.__e(e,t.__v)}}))}function zn(e,t,n,r,o,i,s,u){var a,l,c,$=n.props,f=t.props,d=t.type,h=0;if("svg"===d&&(o=!0),null!=i)for(;h<i.length;h++)if((a=i[h])&&(a===e||(d?a.localName==d:3==a.nodeType))){e=a,i[h]=null;break}if(null==e){if(null===d)return document.createTextNode(f);e=o?document.createElementNS("http://www.w3.org/2000/svg",d):document.createElement(d,f.is&&f),i=null,u=!1}if(null===d)$===f||u&&e.data===f||(e.data=f);else{if(i=i&&hn.call(e.childNodes),l=($=n.props||vn).dangerouslySetInnerHTML,c=f.dangerouslySetInnerHTML,!u){if(null!=i)for($={},h=0;h<e.attributes.length;h++)$[e.attributes[h].name]=e.attributes[h].value;(c||l)&&(c&&(l&&c.__html==l.__html||c.__html===e.innerHTML)||(e.innerHTML=c&&c.__html||""))}if(function(e,t,n,r,o){var i;for(i in n)"children"===i||"key"===i||i in t||Un(e,i,null,n[i],r);for(i in t)o&&"function"!=typeof t[i]||"children"===i||"key"===i||"value"===i||"checked"===i||n[i]===t[i]||Un(e,i,t[i],n[i],r)}(e,f,$,o,u),c)t.__k=[];else if(h=t.props.children,Pn(e,Array.isArray(h)?h:[h],t,n,r,o&&"foreignObject"!==d,i,s,i?i[0]:n.__k&&Mn(n,0),u),null!=i)for(h=i.length;h--;)null!=i[h]&&xn(i[h]);u||("value"in f&&void 0!==(h=f.value)&&(h!==e.value||"progress"===d&&!h)&&Un(e,"value",h,$.value,!1),"checked"in f&&void 0!==(h=f.checked)&&h!==e.checked&&Un(e,"checked",h,$.checked,!1))}return e}function qn(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){mn.__e(e,n)}}function Wn(e,t,n){var r,o;if(mn.unmount&&mn.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||qn(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){mn.__e(e,t)}r.base=r.__P=null}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&Wn(r[o],t,"function"!=typeof e.type);n||null==e.__e||xn(e.__e),e.__e=e.__d=void 0}function Vn(e,t,n){return this.constructor(e,n)}function Zn(e,t,n){var r,o,i;mn.__&&mn.__(e,t),o=(r="function"==typeof n)?null:n&&n.__k||t.__k,i=[],Hn(t,e=(!r&&n||t).__k=En(Nn,null,[e]),o||vn,vn,void 0!==t.ownerSVGElement,!r&&n?[n]:o?null:t.firstChild?hn.call(t.childNodes):null,i,!r&&n?n:o?o.__e:t.firstChild,r),jn(i,e)}function Yn(e,t){Zn(e,t,Yn)}function Jn(e,t,n){var r,o,i,s=Sn({},e.props);for(i in t)"key"==i?r=t[i]:"ref"==i?o=t[i]:s[i]=t[i];return arguments.length>2&&(s.children=arguments.length>3?hn.call(arguments,2):n),kn(e.type,s,r||e.key,o||e.ref,null)}hn=bn.slice,mn={__e:function(e,t){for(var n,r,o;t=t.__;)if((n=t.__c)&&!n.__)try{if((r=n.constructor)&&null!=r.getDerivedStateFromError&&(n.setState(r.getDerivedStateFromError(e)),o=n.__d),null!=n.componentDidCatch&&(n.componentDidCatch(e),o=n.__d),o)return n.__E=n}catch(t){e=t}throw e}},pn=0,An.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=Sn({},this.state),"function"==typeof e&&(e=e(Sn({},n),this.props)),e&&Sn(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),In(this))},An.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),In(this))},An.prototype.render=Nn,wn=[],gn="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,On.__r=0,_n=0;var Xn,Kn,Qn,er=0,tr=[],nr=mn.__b,rr=mn.__r,or=mn.diffed,ir=mn.__c,sr=mn.unmount;function ur(e,t){mn.__h&&mn.__h(Kn,e,er||t),er=0;var n=Kn.__H||(Kn.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function ar(e){return er=1,lr(yr,e)}function lr(e,t,n){var r=ur(Xn++,2);return r.t=e,r.__c||(r.__=[n?n(t):yr(void 0,t),function(e){var t=r.t(r.__[0],e);r.__[0]!==t&&(r.__=[t,r.__[1]],r.__c.setState({}))}],r.__c=Kn),r.__}function cr(e,t){var n=ur(Xn++,3);!mn.__s&&gr(n.__H,t)&&(n.__=e,n.__H=t,Kn.__H.__h.push(n))}function $r(e,t){var n=ur(Xn++,4);!mn.__s&&gr(n.__H,t)&&(n.__=e,n.__H=t,Kn.__h.push(n))}function fr(e){return er=5,dr((function(){return{current:e}}),[])}function dr(e,t){var n=ur(Xn++,7);return gr(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function hr(){tr.forEach((function(e){if(e.__P)try{e.__H.__h.forEach(pr),e.__H.__h.forEach(wr),e.__H.__h=[]}catch(t){e.__H.__h=[],mn.__e(t,e.__v)}})),tr=[]}mn.__b=function(e){Kn=null,nr&&nr(e)},mn.__r=function(e){rr&&rr(e),Xn=0;var t=(Kn=e.__c).__H;t&&(t.__h.forEach(pr),t.__h.forEach(wr),t.__h=[])},mn.diffed=function(e){or&&or(e);var t=e.__c;t&&t.__H&&t.__H.__h.length&&(1!==tr.push(t)&&Qn===mn.requestAnimationFrame||((Qn=mn.requestAnimationFrame)||function(e){var t,n=function(){clearTimeout(r),mr&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);mr&&(t=requestAnimationFrame(n))})(hr)),Kn=void 0},mn.__c=function(e,t){t.some((function(e){try{e.__h.forEach(pr),e.__h=e.__h.filter((function(e){return!e.__||wr(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],mn.__e(n,e.__v)}})),ir&&ir(e,t)},mn.unmount=function(e){sr&&sr(e);var t=e.__c;if(t&&t.__H)try{t.__H.__.forEach(pr)}catch(e){mn.__e(e,t.__v)}};var mr="function"==typeof requestAnimationFrame;function pr(e){var t=Kn;"function"==typeof e.__c&&e.__c(),Kn=t}function wr(e){var t=Kn;e.__c=e.__(),Kn=t}function gr(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function yr(e,t){return"function"==typeof t?t(e):t}function _r(e,t){for(var n in t)e[n]=t[n];return e}function vr(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function br(e){this.props=e}(br.prototype=new An).isPureReactComponent=!0,br.prototype.shouldComponentUpdate=function(e,t){return vr(this.props,e)||vr(this.state,t)};var Cr=mn.__b;mn.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Cr&&Cr(e)};var Sr="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911,xr=function(e,t){return null==e?null:Fn(Fn(e).map(t))},Er={map:xr,forEach:xr,count:function(e){return e?Fn(e).length:0},only:function(e){var t=Fn(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:Fn},kr=mn.__e;mn.__e=function(e,t,n){if(e.then)for(var r,o=t;o=o.__;)if((r=o.__c)&&r.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),r.__c(e,t);kr(e,t,n)};var Nr=mn.unmount;function Ar(){this.__u=0,this.t=null,this.__b=null}function Mr(e){var t=e.__.__c;return t&&t.__e&&t.__e(e)}function Tr(){this.u=null,this.o=null}mn.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&!0===e.__h&&(e.type=null),Nr&&Nr(e)},(Ar.prototype=new An).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var o=Mr(r.__v),i=!1,s=function(){i||(i=!0,n.__R=null,o?o(u):u())};n.__R=s;var u=function(){if(!--r.__u){if(r.state.__e){var e=r.state.__e;r.__v.__k[0]=function e(t,n,r){return t&&(t.__v=null,t.__k=t.__k&&t.__k.map((function(t){return e(t,n,r)})),t.__c&&t.__c.__P===n&&(t.__e&&r.insertBefore(t.__e,t.__d),t.__c.__e=!0,t.__c.__P=r)),t}(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__e:r.__b=null});t=r.t.pop();)t.forceUpdate()}},a=!0===t.__h;r.__u++||a||r.setState({__e:r.__b=r.__v.__k[0]}),e.then(s,s)},Ar.prototype.componentWillUnmount=function(){this.t=[]},Ar.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]=function e(t,n,r){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),t.__c.__H=null),null!=(t=_r({},t)).__c&&(t.__c.__P===r&&(t.__c.__P=n),t.__c=null),t.__k=t.__k&&t.__k.map((function(t){return e(t,n,r)}))),t}(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__e&&En(Nn,null,e.fallback);return o&&(o.__h=null),[En(Nn,null,t.__e?null:e.children),o]};var Ir=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!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 Or(e){return this.getChildContext=function(){return e.context},e.children}function Pr(e){var t=this,n=e.i;t.componentWillUnmount=function(){Zn(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),e.__v?(t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(e){this.childNodes.push(e),t.i.appendChild(e)},insertBefore:function(e,n){this.childNodes.push(e),t.i.appendChild(e)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.i.removeChild(e)}}),Zn(En(Or,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}(Tr.prototype=new An).__e=function(e){var t=this,n=Mr(t.__v),r=t.o.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),Ir(t,e,r)):o()};n?n(i):i()}},Tr.prototype.render=function(e){this.u=null,this.o=new Map;var t=Fn(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},Tr.prototype.componentDidUpdate=Tr.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){Ir(e,n,t)}))};var Dr="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,Fr=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Rr=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(e)};An.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(An.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var Gr=mn.event;function Ur(){}function Lr(){return this.cancelBubble}function Br(){return this.defaultPrevented}mn.event=function(e){return Gr&&(e=Gr(e)),e.persist=Ur,e.isPropagationStopped=Lr,e.isDefaultPrevented=Br,e.nativeEvent=e};var Hr,jr={configurable:!0,get:function(){return this.class}},zr=mn.vnode;mn.vnode=function(e){var t=e.type,n=e.props,r=n;if("string"==typeof t){for(var o in r={},n){var i=n[o];"value"===o&&"defaultValue"in n&&null==i||("defaultValue"===o&&"value"in n&&null==n.value?o="value":"download"===o&&!0===i?i="":/ondoubleclick/i.test(o)?o="ondblclick":/^onchange(textarea|input)/i.test(o+t)&&!Rr(n.type)?o="oninput":/^on(Ani|Tra|Tou|BeforeInp)/.test(o)?o=o.toLowerCase():Fr.test(o)?o=o.replace(/[A-Z0-9]/,"-$&").toLowerCase():null===i&&(i=void 0),r[o]=i)}"select"==t&&r.multiple&&Array.isArray(r.value)&&(r.value=Fn(n.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==t&&null!=r.defaultValue&&(r.value=Fn(n.children).forEach((function(e){e.props.selected=r.multiple?-1!=r.defaultValue.indexOf(e.props.value):r.defaultValue==e.props.value}))),e.props=r}t&&n.class!=n.className&&(jr.enumerable="className"in n,null!=n.className&&(r.class=n.className),Object.defineProperty(r,"className",jr)),e.$$typeof=Dr,zr&&zr(e)};var qr=mn.__r;mn.__r=function(e){qr&&qr(e),Hr=e.__c};var Wr={ReactCurrentDispatcher:{current:{readContext:function(e){return Hr.__n[e.__c].props.value}}}};function Vr(e){return!!e&&e.$$typeof===Dr}const Zr={useState:ar,useReducer:lr,useEffect:cr,useLayoutEffect:$r,useRef:fr,useImperativeHandle:function(e,t,n){er=6,$r((function(){"function"==typeof e?e(t()):e&&(e.current=t())}),null==n?n:n.concat(e))},useMemo:dr,useCallback:function(e,t){return er=8,dr((function(){return e}),t)},useContext:function(e){var t=Kn.context[e.__c],n=ur(Xn++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(Kn)),t.props.value):e.__},useDebugValue:function(e,t){mn.useDebugValue&&mn.useDebugValue(t?t(e):e)},version:"17.0.2",Children:Er,render:function(e,t,n){return null==t.__k&&(t.textContent=""),Zn(e,t),"function"==typeof n&&n(),e?e.__c:null},hydrate:function(e,t,n){return Yn(e,t),"function"==typeof n&&n(),e?e.__c:null},unmountComponentAtNode:function(e){return!!e.__k&&(Zn(null,e),!0)},createPortal:function(e,t){return En(Pr,{__v:e,i:t})},createElement:En,createContext:function(e,t){var n={__c:t="__cC"+_n++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some(In)},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n},createFactory:function(e){return En.bind(null,e)},cloneElement:function(e){return Vr(e)?Jn.apply(null,arguments):e},createRef:function(){return{current:null}},Fragment:Nn,isValidElement:Vr,findDOMNode:function(e){return e&&(e.base||1===e.nodeType&&e)||null},Component:An,PureComponent:br,memo:function(e,t){function n(e){var n=this.props.ref,r=n==e.ref;return!r&&n&&(n.call?n(null):n.current=null),t?!t(this.props,e)||!r:vr(this.props,e)}function r(t){return this.shouldComponentUpdate=n,En(e,t)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r},forwardRef:function(e){function t(t,n){var r=_r({},t);return delete r.ref,e(r,(n=t.ref||n)&&("object"!=typeof n||"current"in n)?n:null)}return t.$$typeof=Sr,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t},flushSync:function(e,t){return e(t)},unstable_batchedUpdates:function(e,t){return e(t)},StrictMode:Nn,Suspense:Ar,SuspenseList:Tr,lazy:function(e){var t,n,r;function o(o){if(t||(t=e()).then((function(e){n=e.default||e}),(function(e){r=e})),r)throw r;if(!n)throw t;return En(n,o)}return o.displayName="Lazy",o.__f=!0,o},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Wr},Yr=Zr,Jr=(e,t)=>{cr((()=>{const t=e();return()=>{t.Dispose()}}),t)};function Xr(e){return{Dispose(){e()}}}function Kr(e){return Yr.useState(e)}function Qr(e,t){Jr(e,t)}function eo(e){!function(e,t){Jr((t=>(e(),Xr((()=>{})))),[])}(e)}function to(e){return Yr.useRef(e)}function no(e){const t=to(e),n=function(e,n){const r=U([],[]);return Yr.useCallback((e=>t.current(e)),r)}();var r,o;return r=()=>{t.current=e},o=e=>(r(),Xr((()=>{}))),$r((()=>{const e=o();return()=>{e.Dispose()}})),n}class ro{constructor(){this.hasDisposedOnce=!1,this.state=void 0,this.listener=void 0,this.dispatcher=void 0}}function oo(){return new ro}function io(e,t,n,r){dn(t,function(e,t){return new fn(t.init,t.update,t.subscribe,t.view,((e,t)=>{!function(e,t,n){e.state=D(t),e.dispatcher=n;const r=e.listener;null!=r&&r(t)}(n,e,t)}),t.onError,t.syncDispatch)}(0,e()));const o=function(e){return e.state}(n);if(null!=o)return F(o);throw new Error("Elmish program has not initialized")}function so(e,t){return function(e,t,n){const r=Kr(oo)[0],o=Kr((()=>io(e,t,r))),u=o[1];return Qr((()=>(function(e){return e.hasDisposedOnce}(r)&&u(io(e,t,r)),Xr((()=>{!function(e){const t=e.state;if(null!=t){const e=F(t);i(e)&&s(e)}e.dispatcher=void 0,e.state=void 0,e.hasDisposedOnce=!0}(r)})))),U(n,[])),function(e,t){null==e.listener&&(e.listener=t)}(r,u),[o[0],e=>{!function(e,t){const n=e.dispatcher;null!=n&&n(t)}(r,e)}]}(e,void 0,t)}function uo(e,t,n){return so((()=>function(e,t,n){return new fn(e,t,(e=>Ot()),n,T(2,(e=>{const t=O(1,n,[e]);return e=>{t(e)}})),(e=>{var t,n;t=e[0],n=e[1],console.error(D(t),n)}),T(2,(e=>e)))}((()=>e),t,((e,t)=>{}))),n)}function ao(){return(ao=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function lo(e){this.getChildContext=function(){return e.context};var t=e.children,n=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t.indexOf(n=i[r])>=0||(o[n]=e[n]);return o}(e,["context","children"]);return Jn(t,n)}function co(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=En(lo,ao({},this._props,{context:e.detail.context}),function e(t,n){if(3===t.nodeType)return t.data;if(1!==t.nodeType)return null;var r=[],o={},i=0,s=t.attributes,u=t.childNodes;for(i=s.length;i--;)"slot"!==s[i].name&&(o[s[i].name]=s[i].value,o[$o(s[i].name)]=s[i].value);for(i=u.length;i--;){var a=e(u[i],null),l=u[i].slot;l?o[l]=En(mo,{name:l},a):r[i]=a}var c=n?En(mo,null,r):r;return En(n||t.nodeName.toLowerCase(),o,c)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?Yn:Zn)(this._vdom,this._root)}function $o(e){return e.replace(/-(\w)/g,(function(e,t){return t?t.toUpperCase():""}))}function fo(e,t,n){if(this._vdom){var r={};r[e]=n=null==n?void 0:n,r[$o(e)]=n,this._vdom=Jn(this._vdom,r),Zn(this._vdom,this._root)}}function ho(){Zn(this._vdom=null,this._root)}function mo(e,t){var n=this;return En("slot",ao({},e,{ref:function(e){e?(n.ref=e,n._listener||(n._listener=function(e){e.stopPropagation(),e.detail.context=t},e.addEventListener("_preact",n._listener))):n.ref.removeEventListener("_preact",n._listener)}}))}function po(e,t){return t}function wo(e,t,n){return _t(n,t)}new class{constructor(){}};function go(e,t){const n=function(e,t){return new yt(0,t)}(0,t);return gt.Return(n)}function yo(e,t){return gt.Delay(t)}new class{constructor(){}};class _o extends j{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class vo extends j{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Header"]}}class bo extends j{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Empty","Text","Binary","Form"]}}class Co extends z{constructor(e,t,n,r,o,i,s,u){super(),this.url=e,this.method=t,this.headers=n,this.withCredentials=r,this.overridenMimeType=o,this.overridenResponseType=i,this.timeout=s,this.content=u}}class So extends j{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class xo extends z{constructor(e,t,n,r,o){super(),this.statusCode=0|e,this.responseText=t,this.responseType=n,this.responseHeaders=r,this.content=o}}class Eo{constructor(e,t){this.k=e,this.v=t}}function ko(e,t){return new Eo(e,t)}function No(e){return e.k}function Ao(e){return e.v}class Mo extends Eo{constructor(e,t,n,r,o){super(e,t),this.left=n,this.right=r,this.h=0|o}}function To(e,t,n,r,o){return new Mo(e,t,n,r,o)}function Io(e){return e.left}function Oo(e){return e.right}function Po(e){return e.h}function Do(e,t){e:for(;;){const n=e,r=t;if(null!=r){const o=r;if(o instanceof Mo){e=Do(n+1,Io(o)),t=Oo(o);continue e}return n+1|0}return 0|n}}function Fo(e){return Do(0,e)}function Ro(e,t,n,r){let o,i;if(null!=e){const t=e;o=t instanceof Mo?Po(t):1}else o=0;if(null!=r){const e=r;i=e instanceof Mo?Po(e):1}else i=0;const s=0|(o<i?i:o);return 0===s?ko(t,n):To(t,n,e,r,s+1)}function Go(e,t,n,r){let o,i,s,u,a,l;if(null!=e){const t=e;a=t instanceof Mo?Po(t):1}else a=0;if(null!=r){const e=r;l=e instanceof Mo?Po(e):1}else l=0;if(l>a+2){const s=F(r);if(s instanceof Mo){if(o=Io(s),(null!=o?(i=o,i instanceof Mo?Po(i):1):0)>a+1){const r=F(Io(s));if(r instanceof Mo)return Ro(Ro(e,t,n,Io(r)),No(r),Ao(r),Ro(Oo(r),No(s),Ao(s),Oo(s)));throw new Error("internal error: Map.rebalance")}return Ro(Ro(e,t,n,Io(s)),No(s),Ao(s),Oo(s))}throw new Error("internal error: Map.rebalance")}if(a>l+2){const o=F(e);if(o instanceof Mo){if(s=Oo(o),(null!=s?(u=s,u instanceof Mo?Po(u):1):0)>l+1){const e=F(Oo(o));if(e instanceof Mo)return Ro(Ro(Io(o),No(o),Ao(o),Io(e)),No(e),Ao(e),Ro(Oo(e),t,n,r));throw new Error("internal error: Map.rebalance")}return Ro(Io(o),No(o),Ao(o),Ro(Oo(o),t,n,r))}throw new Error("internal error: Map.rebalance")}return Ro(e,t,n,r)}function Uo(e,t,n,r){if(null!=r){const o=r,i=0|e.Compare(t,No(o));return o instanceof Mo?i<0?Go(Uo(e,t,n,Io(o)),No(o),Ao(o),Oo(o)):0===i?To(t,n,Io(o),Oo(o),Po(o)):Go(Io(o),No(o),Ao(o),Uo(e,t,n,Oo(o))):i<0?To(t,n,void 0,r,2):0===i?ko(t,n):To(t,n,r,void 0,2)}return ko(t,n)}function Lo(e,t,n){e:for(;;){const r=e,o=t,i=n;if(null!=i){const s=i,u=0|r.Compare(o,No(s));if(0===u)return D(Ao(s));if(s instanceof Mo){e=r,t=o,n=u<0?Io(s):Oo(s);continue e}return}return}}function Bo(e,t){e:for(;;){const n=e,r=t;if(null!=r){const o=r;if(o instanceof Mo){Bo(n,Io(o)),n(No(o),Ao(o)),e=n,t=Oo(o);continue e}n(No(o),Ao(o))}break}}function Ho(e,t){Bo(e,t)}function jo(e,t){if(null!=t){const n=t;if(n instanceof Mo){const t=jo(e,Io(n)),r=e(No(n),Ao(n)),o=jo(e,Oo(n));return To(No(n),r,t,o,Po(n))}return ko(No(n),e(No(n),Ao(n)))}}function zo(e,t){return jo(e,t)}function qo(e,t){let n;for(let r=0;r<=t.length-1;r++){const o=t[r];n=Uo(e,o[0],o[1],n)}return n}class Wo extends z{constructor(e,t){super(),this.stack=e,this.started=t}}function Vo(e){e:for(;;){const t=e;if(Qe(t))return Je();{const n=nt(t),r=tt(t);if(null!=r){const o=r;if(o instanceof Mo){e=st([Io(o),ko(No(o),Ao(o)),Oo(o)],n);continue e}return t}e=n;continue e}}}function Zo(e){return new Wo(Vo(Ke(e)),!1)}function Yo(e){if(e.started){const t=e.stack;if(Qe(t))return function(){throw new Error("enumeration already finished")}();if(null!=tt(t)){const e=tt(t);if(e instanceof Mo)throw new Error("Please report error: Map iterator, unexpected stack for current");return[No(e),Ao(e)]}throw new Error("Please report error: Map iterator, unexpected stack for current")}return function(){throw new Error("enumeration not started")}()}function Jo(e){let t=Zo(e);return{"System.Collections.Generic.IEnumerator`1.get_Current":()=>Yo(t),"System.Collections.IEnumerator.get_Current":()=>Yo(t),"System.Collections.IEnumerator.MoveNext":()=>function(e){if(e.started){const t=e.stack;if(Qe(t))return!1;if(null!=tt(t)){if(tt(t)instanceof Mo)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=Vo(nt(t)),!Qe(e.stack)}throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}return e.started=!0,!Qe(e.stack)}(t),"System.Collections.IEnumerator.Reset"(){t=Zo(e)},Dispose(){}}}class Xo{constructor(e,t){this.comparer=e,this.tree=t}GetHashCode(){return 0|function(e){const t=(e,t)=>(e<<1)+t+631;let n=0;const r=l(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const e=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n=0|t(n,y(e[0])),n=0|t(n,y(e[1]))}}finally{s(r)}return 0|n}(this)}Equals(e){if(!(e instanceof Xo))return!1;{const t=l(this);try{const n=l(e);try{const e=()=>{const r=t["System.Collections.IEnumerator.MoveNext"]();if(r===n["System.Collections.IEnumerator.MoveNext"]()){if(r){const r=t["System.Collections.Generic.IEnumerator`1.get_Current"](),o=n["System.Collections.Generic.IEnumerator`1.get_Current"]();return!(!C(r[0],o[0])||!C(r[1],o[1]))&&e()}return!0}return!1};return e()}finally{s(n)}}finally{s(t)}}}toString(){return"map ["+Ie("; ",on((e=>Me("({0}, {1})",e[0],e[1])),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(e){return Array.from(this)}GetEnumerator(){return Jo(this.tree)}[Symbol.iterator](){return c(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return Jo(this.tree)}CompareTo(e){const t=this;if(e instanceof Xo)return 0|function(e,t,n){const r=Wt(t);try{const t=Wt(n);try{let n=0,o=r["System.Collections.IEnumerator.MoveNext"](),i=t["System.Collections.IEnumerator.MoveNext"]();for(;0===n&&o&&i;)n=0|e(r["System.Collections.Generic.IEnumerator`1.get_Current"](),t["System.Collections.Generic.IEnumerator`1.get_Current"]()),0===n&&(o=r["System.Collections.IEnumerator.MoveNext"](),i=t["System.Collections.IEnumerator.MoveNext"]());return 0|(0!==n?n:o?1:i?-1:0)}finally{s(t)}}finally{s(r)}}(((e,n)=>{const r=0|t.comparer.Compare(e[0],n[0]);return 0|(0!==r?r:k(e[1],n[1]))}),t,e);throw new Error("not comparable\\nParameter name: obj")}"System.Collections.Generic.ICollection`1.Add2B595"(e){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Clear"(){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Remove2B595"(e){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Contains2B595"(e){return ni(this,e[0])&&C(ei(this,e[0]),e[1])}"System.Collections.Generic.ICollection`1.CopyToZ2E171D71"(e,t){!function(e,t,n){let r=n;Ho(((e,n)=>{t[r]=[e,n],r=r+1|0}),e)}(this.tree,e,t)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|ti(this)}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return 0|ti(this)}get size(){return 0|ti(this)}clear(){throw new Error("Map cannot be mutated")}delete(e){throw new Error("Map cannot be mutated")}entries(){return on((e=>[e[0],e[1]]),this)}get(e){return ei(this,e)}has(e){return ni(this,e)}keys(){return on((e=>e[0]),this)}set(e,t){throw new Error("Map cannot be mutated")}values(){return on((e=>e[1]),this)}forEach(e,t){const n=this;rn((t=>{e(t[1],t[0],n)}),n)}}function Ko(e,t){return new Xo(e,t)}function Qo(e){const t=Rt();return Ko(t,function(e,t){if(r(t))return qo(e,t);if(t instanceof He)return function(e,t){return ot(((t,n)=>Uo(e,n[0],n[1],t)),void 0,t)}(e,t);{const n=l(t);try{return function(e,t,n){for(;;){const r=e,o=t,i=n;if(!i["System.Collections.IEnumerator.MoveNext"]())return o;{const s=i["System.Collections.Generic.IEnumerator`1.get_Current"]();e=r,t=Uo(r,s[0],s[1],o),n=i}}}(e,void 0,n)}finally{s(n)}}}(t,e))}function ei(e,t){return function(e,t,n){const r=Lo(e,t,n);if(null==r)throw new Error;return F(r)}(e.comparer,t,e.tree)}function ti(e){return Fo(e.tree)}function ni(e,t){return function(e,t,n){e:for(;;){const r=e,o=t,i=n;if(null!=i){const s=i,u=0|r.Compare(o,No(s));if(s instanceof Mo){if(u<0){e=r,t=o,n=Io(s);continue e}if(0===u)return!0;e=r,t=o,n=Oo(s);continue e}return 0===u}return!1}}(e.comparer,t,e.tree)}function ri(e,t,n){return function(e,t,n){return Ko(e.comparer,Uo(e.comparer,t,n,e.tree))}(n,e,t)}function oi(e,t){return function(e,t){return Lo(e.comparer,t,e.tree)}(t,e)}function ii(e,t){return function(e,t){return Ko(e.comparer,zo(t,e.tree))}(t,e)}function si(){return Xo.empty}function ui(e){return new vo(0,"Content-Type",e)}Xo.empty=Ko(Rt(),void 0);const ai=new Co("",new _o(0),Je(),!1,void 0,void 0,void 0,new bo(0));function li(e,t){return"string"!=typeof(n=t)||0===n.length?[t]:function(e,t,n,r){if(r="number"==typeof r?r:0,(n="number"==typeof n?n:void 0)&&n<0)throw new Error("Count cannot be less than zero");if(0===n)return[];const o=1==(1&r),i=2==(2&r);t=(t=t||[]).filter((e=>e)).map(we),t=t.length>0?t:["\\s"];const s=[],u=new RegExp(t.join("|"),"g");let a=!0,l=0;do{const t=u.exec(e);if(null===t){const t=i?e.substring(l).trim():e.substring(l);(!o||t.length>0)&&s.push(t),a=!1}else{const r=i?e.substring(l,t.index).trim():e.substring(l,t.index);(!o||r.length>0)&&(null!=n&&s.length+1===n?(s.push(i?e.substring(l).trim():e.substring(l)),a=!1):s.push(r)),l=u.lastIndex}}while(a);return s}(t,[e],null,0);var n}function ci(e){return new Co(e,ai.method,ai.headers,ai.withCredentials,ai.overridenMimeType,ai.overridenResponseType,ai.timeout,ai.content)}function $i(e,t){return new Co(t.url,e,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function fi(e,t){return new Co(t.url,t.method,lt(t.headers,Ke(e)),t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function di(e,t){return new Co(t.url,t.method,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,e)}function hi(e){return function(e){return wt((t=>e([t.onSuccess,t.onError,t.onCancel])))}((t=>{const n=new XMLHttpRequest;n.open(function(e){switch(e.tag){case 1:return"POST";case 3:return"PATCH";case 2:return"PUT";case 4:return"DELETE";case 6:return"OPTIONS";case 5:return"HEAD";default:return"GET"}}(e.method),e.url),n.onreadystatechange=()=>{let e,r,o,i,s,u;4===n.readyState&&t[0]((r=n.responseType,e=""===r||"text"===r?n.responseText:"",o=0|n.status,i=n.responseType,u=n.responseType,s=""===u||"text"===u?new So(0,n.responseText):new So("arraybuffer"===u?2:"blob"===u?1:3,n.response),new xo(o,e,i,function(e){const t=Rt();return Ko(t,qo(t,e))}(function(e,t,n){const r=[];for(let n=0;n<=t.length-1;n++){const o=e(t[n]);if(null!=o){const e=F(o);r.push(e)}}return r}((e=>{const t=ut(li(":",e));return Qe(t)?void 0:[tt(t).toLocaleLowerCase(),Ie(":",nt(t)).trim()]}),li("\r\n",n.getAllResponseHeaders()))),s)))};const r=l(e.headers);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const e=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n.setRequestHeader(e.fields[0],e.fields[1])}}finally{s(r)}n.withCredentials=e.withCredentials;const o=e.overridenMimeType;if(null==o);else{const e=o;n.overrideMimeType(e)}const i=e.overridenResponseType;null==i||(1===i.tag?n.responseType="blob":2===i.tag?n.responseType="arraybuffer":n.responseType="text");const u=e.timeout;if(null==u);else{const e=0|u;n.timeout=0|e}const a=[e.method,e.content];0===a[0].tag?n.send(D(void 0)):1===a[1].tag||3===a[1].tag||2===a[1].tag?n.send(D(a[1].fields[0])):n.send(D(void 0))}))}function mi(e){return Te(e)?void 0:e}function pi(e){let t,n=K();return t=[ee(e,new q((()=>n),(e=>{n=e}))),n],t[0]?t[1]:void 0}function wi(e,t){!function(e,t,n,r){function o(){var t=Reflect.construct(HTMLElement,[],o);return t._vdomComponent=e,t._root=r&&r.shadow?t.attachShadow({mode:"open"}):t,t}(o.prototype=Object.create(HTMLElement.prototype)).constructor=o,o.prototype.connectedCallback=co,o.prototype.attributeChangedCallback=fo,o.prototype.disconnectedCallback=ho,n=n||e.observedAttributes||Object.keys(e.propTypes||{}),o.observedAttributes=n,n.forEach((function(e){Object.defineProperty(o.prototype,e,{get:function(){return this._vdom.props[e]},set:function(t){this._vdom?this.attributeChangedCallback(e,null,t):(this._props||(this._props={}),this._props[e]=t,this.connectedCallback());var n=typeof t;null!=t&&"string"!==n&&"boolean"!==n&&"number"!==n||this.setAttribute(e,t)}})})),customElements.define(t||e.tagName||e.displayName||e.name,o)}(e,t,void 0,{shadow:!0})}function gi(e,t){return yo(0,(()=>{const n=fi((r=Ee(Se("Bearer %s"))(e),new vo(0,"Authorization",r)),t);var r;let o;const i=hi(n);return o=gt.Bind(i,(e=>gt.Return(new yt(0,e)))),gt.Delay((()=>gt.Bind(o,(e=>{let t,r;const o=e;return 1===o.tag?gt.Return(new yt(1,o.fields[0])):gt.ReturnFrom((t=o.fields[0],429===t.statusCode||t.statusCode>=500?(r=hi(n),gt.Bind(r,(e=>gt.Return(new yt(0,e))))):go(0,t)))}))))}))}function yi(e,t,n){return $t((n=>{return 0===n.indexOf(e)?(r=e,o=t,n.replace(new RegExp(we(r),"g"),o)):void 0;var r,o}),n)}new xo(0,"","",si(),new So(0,""));class _i{constructor(e,t,n,r){this.declaringType=e,this.tag=t,this.name=n,this.fields=r}}class vi{constructor(e,t,n,r,o,i,s){this.fullname=e,this.generics=t,this.construct=n,this.parent=r,this.fields=o,this.cases=i,this.enumCases=s}toString(){return Ii(this)}GetHashCode(){return Ci(this)}Equals(e){return Si(this,e)}}function bi(e){return null!=e.generics?e.generics:[]}function Ci(e){return g([p(e.fullname),...bi(e).map(Ci)])}function Si(e,t){return""===e.fullname?""===t.fullname&&v(Hi(e),Hi(t),(([e,t],[n,r])=>e===n&&Si(t,r))):e.fullname===t.fullname&&v(bi(e),bi(t),Si)}function xi(e,t,n,r){return new vi(e,t,n,void 0,r)}function Ei(e,t,n,r){const o=new vi(e,t,n,void 0,void 0,(()=>{const e=n.prototype.cases();return r().map(((t,n)=>new _i(o,n,e[n],t)))}));return o}function ki(e){return new vi("Microsoft.FSharp.Core.FSharpOption`1",[e])}function Ni(e){return new vi("Microsoft.FSharp.Collections.FSharpList`1",[e])}const Ai=new vi("System.Object"),Mi=(new vi("Microsoft.FSharp.Core.Unit"),new vi("System.Char"),new vi("System.String"));function Ti(e){if(Array.isArray(e))return e[0];if(e instanceof vi){const t=Pi(e);if(null!=t)return Ti(t)+"[]";{const t=e.fullname.lastIndexOf(".");return-1===t?e.fullname:e.fullname.substr(t+1)}}return e.name}function Ii(e){const t=Pi(e);return null!=t?Ii(t)+"[]":null==e.generics||0===e.generics.length?e.fullname:e.fullname+"["+e.generics.map((e=>Ii(e))).join(",")+"]"}function Oi(e){return null!=Pi(e)}function Pi(e){var t;return"[]"===e.fullname&&1===(null===(t=e.generics)||void 0===t?void 0:t.length)?e.generics[0]:void 0}function Di(e){return null!=e.generics&&e.generics.length>0}function Fi(e){return null!=e.enumCases&&e.enumCases.length>0}function Ri(e){return null==e.generics?e:new vi(e.fullname,e.generics.map((()=>Ai)))}function Gi(e){var t;return null===(t=e.generics)||void 0===t?void 0:t[0]}function Ui(e){if(Fi(e)&&null!=e.enumCases)return e.enumCases.map((e=>e[1]));throw new Error(`${e.fullname} is not an enum type`)}function Li(e,t){const n=parseInt(t,10);return function(e,t){if(null!=e.enumCases){if("string"==typeof t){for(const n of e.enumCases)if(n[0]===t)return n;throw new Error(`'${t}' was not found in ${e.fullname}`)}for(const n of e.enumCases)if(n[1]===t)return n;return["",t]}throw new Error(`${e.fullname} is not an enum type`)}(e,isNaN(n)?t:n)[1]}function Bi(e){if(null!=e.cases)return e.cases();throw new Error(`${e.fullname} is not an F# union type`)}function Hi(e){if(null!=e.fields)return e.fields();throw new Error(`${e.fullname} is not an F# record type`)}function ji(e){if(Wi(e)&&null!=e.generics)return e.generics;throw new Error(`${e.fullname} is not a tuple type`)}function zi(e){return e instanceof vi?null!=e.cases:e instanceof j}function qi(e){return e instanceof vi?null!=e.fields:e instanceof z}function Wi(e){return e.fullname.startsWith("System.Tuple")}function Vi(e){return null==e.fields?[]:e.fields}function Zi(e,t){const n=(e.fields||[]).length;if(t.length!==n)throw new Error(`Expected an array of length ${n} but got ${t.length}`);return null!=e.declaringType.construct?new e.declaringType.construct(e.tag,...t):{}}var Yi;function Ji(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 Xi(e,t,n,r,o){const i=function(e,t,n){const r=/^\s*([\+\-])?(0[xXoObB])?([0-9a-fA-F]+)\s*$/.exec(e.replace(/_/g,""));if(null!=r){const[,,e,o]=r;n=n||function(e,t){if(t&Yi.AllowHexSpecifier)return 16;switch(e){case"0b":case"0B":return 2;case"0o":case"0O":return 8;case"0x":case"0X":return 16;default:return 10}}(e,t);const i=function(e){switch(e){case 2:return/[^0-1]/;case 8:return/[^0-7]/;case 10:return/[^0-9]/;case 16:return/[^0-9a-fA-F]/;default:throw new Error("Invalid Base.")}}(n);if(!i.test(o))return function(e,t){const[,n,r,o]=e;return{sign:n||"",prefix:r||"",digits:o,radix:t}}(r,n)}return null}(e,t,o);if(null!=i){let e=Number.parseInt(i.sign+i.digits,i.radix);if(!Number.isNaN(e)){const[t,o]=Ji(!0,r);!n&&10!==i.radix&&e>=t&&e<=o&&(e=e<<32-r>>32-r);const[s,u]=Ji(n,r);if(e>=s&&e<=u)return e}}throw new Error("Input string was not in a correct format.")}function Ki(e,t,n,r,o){try{return o.contents=Xi(e,t,n,r),!0}catch(e){return!1}}function Qi(e){let t,n=0;return t=[Ki(e,511,!1,32,new q((()=>n),(e=>{n=0|e}))),n],t[0]?t[1]:void 0}function es(e,t,n){return n>=e&&n<=t?D(void 0):void 0}function ts(e){return re(e)}function ns(e,t,n){return po(0,(()=>bt((n=>{const r=0|n[0],o=0|n[1],i=0|n[2];if(r<=0)return new yt(1,e);{const n=[o,i];let s;switch(s=2===n[0]&&null!=es(1,29,n[1])&&ts(r)?0:1,s){case 0:return new yt(0,t(r,o,i));case 1:{let s;switch(s=2===n[0]&&null!=es(1,28,n[1])?ts(r)?1:0:1,s){case 0:return new yt(0,t(r,o,i));case 1:{let s;switch(s=1===n[0]||3===n[0]||5===n[0]||7===n[0]||8===n[0]||10===n[0]?null!=es(1,31,n[1])?0:1:12===n[0]&&null!=es(1,31,n[1])?0:1,s){case 0:return new yt(0,t(r,o,i));case 1:{let s;switch(s=4===n[0]||6===n[0]||9===n[0]?null!=es(1,30,n[1])?0:1:11===n[0]&&null!=es(1,30,n[1])?0:1,s){case 0:return new yt(0,t(r,o,i));case 1:return new yt(1,e)}}}}}}}}}),function(e,t){const n=function(e,t){const n=ge(pe(e),t);return null!=n?nt(Xt(Vt((()=>on((e=>e||""),n))))):void 0}("^(\\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$",t);if(null==n)return new yt(1,e);{const t=n;let r,o,i,s;switch(Qe(t)||Qe(nt(t))||Qe(nt(nt(t)))?r=1:Qe(nt(nt(nt(t))))?(r=0,o=tt(nt(nt(t))),i=tt(nt(t)),s=tt(t)):r=1,r){case 0:{const t=[s,i,o],n=[t[0],t[1],t[2]];let r,u,a,l;const c=Qi(n[0]);if(null!=c){const e=Qi(n[1]);if(null!=e){const t=Qi(n[2]);null!=t?(r=0,u=t,a=e,l=c):r=1}else r=1}else r=1;switch(r){case 0:return new yt(0,[l,a,u]);case 1:return new yt(1,e)}}case 1:return new yt(1,e)}}}(e,n))))()}new vi("System.Boolean"),new vi("System.SByte"),new vi("System.Byte"),new vi("System.Int16"),new vi("System.UInt16"),new vi("System.Int32"),new vi("System.UInt32"),new vi("System.Single"),new vi("System.Double"),new vi("System.Decimal"),function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"}(Yi||(Yi={}));class rs extends j{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Male","Female","Intersex","Transgender","PreferNotToAnswer","Other","NotSet"]}}class os extends j{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Spouse","Parent","Child","Sibling","Partner","Sister","Husband","Father","Mother","Daughter","Defacto","Fiance","Boyfriend","Brother","Wife","Son","Engaged","Friend","Girlfriend","Other"]}}function is(e){switch(e.tag){case 1:return"Parent";case 2:return"Child";case 3:return"Sibling";case 4:return"Partner";case 5:return"Sister";case 6:return"Husband";case 7:return"Father";case 8:return"Mother";case 9:return"Daughter";case 10:return"Defacto";case 11:return"Fiance";case 12:return"Boyfriend";case 13:return"Brother";case 14:return"Wife";case 15:return"Son";case 16:return"Engaged";case 17:return"Friend";case 18:return"Girlfriend";case 19:return"Other";default:return"Spouse"}}class ss extends j{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["NSW","QLD","WA","SA","NT","VIC","TAS","ACT"]}}function us(e){return _t((e=>{}),e)}function as(e,t){return t?new yt(0,void 0):new yt(1,e)}function ls(e,t){return null==t?new yt(1,e):new yt(0,F(t))}class cs extends z{constructor(e,t,n){super(),this.FirstName=e,this.MiddleName=t,this.LastName=n}}function $s(){return xi("Dto.Primitives.Name",[],cs,(()=>[["FirstName",Mi],["MiddleName",ki(Mi)],["LastName",Mi]]))}function fs(e){switch(e.tag){case 1:return"Female";case 2:return"Intersex";case 3:return"Transgender";case 4:return"PreferNotToAnswer";case 5:return"Other";case 6:return"NotSet";default:return"Male"}}class ds extends z{constructor(e,t,n,r,o,i){super(),this.AddressLine1=e,this.AddressLine2=t,this.City=n,this.State=r,this.Postcode=o,this.CountryCode=i}}function hs(){return xi("Dto.Primitives.Address",[],ds,(()=>[["AddressLine1",Mi],["AddressLine2",ki(Mi)],["City",Mi],["State",Mi],["Postcode",Mi],["CountryCode",Mi]]))}class ms extends z{constructor(e,t,n,r,o){super(),this.FullName=e,this.Relationship=t,this.MobilePhone=n,this.Email=r,this.Address=o}}function ps(){return xi("Dto.Primitives.EmergencyContactDto",[],ms,(()=>[["FullName",Mi],["Relationship",Mi],["MobilePhone",Mi],["Email",ki(Mi)],["Address",ki(hs())]]))}const ws=function(){const e=[..."#C$&$&$$$$$$%-%&%=$$$$$$=$$$$D$$'$$$$$$$$$$$$%$$%$$$$&$:$*;$+$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$%$$$$$$$$$$$$$$$%$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$%$$$$&%$$$%$&%'$%$&&%$%$$$$$%$$%$$%$&$$$%%$$&'$$$$$$$$$$$$$$$$$$$$$$$$%$$$$$$$$$$$$$$$$$%$$$$$&$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$*%$%%$$'$$$$$$$$h$>5'/1(*$$$4“$$$$$$$$%$&$$'%$$&$$$%$4$,F$%&&$$$$$$$$$$$$$$$$$$$$$$$($$$$$%%VS$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$(%$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$%$$$$$$$$$$$$%$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$I%$)L$$%%$$P$$$%$%$$+>''%.)&%$%%.$$$%C$-8-'%$†$$*$$)%%$'%-&%$1$$$$A>%|.$1-D,%$&$%$%9'$,$&$(%2$<&%$$.X8$5.2$C$Y$$$$&+'$%$*-%%-$$2$%$+%%%9$*$$&'%$$&'%%%%$$+$'%$&%%-%%)$$$$$%%$$)'%%9$*$%$%$%%$$&%'%%&&$*'$$*-%&$$-%$$,$&$9$*$%$(%$$&($%$$%$%$2%%%-$$*$)$$%$+%%%9$*$%$(%$$$$$'%%%%$*%$'%$&%%-$$)-$$$)&&$'&%$$$%&%&&&/'%$%&&$&$%$)$1-&)$$($&$+$&$:$3&$&'$&$'*%$&(%%%-*$*$$$%$+$&$:$-$(%$$$$($$%$%%*%*$$%%%-$%0%%,$&$L%$&'$&$&$$$'&$*&%%-,$)$$%$5&;$,$$%*&$'&&$$$+)-%%$/S$%*'$)$+$-%H%$$$($;$$$-$%,$%($$$)%-%'C$&2$$&%)--$$$$$$$$$$%+$G'1$($%(.$G$+$)$%('%HN%'$)$%%%$-))%%'&$&%*&'0$%%)$$$-&$%I$$($%N$$&Ŭ$'%*$$$'%L$'%D$'%*$$$'%2$\\$'%f%&,7&3-)y%)%$ʏ$$4$=$$&n&&+*0$'&.5&%,5%/0$&$%/W%$*+$%.&$&$$$%-)-))$'&$$-)F$X*(%E$$(i-B$&'%&'%$)&'$&%-A%(.O'=)-$&E:%%$%%X$$$*$$$$%+)-%$-)-)*$)%1$%b'$R$$($$($%*'-*-,,&%$A$'%%$&%-O$$%&$$&%+'G++%%&(-&&-A)%,*N%&++&$0$*'$)$%$%$(Ob0$EH]$($$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$,$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$,+)%)%++++)%)%+$$$$$$$$++1%++++++($%'$$$&&$%'$&'%%'$&+(&%&$%'$%$.()%$$$%$$$+$$($,$$'%&$$$.$$$-$($-$$%)&$$$-&$$$0&C30'$&/2%$'$%$&%&$$$%$()$$$$$$'$$'$'$%%%($'$$%$$3F$$'$%'((%'$%$%$*$B%%$$$Bį+$$$$7%*$$t$A<K)h<.8_q9Ú$,$Y+’$ě$$$$$$$$$$$$$$AO($$B$$$$$$$$$$3ģ¦$$$$$$$$$$$$$$$$$$$$$$b$$$$C$$ĥS8%)J%C$ŒR$R$$$&%$$$$$$'$$%$)%&$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$%)$$$$&$$('$%I$$($%[*$$1$:,*$*$*$*$*$*$*$*$C%$$$$&$$$$$,$%$$$$%$$$$$$$$$$($-%'$$$0%$P=$|/ù=/'$&$$$$$$$$$$$$$$%$$$$$$$$$$%$,'%$(%&$$$%$y%%%%$$}$&$(N$$%'-CG/3B$-A+$2C-J2ţ᧣c删&8$Қ&Z,K)%į$&3-%7$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$&$-$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$%%i-%)+:,%$$$$$$$$$$$$$&$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$+$$$$%$$$$$$$$$$%$$$$$$$$&$$$$$$$$$$$$$$$$$$$$($($$$$$$$$$$$%$$'$$$M$$$%$*$&$'$:%%$'$&)%$$)W'+%U3%+%-)5)&$$%$-?+%:.%.$@&&$R$%'%%&0$$-'%($$,-($L)%%%%,&$+$$%-%'3$)&$$$$U$$&%%(%$$$;%$%.$%%%$%$$-)%)%),*$*$N$',$%'sF%$%$%$$$%-)⯇/:'T'ࠣᤣƑ%I*/(($$-$0$($$$%$%$34Ǝ$$3c%YK/$$%3*$$$)3$%%$$$$$$$$$$$$$$$$%$$'&&$'$$$$$$$&$$&$$$%'($ª%$$&$&$$$$$$%-%&%=$$$$$$=$$$$$$$$$%-$P%B&)%)%)%&&%$$$%$$'%-&%%/$=$6$%$2%1Ež(&'P&,X'4%&$0&$RP$¥@&T2$>'C',7$+$(I((A$$G'+$(MKKq%-)G'G'K+W.$³Ś,9-+»)%$$O$%&$%:$$+:%*B+,S6$%((9)&$=($c['%%3%Q$&$%(''$&$@%&'$,*,*@%$@&C+$?%'(*,Y&*9%+6(+5*'/*slZV0V*)G'+-ʼnB$M$%$%%q@-$+9.'(y8*7:,$$$X2*'7-2&$P&'%%%$'.$%<*-)&G($+$-'$%$+F$%$,%$S&,%'''$$$-$$$&$7.5$<&&%$$%)$d*$$$'$2$-$)R$&+(-)%%$+%%%9$*$%$($%$%$'%%%&%$)$((%%*&(®X&+%&$$'(-%$$$&AS&)$$'%$%%$$+-ÉR&'%'%$%:'%ES&+%$$%&$.-)06N$$$%)$$$*-Y>%&%'$('-%&$ãO&,$%$‡CC-,/+%$%+$%$;)$%%%$$$$$$$&,-i+%J&'%%'$$$$$>$-K)$$'+$+$)%&Q0$%&$(@\\Ī,$H$*$)$$$(--6&%A%9$$*$%$%l*$%$I)&$$%$*$$+-))$%$C($%$%$$$$*-ř6%%%Ú$28+'40$ν‰’$(.ç૟ђ$,࿪ɪ⇜ɜ*B$-'%ƒA%($-S*(''$$--$*$8(6˓CC:'ˆn'$$Z*'0c%$$$.%1᠛+ӹM,⌚łT&4'+ƯधŽ(0&,*-%$%$'፿ę-J%_%&&)++%*A'^:e&$½7/z,<ª===*$5==$$%%$%%%'$+'$$$*$.==%$'%+$*$=%$'$($$&*$============?%<$<$)<$<$)<$<$)<$<$)<$<$)$$%UȣZ'U+$1$%(2($2ճ*$4%*$%$(øP&**%-'$$ƓO'-($ԣè%,*LEE*$'-'%̴^$&$'oP$2å'$>$%$$%$$-$'$$$$)$'$$$$$$&$%$$%$$$$$$$$$$%$$%'$*$'$'$$$-$4(&$($4W%ıO'‡/2%2$2$H-0Ä[@0O',*%1)½Ğ(˻+0&0&—/|*/7/'[+-)K+A%%qœ$u$ª/1%(&&(*,<**,&0*L¶$ZH-Щ꜁Eၘ.ā%ᚥ1ᵔూɁ؅፮򮳙$Aƒ£ē︳𐀡%𐀡"].map((e=>{var t;return(null!==(t=e.codePointAt(0))&&void 0!==t?t:0)-35})),t=[..."1.;=;78;<;6;+;<;#7;8>5>$7<8<1.;=?;>?'9<2?>?<->$;>-':-;#<#$<$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$'#$'#%$#%$#%$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#%$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$'$&>&>&>&>&>(#$#$&>#$@&$;#@>#;#@#@#$#@#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$<#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$?(*#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$@#@&;$;6@?=@(6(;(;(;(@'@';@2<;=;?(;2@;'&'(+;'(';'(2?(&(?('+'?';@2'('(@'('@+'(&?;&@(='(&(&(&(@;@'(@;@'@'@'@(2()'()(')()()'('(;+;&'()@'@'@'@'@'@'@(')(@)@)('@)@'@'(@+'=-?=';(@()@'@'@'@'@'@'@'@(@)(@(@(@(@'@'@+('(;@()@'@'@'@'@'@'@(')(@()@)(@'@'(@+;=@'(@()@'@'@'@'@'@'@(')()(@)@)(@()@'@'(@+?'-@('@'@'@'@'@'@'@'@'@'@)()@)@)(@'@)@+-?=?@()('@'@'@'@'()@(@(@(@'@'(@+@;-?'();'@'@'@'@'@(')()@()@)(@)@'@'(@+@'@()'@'@'(')(@)@)('?@')-'(@+-?'@()@'@'@'@'@'@(@)(@(@)@+@);@'('(@='&(;+;@'@'@'@'@'@'('('@'@&@(@+@'@'?;?;?(?+-?(?(?(7878)'@'@()(;('(@(@?(?@?;?;@')()()()('+;')('(')')'('()()(')+)(?#@#@#@$;&$'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@(;-@'?@#@$@6'?;'.'78@';,'@'@'(@'(;@'(@'@'@(@'()()()(;&;='(@+@-@;6;(2@+@'&'@'('('@'@'@()()@)()(@?@;+'@'@'@'@+-@?'()(@;')()(@()()()(@(+@+@;&;@(*(@()'()()()()'@+;?(?@()')()()('+'()()()()@;')()(@;+@'+'&;$@#@#;@(;()('('(')('@$&$&$&(@(#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$@#@$#$#$@#@$@#@#@#@#$#$@$%$%$%$@$#%>$>$@$#%>$@$#@>$#>@$@$#%>@.26;9:79:79;/02.;9:;5;<78;<;5;.2@2-&@-<78&-<78@&@=@(*(*(@?#?#?$#$#$?#?<#?#?#?#?#?$#$'$?$#<#$?<?$?-,#$,-?@<?<?<?<?<?<?<?<?<?<?7878?<?78?<?<?<?@?@-?-?<?<?<?<?78787878787878-?<78<7878787878<?<7878787878787878787878<7878<78<?<?<?@?@?#@$@#$#$#$#$#$#$#$#$&#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$?#$#$(#$@;-;$@$@$@'@&;@('@'@'@'@'@'@'@'@'@(;9:9:;9:;9:;6;6;9:;9:78787878;&;6;6;7;?;@?@?@?@?@.;?&',7878787878?78787878678?,()6&?,&';?@'@(>&'6';&'@'@'@?-?'?@'?@-?-?-?-?-?'?'@'&'@?@'&;'&;'+'@#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$'(*;(;&#$#$#$#$#$#$#$#$#$#$#$#$#$#$&(',(;@>&>#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$&$#$#$#$#$#$#$#$&>#$#$'#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$@#$#$#$@#$'&$'('('(')()?(@-?=?@';@)')(@;+@(';';'(+'(;'()@;'@()'()()();@&+@;'(&'+'@'()()(@'('()@+@;'&'?')()'('('('('('@'&;')();'&)(@'@'@'@'@'@$>&$&>@$')()();)(@+@'@'@'@34'@'@$@$@'('<'@'@'@'@'@'>@'87@'@'@'=?@(;78;@(;657878787878787878;78;5;@;6787878;<6<@;=;@'@'@2@;=;78;<;6;+;<;#7;8>5>$7<8<78;78;'&'&'@'@'@'@'@=<>?=@?<?@2?@'@'@'@'@'@'@'@;@-@?,-?-?@?@?@?(@'@'@(-@'-@',',@'(@'@;'@';,@#$'@+@#@$@'@'@;@'@'@'@'@'@'@'@'@'@;-'?-'@-@'@'@-'-@;'@;@'@-'-@-'(@(@('@'@'@(@(-@;@'-;'-@'?'(@-;@'@;'@-'@-'@;@-@'@#@$@-'(@+@-@'@(6@'@'-'@'(-;@'-@'@)()'(;@-+@()')()(;2;@2@'@+@('()(@+;')'@'(;'@()')()';(;)(+';';@-@'@')()()(;(@'@'@'@'@';@'()(@+@()@'@'@'@'@'@'@(')()@)@)@'@)@')@(@(@')()()(';+;@;('@')()()()(';'@+@')(@)()(;'(@')()()(;'@+@;@'()()()('@+@'@()()(@+-;?@')()(;@#$+-@'@'@'@'@')@)@()(')')(;@+@'@')(@()(';')@'('()'(;(@'()('()(;';@'@'@')(@()(';@+-@;'@(@)()()(@'@'@'(@(@(@('(@+@'@'@')@(@)()('@+@'();@'@-?=?@;'@,@;@'@'@2@'@'@'@+@;@'@(;@'(;?&;?@+@-@'@'@#$-;@'@(')@(&@&;&(@)@'@'@'@'@'@'@'@'@'@'@'@?(;2@?@?@?)(?)2(?(?(?@?(?@-@?@-@#$#$@$#$#@#@#@#@#@#$@$@$@$#$#@#@#@#@$#@#@#@#@#@$#$#$#$#$#$#$@#<$<$#<$<$#<$<$#<$<$#<$<$#$@+?(?(?(?(?;@(@(@(@(@(@(@(@'@(&@+@'?@'(+@=@'@-(@#$(&@+@;@-?-=-@-?-@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@<@?@?@?@?@?@?@-?@?@?@?@?@?@?>?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@+@'@'@'@'@'@'@'@2@2@(@4@4@"].map((e=>{var t;return(null!==(t=e.codePointAt(0))&&void 0!==t?t:0)-35})),n=new Uint32Array(e),r=new Uint8Array(t);for(let e=1;e<n.length;++e)n[e]+=n[e-1];return e=>{let t=n.length,o=0;for(;t-o>1;){const r=Math.floor((t+o)/2),i=n[r];if(e<i)t=r;else{if(e===i){t=o=r;break}i<e&&(o=r)}}return r[o]}}();const gs=e=>function(e,t){return 0!=(1<<function(e,t){const n=function(e,t){if(t>=0&&t<e.length)return e.charCodeAt(t);throw new Error("Index out of range.")}(e,t);return ws(n)}(e,0)&256)}(e);class ys extends j{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Saving","Loading"]}}function _s(e){return 1===e.tag?"We ran an into an issue loading your details. Please try refreshing the page.":"We ran an into an issue saving your details. Please try saving again by clicking on the Submit button."}function vs(e){return H(e)}function bs(){return ct((e=>[e,vs(e)]),at(on((e=>Zi(e,[])),Bi(Ei("DomainPrimitives.AuState",[],ss,(()=>[[],[],[],[],[],[],[],[]]))))))}function Cs(e){return $t((t=>t[1]===e?t[0]:void 0),bs())}function Ss(e){return 0===e.indexOf("04")?`+61${Fe(e,1)}`:function(e){return 0===e.indexOf("+")?e:`+${e}`}(e)}const xs=Ss;function Es(e){return Ss(De(gs,e))}class ks extends j{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Required","MaxLen","MinLen","Regex","NumbersOnly","DuSelection","Email","Date","DateOfBirth","PhoneNumber","NotStartWith"]}}class Ns extends j{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Over100","Under13"]}}function As(e){return Te(e)?new yt(1,new ks(0)):new yt(0,void 0)}function Ms(e){return De(gs,e)===e?new yt(0,void 0):new yt(1,new ks(4))}function Ts(e,t){return t.length>e?new yt(1,new ks(1,e)):new yt(0,void 0)}function Is(e,t){return po(0,(()=>{const n=function(e,t){return function(e,t){const n=X(e.getTime()+t,e.kind);if(2===e.kind){const t=e.getTimezoneOffset(),r=n.getTimezoneOffset();return t!==r?X(n.getTime()+6e4*(r-t),e.kind):n}return n}(e,864e5)}(e);let r;const o=ue(n)-ue(t)|0;return r=ae(oe(t),function(e,t){const n=se(e),r=ue(e)+t,o=function(e,t){return 2===t?re(e)?29:28:t>=8?t%2==0?31:30:t%2==0?30:31}(r,n);return te(r,n,Math.min(o,ie(e)),function(e){return 1===e.kind?e.getUTCHours():e.getHours()}(e),function(e){return 1===e.kind?e.getUTCMinutes():e.getMinutes()}(e),function(e){return 1===e.kind?e.getUTCSeconds():e.getSeconds()}(e),function(e){return 1===e.kind?e.getUTCMilliseconds():e.getMilliseconds()}(e),e.kind)}(n,function(e){return-2147483648===e?e:-e}(o)))>0?o-1:o,bt((()=>wo(0,as(new ks(8,new Ns(0)),r<100),(()=>{}))),as(new ks(8,new Ns(1)),r>=13))}))()}function Os(e,t){return null!=ge(pe(e),t)?new yt(0,void 0):new yt(1,new ks(3))}function Ps(e){return!(e.length<=320)||e.indexOf("..")>=0||e.indexOf(".@")>=0||null==ge(/^[A-Z0-9][A-Z0-9._%+-]{0,63}@(?:[A-Z0-9-]{1,63}\.){1,125}[A-Z]{2,63}$/giu,e)?new yt(1,new ks(6)):new yt(0,void 0)}function Ds(e,t){return 0===t.indexOf(e)?new yt(1,new ks(10,e)):new yt(0,void 0)}function Fs(e,t){return us(function(e,t){return function(e,t,n){e:for(;;){const r=e,o=t,i=n;if(Qe(i))return _t(it,r);{const s=po(0,(()=>bt((e=>wo(0,r,(t=>Xe(e,t)))),o(tt(i)))))();if(1===s.tag)return s;e=s,t=o,n=nt(i);continue e}}}(new yt(0,Je()),e,t)}((e=>e(t)),e))}const Rs=e=>Fs(ut([As,e=>Ts(60,e),e=>Ds("-",e),e=>Ds("'",e),e=>Os("(^[A-Za-zÀ-ÖØ-öø-ÿĀ-ž])[A-Za-zÀ-ÖØ-öø-ÿĀ-ž\\- ']{0,59}$",e)]),e),Gs=e=>Fs(ut([As,e=>Ts(60,e),e=>Os("(^[0-9A-Za-z])[0-9A-Za-z\\- '\\/,\\.]{0,59}$",e)]),e),Us=e=>Fs(ut([As,Ps]),e);const Ls=e=>Fs(ut([As,e=>Ts(60,e),e=>Os("(^[A-Za-z])[A-Za-z\\- ]{0,59}$",e)]),e),Bs=e=>Fs(ut([As,e=>Ts(4,e),Ms]),e);var Hs=null;try{Hs=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch(vn){}function js(e,t,n){this.low=0|e,this.high=0|t,this.unsigned=!!n}function zs(e){return!0===(e&&e.__isLong__)}js.prototype.GetHashCode=function(){let e=this.unsigned?1:0;return e=(e<<5)+e^this.high,e=(e<<5)+e^this.low,e},js.prototype.Equals=function(e){return wu(this,e)},js.prototype.CompareTo=function(e){return vu(this,e)},js.prototype.toString=function(e){return du(this,e)},js.prototype.toJSON=function(){return du(this)},js.prototype[le]=function(){const e=this;return{multiply:t=>xu(e,t),toPrecision:t=>String(e)+(0).toPrecision(t).substr(1),toExponential:t=>String(e)+(0).toExponential(t).substr(1),toFixed:t=>String(e)+(0).toFixed(t).substr(1),toHex:()=>{return du(e.unsigned?e:function(e,t,n){return n?function(e,t){return new js(e[0]|e[1]<<8|e[2]<<16|e[3]<<24,e[4]|e[5]<<8|e[6]<<16|e[7]<<24,t)}(e,t):function(e,t){return new js(e[4]<<24|e[5]<<16|e[6]<<8|e[7],e[0]<<24|e[1]<<16|e[2]<<8|e[3],t)}(e,t)}((t=e,n?function(e){var t=e.high,n=e.low;return[255&n,n>>>8&255,n>>>16&255,n>>>24,255&t,t>>>8&255,t>>>16&255,t>>>24]}(t):function(e){var t=e.high,n=e.low;return[t>>>24,t>>>16&255,t>>>8&255,255&t,n>>>24,n>>>16&255,n>>>8&255,255&n]}(t)),!0),16);var t,n}}},js.prototype.__isLong__,Object.defineProperty(js.prototype,"__isLong__",{value:!0});var qs={},Ws={};function Vs(e,t){var n,r,o;return t?(o=0<=(e>>>=0)&&e<256)&&(r=Ws[e])?r:(n=Ys(e,(0|e)<0?-1:0,!0),o&&(Ws[e]=n),n):(o=-128<=(e|=0)&&e<128)&&(r=qs[e])?r:(n=Ys(e,e<0?-1:0,!1),o&&(qs[e]=n),n)}function Zs(e,t){if(isNaN(e))return t?ou:ru;if(t){if(e<0)return ou;if(e>=eu)return lu}else{if(e<=-tu)return cu;if(e+1>=tu)return au}return e<0?bu(Zs(-e,t)):Ys(e%Qs|0,e/Qs|0,t)}function Ys(e,t,n){return new js(e,t,n)}var Js=Math.pow;function Xs(e,t,n){if(0===e.length)throw Error("empty string");if("NaN"===e||"Infinity"===e||"+Infinity"===e||"-Infinity"===e)return ru;if("number"==typeof t?(n=t,t=!1):t=!!t,(n=n||10)<2||36<n)throw RangeError("radix");var r=e.indexOf("-");if(r>0)throw Error("interior hyphen");if(0===r)return bu(Xs(e.substring(1),t,n));for(var o=Zs(Js(n,8)),i=ru,s=0;s<e.length;s+=8){var u=Math.min(8,e.length-s),a=parseInt(e.substring(s,s+u),n);i=Cu(u<8?xu(i,Zs(Js(n,u))):i=xu(i,o),Zs(a))}return i.unsigned=t,i}function Ks(e,t){return"number"==typeof e?Zs(e,t):"string"==typeof e?Xs(e,t):Ys(e.low,e.high,"boolean"==typeof t?t:e.unsigned)}var Qs=4294967296,eu=Qs*Qs,tu=eu/2,nu=Vs(1<<24),ru=Vs(0),ou=Vs(0,!0),iu=Vs(1),su=Vs(1,!0),uu=Vs(-1),au=Ys(-1,2147483647,!1),lu=Ys(-1,-1,!0),cu=Ys(0,-2147483648,!1);function $u(e){return e.unsigned?e.low>>>0:e.low}function fu(e){return e.unsigned?(e.high>>>0)*Qs+(e.low>>>0):e.high*Qs+(e.low>>>0)}function du(e,t){if((t=t||10)<2||36<t)throw RangeError("radix");if(hu(e))return"0";if(mu(e)){if(wu(e,cu)){var n=Zs(t),r=Eu(e,n),o=Su(xu(r,n),e);return du(r,t)+$u(o).toString(t)}return"-"+du(bu(e),t)}for(var i=Zs(Js(t,6),e.unsigned),s=e,u="";;){var a=Eu(s,i),l=($u(Su(s,xu(a,i)))>>>0).toString(t);if(hu(s=a))return l+u;for(;l.length<6;)l="0"+l;u=""+l+u}}function hu(e){return 0===e.high&&0===e.low}function mu(e){return!e.unsigned&&e.high<0}function pu(e){return 1==(1&e.low)}function wu(e,t){return zs(t)||(t=Ks(t)),(e.unsigned===t.unsigned||e.high>>>31!=1||t.high>>>31!=1)&&e.high===t.high&&e.low===t.low}function gu(e,t){return vu(e,t)<0}function yu(e,t){return vu(e,t)>0}function _u(e,t){return vu(e,t)>=0}function vu(e,t){if(zs(t)||(t=Ks(t)),wu(e,t))return 0;var n=mu(e),r=mu(t);return n&&!r?-1:!n&&r?1:e.unsigned?t.high>>>0>e.high>>>0||t.high===e.high&&t.low>>>0>e.low>>>0?-1:1:mu(Su(e,t))?-1:1}function bu(e){return!e.unsigned&&wu(e,cu)?cu:Cu(function(e){return Ys(~e.low,~e.high,e.unsigned)}(e),iu)}function Cu(e,t){zs(t)||(t=Ks(t));var n=e.high>>>16,r=65535&e.high,o=e.low>>>16,i=65535&e.low,s=t.high>>>16,u=65535&t.high,a=t.low>>>16,l=0,c=0,$=0,f=0;return $+=(f+=i+(65535&t.low))>>>16,c+=($+=o+a)>>>16,l+=(c+=r+u)>>>16,l+=n+s,Ys(($&=65535)<<16|(f&=65535),(l&=65535)<<16|(c&=65535),e.unsigned)}function Su(e,t){return zs(t)||(t=Ks(t)),Cu(e,bu(t))}function xu(e,t){if(hu(e))return e.unsigned?ou:ru;if(zs(t)||(t=Ks(t)),Hs)return Ys(Hs.mul(e.low,e.high,t.low,t.high),Hs.get_high(),e.unsigned);if(hu(t))return e.unsigned?ou:ru;if(wu(e,cu))return pu(t)?cu:ru;if(wu(t,cu))return pu(e)?cu:ru;if(mu(e))return mu(t)?xu(bu(e),bu(t)):bu(xu(bu(e),t));if(mu(t))return bu(xu(e,bu(t)));if(gu(e,nu)&&gu(t,nu))return Zs(fu(e)*fu(t),e.unsigned);var n=e.high>>>16,r=65535&e.high,o=e.low>>>16,i=65535&e.low,s=t.high>>>16,u=65535&t.high,a=t.low>>>16,l=65535&t.low,c=0,$=0,f=0,d=0;return f+=(d+=i*l)>>>16,$+=(f+=o*l)>>>16,f&=65535,$+=(f+=i*a)>>>16,c+=($+=r*l)>>>16,$&=65535,c+=($+=o*a)>>>16,$&=65535,c+=($+=i*u)>>>16,c+=n*l+r*a+o*u+i*s,Ys((f&=65535)<<16|(d&=65535),(c&=65535)<<16|($&=65535),e.unsigned)}function Eu(e,t){if(zs(t)||(t=Ks(t)),hu(t))throw Error("division by zero");var n,r,o;if(Hs)return e.unsigned||-2147483648!==e.high||-1!==t.low||-1!==t.high?Ys((e.unsigned?Hs.div_u:Hs.div_s)(e.low,e.high,t.low,t.high),Hs.get_high(),e.unsigned):e;if(hu(e))return e.unsigned?ou:ru;if(e.unsigned){if(t.unsigned||(t=function(e){return e.unsigned?e:Ys(e.low,e.high,!0)}(t)),yu(t,e))return ou;if(yu(t,function(e,t){if(zs(t)&&(t=$u(t)),0==(t&=63))return e;var n=e.high;return t<32?Ys(e.low>>>t|n<<32-t,n>>>t,e.unsigned):Ys(32===t?n:n>>>t-32,0,e.unsigned)}(e,1)))return su;o=ou}else{if(wu(e,cu))return wu(t,iu)||wu(t,uu)?cu:wu(t,cu)?iu:wu(n=function(e,t){return zs(t)&&(t=$u(t)),0==(t&=63)?e:t<32?Ys(e.low<<t,e.high<<t|e.low>>>32-t,e.unsigned):Ys(0,e.low<<t-32,e.unsigned)}(Eu(function(e,t){return zs(t)&&(t=$u(t)),0==(t&=63)?e:t<32?Ys(e.low>>>t|e.high<<32-t,e.high>>t,e.unsigned):Ys(e.high>>t-32,e.high>=0?0:-1,e.unsigned)}(e,1),t),1),ru)?mu(t)?iu:uu:o=Cu(n,Eu(r=Su(e,xu(t,n)),t));if(wu(t,cu))return e.unsigned?ou:ru;if(mu(e))return mu(t)?Eu(bu(e),bu(t)):bu(Eu(bu(e),t));if(mu(t))return bu(Eu(e,bu(t)));o=ru}for(r=e;_u(r,t);){n=Math.max(1,Math.floor(fu(r)/fu(t)));for(var i=Math.ceil(Math.log(n)/Math.LN2),s=i<=48?1:Js(2,i-48),u=Zs(n),a=xu(u,t);mu(a)||yu(a,r);)a=xu(u=Zs(n-=s,e.unsigned),t);hu(u)&&(u=iu),o=Cu(o,u),r=Su(r,a)}return o}const ku=Eu,Nu=fu;function Au(e){return e<0?Math.ceil(e):Math.floor(e)}function Mu(e=0,t=0,n=0,r=0,o=0){switch(arguments.length){case 1:return Tu(arguments[0]);case 3:e=0,t=arguments[0],n=arguments[1],r=arguments[2],o=0}return 864e5*e+36e5*t+6e4*n+1e3*r+o}function Tu(e){return Nu(ku(e,1e4))}function Iu(e,t){try{return t.contents=function(e){const t=e.search("\\."),n=e.search("\\:");if(-1===t&&-1===n){const t=parseInt(e,0);if(isNaN(t))throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`);return Mu(t,0,0,0,0)}if(n>0){const t=/^(-?)((\d+)\.)?(?:0*)([0-9]|0[0-9]|1[0-9]|2[0-3]):(?:0*)([0-5][0-9]|[0-9])(:(?:0*)([0-5][0-9]|[0-9]))?\.?(\d+)?$/.exec(e);if(null!=t&&null!=t[4]&&null!=t[5]){let n=0,r=0,o=0;const i=null!=t[1]&&"-"===t[1]?-1:1,s=+t[4],u=+t[5];if(null!=t[3]&&(n=+t[3]),null!=t[7]&&(o=+t[7]),null!=t[8])switch(t[8].length){case 1:r=100*+t[8];break;case 2:r=10*+t[8];break;case 3:r=+t[8];break;case 4:r=+t[8]/10;break;case 5:r=+t[8]/100;break;case 6:r=+t[8]/1e3;break;case 7:r=+t[8]/1e4;break;default:throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}return i*Mu(n,s,u,o,r)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}(e),!0}catch(e){return!1}}class Ou extends j{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class Pu extends j{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["PascalCase","CamelCase","SnakeCase"]}}class Du{constructor(){this.cache=new Map([])}}function Fu(){return new Du}function Ru(e){return e.slice(void 0,1).toLowerCase()+e.slice(1,e.length)}function Gu(e,t){switch(e.tag){case 2:return function(e,t,n,r,o=0){if("string"==typeof e){const n=e;e=pe(t,null!=r?r:0),t=n,r=void 0}if("function"==typeof n)return r=null==r?-1:r,t.substring(0,o)+t.substring(o).replace(e,(function(){let e=arguments[0];if(r){r--;const t=[],o=arguments.length,i="string"!=typeof arguments[o-1];let s=i?o-3:o-2;for(let e=0;e<s;e++)t.push(arguments[e]);t.index=arguments[s++],t.input=arguments[s++],i&&(t.groups=arguments[s]),e=n(t)}return e}));if(n=n.replace(/\$0/g,(e=>"$&")).replace(/\${([^}]+)}/g,"$<$1>"),null!=r){let i;const s=t.substring(o),u=ye(e,s),a=ye.length>r?(i=u[r-1],s.substring(0,i.index+i[0].length)):s;return t.substring(0,o)+a.replace(e,n)+t.substring(o+a.length)}return t.replace(e,n)}(Ru(t),"[A-Z]","_$0").toLowerCase();case 0:return t;default:return Ru(t)}}function Uu(e){return e}function Lu(e){return Array.from(e)}function Bu(e){return J(e,"O")}function Hu(e){return function(e,t="c",n){if(-1===["c","g","G"].indexOf(t))throw new Error("Custom formats are not supported");const r=Math.abs(function(e){return Au(e/864e5)}(e)),o=Math.abs(function(e){return Au(e%864e5/36e5)}(e)),i=Math.abs(function(e){return Au(e%36e5/6e4)}(e)),s=Math.abs(function(e){return Au(e%6e4/1e3)}(e)),u=Math.abs(function(e){return Au(e%1e3)}(e));return`${e<0?"-":""}${0!==r||"c"!==t&&"g"!==t?"c"===t?r+".":r+":":""}${"g"===t?o:f(o,2)}:${f(i,2)}:${f(s,2)}${0!==u||"c"!==t&&"g"!==t?"g"===t?"."+f(u,3):"."+function(e,t,n){let r=e.toString(10);for(;r.length<3;)r="0"+r;for(;r.length<7;)r+="0";return r}(u):""}`}(e)}function ju(){return null}function zu(e){return J(e,"O")}function qu(e,t){return JSON.stringify(t,T(2,null),D(e))}function Wu(e,t,n,r){const o=new q(null),i=ri(Ii(r),o,e);let s;if(qi(r)){const e=Ue((e=>{const r=Gu(t,Ti(e)),o=Vu(i,t,n,e[1]);return t=>i=>{const s=function(e,t){return e[t[0]]}(t,e);return(!n||n&&null!=s)&&(i[r]=o(s)),i}}),Hi(r));s=t=>nn(((e,n)=>n(t)(e)),{},e)}else{if(!zi(r)){let e;const t=Ii(r);throw e=Ee(Se("Cannot generate auto encoder for %s. Please pass an extra encoder."))(t),new Error(e)}s=e=>{const o=function(e,t){const n=Bi(t)[e.tag];if(null==n)throw new Error(`Cannot find case ${e.name} in union type`);return[n,e.fields]}(e,r),s=o[0],u=o[1],a=0|u.length;if(0===a)return Ti(s);{const e=0|a,r=Vi(s),o=Ge(new Array(e+1),0,e+1,null);o[0]=Ti(s);for(let s=1;s<=e;s++){const e=Vu(i,t,n,r[s-1][1]);o[s]=e(u[s-1])}return o}}}return o.contents=s,s}function Vu(e,t,n,r){const o=Ii(r),i=oi(o,e);if(null==i){if(Oi(r)){const o=Vu(e,t,n,Pi(r));return e=>Lu(on(o,e))}if(Fi(r)){const e=Ii(Gi(r));if("System.SByte"===e)return e=>e;if("System.Byte"===e)return e=>e;if("System.Int16"===e)return e=>e;if("System.UInt16"===e)return e=>e;if("System.Int32"===e)return e=>e;if("System.UInt32"===e)return e=>e;{const e=Ii(r);return ke(Se("Cannot generate auto encoder for %s.\nThoth.Json.Net only support the folluwing enum types:\n- sbyte\n- byte\n- int16\n- uint16\n- int\n- uint32\nIf you can't use one of these types, please pass an extra encoder.\n "))(e)}}if(Di(r)){if(Wi(r)){const o=Ue((r=>Vu(e,t,n,r)),ji(r));return e=>{return Lu((t=(e,t)=>o[e](t),n=e,Qt((()=>Wt(n)),((e,n)=>n["System.Collections.IEnumerator.MoveNext"]()?D(t(e,n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0),(e=>{s(e)}))));var t,n}}{const o=Ii(Ri(r));if("Microsoft.FSharp.Core.FSharpOption`1[System.Object]"===o){const o=new $((()=>{return o=Vu(e,t,n,bi(r)[0]),e=>{return null!=(t=L(o,e))?F(t):null;var t};var o}));return e=>null==e?null:o.Value(e)}if("Microsoft.FSharp.Collections.FSharpList`1[System.Object]"===o||"Microsoft.FSharp.Collections.FSharpSet`1[System.Object]"===o){const o=Vu(e,t,n,bi(r)[0]);return e=>Lu(on(o,e))}if("Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"===o){const o=bi(r)[0],i=Vu(e,t,n,bi(r)[1]);if("System.String"===Ii(o)||"System.Guid"===Ii(o))return e=>nn(((e,t)=>{const n=t;return e[n[0]]=i(n[1]),e}),{},e);{let r;const s=Vu(e,t,n,o);return r=s,e=>Lu(on((e=>{const t=e;return[r(t[0]),i(t[1])]}),e))}}return Wu(e,t,n,r)}}return"System.Boolean"===o?e=>e:"Microsoft.FSharp.Core.Unit"===o?ju:"System.String"===o?e=>e:"System.SByte"===o?e=>e:"System.Byte"===o?e=>e:"System.Int16"===o?e=>e:"System.UInt16"===o?e=>e:"System.Int32"===o?e=>e:"System.UInt32"===o?e=>e:"System.Double"===o?e=>e:"System.Single"===o?e=>e:"System.DateTime"===o?zu:"System.DateTimeOffset"===o?Bu:"System.TimeSpan"===o?Hu:"System.Guid"===o?Uu:"System.Object"===o?e=>e:Wu(e,t,n,r)}{const e=i;return t=>e.contents(t)}}function Zu(e,t,n,r){const o=U(t,new Pu(0)),i=U(r,!0);return Vu(function(e){return null!=e?ii(((e,t)=>new q(t[0])),e.Coders):si()}(n),o,i,e)}Fu(),Fu();const Yu=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,Ju=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,Xu=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function Ku(e,t){try{return t.contents=function(e){function t(e){return e.replace(Ju,"$1-$2-$3-$4-$5")}const n=e.trim().toLowerCase();if(Yu.test(n))return function(e,...t){if(0===t.length)return e.trim();const n="["+we(t.join(""))+"]+";return e.replace(new RegExp("^"+n),"").replace(new RegExp(n+"$"),"")}(n,"{","}","(",")");if(Ju.test(n))return t(n);if(Xu.test(n))return t(n.replace(/[\{\},]|0x/g,""));throw new Error("Guid should contain 32 digits with 4 dashes: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx")}(e),!0}catch(e){return!1}}function Qu(e,t){!function(e){if(null!=e&&0!==e){if(e%6e4!=0)throw new Error("Offset must be specified in whole minutes.");if(Math.abs(e/36e5)>14)throw new Error("Offset must be within plus or minus 14 hours.")}}(t);const n=new Date(e);return n.offset=null!=t?t:-6e4*(new Date).getTimezoneOffset(),n}function ea(e,t){try{return t.contents=function(e){const[t,n]=Q(e),r=null==n?-6e4*t.getTimezoneOffset():"Z"===n?0:6e4*n;return Qu(t.getTime(),r)}(e),!0}catch(e){return!1}}class ta{constructor(e){this.k=e}}function na(e){return new ta(e)}function ra(e){return e.k}class oa extends ta{constructor(e,t,n,r){super(e),this.left=t,this.right=n,this.h=0|r}}function ia(e,t,n,r){return new oa(e,t,n,r)}function sa(e){return e.left}function ua(e){return e.right}function aa(e){return e.h}function la(e,t){e:for(;;){const n=e,r=t;if(null!=n){const o=n;if(o instanceof oa){e=sa(o),t=la(ua(o),r+1);continue e}return r+1|0}return 0|r}}function ca(e){return la(e,0)}function $a(e,t,n){let r,o;if(null!=e){const t=e;r=t instanceof oa?aa(t):1}else r=0;if(null!=n){const e=n;o=e instanceof oa?aa(e):1}else o=0;const i=0|(r<o?o:r);return 0===i?na(t):ia(t,e,n,i+1)}function fa(e,t,n){let r,o,i,s,u,a;if(null!=e){const t=e;u=t instanceof oa?aa(t):1}else u=0;if(null!=n){const e=n;a=e instanceof oa?aa(e):1}else a=0;if(a>u+2){const i=F(n);if(i instanceof oa){if(r=sa(i),(null!=r?(o=r,o instanceof oa?aa(o):1):0)>u+1){const n=F(sa(i));if(n instanceof oa)return $a($a(e,t,sa(n)),ra(n),$a(ua(n),ra(i),ua(i)));throw new Error("internal error: Set.rebalance")}return $a($a(e,t,sa(i)),ra(i),ua(i))}throw new Error("internal error: Set.rebalance")}if(u>a+2){const r=F(e);if(r instanceof oa){if(i=ua(r),(null!=i?(s=i,s instanceof oa?aa(s):1):0)>a+1){const e=F(ua(r));if(e instanceof oa)return $a($a(sa(r),ra(r),sa(e)),ra(e),$a(ua(e),t,n));throw new Error("internal error: Set.rebalance")}return $a(sa(r),ra(r),$a(ua(r),t,n))}throw new Error("internal error: Set.rebalance")}return $a(e,t,n)}function da(e,t,n){if(null!=n){const r=n,o=0|e.Compare(t,ra(r));if(r instanceof oa)return o<0?fa(da(e,t,sa(r)),ra(r),ua(r)):0===o?n:fa(sa(r),ra(r),da(e,t,ua(r)));{const o=0|e.Compare(t,ra(r));return o<0?ia(t,void 0,n,2):0===o?n:ia(t,n,void 0,2)}}return na(t)}function ha(e,t,n){e:for(;;){const r=e,o=t,i=n;if(null!=i){const s=i,u=0|r.Compare(o,ra(s));if(s instanceof oa){if(u<0){e=r,t=o,n=sa(s);continue e}if(0===u)return!0;e=r,t=o,n=ua(s);continue e}return 0===u}return!1}}function ma(e,t){e:for(;;){const n=e,r=t;if(null!=r){const o=r;if(o instanceof oa){ma(n,sa(o)),n(ra(o)),e=n,t=ua(o);continue e}n(ra(o))}break}}class pa extends z{constructor(e,t){super(),this.stack=e,this.started=t}}function wa(e){e:for(;;){const t=e;if(Qe(t))return Je();{const n=tt(t),r=nt(t);if(null!=n){const o=n;if(o instanceof oa){e=st([sa(o),na(ra(o)),ua(o)],r);continue e}return t}e=r;continue e}}}function ga(e){return new pa(wa(Ke(e)),!1)}function ya(e){if(e.started){const t=e.stack;if(Qe(t))return function(){throw new Error("Enumeration already started")}();if(null!=tt(t))return ra(tt(t));throw new Error("Please report error: Set iterator, unexpected stack for current")}return function(){throw new Error("Enumeration not started")}()}function _a(e){let t=ga(e);return{"System.Collections.Generic.IEnumerator`1.get_Current":()=>ya(t),"System.Collections.IEnumerator.get_Current":()=>ya(t),"System.Collections.IEnumerator.MoveNext":()=>function(e){if(e.started){const t=e.stack;if(Qe(t))return!1;if(null!=tt(t)){if(tt(t)instanceof oa)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=wa(nt(t)),!Qe(e.stack)}throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}return e.started=!0,!Qe(e.stack)}(t),"System.Collections.IEnumerator.Reset"(){t=ga(e)},Dispose(){}}}function va(e,t,n){return null==t?null==n?0:-1:null==n?1:0|function(e,t,n){e:for(;;){const r=e,o=t,i=n,s=[o,i];if(Qe(s[0]))return Qe(s[1])?0:-1;if(Qe(s[1]))return 1;if(null!=tt(s[1]))if(null!=tt(s[0])){const u=tt(s[0]),a=tt(s[1]);if(u instanceof oa)if(null==sa(u)){if(!(a instanceof oa)){const o=0|r.Compare(ra(u),ra(a));if(0!==o)return 0|o;e=r,t=Xe(ua(u),nt(s[0])),n=Xe(void 0,nt(s[1]));continue e}if(null==sa(a)){const o=0|r.Compare(ra(u),ra(a));if(0!==o)return 0|o;e=r,t=Xe(ua(u),nt(s[0])),n=Xe(ua(a),nt(s[1]));continue e}{const s=[o,i];let u,a,l,c,$;switch(Qe(s[0])?Qe(s[1])?u=2:null!=tt(s[1])?(u=1,c=nt(s[1]),$=tt(s[1])):u=2:null!=tt(s[0])?(u=0,a=nt(s[0]),l=tt(s[0])):Qe(s[1])?u=2:null!=tt(s[1])?(u=1,c=nt(s[1]),$=tt(s[1])):u=2,u){case 0:if(l instanceof oa){e=r,t=st([sa(l),ia(ra(l),void 0,ua(l),0)],a),n=i;continue e}e=r,t=st([void 0,na(ra(l))],a),n=i;continue e;case 1:if($ instanceof oa){e=r,t=o,n=st([sa($),ia(ra($),void 0,ua($),0)],c);continue e}e=r,t=o,n=st([void 0,na(ra($))],c);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const s=[o,i];let u,a,l,c,$;switch(Qe(s[0])?Qe(s[1])?u=2:null!=tt(s[1])?(u=1,c=nt(s[1]),$=tt(s[1])):u=2:null!=tt(s[0])?(u=0,a=nt(s[0]),l=tt(s[0])):Qe(s[1])?u=2:null!=tt(s[1])?(u=1,c=nt(s[1]),$=tt(s[1])):u=2,u){case 0:if(l instanceof oa){e=r,t=st([sa(l),ia(ra(l),void 0,ua(l),0)],a),n=i;continue e}e=r,t=st([void 0,na(ra(l))],a),n=i;continue e;case 1:if($ instanceof oa){e=r,t=o,n=st([sa($),ia(ra($),void 0,ua($),0)],c);continue e}e=r,t=o,n=st([void 0,na(ra($))],c);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else{if(!(a instanceof oa)){const o=0|r.Compare(ra(u),ra(a));if(0!==o)return 0|o;e=r,t=nt(s[0]),n=nt(s[1]);continue e}if(null==sa(a)){const o=0|r.Compare(ra(u),ra(a));if(0!==o)return 0|o;e=r,t=Xe(void 0,nt(s[0])),n=Xe(ua(a),nt(s[1]));continue e}{const s=[o,i];let u,a,l,c,$;switch(Qe(s[0])?Qe(s[1])?u=2:null!=tt(s[1])?(u=1,c=nt(s[1]),$=tt(s[1])):u=2:null!=tt(s[0])?(u=0,a=nt(s[0]),l=tt(s[0])):Qe(s[1])?u=2:null!=tt(s[1])?(u=1,c=nt(s[1]),$=tt(s[1])):u=2,u){case 0:if(l instanceof oa){e=r,t=st([sa(l),ia(ra(l),void 0,ua(l),0)],a),n=i;continue e}e=r,t=st([void 0,na(ra(l))],a),n=i;continue e;case 1:if($ instanceof oa){e=r,t=o,n=st([sa($),ia(ra($),void 0,ua($),0)],c);continue e}e=r,t=o,n=st([void 0,na(ra($))],c);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}}else{tt(s[1]);const u=[o,i];let a,l,c,$,f;switch(Qe(u[0])?Qe(u[1])?a=2:null!=tt(u[1])?(a=1,$=nt(u[1]),f=tt(u[1])):a=2:null!=tt(u[0])?(a=0,l=nt(u[0]),c=tt(u[0])):Qe(u[1])?a=2:null!=tt(u[1])?(a=1,$=nt(u[1]),f=tt(u[1])):a=2,a){case 0:if(c instanceof oa){e=r,t=st([sa(c),ia(ra(c),void 0,ua(c),0)],l),n=i;continue e}e=r,t=st([void 0,na(ra(c))],l),n=i;continue e;case 1:if(f instanceof oa){e=r,t=o,n=st([sa(f),ia(ra(f),void 0,ua(f),0)],$);continue e}e=r,t=o,n=st([void 0,na(ra(f))],$);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else{if(null==tt(s[0])){e=r,t=nt(s[0]),n=nt(s[1]);continue e}{tt(s[0]);const u=[o,i];let a,l,c,$,f;switch(Qe(u[0])?Qe(u[1])?a=2:null!=tt(u[1])?(a=1,$=nt(u[1]),f=tt(u[1])):a=2:null!=tt(u[0])?(a=0,l=nt(u[0]),c=tt(u[0])):Qe(u[1])?a=2:null!=tt(u[1])?(a=1,$=nt(u[1]),f=tt(u[1])):a=2,a){case 0:if(c instanceof oa){e=r,t=st([sa(c),ia(ra(c),void 0,ua(c),0)],l),n=i;continue e}e=r,t=st([void 0,na(ra(c))],l),n=i;continue e;case 1:if(f instanceof oa){e=r,t=o,n=st([sa(f),ia(ra(f),void 0,ua(f),0)],$);continue e}e=r,t=o,n=st([void 0,na(ra(f))],$);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}break}}(e,Ke(t),Ke(n))}function ba(e,t,n){let r=n;ma((e=>{t[r]=e,r=r+1|0}),e)}function Ca(e,t){if(r(t))return function(e,t){return Le(((t,n)=>da(e,n,t)),void 0,t)}(e,t);if(t instanceof He)return function(e,t){return ot(((t,n)=>da(e,n,t)),void 0,t)}(e,t);{const n=l(t);try{return function(e,t,n){for(;;){const r=e,o=t,i=n;if(!i["System.Collections.IEnumerator.MoveNext"]())return o;e=r,t=da(r,i["System.Collections.Generic.IEnumerator`1.get_Current"](),o),n=i}}(e,void 0,n)}finally{s(n)}}}class Sa{constructor(e,t){this.comparer=e,this.tree=t}GetHashCode(){return 0|function(e){let t,n=0;const r=l(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();)n=0|(t=0|y(r["System.Collections.Generic.IEnumerator`1.get_Current"]()),(n<<1)+t+631)}finally{s(r)}return 0|Math.abs(n)}(this)}Equals(e){return e instanceof Sa&&0===va(xa(this),Ea(this),Ea(e))}toString(){return"set ["+Ie("; ",on((e=>H(e)),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(e){return Array.from(this)}CompareTo(e){return 0|va(xa(this),Ea(this),Ea(e))}"System.Collections.Generic.ICollection`1.Add2B595"(e){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Clear"(){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Remove2B595"(e){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Contains2B595"(e){return ha(xa(this),e,Ea(this))}"System.Collections.Generic.ICollection`1.CopyToZ2E171D71"(e,t){ba(Ea(this),e,t)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|ka(this)}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return 0|ka(this)}GetEnumerator(){return _a(Ea(this))}[Symbol.iterator](){return c(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return _a(Ea(this))}get size(){return 0|ka(this)}add(e){throw new Error("Set cannot be mutated")}clear(){throw new Error("Set cannot be mutated")}delete(e){throw new Error("Set cannot be mutated")}has(e){return function(e,t){return ha(xa(e),t,Ea(e))}(this,e)}keys(){return on((e=>e),this)}values(){return on((e=>e),this)}entries(){return on((e=>[e,e]),this)}forEach(e,t){const n=this;rn((t=>{e(t,t,n)}),n)}}function xa(e){return e.comparer}function Ea(e){return e.tree}function ka(e){return ca(Ea(e))}function Na(e,t,n){try{return"Expecting "+e+" but instead got:"+(n?"\n":" ")+JSON.stringify(t,null,4)}catch(t){return"Expecting "+e+" but decoder failed. Couldn't report given value due to circular structure."+(n?"\n":" ")}}function Aa(e,t,n){const r=t(e,n);if(1===r.tag){const e=r.fields[0];return new yt(1,function(e,t){const n=2===t.tag?Na(t.fields[0],t.fields[1],!0):1===t.tag?Na(t.fields[0],t.fields[1],!1)+"\nReason: "+t.fields[2]:3===t.tag?Na(t.fields[0],t.fields[1],!0):4===t.tag?Na(t.fields[0],t.fields[1],!0)+"\nNode `"+t.fields[2]+"` is unkown.":5===t.tag?"Expecting "+t.fields[0]+".\n"+JSON.stringify(t.fields[1],null,4):7===t.tag?"The following errors were found:\n\n"+Ie("\n\n",t.fields[0]):6===t.tag?"The following `failure` occurred with the decoder: "+t.fields[0]:Na(t.fields[0],t.fields[1],!1);return 7===t.tag?n:"Error at: `"+e+"`\n"+n}(e[0],e[1]))}return new yt(0,r.fields[0])}function Ma(e,t){try{return Aa("$",e,JSON.parse(t))}catch(e){if(e instanceof SyntaxError)return new yt(1,"Given an invalid JSON: "+e.message);throw e}}const Ta=e=>t=>{const n="a sbyte",r=e,o=t;if("number"==typeof o){const e=o;return isFinite(e)&&Math.floor(e)===e?-128<=e&&e<=127?new yt(0,(e+128&255)-128):new yt(1,[r,new Ou(1,n,e,"Value was either too large or too small for a sbyte")]):new yt(1,[r,new Ou(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[Ki(o,511,!1,8,new q((()=>t),(e=>{t=0|e}))),t],e[0]?new yt(0,e[1]):new yt(1,[r,new Ou(0,n,o)])}return new yt(1,[r,new Ou(0,n,o)])},Ia=e=>t=>{const n="a byte",r=e,o=t;if("number"==typeof o){const e=o;return isFinite(e)&&Math.floor(e)===e?0<=e&&e<=255?new yt(0,255&e):new yt(1,[r,new Ou(1,n,e,"Value was either too large or too small for a byte")]):new yt(1,[r,new Ou(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[Ki(o,511,!0,8,new q((()=>t),(e=>{t=e}))),t],e[0]?new yt(0,e[1]):new yt(1,[r,new Ou(0,n,o)])}return new yt(1,[r,new Ou(0,n,o)])},Oa=e=>t=>{const n="an int16",r=e,o=t;if("number"==typeof o){const e=o;return isFinite(e)&&Math.floor(e)===e?-32768<=e&&e<=32767?new yt(0,(e+32768&65535)-32768):new yt(1,[r,new Ou(1,n,e,"Value was either too large or too small for "+n)]):new yt(1,[r,new Ou(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[Ki(o,511,!1,16,new q((()=>t),(e=>{t=0|e}))),t],e[0]?new yt(0,e[1]):new yt(1,[r,new Ou(0,n,o)])}return new yt(1,[r,new Ou(0,n,o)])},Pa=e=>t=>{const n="an uint16",r=e,o=t;if("number"==typeof o){const e=o;return isFinite(e)&&Math.floor(e)===e?0<=e&&e<=65535?new yt(0,65535&e):new yt(1,[r,new Ou(1,n,e,"Value was either too large or too small for "+n)]):new yt(1,[r,new Ou(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[Ki(o,511,!0,16,new q((()=>t),(e=>{t=e}))),t],e[0]?new yt(0,e[1]):new yt(1,[r,new Ou(0,n,o)])}return new yt(1,[r,new Ou(0,n,o)])},Da=e=>t=>{const n="an int",r=e,o=t;if("number"==typeof o){const e=o;return isFinite(e)&&Math.floor(e)===e?-2147483648<=e&&e<=2147483647?new yt(0,~~e):new yt(1,[r,new Ou(1,n,e,"Value was either too large or too small for an int")]):new yt(1,[r,new Ou(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[Ki(o,511,!1,32,new q((()=>t),(e=>{t=0|e}))),t],e[0]?new yt(0,e[1]):new yt(1,[r,new Ou(0,n,o)])}return new yt(1,[r,new Ou(0,n,o)])},Fa=e=>t=>{const n="an uint32",r=e,o=t;if("number"==typeof o){const e=o;return isFinite(e)&&Math.floor(e)===e?0<=e&&e<=4294967295?new yt(0,e>>>0):new yt(1,[r,new Ou(1,n,e,"Value was either too large or too small for "+n)]):new yt(1,[r,new Ou(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[Ki(o,511,!0,32,new q((()=>t),(e=>{t=e}))),t],e[0]?new yt(0,e[1]):new yt(1,[r,new Ou(0,n,o)])}return new yt(1,[r,new Ou(0,n,o)])};function Ra(e,t,n,r){let o;const i=n+".["+h(e)+"]";if(Array.isArray(r)){const n=r;return e<n.length?t(i,n[e]):new yt(1,[i,new Ou(5,"a longer array. Need index `"+h(e)+"` but there are only `"+(o=n.length,h(o)+"` entries"),r)])}return new yt(1,[i,new Ou(0,"an array",r)])}function Ga(e,t,n){if(Array.isArray(n)){let r=-1;return _t(it,Le(((n,o)=>{if(r=r+1|0,0===n.tag){const i=e(t+".["+h(r)+"]",o);return 0===i.tag?new yt(0,Xe(i.fields[0],n.fields[0])):new yt(1,i.fields[0])}return n}),new yt(0,Je()),n))}return new yt(1,[t,new Ou(0,"a list",n)])}function Ua(e,t,n){if(Array.isArray(n)){let r=-1;const o=n;return Le(((n,o)=>{if(r=r+1|0,0===n.tag){const i=n.fields[0],s=e(t+".["+h(r)+"]",o);return 0===s.tag?(i[r]=s.fields[0],new yt(0,i)):new yt(1,s.fields[0])}return n}),new yt(0,Ge(new Array(o.length),0,o.length,null)),o)}return new yt(1,[t,new Ou(0,"an array",n)])}function La(e,t,n,r){const o=t(n,r);return 0===o.tag?e(o.fields[0],n,r):new yt(1,o.fields[0])}function Ba(e,t){let n;const r=e;return n=e=>t=>Ra(0,r,e,t),e=>r=>La(T(3,(e=>{let n;const r=t;return n=e=>t=>Ra(1,r,e,t),t=>r=>La(((t,n,r)=>new yt(0,[e,t])),T(2,n),t,r)})),T(2,n),e,r)}function Ha(e){return Qo(e)}function ja(e){return function(e,t){return new Sa(e,t)}(t={Compare:k},Ca(t,e));var t}function za(e,t,n,r){let o,i;return t.length!==r.length?new yt(1,[n,new Ou(6,(o=0|r.length,i=0|t.length,Ee(Se("Expected %i %s but got %i"))(i)(e)(o)))]):Be(((e,t,r)=>0===r.tag?_t((e=>Xe(e,r.fields[0])),t(n)(e)):r),r,t,new yt(0,Je()))}function qa(e,t,n,r,o,i){const s=function(e,t){return t.find((e=>Ti(e)===r))}(0,Bi(n));if(null!=s){const n=s;return 0===i.length?new yt(0,Zi(n,[])):_t((e=>Zi(n,rt(e))),za("union fields",Ue((n=>Va(e,t,!1,n[1])),Vi(n)),o,i))}return new yt(1,[o,new Ou(6,"Cannot find case "+r+" in "+Ii(n))])}function Wa(e,t,n,r){const o=new q(null),i=ri(Ii(r),o,e);let s;if(qi(r)){const e=Ue((e=>[Gu(t,Ti(e)),Va(i,t,!1,e[1])]),Hi(r));s=t=>n=>_t((e=>function(e,t){const n=Hi(e);if(n.length!==t.length)throw new Error(`Expected an array of length ${n.length} but got ${t.length}`);return null!=e.construct?new e.construct(...t):n.reduce(((e,[n,r],o)=>(e[n]=t[o],e)),{})}(r,rt(e))),function(e,t,n){return null===n||Object.getPrototypeOf(n||!1)!==Object.prototype?new yt(1,[t,new Ou(0,"an object",n)]):function(e,t,n){return t.reduceRight(((t,n)=>e(n,t)),n)}(T(2,(e=>{const r=e[0];return o=>0===o.tag?_t((e=>Xe(e,o.fields[0])),e[1](t+"."+r)(n[r])):o})),e,new yt(0,Je()))}(e,t,n))}else if(zi(r))s=e=>n=>{if("string"==typeof n)return qa(i,t,r,n,e,[]);if(Array.isArray(n)){const o=n;return qa(i,t,r,o[0],e,o.slice(1,o.length))}return new yt(1,[e,new Ou(0,"a string or array",n)])};else{if(!n){let e;const t=Ii(r);throw e=Ee(Se("Cannot generate auto decoder for %s. Please pass an extra decoder."))(t),new Error(e)}s=e=>t=>new yt(1,[e,new Ou(2,"an extra coder for "+Ii(r),t)])}return o.contents=s,s}function Va(e,t,n,r){let o,i,s;const u=Ii(r),a=oi(u,e);if(null==a){if(Oi(r)){const n=Va(e,t,!1,Pi(r));return e=>t=>Ua(T(2,n),e,t)}if(Fi(r)){const e=Ii(Gi(r));if("System.SByte"===e)return e=>t=>{const n=r,o=e,i=t,s=Ta(o)(i);if(1===s.tag)return new yt(1,s.fields[0]);{const e=s.fields[0];return tn(e,Ui(n),{Equals:(e,t)=>e===t,GetHashCode:w})?new yt(0,Li(n,e.toString())):new yt(1,[o,new Ou(1,Ii(n),i,"Unkown value provided for the enum")])}};if("System.Byte"===e)return e=>t=>{const n=r,o=e,i=t,s=Ia(o)(i);if(1===s.tag)return new yt(1,s.fields[0]);{const e=s.fields[0];return tn(e,Ui(n),{Equals:(e,t)=>e===t,GetHashCode:w})?new yt(0,Li(n,e.toString())):new yt(1,[o,new Ou(1,Ii(n),i,"Unkown value provided for the enum")])}};if("System.Int16"===e)return e=>t=>{const n=r,o=e,i=t,s=Oa(o)(i);if(1===s.tag)return new yt(1,s.fields[0]);{const e=s.fields[0];return tn(e,Ui(n),{Equals:(e,t)=>e===t,GetHashCode:w})?new yt(0,Li(n,e.toString(u))):new yt(1,[o,new Ou(1,Ii(n),i,"Unkown value provided for the enum")])}var u};if("System.UInt16"===e)return e=>t=>{const n=r,o=e,i=t,s=Pa(o)(i);if(1===s.tag)return new yt(1,s.fields[0]);{const e=s.fields[0];return tn(e,Ui(n),{Equals:(e,t)=>e===t,GetHashCode:w})?new yt(0,Li(n,e.toString())):new yt(1,[o,new Ou(1,Ii(n),i,"Unkown value provided for the enum")])}};if("System.Int32"===e)return e=>t=>{const n=r,o=e,i=t,s=Da(o)(i);if(1===s.tag)return new yt(1,s.fields[0]);{const e=s.fields[0];return tn(e,Ui(n),{Equals:(e,t)=>e===t,GetHashCode:w})?new yt(0,Li(n,h(e))):new yt(1,[o,new Ou(1,Ii(n),i,"Unkown value provided for the enum")])}};if("System.UInt32"===e)return e=>t=>{const n=r,o=e,i=t,s=Fa(o)(i);if(1===s.tag)return new yt(1,s.fields[0]);{const e=s.fields[0];return tn(e,Ui(n),{Equals:(e,t)=>e===t,GetHashCode:w})?new yt(0,Li(n,e.toString())):new yt(1,[o,new Ou(1,Ii(n),i,"Unkown value provided for the enum")])}};{const e=Ii(r),t=ke(Se("Cannot generate auto decoder for %s.\nThoth.Json.Net only support the folluwing enum types:\n- sbyte\n- byte\n- int16\n- uint16\n- int\n- uint32\nIf you can't use one of these types, please pass an extra decoder.\n "))(e);return e=>t(e)}}if(Di(r)){if(Wi(r)){const n=Ue((n=>Va(e,t,!1,n)),ji(r));return e=>t=>Array.isArray(t)?_t((e=>rt(e)),za("tuple elements",n,e,t)):new yt(1,[e,new Ou(0,"an array",t)])}{const u=Ii(Ri(r));if("Microsoft.FSharp.Core.FSharpOption`1[System.Object]"===u)return o=Va(e,t,!0,bi(r)[0]),e=>t=>{return n=T(2,o),r=e,null==(i=t)?new yt(0,void 0):_t(D,n(r,i));var n,r,i};if("Microsoft.FSharp.Collections.FSharpList`1[System.Object]"===u)return i=Va(e,t,!1,bi(r)[0]),e=>t=>Ga(T(2,i),e,t);if("Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"===u){const n=Va(e,t,!1,bi(r)[0]),o=Va(e,t,!1,bi(r)[1]);let i;const u=ut([e=>t=>function(e,t,n,r){return null===r||Object.getPrototypeOf(r||!1)!==Object.prototype?new yt(1,[n,new Ou(0,"an object",r)]):nn(((o,i)=>{if(0===o.tag){const s=e(n,i);if(0===s.tag){const e=t(n+"."+i,r[i]);return 0===e.tag?new yt(0,Xe([s.fields[0],e.fields[0]],o.fields[0])):new yt(1,e.fields[0])}return new yt(1,s.fields[0])}return o}),new yt(0,Je()),Object.keys(r))}(T(2,n),T(2,o),e,t),(s=Ba(T(2,n),T(2,o)),e=>t=>Ga(T(2,s),e,t))]);return i=e=>t=>{return n=e,r=t,((e,t)=>{e:for(;;){const o=e,i=t;if(Qe(o))return new yt(1,[n,new Ou(7,i)]);{const s=Aa(n,T(2,tt(o)),r);if(1===s.tag){e=nt(o),t=lt(i,Ke(s.fields[0]));continue e}return new yt(0,s.fields[0])}}})(u,Je());var n,r},e=>t=>function(e,t,n,r){const o=t(n,r);return 1===o.tag?new yt(1,o.fields[0]):new yt(0,e(o.fields[0]))}(Ha,T(2,i),e,t)}if("Microsoft.FSharp.Collections.FSharpSet`1[System.Object]"===u){const n=Va(e,t,!1,bi(r)[0]);return e=>t=>{const r=Ua(T(2,n),e,t);return 0===r.tag?new yt(0,ja(r.fields[0])):new yt(1,r.fields[0])}}return Wa(e,t,n,r)}}return"System.Boolean"===u?e=>t=>{return n=e,"boolean"==typeof(r=t)?new yt(0,r):new yt(1,[n,new Ou(0,"a boolean",r)]);var n,r}:"Microsoft.FSharp.Core.Unit"===u?e=>t=>{return n=e,null==(r=t)?new yt(0,void 0):new yt(1,[n,new Ou(0,"null",r)]);var n,r}:"System.String"===u?e=>t=>{return n=e,"string"==typeof(r=t)?new yt(0,r):new yt(1,[n,new Ou(0,"a string",r)]);var n,r}:"System.SByte"===u?Ta:"System.Byte"===u?Ia:"System.Int16"===u?Oa:"System.UInt16"===u?Pa:"System.Int32"===u?Da:"System.UInt32"===u?Fa:"System.Double"===u?e=>t=>{return n=e,"number"==typeof(r=t)?new yt(0,r):new yt(1,[n,new Ou(0,"a float",r)]);var n,r}:"System.Single"===u?e=>t=>{return n=e,"number"==typeof(r=t)?new yt(0,r):new yt(1,[n,new Ou(0,"a float32",r)]);var n,r}:"System.DateTime"===u?e=>t=>function(e,t){if("string"==typeof t){let n,r=K();return n=[ee(t,new q((()=>r),(e=>{r=e}))),r],n[0]?new yt(0,function(e){return 1===e.kind?e:X(e.getTime(),1)}(n[1])):new yt(1,[e,new Ou(0,"a datetime",t)])}return new yt(1,[e,new Ou(0,"a datetime",t)])}(e,t):"System.DateTimeOffset"===u?e=>t=>function(e,t){if("string"==typeof t){let n,r=Qu(-621355968e5,0);return n=[ea(t,new q((()=>r),(e=>{r=e}))),r],n[0]?new yt(0,n[1]):new yt(1,[e,new Ou(0,"a datetimeoffset",t)])}return new yt(1,[e,new Ou(0,"a datetime",t)])}(e,t):"System.TimeSpan"===u?e=>t=>function(e,t){if("string"==typeof t){let n,r=0;return n=[Iu(t,new q((()=>r),(e=>{r=e}))),r],n[0]?new yt(0,n[1]):new yt(1,[e,new Ou(0,"a timespan",t)])}return new yt(1,[e,new Ou(0,"a timespan",t)])}(e,t):"System.Guid"===u?e=>t=>function(e,t){if("string"==typeof t){let n,r="00000000-0000-0000-0000-000000000000";return n=[Ku(t,new q((()=>r),(e=>{r=e}))),r],n[0]?new yt(0,n[1]):new yt(1,[e,new Ou(0,"a guid",t)])}return new yt(1,[e,new Ou(0,"a guid",t)])}(e,t):"System.Object"===u?e=>e=>new yt(0,e):Wa(e,t,n,r)}{const e=a;return t=>n=>e.contents(t)(n)}}function Za(e,t,n){const r=U(t,new Pu(0));return Va(function(e){return null!=e?ii(((e,t)=>new q(t[1])),e.Coders):si()}(n),r,!1,e)}class Ya extends z{constructor(e,t,n,r,o,i,s){super(),this.Name=e,this.Title=t,this.Gender=n,this.Email=r,this.MobilePhone=o,this.DateOfBirth=i,this.Address=s}}function Ja(){return xi("Dto.Api.Backend.Common.FullProfileDto",[],Ya,(()=>[["Name",$s()],["Title",Mi],["Gender",Mi],["Email",Mi],["MobilePhone",Mi],["DateOfBirth",Mi],["Address",hs()]]))}class Xa extends j{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Success","Failure","Info"]}}function Ka(e){switch(e.tag){case 0:return"text-green-700";case 2:return"text-blue-700";default:return"text-red-700"}}function Qa(e){switch(e.tag){case 0:return"bg-green-50";case 2:return"bg-blue-50";default:return"bg-red-50"}}function el(e){return e.tag,e.fields[0]}function tl(e){let t,n,r,o,i;const s=e.hideAlert,u=e.alert,a=xt();eo((()=>{!function(e,t){Nt(gt.Delay((()=>gt.Bind(wt((e=>{let t;const n=setTimeout((()=>{e.cancelToken.removeListener(t),e.onSuccess(void 0)}),5e3);t=e.cancelToken.addListener((()=>{clearTimeout(n),e.onCancel(new mt)}))})),(()=>(e(),gt.Zero()))))),t)}(s,a)}));const l=En("svg",A(ut([["className",Ie(" ",["h-5","w-5"])],["fill","currentColor"],["viewBox","0 0 20 20"],["xmlns","http://www.w3.org/2000/svg"],(t=Ke(En("path",{"fill-rule":"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"})),["children",Yr.Children.toArray(Array.from(t))])])));return En("div",A(ut([["className",Ie(" ",["rounded-md","p-4","my-4",Qa(u)])],(n=[En("div",A(ut([["className",Ie(" ",["flex"])],(r=[En("p",{className:Ie(" ",["text-sm",Ka(u)]),children:el(u)}),En("div",A(ut([["className",Ie(" ",["ml-auto"])],(o=[En("div",A(ut([["className",Ie(" ",["-mx-1.5","-my-1.5"])],(i=[En("button",{type:"button",className:Ie(" ",Xt(Vt((()=>en(Jt("inline-flex"),Vt((()=>en(Jt("rounded-md"),Vt((()=>en(Jt("p-1.5"),Vt((()=>en(Jt("focus:outline-none"),Vt((()=>en(Jt("focus:ring-2"),Vt((()=>en(Jt("focus:ring-offset-2"),Vt((()=>function(e){switch(e.tag){case 0:return ut(["bg-green-50","text-green-500","hover:bg-green-100","focus:ring-offset-green-50","focus:ring-green-600"]);case 2:return ut(["bg-blue-50","text-blue-500","hover:bg-blue-100","focus:ring-offset-blue-50","focus:ring-blue-600"]);default:return ut(["bg-red-50","text-red-500","hover:bg-red-100","focus:ring-offset-red-50","focus:ring-red-600"])}}(u))))))))))))))))))))))),children:Yr.Children.toArray([l]),onClick:e=>{Et(a),s()}})],["children",Yr.Children.toArray(Array.from(i))])])))],["children",Yr.Children.toArray(Array.from(o))])])))],["children",Yr.Children.toArray(Array.from(r))])])))],["children",Yr.Children.toArray(Array.from(n))])])))}class nl extends z{constructor(e,t,n,r,o,i,s){super(),this.Name=e,this.Email=t,this.MobilePhone=n,this.Title=r,this.Gender=o,this.DateOfBirth=i,this.Address=s}}class rl extends j{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Full","Partial"]}}class ol extends j{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Success","EmailNotUnique"]}}class il extends j{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["HasNotStartedYet","InProgress","Resolved","Failed"]}}function sl(e,t){const n=to(xt());return Qr((()=>Xr((()=>{Et(n.current)}))),[]),no((r=>{var o;null!=(o=n.current)&&o.isCancelled||Nt(gt.Delay((()=>gt.TryWith(gt.Delay((()=>(t(new il(1)),gt.Bind(e(r),(e=>(t(new il(2,e)),gt.Zero())))))),(e=>(t(new il(3,e)),gt.Zero()))))),n.current)}))}function ul(e){return pi(e)}function al(e){return J(e,"yyyy-MM-dd")}function ll(){return ut([[new rs(0),"Male"],[new rs(1),"Female"],[new rs(2),"Intersex"],[new rs(3),"Transgender"],[new rs(4),"Prefer not to answer"],[new rs(5),"Other"]])}function cl(e){return $t((t=>t[1]===e?t[0]:void 0),ll())}class $l extends j{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Mr","Miss","Mrs","Ms","Dr","Prof"]}}function fl(e){return H(e)}function dl(){return ut([[new $l(0),"Mr"],[new $l(1),"Miss"],[new $l(2),"Mrs"],[new $l(3),"Ms"],[new $l(4),"Dr"],[new $l(5),"Prof"]])}function hl(e){return $t((t=>t[1]===e?t[0]:void 0),dl())}class ml extends z{constructor(e,t,n,r,o,i){super(),this.FirstName=e,this.MiddleName=t,this.LastName=n,this.Title=r,this.DateOfBirth=o,this.Gender=i}}const pl=new ml("","","",void 0,void 0,void 0);class wl extends z{constructor(e,t,n,r,o,i,s){super(),this.Email=e,this.MobileNumber=t,this.StreetAddress=n,this.Suburb=r,this.State=o,this.Postcode=i,this.NonUniqueEmails=s}}const gl=new wl("","","","",void 0,"",Je());class yl extends z{constructor(e,t){super(),this.Identification=e,this.ContactDetails=t}}const _l=new yl(pl,gl);function vl(e){if(1===e.tag){const t=e.fields[0];return new yl(new ml(t.Name.FirstName,U(t.Name.MiddleName,""),t.Name.LastName,B(hl,t.Title),B(ul,t.DateOfBirth),B(cl,t.Gender)),new wl(t.Email,Es(U(t.MobilePhone,"")),U(L((e=>e.AddressLine1),t.Address),""),U(L((e=>e.City),t.Address),""),B((e=>Cs(e.State)),t.Address),U(L((e=>e.Postcode),t.Address),""),Je()))}{const t=e.fields[0];return new yl(new ml(t.Name.FirstName,U(t.Name.MiddleName,""),t.Name.LastName,hl(t.Title),ul(t.DateOfBirth),cl(t.Gender)),new wl(t.Email,Es(t.MobilePhone),t.Address.AddressLine1,t.Address.City,Cs(t.Address.State),t.Address.Postcode,Je()))}}class bl extends z{constructor(e,t,n,r){super(),this.FormModel=e,this.CurrentAlert=t,this.ExistingProfile=n,this.SaveStatus=r}}class Cl extends j{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["SetIdentification","SetContactDetails","GetProfileCallback","SaveStarted","SaveFinished","ShowAlert","HideAlert"]}}function Sl(e,t){return gt.Bind(t,(t=>{const n=(r=e,vt((e=>r),t));var r;return gt.Return(n)}))}function xl(e){return`${e}/profiles/backend/profiles`}function El(e,t){return Sl(new ys(1),yo(0,(()=>{const n=gi(t,$i(new _o(0),ci(xl(e))));return gt.Delay((()=>gt.Bind(n,(e=>{let t,n;const r=e;return 1===r.tag?gt.Return(new yt(1,r.fields[0])):gt.ReturnFrom((t=r.fields[0],200===t.statusCode?(o=t.responseText,n=Ma(T(2,Za(Ei("Dto.Api.Backend.Read.ProfileDto",[],rl,(()=>[[["Item",Ja()]],[["Item",xi("Dto.Api.Backend.Read.PartialProfileDto",[],nl,(()=>[["Name",$s()],["Email",Mi],["MobilePhone",ki(Mi)],["Title",ki(Mi)],["Gender",ki(Mi)],["DateOfBirth",ki(Mi)],["Address",ki(hs())]]))]]])),new Pu(1),void 0)),o),gt.Return(n)):gt.Return(new yt(1,""))));var o}))))})))}function kl(e,t,n){return Sl(new ys(0),yo(0,(()=>{let r;const o=gi(t,(r=di(new bo(1,function(e){return qu(0,Zu(Ja(),new Pu(1),void 0,void 0)(e))}(n)),$i(new _o(2),ci(xl(e)))),fi(ui("application/json"),r)));return gt.Delay((()=>gt.Bind(o,(e=>{let t,n;const r=e;return 1===r.tag?gt.Return(new yt(1,r.fields[0])):gt.ReturnFrom((t=r.fields[0],200===t.statusCode?(o=t.responseText,n=Ma(T(2,Za(Ei("Dto.Api.Backend.Read.ProfileUpdateStatus",[],ol,(()=>[[],[]])),new Pu(1),void 0)),o),gt.Return(n)):gt.Return(new yt(1,""))));var o}))))})))}function Nl(e,t){if(1===e.tag)return[new bl(new yl(t.FormModel.Identification,e.fields[0](t.FormModel.ContactDetails)),t.CurrentAlert,t.ExistingProfile,t.SaveStatus),Ot()];if(2!==e.tag){if(3===e.tag){const n=new bl(t.FormModel,t.CurrentAlert,t.ExistingProfile,new il(1)),r=function(e){return po(0,(()=>bt((t=>bt((n=>bt((r=>wo(0,_t(al,ls("DateOfBirth missing",e.Identification.DateOfBirth)),(o=>new Ya(new cs(e.Identification.FirstName.trim(),mi(e.Identification.MiddleName.trim()),e.Identification.LastName.trim()),r,t,e.ContactDetails.Email.trim(),xs(e.ContactDetails.MobileNumber),o,new ds(e.ContactDetails.StreetAddress.trim(),void 0,e.ContactDetails.Suburb.trim(),n,e.ContactDetails.Postcode.trim(),"AU"))))),_t(fl,ls("Title missing",e.Identification.Title)))),_t(vs,ls("State missing",e.ContactDetails.State)))),_t(fs,ls("Gender missing",e.Identification.Gender)))))()}(t.FormModel);return 1===r.tag?[n,Pt(new Cl(4,new yt(1,new ys(0))))]:[n,Dt((e=>{Ft(e)}),(t=>kl(e.fields[0],e.fields[1],t)),r.fields[0],(t=>new Cl(4,_t((t=>[t,e.fields[2]]),t))),(e=>new Cl(4,new yt(1,new ys(0)))))]}return 4===e.tag?1===e.fields[0].tag?[new bl(t.FormModel,t.CurrentAlert,t.ExistingProfile,new il(3,new Error(_s(e.fields[0].fields[0])))),Pt(new Cl(5,new Xa(1,_s(e.fields[0].fields[0]))))]:1===e.fields[0].fields[0][0].tag?[new bl(t.FormModel,t.CurrentAlert,t.ExistingProfile,new il(2,void 0)),Pt(new Cl(1,(e=>new wl(e.Email,e.MobileNumber,e.StreetAddress,e.Suburb,e.State,e.Postcode,lt(e.NonUniqueEmails,Ke(t.FormModel.ContactDetails.Email))))))]:(e.fields[0].fields[0][1](),[new bl(t.FormModel,t.CurrentAlert,t.ExistingProfile,new il(2,void 0)),Ot()]):5===e.tag?[new bl(t.FormModel,e.fields[0],t.ExistingProfile,t.SaveStatus),Ot()]:6===e.tag?[new bl(t.FormModel,void 0,t.ExistingProfile,t.SaveStatus),Ot()]:[new bl(new yl(e.fields[0](t.FormModel.Identification),t.FormModel.ContactDetails),t.CurrentAlert,t.ExistingProfile,t.SaveStatus),Ot()]}{let n,r;switch(3===e.fields[0].tag?n=1:0===e.fields[0].tag?n=2:1===e.fields[0].tag?n=3:1===e.fields[0].fields[0].tag?n=1:(n=0,r=e.fields[0].fields[0].fields[0]),n){case 0:return[new bl(vl(r),t.CurrentAlert,new il(2,r),t.SaveStatus),Ot()];case 1:return[new bl(t.FormModel,t.CurrentAlert,new il(3,new Error(_s(new ys(1)))),t.SaveStatus),Ot()];case 2:return[new bl(t.FormModel,t.CurrentAlert,new il(0),t.SaveStatus),Ot()];case 3:return[new bl(t.FormModel,t.CurrentAlert,new il(1),t.SaveStatus),Ot()]}}}function Al(e,t,n){return!!e.has(t)&&(n.contents=e.get(t),!0)}function Ml(e,t){if(e.has(t))return e.get(t);throw new Error(`The given key '${t}' was not present in the dictionary.`)}class Tl{constructor(e,t){const n=new q(null);this.comparer=t,n.contents=this,this.hashMap=new Map([]),this["init@8-2"]=1;const r=l(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const e=r["System.Collections.Generic.IEnumerator`1.get_Current"]();Dl(n.contents,e)}}finally{s(r)}}get[Symbol.toStringTag](){return"HashSet"}toJSON(e){return Array.from(this)}"System.Collections.IEnumerable.GetEnumerator"(){return l(this)}GetEnumerator(){return l(Zt(this.hashMap.values()))}[Symbol.iterator](){return c(this.GetEnumerator())}"System.Collections.Generic.ICollection`1.Add2B595"(e){Dl(this,e)}"System.Collections.Generic.ICollection`1.Clear"(){Ol(this)}"System.Collections.Generic.ICollection`1.Contains2B595"(e){return Fl(this,e)}"System.Collections.Generic.ICollection`1.CopyToZ2E171D71"(e,t){var n;n=(n,r)=>{e[t+n]=r},nn(((e,t)=>(n(e,t),e+1|0)),0,this)}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|Pl(this)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!1}"System.Collections.Generic.ICollection`1.Remove2B595"(e){return Rl(this,e)}get size(){return 0|Pl(this)}add(e){return Dl(this,e),this}clear(){Ol(this)}delete(e){return Rl(this,e)}has(e){return Fl(this,e)}keys(){return on((e=>e),this)}values(){return on((e=>e),this)}entries(){return on((e=>[e,e]),this)}forEach(e,t){const n=this;rn((t=>{e(t,t,n)}),n)}}function Il(e,t){const n=0|e.comparer.GetHashCode(t);let r,o=null;return r=[Al(e.hashMap,n,new q((()=>o),(e=>{o=e}))),o],r[0]?[!0,n,r[1].findIndex((n=>e.comparer.Equals(t,n)))]:[!1,n,-1]}function Ol(e){e.hashMap.clear()}function Pl(e){let t=0,n=l(e.hashMap.values());try{for(;n["System.Collections.IEnumerator.MoveNext"]();)t=t+n["System.Collections.Generic.IEnumerator`1.get_Current"]().length|0}finally{s(n)}return 0|t}function Dl(e,t){const n=Il(e,t);return n[0]?!(n[2]>-1)&&(Ml(e.hashMap,n[1]).push(t),!0):(e.hashMap.set(n[1],[t]),!0)}function Fl(e,t){const n=Il(e,t);let r;switch(r=n[0]&&n[2]>-1?0:1,r){case 0:return!0;case 1:return!1}}function Rl(e,t){const n=Il(e,t);let r;switch(r=n[0]&&n[2]>-1?0:1,r){case 0:return Ml(e.hashMap,n[1]).splice(n[2],1),!0;case 1:return!1}}function Gl(e,t){return Vt((()=>{const n=new Tl([],t);return function(e,t){return function(e,t){return Kt((()=>Wt(t)),(t=>{let n;for(;null==n&&t["System.Collections.IEnumerator.MoveNext"]();)n=e(t["System.Collections.Generic.IEnumerator`1.get_Current"]());return n}),(e=>{s(e)}))}((t=>e(t)?D(t):void 0),t)}((e=>function(e,t){return!t.has(e)&&(t.add(e),!0)}(e,n)),e)}))}function Ul(e){const t=ar(e);return[t[0],e=>{t[1](e)}]}class Ll extends j{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Required","MaxLen","MinLen","Regex","CustomRule"]}}function Bl(e){const t=e.values();return n=Xt(Vt((()=>un((e=>{const t=e[0],n=ct((t=>Me(t,e[1])),function(e,t){const n=ze(),r=ot(((e,t)=>{const n=1===(r=t).tag?r.fields[0]:void 0;var r;if(null==n)return e;{const t=new He(F(n),void 0);return e.tail=t,t}}),n,t),o=ze();return r.tail=o,Ye(n)}(0,ct((e=>{switch(e.tag){case 1:return function(e,t){return t.length>e?new yt(1,Ee(Se("{0} exceeds the max length of %i"))(e)):new yt(0,void 0)}(e.fields[0],t.value);case 2:return n=e.fields[0],t.value.length<n?new yt(1,Ee(Se("{0} must be at least %i characters"))(n)):new yt(0,void 0);case 3:return function(e,t,n){return null!=ge(pe(e),n)?new yt(0,void 0):new yt(1,Ee(Se("{0} is not a valid %s"))(t))}(e.fields[0],e.fields[1],t.value);case 4:return e.fields[0];default:return function(e){return Te(e)?new yt(1,"{0} is required"):new yt(0,void 0)}(t.value)}var n}),e[2])));return en(et(n)>0?(t.classList.add("error"),t.setAttribute("title",function(e,t){return function(e,t){return((e,n)=>{for(;;){const r=e,o=n,i=o.tail;if(null==i)throw new Error("The index was outside the range of elements in the collection.\\nParameter name: index");if(r===t)return o.head;e=r+1,n=i}})(0,e)}(t,e)}(0,n)),Yt()):(t.classList.remove("error"),t.removeAttribute("title"),Yt()),Vt((()=>n)))}),t)))),r={Equals:(e,t)=>e===t,GetHashCode:p},Xt(Gl(n,r));var n,r}function Hl(e){let t=l(e.values());try{for(;t["System.Collections.IEnumerator.MoveNext"]();){const e=t["System.Collections.Generic.IEnumerator`1.get_Current"]()[0];e.classList.remove("error"),e.removeAttribute("title")}}finally{s(t)}}function jl(){const e=fr(new Map([])).current,t=Ul(Je()),n=t[1],r=t[0],o=Ul(!1),i=o[1];return cr((()=>{if(o[0]){const t=Bl(e);C(t,r)||(n(t),Hl(e))}})),[fr((t=>n=>r=>{if(!C(r,null)){let o;o=r.hasAttribute("data-vkey")?r.getAttribute("data-vkey"):h(_(r)),e.set(o,[r,t,n])}})).current,()=>{i(!0);const t=Bl(e);return n(t),0===et(t)},()=>{i(!1),Hl(e),n(Je())},r]}const zl=H(n(118).Z),ql=ut(["grid","grid-cols-1","sm:grid-cols-3","gap-x-6","gap-y-4","mt-4"]);class Wl extends j{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Your","EmergencyContact"]}}function Vl(e){return 1===e.tag?"emergency contact":"your"}class Zl extends j{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["TestId"]}}function Yl(e){return e.fields[0]}function Jl(e,t){return e+(n=t,r=new Ll(0),o={Equals:C,GetHashCode:_},null!=ft((e=>o.Equals(r,e)),n)?" *":"");var n,r,o}function Xl(e,t,n,r,o){const i=Xt(Vt((()=>en(Jt(En("label",{className:Ie(" ",["block","text-sm","font-medium","text-gray-700"]),children:Jl(e,t)})),Vt((()=>en(Jt(En("div",{className:Ie(" ",["mt-1"]),children:Yr.Children.toArray([o])})),Vt((()=>{if(null!=n){const e=n;return Jt(En("p",{className:Ie(" ",["mt-2","text-sm","text-red-600"]),children:e,"data-testid":`${Yl(r)}-error`}))}return Jt(null)})))))))));return En("div",{children:Yr.Children.toArray(Array.from(i))})}const Kl=ut(["border-red-300","text-red-900","placeholder-red-300","focus:outline-none","focus:ring-red-500","focus:border-red-500"]);function Ql(e){return Xt(Vt((()=>en(Jt("block"),Vt((()=>en(Jt("shadow-sm"),Vt((()=>en(Jt("w-full"),Vt((()=>en(Jt("sm:text-sm"),Vt((()=>en(Jt("rounded-md"),Vt((()=>e?Kl:en(Jt("border-gray-300"),Vt((()=>en(Jt("focus:ring-primary-focus"),Vt((()=>Jt("focus:border-primary-focus")))))))))))))))))))))))))}function ec(e,t,n,r,o,i,s,u,a){return Xl(e,r,o,u,En("input",A(Xt(Vt((()=>en(Jt(["className",Ie(" ",Ql(null!=o))]),Vt((()=>en(Jt(["value",t]),Vt((()=>en(Jt(["ref",O(1,n,[r])]),Vt((()=>en(Jt(["type","text"]),Vt((()=>en(Jt(["onChange",e=>{i(e.target.value)}]),Vt((()=>en(Jt(["placeholder",`Enter ${Vl(s)} ${e.toLocaleLowerCase()}`]),Vt((()=>en(Jt(["data-testid",Yl(u)]),Vt((()=>a)))))))))))))))))))))))))))}class tc extends z{constructor(e,t,n){super(),this.Day=e,this.Month=t,this.Year=n}}const nc=new tc("","","");function rc(e){return 1===e.length?`0${e}`:e}function oc(e){const t=function(e){return`${e.Year}-${rc(e.Month)}-${rc(e.Day)}`}(e),n=(r=t,ns(new ks(7),((e,t,n)=>{}),r));var r;let o;switch(o=1===n.tag&&7===n.fields[0].tag?0:1,o){case 0:return new yt(1,void 0);case 1:return new yt(0,t)}}function ic(e){let t,n,r,o;const i=e.onChangeHandler,s=e.testId,u=e.error,a=e.validationRules,l=e.rulesForFieldName,c=e.value,$=e.fieldName,f=(d=null==c?nc:function(e){return new tc(rc(h(ie(e))),rc(h(se(e))),h(ue(e)))}(c),Yr.useState(d));var d;const m=f[0],p=e=>{let t;f[1](e),i((t=oc(e),1===t.tag?void 0:pi(t.fields[0])))},w=(e,t,n,r)=>{const o=De(gs,r);return 0==(0|o.length)?o:Xi(o,511,!1,32)<=t?Fe(o,0,function(e,t,n){return e(t,n)<0?t:n}(x,e,o.length)):n},g=Yl(s);return Xl($,a,u,s,En("div",A(ut([["className",Ie(" ",["grid","grid-cols-4","gap-1"])],(t=[En("div",A(ut([["className",Ie(" ",["col-span-1"])],(n=[En("input",{className:Ie(" ",Ql(null!=u)),type:"text",value:m.Day,placeholder:"dd",onChange:e=>{const t=e.target.value;p(new tc(w(2,31,m.Day,t),m.Month,m.Year))},onBlur:e=>{p(new tc(rc(m.Day),m.Month,m.Year))},inputMode:"numeric",autoComplete:"bday-day","data-testid":`${g}-day`})],["children",Yr.Children.toArray(Array.from(n))])]))),En("div",A(ut([["className",Ie(" ",["col-span-1"])],(r=[En("input",{className:Ie(" ",Ql(null!=u)),type:"text",value:m.Month,placeholder:"mm",onChange:e=>{const t=e.target.value;p(new tc(m.Day,w(2,12,m.Month,t),m.Year))},onBlur:e=>{p(new tc(m.Day,rc(m.Month),m.Year))},inputMode:"numeric",autoComplete:"bday-month","data-testid":`${g}-month`})],["children",Yr.Children.toArray(Array.from(r))])]))),En("div",A(ut([["className",Ie(" ",["col-span-2"])],(o=[En("input",{className:Ie(" ",Ql(null!=u)),type:"text",value:m.Year,placeholder:"yyyy",onChange:e=>{let t;const n=e.target.value;p(new tc(m.Day,m.Month,w(4,(t=ne(),ue(t)),m.Year,n)))},inputMode:"numeric",autoComplete:"bday-year","data-testid":`${g}-year`})],["children",Yr.Children.toArray(Array.from(o))])]))),En("input",{type:"hidden",ref:l(a),value:(y="",_=oc(m),1===_.tag?y:_.fields[0])})],["children",Yr.Children.toArray(Array.from(t))])]))));var y,_}function sc(e,t,n,r,o,i,s,u,a){let l;return Xl(e,o,i,a,En("select",A(ut([["className",Ie(" ",Xt(Vt((()=>en(Jt("mt-1"),Vt((()=>en(Jt("block"),Vt((()=>en(Jt("w-full"),Vt((()=>en(Jt("pl-3"),Vt((()=>en(Jt("pr-10"),Vt((()=>en(Jt("py-2"),Vt((()=>en(Jt("text-base"),Vt((()=>en(Jt("sm:text-sm"),Vt((()=>en(Jt("rounded-md"),Vt((()=>null==i?en(Jt("border-gray-300"),Vt((()=>en(Jt("focus:outline-none"),Vt((()=>en(Jt("focus:ring-primary-focus"),Vt((()=>Jt("focus:border-primary-focus")))))))))):Kl)))))))))))))))))))))))))))))))],["ref",O(1,r,[o])],(l=Xt(Vt((()=>en(Jt(En("option",{selected:null==t,disabled:!0,value:"",children:`Select ${Vl(u)} ${e.toLocaleLowerCase()}`})),Vt((()=>un((e=>{const n=e[1];return Jt(En("option",{selected:tn(e[0],G(t),{Equals:C,GetHashCode:y}),value:n,children:n,className:Ie(" ",["text-black"])}))}),n))))))),["children",Yr.Children.toArray(Array.from(l))]),["onChange",e=>{s(e.target.value)}],["data-testid",Yl(a)]]))))}function uc(e,t,n,r,o,i,s,u){return Xl(e,r,o,u,En("input",{className:Ie(" ",Ql(null!=o)),type:"tel",value:t,ref:O(1,n,[r]),onChange:e=>{let t;const n=e.target.value;i((t=De(gs,n),0===n.indexOf("+")?`+${t}`:t))},placeholder:`Enter ${Vl(s)} ${e.toLocaleLowerCase()}`,inputMode:"tel",autoComplete:"tel-national","data-testid":Yl(u)}))}function ac(e,t,n){let r,o,i,s;const u=n&&!C(t,new il(1)),a=En("svg",A(ut([["className",Ie(" ",["animate-spin","-ml-1","mr-3","h-5","w-5","text-white"])],["fill","none"],["viewBox","0 0 24 24"],["xmlns","http://www.w3.org/2000/svg"],(r=ut([En("circle",{className:Ie(" ",["opacity-25"]),cx:12,cy:12,r:10,stroke:"currentColor",strokeWidth:4}),En("path",{className:Ie(" ",["opacity-75"]),fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]),["children",Yr.Children.toArray(Array.from(r))])])));return En("div",A(ut([["className",Ie(" ",["flex","flex-row-reverse"])],(o=[(i=Ke(En("button",A(ut([["className",Ie(" ",Xt(Vt((()=>en(Jt("inline-flex"),Vt((()=>en(Jt("items-center"),Vt((()=>en(Jt("px-4"),Vt((()=>en(Jt("py-2"),Vt((()=>en(Jt("border"),Vt((()=>en(Jt("border-transparent"),Vt((()=>en(Jt("shadow-sm"),Vt((()=>en(Jt("text-sm"),Vt((()=>en(Jt("font-medium"),Vt((()=>en(Jt("rounded-md"),Vt((()=>en(Jt("text-primary-text"),Vt((()=>en(Jt("focus:outline-none"),Vt((()=>en(Jt("focus:ring-2"),Vt((()=>en(Jt("focus:ring-offset-2"),Vt((()=>en(Jt("focus:ring-primary-focus"),Vt((()=>{const e=[u,t];let n;switch(n=e[0]||1===e[1].tag?0:1,n){case 0:return en(Jt("bg-primary-base"),Vt((()=>Jt("hover:bg-primary-hover"))));case 1:return Jt("bg-primary-disabled")}})))))))))))))))))))))))))))))))))))))))))))))))))],["type","button"],["disabled",!u],["onClick",t=>{u&&e()}],(s=Xt(Vt((()=>en(1===t.tag?Jt(a):Jt(null),Vt((()=>Jt(En("span",{children:["Save and continue"]})))))))),["children",Yr.Children.toArray(Array.from(s))]),["data-testid","save"]])))),En("div",{children:Yr.Children.toArray(Array.from(i))}))],["children",Yr.Children.toArray(Array.from(o))])])))}function lc(e){return as(new ks(9),0===e.indexOf("04")?10===e.length:0===e.indexOf("614")?11===e.length:0===e.indexOf("+614")&&12===e.length)}function cc(e){return new Ll(4,us(vt((e=>1===e.tag?`{0} exceeds the character limit of ${e.fields[0]}`:2===e.tag?`{0} must be at least ${e.fields[0]} characters`:4===e.tag?"{0} must only have numbers":5===e.tag?"{0} is not valid":3===e.tag?"{0} has invalid characters":6===e.tag?"{0} is not valid":9===e.tag?"{0} is not a valid Australian mobile number":7===e.tag?"{0} is not valid":8===e.tag?0===e.fields[0].tag?"{0} must be under 100 years of age":"{0} must be at least 13 years of age":10===e.tag?"{0} must start with a letter":"{0} is required"),e)))}function $c(e,t){let n;n=new CustomEvent("step-completion",{bubbles:!0,detail:e}),t.dispatchEvent(n)}function fc(e){let t;const n=uo([new bl(_l,void 0,new il(0),new il(0)),Ot()],Nl),r=n[0],o=n[1],i=jl(),s=i[0],u=i[3];eo(sl((()=>El(e.backendUrl,e.accessToken)),(e=>{o(new Cl(2,e))})));const a=En("h3",{className:Ie(" ",["text-2xl","font-medium"]),children:"Personal Details"});return En("div",A(ut([["className",Ie(" ",["font-sans"])],(t=Xt(Vt((()=>en(Jt(En("style",{children:[zl]})),Vt((()=>{const t=r.ExistingProfile;switch(t.tag){case 1:default:return Jt(En("div",{children:["Please wait..."]}));case 2:return en(Jt(a),Vt((()=>en(Jt(function(e,t,n,r){let o;return En("div",A(ut([["className",Ie(" ",["py-3","mb-2"])],(o=Xt(Vt((()=>en(Jt(En("h6",{className:Ie(" ",["text-lg","font-semibold"]),children:"Identification"})),Vt((()=>{let o;const i="Identification";return Jt(En("div",A(ut([["className",Ie(" ",ql)],(o=Xt(Vt((()=>{const o="Legal first name",s=`${i}.${o}`;return en(Jt(ec(o,e.FirstName,T(2,O(2,t,[s])),ut([new Ll(0),cc(Rs(e.FirstName))]),yi(s,o,n),(e=>{r(new Cl(0,(t=>new ml(e,t.MiddleName,t.LastName,t.Title,t.DateOfBirth,t.Gender))))}),new Wl(0),new Zl(0,"first-name"),[["autoComplete","given-name"]])),Vt((()=>{const o="Middle name",s=`${i}.Middle name`;return en(Jt(ec(o,e.MiddleName,T(2,O(2,t,[s])),Ke(cc(function(e){return null!=e?Fs(ut([e=>Ts(60,e),e=>Ds("-",e),e=>Ds("'",e),e=>Os("(^[A-Za-zÀ-ÖØ-öø-ÿĀ-ž])[A-Za-zÀ-ÖØ-öø-ÿĀ-ž\\- ']{0,59}$",e)]),e):new yt(0,void 0)}(mi(e.MiddleName)))),yi(s,o,n),(e=>{r(new Cl(0,(t=>new ml(t.FirstName,e,t.LastName,t.Title,t.DateOfBirth,t.Gender))))}),new Wl(0),new Zl(0,"middle-name"),[["autoComplete","additional-name"]])),Vt((()=>{const o="Last name",s=`${i}.Last name`;return en(Jt(ec(o,e.LastName,T(2,O(2,t,[s])),ut([new Ll(0),cc(Rs(e.LastName))]),yi(s,o,n),(e=>{r(new Cl(0,(t=>new ml(t.FirstName,t.MiddleName,e,t.Title,t.DateOfBirth,t.Gender))))}),new Wl(0),new Zl(0,"last-name"),[["autoComplete","family-name"]])),Vt((()=>{const o="Title",s=`${i}.Title`;return en(Jt(sc(o,e.Title,dl(),T(2,O(2,t,[s])),ut([new Ll(0),cc(ls(new ks(0),e.Title))]),yi(s,o,n),(e=>{r(new Cl(0,(t=>new ml(t.FirstName,t.MiddleName,t.LastName,hl(e),t.DateOfBirth,t.Gender))))}),new Wl(0),new Zl(0,"title"))),Vt((()=>{let o;const s="Date of birth",u=`${i}.Date of birth`;return en(Jt(En(ic,{fieldName:s,value:e.DateOfBirth,rulesForFieldName:O(2,t,[u]),validationRules:ut([new Ll(0),cc((o=e.DateOfBirth,null==o?new yt(1,new ks(0)):(a=o,function(e){return t=>Fs(Ke((t=>Is(e,t))),t)}(X(Date.now(),1))(a))))]),error:yi(u,s,n),testId:new Zl(0,"dob"),onChangeHandler:e=>{r(new Cl(0,(t=>new ml(t.FirstName,t.MiddleName,t.LastName,t.Title,e,t.Gender))))}})),Vt((()=>{const o="Gender",s=`${i}.Gender`;return Jt(sc(o,e.Gender,ll(),T(2,O(2,t,[s])),ut([new Ll(0),cc(ls(new ks(0),e.Gender))]),yi(s,o,n),(e=>{r(new Cl(0,(t=>new ml(t.FirstName,t.MiddleName,t.LastName,t.Title,t.DateOfBirth,cl(e)))))}),new Wl(0),new Zl(0,"gender")))})));var a})))})))})))})))}))),["children",Yr.Children.toArray(Array.from(o))])]))))})))))),["children",Yr.Children.toArray(Array.from(o))])])))}(r.FormModel.Identification,T(3,s),u,o)),Vt((()=>en(Jt(function(e,t,n,r){let o;return En("div",A(ut([["className",Ie(" ",["py-3","mb-2"])],(o=Xt(Vt((()=>en(Jt(En("h6",{className:Ie(" ",["text-lg","font-semibold"]),children:"Contact details"})),Vt((()=>{let o;const i="ContactDetails";return en(Jt(En("div",A(ut([["className",Ie(" ",ql)],(o=Xt(Vt((()=>{const o="Email",s=`${i}.Email`;return en(Jt(ec(o,e.Email,T(2,O(2,t,[s])),ut([new Ll(0),cc(Us(e.Email)),new Ll(4,(u="{0} is already taken",a=dt((t=>0===function(...e){switch(e.length){case 2:return Ce(e[0],e[1],!1);case 3:return Ce(e[0],e[1],e[2]);case 4:return Ce(e[0],e[1],!0===e[2]);case 5:return Ce(e[0].substr(e[1],e[4]),e[2].substr(e[3],e[4]),!1);case 6:return Ce(e[0].substr(e[1],e[4]),e[2].substr(e[3],e[4]),e[5]);case 7:return Ce(e[0].substr(e[1],e[4]),e[2].substr(e[3],e[4]),!0===e[5]);default:throw new Error("String.compare: Unsupported number of parameters")}}(t,e.Email,5)),e.NonUniqueEmails),a?new yt(1,u):new yt(0,void 0)))]),yi(s,o,n),(e=>{r(new Cl(1,(t=>new wl(e,t.MobileNumber,t.StreetAddress,t.Suburb,t.State,t.Postcode,t.NonUniqueEmails))))}),new Wl(0),new Zl(0,"email"),[["autoComplete","email"]])),Vt((()=>{const o="Mobile number",s=`${i}.Mobile number`;return Jt(uc(o,e.MobileNumber,T(2,O(2,t,[s])),ut([new Ll(0),cc(lc(e.MobileNumber))]),yi(s,o,n),(e=>{r(new Cl(1,(t=>new wl(t.Email,e,t.StreetAddress,t.Suburb,t.State,t.Postcode,t.NonUniqueEmails))))}),new Wl(0),new Zl(0,"mobile")))})));var u,a}))),["children",Yr.Children.toArray(Array.from(o))])])))),Vt((()=>{let o;return Jt(En("div",A(ut([["className",Ie(" ",ql)],(o=Xt(Vt((()=>{const o="Street address",s=`${i}.Street address`;return en(Jt(ec(o,e.StreetAddress,T(2,O(2,t,[s])),ut([new Ll(0),cc(Gs(e.StreetAddress))]),yi(s,o,n),(e=>{r(new Cl(1,(t=>new wl(t.Email,t.MobileNumber,e,t.Suburb,t.State,t.Postcode,t.NonUniqueEmails))))}),new Wl(0),new Zl(0,"street-address"),[["autoComplete","street-address"]])),Vt((()=>{const o="Town/Suburb",s=`${i}.Town/Suburb`;return en(Jt(ec(o,e.Suburb,T(2,O(2,t,[s])),ut([new Ll(0),cc(Ls(e.Suburb))]),yi(s,o,n),(e=>{r(new Cl(1,(t=>new wl(t.Email,t.MobileNumber,t.StreetAddress,e,t.State,t.Postcode,t.NonUniqueEmails))))}),new Wl(0),new Zl(0,"town"),[["autoComplete","address-level2"]])),Vt((()=>{const o="State",s=`${i}.State`;return en(Jt(sc(o,e.State,bs(),T(2,O(2,t,[s])),ut([new Ll(0),cc(ls(new ks(0),e.State))]),yi(s,o,n),(e=>{r(new Cl(1,(t=>new wl(t.Email,t.MobileNumber,t.StreetAddress,t.Suburb,Cs(e),t.Postcode,t.NonUniqueEmails))))}),new Wl(0),new Zl(0,"state"))),Vt((()=>{const o="Postcode",s=`${i}.Postcode`;return Jt(ec(o,e.Postcode,T(2,O(2,t,[s])),ut([new Ll(0),cc(Bs(e.Postcode))]),yi(s,o,n),(e=>{r(new Cl(1,(t=>new wl(t.Email,t.MobileNumber,t.StreetAddress,t.Suburb,t.State,e,t.NonUniqueEmails))))}),new Wl(0),new Zl(0,"postcode"),[["inputMode","numeric"],["autoComplete","postal-code"]]))})))})))})))}))),["children",Yr.Children.toArray(Array.from(o))])]))))})))})))))),["children",Yr.Children.toArray(Array.from(o))])])))}(r.FormModel.ContactDetails,T(3,s),u,o)),Vt((()=>en(null!=r.CurrentAlert?Jt(En(tl,{alert:F(r.CurrentAlert),hideAlert:()=>{o(new Cl(6))}})):Yt(),Vt((()=>Jt(ac((()=>{i[1]()?o(new Cl(3,e.backendUrl,e.accessToken,(()=>{rn((e=>{$c("personal-details",e)}),G(R(document.querySelector("apollo-personal-details-app"))))}))):o(new Cl(5,new Xa(1,"There are some errors on the form, please correct them.")))}),r.SaveStatus,Qe(u)))))))))))))));case 3:return en(Jt(a),Vt((()=>{let e;return Jt((e=t.fields[0].message,En("p",{children:[e]})))})))}})))))),["children",Yr.Children.toArray(Array.from(t))])])))}function dc(e){return H(e)}function hc(){return ct((e=>[e,dc(e)]),at(on((e=>Zi(e,[])),Bi(Ei("DomainPrimitives.Relationship",[],os,(()=>[[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]]))))))}function mc(e){return $t((t=>t[1]===e?t[0]:void 0),hc())}class pc extends z{constructor(e,t,n,r,o,i,s,u){super(),this.FullName=e,this.Relationship=t,this.PhoneNumber=n,this.Email=r,this.StreetAddress=o,this.Suburb=i,this.State=s,this.Postcode=u}}const wc=new pc("",void 0,"","","","",void 0,"");function gc(e,t){return po(0,(()=>wo(0,function(e){return po(0,(()=>bt((t=>wo(0,_t(vs,ls("State missing",e.State)),(n=>new ms(e.FullName.trim(),t,xs(e.PhoneNumber),mi(e.Email),new ds(e.StreetAddress.trim(),void 0,e.Suburb.trim(),n,e.Postcode.trim(),"AU"))))),_t(is,ls("Relationship missing",e.Relationship)))))()}(e),(e=>{const n=e;return Qe(t)?Ke(n):function(e,t){const n=ze(),r=function(e,t,n){return((t,n,r)=>{for(;;){const o=t,i=n,s=r;if(We(s))return i;t=o+1,n=e(o,i,Ze(s)),r=Ye(s)}})(0,t,n)}(((t,n,r)=>{const o=new He(e(t,r),void 0);return n.tail=o,o}),n,t),o=ze();return r.tail=o,Ye(n)}(((e,t)=>0===e?n:t),t)}))))()}class yc extends z{constructor(e,t,n,r){super(),this.FormModel=e,this.CurrentAlert=t,this.SaveStatus=n,this.ExistingEmergencyContacts=r}}class _c extends j{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["SetEmergencyContact","GetEmergencyContactsCallback","SaveStarted","SaveFinished","ShowAlert","HideAlert"]}}function vc(e){return`${e}/profiles/backend/emergency-contacts`}function bc(e,t){let n,r;if(1!==e.tag){if(2===e.tag){const n=new yc(t.FormModel,t.CurrentAlert,new il(1),t.ExistingEmergencyContacts),o=bt((e=>gc(t.FormModel,e)),(r=t.ExistingEmergencyContacts,2===r.tag?new yt(0,r.fields[0]):new yt(1,"Existing ec has not been loaded")));return 1===o.tag?[n,Pt(new _c(3,new yt(1,new ys(0))))]:[n,Dt((e=>{Ft(e)}),(t=>function(e,t,n){return yo(0,(()=>{let r;const o=gi(t,(r=di(new bo(1,(i=n,qu(0,Zu(Ni(ps()),new Pu(1),void 0,void 0)(i)))),$i(new _o(2),ci(vc(e)))),fi(ui("application/json"),r)));var i;return gt.Delay((()=>gt.Bind(o,(e=>{const t=e;return 1===t.tag?gt.Return(new yt(1,t.fields[0])):gt.ReturnFrom(200===t.fields[0].statusCode?go():gt.Return(new yt(1,new ys(0))))}))))}))}(e.fields[0],e.fields[1],t)),o.fields[0],(t=>new _c(3,_t((t=>e.fields[2]),t))),(e=>new _c(3,new yt(1,new ys(0)))))]}return 3===e.tag?1===e.fields[0].tag?[new yc(t.FormModel,t.CurrentAlert,new il(3,new Error(_s(e.fields[0].fields[0]))),t.ExistingEmergencyContacts),Pt(new _c(4,new Xa(1,_s(e.fields[0].fields[0]))))]:(e.fields[0].fields[0](),[new yc(t.FormModel,t.CurrentAlert,new il(2,void 0),t.ExistingEmergencyContacts),Ot()]):4===e.tag?[new yc(t.FormModel,e.fields[0],t.SaveStatus,t.ExistingEmergencyContacts),Ot()]:5===e.tag?[new yc(t.FormModel,void 0,t.SaveStatus,t.ExistingEmergencyContacts),Ot()]:[new yc(e.fields[0](t.FormModel),t.CurrentAlert,t.SaveStatus,t.ExistingEmergencyContacts),Ot()]}{let r,s;switch(3===e.fields[0].tag?r=1:0===e.fields[0].tag?r=2:1===e.fields[0].tag?r=3:1===e.fields[0].fields[0].tag?r=1:(r=0,s=e.fields[0].fields[0].fields[0]),r){case 0:return[new yc((i=s,n=We(i)?void 0:D(Ze(i)),null==n?t.FormModel:(o=n,new pc(o.FullName,mc(o.Relationship),Es(o.MobilePhone),U(o.Email,""),U(L((e=>e.AddressLine1),o.Address),""),U(L((e=>e.City),o.Address),""),B((e=>Cs(e.State)),o.Address),U(L((e=>e.Postcode),o.Address),"")))),t.CurrentAlert,t.SaveStatus,new il(2,s)),Ot()];case 1:return[new yc(t.FormModel,t.CurrentAlert,t.SaveStatus,new il(3,new Error(_s(new ys(1))))),Ot()];case 2:return[new yc(t.FormModel,t.CurrentAlert,t.SaveStatus,new il(0)),Ot()];case 3:return[new yc(t.FormModel,t.CurrentAlert,t.SaveStatus,new il(1)),Ot()]}}var o,i}function Cc(e){let t;const n=uo([new yc(wc,void 0,new il(0),new il(0)),Ot()],bc),r=n[0],o=n[1],i=jl(),s=i[3];eo(sl((()=>{return t=e.backendUrl,n=e.accessToken,Sl(new ys(1),yo(0,(()=>{const e=gi(n,$i(new _o(0),ci(vc(t))));return gt.Delay((()=>gt.Bind(e,(e=>{let t,n;const r=e;return 1===r.tag?gt.Return(new yt(1,r.fields[0])):gt.ReturnFrom((t=r.fields[0],200===t.statusCode?(o=t.responseText,n=Ma(T(2,Za(Ni(ps()),new Pu(1),void 0)),o),gt.Return(n)):gt.Return(new yt(1,""))));var o}))))})));var t,n}),(e=>{o(new _c(1,e))})));const u=En("h3",{className:Ie(" ",["text-2xl","font-medium"]),children:"Emergency contact"});return En("div",A(ut([["className",Ie(" ",["font-sans"])],(t=Xt(Vt((()=>en(Jt(En("style",{children:[zl]})),Vt((()=>{const t=r.ExistingEmergencyContacts;switch(t.tag){case 1:default:return Jt(En("div",{children:["Please wait..."]}));case 2:return en(Jt(u),Vt((()=>en(Jt(function(e,t,n,r){let o;return En("div",A(ut([["className",Ie(" ",["py-3","mb-2"])],(o=Xt(Vt((()=>{let o;const i="EmergencyContact";return en(Jt(En("div",A(ut([["className",Ie(" ",ql)],(o=Xt(Vt((()=>{const o="Full name",s=`${i}.Full name`;return en(Jt(ec(o,e.FullName,T(2,O(2,t,[s])),ut([new Ll(0),cc(Rs(e.FullName))]),yi(s,o,n),(e=>{r(new _c(0,(t=>new pc(e,t.Relationship,t.PhoneNumber,t.Email,t.StreetAddress,t.Suburb,t.State,t.Postcode))))}),new Wl(1),new Zl(0,"full-name"),[])),Vt((()=>{const o="Relationship",s=`${i}.Relationship`;return Jt(sc(o,e.Relationship,hc(),T(2,O(2,t,[s])),ut([new Ll(0),cc(ls(new ks(0),e.Relationship))]),yi(s,o,n),(e=>{r(new _c(0,(t=>new pc(t.FullName,mc(e),t.PhoneNumber,t.Email,t.StreetAddress,t.Suburb,t.State,t.Postcode))))}),new Wl(1),new Zl(0,"relationship")))})))}))),["children",Yr.Children.toArray(Array.from(o))])])))),Vt((()=>{let o;return en(Jt(En("div",A(ut([["className",Ie(" ",ql)],(o=Xt(Vt((()=>{const o="Phone number",s=`${i}.Phone number`;return en(Jt(uc(o,e.PhoneNumber,T(2,O(2,t,[s])),ut([new Ll(0),cc(lc(e.PhoneNumber))]),yi(s,o,n),(e=>{r(new _c(0,(t=>new pc(t.FullName,t.Relationship,e,t.Email,t.StreetAddress,t.Suburb,t.State,t.Postcode))))}),new Wl(1),new Zl(0,"phone"))),Vt((()=>{const o="Email",s=`${i}.Email`;return Jt(ec(o,e.Email,T(2,O(2,t,[s])),Ke(cc(function(e){return null!=e?Fs(Ke(Us),e):new yt(0,void 0)}(mi(e.Email)))),yi(s,o,n),(e=>{r(new _c(0,(t=>new pc(t.FullName,t.Relationship,t.PhoneNumber,e,t.StreetAddress,t.Suburb,t.State,t.Postcode))))}),new Wl(1),new Zl(0,"email"),[]))})))}))),["children",Yr.Children.toArray(Array.from(o))])])))),Vt((()=>{let o;return Jt(En("div",A(ut([["className",Ie(" ",ql)],(o=Xt(Vt((()=>{const o="Street address",s=`${i}.Street address`;return en(Jt(ec(o,e.StreetAddress,T(2,O(2,t,[s])),ut([new Ll(0),cc(Gs(e.StreetAddress))]),yi(s,o,n),(e=>{r(new _c(0,(t=>new pc(t.FullName,t.Relationship,t.PhoneNumber,t.Email,e,t.Suburb,t.State,t.Postcode))))}),new Wl(1),new Zl(0,"street-address"),[["autoComplete","street-address"]])),Vt((()=>{const o="Town/Suburb",s=`${i}.Town/Suburb`;return en(Jt(ec(o,e.Suburb,T(2,O(2,t,[s])),ut([new Ll(0),cc(Ls(e.Suburb))]),yi(s,o,n),(e=>{r(new _c(0,(t=>new pc(t.FullName,t.Relationship,t.PhoneNumber,t.Email,t.StreetAddress,e,t.State,t.Postcode))))}),new Wl(1),new Zl(0,"town"),[["autoComplete","address-level2"]])),Vt((()=>{const o="State",s=`${i}.State`;return en(Jt(sc(o,e.State,bs(),T(2,O(2,t,[s])),ut([new Ll(0),cc(ls(new ks(0),e.State))]),yi(s,o,n),(e=>{r(new _c(0,(t=>new pc(t.FullName,t.Relationship,t.PhoneNumber,t.Email,t.StreetAddress,t.Suburb,Cs(e),t.Postcode))))}),new Wl(1),new Zl(0,"state"))),Vt((()=>{const o="Postcode",s=`${i}.Postcode`;return Jt(ec(o,e.Postcode,T(2,O(2,t,[s])),ut([new Ll(0),cc(Bs(e.Postcode))]),yi(s,o,n),(e=>{r(new _c(0,(t=>new pc(t.FullName,t.Relationship,t.PhoneNumber,t.Email,t.StreetAddress,t.Suburb,t.State,e))))}),new Wl(1),new Zl(0,"postcode"),[["inputMode","numeric"],["autoComplete","postal-code"]]))})))})))})))}))),["children",Yr.Children.toArray(Array.from(o))])]))))})))})))}))),["children",Yr.Children.toArray(Array.from(o))])])))}(r.FormModel,T(3,i[0]),s,o)),Vt((()=>en(null!=r.CurrentAlert?Jt(En(tl,{alert:F(r.CurrentAlert),hideAlert:()=>{o(new _c(5))}})):Yt(),Vt((()=>Jt(ac((()=>{i[1]()?o(new _c(2,e.backendUrl,e.accessToken,(()=>{rn((e=>{$c("emergency-contacts",e)}),G(R(document.querySelector("apollo-emergency-contacts-app"))))}))):o(new _c(4,new Xa(1,"There are some errors on the form, please correct them.")))}),r.SaveStatus,Qe(s))))))))))));case 3:return en(Jt(u),Vt((()=>{let e;return Jt((e=t.fields[0].message,En("p",{children:[e]})))})))}})))))),["children",Yr.Children.toArray(Array.from(t))])])))}wi((e=>En(fc,e)),"apollo-personal-details-app"),wi((e=>En(Cc,e)),"apollo-emergency-contacts-app")},184:e=>{e.exports="data:image/svg+xml;charset=utf-8,%3Csvg viewBox=%270 0 16 16%27 fill=%27%23fff%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Ccircle cx=%278%27 cy=%278%27 r=%273%27/%3E%3C/svg%3E"},254:e=>{e.exports="data:image/svg+xml;charset=utf-8,%3Csvg viewBox=%270 0 16 16%27 fill=%27%23fff%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath d=%27M12.207 4.793a1 1 0 0 1 0 1.414l-5 5a1 1 0 0 1-1.414 0l-2-2a1 1 0 0 1 1.414-1.414L6.5 9.086l4.293-4.293a1 1 0 0 1 1.414 0z%27/%3E%3C/svg%3E"},421:e=>{e.exports="data:image/svg+xml;charset=utf-8,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 fill=%27none%27 viewBox=%270 0 16 16%27%3E%3Cpath stroke=%27%23fff%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27 stroke-width=%272%27 d=%27M4 8h8%27/%3E%3C/svg%3E"},578:e=>{e.exports="data:image/svg+xml;charset=utf-8,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 fill=%27none%27 viewBox=%270 0 20 20%27%3E%3Cpath stroke=%27%236b7280%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27 stroke-width=%271.5%27 d=%27m6 8 4 4 4-4%27/%3E%3C/svg%3E"}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={id:r,exports:{}};return e[r](i,i.exports,n),i.exports}n.m=e,n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.b=document.baseURI||self.location.href,n(89),n(118)})();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flarehr/apollo-personal-details-app",
3
- "version": "3.40.25",
3
+ "version": "3.41.26",
4
4
  "description": "Flare Personal Details Component",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "files": [
package/README.md DELETED
@@ -1,82 +0,0 @@
1
- # Basic.Profile.UI.PersonalDetails
2
-
3
- ## Installation
4
-
5
- To install the project's dependencies, run the following commands:
6
-
7
- ```bash
8
- dotnet tool restore
9
- dotnet restore
10
- npm install
11
- ```
12
-
13
- ## Development
14
-
15
- ### Configuring the backend
16
-
17
- The settings file, `local.settings.json`, allows you to configure the backend URL that you would like the web app to point to.</br></br>
18
-
19
- #### Local Development
20
- Use the following example to point to the Basic.Profile Api if you are running it locally.
21
-
22
- ```json
23
- {
24
- "backendUrl": "http://localhost:7071",
25
- "headers" : {
26
- "X-PROFILE-ID": "{Put Profile Id here}"
27
- }
28
- }
29
- ```
30
-
31
- This points the web app to `http://localhost:7071` and injects the `X-PROFILE-ID` header into the HTTP request.
32
-
33
- > NOTE: You must set a Profile ID to one you have created in your local database.
34
-
35
- </br>
36
-
37
- #### Using the AutoDev environment
38
- If you want to run the UI locally but ghave it conect to the Basic.Profile API running in the AutoDev environment you can use the following example:
39
-
40
- ```json
41
- {
42
- "backendUrl": "https://autodev-partner.flarehr.com",
43
- "headers": {
44
- "Authorization": "Bearer eyJhbGciO..."
45
- }
46
- }
47
- ```
48
- This points the web app to `https://autodev-partner.flarehr.com` and replaces the `Authorization` header in the HTTP request.
49
-
50
- A common approach to obtaining the Bearer token is to use our testing tool [Acme Partner App](https://apollo-partner.web.app/#/dashboard/workflows), and use your web browser's dev tools to obtain the token.
51
-
52
- The token is associated to a profile, so there is no need to add the `X-PROFILE-ID` header like you do for purely local development.</br></br>
53
-
54
- #### Open Browser on Application Start
55
-
56
- If you would like a browser to open and load the page when the app starts, you can add the `openBrowser` setting with a value of `true`. The absence of this value will default the value to false.
57
-
58
- ```json
59
- {
60
- "backendUrl": "http://localhost:7071",
61
- "headers" : {
62
- "X-PROFILE-ID": "{Put Profile Id here}"
63
- },
64
- "openBrowser": true
65
- }
66
- ```
67
-
68
- ### Starting the Development Server
69
-
70
- To start the development server, run the following commands:
71
-
72
- ```bash
73
- npm start
74
- ```
75
-
76
- ## Build
77
-
78
- To build the project, run the following commands:
79
-
80
- ```bash
81
- npm run build
82
- ```