@flarehr/tfn-declaration-app 1.33.1 → 1.36.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +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),a=n(667),u=n.n(a),l=new URL(n(578),n.b),c=new URL(n(254),n.b),f=new URL(n(184),n.b),$=new URL(n(421),n.b),d=s()(o()),h=u()(l),p=u()(c),w=u()(f),m=u()($);d.push([e.id,'/*! tailwindcss v3.1.6 | 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%;font-weight:inherit;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::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%}[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::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;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;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;print-color-adjust:exact;-webkit-user-select:none;-moz-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("+p+")}[type=radio]:checked{background-image:url("+w+")}[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("+m+");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 solid ButtonText;outline:1px auto -webkit-focus-ring-color}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color: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: }::-webkit-backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color: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: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color: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: }.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.fixed{position:fixed}.relative{position:relative}.z-10{z-index:10}.my-8{margin-bottom:2rem;margin-top:2rem}.mx-auto{margin-left:auto;margin-right:auto}.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}.mt-5{margin-top:1.25rem}.mt-4{margin-top:1rem}.mb-8{margin-bottom:2rem}.mt-8{margin-top:2rem}.ml-auto{margin-left:auto}.mt-2{margin-top:.5rem}.ml-3{margin-left:.75rem}.mt-7{margin-top:1.75rem}.ml-6{margin-left:1.5rem}.-mt-2{margin-top:-.5rem}.mt-1{margin-top:.25rem}.-ml-px{margin-left:-1px}.block{display:block}.flex{display:flex}.inline-flex{display:inline-flex}.hidden{display:none}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-4{height:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-full{width:100%}.w-4{width:1rem}.w-1\\/2{width:50%}.w-auto{width:auto}.max-w-320{max-width:320px}.max-w-560{max-width:560px}.flex-grow{flex-grow:1}.flex-col{flex-direction:column}.items-start{align-items:flex-start}.items-center{align-items:center}.items-stretch{align-items:stretch}.justify-between{justify-content:space-between}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.5rem*var(--tw-space-y-reverse));margin-top:calc(.5rem*(1 - var(--tw-space-y-reverse)))}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.5rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.5rem*var(--tw-space-x-reverse))}.space-x-0\\.5>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.125rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.125rem*var(--tw-space-x-reverse))}.space-x-0>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(0px*(1 - var(--tw-space-x-reverse)));margin-right:calc(0px*var(--tw-space-x-reverse))}.self-start{align-self:flex-start}.whitespace-nowrap{white-space:nowrap}.rounded-md{border-radius:.375rem}.rounded{border-radius:.25rem}.rounded-lg{border-radius:.5rem}.rounded-none{border-radius:0}.rounded-r-md{border-bottom-right-radius:.375rem;border-top-right-radius:.375rem}.rounded-l-md{border-bottom-left-radius:.375rem;border-top-left-radius:.375rem}.border{border-width:1px}.border-transparent{border-color:transparent}.border-gray-300{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity))}.border-gray-200{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.border-red-300{--tw-border-opacity:1;border-color:rgb(252 165 165/var(--tw-border-opacity))}.bg-primary-base{background-color:var(--fl-color-primary)}.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-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-gray-50{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity))}.bg-gray-100{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.p-4{padding:1rem}.p-1\\.5{padding:.375rem}.p-1{padding:.25rem}.p-0\\.5{padding:.125rem}.p-0{padding:0}.px-10{padding-left:2.5rem;padding-right:2.5rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.px-3\\.5{padding-left:.875rem;padding-right:.875rem}.px-3{padding-left:.75rem;padding-right:.75rem}.py-4{padding-bottom:1rem;padding-top:1rem}.px-4{padding-left:1rem;padding-right:1rem}.px-8{padding-left:2rem;padding-right:2rem}.pr-2{padding-right:.5rem}.pb-4{padding-bottom:1rem}.pt-1{padding-top:.25rem}.pr-10{padding-right:2.5rem}.pl-4{padding-left:1rem}.text-left{text-align:left}.text-center{text-align:center}.font-inter{font-family:Inter,sans-serif}.text-sm{font-size:.875rem;line-height:1.25rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-medium{font-weight:500}.font-bold{font-weight:700}.font-normal{font-weight:400}.leading-5{line-height:1.25rem}.leading-4{line-height:1rem}.leading-3{line-height:.75rem}.text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.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-primary-base{color:var(--fl-color-primary)}.text-gray-900{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity))}.text-red-900{--tw-text-opacity:1;color:rgb(127 29 29/var(--tw-text-opacity))}.text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.placeholder-red-300::-moz-placeholder{--tw-placeholder-opacity:1;color:rgb(252 165 165/var(--tw-placeholder-opacity))}.placeholder-red-300::placeholder{--tw-placeholder-opacity:1;color:rgb(252 165 165/var(--tw-placeholder-opacity))}.shadow-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)}.shadow-none{--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.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-primary-hover:hover{background-color:var(--fl-color-primary-hover)}.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-gray-100:hover{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.focus\\:z-20:focus{z-index:20}.focus\\:z-10:focus{z-index:10}.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)}.focus\\:ring-1:focus,.focus\\:ring-2:focus{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\\:ring-1: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(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.focus\\:ring-primary-focus:focus{--tw-ring-color:var(--fl-color-primary-focus)}.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-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}.group:hover .group-hover\\:text-primary-hover{color:var(--fl-color-primary-hover)}@media (min-width:640px){.sm\\:mb-12{margin-bottom:3rem}.sm\\:mt-20{margin-top:5rem}}",""]);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 a=0;a<this.length;a++){var u=this[a][0];null!=u&&(s[u]=!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]}},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,(()=>{var e,t,r,o,i,s,a={},u=[],l=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function c(e,t){for(var n in t)e[n]=t[n];return e}function f(e){var t=e.parentNode;t&&t.removeChild(e)}function $(t,n,r){var o,i,s,a={};for(s in n)"key"==s?o=n[s]:"ref"==s?i=n[s]:a[s]=n[s];if(arguments.length>2&&(a.children=arguments.length>3?e.call(arguments,2):r),"function"==typeof t&&null!=t.defaultProps)for(s in t.defaultProps)void 0===a[s]&&(a[s]=t.defaultProps[s]);return d(t,a,o,i,null)}function d(e,n,o,i,s){var a={type:e,props:n,key:o,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==s?++r:s};return null==s&&null!=t.vnode&&t.vnode(a),a}function h(e){return e.children}function p(e,t){this.props=e,this.context=t}function w(e,t){if(null==t)return e.__?w(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?w(e):null}function m(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 m(e)}}function g(e){(!e.__d&&(e.__d=!0)&&o.push(e)&&!y.__r++||i!==t.debounceRendering)&&((i=t.debounceRendering)||setTimeout)(y)}function y(){for(var e;y.__r=o.length;)e=o.sort((function(e,t){return e.__v.__b-t.__v.__b})),o=[],e.some((function(e){var t,n,r,o,i,s;e.__d&&(i=(o=(t=e).__v).__e,(s=t.__P)&&(n=[],(r=c({},o)).__v=o.__v+1,k(s,o,r,t.__n,void 0!==s.ownerSVGElement,null!=o.__h?[i]:null,n,null==i?w(o):i,o.__h),I(n,o),o.__e!=i&&m(o)))}))}function v(e,t,n,r,o,i,s,l,c,f){var $,p,m,g,y,v,_,S=r&&r.__k||u,C=S.length;for(n.__k=[],$=0;$<t.length;$++)if(null!=(g=n.__k[$]=null==(g=t[$])||"boolean"==typeof g?null:"string"==typeof g||"number"==typeof g||"bigint"==typeof g?d(null,g,null,null,g):Array.isArray(g)?d(h,{children:g},null,null,null):g.__b>0?d(g.type,g.props,g.key,null,g.__v):g)){if(g.__=n,g.__b=n.__b+1,null===(m=S[$])||m&&g.key==m.key&&g.type===m.type)S[$]=void 0;else for(p=0;p<C;p++){if((m=S[p])&&g.key==m.key&&g.type===m.type){S[p]=void 0;break}m=null}k(e,g,m=m||a,o,i,s,l,c,f),y=g.__e,(p=g.ref)&&m.ref!=p&&(_||(_=[]),m.ref&&_.push(m.ref,null,g),_.push(p,g.__c||y,g)),null!=y?(null==v&&(v=y),"function"==typeof g.type&&g.__k===m.__k?g.__d=c=b(g,c,e):c=x(e,g,m,S,y,c),"function"==typeof n.type&&(n.__d=c)):c&&m.__e==c&&c.parentNode!=e&&(c=w(m))}for(n.__e=v,$=C;$--;)null!=S[$]&&("function"==typeof n.type&&null!=S[$].__e&&S[$].__e==n.__d&&(n.__d=w(r,$+1)),M(S[$],S[$]));if(_)for($=0;$<_.length;$++)N(_[$],_[++$],_[++$])}function b(e,t,n){for(var r,o=e.__k,i=0;o&&i<o.length;i++)(r=o[i])&&(r.__=e,t="function"==typeof r.type?b(r,t,n):x(n,r,r,o,r.__e,t));return t}function _(e,t){return t=t||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some((function(e){_(e,t)})):t.push(e)),t}function x(e,t,n,r,o,i){var s,a,u;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(a=i,u=0;(a=a.nextSibling)&&u<r.length;u+=2)if(a==o)break e;e.insertBefore(o,i),s=i}return void 0!==s?s:o.nextSibling}function S(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||l.test(t)?n:n+"px"}function C(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||S(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||S(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?T:E,i):e.removeEventListener(t,i?T:E,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 E(e){this.l[e.type+!1](t.event?t.event(e):e)}function T(e){this.l[e.type+!0](t.event?t.event(e):e)}function k(e,n,r,o,i,s,a,u,l){var f,$,d,w,m,g,y,b,_,x,S,C,E,T=n.type;if(void 0!==n.constructor)return null;null!=r.__h&&(l=r.__h,u=n.__e=r.__e,n.__h=null,s=[u]),(f=t.__b)&&f(n);try{e:if("function"==typeof T){if(b=n.props,_=(f=T.contextType)&&o[f.__c],x=f?_?_.props.value:f.__:o,r.__c?y=($=n.__c=r.__c).__=$.__E:("prototype"in T&&T.prototype.render?n.__c=$=new T(b,x):(n.__c=$=new p(b,x),$.constructor=T,$.render=R),_&&_.sub($),$.props=b,$.state||($.state={}),$.context=x,$.__n=o,d=$.__d=!0,$.__h=[]),null==$.__s&&($.__s=$.state),null!=T.getDerivedStateFromProps&&($.__s==$.state&&($.__s=c({},$.__s)),c($.__s,T.getDerivedStateFromProps(b,$.__s))),w=$.props,m=$.state,d)null==T.getDerivedStateFromProps&&null!=$.componentWillMount&&$.componentWillMount(),null!=$.componentDidMount&&$.__h.push($.componentDidMount);else{if(null==T.getDerivedStateFromProps&&b!==w&&null!=$.componentWillReceiveProps&&$.componentWillReceiveProps(b,x),!$.__e&&null!=$.shouldComponentUpdate&&!1===$.shouldComponentUpdate(b,$.__s,x)||n.__v===r.__v){$.props=b,$.state=$.__s,n.__v!==r.__v&&($.__d=!1),$.__v=n,n.__e=r.__e,n.__k=r.__k,n.__k.forEach((function(e){e&&(e.__=n)})),$.__h.length&&a.push($);break e}null!=$.componentWillUpdate&&$.componentWillUpdate(b,$.__s,x),null!=$.componentDidUpdate&&$.__h.push((function(){$.componentDidUpdate(w,m,g)}))}if($.context=x,$.props=b,$.__v=n,$.__P=e,S=t.__r,C=0,"prototype"in T&&T.prototype.render)$.state=$.__s,$.__d=!1,S&&S(n),f=$.render($.props,$.state,$.context);else do{$.__d=!1,S&&S(n),f=$.render($.props,$.state,$.context),$.state=$.__s}while($.__d&&++C<25);$.state=$.__s,null!=$.getChildContext&&(o=c(c({},o),$.getChildContext())),d||null==$.getSnapshotBeforeUpdate||(g=$.getSnapshotBeforeUpdate(w,m)),E=null!=f&&f.type===h&&null==f.key?f.props.children:f,v(e,Array.isArray(E)?E:[E],n,r,o,i,s,a,u,l),$.base=n.__e,n.__h=null,$.__h.length&&a.push($),y&&($.__E=$.__=null),$.__e=!1}else null==s&&n.__v===r.__v?(n.__k=r.__k,n.__e=r.__e):n.__e=A(r.__e,n,r,o,i,s,a,l);(f=t.diffed)&&f(n)}catch(e){n.__v=null,(l||null!=s)&&(n.__e=u,n.__h=!!l,s[s.indexOf(u)]=null),t.__e(e,n,r)}}function I(e,n){t.__c&&t.__c(n,e),e.some((function(n){try{e=n.__h,n.__h=[],e.some((function(e){e.call(n)}))}catch(e){t.__e(e,n.__v)}}))}function A(t,n,r,o,i,s,u,l){var c,$,d,h=r.props,p=n.props,m=n.type,g=0;if("svg"===m&&(i=!0),null!=s)for(;g<s.length;g++)if((c=s[g])&&"setAttribute"in c==!!m&&(m?c.localName===m:3===c.nodeType)){t=c,s[g]=null;break}if(null==t){if(null===m)return document.createTextNode(p);t=i?document.createElementNS("http://www.w3.org/2000/svg",m):document.createElement(m,p.is&&p),s=null,l=!1}if(null===m)h===p||l&&t.data===p||(t.data=p);else{if(s=s&&e.call(t.childNodes),$=(h=r.props||a).dangerouslySetInnerHTML,d=p.dangerouslySetInnerHTML,!l){if(null!=s)for(h={},g=0;g<t.attributes.length;g++)h[t.attributes[g].name]=t.attributes[g].value;(d||$)&&(d&&($&&d.__html==$.__html||d.__html===t.innerHTML)||(t.innerHTML=d&&d.__html||""))}if(function(e,t,n,r,o){var i;for(i in n)"children"===i||"key"===i||i in t||C(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]||C(e,i,t[i],n[i],r)}(t,p,h,i,l),d)n.__k=[];else if(g=n.props.children,v(t,Array.isArray(g)?g:[g],n,r,o,i&&"foreignObject"!==m,s,u,s?s[0]:r.__k&&w(r,0),l),null!=s)for(g=s.length;g--;)null!=s[g]&&f(s[g]);l||("value"in p&&void 0!==(g=p.value)&&(g!==t.value||"progress"===m&&!g||"option"===m&&g!==h.value)&&C(t,"value",g,h.value,!1),"checked"in p&&void 0!==(g=p.checked)&&g!==t.checked&&C(t,"checked",g,h.checked,!1))}return t}function N(e,n,r){try{"function"==typeof e?e(n):e.current=n}catch(e){t.__e(e,r)}}function M(e,n,r){var o,i;if(t.unmount&&t.unmount(e),(o=e.ref)&&(o.current&&o.current!==e.__e||N(o,null,n)),null!=(o=e.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(e){t.__e(e,n)}o.base=o.__P=null}if(o=e.__k)for(i=0;i<o.length;i++)o[i]&&M(o[i],n,"function"!=typeof e.type);r||null==e.__e||f(e.__e),e.__e=e.__d=void 0}function R(e,t,n){return this.constructor(e,n)}function D(n,r,o){var i,s,u;t.__&&t.__(n,r),s=(i="function"==typeof o)?null:o&&o.__k||r.__k,u=[],k(r,n=(!i&&o||r).__k=$(h,null,[n]),s||a,a,void 0!==r.ownerSVGElement,!i&&o?[o]:s?null:r.firstChild?e.call(r.childNodes):null,u,!i&&o?o:s?s.__e:r.firstChild,i),I(u,n)}function G(e,t){D(e,t,G)}function B(t,n,r){var o,i,s,a=c({},t.props);for(s in n)"key"==s?o=n[s]:"ref"==s?i=n[s]:a[s]=n[s];return arguments.length>2&&(a.children=arguments.length>3?e.call(arguments,2):r),d(t.type,a,o||t.key,i||t.ref,null)}e=u.slice,t={__e:function(e,t,n,r){for(var o,i,s;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(e)),s=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,r||{}),s=o.__d),s)return o.__E=o}catch(t){e=t}throw e}},r=0,p.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=c({},this.state),"function"==typeof e&&(e=e(c({},n),this.props)),e&&c(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),g(this))},p.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),g(this))},p.prototype.render=h,o=[],y.__r=0,s=0;var P,O,F,L,U=0,V=[],H=[],j=t.__b,z=t.__r,W=t.diffed,Y=t.__c,K=t.unmount;function q(e,n){t.__h&&t.__h(O,e,U||n),U=0;var r=O.__H||(O.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({__V:H}),r.__[e]}function Z(e){return U=1,J(se,e)}function J(e,t,n){var r=q(P++,2);return r.t=e,r.__c||(r.__=[n?n(t):se(void 0,t),function(e){var t=r.t(r.__[0],e);r.__[0]!==t&&(r.__=[t,r.__[1]],r.__c.setState({}))}],r.__c=O),r.__}function X(e,n){var r=q(P++,3);!t.__s&&ie(r.__H,n)&&(r.__=e,r.u=n,O.__H.__h.push(r))}function Q(e,n){var r=q(P++,4);!t.__s&&ie(r.__H,n)&&(r.__=e,r.u=n,O.__h.push(r))}function ee(e,t){var n=q(P++,7);return ie(n.__H,t)?(n.__V=e(),n.u=t,n.__h=e,n.__V):n.__}function te(){for(var e;e=V.shift();)if(e.__P)try{e.__H.__h.forEach(re),e.__H.__h.forEach(oe),e.__H.__h=[]}catch(n){e.__H.__h=[],t.__e(n,e.__v)}}t.__b=function(e){O=null,j&&j(e)},t.__r=function(e){z&&z(e),P=0;var t=(O=e.__c).__H;t&&(F===O?(t.__h=[],O.__h=[],t.__.forEach((function(e){e.__V=H,e.u=void 0}))):(t.__h.forEach(re),t.__h.forEach(oe),t.__h=[])),F=O},t.diffed=function(e){W&&W(e);var n=e.__c;n&&n.__H&&(n.__H.__h.length&&(1!==V.push(n)&&L===t.requestAnimationFrame||((L=t.requestAnimationFrame)||function(e){var t,n=function(){clearTimeout(r),ne&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);ne&&(t=requestAnimationFrame(n))})(te)),n.__H.__.forEach((function(e){e.u&&(e.__H=e.u),e.__V!==H&&(e.__=e.__V),e.u=void 0,e.__V=H}))),F=O=null},t.__c=function(e,n){n.some((function(e){try{e.__h.forEach(re),e.__h=e.__h.filter((function(e){return!e.__||oe(e)}))}catch(r){n.some((function(e){e.__h&&(e.__h=[])})),n=[],t.__e(r,e.__v)}})),Y&&Y(e,n)},t.unmount=function(e){K&&K(e);var n,r=e.__c;r&&r.__H&&(r.__H.__.forEach((function(e){try{re(e)}catch(e){n=e}})),n&&t.__e(n,r.__v))};var ne="function"==typeof requestAnimationFrame;function re(e){var t=O,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),O=t}function oe(e){var t=O;e.__c=e.__(),O=t}function ie(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function se(e,t){return"function"==typeof t?t(e):t}function ae(e,t){for(var n in t)e[n]=t[n];return e}function ue(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 le(e){this.props=e}(le.prototype=new p).isPureReactComponent=!0,le.prototype.shouldComponentUpdate=function(e,t){return ue(this.props,e)||ue(this.state,t)};var ce=t.__b;t.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),ce&&ce(e)};var fe="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911,$e=function(e,t){return null==e?null:_(_(e).map(t))},de={map:$e,forEach:$e,count:function(e){return e?_(e).length:0},only:function(e){var t=_(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:_},he=t.__e;t.__e=function(e,t,n,r){if(e.then)for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t);he(e,t,n,r)};var pe=t.unmount;function we(){this.__u=0,this.t=null,this.__b=null}function me(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function ge(){this.u=null,this.o=null}t.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&!0===e.__h&&(e.type=null),pe&&pe(e)},(we.prototype=new p).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var o=me(r.__v),i=!1,s=function(){i||(i=!0,n.__R=null,o?o(a):a())};n.__R=s;var a=function(){if(!--r.__u){if(r.state.__a){var e=r.state.__a;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({__a:r.__b=null});t=r.t.pop();)t.forceUpdate()}},u=!0===t.__h;r.__u++||u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(s,s)},we.prototype.componentWillUnmount=function(){this.t=[]},we.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=ae({},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.__a&&$(h,null,e.fallback);return o&&(o.__h=null),[$(h,null,t.__a?null:e.children),o]};var ye=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 ve(e){return this.getChildContext=function(){return e.context},e.children}function be(e){var t=this,n=e.i;t.componentWillUnmount=function(){D(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)}}),D($(ve,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}(ge.prototype=new p).__a=function(e){var t=this,n=me(t.__v),r=t.o.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),ye(t,e,r)):o()};n?n(i):i()}},ge.prototype.render=function(e){this.u=null,this.o=new Map;var t=_(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},ge.prototype.componentDidUpdate=ge.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){ye(e,n,t)}))};var _e="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,xe=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|shape|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Se="undefined"!=typeof document,Ce=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(e)};function Ee(e,t,n){return null==t.__k&&(t.textContent=""),D(e,t),"function"==typeof n&&n(),e?e.__c:null}p.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(p.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var Te=t.event;function ke(){}function Ie(){return this.cancelBubble}function Ae(){return this.defaultPrevented}t.event=function(e){return Te&&(e=Te(e)),e.persist=ke,e.isPropagationStopped=Ie,e.isDefaultPrevented=Ae,e.nativeEvent=e};var Ne,Me={configurable:!0,get:function(){return this.class}},Re=t.vnode;t.vnode=function(e){var t=e.type,n=e.props,r=n;if("string"==typeof t){var o=-1===t.indexOf("-");for(var i in r={},n){var s=n[i];Se&&"children"===i&&"noscript"===t||"value"===i&&"defaultValue"in n&&null==s||("defaultValue"===i&&"value"in n&&null==n.value?i="value":"download"===i&&!0===s?s="":/ondoubleclick/i.test(i)?i="ondblclick":/^onchange(textarea|input)/i.test(i+t)&&!Ce(n.type)?i="oninput":/^onfocus$/i.test(i)?i="onfocusin":/^onblur$/i.test(i)?i="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(i)?i=i.toLowerCase():o&&xe.test(i)?i=i.replace(/[A-Z0-9]/,"-$&").toLowerCase():null===s&&(s=void 0),/^oninput$/i.test(i)&&(i=i.toLowerCase(),r[i]&&(i="oninputCapture")),r[i]=s)}"select"==t&&r.multiple&&Array.isArray(r.value)&&(r.value=_(n.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==t&&null!=r.defaultValue&&(r.value=_(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,n.class!=n.className&&(Me.enumerable="className"in n,null!=n.className&&(r.class=n.className),Object.defineProperty(r,"className",Me))}e.$$typeof=_e,Re&&Re(e)};var De=t.__r;t.__r=function(e){De&&De(e),Ne=e.__c};var Ge={ReactCurrentDispatcher:{current:{readContext:function(e){return Ne.__n[e.__c].props.value}}}};function Be(e){return!!e&&e.$$typeof===_e}function Pe(e){e()}const Oe={useState:Z,useReducer:J,useEffect:X,useLayoutEffect:Q,useInsertionEffect:Q,useTransition:function(){return[!1,Pe]},useDeferredValue:function(e){return e},useSyncExternalStore:function(e,t){var n=Z(t),r=n[0],o=n[1];return X((function(){return e((function(){o(t())}))}),[e,t]),r},startTransition:Pe,useRef:function(e){return U=5,ee((function(){return{current:e}}),[])},useImperativeHandle:function(e,t,n){U=6,Q((function(){return"function"==typeof e?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0}),null==n?n:n.concat(e))},useMemo:ee,useCallback:function(e,t){return U=8,ee((function(){return e}),t)},useContext:function(e){var t=O.context[e.__c],n=q(P++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(O)),t.props.value):e.__},useDebugValue:function(e,n){t.useDebugValue&&t.useDebugValue(n?n(e):e)},version:"17.0.2",Children:de,render:Ee,hydrate:function(e,t,n){return G(e,t),"function"==typeof n&&n(),e?e.__c:null},unmountComponentAtNode:function(e){return!!e.__k&&(D(null,e),!0)},createPortal:function(e,t){var n=$(be,{__v:e,i:t});return n.containerInfo=t,n},createElement:$,createContext:function(e,t){var n={__c:t="__cC"+s++,__: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(g)},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 $.bind(null,e)},cloneElement:function(e){return Be(e)?B.apply(null,arguments):e},createRef:function(){return{current:null}},Fragment:h,isValidElement:Be,findDOMNode:function(e){return e&&(e.base||1===e.nodeType&&e)||null},Component:p,PureComponent:le,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:ue(this.props,e)}function r(t){return this.shouldComponentUpdate=n,$(e,t)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r},forwardRef:function(e){function t(t){var n=ae({},t);return delete n.ref,e(n,t.ref||null)}return t.$$typeof=fe,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:h,Suspense:we,SuspenseList:ge,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 $(n,o)}return o.displayName="Lazy",o.__f=!0,o},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Ge};function Fe(){return $("div",{},"Please wait...")}function Le(e){return Array.isArray(e)||ArrayBuffer.isView(e)}function Ue(e){return null!=e&&"function"==typeof e.Dispose}function Ve(e){Ue(e)&&e.Dispose()}function He(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 je{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 ze(e){return"function"==typeof e.GetEnumerator?e.GetEnumerator():new je(e[Symbol.iterator]())}function We(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 Ye{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 Ke(e,t){let n=e.toString(10);for(;n.length<t;)n="0"+n;return n}function qe(e){const t=e;return"number"==typeof t.offset?t.offset:1===e.kind?0:-6e4*e.getTimezoneOffset()}function Ze(e,t){return(e=e<0&&null!=t&&10!==t?4294967295+e+1:e).toString(t)}class Je{static id(e){return Je.idMap.has(e)||Je.idMap.set(e,++Je.count),Je.idMap.get(e)}}function Xe(e){let t=0,n=5381;const r=e.length;for(;t<r;)n=33*n^e.charCodeAt(t++);return n}function Qe(e){return 2654435761*e|0}function et(e){return 0===e.length?0:e.reduce(((e,t)=>(e<<5)+e^t))}function tt(e){var t;if(null==e)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return Qe(e);case"string":return Xe(e);default:if(function(e){return"function"==typeof e.GetHashCode}(e))return e.GetHashCode();if(Le(e))return function(e){const t=e.length,n=new Array(t);for(let r=0;r<t;r++)n[r]=tt(e[r]);return et(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=>tt(e)));return et(t)}return Qe(Je.id(e))}}function nt(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 rt(e,t){return nt(e,t,ot)}function ot(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):Le(e)?Le(t)&&rt(e,t):e instanceof Date?t instanceof Date&&0===it(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]||!ot(e[n[o]],t[r[o]]))return!1;return!0}(e,t)))}function it(e,t){let n,r;return"offset"in e&&"offset"in t?(n=e.getTime(),r=t.getTime()):(n=e.getTime()+qe(e),r=t.getTime()+qe(t)),n===r?0:n<r?-1:1}function st(e,t){return e===t?0:e<t?-1:1}function at(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,ut)}function ut(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):Le(e)?Le(t)?at(e,t):-1:e instanceof Date?t instanceof Date?it(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=ut(e[s],t[s]),0!==i)return i}return 0}(e,t):-1}function lt(e,t,n){return e(t,n)>0?t:n}function ct(e){const t={};for(const n of e)t[n[0]]=n[1];return t}Je.idMap=new WeakMap,Je.count=0;const ft=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[ft]=t,n}function dt(e,t,n){return r=>1===t?n(...e.concat([r])):dt(e.concat([r]),t-1,n)}function ht(e,t){return null==t||1===t.length?t:ft in t?t[ft]:dt([],e,t)}function pt(e,t,n){if(null!=t){if(ft in t){t=t[ft];for(let e=0;e<n.length;e++)t=t(n[e]);return t}return dt(n,e,t)}}function wt(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+=wt(r);else{if(100===t){n+="; ...";break}n+="; "+wt(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+" = "+wt(n,t+1))).join("\n ")+" }":null!==(r=null==o?void 0:o.name)&&void 0!==r?r:""}}return String(e)}class mt{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=wt(t[0]),r=n.indexOf(" ")>=0):n=t.map((e=>wt(e))).join(", "),e+(r?" (":" ")+n+(r?")":"")}}(this.name,this.fields)}GetHashCode(){const e=this.fields.map((e=>tt(e)));return e.splice(0,0,Qe(this.tag)),et(e)}Equals(e){return this===e||!!He(this,e)&&this.tag===e.tag&&rt(this.fields,e.fields)}CompareTo(e){return this===e?0:He(this,e)?this.tag===e.tag?at(this.fields,e.fields):this.tag<e.tag?-1:1:-1}}class gt{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+" = "+wt(t))).join("\n ")+" }"}(this)}GetHashCode(){return function(e){const t=Object.values(e).map((e=>tt(e)));return et(t)}(this)}Equals(e){return function(e,t){if(e===t)return!0;if(He(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++)if(!ot(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(He(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++){const o=ut(e[n[r]],t[n[r]]);if(0!==o)return o}return 0}return-1}(this,e)}}class yt{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 vt(e){return function(e){return e instanceof class{constructor(e){this.message=e}}||e instanceof Error}(e)?e:new Error(String(e))}var bt=n(118);function _t(e){const t=e<0,n=(e=Math.abs(e))%36e5/6e4;return(t?"-":"+")+Ke(~~(e/36e5),2)+":"+Ke(n,2)}function xt(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 St(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 Ct(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," ")+_t(null!==(r=e.offset)&&void 0!==r?r:0);if(1!==t.length)return St(i,t,!0);switch(t){case"D":case"d":return xt(i,"first");case"T":case"t":return xt(i,"second");case"O":case"o":return function(e,t){const n=e.toISOString();return n.substring(0,n.length-1)+_t(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 St(e,t,n);switch(t){case"D":case"d":return n?xt(e,"first"):e.toLocaleDateString();case"T":case"t":return n?xt(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 Ke(e.getFullYear(),4)+"-"+Ke(e.getMonth()+1,2)+"-"+Ke(e.getDate(),2)+"T"+Ke(e.getHours(),2)+":"+Ke(e.getMinutes(),2)+":"+Ke(e.getSeconds(),2)+"."+Ke(e.getMilliseconds(),3)+(t?_t(-6e4*e.getTimezoneOffset()):"")}}(e,n);default:throw new Error("Unrecognized Date print format")}}(e,t)}function Et(e,t){const n=new Date(e);return n.kind=0|(null==t?0:t),n}function Tt(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 kt(e,t){try{return t.contents=function(e,t=!1){const[n,r]=Tt(e),o=null!=r?t&&"Z"===r?1:2:0;return Et(n.getTime(),o)}(e),!0}catch(e){return!1}}const It=Symbol("numeric");function At(e){return"number"==typeof e||(null==e?void 0:e[It])}function Nt(e,t){return"number"==typeof e?e*t:e[It]().multiply(t)}function Mt(e,t){return"number"==typeof e?e.toFixed(t):e[It]().toFixed(t)}function Rt(e,t){return"number"==typeof e?e.toPrecision(t):e[It]().toPrecision(t)}function Dt(e,t){return"number"==typeof e?e.toExponential(t):e[It]().toExponential(t)}function Gt(e){return"number"==typeof e?(Number(e)>>>0).toString(16):e[It]().toHex()}function Bt(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function Pt(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 Ot=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g,Ft=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function Lt(e,t){return function(e,t){return"number"==typeof e?e<t?-1:e>t?1:0:e.CompareTo(t)}(e,t)<0}function Ut(e){return{input:e,cont:(t=e,e=>{Ot.lastIndex=0;const n=[],r=[];let o=0,i=Ot.exec(t);for(;i;){const e=i.index+(i[1]||"").length;n.push(t.substring(o,e).replace(/%%/g,"%")),r.push(i),o=Ot.lastIndex,Ot.lastIndex-=1,i=Ot.exec(t)}return 0===n.length?e(t.replace(/%%/g,"%")):(n.push(t.substring(o).replace(/%%/g,"%")),Wt(e,n,r))})};var t}function Vt(e,t){return"string"==typeof t?e(t):t.cont(e)}function Ht(e){return Vt((e=>e),e)}function jt(e){return Vt((e=>{throw new Error(e)}),e)}function zt(e,t,n,r,o){let i="";if(t=t||"",o=o||"",At(e))switch("x"!==o.toLowerCase()&&(Lt(e,0)?(e=Nt(e,-1),i="-"):t.indexOf(" ")>=0?i=" ":t.indexOf("+")>=0&&(i="+")),r=null==r?null:parseInt(r,10),o){case"f":case"F":e=Mt(e,r=null!=r?r:6);break;case"g":case"G":e=null!=r?Rt(e,r):Rt(e);break;case"e":case"E":e=null!=r?Dt(e,r):Dt(e);break;case"x":e=Gt(e);break;case"X":e=Gt(e).toUpperCase();break;default:e=String(e)}else e=e instanceof Date?Ct(e):wt(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=Zt(e,n-i.length,s,o)):Zt(i+e,n,s,o)}return e}function Wt(e,t,n,r="",o=-1){return(...i)=>{let s=r;const a=t.slice(),u=n.slice();for(const e of i){const[,,t,n,r,i]=u[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+=a[0],s+=zt(e,t,l,r,i),a.splice(0,1),u.splice(0,1)}return 0===u.length?(s+=a[0],e(s)):Wt(e,a,u,s,o)}}function Yt(e,t){const n=e.lastIndexOf(t);return n>=0&&n===e.length-t.length}function Kt(e){return"string"!=typeof e||/^\s*$/.test(e)}function qt(e,t){return Array.isArray(t)?t.join(e):Array.from(t).join(e)}function Zt(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 Jt(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(Bt),t=t.length>0?t:["\\s"];const s=[],a=new RegExp(t.join("|"),"g");let u=!0,l=0;do{const t=a.exec(e);if(null===t){const t=i?e.substring(l).trim():e.substring(l);(!o||t.length>0)&&s.push(t),u=!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)),u=!1):s.push(r)),l=a.lastIndex}}while(u);return s}function Xt(e,t){return t.split("").filter((t=>e(t))).join("")}function Qt(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)}class en{constructor(e){this.value=e}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return tt(this.value)}Equals(e){return null!=e&&ot(this.value,e instanceof en?e.value:e)}CompareTo(e){return null==e?1:ut(this.value,e instanceof en?e.value:e)}}function tn(e){return null==e||e instanceof en?new en(e):e}function nn(e){if(null==e)throw new Error("Option has no value");return e instanceof en?e.value:e}function rn(e){return null==e?void 0:e}function on(e){return null==e?null:nn(e)}function sn(e){return null==e?[]:[nn(e)]}function an(e,t){return null!=e?nn(e):t}function un(e,t){return null!=t?tn(e(nn(t))):void 0}function ln(e,t){return null!=t?e(nn(t)):void 0}function cn(e,t){return"function"==typeof e?new e(t):new Array(t)}function fn(e,t,n,r){const o=0|t;return e.fill(r,o,o+n)}function $n(e,t,n){const r=0|t.length,o=cn(n,r);for(let n=0;n<=r-1;n++)o[n]=e(t[n]);return o}function dn(e,t,n){return function(e,t,n,r,o){const i=0|an(n,0),s=0|an(un((e=>i+e),r),e.length);return 0|(n=>{for(;;){const r=n;if(r>=s)return-1;if(o.Equals(t,e[r]))return 0|r;n=r+1}})(i)}(t,e,void 0,void 0,n)>=0}function hn(e,t,n){return n.reduce(e,t)}function pn(e,t,n){if(null==t)return null==n;if(null==n)return!1;{let r=0,o=!0;const i=0|t.length,s=0|n.length;if(i>s)return!1;if(i<s)return!1;for(;r<i&&o;)o=e(t[r],n[r]),r=r+1|0;return o}}function wn(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 mn extends gt{constructor(e,t){super(),this.head=e,this.tail=t}toString(){return"["+qt("; ",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(ot(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 a=s;if(r>18)return 0|o;e=r+1,t=(o<<1)+tt(i.head)+631*r,n=a}}})(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],a=0|ut(n.head,r.head);if(0===a){e=i,t=s;continue e}return 0|a}return 1}return null!=o[1]?-1:0}})(this,e)}GetEnumerator(){return new gn(this)}[Symbol.iterator](){return We(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return ze(this)}}class gn{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 yn(){return new mn(null,void 0)}function vn(e,t){return new mn(e,t)}function bn(e){return null==e.tail}function _n(e){if(null!=e.tail)return e.head;throw new Error("Collection was empty.\\nParameter name: list")}function xn(e){const t=e.tail;if(null!=t)return t;throw new Error("Collection was empty.\\nParameter name: list")}function Sn(){return yn()}function Cn(e,t){return vn(e,t)}function En(e){return vn(e,yn())}function Tn(e){return bn(e)}function kn(e){return _n(e)}function In(e){return xn(e)}function An(e){const t=0|function(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)}(e),n=fn(new Array(t),0,t,null);return((e,t)=>{for(;;){const r=e,o=t;if(bn(o))break;n[r]=_n(o),e=r+1,t=xn(o)}})(0,e),n}function Nn(e,t,n){let r=t,o=n;for(;!bn(o);)r=e(r,_n(o)),o=xn(o);return r}function Mn(e){return Nn(((e,t)=>vn(t,e)),yn(),e)}function Rn(e,t){Nn(((t,n)=>{e(n)}),void 0,t)}function Dn(e,t){let n=t;for(let t=e.length-1;t>=0;t--)n=vn(e[t],n);return n}function Gn(e){return Dn(e,yn())}function Bn(e,t){return Nn(((e,t)=>vn(t,e)),t,Mn(e))}function Pn(e,t){const n=yn(),r=Nn(((t,n)=>{const r=new mn(e(n),void 0);return t.tail=r,r}),n,t),o=yn();return r.tail=o,xn(n)}function On(e,t){return function(e,t){const n=An(t);return n.sort(e),Gn(n)}(((e,n)=>t.Compare(e,n)),e)}const Fn=Oe,Ln=wt(bt.Z),Un=$("svg",ct(Gn([["className",qt(" ",["h-5","w-5","text-gray-400"])],["viewBox","0 0 20 20"],["xmlns","http://www.w3.org/2000/svg"],["fill","currentColor"],(()=>{const e=En($("path",{d:"M13.586 3.586a2 2 0 112.828 2.828l-.793.793-2.828-2.828.793-.793zM11.379 5.793L3 14.172V17h2.828l8.38-8.379-2.83-2.828z"}));return["children",Fn.Children.toArray(Array.from(e))]})()]))),Vn=$("svg",ct(Gn([["className",qt(" ",["h-5","w-5","text-gray-400"])],["viewBox","0 0 20 20"],["xmlns","http://www.w3.org/2000/svg"],["fill","currentColor"],(()=>{const e=En($("path",{d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z","fill-rule":"evenodd",clipRule:"evenodd"}));return["children",Fn.Children.toArray(Array.from(e))]})()]))),Hn=$("svg",ct(Gn([["className",qt(" ",["h-6","w-6","text-gray-400","group-hover:text-primary-hover"])],["viewBox","0 0 24 24"],["xmlns","http://www.w3.org/2000/svg"],["fill","none"],["stroke","currentColor"],["strokeWidth",2],(()=>{const e=En($("path",{d:"M18 12H6",strokeLinejoin:"round",strokeLinecap:"round"}));return["children",Fn.Children.toArray(Array.from(e))]})()]))),jn=$("svg",ct(Gn([["className",qt(" ",["h-6","w-6","text-gray-400","group-hover:text-primary-hover"])],["viewBox","0 0 24 24"],["xmlns","http://www.w3.org/2000/svg"],["fill","none"],["stroke","currentColor"],["strokeWidth",2],(()=>{const e=En($("path",{d:"M12 6v6m0 0v6m0-6h6m-6 0H6",strokeLinejoin:"round",strokeLinecap:"round"}));return["children",Fn.Children.toArray(Array.from(e))]})()]))),zn=$("svg",ct(Gn([["className",qt(" ",["h-5","w-5"])],["fill","currentColor"],["viewBox","0 0 20 20"],["xmlns","http://www.w3.org/2000/svg"],(()=>{const e=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"}));return["children",Fn.Children.toArray(Array.from(e))]})()]))),Wn=Gn(["flex","flex-col","align-center"]);function Yn(){return e=ut,{Compare:(t,n)=>e(t,n)};var e}const Kn="The input sequence has an insufficient number of elements.";function qn(){throw new Error("Enumeration has not started. Call MoveNext.")}function Zn(){throw new Error("Enumeration already finished.")}class Jn{constructor(e){this.f=e}toString(){let e=0,t="seq [";const n=ze(this);try{for(;e<4&&n["System.Collections.IEnumerator.MoveNext"]();)e>0&&(t+="; "),t+=wt(n["System.Collections.Generic.IEnumerator`1.get_Current"]()),e=e+1|0;return 4===e&&(t+="; ..."),t+"]"}finally{Ve(n)}}GetEnumerator(){return this.f()}[Symbol.iterator](){return We(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}class Xn{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 Qn(e,t,n){return new Xn(e,t,n)}function er(e,t,n){let r,o=!1,i=tn(e());const s=()=>{if(null!=i){const e=nn(i);try{n(e)}finally{i=void 0}}},a=()=>{try{s()}finally{r=void 0}};return Qn((()=>(o||qn(),null!=r?nn(r):Zn())),(()=>{if(o||(o=!0),null!=i){const e=nn(i);let n;try{n=t(e)}catch(e){throw a(),e}return null!=n?(r=n,!0):(a(),!1)}return!1}),s)}function tr(e){return function(e){return new Jn(e)}(e)}function nr(e){return t="source",null==e&&function(e){throw new Error(e)}(t),ze(e);var t}function rr(e){return tr((()=>ze(e())))}function or(e){return tr((()=>function(e){let t,n,r,o=!1,i=!1;const s=()=>{if(i=!0,null!=n){const e=n;try{Ve(e)}finally{n=void 0}}if(null!=t){const e=t;try{Ve(e)}finally{t=void 0}}};return Qn((()=>(o?i&&Zn():qn(),null!=r?nn(r):Zn())),(()=>{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=tn(e["System.Collections.Generic.IEnumerator`1.get_Current"]()),o=!0;else try{Ve(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=ze(a)):(s(),o=!1)}else t=ze(e)}return nn(o)}}),(()=>{i||s()}))}(e)))}function ir(){return rr((()=>new Array(0)))}function sr(e){return rr((()=>function(e,t){const n=cn(void 0,1);return n[0]=e,n}(e)))}function ar(e){return Le(e)?Gn(e):e instanceof mn?e:function(e){let t,n;if(Le(e))return Gn(e);if(e instanceof mn)return e;{const r=yn();let o=r;const i=ze(e);try{for(;i["System.Collections.IEnumerator.MoveNext"]();){const e=i["System.Collections.Generic.IEnumerator`1.get_Current"]();t=o,n=new mn(e,void 0),t.tail=n,o=n}}finally{Ve(i)}const s=o,a=yn();return s.tail=a,xn(r)}}(e)}function ur(e,t,n){return tr((()=>er(e,t,n)))}function lr(e,t,n){return tr((()=>{let r=-1;return er(e,(e=>(r=r+1|0,t(r,e))),n)}))}function cr(e,t){return or([e,t])}function fr(e,t,n){const r=nr(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{Ve(r)}}function $r(e,t){return function(e,t){return ur((()=>nr(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=>{Ve(e)}))}((t=>e(t)?tn(t):void 0),t)}function dr(e,t,n){const r=nr(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{Ve(r)}}function hr(e,t){dr(((t,n)=>{e(n)}),void 0,t)}function pr(e,t){return ur((()=>nr(t)),(t=>t["System.Collections.IEnumerator.MoveNext"]()?tn(e(t["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0),(e=>{Ve(e)}))}function wr(e,t){return tr((()=>{const n=nr(t);try{for(let t=1;t<=e;t++)if(!n["System.Collections.IEnumerator.MoveNext"]())throw new Error(Kn+"\\nParameter name: source");return function(e,t){return Qn((()=>t["System.Collections.Generic.IEnumerator`1.get_Current"]()),(()=>t["System.Collections.IEnumerator.MoveNext"]()),(()=>{try{Ve(t)}finally{e()}}))}((()=>{}),n)}catch(e){throw Ve(n),e}}))}function mr(e,t){return rr((()=>or(pr(e,t))))}Symbol.iterator;const gr=(e,t)=>{X((()=>{const t=e();return()=>{t.Dispose()}}),t)};function yr(e){return{Dispose(){e()}}}function vr(e){return Fn.useState(e)}function br(e){var t;t=e,X((()=>{const e=t();return()=>{e.Dispose()}}))}function _r(e,t){gr(e,t)}function xr(e,t){gr((t=>(e(),yr((()=>{})))),t)}function Sr(e){return Fn.useRef(e)}function Cr(e,t){const n=an(t,[]);return Fn.useMemo(e,n)}function Er(e){const t=Sr(e),n=function(e,n){const r=an([],[]);return Fn.useCallback((e=>t.current(e)),r)}();var r,o;return r=()=>{t.current=e},o=e=>(r(),yr((()=>{}))),Q((()=>{const e=o();return()=>{e.Dispose()}})),n}function Tr(e){return Fn.useState(e)}class kr{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)}}}}class Ir extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,Ir.prototype)}}class Ar{constructor(){this.callCount=0}static get maxTrampolineCallCount(){return 2e3}incrementAndCheck(){return this.callCount++>Ar.maxTrampolineCallCount}hijack(e){this.callCount=0,setTimeout(e,0)}}function Nr(e){return t=>{if(t.cancelToken.isCancelled)t.onCancel(new Ir);else if(t.trampoline.incrementAndCheck())t.trampoline.hijack((()=>{try{e(t)}catch(e){t.onError(vt(e))}}));else try{e(t)}catch(e){t.onError(vt(e))}}}const Mr=new class{Bind(e,t){return function(e,t){return Nr((n=>{e({onSuccess:e=>{try{t(e)(n)}catch(e){n.onError(vt(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 Nr((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 Nr((t=>t.onSuccess(e)))}(e)}ReturnFrom(e){return e}TryFinally(e,t){return Nr((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 Nr((n=>{e({onSuccess:n.onSuccess,onCancel:n.onCancel,cancelToken:n.cancelToken,trampoline:n.trampoline,onError:e=>{try{t(e)(n)}catch(e){n.onError(vt(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 Nr((e=>e.onSuccess(void 0)))}};function Rr(e){}function Dr(e){const t=new kr("boolean"==typeof e&&e);return"number"==typeof e&&setTimeout((()=>{t.cancel()}),e),t}function Gr(e){e.cancel()}const Br=new kr;function Pr(e){return Nr((t=>{let n;const r=setTimeout((()=>{t.cancelToken.removeListener(n),t.onSuccess(void 0)}),e);n=t.cancelToken.addListener((()=>{clearTimeout(r),t.onCancel(new Ir)}))}))}function Or(e,t){return function(e,t){return function(e,t,n,r,o){"function"!=typeof t&&(o=t,t=void 0);const i=new Ar;e({onSuccess:t||Rr,onError:n||Rr,onCancel:r||Rr,cancelToken:o||Br,trampoline:i})}(e,t)}(e,t)}class Fr extends mt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["HasNotStartedYet","InProgress","Resolved","Failed"]}}function Lr(e,t){const n=Sr(Dr());return _r((()=>yr((()=>{Gr(n.current)}))),[]),Er((r=>{var o;null!=(o=n.current)&&o.isCancelled||Or(Mr.Delay((()=>Mr.TryWith(Mr.Delay((()=>(t(new Fr(1)),Mr.Bind(e(r),(e=>(t(new Fr(2,e)),Mr.Zero())))))),(e=>(t(new Fr(3,e)),Mr.Zero()))))),n.current)}))}class Ur extends mt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Ok","Error"]}}function Vr(e,t){return 0===t.tag?new Ur(0,e(t.fields[0])):new Ur(1,t.fields[0])}function Hr(e,t){return 0===t.tag?e(t.fields[0]):new Ur(1,t.fields[0])}function jr(e,t){return null==t?new Ur(1,e):new Ur(0,nn(t))}function zr(e,t,n){return ot(n,e)?new Ur(0,void 0):new Ur(1,t)}class Wr extends mt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Success","Failure","Info"]}}function Yr(e){switch(e.tag){case 0:return"text-green-700";case 2:return"text-blue-700";default:return"text-red-700"}}function Kr(e){switch(e.tag){case 0:return"bg-green-50";case 2:return"bg-blue-50";default:return"bg-red-50"}}function qr(e){return e.tag,e.fields[0]}function Zr(e){let t,n,r,o;const i=e.hideAlert,s=e.alert,a=Dr();var u;return u=()=>{!function(e,t){Or(Mr.Delay((()=>Mr.Bind(Pr(5e3),(()=>(e(),Mr.Zero()))))),t)}(i,a)},xr(u,[]),$("div",ct(Gn([["className",qt(" ",["rounded-md","p-4","my-4",Kr(s)])],(t=[$("div",ct(Gn([["className",qt(" ",["flex"])],(n=[$("p",{className:qt(" ",["text-sm","pr-2",Yr(s)]),children:qr(s)}),$("div",ct(Gn([["className",qt(" ",["ml-auto"])],(r=[$("div",ct(Gn([["className",qt(" ",["-mx-1.5","-my-1.5"])],(o=[$("button",{type:"button",className:qt(" ",ar(rr((()=>cr(sr("inline-flex"),rr((()=>cr(sr("rounded-md"),rr((()=>cr(sr("p-1.5"),rr((()=>cr(sr("focus:outline-none"),rr((()=>cr(sr("focus:ring-2"),rr((()=>cr(sr("focus:ring-offset-2"),rr((()=>function(e){switch(e.tag){case 0:return Gn(["bg-green-50","text-green-500","hover:bg-green-100","focus:ring-offset-green-50","focus:ring-green-600"]);case 2:return Gn(["bg-blue-50","text-blue-500","hover:bg-blue-100","focus:ring-offset-blue-50","focus:ring-blue-600"]);default:return Gn(["bg-red-50","text-red-500","hover:bg-red-100","focus:ring-offset-red-50","focus:ring-red-600"])}}(s))))))))))))))))))))))),children:Fn.Children.toArray([zn]),onClick:e=>{Gr(a),i()}})],["children",Fn.Children.toArray(Array.from(o))])])))],["children",Fn.Children.toArray(Array.from(r))])])))],["children",Fn.Children.toArray(Array.from(n))])])))],["children",Fn.Children.toArray(Array.from(t))])])))}function Jr(e,t){return new Ur(0,t)}function Xr(e,t){return t}function Qr(e,t,n){return Vr(n,t)}new class{constructor(){}};function eo(e,t){const n=Jr(0,t);return Mr.Return(n)}function to(e,t){return Mr.Delay(t)}new class{constructor(){}};class no extends mt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class ro extends mt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Header"]}}class oo extends mt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Empty","Text","Binary","Form"]}}class io extends gt{constructor(e,t,n,r,o,i,s,a){super(),this.url=e,this.method=t,this.headers=n,this.withCredentials=r,this.overridenMimeType=o,this.overridenResponseType=i,this.timeout=s,this.content=a}}class so extends mt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class ao extends gt{constructor(e,t,n,r,o){super(),this.statusCode=0|e,this.responseText=t,this.responseType=n,this.responseHeaders=r,this.content=o}}class uo{constructor(e,t){this.k=e,this.v=t}}function lo(e,t){return new uo(e,t)}function co(e){return e.k}function fo(e){return e.v}class $o extends uo{constructor(e,t,n,r,o){super(e,t),this.left=n,this.right=r,this.h=0|o}}function ho(e,t,n,r,o){return new $o(e,t,n,r,o)}function po(e){return e.left}function wo(e){return e.right}function mo(e){return e.h}function go(e,t){e:for(;;){const n=e,r=t;if(null!=r){const o=r;if(o instanceof $o){e=go(n+1,po(o)),t=wo(o);continue e}return n+1|0}return 0|n}}function yo(e){return go(0,e)}function vo(e,t,n,r){let o,i;if(null!=e){const t=e;o=t instanceof $o?mo(t):1}else o=0;if(null!=r){const e=r;i=e instanceof $o?mo(e):1}else i=0;const s=0|(o<i?i:o);return 0===s?lo(t,n):ho(t,n,e,r,s+1)}function bo(e,t,n,r){let o,i,s,a,u,l;if(null!=e){const t=e;u=t instanceof $o?mo(t):1}else u=0;if(null!=r){const e=r;l=e instanceof $o?mo(e):1}else l=0;if(l>u+2){const s=nn(r);if(s instanceof $o){if(o=po(s),(null!=o?(i=o,i instanceof $o?mo(i):1):0)>u+1){const r=nn(po(s));if(r instanceof $o)return vo(vo(e,t,n,po(r)),co(r),fo(r),vo(wo(r),co(s),fo(s),wo(s)));throw new Error("internal error: Map.rebalance")}return vo(vo(e,t,n,po(s)),co(s),fo(s),wo(s))}throw new Error("internal error: Map.rebalance")}if(u>l+2){const o=nn(e);if(o instanceof $o){if(s=wo(o),(null!=s?(a=s,a instanceof $o?mo(a):1):0)>l+1){const e=nn(wo(o));if(e instanceof $o)return vo(vo(po(o),co(o),fo(o),po(e)),co(e),fo(e),vo(wo(e),t,n,r));throw new Error("internal error: Map.rebalance")}return vo(po(o),co(o),fo(o),vo(wo(o),t,n,r))}throw new Error("internal error: Map.rebalance")}return vo(e,t,n,r)}function _o(e,t,n,r){if(null!=r){const o=r,i=0|e.Compare(t,co(o));return o instanceof $o?i<0?bo(_o(e,t,n,po(o)),co(o),fo(o),wo(o)):0===i?ho(t,n,po(o),wo(o),mo(o)):bo(po(o),co(o),fo(o),_o(e,t,n,wo(o))):i<0?ho(t,n,void 0,r,2):0===i?lo(t,n):ho(t,n,r,void 0,2)}return lo(t,n)}function xo(e,t,n){e:for(;;){const r=e,o=t,i=n;if(null!=i){const s=i,a=0|r.Compare(o,co(s));if(0===a)return tn(fo(s));if(s instanceof $o){e=r,t=o,n=a<0?po(s):wo(s);continue e}return}return}}function So(e,t){e:for(;;){const n=e,r=t;if(null!=r){const o=r;if(o instanceof $o){So(n,po(o)),n(co(o),fo(o)),e=n,t=wo(o);continue e}n(co(o),fo(o))}break}}function Co(e,t){So(e,t)}function Eo(e,t){if(null!=t){const n=t;if(n instanceof $o){const t=Eo(e,po(n)),r=e(co(n),fo(n)),o=Eo(e,wo(n));return ho(co(n),r,t,o,mo(n))}return lo(co(n),e(co(n),fo(n)))}}function To(e,t){return Eo(e,t)}function ko(e,t){let n;for(let r=0;r<=t.length-1;r++){const o=t[r];n=_o(e,o[0],o[1],n)}return n}class Io extends gt{constructor(e,t){super(),this.stack=e,this.started=t}}function Ao(e){e:for(;;){const t=e;if(Tn(t))return Sn();{const n=In(t),r=kn(t);if(null!=r){const o=r;if(o instanceof $o){e=Dn([po(o),lo(co(o),fo(o)),wo(o)],n);continue e}return t}e=n;continue e}}}function No(e){return new Io(Ao(En(e)),!1)}function Mo(e){if(e.started){const t=e.stack;if(Tn(t))return function(){throw new Error("enumeration already finished")}();if(null!=kn(t)){const e=kn(t);if(e instanceof $o)throw new Error("Please report error: Map iterator, unexpected stack for current");return[co(e),fo(e)]}throw new Error("Please report error: Map iterator, unexpected stack for current")}return function(){throw new Error("enumeration not started")}()}function Ro(e){let t=No(e);return{"System.Collections.Generic.IEnumerator`1.get_Current":()=>Mo(t),"System.Collections.IEnumerator.get_Current":()=>Mo(t),"System.Collections.IEnumerator.MoveNext":()=>function(e){if(e.started){const t=e.stack;if(Tn(t))return!1;if(null!=kn(t)){if(kn(t)instanceof $o)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=Ao(In(t)),!Tn(e.stack)}throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}return e.started=!0,!Tn(e.stack)}(t),"System.Collections.IEnumerator.Reset"(){t=No(e)},Dispose(){}}}class Do{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=ze(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const e=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n=0|t(n,tt(e[0])),n=0|t(n,tt(e[1]))}}finally{Ve(r)}return 0|n}(this)}Equals(e){if(!(e instanceof Do))return!1;{const t=ze(this);try{const n=ze(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!(!ot(r[0],o[0])||!ot(r[1],o[1]))&&e()}return!0}return!1};return e()}finally{Ve(n)}}finally{Ve(t)}}}toString(){return"map ["+qt("; ",pr((e=>function(e,...t){return"object"==typeof e&&t.length>0&&(e=t[0],t.shift()),e.replace(Ft,((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 a=t[n];if(At(a))switch(i=null==i?null:parseInt(i,10),o){case"f":case"F":a=Mt(a,i=null!=i?i:2);break;case"g":case"G":a=null!=i?Rt(a,i):Rt(a);break;case"e":case"E":a=null!=i?Dt(a,i):Dt(a);break;case"p":case"P":i=null!=i?i:2,a=Mt(Nt(a,100),i)+" %";break;case"d":case"D":a=null!=i?Zt(String(a),i,"0"):String(a);break;case"x":case"X":a=null!=i?Zt(Gt(a),i,"0"):Gt(a),"X"===o&&(a=a.toUpperCase());break;default:if(s){let e="";a=s.replace(/([0#,]+)(\.[0#]+)?/,((t,n,r)=>{Lt(a,0)&&(a=Nt(a,-1),e="-");const o=null!=r?r.length:0;if(a=Mt(a,Math.max(o-1,0)),n.indexOf(",")>0){const[e,t]=a.split("."),n=e.length%3,r=Math.floor(e.length/3);let o=n>0?e.substr(0,n)+(r>0?",":""):"";for(let t=0;t<r;t++)o+=e.substr(n+3*t,3)+(t<r-1?",":"");a=t?o+"."+t:o}const i=(n=n.replace(/,/g,"")).length>0&&"0"===n[0]?n.length:0;return Zt(a,i-e.length+o,"0")})),a=e+a}}else a=a instanceof Date?Ct(a,s||o):wt(a);return r=parseInt((r||" ").substring(1),10),isNaN(r)||(a=Zt(String(a),Math.abs(r)," ",r<0)),a}))}("({0}, {1})",e[0],e[1])),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(e){return Array.from(this)}GetEnumerator(){return Ro(this.tree)}[Symbol.iterator](){return We(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return Ro(this.tree)}CompareTo(e){const t=this;if(e instanceof Do)return 0|function(e,t,n){const r=nr(t);try{const t=nr(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{Ve(t)}}finally{Ve(r)}}(((e,n)=>{const r=0|t.comparer.Compare(e[0],n[0]);return 0|(0!==r?r:ut(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 Fo(this,e[0])&&ot(Po(this,e[0]),e[1])}"System.Collections.Generic.ICollection`1.CopyToZ2E171D71"(e,t){!function(e,t,n){let r=n;Co(((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|Oo(this)}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return 0|Oo(this)}get size(){return 0|Oo(this)}clear(){throw new Error("Map cannot be mutated")}delete(e){throw new Error("Map cannot be mutated")}entries(){return pr((e=>[e[0],e[1]]),this)}get(e){return Po(this,e)}has(e){return Fo(this,e)}keys(){return pr((e=>e[0]),this)}set(e,t){throw new Error("Map cannot be mutated")}values(){return pr((e=>e[1]),this)}forEach(e,t){const n=this;hr((t=>{e(t[1],t[0],n)}),n)}}function Go(e,t){return new Do(e,t)}function Bo(e){const t=Yn();return Go(t,function(e,t){if(Le(t))return ko(e,t);if(t instanceof mn)return function(e,t){return Nn(((t,n)=>_o(e,n[0],n[1],t)),void 0,t)}(e,t);{const n=ze(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=_o(r,s[0],s[1],o),n=i}}}(e,void 0,n)}finally{Ve(n)}}}(t,e))}function Po(e,t){return function(e,t,n){const r=xo(e,t,n);if(null==r)throw new Error;return nn(r)}(e.comparer,t,e.tree)}function Oo(e){return yo(e.tree)}function Fo(e,t){return function(e,t,n){e:for(;;){const r=e,o=t,i=n;if(null!=i){const s=i,a=0|r.Compare(o,co(s));if(s instanceof $o){if(a<0){e=r,t=o,n=po(s);continue e}if(0===a)return!0;e=r,t=o,n=wo(s);continue e}return 0===a}return!1}}(e.comparer,t,e.tree)}function Lo(e,t,n){return function(e,t,n){return Go(e.comparer,_o(e.comparer,t,n,e.tree))}(n,e,t)}function Uo(e,t){return function(e,t){return xo(e.comparer,t,e.tree)}(t,e)}function Vo(e,t){return function(e,t){return Go(e.comparer,To(t,e.tree))}(t,e)}function Ho(e){return Bo(e)}function jo(){return Do.empty}Do.empty=Go(Yn(),void 0);const zo=new io("",new no(0),Sn(),!1,void 0,void 0,void 0,new oo(0));function Wo(e,t){return"string"!=typeof(n=t)||0===n.length?[t]:Jt(t,[e],null,0);var n}function Yo(e){return new io(e,zo.method,zo.headers,zo.withCredentials,zo.overridenMimeType,zo.overridenResponseType,zo.timeout,zo.content)}function Ko(e,t){return new io(t.url,e,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function qo(e,t){return new io(t.url,t.method,Bn(t.headers,En(e)),t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function Zo(e){return function(e){return Nr((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,a;4===n.readyState&&t[0]((r=n.responseType,e=""===r||"text"===r?n.responseText:"",o=0|n.status,i=n.responseType,a=n.responseType,s=""===a||"text"===a?new so(0,n.responseText):new so("arraybuffer"===a?2:"blob"===a?1:3,n.response),new ao(o,e,i,function(e){const t=Yn();return Go(t,ko(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=nn(o);r.push(e)}}return r}((e=>{const t=Gn(Wo(":",e));return Tn(t)?void 0:[kn(t).toLocaleLowerCase(),qt(":",In(t)).trim()]}),Wo("\r\n",n.getAllResponseHeaders()))),s)))};const r=ze(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{Ve(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 s=e.timeout;if(null==s);else{const e=0|s;n.timeout=0|e}const a=[e.method,e.content];0===a[0].tag?n.send(tn(void 0)):1===a[1].tag||3===a[1].tag||2===a[1].tag?n.send(tn(a[1].fields[0])):n.send(tn(void 0))}))}new ao(0,"","",jo(),new so(0,""));class Jo extends mt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class Xo extends mt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["PascalCase","CamelCase","SnakeCase"]}}class Qo{constructor(){this.cache=new Map([])}}function ei(){return new Qo}function ti(e){return e.slice(void 0,1).toLowerCase()+e.slice(1,e.length)}function ni(e,t){switch(e.tag){case 2:return function(e,t,n,r,o=0){if("string"==typeof e){const n=e;e=function(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)}(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),a=Pt(e,s),u=Pt.length>r?(i=a[r-1],s.substring(0,i.index+i[0].length)):s;return t.substring(0,o)+u.replace(e,n)+t.substring(o+u.length)}return t.replace(e,n)}(ti(t),"[A-Z]","_$0").toLowerCase();case 0:return t;default:return ti(t)}}ei(),ei();const ri=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,oi=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,ii=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function si(e,t){try{return t.contents=function(e){function t(e){return e.replace(oi,"$1-$2-$3-$4-$5")}const n=e.trim().toLowerCase();if(ri.test(n))return function(e,...t){if(0===t.length)return e.trim();const n="["+Bt(t.join(""))+"]+";return e.replace(new RegExp("^"+n),"").replace(new RegExp(n+"$"),"")}(n,"{","}","(",")");if(oi.test(n))return t(n);if(ii.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}}var ai;function ui(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 li(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&ai.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]=ui(!0,r);!n&&10!==i.radix&&e>=t&&e<=o&&(e=e<<32-r>>32-r);const[s,a]=ui(n,r);if(e>=s&&e<=a)return e}}throw new Error("Input string was not in a correct format.")}function ci(e,t,n,r,o){try{return o.contents=li(e,t,n,r),!0}catch(e){return!1}}function fi(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 $i(e,t){try{return t.contents=function(e){const[t,n]=Tt(e),r=null==n?-6e4*t.getTimezoneOffset():"Z"===n?0:6e4*n;return fi(t.getTime(),r)}(e),!0}catch(e){return!1}}!function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"}(ai||(ai={}));var di=null;try{di=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(u){}function hi(e,t,n){this.low=0|e,this.high=0|t,this.unsigned=!!n}function pi(e){return!0===(e&&e.__isLong__)}hi.prototype.GetHashCode=function(){let e=this.unsigned?1:0;return e=(e<<5)+e^this.high,e=(e<<5)+e^this.low,e},hi.prototype.Equals=function(e){return Vi(this,e)},hi.prototype.CompareTo=function(e){return Wi(this,e)},hi.prototype.toString=function(e){return Oi(this,e)},hi.prototype.toJSON=function(){return Oi(this)},hi.prototype[It]=function(){const e=this;return{multiply:t=>Zi(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 Oi(e.unsigned?e:function(e,t,n){return n?function(e,t){return new hi(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 hi(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}}},hi.prototype.__isLong__,Object.defineProperty(hi.prototype,"__isLong__",{value:!0});var wi={},mi={};function gi(e,t){var n,r,o;return t?(o=0<=(e>>>=0)&&e<256)&&(r=mi[e])?r:(n=vi(e,(0|e)<0?-1:0,!0),o&&(mi[e]=n),n):(o=-128<=(e|=0)&&e<128)&&(r=wi[e])?r:(n=vi(e,e<0?-1:0,!1),o&&(wi[e]=n),n)}function yi(e,t){if(isNaN(e))return t?Ii:ki;if(t){if(e<0)return Ii;if(e>=Ci)return Di}else{if(e<=-Ei)return Gi;if(e+1>=Ei)return Ri}return e<0?Yi(yi(-e,t)):vi(e%Si|0,e/Si|0,t)}function vi(e,t,n){return new hi(e,t,n)}var bi=Math.pow;function _i(e,t,n){if(0===e.length)throw Error("empty string");if("NaN"===e||"Infinity"===e||"+Infinity"===e||"-Infinity"===e)return ki;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 Yi(_i(e.substring(1),t,n));for(var o=yi(bi(n,8)),i=ki,s=0;s<e.length;s+=8){var a=Math.min(8,e.length-s),u=parseInt(e.substring(s,s+a),n);i=Ki(a<8?Zi(i,yi(bi(n,a))):i=Zi(i,o),yi(u))}return i.unsigned=t,i}function xi(e,t){return"number"==typeof e?yi(e,t):"string"==typeof e?_i(e,t):vi(e.low,e.high,"boolean"==typeof t?t:e.unsigned)}var Si=4294967296,Ci=Si*Si,Ei=Ci/2,Ti=gi(1<<24),ki=gi(0),Ii=gi(0,!0),Ai=gi(1),Ni=gi(1,!0),Mi=gi(-1),Ri=vi(-1,2147483647,!1),Di=vi(-1,-1,!0),Gi=vi(0,-2147483648,!1);function Bi(e){return e.unsigned?e.low>>>0:e.low}function Pi(e){return e.unsigned?(e.high>>>0)*Si+(e.low>>>0):e.high*Si+(e.low>>>0)}function Oi(e,t){if((t=t||10)<2||36<t)throw RangeError("radix");if(Fi(e))return"0";if(Li(e)){if(Vi(e,Gi)){var n=yi(t),r=Ji(e,n),o=qi(Zi(r,n),e);return Oi(r,t)+Bi(o).toString(t)}return"-"+Oi(Yi(e),t)}for(var i=yi(bi(t,6),e.unsigned),s=e,a="";;){var u=Ji(s,i),l=(Bi(qi(s,Zi(u,i)))>>>0).toString(t);if(Fi(s=u))return l+a;for(;l.length<6;)l="0"+l;a=""+l+a}}function Fi(e){return 0===e.high&&0===e.low}function Li(e){return!e.unsigned&&e.high<0}function Ui(e){return 1==(1&e.low)}function Vi(e,t){return pi(t)||(t=xi(t)),(e.unsigned===t.unsigned||e.high>>>31!=1||t.high>>>31!=1)&&e.high===t.high&&e.low===t.low}function Hi(e,t){return Wi(e,t)<0}function ji(e,t){return Wi(e,t)>0}function zi(e,t){return Wi(e,t)>=0}function Wi(e,t){if(pi(t)||(t=xi(t)),Vi(e,t))return 0;var n=Li(e),r=Li(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:Li(qi(e,t))?-1:1}function Yi(e){return!e.unsigned&&Vi(e,Gi)?Gi:Ki(function(e){return vi(~e.low,~e.high,e.unsigned)}(e),Ai)}function Ki(e,t){pi(t)||(t=xi(t));var n=e.high>>>16,r=65535&e.high,o=e.low>>>16,i=65535&e.low,s=t.high>>>16,a=65535&t.high,u=t.low>>>16,l=0,c=0,f=0,$=0;return f+=($+=i+(65535&t.low))>>>16,c+=(f+=o+u)>>>16,l+=(c+=r+a)>>>16,l+=n+s,vi((f&=65535)<<16|($&=65535),(l&=65535)<<16|(c&=65535),e.unsigned)}function qi(e,t){return pi(t)||(t=xi(t)),Ki(e,Yi(t))}function Zi(e,t){if(Fi(e))return e.unsigned?Ii:ki;if(pi(t)||(t=xi(t)),di)return vi(di.mul(e.low,e.high,t.low,t.high),di.get_high(),e.unsigned);if(Fi(t))return e.unsigned?Ii:ki;if(Vi(e,Gi))return Ui(t)?Gi:ki;if(Vi(t,Gi))return Ui(e)?Gi:ki;if(Li(e))return Li(t)?Zi(Yi(e),Yi(t)):Yi(Zi(Yi(e),t));if(Li(t))return Yi(Zi(e,Yi(t)));if(Hi(e,Ti)&&Hi(t,Ti))return yi(Pi(e)*Pi(t),e.unsigned);var n=e.high>>>16,r=65535&e.high,o=e.low>>>16,i=65535&e.low,s=t.high>>>16,a=65535&t.high,u=t.low>>>16,l=65535&t.low,c=0,f=0,$=0,d=0;return $+=(d+=i*l)>>>16,f+=($+=o*l)>>>16,$&=65535,f+=($+=i*u)>>>16,c+=(f+=r*l)>>>16,f&=65535,c+=(f+=o*u)>>>16,f&=65535,c+=(f+=i*a)>>>16,c+=n*l+r*u+o*a+i*s,vi(($&=65535)<<16|(d&=65535),(c&=65535)<<16|(f&=65535),e.unsigned)}function Ji(e,t){if(pi(t)||(t=xi(t)),Fi(t))throw Error("division by zero");var n,r,o;if(di)return e.unsigned||-2147483648!==e.high||-1!==t.low||-1!==t.high?vi((e.unsigned?di.div_u:di.div_s)(e.low,e.high,t.low,t.high),di.get_high(),e.unsigned):e;if(Fi(e))return e.unsigned?Ii:ki;if(e.unsigned){if(t.unsigned||(t=function(e){return e.unsigned?e:vi(e.low,e.high,!0)}(t)),ji(t,e))return Ii;if(ji(t,function(e,t){if(pi(t)&&(t=Bi(t)),0==(t&=63))return e;var n=e.high;return t<32?vi(e.low>>>t|n<<32-t,n>>>t,e.unsigned):vi(32===t?n:n>>>t-32,0,e.unsigned)}(e,1)))return Ni;o=Ii}else{if(Vi(e,Gi))return Vi(t,Ai)||Vi(t,Mi)?Gi:Vi(t,Gi)?Ai:Vi(n=function(e,t){return pi(t)&&(t=Bi(t)),0==(t&=63)?e:t<32?vi(e.low<<t,e.high<<t|e.low>>>32-t,e.unsigned):vi(0,e.low<<t-32,e.unsigned)}(Ji(function(e,t){return pi(t)&&(t=Bi(t)),0==(t&=63)?e:t<32?vi(e.low>>>t|e.high<<32-t,e.high>>t,e.unsigned):vi(e.high>>t-32,e.high>=0?0:-1,e.unsigned)}(e,1),t),1),ki)?Li(t)?Ai:Mi:o=Ki(n,Ji(r=qi(e,Zi(t,n)),t));if(Vi(t,Gi))return e.unsigned?Ii:ki;if(Li(e))return Li(t)?Ji(Yi(e),Yi(t)):Yi(Ji(Yi(e),t));if(Li(t))return Yi(Ji(e,Yi(t)));o=ki}for(r=e;zi(r,t);){n=Math.max(1,Math.floor(Pi(r)/Pi(t)));for(var i=Math.ceil(Math.log(n)/Math.LN2),s=i<=48?1:bi(2,i-48),a=yi(n),u=Zi(a,t);Li(u)||ji(u,r);)u=Zi(a=yi(n-=s,e.unsigned),t);Fi(a)&&(a=Ai),o=Ki(o,a),r=qi(r,u)}return o}const Xi=Ji,Qi=Pi;function es(e){return e<0?Math.ceil(e):Math.floor(e)}function ts(e=0,t=0,n=0,r=0,o=0){switch(arguments.length){case 1:return ns(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 ns(e){return Qi(Xi(e,1e4))}function rs(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 ts(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],a=+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*ts(n,s,a,o,r)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}(e),!0}catch(e){return!1}}class os{constructor(e,t,n,r){this.declaringType=e,this.tag=t,this.name=n,this.fields=r}}class is{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 vs(this)}GetHashCode(){return as(this)}Equals(e){return us(this,e)}}function ss(e){return null!=e.generics?e.generics:[]}function as(e){return et([Xe(e.fullname),...ss(e).map(as)])}function us(e,t){return""===e.fullname?""===t.fullname&&nt(As(e),As(t),(([e,t],[n,r])=>e===n&&us(t,r))):e.fullname===t.fullname&&nt(ss(e),ss(t),us)}function ls(e,t,n,r){return new is(e,t,n,void 0,r)}function cs(...e){return new is("",void 0,void 0,void 0,(()=>e))}function fs(e,t,n,r){const o=new is(e,t,n,void 0,void 0,(()=>{const e=n.prototype.cases();return r().map(((t,n)=>new os(o,n,e[n],t)))}));return o}function $s(e){return new is("Microsoft.FSharp.Core.FSharpOption`1",[e])}function ds(e){return new is("Microsoft.FSharp.Collections.FSharpList`1",[e])}function hs(e,t,n){return new is(e,[t],void 0,void 0,void 0,void 0,n)}const ps=new is("System.Object"),ws=(new is("Microsoft.FSharp.Core.Unit"),new is("System.Char"),new is("System.String")),ms=new is("System.Boolean"),gs=(new is("System.SByte"),new is("System.Byte"),new is("System.Int16"),new is("System.UInt16"),new is("System.Int32"));function ys(e){if(Array.isArray(e))return e[0];if(e instanceof is){const t=_s(e);if(null!=t)return ys(t)+"[]";{const t=e.fullname.lastIndexOf(".");return-1===t?e.fullname:e.fullname.substr(t+1)}}return e.name}function vs(e){const t=_s(e);return null!=t?vs(t)+"[]":null==e.generics||0===e.generics.length?e.fullname:e.fullname+"["+e.generics.map((e=>vs(e))).join(",")+"]"}function bs(e){return null!=_s(e)}function _s(e){var t;return"[]"===e.fullname&&1===(null===(t=e.generics)||void 0===t?void 0:t.length)?e.generics[0]:void 0}function xs(e){return null!=e.generics&&e.generics.length>0}function Ss(e){return null!=e.enumCases&&e.enumCases.length>0}function Cs(e){return null==e.generics?e:new is(e.fullname,e.generics.map((()=>ps)))}function Es(e){var t;return null===(t=e.generics)||void 0===t?void 0:t[0]}function Ts(e){if(Ss(e)&&null!=e.enumCases)return e.enumCases.map((e=>e[1]));throw new Error(`${e.fullname} is not an enum type`)}function ks(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 Is(e){if(null!=e.cases)return e.cases();throw new Error(`${e.fullname} is not an F# union type`)}function As(e){if(null!=e.fields)return e.fields();throw new Error(`${e.fullname} is not an F# record type`)}function Ns(e){if(Ds(e)&&null!=e.generics)return e.generics;throw new Error(`${e.fullname} is not a tuple type`)}function Ms(e){return e instanceof is?null!=e.cases:e instanceof mt}function Rs(e){return e instanceof is?null!=e.fields:e instanceof gt}function Ds(e){return e.fullname.startsWith("System.Tuple")}function Gs(e){return null==e.fields?[]:e.fields}function Bs(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):{}}new is("System.UInt32"),new is("System.Single"),new is("System.Double"),new is("System.Decimal");class Ps{constructor(e){this.k=e}}function Os(e){return new Ps(e)}function Fs(e){return e.k}class Ls extends Ps{constructor(e,t,n,r){super(e),this.left=t,this.right=n,this.h=0|r}}function Us(e,t,n,r){return new Ls(e,t,n,r)}function Vs(e){return e.left}function Hs(e){return e.right}function js(e){return e.h}function zs(e,t){e:for(;;){const n=e,r=t;if(null!=n){const o=n;if(o instanceof Ls){e=Vs(o),t=zs(Hs(o),r+1);continue e}return r+1|0}return 0|r}}function Ws(e){return zs(e,0)}function Ys(e,t,n){let r,o;if(null!=e){const t=e;r=t instanceof Ls?js(t):1}else r=0;if(null!=n){const e=n;o=e instanceof Ls?js(e):1}else o=0;const i=0|(r<o?o:r);return 0===i?Os(t):Us(t,e,n,i+1)}function Ks(e,t,n){let r,o,i,s,a,u;if(null!=e){const t=e;a=t instanceof Ls?js(t):1}else a=0;if(null!=n){const e=n;u=e instanceof Ls?js(e):1}else u=0;if(u>a+2){const i=nn(n);if(i instanceof Ls){if(r=Vs(i),(null!=r?(o=r,o instanceof Ls?js(o):1):0)>a+1){const n=nn(Vs(i));if(n instanceof Ls)return Ys(Ys(e,t,Vs(n)),Fs(n),Ys(Hs(n),Fs(i),Hs(i)));throw new Error("internal error: Set.rebalance")}return Ys(Ys(e,t,Vs(i)),Fs(i),Hs(i))}throw new Error("internal error: Set.rebalance")}if(a>u+2){const r=nn(e);if(r instanceof Ls){if(i=Hs(r),(null!=i?(s=i,s instanceof Ls?js(s):1):0)>u+1){const e=nn(Hs(r));if(e instanceof Ls)return Ys(Ys(Vs(r),Fs(r),Vs(e)),Fs(e),Ys(Hs(e),t,n));throw new Error("internal error: Set.rebalance")}return Ys(Vs(r),Fs(r),Ys(Hs(r),t,n))}throw new Error("internal error: Set.rebalance")}return Ys(e,t,n)}function qs(e,t,n){if(null!=n){const r=n,o=0|e.Compare(t,Fs(r));if(r instanceof Ls)return o<0?Ks(qs(e,t,Vs(r)),Fs(r),Hs(r)):0===o?n:Ks(Vs(r),Fs(r),qs(e,t,Hs(r)));{const o=0|e.Compare(t,Fs(r));return o<0?Us(t,void 0,n,2):0===o?n:Us(t,n,void 0,2)}}return Os(t)}function Zs(e,t,n){e:for(;;){const r=e,o=t,i=n;if(null!=i){const s=i,a=0|r.Compare(o,Fs(s));if(s instanceof Ls){if(a<0){e=r,t=o,n=Vs(s);continue e}if(0===a)return!0;e=r,t=o,n=Hs(s);continue e}return 0===a}return!1}}function Js(e,t){e:for(;;){const n=e,r=t;if(null!=r){const o=r;if(o instanceof Ls){Js(n,Vs(o)),n(Fs(o)),e=n,t=Hs(o);continue e}n(Fs(o))}break}}class Xs extends gt{constructor(e,t){super(),this.stack=e,this.started=t}}function Qs(e){e:for(;;){const t=e;if(Tn(t))return Sn();{const n=kn(t),r=In(t);if(null!=n){const o=n;if(o instanceof Ls){e=Dn([Vs(o),Os(Fs(o)),Hs(o)],r);continue e}return t}e=r;continue e}}}function ea(e){return new Xs(Qs(En(e)),!1)}function ta(e){if(e.started){const t=e.stack;if(Tn(t))return function(){throw new Error("Enumeration already started")}();if(null!=kn(t))return Fs(kn(t));throw new Error("Please report error: Set iterator, unexpected stack for current")}return function(){throw new Error("Enumeration not started")}()}function na(e){let t=ea(e);return{"System.Collections.Generic.IEnumerator`1.get_Current":()=>ta(t),"System.Collections.IEnumerator.get_Current":()=>ta(t),"System.Collections.IEnumerator.MoveNext":()=>function(e){if(e.started){const t=e.stack;if(Tn(t))return!1;if(null!=kn(t)){if(kn(t)instanceof Ls)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=Qs(In(t)),!Tn(e.stack)}throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}return e.started=!0,!Tn(e.stack)}(t),"System.Collections.IEnumerator.Reset"(){t=ea(e)},Dispose(){}}}function ra(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(Tn(s[0]))return Tn(s[1])?0:-1;if(Tn(s[1]))return 1;if(null!=kn(s[1]))if(null!=kn(s[0])){const a=kn(s[0]),u=kn(s[1]);if(a instanceof Ls)if(null==Vs(a)){if(!(u instanceof Ls)){const o=0|r.Compare(Fs(a),Fs(u));if(0!==o)return 0|o;e=r,t=Cn(Hs(a),In(s[0])),n=Cn(void 0,In(s[1]));continue e}if(null==Vs(u)){const o=0|r.Compare(Fs(a),Fs(u));if(0!==o)return 0|o;e=r,t=Cn(Hs(a),In(s[0])),n=Cn(Hs(u),In(s[1]));continue e}{const s=[o,i];let a,u,l,c,f;switch(Tn(s[0])?Tn(s[1])?a=2:null!=kn(s[1])?(a=1,c=In(s[1]),f=kn(s[1])):a=2:null!=kn(s[0])?(a=0,u=In(s[0]),l=kn(s[0])):Tn(s[1])?a=2:null!=kn(s[1])?(a=1,c=In(s[1]),f=kn(s[1])):a=2,a){case 0:if(l instanceof Ls){e=r,t=Dn([Vs(l),Us(Fs(l),void 0,Hs(l),0)],u),n=i;continue e}e=r,t=Dn([void 0,Os(Fs(l))],u),n=i;continue e;case 1:if(f instanceof Ls){e=r,t=o,n=Dn([Vs(f),Us(Fs(f),void 0,Hs(f),0)],c);continue e}e=r,t=o,n=Dn([void 0,Os(Fs(f))],c);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const s=[o,i];let a,u,l,c,f;switch(Tn(s[0])?Tn(s[1])?a=2:null!=kn(s[1])?(a=1,c=In(s[1]),f=kn(s[1])):a=2:null!=kn(s[0])?(a=0,u=In(s[0]),l=kn(s[0])):Tn(s[1])?a=2:null!=kn(s[1])?(a=1,c=In(s[1]),f=kn(s[1])):a=2,a){case 0:if(l instanceof Ls){e=r,t=Dn([Vs(l),Us(Fs(l),void 0,Hs(l),0)],u),n=i;continue e}e=r,t=Dn([void 0,Os(Fs(l))],u),n=i;continue e;case 1:if(f instanceof Ls){e=r,t=o,n=Dn([Vs(f),Us(Fs(f),void 0,Hs(f),0)],c);continue e}e=r,t=o,n=Dn([void 0,Os(Fs(f))],c);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else{if(!(u instanceof Ls)){const o=0|r.Compare(Fs(a),Fs(u));if(0!==o)return 0|o;e=r,t=In(s[0]),n=In(s[1]);continue e}if(null==Vs(u)){const o=0|r.Compare(Fs(a),Fs(u));if(0!==o)return 0|o;e=r,t=Cn(void 0,In(s[0])),n=Cn(Hs(u),In(s[1]));continue e}{const s=[o,i];let a,u,l,c,f;switch(Tn(s[0])?Tn(s[1])?a=2:null!=kn(s[1])?(a=1,c=In(s[1]),f=kn(s[1])):a=2:null!=kn(s[0])?(a=0,u=In(s[0]),l=kn(s[0])):Tn(s[1])?a=2:null!=kn(s[1])?(a=1,c=In(s[1]),f=kn(s[1])):a=2,a){case 0:if(l instanceof Ls){e=r,t=Dn([Vs(l),Us(Fs(l),void 0,Hs(l),0)],u),n=i;continue e}e=r,t=Dn([void 0,Os(Fs(l))],u),n=i;continue e;case 1:if(f instanceof Ls){e=r,t=o,n=Dn([Vs(f),Us(Fs(f),void 0,Hs(f),0)],c);continue e}e=r,t=o,n=Dn([void 0,Os(Fs(f))],c);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}}else{kn(s[1]);const a=[o,i];let u,l,c,f,$;switch(Tn(a[0])?Tn(a[1])?u=2:null!=kn(a[1])?(u=1,f=In(a[1]),$=kn(a[1])):u=2:null!=kn(a[0])?(u=0,l=In(a[0]),c=kn(a[0])):Tn(a[1])?u=2:null!=kn(a[1])?(u=1,f=In(a[1]),$=kn(a[1])):u=2,u){case 0:if(c instanceof Ls){e=r,t=Dn([Vs(c),Us(Fs(c),void 0,Hs(c),0)],l),n=i;continue e}e=r,t=Dn([void 0,Os(Fs(c))],l),n=i;continue e;case 1:if($ instanceof Ls){e=r,t=o,n=Dn([Vs($),Us(Fs($),void 0,Hs($),0)],f);continue e}e=r,t=o,n=Dn([void 0,Os(Fs($))],f);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else{if(null==kn(s[0])){e=r,t=In(s[0]),n=In(s[1]);continue e}{kn(s[0]);const a=[o,i];let u,l,c,f,$;switch(Tn(a[0])?Tn(a[1])?u=2:null!=kn(a[1])?(u=1,f=In(a[1]),$=kn(a[1])):u=2:null!=kn(a[0])?(u=0,l=In(a[0]),c=kn(a[0])):Tn(a[1])?u=2:null!=kn(a[1])?(u=1,f=In(a[1]),$=kn(a[1])):u=2,u){case 0:if(c instanceof Ls){e=r,t=Dn([Vs(c),Us(Fs(c),void 0,Hs(c),0)],l),n=i;continue e}e=r,t=Dn([void 0,Os(Fs(c))],l),n=i;continue e;case 1:if($ instanceof Ls){e=r,t=o,n=Dn([Vs($),Us(Fs($),void 0,Hs($),0)],f);continue e}e=r,t=o,n=Dn([void 0,Os(Fs($))],f);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}break}}(e,En(t),En(n))}function oa(e,t,n){let r=n;Js((e=>{t[r]=e,r=r+1|0}),e)}function ia(e,t){if(Le(t))return function(e,t){return hn(((t,n)=>qs(e,n,t)),void 0,t)}(e,t);if(t instanceof mn)return function(e,t){return Nn(((t,n)=>qs(e,n,t)),void 0,t)}(e,t);{const n=ze(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=qs(r,i["System.Collections.Generic.IEnumerator`1.get_Current"](),o),n=i}}(e,void 0,n)}finally{Ve(n)}}}class sa{constructor(e,t){this.comparer=e,this.tree=t}GetHashCode(){return 0|function(e){let t,n=0;const r=ze(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();)n=0|(t=0|tt(r["System.Collections.Generic.IEnumerator`1.get_Current"]()),(n<<1)+t+631)}finally{Ve(r)}return 0|Math.abs(n)}(this)}Equals(e){return e instanceof sa&&0===ra(aa(this),ua(this),ua(e))}toString(){return"set ["+qt("; ",pr((e=>wt(e)),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(e){return Array.from(this)}CompareTo(e){return 0|ra(aa(this),ua(this),ua(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 Zs(aa(this),e,ua(this))}"System.Collections.Generic.ICollection`1.CopyToZ2E171D71"(e,t){oa(ua(this),e,t)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|la(this)}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return 0|la(this)}GetEnumerator(){return na(ua(this))}[Symbol.iterator](){return We(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return na(ua(this))}get size(){return 0|la(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 Zs(aa(e),t,ua(e))}(this,e)}keys(){return pr((e=>e),this)}values(){return pr((e=>e),this)}entries(){return pr((e=>[e,e]),this)}forEach(e,t){const n=this;hr((t=>{e(t,t,n)}),n)}}function aa(e){return e.comparer}function ua(e){return e.tree}function la(e){return Ws(ua(e))}function ca(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 fa(e,t,n){const r=t(e,n);if(1===r.tag){const e=r.fields[0];return new Ur(1,function(e,t){const n=2===t.tag?ca(t.fields[0],t.fields[1],!0):1===t.tag?ca(t.fields[0],t.fields[1],!1)+"\nReason: "+t.fields[2]:3===t.tag?ca(t.fields[0],t.fields[1],!0):4===t.tag?ca(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"+qt("\n\n",t.fields[0]):6===t.tag?"The following `failure` occurred with the decoder: "+t.fields[0]:ca(t.fields[0],t.fields[1],!1);return 7===t.tag?n:"Error at: `"+e+"`\n"+n}(e[0],e[1]))}return new Ur(0,r.fields[0])}const $a=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 Ur(0,(e+128&255)-128):new Ur(1,[r,new Jo(1,n,e,"Value was either too large or too small for a sbyte")]):new Ur(1,[r,new Jo(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[ci(o,511,!1,8,new yt((()=>t),(e=>{t=0|e}))),t],e[0]?new Ur(0,e[1]):new Ur(1,[r,new Jo(0,n,o)])}return new Ur(1,[r,new Jo(0,n,o)])},da=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 Ur(0,255&e):new Ur(1,[r,new Jo(1,n,e,"Value was either too large or too small for a byte")]):new Ur(1,[r,new Jo(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[ci(o,511,!0,8,new yt((()=>t),(e=>{t=e}))),t],e[0]?new Ur(0,e[1]):new Ur(1,[r,new Jo(0,n,o)])}return new Ur(1,[r,new Jo(0,n,o)])},ha=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 Ur(0,(e+32768&65535)-32768):new Ur(1,[r,new Jo(1,n,e,"Value was either too large or too small for "+n)]):new Ur(1,[r,new Jo(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[ci(o,511,!1,16,new yt((()=>t),(e=>{t=0|e}))),t],e[0]?new Ur(0,e[1]):new Ur(1,[r,new Jo(0,n,o)])}return new Ur(1,[r,new Jo(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 Ur(0,65535&e):new Ur(1,[r,new Jo(1,n,e,"Value was either too large or too small for "+n)]):new Ur(1,[r,new Jo(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[ci(o,511,!0,16,new yt((()=>t),(e=>{t=e}))),t],e[0]?new Ur(0,e[1]):new Ur(1,[r,new Jo(0,n,o)])}return new Ur(1,[r,new Jo(0,n,o)])},wa=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 Ur(0,~~e):new Ur(1,[r,new Jo(1,n,e,"Value was either too large or too small for an int")]):new Ur(1,[r,new Jo(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[ci(o,511,!1,32,new yt((()=>t),(e=>{t=0|e}))),t],e[0]?new Ur(0,e[1]):new Ur(1,[r,new Jo(0,n,o)])}return new Ur(1,[r,new Jo(0,n,o)])},ma=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 Ur(0,e>>>0):new Ur(1,[r,new Jo(1,n,e,"Value was either too large or too small for "+n)]):new Ur(1,[r,new Jo(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[ci(o,511,!0,32,new yt((()=>t),(e=>{t=e}))),t],e[0]?new Ur(0,e[1]):new Ur(1,[r,new Jo(0,n,o)])}return new Ur(1,[r,new Jo(0,n,o)])};function ga(e,t,n,r){let o;const i=n+".["+Ze(e)+"]";if(Array.isArray(r)){const n=r;return e<n.length?t(i,n[e]):new Ur(1,[i,new Jo(5,"a longer array. Need index `"+Ze(e)+"` but there are only `"+(o=n.length,Ze(o)+"` entries"),r)])}return new Ur(1,[i,new Jo(0,"an array",r)])}function ya(e,t,n){if(Array.isArray(n)){let r=-1;return Vr(Mn,hn(((n,o)=>{if(r=r+1|0,0===n.tag){const i=e(t+".["+Ze(r)+"]",o);return 0===i.tag?new Ur(0,Cn(i.fields[0],n.fields[0])):new Ur(1,i.fields[0])}return n}),new Ur(0,Sn()),n))}return new Ur(1,[t,new Jo(0,"a list",n)])}function va(e,t,n){if(Array.isArray(n)){let r=-1;const o=n;return hn(((n,o)=>{if(r=r+1|0,0===n.tag){const i=n.fields[0],s=e(t+".["+Ze(r)+"]",o);return 0===s.tag?(i[r]=s.fields[0],new Ur(0,i)):new Ur(1,s.fields[0])}return n}),new Ur(0,fn(new Array(o.length),0,o.length,null)),o)}return new Ur(1,[t,new Jo(0,"an array",n)])}function ba(e,t,n,r){const o=t(n,r);return 0===o.tag?e(o.fields[0],n,r):new Ur(1,o.fields[0])}function _a(e,t){let n;const r=e;return n=e=>t=>ga(0,r,e,t),e=>r=>ba($t(3,(e=>{let n;const r=t;return n=e=>t=>ga(1,r,e,t),t=>r=>ba(((t,n,r)=>new Ur(0,[e,t])),$t(2,n),t,r)})),$t(2,n),e,r)}function xa(e){return Ho(e)}function Sa(e){return function(e,t){return new sa(e,t)}(t={Compare:ut},ia(t,e));var t}function Ca(e,t,n,r){let o,i;return t.length!==r.length?new Ur(1,[n,new Jo(6,(o=0|r.length,i=0|t.length,Ht(Ut("Expected %i %s but got %i"))(i)(e)(o)))]):wn(((e,t,r)=>0===r.tag?Vr((e=>Cn(e,r.fields[0])),t(n)(e)):r),r,t,new Ur(0,Sn()))}function Ea(e,t,n,r,o,i){const s=function(e,t){return t.find((e=>ys(e)===r))}(0,Is(n));if(null!=s){const n=s;return 0===i.length?new Ur(0,Bs(n,[])):Vr((e=>Bs(n,An(e))),Ca("union fields",$n((n=>ka(e,t,!1,n[1])),Gs(n)),o,i))}return new Ur(1,[o,new Jo(6,"Cannot find case "+r+" in "+vs(n))])}function Ta(e,t,n,r){const o=new yt(null),i=Lo(vs(r),o,e);let s;if(Rs(r)){const e=$n((e=>[ni(t,ys(e)),ka(i,t,!1,e[1])]),As(r));s=t=>n=>Vr((e=>function(e,t){const n=As(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,An(e))),function(e,t,n){return null===n||Object.getPrototypeOf(n||!1)!==Object.prototype?new Ur(1,[t,new Jo(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?Vr((e=>Cn(e,o.fields[0])),e[1](t+"."+r)(n[r])):o})),e,new Ur(0,Sn()))}(e,t,n))}else if(Ms(r))s=e=>n=>{if("string"==typeof n)return Ea(i,t,r,n,e,[]);if(Array.isArray(n)){const o=n;return Ea(i,t,r,o[0],e,o.slice(1,o.length))}return new Ur(1,[e,new Jo(0,"a string or array",n)])};else{if(!n){let e;const t=vs(r);throw e=Ht(Ut("Cannot generate auto decoder for %s. Please pass an extra decoder."))(t),new Error(e)}s=e=>t=>new Ur(1,[e,new Jo(2,"an extra coder for "+vs(r),t)])}return o.contents=s,s}function ka(e,t,n,r){let o,i,s;const a=vs(r),u=Uo(a,e);if(null==u){if(bs(r)){const n=ka(e,t,!1,_s(r));return e=>t=>va($t(2,n),e,t)}if(Ss(r)){const e=vs(Es(r));if("System.SByte"===e)return e=>t=>{const n=r,o=e,i=t,s=$a(o)(i);if(1===s.tag)return new Ur(1,s.fields[0]);{const e=s.fields[0];return fr(e,Ts(n),{Equals:(e,t)=>e===t,GetHashCode:Qe})?new Ur(0,ks(n,e.toString())):new Ur(1,[o,new Jo(1,vs(n),i,"Unkown value provided for the enum")])}};if("System.Byte"===e)return e=>t=>{const n=r,o=e,i=t,s=da(o)(i);if(1===s.tag)return new Ur(1,s.fields[0]);{const e=s.fields[0];return fr(e,Ts(n),{Equals:(e,t)=>e===t,GetHashCode:Qe})?new Ur(0,ks(n,e.toString())):new Ur(1,[o,new Jo(1,vs(n),i,"Unkown value provided for the enum")])}};if("System.Int16"===e)return e=>t=>{const n=r,o=e,i=t,s=ha(o)(i);if(1===s.tag)return new Ur(1,s.fields[0]);{const e=s.fields[0];return fr(e,Ts(n),{Equals:(e,t)=>e===t,GetHashCode:Qe})?new Ur(0,ks(n,e.toString(a))):new Ur(1,[o,new Jo(1,vs(n),i,"Unkown value provided for the enum")])}var a};if("System.UInt16"===e)return e=>t=>{const n=r,o=e,i=t,s=pa(o)(i);if(1===s.tag)return new Ur(1,s.fields[0]);{const e=s.fields[0];return fr(e,Ts(n),{Equals:(e,t)=>e===t,GetHashCode:Qe})?new Ur(0,ks(n,e.toString())):new Ur(1,[o,new Jo(1,vs(n),i,"Unkown value provided for the enum")])}};if("System.Int32"===e)return e=>t=>{const n=r,o=e,i=t,s=wa(o)(i);if(1===s.tag)return new Ur(1,s.fields[0]);{const e=s.fields[0];return fr(e,Ts(n),{Equals:(e,t)=>e===t,GetHashCode:Qe})?new Ur(0,ks(n,Ze(e))):new Ur(1,[o,new Jo(1,vs(n),i,"Unkown value provided for the enum")])}};if("System.UInt32"===e)return e=>t=>{const n=r,o=e,i=t,s=ma(o)(i);if(1===s.tag)return new Ur(1,s.fields[0]);{const e=s.fields[0];return fr(e,Ts(n),{Equals:(e,t)=>e===t,GetHashCode:Qe})?new Ur(0,ks(n,e.toString())):new Ur(1,[o,new Jo(1,vs(n),i,"Unkown value provided for the enum")])}};{const e=vs(r),t=jt(Ut("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(xs(r)){if(Ds(r)){const n=$n((n=>ka(e,t,!1,n)),Ns(r));return e=>t=>Array.isArray(t)?Vr((e=>An(e)),Ca("tuple elements",n,e,t)):new Ur(1,[e,new Jo(0,"an array",t)])}{const a=vs(Cs(r));if("Microsoft.FSharp.Core.FSharpOption`1[System.Object]"===a)return o=ka(e,t,!0,ss(r)[0]),e=>t=>{return n=$t(2,o),r=e,null==(i=t)?new Ur(0,void 0):Vr(tn,n(r,i));var n,r,i};if("Microsoft.FSharp.Collections.FSharpList`1[System.Object]"===a)return i=ka(e,t,!1,ss(r)[0]),e=>t=>ya($t(2,i),e,t);if("Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"===a){const n=ka(e,t,!1,ss(r)[0]),o=ka(e,t,!1,ss(r)[1]);let i;const a=Gn([e=>t=>function(e,t,n,r){return null===r||Object.getPrototypeOf(r||!1)!==Object.prototype?new Ur(1,[n,new Jo(0,"an object",r)]):dr(((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 Ur(0,Cn([s.fields[0],e.fields[0]],o.fields[0])):new Ur(1,e.fields[0])}return new Ur(1,s.fields[0])}return o}),new Ur(0,Sn()),Object.keys(r))}($t(2,n),$t(2,o),e,t),(s=_a($t(2,n),$t(2,o)),e=>t=>ya($t(2,s),e,t))]);return i=e=>t=>{return n=e,r=t,((e,t)=>{e:for(;;){const o=e,i=t;if(Tn(o))return new Ur(1,[n,new Jo(7,i)]);{const s=fa(n,$t(2,kn(o)),r);if(1===s.tag){e=In(o),t=Bn(i,En(s.fields[0]));continue e}return new Ur(0,s.fields[0])}}})(a,Sn());var n,r},e=>t=>function(e,t,n,r){const o=t(n,r);return 1===o.tag?new Ur(1,o.fields[0]):new Ur(0,e(o.fields[0]))}(xa,$t(2,i),e,t)}if("Microsoft.FSharp.Collections.FSharpSet`1[System.Object]"===a){const n=ka(e,t,!1,ss(r)[0]);return e=>t=>{const r=va($t(2,n),e,t);return 0===r.tag?new Ur(0,Sa(r.fields[0])):new Ur(1,r.fields[0])}}return Ta(e,t,n,r)}}return"System.Boolean"===a?e=>t=>{return n=e,"boolean"==typeof(r=t)?new Ur(0,r):new Ur(1,[n,new Jo(0,"a boolean",r)]);var n,r}:"Microsoft.FSharp.Core.Unit"===a?e=>t=>{return n=e,null==(r=t)?new Ur(0,void 0):new Ur(1,[n,new Jo(0,"null",r)]);var n,r}:"System.String"===a?e=>t=>{return n=e,"string"==typeof(r=t)?new Ur(0,r):new Ur(1,[n,new Jo(0,"a string",r)]);var n,r}:"System.SByte"===a?$a:"System.Byte"===a?da:"System.Int16"===a?ha:"System.UInt16"===a?pa:"System.Int32"===a?wa:"System.UInt32"===a?ma:"System.Double"===a?e=>t=>{return n=e,"number"==typeof(r=t)?new Ur(0,r):new Ur(1,[n,new Jo(0,"a float",r)]);var n,r}:"System.Single"===a?e=>t=>{return n=e,"number"==typeof(r=t)?new Ur(0,r):new Ur(1,[n,new Jo(0,"a float32",r)]);var n,r}:"System.DateTime"===a?e=>t=>function(e,t){if("string"==typeof t){let r,o=Et(-621355968e5,0);return r=[kt(t,new yt((()=>o),(e=>{o=e}))),o],r[0]?new Ur(0,1===(n=r[1]).kind?n:Et(n.getTime(),1)):new Ur(1,[e,new Jo(0,"a datetime",t)])}var n;return new Ur(1,[e,new Jo(0,"a datetime",t)])}(e,t):"System.DateTimeOffset"===a?e=>t=>function(e,t){if("string"==typeof t){let n,r=fi(-621355968e5,0);return n=[$i(t,new yt((()=>r),(e=>{r=e}))),r],n[0]?new Ur(0,n[1]):new Ur(1,[e,new Jo(0,"a datetimeoffset",t)])}return new Ur(1,[e,new Jo(0,"a datetime",t)])}(e,t):"System.TimeSpan"===a?e=>t=>function(e,t){if("string"==typeof t){let n,r=0;return n=[rs(t,new yt((()=>r),(e=>{r=e}))),r],n[0]?new Ur(0,n[1]):new Ur(1,[e,new Jo(0,"a timespan",t)])}return new Ur(1,[e,new Jo(0,"a timespan",t)])}(e,t):"System.Guid"===a?e=>t=>function(e,t){if("string"==typeof t){let n,r="00000000-0000-0000-0000-000000000000";return n=[si(t,new yt((()=>r),(e=>{r=e}))),r],n[0]?new Ur(0,n[1]):new Ur(1,[e,new Jo(0,"a guid",t)])}return new Ur(1,[e,new Jo(0,"a guid",t)])}(e,t):"System.Object"===a?e=>e=>new Ur(0,e):Ta(e,t,n,r)}{const e=u;return t=>n=>e.contents(t)(n)}}const Ia=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 Aa=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 Ia(n)}(e,0)&256)}(e);function Na(e,t){return!t.has(e)&&(t.add(e),!0)}function Ma(e,t){if(e.has(t))return e.get(t);throw new Error(`The given key '${t}' was not present in the dictionary.`)}class Ra{constructor(e,t){const n=new yt(null);this.comparer=t,n.contents=this,this.hashMap=new Map([]),this["init@8-2"]=1;const r=ze(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const e=r["System.Collections.Generic.IEnumerator`1.get_Current"]();Pa(n.contents,e)}}finally{Ve(r)}}get[Symbol.toStringTag](){return"HashSet"}toJSON(e){return Array.from(this)}"System.Collections.IEnumerable.GetEnumerator"(){return ze(this)}GetEnumerator(){return ze(or(this.hashMap.values()))}[Symbol.iterator](){return We(this.GetEnumerator())}"System.Collections.Generic.ICollection`1.Add2B595"(e){Pa(this,e)}"System.Collections.Generic.ICollection`1.Clear"(){Ga(this)}"System.Collections.Generic.ICollection`1.Contains2B595"(e){return Oa(this,e)}"System.Collections.Generic.ICollection`1.CopyToZ2E171D71"(e,t){var n;n=(n,r)=>{e[t+n]=r},dr(((e,t)=>(n(e,t),e+1|0)),0,this)}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|Ba(this)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!1}"System.Collections.Generic.ICollection`1.Remove2B595"(e){return Fa(this,e)}get size(){return 0|Ba(this)}add(e){return Pa(this,e),this}clear(){Ga(this)}delete(e){return Fa(this,e)}has(e){return Oa(this,e)}keys(){return pr((e=>e),this)}values(){return pr((e=>e),this)}entries(){return pr((e=>[e,e]),this)}forEach(e,t){const n=this;hr((t=>{e(t,t,n)}),n)}}function Da(e,t){const n=0|e.comparer.GetHashCode(t);let r,o=null;return r=[(i=e.hashMap,s=n,a=new yt((()=>o),(e=>{o=e})),!!i.has(s)&&(a.contents=i.get(s),!0)),o],r[0]?[!0,n,r[1].findIndex((n=>e.comparer.Equals(t,n)))]:[!1,n,-1];var i,s,a}function Ga(e){e.hashMap.clear()}function Ba(e){let t=0,n=ze(e.hashMap.values());try{for(;n["System.Collections.IEnumerator.MoveNext"]();)t=t+n["System.Collections.Generic.IEnumerator`1.get_Current"]().length|0}finally{Ve(n)}return 0|t}function Pa(e,t){const n=Da(e,t);return n[0]?!(n[2]>-1)&&(Ma(e.hashMap,n[1]).push(t),!0):(e.hashMap.set(n[1],[t]),!0)}function Oa(e,t){const n=Da(e,t);let r;switch(r=n[0]&&n[2]>-1?0:1,r){case 0:return!0;case 1:return!1}}function Fa(e,t){const n=Da(e,t);let r;switch(r=n[0]&&n[2]>-1?0:1,r){case 0:return Ma(e.hashMap,n[1]).splice(n[2],1),!0;case 1:return!1}}Ho([["AFG","Afghanistan"],["ALA","Aland Islands"],["ALB","Albania"],["DZA","Algeria"],["ASM","American Samoa"],["AND","Andorra"],["AGO","Angola"],["AIA","Anguilla"],["ATA","Antarctica"],["ATG","Antigua and Barbuda"],["ARG","Argentina"],["ARM","Armenia"],["ABW","Aruba"],["AUT","Austria"],["AZE","Azerbaijan"],["BHS","Bahamas"],["BHR","Bahrain"],["BGD","Bangladesh"],["BRB","Barbados"],["BLR","Belarus"],["BEL","Belgium"],["BLZ","Belize"],["BEN","Benin"],["BMU","Bermuda"],["BTN","Bhutan"],["BOL","Bolivia"],["BES","Bonaire Saint Eustatius, and Saba Islands"],["BIH","Bosnia and Herzegovina"],["BWA","Botswana"],["BVT","Bouvet Island"],["BRA","Brazil"],["IOT","British Indian Ocean Territory"],["VGB","British Virgin Islands"],["BRN","Brunei Darussalam"],["BGR","Bulgaria"],["BFA","Burkina Faso"],["BDI","Burundi"],["KHM","Cambodia"],["CMR","Cameroon"],["CAN","Canada"],["CPV","Cabo Verde"],["CYM","Cayman Islands"],["CAF","Central African Republic"],["TCD","Chad"],["CHL","Chile"],["CHN","China"],["CXR","Christmas Island"],["CCK","Cocos (Keeling) Islands"],["COL","Colombia"],["COM","Comoros"],["COD","Congo, Democratic Republic of (was Zaire)"],["COG","Congo, Republic of"],["COK","Cook Islands"],["CRI","Costa Rica"],["CIV","Cote D'Ivoire (Ivory Coast)"],["HRV","Croatia (Hrvatska)"],["CUB","Cuba"],["CUW","Curacao"],["CYP","Cyprus"],["CZE","Czech Republic"],["DNK","Denmark"],["DJI","Djibouti"],["DMA","Dominica"],["DOM","Dominican Republic"],["ECU","Ecuador"],["EGY","Egypt"],["SLV","El Salvador"],["GNQ","Equatorial Guinea"],["ERI","Eritrea"],["EST","Estonia"],["SWZ","eSwatini"],["ETH","Ethiopia"],["FLK","Falkland Islands (Malvinas)"],["FRO","Faroe Islands"],["FJI","Fiji"],["FIN","Finland"],["FRA","France"],["GUF","French Guiana"],["PYF","French Polynesia"],["ATF","French Southern Territories"],["GAB","Gabon"],["GMB","Gambia"],["GEO","Georgia"],["DEU","Germany"],["GHA","Ghana"],["GIB","Gibraltar"],["GRC","Greece"],["GRL","Greenland"],["GRD","Grenada"],["GLP","Guadeloupe"],["GUM","Guam"],["GTM","Guatemala"],["GGY","Guernsey"],["GIN","Guinea"],["GNB","Guinea-Bissau"],["GUY","Guyana"],["HTI","Haiti"],["HMD","Heard and McDonald Islands"],["VAT","Holy See (Vatican City State)"],["HND","Honduras"],["HKG","Hong Kong"],["HRV","Hrvatska (Croatia)"],["HUN","Hungary"],["ISL","Iceland"],["IND","India"],["IDN","Indonesia"],["IRN","Iran"],["IRQ","Iraq"],["IRL","Ireland"],["IMN","Isle of Man, The"],["ISR","Israel"],["ITA","Italy"],["CIV","Ivory Coast (Cote D'Ivoire)"],["JAM","Jamaica"],["JPN","Japan"],["JEY","Jersey"],["JOR","Jordan"],["KAZ","Kazakhstan"],["KEN","Kenya"],["KIR","Kiribati"],["PRK","Korea, Democratic People's Republic of (North Korea)"],["KOR","Korea, Republic of (South Korea)"],["KWT","Kuwait"],["KGZ","Kyrgyzstan"],["LAO","Laos"],["LVA","Latvia"],["LBN","Lebanon"],["LSO","Lesotho"],["LBR","Liberia"],["LBY","Libya"],["LIE","Liechtenstein"],["LTU","Lithuania"],["LUX","Luxembourg"],["MAC","Macau"],["MKD","North Macedonia, Republic of"],["MDG","Madagascar"],["MWI","Malawi"],["MYS","Malaysia"],["MDV","Maldives"],["MLI","Mali"],["MLT","Malta"],["MHL","Marshall Islands"],["MTQ","Martinique"],["MRT","Mauritania"],["MUS","Mauritius"],["MYT","Mayotte"],["MEX","Mexico"],["FSM","Micronesia, Federated States of"],["MDA","Moldova"],["MCO","Monaco"],["MNG","Mongolia"],["MNE","Montenegro"],["MSR","Montserrat"],["MAR","Morocco"],["MOZ","Mozambique"],["MMR","Myanmar (was Burma)"],["NAM","Namibia"],["NRU","Nauru"],["NPL","Nepal"],["NLD","Netherlands"],["NCL","New Caledonia"],["NZL","New Zealand"],["NIC","Nicaragua"],["NER","Niger"],["NGA","Nigeria"],["NIU","Niue"],["NFK","Norfolk Island"],["MNP","Northern Mariana Islands"],["PRK","North Korea (Korea, Democratic People's Republic of)"],["NOR","Norway"],["OMN","Oman"],["PAK","Pakistan"],["PLW","Palau"],["PSE","Palestinian Territories"],["PAN","Panama"],["PNG","Papua New Guinea"],["PRY","Paraguay"],["PER","Peru"],["PHL","Philippines"],["PCN","Pitcairn Island"],["POL","Poland"],["PRT","Portugal"],["PRI","Puerto Rico"],["QAT","Qatar"],["REU","Reunion"],["ROU","Romania"],["RUS","Russian Federation"],["RWA","Rwanda"],["BLM","Saint Barthelemy"],["SHN","Saint Helena"],["KNA","Saint Kitts and Nevis"],["LCA","Saint Lucia"],["SXM","Saint Maarten (Dutch part)"],["MAF","Saint Martin (French part)"],["SPM","Saint Pierre and Miquelon"],["VCT","Saint Vincent and the Grenadines"],["WSM","Samoa"],["SMR","San Marino"],["STP","Sao Tome and Principe"],["SAU","Saudi Arabia"],["SEN","Senegal"],["SRB","Serbia"],["SYC","Seychelles"],["SLE","Sierra Leone"],["SGP","Singapore"],["SVK","Slovakia (Slovak Republic)"],["SVN","Slovenia"],["SLB","Solomon Islands"],["SOM","Somalia"],["ZAF","South Africa"],["SGS","South Georgia and the South Sandwich Islands"],["KOR","South Korea (Korea, Republic of)"],["SSD","South Sudan"],["ESP","Spain"],["LKA","Sri Lanka"],["SDN","Sudan"],["SUR","Suriname"],["SJM","Svalbard and Jan Mayen Islands"],["SWE","Sweden"],["CHE","Switzerland"],["SYR","Syria"],["TWN","Taiwan"],["TJK","Tajikistan"],["TZA","Tanzania"],["THA","Thailand"],["TLS","Timor-Leste"],["TGO","Togo"],["TKL","Tokelau"],["TON","Tonga"],["TTO","Trinidad and Tobago"],["TUN","Tunisia"],["TUR","Turkey"],["TKM","Turkmenistan"],["TCA","Turks and Caicos Islands"],["TUV","Tuvalu"],["UGA","Uganda"],["UKR","Ukraine"],["ARE","United Arab Emirates"],["GBR","United Kingdom"],["USA","United States"],["UMI","United States Minor Outlying Islands"],["VIR","United States Virgin Islands"],["URY","Uruguay"],["UZB","Uzbekistan"],["VUT","Vanuatu"],["VAT","Vatican City State (Holy See)"],["VEN","Venezuela"],["VNM","Vietnam"],["WLF","Wallis and Futuna"],["ESH","Western Sahara"],["YEM","Yemen"],["ZMB","Zambia"],["ZWE","Zimbabwe"]]);class La extends mt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["HELP","VETStudentLoan","FinancialSupplement","StudentStartUpLoan","TradeSupportLoan"]}}class Ua extends mt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["AustralianResidentForTaxPurposes","ForeignResidentForTaxPurposes","WorkingHolidayMaker"]}}class Va extends mt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["AustralianResidentForTaxPurposes","ForeignResidentForTaxPurposes","WorkingHolidayMaker"]}}const Ha=new Va(2,{HomeCountry:void 0});class ja extends mt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["FullTime","PartTime","LabourHire","SuperIncomeStream","Casual"]}}class za extends mt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Tfn"]}}class Wa extends mt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Under18AndBelowTaxThreshold","Pending","Pensioner"]}}class Ya extends mt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["PreviousSurname"]}}function Ka(e){return new Ya(0,e)}function qa(e){return e.fields[0]}function Za(e){return Xr(0,(()=>Hr((e=>{const t=e;return Qr(0,function(e,t){return function(e){if(Le(e))return 0===e.length;if(e instanceof mn)return Tn(e);{const t=nr(e);try{return!t["System.Collections.IEnumerator.MoveNext"]()}finally{Ve(t)}}}(t)?new Ur(1,e):new Ur(0,void 0)}("TFN must not contain all zeros",(n={Equals:(e,t)=>e===t,GetHashCode:Xe},function(e){return e instanceof mn?An(e):Array.from(e)}(function(e,t,n){return rr((()=>{const r=new Ra(e,n);return $r((e=>Na(e,r)),t)}))}(["0"],t.split(""),n)))),(()=>t));var n}),function(e){return Xr(0,(()=>{const t=Xt(Aa,e);return Hr((()=>Hr((()=>Qr(0,zr(0,"TFN is not valid",function(e,t){let n=t.GetZero();for(let r=0;r<=e.length-1;r++)n=t.Add(n,e[r]);return n}(function(e,t,n,r){if(t.length!==n.length)throw new Error("Arrays had different lengths");const o=cn(r,t.length);for(let r=0;r<=t.length-1;r++)o[r]=e(t[r],n[r]);return o}(((e,t)=>e*t),$n((e=>li(e,511,!1,32)),t.split(""),Int32Array),new Int32Array([1,4,3,7,5,8,6,9,10]),Int32Array),{GetZero:()=>0,Add:(e,t)=>e+t})%11),(()=>t))),zr(9,"TFN must be 9 digits",t.length))),zr(e,"TFN must contain digits only",t))}))()}(e))))()}function Ja(e){switch(e.tag){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;default:return 0}}function Xa(e){switch(e){case 0:return new Ur(0,new La(0));case 1:return new Ur(0,new La(1));case 2:return new Ur(0,new La(2));case 3:return new Ur(0,new La(3));case 4:return new Ur(0,new La(4));default:return new Ur(1,"Invalid DebtSupport")}}function Qa(e){switch(e.tag){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;default:return 0}}new class extends gt{constructor(e){super(),this.Unused=e}}(void 0);const eu=e=>{return function(e,t){return function(e,t,n){e:for(;;){const r=e,o=t,i=n;if(Tn(i))return Vr(Mn,r);{const s=Xr(0,(()=>Hr((e=>Qr(0,r,(t=>Cn(e,t)))),o(kn(i)))))();if(1===s.tag)return s;e=s,t=o,n=In(i);continue e}}}(new Ur(0,Sn()),e,t)}(Xa,(t={Equals:(e,t)=>e===t,GetHashCode:Qe},ar(function(e,t){return rr((()=>{const n=new Ra([],t);return $r((e=>Na(e,n)),e)}))}(e,t))));var t};function tu(e){switch(e.tag){case 1:return 1;case 2:return 2;default:return 0}}class nu extends mt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Tfn","Exempted"]}}function ru(){return fs("Dto.Dto.ProvidedTfnInformationDto",[],nu,(()=>[[["Item",ws]],[["Item",hs("Dto.Dto.ExemptionReasonDto",gs,[["Under18AndBelowTaxThreshold",0],["Pending",1],["Pensioner",2]])]]]))}class ou extends mt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["TfnTruncated","Exempted"]}}class iu extends gt{constructor(e,t,n,r,o,i){super(),this.TfnInformation=e,this.PreviousSurname=t,this.ResidencyStatus=0|n,this.EmploymentBasis=0|r,this.IsTaxFreeThresholdClaimed=o,this.HasDebtSupport=i}}class su extends gt{constructor(e,t){super(),this.Meta=e,this.Data=t}}class au extends mt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["AustralianResidentForTaxPurposes","ForeignResidentForTaxPurposes","WorkingHolidayMaker"]}}function uu(){return fs("Dto.Commands.ResidencyStatusV2Dto",[],au,(()=>[[],[],[["Item",ws]]]))}class lu extends mt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Create","CreateV2","ChangeTfnInformation","ChangePreviousSurname","ChangeResidencyStatus","ChangeResidencyStatusV2","ChangeEmploymentBasis","ChangeTaxFreeThresholdClaimed","ChangeDebtSupport"]}}function cu(e){return e}function fu(e){return Array.from(e)}function $u(e){return Ct(e,"O")}function du(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 es(e/864e5)}(e)),o=Math.abs(function(e){return es(e%864e5/36e5)}(e)),i=Math.abs(function(e){return es(e%36e5/6e4)}(e)),s=Math.abs(function(e){return es(e%6e4/1e3)}(e)),a=Math.abs(function(e){return es(e%1e3)}(e));return`${e<0?"-":""}${0!==r||"c"!==t&&"g"!==t?"c"===t?r+".":r+":":""}${"g"===t?o:Ke(o,2)}:${Ke(i,2)}:${Ke(s,2)}${0!==a||"c"!==t&&"g"!==t?"g"===t?"."+Ke(a,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}(a):""}`}(e)}function hu(){return null}function pu(e){return Ct(e,"O")}function wu(e,t,n,r){const o=new yt(null),i=Lo(vs(r),o,e);let s;if(Rs(r)){const e=$n((e=>{const r=ni(t,ys(e)),o=mu(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}}),As(r));s=t=>dr(((e,n)=>n(t)(e)),{},e)}else{if(!Ms(r)){let e;const t=vs(r);throw e=Ht(Ut("Cannot generate auto encoder for %s. Please pass an extra encoder."))(t),new Error(e)}s=e=>{const o=function(e,t){const n=Is(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],a=o[1],u=0|a.length;if(0===u)return ys(s);{const e=0|u,r=Gs(s),o=fn(new Array(e+1),0,e+1,null);o[0]=ys(s);for(let s=1;s<=e;s++){const e=mu(i,t,n,r[s-1][1]);o[s]=e(a[s-1])}return o}}}return o.contents=s,s}function mu(e,t,n,r){const o=vs(r),i=Uo(o,e);if(null==i){if(bs(r)){const o=mu(e,t,n,_s(r));return e=>fu(pr(o,e))}if(Ss(r)){const e=vs(Es(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=vs(r);return jt(Ut("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(xs(r)){if(Ds(r)){const o=$n((r=>mu(e,t,n,r)),Ns(r));return e=>{return fu((t=(e,t)=>o[e](t),n=e,lr((()=>nr(n)),((e,n)=>n["System.Collections.IEnumerator.MoveNext"]()?tn(t(e,n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0),(e=>{Ve(e)}))));var t,n}}{const o=vs(Cs(r));if("Microsoft.FSharp.Core.FSharpOption`1[System.Object]"===o){const o=new Ye((()=>{return o=mu(e,t,n,ss(r)[0]),e=>{return null!=(t=un(o,e))?nn(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=mu(e,t,n,ss(r)[0]);return e=>fu(pr(o,e))}if("Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"===o){const o=ss(r)[0],i=mu(e,t,n,ss(r)[1]);if("System.String"===vs(o)||"System.Guid"===vs(o))return e=>dr(((e,t)=>{const n=t;return e[n[0]]=i(n[1]),e}),{},e);{let r;const s=mu(e,t,n,o);return r=s,e=>fu(pr((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?hu:"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?pu:"System.DateTimeOffset"===o?$u:"System.TimeSpan"===o?du:"System.Guid"===o?cu:"System.Object"===o?e=>e:wu(e,t,n,r)}{const e=i;return t=>e.contents(t)}}function gu(e){return Ht(Ut("%s/tfn-declaration/backend"))(e)}function yu(e,t){return to(0,(()=>{const n=qo(function(e){return new ro(0,"Authorization",e)}(Ht(Ut("Bearer %s"))(e)),t);let r;const o=Zo(n);return r=Mr.Bind(o,(e=>Mr.Return(new Ur(0,e)))),Mr.Delay((()=>Mr.Bind(r,(e=>{let t,r;const o=e;return 1===o.tag?Mr.Return(new Ur(1,o.fields[0])):Mr.ReturnFrom((t=o.fields[0],429===t.statusCode||t.statusCode>=500?(r=Zo(n),Mr.Bind(r,(e=>Mr.Return(new Ur(0,e))))):eo(0,t)))}))))}))}const vu=e=>function(e,t){try{return fa("$",e,JSON.parse(t))}catch(e){if(e instanceof SyntaxError)return new Ur(1,"Given an invalid JSON: "+e.message);throw e}}($t(2,function(e,t,n){const r=an(t,new Xo(0));return ka(function(e){return null!=e?Vo(((e,t)=>new yt(t[1])),e.Coders):jo()}(void 0),r,!1,e)}(ls("Dto.BackendApiModels.Read.TfnDeclarationDetailsWithMeta",[],su,(()=>[["Meta",cs(["AccountId",ws])],["Data",$s(ls("Dto.BackendApiModels.Read.TfnDeclarationDetails",[],iu,(()=>[["TfnInformation",fs("Dto.BackendApiModels.Read.TfnInformation",[],ou,(()=>[[["Item",ws]],[["Item",hs("Dto.Dto.ExemptionReasonDto",gs,[["Under18AndBelowTaxThreshold",0],["Pending",1],["Pensioner",2]])]]]))],["PreviousSurname",$s(ws)],["ResidencyStatus",hs("Dto.Dto.ResidencyStatusDto",gs,[["AustralianResidentForTaxPurposes",0],["ForeignResidentForTaxPurposes",1],["WorkingHolidayMaker",2]])],["EmploymentBasis",hs("Dto.Dto.EmploymentBasisDto",gs,[["FullTime",0],["PartTime",1],["LabourHire",2],["SuperIncomeStream",3],["Casual",4]])],["IsTaxFreeThresholdClaimed",ms],["HasDebtSupport",ds(hs("Dto.Dto.DebtSupportDto",gs,[["HELP",0],["VETStudentLoan",1],["FinancialSupplement",2],["StudentStartUpLoan",3],["TradeSupportLoan",4]]))]])))]])),new Xo(1))),e);function bu(e,t){return to(0,(()=>{const n=yu(e,Ko(new no(0),Yo(gu(t))));return Mr.Delay((()=>Mr.Bind(n,(e=>{let t,n;const r=e;return 1===r.tag?Mr.Return(new Ur(1,r.fields[0])):Mr.ReturnFrom((t=r.fields[0],200===t.statusCode?(n=vu(t.responseText),Mr.Return(n)):Mr.Return(new Ur(1,"Unexpected response from backend"))))}))))}))}function _u(e,t){return Xr(0,(()=>Hr((n=>{const r=n,o=un(qa,e.PreviousSurname.Value);return Hr((n=>{const i=0|n;return Hr((n=>{const s=0|n;return Hr((n=>{let a,u;const l=n,c=(e=>Pn(Qa,e))(e.DebtSupportCheckboxGroup),f=t.Data;if(null!=f){const e=f;return Jr(0,Bn(0===r.tag?Sn():1===r.fields[0].tag?(a=0|tu(r.fields[0].fields[0]),u=e.TfnInformation,1===u.tag&&u.fields[0]===a?Sn():En(new lu(2,new nu(1,a)))):En(new lu(2,new nu(0,r.fields[0].fields[0].fields[0]))),ar(rr((()=>cr(ot(o,e.PreviousSurname)?ir():sr(new lu(3,o)),rr((()=>cr(i!==e.ResidencyStatus?sr(new lu(4,i)):ir(),rr((()=>cr(s!==e.EmploymentBasis?sr(new lu(6,s)):ir(),rr((()=>cr(l!==e.IsTaxFreeThresholdClaimed?sr(new lu(7,l)):ir(),rr((()=>ot(On(c,{Compare:st}),On(e.HasDebtSupport,{Compare:st}))?ir():sr(new lu(8,c)))))))))))))))))))}return Qr(0,0===r.tag?new Ur(1,"New TFN declaration cannot have a truncated TFN"):1===r.fields[0].tag?new Ur(0,new nu(1,tu(r.fields[0].fields[0]))):new Ur(0,new nu(0,r.fields[0].fields[0].fields[0])),(e=>En(new lu(0,{AccountId:t.Meta.AccountId,EmploymentBasis:s,HasDebtSupport:c,IsTaxFreeThresholdClaimed:l,PreviousSurname:o,ResidencyStatus:i,TfnInformation:e}))))}),jr("missing is tax-free threshold claimed",un((e=>1!==e.tag),e.ClaimTaxFreeThreshold.Selected)))}),jr("missing employment basis",un(Ja,e.EmploymentBasisRadioButtonGroup.Value)))}),jr("missing residency status",un((e=>function(e){switch(e.tag){case 1:return 1;case 2:return 2;default:return 0}}(function(e){switch(e.tag){case 1:return new Va(1);case 2:return Ha;default:return new Va(0)}}(e))),e.ResidencyStatusRadioButtonGroup.Value)))}),jr("missing TFN info",e.TfnInformation.Value))))()}function xu(e,t,n){return to(0,(()=>{let r;const o=e.PreExistingTfnDec;let i,s;switch(2===o.tag&&0===o.fields[0].tag?(i=0,s=o.fields[0].fields[0]):i=1,i){case 0:r=to(0,(()=>eo(0,s)));break;case 1:r=bu(t,n)}return Mr.Delay((()=>Mr.Bind(r,(r=>{let o,i,s;const a=r;return 1===a.tag?Mr.Return(new Ur(1,a.fields[0])):Mr.ReturnFrom((o=a.fields[0],s=_u(e,o),i=Mr.Return(s),Mr.Delay((()=>Mr.Bind(i,(e=>{let r,i,s;const a=e;return 1===a.tag?Mr.Return(new Ur(1,a.fields[0])):Mr.ReturnFrom((r=a.fields[0],Tn(r)?eo(0,o):(i=yu(t,(u=new oo(1,function(e,t){return JSON.stringify(t,$t(2,null),tn(e))}(0,function(e,t,n,r){const o=an(t,new Xo(0)),i=an(void 0,!0);return mu(function(e){return null!=e?Vo(((e,t)=>new yt(t[0])),e.Coders):jo()}(void 0),o,i,e)}(ds(fs("Dto.Commands.TfnDeclarationCommandDto",[],lu,(()=>[[["Item",cs(["AccountId",ws],["EmploymentBasis",hs("Dto.Dto.EmploymentBasisDto",gs,[["FullTime",0],["PartTime",1],["LabourHire",2],["SuperIncomeStream",3],["Casual",4]])],["HasDebtSupport",ds(hs("Dto.Dto.DebtSupportDto",gs,[["HELP",0],["VETStudentLoan",1],["FinancialSupplement",2],["StudentStartUpLoan",3],["TradeSupportLoan",4]]))],["IsTaxFreeThresholdClaimed",ms],["PreviousSurname",$s(ws)],["ResidencyStatus",hs("Dto.Dto.ResidencyStatusDto",gs,[["AustralianResidentForTaxPurposes",0],["ForeignResidentForTaxPurposes",1],["WorkingHolidayMaker",2]])],["TfnInformation",ru()])]],[["Item",cs(["AccountId",ws],["EmploymentBasis",hs("Dto.Dto.EmploymentBasisDto",gs,[["FullTime",0],["PartTime",1],["LabourHire",2],["SuperIncomeStream",3],["Casual",4]])],["HasDebtSupport",ds(hs("Dto.Dto.DebtSupportDto",gs,[["HELP",0],["VETStudentLoan",1],["FinancialSupplement",2],["StudentStartUpLoan",3],["TradeSupportLoan",4]]))],["IsTaxFreeThresholdClaimed",ms],["PreviousSurname",$s(ws)],["ResidencyStatus",uu()],["TfnInformation",ru()])]],[["Item",ru()]],[["Item",$s(ws)]],[["Item",hs("Dto.Dto.ResidencyStatusDto",gs,[["AustralianResidentForTaxPurposes",0],["ForeignResidentForTaxPurposes",1],["WorkingHolidayMaker",2]])]],[["Item",uu()]],[["Item",hs("Dto.Dto.EmploymentBasisDto",gs,[["FullTime",0],["PartTime",1],["LabourHire",2],["SuperIncomeStream",3],["Casual",4]])]],[["Item",ms]],[["Item",ds(hs("Dto.Dto.DebtSupportDto",gs,[["HELP",0],["VETStudentLoan",1],["FinancialSupplement",2],["StudentStartUpLoan",3],["TradeSupportLoan",4]]))]]]))),new Xo(1))(r))),l=Ko(new no(2),Yo(gu(n))),s=new io(l.url,l.method,l.headers,l.withCredentials,l.overridenMimeType,l.overridenResponseType,l.timeout,u),qo(new ro(0,"Content-Type","application/json"),s))),Mr.Delay((()=>Mr.Bind(i,(e=>{let t,n;const r=e;return 1===r.tag?Mr.Return(new Ur(1,r.fields[0])):Mr.ReturnFrom((t=r.fields[0],200===t.statusCode?(n=vu(t.responseText),Mr.Return(n)):Mr.Return(new Ur(1,"Unexpected response from backend"))))})))))));var u,l}))))))}))))}))}function Su(e,t,n){Rn((n=>{try{n(t)}catch(t){e(t)}}),n)}function Cu(){return Sn()}function Eu(e,t){return Pn((t=>n=>{t((t=>{n(e(t))}))}),t)}function Tu(e){return En((t=>{t(e)}))}function ku(e,t,n,r){return En((o=>{e(t).then((e=>o(n(e)))).catch((e=>o(r(e))))}))}function Iu(e,t,n,r,o){const i=function(e,t,n,r){const o=0|ut(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|ut(n,t);return i&&o<=0||!i&&o>=0?[n,r(n,e)]:void 0}}(t,n,r,o);return rr((()=>{return t=i,n=e,tr((()=>function(e,t){let n,r=t;return Qn((()=>{if(null!=n){const e=n[0];return n[1],e}return qn()}),(()=>{if(n=e(r),null!=n){n[0];const e=n[1];return r=e,!0}return!1}),(()=>{}))}(t,n)));var t,n}))}class Au extends mt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Writable","ReadWritable"]}}class Nu{constructor(e){this.state=new Au(0,fn(new Array(lt(st,e,10)),0,lt(st,e,10),null),0)}}function Mu(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 Au(0,o,n):new Au(1,o,n,i),tn(o[r])}}class Ru extends gt{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 Du(e,t,n){return new Ru(e,t,(e=>Cu()),n,$t(2,(e=>{const t=pt(1,n,[e]);return e=>{t(e)}})),(e=>{var t,n;t=e[0],n=e[1],console.error(tn(t),n)}),$t(2,(e=>e)))}function Gu(e,t){return new Ru(t.init,t.update,t.subscribe,t.view,e,t.onError,t.syncDispatch)}function Bu(e,t){const n=t.init(e),r=n[0],o=new Nu(10);let i=!1,s=r;const a=pt(1,t.syncDispatch,[e=>{if(i)!function(e,t){const n=e.state;if(1===n.tag){const i=0|n.fields[1],s=0|n.fields[2],a=n.fields[0];a[i]=t;const u=(i+1)%a.length|0;e.state=u===s?new Au(1,(r=s,o=a,Array.from(rr((()=>cr(wr(r,o),rr((()=>{return cr((e=r,t=o,lr((()=>nr(t)),((t,n)=>{if(t<e){if(n["System.Collections.IEnumerator.MoveNext"]())return tn(n["System.Collections.Generic.IEnumerator`1.get_Current"]());throw new Error(Kn+"\\nParameter name: source")}}),(e=>{Ve(e)}))),rr((()=>mr((e=>sr(null)),Iu(0,1,o.length,0,((e,t)=>e+t))))));var e,t}))))))),a.length,0):new Au(1,a,u,s)}else{const r=0|n.fields[1],o=n.fields[0];o[r]=t;const i=(r+1)%o.length|0;e.state=new Au(1,o,i,r)}var r,o}(o,e);else{i=!0;let n=tn(e);for(;null!=n;){const e=nn(n);try{const n=t.update(e,s),r=n[0];t.setState(r,a),Su((n=>{t.onError([Ht(Ut("Error in command while handling: %A"))(e),n])}),a,n[1]),s=r}catch(n){t.onError([Ht(Ut("Unable to process the message: %A"))(e),n])}n=Mu(o)}i=!1}}]);t.setState(r,a),Su((e=>{t.onError(["Error intitializing:",e])}),a,function(e){const t=yn();let n=t;const r=e=>{n=Nn(((e,t)=>{const n=new mn(t,void 0);return e.tail=n,n}),n,e)};if(Le(e))e.forEach(r);else if(e instanceof mn)Rn(r,e);else{const t=ze(e);try{for(;t["System.Collections.IEnumerator.MoveNext"]();)r(t["System.Collections.Generic.IEnumerator`1.get_Current"]())}finally{Ve(t)}}const o=n,i=yn();return o.tail=i,xn(t)}(Gn([(()=>{try{return t.subscribe(r)}catch(e){return t.onError(["Unable to subscribe:",e]),Cu()}})(),n[1]])))}class Pu{constructor(){this.hasDisposedOnce=!1,this.state=void 0,this.listener=void 0,this.dispatcher=void 0}}function Ou(){return new Pu}function Fu(e,t,n,r){Bu(t,Gu(((e,t)=>{!function(e,t,n){e.state=tn(t),e.dispatcher=n;const r=e.listener;null!=r&&r(t)}(n,e,t)}),e()));const o=function(e){return e.state}(n);if(null!=o)return nn(o);throw new Error("Elmish program has not initialized")}function Lu(e,t){return function(e,t,n){const r=vr(Ou)[0],o=vr((()=>Fu(e,t,r))),i=o[1];return _r((()=>(function(e){return e.hasDisposedOnce}(r)&&i(Fu(e,t,r)),yr((()=>{!function(e){const t=e.state;if(null!=t){const e=nn(t);Ue(e)&&Ve(e)}e.dispatcher=void 0,e.state=void 0,e.hasDisposedOnce=!0}(r)})))),an(n,[])),function(e,t){null==e.listener&&(e.listener=t)}(r,i),[o[0],e=>{!function(e,t){const n=e.dispatcher;null!=n&&n(t)}(r,e)}]}(e,void 0,t)}function Uu(e,t,n){return Lu((()=>Du((()=>e),t,((e,t)=>{}))),n)}class Vu extends gt{constructor(e,t){super(),this.Value=e,this.Meta=t}}function Hu(){return new Vu(void 0,{Valid:!1})}function ju(e){return new Vu(e,{Valid:!0})}function zu(e){switch(e){case"Under18AndBelowTaxThreshold":return new Wa(0);case"Pending":return new Wa(1);case"Pensioner":return new Wa(2);default:return}}function Wu(e){switch(e){case"AustralianResidentForTaxPurposes":return new Ua(0);case"ForeignResidentForTaxPurposes":return new Ua(1);case"WorkingHolidayMaker":return new Ua(2);default:return}}function Yu(e){switch(e){case"HELP":return new La(0);case"VETStudentLoan":return new La(1);case"FinancialSupplement":return new La(2);case"StudentStartUpLoan":return new La(3);case"TradeSupportLoan":return new La(4);default:return}}function Ku(e){switch(e){case"FullTime":return new ja(0);case"PartTime":return new ja(1);case"LabourHire":return new ja(2);case"SuperIncomeStream":return new ja(3);case"Casual":return new ja(4);default:return}}function qu(e){return $("p",{className:qt(" ",["block","text-sm","font-medium","text-gray-700","leading-5"]),children:e})}class Zu extends mt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Yes","No"]}}class Ju extends mt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Select","SelectInternal"]}}class Xu extends gt{constructor(e,t){super(),this.Selected=e,this.Meta=t}}function Qu(e){return new Xu(e,{Touched:!1})}function el(e,t){return 1===e.tag?e.fields[1]||!t.Meta.Touched?new Xu(e.fields[0],t.Meta):t:new Xu(e.fields[0],{Touched:!0})}function tl(e){const t=ot(e.Parent.State.Selected,e.Selection)?Gn(["border","bg-white","border-gray-200","shadow-sm","text-gray-900"]):Gn(["shadow-none","hover:bg-primary-hover","text-gray-700"]);return $("button",{className:qt(" ",Bn(Gn(["relative","w-1/2","border-gray-200","rounded-md","shadow-sm","py-2","text-sm","font-medium","whitespace-nowrap","focus:outline-none","focus:ring-2","focus:ring-primary-focus","focus:z-10","w-auto","px-8"]),t)),type:"button",name:"yesNoButtonGroup",onClick:t=>{e.Parent.Dispatch(new Ju(0,e.Selection))},disabled:ot(e.Parent.Disable,e.Selection),children:wt(e.Selection)})}function nl(e){let t;return $("div",ct(Gn([["className",qt(" ",["relative","self-start","bg-gray-100","rounded-lg","p-0.5","flex","mt-2","space-x-0.5"])],(t=[tl({Parent:e,Selection:new Zu(0)}),tl({Parent:e,Selection:new Zu(1)})],["children",Fn.Children.toArray(Array.from(t))])])))}class rl extends mt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Select"]}}class ol extends gt{constructor(e){super(),this.Selected=e}}function il(e){let t;const n=Uu((r=e.InitialValue,[new ol(r),Cu()]),((t,n)=>function(e,t,n){const r=function(e,t){return new ol(e.fields[0])}(t);return e(new Vu(r.Selected,{Valid:null!=r.Selected})),[r,Cu()]}(e.OnUpdate,t)));var r;return $("div",ct(Gn([["className",qt(" ",["space-y-2","mt-2"])],(t=ar(rr((()=>mr((t=>{let r,o;const i=t[0];return sr($("label",ct(Gn([["className",qt(" ",["flex","items-start"])],(r=[$("input",{className:qt(" ",["focus:ring-primary-focus","pt-1","block","mt-1","h-4","w-4","text-primary-base","border-gray-300"]),type:"radio",name:e.Name,id:i,checked:on(n[0].Selected)===i,onChange:e=>{e.target.checked,n[1](new rl(0,i))}}),$("label",ct(Gn([["className",qt(" ",["ml-3","block","text-sm"])],["for",i],(o=ar(rr((()=>cr(sr($("span",{className:qt(" ",["block","text-gray-900"]),children:t[1]})),rr((()=>{const e=t[2];if(null==e)return sr(null);{const t=e;return sr($("span",{className:qt(" ",["block","text-gray-500"]),children:t}))}})))))),["children",Fn.Children.toArray(Array.from(o))])])))],["children",Fn.Children.toArray(Array.from(r))])]))))}),e.ValueLabelPairs)))),["children",Fn.Children.toArray(Array.from(t))])])))}class sl extends mt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["SetText","SetTouched"]}}class al extends gt{constructor(e,t){super(),this.Text=e,this.Meta=t}}class ul extends mt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Number","Text"]}}function ll(e){let t;const n=Uu(function(e,t){const n=an(e,"");return[new al(n,{Touched:!1,Valid:t(n)}),Cu()]}(e.InitialValue,e.Validator),((t,n)=>function(e,t,n,r){const o=function(e,t,n){if(1===t.tag)return new al(n.Text,{Touched:!0,Valid:n.Meta.Valid});{const r=t.fields[0];return new al(r,{Touched:n.Meta.Touched,Valid:e(r)})}}(t,n,r);return e(new Vu(o.Text,{Valid:o.Meta.Valid})),[o,Cu()]}(e.OnUpdate,e.Validator,t,n))),r=n[0],o=n[1];return $("div",ct(Gn([["className",qt(" ",Bn(e.AdditionalWrapperClasses,En("z-10")))],(t=ar(rr((()=>cr(sr($("input",ct(ar(rr((()=>cr(sr(["className",qt(" ",Bn(e.AdditionalInputClasses,Bn(Gn(["block","w-full","pr-10","focus:outline-none","text-sm","rounded-md","border-gray-300"]),ar(rr((()=>!r.Meta.Valid&&r.Meta.Touched?["border-red-300","text-red-900","placeholder-red-300","focus:ring-red-500","focus:border-red-500"]:ir()))))))]),rr((()=>cr(sr(["type","text"]),rr((()=>cr(sr(["onChange",t=>{const n=t.target.value;o(new sl(0,1===e.InputType.tag?n:Xt(Aa,n)))}]),rr((()=>{let t;return cr(sr((t=r.Text,["ref",e=>{null==e||ot(e.value,t)||(e.value=t)}])),rr((()=>cr(sr(["onBlur",e=>{o(new sl(1))}]),rr((()=>ot(e.InputType,new ul(0))?sr(["inputMode","numeric"]):ir()))))))}))))))))))))))),rr((()=>!r.Meta.Valid&&r.Meta.Touched?sr($("div",{className:qt(" ",["mt-1","text-sm","text-red-600"]),children:e.InvalidFeedback})):ir())))))),["children",Fn.Children.toArray(Array.from(t))])])))}class cl extends mt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["YesNoButtonGroupMsg","SetTfnInput","SetTfnExemptionReason","SwitchEditingState","HideAlert"]}}class fl extends mt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Tfn","Exempted"]}}class $l extends mt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["TfnTruncated","TfnValue"]}}class dl extends mt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Truncated","Editing"]}}class hl extends gt{constructor(e,t,n,r){super(),this.YesNoButtonGroup=e,this.TruncatedTfn=t,this.CurrentAlert=n,this.EditingState=r}}function pl(e){const t=e.EditingState;if(1===t.tag){const e=t.fields[0];return new Vu(un((e=>new $l(1,e)),e.Value),e.Meta)}return new Vu(new $l(0,on(e.TruncatedTfn)),{Valid:!0})}const wl=e=>function(e){return 1!==e.tag}(Za(e));function ml(e){const t=e.EditingState;if(1===t.tag){const n=t.fields[0],r=n.Value;if(null==r)return new hl(e.YesNoButtonGroup,e.TruncatedTfn,e.CurrentAlert,new dl(1,new Vu(n.Value,{Valid:!1})));if(1===r.tag)return new hl(e.YesNoButtonGroup,e.TruncatedTfn,e.CurrentAlert,new dl(1,new Vu(n.Value,{Valid:!0})));{const t=r.fields[0].fields[0];return new hl(e.YesNoButtonGroup,e.TruncatedTfn,e.CurrentAlert,new dl(1,new Vu(n.Value,{Valid:wl(t)})))}}return e}function gl(e){let t,n,r,o,i;const s=Uu(function(e){let t,n,r;return[ml(new hl(Qu(null!=e&&1===e.tag&&1===e.fields[0].tag?new Zu(1):new Zu(0)),(t=e,null!=t&&0===t.tag?(n=t.fields[0],n):void 0),void 0,null==e?new dl(1,Hu()):1===e.tag?(r=e.fields[0],new dl(1,new Vu(r,{Valid:!1}))):new dl(0))),Cu()]}(e.InitialValue),((t,n)=>function(e,t,n){const r=function(e,t){let n,r,o,i,s,a,u,l,c,f;return ml(1===e.tag?(n=e.fields[0],r=un((e=>new fl(0,new za(0,e))),n.Value),t.EditingState.tag,new hl(t.YesNoButtonGroup,t.TruncatedTfn,t.CurrentAlert,new dl(1,new Vu(r,n.Meta)))):2===e.tag?(o=e.fields[0],i=un((e=>new fl(1,e)),ln(zu,o.Value)),t.EditingState.tag,new hl(t.YesNoButtonGroup,t.TruncatedTfn,t.CurrentAlert,new dl(1,new Vu(i,o.Meta)))):3===e.tag?1===t.EditingState.tag?new hl(t.YesNoButtonGroup,t.TruncatedTfn,t.CurrentAlert,new dl(0)):new hl(t.YesNoButtonGroup,t.TruncatedTfn,new Wr(2,"Please click the continue button at the end of\n this form to save the changes to your TFN."),new dl(1,Hu())):4===e.tag?new hl(t.YesNoButtonGroup,t.TruncatedTfn,void 0,t.EditingState):(s=e.fields[0],s.tag,u=[s.fields[0],t.EditingState],a=1===u[0].tag?1===u[1].tag?(l=u[1].fields[0].Value,null!=l&&1===l.tag?t.EditingState:new dl(1,Hu())):new dl(1,Hu()):1===u[1].tag?(c=[u[1].fields[0].Value,t.TruncatedTfn],null!=c[0]&&0===c[0].tag?t.EditingState:null!=c[1]?(f=c[1],new dl(0)):new dl(1,Hu())):new dl(0),new hl(el(s,t.YesNoButtonGroup),t.TruncatedTfn,t.CurrentAlert,a)))}(t,n);return e(pl(r)),[r,Cu()]}(e.OnUpdate,t,n))),a=s[0],u=s[1],l=null==a.TruncatedTfn?null:$("div",ct(En((t=[$("button",ct(Gn([["className",qt(" ",["relative","inline-flex","items-center","space-x-2","px-4","py-2","border","border-gray-300","text-sm","font-medium","rounded-r-md","text-gray-700","bg-gray-50","hover:bg-gray-100","focus:outline-none","focus:ring-1","focus:ring-primary-focus","focus:border-primary-focus","focus:z-20","-ml-px"])],["type","button"],(n=ar(rr((()=>ot(a.EditingState,new dl(0))?cr(sr(Un),rr((()=>sr($("span",{children:["Edit"]}))))):cr(sr(Vn),rr((()=>sr($("span",{children:["Cancel"]})))))))),["children",Fn.Children.toArray(Array.from(n))]),["onClick",e=>{u(new cl(3))}]])))],["children",Fn.Children.toArray(Array.from(t))]))));return $("div",ct(Gn([["className",qt(" ",Wn)],(r=[(o=ar(rr((()=>{const e=a.CurrentAlert;return sr(null==e?null:$(Zr,{alert:e,hideAlert:()=>{u(new cl(4))}}))}))),$("div",{children:Fn.Children.toArray(Array.from(o))})),qu("Do you have your Tax File Number (TFN)?"),$(nl,{Disable:void 0,Dispatch:e=>{u(new cl(0,e))},State:a.YesNoButtonGroup}),$("div",ct(Gn([["className",qt(" ",["mt-4"])],(i=ar(rr((()=>{let e,t,n;const r=a.YesNoButtonGroup.Selected;if(null==r)return sr(null);if(1===r.tag)return sr($(il,(e=Pn((e=>[wt(e[0]),e[1],e[2]]),Gn([[new Wa(1),"My TFN is pending",void 0],[new Wa(0),"I'm under 18 and don't have a TFN",void 0],[new Wa(2),"I have an exemption from quoting a TFN","E.g. receiving a social security or service pension"]])),{InitialValue:(t=pl(a).Value,null!=t&&1===t.tag&&1===t.fields[0].tag?(n=t.fields[0].fields[0],wt(n)):void 0),Name:"TfnExemption",OnUpdate:e=>{u(new cl(2,e))},ValueLabelPairs:e})));{const e=[a.TruncatedTfn,a.EditingState];let t,n;switch(null!=e[0]&&0===e[1].tag?(t=0,n=e[0]):t=1,t){case 0:return cr(sr(qu("Enter your TFN")),rr((()=>{let e,t,r;return sr($("div",ct(Gn([["className",qt(" ",["mt-1","flex","rounded-md","shadow-sm"])],(e=[$("div",ct(Gn([["className","relative flex items-stretch flex-grow"],(t=[$("input",ct(Gn([["className",qt(" ",["focus:ring-primary-focus","focus:border-primary-focus","block","w-full","rounded-none","rounded-l-md","pl-4","text-sm","border","border-gray-300","text-gray-500"])],["disabled",!0],(r=`*** *** *${n}`,["ref",e=>{null==e||ot(e.value,r)||(e.value=r)}])])))],["children",Fn.Children.toArray(Array.from(t))])]))),l],["children",Fn.Children.toArray(Array.from(e))])]))))})));case 1:return cr(sr(qu("Enter your TFN")),rr((()=>{let e,t;return sr($("div",ct(Gn([["className",qt(" ",["mt-1","flex"])],(e=[$("div",ct(Gn([["className",qt(" ",["relative","flex","items-stretch","flex-grow"])],(t=[$(ll,{AdditionalInputClasses:ar(rr((()=>cr(sr("focus:ring-primary-focus"),rr((()=>cr(sr("focus:border-primary-focus"),rr((()=>cr(sr("block"),rr((()=>cr(sr("w-full"),rr((()=>null==a.TruncatedTfn?sr("rounded-md"):sr("rounded-none rounded-l-md")))))))))))))))),AdditionalWrapperClasses:Gn(["block","w-full"]),InitialValue:void 0,InputType:new ul(0),InvalidFeedback:"That isn’t a valid Tax File Number",OnUpdate:e=>{u(new cl(1,e))},Validator:wl}),l],["children",Fn.Children.toArray(Array.from(t))])])))],["children",Fn.Children.toArray(Array.from(e))])]))))})))}}}))),["children",Fn.Children.toArray(Array.from(i))])])))],["children",Fn.Children.toArray(Array.from(r))])])))}class yl extends mt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["SetTfnInformation","SetPreviousSurname","SetResidencyStatus","SetClaimTaxFreeThreshold","SetDebtSupport","SetEmploymentBasis","GetData","ShowAlert","HideAlert","Saved","AppReady"]}}class vl extends gt{constructor(e,t,n,r,o,i,s,a){super(),this.PreExistingTfnDec=e,this.CurrentAlert=t,this.TfnInformation=n,this.PreviousSurname=r,this.ResidencyStatusRadioButtonGroup=o,this.ClaimTaxFreeThreshold=i,this.DebtSupportCheckboxGroup=s,this.EmploymentBasisRadioButtonGroup=a}}function bl(e,t){return Xr(0,(()=>{let n;return Hr((n=>Hr((r=>{const o=function(e){switch(e.tag){case 1:return new Ua(1);case 2:return new Ua(2);default:return new Ua(0)}}(r),i=t.IsTaxFreeThresholdClaimed?new Zu(0):new Zu(1);return Hr((r=>Qr(0,function(e){switch(e){case 0:return new Ur(0,new ja(0));case 1:return new Ur(0,new ja(1));case 2:return new Ur(0,new ja(2));case 3:return new Ur(0,new ja(3));case 4:return new Ur(0,new ja(4));default:return new Ur(1,"Invalid EmploymentBasis")}}(t.EmploymentBasis),(s=>new vl(e.PreExistingTfnDec,e.CurrentAlert,ju(n),ju(un(Ka,t.PreviousSurname)),ju(o),Qu(i),r,ju(s))))),eu(t.HasDebtSupport))}),function(e){switch(e){case 0:return new Ur(0,new Va(0));case 1:return new Ur(0,new Va(1));case 2:return new Ur(0,Ha);default:return new Ur(1,"Invalid ResidencyStatus")}}(t.ResidencyStatus))),(n=t.TfnInformation,1===n.tag?Vr((e=>new $l(1,new fl(1,e))),function(e){switch(e){case 0:return new Ur(0,new Wa(0));case 1:return new Ur(0,new Wa(1));case 2:return new Ur(0,new Wa(2));default:return new Ur(1,"Invalid ExemptionReason")}}(n.fields[0])):new Ur(0,new $l(0,n.fields[0]))))}))()}class _l extends mt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Web","ReactNative","WebComponent"]}}function xl(){const e=Jt(document.URL,["/"],null,0),t=dn("web",e,{Equals:(e,t)=>e===t,GetHashCode:Xe}),n=dn("react-native",e,{Equals:(e,t)=>e===t,GetHashCode:Xe}),r=[rn(document.querySelector("tax-component")),t,n];let o;switch(o=null==r[0]?r[1]?r[2]?3:1:r[2]?2:3:0,o){case 0:return new Ur(0,new _l(2,r[0]));case 1:return new Ur(0,new _l(0));case 2:return new Ur(0,new _l(1));case 3:return new Ur(1,"Could not determine the embed mode")}}class Sl extends mt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["SuccessRedirectionUrl"]}}function Cl(e){return wt(e)}function El(e,t){switch(e.tag){case 1:return[new vl(t.PreExistingTfnDec,t.CurrentAlert,t.TfnInformation,e.fields[0],t.ResidencyStatusRadioButtonGroup,t.ClaimTaxFreeThreshold,t.DebtSupportCheckboxGroup,t.EmploymentBasisRadioButtonGroup),Cu()];case 2:{const n=ln(Wu,e.fields[0].Value);return[new vl(t.PreExistingTfnDec,t.CurrentAlert,t.TfnInformation,t.PreviousSurname,new Vu(n,{Valid:null!=n}),t.ClaimTaxFreeThreshold,t.DebtSupportCheckboxGroup,t.EmploymentBasisRadioButtonGroup),null==n?Cu():1===n.tag?Tu(new yl(3,new Ju(1,new Zu(1),!1))):2===n.tag?Tu(new yl(3,new Ju(1,new Zu(1),!0))):Tu(new yl(3,new Ju(1,new Zu(0),!1)))]}case 3:return[new vl(t.PreExistingTfnDec,t.CurrentAlert,t.TfnInformation,t.PreviousSurname,t.ResidencyStatusRadioButtonGroup,el(e.fields[0],t.ClaimTaxFreeThreshold),t.DebtSupportCheckboxGroup,t.EmploymentBasisRadioButtonGroup),Cu()];case 4:return[new vl(t.PreExistingTfnDec,t.CurrentAlert,t.TfnInformation,t.PreviousSurname,t.ResidencyStatusRadioButtonGroup,t.ClaimTaxFreeThreshold,e.fields[0],t.EmploymentBasisRadioButtonGroup),Cu()];case 5:{const n=ln(Ku,e.fields[0].Value);return[new vl(t.PreExistingTfnDec,t.CurrentAlert,t.TfnInformation,t.PreviousSurname,t.ResidencyStatusRadioButtonGroup,t.ClaimTaxFreeThreshold,t.DebtSupportCheckboxGroup,new Vu(n,{Valid:null!=n})),Cu()]}case 6:{const n=e.fields[0],r=new vl(n,t.CurrentAlert,t.TfnInformation,t.PreviousSurname,t.ResidencyStatusRadioButtonGroup,t.ClaimTaxFreeThreshold,t.DebtSupportCheckboxGroup,t.EmploymentBasisRadioButtonGroup),o=Tu(new yl(7,new Wr(1,"There was an error loading your tax declaration. Please try refreshing this page.")));!function(){let e,t;const n=rn(document.getElementById("external-loading-page-container"));hr((t=document.body,e=e=>t.removeChild(e),t=>{e(t)}),sn(n))}();const i=Tu(new yl(10));let s,a;switch(2===n.tag?1===n.fields[0].tag?s=1:(s=0,a=n.fields[0].fields[0]):s=3===n.tag?1:2,s){case 0:{const e=un((e=>bl(r,e)),a.Data);if(null==e)return[r,i];{const t=e;return 0===t.tag?[t.fields[0],i]:[r,o]}}case 1:return[r,o];case 2:return[r,i]}}case 7:return[new vl(t.PreExistingTfnDec,e.fields[0],t.TfnInformation,t.PreviousSurname,t.ResidencyStatusRadioButtonGroup,t.ClaimTaxFreeThreshold,t.DebtSupportCheckboxGroup,t.EmploymentBasisRadioButtonGroup),Cu()];case 8:return[new vl(t.PreExistingTfnDec,void 0,t.TfnInformation,t.PreviousSurname,t.ResidencyStatusRadioButtonGroup,t.ClaimTaxFreeThreshold,t.DebtSupportCheckboxGroup,t.EmploymentBasisRadioButtonGroup),Cu()];case 9:return[new vl(new Fr(2,new Ur(0,e.fields[0])),t.CurrentAlert,t.TfnInformation,t.PreviousSurname,t.ResidencyStatusRadioButtonGroup,t.ClaimTaxFreeThreshold,t.DebtSupportCheckboxGroup,t.EmploymentBasisRadioButtonGroup),Cu()];case 10:return function(){const e=xl();let t;t=0!==e.tag||0!==e.fields[0].tag&&1!==e.fields[0].tag?1:0,0===t&&window.parent.postMessage({sender:"flare",type:"appReady"},"*",tn(Sn()))}(),[t,Cu()];default:return[new vl(t.PreExistingTfnDec,t.CurrentAlert,e.fields[0],t.PreviousSurname,t.ResidencyStatusRadioButtonGroup,t.ClaimTaxFreeThreshold,t.DebtSupportCheckboxGroup,t.EmploymentBasisRadioButtonGroup),Cu()]}}class Tl extends mt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["YesNoButtonGroupMsg","SetPreviousSurname"]}}class kl extends gt{constructor(e,t){super(),this.YesNoButtonGroup=e,this.Data=t}}function Il(e){return!Kt(e)}function Al(e){const t=e.YesNoButtonGroup.Selected;return null==t?new kl(e.YesNoButtonGroup,new Vu(e.Data.Value,{Valid:!1})):1===t.tag?new kl(e.YesNoButtonGroup,new Vu(e.Data.Value,{Valid:!0})):new kl(e.YesNoButtonGroup,new Vu(e.Data.Value,{Valid:an(un((e=>Il(e.fields[0])),e.Data.Value),!1)}))}function Nl(e){let t;const n=Uu((r=e.InitialValue,[Al(new kl(Qu(new Zu(null!=r?0:1)),new Vu(r,{Valid:!1}))),Cu()]),((t,n)=>function(e,t,n){const r=function(e,t){let n,r,o;return Al(1===e.tag?(n=e.fields[0],new kl(t.YesNoButtonGroup,new Vu(un((e=>new Ya(0,e)),n.Value),{Valid:n.Meta.Valid}))):(r=e.fields[0],r.tag,o=1===r.fields[0].tag?new Vu(void 0,t.Data.Meta):t.Data,new kl(el(r,t.YesNoButtonGroup),o)))}(t,n);return e(r.Data),[r,Cu()]}(e.OnUpdate,t,n)));var r;const o=n[0],i=n[1];return $("div",ct(Gn([["className",qt(" ",Wn)],(t=ar(rr((()=>cr(sr(qu("Have you changed your surname since you last dealt with the Australian Tax Office (ATO)?")),rr((()=>cr(sr($(nl,{Disable:void 0,Dispatch:e=>{i(new Tl(0,e))},State:o.YesNoButtonGroup})),rr((()=>{let e;const t=o.YesNoButtonGroup.Selected;let n;switch(n=null!=t&&0===t.tag?0:1,n){case 0:return sr($("div",ct(Gn([["className",qt(" ",["mt-4"])],(e=[qu("Enter your previous surname"),$(ll,{AdditionalInputClasses:Sn(),AdditionalWrapperClasses:En("mt-1"),InitialValue:un(qa,o.Data.Value),InputType:new ul(1),InvalidFeedback:"Please enter your previous surname",OnUpdate:e=>{i(new Tl(1,e))},Validator:Il})],["children",Fn.Children.toArray(Array.from(e))])]))));case 1:return sr(null)}}))))))))),["children",Fn.Children.toArray(Array.from(t))])])))}const Ml=Gn(["mt-7","bg-white","px-3.5","border","border-gray-200","rounded-lg","shadow-sm"]),Rl=Gn(["group","relative","w-full","py-4","flex","justify-between","items-center","text-left"]),Dl=Gn(["text-sm","text-primary-base","leading-3","font-medium"]),Gl=Gn(["ml-6","flex","items-center"]),Bl=Gn(["-mt-2","pb-4","prose","prose-sm","text-gray-500","text-sm"]);function Pl(e){let t,n,r,o;const i=e.content,s=e.title,a=Tr(!0),u=a[0];return $("div",ct(Gn([["className",qt(" ",Ml)],(t=[(n=En($("button",ct(Gn([["type","button"],["className",qt(" ",Rl)],["aria-expanded",u],["onClick",e=>{a[1](!u)}],(r=[$("span",{className:qt(" ",Dl),children:s}),$("span",ct(Gn([["className",qt(" ",Gl)],(o=ar(rr((()=>sr(u?jn:Hn)))),["children",Fn.Children.toArray(Array.from(o))])])))],["children",Fn.Children.toArray(Array.from(r))])])))),$("h3",{children:Fn.Children.toArray(Array.from(n))})),$("div",{className:qt(" ",Bn(Bl,ar(rr((()=>u?sr("hidden"):ir()))))),children:Fn.Children.toArray([i])})],["children",Fn.Children.toArray(Array.from(t))])])))}class Ol extends mt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Select"]}}class Fl extends gt{constructor(e){super(),this.Selected=e}}function Ll(e,t){return null!=function(e,t){return((t,n)=>{for(;;){const r=t,o=n;if(bn(o))return;if(e(_n(o)))return r;t=r+1,n=xn(o)}})(0,t)}((t=>e===t),t.Selected)}function Ul(e,t,n){const r=function(e,t){const n=e.fields[0];return Ll(n,t)?new Fl(function(e,t){const n=yn(),r=Nn(((t,n)=>{if(e(n)){const e=new mn(n,void 0);return t.tail=e,e}return t}),n,t),o=yn();return r.tail=o,xn(n)}((e=>n!==e),t.Selected)):new Fl(Bn(En(n),t.Selected))}(t,n);return e(r.Selected),[r,Cu()]}function Vl(e){let t;const n=Uu((r=e.InitialValue,[new Fl(r),Cu()]),((t,n)=>Ul(e.OnUpdate,t,n)));var r;return $("fieldset",ct(Gn([["className",qt(" ",["space-y-2","mt-2"])],(t=ar(rr((()=>mr((e=>{let t,r,o;const i=e[0];return sr($("div",ct(Gn([["className",qt(" ",["relative","flex","items-start"])],["onChange",e=>{e.target.checked,n[1](new Ol(0,i))}],(t=[$("div",ct(Gn([["className",qt(" ",["flex","items-center","h-5"])],(r=[$("input",{className:qt(" ",["focus:ring-primary-focus","h-4","w-4","text-primary-base","border-gray-300","rounded"]),type:"checkbox",id:i,checked:Ll(i,n[0])})],["children",Fn.Children.toArray(Array.from(r))])]))),$("div",ct(Gn([["className",qt(" ",["ml-3","text-sm"])],(o=[$("label",{className:qt(" ",["font-normal","text-gray-700"]),for:i,children:e[1]})],["children",Fn.Children.toArray(Array.from(o))])])))],["children",Fn.Children.toArray(Array.from(t))])]))))}),e.ValueLabelPairs)))),["children",Fn.Children.toArray(Array.from(t))])])))}function Hl(e,t){return!!(e.TfnInformation.Meta.Valid&&e.PreviousSurname.Meta.Valid&&e.ResidencyStatusRadioButtonGroup.Meta.Valid&&null!=e.ClaimTaxFreeThreshold.Selected&&e.EmploymentBasisRadioButtonGroup.Meta.Valid)&&!ot(t,new Fr(1))}function jl(){return $("hr",{className:qt(" ",["my-8"])})}const zl=$("div",ct(Gn([["className",qt(" ",["space-y-2"])],(()=>{const e=[$("p",{children:["You are considered to be an Australian resident for tax purposes if you live here permanently, or studying for a period in excess of 6 months."]}),$("p",{children:["Select working holday maker if you are in Australia on a working holiday visa (subclass 417) or a work and holiday visa (subclass 462). Special rates of tax apply for working holiday makers."]}),$("p",{children:["If none of the above applies, select foreign resident unless you are in receipt of an Australian Government pension or allowance. Foreign resident tax rates are different."]})];return["children",Fn.Children.toArray(Array.from(e))]})()]))),Wl=$("div",ct(Gn([["className",qt(" ",["space-y-2"])],(()=>{const e=[$("p",{children:["Answer yes if you are an Australian resident for tax purposes and this is your main job. It will mean that you pay no tax on the first $18,200 of your income. This is called the tax-free threshold."]}),$("p",{children:["Answer yes if you are a foreign resident in receipt of an Australian Government pension or allowance."]}),$("p",{children:["Answer no if none of the above applies or you are a working holiday maker."]})];return["children",Fn.Children.toArray(Array.from(e))]})()])));function Yl(e){const t=e.backendUrl,n=e.accessToken,r=Uu([new vl(new Fr(0),void 0,Hu(),ju(void 0),ju(new Ua(0)),Qu(new Zu(0)),Sn(),ju(new ja(0))),Cu()],El),o=r[0],i=r[1];xr(Lr((()=>bu(n,t)),(e=>{i(new yl(6,e))})),[]);const s=Tr(new Fr(0)),a=s[0],u=Lr((()=>function(e,t,n,r){return function(e,t){return Mr.Bind(t,(t=>{const n=function(e,t){return function(e,t,n){if(1===n.tag){t(n.fields[0])}return n}(0,e,t)}(e,t);return Mr.Return(n)}))}((e=>{r(new Wr(1,"There was an error saving your tax declaration. Please try saving again."))}),function(e,t){return Mr.Bind(t,(t=>{const n=function(e,t){return function(e,t,n){if(1===n.tag);else{t(n.fields[0])}return n}(0,e,t)}(e,t);return Mr.Return(n)}))}((e=>{r(new Wr(0,"Your tax declaration has been saved."))}),xu(e,t,n)))}(o,n,t,(e=>{i(new yl(7,e))}))),(e=>{let t,n;s[1](e),2===e.tag&&0===e.fields[0].tag?(t=0,n=e.fields[0].fields[0]):t=1,0===t&&(Or(Mr.Delay((()=>Mr.Bind(Pr(400),(()=>(function(){let e;const t=xl();var n;0===t.tag&&(0===t.fields[0].tag?hr((e=>{window.parent.location.href=e}),sn((n=new Sl(0),rn(sessionStorage.getItem(Cl(n)))))):1===t.fields[0].tag?hr((e=>{let t;t=JSON.stringify({stepStatus:"completed"}),e.postMessage(t)}),sn(window.ReactNativeWebView)):(e=new CustomEvent("step-completion",{bubbles:!0,detail:"tax"}),t.fields[0].fields[0].dispatchEvent(e)))}(),Mr.Zero())))))),i(new yl(9,n)))}));switch(o.PreExistingTfnDec.tag){case 0:case 1:return $("div",{children:["Please wait..."]});default:{const e=ar(rr((()=>{let e,t;return cr((e=o.CurrentAlert,null==e?sr(null):(t=e,sr($(Zr,{alert:t,hideAlert:()=>{i(new yl(8))}})))),rr((()=>cr(sr($("h3",{className:qt(" ",["text-3xl","font-bold","text-center","mb-8","sm:mb-12"]),children:"Tax Declaration"})),rr((()=>cr(sr($(gl,{InitialValue:o.TfnInformation.Value,OnUpdate:e=>{i(new yl(0,e))}})),rr((()=>cr(sr(jl()),rr((()=>cr(sr($(Nl,{InitialValue:o.PreviousSurname.Value,OnUpdate:e=>{i(new yl(1,e))}})),rr((()=>cr(sr(jl()),rr((()=>cr(sr(qu("Are you an Australian resident for tax purposes or a working holiday maker?")),rr((()=>{let e;return cr(sr($(il,(e=Pn((e=>[wt(e[0]),e[1],e[2]]),Gn([[new Ua(0),"Australian resident for tax purposes",void 0],[new Ua(1),"Foreign resident",void 0],[new Ua(2),"Working holiday maker",void 0]])),{InitialValue:un(wt,o.ResidencyStatusRadioButtonGroup.Value),Name:"ResidencyStatus",OnUpdate:e=>{i(new yl(2,e))},ValueLabelPairs:e}))),rr((()=>cr(sr($(Pl,{title:"About residency",content:zl})),rr((()=>cr(sr(jl()),rr((()=>{let e,t;return cr(sr($("div",ct(Gn([["className",qt(" ",Wn)],(e=[qu("Would you like to claim the tax-free threshold from this employer?"),$(nl,{Disable:(t=o.ResidencyStatusRadioButtonGroup.Value,null!=t&&2===t.tag?new Zu(0):void 0),Dispatch:e=>{i(new yl(3,e))},State:o.ClaimTaxFreeThreshold})],["children",Fn.Children.toArray(Array.from(e))])])))),rr((()=>cr(sr($(Pl,{title:"About the tax-free threshold",content:Wl})),rr((()=>cr(sr(jl()),rr((()=>cr(sr(qu("Do you have any of the following outstanding debts or loans?")),rr((()=>{let e;return cr(sr($(Vl,(e=Pn((e=>[wt(e[0]),e[1]]),Gn([[new La(0),"Higher Education Loan Program (HELP)"],[new La(1),"VET Student Loan (VSL)"],[new La(2),"Financial Supplement (FS)"],[new La(3),"Student Start-up Loan (SSL)"],[new La(4),"Trade Support Loan (TSL)"]])),{InitialValue:Pn(wt,o.DebtSupportCheckboxGroup),OnUpdate:e=>{i(new yl(4,function(e,t){const n=yn(),r=Nn(((t,n)=>{const r=e(n);if(null==r)return t;{const e=new mn(nn(r),void 0);return t.tail=e,e}}),n,t),o=yn();return r.tail=o,xn(n)}(Yu,e)))},ValueLabelPairs:e}))),rr((()=>cr(sr(jl()),rr((()=>cr(sr(qu("On what basis are you paid?")),rr((()=>{let e;return cr(sr($(il,(e=Pn((e=>[wt(e[0]),e[1],e[2]]),Gn([[new ja(0),"Full-time",void 0],[new ja(1),"Part-time",void 0],[new ja(2),"Labour Hire",void 0],[new ja(3),"Superannuation or annuity income stream",void 0],[new ja(4),"Casual",void 0]])),{InitialValue:un(wt,o.EmploymentBasisRadioButtonGroup.Value),Name:"EmploymentBasis",OnUpdate:e=>{i(new yl(5,e))},ValueLabelPairs:e}))),rr((()=>cr(sr(jl()),rr((()=>{let e;return sr($("div",ct(Gn([["className",qt(" ",["text-center"])],(e=[$("button",{className:qt(" ",["w-full","max-w-320","px-10","py-2","border","border-transparent","text-sm","font-medium","rounded-md","shadow-sm","text-white","bg-primary-base","hover:bg-primary-hover","focus:outline-none","focus:ring-2","focus:ring-offset-2","focus:ring-primary-focus"]),type:"button",disabled:!Hl(o,a),onClick:e=>{Hl(o,a)&&u()},children:"Continue"}),$("p",{className:qt(" ",["mt-8","sm:mt-20","text-xs","text-gray-500","leading-4","font-normal"]),children:"Workplace onboarding powered by Flare"})],["children",Fn.Children.toArray(Array.from(e))])]))))}))))))})))))))))}))))))))))))})))))))))})))))))))))))))))))))})));return $("form",{children:Fn.Children.toArray(Array.from(e))})}}}const Kl=(()=>{try{if("undefined"!=typeof window&&"function"==typeof window.addEventListener){const e={passive:!0};window.addEventListener("testPassiveEventSupport",(e=>{}),e),window.removeEventListener("testPassiveEventSupport",(e=>{}))}}catch(e){}return!1})();function ql(e){return un((e=>e.passive&&!Kl?{capture:e.capture,once:e.once,passive:!1}:e),e)}function Zl(e){return ln((e=>e.capture?{capture:!0}:void 0),e)}function Jl(e,t){return 0===t.indexOf(e)?t:void 0}function Xl(e,t){return Yt(t,e)?t:void 0}function Ql(e,t){return function(e){return 1===e?e=>{let t,n,r,o,i,s;return t=Jl("/",e),null!=t?(n=t,"#"+n):(r=Jl("#/",e),null!=r?(o=r,o):(i=Jl("#",e),null!=i?(s=i,"#/"+Qt(s,1,s.length-1)):"#/"+e))}:e=>{let t,n;return t=Jl("/",e),null!=t?(n=t,n):"/"+e}}(t)(qt("/",Pn((e=>e.indexOf("?")>=0||0===e.indexOf("#")||0===e.indexOf("/")?e:encodeURIComponent(e)),e)))}function ec(e,t){return function(e,t){let n,r;const o=yn();let i=o,s=t;for(;!bn(s);){let t=e(_n(s));for(;!bn(t);)n=i,r=new mn(_n(t),void 0),n.tail=r,i=r,t=xn(t);s=xn(s)}const a=i,u=yn();return a.tail=u,xn(o)}((e=>{if(Kt(e))return Sn();{const t=function(e,...t){return 0===t.length?e.trimEnd():e.replace(new RegExp("["+Bt(t.join(""))+"]+$"),"")}(e,"#");if("?"===t)return Sn();if(null!=Jl("?",t))return En(t);{const e=t.split("?");if(pn(((e,t)=>e===t),e,null)||1!==e.length){if(pn(((e,t)=>e===t),e,null)||2!==e.length)return Sn();if(""===e[1]){const t=e[0];return En(decodeURIComponent(t))}{const t=e[0],n=e[1];return Gn([decodeURIComponent(t),"?"+n])}}{const t=e[0];return En(decodeURIComponent(t))}}}}),Gn(Jt(null!=Jl("#",e)?Qt(e,1,e.length-1):1!==t||null==Xl("#",e)&&null==Xl("#/",e)?e:"",["/"],null,0)))}const tc=function(e,t,n,r){const o=Fn.memo(e,$t(2,an(ht(2,n),null)));return hr((t=>{e.displayName=t}),sn(t)),e=>{const t=function(e,t){if(null==e)return t;{const n=e;return t.key=n(t),t}}(r,e);return Fn.createElement(o,t)}}((e=>{const t=Er((t=>{const n=an(e.onUrlChanged,(e=>{}));!function(e,t,n){t(ec(2===e?window.location.pathname+window.location.search:window.location.hash,e))}(an(e.hashMode,1),n)}));if(window.navigator.userAgent.indexOf("Trident")>=0||window.navigator.userAgent.indexOf("MSIE")>=0){const e="hashchange",n=e=>{t(e)},r=void 0,o=Cr((()=>ql(r)),[r]),i=Cr((()=>Zl(r)),[r]),s=Cr((()=>e=>{n(e)}),[n]);br(Er((()=>{if(null==o)window.addEventListener(e,s);else{const t=o;window.addEventListener(e,s,t)}return yr((()=>{if(null==i)window.removeEventListener(e,s);else{const t=i;window.removeEventListener(e,s,t)}}))})))}else{const e="popstate",n=t,r=void 0,o=Cr((()=>ql(r)),[r]),i=Cr((()=>Zl(r)),[r]),s=Cr((()=>e=>{n(e)}),[n]);br(Er((()=>{if(null==o)window.addEventListener(e,s);else{const t=o;window.addEventListener(e,s,t)}return yr((()=>{if(null==i)window.removeEventListener(e,s);else{const t=i;window.removeEventListener(e,s,t)}}))})))}const n="CUSTOM_NAVIGATION_EVENT",r=t,o=void 0,i=Cr((()=>ql(o)),[o]),s=Cr((()=>Zl(o)),[o]),a=Cr((()=>e=>{r(e)}),[r]);br(Er((()=>{if(null==i)window.addEventListener(n,a);else{const e=i;window.addEventListener(n,a,e)}return yr((()=>{if(null==s)window.removeEventListener(n,a);else{const e=s;window.removeEventListener(n,a,e)}}))})));const u=e.application;return null==u?null:u}),void 0,void 0,void 0);class nc extends gt{constructor(e,t){super(),this.CurrentPage=e,this.Auth=t}}class rc extends mt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["UrlChanged","AuthMsg"]}}class oc extends gt{constructor(e,t,n){super(),this.model=e,this.render=t,this.equal=n}}class ic extends p{constructor(e){super(e)}shouldComponentUpdate(e,t){return!this.props.equal(this.props.model,e.model)}render(){return this.props.render()}}class sc extends mt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Token"]}}class ac extends mt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["QueryString"]}}class uc extends mt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Home","OidcSignIn","OidcSignInRedirectCallback","OidcSignInSilentCallback","NotFound"]}}function lc(e){let t,n,r;switch(Tn(e)?t=0:"oidc"===kn(e)?Tn(In(e))?t=3:"callback"===kn(In(e))?Tn(In(In(e)))?t=3:Tn(In(In(In(e))))?(t=1,n=kn(In(In(e)))):t=3:"silent-refresh"===kn(In(e))?Tn(In(In(e)))?t=3:Tn(In(In(In(e))))?(t=2,r=kn(In(In(e)))):t=3:t=3:t=3,t){case 0:{const e=window.location.search,t=new URLSearchParams(e),n=t.get("token");if(null==n)return new uc(0);{const e=n;return hr((e=>{!function(e,t){sessionStorage.setItem(Cl(e),t)}(new Sl(0),e)}),sn(t.get("success-redirection-url"))),new uc(1,new sc(0,e))}}case 1:return new uc(2,new ac(0,n));case 2:return new uc(3,new ac(0,r));case 3:return new uc(4)}}class cc extends mt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["HasNotStartedYet","InProgress","Resolved"]}}class fc extends mt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Started","Finished"]}}class $c extends gt{constructor(e){super(),this.AccessToken=e}}function dc(e){return new $c(e.access_token)}class hc extends gt{constructor(e){super(),this.Auth=e}}class pc extends mt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["GetUser","SignInRedirect","SignInRedirectCallback","SignInSilentCallback"]}}const wc=document.querySelector("#tfn-declaration-app"),mc=wc.getAttribute("data-identity-url"),gc=wc.getAttribute("data-backend-url"),yc=(()=>{const e={};return e.store=tn(window.sessionStorage),e})();function vc(){return new UserManager(function(){const e=function(e){return Yt(e,"/")?e:e+"/"}(window.location.origin+window.location.pathname),t={};return t.authority=mc,t.client_id="apollo-tfn-declaration-ui",t.redirect_uri=e+"#/oidc/callback?",t.response_type="id_token token",t.scope="openid profile",t.automaticSilentRenew=!0,t.silent_redirect_uri=tn(e+"#/oidc/silent-refresh?"),t.post_logout_redirect_uri=e+"#/oidc/logout?",t.accessTokenExpiringNotificationTime=10,t.filterProtocolClaims=!0,t.loadUserInfo=!1,t.clockSkew=2592e3,t.userStore=new WebStorageStateStore(yc),t}())}function bc(e){return e.length>0?Qt(e,1):e}function _c(e){return vc().signinRedirect(tn({extraQueryParams:{irt:e.fields[0]}}))}function xc(e){return vc().signinRedirectCallback(bc(e.fields[0]))}function Sc(e){return vc().signinSilentCallback(bc(e.fields[0]))}function Cc(){return vc().getUser()}var Ec;!function(e){Bu(void 0,e)}(("tfn-declaration-app",Ec=Du((function(){const e=lc(ec(window.location.hash,1)),t=function(){const e=lc(ec(window.location.hash,1));return[new hc(new cc(0)),1===e.tag?Tu(new pc(1,new fc(0),e.fields[0])):2===e.tag?Tu(new pc(2,new fc(0),e.fields[0])):3===e.tag?Tu(new pc(3,new fc(0),e.fields[0])):Tu(new pc(0,new fc(0)))]}();return[new nc(e,t[0]),Eu((e=>new rc(1,e)),t[1])]}),(function(e,t){if(1===e.tag){const n=function(e,t){const n=e=>[new hc(new cc(2,new Ur(1,e))),Cu()];return 1===e.tag?1===e.fields[0].tag?1===e.fields[0].fields[0].tag?n(Ht(Ut("SignInRedirect failed: %s"))(e.fields[0].fields[0].fields[0])):[t,Cu()]:[new hc(new cc(1)),(o=_c,i=e.fields[1],s=t=>new pc(1,new fc(1,new Ur(1,t.message)),e.fields[1]),En((e=>{o(i).catch((t=>{e(s(t))}))})))]:2===e.tag?1===e.fields[0].tag?1===e.fields[0].fields[0].tag?n(Ht(Ut("failed sign in: %s"))(e.fields[0].fields[0].fields[0])):[new hc(new cc(2,new Ur(0,dc(e.fields[0].fields[0].fields[0])))),(r=e=>{!function(e,t,n){history.pushState(void 0,"",Ql(e,1));const r=document.createEvent("CustomEvent");r.initEvent("CUSTOM_NAVIGATION_EVENT",!0,!0),window.dispatchEvent(r)}(En(""))},En(r))]:[new hc(new cc(1)),ku(xc,e.fields[1],(t=>(window.gtag&&window.gtag("event","oidc_sign_in",{}),new pc(2,new fc(1,new Ur(0,t)),e.fields[1]))),(t=>new pc(2,new fc(1,new Ur(1,t.message)),e.fields[1])))]:3===e.tag?1===e.fields[0].tag?1===e.fields[0].fields[0].tag?n(Ht(Ut("failed silent sign in: %s"))(e.fields[0].fields[0].fields[0])):null==e.fields[0].fields[0].fields[0]?n("silent refresh expected a user but got none"):[new hc(new cc(2,new Ur(0,dc(e.fields[0].fields[0].fields[0])))),Cu()]:[t,ku(Sc,e.fields[1],(t=>new pc(3,new fc(1,new Ur(0,t)),e.fields[1])),(t=>new pc(3,new fc(1,new Ur(1,t.message)),e.fields[1])))]:1===e.fields[0].tag?1===e.fields[0].fields[0].tag?n(Ht(Ut("failed to get current user: %s"))(e.fields[0].fields[0].fields[0])):null==e.fields[0].fields[0].fields[0]?n("expected a user but got none"):[new hc(new cc(2,new Ur(0,dc(e.fields[0].fields[0].fields[0])))),Cu()]:[new hc(new cc(1)),ku(Cc,void 0,(e=>new pc(0,new fc(1,new Ur(0,e)))),(e=>new pc(0,new fc(1,new Ur(1,e.message)))))];var r,o,i,s}(e.fields[0],t.Auth);return[new nc(t.CurrentPage,n[0]),Eu((e=>new rc(1,e)),n[1])]}return[new nc(lc(e.fields[0]),t.Auth),Cu()]}),((e,t)=>function(e,t,n){let r,o;switch(t.CurrentPage.tag){case 1:case 2:case 3:o=Fe();break;case 4:o=$("h1",{},"Not found");break;default:{const n=t.Auth.Auth;if(2===n.tag)if(1===n.fields[0].tag)o=$("h1",{},"Unauthorised");else{const t=[$("style",{children:[Ln]}),$(Yl,{accessToken:n.fields[0].fields[0].AccessToken,backendUrl:e})];o=$("div",{},...t)}else o=Fe()}}return tc(ct(Gn([["onUrlChanged",e=>{n(new rc(0,e))}],(r=En($("div",{children:Fn.Children.toArray([o])})),["application",$(h,{},...r)])])))}(gc,e,t))),function(e,t,n){return Gu(((r,o)=>{Ee(e((e=>t=>e===t),function(e){return ht(2,e.view)}(n),r,o),document.getElementById(t))}),n)}(((e,t,n,r)=>function(e,t,n,r){const o=new oc(n,(()=>t(n,r)),e);return $(ic,o)}($t(2,e),$t(2,t),n,r)),"tfn-declaration-app",Ec)))})()})();
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),a=n(667),u=n.n(a),l=new URL(n(578),n.b),c=new URL(n(254),n.b),f=new URL(n(184),n.b),d=new URL(n(421),n.b),$=s()(o()),p=u()(l),h=u()(c),m=u()(f),w=u()(d);$.push([e.id,'/*! tailwindcss v3.1.6 | 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%;font-weight:inherit;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::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%}[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::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('+p+");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem;-webkit-print-color-adjust:exact;print-color-adjust:exact}[multiple]{color-adjust:unset;background-image:none;background-position:0 0;background-repeat:unset;background-size:initial;padding-right:.75rem;-webkit-print-color-adjust:unset;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;print-color-adjust:exact;-webkit-user-select:none;-moz-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("+h+")}[type=radio]:checked{background-image:url("+m+")}[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 solid ButtonText;outline:1px auto -webkit-focus-ring-color}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color: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: }::-webkit-backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color: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: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color: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: }.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-y-0{bottom:0;top:0}.right-0{right:0}.z-50{z-index:50}.z-10{z-index:10}.mx-auto{margin-left:auto;margin-right:auto}.my-8{margin-bottom:2rem;margin-top:2rem}.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}.my-3{margin-bottom:.75rem;margin-top:.75rem}.mt-5{margin-top:1.25rem}.mt-4{margin-top:1rem}.mb-8{margin-bottom:2rem}.mt-8{margin-top:2rem}.ml-auto{margin-left:auto}.mt-2{margin-top:.5rem}.ml-3{margin-left:.75rem}.mt-7{margin-top:1.75rem}.ml-6{margin-left:1.5rem}.-mt-2{margin-top:-.5rem}.mt-1{margin-top:.25rem}.-ml-px{margin-left:-1px}.block{display:block}.flex{display:flex}.inline-flex{display:inline-flex}.hidden{display:none}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-4{height:1rem}.max-h-60{max-height:15rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-full{width:100%}.w-4{width:1rem}.w-1\\/2{width:50%}.w-auto{width:auto}.max-w-560{max-width:560px}.max-w-320{max-width:320px}.flex-grow{flex-grow:1}.cursor-default{cursor:default}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.flex-col{flex-direction:column}.items-start{align-items:flex-start}.items-center{align-items:center}.items-stretch{align-items:stretch}.justify-between{justify-content:space-between}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.5rem*var(--tw-space-y-reverse));margin-top:calc(.5rem*(1 - var(--tw-space-y-reverse)))}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.5rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.5rem*var(--tw-space-x-reverse))}.space-x-0\\.5>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.125rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.125rem*var(--tw-space-x-reverse))}.space-x-0>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(0px*(1 - var(--tw-space-x-reverse)));margin-right:calc(0px*var(--tw-space-x-reverse))}.self-start{align-self:flex-start}.overflow-auto{overflow:auto}.overflow-hidden,.truncate{overflow:hidden}.truncate{text-overflow:ellipsis}.truncate,.whitespace-nowrap{white-space:nowrap}.rounded-md{border-radius:.375rem}.rounded{border-radius:.25rem}.rounded-lg{border-radius:.5rem}.rounded-none{border-radius:0}.rounded-r-md{border-bottom-right-radius:.375rem;border-top-right-radius:.375rem}.rounded-l-md{border-bottom-left-radius:.375rem;border-top-left-radius:.375rem}.border{border-width:1px}.border-transparent{border-color:transparent}.border-gray-300{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity))}.border-gray-200{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.border-red-300{--tw-border-opacity:1;border-color:rgb(252 165 165/var(--tw-border-opacity))}.bg-primary-base{background-color:var(--fl-color-primary)}.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-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-gray-50{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity))}.bg-gray-100{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.p-4{padding:1rem}.p-1\\.5{padding:.375rem}.p-1{padding:.25rem}.p-0\\.5{padding:.125rem}.p-0{padding:0}.px-10{padding-left:2.5rem;padding-right:2.5rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-0\\.5{padding-left:.125rem;padding-right:.125rem}.px-0{padding-left:0;padding-right:0}.py-1{padding-bottom:.25rem;padding-top:.25rem}.px-4{padding-left:1rem;padding-right:1rem}.px-8{padding-left:2rem;padding-right:2rem}.pr-2{padding-right:.5rem}.pb-4{padding-bottom:1rem}.pt-1{padding-top:.25rem}.pr-10{padding-right:2.5rem}.pl-2{padding-left:.5rem}.pr-4{padding-right:1rem}.pl-4{padding-left:1rem}.text-left{text-align:left}.text-center{text-align:center}.font-inter{font-family:Inter,sans-serif}.text-sm{font-size:.875rem;line-height:1.25rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-medium{font-weight:500}.font-bold{font-weight:700}.font-normal{font-weight:400}.leading-5{line-height:1.25rem}.leading-4{line-height:1rem}.leading-3{line-height:.75rem}.text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.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-primary-base{color:var(--fl-color-primary)}.text-gray-900{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity))}.text-black{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity))}.text-red-900{--tw-text-opacity:1;color:rgb(127 29 29/var(--tw-text-opacity))}.text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.placeholder-red-300::-moz-placeholder{--tw-placeholder-opacity:1;color:rgb(252 165 165/var(--tw-placeholder-opacity))}.placeholder-red-300::placeholder{--tw-placeholder-opacity:1;color:rgb(252 165 165/var(--tw-placeholder-opacity))}.shadow-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)}.shadow-none{--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000}.shadow-lg,.shadow-none{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color)}.ring-1{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.ring-black{--tw-ring-opacity:1;--tw-ring-color:rgb(0 0 0/var(--tw-ring-opacity))}.ring-opacity-5{--tw-ring-opacity:0.05}.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-primary-hover:hover{background-color:var(--fl-color-primary-hover)}.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-gray-100:hover{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.focus\\:z-20:focus{z-index:20}.focus\\:z-10:focus{z-index:10}.focus\\:border-primary-focus:focus{border-color:var(--fl-color-primary-focus)}.focus\\:border-red-500:focus{--tw-border-opacity:1;border-color:rgb(239 68 68/var(--tw-border-opacity))}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.focus\\:ring-0:focus,.focus\\:ring-2:focus{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\\:ring-0: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(var(--tw-ring-offset-width)) var(--tw-ring-color)}.focus\\:ring-1: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(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\\:ring-inset:focus{--tw-ring-inset:inset}.focus\\:ring-primary-focus:focus{--tw-ring-color:var(--fl-color-primary-focus)}.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-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}.focus-visible\\:outline-primary-hover:focus-visible{outline-color:var(--fl-color-primary-hover)}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:opacity-25:disabled{opacity:.25}.group:hover .group-hover\\:text-primary-hover{color:var(--fl-color-primary-hover)}@media (min-width:640px){.sm\\:mb-12{margin-bottom:3rem}.sm\\:mt-20{margin-top:5rem}.sm\\:text-sm{font-size:.875rem;line-height:1.25rem}}",""]);const g=$},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 a=0;a<this.length;a++){var u=this[a][0];null!=u&&(s[u]=!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]}},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,(()=>{var e,t,r,o,i,s,a={},u=[],l=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function c(e,t){for(var n in t)e[n]=t[n];return e}function f(e){var t=e.parentNode;t&&t.removeChild(e)}function d(t,n,r){var o,i,s,a={};for(s in n)"key"==s?o=n[s]:"ref"==s?i=n[s]:a[s]=n[s];if(arguments.length>2&&(a.children=arguments.length>3?e.call(arguments,2):r),"function"==typeof t&&null!=t.defaultProps)for(s in t.defaultProps)void 0===a[s]&&(a[s]=t.defaultProps[s]);return $(t,a,o,i,null)}function $(e,n,o,i,s){var a={type:e,props:n,key:o,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==s?++r:s};return null==s&&null!=t.vnode&&t.vnode(a),a}function p(e){return e.children}function h(e,t){this.props=e,this.context=t}function m(e,t){if(null==t)return e.__?m(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?m(e):null}function w(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 w(e)}}function g(e){(!e.__d&&(e.__d=!0)&&o.push(e)&&!y.__r++||i!==t.debounceRendering)&&((i=t.debounceRendering)||setTimeout)(y)}function y(){for(var e;y.__r=o.length;)e=o.sort((function(e,t){return e.__v.__b-t.__v.__b})),o=[],e.some((function(e){var t,n,r,o,i,s;e.__d&&(i=(o=(t=e).__v).__e,(s=t.__P)&&(n=[],(r=c({},o)).__v=o.__v+1,k(s,o,r,t.__n,void 0!==s.ownerSVGElement,null!=o.__h?[i]:null,n,null==i?m(o):i,o.__h),I(n,o),o.__e!=i&&w(o)))}))}function b(e,t,n,r,o,i,s,l,c,f){var d,h,w,g,y,b,x,S=r&&r.__k||u,C=S.length;for(n.__k=[],d=0;d<t.length;d++)if(null!=(g=n.__k[d]=null==(g=t[d])||"boolean"==typeof g?null:"string"==typeof g||"number"==typeof g||"bigint"==typeof g?$(null,g,null,null,g):Array.isArray(g)?$(p,{children:g},null,null,null):g.__b>0?$(g.type,g.props,g.key,null,g.__v):g)){if(g.__=n,g.__b=n.__b+1,null===(w=S[d])||w&&g.key==w.key&&g.type===w.type)S[d]=void 0;else for(h=0;h<C;h++){if((w=S[h])&&g.key==w.key&&g.type===w.type){S[h]=void 0;break}w=null}k(e,g,w=w||a,o,i,s,l,c,f),y=g.__e,(h=g.ref)&&w.ref!=h&&(x||(x=[]),w.ref&&x.push(w.ref,null,g),x.push(h,g.__c||y,g)),null!=y?(null==b&&(b=y),"function"==typeof g.type&&g.__k===w.__k?g.__d=c=v(g,c,e):c=_(e,g,w,S,y,c),"function"==typeof n.type&&(n.__d=c)):c&&w.__e==c&&c.parentNode!=e&&(c=m(w))}for(n.__e=b,d=C;d--;)null!=S[d]&&("function"==typeof n.type&&null!=S[d].__e&&S[d].__e==n.__d&&(n.__d=m(r,d+1)),R(S[d],S[d]));if(x)for(d=0;d<x.length;d++)N(x[d],x[++d],x[++d])}function v(e,t,n){for(var r,o=e.__k,i=0;o&&i<o.length;i++)(r=o[i])&&(r.__=e,t="function"==typeof r.type?v(r,t,n):_(n,r,r,o,r.__e,t));return t}function x(e,t){return t=t||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some((function(e){x(e,t)})):t.push(e)),t}function _(e,t,n,r,o,i){var s,a,u;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(a=i,u=0;(a=a.nextSibling)&&u<r.length;u+=2)if(a==o)break e;e.insertBefore(o,i),s=i}return void 0!==s?s:o.nextSibling}function S(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||l.test(t)?n:n+"px"}function C(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||S(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||S(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?T:E,i):e.removeEventListener(t,i?T:E,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 E(e){this.l[e.type+!1](t.event?t.event(e):e)}function T(e){this.l[e.type+!0](t.event?t.event(e):e)}function k(e,n,r,o,i,s,a,u,l){var f,d,$,m,w,g,y,v,x,_,S,C,E,T=n.type;if(void 0!==n.constructor)return null;null!=r.__h&&(l=r.__h,u=n.__e=r.__e,n.__h=null,s=[u]),(f=t.__b)&&f(n);try{e:if("function"==typeof T){if(v=n.props,x=(f=T.contextType)&&o[f.__c],_=f?x?x.props.value:f.__:o,r.__c?y=(d=n.__c=r.__c).__=d.__E:("prototype"in T&&T.prototype.render?n.__c=d=new T(v,_):(n.__c=d=new h(v,_),d.constructor=T,d.render=M),x&&x.sub(d),d.props=v,d.state||(d.state={}),d.context=_,d.__n=o,$=d.__d=!0,d.__h=[]),null==d.__s&&(d.__s=d.state),null!=T.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=c({},d.__s)),c(d.__s,T.getDerivedStateFromProps(v,d.__s))),m=d.props,w=d.state,$)null==T.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(null==T.getDerivedStateFromProps&&v!==m&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(v,_),!d.__e&&null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(v,d.__s,_)||n.__v===r.__v){d.props=v,d.state=d.__s,n.__v!==r.__v&&(d.__d=!1),d.__v=n,n.__e=r.__e,n.__k=r.__k,n.__k.forEach((function(e){e&&(e.__=n)})),d.__h.length&&a.push(d);break e}null!=d.componentWillUpdate&&d.componentWillUpdate(v,d.__s,_),null!=d.componentDidUpdate&&d.__h.push((function(){d.componentDidUpdate(m,w,g)}))}if(d.context=_,d.props=v,d.__v=n,d.__P=e,S=t.__r,C=0,"prototype"in T&&T.prototype.render)d.state=d.__s,d.__d=!1,S&&S(n),f=d.render(d.props,d.state,d.context);else do{d.__d=!1,S&&S(n),f=d.render(d.props,d.state,d.context),d.state=d.__s}while(d.__d&&++C<25);d.state=d.__s,null!=d.getChildContext&&(o=c(c({},o),d.getChildContext())),$||null==d.getSnapshotBeforeUpdate||(g=d.getSnapshotBeforeUpdate(m,w)),E=null!=f&&f.type===p&&null==f.key?f.props.children:f,b(e,Array.isArray(E)?E:[E],n,r,o,i,s,a,u,l),d.base=n.__e,n.__h=null,d.__h.length&&a.push(d),y&&(d.__E=d.__=null),d.__e=!1}else null==s&&n.__v===r.__v?(n.__k=r.__k,n.__e=r.__e):n.__e=A(r.__e,n,r,o,i,s,a,l);(f=t.diffed)&&f(n)}catch(e){n.__v=null,(l||null!=s)&&(n.__e=u,n.__h=!!l,s[s.indexOf(u)]=null),t.__e(e,n,r)}}function I(e,n){t.__c&&t.__c(n,e),e.some((function(n){try{e=n.__h,n.__h=[],e.some((function(e){e.call(n)}))}catch(e){t.__e(e,n.__v)}}))}function A(t,n,r,o,i,s,u,l){var c,d,$,p=r.props,h=n.props,w=n.type,g=0;if("svg"===w&&(i=!0),null!=s)for(;g<s.length;g++)if((c=s[g])&&"setAttribute"in c==!!w&&(w?c.localName===w:3===c.nodeType)){t=c,s[g]=null;break}if(null==t){if(null===w)return document.createTextNode(h);t=i?document.createElementNS("http://www.w3.org/2000/svg",w):document.createElement(w,h.is&&h),s=null,l=!1}if(null===w)p===h||l&&t.data===h||(t.data=h);else{if(s=s&&e.call(t.childNodes),d=(p=r.props||a).dangerouslySetInnerHTML,$=h.dangerouslySetInnerHTML,!l){if(null!=s)for(p={},g=0;g<t.attributes.length;g++)p[t.attributes[g].name]=t.attributes[g].value;($||d)&&($&&(d&&$.__html==d.__html||$.__html===t.innerHTML)||(t.innerHTML=$&&$.__html||""))}if(function(e,t,n,r,o){var i;for(i in n)"children"===i||"key"===i||i in t||C(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]||C(e,i,t[i],n[i],r)}(t,h,p,i,l),$)n.__k=[];else if(g=n.props.children,b(t,Array.isArray(g)?g:[g],n,r,o,i&&"foreignObject"!==w,s,u,s?s[0]:r.__k&&m(r,0),l),null!=s)for(g=s.length;g--;)null!=s[g]&&f(s[g]);l||("value"in h&&void 0!==(g=h.value)&&(g!==t.value||"progress"===w&&!g||"option"===w&&g!==p.value)&&C(t,"value",g,p.value,!1),"checked"in h&&void 0!==(g=h.checked)&&g!==t.checked&&C(t,"checked",g,p.checked,!1))}return t}function N(e,n,r){try{"function"==typeof e?e(n):e.current=n}catch(e){t.__e(e,r)}}function R(e,n,r){var o,i;if(t.unmount&&t.unmount(e),(o=e.ref)&&(o.current&&o.current!==e.__e||N(o,null,n)),null!=(o=e.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(e){t.__e(e,n)}o.base=o.__P=null}if(o=e.__k)for(i=0;i<o.length;i++)o[i]&&R(o[i],n,"function"!=typeof e.type);r||null==e.__e||f(e.__e),e.__e=e.__d=void 0}function M(e,t,n){return this.constructor(e,n)}function O(n,r,o){var i,s,u;t.__&&t.__(n,r),s=(i="function"==typeof o)?null:o&&o.__k||r.__k,u=[],k(r,n=(!i&&o||r).__k=d(p,null,[n]),s||a,a,void 0!==r.ownerSVGElement,!i&&o?[o]:s?null:r.firstChild?e.call(r.childNodes):null,u,!i&&o?o:s?s.__e:r.firstChild,i),I(u,n)}function D(e,t){O(e,t,D)}function P(t,n,r){var o,i,s,a=c({},t.props);for(s in n)"key"==s?o=n[s]:"ref"==s?i=n[s]:a[s]=n[s];return arguments.length>2&&(a.children=arguments.length>3?e.call(arguments,2):r),$(t.type,a,o||t.key,i||t.ref,null)}function F(e,t){var n={__c:t="__cC"+s++,__: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(g)},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}e=u.slice,t={__e:function(e,t,n,r){for(var o,i,s;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(e)),s=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,r||{}),s=o.__d),s)return o.__E=o}catch(t){e=t}throw e}},r=0,h.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=c({},this.state),"function"==typeof e&&(e=e(c({},n),this.props)),e&&c(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),g(this))},h.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),g(this))},h.prototype.render=p,o=[],y.__r=0,s=0;var L,G,B,U,V=0,H=[],j=[],z=t.__b,W=t.__r,q=t.diffed,Y=t.__c,K=t.unmount;function Z(e,n){t.__h&&t.__h(G,e,V||n),V=0;var r=G.__H||(G.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({__V:j}),r.__[e]}function J(e){return V=1,X(ce,e)}function X(e,t,n){var r=Z(L++,2);return r.t=e,r.__c||(r.__=[n?n(t):ce(void 0,t),function(e){var t=r.t(r.__[0],e);r.__[0]!==t&&(r.__=[t,r.__[1]],r.__c.setState({}))}],r.__c=G),r.__}function Q(e,n){var r=Z(L++,3);!t.__s&&le(r.__H,n)&&(r.__=e,r.u=n,G.__H.__h.push(r))}function ee(e,n){var r=Z(L++,4);!t.__s&&le(r.__H,n)&&(r.__=e,r.u=n,G.__h.push(r))}function te(e){return V=5,ne((function(){return{current:e}}),[])}function ne(e,t){var n=Z(L++,7);return le(n.__H,t)?(n.__V=e(),n.u=t,n.__h=e,n.__V):n.__}function re(e,t){return V=8,ne((function(){return e}),t)}function oe(e){var t=G.context[e.__c],n=Z(L++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(G)),t.props.value):e.__}function ie(){for(var e;e=H.shift();)if(e.__P)try{e.__H.__h.forEach(ae),e.__H.__h.forEach(ue),e.__H.__h=[]}catch(n){e.__H.__h=[],t.__e(n,e.__v)}}t.__b=function(e){G=null,z&&z(e)},t.__r=function(e){W&&W(e),L=0;var t=(G=e.__c).__H;t&&(B===G?(t.__h=[],G.__h=[],t.__.forEach((function(e){e.__V=j,e.u=void 0}))):(t.__h.forEach(ae),t.__h.forEach(ue),t.__h=[])),B=G},t.diffed=function(e){q&&q(e);var n=e.__c;n&&n.__H&&(n.__H.__h.length&&(1!==H.push(n)&&U===t.requestAnimationFrame||((U=t.requestAnimationFrame)||function(e){var t,n=function(){clearTimeout(r),se&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);se&&(t=requestAnimationFrame(n))})(ie)),n.__H.__.forEach((function(e){e.u&&(e.__H=e.u),e.__V!==j&&(e.__=e.__V),e.u=void 0,e.__V=j}))),B=G=null},t.__c=function(e,n){n.some((function(e){try{e.__h.forEach(ae),e.__h=e.__h.filter((function(e){return!e.__||ue(e)}))}catch(r){n.some((function(e){e.__h&&(e.__h=[])})),n=[],t.__e(r,e.__v)}})),Y&&Y(e,n)},t.unmount=function(e){K&&K(e);var n,r=e.__c;r&&r.__H&&(r.__H.__.forEach((function(e){try{ae(e)}catch(e){n=e}})),n&&t.__e(n,r.__v))};var se="function"==typeof requestAnimationFrame;function ae(e){var t=G,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),G=t}function ue(e){var t=G;e.__c=e.__(),G=t}function le(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function ce(e,t){return"function"==typeof t?t(e):t}function fe(e,t){for(var n in t)e[n]=t[n];return e}function de(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 $e(e){this.props=e}($e.prototype=new h).isPureReactComponent=!0,$e.prototype.shouldComponentUpdate=function(e,t){return de(this.props,e)||de(this.state,t)};var pe=t.__b;t.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),pe&&pe(e)};var he="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function me(e){function t(t){var n=fe({},t);return delete n.ref,e(n,t.ref||null)}return t.$$typeof=he,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var we=function(e,t){return null==e?null:x(x(e).map(t))},ge={map:we,forEach:we,count:function(e){return e?x(e).length:0},only:function(e){var t=x(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:x},ye=t.__e;t.__e=function(e,t,n,r){if(e.then)for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t);ye(e,t,n,r)};var be=t.unmount;function ve(){this.__u=0,this.t=null,this.__b=null}function xe(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function _e(){this.u=null,this.o=null}t.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&!0===e.__h&&(e.type=null),be&&be(e)},(ve.prototype=new h).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var o=xe(r.__v),i=!1,s=function(){i||(i=!0,n.__R=null,o?o(a):a())};n.__R=s;var a=function(){if(!--r.__u){if(r.state.__a){var e=r.state.__a;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({__a:r.__b=null});t=r.t.pop();)t.forceUpdate()}},u=!0===t.__h;r.__u++||u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(s,s)},ve.prototype.componentWillUnmount=function(){this.t=[]},ve.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=fe({},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.__a&&d(p,null,e.fallback);return o&&(o.__h=null),[d(p,null,t.__a?null:e.children),o]};var Se=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 Ce(e){return this.getChildContext=function(){return e.context},e.children}function Ee(e){var t=this,n=e.i;t.componentWillUnmount=function(){O(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)}}),O(d(Ce,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}(_e.prototype=new h).__a=function(e){var t=this,n=xe(t.__v),r=t.o.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),Se(t,e,r)):o()};n?n(i):i()}},_e.prototype.render=function(e){this.u=null,this.o=new Map;var t=x(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},_e.prototype.componentDidUpdate=_e.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){Se(e,n,t)}))};var Te="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,ke=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|shape|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Ie="undefined"!=typeof document,Ae=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(e)};function Ne(e,t,n){return null==t.__k&&(t.textContent=""),O(e,t),"function"==typeof n&&n(),e?e.__c:null}h.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(h.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var Re=t.event;function Me(){}function Oe(){return this.cancelBubble}function De(){return this.defaultPrevented}t.event=function(e){return Re&&(e=Re(e)),e.persist=Me,e.isPropagationStopped=Oe,e.isDefaultPrevented=De,e.nativeEvent=e};var Pe,Fe={configurable:!0,get:function(){return this.class}},Le=t.vnode;t.vnode=function(e){var t=e.type,n=e.props,r=n;if("string"==typeof t){var o=-1===t.indexOf("-");for(var i in r={},n){var s=n[i];Ie&&"children"===i&&"noscript"===t||"value"===i&&"defaultValue"in n&&null==s||("defaultValue"===i&&"value"in n&&null==n.value?i="value":"download"===i&&!0===s?s="":/ondoubleclick/i.test(i)?i="ondblclick":/^onchange(textarea|input)/i.test(i+t)&&!Ae(n.type)?i="oninput":/^onfocus$/i.test(i)?i="onfocusin":/^onblur$/i.test(i)?i="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(i)?i=i.toLowerCase():o&&ke.test(i)?i=i.replace(/[A-Z0-9]/,"-$&").toLowerCase():null===s&&(s=void 0),/^oninput$/i.test(i)&&(i=i.toLowerCase(),r[i]&&(i="oninputCapture")),r[i]=s)}"select"==t&&r.multiple&&Array.isArray(r.value)&&(r.value=x(n.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==t&&null!=r.defaultValue&&(r.value=x(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,n.class!=n.className&&(Fe.enumerable="className"in n,null!=n.className&&(r.class=n.className),Object.defineProperty(r,"className",Fe))}e.$$typeof=Te,Le&&Le(e)};var Ge=t.__r;t.__r=function(e){Ge&&Ge(e),Pe=e.__c};var Be={ReactCurrentDispatcher:{current:{readContext:function(e){return Pe.__n[e.__c].props.value}}}};function Ue(e){return!!e&&e.$$typeof===Te}function Ve(e){return Ue(e)?P.apply(null,arguments):e}function He(e){e()}const je={useState:J,useReducer:X,useEffect:Q,useLayoutEffect:ee,useInsertionEffect:ee,useTransition:function(){return[!1,He]},useDeferredValue:function(e){return e},useSyncExternalStore:function(e,t){var n=J(t),r=n[0],o=n[1];return Q((function(){return e((function(){o(t())}))}),[e,t]),r},startTransition:He,useRef:te,useImperativeHandle:function(e,t,n){V=6,ee((function(){return"function"==typeof e?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0}),null==n?n:n.concat(e))},useMemo:ne,useCallback:re,useContext:oe,useDebugValue:function(e,n){t.useDebugValue&&t.useDebugValue(n?n(e):e)},version:"17.0.2",Children:ge,render:Ne,hydrate:function(e,t,n){return D(e,t),"function"==typeof n&&n(),e?e.__c:null},unmountComponentAtNode:function(e){return!!e.__k&&(O(null,e),!0)},createPortal:function(e,t){var n=d(Ee,{__v:e,i:t});return n.containerInfo=t,n},createElement:d,createContext:F,createFactory:function(e){return d.bind(null,e)},cloneElement:Ve,createRef:function(){return{current:null}},Fragment:p,isValidElement:Ue,findDOMNode:function(e){return e&&(e.base||1===e.nodeType&&e)||null},Component:h,PureComponent:$e,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:de(this.props,e)}function r(t){return this.shouldComponentUpdate=n,d(e,t)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r},forwardRef:me,flushSync:function(e,t){return e(t)},unstable_batchedUpdates:function(e,t){return e(t)},StrictMode:p,Suspense:ve,SuspenseList:_e,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 d(n,o)}return o.displayName="Lazy",o.__f=!0,o},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Be};function ze(){return d("div",{},"Please wait...")}function We(e){return Array.isArray(e)||ArrayBuffer.isView(e)}function qe(e){return null!=e&&"function"==typeof e.Dispose}function Ye(e){qe(e)&&e.Dispose()}function Ke(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 Ze{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 Je(e){return"function"==typeof e.GetEnumerator?e.GetEnumerator():new Ze(e[Symbol.iterator]())}function Xe(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 Qe{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 et(e,t){let n=e.toString(10);for(;n.length<t;)n="0"+n;return n}function tt(e){const t=e;return"number"==typeof t.offset?t.offset:1===e.kind?0:-6e4*e.getTimezoneOffset()}function nt(e,t){return(e=e<0&&null!=t&&10!==t?4294967295+e+1:e).toString(t)}class rt{static id(e){return rt.idMap.has(e)||rt.idMap.set(e,++rt.count),rt.idMap.get(e)}}function ot(e){let t=0,n=5381;const r=e.length;for(;t<r;)n=33*n^e.charCodeAt(t++);return n}function it(e){return 2654435761*e|0}function st(e){return 0===e.length?0:e.reduce(((e,t)=>(e<<5)+e^t))}function at(e){var t;if(null==e)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return it(e);case"string":return ot(e);default:if(function(e){return"function"==typeof e.GetHashCode}(e))return e.GetHashCode();if(We(e))return function(e){const t=e.length,n=new Array(t);for(let r=0;r<t;r++)n[r]=at(e[r]);return st(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=>at(e)));return st(t)}return it(rt.id(e))}}function ut(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 lt(e,t){return ut(e,t,ct)}function ct(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):We(e)?We(t)&&lt(e,t):e instanceof Date?t instanceof Date&&0===ft(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]||!ct(e[n[o]],t[r[o]]))return!1;return!0}(e,t)))}function ft(e,t){let n,r;return"offset"in e&&"offset"in t?(n=e.getTime(),r=t.getTime()):(n=e.getTime()+tt(e),r=t.getTime()+tt(t)),n===r?0:n<r?-1:1}function dt(e,t){return e===t?0:e<t?-1:1}function $t(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,pt)}function pt(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):We(e)?We(t)?$t(e,t):-1:e instanceof Date?t instanceof Date?ft(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=pt(e[s],t[s]),0!==i)return i}return 0}(e,t):-1}function ht(e,t,n){return e(t,n)>0?t:n}function mt(e){const t={};for(const n of e)t[n[0]]=n[1];return t}rt.idMap=new WeakMap,rt.count=0;const wt=Symbol("curried");function gt(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[wt]=t,n}function yt(e,t,n){return r=>1===t?n(...e.concat([r])):yt(e.concat([r]),t-1,n)}function bt(e,t){return null==t||1===t.length?t:wt in t?t[wt]:yt([],e,t)}function vt(e,t,n){if(null!=t){if(wt in t){t=t[wt];for(let e=0;e<n.length;e++)t=t(n[e]);return t}return yt(n,e,t)}}function xt(e){const t=e<0,n=(e=Math.abs(e))%36e5/6e4;return(t?"-":"+")+et(~~(e/36e5),2)+":"+et(n,2)}function _t(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 St(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 Ct(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," ")+xt(null!==(r=e.offset)&&void 0!==r?r:0);if(1!==t.length)return St(i,t,!0);switch(t){case"D":case"d":return _t(i,"first");case"T":case"t":return _t(i,"second");case"O":case"o":return function(e,t){const n=e.toISOString();return n.substring(0,n.length-1)+xt(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 St(e,t,n);switch(t){case"D":case"d":return n?_t(e,"first"):e.toLocaleDateString();case"T":case"t":return n?_t(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 et(e.getFullYear(),4)+"-"+et(e.getMonth()+1,2)+"-"+et(e.getDate(),2)+"T"+et(e.getHours(),2)+":"+et(e.getMinutes(),2)+":"+et(e.getSeconds(),2)+"."+et(e.getMilliseconds(),3)+(t?xt(-6e4*e.getTimezoneOffset()):"")}}(e,n);default:throw new Error("Unrecognized Date print format")}}(e,t)}function Et(e,t){const n=new Date(e);return n.kind=0|(null==t?0:t),n}function Tt(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 kt(e,t){try{return t.contents=function(e,t=!1){const[n,r]=Tt(e),o=null!=r?t&&"Z"===r?1:2:0;return Et(n.getTime(),o)}(e),!0}catch(e){return!1}}const It=Symbol("numeric");function At(e){return"number"==typeof e||(null==e?void 0:e[It])}function Nt(e,t){return"number"==typeof e?e*t:e[It]().multiply(t)}function Rt(e,t){return"number"==typeof e?e.toFixed(t):e[It]().toFixed(t)}function Mt(e,t){return"number"==typeof e?e.toPrecision(t):e[It]().toPrecision(t)}function Ot(e,t){return"number"==typeof e?e.toExponential(t):e[It]().toExponential(t)}function Dt(e){return"number"==typeof e?(Number(e)>>>0).toString(16):e[It]().toHex()}function Pt(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function Ft(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}function Lt(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+=Lt(r);else{if(100===t){n+="; ...";break}n+="; "+Lt(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+" = "+Lt(n,t+1))).join("\n ")+" }":null!==(r=null==o?void 0:o.name)&&void 0!==r?r:""}}return String(e)}class Gt{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=Lt(t[0]),r=n.indexOf(" ")>=0):n=t.map((e=>Lt(e))).join(", "),e+(r?" (":" ")+n+(r?")":"")}}(this.name,this.fields)}GetHashCode(){const e=this.fields.map((e=>at(e)));return e.splice(0,0,it(this.tag)),st(e)}Equals(e){return this===e||!!Ke(this,e)&&this.tag===e.tag&&lt(this.fields,e.fields)}CompareTo(e){return this===e?0:Ke(this,e)?this.tag===e.tag?$t(this.fields,e.fields):this.tag<e.tag?-1:1:-1}}class Bt{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+" = "+Lt(t))).join("\n ")+" }"}(this)}GetHashCode(){return function(e){const t=Object.values(e).map((e=>at(e)));return st(t)}(this)}Equals(e){return function(e,t){if(e===t)return!0;if(Ke(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++)if(!ct(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(Ke(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++){const o=pt(e[n[r]],t[n[r]]);if(0!==o)return o}return 0}return-1}(this,e)}}class Ut{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 Vt(e){return function(e){return e instanceof class{constructor(e){this.message=e}}||e instanceof Error}(e)?e:new Error(String(e))}const Ht=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g,jt=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function zt(e,t){return function(e,t){return"number"==typeof e?e<t?-1:e>t?1:0:e.CompareTo(t)}(e,t)<0}function Wt(e){return{input:e,cont:(t=e,e=>{Ht.lastIndex=0;const n=[],r=[];let o=0,i=Ht.exec(t);for(;i;){const e=i.index+(i[1]||"").length;n.push(t.substring(o,e).replace(/%%/g,"%")),r.push(i),o=Ht.lastIndex,Ht.lastIndex-=1,i=Ht.exec(t)}return 0===n.length?e(t.replace(/%%/g,"%")):(n.push(t.substring(o).replace(/%%/g,"%")),Jt(e,n,r))})};var t}function qt(e,t){return"string"==typeof t?e(t):t.cont(e)}function Yt(e){return qt((e=>e),e)}function Kt(e){return qt((e=>{throw new Error(e)}),e)}function Zt(e,t,n,r,o){let i="";if(t=t||"",o=o||"",At(e))switch("x"!==o.toLowerCase()&&(zt(e,0)?(e=Nt(e,-1),i="-"):t.indexOf(" ")>=0?i=" ":t.indexOf("+")>=0&&(i="+")),r=null==r?null:parseInt(r,10),o){case"f":case"F":e=Rt(e,r=null!=r?r:6);break;case"g":case"G":e=null!=r?Mt(e,r):Mt(e);break;case"e":case"E":e=null!=r?Ot(e,r):Ot(e);break;case"x":e=Dt(e);break;case"X":e=Dt(e).toUpperCase();break;default:e=String(e)}else e=e instanceof Date?Ct(e):Lt(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=tn(e,n-i.length,s,o)):tn(i+e,n,s,o)}return e}function Jt(e,t,n,r="",o=-1){return(...i)=>{let s=r;const a=t.slice(),u=n.slice();for(const e of i){const[,,t,n,r,i]=u[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+=a[0],s+=Zt(e,t,l,r,i),a.splice(0,1),u.splice(0,1)}return 0===u.length?(s+=a[0],e(s)):Jt(e,a,u,s,o)}}function Xt(e,t){const n=e.lastIndexOf(t);return n>=0&&n===e.length-t.length}function Qt(e){return"string"!=typeof e||/^\s*$/.test(e)}function en(e,t){return Array.isArray(t)?t.join(e):Array.from(t).join(e)}function tn(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 nn(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(Pt),t=t.length>0?t:["\\s"];const s=[],a=new RegExp(t.join("|"),"g");let u=!0,l=0;do{const t=a.exec(e);if(null===t){const t=i?e.substring(l).trim():e.substring(l);(!o||t.length>0)&&s.push(t),u=!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)),u=!1):s.push(r)),l=a.lastIndex}}while(u);return s}function rn(e,t){return t.split("").filter((t=>e(t))).join("")}function on(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)}var sn=n(118);class an{constructor(e){this.value=e}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return at(this.value)}Equals(e){return null!=e&&ct(this.value,e instanceof an?e.value:e)}CompareTo(e){return null==e?1:pt(this.value,e instanceof an?e.value:e)}}function un(e){return null==e||e instanceof an?new an(e):e}function ln(e){if(null==e)throw new Error("Option has no value");return e instanceof an?e.value:e}function cn(e){return null==e?void 0:e}function fn(e){return null==e?null:ln(e)}function dn(e){return null==e?[]:[ln(e)]}function $n(e,t){return null!=e?ln(e):t}function pn(e,t){return null!=t?un(e(ln(t))):void 0}function hn(e,t){return null!=t?e(ln(t)):void 0}function mn(e,t){return"function"==typeof e?new e(t):new Array(t)}function wn(e,t,n,r){const o=0|t;return e.fill(r,o,o+n)}function gn(e,t,n){const r=0|t.length,o=mn(n,r);for(let n=0;n<=r-1;n++)o[n]=e(t[n]);return o}function yn(e,t,n){return function(e,t,n,r,o){const i=0|$n(n,0),s=0|$n(pn((e=>i+e),r),e.length);return 0|(n=>{for(;;){const r=n;if(r>=s)return-1;if(o.Equals(t,e[r]))return 0|r;n=r+1}})(i)}(t,e,void 0,void 0,n)>=0}function bn(e,t,n){return n.reduce(e,t)}function vn(e,t,n){if(null==t)return null==n;if(null==n)return!1;{let r=0,o=!0;const i=0|t.length,s=0|n.length;if(i>s)return!1;if(i<s)return!1;for(;r<i&&o;)o=e(t[r],n[r]),r=r+1|0;return o}}function xn(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 _n extends Bt{constructor(e,t){super(),this.head=e,this.tail=t}toString(){return"["+en("; ",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(ct(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 a=s;if(r>18)return 0|o;e=r+1,t=(o<<1)+at(i.head)+631*r,n=a}}})(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],a=0|pt(n.head,r.head);if(0===a){e=i,t=s;continue e}return 0|a}return 1}return null!=o[1]?-1:0}})(this,e)}GetEnumerator(){return new Sn(this)}[Symbol.iterator](){return Xe(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return Je(this)}}class Sn{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 Cn(){return new _n(null,void 0)}function En(e,t){return new _n(e,t)}function Tn(e){return null==e.tail}function kn(e){if(null!=e.tail)return e.head;throw new Error("Collection was empty.\\nParameter name: list")}function In(e){const t=e.tail;if(null!=t)return t;throw new Error("Collection was empty.\\nParameter name: list")}function An(){return Cn()}function Nn(e,t){return En(e,t)}function Rn(e){return En(e,Cn())}function Mn(e){return Tn(e)}function On(e){return kn(e)}function Dn(e){return In(e)}function Pn(e){const t=0|function(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)}(e),n=wn(new Array(t),0,t,null);return((e,t)=>{for(;;){const r=e,o=t;if(Tn(o))break;n[r]=kn(o),e=r+1,t=In(o)}})(0,e),n}function Fn(e,t,n){let r=t,o=n;for(;!Tn(o);)r=e(r,kn(o)),o=In(o);return r}function Ln(e){return Fn(((e,t)=>En(t,e)),Cn(),e)}function Gn(e,t){Fn(((t,n)=>{e(n)}),void 0,t)}function Bn(e,t){let n=t;for(let t=e.length-1;t>=0;t--)n=En(e[t],n);return n}function Un(e){return Bn(e,Cn())}function Vn(e,t){return Fn(((e,t)=>En(t,e)),t,Ln(e))}function Hn(e,t){const n=Cn(),r=Fn(((t,n)=>{const r=new _n(e(n),void 0);return t.tail=r,r}),n,t),o=Cn();return r.tail=o,In(n)}function jn(e,t){return function(e,t){const n=Pn(t);return n.sort(e),Un(n)}(((e,n)=>t.Compare(e,n)),e)}const zn=je,Wn=Lt(sn.Z),qn=d("svg",mt(Un([["className",en(" ",["h-5","w-5","text-gray-400"])],["viewBox","0 0 20 20"],["xmlns","http://www.w3.org/2000/svg"],["fill","currentColor"],(()=>{const e=Rn(d("path",{d:"M13.586 3.586a2 2 0 112.828 2.828l-.793.793-2.828-2.828.793-.793zM11.379 5.793L3 14.172V17h2.828l8.38-8.379-2.83-2.828z"}));return["children",zn.Children.toArray(Array.from(e))]})()]))),Yn=d("svg",mt(Un([["className",en(" ",["h-5","w-5","text-gray-400"])],["viewBox","0 0 20 20"],["xmlns","http://www.w3.org/2000/svg"],["fill","currentColor"],(()=>{const e=Rn(d("path",{d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z","fill-rule":"evenodd",clipRule:"evenodd"}));return["children",zn.Children.toArray(Array.from(e))]})()]))),Kn=d("svg",mt(Un([["className",en(" ",["h-6","w-6","text-gray-400","group-hover:text-primary-hover"])],["viewBox","0 0 24 24"],["xmlns","http://www.w3.org/2000/svg"],["fill","none"],["stroke","currentColor"],["strokeWidth",2],(()=>{const e=Rn(d("path",{d:"M18 12H6",strokeLinejoin:"round",strokeLinecap:"round"}));return["children",zn.Children.toArray(Array.from(e))]})()]))),Zn=d("svg",mt(Un([["className",en(" ",["h-6","w-6","text-gray-400","group-hover:text-primary-hover"])],["viewBox","0 0 24 24"],["xmlns","http://www.w3.org/2000/svg"],["fill","none"],["stroke","currentColor"],["strokeWidth",2],(()=>{const e=Rn(d("path",{d:"M12 6v6m0 0v6m0-6h6m-6 0H6",strokeLinejoin:"round",strokeLinecap:"round"}));return["children",zn.Children.toArray(Array.from(e))]})()]))),Jn=d("svg",mt(Un([["className",en(" ",["h-5","w-5"])],["fill","currentColor"],["viewBox","0 0 20 20"],["xmlns","http://www.w3.org/2000/svg"],(()=>{const e=Rn(d("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"}));return["children",zn.Children.toArray(Array.from(e))]})()]))),Xn=d("svg",mt(Un([["className",en(" ",["h-5","w-5","text-gray-400"])],["fill","currentColor"],["viewBox","0 0 20 20"],["xmlns","http://www.w3.org/2000/svg"],(()=>{const e=Rn(d("path",{"fill-rule":"evenodd",d:"M10 3a1 1 0 01.707.293l3 3a1 1 0 01-1.414 1.414L10 5.414 7.707 7.707a1 1 0 01-1.414-1.414l3-3A1 1 0 0110 3zm-3.707 9.293a1 1 0 011.414 0L10 14.586l2.293-2.293a1 1 0 011.414 1.414l-3 3a1 1 0 01-1.414 0l-3-3a1 1 0 010-1.414z",clipRule:"evenodd"}));return["children",zn.Children.toArray(Array.from(e))]})()]))),Qn=Un(["flex","flex-col","align-center"]);function er(){return e=pt,{Compare:(t,n)=>e(t,n)};var e}const tr="The input sequence has an insufficient number of elements.";function nr(){throw new Error("Enumeration has not started. Call MoveNext.")}function rr(){throw new Error("Enumeration already finished.")}class or{constructor(e){this.f=e}toString(){let e=0,t="seq [";const n=Je(this);try{for(;e<4&&n["System.Collections.IEnumerator.MoveNext"]();)e>0&&(t+="; "),t+=Lt(n["System.Collections.Generic.IEnumerator`1.get_Current"]()),e=e+1|0;return 4===e&&(t+="; ..."),t+"]"}finally{Ye(n)}}GetEnumerator(){return this.f()}[Symbol.iterator](){return Xe(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}class ir{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 sr(e,t,n){return new ir(e,t,n)}function ar(e,t,n){let r,o=!1,i=un(e());const s=()=>{if(null!=i){const e=ln(i);try{n(e)}finally{i=void 0}}},a=()=>{try{s()}finally{r=void 0}};return sr((()=>(o||nr(),null!=r?ln(r):rr())),(()=>{if(o||(o=!0),null!=i){const e=ln(i);let n;try{n=t(e)}catch(e){throw a(),e}return null!=n?(r=n,!0):(a(),!1)}return!1}),s)}function ur(e){return function(e){return new or(e)}(e)}function lr(e){return t="source",null==e&&function(e){throw new Error(e)}(t),Je(e);var t}function cr(e){return ur((()=>Je(e())))}function fr(e){return ur((()=>function(e){let t,n,r,o=!1,i=!1;const s=()=>{if(i=!0,null!=n){const e=n;try{Ye(e)}finally{n=void 0}}if(null!=t){const e=t;try{Ye(e)}finally{t=void 0}}};return sr((()=>(o?i&&rr():nr(),null!=r?ln(r):rr())),(()=>{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=un(e["System.Collections.Generic.IEnumerator`1.get_Current"]()),o=!0;else try{Ye(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=Je(a)):(s(),o=!1)}else t=Je(e)}return ln(o)}}),(()=>{i||s()}))}(e)))}function dr(){return cr((()=>new Array(0)))}function $r(e){return cr((()=>function(e,t){const n=mn(void 0,1);return n[0]=e,n}(e)))}function pr(e){return We(e)?Un(e):e instanceof _n?e:function(e){let t,n;if(We(e))return Un(e);if(e instanceof _n)return e;{const r=Cn();let o=r;const i=Je(e);try{for(;i["System.Collections.IEnumerator.MoveNext"]();){const e=i["System.Collections.Generic.IEnumerator`1.get_Current"]();t=o,n=new _n(e,void 0),t.tail=n,o=n}}finally{Ye(i)}const s=o,a=Cn();return s.tail=a,In(r)}}(e)}function hr(e,t,n){return ur((()=>ar(e,t,n)))}function mr(e,t,n){return ur((()=>{let r=-1;return ar(e,(e=>(r=r+1|0,t(r,e))),n)}))}function wr(e,t){return fr([e,t])}function gr(e,t,n){const r=lr(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{Ye(r)}}function yr(e,t){return function(e,t){return hr((()=>lr(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=>{Ye(e)}))}((t=>e(t)?un(t):void 0),t)}function br(e,t,n){const r=lr(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{Ye(r)}}function vr(e,t){br(((t,n)=>{e(n)}),void 0,t)}function xr(e,t){return hr((()=>lr(t)),(t=>t["System.Collections.IEnumerator.MoveNext"]()?un(e(t["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0),(e=>{Ye(e)}))}function _r(e,t){return ur((()=>{const n=lr(t);try{for(let t=1;t<=e;t++)if(!n["System.Collections.IEnumerator.MoveNext"]())throw new Error(tr+"\\nParameter name: source");return function(e,t){return sr((()=>t["System.Collections.Generic.IEnumerator`1.get_Current"]()),(()=>t["System.Collections.IEnumerator.MoveNext"]()),(()=>{try{Ye(t)}finally{e()}}))}((()=>{}),n)}catch(e){throw Ye(n),e}}))}function Sr(e,t){return cr((()=>fr(xr(e,t))))}Symbol.iterator;const Cr=(e,t)=>{Q((()=>{const t=e();return()=>{t.Dispose()}}),t)};function Er(e){return{Dispose(){e()}}}function Tr(e){return zn.useState(e)}function kr(e){var t;t=e,Q((()=>{const e=t();return()=>{e.Dispose()}}))}function Ir(e,t){Cr(e,t)}function Ar(e,t){Cr((t=>(e(),Er((()=>{})))),t)}function Nr(e){return zn.useRef(e)}function Rr(e,t){const n=$n(t,[]);return zn.useMemo(e,n)}function Mr(e){const t=Nr(e),n=function(e,n){const r=$n([],[]);return zn.useCallback((e=>t.current(e)),r)}();var r,o;return r=()=>{t.current=e},o=e=>(r(),Er((()=>{}))),ee((()=>{const e=o();return()=>{e.Dispose()}})),n}function Or(e){return zn.useState(e)}class Dr{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)}}}}class Pr extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,Pr.prototype)}}class Fr{constructor(){this.callCount=0}static get maxTrampolineCallCount(){return 2e3}incrementAndCheck(){return this.callCount++>Fr.maxTrampolineCallCount}hijack(e){this.callCount=0,setTimeout(e,0)}}function Lr(e){return t=>{if(t.cancelToken.isCancelled)t.onCancel(new Pr);else if(t.trampoline.incrementAndCheck())t.trampoline.hijack((()=>{try{e(t)}catch(e){t.onError(Vt(e))}}));else try{e(t)}catch(e){t.onError(Vt(e))}}}const Gr=new class{Bind(e,t){return function(e,t){return Lr((n=>{e({onSuccess:e=>{try{t(e)(n)}catch(e){n.onError(Vt(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 Lr((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 Lr((t=>t.onSuccess(e)))}(e)}ReturnFrom(e){return e}TryFinally(e,t){return Lr((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 Lr((n=>{e({onSuccess:n.onSuccess,onCancel:n.onCancel,cancelToken:n.cancelToken,trampoline:n.trampoline,onError:e=>{try{t(e)(n)}catch(e){n.onError(Vt(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 Lr((e=>e.onSuccess(void 0)))}};function Br(e){}function Ur(e){const t=new Dr("boolean"==typeof e&&e);return"number"==typeof e&&setTimeout((()=>{t.cancel()}),e),t}function Vr(e){e.cancel()}const Hr=new Dr;function jr(e){return Lr((t=>{let n;const r=setTimeout((()=>{t.cancelToken.removeListener(n),t.onSuccess(void 0)}),e);n=t.cancelToken.addListener((()=>{clearTimeout(r),t.onCancel(new Pr)}))}))}function zr(e,t){return function(e,t){return function(e,t,n,r,o){"function"!=typeof t&&(o=t,t=void 0);const i=new Fr;e({onSuccess:t||Br,onError:n||Br,onCancel:r||Br,cancelToken:o||Hr,trampoline:i})}(e,t)}(e,t)}class Wr extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["HasNotStartedYet","InProgress","Resolved","Failed"]}}function qr(e,t){const n=Nr(Ur());return Ir((()=>Er((()=>{Vr(n.current)}))),[]),Mr((r=>{var o;null!=(o=n.current)&&o.isCancelled||zr(Gr.Delay((()=>Gr.TryWith(Gr.Delay((()=>(t(new Wr(1)),Gr.Bind(e(r),(e=>(t(new Wr(2,e)),Gr.Zero())))))),(e=>(t(new Wr(3,e)),Gr.Zero()))))),n.current)}))}class Yr extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Ok","Error"]}}function Kr(e,t){return 0===t.tag?new Yr(0,e(t.fields[0])):new Yr(1,t.fields[0])}function Zr(e,t){return 0===t.tag?e(t.fields[0]):new Yr(1,t.fields[0])}function Jr(e,t){return null==t?new Yr(1,e):new Yr(0,ln(t))}function Xr(e,t,n){return ct(n,e)?new Yr(0,void 0):new Yr(1,t)}class Qr extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Success","Failure","Info"]}}function eo(e){switch(e.tag){case 0:return"text-green-700";case 2:return"text-blue-700";default:return"text-red-700"}}function to(e){switch(e.tag){case 0:return"bg-green-50";case 2:return"bg-blue-50";default:return"bg-red-50"}}function no(e){return e.tag,e.fields[0]}function ro(e){let t,n,r,o;const i=e.hideAlert,s=e.alert,a=Ur();var u;return u=()=>{!function(e,t){zr(Gr.Delay((()=>Gr.Bind(jr(5e3),(()=>(e(),Gr.Zero()))))),t)}(i,a)},Ar(u,[]),d("div",mt(Un([["className",en(" ",["rounded-md","p-4","my-4",to(s)])],(t=[d("div",mt(Un([["className",en(" ",["flex"])],(n=[d("p",{className:en(" ",["text-sm","pr-2",eo(s)]),children:no(s)}),d("div",mt(Un([["className",en(" ",["ml-auto"])],(r=[d("div",mt(Un([["className",en(" ",["-mx-1.5","-my-1.5"])],(o=[d("button",{type:"button",className:en(" ",pr(cr((()=>wr($r("inline-flex"),cr((()=>wr($r("rounded-md"),cr((()=>wr($r("p-1.5"),cr((()=>wr($r("focus:outline-none"),cr((()=>wr($r("focus:ring-2"),cr((()=>wr($r("focus:ring-offset-2"),cr((()=>function(e){switch(e.tag){case 0:return Un(["bg-green-50","text-green-500","hover:bg-green-100","focus:ring-offset-green-50","focus:ring-green-600"]);case 2:return Un(["bg-blue-50","text-blue-500","hover:bg-blue-100","focus:ring-offset-blue-50","focus:ring-blue-600"]);default:return Un(["bg-red-50","text-red-500","hover:bg-red-100","focus:ring-offset-red-50","focus:ring-red-600"])}}(s))))))))))))))))))))))),children:zn.Children.toArray([Jn]),onClick:e=>{Vr(a),i()}})],["children",zn.Children.toArray(Array.from(o))])])))],["children",zn.Children.toArray(Array.from(r))])])))],["children",zn.Children.toArray(Array.from(n))])])))],["children",zn.Children.toArray(Array.from(t))])])))}function oo(e,t){return t}function io(e,t,n){return Kr(n,t)}new class{constructor(){}};function so(e,t){const n=function(e,t){return new Yr(0,t)}(0,t);return Gr.Return(n)}function ao(e,t){return Gr.Delay(t)}new class{constructor(){}};class uo extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class lo extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Header"]}}class co extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Empty","Text","Binary","Form"]}}class fo extends Bt{constructor(e,t,n,r,o,i,s,a){super(),this.url=e,this.method=t,this.headers=n,this.withCredentials=r,this.overridenMimeType=o,this.overridenResponseType=i,this.timeout=s,this.content=a}}class $o extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class po extends Bt{constructor(e,t,n,r,o){super(),this.statusCode=0|e,this.responseText=t,this.responseType=n,this.responseHeaders=r,this.content=o}}class ho{constructor(e,t){this.k=e,this.v=t}}function mo(e,t){return new ho(e,t)}function wo(e){return e.k}function go(e){return e.v}class yo extends ho{constructor(e,t,n,r,o){super(e,t),this.left=n,this.right=r,this.h=0|o}}function bo(e,t,n,r,o){return new yo(e,t,n,r,o)}function vo(e){return e.left}function xo(e){return e.right}function _o(e){return e.h}function So(e,t){e:for(;;){const n=e,r=t;if(null!=r){const o=r;if(o instanceof yo){e=So(n+1,vo(o)),t=xo(o);continue e}return n+1|0}return 0|n}}function Co(e){return So(0,e)}function Eo(e,t,n,r){let o,i;if(null!=e){const t=e;o=t instanceof yo?_o(t):1}else o=0;if(null!=r){const e=r;i=e instanceof yo?_o(e):1}else i=0;const s=0|(o<i?i:o);return 0===s?mo(t,n):bo(t,n,e,r,s+1)}function To(e,t,n,r){let o,i,s,a,u,l;if(null!=e){const t=e;u=t instanceof yo?_o(t):1}else u=0;if(null!=r){const e=r;l=e instanceof yo?_o(e):1}else l=0;if(l>u+2){const s=ln(r);if(s instanceof yo){if(o=vo(s),(null!=o?(i=o,i instanceof yo?_o(i):1):0)>u+1){const r=ln(vo(s));if(r instanceof yo)return Eo(Eo(e,t,n,vo(r)),wo(r),go(r),Eo(xo(r),wo(s),go(s),xo(s)));throw new Error("internal error: Map.rebalance")}return Eo(Eo(e,t,n,vo(s)),wo(s),go(s),xo(s))}throw new Error("internal error: Map.rebalance")}if(u>l+2){const o=ln(e);if(o instanceof yo){if(s=xo(o),(null!=s?(a=s,a instanceof yo?_o(a):1):0)>l+1){const e=ln(xo(o));if(e instanceof yo)return Eo(Eo(vo(o),wo(o),go(o),vo(e)),wo(e),go(e),Eo(xo(e),t,n,r));throw new Error("internal error: Map.rebalance")}return Eo(vo(o),wo(o),go(o),Eo(xo(o),t,n,r))}throw new Error("internal error: Map.rebalance")}return Eo(e,t,n,r)}function ko(e,t,n,r){if(null!=r){const o=r,i=0|e.Compare(t,wo(o));return o instanceof yo?i<0?To(ko(e,t,n,vo(o)),wo(o),go(o),xo(o)):0===i?bo(t,n,vo(o),xo(o),_o(o)):To(vo(o),wo(o),go(o),ko(e,t,n,xo(o))):i<0?bo(t,n,void 0,r,2):0===i?mo(t,n):bo(t,n,r,void 0,2)}return mo(t,n)}function Io(e,t,n){e:for(;;){const r=e,o=t,i=n;if(null!=i){const s=i,a=0|r.Compare(o,wo(s));if(0===a)return un(go(s));if(s instanceof yo){e=r,t=o,n=a<0?vo(s):xo(s);continue e}return}return}}function Ao(e,t,n,r,o){return t(n,r)?ko(e,n,r,o):o}function No(e,t,n,r){e:for(;;){const o=e,i=t,s=n,a=r;if(null!=s){const u=s;if(u instanceof yo){const s=No(o,i,vo(u),a),l=Ao(o,i,wo(u),go(u),s);e=o,t=i,n=xo(u),r=l;continue e}return Ao(o,i,wo(u),go(u),a)}return a}}function Ro(e,t,n){return No(e,t,n,void 0)}function Mo(e,t){e:for(;;){const n=e,r=t;if(null!=r){const o=r;if(o instanceof yo){Mo(n,vo(o)),n(wo(o),go(o)),e=n,t=xo(o);continue e}n(wo(o),go(o))}break}}function Oo(e,t){Mo(e,t)}function Do(e,t){if(null!=t){const n=t;if(n instanceof yo){const t=Do(e,vo(n)),r=e(wo(n),go(n)),o=Do(e,xo(n));return bo(wo(n),r,t,o,_o(n))}return mo(wo(n),e(wo(n),go(n)))}}function Po(e,t){return Do(e,t)}function Fo(e,t){let n;for(let r=0;r<=t.length-1;r++){const o=t[r];n=ko(e,o[0],o[1],n)}return n}class Lo extends Bt{constructor(e,t){super(),this.stack=e,this.started=t}}function Go(e){e:for(;;){const t=e;if(Mn(t))return An();{const n=Dn(t),r=On(t);if(null!=r){const o=r;if(o instanceof yo){e=Bn([vo(o),mo(wo(o),go(o)),xo(o)],n);continue e}return t}e=n;continue e}}}function Bo(e){return new Lo(Go(Rn(e)),!1)}function Uo(e){if(e.started){const t=e.stack;if(Mn(t))return function(){throw new Error("enumeration already finished")}();if(null!=On(t)){const e=On(t);if(e instanceof yo)throw new Error("Please report error: Map iterator, unexpected stack for current");return[wo(e),go(e)]}throw new Error("Please report error: Map iterator, unexpected stack for current")}return function(){throw new Error("enumeration not started")}()}function Vo(e){let t=Bo(e);return{"System.Collections.Generic.IEnumerator`1.get_Current":()=>Uo(t),"System.Collections.IEnumerator.get_Current":()=>Uo(t),"System.Collections.IEnumerator.MoveNext":()=>function(e){if(e.started){const t=e.stack;if(Mn(t))return!1;if(null!=On(t)){if(On(t)instanceof yo)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=Go(Dn(t)),!Mn(e.stack)}throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}return e.started=!0,!Mn(e.stack)}(t),"System.Collections.IEnumerator.Reset"(){t=Bo(e)},Dispose(){}}}class Ho{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=Je(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const e=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n=0|t(n,at(e[0])),n=0|t(n,at(e[1]))}}finally{Ye(r)}return 0|n}(this)}Equals(e){if(!(e instanceof Ho))return!1;{const t=Je(this);try{const n=Je(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!(!ct(r[0],o[0])||!ct(r[1],o[1]))&&e()}return!0}return!1};return e()}finally{Ye(n)}}finally{Ye(t)}}}toString(){return"map ["+en("; ",xr((e=>function(e,...t){return"object"==typeof e&&t.length>0&&(e=t[0],t.shift()),e.replace(jt,((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 a=t[n];if(At(a))switch(i=null==i?null:parseInt(i,10),o){case"f":case"F":a=Rt(a,i=null!=i?i:2);break;case"g":case"G":a=null!=i?Mt(a,i):Mt(a);break;case"e":case"E":a=null!=i?Ot(a,i):Ot(a);break;case"p":case"P":i=null!=i?i:2,a=Rt(Nt(a,100),i)+" %";break;case"d":case"D":a=null!=i?tn(String(a),i,"0"):String(a);break;case"x":case"X":a=null!=i?tn(Dt(a),i,"0"):Dt(a),"X"===o&&(a=a.toUpperCase());break;default:if(s){let e="";a=s.replace(/([0#,]+)(\.[0#]+)?/,((t,n,r)=>{zt(a,0)&&(a=Nt(a,-1),e="-");const o=null!=r?r.length:0;if(a=Rt(a,Math.max(o-1,0)),n.indexOf(",")>0){const[e,t]=a.split("."),n=e.length%3,r=Math.floor(e.length/3);let o=n>0?e.substr(0,n)+(r>0?",":""):"";for(let t=0;t<r;t++)o+=e.substr(n+3*t,3)+(t<r-1?",":"");a=t?o+"."+t:o}const i=(n=n.replace(/,/g,"")).length>0&&"0"===n[0]?n.length:0;return tn(a,i-e.length+o,"0")})),a=e+a}}else a=a instanceof Date?Ct(a,s||o):Lt(a);return r=parseInt((r||" ").substring(1),10),isNaN(r)||(a=tn(String(a),Math.abs(r)," ",r<0)),a}))}("({0}, {1})",e[0],e[1])),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(e){return Array.from(this)}GetEnumerator(){return Vo(this.tree)}[Symbol.iterator](){return Xe(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return Vo(this.tree)}CompareTo(e){const t=this;if(e instanceof Ho)return 0|function(e,t,n){const r=lr(t);try{const t=lr(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{Ye(t)}}finally{Ye(r)}}(((e,n)=>{const r=0|t.comparer.Compare(e[0],n[0]);return 0|(0!==r?r:pt(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 Yo(this,e[0])&&ct(Wo(this,e[0]),e[1])}"System.Collections.Generic.ICollection`1.CopyToZ2E171D71"(e,t){!function(e,t,n){let r=n;Oo(((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|qo(this)}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return 0|qo(this)}get size(){return 0|qo(this)}clear(){throw new Error("Map cannot be mutated")}delete(e){throw new Error("Map cannot be mutated")}entries(){return xr((e=>[e[0],e[1]]),this)}get(e){return Wo(this,e)}has(e){return Yo(this,e)}keys(){return xr((e=>e[0]),this)}set(e,t){throw new Error("Map cannot be mutated")}values(){return xr((e=>e[1]),this)}forEach(e,t){const n=this;vr((t=>{e(t[1],t[0],n)}),n)}}function jo(e,t){return new Ho(e,t)}function zo(e){const t=er();return jo(t,function(e,t){if(We(t))return Fo(e,t);if(t instanceof _n)return function(e,t){return Fn(((t,n)=>ko(e,n[0],n[1],t)),void 0,t)}(e,t);{const n=Je(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=ko(r,s[0],s[1],o),n=i}}}(e,void 0,n)}finally{Ye(n)}}}(t,e))}function Wo(e,t){return function(e,t,n){const r=Io(e,t,n);if(null==r)throw new Error;return ln(r)}(e.comparer,t,e.tree)}function qo(e){return Co(e.tree)}function Yo(e,t){return function(e,t,n){e:for(;;){const r=e,o=t,i=n;if(null!=i){const s=i,a=0|r.Compare(o,wo(s));if(s instanceof yo){if(a<0){e=r,t=o,n=vo(s);continue e}if(0===a)return!0;e=r,t=o,n=xo(s);continue e}return 0===a}return!1}}(e.comparer,t,e.tree)}function Ko(e,t,n){return function(e,t,n){return jo(e.comparer,ko(e.comparer,t,n,e.tree))}(n,e,t)}function Zo(e,t){return function(e,t){return Io(e.comparer,t,e.tree)}(t,e)}function Jo(e,t){return function(e,t){return jo(e.comparer,Po(t,e.tree))}(t,e)}function Xo(e){return zo(e)}function Qo(){return Ho.empty}Ho.empty=jo(er(),void 0);const ei=new fo("",new uo(0),An(),!1,void 0,void 0,void 0,new co(0));function ti(e,t){return"string"!=typeof(n=t)||0===n.length?[t]:nn(t,[e],null,0);var n}function ni(e){return new fo(e,ei.method,ei.headers,ei.withCredentials,ei.overridenMimeType,ei.overridenResponseType,ei.timeout,ei.content)}function ri(e,t){return new fo(t.url,e,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function oi(e,t){return new fo(t.url,t.method,Vn(t.headers,Rn(e)),t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function ii(e){return function(e){return Lr((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,a;4===n.readyState&&t[0]((r=n.responseType,e=""===r||"text"===r?n.responseText:"",o=0|n.status,i=n.responseType,a=n.responseType,s=""===a||"text"===a?new $o(0,n.responseText):new $o("arraybuffer"===a?2:"blob"===a?1:3,n.response),new po(o,e,i,function(e){const t=er();return jo(t,Fo(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=ln(o);r.push(e)}}return r}((e=>{const t=Un(ti(":",e));return Mn(t)?void 0:[On(t).toLocaleLowerCase(),en(":",Dn(t)).trim()]}),ti("\r\n",n.getAllResponseHeaders()))),s)))};const r=Je(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{Ye(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 s=e.timeout;if(null==s);else{const e=0|s;n.timeout=0|e}const a=[e.method,e.content];0===a[0].tag?n.send(un(void 0)):1===a[1].tag||3===a[1].tag||2===a[1].tag?n.send(un(a[1].fields[0])):n.send(un(void 0))}))}new po(0,"","",Qo(),new $o(0,""));class si extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class ai extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["PascalCase","CamelCase","SnakeCase"]}}class ui{constructor(){this.cache=new Map([])}}function li(){return new ui}function ci(e){return e.slice(void 0,1).toLowerCase()+e.slice(1,e.length)}function fi(e,t){switch(e.tag){case 2:return function(e,t,n,r,o=0){if("string"==typeof e){const n=e;e=function(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)}(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),a=Ft(e,s),u=Ft.length>r?(i=a[r-1],s.substring(0,i.index+i[0].length)):s;return t.substring(0,o)+u.replace(e,n)+t.substring(o+u.length)}return t.replace(e,n)}(ci(t),"[A-Z]","_$0").toLowerCase();case 0:return t;default:return ci(t)}}li(),li();const di=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,$i=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,pi=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function hi(e,t){try{return t.contents=function(e){function t(e){return e.replace($i,"$1-$2-$3-$4-$5")}const n=e.trim().toLowerCase();if(di.test(n))return function(e,...t){if(0===t.length)return e.trim();const n="["+Pt(t.join(""))+"]+";return e.replace(new RegExp("^"+n),"").replace(new RegExp(n+"$"),"")}(n,"{","}","(",")");if($i.test(n))return t(n);if(pi.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}}var mi;function wi(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 gi(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&mi.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]=wi(!0,r);!n&&10!==i.radix&&e>=t&&e<=o&&(e=e<<32-r>>32-r);const[s,a]=wi(n,r);if(e>=s&&e<=a)return e}}throw new Error("Input string was not in a correct format.")}function yi(e,t,n,r,o){try{return o.contents=gi(e,t,n,r),!0}catch(e){return!1}}function bi(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 vi(e,t){try{return t.contents=function(e){const[t,n]=Tt(e),r=null==n?-6e4*t.getTimezoneOffset():"Z"===n?0:6e4*n;return bi(t.getTime(),r)}(e),!0}catch(e){return!1}}!function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"}(mi||(mi={}));var xi=null;try{xi=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(u){}function _i(e,t,n){this.low=0|e,this.high=0|t,this.unsigned=!!n}function Si(e){return!0===(e&&e.__isLong__)}_i.prototype.GetHashCode=function(){let e=this.unsigned?1:0;return e=(e<<5)+e^this.high,e=(e<<5)+e^this.low,e},_i.prototype.Equals=function(e){return Ji(this,e)},_i.prototype.CompareTo=function(e){return ts(this,e)},_i.prototype.toString=function(e){return qi(this,e)},_i.prototype.toJSON=function(){return qi(this)},_i.prototype[It]=function(){const e=this;return{multiply:t=>is(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 qi(e.unsigned?e:function(e,t,n){return n?function(e,t){return new _i(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 _i(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}}},_i.prototype.__isLong__,Object.defineProperty(_i.prototype,"__isLong__",{value:!0});var Ci={},Ei={};function Ti(e,t){var n,r,o;return t?(o=0<=(e>>>=0)&&e<256)&&(r=Ei[e])?r:(n=Ii(e,(0|e)<0?-1:0,!0),o&&(Ei[e]=n),n):(o=-128<=(e|=0)&&e<128)&&(r=Ci[e])?r:(n=Ii(e,e<0?-1:0,!1),o&&(Ci[e]=n),n)}function ki(e,t){if(isNaN(e))return t?Li:Fi;if(t){if(e<0)return Li;if(e>=Oi)return Hi}else{if(e<=-Di)return ji;if(e+1>=Di)return Vi}return e<0?ns(ki(-e,t)):Ii(e%Mi|0,e/Mi|0,t)}function Ii(e,t,n){return new _i(e,t,n)}var Ai=Math.pow;function Ni(e,t,n){if(0===e.length)throw Error("empty string");if("NaN"===e||"Infinity"===e||"+Infinity"===e||"-Infinity"===e)return Fi;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 ns(Ni(e.substring(1),t,n));for(var o=ki(Ai(n,8)),i=Fi,s=0;s<e.length;s+=8){var a=Math.min(8,e.length-s),u=parseInt(e.substring(s,s+a),n);i=rs(a<8?is(i,ki(Ai(n,a))):i=is(i,o),ki(u))}return i.unsigned=t,i}function Ri(e,t){return"number"==typeof e?ki(e,t):"string"==typeof e?Ni(e,t):Ii(e.low,e.high,"boolean"==typeof t?t:e.unsigned)}var Mi=4294967296,Oi=Mi*Mi,Di=Oi/2,Pi=Ti(1<<24),Fi=Ti(0),Li=Ti(0,!0),Gi=Ti(1),Bi=Ti(1,!0),Ui=Ti(-1),Vi=Ii(-1,2147483647,!1),Hi=Ii(-1,-1,!0),ji=Ii(0,-2147483648,!1);function zi(e){return e.unsigned?e.low>>>0:e.low}function Wi(e){return e.unsigned?(e.high>>>0)*Mi+(e.low>>>0):e.high*Mi+(e.low>>>0)}function qi(e,t){if((t=t||10)<2||36<t)throw RangeError("radix");if(Yi(e))return"0";if(Ki(e)){if(Ji(e,ji)){var n=ki(t),r=ss(e,n),o=os(is(r,n),e);return qi(r,t)+zi(o).toString(t)}return"-"+qi(ns(e),t)}for(var i=ki(Ai(t,6),e.unsigned),s=e,a="";;){var u=ss(s,i),l=(zi(os(s,is(u,i)))>>>0).toString(t);if(Yi(s=u))return l+a;for(;l.length<6;)l="0"+l;a=""+l+a}}function Yi(e){return 0===e.high&&0===e.low}function Ki(e){return!e.unsigned&&e.high<0}function Zi(e){return 1==(1&e.low)}function Ji(e,t){return Si(t)||(t=Ri(t)),(e.unsigned===t.unsigned||e.high>>>31!=1||t.high>>>31!=1)&&e.high===t.high&&e.low===t.low}function Xi(e,t){return ts(e,t)<0}function Qi(e,t){return ts(e,t)>0}function es(e,t){return ts(e,t)>=0}function ts(e,t){if(Si(t)||(t=Ri(t)),Ji(e,t))return 0;var n=Ki(e),r=Ki(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:Ki(os(e,t))?-1:1}function ns(e){return!e.unsigned&&Ji(e,ji)?ji:rs(function(e){return Ii(~e.low,~e.high,e.unsigned)}(e),Gi)}function rs(e,t){Si(t)||(t=Ri(t));var n=e.high>>>16,r=65535&e.high,o=e.low>>>16,i=65535&e.low,s=t.high>>>16,a=65535&t.high,u=t.low>>>16,l=0,c=0,f=0,d=0;return f+=(d+=i+(65535&t.low))>>>16,c+=(f+=o+u)>>>16,l+=(c+=r+a)>>>16,l+=n+s,Ii((f&=65535)<<16|(d&=65535),(l&=65535)<<16|(c&=65535),e.unsigned)}function os(e,t){return Si(t)||(t=Ri(t)),rs(e,ns(t))}function is(e,t){if(Yi(e))return e.unsigned?Li:Fi;if(Si(t)||(t=Ri(t)),xi)return Ii(xi.mul(e.low,e.high,t.low,t.high),xi.get_high(),e.unsigned);if(Yi(t))return e.unsigned?Li:Fi;if(Ji(e,ji))return Zi(t)?ji:Fi;if(Ji(t,ji))return Zi(e)?ji:Fi;if(Ki(e))return Ki(t)?is(ns(e),ns(t)):ns(is(ns(e),t));if(Ki(t))return ns(is(e,ns(t)));if(Xi(e,Pi)&&Xi(t,Pi))return ki(Wi(e)*Wi(t),e.unsigned);var n=e.high>>>16,r=65535&e.high,o=e.low>>>16,i=65535&e.low,s=t.high>>>16,a=65535&t.high,u=t.low>>>16,l=65535&t.low,c=0,f=0,d=0,$=0;return d+=($+=i*l)>>>16,f+=(d+=o*l)>>>16,d&=65535,f+=(d+=i*u)>>>16,c+=(f+=r*l)>>>16,f&=65535,c+=(f+=o*u)>>>16,f&=65535,c+=(f+=i*a)>>>16,c+=n*l+r*u+o*a+i*s,Ii((d&=65535)<<16|($&=65535),(c&=65535)<<16|(f&=65535),e.unsigned)}function ss(e,t){if(Si(t)||(t=Ri(t)),Yi(t))throw Error("division by zero");var n,r,o;if(xi)return e.unsigned||-2147483648!==e.high||-1!==t.low||-1!==t.high?Ii((e.unsigned?xi.div_u:xi.div_s)(e.low,e.high,t.low,t.high),xi.get_high(),e.unsigned):e;if(Yi(e))return e.unsigned?Li:Fi;if(e.unsigned){if(t.unsigned||(t=function(e){return e.unsigned?e:Ii(e.low,e.high,!0)}(t)),Qi(t,e))return Li;if(Qi(t,function(e,t){if(Si(t)&&(t=zi(t)),0==(t&=63))return e;var n=e.high;return t<32?Ii(e.low>>>t|n<<32-t,n>>>t,e.unsigned):Ii(32===t?n:n>>>t-32,0,e.unsigned)}(e,1)))return Bi;o=Li}else{if(Ji(e,ji))return Ji(t,Gi)||Ji(t,Ui)?ji:Ji(t,ji)?Gi:Ji(n=function(e,t){return Si(t)&&(t=zi(t)),0==(t&=63)?e:t<32?Ii(e.low<<t,e.high<<t|e.low>>>32-t,e.unsigned):Ii(0,e.low<<t-32,e.unsigned)}(ss(function(e,t){return Si(t)&&(t=zi(t)),0==(t&=63)?e:t<32?Ii(e.low>>>t|e.high<<32-t,e.high>>t,e.unsigned):Ii(e.high>>t-32,e.high>=0?0:-1,e.unsigned)}(e,1),t),1),Fi)?Ki(t)?Gi:Ui:o=rs(n,ss(r=os(e,is(t,n)),t));if(Ji(t,ji))return e.unsigned?Li:Fi;if(Ki(e))return Ki(t)?ss(ns(e),ns(t)):ns(ss(ns(e),t));if(Ki(t))return ns(ss(e,ns(t)));o=Fi}for(r=e;es(r,t);){n=Math.max(1,Math.floor(Wi(r)/Wi(t)));for(var i=Math.ceil(Math.log(n)/Math.LN2),s=i<=48?1:Ai(2,i-48),a=ki(n),u=is(a,t);Ki(u)||Qi(u,r);)u=is(a=ki(n-=s,e.unsigned),t);Yi(a)&&(a=Gi),o=rs(o,a),r=os(r,u)}return o}const as=ss,us=Wi;function ls(e){return e<0?Math.ceil(e):Math.floor(e)}function cs(e=0,t=0,n=0,r=0,o=0){switch(arguments.length){case 1:return fs(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 fs(e){return us(as(e,1e4))}function ds(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 cs(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],a=+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*cs(n,s,a,o,r)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}(e),!0}catch(e){return!1}}class $s{constructor(e,t,n,r){this.declaringType=e,this.tag=t,this.name=n,this.fields=r}}class ps{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 Is(this)}GetHashCode(){return ms(this)}Equals(e){return ws(this,e)}}function hs(e){return null!=e.generics?e.generics:[]}function ms(e){return st([ot(e.fullname),...hs(e).map(ms)])}function ws(e,t){return""===e.fullname?""===t.fullname&&ut(Gs(e),Gs(t),(([e,t],[n,r])=>e===n&&ws(t,r))):e.fullname===t.fullname&&ut(hs(e),hs(t),ws)}function gs(e,t,n,r){return new ps(e,t,n,void 0,r)}function ys(...e){return new ps("",void 0,void 0,void 0,(()=>e))}function bs(e,t,n,r){const o=new ps(e,t,n,void 0,void 0,(()=>{const e=n.prototype.cases();return r().map(((t,n)=>new $s(o,n,e[n],t)))}));return o}function vs(e){return new ps("Microsoft.FSharp.Core.FSharpOption`1",[e])}function xs(e){return new ps("Microsoft.FSharp.Collections.FSharpList`1",[e])}function _s(e,t,n){return new ps(e,[t],void 0,void 0,void 0,void 0,n)}const Ss=new ps("System.Object"),Cs=(new ps("Microsoft.FSharp.Core.Unit"),new ps("System.Char"),new ps("System.String")),Es=new ps("System.Boolean"),Ts=(new ps("System.SByte"),new ps("System.Byte"),new ps("System.Int16"),new ps("System.UInt16"),new ps("System.Int32"));function ks(e){if(Array.isArray(e))return e[0];if(e instanceof ps){const t=Ns(e);if(null!=t)return ks(t)+"[]";{const t=e.fullname.lastIndexOf(".");return-1===t?e.fullname:e.fullname.substr(t+1)}}return e.name}function Is(e){const t=Ns(e);return null!=t?Is(t)+"[]":null==e.generics||0===e.generics.length?e.fullname:e.fullname+"["+e.generics.map((e=>Is(e))).join(",")+"]"}function As(e){return null!=Ns(e)}function Ns(e){var t;return"[]"===e.fullname&&1===(null===(t=e.generics)||void 0===t?void 0:t.length)?e.generics[0]:void 0}function Rs(e){return null!=e.generics&&e.generics.length>0}function Ms(e){return null!=e.enumCases&&e.enumCases.length>0}function Os(e){return null==e.generics?e:new ps(e.fullname,e.generics.map((()=>Ss)))}function Ds(e){var t;return null===(t=e.generics)||void 0===t?void 0:t[0]}function Ps(e){if(Ms(e)&&null!=e.enumCases)return e.enumCases.map((e=>e[1]));throw new Error(`${e.fullname} is not an enum type`)}function Fs(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 Ls(e){if(null!=e.cases)return e.cases();throw new Error(`${e.fullname} is not an F# union type`)}function Gs(e){if(null!=e.fields)return e.fields();throw new Error(`${e.fullname} is not an F# record type`)}function Bs(e){if(Hs(e)&&null!=e.generics)return e.generics;throw new Error(`${e.fullname} is not a tuple type`)}function Us(e){return e instanceof ps?null!=e.cases:e instanceof Gt}function Vs(e){return e instanceof ps?null!=e.fields:e instanceof Bt}function Hs(e){return e.fullname.startsWith("System.Tuple")}function js(e){return null==e.fields?[]:e.fields}function zs(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):{}}new ps("System.UInt32"),new ps("System.Single"),new ps("System.Double"),new ps("System.Decimal");class Ws{constructor(e){this.k=e}}function qs(e){return new Ws(e)}function Ys(e){return e.k}class Ks extends Ws{constructor(e,t,n,r){super(e),this.left=t,this.right=n,this.h=0|r}}function Zs(e,t,n,r){return new Ks(e,t,n,r)}function Js(e){return e.left}function Xs(e){return e.right}function Qs(e){return e.h}function ea(e,t){e:for(;;){const n=e,r=t;if(null!=n){const o=n;if(o instanceof Ks){e=Js(o),t=ea(Xs(o),r+1);continue e}return r+1|0}return 0|r}}function ta(e){return ea(e,0)}function na(e,t,n){let r,o;if(null!=e){const t=e;r=t instanceof Ks?Qs(t):1}else r=0;if(null!=n){const e=n;o=e instanceof Ks?Qs(e):1}else o=0;const i=0|(r<o?o:r);return 0===i?qs(t):Zs(t,e,n,i+1)}function ra(e,t,n){let r,o,i,s,a,u;if(null!=e){const t=e;a=t instanceof Ks?Qs(t):1}else a=0;if(null!=n){const e=n;u=e instanceof Ks?Qs(e):1}else u=0;if(u>a+2){const i=ln(n);if(i instanceof Ks){if(r=Js(i),(null!=r?(o=r,o instanceof Ks?Qs(o):1):0)>a+1){const n=ln(Js(i));if(n instanceof Ks)return na(na(e,t,Js(n)),Ys(n),na(Xs(n),Ys(i),Xs(i)));throw new Error("internal error: Set.rebalance")}return na(na(e,t,Js(i)),Ys(i),Xs(i))}throw new Error("internal error: Set.rebalance")}if(a>u+2){const r=ln(e);if(r instanceof Ks){if(i=Xs(r),(null!=i?(s=i,s instanceof Ks?Qs(s):1):0)>u+1){const e=ln(Xs(r));if(e instanceof Ks)return na(na(Js(r),Ys(r),Js(e)),Ys(e),na(Xs(e),t,n));throw new Error("internal error: Set.rebalance")}return na(Js(r),Ys(r),na(Xs(r),t,n))}throw new Error("internal error: Set.rebalance")}return na(e,t,n)}function oa(e,t,n){if(null!=n){const r=n,o=0|e.Compare(t,Ys(r));if(r instanceof Ks)return o<0?ra(oa(e,t,Js(r)),Ys(r),Xs(r)):0===o?n:ra(Js(r),Ys(r),oa(e,t,Xs(r)));{const o=0|e.Compare(t,Ys(r));return o<0?Zs(t,void 0,n,2):0===o?n:Zs(t,n,void 0,2)}}return qs(t)}function ia(e,t,n){e:for(;;){const r=e,o=t,i=n;if(null!=i){const s=i,a=0|r.Compare(o,Ys(s));if(s instanceof Ks){if(a<0){e=r,t=o,n=Js(s);continue e}if(0===a)return!0;e=r,t=o,n=Xs(s);continue e}return 0===a}return!1}}function sa(e,t){e:for(;;){const n=e,r=t;if(null!=r){const o=r;if(o instanceof Ks){sa(n,Js(o)),n(Ys(o)),e=n,t=Xs(o);continue e}n(Ys(o))}break}}class aa extends Bt{constructor(e,t){super(),this.stack=e,this.started=t}}function ua(e){e:for(;;){const t=e;if(Mn(t))return An();{const n=On(t),r=Dn(t);if(null!=n){const o=n;if(o instanceof Ks){e=Bn([Js(o),qs(Ys(o)),Xs(o)],r);continue e}return t}e=r;continue e}}}function la(e){return new aa(ua(Rn(e)),!1)}function ca(e){if(e.started){const t=e.stack;if(Mn(t))return function(){throw new Error("Enumeration already started")}();if(null!=On(t))return Ys(On(t));throw new Error("Please report error: Set iterator, unexpected stack for current")}return function(){throw new Error("Enumeration not started")}()}function fa(e){let t=la(e);return{"System.Collections.Generic.IEnumerator`1.get_Current":()=>ca(t),"System.Collections.IEnumerator.get_Current":()=>ca(t),"System.Collections.IEnumerator.MoveNext":()=>function(e){if(e.started){const t=e.stack;if(Mn(t))return!1;if(null!=On(t)){if(On(t)instanceof Ks)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=ua(Dn(t)),!Mn(e.stack)}throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}return e.started=!0,!Mn(e.stack)}(t),"System.Collections.IEnumerator.Reset"(){t=la(e)},Dispose(){}}}function da(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(Mn(s[0]))return Mn(s[1])?0:-1;if(Mn(s[1]))return 1;if(null!=On(s[1]))if(null!=On(s[0])){const a=On(s[0]),u=On(s[1]);if(a instanceof Ks)if(null==Js(a)){if(!(u instanceof Ks)){const o=0|r.Compare(Ys(a),Ys(u));if(0!==o)return 0|o;e=r,t=Nn(Xs(a),Dn(s[0])),n=Nn(void 0,Dn(s[1]));continue e}if(null==Js(u)){const o=0|r.Compare(Ys(a),Ys(u));if(0!==o)return 0|o;e=r,t=Nn(Xs(a),Dn(s[0])),n=Nn(Xs(u),Dn(s[1]));continue e}{const s=[o,i];let a,u,l,c,f;switch(Mn(s[0])?Mn(s[1])?a=2:null!=On(s[1])?(a=1,c=Dn(s[1]),f=On(s[1])):a=2:null!=On(s[0])?(a=0,u=Dn(s[0]),l=On(s[0])):Mn(s[1])?a=2:null!=On(s[1])?(a=1,c=Dn(s[1]),f=On(s[1])):a=2,a){case 0:if(l instanceof Ks){e=r,t=Bn([Js(l),Zs(Ys(l),void 0,Xs(l),0)],u),n=i;continue e}e=r,t=Bn([void 0,qs(Ys(l))],u),n=i;continue e;case 1:if(f instanceof Ks){e=r,t=o,n=Bn([Js(f),Zs(Ys(f),void 0,Xs(f),0)],c);continue e}e=r,t=o,n=Bn([void 0,qs(Ys(f))],c);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const s=[o,i];let a,u,l,c,f;switch(Mn(s[0])?Mn(s[1])?a=2:null!=On(s[1])?(a=1,c=Dn(s[1]),f=On(s[1])):a=2:null!=On(s[0])?(a=0,u=Dn(s[0]),l=On(s[0])):Mn(s[1])?a=2:null!=On(s[1])?(a=1,c=Dn(s[1]),f=On(s[1])):a=2,a){case 0:if(l instanceof Ks){e=r,t=Bn([Js(l),Zs(Ys(l),void 0,Xs(l),0)],u),n=i;continue e}e=r,t=Bn([void 0,qs(Ys(l))],u),n=i;continue e;case 1:if(f instanceof Ks){e=r,t=o,n=Bn([Js(f),Zs(Ys(f),void 0,Xs(f),0)],c);continue e}e=r,t=o,n=Bn([void 0,qs(Ys(f))],c);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else{if(!(u instanceof Ks)){const o=0|r.Compare(Ys(a),Ys(u));if(0!==o)return 0|o;e=r,t=Dn(s[0]),n=Dn(s[1]);continue e}if(null==Js(u)){const o=0|r.Compare(Ys(a),Ys(u));if(0!==o)return 0|o;e=r,t=Nn(void 0,Dn(s[0])),n=Nn(Xs(u),Dn(s[1]));continue e}{const s=[o,i];let a,u,l,c,f;switch(Mn(s[0])?Mn(s[1])?a=2:null!=On(s[1])?(a=1,c=Dn(s[1]),f=On(s[1])):a=2:null!=On(s[0])?(a=0,u=Dn(s[0]),l=On(s[0])):Mn(s[1])?a=2:null!=On(s[1])?(a=1,c=Dn(s[1]),f=On(s[1])):a=2,a){case 0:if(l instanceof Ks){e=r,t=Bn([Js(l),Zs(Ys(l),void 0,Xs(l),0)],u),n=i;continue e}e=r,t=Bn([void 0,qs(Ys(l))],u),n=i;continue e;case 1:if(f instanceof Ks){e=r,t=o,n=Bn([Js(f),Zs(Ys(f),void 0,Xs(f),0)],c);continue e}e=r,t=o,n=Bn([void 0,qs(Ys(f))],c);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}}else{On(s[1]);const a=[o,i];let u,l,c,f,d;switch(Mn(a[0])?Mn(a[1])?u=2:null!=On(a[1])?(u=1,f=Dn(a[1]),d=On(a[1])):u=2:null!=On(a[0])?(u=0,l=Dn(a[0]),c=On(a[0])):Mn(a[1])?u=2:null!=On(a[1])?(u=1,f=Dn(a[1]),d=On(a[1])):u=2,u){case 0:if(c instanceof Ks){e=r,t=Bn([Js(c),Zs(Ys(c),void 0,Xs(c),0)],l),n=i;continue e}e=r,t=Bn([void 0,qs(Ys(c))],l),n=i;continue e;case 1:if(d instanceof Ks){e=r,t=o,n=Bn([Js(d),Zs(Ys(d),void 0,Xs(d),0)],f);continue e}e=r,t=o,n=Bn([void 0,qs(Ys(d))],f);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else{if(null==On(s[0])){e=r,t=Dn(s[0]),n=Dn(s[1]);continue e}{On(s[0]);const a=[o,i];let u,l,c,f,d;switch(Mn(a[0])?Mn(a[1])?u=2:null!=On(a[1])?(u=1,f=Dn(a[1]),d=On(a[1])):u=2:null!=On(a[0])?(u=0,l=Dn(a[0]),c=On(a[0])):Mn(a[1])?u=2:null!=On(a[1])?(u=1,f=Dn(a[1]),d=On(a[1])):u=2,u){case 0:if(c instanceof Ks){e=r,t=Bn([Js(c),Zs(Ys(c),void 0,Xs(c),0)],l),n=i;continue e}e=r,t=Bn([void 0,qs(Ys(c))],l),n=i;continue e;case 1:if(d instanceof Ks){e=r,t=o,n=Bn([Js(d),Zs(Ys(d),void 0,Xs(d),0)],f);continue e}e=r,t=o,n=Bn([void 0,qs(Ys(d))],f);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}break}}(e,Rn(t),Rn(n))}function $a(e,t,n){let r=n;sa((e=>{t[r]=e,r=r+1|0}),e)}function pa(e,t){if(We(t))return function(e,t){return bn(((t,n)=>oa(e,n,t)),void 0,t)}(e,t);if(t instanceof _n)return function(e,t){return Fn(((t,n)=>oa(e,n,t)),void 0,t)}(e,t);{const n=Je(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=oa(r,i["System.Collections.Generic.IEnumerator`1.get_Current"](),o),n=i}}(e,void 0,n)}finally{Ye(n)}}}class ha{constructor(e,t){this.comparer=e,this.tree=t}GetHashCode(){return 0|function(e){let t,n=0;const r=Je(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();)n=0|(t=0|at(r["System.Collections.Generic.IEnumerator`1.get_Current"]()),(n<<1)+t+631)}finally{Ye(r)}return 0|Math.abs(n)}(this)}Equals(e){return e instanceof ha&&0===da(ma(this),wa(this),wa(e))}toString(){return"set ["+en("; ",xr((e=>Lt(e)),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(e){return Array.from(this)}CompareTo(e){return 0|da(ma(this),wa(this),wa(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 ia(ma(this),e,wa(this))}"System.Collections.Generic.ICollection`1.CopyToZ2E171D71"(e,t){$a(wa(this),e,t)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|ga(this)}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return 0|ga(this)}GetEnumerator(){return fa(wa(this))}[Symbol.iterator](){return Xe(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return fa(wa(this))}get size(){return 0|ga(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 ia(ma(e),t,wa(e))}(this,e)}keys(){return xr((e=>e),this)}values(){return xr((e=>e),this)}entries(){return xr((e=>[e,e]),this)}forEach(e,t){const n=this;vr((t=>{e(t,t,n)}),n)}}function ma(e){return e.comparer}function wa(e){return e.tree}function ga(e){return ta(wa(e))}function ya(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 ba(e,t,n){const r=t(e,n);if(1===r.tag){const e=r.fields[0];return new Yr(1,function(e,t){const n=2===t.tag?ya(t.fields[0],t.fields[1],!0):1===t.tag?ya(t.fields[0],t.fields[1],!1)+"\nReason: "+t.fields[2]:3===t.tag?ya(t.fields[0],t.fields[1],!0):4===t.tag?ya(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"+en("\n\n",t.fields[0]):6===t.tag?"The following `failure` occurred with the decoder: "+t.fields[0]:ya(t.fields[0],t.fields[1],!1);return 7===t.tag?n:"Error at: `"+e+"`\n"+n}(e[0],e[1]))}return new Yr(0,r.fields[0])}const va=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 Yr(0,(e+128&255)-128):new Yr(1,[r,new si(1,n,e,"Value was either too large or too small for a sbyte")]):new Yr(1,[r,new si(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[yi(o,511,!1,8,new Ut((()=>t),(e=>{t=0|e}))),t],e[0]?new Yr(0,e[1]):new Yr(1,[r,new si(0,n,o)])}return new Yr(1,[r,new si(0,n,o)])},xa=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 Yr(0,255&e):new Yr(1,[r,new si(1,n,e,"Value was either too large or too small for a byte")]):new Yr(1,[r,new si(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[yi(o,511,!0,8,new Ut((()=>t),(e=>{t=e}))),t],e[0]?new Yr(0,e[1]):new Yr(1,[r,new si(0,n,o)])}return new Yr(1,[r,new si(0,n,o)])},_a=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 Yr(0,(e+32768&65535)-32768):new Yr(1,[r,new si(1,n,e,"Value was either too large or too small for "+n)]):new Yr(1,[r,new si(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[yi(o,511,!1,16,new Ut((()=>t),(e=>{t=0|e}))),t],e[0]?new Yr(0,e[1]):new Yr(1,[r,new si(0,n,o)])}return new Yr(1,[r,new si(0,n,o)])},Sa=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 Yr(0,65535&e):new Yr(1,[r,new si(1,n,e,"Value was either too large or too small for "+n)]):new Yr(1,[r,new si(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[yi(o,511,!0,16,new Ut((()=>t),(e=>{t=e}))),t],e[0]?new Yr(0,e[1]):new Yr(1,[r,new si(0,n,o)])}return new Yr(1,[r,new si(0,n,o)])},Ca=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 Yr(0,~~e):new Yr(1,[r,new si(1,n,e,"Value was either too large or too small for an int")]):new Yr(1,[r,new si(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[yi(o,511,!1,32,new Ut((()=>t),(e=>{t=0|e}))),t],e[0]?new Yr(0,e[1]):new Yr(1,[r,new si(0,n,o)])}return new Yr(1,[r,new si(0,n,o)])},Ea=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 Yr(0,e>>>0):new Yr(1,[r,new si(1,n,e,"Value was either too large or too small for "+n)]):new Yr(1,[r,new si(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[yi(o,511,!0,32,new Ut((()=>t),(e=>{t=e}))),t],e[0]?new Yr(0,e[1]):new Yr(1,[r,new si(0,n,o)])}return new Yr(1,[r,new si(0,n,o)])};function Ta(e,t,n,r){let o;const i=n+".["+nt(e)+"]";if(Array.isArray(r)){const n=r;return e<n.length?t(i,n[e]):new Yr(1,[i,new si(5,"a longer array. Need index `"+nt(e)+"` but there are only `"+(o=n.length,nt(o)+"` entries"),r)])}return new Yr(1,[i,new si(0,"an array",r)])}function ka(e,t,n){if(Array.isArray(n)){let r=-1;return Kr(Ln,bn(((n,o)=>{if(r=r+1|0,0===n.tag){const i=e(t+".["+nt(r)+"]",o);return 0===i.tag?new Yr(0,Nn(i.fields[0],n.fields[0])):new Yr(1,i.fields[0])}return n}),new Yr(0,An()),n))}return new Yr(1,[t,new si(0,"a list",n)])}function Ia(e,t,n){if(Array.isArray(n)){let r=-1;const o=n;return bn(((n,o)=>{if(r=r+1|0,0===n.tag){const i=n.fields[0],s=e(t+".["+nt(r)+"]",o);return 0===s.tag?(i[r]=s.fields[0],new Yr(0,i)):new Yr(1,s.fields[0])}return n}),new Yr(0,wn(new Array(o.length),0,o.length,null)),o)}return new Yr(1,[t,new si(0,"an array",n)])}function Aa(e,t,n,r){const o=t(n,r);return 0===o.tag?e(o.fields[0],n,r):new Yr(1,o.fields[0])}function Na(e,t){let n;const r=e;return n=e=>t=>Ta(0,r,e,t),e=>r=>Aa(gt(3,(e=>{let n;const r=t;return n=e=>t=>Ta(1,r,e,t),t=>r=>Aa(((t,n,r)=>new Yr(0,[e,t])),gt(2,n),t,r)})),gt(2,n),e,r)}function Ra(e){return Xo(e)}function Ma(e){return function(e,t){return new ha(e,t)}(t={Compare:pt},pa(t,e));var t}function Oa(e,t,n,r){let o,i;return t.length!==r.length?new Yr(1,[n,new si(6,(o=0|r.length,i=0|t.length,Yt(Wt("Expected %i %s but got %i"))(i)(e)(o)))]):xn(((e,t,r)=>0===r.tag?Kr((e=>Nn(e,r.fields[0])),t(n)(e)):r),r,t,new Yr(0,An()))}function Da(e,t,n,r,o,i){const s=function(e,t){return t.find((e=>ks(e)===r))}(0,Ls(n));if(null!=s){const n=s;return 0===i.length?new Yr(0,zs(n,[])):Kr((e=>zs(n,Pn(e))),Oa("union fields",gn((n=>Fa(e,t,!1,n[1])),js(n)),o,i))}return new Yr(1,[o,new si(6,"Cannot find case "+r+" in "+Is(n))])}function Pa(e,t,n,r){const o=new Ut(null),i=Ko(Is(r),o,e);let s;if(Vs(r)){const e=gn((e=>[fi(t,ks(e)),Fa(i,t,!1,e[1])]),Gs(r));s=t=>n=>Kr((e=>function(e,t){const n=Gs(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,Pn(e))),function(e,t,n){return null===n||Object.getPrototypeOf(n||!1)!==Object.prototype?new Yr(1,[t,new si(0,"an object",n)]):function(e,t,n){return t.reduceRight(((t,n)=>e(n,t)),n)}(gt(2,(e=>{const r=e[0];return o=>0===o.tag?Kr((e=>Nn(e,o.fields[0])),e[1](t+"."+r)(n[r])):o})),e,new Yr(0,An()))}(e,t,n))}else if(Us(r))s=e=>n=>{if("string"==typeof n)return Da(i,t,r,n,e,[]);if(Array.isArray(n)){const o=n;return Da(i,t,r,o[0],e,o.slice(1,o.length))}return new Yr(1,[e,new si(0,"a string or array",n)])};else{if(!n){let e;const t=Is(r);throw e=Yt(Wt("Cannot generate auto decoder for %s. Please pass an extra decoder."))(t),new Error(e)}s=e=>t=>new Yr(1,[e,new si(2,"an extra coder for "+Is(r),t)])}return o.contents=s,s}function Fa(e,t,n,r){let o,i,s;const a=Is(r),u=Zo(a,e);if(null==u){if(As(r)){const n=Fa(e,t,!1,Ns(r));return e=>t=>Ia(gt(2,n),e,t)}if(Ms(r)){const e=Is(Ds(r));if("System.SByte"===e)return e=>t=>{const n=r,o=e,i=t,s=va(o)(i);if(1===s.tag)return new Yr(1,s.fields[0]);{const e=s.fields[0];return gr(e,Ps(n),{Equals:(e,t)=>e===t,GetHashCode:it})?new Yr(0,Fs(n,e.toString())):new Yr(1,[o,new si(1,Is(n),i,"Unkown value provided for the enum")])}};if("System.Byte"===e)return e=>t=>{const n=r,o=e,i=t,s=xa(o)(i);if(1===s.tag)return new Yr(1,s.fields[0]);{const e=s.fields[0];return gr(e,Ps(n),{Equals:(e,t)=>e===t,GetHashCode:it})?new Yr(0,Fs(n,e.toString())):new Yr(1,[o,new si(1,Is(n),i,"Unkown value provided for the enum")])}};if("System.Int16"===e)return e=>t=>{const n=r,o=e,i=t,s=_a(o)(i);if(1===s.tag)return new Yr(1,s.fields[0]);{const e=s.fields[0];return gr(e,Ps(n),{Equals:(e,t)=>e===t,GetHashCode:it})?new Yr(0,Fs(n,e.toString(a))):new Yr(1,[o,new si(1,Is(n),i,"Unkown value provided for the enum")])}var a};if("System.UInt16"===e)return e=>t=>{const n=r,o=e,i=t,s=Sa(o)(i);if(1===s.tag)return new Yr(1,s.fields[0]);{const e=s.fields[0];return gr(e,Ps(n),{Equals:(e,t)=>e===t,GetHashCode:it})?new Yr(0,Fs(n,e.toString())):new Yr(1,[o,new si(1,Is(n),i,"Unkown value provided for the enum")])}};if("System.Int32"===e)return e=>t=>{const n=r,o=e,i=t,s=Ca(o)(i);if(1===s.tag)return new Yr(1,s.fields[0]);{const e=s.fields[0];return gr(e,Ps(n),{Equals:(e,t)=>e===t,GetHashCode:it})?new Yr(0,Fs(n,nt(e))):new Yr(1,[o,new si(1,Is(n),i,"Unkown value provided for the enum")])}};if("System.UInt32"===e)return e=>t=>{const n=r,o=e,i=t,s=Ea(o)(i);if(1===s.tag)return new Yr(1,s.fields[0]);{const e=s.fields[0];return gr(e,Ps(n),{Equals:(e,t)=>e===t,GetHashCode:it})?new Yr(0,Fs(n,e.toString())):new Yr(1,[o,new si(1,Is(n),i,"Unkown value provided for the enum")])}};{const e=Is(r),t=Kt(Wt("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(Rs(r)){if(Hs(r)){const n=gn((n=>Fa(e,t,!1,n)),Bs(r));return e=>t=>Array.isArray(t)?Kr((e=>Pn(e)),Oa("tuple elements",n,e,t)):new Yr(1,[e,new si(0,"an array",t)])}{const a=Is(Os(r));if("Microsoft.FSharp.Core.FSharpOption`1[System.Object]"===a)return o=Fa(e,t,!0,hs(r)[0]),e=>t=>{return n=gt(2,o),r=e,null==(i=t)?new Yr(0,void 0):Kr(un,n(r,i));var n,r,i};if("Microsoft.FSharp.Collections.FSharpList`1[System.Object]"===a)return i=Fa(e,t,!1,hs(r)[0]),e=>t=>ka(gt(2,i),e,t);if("Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"===a){const n=Fa(e,t,!1,hs(r)[0]),o=Fa(e,t,!1,hs(r)[1]);let i;const a=Un([e=>t=>function(e,t,n,r){return null===r||Object.getPrototypeOf(r||!1)!==Object.prototype?new Yr(1,[n,new si(0,"an object",r)]):br(((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 Yr(0,Nn([s.fields[0],e.fields[0]],o.fields[0])):new Yr(1,e.fields[0])}return new Yr(1,s.fields[0])}return o}),new Yr(0,An()),Object.keys(r))}(gt(2,n),gt(2,o),e,t),(s=Na(gt(2,n),gt(2,o)),e=>t=>ka(gt(2,s),e,t))]);return i=e=>t=>{return n=e,r=t,((e,t)=>{e:for(;;){const o=e,i=t;if(Mn(o))return new Yr(1,[n,new si(7,i)]);{const s=ba(n,gt(2,On(o)),r);if(1===s.tag){e=Dn(o),t=Vn(i,Rn(s.fields[0]));continue e}return new Yr(0,s.fields[0])}}})(a,An());var n,r},e=>t=>function(e,t,n,r){const o=t(n,r);return 1===o.tag?new Yr(1,o.fields[0]):new Yr(0,e(o.fields[0]))}(Ra,gt(2,i),e,t)}if("Microsoft.FSharp.Collections.FSharpSet`1[System.Object]"===a){const n=Fa(e,t,!1,hs(r)[0]);return e=>t=>{const r=Ia(gt(2,n),e,t);return 0===r.tag?new Yr(0,Ma(r.fields[0])):new Yr(1,r.fields[0])}}return Pa(e,t,n,r)}}return"System.Boolean"===a?e=>t=>{return n=e,"boolean"==typeof(r=t)?new Yr(0,r):new Yr(1,[n,new si(0,"a boolean",r)]);var n,r}:"Microsoft.FSharp.Core.Unit"===a?e=>t=>{return n=e,null==(r=t)?new Yr(0,void 0):new Yr(1,[n,new si(0,"null",r)]);var n,r}:"System.String"===a?e=>t=>{return n=e,"string"==typeof(r=t)?new Yr(0,r):new Yr(1,[n,new si(0,"a string",r)]);var n,r}:"System.SByte"===a?va:"System.Byte"===a?xa:"System.Int16"===a?_a:"System.UInt16"===a?Sa:"System.Int32"===a?Ca:"System.UInt32"===a?Ea:"System.Double"===a?e=>t=>{return n=e,"number"==typeof(r=t)?new Yr(0,r):new Yr(1,[n,new si(0,"a float",r)]);var n,r}:"System.Single"===a?e=>t=>{return n=e,"number"==typeof(r=t)?new Yr(0,r):new Yr(1,[n,new si(0,"a float32",r)]);var n,r}:"System.DateTime"===a?e=>t=>function(e,t){if("string"==typeof t){let r,o=Et(-621355968e5,0);return r=[kt(t,new Ut((()=>o),(e=>{o=e}))),o],r[0]?new Yr(0,1===(n=r[1]).kind?n:Et(n.getTime(),1)):new Yr(1,[e,new si(0,"a datetime",t)])}var n;return new Yr(1,[e,new si(0,"a datetime",t)])}(e,t):"System.DateTimeOffset"===a?e=>t=>function(e,t){if("string"==typeof t){let n,r=bi(-621355968e5,0);return n=[vi(t,new Ut((()=>r),(e=>{r=e}))),r],n[0]?new Yr(0,n[1]):new Yr(1,[e,new si(0,"a datetimeoffset",t)])}return new Yr(1,[e,new si(0,"a datetime",t)])}(e,t):"System.TimeSpan"===a?e=>t=>function(e,t){if("string"==typeof t){let n,r=0;return n=[ds(t,new Ut((()=>r),(e=>{r=e}))),r],n[0]?new Yr(0,n[1]):new Yr(1,[e,new si(0,"a timespan",t)])}return new Yr(1,[e,new si(0,"a timespan",t)])}(e,t):"System.Guid"===a?e=>t=>function(e,t){if("string"==typeof t){let n,r="00000000-0000-0000-0000-000000000000";return n=[hi(t,new Ut((()=>r),(e=>{r=e}))),r],n[0]?new Yr(0,n[1]):new Yr(1,[e,new si(0,"a guid",t)])}return new Yr(1,[e,new si(0,"a guid",t)])}(e,t):"System.Object"===a?e=>e=>new Yr(0,e):Pa(e,t,n,r)}{const e=u;return t=>n=>e.contents(t)(n)}}const La=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 Ga=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 La(n)}(e,0)&256)}(e);function Ba(e,t){return e.replace(/[a-z]?[A-Z]/g,(e=>1===e.length?e.toLowerCase():e.charAt(0)+t+e.charAt(1).toLowerCase()))}function Ua(e,t=0){const n={},r=t;function o(e){throw new Error("Cannot infer key and value of "+String(e))}function i(e,t,r){e=function(e,t){switch(t){case 1:return e.charAt(0).toLowerCase()+e.slice(1);case 2:return Ba(e,"_");case 3:return Ba(e,"_").toUpperCase();case 4:return Ba(e,"-");default:return e}}(e,t),n[e]=r}for(let t of e){let e=0;if(null==t&&o(t),t instanceof Gt){const n=t.cases()[t.tag];t=0===t.fields.length?n:[n].concat(t.fields),e=r}if(Array.isArray(t))switch(t.length){case 0:o(t);break;case 1:i(t[0],e,!0);break;case 2:const n=t[1];i(t[0],e,n);break;default:i(t[0],e,t.slice(1))}else"string"==typeof t?i(t,e,!0):o(t)}return n}function Va(e,t){return!t.has(e)&&(t.add(e),!0)}function Ha(e,t){if(e.has(t))return e.get(t);throw new Error(`The given key '${t}' was not present in the dictionary.`)}class ja{constructor(e,t){const n=new Ut(null);this.comparer=t,n.contents=this,this.hashMap=new Map([]),this["init@8-2"]=1;const r=Je(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const e=r["System.Collections.Generic.IEnumerator`1.get_Current"]();Ya(n.contents,e)}}finally{Ye(r)}}get[Symbol.toStringTag](){return"HashSet"}toJSON(e){return Array.from(this)}"System.Collections.IEnumerable.GetEnumerator"(){return Je(this)}GetEnumerator(){return Je(fr(this.hashMap.values()))}[Symbol.iterator](){return Xe(this.GetEnumerator())}"System.Collections.Generic.ICollection`1.Add2B595"(e){Ya(this,e)}"System.Collections.Generic.ICollection`1.Clear"(){Wa(this)}"System.Collections.Generic.ICollection`1.Contains2B595"(e){return Ka(this,e)}"System.Collections.Generic.ICollection`1.CopyToZ2E171D71"(e,t){var n;n=(n,r)=>{e[t+n]=r},br(((e,t)=>(n(e,t),e+1|0)),0,this)}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|qa(this)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!1}"System.Collections.Generic.ICollection`1.Remove2B595"(e){return Za(this,e)}get size(){return 0|qa(this)}add(e){return Ya(this,e),this}clear(){Wa(this)}delete(e){return Za(this,e)}has(e){return Ka(this,e)}keys(){return xr((e=>e),this)}values(){return xr((e=>e),this)}entries(){return xr((e=>[e,e]),this)}forEach(e,t){const n=this;vr((t=>{e(t,t,n)}),n)}}function za(e,t){const n=0|e.comparer.GetHashCode(t);let r,o=null;return r=[(i=e.hashMap,s=n,a=new Ut((()=>o),(e=>{o=e})),!!i.has(s)&&(a.contents=i.get(s),!0)),o],r[0]?[!0,n,r[1].findIndex((n=>e.comparer.Equals(t,n)))]:[!1,n,-1];var i,s,a}function Wa(e){e.hashMap.clear()}function qa(e){let t=0,n=Je(e.hashMap.values());try{for(;n["System.Collections.IEnumerator.MoveNext"]();)t=t+n["System.Collections.Generic.IEnumerator`1.get_Current"]().length|0}finally{Ye(n)}return 0|t}function Ya(e,t){const n=za(e,t);return n[0]?!(n[2]>-1)&&(Ha(e.hashMap,n[1]).push(t),!0):(e.hashMap.set(n[1],[t]),!0)}function Ka(e,t){const n=za(e,t);let r;switch(r=n[0]&&n[2]>-1?0:1,r){case 0:return!0;case 1:return!1}}function Za(e,t){const n=za(e,t);let r;switch(r=n[0]&&n[2]>-1?0:1,r){case 0:return Ha(e.hashMap,n[1]).splice(n[2],1),!0;case 1:return!1}}class Ja extends Bt{constructor(e,t){super(),this.Code=e,this.Name=t}}const Xa=Xo([["AFG","Afghanistan"],["ALA","Aland Islands"],["ALB","Albania"],["DZA","Algeria"],["ASM","American Samoa"],["AND","Andorra"],["AGO","Angola"],["AIA","Anguilla"],["ATA","Antarctica"],["ATG","Antigua and Barbuda"],["ARG","Argentina"],["ARM","Armenia"],["ABW","Aruba"],["AUT","Austria"],["AZE","Azerbaijan"],["BHS","Bahamas"],["BHR","Bahrain"],["BGD","Bangladesh"],["BRB","Barbados"],["BLR","Belarus"],["BEL","Belgium"],["BLZ","Belize"],["BEN","Benin"],["BMU","Bermuda"],["BTN","Bhutan"],["BOL","Bolivia"],["BES","Bonaire Saint Eustatius, and Saba Islands"],["BIH","Bosnia and Herzegovina"],["BWA","Botswana"],["BVT","Bouvet Island"],["BRA","Brazil"],["IOT","British Indian Ocean Territory"],["VGB","British Virgin Islands"],["BRN","Brunei Darussalam"],["BGR","Bulgaria"],["BFA","Burkina Faso"],["BDI","Burundi"],["KHM","Cambodia"],["CMR","Cameroon"],["CAN","Canada"],["CPV","Cabo Verde"],["CYM","Cayman Islands"],["CAF","Central African Republic"],["TCD","Chad"],["CHL","Chile"],["CHN","China"],["CXR","Christmas Island"],["CCK","Cocos (Keeling) Islands"],["COL","Colombia"],["COM","Comoros"],["COD","Congo, Democratic Republic of (was Zaire)"],["COG","Congo, Republic of"],["COK","Cook Islands"],["CRI","Costa Rica"],["CIV","Cote D'Ivoire (Ivory Coast)"],["HRV","Croatia (Hrvatska)"],["CUB","Cuba"],["CUW","Curacao"],["CYP","Cyprus"],["CZE","Czech Republic"],["DNK","Denmark"],["DJI","Djibouti"],["DMA","Dominica"],["DOM","Dominican Republic"],["ECU","Ecuador"],["EGY","Egypt"],["SLV","El Salvador"],["GNQ","Equatorial Guinea"],["ERI","Eritrea"],["EST","Estonia"],["SWZ","eSwatini"],["ETH","Ethiopia"],["FLK","Falkland Islands (Malvinas)"],["FRO","Faroe Islands"],["FJI","Fiji"],["FIN","Finland"],["FRA","France"],["GUF","French Guiana"],["PYF","French Polynesia"],["ATF","French Southern Territories"],["GAB","Gabon"],["GMB","Gambia"],["GEO","Georgia"],["DEU","Germany"],["GHA","Ghana"],["GIB","Gibraltar"],["GRC","Greece"],["GRL","Greenland"],["GRD","Grenada"],["GLP","Guadeloupe"],["GUM","Guam"],["GTM","Guatemala"],["GGY","Guernsey"],["GIN","Guinea"],["GNB","Guinea-Bissau"],["GUY","Guyana"],["HTI","Haiti"],["HMD","Heard and McDonald Islands"],["VAT","Holy See (Vatican City State)"],["HND","Honduras"],["HKG","Hong Kong"],["HRV","Hrvatska (Croatia)"],["HUN","Hungary"],["ISL","Iceland"],["IND","India"],["IDN","Indonesia"],["IRN","Iran"],["IRQ","Iraq"],["IRL","Ireland"],["IMN","Isle of Man, The"],["ISR","Israel"],["ITA","Italy"],["CIV","Ivory Coast (Cote D'Ivoire)"],["JAM","Jamaica"],["JPN","Japan"],["JEY","Jersey"],["JOR","Jordan"],["KAZ","Kazakhstan"],["KEN","Kenya"],["KIR","Kiribati"],["PRK","Korea, Democratic People's Republic of (North Korea)"],["KOR","Korea, Republic of (South Korea)"],["KWT","Kuwait"],["KGZ","Kyrgyzstan"],["LAO","Laos"],["LVA","Latvia"],["LBN","Lebanon"],["LSO","Lesotho"],["LBR","Liberia"],["LBY","Libya"],["LIE","Liechtenstein"],["LTU","Lithuania"],["LUX","Luxembourg"],["MAC","Macau"],["MKD","North Macedonia, Republic of"],["MDG","Madagascar"],["MWI","Malawi"],["MYS","Malaysia"],["MDV","Maldives"],["MLI","Mali"],["MLT","Malta"],["MHL","Marshall Islands"],["MTQ","Martinique"],["MRT","Mauritania"],["MUS","Mauritius"],["MYT","Mayotte"],["MEX","Mexico"],["FSM","Micronesia, Federated States of"],["MDA","Moldova"],["MCO","Monaco"],["MNG","Mongolia"],["MNE","Montenegro"],["MSR","Montserrat"],["MAR","Morocco"],["MOZ","Mozambique"],["MMR","Myanmar (was Burma)"],["NAM","Namibia"],["NRU","Nauru"],["NPL","Nepal"],["NLD","Netherlands"],["NCL","New Caledonia"],["NZL","New Zealand"],["NIC","Nicaragua"],["NER","Niger"],["NGA","Nigeria"],["NIU","Niue"],["NFK","Norfolk Island"],["MNP","Northern Mariana Islands"],["PRK","North Korea (Korea, Democratic People's Republic of)"],["NOR","Norway"],["OMN","Oman"],["PAK","Pakistan"],["PLW","Palau"],["PSE","Palestinian Territories"],["PAN","Panama"],["PNG","Papua New Guinea"],["PRY","Paraguay"],["PER","Peru"],["PHL","Philippines"],["PCN","Pitcairn Island"],["POL","Poland"],["PRT","Portugal"],["PRI","Puerto Rico"],["QAT","Qatar"],["REU","Reunion"],["ROU","Romania"],["RUS","Russian Federation"],["RWA","Rwanda"],["BLM","Saint Barthelemy"],["SHN","Saint Helena"],["KNA","Saint Kitts and Nevis"],["LCA","Saint Lucia"],["SXM","Saint Maarten (Dutch part)"],["MAF","Saint Martin (French part)"],["SPM","Saint Pierre and Miquelon"],["VCT","Saint Vincent and the Grenadines"],["WSM","Samoa"],["SMR","San Marino"],["STP","Sao Tome and Principe"],["SAU","Saudi Arabia"],["SEN","Senegal"],["SRB","Serbia"],["SYC","Seychelles"],["SLE","Sierra Leone"],["SGP","Singapore"],["SVK","Slovakia (Slovak Republic)"],["SVN","Slovenia"],["SLB","Solomon Islands"],["SOM","Somalia"],["ZAF","South Africa"],["SGS","South Georgia and the South Sandwich Islands"],["KOR","South Korea (Korea, Republic of)"],["SSD","South Sudan"],["ESP","Spain"],["LKA","Sri Lanka"],["SDN","Sudan"],["SUR","Suriname"],["SJM","Svalbard and Jan Mayen Islands"],["SWE","Sweden"],["CHE","Switzerland"],["SYR","Syria"],["TWN","Taiwan"],["TJK","Tajikistan"],["TZA","Tanzania"],["THA","Thailand"],["TLS","Timor-Leste"],["TGO","Togo"],["TKL","Tokelau"],["TON","Tonga"],["TTO","Trinidad and Tobago"],["TUN","Tunisia"],["TUR","Turkey"],["TKM","Turkmenistan"],["TCA","Turks and Caicos Islands"],["TUV","Tuvalu"],["UGA","Uganda"],["UKR","Ukraine"],["ARE","United Arab Emirates"],["GBR","United Kingdom"],["USA","United States"],["UMI","United States Minor Outlying Islands"],["VIR","United States Virgin Islands"],["URY","Uruguay"],["UZB","Uzbekistan"],["VUT","Vanuatu"],["VAT","Vatican City State (Holy See)"],["VEN","Venezuela"],["VNM","Vietnam"],["WLF","Wallis and Futuna"],["ESH","Western Sahara"],["YEM","Yemen"],["ZMB","Zambia"],["ZWE","Zimbabwe"]]);class Qa extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["HELP","VETStudentLoan","FinancialSupplement","StudentStartUpLoan","TradeSupportLoan"]}}class eu extends Bt{constructor(e,t){super(),this.Code=e,this.Name=t}}function tu(e){return Kr((e=>new eu(e.Code,e.Name)),function(e){const t=function(e){return pn((t=>new Ja(e,t)),Zo(e,Xa))}(e);return Jr(Yt(Wt("Country code:%A is not accepted"))(e),t)}(e))}class nu extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["AustralianResidentForTaxPurposes","ForeignResidentForTaxPurposes","WorkingHolidayMaker"]}}const ru=new nu(2,{HomeCountry:void 0});function ou(e){return new nu(2,{HomeCountry:e})}class iu extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["FullTime","PartTime","LabourHire","SuperIncomeStream","Casual"]}}class su extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Tfn"]}}class au extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Under18AndBelowTaxThreshold","Pending","Pensioner"]}}class uu extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["PreviousSurname"]}}function lu(e){return new uu(0,e)}function cu(e){return e.fields[0]}function fu(e){return oo(0,(()=>Zr((e=>{const t=e;return io(0,function(e,t){return function(e){if(We(e))return 0===e.length;if(e instanceof _n)return Mn(e);{const t=lr(e);try{return!t["System.Collections.IEnumerator.MoveNext"]()}finally{Ye(t)}}}(t)?new Yr(1,e):new Yr(0,void 0)}("TFN must not contain all zeros",(n={Equals:(e,t)=>e===t,GetHashCode:ot},function(e){return e instanceof _n?Pn(e):Array.from(e)}(function(e,t,n){return cr((()=>{const r=new ja(e,n);return yr((e=>Va(e,r)),t)}))}(["0"],t.split(""),n)))),(()=>t));var n}),function(e){return oo(0,(()=>{const t=rn(Ga,e);return Zr((()=>Zr((()=>io(0,Xr(0,"TFN is not valid",function(e,t){let n=t.GetZero();for(let r=0;r<=e.length-1;r++)n=t.Add(n,e[r]);return n}(function(e,t,n,r){if(t.length!==n.length)throw new Error("Arrays had different lengths");const o=mn(r,t.length);for(let r=0;r<=t.length-1;r++)o[r]=e(t[r],n[r]);return o}(((e,t)=>e*t),gn((e=>gi(e,511,!1,32)),t.split(""),Int32Array),new Int32Array([1,4,3,7,5,8,6,9,10]),Int32Array),{GetZero:()=>0,Add:(e,t)=>e+t})%11),(()=>t))),Xr(9,"TFN must be 9 digits",t.length))),Xr(e,"TFN must contain digits only",t))}))()}(e))))()}class du extends Bt{constructor(e,t){super(),this.Code=e,this.Name=t}}new class extends Bt{constructor(e){super(),this.Unused=e}}(void 0);class $u extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["AustralianResidentForTaxPurposes","ForeignResidentForTaxPurposes","WorkingHolidayMaker"]}}function pu(e){switch(e.tag){case 1:return new Yr(0,new nu(1));case 2:return $n(pn((e=>Kr(ou,tu(e.Code))),e.fields[0].HomeCountry),new Yr(0,ru));default:return new Yr(0,new nu(0))}}function hu(e){switch(e.tag){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;default:return 0}}function mu(e){switch(e){case 0:return new Yr(0,new Qa(0));case 1:return new Yr(0,new Qa(1));case 2:return new Yr(0,new Qa(2));case 3:return new Yr(0,new Qa(3));case 4:return new Yr(0,new Qa(4));default:return new Yr(1,"Invalid DebtSupport")}}function wu(e){switch(e.tag){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;default:return 0}}const gu=e=>{return function(e,t){return function(e,t,n){e:for(;;){const r=e,o=t,i=n;if(Mn(i))return Kr(Ln,r);{const s=oo(0,(()=>Zr((e=>io(0,r,(t=>Nn(e,t)))),o(On(i)))))();if(1===s.tag)return s;e=s,t=o,n=Dn(i);continue e}}}(new Yr(0,An()),e,t)}(mu,(t={Equals:(e,t)=>e===t,GetHashCode:it},pr(function(e,t){return cr((()=>{const n=new ja([],t);return yr((e=>Va(e,n)),e)}))}(e,t))));var t};function yu(e){switch(e.tag){case 1:return 1;case 2:return 2;default:return 0}}class bu extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Tfn","Exempted"]}}function vu(){return bs("Dto.Dto.ProvidedTfnInformationDto",[],bu,(()=>[[["Item",Cs]],[["Item",_s("Dto.Dto.ExemptionReasonDto",Ts,[["Under18AndBelowTaxThreshold",0],["Pending",1],["Pensioner",2]])]]]))}class xu extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["TfnTruncated","Exempted"]}}class _u extends Bt{constructor(e,t,n,r,o,i,s){super(),this.TfnInformation=e,this.PreviousSurname=t,this.ResidencyStatus=0|n,this.ResidencyStatusV2=r,this.EmploymentBasis=0|o,this.IsTaxFreeThresholdClaimed=i,this.HasDebtSupport=s}}class Su extends Bt{constructor(e,t){super(),this.Meta=e,this.Data=t}}class Cu extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["AustralianResidentForTaxPurposes","ForeignResidentForTaxPurposes","WorkingHolidayMaker"]}}function Eu(){return bs("Dto.Commands.ResidencyStatusV2Dto",[],Cu,(()=>[[],[],[["Item",gs("Dto.Commands.WorkingHolidayPayload",[],Tu,(()=>[["HomeCountry",gs("Dto.Commands.CountryCode",[],ku,(()=>[["Code",Cs]]))]]))]]]))}class Tu extends Bt{constructor(e){super(),this.HomeCountry=e}}class ku extends Bt{constructor(e){super(),this.Code=e}}function Iu(e){switch(e.tag){case 1:return new Yr(0,new Cu(1));case 2:return Kr((e=>new Cu(2,new Tu(new ku(e.Code)))),Jr("Home country should be specified for WorkingHolidayMaker",e.fields[0].HomeCountry));default:return new Yr(0,new Cu(0))}}class Au extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Create","CreateV2","ChangeTfnInformation","ChangePreviousSurname","ChangeResidencyStatus","ChangeResidencyStatusV2","ChangeEmploymentBasis","ChangeTaxFreeThresholdClaimed","ChangeDebtSupport"]}}function Nu(e){return e}function Ru(e){return Array.from(e)}function Mu(e){return Ct(e,"O")}function Ou(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 ls(e/864e5)}(e)),o=Math.abs(function(e){return ls(e%864e5/36e5)}(e)),i=Math.abs(function(e){return ls(e%36e5/6e4)}(e)),s=Math.abs(function(e){return ls(e%6e4/1e3)}(e)),a=Math.abs(function(e){return ls(e%1e3)}(e));return`${e<0?"-":""}${0!==r||"c"!==t&&"g"!==t?"c"===t?r+".":r+":":""}${"g"===t?o:et(o,2)}:${et(i,2)}:${et(s,2)}${0!==a||"c"!==t&&"g"!==t?"g"===t?"."+et(a,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}(a):""}`}(e)}function Du(){return null}function Pu(e){return Ct(e,"O")}function Fu(e,t,n,r){const o=new Ut(null),i=Ko(Is(r),o,e);let s;if(Vs(r)){const e=gn((e=>{const r=fi(t,ks(e)),o=Lu(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}}),Gs(r));s=t=>br(((e,n)=>n(t)(e)),{},e)}else{if(!Us(r)){let e;const t=Is(r);throw e=Yt(Wt("Cannot generate auto encoder for %s. Please pass an extra encoder."))(t),new Error(e)}s=e=>{const o=function(e,t){const n=Ls(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],a=o[1],u=0|a.length;if(0===u)return ks(s);{const e=0|u,r=js(s),o=wn(new Array(e+1),0,e+1,null);o[0]=ks(s);for(let s=1;s<=e;s++){const e=Lu(i,t,n,r[s-1][1]);o[s]=e(a[s-1])}return o}}}return o.contents=s,s}function Lu(e,t,n,r){const o=Is(r),i=Zo(o,e);if(null==i){if(As(r)){const o=Lu(e,t,n,Ns(r));return e=>Ru(xr(o,e))}if(Ms(r)){const e=Is(Ds(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=Is(r);return Kt(Wt("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(Rs(r)){if(Hs(r)){const o=gn((r=>Lu(e,t,n,r)),Bs(r));return e=>{return Ru((t=(e,t)=>o[e](t),n=e,mr((()=>lr(n)),((e,n)=>n["System.Collections.IEnumerator.MoveNext"]()?un(t(e,n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0),(e=>{Ye(e)}))));var t,n}}{const o=Is(Os(r));if("Microsoft.FSharp.Core.FSharpOption`1[System.Object]"===o){const o=new Qe((()=>{return o=Lu(e,t,n,hs(r)[0]),e=>{return null!=(t=pn(o,e))?ln(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=Lu(e,t,n,hs(r)[0]);return e=>Ru(xr(o,e))}if("Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"===o){const o=hs(r)[0],i=Lu(e,t,n,hs(r)[1]);if("System.String"===Is(o)||"System.Guid"===Is(o))return e=>br(((e,t)=>{const n=t;return e[n[0]]=i(n[1]),e}),{},e);{let r;const s=Lu(e,t,n,o);return r=s,e=>Ru(xr((e=>{const t=e;return[r(t[0]),i(t[1])]}),e))}}return Fu(e,t,n,r)}}return"System.Boolean"===o?e=>e:"Microsoft.FSharp.Core.Unit"===o?Du:"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?Pu:"System.DateTimeOffset"===o?Mu:"System.TimeSpan"===o?Ou:"System.Guid"===o?Nu:"System.Object"===o?e=>e:Fu(e,t,n,r)}{const e=i;return t=>e.contents(t)}}function Gu(e){return Yt(Wt("%s/tfn-declaration/backend"))(e)}function Bu(e,t){return ao(0,(()=>{const n=oi(function(e){return new lo(0,"Authorization",e)}(Yt(Wt("Bearer %s"))(e)),t);let r;const o=ii(n);return r=Gr.Bind(o,(e=>Gr.Return(new Yr(0,e)))),Gr.Delay((()=>Gr.Bind(r,(e=>{let t,r;const o=e;return 1===o.tag?Gr.Return(new Yr(1,o.fields[0])):Gr.ReturnFrom((t=o.fields[0],429===t.statusCode||t.statusCode>=500?(r=ii(n),Gr.Bind(r,(e=>Gr.Return(new Yr(0,e))))):so(0,t)))}))))}))}const Uu=e=>function(e,t){try{return ba("$",e,JSON.parse(t))}catch(e){if(e instanceof SyntaxError)return new Yr(1,"Given an invalid JSON: "+e.message);throw e}}(gt(2,function(e,t,n){const r=$n(t,new ai(0));return Fa(function(e){return null!=e?Jo(((e,t)=>new Ut(t[1])),e.Coders):Qo()}(void 0),r,!1,e)}(gs("Dto.BackendApiModels.Read.TfnDeclarationDetailsWithMeta",[],Su,(()=>[["Meta",ys(["AccountId",Cs])],["Data",vs(gs("Dto.BackendApiModels.Read.TfnDeclarationDetails",[],_u,(()=>[["TfnInformation",bs("Dto.BackendApiModels.Read.TfnInformation",[],xu,(()=>[[["Item",Cs]],[["Item",_s("Dto.Dto.ExemptionReasonDto",Ts,[["Under18AndBelowTaxThreshold",0],["Pending",1],["Pensioner",2]])]]]))],["PreviousSurname",vs(Cs)],["ResidencyStatus",_s("Dto.Dto.ResidencyStatusDto",Ts,[["AustralianResidentForTaxPurposes",0],["ForeignResidentForTaxPurposes",1],["WorkingHolidayMaker",2]])],["ResidencyStatusV2",bs("Dto.Dto.ResidencyStatusV2Dto",[],$u,(()=>[[],[],[["Item",ys(["HomeCountry",vs(gs("Dto.Dto.CountryDto",[],du,(()=>[["Code",Cs],["Name",Cs]])))])]]]))],["EmploymentBasis",_s("Dto.Dto.EmploymentBasisDto",Ts,[["FullTime",0],["PartTime",1],["LabourHire",2],["SuperIncomeStream",3],["Casual",4]])],["IsTaxFreeThresholdClaimed",Es],["HasDebtSupport",xs(_s("Dto.Dto.DebtSupportDto",Ts,[["HELP",0],["VETStudentLoan",1],["FinancialSupplement",2],["StudentStartUpLoan",3],["TradeSupportLoan",4]]))]])))]])),new ai(1))),e);function Vu(e,t){return ao(0,(()=>{const n=Bu(e,ri(new uo(0),ni(Gu(t))));return Gr.Delay((()=>Gr.Bind(n,(e=>{let t,n;const r=e;return 1===r.tag?Gr.Return(new Yr(1,r.fields[0])):Gr.ReturnFrom((t=r.fields[0],200===t.statusCode?(n=Uu(t.responseText),Gr.Return(n)):Gr.Return(new Yr(1,"Unexpected response from backend"))))}))))}))}function Hu(e,t,n){return ao(0,(()=>{let r;const o=e.PreExistingTfnDec;let i,s;switch(2===o.tag&&0===o.fields[0].tag?(i=0,s=o.fields[0].fields[0]):i=1,i){case 0:r=ao(0,(()=>so(0,s)));break;case 1:r=Vu(t,n)}return Gr.Delay((()=>Gr.Bind(r,(r=>{let o,i,s;const a=r;return 1===a.tag?Gr.Return(new Yr(1,a.fields[0])):Gr.ReturnFrom((o=a.fields[0],s=function(e,t){return oo(0,(()=>Zr((n=>{const r=n,o=pn(cu,e.PreviousSurname.Value);return Zr((n=>{const i=n;return Zr((n=>{const s=0|n;return Zr((n=>{const a=n,u=(e=>Hn(wu,e))(e.DebtSupportCheckboxGroup),l=t.Data;if(null!=l){const e=l;let t;if(0===r.tag)t=An();else if(1===r.fields[0].tag){const n=0|yu(r.fields[0].fields[0]),o=e.TfnInformation;let i;switch(i=1===o.tag&&o.fields[0]===n?0:1,i){case 0:t=An();break;case 1:t=Rn(new Au(2,new bu(1,n)))}}else t=Rn(new Au(2,new bu(0,r.fields[0].fields[0].fields[0])));return io(0,pu(e.ResidencyStatusV2),(n=>{const r=Iu(n),l=1===r.tag?new Au(5,i):ct(i,r.fields[0])?void 0:new Au(5,i);return Vn(t,pr(cr((()=>wr(ct(o,e.PreviousSurname)?dr():$r(new Au(3,o)),cr((()=>wr(Un(dn(l)),cr((()=>wr(s!==e.EmploymentBasis?$r(new Au(6,s)):dr(),cr((()=>wr(a!==e.IsTaxFreeThresholdClaimed?$r(new Au(7,a)):dr(),cr((()=>ct(jn(u,{Compare:dt}),jn(e.HasDebtSupport,{Compare:dt}))?dr():$r(new Au(8,u))))))))))))))))))}))}return io(0,0===r.tag?new Yr(1,"New TFN declaration cannot have a truncated TFN"):1===r.fields[0].tag?new Yr(0,new bu(1,yu(r.fields[0].fields[0]))):new Yr(0,new bu(0,r.fields[0].fields[0].fields[0])),(e=>Rn(new Au(1,{AccountId:t.Meta.AccountId,EmploymentBasis:s,HasDebtSupport:u,IsTaxFreeThresholdClaimed:a,PreviousSurname:o,ResidencyStatus:i,TfnInformation:e}))))}),Jr("missing is tax-free threshold claimed",pn((e=>1!==e.tag),e.ClaimTaxFreeThreshold.Selected)))}),Jr("missing employment basis",pn(hu,e.EmploymentBasisRadioButtonGroup.Value)))}),Jr("missing residency status",hn((e=>{const t=Iu(e);return 1===t.tag?void 0:t.fields[0]}),e.ResidencyStatus.Value)))}),Jr("missing TFN info",e.TfnInformation.Value))))()}(e,o),i=Gr.Return(s),Gr.Delay((()=>Gr.Bind(i,(e=>{let r,i,s;const a=e;return 1===a.tag?Gr.Return(new Yr(1,a.fields[0])):Gr.ReturnFrom((r=a.fields[0],Mn(r)?so(0,o):(i=Bu(t,(u=new co(1,function(e,t){return JSON.stringify(t,gt(2,null),un(e))}(0,function(e,t,n,r){const o=$n(t,new ai(0)),i=$n(void 0,!0);return Lu(function(e){return null!=e?Jo(((e,t)=>new Ut(t[0])),e.Coders):Qo()}(void 0),o,i,e)}(xs(bs("Dto.Commands.TfnDeclarationCommandDto",[],Au,(()=>[[["Item",ys(["AccountId",Cs],["EmploymentBasis",_s("Dto.Dto.EmploymentBasisDto",Ts,[["FullTime",0],["PartTime",1],["LabourHire",2],["SuperIncomeStream",3],["Casual",4]])],["HasDebtSupport",xs(_s("Dto.Dto.DebtSupportDto",Ts,[["HELP",0],["VETStudentLoan",1],["FinancialSupplement",2],["StudentStartUpLoan",3],["TradeSupportLoan",4]]))],["IsTaxFreeThresholdClaimed",Es],["PreviousSurname",vs(Cs)],["ResidencyStatus",_s("Dto.Dto.ResidencyStatusDto",Ts,[["AustralianResidentForTaxPurposes",0],["ForeignResidentForTaxPurposes",1],["WorkingHolidayMaker",2]])],["TfnInformation",vu()])]],[["Item",ys(["AccountId",Cs],["EmploymentBasis",_s("Dto.Dto.EmploymentBasisDto",Ts,[["FullTime",0],["PartTime",1],["LabourHire",2],["SuperIncomeStream",3],["Casual",4]])],["HasDebtSupport",xs(_s("Dto.Dto.DebtSupportDto",Ts,[["HELP",0],["VETStudentLoan",1],["FinancialSupplement",2],["StudentStartUpLoan",3],["TradeSupportLoan",4]]))],["IsTaxFreeThresholdClaimed",Es],["PreviousSurname",vs(Cs)],["ResidencyStatus",Eu()],["TfnInformation",vu()])]],[["Item",vu()]],[["Item",vs(Cs)]],[["Item",_s("Dto.Dto.ResidencyStatusDto",Ts,[["AustralianResidentForTaxPurposes",0],["ForeignResidentForTaxPurposes",1],["WorkingHolidayMaker",2]])]],[["Item",Eu()]],[["Item",_s("Dto.Dto.EmploymentBasisDto",Ts,[["FullTime",0],["PartTime",1],["LabourHire",2],["SuperIncomeStream",3],["Casual",4]])]],[["Item",Es]],[["Item",xs(_s("Dto.Dto.DebtSupportDto",Ts,[["HELP",0],["VETStudentLoan",1],["FinancialSupplement",2],["StudentStartUpLoan",3],["TradeSupportLoan",4]]))]]]))),new ai(1))(r))),l=ri(new uo(2),ni(Gu(n))),s=new fo(l.url,l.method,l.headers,l.withCredentials,l.overridenMimeType,l.overridenResponseType,l.timeout,u),oi(new lo(0,"Content-Type","application/json"),s))),Gr.Delay((()=>Gr.Bind(i,(e=>{let t,n;const r=e;return 1===r.tag?Gr.Return(new Yr(1,r.fields[0])):Gr.ReturnFrom((t=r.fields[0],200===t.statusCode?(n=Uu(t.responseText),Gr.Return(n)):Gr.Return(new Yr(1,"Unexpected response from backend"))))})))))));var u,l}))))))}))))}))}function ju(e,t,n){Gn((n=>{try{n(t)}catch(t){e(t)}}),n)}function zu(){return An()}function Wu(e,t){return Hn((t=>n=>{t((t=>{n(e(t))}))}),t)}function qu(e){return Rn((t=>{t(e)}))}function Yu(e,t,n,r){return Rn((o=>{e(t).then((e=>o(n(e)))).catch((e=>o(r(e))))}))}function Ku(e,t,n,r,o){const i=function(e,t,n,r){const o=0|pt(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|pt(n,t);return i&&o<=0||!i&&o>=0?[n,r(n,e)]:void 0}}(t,n,r,o);return cr((()=>{return t=i,n=e,ur((()=>function(e,t){let n,r=t;return sr((()=>{if(null!=n){const e=n[0];return n[1],e}return nr()}),(()=>{if(n=e(r),null!=n){n[0];const e=n[1];return r=e,!0}return!1}),(()=>{}))}(t,n)));var t,n}))}class Zu extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Writable","ReadWritable"]}}class Ju{constructor(e){this.state=new Zu(0,wn(new Array(ht(dt,e,10)),0,ht(dt,e,10),null),0)}}function Xu(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 Zu(0,o,n):new Zu(1,o,n,i),un(o[r])}}class Qu extends Bt{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 el(e,t,n){return new Qu(e,t,(e=>zu()),n,gt(2,(e=>{const t=vt(1,n,[e]);return e=>{t(e)}})),(e=>{var t,n;t=e[0],n=e[1],console.error(un(t),n)}),gt(2,(e=>e)))}function tl(e,t){return new Qu(t.init,t.update,t.subscribe,t.view,e,t.onError,t.syncDispatch)}function nl(e,t){const n=t.init(e),r=n[0],o=new Ju(10);let i=!1,s=r;const a=vt(1,t.syncDispatch,[e=>{if(i)!function(e,t){const n=e.state;if(1===n.tag){const i=0|n.fields[1],s=0|n.fields[2],a=n.fields[0];a[i]=t;const u=(i+1)%a.length|0;e.state=u===s?new Zu(1,(r=s,o=a,Array.from(cr((()=>wr(_r(r,o),cr((()=>{return wr((e=r,t=o,mr((()=>lr(t)),((t,n)=>{if(t<e){if(n["System.Collections.IEnumerator.MoveNext"]())return un(n["System.Collections.Generic.IEnumerator`1.get_Current"]());throw new Error(tr+"\\nParameter name: source")}}),(e=>{Ye(e)}))),cr((()=>Sr((e=>$r(null)),Ku(0,1,o.length,0,((e,t)=>e+t))))));var e,t}))))))),a.length,0):new Zu(1,a,u,s)}else{const r=0|n.fields[1],o=n.fields[0];o[r]=t;const i=(r+1)%o.length|0;e.state=new Zu(1,o,i,r)}var r,o}(o,e);else{i=!0;let n=un(e);for(;null!=n;){const e=ln(n);try{const n=t.update(e,s),r=n[0];t.setState(r,a),ju((n=>{t.onError([Yt(Wt("Error in command while handling: %A"))(e),n])}),a,n[1]),s=r}catch(n){t.onError([Yt(Wt("Unable to process the message: %A"))(e),n])}n=Xu(o)}i=!1}}]);t.setState(r,a),ju((e=>{t.onError(["Error intitializing:",e])}),a,function(e){const t=Cn();let n=t;const r=e=>{n=Fn(((e,t)=>{const n=new _n(t,void 0);return e.tail=n,n}),n,e)};if(We(e))e.forEach(r);else if(e instanceof _n)Gn(r,e);else{const t=Je(e);try{for(;t["System.Collections.IEnumerator.MoveNext"]();)r(t["System.Collections.Generic.IEnumerator`1.get_Current"]())}finally{Ye(t)}}const o=n,i=Cn();return o.tail=i,In(t)}(Un([(()=>{try{return t.subscribe(r)}catch(e){return t.onError(["Unable to subscribe:",e]),zu()}})(),n[1]])))}class rl{constructor(){this.hasDisposedOnce=!1,this.state=void 0,this.listener=void 0,this.dispatcher=void 0}}function ol(){return new rl}function il(e,t,n,r){nl(t,tl(((e,t)=>{!function(e,t,n){e.state=un(t),e.dispatcher=n;const r=e.listener;null!=r&&r(t)}(n,e,t)}),e()));const o=function(e){return e.state}(n);if(null!=o)return ln(o);throw new Error("Elmish program has not initialized")}function sl(e,t){return function(e,t,n){const r=Tr(ol)[0],o=Tr((()=>il(e,t,r))),i=o[1];return Ir((()=>(function(e){return e.hasDisposedOnce}(r)&&i(il(e,t,r)),Er((()=>{!function(e){const t=e.state;if(null!=t){const e=ln(t);qe(e)&&Ye(e)}e.dispatcher=void 0,e.state=void 0,e.hasDisposedOnce=!0}(r)})))),$n(n,[])),function(e,t){null==e.listener&&(e.listener=t)}(r,i),[o[0],e=>{!function(e,t){const n=e.dispatcher;null!=n&&n(t)}(r,e)}]}(e,void 0,t)}function al(e,t,n){return sl((()=>el((()=>e),t,((e,t)=>{}))),n)}class ul extends Bt{constructor(e,t){super(),this.Value=e,this.Meta=t}}function ll(){return new ul(void 0,{Valid:!1})}function cl(e){return new ul(e,{Valid:!0})}function fl(e){return new ul(e,{Valid:!1})}function dl(e){switch(e){case"Under18AndBelowTaxThreshold":return new au(0);case"Pending":return new au(1);case"Pensioner":return new au(2);default:return}}function $l(e){switch(e){case"AustralianResidentForTaxPurposes":return new nu(0);case"ForeignResidentForTaxPurposes":return new nu(1);case"WorkingHolidayMaker":return ru;default:return}}function pl(e){switch(e.tag){case 1:return"ForeignResidentForTaxPurposes";case 2:return"WorkingHolidayMaker";default:return"AustralianResidentForTaxPurposes"}}function hl(e){switch(e){case"HELP":return new Qa(0);case"VETStudentLoan":return new Qa(1);case"FinancialSupplement":return new Qa(2);case"StudentStartUpLoan":return new Qa(3);case"TradeSupportLoan":return new Qa(4);default:return}}function ml(e){switch(e){case"FullTime":return new iu(0);case"PartTime":return new iu(1);case"LabourHire":return new iu(2);case"SuperIncomeStream":return new iu(3);case"Casual":return new iu(4);default:return}}function wl(e){return d("p",{className:en(" ",["block","text-sm","font-medium","text-gray-700","leading-5"]),children:e})}class gl extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Yes","No"]}}class yl extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Select","SelectInternal"]}}class bl extends Bt{constructor(e,t){super(),this.Selected=e,this.Meta=t}}function vl(e){return new bl(e,{Touched:!1})}function xl(e,t){return 1===e.tag?e.fields[1]||!t.Meta.Touched?new bl(e.fields[0],t.Meta):t:new bl(e.fields[0],{Touched:!0})}function _l(e){const t=ct(e.Parent.State.Selected,e.Selection)?Un(["bg-white","border-gray-200","shadow-sm","text-gray-900"]):Un(["shadow-none","text-gray-700"]);return d("button",{className:en(" ",Vn(Un(["relative","w-1/2","border-gray-200","rounded-md","shadow-sm","py-2","text-sm","font-medium","whitespace-nowrap","focus:outline-none","focus:ring-inset","focus:ring-1","focus:ring-primary-focus","focus:z-10","w-auto","px-8"]),t)),type:"button",name:"yesNoButtonGroup",onClick:t=>{e.Parent.Dispatch(new yl(0,e.Selection))},disabled:ct(e.Parent.Disable,e.Selection),children:Lt(e.Selection)})}function Sl(e){let t;return d("div",mt(Un([["className",en(" ",["relative","self-start","bg-gray-100","rounded-lg","p-0.5","flex","mt-2","space-x-0.5"])],(t=[_l({Parent:e,Selection:new gl(0)}),_l({Parent:e,Selection:new gl(1)})],["children",zn.Children.toArray(Array.from(t))])])))}class Cl extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Select"]}}class El extends Bt{constructor(e){super(),this.Selected=e}}function Tl(e){let t;const n=al((r=e.InitialValue,[new El(r),zu()]),((t,n)=>function(e,t,n){const r=function(e,t){return new El(e.fields[0])}(t);return e(new ul(r.Selected,{Valid:null!=r.Selected})),[r,zu()]}(e.OnUpdate,t)));var r;return d("div",mt(Un([["className",en(" ",["space-y-2","mt-2"])],(t=pr(cr((()=>Sr((t=>{let r,o;const i=t[0];return $r(d("label",mt(Un([["className",en(" ",["flex","items-start"])],(r=[d("input",{className:en(" ",["focus:ring-primary-focus","pt-1","block","mt-1","h-4","w-4","text-primary-base","border-gray-300"]),type:"radio",name:e.Name,id:i,checked:fn(n[0].Selected)===i,onChange:e=>{e.target.checked,n[1](new Cl(0,i))}}),d("label",mt(Un([["className",en(" ",["ml-3","block","text-sm"])],["for",i],(o=pr(cr((()=>wr($r(d("span",{className:en(" ",["block","text-gray-900"]),children:t[1]})),cr((()=>{const e=t[2];if(null==e)return $r(null);{const t=e;return $r(d("span",{className:en(" ",["block","text-gray-500"]),children:t}))}})))))),["children",zn.Children.toArray(Array.from(o))])])))],["children",zn.Children.toArray(Array.from(r))])]))))}),e.ValueLabelPairs)))),["children",zn.Children.toArray(Array.from(t))])])))}class kl extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["SetText","SetTouched"]}}class Il extends Bt{constructor(e,t){super(),this.Text=e,this.Meta=t}}class Al extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Number","Text"]}}function Nl(e){let t;const n=al(function(e,t){const n=$n(e,"");return[new Il(n,{Touched:!1,Valid:t(n)}),zu()]}(e.InitialValue,e.Validator),((t,n)=>function(e,t,n,r){const o=function(e,t,n){if(1===t.tag)return new Il(n.Text,{Touched:!0,Valid:n.Meta.Valid});{const r=t.fields[0];return new Il(r,{Touched:n.Meta.Touched,Valid:e(r)})}}(t,n,r);return e(new ul(o.Text,{Valid:o.Meta.Valid})),[o,zu()]}(e.OnUpdate,e.Validator,t,n))),r=n[0],o=n[1];return d("div",mt(Un([["className",en(" ",Vn(e.AdditionalWrapperClasses,Rn("z-10")))],(t=pr(cr((()=>wr($r(d("input",mt(pr(cr((()=>wr($r(["className",en(" ",Vn(e.AdditionalInputClasses,Vn(Un(["block","w-full","pr-10","focus:outline-none","text-sm","rounded-md","border-gray-300"]),pr(cr((()=>!r.Meta.Valid&&r.Meta.Touched?["border-red-300","text-red-900","placeholder-red-300","focus:ring-red-500","focus:border-red-500"]:dr()))))))]),cr((()=>wr($r(["type","text"]),cr((()=>wr($r(["onChange",t=>{const n=t.target.value;o(new kl(0,1===e.InputType.tag?n:rn(Ga,n)))}]),cr((()=>{let t;return wr($r((t=r.Text,["ref",e=>{null==e||ct(e.value,t)||(e.value=t)}])),cr((()=>wr($r(["onBlur",e=>{o(new kl(1))}]),cr((()=>ct(e.InputType,new Al(0))?$r(["inputMode","numeric"]):dr()))))))}))))))))))))))),cr((()=>!r.Meta.Valid&&r.Meta.Touched?$r(d("div",{className:en(" ",["mt-1","text-sm","text-red-600"]),children:e.InvalidFeedback})):dr())))))),["children",zn.Children.toArray(Array.from(t))])])))}class Rl extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["YesNoButtonGroupMsg","SetTfnInput","SetTfnExemptionReason","SwitchEditingState","HideAlert"]}}class Ml extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Tfn","Exempted"]}}class Ol extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["TfnTruncated","TfnValue"]}}class Dl extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Truncated","Editing"]}}class Pl extends Bt{constructor(e,t,n,r){super(),this.YesNoButtonGroup=e,this.TruncatedTfn=t,this.CurrentAlert=n,this.EditingState=r}}function Fl(e){const t=e.EditingState;if(1===t.tag){const e=t.fields[0];return new ul(pn((e=>new Ol(1,e)),e.Value),e.Meta)}return new ul(new Ol(0,fn(e.TruncatedTfn)),{Valid:!0})}const Ll=e=>function(e){return 1!==e.tag}(fu(e));function Gl(e){const t=e.EditingState;if(1===t.tag){const n=t.fields[0],r=n.Value;if(null==r)return new Pl(e.YesNoButtonGroup,e.TruncatedTfn,e.CurrentAlert,new Dl(1,new ul(n.Value,{Valid:!1})));if(1===r.tag)return new Pl(e.YesNoButtonGroup,e.TruncatedTfn,e.CurrentAlert,new Dl(1,new ul(n.Value,{Valid:!0})));{const t=r.fields[0].fields[0];return new Pl(e.YesNoButtonGroup,e.TruncatedTfn,e.CurrentAlert,new Dl(1,new ul(n.Value,{Valid:Ll(t)})))}}return e}function Bl(e){let t,n,r,o,i;const s=al(function(e){let t,n,r;return[Gl(new Pl(vl(null!=e&&1===e.tag&&1===e.fields[0].tag?new gl(1):new gl(0)),(t=e,null!=t&&0===t.tag?(n=t.fields[0],n):void 0),void 0,null==e?new Dl(1,ll()):1===e.tag?(r=e.fields[0],new Dl(1,new ul(r,{Valid:!1}))):new Dl(0))),zu()]}(e.InitialValue),((t,n)=>function(e,t,n){const r=function(e,t){let n,r,o,i,s,a,u,l,c,f;return Gl(1===e.tag?(n=e.fields[0],r=pn((e=>new Ml(0,new su(0,e))),n.Value),t.EditingState.tag,new Pl(t.YesNoButtonGroup,t.TruncatedTfn,t.CurrentAlert,new Dl(1,new ul(r,n.Meta)))):2===e.tag?(o=e.fields[0],i=pn((e=>new Ml(1,e)),hn(dl,o.Value)),t.EditingState.tag,new Pl(t.YesNoButtonGroup,t.TruncatedTfn,t.CurrentAlert,new Dl(1,new ul(i,o.Meta)))):3===e.tag?1===t.EditingState.tag?new Pl(t.YesNoButtonGroup,t.TruncatedTfn,t.CurrentAlert,new Dl(0)):new Pl(t.YesNoButtonGroup,t.TruncatedTfn,new Qr(2,"Please click the continue button at the end of\n this form to save the changes to your TFN."),new Dl(1,ll())):4===e.tag?new Pl(t.YesNoButtonGroup,t.TruncatedTfn,void 0,t.EditingState):(s=e.fields[0],s.tag,u=[s.fields[0],t.EditingState],a=1===u[0].tag?1===u[1].tag?(l=u[1].fields[0].Value,null!=l&&1===l.tag?t.EditingState:new Dl(1,ll())):new Dl(1,ll()):1===u[1].tag?(c=[u[1].fields[0].Value,t.TruncatedTfn],null!=c[0]&&0===c[0].tag?t.EditingState:null!=c[1]?(f=c[1],new Dl(0)):new Dl(1,ll())):new Dl(0),new Pl(xl(s,t.YesNoButtonGroup),t.TruncatedTfn,t.CurrentAlert,a)))}(t,n);return e(Fl(r)),[r,zu()]}(e.OnUpdate,t,n))),a=s[0],u=s[1],l=null==a.TruncatedTfn?null:d("div",mt(Rn((t=[d("button",mt(Un([["className",en(" ",["relative","inline-flex","items-center","space-x-2","px-4","py-2","border","border-gray-300","text-sm","font-medium","rounded-r-md","text-gray-700","bg-gray-50","hover:bg-gray-100","focus:outline-none","focus:ring-1","focus:ring-primary-focus","focus:border-primary-focus","focus:z-20","-ml-px"])],["type","button"],(n=pr(cr((()=>ct(a.EditingState,new Dl(0))?wr($r(qn),cr((()=>$r(d("span",{children:["Edit"]}))))):wr($r(Yn),cr((()=>$r(d("span",{children:["Cancel"]})))))))),["children",zn.Children.toArray(Array.from(n))]),["onClick",e=>{u(new Rl(3))}]])))],["children",zn.Children.toArray(Array.from(t))]))));return d("div",mt(Un([["className",en(" ",Qn)],(r=[(o=pr(cr((()=>{const e=a.CurrentAlert;return $r(null==e?null:d(ro,{alert:e,hideAlert:()=>{u(new Rl(4))}}))}))),d("div",{children:zn.Children.toArray(Array.from(o))})),wl("Do you have your Tax File Number (TFN)?"),d(Sl,{Disable:void 0,Dispatch:e=>{u(new Rl(0,e))},State:a.YesNoButtonGroup}),d("div",mt(Un([["className",en(" ",["mt-4"])],(i=pr(cr((()=>{let e,t,n;const r=a.YesNoButtonGroup.Selected;if(null==r)return $r(null);if(1===r.tag)return $r(d(Tl,(e=Hn((e=>[Lt(e[0]),e[1],e[2]]),Un([[new au(1),"My TFN is pending",void 0],[new au(0),"I'm under 18 and don't have a TFN",void 0],[new au(2),"I have an exemption from quoting a TFN","E.g. receiving a social security or service pension"]])),{InitialValue:(t=Fl(a).Value,null!=t&&1===t.tag&&1===t.fields[0].tag?(n=t.fields[0].fields[0],Lt(n)):void 0),Name:"TfnExemption",OnUpdate:e=>{u(new Rl(2,e))},ValueLabelPairs:e})));{const e=[a.TruncatedTfn,a.EditingState];let t,n;switch(null!=e[0]&&0===e[1].tag?(t=0,n=e[0]):t=1,t){case 0:return wr($r(wl("Enter your TFN")),cr((()=>{let e,t,r;return $r(d("div",mt(Un([["className",en(" ",["mt-1","flex","rounded-md","shadow-sm"])],(e=[d("div",mt(Un([["className","relative flex items-stretch flex-grow"],(t=[d("input",mt(Un([["className",en(" ",["focus:ring-primary-focus","focus:border-primary-focus","block","w-full","rounded-none","rounded-l-md","pl-4","text-sm","border","border-gray-300","text-gray-500"])],["disabled",!0],(r=`*** *** *${n}`,["ref",e=>{null==e||ct(e.value,r)||(e.value=r)}])])))],["children",zn.Children.toArray(Array.from(t))])]))),l],["children",zn.Children.toArray(Array.from(e))])]))))})));case 1:return wr($r(wl("Enter your TFN")),cr((()=>{let e,t;return $r(d("div",mt(Un([["className",en(" ",["mt-1","flex"])],(e=[d("div",mt(Un([["className",en(" ",["relative","flex","items-stretch","flex-grow"])],(t=[d(Nl,{AdditionalInputClasses:pr(cr((()=>wr($r("focus:ring-primary-focus"),cr((()=>wr($r("focus:border-primary-focus"),cr((()=>wr($r("block"),cr((()=>wr($r("w-full"),cr((()=>null==a.TruncatedTfn?$r("rounded-md"):$r("rounded-none rounded-l-md")))))))))))))))),AdditionalWrapperClasses:Un(["block","w-full"]),InitialValue:void 0,InputType:new Al(0),InvalidFeedback:"That isn’t a valid Tax File Number",OnUpdate:e=>{u(new Rl(1,e))},Validator:Ll}),l],["children",zn.Children.toArray(Array.from(t))])])))],["children",zn.Children.toArray(Array.from(e))])]))))})))}}}))),["children",zn.Children.toArray(Array.from(i))])])))],["children",zn.Children.toArray(Array.from(r))])])))}let Ul="undefined"!=typeof window?ee:Q;function Vl(e){let t=te(e);return Ul((()=>{t.current=e}),[e]),t}function Hl(e,t){let[n,r]=J(e),o=Vl(e);return Ul((()=>r(o.current)),[o,r,...t]),n}function jl(){let e=[],t=[],n={enqueue(e){t.push(e)},addEventListener:(e,t,r,o)=>(e.addEventListener(t,r,o),n.add((()=>e.removeEventListener(t,r,o)))),requestAnimationFrame(...e){let t=requestAnimationFrame(...e);return n.add((()=>cancelAnimationFrame(t)))},nextFrame:(...e)=>n.requestAnimationFrame((()=>n.requestAnimationFrame(...e))),setTimeout(...e){let t=setTimeout(...e);return n.add((()=>clearTimeout(t)))},add:t=>(e.push(t),()=>{let n=e.indexOf(t);if(n>=0){let[t]=e.splice(n,1);t()}}),dispose(){for(let t of e.splice(0))t()},async workQueue(){for(let e of t.splice(0))await e()}};return n}function zl(){let[e]=J(jl);return Q((()=>()=>e.dispose()),[e]),e}let Wl=function(e){let t=Vl(e);return je.useCallback(((...e)=>t.current(...e)),[t])},ql={serverHandoffComplete:!1};var Yl;let Kl=0;function Zl(){return++Kl}let Jl=null!=(Yl=je.useId)?Yl:function(){let e=function(){let[e,t]=J(ql.serverHandoffComplete);return Q((()=>{!0!==e&&t(!0)}),[e]),Q((()=>{!1===ql.serverHandoffComplete&&(ql.serverHandoffComplete=!0)}),[]),e}(),[t,n]=je.useState(e?Zl:null);return Ul((()=>{null===t&&n(Zl())}),[t]),null!=t?""+t:void 0};function Xl(e,t,...n){if(e in t){let r=t[e];return"function"==typeof r?r(...n):r}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map((e=>`"${e}"`)).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,Xl),r}function Ql(e){return"undefined"==typeof window?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}let ec=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map((e=>`${e}:not([tabindex='-1'])`)).join(",");var tc=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(tc||{}),nc=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(nc||{}),rc=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(rc||{}),oc=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(oc||{});function ic(e,t,n){let r=Vl(t);Q((()=>{function t(e){r.current(e)}return window.addEventListener(e,t,n),()=>window.removeEventListener(e,t,n)}),[e,n])}function sc(e){var t;if(e.type)return e.type;let n=null!=(t=e.as)?t:"button";return"string"==typeof n&&"button"===n.toLowerCase()?"button":void 0}function ac(e,t){let[n,r]=J((()=>sc(e)));return Ul((()=>{r(sc(e))}),[e.type,e.as]),Ul((()=>{n||!t.current||t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&r("button")}),[n,t]),n}["textarea","input"].join(",");let uc=Symbol();function lc(...e){let t=te(e);Q((()=>{t.current=e}),[e]);let n=Wl((e=>{for(let n of t.current)null!=n&&("function"==typeof n?n(e):n.current=e)}));return e.every((e=>null==e||(null==e?void 0:e[uc])))?void 0:n}var cc=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(cc||{});var fc=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(fc||{}),dc=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(dc||{});function $c({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:i=!0,name:s}){let a=hc(t,e);if(i)return pc(a,n,r,s);let u=null!=o?o:0;if(2&u){let{static:e=!1,...t}=a;if(e)return pc(t,n,r,s)}if(1&u){let{unmount:e=!0,...t}=a;return Xl(e?0:1,{0:()=>null,1:()=>pc({...t,hidden:!0,style:{display:"none"}},n,r,s)})}return pc(a,n,r,s)}function pc(e,t={},n,r){let{as:o=n,children:i,refName:s="ref",...a}=gc(e,["unmount","static"]),u=void 0!==e.ref?{[s]:e.ref}:{},l="function"==typeof i?i(t):i;a.className&&"function"==typeof a.className&&(a.className=a.className(t));let c={};if(o===p&&Object.keys(wc(a)).length>0){if(!Ue(l)||Array.isArray(l)&&l.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(a).map((e=>` - ${e}`)).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map((e=>` - ${e}`)).join("\n")].join("\n"));return Ve(l,Object.assign({},hc(l.props,wc(gc(a,["ref"]))),c,u))}return d(o,Object.assign({},gc(a,["ref"]),o!==p&&u,o!==p&&c),l)}function hc(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},n={};for(let r of e)for(let e in r)e.startsWith("on")&&"function"==typeof r[e]?(null!=n[e]||(n[e]=[]),n[e].push(r[e])):t[e]=r[e];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map((e=>[e,void 0]))));for(let e in n)Object.assign(t,{[e](t,...r){let o=n[e];for(let e of o){if(t.defaultPrevented)return;e(t,...r)}}});return t}function mc(e){var t;return Object.assign(me(e),{displayName:null!=(t=e.displayName)?t:e.name})}function wc(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function gc(e,t=[]){let n=Object.assign({},e);for(let e of t)e in n&&delete n[e];return n}function yc(e={},t=null,n=[]){for(let[r,o]of Object.entries(e))vc(n,bc(t,r),o);return n}function bc(e,t){return e?e+"["+t+"]":t}function vc(e,t,n){if(Array.isArray(n))for(let[r,o]of n.entries())vc(e,bc(t,r.toString()),o);else n instanceof Date?e.push([t,n.toISOString()]):"boolean"==typeof n?e.push([t,n?"1":"0"]):"string"==typeof n?e.push([t,n]):"number"==typeof n?e.push([t,`${n}`]):null==n?e.push([t,""]):yc(n,t,e)}var xc=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(xc||{});let _c=mc((function(e,t){let{features:n=1,...r}=e;return $c({ourProps:{ref:t,"aria-hidden":2==(2&n)||void 0,style:{position:"absolute",width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...4==(4&n)&&2!=(2&n)&&{display:"none"}}},theirProps:r,slot:{},defaultTag:"div",name:"Hidden"})})),Sc=F(null);Sc.displayName="OpenClosedContext";var Cc=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Cc||{});function Ec({value:e,children:t}){return je.createElement(Sc.Provider,{value:e},t)}var Tc=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(Tc||{}),kc=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(kc||{}),Ic=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(Ic||{}),Ac=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(Ac||{}),Nc=(e=>(e[e.OpenCombobox=0]="OpenCombobox",e[e.CloseCombobox=1]="CloseCombobox",e[e.GoToOption=2]="GoToOption",e[e.RegisterOption=3]="RegisterOption",e[e.UnregisterOption=4]="UnregisterOption",e))(Nc||{});function Rc(e,t=(e=>e)){let n=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,r=function(e,t=(e=>e)){return e.slice().sort(((e,n)=>{let r=t(e),o=t(n);if(null===r||null===o)return 0;let i=r.compareDocumentPosition(o);return i&Node.DOCUMENT_POSITION_FOLLOWING?-1:i&Node.DOCUMENT_POSITION_PRECEDING?1:0}))}(t(e.options.slice()),(e=>e.dataRef.current.domRef.current)),o=n?r.indexOf(n):null;return-1===o&&(o=null),{options:r,activeOptionIndex:o}}let Mc={1:e=>e.dataRef.current.disabled||1===e.comboboxState?e:{...e,activeOptionIndex:null,comboboxState:1},0(e){if(e.dataRef.current.disabled||0===e.comboboxState)return e;let t=e.activeOptionIndex,{isSelected:n}=e.dataRef.current,r=e.options.findIndex((e=>n(e.dataRef.current.value)));return-1!==r&&(t=r),{...e,comboboxState:0,activeOptionIndex:t}},2(e,t){var n;if(e.dataRef.current.disabled||e.dataRef.current.optionsRef.current&&!e.dataRef.current.optionsPropsRef.current.static&&1===e.comboboxState)return e;let r=Rc(e);if(null===r.activeOptionIndex){let e=r.options.findIndex((e=>!e.dataRef.current.disabled));-1!==e&&(r.activeOptionIndex=e)}let o=function(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),o=null!=r?r:-1,i=(()=>{switch(e.focus){case 0:return n.findIndex((e=>!t.resolveDisabled(e)));case 1:{let e=n.slice().reverse().findIndex(((e,n,r)=>!(-1!==o&&r.length-n-1>=o||t.resolveDisabled(e))));return-1===e?e:n.length-1-e}case 2:return n.findIndex(((e,n)=>!(n<=o||t.resolveDisabled(e))));case 3:{let e=n.slice().reverse().findIndex((e=>!t.resolveDisabled(e)));return-1===e?e:n.length-1-e}case 4:return n.findIndex((n=>t.resolveId(n)===e.id));case 5:return null;default:!function(e){throw new Error("Unexpected object: "+e)}(e)}})();return-1===i?r:i}(t,{resolveItems:()=>r.options,resolveActiveIndex:()=>r.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...e,...r,activeOptionIndex:o,activationTrigger:null!=(n=t.trigger)?n:1}},3:(e,t)=>{let n={id:t.id,dataRef:t.dataRef},r=Rc(e,(e=>[...e,n]));null===e.activeOptionIndex&&e.dataRef.current.isSelected(t.dataRef.current.value)&&(r.activeOptionIndex=r.options.indexOf(n));let o={...e,...r,activationTrigger:1};return e.dataRef.current.__demoMode&&void 0===e.dataRef.current.value&&(o.activeOptionIndex=0),o},4:(e,t)=>{let n=Rc(e,(e=>{let n=e.findIndex((e=>e.id===t.id));return-1!==n&&e.splice(n,1),e}));return{...e,...n,activationTrigger:1}}},Oc=F(null);function Dc(e){let t=oe(Oc);if(null===t){let t=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Dc),t}return t}Oc.displayName="ComboboxActionsContext";let Pc=F(null);function Fc(e){let t=oe(Pc);if(null===t){let t=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Fc),t}return t}function Lc(e,t){return Xl(t.type,Mc,e,t)}Pc.displayName="ComboboxDataContext";let Gc=p,Bc=mc((function(e,t){let{name:n,value:r,onChange:o,disabled:i=!1,__demoMode:s=!1,nullable:a=!1,multiple:u=!1,...l}=e,[c,f]=X(Lc,{dataRef:{current:null},comboboxState:s?0:1,options:[],activeOptionIndex:null,activationTrigger:1}),d=te(!1),$=te({static:!1,hold:!1}),p=te({displayValue:void 0}),h=te(null),m=te(null),w=te(null),g=te(null),y=Wl(((e,t)=>e===t)),b=re((e=>Xl(v.mode,{1:()=>r.some((t=>y(t,e))),0:()=>y(r,e)})),[r]),v=ne((()=>({...c,optionsPropsRef:$,inputPropsRef:p,labelRef:h,inputRef:m,buttonRef:w,optionsRef:g,value:r,disabled:i,mode:u?1:0,get activeOptionIndex(){if(d.current&&null===c.activeOptionIndex&&c.options.length>0){let e=c.options.findIndex((e=>!e.dataRef.current.disabled));if(-1!==e)return e}return c.activeOptionIndex},compare:y,isSelected:b,nullable:a,__demoMode:s})),[r,i,u,a,s,c]);Ul((()=>{c.dataRef.current=v}),[v]),function(e,t,n=!0){let r=te(!1);function o(n,o){if(!r.current||n.defaultPrevented)return;let i=function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(e),s=o(n);if(null!==s&&s.ownerDocument.documentElement.contains(s)){for(let e of i){if(null===e)continue;let t=e instanceof HTMLElement?e:e.current;if(null!=t&&t.contains(s))return}return!function(e,t=0){var n;return e!==(null==(n=Ql(e))?void 0:n.body)&&Xl(t,{0:()=>e.matches(ec),1(){let t=e;for(;null!==t;){if(t.matches(ec))return!0;t=t.parentElement}return!1}})}(s,oc.Loose)&&-1!==s.tabIndex&&n.preventDefault(),t(n,s)}}Q((()=>{requestAnimationFrame((()=>{r.current=n}))}),[n]),ic("click",(e=>o(e,(e=>e.target))),!0),ic("blur",(e=>o(e,(()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null))),!0)}([v.buttonRef,v.inputRef,v.optionsRef],(()=>f({type:1})),0===v.comboboxState);let x=ne((()=>({open:0===v.comboboxState,disabled:i,activeIndex:v.activeOptionIndex,activeOption:null===v.activeOptionIndex?null:v.options[v.activeOptionIndex].dataRef.current.value})),[v,i]),_=re((()=>{var e;if(!v.inputRef.current)return;let t=p.current.displayValue;v.inputRef.current.value="function"==typeof t?null!=(e=t(r))?e:"":"string"==typeof r?r:""}),[r,v.inputRef,p]),S=Wl((e=>{let t=v.options.find((t=>t.id===e));!t||(A(t.dataRef.current.value),_())})),C=Wl((()=>{if(null!==v.activeOptionIndex){let{dataRef:e,id:t}=v.options[v.activeOptionIndex];A(e.current.value),_(),f({type:2,focus:cc.Specific,id:t})}})),E=Wl((()=>{f({type:0}),d.current=!0})),T=Wl((()=>{f({type:1}),d.current=!1})),k=Wl(((e,t,n)=>(d.current=!1,e===cc.Specific?f({type:2,focus:cc.Specific,id:t,trigger:n}):f({type:2,focus:e,trigger:n})))),I=Wl(((e,t)=>(f({type:3,id:e,dataRef:t}),()=>f({type:4,id:e})))),A=Wl((e=>Xl(v.mode,{0:()=>o(e),1(){let t=v.value.slice(),n=t.indexOf(e);return-1===n?t.push(e):t.splice(n,1),o(t)}}))),N=ne((()=>({onChange:A,registerOption:I,goToOption:k,closeCombobox:T,openCombobox:E,selectActiveOption:C,selectOption:S})),[]);Ul((()=>{1===v.comboboxState&&_()}),[_,v.comboboxState]),Ul(_,[_]);let R=null===t?{}:{ref:t};return je.createElement(Oc.Provider,{value:N},je.createElement(Pc.Provider,{value:v},je.createElement(Ec,{value:Xl(v.comboboxState,{0:Cc.Open,1:Cc.Closed})},null!=n&&null!=r&&yc({[n]:r}).map((([e,t])=>je.createElement(_c,{features:xc.Hidden,...wc({key:e,as:"input",type:"hidden",hidden:!0,readOnly:!0,name:e,value:t})}))),$c({ourProps:R,theirProps:l,slot:x,defaultTag:Gc,name:"Combobox"}))))})),Uc=mc((function(e,t){var n,r;let{value:o,onChange:i,displayValue:s,type:a="text",...u}=e,l=Fc("Combobox.Input"),c=Dc("Combobox.Input"),f=lc(l.inputRef,t),d=l.inputPropsRef,$=`headlessui-combobox-input-${Jl()}`,p=zl();Ul((()=>{d.current.displayValue=s}),[s,d]);let h=Wl((e=>{switch(e.key){case Tc.Backspace:case Tc.Delete:if(0!==l.mode||!l.nullable)return;let t=e.currentTarget;p.requestAnimationFrame((()=>{""===t.value&&(c.onChange(null),l.optionsRef.current&&(l.optionsRef.current.scrollTop=0),c.goToOption(cc.Nothing))}));break;case Tc.Enter:if(0!==l.comboboxState)return;if(e.preventDefault(),e.stopPropagation(),null===l.activeOptionIndex)return void c.closeCombobox();c.selectActiveOption(),0===l.mode&&c.closeCombobox();break;case Tc.ArrowDown:return e.preventDefault(),e.stopPropagation(),Xl(l.comboboxState,{0:()=>{c.goToOption(cc.Next)},1:()=>{c.openCombobox()}});case Tc.ArrowUp:return e.preventDefault(),e.stopPropagation(),Xl(l.comboboxState,{0:()=>{c.goToOption(cc.Previous)},1:()=>{c.openCombobox(),p.nextFrame((()=>{l.value||c.goToOption(cc.Last)}))}});case Tc.Home:case Tc.PageUp:return e.preventDefault(),e.stopPropagation(),c.goToOption(cc.First);case Tc.End:case Tc.PageDown:return e.preventDefault(),e.stopPropagation(),c.goToOption(cc.Last);case Tc.Escape:return 0!==l.comboboxState?void 0:(e.preventDefault(),l.optionsRef.current&&!l.optionsPropsRef.current.static&&e.stopPropagation(),c.closeCombobox());case Tc.Tab:if(0!==l.comboboxState)return;c.selectActiveOption(),c.closeCombobox()}})),m=Wl((e=>{c.openCombobox(),null==i||i(e)})),w=Hl((()=>{if(l.labelRef.current)return[l.labelRef.current.id].join(" ")}),[l.labelRef.current]),g=ne((()=>({open:0===l.comboboxState,disabled:l.disabled})),[l]);return $c({ourProps:{ref:f,id:$,role:"combobox",type:a,"aria-controls":null==(n=l.optionsRef.current)?void 0:n.id,"aria-expanded":l.disabled?void 0:0===l.comboboxState,"aria-activedescendant":null===l.activeOptionIndex||null==(r=l.options[l.activeOptionIndex])?void 0:r.id,"aria-multiselectable":1===l.mode||void 0,"aria-labelledby":w,disabled:l.disabled,onKeyDown:h,onChange:m},theirProps:u,slot:g,defaultTag:"input",name:"Combobox.Input"})})),Vc=mc((function(e,t){var n;let r=Fc("Combobox.Button"),o=Dc("Combobox.Button"),i=lc(r.buttonRef,t),s=`headlessui-combobox-button-${Jl()}`,a=zl(),u=Wl((e=>{switch(e.key){case Tc.ArrowDown:return e.preventDefault(),e.stopPropagation(),1===r.comboboxState&&o.openCombobox(),a.nextFrame((()=>{var e;return null==(e=r.inputRef.current)?void 0:e.focus({preventScroll:!0})}));case Tc.ArrowUp:return e.preventDefault(),e.stopPropagation(),1===r.comboboxState&&(o.openCombobox(),a.nextFrame((()=>{r.value||o.goToOption(cc.Last)}))),a.nextFrame((()=>{var e;return null==(e=r.inputRef.current)?void 0:e.focus({preventScroll:!0})}));case Tc.Escape:return 0!==r.comboboxState?void 0:(e.preventDefault(),r.optionsRef.current&&!r.optionsPropsRef.current.static&&e.stopPropagation(),o.closeCombobox(),a.nextFrame((()=>{var e;return null==(e=r.inputRef.current)?void 0:e.focus({preventScroll:!0})})));default:return}})),l=Wl((e=>{if(function(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=""===(null==t?void 0:t.getAttribute("disabled"));return(!r||!function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}(n))&&r}(e.currentTarget))return e.preventDefault();0===r.comboboxState?o.closeCombobox():(e.preventDefault(),o.openCombobox()),a.nextFrame((()=>{var e;return null==(e=r.inputRef.current)?void 0:e.focus({preventScroll:!0})}))})),c=Hl((()=>{if(r.labelRef.current)return[r.labelRef.current.id,s].join(" ")}),[r.labelRef.current,s]),f=ne((()=>({open:0===r.comboboxState,disabled:r.disabled})),[r]),d=e;return $c({ourProps:{ref:i,id:s,type:ac(e,r.buttonRef),tabIndex:-1,"aria-haspopup":!0,"aria-controls":null==(n=r.optionsRef.current)?void 0:n.id,"aria-expanded":r.disabled?void 0:0===r.comboboxState,"aria-labelledby":c,disabled:r.disabled,onClick:l,onKeyDown:u},theirProps:d,slot:f,defaultTag:"button",name:"Combobox.Button"})})),Hc=mc((function(e,t){let n=Fc("Combobox.Label"),r=`headlessui-combobox-label-${Jl()}`;return $c({ourProps:{ref:lc(n.labelRef,t),id:r,onClick:Wl((()=>{var e;return null==(e=n.inputRef.current)?void 0:e.focus({preventScroll:!0})}))},theirProps:e,slot:ne((()=>({open:0===n.comboboxState,disabled:n.disabled})),[n]),defaultTag:"label",name:"Combobox.Label"})})),jc=fc.RenderStrategy|fc.Static,zc=mc((function(e,t){var n;let{hold:r=!1,...o}=e,i=Fc("Combobox.Options"),s=lc(i.optionsRef,t),a=`headlessui-combobox-options-${Jl()}`,u=oe(Sc),l=null!==u?u===Cc.Open:0===i.comboboxState;Ul((()=>{var t;i.optionsPropsRef.current.static=null!=(t=e.static)&&t}),[i.optionsPropsRef,e.static]),Ul((()=>{i.optionsPropsRef.current.hold=r}),[i.optionsPropsRef,r]),function({container:e,accept:t,walk:n,enabled:r=!0}){let o=te(t),i=te(n);Q((()=>{o.current=t,i.current=n}),[t,n]),Ul((()=>{if(!e||!r)return;let t=Ql(e);if(!t)return;let n=o.current,s=i.current,a=Object.assign((e=>n(e)),{acceptNode:n}),u=t.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,a,!1);for(;u.nextNode();)s(u.currentNode)}),[e,r,o,i])}({container:i.optionsRef.current,enabled:0===i.comboboxState,accept:e=>"option"===e.getAttribute("role")?NodeFilter.FILTER_REJECT:e.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT,walk(e){e.setAttribute("role","none")}});let c=Hl((()=>{var e,t,n;return null!=(n=null==(e=i.labelRef.current)?void 0:e.id)?n:null==(t=i.buttonRef.current)?void 0:t.id}),[i.labelRef.current,i.buttonRef.current]),f=ne((()=>({open:0===i.comboboxState})),[i]);return $c({ourProps:{"aria-activedescendant":null===i.activeOptionIndex||null==(n=i.options[i.activeOptionIndex])?void 0:n.id,"aria-labelledby":c,role:"listbox",id:a,ref:s},theirProps:o,slot:f,defaultTag:"ul",features:jc,visible:l,name:"Combobox.Options"})})),Wc=mc((function(e,t){var n,r;let{disabled:o=!1,value:i,...s}=e,a=Fc("Combobox.Option"),u=Dc("Combobox.Option"),l=`headlessui-combobox-option-${Jl()}`,c=null!==a.activeOptionIndex&&a.options[a.activeOptionIndex].id===l,f=a.isSelected(i),d=te(null),$=Vl({disabled:o,value:i,domRef:d,textValue:null==(r=null==(n=d.current)?void 0:n.textContent)?void 0:r.toLowerCase()}),p=lc(t,d),h=Wl((()=>u.selectOption(l)));Ul((()=>u.registerOption(l,$)),[$,l]);let m=te(!a.__demoMode);Ul((()=>{if(!a.__demoMode)return;let e=jl();return e.requestAnimationFrame((()=>{m.current=!0})),e.dispose}),[]),Ul((()=>{if(0!==a.comboboxState||!c||!m.current||0===a.activationTrigger)return;let e=jl();return e.requestAnimationFrame((()=>{var e,t;null==(t=null==(e=d.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})),e.dispose}),[d,c,a.comboboxState,a.activationTrigger,a.activeOptionIndex]);let w=Wl((e=>{var t;if(o)return e.preventDefault();h(),0===a.mode&&(u.closeCombobox(),null==(t=a.inputRef.current)||t.focus({preventScroll:!0}))})),g=Wl((()=>{if(o)return u.goToOption(cc.Nothing);u.goToOption(cc.Specific,l)})),y=Wl((()=>{o||c||u.goToOption(cc.Specific,l,0)})),b=Wl((()=>{o||!c||a.optionsPropsRef.current.hold||u.goToOption(cc.Nothing)})),v=ne((()=>({active:c,selected:f,disabled:o})),[c,f,o]);return $c({ourProps:{id:l,ref:p,role:"option",tabIndex:!0===o?void 0:-1,"aria-disabled":!0===o||void 0,"aria-selected":!0===f||void 0,disabled:void 0,onClick:w,onFocus:g,onPointerMove:y,onMouseMove:y,onPointerLeave:b,onMouseLeave:b},theirProps:s,slot:v,defaultTag:"li",name:"Combobox.Option"})})),qc=Object.assign(Bc,{Input:Uc,Button:Vc,Label:Hc,Options:zc,Option:Wc});class Yc extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Value","OnChange","Children"]}}class Kc extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["DisplayValue","OnChange","ClassName","AutoComplete"]}}function Zc(e){const t=Ua(e,1);return d(qc.Input,t)}class Jc extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["ClassName"]}}function Xc(e,t){const n=Ua(e,1);return d(qc.Options,n,...t)}class Qc extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["ClassName","Children"]}}function ef(e){const t=Ua(e,1);return d(qc.Button,t)}class tf extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Key","Value","ClassName","Children"]}}class nf extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["SetResidencyStatusRadioBox","SetCountry"]}}class rf extends Bt{constructor(e){super(),this.ResidencyStatus=e}}function of(e){return function(e){let t,n;switch(null==e?t=2:1===e.tag?t=0:2===e.tag?(t=1,n=e.fields[0]):t=0,t){case 0:return!0;case 1:return null!=n.HomeCountry;case 2:return!1}}(e)?cl(e):fl(e)}function sf(e){return new rf(of(e.ResidencyStatus.Value))}function af(e,t,n){let r,o;const i=Or(""),s=e=>{let t;return $n(pn((e=>e.Name),(t=tu(e),1===t.tag?void 0:t.fields[0])),"")};let a;const u=cn(i[0]);let l,c;switch(null!=u?""===u?l=0:(l=1,c=u):l=0,l){case 0:a=t;break;case 1:f=(e,t)=>{const n=e=>{return(t=e,t.replace(new RegExp(Pt(" "),"g"),"")).toLocaleLowerCase();var t},r=n(t),o=n(c);return r.indexOf(o)>=0},a=function(e,t){return jo(e.comparer,Ro(e.comparer,t,e.tree))}(t,f)}var f;return function(e){const t=Ua(e,1);return d(qc,t)}(Un([new Yc(0,s(e)),new Yc(1,n),new Yc(2,[d("div",mt(Un([["className","relative mt-1"],(r=[d("div",mt(Un([["className","relative w-full cursor-default overflow-hidden focus:outline-none focus:border-primary-focus"],(o=[Zc(Un([new Kc(0,s(e)),new Kc(2,"block w-full pr-10 focus:outline-none text-sm rounded-md border-gray-300 focus:border-primary-focus shadow-none focus:ring-0"),new Kc(1,(e=>{i[1](e.target.value)})),new Kc(3,"off")])),ef(Un([new Qc(0,"absolute inset-y-0 right-0 flex items-center pr-2"),new Qc(1,[Xn])]))],["children",zn.Children.toArray(Array.from(o))])]))),Xc(Rn(new Jc(0,"absolute mt-1 max-h-60 w-full overflow-auto rounded-md bg-white py-1 text-sm shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none sm:text-sm z-50")),pr(cr((()=>wr(0===qo(a)?$r(d("div",{className:"relative cursor-default select-none py-2 px-4 text-gray-700",children:zn.Children.toArray(["Nothing found"])})):dr(),cr((()=>Sr((e=>{const t=e,n=t[0];return $r(function(e){const t=Ua(e,1);return d(qc.Option,t)}(Un([new tf(0,n),new tf(1,n),new tf(2,"relative cursor-default select-none"),new tf(3,(e=>{let n;const r=[e.active,e.selected];let o;switch(o=r[0]||r[1]?1:0,o){case 0:n="bg-white text-black";break;case 1:n="bg-primary-base"}return[d("span",{className:"py-2 pl-2 pr-4 block truncate "+n,children:t[1]})]}))])))}),a))))))))],["children",zn.Children.toArray(Array.from(r))])])))])]))}function uf(e){let t;const n=al((r=e.InitialValue,[sf(new rf(fl(r))),zu()]),((t,n)=>function(e,t,n){const r=function(e,t){if(1===e.tag){let t;const n=tu($n(e.fields[0].Value,""));return t=1===n.tag?void 0:n.fields[0],sf(new rf(fl(null==t?ru:ou(t))))}return sf(new rf(fl(hn($l,e.fields[0].Value))))}(t);return e(r.ResidencyStatus),[r,zu()]}(e.OnUpdate,t)));var r;const o=n[0],i=n[1];return d("div",mt(Rn((t=pr(cr((()=>wr($r(wl("Are you an Australian resident for tax purposes or a working holiday maker?")),cr((()=>{let e;return wr($r(d(Tl,(e=Hn((e=>[pl(e[0]),e[1],e[2]]),Un([[new nu(0),"Australian resident for tax purposes",void 0],[new nu(1),"Foreign resident",void 0],[new nu(2,{HomeCountry:void 0}),"Working holiday maker",void 0]])),{InitialValue:pn(pl,o.ResidencyStatus.Value),Name:"ResidencyStatus",OnUpdate:e=>{i(new nf(0,e))},ValueLabelPairs:e}))),cr((()=>{let e;const t=o.ResidencyStatus.Value;let n,r;switch(null!=t&&2===t.tag?(n=0,r=t.fields[0]):n=1,n){case 0:return $r(d("div",mt(Un([["className",en(" ",["mt-4"])],(e=[wl("Your home country where your visa was issued"),af($n(pn((e=>e.Code),r.HomeCountry),""),Xa,(e=>{i(new nf(1,cl(e)))}))],["children",zn.Children.toArray(Array.from(e))])]))));case 1:return $r(null)}})))})))))),["children",zn.Children.toArray(Array.from(t))]))))}class lf extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["SetTfnInformation","SetPreviousSurname","SetResidencyStatus","SetClaimTaxFreeThreshold","SetDebtSupport","SetEmploymentBasis","GetData","ShowAlert","HideAlert","Saved","AppReady"]}}class cf extends Bt{constructor(e,t,n,r,o,i,s,a){super(),this.PreExistingTfnDec=e,this.CurrentAlert=t,this.TfnInformation=n,this.PreviousSurname=r,this.ResidencyStatus=o,this.ClaimTaxFreeThreshold=i,this.DebtSupportCheckboxGroup=s,this.EmploymentBasisRadioButtonGroup=a}}class ff extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Web","ReactNative","WebComponent"]}}function df(){const e=nn(document.URL,["/"],null,0),t=yn("web",e,{Equals:(e,t)=>e===t,GetHashCode:ot}),n=yn("react-native",e,{Equals:(e,t)=>e===t,GetHashCode:ot}),r=[cn(document.querySelector("tax-component")),t,n];let o;switch(o=null==r[0]?r[1]?r[2]?3:1:r[2]?2:3:0,o){case 0:return new Yr(0,new ff(2,r[0]));case 1:return new Yr(0,new ff(0));case 2:return new Yr(0,new ff(1));case 3:return new Yr(1,"Could not determine the embed mode")}}class $f extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["SuccessRedirectionUrl"]}}function pf(e){return Lt(e)}function hf(e,t){let n;switch(e.tag){case 1:return[new cf(t.PreExistingTfnDec,t.CurrentAlert,t.TfnInformation,e.fields[0],t.ResidencyStatus,t.ClaimTaxFreeThreshold,t.DebtSupportCheckboxGroup,t.EmploymentBasisRadioButtonGroup),zu()];case 2:{const r=e.fields[0];return[new cf(t.PreExistingTfnDec,t.CurrentAlert,t.TfnInformation,t.PreviousSurname,r,t.ClaimTaxFreeThreshold,t.DebtSupportCheckboxGroup,t.EmploymentBasisRadioButtonGroup),(n=r.Value,null==n?zu():1===n.tag?qu(new lf(3,new yl(1,new gl(1),!1))):2===n.tag?qu(new lf(3,new yl(1,new gl(1),!0))):qu(new lf(3,new yl(1,new gl(0),!1))))]}case 3:return[new cf(t.PreExistingTfnDec,t.CurrentAlert,t.TfnInformation,t.PreviousSurname,t.ResidencyStatus,xl(e.fields[0],t.ClaimTaxFreeThreshold),t.DebtSupportCheckboxGroup,t.EmploymentBasisRadioButtonGroup),zu()];case 4:return[new cf(t.PreExistingTfnDec,t.CurrentAlert,t.TfnInformation,t.PreviousSurname,t.ResidencyStatus,t.ClaimTaxFreeThreshold,e.fields[0],t.EmploymentBasisRadioButtonGroup),zu()];case 5:{const n=hn(ml,e.fields[0].Value);return[new cf(t.PreExistingTfnDec,t.CurrentAlert,t.TfnInformation,t.PreviousSurname,t.ResidencyStatus,t.ClaimTaxFreeThreshold,t.DebtSupportCheckboxGroup,new ul(n,{Valid:null!=n})),zu()]}case 6:{const n=e.fields[0],r=new cf(n,t.CurrentAlert,t.TfnInformation,t.PreviousSurname,t.ResidencyStatus,t.ClaimTaxFreeThreshold,t.DebtSupportCheckboxGroup,t.EmploymentBasisRadioButtonGroup),o=qu(new lf(7,new Qr(1,"There was an error loading your tax declaration. Please try refreshing this page.")));!function(){let e,t;const n=cn(document.getElementById("external-loading-page-container"));vr((t=document.body,e=e=>t.removeChild(e),t=>{e(t)}),dn(n))}();const i=qu(new lf(10));if(2===n.tag){if(1===n.fields[0].tag)return[r,o];{const e=pn((e=>function(e,t){return oo(0,(()=>{let n;return Zr((n=>Zr((r=>{const o=t.IsTaxFreeThresholdClaimed?new gl(0):new gl(1);return Zr((i=>io(0,function(e){switch(e){case 0:return new Yr(0,new iu(0));case 1:return new Yr(0,new iu(1));case 2:return new Yr(0,new iu(2));case 3:return new Yr(0,new iu(3));case 4:return new Yr(0,new iu(4));default:return new Yr(1,"Invalid EmploymentBasis")}}(t.EmploymentBasis),(s=>new cf(e.PreExistingTfnDec,e.CurrentAlert,cl(n),cl(pn(lu,t.PreviousSurname)),of(r),vl(o),i,cl(s))))),gu(t.HasDebtSupport))}),pu(t.ResidencyStatusV2))),(n=t.TfnInformation,1===n.tag?Kr((e=>new Ol(1,new Ml(1,e))),function(e){switch(e){case 0:return new Yr(0,new au(0));case 1:return new Yr(0,new au(1));case 2:return new Yr(0,new au(2));default:return new Yr(1,"Invalid ExemptionReason")}}(n.fields[0])):new Yr(0,new Ol(0,n.fields[0]))))}))()}(r,e)),n.fields[0].fields[0].Data);if(null==e)return[r,i];{const t=e;return 0===t.tag?[t.fields[0],i]:[r,o]}}}return 3===n.tag?[r,o]:[r,i]}case 7:return[new cf(t.PreExistingTfnDec,e.fields[0],t.TfnInformation,t.PreviousSurname,t.ResidencyStatus,t.ClaimTaxFreeThreshold,t.DebtSupportCheckboxGroup,t.EmploymentBasisRadioButtonGroup),zu()];case 8:return[new cf(t.PreExistingTfnDec,void 0,t.TfnInformation,t.PreviousSurname,t.ResidencyStatus,t.ClaimTaxFreeThreshold,t.DebtSupportCheckboxGroup,t.EmploymentBasisRadioButtonGroup),zu()];case 9:return[new cf(new Wr(2,new Yr(0,e.fields[0])),t.CurrentAlert,t.TfnInformation,t.PreviousSurname,t.ResidencyStatus,t.ClaimTaxFreeThreshold,t.DebtSupportCheckboxGroup,t.EmploymentBasisRadioButtonGroup),zu()];case 10:return function(){const e=df();let t;t=0!==e.tag||0!==e.fields[0].tag&&1!==e.fields[0].tag?1:0,0===t&&window.parent.postMessage({sender:"flare",type:"appReady"},"*",un(An()))}(),[t,zu()];default:return[new cf(t.PreExistingTfnDec,t.CurrentAlert,e.fields[0],t.PreviousSurname,t.ResidencyStatus,t.ClaimTaxFreeThreshold,t.DebtSupportCheckboxGroup,t.EmploymentBasisRadioButtonGroup),zu()]}}class mf extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["YesNoButtonGroupMsg","SetPreviousSurname"]}}class wf extends Bt{constructor(e,t){super(),this.YesNoButtonGroup=e,this.Data=t}}function gf(e){return!Qt(e)}function yf(e){const t=e.YesNoButtonGroup.Selected;return null==t?new wf(e.YesNoButtonGroup,new ul(e.Data.Value,{Valid:!1})):1===t.tag?new wf(e.YesNoButtonGroup,new ul(e.Data.Value,{Valid:!0})):new wf(e.YesNoButtonGroup,new ul(e.Data.Value,{Valid:$n(pn((e=>gf(e.fields[0])),e.Data.Value),!1)}))}function bf(e){let t;const n=al((r=e.InitialValue,[yf(new wf(vl(new gl(null==r?1:0)),new ul(r,{Valid:!1}))),zu()]),((t,n)=>function(e,t,n){const r=function(e,t){let n,r,o;return yf(1===e.tag?(n=e.fields[0],new wf(t.YesNoButtonGroup,new ul(pn((e=>new uu(0,e)),n.Value),{Valid:n.Meta.Valid}))):(r=e.fields[0],r.tag,o=1===r.fields[0].tag?new ul(void 0,t.Data.Meta):t.Data,new wf(xl(r,t.YesNoButtonGroup),o)))}(t,n);return e(r.Data),[r,zu()]}(e.OnUpdate,t,n)));var r;const o=n[0],i=n[1];return d("div",mt(Un([["className",en(" ",Qn)],(t=pr(cr((()=>wr($r(wl("Have you changed your surname since you last dealt with the Australian Tax Office (ATO)?")),cr((()=>wr($r(d(Sl,{Disable:void 0,Dispatch:e=>{i(new mf(0,e))},State:o.YesNoButtonGroup})),cr((()=>{let e;const t=o.YesNoButtonGroup.Selected;let n;switch(n=null!=t&&0===t.tag?0:1,n){case 0:return $r(d("div",mt(Un([["className",en(" ",["mt-4"])],(e=[wl("Enter your previous surname"),d(Nl,{AdditionalInputClasses:An(),AdditionalWrapperClasses:Rn("mt-1"),InitialValue:pn(cu,o.Data.Value),InputType:new Al(1),InvalidFeedback:"Please enter your previous surname",OnUpdate:e=>{i(new mf(1,e))},Validator:gf})],["children",zn.Children.toArray(Array.from(e))])]))));case 1:return $r(null)}}))))))))),["children",zn.Children.toArray(Array.from(t))])])))}const vf=Un(["mt-7","bg-white","px-3","border","border-gray-200","rounded-lg","shadow-sm"]),xf=Un(["group","relative","w-full","px-0.5","py-1","my-3","focus-visible:outline-primary-hover","flex","justify-between","items-center","text-left"]),_f=Un(["text-sm","text-primary-base","leading-3","font-medium"]),Sf=Un(["ml-6","flex","items-center"]),Cf=Un(["-mt-2","pb-4","prose","prose-sm","text-gray-500","text-sm"]);function Ef(e){let t,n,r,o;const i=e.content,s=e.title,a=Or(!0),u=a[0];return d("div",mt(Un([["className",en(" ",vf)],(t=[(n=Rn(d("button",mt(Un([["type","button"],["className",en(" ",xf)],["aria-expanded",u],["onClick",e=>{a[1](!u)}],(r=[d("span",{className:en(" ",_f),children:s}),d("span",mt(Un([["className",en(" ",Sf)],(o=pr(cr((()=>$r(u?Zn:Kn)))),["children",zn.Children.toArray(Array.from(o))])])))],["children",zn.Children.toArray(Array.from(r))])])))),d("h3",{children:zn.Children.toArray(Array.from(n))})),d("div",{className:en(" ",Vn(Cf,pr(cr((()=>u?$r("hidden"):dr()))))),children:zn.Children.toArray([i])})],["children",zn.Children.toArray(Array.from(t))])])))}class Tf extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Select"]}}class kf extends Bt{constructor(e){super(),this.Selected=e}}function If(e,t){return null!=function(e,t){return((t,n)=>{for(;;){const r=t,o=n;if(Tn(o))return;if(e(kn(o)))return r;t=r+1,n=In(o)}})(0,t)}((t=>e===t),t.Selected)}function Af(e,t,n){const r=function(e,t){const n=e.fields[0];return If(n,t)?new kf(function(e,t){const n=Cn(),r=Fn(((t,n)=>{if(e(n)){const e=new _n(n,void 0);return t.tail=e,e}return t}),n,t),o=Cn();return r.tail=o,In(n)}((e=>n!==e),t.Selected)):new kf(Vn(Rn(n),t.Selected))}(t,n);return e(r.Selected),[r,zu()]}function Nf(e){let t;const n=al((r=e.InitialValue,[new kf(r),zu()]),((t,n)=>Af(e.OnUpdate,t,n)));var r;return d("fieldset",mt(Un([["className",en(" ",["space-y-2","mt-2"])],(t=pr(cr((()=>Sr((e=>{let t,r,o;const i=e[0];return $r(d("div",mt(Un([["className",en(" ",["relative","flex","items-start"])],["onChange",e=>{e.target.checked,n[1](new Tf(0,i))}],(t=[d("div",mt(Un([["className",en(" ",["flex","items-center","h-5"])],(r=[d("input",{className:en(" ",["focus:ring-primary-focus","h-4","w-4","text-primary-base","border-gray-300","rounded"]),type:"checkbox",id:i,checked:If(i,n[0])})],["children",zn.Children.toArray(Array.from(r))])]))),d("div",mt(Un([["className",en(" ",["ml-3","text-sm"])],(o=[d("label",{className:en(" ",["font-normal","text-gray-700"]),for:i,children:e[1]})],["children",zn.Children.toArray(Array.from(o))])])))],["children",zn.Children.toArray(Array.from(t))])]))))}),e.ValueLabelPairs)))),["children",zn.Children.toArray(Array.from(t))])])))}function Rf(e,t){return!!(e.TfnInformation.Meta.Valid&&e.PreviousSurname.Meta.Valid&&e.ResidencyStatus.Meta.Valid&&null!=e.ClaimTaxFreeThreshold.Selected&&e.EmploymentBasisRadioButtonGroup.Meta.Valid)&&!ct(t,new Wr(1))}function Mf(){return d("hr",{className:en(" ",["my-8"])})}const Of=d("div",mt(Un([["className",en(" ",["space-y-2"])],(()=>{const e=[d("p",{children:["You are considered to be an Australian resident for tax purposes if you live here permanently, or studying for a period in excess of 6 months."]}),d("p",{children:["Select working holiday maker if you are in Australia on a working holiday visa (subclass 417) or a work and holiday visa (subclass 462). Special rates of tax apply for working holiday makers."]}),d("p",{children:["If none of the above applies, select foreign resident unless you are in receipt of an Australian Government pension or allowance. Foreign resident tax rates are different."]})];return["children",zn.Children.toArray(Array.from(e))]})()]))),Df=d("div",mt(Un([["className",en(" ",["space-y-2"])],(()=>{const e=[d("p",{children:["Answer yes if you are an Australian resident for tax purposes and this is your main job. It will mean that you pay no tax on the first $18,200 of your income. This is called the tax-free threshold."]}),d("p",{children:["Answer yes if you are a foreign resident in receipt of an Australian Government pension or allowance."]}),d("p",{children:["Answer no if none of the above applies or you are a working holiday maker."]})];return["children",zn.Children.toArray(Array.from(e))]})()])));function Pf(e){const t=e.backendUrl,n=e.accessToken,r=al([new cf(new Wr(0),void 0,ll(),cl(void 0),cl(new nu(0)),vl(new gl(0)),An(),cl(new iu(0))),zu()],hf),o=r[0],i=r[1];Ar(qr((()=>Vu(n,t)),(e=>{i(new lf(6,e))})),[]);const s=Or(new Wr(0)),a=s[0],u=qr((()=>function(e,t,n,r){return function(e,t){return Gr.Bind(t,(t=>{const n=function(e,t){return function(e,t,n){if(1===n.tag){t(n.fields[0])}return n}(0,e,t)}(e,t);return Gr.Return(n)}))}((e=>{r(new Qr(1,"There was an error saving your tax declaration. Please try saving again."))}),function(e,t){return Gr.Bind(t,(t=>{const n=function(e,t){return function(e,t,n){if(1===n.tag);else{t(n.fields[0])}return n}(0,e,t)}(e,t);return Gr.Return(n)}))}((e=>{r(new Qr(0,"Your tax declaration has been saved."))}),Hu(e,t,n)))}(o,n,t,(e=>{i(new lf(7,e))}))),(e=>{let t,n;s[1](e),2===e.tag&&0===e.fields[0].tag?(t=0,n=e.fields[0].fields[0]):t=1,0===t&&(zr(Gr.Delay((()=>Gr.Bind(jr(400),(()=>(function(){let e;const t=df();var n;0===t.tag&&(0===t.fields[0].tag?vr((e=>{window.parent.location.href=e}),dn((n=new $f(0),cn(sessionStorage.getItem(pf(n)))))):1===t.fields[0].tag?vr((e=>{let t;t=JSON.stringify({stepStatus:"completed"}),e.postMessage(t)}),dn(window.ReactNativeWebView)):(e=new CustomEvent("step-completion",{bubbles:!0,detail:"tax"}),t.fields[0].fields[0].dispatchEvent(e)))}(),Gr.Zero())))))),i(new lf(9,n)))}));switch(o.PreExistingTfnDec.tag){case 0:case 1:return d("div",{children:["Please wait..."]});default:{const e=pr(cr((()=>{let e,t;return wr((e=o.CurrentAlert,null==e?$r(null):(t=e,$r(d(ro,{alert:t,hideAlert:()=>{i(new lf(8))}})))),cr((()=>wr($r(d("h3",{className:en(" ",["text-3xl","font-bold","text-center","mb-8","sm:mb-12"]),children:"Tax Declaration"})),cr((()=>wr($r(d(Bl,{InitialValue:o.TfnInformation.Value,OnUpdate:e=>{i(new lf(0,e))}})),cr((()=>wr($r(Mf()),cr((()=>wr($r(d(bf,{InitialValue:o.PreviousSurname.Value,OnUpdate:e=>{i(new lf(1,e))}})),cr((()=>wr($r(Mf()),cr((()=>wr($r(d(uf,{InitialValue:o.ResidencyStatus.Value,OnUpdate:e=>{i(new lf(2,e))}})),cr((()=>wr($r(d(Ef,{title:"About residency",content:Of})),cr((()=>wr($r(Mf()),cr((()=>{let e,t;return wr($r(d("div",mt(Un([["className",en(" ",Qn)],(e=[wl("Would you like to claim the tax-free threshold from this employer?"),d(Sl,{Disable:(t=o.ResidencyStatus.Value,null!=t&&2===t.tag?new gl(0):void 0),Dispatch:e=>{i(new lf(3,e))},State:o.ClaimTaxFreeThreshold})],["children",zn.Children.toArray(Array.from(e))])])))),cr((()=>wr($r(d(Ef,{title:"About the tax-free threshold",content:Df})),cr((()=>wr($r(Mf()),cr((()=>wr($r(wl("Do you have any of the following outstanding debts or loans?")),cr((()=>{let e;return wr($r(d(Nf,(e=Hn((e=>[Lt(e[0]),e[1]]),Un([[new Qa(0),"Higher Education Loan Program (HELP)"],[new Qa(1),"VET Student Loan (VSL)"],[new Qa(2),"Financial Supplement (FS)"],[new Qa(3),"Student Start-up Loan (SSL)"],[new Qa(4),"Trade Support Loan (TSL)"]])),{InitialValue:Hn(Lt,o.DebtSupportCheckboxGroup),OnUpdate:e=>{i(new lf(4,function(e,t){const n=Cn(),r=Fn(((t,n)=>{const r=e(n);if(null==r)return t;{const e=new _n(ln(r),void 0);return t.tail=e,e}}),n,t),o=Cn();return r.tail=o,In(n)}(hl,e)))},ValueLabelPairs:e}))),cr((()=>wr($r(Mf()),cr((()=>wr($r(wl("On what basis are you paid?")),cr((()=>{let e;return wr($r(d(Tl,(e=Hn((e=>[Lt(e[0]),e[1],e[2]]),Un([[new iu(0),"Full-time",void 0],[new iu(1),"Part-time",void 0],[new iu(2),"Labour Hire",void 0],[new iu(3),"Superannuation or annuity income stream",void 0],[new iu(4),"Casual",void 0]])),{InitialValue:pn(Lt,o.EmploymentBasisRadioButtonGroup.Value),Name:"EmploymentBasis",OnUpdate:e=>{i(new lf(5,e))},ValueLabelPairs:e}))),cr((()=>wr($r(Mf()),cr((()=>{let e;return $r(d("div",mt(Un([["className",en(" ",["text-center"])],(e=[d("button",{className:en(" ",["w-full","max-w-320","px-10","py-2","border","border-transparent","text-sm","font-medium","rounded-md","shadow-sm","text-white","bg-primary-base","hover:bg-primary-hover","focus:outline-none","focus:ring-2","focus:ring-offset-2","focus:ring-primary-focus","disabled:opacity-25","disabled:cursor-not-allowed"]),type:"button",disabled:!Rf(o,a),onClick:e=>{Rf(o,a)&&u()},children:"Continue"}),d("p",{className:en(" ",["mt-8","sm:mt-20","text-xs","text-gray-500","leading-4","font-normal"]),children:"Workplace onboarding powered by Flare"})],["children",zn.Children.toArray(Array.from(e))])]))))}))))))})))))))))}))))))))))))})))))))))))))))))))))))))))})));return d("form",{children:zn.Children.toArray(Array.from(e))})}}}const Ff=(()=>{try{if("undefined"!=typeof window&&"function"==typeof window.addEventListener){const e={passive:!0};window.addEventListener("testPassiveEventSupport",(e=>{}),e),window.removeEventListener("testPassiveEventSupport",(e=>{}))}}catch(e){}return!1})();function Lf(e){return pn((e=>e.passive&&!Ff?{capture:e.capture,once:e.once,passive:!1}:e),e)}function Gf(e){return hn((e=>e.capture?{capture:!0}:void 0),e)}function Bf(e,t){return 0===t.indexOf(e)?t:void 0}function Uf(e,t){return Xt(t,e)?t:void 0}function Vf(e,t){return function(e){return 1===e?e=>{let t,n,r,o,i,s;return t=Bf("/",e),null!=t?(n=t,"#"+n):(r=Bf("#/",e),null!=r?(o=r,o):(i=Bf("#",e),null!=i?(s=i,"#/"+on(s,1,s.length-1)):"#/"+e))}:e=>{let t,n;return t=Bf("/",e),null!=t?(n=t,n):"/"+e}}(t)(en("/",Hn((e=>e.indexOf("?")>=0||0===e.indexOf("#")||0===e.indexOf("/")?e:encodeURIComponent(e)),e)))}function Hf(e,t){return function(e,t){let n,r;const o=Cn();let i=o,s=t;for(;!Tn(s);){let t=e(kn(s));for(;!Tn(t);)n=i,r=new _n(kn(t),void 0),n.tail=r,i=r,t=In(t);s=In(s)}const a=i,u=Cn();return a.tail=u,In(o)}((e=>{if(Qt(e))return An();{const t=function(e,...t){return 0===t.length?e.trimEnd():e.replace(new RegExp("["+Pt(t.join(""))+"]+$"),"")}(e,"#");if("?"===t)return An();if(null!=Bf("?",t))return Rn(t);{const e=t.split("?");if(vn(((e,t)=>e===t),e,null)||1!==e.length){if(vn(((e,t)=>e===t),e,null)||2!==e.length)return An();if(""===e[1]){const t=e[0];return Rn(decodeURIComponent(t))}{const t=e[0],n=e[1];return Un([decodeURIComponent(t),"?"+n])}}{const t=e[0];return Rn(decodeURIComponent(t))}}}}),Un(nn(null!=Bf("#",e)?on(e,1,e.length-1):1!==t||null==Uf("#",e)&&null==Uf("#/",e)?e:"",["/"],null,0)))}const jf=function(e,t,n,r){const o=zn.memo(e,gt(2,$n(bt(2,n),null)));return vr((t=>{e.displayName=t}),dn(t)),e=>{const t=function(e,t){if(null==e)return t;{const n=e;return t.key=n(t),t}}(r,e);return zn.createElement(o,t)}}((e=>{const t=Mr((t=>{const n=$n(e.onUrlChanged,(e=>{}));!function(e,t,n){t(Hf(2===e?window.location.pathname+window.location.search:window.location.hash,e))}($n(e.hashMode,1),n)}));if(window.navigator.userAgent.indexOf("Trident")>=0||window.navigator.userAgent.indexOf("MSIE")>=0){const e="hashchange",n=e=>{t(e)},r=void 0,o=Rr((()=>Lf(r)),[r]),i=Rr((()=>Gf(r)),[r]),s=Rr((()=>e=>{n(e)}),[n]);kr(Mr((()=>{if(null==o)window.addEventListener(e,s);else{const t=o;window.addEventListener(e,s,t)}return Er((()=>{if(null==i)window.removeEventListener(e,s);else{const t=i;window.removeEventListener(e,s,t)}}))})))}else{const e="popstate",n=t,r=void 0,o=Rr((()=>Lf(r)),[r]),i=Rr((()=>Gf(r)),[r]),s=Rr((()=>e=>{n(e)}),[n]);kr(Mr((()=>{if(null==o)window.addEventListener(e,s);else{const t=o;window.addEventListener(e,s,t)}return Er((()=>{if(null==i)window.removeEventListener(e,s);else{const t=i;window.removeEventListener(e,s,t)}}))})))}const n="CUSTOM_NAVIGATION_EVENT",r=t,o=void 0,i=Rr((()=>Lf(o)),[o]),s=Rr((()=>Gf(o)),[o]),a=Rr((()=>e=>{r(e)}),[r]);kr(Mr((()=>{if(null==i)window.addEventListener(n,a);else{const e=i;window.addEventListener(n,a,e)}return Er((()=>{if(null==s)window.removeEventListener(n,a);else{const e=s;window.removeEventListener(n,a,e)}}))})));const u=e.application;return null==u?null:u}),void 0,void 0,void 0);class zf extends Bt{constructor(e,t){super(),this.CurrentPage=e,this.Auth=t}}class Wf extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["UrlChanged","AuthMsg"]}}class qf extends Bt{constructor(e,t,n){super(),this.model=e,this.render=t,this.equal=n}}class Yf extends h{constructor(e){super(e)}shouldComponentUpdate(e,t){return!this.props.equal(this.props.model,e.model)}render(){return this.props.render()}}class Kf extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Token"]}}class Zf extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["QueryString"]}}class Jf extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Home","OidcSignIn","OidcSignInRedirectCallback","OidcSignInSilentCallback","NotFound"]}}function Xf(e){let t,n,r;switch(Mn(e)?t=0:"oidc"===On(e)?Mn(Dn(e))?t=3:"callback"===On(Dn(e))?Mn(Dn(Dn(e)))?t=3:Mn(Dn(Dn(Dn(e))))?(t=1,n=On(Dn(Dn(e)))):t=3:"silent-refresh"===On(Dn(e))?Mn(Dn(Dn(e)))?t=3:Mn(Dn(Dn(Dn(e))))?(t=2,r=On(Dn(Dn(e)))):t=3:t=3:t=3,t){case 0:{const e=window.location.search,t=new URLSearchParams(e),n=t.get("token");if(null==n)return new Jf(0);{const e=n;return vr((e=>{!function(e,t){sessionStorage.setItem(pf(e),t)}(new $f(0),e)}),dn(t.get("success-redirection-url"))),new Jf(1,new Kf(0,e))}}case 1:return new Jf(2,new Zf(0,n));case 2:return new Jf(3,new Zf(0,r));case 3:return new Jf(4)}}class Qf extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["HasNotStartedYet","InProgress","Resolved"]}}class ed extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Started","Finished"]}}class td extends Bt{constructor(e){super(),this.AccessToken=e}}function nd(e){return new td(e.access_token)}class rd extends Bt{constructor(e){super(),this.Auth=e}}class od extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["GetUser","SignInRedirect","SignInRedirectCallback","SignInSilentCallback"]}}const id=document.querySelector("#tfn-declaration-app"),sd=id.getAttribute("data-identity-url"),ad=id.getAttribute("data-backend-url"),ud=(()=>{const e={};return e.store=un(window.sessionStorage),e})();function ld(){return new UserManager(function(){const e=function(e){return Xt(e,"/")?e:e+"/"}(window.location.origin+window.location.pathname),t={};return t.authority=sd,t.client_id="apollo-tfn-declaration-ui",t.redirect_uri=e+"#/oidc/callback?",t.response_type="id_token token",t.scope="openid profile",t.automaticSilentRenew=!0,t.silent_redirect_uri=un(e+"#/oidc/silent-refresh?"),t.post_logout_redirect_uri=e+"#/oidc/logout?",t.accessTokenExpiringNotificationTime=10,t.filterProtocolClaims=!0,t.loadUserInfo=!1,t.clockSkew=2592e3,t.userStore=new WebStorageStateStore(ud),t}())}function cd(e){return e.length>0?on(e,1):e}function fd(e){return ld().signinRedirect(un({extraQueryParams:{irt:e.fields[0]}}))}function dd(e){return ld().signinRedirectCallback(cd(e.fields[0]))}function $d(e){return ld().signinSilentCallback(cd(e.fields[0]))}function pd(){return ld().getUser()}var hd;!function(e){nl(void 0,e)}(("tfn-declaration-app",hd=el((function(){const e=Xf(Hf(window.location.hash,1)),t=function(){const e=Xf(Hf(window.location.hash,1));return[new rd(new Qf(0)),1===e.tag?qu(new od(1,new ed(0),e.fields[0])):2===e.tag?qu(new od(2,new ed(0),e.fields[0])):3===e.tag?qu(new od(3,new ed(0),e.fields[0])):qu(new od(0,new ed(0)))]}();return[new zf(e,t[0]),Wu((e=>new Wf(1,e)),t[1])]}),(function(e,t){if(1===e.tag){const n=function(e,t){const n=e=>[new rd(new Qf(2,new Yr(1,e))),zu()];return 1===e.tag?1===e.fields[0].tag?1===e.fields[0].fields[0].tag?n(Yt(Wt("SignInRedirect failed: %s"))(e.fields[0].fields[0].fields[0])):[t,zu()]:[new rd(new Qf(1)),(o=fd,i=e.fields[1],s=t=>new od(1,new ed(1,new Yr(1,t.message)),e.fields[1]),Rn((e=>{o(i).catch((t=>{e(s(t))}))})))]:2===e.tag?1===e.fields[0].tag?1===e.fields[0].fields[0].tag?n(Yt(Wt("failed sign in: %s"))(e.fields[0].fields[0].fields[0])):[new rd(new Qf(2,new Yr(0,nd(e.fields[0].fields[0].fields[0])))),(r=e=>{!function(e,t,n){history.pushState(void 0,"",Vf(e,1));const r=document.createEvent("CustomEvent");r.initEvent("CUSTOM_NAVIGATION_EVENT",!0,!0),window.dispatchEvent(r)}(Rn(""))},Rn(r))]:[new rd(new Qf(1)),Yu(dd,e.fields[1],(t=>(window.gtag&&window.gtag("event","oidc_sign_in",{}),new od(2,new ed(1,new Yr(0,t)),e.fields[1]))),(t=>new od(2,new ed(1,new Yr(1,t.message)),e.fields[1])))]:3===e.tag?1===e.fields[0].tag?1===e.fields[0].fields[0].tag?n(Yt(Wt("failed silent sign in: %s"))(e.fields[0].fields[0].fields[0])):null==e.fields[0].fields[0].fields[0]?n("silent refresh expected a user but got none"):[new rd(new Qf(2,new Yr(0,nd(e.fields[0].fields[0].fields[0])))),zu()]:[t,Yu($d,e.fields[1],(t=>new od(3,new ed(1,new Yr(0,t)),e.fields[1])),(t=>new od(3,new ed(1,new Yr(1,t.message)),e.fields[1])))]:1===e.fields[0].tag?1===e.fields[0].fields[0].tag?n(Yt(Wt("failed to get current user: %s"))(e.fields[0].fields[0].fields[0])):null==e.fields[0].fields[0].fields[0]?n("expected a user but got none"):[new rd(new Qf(2,new Yr(0,nd(e.fields[0].fields[0].fields[0])))),zu()]:[new rd(new Qf(1)),Yu(pd,void 0,(e=>new od(0,new ed(1,new Yr(0,e)))),(e=>new od(0,new ed(1,new Yr(1,e.message)))))];var r,o,i,s}(e.fields[0],t.Auth);return[new zf(t.CurrentPage,n[0]),Wu((e=>new Wf(1,e)),n[1])]}return[new zf(Xf(e.fields[0]),t.Auth),zu()]}),((e,t)=>function(e,t,n){let r,o,i;switch(t.CurrentPage.tag){case 1:case 2:case 3:i=ze();break;case 4:i=d("h1",{},"Not found");break;default:{const n=t.Auth.Auth;i=2===n.tag?1===n.fields[0].tag?d("h1",{},"Unauthorised"):d("div",mt(Un([["className",en(" ",["font-inter","max-w-560","mx-auto"])],(r=[d("style",{children:[Wn]}),d(Pf,{accessToken:n.fields[0].fields[0].AccessToken,backendUrl:e})],["children",zn.Children.toArray(Array.from(r))])]))):ze()}}return jf(mt(Un([["onUrlChanged",e=>{n(new Wf(0,e))}],(o=Rn(d("div",{children:zn.Children.toArray([i])})),["application",d(p,{},...o)])])))}(ad,e,t))),function(e,t,n){return tl(((r,o)=>{Ne(e((e=>t=>e===t),function(e){return bt(2,e.view)}(n),r,o),document.getElementById(t))}),n)}(((e,t,n,r)=>function(e,t,n,r){const o=new qf(n,(()=>t(n,r)),e);return d(Yf,o)}(gt(2,e),gt(2,t),n,r)),"tfn-declaration-app",hd)))})()})();