@flarehr/superhero-basic-profile 3.67.55 → 3.68.56
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.
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-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";font-feature-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}[type=text],[type=email],[type=url],[type=password],[type=number],[type=date],[type=datetime-local],[type=month],[type=search],[type=tel],[type=time],[type=week],[multiple],textarea,select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#6b7280;border-width:1px;border-radius:0;padding:.5rem .75rem;font-size:1rem;line-height:1.5rem;--tw-shadow: 0 0 #0000}[type=text]:focus,[type=email]:focus,[type=url]:focus,[type=password]:focus,[type=number]:focus,[type=date]:focus,[type=datetime-local]:focus,[type=month]:focus,[type=search]:focus,[type=tel]:focus,[type=time]:focus,[type=week]:focus,[multiple]:focus,textarea:focus,select:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: #2563eb;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);border-color:#2563eb}input::-moz-placeholder,textarea::-moz-placeholder{color:#6b7280;opacity:1}input::placeholder,textarea::placeholder{color:#6b7280;opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em}::-webkit-datetime-edit,::-webkit-datetime-edit-year-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-meridiem-field{padding-top:0;padding-bottom:0}select{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem;-webkit-print-color-adjust:exact;print-color-adjust:exact}[multiple]{background-image:initial;background-position:initial;background-repeat:unset;background-size:initial;padding-right:.75rem;-webkit-print-color-adjust:unset;print-color-adjust:unset}[type=checkbox],[type=radio]{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;-webkit-print-color-adjust:exact;print-color-adjust:exact;display:inline-block;vertical-align:middle;background-origin:border-box;-webkit-user-select:none;-moz-user-select:none;user-select:none;flex-shrink:0;height:1rem;width:1rem;color:#2563eb;background-color:#fff;border-color:#6b7280;border-width:1px;--tw-shadow: 0 0 #0000}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 2px;--tw-ring-offset-color: #fff;--tw-ring-color: #2563eb;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}[type=checkbox]:checked,[type=radio]:checked{border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:center;background-repeat:no-repeat}[type=checkbox]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e")}[type=radio]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e")}[type=checkbox]:checked:hover,[type=checkbox]:checked:focus,[type=radio]:checked:hover,[type=radio]:checked:focus{border-color:transparent;background-color:currentColor}[type=checkbox]:indeterminate{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3e%3c/svg%3e");border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:center;background-repeat:no-repeat}[type=checkbox]:indeterminate:hover,[type=checkbox]:indeterminate:focus{border-color:transparent;background-color:currentColor}[type=file]{background:unset;border-color:inherit;border-width:0;border-radius:0;padding:0;font-size:unset;line-height:inherit}[type=file]:focus{outline:1px solid ButtonText;outline:1px auto -webkit-focus-ring-color}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::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: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.fixed{position:fixed}.relative{position:relative}.inset-0{top:0px;right:0px;bottom:0px;left:0px}.z-10{z-index:10}.-mx-4{margin-left:-1rem;margin-right:-1rem}.-my-2{margin-top:-.5rem;margin-bottom:-.5rem}.mx-auto{margin-left:auto;margin-right:auto}.-mb-px{margin-bottom:-1px}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-6{margin-bottom:1.5rem}.ml-6{margin-left:1.5rem}.mr-6{margin-right:1.5rem}.mt-10{margin-top:2.5rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.min-h-full{min-height:100%}.w-full{width:100%}.min-w-full{min-width:100%}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-pointer{cursor:pointer}.list-outside{list-style-position:outside}.list-disc{list-style-type:disc}.items-end{align-items:flex-end}.justify-center{justify-content:center}.space-x-8>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(2rem * var(--tw-space-x-reverse));margin-left:calc(2rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.divide-gray-200>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(229 231 235 / var(--tw-divide-opacity))}.divide-gray-300>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(209 213 219 / var(--tw-divide-opacity))}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:.25rem}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-b-2{border-bottom-width:2px}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.border-indigo-500{--tw-border-opacity: 1;border-color:rgb(99 102 241 / var(--tw-border-opacity))}.border-transparent{border-color:transparent}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.bg-gray-500{--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}.bg-indigo-600{--tw-bg-opacity: 1;background-color:rgb(79 70 229 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-opacity-75{--tw-bg-opacity: .75}.p-4{padding:1rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-3\.5{padding-left:.875rem;padding-right:.875rem}.px-4{padding-left:1rem;padding-right:1rem}.px-8{padding-left:2rem;padding-right:2rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-3\.5{padding-top:.875rem;padding-bottom:.875rem}.py-4{padding-top:1rem;padding-bottom:1rem}.pb-4{padding-bottom:1rem}.pl-4{padding-left:1rem}.pr-3{padding-right:.75rem}.pt-5{padding-top:1.25rem}.text-left{text-align:left}.text-center{text-align:center}.align-middle{vertical-align:middle}.text-sm{font-size:.875rem;line-height:1.25rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.text-indigo-600{--tw-text-opacity: 1;color:rgb(79 70 229 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.ring-1{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-inset{--tw-ring-inset: inset}.ring-black{--tw-ring-opacity: 1;--tw-ring-color: rgb(0 0 0 / var(--tw-ring-opacity))}.ring-gray-300{--tw-ring-opacity: 1;--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity))}.ring-opacity-5{--tw-ring-opacity: .05}.hover\:border-gray-300:hover{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.hover\:bg-gray-50:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.hover\:bg-indigo-500:hover{--tw-bg-opacity: 1;background-color:rgb(99 102 241 / var(--tw-bg-opacity))}.hover\:text-gray-700:hover{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.focus-visible\:outline:focus-visible{outline-style:solid}.focus-visible\:outline-2:focus-visible{outline-width:2px}.focus-visible\:outline-offset-2:focus-visible{outline-offset:2px}.focus-visible\:outline-indigo-600:focus-visible{outline-color:#4f46e5}@media (min-width: 640px){.sm\:col-start-1{grid-column-start:1}.sm\:col-start-2{grid-column-start:2}.sm\:-mx-6{margin-left:-1.5rem;margin-right:-1.5rem}.sm\:my-8{margin-top:2rem;margin-bottom:2rem}.sm\:mt-0{margin-top:0}.sm\:mt-5{margin-top:1.25rem}.sm\:mt-6{margin-top:1.5rem}.sm\:grid{display:grid}.sm\:w-full{width:100%}.sm\:max-w-lg{max-width:32rem}.sm\:grid-flow-row-dense{grid-auto-flow:row dense}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:items-center{align-items:center}.sm\:gap-3{gap:.75rem}.sm\:rounded-lg{border-radius:.5rem}.sm\:p-0{padding:0}.sm\:p-6{padding:1.5rem}.sm\:px-6{padding-left:1.5rem;padding-right:1.5rem}.sm\:pl-6{padding-left:1.5rem}}@media (min-width: 1024px){.lg\:-mx-8{margin-left:-2rem;margin-right:-2rem}.lg\:px-8{padding-left:2rem;padding-right:2rem}}
|
package/dist/index.html
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
<!-- This index is for local development -->
|
|
2
|
-
<!DOCTYPE html>
|
|
3
|
-
<html>
|
|
4
|
-
<head>
|
|
5
|
-
<title>Super Hero Apps</title>
|
|
6
|
-
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
7
|
-
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
8
|
-
<script type="module" crossorigin src="/superhero-basic-profile.js"></script>
|
|
9
|
-
<link rel="stylesheet" href="/assets/index.42edcbf8.css">
|
|
10
|
-
</head>
|
|
11
|
-
<body>
|
|
12
|
-
<div>
|
|
13
|
-
<superhero-profile-directory-app
|
|
14
|
-
access-token="TOKEN_IGNORED_FOR_DEV"
|
|
15
|
-
backend-url="http://localhost:7071"
|
|
16
|
-
partner-id="123"
|
|
17
|
-
account-id="74C6D04D-95D7-4D4B-84CB-12630C57751F">
|
|
18
|
-
</superhero-profile-directory-app>
|
|
19
|
-
|
|
20
|
-
</body>
|
|
21
|
-
</html>
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerpolicy&&(i.referrerPolicy=o.referrerpolicy),o.crossorigin==="use-credentials"?i.credentials="include":o.crossorigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();var ur,A,vl,Wt,Li,xl,Mo,El,Tr={},Cl=[],Tc=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function At(e,t){for(var n in t)e[n]=t[n];return e}function Sl(e){var t=e.parentNode;t&&t.removeChild(e)}function h(e,t,n){var r,o,i,s={};for(i in t)i=="key"?r=t[i]:i=="ref"?o=t[i]:s[i]=t[i];if(arguments.length>2&&(s.children=arguments.length>3?ur.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)s[i]===void 0&&(s[i]=e.defaultProps[i]);return Jn(e,s,r,o,null)}function Jn(e,t,n,r,o){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:o==null?++vl:o};return o==null&&A.vnode!=null&&A.vnode(i),i}function Rc(){return{current:null}}function Le(e){return e.children}function lt(e,t){this.props=e,this.context=t}function Yn(e,t){if(t==null)return e.__?Yn(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?Yn(e):null}function Dl(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return Dl(e)}}function To(e){(!e.__d&&(e.__d=!0)&&Wt.push(e)&&!Rr.__r++||Li!==A.debounceRendering)&&((Li=A.debounceRendering)||xl)(Rr)}function Rr(){var e,t,n,r,o,i,s,l;for(Wt.sort(Mo);e=Wt.shift();)e.__d&&(t=Wt.length,r=void 0,o=void 0,s=(i=(n=e).__v).__e,(l=n.__P)&&(r=[],(o=At({},i)).__v=i.__v+1,ei(l,i,o,n.__n,l.ownerSVGElement!==void 0,i.__h!=null?[s]:null,r,s==null?Yn(i):s,i.__h),Tl(r,i),i.__e!=s&&Dl(i)),Wt.length>t&&Wt.sort(Mo));Rr.__r=0}function Il(e,t,n,r,o,i,s,l,u,c){var a,d,f,p,g,_,w,b=r&&r.__k||Cl,F=b.length;for(n.__k=[],a=0;a<t.length;a++)if((p=n.__k[a]=(p=t[a])==null||typeof p=="boolean"||typeof p=="function"?null:typeof p=="string"||typeof p=="number"||typeof p=="bigint"?Jn(null,p,null,null,p):Array.isArray(p)?Jn(Le,{children:p},null,null,null):p.__b>0?Jn(p.type,p.props,p.key,p.ref?p.ref:null,p.__v):p)!=null){if(p.__=n,p.__b=n.__b+1,(f=b[a])===null||f&&p.key==f.key&&p.type===f.type)b[a]=void 0;else for(d=0;d<F;d++){if((f=b[d])&&p.key==f.key&&p.type===f.type){b[d]=void 0;break}f=null}ei(e,p,f=f||Tr,o,i,s,l,u,c),g=p.__e,(d=p.ref)&&f.ref!=d&&(w||(w=[]),f.ref&&w.push(f.ref,null,p),w.push(d,p.__c||g,p)),g!=null?(_==null&&(_=g),typeof p.type=="function"&&p.__k===f.__k?p.__d=u=Fl(p,u,e):u=kl(e,p,f,b,g,u),typeof n.type=="function"&&(n.__d=u)):u&&f.__e==u&&u.parentNode!=e&&(u=Yn(f))}for(n.__e=_,a=F;a--;)b[a]!=null&&(typeof n.type=="function"&&b[a].__e!=null&&b[a].__e==n.__d&&(n.__d=Ml(r).nextSibling),Nl(b[a],b[a]));if(w)for(a=0;a<w.length;a++)Rl(w[a],w[++a],w[++a])}function Fl(e,t,n){for(var r,o=e.__k,i=0;o&&i<o.length;i++)(r=o[i])&&(r.__=e,t=typeof r.type=="function"?Fl(r,t,n):kl(n,r,r,o,r.__e,t));return t}function Ct(e,t){return t=t||[],e==null||typeof e=="boolean"||(Array.isArray(e)?e.some(function(n){Ct(n,t)}):t.push(e)),t}function kl(e,t,n,r,o,i){var s,l,u;if(t.__d!==void 0)s=t.__d,t.__d=void 0;else if(n==null||o!=i||o.parentNode==null)e:if(i==null||i.parentNode!==e)e.appendChild(o),s=null;else{for(l=i,u=0;(l=l.nextSibling)&&u<r.length;u+=1)if(l==o)break e;e.insertBefore(o,i),s=i}return s!==void 0?s:o.nextSibling}function Ml(e){var t,n,r;if(e.type==null||typeof e.type=="string")return e.__e;if(e.__k){for(t=e.__k.length-1;t>=0;t--)if((n=e.__k[t])&&(r=Ml(n)))return r}return null}function Nc(e,t,n,r,o){var i;for(i in n)i==="children"||i==="key"||i in t||Nr(e,i,null,n[i],r);for(i in t)o&&typeof t[i]!="function"||i==="children"||i==="key"||i==="value"||i==="checked"||n[i]===t[i]||Nr(e,i,t[i],n[i],r)}function zi(e,t,n){t[0]==="-"?e.setProperty(t,n==null?"":n):e[t]=n==null?"":typeof n!="number"||Tc.test(t)?n:n+"px"}function Nr(e,t,n,r,o){var i;e:if(t==="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||zi(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||zi(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")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?Gi:Wi,i):e.removeEventListener(t,i?Gi:Wi,i);else if(t!=="dangerouslySetInnerHTML"){if(o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!=="width"&&t!=="height"&&t!=="href"&&t!=="list"&&t!=="form"&&t!=="tabIndex"&&t!=="download"&&t in e)try{e[t]=n==null?"":n;break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!=="-"?e.removeAttribute(t):e.setAttribute(t,n))}}function Wi(e){return this.l[e.type+!1](A.event?A.event(e):e)}function Gi(e){return this.l[e.type+!0](A.event?A.event(e):e)}function ei(e,t,n,r,o,i,s,l,u){var c,a,d,f,p,g,_,w,b,F,ne,ie,Q,O,ae,P=t.type;if(t.constructor!==void 0)return null;n.__h!=null&&(u=n.__h,l=t.__e=n.__e,t.__h=null,i=[l]),(c=A.__b)&&c(t);try{e:if(typeof P=="function"){if(w=t.props,b=(c=P.contextType)&&r[c.__c],F=c?b?b.props.value:c.__:r,n.__c?_=(a=t.__c=n.__c).__=a.__E:("prototype"in P&&P.prototype.render?t.__c=a=new P(w,F):(t.__c=a=new lt(w,F),a.constructor=P,a.render=Bc),b&&b.sub(a),a.props=w,a.state||(a.state={}),a.context=F,a.__n=r,d=a.__d=!0,a.__h=[],a._sb=[]),a.__s==null&&(a.__s=a.state),P.getDerivedStateFromProps!=null&&(a.__s==a.state&&(a.__s=At({},a.__s)),At(a.__s,P.getDerivedStateFromProps(w,a.__s))),f=a.props,p=a.state,a.__v=t,d)P.getDerivedStateFromProps==null&&a.componentWillMount!=null&&a.componentWillMount(),a.componentDidMount!=null&&a.__h.push(a.componentDidMount);else{if(P.getDerivedStateFromProps==null&&w!==f&&a.componentWillReceiveProps!=null&&a.componentWillReceiveProps(w,F),!a.__e&&a.shouldComponentUpdate!=null&&a.shouldComponentUpdate(w,a.__s,F)===!1||t.__v===n.__v){for(t.__v!==n.__v&&(a.props=w,a.state=a.__s,a.__d=!1),a.__e=!1,t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(ce){ce&&(ce.__=t)}),ne=0;ne<a._sb.length;ne++)a.__h.push(a._sb[ne]);a._sb=[],a.__h.length&&s.push(a);break e}a.componentWillUpdate!=null&&a.componentWillUpdate(w,a.__s,F),a.componentDidUpdate!=null&&a.__h.push(function(){a.componentDidUpdate(f,p,g)})}if(a.context=F,a.props=w,a.__P=e,ie=A.__r,Q=0,"prototype"in P&&P.prototype.render){for(a.state=a.__s,a.__d=!1,ie&&ie(t),c=a.render(a.props,a.state,a.context),O=0;O<a._sb.length;O++)a.__h.push(a._sb[O]);a._sb=[]}else do a.__d=!1,ie&&ie(t),c=a.render(a.props,a.state,a.context),a.state=a.__s;while(a.__d&&++Q<25);a.state=a.__s,a.getChildContext!=null&&(r=At(At({},r),a.getChildContext())),d||a.getSnapshotBeforeUpdate==null||(g=a.getSnapshotBeforeUpdate(f,p)),ae=c!=null&&c.type===Le&&c.key==null?c.props.children:c,Il(e,Array.isArray(ae)?ae:[ae],t,n,r,o,i,s,l,u),a.base=t.__e,t.__h=null,a.__h.length&&s.push(a),_&&(a.__E=a.__=null),a.__e=!1}else i==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=Oc(n.__e,t,n,r,o,i,s,u);(c=A.diffed)&&c(t)}catch(ce){t.__v=null,(u||i!=null)&&(t.__e=l,t.__h=!!u,i[i.indexOf(l)]=null),A.__e(ce,t,n)}}function Tl(e,t){A.__c&&A.__c(t,e),e.some(function(n){try{e=n.__h,n.__h=[],e.some(function(r){r.call(n)})}catch(r){A.__e(r,n.__v)}})}function Oc(e,t,n,r,o,i,s,l){var u,c,a,d=n.props,f=t.props,p=t.type,g=0;if(p==="svg"&&(o=!0),i!=null){for(;g<i.length;g++)if((u=i[g])&&"setAttribute"in u==!!p&&(p?u.localName===p:u.nodeType===3)){e=u,i[g]=null;break}}if(e==null){if(p===null)return document.createTextNode(f);e=o?document.createElementNS("http://www.w3.org/2000/svg",p):document.createElement(p,f.is&&f),i=null,l=!1}if(p===null)d===f||l&&e.data===f||(e.data=f);else{if(i=i&&ur.call(e.childNodes),c=(d=n.props||Tr).dangerouslySetInnerHTML,a=f.dangerouslySetInnerHTML,!l){if(i!=null)for(d={},g=0;g<e.attributes.length;g++)d[e.attributes[g].name]=e.attributes[g].value;(a||c)&&(a&&(c&&a.__html==c.__html||a.__html===e.innerHTML)||(e.innerHTML=a&&a.__html||""))}if(Nc(e,f,d,o,l),a)t.__k=[];else if(g=t.props.children,Il(e,Array.isArray(g)?g:[g],t,n,r,o&&p!=="foreignObject",i,s,i?i[0]:n.__k&&Yn(n,0),l),i!=null)for(g=i.length;g--;)i[g]!=null&&Sl(i[g]);l||("value"in f&&(g=f.value)!==void 0&&(g!==e.value||p==="progress"&&!g||p==="option"&&g!==d.value)&&Nr(e,"value",g,d.value,!1),"checked"in f&&(g=f.checked)!==void 0&&g!==e.checked&&Nr(e,"checked",g,d.checked,!1))}return e}function Rl(e,t,n){try{typeof e=="function"?e(t):e.current=t}catch(r){A.__e(r,n)}}function Nl(e,t,n){var r,o;if(A.unmount&&A.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||Rl(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(i){A.__e(i,t)}r.base=r.__P=null,e.__c=void 0}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&Nl(r[o],t,n||typeof e.type!="function");n||e.__e==null||Sl(e.__e),e.__=e.__e=e.__d=void 0}function Bc(e,t,n){return this.constructor(e,n)}function Nt(e,t,n){var r,o,i;A.__&&A.__(e,t),o=(r=typeof n=="function")?null:n&&n.__k||t.__k,i=[],ei(t,e=(!r&&n||t).__k=h(Le,null,[e]),o||Tr,Tr,t.ownerSVGElement!==void 0,!r&&n?[n]:o?null:t.firstChild?ur.call(t.childNodes):null,i,!r&&n?n:o?o.__e:t.firstChild,r),Tl(i,e)}function ti(e,t){Nt(e,t,ti)}function ni(e,t,n){var r,o,i,s=At({},e.props);for(i in t)i=="key"?r=t[i]:i=="ref"?o=t[i]:s[i]=t[i];return arguments.length>2&&(s.children=arguments.length>3?ur.call(arguments,2):n),Jn(e.type,s,r||e.key,o||e.ref,null)}function Pc(e,t){var n={__c:t="__cC"+El++,__:e,Consumer:function(r,o){return r.children(o)},Provider:function(r){var o,i;return this.getChildContext||(o=[],(i={})[t]=this,this.getChildContext=function(){return i},this.shouldComponentUpdate=function(s){this.props.value!==s.value&&o.some(function(l){l.__e=!0,To(l)})},this.sub=function(s){o.push(s);var l=s.componentWillUnmount;s.componentWillUnmount=function(){o.splice(o.indexOf(s),1),l&&l.call(s)}}),r.children}};return n.Provider.__=n.Consumer.contextType=n}ur=Cl.slice,A={__e:function(e,t,n,r){for(var o,i,s;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&i.getDerivedStateFromError!=null&&(o.setState(i.getDerivedStateFromError(e)),s=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,r||{}),s=o.__d),s)return o.__E=o}catch(l){e=l}throw e}},vl=0,lt.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=At({},this.state),typeof e=="function"&&(e=e(At({},n),this.props)),e&&At(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),To(this))},lt.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),To(this))},lt.prototype.render=Le,Wt=[],xl=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Mo=function(e,t){return e.__v.__b-t.__v.__b},Rr.__r=0,El=0;var tn,z,_o,Qi,_n=0,Ol=[],Sr=[],Zi=A.__b,Ki=A.__r,Ji=A.diffed,$i=A.__c,Xi=A.unmount;function In(e,t){A.__h&&A.__h(z,e,_n||t),_n=0;var n=z.__H||(z.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:Sr}),n.__[e]}function Bl(e){return _n=1,ri(Hl,e)}function ri(e,t,n){var r=In(tn++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Hl(void 0,t),function(l){var u=r.__N?r.__N[0]:r.__[0],c=r.t(u,l);u!==c&&(r.__N=[c,r.__[1]],r.__c.setState({}))}],r.__c=z,!z.u)){var o=function(l,u,c){if(!r.__c.__H)return!0;var a=r.__c.__H.__.filter(function(f){return f.__c});if(a.every(function(f){return!f.__N}))return!i||i.call(this,l,u,c);var d=!1;return a.forEach(function(f){if(f.__N){var p=f.__[0];f.__=f.__N,f.__N=void 0,p!==f.__[0]&&(d=!0)}}),!(!d&&r.__c.props===l)&&(!i||i.call(this,l,u,c))};z.u=!0;var i=z.shouldComponentUpdate,s=z.componentWillUpdate;z.componentWillUpdate=function(l,u,c){if(this.__e){var a=i;i=void 0,o(l,u,c),i=a}s&&s.call(this,l,u,c)},z.shouldComponentUpdate=o}return r.__N||r.__}function gn(e,t){var n=In(tn++,3);!A.__s&&oi(n.__H,t)&&(n.__=e,n.i=t,z.__H.__h.push(n))}function $r(e,t){var n=In(tn++,4);!A.__s&&oi(n.__H,t)&&(n.__=e,n.i=t,z.__h.push(n))}function Gn(e){return _n=5,yt(function(){return{current:e}},[])}function Pl(e,t,n){_n=6,$r(function(){return typeof e=="function"?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},n==null?n:n.concat(e))}function yt(e,t){var n=In(tn++,7);return oi(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function De(e,t){return _n=8,yt(function(){return e},t)}function Hc(e){var t=z.context[e.__c],n=In(tn++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(z)),t.props.value):e.__}function jc(e,t){A.useDebugValue&&A.useDebugValue(t?t(e):e)}function Vc(){var e=In(tn++,11);if(!e.__){for(var t=z.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function Uc(){for(var e;e=Ol.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Dr),e.__H.__h.forEach(Ro),e.__H.__h=[]}catch(t){e.__H.__h=[],A.__e(t,e.__v)}}A.__b=function(e){z=null,Zi&&Zi(e)},A.__r=function(e){Ki&&Ki(e),tn=0;var t=(z=e.__c).__H;t&&(_o===z?(t.__h=[],z.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=Sr,n.__N=n.i=void 0})):(t.__h.forEach(Dr),t.__h.forEach(Ro),t.__h=[])),_o=z},A.diffed=function(e){Ji&&Ji(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Ol.push(t)!==1&&Qi===A.requestAnimationFrame||((Qi=A.requestAnimationFrame)||Lc)(Uc)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==Sr&&(n.__=n.__V),n.i=void 0,n.__V=Sr})),_o=z=null},A.__c=function(e,t){t.some(function(n){try{n.__h.forEach(Dr),n.__h=n.__h.filter(function(r){return!r.__||Ro(r)})}catch(r){t.some(function(o){o.__h&&(o.__h=[])}),t=[],A.__e(r,n.__v)}}),$i&&$i(e,t)},A.unmount=function(e){Xi&&Xi(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{Dr(r)}catch(o){t=o}}),n.__H=void 0,t&&A.__e(t,n.__v))};var qi=typeof requestAnimationFrame=="function";function Lc(e){var t,n=function(){clearTimeout(r),qi&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);qi&&(t=requestAnimationFrame(n))}function Dr(e){var t=z,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),z=t}function Ro(e){var t=z;e.__c=e.__(),z=t}function oi(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function Hl(e,t){return typeof t=="function"?t(e):t}function jl(e,t){for(var n in t)e[n]=t[n];return e}function No(e,t){for(var n in e)if(n!=="__source"&&!(n in t))return!0;for(var r in t)if(r!=="__source"&&e[r]!==t[r])return!0;return!1}function yo(e,t){return e===t&&(e!==0||1/e==1/t)||e!=e&&t!=t}function Oo(e){this.props=e}function zc(e,t){function n(o){var i=this.props.ref,s=i==o.ref;return!s&&i&&(i.call?i(null):i.current=null),t?!t(this.props,o)||!s:No(this.props,o)}function r(o){return this.shouldComponentUpdate=n,h(e,o)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(Oo.prototype=new lt).isPureReactComponent=!0,Oo.prototype.shouldComponentUpdate=function(e,t){return No(this.props,e)||No(this.state,t)};var Yi=A.__b;A.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Yi&&Yi(e)};var Wc=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Vl(e){function t(n){var r=jl({},n);return delete r.ref,e(r,n.ref||null)}return t.$$typeof=Wc,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var es=function(e,t){return e==null?null:Ct(Ct(e).map(t))},Gc={map:es,forEach:es,count:function(e){return e?Ct(e).length:0},only:function(e){var t=Ct(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:Ct},Qc=A.__e;A.__e=function(e,t,n,r){if(e.then){for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t)}Qc(e,t,n,r)};var ts=A.unmount;function Ul(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c()}),e.__c.__H=null),(e=jl({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return Ul(r,t,n)})),e}function Ll(e,t,n){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return Ll(r,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=n)),e}function Ir(){this.__u=0,this.t=null,this.__b=null}function zl(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Zc(e){var t,n,r;function o(i){if(t||(t=e()).then(function(s){n=s.default||s},function(s){r=s}),r)throw r;if(!n)throw t;return h(n,i)}return o.displayName="Lazy",o.__f=!0,o}function Qn(){this.u=null,this.o=null}A.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&e.__h===!0&&(e.type=null),ts&&ts(e)},(Ir.prototype=new lt).__c=function(e,t){var n=t.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var o=zl(r.__v),i=!1,s=function(){i||(i=!0,n.__R=null,o?o(l):l())};n.__R=s;var l=function(){if(!--r.__u){if(r.state.__a){var c=r.state.__a;r.__v.__k[0]=Ll(c,c.__c.__P,c.__c.__O)}var a;for(r.setState({__a:r.__b=null});a=r.t.pop();)a.forceUpdate()}},u=t.__h===!0;r.__u++||u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(s,s)},Ir.prototype.componentWillUnmount=function(){this.t=[]},Ir.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]=Ul(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&h(Le,null,e.fallback);return o&&(o.__h=null),[h(Le,null,t.__a?null:e.children),o]};var ns=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function Kc(e){return this.getChildContext=function(){return e.context},e.children}function Jc(e){var t=this,n=e.i;t.componentWillUnmount=function(){Nt(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(r){this.childNodes.push(r),t.i.appendChild(r)},insertBefore:function(r,o){this.childNodes.push(r),t.i.appendChild(r)},removeChild:function(r){this.childNodes.splice(this.childNodes.indexOf(r)>>>1,1),t.i.removeChild(r)}}),Nt(h(Kc,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}function $c(e,t){var n=h(Jc,{__v:e,i:t});return n.containerInfo=t,n}(Qn.prototype=new lt).__a=function(e){var t=this,n=zl(t.__v),r=t.o.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),ns(t,e,r)):o()};n?n(i):i()}},Qn.prototype.render=function(e){this.u=null,this.o=new Map;var t=Ct(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},Qn.prototype.componentDidUpdate=Qn.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){ns(e,n,t)})};var Wl=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Xc=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,qc=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Yc=/[A-Z0-9]/g,eu=typeof document<"u",tu=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function nu(e,t,n){return t.__k==null&&(t.textContent=""),Nt(e,t),typeof n=="function"&&n(),e?e.__c:null}function ru(e,t,n){return ti(e,t),typeof n=="function"&&n(),e?e.__c:null}lt.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(lt.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var rs=A.event;function ou(){}function iu(){return this.cancelBubble}function su(){return this.defaultPrevented}A.event=function(e){return rs&&(e=rs(e)),e.persist=ou,e.isPropagationStopped=iu,e.isDefaultPrevented=su,e.nativeEvent=e};var ii,lu={enumerable:!1,configurable:!0,get:function(){return this.class}},os=A.vnode;A.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,r=t.type,o={};for(var i in n){var s=n[i];if(!(i==="value"&&"defaultValue"in n&&s==null||eu&&i==="children"&&r==="noscript"||i==="class"||i==="className")){var l=i.toLowerCase();i==="defaultValue"&&"value"in n&&n.value==null?i="value":i==="download"&&s===!0?s="":l==="ondoubleclick"?i="ondblclick":l!=="onchange"||r!=="input"&&r!=="textarea"||tu(n.type)?l==="onfocus"?i="onfocusin":l==="onblur"?i="onfocusout":qc.test(i)?i=l:r.indexOf("-")===-1&&Xc.test(i)?i=i.replace(Yc,"-$&").toLowerCase():s===null&&(s=void 0):l=i="oninput",l==="oninput"&&o[i=l]&&(i="oninputCapture"),o[i]=s}}r=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=Ct(n.children).forEach(function(u){u.props.selected=o.value.indexOf(u.props.value)!=-1})),r=="select"&&o.defaultValue!=null&&(o.value=Ct(n.children).forEach(function(u){u.props.selected=o.multiple?o.defaultValue.indexOf(u.props.value)!=-1:o.defaultValue==u.props.value})),n.class&&!n.className?(o.class=n.class,Object.defineProperty(o,"className",lu)):(n.className&&!n.class||n.class&&n.className)&&(o.class=o.className=n.className),t.props=o}(e),e.$$typeof=Wl,os&&os(e)};var is=A.__r;A.__r=function(e){is&&is(e),ii=e.__c};var ss=A.diffed;A.diffed=function(e){ss&&ss(e);var t=e.props,n=e.__e;n!=null&&e.type==="textarea"&&"value"in t&&t.value!==n.value&&(n.value=t.value==null?"":t.value),ii=null};var au={ReactCurrentDispatcher:{current:{readContext:function(e){return ii.__n[e.__c].props.value}}}};function cu(e){return h.bind(null,e)}function Gl(e){return!!e&&e.$$typeof===Wl}function uu(e){return Gl(e)?ni.apply(null,arguments):e}function fu(e){return!!e.__k&&(Nt(null,e),!0)}function du(e){return e&&(e.base||e.nodeType===1&&e)||null}var pu=function(e,t){return e(t)},hu=function(e,t){return e(t)},mu=Le;function Ql(e){e()}function gu(e){return e}function wu(){return[!1,Ql]}var _u=$r;function yu(e,t){var n=t(),r=Bl({h:{__:n,v:t}}),o=r[0].h,i=r[1];return $r(function(){o.__=n,o.v=t,yo(o.__,t())||i({h:o})},[e,n,t]),gn(function(){return yo(o.__,o.v())||i({h:o}),e(function(){yo(o.__,o.v())||i({h:o})})},[e]),n}var Zl={useState:Bl,useId:Vc,useReducer:ri,useEffect:gn,useLayoutEffect:$r,useInsertionEffect:_u,useTransition:wu,useDeferredValue:gu,useSyncExternalStore:yu,startTransition:Ql,useRef:Gn,useImperativeHandle:Pl,useMemo:yt,useCallback:De,useContext:Hc,useDebugValue:jc,version:"17.0.2",Children:Gc,render:nu,hydrate:ru,unmountComponentAtNode:fu,createPortal:$c,createElement:h,createContext:Pc,createFactory:cu,cloneElement:uu,createRef:Rc,Fragment:Le,isValidElement:Gl,findDOMNode:du,Component:lt,PureComponent:Oo,memo:zc,forwardRef:Vl,flushSync:hu,unstable_batchedUpdates:pu,StrictMode:mu,Suspense:Ir,SuspenseList:Qn,lazy:Zc,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:au};class yn{constructor(t){this.value=t}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return St(this.value)}Equals(t){return t==null?!1:et(this.value,t instanceof yn?t.value:t)}CompareTo(t){return t==null?1:dt(this.value,t instanceof yn?t.value:t)}}function $(e){if(e==null)throw new Error("Option has no value");return e instanceof yn?e.value:e}function ut(e){return Array.isArray(e)||ArrayBuffer.isView(e)}function bu(e){return e!=null&&typeof e.GetEnumerator=="function"}function Au(e){return e!=null&&typeof e.CompareTo=="function"}function vu(e){return e!=null&&typeof e.Equals=="function"}function Kl(e){return e!=null&&typeof e.GetHashCode=="function"}function Jl(e){return e!=null&&typeof e.Dispose=="function"}function J(e){Jl(e)&&e.Dispose()}function ft(){return null}function Or(e,t){var n,r;return((n=Object.getPrototypeOf(e))===null||n===void 0?void 0:n.constructor)===((r=Object.getPrototypeOf(t))===null||r===void 0?void 0:r.constructor)}class xu{constructor(t){this.iter=t,this.current=ft()}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current}"System.Collections.IEnumerator.get_Current"(){return this.current}"System.Collections.IEnumerator.MoveNext"(){const t=this.iter.next();return this.current=t.value,!t.done}"System.Collections.IEnumerator.Reset"(){throw new Error("JS iterators cannot be reset")}Dispose(){}}function Ce(e){return bu(e)?e.GetEnumerator():new xu(e[Symbol.iterator]())}function Xr(e){return{[Symbol.iterator](){return this},next(){const t=e["System.Collections.IEnumerator.MoveNext"](),n=t?e["System.Collections.Generic.IEnumerator`1.get_Current"]():void 0;return{done:!t,value:n}}}}function it(e,t){let n=e.toString(10);for(;n.length<t;)n="0"+n;return n}function ls(e){const t=e;return typeof t.offset=="number"?t.offset:e.kind===1?0:e.getTimezoneOffset()*-6e4}function Eu(e,t){return e=e<0&&t!=null&&t!==10?65535+e+1:e,e.toString(t)}function Rt(e,t){return e=e<0&&t!=null&&t!==10?4294967295+e+1:e,e.toString(t)}class vt{static id(t){return vt.idMap.has(t)||vt.idMap.set(t,++vt.count),vt.idMap.get(t)}}vt.idMap=new WeakMap;vt.count=0;function si(e){let t=0,n=5381;const r=e.length;for(;t<r;)n=n*33^e.charCodeAt(t++);return n}function Xe(e){return e*2654435761|0}function Fn(e){return e.length===0?0:e.reduce((t,n)=>(t<<5)+t^n)}function Cu(e){if(e==null)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return Xe(e);case"string":return si(e);default:return Xe(vt.id(e))}}function Su(e){return Kl(e)?e.GetHashCode():Cu(e)}function Du(e){return e.getTime()}function Iu(e){const t=e.length,n=new Array(t);for(let r=0;r<t;r++)n[r]=St(e[r]);return Fn(n)}function St(e){var t;if(e==null)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return Xe(e);case"string":return si(e);default:{if(Kl(e))return e.GetHashCode();if(ut(e))return Iu(e);if(e instanceof Date)return Du(e);if(((t=Object.getPrototypeOf(e))===null||t===void 0?void 0:t.constructor)===Object){const n=Object.values(e).map(r=>St(r));return Fn(n)}else return Xe(vt.id(e))}}}function Fu(e){return Su(e)}function Bo(e,t,n){if(e==null)return t==null;if(t==null||e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!n(e[r],t[r]))return!1;return!0}function $l(e,t){return Bo(e,t,et)}function ku(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]||!et(e[n[o]],t[r[o]]))return!1;return!0}function et(e,t){var n;return e===t?!0:e==null?t==null:t==null?!1:vu(e)?e.Equals(t):ut(e)?ut(t)&&$l(e,t):typeof e!="object"?!1:e instanceof Date?t instanceof Date&&Xl(e,t)===0:((n=Object.getPrototypeOf(e))===null||n===void 0?void 0:n.constructor)===Object&&ku(e,t)}function Xl(e,t){let n,r;return"offset"in e&&"offset"in t?(n=e.getTime(),r=t.getTime()):(n=e.getTime()+ls(e),r=t.getTime()+ls(t)),n===r?0:n<r?-1:1}function bn(e,t){return e===t?0:e<t?-1:1}function Mu(e,t,n){if(e==null)return t==null?0:1;if(t==null)return-1;if(e.length!==t.length)return e.length<t.length?-1:1;for(let r=0,o=0;r<e.length;r++)if(o=n(e[r],t[r]),o!==0)return o;return 0}function ql(e,t){return Mu(e,t,dt)}function Tu(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return n.length<r.length?-1:1;n.sort(),r.sort();for(let o=0,i=0;o<n.length;o++){const s=n[o];if(s!==r[o])return s<r[o]?-1:1;if(i=dt(e[s],t[s]),i!==0)return i}return 0}function dt(e,t){var n;return e===t?0:e==null?t==null?0:-1:t==null?1:Au(e)?e.CompareTo(t):ut(e)?ut(t)?ql(e,t):-1:typeof e!="object"?e<t?-1:1:e instanceof Date?t instanceof Date?Xl(e,t):-1:((n=Object.getPrototypeOf(e))===null||n===void 0?void 0:n.constructor)===Object?Tu(e,t):-1}function Po(e,t,n){return e(t,n)>0?t:n}function L(e){const t={};for(const n of e)t[n[0]]=n[1];return t}const Ho=Symbol("curried");function X(e,t){if(t==null)return t;const n=$(t);if(n.length>1)return n;const r=(...o)=>{let i=n;for(let s=0;s<e;s++)i=i(o[s]);return i};return r[Ho]=n,r}function Yl(e,t,n){return r=>t===1?n(...e.concat([r])):Yl(e.concat([r]),t-1,n)}function kn(e,t,n){if(t!=null)if(Ho in t){t=t[Ho];for(let r=0;r<n.length;r++)t=t(n[r]);return t}else return Yl(n,e,t)}function Ru(e){let t=0,n="[";for(const r of e){if(t===0)n+=Se(r);else if(t===100){n+="; ...";break}else n+="; "+Se(r);t++}return n+"]"}function Se(e,t=0){var n,r;if(e!=null&&typeof e=="object"){if(typeof e.toString=="function")return e.toString();if(Symbol.iterator in e)return Ru(e);{const o=(n=Object.getPrototypeOf(e))===null||n===void 0?void 0:n.constructor;return o===Object&&t<10?"{ "+Object.entries(e).map(([i,s])=>i+" = "+Se(s,t+1)).join(`
|
|
2
|
-
`)+" }":(r=o==null?void 0:o.name)!==null&&r!==void 0?r:""}}return String(e)}function Nu(e,t){if(t.length===0)return e;{let n,r=!0;return t.length===1?(n=Se(t[0]),r=n.indexOf(" ")>=0):n=t.map(o=>Se(o)).join(", "),e+(r?" (":" ")+n+(r?")":"")}}class q{get name(){return this.cases()[this.tag]}toJSON(){return this.fields.length===0?this.name:[this.name].concat(this.fields)}toString(){return Nu(this.name,this.fields)}GetHashCode(){const t=this.fields.map(n=>St(n));return t.splice(0,0,Xe(this.tag)),Fn(t)}Equals(t){return this===t?!0:Or(this,t)&&this.tag===t.tag?$l(this.fields,t.fields):!1}CompareTo(t){return this===t?0:Or(this,t)?this.tag===t.tag?ql(this.fields,t.fields):this.tag<t.tag?-1:1:-1}}function Ou(e){const t={},n=Object.keys(e);for(let r=0;r<n.length;r++)t[n[r]]=e[n[r]];return t}function Bu(e){return"{ "+Object.entries(e).map(([t,n])=>t+" = "+Se(n)).join(`
|
|
3
|
-
`)+" }"}function Pu(e){const t=Object.values(e).map(n=>St(n));return Fn(t)}function Hu(e,t){if(e===t)return!0;if(Or(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++)if(!et(e[n[r]],t[n[r]]))return!1;return!0}else return!1}function ju(e,t){if(e===t)return 0;if(Or(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++){const o=dt(e[n[r]],t[n[r]]);if(o!==0)return o}return 0}else return-1}class oe{toJSON(){return Ou(this)}toString(){return Bu(this)}GetHashCode(){return Pu(this)}Equals(t){return Hu(this,t)}CompareTo(t){return ju(this,t)}}class Qe{get contents(){return this.getter()}set contents(t){this.setter(t)}constructor(t,n){typeof n=="function"?(this.getter=t,this.setter=n):(this.getter=()=>t,this.setter=r=>{t=r})}}class Vu{constructor(t){this.message=t}}function Uu(e){return e instanceof Vu||e instanceof Error}function Lu(e){return e instanceof Promise}function Br(e){return Uu(e)||Lu(e)?e:new Error(String(e))}const Bt=Symbol("numeric");function ea(e){return typeof e=="number"||(e==null?void 0:e[Bt])}function zu(e,t){return typeof e=="number"?e<t?-1:e>t?1:0:e.CompareTo(t)}function jo(e,t){return typeof e=="number"?e*t:e[Bt]().multiply(t)}function Fr(e,t){return typeof e=="number"?e.toFixed(t):e[Bt]().toFixed(t)}function Pr(e,t){return typeof e=="number"?e.toPrecision(t):e[Bt]().toPrecision(t)}function Hr(e,t){return typeof e=="number"?e.toExponential(t):e[Bt]().toExponential(t)}function jr(e){return typeof e=="number"?(Number(e)>>>0).toString(16):e[Bt]().toHex()}var V={GetHashCode(){return Fn([this.s,this.e].concat(this.c))},Equals(e){return!this.cmp(e)},CompareTo(e){return this.cmp(e)},[Bt](){const e=this;return{multiply:t=>e.mul(t),toPrecision:t=>e.toPrecision(t),toExponential:t=>e.toExponential(t),toFixed:t=>e.toFixed(t),toHex:()=>(Number(e)>>>0).toString(16)}}},Wu=28,Gu=1,Kt=1e6,as=1e6,Qu=-29,Zu=29,Ku=!1,fr="[big.js] ",nn=fr+"Invalid ",qr=nn+"decimal places",Ju=nn+"rounding mode",ta=fr+"Division by zero",at=void 0,$u=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;function na(){function e(t){var n=this;if(!(n instanceof e))return t===at?na():new e(t);if(t instanceof e)n.s=t.s,n.e=t.e,n.c=t.c.slice(),Xu(n);else{if(typeof t!="string"){if(e.strict===!0)throw TypeError(nn+"number");t=t===0&&1/t<0?"-0":String(t)}qu(n,t)}n.constructor=e}return e.prototype=V,e.DP=Wu,e.RM=Gu,e.NE=Qu,e.PE=Zu,e.strict=Ku,e}function Xu(e){if(e.c.length>1&&!e.c[0]){let t=e.c.findIndex(n=>n);e.c=e.c.slice(t),e.e=e.e-t}}function qu(e,t){var n,r,o;if(!$u.test(t))throw Error(nn+"number");for(e.s=t.charAt(0)=="-"?(t=t.slice(1),-1):1,(n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),o=t.length,r=0;r<n&&r<o&&t.charAt(r)=="0";)++r;if(r==o)e.c=[e.e=0];else for(e.e=n-r-1,e.c=[],n=0;r<o;)e.c[n++]=+t.charAt(r++);return e=Pt(e,Ot.DP+1,Ot.RM),e}function Pt(e,t,n,r){var o=e.c;if(n===at&&(n=Ot.RM),n!==0&&n!==1&&n!==2&&n!==3)throw Error(Ju);if(t<1)r=n===3&&(r||!!o[0])||t===0&&(n===1&&o[0]>=5||n===2&&(o[0]>5||o[0]===5&&(r||o[1]!==at))),o.length=1,r?(e.e=e.e-t+1,o[0]=1):o[0]=e.e=0;else if(t<o.length){const i=o.findIndex((s,l)=>l>=t&&s>0)<0;if(r=n===1&&o[t]>=5||n===2&&(o[t]>5||o[t]===5&&(r||o[t+1]!==at||o[t-1]&1))||n===3&&(r||!i),o.length=t--,r)for(;++o[t]>9;)o[t]=0,t--||(++e.e,o.unshift(1));for(t=o.length;!o[--t];)o.pop()}return e}function Mn(e,t,n){var r=e.e,o=e.c.join(""),i=o.length;if(t)o=o.charAt(0)+(i>1?"."+o.slice(1):"")+(r<0?"e":"e+")+r;else if(r<0){for(;++r;)o="0"+o;o="0."+o}else if(r>0)if(++r>i)for(r-=i;r--;)o+="0";else r<i&&(o=o.slice(0,r)+"."+o.slice(r));else i>1&&(o=o.charAt(0)+"."+o.slice(1));return e.s<0&&n?"-"+o:o}V.abs=function(){var e=new this.constructor(this);return e.s=1,e};V.cmp=function(o){var t,n=this.constructor,r=new n(this),o=new n(o),i=r.c,s=o.c,l=r.s,u=o.s,c=r.e,a=o.e;if(!i[0]||!s[0])return i[0]?l:s[0]?-u:0;if(l!=u)return l;if(t=l<0,c!=a)return c>a^t?1:-1;for(u=Math.max(i.length,s.length),l=0;l<u;l++)if(c=l<i.length?i[l]:0,a=l<s.length?s[l]:0,c!=a)return c>a^t?1:-1;return 0};V.div=function(r){var t=this.constructor,n=new t(this),r=new t(r),o=n.c,i=r.c,s=n.s==r.s?1:-1,l=t.DP;if(l!==~~l||l<0||l>Kt)throw Error(qr);if(!i[0])throw Error(ta);if(!o[0])return r.s=s,r.c=[r.e=0],r;var u,c,a,d,f,p=i.slice(),g=u=i.length,_=o.length,w=o.slice(0,u),b=w.length,F=r,ne=F.c=[],ie=0,Q=l+(F.e=n.e-r.e)+1;for(F.s=s,s=Q<0?0:Q,p.unshift(0);b++<u;)w.push(0);do{for(a=0;a<10;a++){if(u!=(b=w.length))d=u>b?1:-1;else for(f=-1,d=0;++f<u;)if(i[f]!=w[f]){d=i[f]>w[f]?1:-1;break}if(d<0){for(c=b==u?i:p;b;){if(w[--b]<c[b]){for(f=b;f&&!w[--f];)w[f]=9;--w[f],w[b]+=10}w[b]-=c[b]}for(;!w[0];)w.shift()}else break}ne[ie++]=d?a:++a,w[0]&&d?w[b]=o[g]||0:w=[o[g]]}while((g++<_||w[0]!==at)&&s--);return!ne[0]&&ie!=1&&(ne.shift(),F.e--,Q--),ie>Q&&Pt(F,Q,t.RM,w[0]!==at),F};V.eq=function(e){return this.cmp(e)===0};V.gt=function(e){return this.cmp(e)>0};V.gte=function(e){return this.cmp(e)>-1};V.lt=function(e){return this.cmp(e)<0};V.lte=function(e){return this.cmp(e)<1};V.minus=V.sub=function(l){var t,n,r,o,i=this.constructor,s=new i(this),l=new i(l),u=s.s,c=l.s;if(u!=c)return l.s=-c,s.plus(l);var a=s.c.slice(),d=s.e,f=l.c,p=l.e;if(!a[0]||!f[0])return f[0]?l.s=-c:a[0]?l=new i(s):l.s=1,l;if(u=d-p){for((o=u<0)?(u=-u,r=a):(p=d,r=f),r.reverse(),c=u;c--;)r.push(0);r.reverse()}else for(n=((o=a.length<f.length)?a:f).length,u=c=0;c<n;c++)if(a[c]!=f[c]){o=a[c]<f[c];break}if(o&&(r=a,a=f,f=r,l.s=-l.s),(c=(n=f.length)-(t=a.length))>0)for(;c--;)a[t++]=0;for(c=t;n>u;){if(a[--n]<f[n]){for(t=n;t&&!a[--t];)a[t]=9;--a[t],a[n]+=10}a[n]-=f[n]}for(;a[--c]===0;)a.pop();for(;a[0]===0;)a.shift(),--p;return a[0]||(l.s=1,a=[p=0]),l.c=a,l.e=p,l};V.mod=function(o){var t,n=this.constructor,r=new n(this),o=new n(o),i=r.s,s=o.s;if(!o.c[0])throw Error(ta);return r.s=o.s=1,t=o.cmp(r)==1,r.s=i,o.s=s,t?new n(r):(i=n.DP,s=n.RM,n.DP=n.RM=0,r=r.div(o),n.DP=i,n.RM=s,this.minus(r.times(o)))};V.plus=V.add=function(s){var t,n,r,o=this.constructor,i=new o(this),s=new o(s);if(i.s!=s.s)return s.s=-s.s,i.minus(s);var l=i.e,u=i.c,c=s.e,a=s.c;if(!u[0]||!a[0])return a[0]||(u[0]?s=new o(i):s.s=i.s),s;if(u=u.slice(),t=l-c){for(t>0?(c=l,r=a):(t=-t,r=u),r.reverse();t--;)r.push(0);r.reverse()}for(u.length-a.length<0&&(r=a,a=u,u=r),t=a.length,n=0;t;u[t]%=10)n=(u[--t]=u[t]+a[t]+n)/10|0;for(n&&(u.unshift(n),++c),t=u.length;u[--t]===0;)u.pop();return s.c=u,s.e=c,s};V.pow=function(e){var t=this.constructor,n=new t(this),r=new t("1"),o=new t("1"),i=e<0;if(e!==~~e||e<-as||e>as)throw Error(nn+"exponent");for(i&&(e=-e);e&1&&(r=r.times(n)),e>>=1,!!e;)n=n.times(n);return i?o.div(r):r};V.prec=function(e,t){if(e!==~~e||e<1||e>Kt)throw Error(nn+"precision");return Pt(new this.constructor(this),e,t)};V.round=function(e,t){if(e===at)e=0;else if(e!==~~e||e<-Kt||e>Kt)throw Error(qr);return Pt(new this.constructor(this),e+this.e+1,t)};V.sqrt=function(){var e,t,n,r=this.constructor,o=new r(this),i=o.s,s=o.e,l=new r("0.5");if(!o.c[0])return new r(o);if(i<0)throw Error(fr+"No square root");i=Math.sqrt(o+""),i===0||i===1/0?(t=o.c.join(""),t.length+s&1||(t+="0"),i=Math.sqrt(t),s=((s+1)/2|0)-(s<0||s&1),e=new r((i==1/0?"5e":(i=i.toExponential()).slice(0,i.indexOf("e")+1))+s)):e=new r(i+""),s=e.e+(r.DP+=4);do n=e,e=l.times(n.plus(o.div(n)));while(n.c.slice(0,s).join("")!==e.c.slice(0,s).join(""));return Pt(e,(r.DP-=4)+e.e+1,r.RM)};V.times=V.mul=function(o){var t,n=this.constructor,r=new n(this),o=new n(o),i=r.c,s=o.c,l=i.length,u=s.length,c=r.e,a=o.e;if(o.s=r.s==o.s?1:-1,!i[0]||!s[0])return o.c=[o.e=0],o;for(o.e=c+a,l<u&&(t=i,i=s,s=t,a=l,l=u,u=a),t=new Array(a=l+u);a--;)t[a]=0;for(c=u;c--;){for(u=0,a=l+c;a>c;)u=t[a]+s[c]*i[a-c-1]+u,t[a--]=u%10,u=u/10|0;t[a]=u}for(u?++o.e:t.shift(),c=t.length;!t[--c];)t.pop();return o.c=t,o};V.toExponential=function(e,t){var n=this,r=n.c[0];if(e!==at){if(e!==~~e||e<0||e>Kt)throw Error(qr);for(n=Pt(new n.constructor(n),++e,t);n.c.length<e;)n.c.push(0)}return Mn(n,!0,!!r)};V.toFixed=function(e,t){var n=this,r=n.c[0];if(e!==at){if(e!==~~e||e<0||e>Kt)throw Error(qr);for(n=Pt(new n.constructor(n),e+n.e+1,t),e=e+n.e+1;n.c.length<e;)n.c.push(0)}return Mn(n,!1,!!r)};V.toJSON=V.toString=function(){var e=this,t=e.constructor;return Mn(e,e.e<=t.NE||e.e>=t.PE,!!e.c[0])};V.toNumber=function(){var e=Number(Mn(this,!0,!0));if(this.constructor.strict===!0&&!this.eq(e.toString()))throw Error(fr+"Imprecise conversion");return e};V.toPrecision=function(e,t){var n=this,r=n.constructor,o=n.c[0];if(e!==at){if(e!==~~e||e<1||e>Kt)throw Error(nn+"precision");for(n=Pt(new r(n),e,t);n.c.length<e;)n.c.push(0)}return Mn(n,e<=n.e||n.e<=r.NE||n.e>=r.PE,!!o)};V.valueOf=function(){var e=this,t=e.constructor;if(t.strict===!0)throw Error(fr+"valueOf disallowed");return Mn(e,e.e<=t.NE||e.e>=t.PE,!0)};var Ot=na();new Ot(0);new Ot(1);new Ot(-1);new Ot("79228162514264337593543950335");new Ot("-79228162514264337593543950335");var Vo;(function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"})(Vo||(Vo={}));function Yu(e,t){const[,n,r,o]=e;return{sign:n||"",prefix:r||"",digits:o,radix:t}}function cs(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 ef(e){switch(e){case 2:return/[^0-1]/;case 8:return/[^0-7]/;case 10:return/[^0-9]/;case 16:return/[^0-9a-fA-F]/;default:throw new Error("Invalid Base.")}}function tf(e,t){if(t&Vo.AllowHexSpecifier)return 16;switch(e){case"0b":case"0B":return 2;case"0o":case"0O":return 8;case"0x":case"0X":return 16;default:return 10}}function nf(e,t,n){const o=/^\s*([\+\-])?(0[xXoObB])?([0-9a-fA-F]+)\s*$/.exec(e.replace(/_/g,""));if(o!=null){const[,,i,s]=o;if(n=n||tf(i,t),!ef(n).test(s))return Yu(o,n)}return null}function rf(e,t,n,r,o){const i=nf(e,t,o);if(i!=null){let s=Number.parseInt(i.sign+i.digits,i.radix);if(!Number.isNaN(s)){const[l,u]=cs(!0,r);!n&&i.radix!==10&&s>=l&&s<=u&&(s=s<<32-r>>32-r);const[c,a]=cs(n,r);if(s>=c&&s<=a)return s}}throw new Error("Input string was not in a correct format.")}function Tn(e,t,n,r,o){try{return o.contents=rf(e,t,n,r),!0}catch{return!1}}function of(e){return e===-2147483648?e:-e}var Ve=null;try{Ve=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{}function tt(e,t,n){this.low=e|0,this.high=t|0,this.unsigned=!!n}tt.prototype.GetHashCode=function(){let e=this.unsigned?1:0;return e=(e<<5)+e^this.high,e=(e<<5)+e^this.low,e};tt.prototype.Equals=function(e){return He(this,e)};tt.prototype.CompareTo=function(e){return dr(this,e)};tt.prototype.toString=function(e){return tr(this,e)};tt.prototype.toJSON=function(){return tr(this)};tt.prototype[Bt]=function(){const e=this;return{multiply:t=>Be(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:()=>tr(e.unsigned?e:Af(_f(e),!0),16)}};tt.prototype.__isLong__;Object.defineProperty(tt.prototype,"__isLong__",{value:!0});function nt(e){return(e&&e.__isLong__)===!0}var us={},fs={};function Rn(e,t){var n,r,o;return t?(e>>>=0,(o=0<=e&&e<256)&&(r=fs[e],r)?r:(n=G(e,(e|0)<0?-1:0,!0),o&&(fs[e]=n),n)):(e|=0,(o=-128<=e&&e<128)&&(r=us[e],r)?r:(n=G(e,e<0?-1:0,!1),o&&(us[e]=n),n))}function qe(e,t){if(isNaN(e))return t?Mt:Ye;if(t){if(e<0)return Mt;if(e>=oa)return cf}else{if(e<=-ps)return Ue;if(e+1>=ps)return af}return e<0?pe(qe(-e,t)):G(e%An|0,e/An|0,t)}function G(e,t,n){return new tt(e,t,n)}var Vr=Math.pow;function ra(e,t,n){if(e.length===0)throw Error("empty string");if(e==="NaN"||e==="Infinity"||e==="+Infinity"||e==="-Infinity")return Ye;if(typeof t=="number"?(n=t,t=!1):t=!!t,n=n||10,n<2||36<n)throw RangeError("radix");var r=e.indexOf("-");if(r>0)throw Error("interior hyphen");if(r===0)return pe(ra(e.substring(1),t,n));for(var o=qe(Vr(n,8)),i=Ye,s=0;s<e.length;s+=8){var l=Math.min(8,e.length-s),u=parseInt(e.substring(s,s+l),n);if(l<8){var c=qe(Vr(n,l));i=Jt(Be(i,c),qe(u))}else i=Be(i,o),i=Jt(i,qe(u))}return i.unsigned=t,i}function Ht(e,t){return typeof e=="number"?qe(e,t):typeof e=="string"?ra(e,t):G(e.low,e.high,typeof t=="boolean"?t:e.unsigned)}var ds=1<<16,sf=1<<24,An=ds*ds,oa=An*An,ps=oa/2,hs=Rn(sf),Ye=Rn(0),Mt=Rn(0,!0),Zn=Rn(1),lf=Rn(1,!0),ms=Rn(-1),af=G(-1,2147483647,!1),cf=G(-1,-1,!0),Ue=G(0,-2147483648,!1);function vn(e){return e.unsigned?e.low>>>0:e.low}function er(e){return e.unsigned?(e.high>>>0)*An+(e.low>>>0):e.high*An+(e.low>>>0)}function tr(e,t){if(t=t||10,t<2||36<t)throw RangeError("radix");if(Qt(e))return"0";if(je(e))if(He(e,Ue)){var n=qe(t),r=bt(e,n),o=xn(Be(r,n),e);return tr(r,t)+vn(o).toString(t)}else return"-"+tr(pe(e),t);for(var i=qe(Vr(t,6),e.unsigned),s=e,l="";;){var u=bt(s,i),c=vn(xn(s,Be(u,i)))>>>0,a=c.toString(t);if(s=u,Qt(s))return a+l;for(;a.length<6;)a="0"+a;l=""+a+l}}function Qt(e){return e.high===0&&e.low===0}function je(e){return!e.unsigned&&e.high<0}function gs(e){return(e.low&1)===1}function He(e,t){return nt(t)||(t=Ht(t)),e.unsigned!==t.unsigned&&e.high>>>31===1&&t.high>>>31===1?!1:e.high===t.high&&e.low===t.low}function ws(e,t){return dr(e,t)<0}function bo(e,t){return dr(e,t)>0}function uf(e,t){return dr(e,t)>=0}function dr(e,t){if(nt(t)||(t=Ht(t)),He(e,t))return 0;var n=je(e),r=je(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:je(xn(e,t))?-1:1}function pe(e){return!e.unsigned&&He(e,Ue)?Ue:Jt(df(e),Zn)}function Jt(e,t){nt(t)||(t=Ht(t));var n=e.high>>>16,r=e.high&65535,o=e.low>>>16,i=e.low&65535,s=t.high>>>16,l=t.high&65535,u=t.low>>>16,c=t.low&65535,a=0,d=0,f=0,p=0;return p+=i+c,f+=p>>>16,p&=65535,f+=o+u,d+=f>>>16,f&=65535,d+=r+l,a+=d>>>16,d&=65535,a+=n+s,a&=65535,G(f<<16|p,a<<16|d,e.unsigned)}function xn(e,t){return nt(t)||(t=Ht(t)),Jt(e,pe(t))}function Be(e,t){if(Qt(e))return e.unsigned?Mt:Ye;if(nt(t)||(t=Ht(t)),Ve){var n=Ve.mul(e.low,e.high,t.low,t.high);return G(n,Ve.get_high(),e.unsigned)}if(Qt(t))return e.unsigned?Mt:Ye;if(He(e,Ue))return gs(t)?Ue:Ye;if(He(t,Ue))return gs(e)?Ue:Ye;if(je(e))return je(t)?Be(pe(e),pe(t)):pe(Be(pe(e),t));if(je(t))return pe(Be(e,pe(t)));if(ws(e,hs)&&ws(t,hs))return qe(er(e)*er(t),e.unsigned);var r=e.high>>>16,o=e.high&65535,i=e.low>>>16,s=e.low&65535,l=t.high>>>16,u=t.high&65535,c=t.low>>>16,a=t.low&65535,d=0,f=0,p=0,g=0;return g+=s*a,p+=g>>>16,g&=65535,p+=i*a,f+=p>>>16,p&=65535,p+=s*c,f+=p>>>16,p&=65535,f+=o*a,d+=f>>>16,f&=65535,f+=i*c,d+=f>>>16,f&=65535,f+=s*u,d+=f>>>16,f&=65535,d+=r*a+o*c+i*u+s*l,d&=65535,G(p<<16|g,d<<16|f,e.unsigned)}function bt(e,t){if(nt(t)||(t=Ht(t)),Qt(t))throw Error("division by zero");if(Ve){if(!e.unsigned&&e.high===-2147483648&&t.low===-1&&t.high===-1)return e;var n=(e.unsigned?Ve.div_u:Ve.div_s)(e.low,e.high,t.low,t.high);return G(n,Ve.get_high(),e.unsigned)}if(Qt(e))return e.unsigned?Mt:Ye;var r,o,i;if(e.unsigned){if(t.unsigned||(t=wf(t)),bo(t,e))return Mt;if(bo(t,gf(e,1)))return lf;i=Mt}else{if(He(e,Ue)){if(He(t,Zn)||He(t,ms))return Ue;if(He(t,Ue))return Zn;var s=mf(e,1);return r=hf(bt(s,t),1),He(r,Ye)?je(t)?Zn:ms:(o=xn(e,Be(t,r)),i=Jt(r,bt(o,t)),i)}else if(He(t,Ue))return e.unsigned?Mt:Ye;if(je(e))return je(t)?bt(pe(e),pe(t)):pe(bt(pe(e),t));if(je(t))return pe(bt(e,pe(t)));i=Ye}for(o=e;uf(o,t);){r=Math.max(1,Math.floor(er(o)/er(t)));for(var l=Math.ceil(Math.log(r)/Math.LN2),u=l<=48?1:Vr(2,l-48),c=qe(r),a=Be(c,t);je(a)||bo(a,o);)r-=u,c=qe(r,e.unsigned),a=Be(c,t);Qt(c)&&(c=Zn),i=Jt(i,c),o=xn(o,a)}return i}function ff(e,t){if(nt(t)||(t=Ht(t)),Ve){var n=(e.unsigned?Ve.rem_u:Ve.rem_s)(e.low,e.high,t.low,t.high);return G(n,Ve.get_high(),e.unsigned)}return xn(e,Be(bt(e,t),t))}function df(e){return G(~e.low,~e.high,e.unsigned)}function pf(e,t){return nt(t)||(t=Ht(t)),G(e.low&t.low,e.high&t.high,e.unsigned)}function hf(e,t){return nt(t)&&(t=vn(t)),(t&=63)===0?e:t<32?G(e.low<<t,e.high<<t|e.low>>>32-t,e.unsigned):G(0,e.low<<t-32,e.unsigned)}function mf(e,t){return nt(t)&&(t=vn(t)),(t&=63)===0?e:t<32?G(e.low>>>t|e.high<<32-t,e.high>>t,e.unsigned):G(e.high>>t-32,e.high>=0?0:-1,e.unsigned)}function gf(e,t){if(nt(t)&&(t=vn(t)),t&=63,t===0)return e;var n=e.high;if(t<32){var r=e.low;return G(r>>>t|n<<32-t,n>>>t,e.unsigned)}else return G(t===32?n:n>>>t-32,0,e.unsigned)}function wf(e){return e.unsigned?e:G(e.low,e.high,!0)}function _f(e,t){return t?yf(e):bf(e)}function yf(e){var t=e.high,n=e.low;return[n&255,n>>>8&255,n>>>16&255,n>>>24,t&255,t>>>8&255,t>>>16&255,t>>>24]}function bf(e){var t=e.high,n=e.low;return[t>>>24,t>>>16&255,t>>>8&255,t&255,n>>>24,n>>>16&255,n>>>8&255,n&255]}function Af(e,t,n){return n?vf(e,t):xf(e,t)}function vf(e,t){return new tt(e[0]|e[1]<<8|e[2]<<16|e[3]<<24,e[4]|e[5]<<8|e[6]<<16|e[7]<<24,t)}function xf(e,t){return new tt(e[4]<<24|e[5]<<16|e[6]<<8|e[7],e[0]<<24|e[1]<<16|e[2]<<8|e[3],t)}const ze=Jt,We=Be,pt=bt,Ef=ff,Cf=pe,Nn=pf,Yr=dr,he=G,ht=vn,Sf=er;function te(e,t,n){let r=e,o=0;switch(n){case 0:r=e<<24>>24,o=r;break;case 4:r=e<<24>>>24;break;case 1:r=e<<16>>16,o=r;break;case 5:r=e<<16>>>16;break;case 2:r=e>>0,o=r;break;case 6:r=e>>>0;break}return G(r,o>>31,t)}class Df{constructor(t,n,r,o){this.declaringType=t,this.tag=n,this.name=r,this.fields=o}}class T{constructor(t,n,r,o,i,s,l){this.fullname=t,this.generics=n,this.construct=r,this.parent=o,this.fields=i,this.cases=s,this.enumCases=l}toString(){return de(this)}GetHashCode(){return ia(this)}Equals(t){return Uo(this,t)}}function kt(e){return e.generics!=null?e.generics:[]}function ia(e){const t=si(e.fullname),n=kt(e).map(ia);return Fn([t,...n])}function Uo(e,t){return e.fullname===""?t.fullname===""&&Bo(Ur(e),Ur(t),([n,r],[o,i])=>n===o&&Uo(r,i)):e.fullname===t.fullname&&Bo(kt(e),kt(t),Uo)}function nr(e,t,n,r){return new T(e,t,n,r)}function rn(e,t,n,r){return new T(e,t,n,void 0,r)}function If(...e){return new T("",void 0,void 0,void 0,()=>e)}function Ff(e,t,n,r){const o=new T(e,t,n,void 0,void 0,()=>{const i=n.prototype.cases();return r().map((s,l)=>new Df(o,l,i[l],s))});return o}function li(e){return new T("Microsoft.FSharp.Core.FSharpOption`1",[e])}function eo(e){return new T("Microsoft.FSharp.Collections.FSharpList`1",[e])}function kf(e){return new T("[]",[e])}const Mf=new T("System.Object");new T("Microsoft.FSharp.Core.Unit");new T("System.Char");const Ge=new T("System.String");new T("System.Boolean");new T("System.SByte");new T("System.Byte");new T("System.Int16");new T("System.UInt16");const ye=new T("System.Int32");new T("System.UInt32");new T("System.Int64");new T("System.UInt64");new T("System.Int128");new T("System.UInt128");new T("System.IntPtr");new T("System.UIntPtr");new T("System.Half");new T("System.Single");new T("System.Double");new T("System.Decimal");new T("System.Numerics.BigInteger");function ai(e){if(Array.isArray(e))return e[0];if(e instanceof T){const t=to(e);if(t!=null)return ai(t)+"[]";{const n=e.fullname.lastIndexOf(".");return n===-1?e.fullname:e.fullname.substr(n+1)}}else return e.name}function de(e){const t=to(e);return t!=null?de(t)+"[]":e.generics==null||e.generics.length===0?e.fullname:e.fullname+"["+e.generics.map(n=>de(n)).join(",")+"]"}function Tf(e){return to(e)!=null}function to(e){var t;return e.fullname==="[]"&&((t=e.generics)===null||t===void 0?void 0:t.length)===1?e.generics[0]:void 0}function Rf(e){return e.generics!=null&&e.generics.length>0}function sa(e){return e.enumCases!=null&&e.enumCases.length>0}function Nf(e){return e.generics==null?e:new T(e.fullname,e.generics.map(()=>Mf))}function Of(e){var t;return(t=e.generics)===null||t===void 0?void 0:t[0]}function un(e){if(sa(e)&&e.enumCases!=null)return e.enumCases.map(t=>t[1]);throw new Error(`${e.fullname} is not an enum type`)}function Bf(e,t){if(e.enumCases!=null)if(typeof t=="string"){for(const n of e.enumCases)if(n[0]===t)return n;throw new Error(`'${t}' was not found in ${e.fullname}`)}else{for(const n of e.enumCases)if(n[1]===t)return n;return["",t]}else throw new Error(`${e.fullname} is not an enum type`)}function fn(e,t){const n=parseInt(t,10);return Bf(e,isNaN(n)?t:n)[1]}function Pf(e){if(e.cases!=null)return e.cases();throw new Error(`${e.fullname} is not an F# union type`)}function Ur(e){if(e.fields!=null)return e.fields();throw new Error(`${e.fullname} is not an F# record type`)}function Hf(e){if(la(e)&&e.generics!=null)return e.generics;throw new Error(`${e.fullname} is not a tuple type`)}function jf(e){return e instanceof T?e.cases!=null:e instanceof q}function Vf(e){return e instanceof T?e.fields!=null:e instanceof oe}function la(e){return e.fullname.startsWith("System.Tuple")}function Uf(e){return e.fields==null?[]:e.fields}function _s(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 e.declaringType.construct!=null?new e.declaringType.construct(e.tag,t):{}}function Lf(e,t){const n=Ur(e);if(n.length!==t.length)throw new Error(`Expected an array of length ${n.length} but got ${t.length}`);return e.construct!=null?new e.construct(...t):n.reduce((r,[o,i],s)=>(r[o]=t[s],r),{})}function zf(e,t){return e}function ci(e){const t=e<0;e=Math.abs(e);const n=~~(e/36e5),r=e%36e5/6e4;return(t?"-":"+")+it(n,2)+":"+it(r,2)}function Lr(e,t){const n=e.toISOString();return t==="first"?n.substring(0,n.indexOf("T")):n.substring(n.indexOf("T")+1,n.length-1)}function Wf(e,t){if(t)return e.toISOString();{const n=e.kind==null?!0:e.kind===2;return it(e.getFullYear(),4)+"-"+it(e.getMonth()+1,2)+"-"+it(e.getDate(),2)+"T"+it(e.getHours(),2)+":"+it(e.getMinutes(),2)+":"+it(e.getSeconds(),2)+"."+it(e.getMilliseconds(),3)+(n?ci(e.getTimezoneOffset()*-6e4):"")}}function Gf(e,t){const n=e.toISOString();return n.substring(0,n.length-1)+ci(t)}function aa(e,t,n){return t.replace(/(\w)\1*/g,r=>{let o=Number.NaN;switch(r.substring(0,1)){case"y":const i=n?e.getUTCFullYear():e.getFullYear();o=r.length<4?i%100:i;break;case"M":o=(n?e.getUTCMonth():e.getMonth())+1;break;case"d":o=n?e.getUTCDate():e.getDate();break;case"H":o=n?e.getUTCHours():e.getHours();break;case"h":const s=n?e.getUTCHours():e.getHours();o=s>12?s%12:s;break;case"m":o=n?e.getUTCMinutes():e.getMinutes();break;case"s":o=n?e.getUTCSeconds():e.getSeconds();break;case"f":o=n?e.getUTCMilliseconds():e.getMilliseconds();break}return Number.isNaN(o)?r:it(o,r.length)})}function Qf(e,t){var n,r,o;const i=new Date(e.getTime()+((n=e.offset)!==null&&n!==void 0?n:0));if(typeof t!="string")return i.toISOString().replace(/\.\d+/,"").replace(/[A-Z]|\.\d+/g," ")+ci((r=e.offset)!==null&&r!==void 0?r:0);if(t.length===1)switch(t){case"D":case"d":return Lr(i,"first");case"T":case"t":return Lr(i,"second");case"O":case"o":return Gf(i,(o=e.offset)!==null&&o!==void 0?o:0);default:throw new Error("Unrecognized Date print format")}else return aa(i,t,!0)}function Zf(e,t){const n=e.kind===1;if(typeof t!="string")return n?e.toUTCString():e.toLocaleString();if(t.length===1)switch(t){case"D":case"d":return n?Lr(e,"first"):e.toLocaleDateString();case"T":case"t":return n?Lr(e,"second"):e.toLocaleTimeString();case"O":case"o":return Wf(e,n);default:throw new Error("Unrecognized Date print format")}else return aa(e,t,n)}function ca(e,t,n){return e.offset!=null?Qf(e,t):Zf(e,t)}function ui(e,t){const n=new Date(e);return n.kind=(t==null?0:t)|0,n}function Kf(){return ui(-621355968e5,0)}function ua(e){function t(){throw new Error(`The string is not a valid Date: ${e}`)}(e==null||e.trim()==="")&&t(),e.length===10&&e[4]==="-"&&e[7]==="-"&&(e+="T00:00:00");let n=new Date(e),r=null;if(isNaN(n.getTime())){const o=/^\s*(\d+[^\w\s:]\d+[^\w\s:]\d+)?\s*(\d+:\d+(?::\d+(?:\.\d+)?)?)?\s*([AaPp][Mm])?\s*(Z|[+-]([01]?\d):?([0-5]?\d)?)?\s*$/.exec(e);if(o!=null){let i,s=0;if(o[2]!=null){const l=o[2].split(":");s=parseInt(l[0],10)*3600+parseInt(l[1]||"0",10)*60+parseFloat(l[2]||"0"),o[3]!=null&&o[3].toUpperCase()==="PM"&&(s+=720)}if(o[4]!=null){if(o[1]!=null)i=new Date(o[1]+" UTC");else{const l=new Date;i=new Date(l.getUTCFullYear()+"/"+(l.getUTCMonth()+1)+"/"+l.getUTCDate())}if(o[4]==="Z")r="Z";else{let l=parseInt(o[5],10)*60+parseInt(o[6]||"0",10);o[4][0]==="-"&&(l*=-1),r=l,s-=l*60}}else if(o[1]!=null)i=new Date(o[1]);else{const l=new Date;i=new Date(l.getFullYear()+"/"+(l.getMonth()+1)+"/"+l.getDate())}n=new Date(i.getTime()+s*1e3),n=new Date(n.getTime()+(n.getTimezoneOffset()-i.getTimezoneOffset())*6e4)}else t();isNaN(n.getTime())&&t()}return[n,r]}function Jf(e,t=!1){const[n,r]=ua(e),o=r!=null?t&&r==="Z"?1:2:0;return ui(n.getTime(),o)}function $f(e,t){try{return t.contents=Jf(e),!0}catch{return!1}}function Xf(e){return e.kind===1?e:ui(e.getTime(),1)}function qf(e,t=0){if((t&-284)!==0)throw new Error("RegexOptions only supports: IgnoreCase, Multiline, Compiled, Singleline and ECMAScript");let n="gu";return n+=t&1?"i":"",n+=t&2?"m":"",n+=t&16?"s":"",new RegExp(e,n)}function fi(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function ys(e,t,n=0){if(t==null)throw new Error("Input cannot ve null");if(!e.global)throw new Error("Non-global RegExp");e.lastIndex=n;const r=[];let o,i=-1;for(;(o=e.exec(t))!=null;)o.index===i?e.lastIndex++:(i=o.index,r.push(o));return r}function Yf(e,t,n,r,o=0){function i(){let s=arguments[0];if(r){r--;const l=[],u=arguments.length,c=typeof arguments[u-1]!="string";let a=c?u-3:u-2;for(let d=0;d<a;d++)l.push(arguments[d]);l.index=arguments[a++],l.input=arguments[a++],c&&(l.groups=arguments[a]),s=n(l)}return s}if(typeof e=="string"){const s=e;e=qf(t,r!=null?r:0),t=s,r=void 0}if(typeof n=="function")return r=r==null?-1:r,t.substring(0,o)+t.substring(o).replace(e,i);if(n=n.replace(/\$0/g,s=>"$&").replace(/\${([^}]+)}/g,"$<$1>"),r!=null){let s;const l=t.substring(o),u=ys(e,l),c=ys.length>r?(s=u[r-1],l.substring(0,s.index+s[0].length)):l;return t.substring(0,o)+c.replace(e,n)+t.substring(o+c.length)}else return t.replace(e,n)}const zn=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g,ed=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function fa(e,t){return zu(e,t)<0}function on(e){return{input:e,cont:rd(e)}}function da(e,t){return typeof t=="string"?e(t):t.cont(e)}function On(e){return da(t=>t,e)}function td(e){return da(t=>{throw new Error(t)},e)}function nd(e,t,n,r,o){let i="";if(t=t||"",o=o||"",ea(e))switch(o.toLowerCase()!=="x"&&(fa(e,0)?(e=jo(e,-1),i="-"):t.indexOf(" ")>=0?i=" ":t.indexOf("+")>=0&&(i="+")),r=r==null?null:parseInt(r,10),o){case"f":case"F":r=r!=null?r:6,e=Fr(e,r);break;case"g":case"G":e=r!=null?Pr(e,r):Pr(e);break;case"e":case"E":e=r!=null?Hr(e,r):Hr(e);break;case"x":e=jr(e);break;case"X":e=jr(e).toUpperCase();break;default:e=String(e);break}else e instanceof Date?e=ca(e):e=Se(e);if(n=typeof n=="number"?n:parseInt(n,10),isNaN(n))e=i+e;else{const s=t.indexOf("0")>=0,l=t.indexOf("-")>=0,u=l||!s?" ":"0";u==="0"?(e=rr(e,n-i.length,u,l),e=i+e):e=rr(i+e,n,u,l)}return e}function pa(e,t,n,r="",o=-1){return(...i)=>{let s=r;const l=t.slice(),u=n.slice();for(const c of i){const[,,a,d,f,p]=u[0];let g=d;if(o>=0)g=o,o=-1;else if(g==="*"){if(c<0)throw new Error("Non-negative number required");o=c;continue}s+=l[0],s+=nd(c,a,g,f,p),l.splice(0,1),u.splice(0,1)}return u.length===0?(s+=l[0],e(s)):pa(e,l,u,s,o)}}function rd(e){return t=>{zn.lastIndex=0;const n=[],r=[];let o=0,i=zn.exec(e);for(;i;){const s=i.index+(i[1]||"").length;n.push(e.substring(o,s).replace(/%%/g,"%")),r.push(i),o=zn.lastIndex,zn.lastIndex-=1,i=zn.exec(e)}return n.length===0?t(e.replace(/%%/g,"%")):(n.push(e.substring(o).replace(/%%/g,"%")),pa(t,n,r))}}function od(e,...t){let n;return typeof e=="object"?(n=String(t[0]),t.shift()):n=e,n.replace(ed,(r,o,i,s,l,u)=>{if(o<0||o>=t.length)throw new Error("Index must be greater or equal to zero and less than the arguments' length.");let c=t[o];if(ea(c))switch(l=l==null?null:parseInt(l,10),s){case"f":case"F":l=l!=null?l:2,c=Fr(c,l);break;case"g":case"G":c=l!=null?Pr(c,l):Pr(c);break;case"e":case"E":c=l!=null?Hr(c,l):Hr(c);break;case"p":case"P":l=l!=null?l:2,c=Fr(jo(c,100),l)+" %";break;case"d":case"D":c=l!=null?Ao(String(c),l,"0"):String(c);break;case"x":case"X":c=l!=null?Ao(jr(c),l,"0"):jr(c),s==="X"&&(c=c.toUpperCase());break;default:if(u){let a="";c=u.replace(/([0#,]+)(\.[0#]+)?/,(d,f,p)=>{fa(c,0)&&(c=jo(c,-1),a="-"),p=p==null?"":p.substring(1),c=Fr(c,Math.max(p.length,0));let[g,_]=c.split(".");_||(_="");const w=f.replace(/,/g,"").replace(/^#+/,"").length;g=Ao(g,w,"0");const b=p.replace(/#+$/,"").length;if(b>_.length?_=sd(_,b,"0"):b<_.length&&(_=_.substring(0,b)+_.substring(b).replace(/0+$/,"")),f.indexOf(",")>0){const F=g.length%3,ne=Math.floor(g.length/3);let ie=F>0?g.substr(0,F)+(ne>0?",":""):"";for(let Q=0;Q<ne;Q++)ie+=g.substr(F+Q*3,3)+(Q<ne-1?",":"");g=ie}return _.length>0?g+"."+_:g}),c=a+c}}else c instanceof Date?c=ca(c,u||s):c=Se(c);return i=parseInt((i||" ").substring(1),10),isNaN(i)||(c=rr(String(c),Math.abs(i)," ",i<0)),c})}function id(e){return typeof e!="string"||e.length===0}function Dt(e,t){return Array.isArray(t)?t.join(e):Array.from(t).join(e)}function rr(e,t,n,r){n=n||" ",t=t-e.length;for(let o=0;o<t;o++)e=r?e+n:n+e;return e}function Ao(e,t,n){return rr(e,t,n)}function sd(e,t,n){return rr(e,t,n,!0)}function ld(e,t,n){return e.replace(new RegExp(fi(t),"g"),n)}function ha(e,t,n,r){if(n=typeof n=="number"?n:void 0,r=typeof r=="number"?r:0,n&&n<0)throw new Error("Count cannot be less than zero");if(n===0)return[];const o=(r&1)===1,i=(r&2)===2;t=t||[],t=t.filter(a=>a).map(fi),t=t.length>0?t:["\\s"];const s=[],l=new RegExp(t.join("|"),"g");let u=!0,c=0;do{const a=l.exec(e);if(a===null){const d=i?e.substring(c).trim():e.substring(c);(!o||d.length>0)&&s.push(d),u=!1}else{const d=i?e.substring(c,a.index).trim():e.substring(c,a.index);(!o||d.length>0)&&(n!=null&&s.length+1===n?(s.push(i?e.substring(c).trim():e.substring(c)),u=!1):s.push(d)),c=l.lastIndex}}while(u);return s}function ad(e,...t){if(t.length===0)return e.trim();const n="["+fi(t.join(""))+"]+";return e.replace(new RegExp("^"+n),"").replace(new RegExp(n+"$"),"")}const ma="Collection was empty.",cd="An index satisfying the predicate was not found in the collection.";function be(e){return e==null||e instanceof yn?new yn(e):e}function ud(e){return e==null?[]:[$(e)]}function ga(e,t){return e!=null?$(e):t}function di(e,t){return typeof e=="function"?new e(t):new Array(t)}function fd(){throw new Error("Arrays had different lengths")}function pi(e,t,n,r){const o=t|0;return e.fill(r,o,o+n)}function $t(e,t,n){const r=t.length|0,o=di(n,r);for(let i=0;i<=r-1;i++)o[i]=e(t[i]);return o}function dd(e,t){const n=di(t,1);return n[0]=e,n}function Bn(e,t,n){if(e<0)throw new Error("The input must be non-negative\\nParameter name: count");const r=di(n,e);for(let o=0;o<=e-1;o++)r[o]=t(o);return r}function pd(e){return e.slice()}function hd(e,t){return t.find(e)}function md(e,t,n){const r=[];for(let o=0;o<=t.length-1;o++){const i=e(t[o]);if(i!=null){const s=$(i);r.push(s)}}return et(n,ft())?r:$t(o=>o,r,n)}function hi(e,t,n){return n.reduce(e,t)}function gd(e,t,n){if(t==null)return n==null;if(n==null)return!1;{let r=0,o=!0;const i=t.length|0,s=n.length|0;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 wd(e,t,n){return t.reduceRight((r,o)=>e(o,r),n)}function _d(e,t,n,r){let o=r;t.length!==n.length&&fd();const i=t.length|0;for(let s=1;s<=i;s++)o=e(s-1,t[i-s],n[i-s],o);return o}function yd(e,t,n,r){return _d((o,i,s,l)=>e(i,s,l),t,n,r)}class mt extends oe{constructor(t,n){super(),this.head=t,this.tail=n}toString(){return"["+Dt("; ",this)+"]"}Equals(t){const n=this;return n===t?!0:((o,i)=>{e:for(;;){const s=o,l=i,u=s.tail,c=l.tail;if(u!=null)if(c!=null){const a=u,d=c;if(et(s.head,l.head)){o=a,i=d;continue e}else return!1}else return!1;else return c==null}})(n,t)}GetHashCode(){return((r,o,i)=>{e:for(;;){const s=r,l=o,u=i,c=u.tail;if(c!=null){const a=c;if(s>18)return l|0;r=s+1,o=(l<<1)+St(u.head)+631*s,i=a;continue e}else return l|0}})(0,0,this)|0}toJSON(){const t=this;return Array.from(t)}CompareTo(t){return((o,i)=>{e:for(;;){const s=o,l=i,u=s.tail,c=l.tail;if(u!=null)if(c!=null){const a=u,d=c,f=dt(s.head,l.head)|0;if(f===0){o=a,i=d;continue e}else return f|0}else return 1;else return c!=null?-1:0}})(this,t)|0}GetEnumerator(){return Ad(this)}[Symbol.iterator](){return Xr(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return Ce(this)}}class bd{constructor(t){this.xs=t,this.it=this.xs,this.current=ft()}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current}"System.Collections.IEnumerator.get_Current"(){return this.current}"System.Collections.IEnumerator.MoveNext"(){const t=this,n=t.it.tail;if(n!=null){const r=n;return t.current=t.it.head,t.it=r,!0}else return!1}"System.Collections.IEnumerator.Reset"(){const t=this;t.it=t.xs,t.current=ft()}Dispose(){}}function Ad(e){return new bd(e)}function gt(){return new mt(ft(),void 0)}function pr(e,t){return new mt(e,t)}function hr(e){return e.tail==null}function wa(e){return((n,r)=>{e:for(;;){const o=n,s=r.tail;if(s!=null){n=o+1,r=s;continue e}else return o|0}})(0,e)|0}function no(e){if(e.tail!=null)return e.head;throw new Error(ma+"\\nParameter name: list")}function jt(e){const t=e.tail;if(t!=null)return t;throw new Error(ma+"\\nParameter name: list")}function vd(){throw new Error(cd)}function Pe(){return gt()}function Ne(e,t){return pr(e,t)}function Ee(e){return pr(e,gt())}function N(e){return hr(e)}function xd(e){return wa(e)}function x(e){return no(e)}function R(e){return jt(e)}function ro(e){const t=wa(e)|0,n=pi(new Array(t),0,t,null);return((o,i)=>{e:for(;;){const s=o,l=i;if(!hr(l)){n[s]=no(l),o=s+1,i=jt(l);continue e}break}})(0,e),n}function Vt(e,t,n){let r=t,o=n;for(;!hr(o);)r=e(r,x(o)),o=jt(o);return r}function _a(e){return Vt((t,n)=>pr(n,t),gt(),e)}function ya(e,t){Vt((n,r)=>{e(r)},void 0,t)}function Z(e,t){let n=t;for(let r=e.length-1;r>=0;r--)n=pr(e[r],n);return n}function S(e){return Z(e,gt())}function Ed(e){let t,n;if(ut(e))return S(e);if(e instanceof mt)return e;{const r=gt();let o=r;const i=Ce(e);try{for(;i["System.Collections.IEnumerator.MoveNext"]();){const u=i["System.Collections.Generic.IEnumerator`1.get_Current"]();o=(t=o,n=new mt(u,void 0),t.tail=n,n)}}finally{J(i)}const s=o,l=gt();return s.tail=l,jt(r)}}function ba(e){const t=gt();let n=t;const r=s=>{n=Vt((l,u)=>{const c=new mt(u,void 0);return l.tail=c,c},n,s)};if(ut(e))e.forEach(r);else if(e instanceof mt)ya(r,e);else{const s=Ce(e);try{for(;s["System.Collections.IEnumerator.MoveNext"]();)r(s["System.Collections.Generic.IEnumerator`1.get_Current"]())}finally{J(s)}}const o=n,i=gt();return o.tail=i,jt(t)}function oo(e,t){return Vt((n,r)=>pr(r,n),t,_a(e))}function zr(e,t){const n=gt(),r=Vt((i,s)=>{const l=new mt(e(s),void 0);return i.tail=l,l},n,t),o=gt();return r.tail=o,jt(n)}function Cd(e,t){return(r=>{e:for(;;){const o=r;if(hr(o))return;{const i=e(no(o));if(i==null){r=jt(o);continue e}else return i}}})(t)}function Sd(e,t){return Cd(n=>e(n)?be(n):void 0,t)}function Dd(e,t){const n=Sd(e,t);return n==null?vd():$(n)}function Id(e,t){return((r,o)=>{e:for(;;){const i=r,s=o;if(hr(s))return;if(e(no(s)))return i;r=i+1,o=jt(s);continue e}})(0,t)}function Fd(e,t,n){return Id(r=>n.Equals(e,r),t)!=null}class m extends q{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Ok","Error"]}}function It(e,t){return t.tag===0?new m(0,[e(t.fields[0])]):new m(1,[t.fields[0]])}class Aa extends q{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Choice1Of2","Choice2Of2"]}}function kd(e){return new Aa(0,[e])}function Md(e){return new Aa(1,[e])}function Td(e){throw new Error(e)}const Rd="Enumeration already finished.",Nd="Enumeration has not started. Call MoveNext.",va="The input sequence has an insufficient number of elements.",Od="Reset is not supported on this enumerator.";function Bd(){throw new Error(Od)}function mi(){throw new Error(Nd)}function Lo(){throw new Error(Rd)}class Pd{constructor(t){this.f=t}toString(){const t=this,n=4;let r=0,o="seq [";const i=Ce(t);try{for(;r<n&&i["System.Collections.IEnumerator.MoveNext"]();)r>0&&(o=o+"; "),o=o+Se(i["System.Collections.Generic.IEnumerator`1.get_Current"]()),r=r+1|0;return r===n&&(o=o+"; ..."),o+"]"}finally{J(i)}}GetEnumerator(){return this.f()}[Symbol.iterator](){return Xr(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}function Hd(e){return new Pd(e)}class jd{constructor(t,n,r){this.current=t,this.next=n,this.dispose=r}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current()}"System.Collections.IEnumerator.get_Current"(){return this.current()}"System.Collections.IEnumerator.MoveNext"(){return this.next()}"System.Collections.IEnumerator.Reset"(){Bd()}Dispose(){this.dispose()}}function io(e,t,n){return new jd(e,t,n)}function Vd(e){let t,n,r=!1,o=!1,i;const s=()=>{if(o=!0,n!=null){const l=n;try{J(l)}finally{n=void 0}}if(t!=null){const l=t;try{J(l)}finally{t=void 0}}};return io(()=>(r?o&&Lo():mi(),i!=null?$(i):Lo()),()=>{let l;if(r||(r=!0),o)return!1;{let u;for(;u==null;){const c=t,a=n;if(c!=null)if(a!=null){const d=a;if(d["System.Collections.IEnumerator.MoveNext"]())i=be(d["System.Collections.Generic.IEnumerator`1.get_Current"]()),u=!0;else try{J(d)}finally{n=void 0}}else{const d=c;d["System.Collections.IEnumerator.MoveNext"]()?n=(l=d["System.Collections.Generic.IEnumerator`1.get_Current"](),Ce(l)):(s(),u=!1)}else t=Ce(e)}return $(u)}},()=>{o||s()})}function Ud(e,t){return io(()=>t["System.Collections.Generic.IEnumerator`1.get_Current"](),()=>t["System.Collections.IEnumerator.MoveNext"](),()=>{try{J(t)}finally{e()}})}function xa(e,t,n){let r=!1,o,i=be(e());const s=()=>{if(i!=null){const u=$(i);try{n(u)}finally{i=void 0}}},l=()=>{try{s()}finally{o=void 0}};return io(()=>(r||mi(),o!=null?$(o):Lo()),()=>{if(r||(r=!0),i!=null){const u=$(i);let c;try{c=t(u)}catch(a){throw l(),a}return c!=null?(o=c,!0):(l(),!1)}else return!1},s)}function Ld(e,t){let n,r=t;return io(()=>{if(n!=null){const o=n[0];return n[1],o}else return mi()},()=>(n=e(r),n!=null?(n[0],r=n[1],!0):!1),()=>{})}function zd(e,t){t==null&&Td(e)}function Pn(e){return Hd(e)}function Xt(e){return zd("source",e),Ce(e)}function M(e){return Pn(()=>Ce(e()))}function Ea(e){return Pn(()=>Vd(e))}function Wd(e,t){return Pn(()=>Ld(e,t))}function Ca(){return M(()=>new Array(0))}function k(e){return M(()=>dd(e,null))}function ct(e){return ut(e)?S(e):e instanceof mt?e:Ed(e)}function Gd(e,t,n){return Pn(()=>xa(e,t,n))}function Qd(e,t,n){return Pn(()=>{let r=-1;return xa(e,o=>(r=r+1|0,t(r,o)),n)})}function le(e,t){return Ea([e,t])}function Zd(e,t,n){const r=Xt(t);try{const o=Xt(n);try{let i=0,s=r["System.Collections.IEnumerator.MoveNext"](),l=o["System.Collections.IEnumerator.MoveNext"]();for(;i===0&&s&&l;)i=e(r["System.Collections.Generic.IEnumerator`1.get_Current"](),o["System.Collections.Generic.IEnumerator`1.get_Current"]())|0,i===0&&(s=r["System.Collections.IEnumerator.MoveNext"](),l=o["System.Collections.IEnumerator.MoveNext"]());return(i!==0?i:s?1:l?-1:0)|0}finally{J(o)}}finally{J(r)}}function dn(e,t,n){const r=Xt(t);try{let o=!1;for(;!o&&r["System.Collections.IEnumerator.MoveNext"]();)o=n.Equals(e,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return o}finally{J(r)}}function Sa(e,t,n){const r=Xt(n);try{let o=t;for(;r["System.Collections.IEnumerator.MoveNext"]();)o=e(o,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return o}finally{J(r)}}function gi(e,t){Sa((n,r)=>{e(r)},void 0,t)}function Oe(e,t){return Gd(()=>Xt(t),n=>n["System.Collections.IEnumerator.MoveNext"]()?be(e(n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{J(n)})}function Kd(e,t){return Pn(()=>{const n=Xt(t);try{for(let r=1;r<=e;r++)if(!n["System.Collections.IEnumerator.MoveNext"]())throw new Error(va+"\\nParameter name: source");return Ud(()=>{},n)}catch(r){throw J(n),r}})}function Jd(e,t){return Qd(()=>Xt(t),(n,r)=>{if(n<e){if(r["System.Collections.IEnumerator.MoveNext"]())return be(r["System.Collections.Generic.IEnumerator`1.get_Current"]());throw new Error(va+"\\nParameter name: source")}else return},n=>{J(n)})}function Da(e,t){return M(()=>Ea(Oe(e,t)))}class Ia{constructor(t=!1){this._id=0,this._cancelled=t,this._listeners=new Map}get isCancelled(){return this._cancelled}cancel(){if(!this._cancelled){this._cancelled=!0;for(const[,t]of this._listeners)t()}}addListener(t){const n=this._id;return this._listeners.set(this._id++,t),n}removeListener(t){return this._listeners.delete(t)}register(t,n){const r=this,o=this.addListener(n==null?t:()=>t(n));return{Dispose(){r.removeListener(o)}}}Dispose(){}}class so extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,so.prototype)}}class wi{static get maxTrampolineCallCount(){return 2e3}constructor(){this.callCount=0}incrementAndCheck(){return this.callCount++>wi.maxTrampolineCallCount}hijack(t){this.callCount=0,setTimeout(t,0)}}function xt(e){return t=>{if(t.cancelToken.isCancelled)t.onCancel(new so);else if(t.trampoline.incrementAndCheck())t.trampoline.hijack(()=>{try{e(t)}catch(n){t.onError(Br(n))}});else try{e(t)}catch(n){t.onError(Br(n))}}}function $d(e,t){return xt(n=>{e({onSuccess:r=>{try{t(r)(n)}catch(o){n.onError(Br(o))}},onError:n.onError,onCancel:n.onCancel,cancelToken:n.cancelToken,trampoline:n.trampoline})})}function Xd(e){return xt(t=>t.onSuccess(e))}class qd{Bind(t,n){return $d(t,n)}Combine(t,n){return this.Bind(t,()=>n)}Delay(t){return xt(n=>t()(n))}For(t,n){const r=t[Symbol.iterator]();let o=r.next();return this.While(()=>!o.done,this.Delay(()=>{const i=n(o.value);return o=r.next(),i}))}Return(t){return Xd(t)}ReturnFrom(t){return t}TryFinally(t,n){return xt(r=>{t({onSuccess:o=>{n(),r.onSuccess(o)},onError:o=>{n(),r.onError(o)},onCancel:o=>{n(),r.onCancel(o)},cancelToken:r.cancelToken,trampoline:r.trampoline})})}TryWith(t,n){return xt(r=>{t({onSuccess:r.onSuccess,onCancel:r.onCancel,cancelToken:r.cancelToken,trampoline:r.trampoline,onError:o=>{try{n(o)(r)}catch(i){r.onError(Br(i))}}})})}Using(t,n){return this.TryFinally(n(t),()=>t.Dispose())}While(t,n){return t()?this.Bind(n,()=>this.While(t,n)):this.Return(void 0)}Zero(){return xt(t=>t.onSuccess(void 0))}}const I=new qd;class _i extends q{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["ImportId"]}}function Yd(e){return new _i(0,[e.fields[0]+1])}function ep(e,t){return new _i(0,[Po(bn,e.fields[0],t.fields[0])])}(()=>{let e;const t=new _i(0,[0]);return e=n=>Vt(ep,t,n),n=>Yd(e(n))})();class tp extends oe{constructor(t,n,r,o,i,s,l,u){super(),this.ImportId=t|0,this.User=n,this.Filename=r,this.NumberOfRecords=o|0,this.CompletedSuccessfully=i|0,this.CompletedFailed=s|0,this.NextRow=l,this.StartTime=u}}function np(){return rn("Basic.Profile.Domain.Import.Api.Admin.Read.ActiveImportDto",[],tp,()=>[["ImportId",ye],["User",Ge],["Filename",Ge],["NumberOfRecords",ye],["CompletedSuccessfully",ye],["CompletedFailed",ye],["NextRow",li(ye)],["StartTime",nr("System.DateTime")]])}class rp extends oe{constructor(t,n,r,o,i,s,l,u){super(),this.ImportId=t|0,this.User=n,this.Filename=r,this.NumberOfRecords=o|0,this.Succeeded=i|0,this.Failed=s|0,this.StartTime=l,this.StopTime=u}}function op(){return rn("Basic.Profile.Domain.Import.Api.Admin.Read.ImportHistoryDto",[],rp,()=>[["ImportId",ye],["User",Ge],["Filename",Ge],["NumberOfRecords",ye],["Succeeded",ye],["Failed",ye],["StartTime",nr("System.DateTime")],["StopTime",nr("System.DateTime")]])}class Fa extends oe{constructor(t,n){super(),this.ActiveImport=t,this.ImportHistory=n}}function ka(){return rn("Basic.Profile.Domain.Import.Api.Admin.Read.AccountImportsDto",[],Fa,()=>[["ActiveImport",li(np())],["ImportHistory",eo(op())]])}new Fa(void 0,Pe());class ip extends oe{constructor(t,n){super(),this.Column=t,this.Message=n}}function sp(){return rn("Basic.Profile.Domain.Import.Api.Admin.Read.FieldError",[],ip,()=>[["Column",Ge],["Message",Ge]])}class lp extends oe{constructor(t,n){super(),this.RowId=t|0,this.FieldErrors=n}}function ap(){return rn("Basic.Profile.Domain.Import.Api.Admin.Read.RowValidationError",[],lp,()=>[["RowId",ye],["FieldErrors",eo(sp())]])}class cp extends q{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["InvalidFileContentType","InvalidFileName","ExceedsMaxRows","FileFormatError","NoData","NoFile","MultipleFiles","RowValidationErrors","UnknownAccount","ImportInProgress"]}}function up(){return Ff("Basic.Profile.Domain.Import.Api.Admin.Read.PostImportError",[],cp,()=>[[],[],[],[["Item",Ge]],[],[],[],[["Item",eo(ap())]],[],[]])}class fp extends oe{constructor(t,n,r,o,i,s,l,u,c,a){super(),this.ImportId=t|0,this.User=n,this.Filename=r,this.TotalRecordCount=o|0,this.SucceededRecordCount=i|0,this.FailedRecordCount=s|0,this.FailedRecords=l,this.RemainingRecordCount=u|0,this.StartTime=c,this.StopTime=a}}function dp(){return rn("Basic.Profile.Domain.Import.Api.Admin.Read.ImportDto",[],fp,()=>[["ImportId",ye],["User",Ge],["Filename",Ge],["TotalRecordCount",ye],["SucceededRecordCount",ye],["FailedRecordCount",ye],["FailedRecords",eo(hp())],["RemainingRecordCount",ye],["StartTime",nr("System.DateTime")],["StopTime",li(nr("System.DateTime"))]])}class pp extends oe{constructor(t,n){super(),this.RowId=t|0,this.Reason=n}}function hp(){return rn("Basic.Profile.Domain.Import.Api.Admin.Read.FailedImportRecordDto",[],pp,()=>[["RowId",ye],["Reason",Ge]])}class mp{constructor(){}}function gp(){return new mp}function yi(e,t){return I.Delay(t)}const bi=gp();function vo(e){}function wp(e){const t=new Ia(typeof e=="boolean"?e:!1);return typeof e=="number"&&setTimeout(()=>{t.cancel()},e),t}function _p(e){e.cancel()}const yp=new Ia;function bp(e){return xt(t=>{e({onSuccess:n=>t.onSuccess(kd(n)),onError:n=>t.onSuccess(Md(n)),onCancel:t.onCancel,cancelToken:t.cancelToken,trampoline:t.trampoline})})}function Ap(e){return xt(t=>e([t.onSuccess,t.onError,t.onCancel]))}function vp(e){return xt(t=>{let n;const r=setTimeout(()=>{t.cancelToken.removeListener(n),t.onSuccess(void 0)},e);n=t.cancelToken.addListener(()=>{clearTimeout(r),t.onCancel(new so)})})}function xp(e,t){return Ep(e,t)}function Ma(e,t){return xp(e,t)}function Ep(e,t,n,r,o){typeof t!="function"&&(o=t,t=void 0);const i=new wi;e({onSuccess:t||vo,onError:n||vo,onCancel:r||vo,cancelToken:o||yp,trampoline:i})}class lo extends q{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class Cp extends q{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Header"]}}class Ta extends q{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Empty","Text","Binary","Form"]}}class mr extends oe{constructor(t,n,r,o,i,s,l,u){super(),this.url=t,this.method=n,this.headers=r,this.withCredentials=o,this.overridenMimeType=i,this.overridenResponseType=s,this.timeout=l,this.content=u}}class pn extends q{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class Ra extends oe{constructor(t,n,r,o,i,s){super(),this.statusCode=t|0,this.responseText=n,this.responseType=r,this.responseUrl=o,this.responseHeaders=i,this.content=s}}class Na{constructor(t,n){this.k=t,this.v=n}}function or(e,t){return new Na(e,t)}function re(e){return e.k}function ve(e){return e.v}class ee extends Na{constructor(t,n,r,o,i){super(t,n),this.left=r,this.right=o,this.h=i|0}}function $n(e,t,n,r,o){return new ee(e,t,n,r,o)}function we(e){return e.left}function _e(e){return e.right}function Tt(e){return e.h}function Oa(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=r;if(o instanceof ee){e=Oa(n+1,we(o)),t=_e(o);continue e}else return n+1|0}else return n|0}}function Sp(e){return Oa(0,e)}function Ke(e,t,n,r){let o;const i=e;if(i!=null){const c=i;o=c instanceof ee?Tt(c):1}else o=0;let s;const l=r;if(l!=null){const c=l;s=c instanceof ee?Tt(c):1}else s=0;const u=(o<s?s:o)|0;return u===0?or(t,n):$n(t,n,e,r,u+1)}function bs(e,t,n,r){let o,i,s,l,u;const c=e;if(c!=null){const f=c;u=f instanceof ee?Tt(f):1}else u=0;let a;const d=r;if(d!=null){const f=d;a=f instanceof ee?Tt(f):1}else a=0;if(a>u+2){const f=$(r);if(f instanceof ee)if(o=we(f),(o!=null?(i=o,i instanceof ee?Tt(i):1):0)>u+1){const p=$(we(f));if(p instanceof ee)return Ke(Ke(e,t,n,we(p)),re(p),ve(p),Ke(_e(p),re(f),ve(f),_e(f)));throw new Error("internal error: Map.rebalance")}else return Ke(Ke(e,t,n,we(f)),re(f),ve(f),_e(f));else throw new Error("internal error: Map.rebalance")}else if(u>a+2){const f=$(e);if(f instanceof ee)if(s=_e(f),(s!=null?(l=s,l instanceof ee?Tt(l):1):0)>a+1){const p=$(_e(f));if(p instanceof ee)return Ke(Ke(we(f),re(f),ve(f),we(p)),re(p),ve(p),Ke(_e(p),t,n,r));throw new Error("internal error: Map.rebalance")}else return Ke(we(f),re(f),ve(f),Ke(_e(f),t,n,r));else throw new Error("internal error: Map.rebalance")}else return Ke(e,t,n,r)}function En(e,t,n,r){if(r!=null){const o=r,i=e.Compare(t,re(o))|0;return o instanceof ee?i<0?bs(En(e,t,n,we(o)),re(o),ve(o),_e(o)):i===0?$n(t,n,we(o),_e(o),Tt(o)):bs(we(o),re(o),ve(o),En(e,t,n,_e(o))):i<0?$n(t,n,void 0,r,2):i===0?or(t,n):$n(t,n,r,void 0,2)}else return or(t,n)}function Ba(e,t,n){e:for(;;){const r=e,o=t,i=n;if(i!=null){const s=i,l=r.Compare(o,re(s))|0;if(l===0)return be(ve(s));if(s instanceof ee){e=r,t=o,n=l<0?we(s):_e(s);continue e}else return}else return}}function Dp(e,t,n){const r=Ba(e,t,n);if(r==null)throw new Error;return $(r)}function Ip(e,t,n){e:for(;;){const r=e,o=t,i=n;if(i!=null){const s=i,l=r.Compare(o,re(s))|0;if(s instanceof ee)if(l<0){e=r,t=o,n=we(s);continue e}else{if(l===0)return!0;e=r,t=o,n=_e(s);continue e}else return l===0}else return!1}}function Pa(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=r;if(o instanceof ee){Pa(n,we(o)),n(re(o),ve(o)),e=n,t=_e(o);continue e}else n(re(o),ve(o))}break}}function Fp(e,t){Pa(e,t)}function zo(e,t){if(t!=null){const n=t;if(n instanceof ee){const r=zo(e,we(n)),o=e(re(n),ve(n)),i=zo(e,_e(n));return $n(re(n),o,r,i,Tt(n))}else return or(re(n),e(re(n),ve(n)))}else return void 0}function kp(e,t){return zo(e,t)}function Mp(e,t,n){let r=n;Fp((o,i)=>{t[r]=[o,i],r=r+1|0},e)}function Tp(e,t){return Vt((n,r)=>En(e,r[0],r[1],n),void 0,t)}function Rp(e,t,n){e:for(;;){const r=e,o=t,i=n;if(i["System.Collections.IEnumerator.MoveNext"]()){const s=i["System.Collections.Generic.IEnumerator`1.get_Current"]();e=r,t=En(r,s[0],s[1],o),n=i;continue e}else return o}}function Np(e,t){let n=void 0;for(let r=0;r<=t.length-1;r++){const o=t[r];n=En(e,o[0],o[1],n)}return n}function Ha(e,t){if(ut(t))return Np(e,t);if(t instanceof mt)return Tp(e,t);{const n=Ce(t);try{return Rp(e,void 0,n)}finally{J(n)}}}class Op extends oe{constructor(t,n){super(),this.stack=t,this.started=n}}function ja(e){e:for(;;){const t=e;if(N(t))return Pe();{const n=R(t),r=x(t);if(r!=null){const o=r;if(o instanceof ee){e=Z([we(o),or(re(o),ve(o)),_e(o)],n);continue e}else return t}else{e=n;continue e}}}}function As(e){return new Op(ja(Ee(e)),!1)}function Bp(){throw new Error("enumeration not started")}function Pp(){throw new Error("enumeration already finished")}function vs(e){if(e.started){const t=e.stack;if(N(t))return Pp();if(x(t)!=null){const n=x(t);if(n instanceof ee)throw new Error("Please report error: Map iterator, unexpected stack for current");return[re(n),ve(n)]}else throw new Error("Please report error: Map iterator, unexpected stack for current")}else return Bp()}function Hp(e){if(e.started){const t=e.stack;if(N(t))return!1;if(x(t)!=null){if(x(t)instanceof ee)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=ja(R(t)),!N(e.stack)}else throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}else return e.started=!0,!N(e.stack)}function xs(e){let t=As(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return vs(t)},"System.Collections.IEnumerator.get_Current"(){return vs(t)},"System.Collections.IEnumerator.MoveNext"(){return Hp(t)},"System.Collections.IEnumerator.Reset"(){t=As(e)},Dispose(){}}}class Wr{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return zp(this)|0}Equals(t){const n=this;if(t instanceof Wr){const r=Ce(n);try{const o=Ce(t);try{const i=()=>{const s=r["System.Collections.IEnumerator.MoveNext"]();if(s===o["System.Collections.IEnumerator.MoveNext"]())if(s){const l=r["System.Collections.Generic.IEnumerator`1.get_Current"](),u=o["System.Collections.Generic.IEnumerator`1.get_Current"]();return et(l[0],u[0])&&et(l[1],u[1])?i():!1}else return!0;else return!1};return i()}finally{J(o)}}finally{J(r)}}else return!1}toString(){return"map ["+Dt("; ",Oe(n=>od("({0}, {1})",n[0],n[1]),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(){const t=this;return Array.from(t)}GetEnumerator(){return xs(this.tree)}[Symbol.iterator](){return Xr(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return xs(this.tree)}CompareTo(t){const n=this;if(t instanceof Wr)return Zd((r,o)=>{const i=n.comparer.Compare(r[0],o[0])|0;return(i!==0?i:dt(r[1],o[1]))|0},n,t)|0;throw new Error("not comparable\\nParameter name: obj")}"System.Collections.Generic.ICollection`1.Add2B595"(t){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Clear"(){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Remove2B595"(t){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Contains2B595"(t){const n=this;return Cs(n,t[0])&&et(Es(n,t[0]),t[1])}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){Mp(this.tree,t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return xo(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return xo(this)|0}get size(){return xo(this)|0}clear(){throw new Error("Map cannot be mutated")}delete(t){throw new Error("Map cannot be mutated")}entries(){return Oe(n=>[n[0],n[1]],this)}get(t){return Es(this,t)}has(t){return Cs(this,t)}keys(){return Oe(n=>n[0],this)}set(t,n){throw new Error("Map cannot be mutated")}values(){return Oe(n=>n[1],this)}forEach(t,n){const r=this;gi(o=>{kn(2,t,[o[1]])(o[0])(r)},r)}}function gr(e,t){return new Wr(e,t)}function jp(e){return gr(e,void 0)}function Vp(e,t,n){return gr(e.comparer,En(e.comparer,t,n,e.tree))}function Es(e,t){return Dp(e.comparer,t,e.tree)}function Up(e,t){return gr(e.comparer,kp(t,e.tree))}function xo(e){return Sp(e.tree)}function Cs(e,t){return Ip(e.comparer,t,e.tree)}function Lp(e,t){return Ba(e.comparer,t,e.tree)}function zp(e){const t=(o,i)=>(o<<1)+i+631;let n=0;const r=Ce(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const o=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n=t(n,St(o[0]))|0,n=t(n,St(o[1]))|0}}finally{J(r)}return n|0}function Wp(e,t,n){return Vp(n,e,t)}function Gp(e,t){return Lp(t,e)}function Qp(e,t){return Up(t,e)}function Zp(e,t){return gr(t,Ha(t,e))}function Kp(e,t){return gr(t,Ha(t,e))}function Va(e){return jp(e)}function Ai(e){return new Cp(0,["Authorization",e])}const zt=new mr("",new lo(0,[]),Pe(),!1,void 0,void 0,void 0,new Ta(0,[]));new Ra(0,"","","",Va({Compare:bn}),new pn(0,[""]));function Ss(e,t){return id(t)?[t]:ha(t,[e],void 0,0)}function Jp(e){switch(e.tag){case 1:return"POST";case 3:return"PATCH";case 2:return"PUT";case 4:return"DELETE";case 6:return"OPTIONS";case 5:return"HEAD";default:return"GET"}}function vi(e){return new mr(e,zt.method,zt.headers,zt.withCredentials,zt.overridenMimeType,zt.overridenResponseType,zt.timeout,zt.content)}function xi(e,t){return new mr(t.url,e,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function Ei(e,t){return new mr(t.url,t.method,oo(t.headers,Ee(e)),t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function $p(e,t){return new mr(t.url,t.method,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,e)}function Ci(e){return Ap(t=>{const n=new XMLHttpRequest;n.open(Jp(e.method),e.url),n.onreadystatechange=()=>{let u,c,a,d,f,p,g;n.readyState===4&&t[0]((u=(c=n.responseType,c===""||c==="text"?n.responseText:""),a=n.status|0,d=n.responseType,f=(p=n.responseType,p===""?new pn(0,[n.responseText]):p==="text"?new pn(0,[n.responseText]):p==="arraybuffer"?new pn(2,[n.response]):p==="blob"?new pn(1,[n.response]):new pn(3,[n.response])),g=Kp(md(_=>{const w=S(Ss(":",_));if(!N(w))return[x(w).toLocaleLowerCase(),Dt(":",R(w)).trim()]},Ss(`\r
|
|
4
|
-
`,n.getAllResponseHeaders()),null),{Compare:bn}),new Ra(a,u,d,n.responseURL,g,f)))};const r=Ce(e.headers);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const u=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n.setRequestHeader(u.fields[0],u.fields[1])}}finally{J(r)}n.withCredentials=e.withCredentials;const o=e.overridenMimeType;if(o!=null){const u=o;n.overrideMimeType(u)}const i=e.overridenResponseType;i==null||(i.tag===1?n.responseType="blob":i.tag===2?n.responseType="arraybuffer":n.responseType="text");const s=e.timeout;if(s!=null){const u=s|0;n.timeout=u|0}const l=e.content;switch(l.tag){case 1:{n.send(be(l.fields[0]));break}case 3:{n.send(be(l.fields[0]));break}case 2:{n.send(be(l.fields[0]));break}default:n.send()}})}class v extends q{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class Cn extends q{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["PascalCase","CamelCase","SnakeCase"]}}function Ds(e){return e.slice(void 0,0+1).toLowerCase()+e.slice(1,e.length)}function Xp(e,t){switch(e.tag){case 2:return Yf(Ds(t),"[A-Z]","_$0").toLowerCase();case 0:return t;default:return Ds(t)}}const qp=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,Is=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,Yp=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function eh(e){function t(r){return r.replace(Is,"$1-$2-$3-$4-$5")}const n=e.trim().toLowerCase();if(qp.test(n))return ad(n,"{","}","(",")");if(Is.test(n))return t(n);if(Yp.test(n))return t(n.replace(/[\{\},]|0x/g,""));throw new Error("Guid should contain 32 digits with 4 dashes: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx")}function th(e,t){try{return t.contents=eh(e),!0}catch{return!1}}class Ua extends oe{constructor(t,n){super(),this.bound=t|0,this.digits=n}}function La(e,t){e:for(;;){const n=e,r=t;if(r===0)return 1;if(r%2===0){e=n*n,t=~~(r/2);continue e}else return n*La(n*n,~~(r/2))|0}}he(2013265921,0,!1);he(2013265921,0,!0);const nh=29;Bn(nh-1,e=>La(2,e),Int32Array);function Wo(e){return e.bound}function Kn(e,t){return e.digits[t]}function Go(e,t){return te(Kn(e,t),!1,2)}function Gr(e,t,n){e.digits[t]=n|0}function Si(e,t){e:for(;;){const n=e,r=t;if(r===0)return he(1,0,!1);if(r%2===0){e=We(n,n),t=~~(r/2);continue e}else return We(n,Si(We(n,n),~~(r/2)))}}function Sn(e,t){e:for(;;){const n=e,r=t;if(r===0)return 1;if(r%2===0){e=n*n,t=~~(r/2);continue e}else return n*Sn(n*n,~~(r/2))|0}}function rh(e){let t=0;for(let n=0;n<=e.bound-1;n++)t=e.digits[n]+(t<<3)|0;return t|0}const Dn=24,Zt=16777216,wt=he(16777216,0,!1),Hn=he(16777215,0,!1);he(16777215,0,!0);function qt(e){return new Ua(e,new Int32Array(e))}function oh(e){return new Ua(e.bound,pd(e.digits))}function _t(e){const n=((r,o)=>{e:for(;;){const i=r,s=o;if(s===-1||i[s]!==0)return s+1|0;r=i,o=s-1;continue e}})(e.digits,e.bound-1)|0;return e.bound=n|0,e}const Fs=2,ks=3;function wr(e){const t=(e<0?0:e)|0;if(t<Zt){const n=qt(1);return n.digits[0]=t|0,_t(n)}else{const n=qt(Fs);for(let r=0;r<=Fs-1;r++)n.digits[r]=~~(t/Sn(Zt,r))%Zt|0;return _t(n)}}function ih(e){const t=Yr(e,he(0,0,!1))<0?he(0,0,!1):e,n=qt(ks);for(let r=0;r<=ks-1;r++)n.digits[r]=~~ht(Ef(pt(t,Si(wt,r)),wt))|0;return _t(n)}function sh(e){if(e.bound===1)return e.digits[0]|0;{let t=0;for(let n=e.bound-1;n>=0;n--)t=e.digits[n]+Zt*t|0;return t|0}}const lh=wr(1),ah=wr(0);function Ie(e){return e.bound-1}function Ae(e){return e.bound===0}function Ms(e,t){return e.bound===t.bound?((r,o,i)=>{e:for(;;){const s=r,l=o,u=i;if(u===-1)return!0;if(s[u]===l[u]){r=s,o=l,i=u-1;continue e}else return!1}})(e.digits,t.digits,e.bound-1):!1}function ch(e,t,n,r){return e.bound+t<n.bound+r?-1:e.bound+t>n.bound+t?1:((i,s,l)=>{e:for(;;){const u=i,c=s,a=l;if(a===-1)return 0;{const d=(a<t?0:u[a-t])|0,f=(a<r?0:c[a-r])|0;if(d===f){i=u,s=c,l=a-1;continue e}else return d<f?-1:1}}})(e.digits,n.digits,e.bound+t-1)|0}function uh(e,t){return e.bound<t.bound?-1:e.bound>t.bound?1:((r,o,i)=>{e:for(;;){const s=r,l=o,u=i;if(u===-1)return 0;if(s[u]===l[u]){r=s,o=l,i=u-1;continue e}else return s[u]<l[u]?-1:1}})(e.digits,t.digits,e.bound-1)|0}function Ts(e,t){return uh(e,t)===-1}function fh(e,t){const n=qt(2),r=We(te(e,!1,2),te(t,!1,2));return Gr(n,0,~~ht(Nn(r,Hn))),Gr(n,1,~~ht(pt(r,wt))),_t(n)}function za(e,t,n){e:for(;;){const r=e,o=t,i=n;if(Yr(o,he(0,0,!1))>0){const s=ze(Go(r,i),o);Gr(r,i,~~ht(Nn(s,Hn))),e=r,t=pt(s,wt),n=i+1;continue e}break}}function Rs(e,t){const n=Wo(e)|0,r=qt(n+1),o=te(t,!1,2);let i=he(0,0,!1);for(let s=0;s<=n-1;s++){const l=ze(ze(i,Go(r,s)),We(Go(e,s),o));Gr(r,s,~~ht(Nn(l,Hn))),i=pt(l,wt)}return za(r,i,n),_t(r)}function dh(e,t){const n=qt(e.bound+t.bound),r=n.digits;for(let o=0;o<=e.bound-1;o++){const i=te(e.digits[o],!1,2);let s=he(0,0,!1),l=o;for(let u=0;u<=t.bound-1;u++){const c=te(t.digits[u],!1,2),a=ze(ze(te(r[l],!1,2),s),We(i,c));r[l]=~~ht(Nn(a,Hn))|0,s=pt(a,wt),l=l+1|0}za(n,s,l)}return _t(n)}function ph(e,t){const n=Wo(e)===1,r=Wo(t)===1;return n&&r?fh(Kn(e,0),Kn(t,0)):n?Rs(t,Kn(e,0)):r?Rs(e,Kn(t,0)):dh(e,t)}class hh extends oe{constructor(t,n,r,o,i,s,l){super(),this.bigL=t|0,this.twoToBigL=n|0,this.k=r|0,this.bigK=o|0,this.bigN=i|0,this.split=s|0,this.splits=l}}function Me(e,t,n,r){return new hh(e,Sn(2,e),t,n,r,~~(Dn/e),Bn(~~(Dn/e),o=>Sn(2,e*o),Int32Array))}const mh=[Me(1,28,268435456,268435456),Me(2,26,67108864,134217728),Me(3,24,16777216,50331648),Me(4,22,4194304,16777216),Me(5,20,1048576,5242880),Me(6,18,262144,1572864),Me(7,16,65536,458752),Me(8,14,16384,131072),Me(9,12,4096,36864),Me(10,10,1024,10240),Me(11,8,256,2816),Me(12,6,64,768),Me(13,4,16,208)];Bn(Dn,e=>Sn(2,e)-1,Int32Array);Bn(Dn,e=>Sn(2,e),Int32Array);Bn(Dn,e=>Si(he(2,0,!1),e),null);~~(mh[0].bigN/Dn);function gh(e,t){return ph(e,t)}function wh(e,t,n,r){const o=Ie(e)|0,i=e.digits,s=Ie(n)|0,l=n.digits,u=te(t,!1,2);let c=0,a=We(u,te(l[0],!1,2));for(;Yr(a,he(0,0,!1))>0||c<s;){if(c>o)throw new Error("scaleSubInPlace: pre-condition did not apply, result would be -ve");let d=~~ht(Nn(a,Hn)),f=pt(a,wt);d<=i[c+r]?i[c+r]=i[c+r]-d|0:(i[c+r]=i[c+r]+(Zt-d)|0,f=ze(f,he(1,0,!1))),c<s?a=ze(f,We(u,te(l[c+1],!1,2))):a=f,c=c+1|0}_t(e)}function _h(e,t,n,r){const o=Ie(e)|0,i=e.digits,s=Ie(n)|0,l=n.digits,u=te(t,!1,2);let c=0,a=We(u,te(l[0],!1,2));for(;Yr(a,he(0,0,!1))>0||c<s;){if(c>o)throw new Error("scaleSubInPlace: pre-condition did not apply, result would be -ve");let d=~~ht(Nn(a,Hn)),f=pt(a,wt);d<Zt-i[c+r]?i[c+r]=i[c+r]+d|0:(i[c+r]=d-(Zt-i[c+r])|0,f=ze(f,he(1,0,!1))),c<s?a=ze(f,We(u,te(l[c+1],!1,2))):a=f,c=c+1|0}_t(e)}function yh(e,t,n){const r=Ie(t)|0,o=Ie(e)|0,i=r|0;if(o<i+n)return 0;{const s=e.digits,l=t.digits,u=(i===0?o===n?~~(s[n]/l[0]):~~ht(pt(ze(We(te(s[o],!1,2),wt),te(s[o-1],!1,2)),te(l[0],!1,2))):o===i+n?~~(s[o]/(l[i]+1)):~~ht(pt(ze(We(te(s[o],!1,2),wt),te(s[o-1],!1,2)),ze(te(l[i],!1,2),he(1,0,!1)))))|0;return u===0?ch(t,n,e,0)!==1?1:0:u|0}}function bh(e,t){if(Ae(t))throw new Error;if(Ie(e)<Ie(t))return[ah,e];{const n=oh(e),r=qt(Ie(e)-Ie(t)+1+1);let o=Ie(e);const i=Ie(t)|0;let s=o-i,l=!1;for(;!l;){const u=yh(n,t,s)|0;u>0?(wh(n,u,t,s),_h(r,u,lh,s)):(l=u===0&&s===0,l||(o===i+s?s=s-1|0:(s=s-1|0,o=o-1|0)))}return[_t(r),_t(n)]}}wr(2);function Qo(e){return wr(e)}function Ah(e){return ih(e)}function Ns(e){const t=Ie(e)|0,n=(i,s,l)=>{e:for(;;){const u=i,c=s,a=l;if(Ie(a)>t)return Ne([c,a],u);i=Ne([c,a],u),s=c+1,l=gh(a,a);continue e}},r=(i,s,l,u)=>{e:for(;;){const c=i,a=s,d=l,f=u;if(N(f)){const p=sh(d)|0;return c&&p===0?a:Ne(Rt(p),a)}else{const p=R(f),g=bh(d,x(f)[1]),_=g[1],w=g[0];if(c&&Ae(w)){i=c,s=a,l=_,u=p;continue e}else{i=c,s=r(!1,a,_,p),l=w,u=p;continue e}}}},o=r(!0,Pe(),e,n(Pe(),0,wr(10)));return N(o)?"0":Dt("",ro(o))}function vh(e){return e.bound<=1}function Os(e){const t=e,n=0;return n<t.bound?t.digits[n]|0:0}class xe{constructor(t,n){this.signInt=t|0,this.v=n}toString(){const t=this,n=Yt(t)|0;if(n===-1)return Ae(W(t))?"0":"-"+Ns(W(t));if(n===0)return"0";if(n===1)return Ns(W(t));throw new Error("signs should be +/- 1 or 0")}Equals(t){const n=this;return t instanceof xe&&Wa(n,t)}GetHashCode(){return Ch(this)|0}toJSON(){return Se(this)}CompareTo(t){const n=this;if(t instanceof xe)return Eh(n,t)|0;throw new Error("the objects are not comparable\\nParameter name: obj")}}function Eo(e,t){return new xe(e,t)}xe.smallLim=4096,xe.smallPosTab=Bn(xe.smallLim,Qo,null),xe.one=So(1),xe.two=So(2),xe.zero=So(0);function Co(e){return vh(e)&&Os(e)<xe.smallLim?xe.smallPosTab[Os(e)]:e}function Yt(e){return e.signInt}function W(e){return e.v}function Wa(e,t){const n=Yt(e)|0,r=Yt(t)|0;let o;switch(n===-1?r===-1?o=1:r===0?o=8:r===1?o=3:o=9:n===0?r===-1?o=6:r===0?o=4:r===1?o=5:o=9:n===1?r===-1?o=2:r===0?o=7:r===1?o=0:o=9:o=9,o){case 0:return Ms(W(e),W(t));case 1:return Ms(W(e),W(t));case 2:return Ae(W(e))?Ae(W(t)):!1;case 3:return Ae(W(e))?Ae(W(t)):!1;case 4:return!0;case 5:return Ae(W(t));case 6:return Ae(W(t));case 7:return Ae(W(e));case 8:return Ae(W(e));case 9:throw new Error("signs should be +/- 1 or 0\\nParameter name: x")}}function xh(e,t){const n=Yt(e)|0,r=Yt(t)|0;let o;switch(n===-1?r===-1?o=1:r===0?o=8:r===1?o=3:o=9:n===0?r===-1?o=6:r===0?o=4:r===1?o=5:o=9:n===1?r===-1?o=2:r===0?o=7:r===1?o=0:o=9:o=9,o){case 0:return Ts(W(e),W(t));case 1:return Ts(W(t),W(e));case 2:return!1;case 3:return Ae(W(e))?!Ae(W(t)):!0;case 4:return!1;case 5:return!Ae(W(t));case 6:return!1;case 7:return!1;case 8:return!Ae(W(e));case 9:throw new Error("signs should be +/- 1 or 0\\nParameter name: x")}}function Eh(e,t){return xh(e,t)?-1:Wa(e,t)?0:1}function Ch(e){return Yt(e)===0?1:Yt(e)+rh(W(e))|0}function So(e){return e>=0?Eo(1,Co(Qo(e))):e===-2147483648?Eo(-1,Co(Ah(Cf(te(e,!1,2))))):Eo(-1,Co(Qo(of(e))))}function Ga(){return xe.one}function Sh(){return xe.two}function Qa(){return xe.zero}Qa();Ga();Sh();Qa();Ga();function Za(e,t){Dh(t);const n=new Date(e);return n.offset=t!=null?t:new Date().getTimezoneOffset()*-6e4,n}function Dh(e){if(e!=null&&e!==0){if(e%6e4!==0)throw new Error("Offset must be specified in whole minutes.");if(Math.abs(e/36e5)>14)throw new Error("Offset must be within plus or minus 14 hours.")}}function Ih(){return Za(-621355968e5,0)}function Fh(e){const[t,n]=ua(e),r=n==null?t.getTimezoneOffset()*-6e4:n==="Z"?0:n*6e4;return Za(t.getTime(),r)}function kh(e,t){try{return t.contents=Fh(e),!0}catch{return!1}}function Bs(e=0,t=0,n=0,r=0,o=0){switch(arguments.length){case 1:return Mh(arguments[0]);case 3:e=0,t=arguments[0],n=arguments[1],r=arguments[2],o=0;break}return e*864e5+t*36e5+n*6e4+r*1e3+o}function Mh(e){return Sf(pt(e,1e4))}function Th(e){const t=e.search("\\."),n=e.search("\\:");if(t===-1&&n===-1){const r=parseInt(e,0);if(isNaN(r))throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`);return Bs(r,0,0,0,0)}if(n>0){const r=/^(-?)((\d+)\.)?(?:0*)([0-9]|0[0-9]|1[0-9]|2[0-3]):(?:0*)([0-5][0-9]|[0-9])(:(?:0*)([0-5][0-9]|[0-9]))?\.?(\d+)?$/.exec(e);if(r!=null&&r[4]!=null&&r[5]!=null){let o=0,i=0,s=0;const l=r[1]!=null&&r[1]==="-"?-1:1,u=+r[4],c=+r[5];if(r[3]!=null&&(o=+r[3]),r[7]!=null&&(s=+r[7]),r[8]!=null)switch(r[8].length){case 1:i=+r[8]*100;break;case 2:i=+r[8]*10;break;case 3:i=+r[8];break;case 4:i=+r[8]/10;break;case 5:i=+r[8]/100;break;case 6:i=+r[8]/1e3;break;case 7:i=+r[8]/1e4;break;default:throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}return l*Bs(o,u,c,s,i)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}function Rh(e,t){try{return t.contents=Th(e),!0}catch{return!1}}class Ka{constructor(t){this.k=t}}function Te(e){return new Ka(e)}function D(e){return e.k}class B extends Ka{constructor(t,n,r,o){super(t),this.left=n,this.right=r,this.h=o|0}}function Re(e,t,n,r){return new B(e,t,n,r)}function U(e){return e.left}function j(e){return e.right}function hn(e){return e.h}function Ja(e,t){e:for(;;){const n=e,r=t;if(n!=null){const o=n;if(o instanceof B){e=U(o),t=Ja(j(o),r+1);continue e}else return r+1|0}else return r|0}}function Nh(e){return Ja(e,0)}function Je(e,t,n){let r;const o=e;if(o!=null){const u=o;r=u instanceof B?hn(u):1}else r=0;let i;const s=n;if(s!=null){const u=s;i=u instanceof B?hn(u):1}else i=0;const l=(r<i?i:r)|0;return l===0?Te(t):Re(t,e,n,l+1)}function Ps(e,t,n){let r,o,i,s,l;const u=e;if(u!=null){const d=u;l=d instanceof B?hn(d):1}else l=0;let c;const a=n;if(a!=null){const d=a;c=d instanceof B?hn(d):1}else c=0;if(c>l+2){const d=$(n);if(d instanceof B)if(r=U(d),(r!=null?(o=r,o instanceof B?hn(o):1):0)>l+1){const f=$(U(d));if(f instanceof B)return Je(Je(e,t,U(f)),D(f),Je(j(f),D(d),j(d)));throw new Error("internal error: Set.rebalance")}else return Je(Je(e,t,U(d)),D(d),j(d));else throw new Error("internal error: Set.rebalance")}else if(l>c+2){const d=$(e);if(d instanceof B)if(i=j(d),(i!=null?(s=i,s instanceof B?hn(s):1):0)>c+1){const f=$(j(d));if(f instanceof B)return Je(Je(U(d),D(d),U(f)),D(f),Je(j(f),t,n));throw new Error("internal error: Set.rebalance")}else return Je(U(d),D(d),Je(j(d),t,n));else throw new Error("internal error: Set.rebalance")}else return Je(e,t,n)}function ir(e,t,n){if(n!=null){const r=n,o=e.Compare(t,D(r))|0;if(r instanceof B)return o<0?Ps(ir(e,t,U(r)),D(r),j(r)):o===0?n:Ps(U(r),D(r),ir(e,t,j(r)));{const i=e.Compare(t,D(r))|0;return i<0?Re(t,void 0,n,2):i===0?n:Re(t,n,void 0,2)}}else return Te(t)}function $a(e,t,n){e:for(;;){const r=e,o=t,i=n;if(i!=null){const s=i,l=r.Compare(o,D(s))|0;if(s instanceof B)if(l<0){e=r,t=o,n=U(s);continue e}else{if(l===0)return!0;e=r,t=o,n=j(s);continue e}else return l===0}else return!1}}function Xa(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=r;if(o instanceof B){Xa(n,U(o)),n(D(o)),e=n,t=j(o);continue e}else n(D(o))}break}}class Oh extends oe{constructor(t,n){super(),this.stack=t,this.started=n}}function qa(e){e:for(;;){const t=e;if(N(t))return Pe();{const n=x(t),r=R(t);if(n!=null){const o=n;if(o instanceof B){e=Z([U(o),Te(D(o)),j(o)],r);continue e}else return t}else{e=r;continue e}}}}function Hs(e){return new Oh(qa(Ee(e)),!1)}function Bh(){throw new Error("Enumeration not started")}function Ph(){throw new Error("Enumeration already started")}function js(e){if(e.started){const t=e.stack;if(N(t))return Ph();if(x(t)!=null){const n=x(t);return D(n)}else throw new Error("Please report error: Set iterator, unexpected stack for current")}else return Bh()}function Hh(e){if(e.started){const t=e.stack;if(N(t))return!1;if(x(t)!=null){if(x(t)instanceof B)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=qa(R(t)),!N(e.stack)}else throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}else return e.started=!0,!N(e.stack)}function Vs(e){let t=Hs(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return js(t)},"System.Collections.IEnumerator.get_Current"(){return js(t)},"System.Collections.IEnumerator.MoveNext"(){return Hh(t)},"System.Collections.IEnumerator.Reset"(){t=Hs(e)},Dispose(){}}}function jh(e,t,n){e:for(;;){const r=e,o=t,i=n;if(N(o))return N(i)?0:-1;if(N(i))return 1;if(x(i)!=null)if(x(o)!=null){const s=x(o),l=x(i);if(s instanceof B)if(U(s)==null)if(l instanceof B)if(U(l)==null){const u=r.Compare(D(s),D(l))|0;if(u!==0)return u|0;e=r,t=Ne(j(s),R(o)),n=Ne(j(l),R(i));continue e}else{let u,c,a,d,f;switch(N(o)?N(i)?u=2:x(i)!=null?(u=1,d=R(i),f=x(i)):u=2:x(o)!=null?(u=0,c=R(o),a=x(o)):N(i)?u=2:x(i)!=null?(u=1,d=R(i),f=x(i)):u=2,u){case 0:if(a instanceof B){e=r,t=Z([U(a),Re(D(a),void 0,j(a),0)],c),n=i;continue e}else{e=r,t=Z([void 0,Te(D(a))],c),n=i;continue e}case 1:if(f instanceof B){e=r,t=o,n=Z([U(f),Re(D(f),void 0,j(f),0)],d);continue e}else{e=r,t=o,n=Z([void 0,Te(D(f))],d);continue e}case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else{const u=r.Compare(D(s),D(l))|0;if(u!==0)return u|0;e=r,t=Ne(j(s),R(o)),n=Ne(void 0,R(i));continue e}else{let u,c,a,d,f;switch(N(o)?N(i)?u=2:x(i)!=null?(u=1,d=R(i),f=x(i)):u=2:x(o)!=null?(u=0,c=R(o),a=x(o)):N(i)?u=2:x(i)!=null?(u=1,d=R(i),f=x(i)):u=2,u){case 0:if(a instanceof B){e=r,t=Z([U(a),Re(D(a),void 0,j(a),0)],c),n=i;continue e}else{e=r,t=Z([void 0,Te(D(a))],c),n=i;continue e}case 1:if(f instanceof B){e=r,t=o,n=Z([U(f),Re(D(f),void 0,j(f),0)],d);continue e}else{e=r,t=o,n=Z([void 0,Te(D(f))],d);continue e}case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else if(l instanceof B)if(U(l)==null){const u=r.Compare(D(s),D(l))|0;if(u!==0)return u|0;e=r,t=Ne(void 0,R(o)),n=Ne(j(l),R(i));continue e}else{let u,c,a,d,f;switch(N(o)?N(i)?u=2:x(i)!=null?(u=1,d=R(i),f=x(i)):u=2:x(o)!=null?(u=0,c=R(o),a=x(o)):N(i)?u=2:x(i)!=null?(u=1,d=R(i),f=x(i)):u=2,u){case 0:if(a instanceof B){e=r,t=Z([U(a),Re(D(a),void 0,j(a),0)],c),n=i;continue e}else{e=r,t=Z([void 0,Te(D(a))],c),n=i;continue e}case 1:if(f instanceof B){e=r,t=o,n=Z([U(f),Re(D(f),void 0,j(f),0)],d);continue e}else{e=r,t=o,n=Z([void 0,Te(D(f))],d);continue e}case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else{const u=r.Compare(D(s),D(l))|0;if(u!==0)return u|0;e=r,t=R(o),n=R(i);continue e}}else{x(i);let s,l,u,c,a;switch(N(o)?N(i)?s=2:x(i)!=null?(s=1,c=R(i),a=x(i)):s=2:x(o)!=null?(s=0,l=R(o),u=x(o)):N(i)?s=2:x(i)!=null?(s=1,c=R(i),a=x(i)):s=2,s){case 0:if(u instanceof B){e=r,t=Z([U(u),Re(D(u),void 0,j(u),0)],l),n=i;continue e}else{e=r,t=Z([void 0,Te(D(u))],l),n=i;continue e}case 1:if(a instanceof B){e=r,t=o,n=Z([U(a),Re(D(a),void 0,j(a),0)],c);continue e}else{e=r,t=o,n=Z([void 0,Te(D(a))],c);continue e}case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else if(x(o)!=null){x(o);let s,l,u,c,a;switch(N(o)?N(i)?s=2:x(i)!=null?(s=1,c=R(i),a=x(i)):s=2:x(o)!=null?(s=0,l=R(o),u=x(o)):N(i)?s=2:x(i)!=null?(s=1,c=R(i),a=x(i)):s=2,s){case 0:if(u instanceof B){e=r,t=Z([U(u),Re(D(u),void 0,j(u),0)],l),n=i;continue e}else{e=r,t=Z([void 0,Te(D(u))],l),n=i;continue e}case 1:if(a instanceof B){e=r,t=o,n=Z([U(a),Re(D(a),void 0,j(a),0)],c);continue e}else{e=r,t=o,n=Z([void 0,Te(D(a))],c);continue e}case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else{e=r,t=R(o),n=R(i);continue e}break}}function Us(e,t,n){return t==null?n==null?0:-1:n==null?1:jh(e,Ee(t),Ee(n))|0}function Vh(e,t,n){let r=n;Xa(o=>{t[r]=o,r=r+1|0},e)}function Uh(e,t,n){e:for(;;){const r=e,o=t,i=n;if(i["System.Collections.IEnumerator.MoveNext"]()){e=r,t=ir(r,i["System.Collections.Generic.IEnumerator`1.get_Current"](),o),n=i;continue e}else return o}}function Lh(e,t){return hi((n,r)=>ir(e,r,n),void 0,t)}function zh(e,t){return Vt((n,r)=>ir(e,r,n),void 0,t)}function Wh(e,t){if(ut(t))return Lh(e,t);if(t instanceof mt)return zh(e,t);{const n=Ce(t);try{return Uh(e,void 0,n)}finally{J(n)}}}class Di{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return Zh(this)|0}Equals(t){const n=this;return t instanceof Di&&Us(kr(n),ot(n),ot(t))===0}toString(){return"set ["+Dt("; ",Oe(n=>Se(n),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(){const t=this;return Array.from(t)}CompareTo(t){const n=this;return Us(kr(n),ot(n),ot(t))|0}"System.Collections.Generic.ICollection`1.Add2B595"(t){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Clear"(){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Remove2B595"(t){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Contains2B595"(t){const n=this;return $a(kr(n),t,ot(n))}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){Vh(ot(this),t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return Do(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return Do(this)|0}GetEnumerator(){return Vs(ot(this))}[Symbol.iterator](){return Xr(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return Vs(ot(this))}get size(){return Do(this)|0}add(t){throw new Error("Set cannot be mutated")}clear(){throw new Error("Set cannot be mutated")}delete(t){throw new Error("Set cannot be mutated")}has(t){return Qh(this,t)}keys(){return Oe(n=>n,this)}values(){return Oe(n=>n,this)}entries(){return Oe(n=>[n,n],this)}forEach(t,n){const r=this;gi(o=>{kn(2,t,[o])(o)(r)},r)}}function Gh(e,t){return new Di(e,t)}function kr(e){return e.comparer}function ot(e){return e.tree}function Do(e){return Nh(ot(e))}function Qh(e,t){return $a(kr(e),t,ot(e))}function Zh(e){let t=0;const n=Ce(e);try{for(;n["System.Collections.IEnumerator.MoveNext"]();){const r=n["System.Collections.Generic.IEnumerator`1.get_Current"]();t=(t<<1)+St(r)+631|0}}finally{J(n)}return Math.abs(t)|0}function Kh(e,t){return Gh(t,Wh(t,e))}function Wn(e,t,n){try{return"Expecting "+e+" but instead got:"+(n?`
|
|
5
|
-
`:" ")+(JSON.stringify(t,null,4)+"")}catch{return"Expecting "+e+" but decoder failed. Couldn't report given value due to circular structure."+(n?`
|
|
6
|
-
`:" ")}}function Jh(e,t){const n=t.tag===2?Wn(t.fields[0],t.fields[1],!0):t.tag===1?Wn(t.fields[0],t.fields[1],!1)+`
|
|
7
|
-
Reason: `+t.fields[2]:t.tag===3?Wn(t.fields[0],t.fields[1],!0):t.tag===4?Wn(t.fields[0],t.fields[1],!0)+("\nNode `"+t.fields[2]+"` is unkown."):t.tag===5?"Expecting "+t.fields[0]+`.
|
|
8
|
-
`+(JSON.stringify(t.fields[1],null,4)+""):t.tag===7?`The following errors were found:
|
|
9
|
-
|
|
10
|
-
`+Dt(`
|
|
11
|
-
|
|
12
|
-
`,t.fields[0]):t.tag===6?"The following `failure` occurred with the decoder: "+t.fields[0]:Wn(t.fields[0],t.fields[1],!1);return t.tag===7?n:"Error at: `"+e+"`\n"+n}function Ya(e,t,n){let r;if(r=kn(1,t,[e])(n),r.tag===1){const i=r.fields[0];return new m(1,[Jh(i[0],i[1])])}else return new m(0,[r.fields[0]])}function sr(e,t){try{return Ya("$",e,JSON.parse(t))}catch(n){if(n instanceof SyntaxError)return new m(1,["Given an invalid JSON: "+n.message]);throw n}}function $h(e,t){return typeof t=="string"?new m(0,[t]):new m(1,[[e,new v(0,["a string",t])]])}function Xh(e,t){if(typeof t=="string"){let n,r="00000000-0000-0000-0000-000000000000";return n=[th(t,new Qe(()=>r,o=>{r=o})),r],n[0]?new m(0,[n[1]]):new m(1,[[e,new v(0,["a guid",t])]])}else return new m(1,[[e,new v(0,["a guid",t])]])}function qh(e,t){return t==null?new m(0,[void 0]):new m(1,[[e,new v(0,["null",t])]])}const Ls=e=>t=>{const n="a sbyte",r=e,o=t;if(typeof o=="number"){const i=o;return isFinite(i)&&Math.floor(i)===i?-128<=i&&i<=127?new m(0,[(i+128&255)-128]):new m(1,[[r,new v(1,[n,i,"Value was either too large or too small for "+n])]]):new m(1,[[r,new v(1,[n,i,"Value is not an integral value"])]])}else if(typeof o=="string"){let i,s=0;return i=[Tn(o,511,!1,8,new Qe(()=>s,l=>{s=l|0})),s],i[0]?new m(0,[i[1]]):new m(1,[[r,new v(0,[n,o])]])}else return new m(1,[[r,new v(0,[n,o])]])},zs=e=>t=>{const n="a byte",r=e,o=t;if(typeof o=="number"){const i=o;return isFinite(i)&&Math.floor(i)===i?0<=i&&i<=255?new m(0,[i&255]):new m(1,[[r,new v(1,[n,i,"Value was either too large or too small for "+n])]]):new m(1,[[r,new v(1,[n,i,"Value is not an integral value"])]])}else if(typeof o=="string"){let i,s=0;return i=[Tn(o,511,!0,8,new Qe(()=>s,l=>{s=l})),s],i[0]?new m(0,[i[1]]):new m(1,[[r,new v(0,[n,o])]])}else return new m(1,[[r,new v(0,[n,o])]])},Ws=e=>t=>{const n="an int16",r=e,o=t;if(typeof o=="number"){const i=o;return isFinite(i)&&Math.floor(i)===i?-32768<=i&&i<=32767?new m(0,[(i+32768&65535)-32768]):new m(1,[[r,new v(1,[n,i,"Value was either too large or too small for "+n])]]):new m(1,[[r,new v(1,[n,i,"Value is not an integral value"])]])}else if(typeof o=="string"){let i,s=0;return i=[Tn(o,511,!1,16,new Qe(()=>s,l=>{s=l|0})),s],i[0]?new m(0,[i[1]]):new m(1,[[r,new v(0,[n,o])]])}else return new m(1,[[r,new v(0,[n,o])]])},Gs=e=>t=>{const n="an uint16",r=e,o=t;if(typeof o=="number"){const i=o;return isFinite(i)&&Math.floor(i)===i?0<=i&&i<=65535?new m(0,[i&65535]):new m(1,[[r,new v(1,[n,i,"Value was either too large or too small for "+n])]]):new m(1,[[r,new v(1,[n,i,"Value is not an integral value"])]])}else if(typeof o=="string"){let i,s=0;return i=[Tn(o,511,!0,16,new Qe(()=>s,l=>{s=l})),s],i[0]?new m(0,[i[1]]):new m(1,[[r,new v(0,[n,o])]])}else return new m(1,[[r,new v(0,[n,o])]])},Qs=e=>t=>{const n="an int",r=e,o=t;if(typeof o=="number"){const i=o;return isFinite(i)&&Math.floor(i)===i?-2147483648<=i&&i<=2147483647?new m(0,[~~i]):new m(1,[[r,new v(1,[n,i,"Value was either too large or too small for "+n])]]):new m(1,[[r,new v(1,[n,i,"Value is not an integral value"])]])}else if(typeof o=="string"){let i,s=0;return i=[Tn(o,511,!1,32,new Qe(()=>s,l=>{s=l|0})),s],i[0]?new m(0,[i[1]]):new m(1,[[r,new v(0,[n,o])]])}else return new m(1,[[r,new v(0,[n,o])]])},Zs=e=>t=>{const n="an uint32",r=e,o=t;if(typeof o=="number"){const i=o;return isFinite(i)&&Math.floor(i)===i?0<=i&&i<=4294967295?new m(0,[i>>>0]):new m(1,[[r,new v(1,[n,i,"Value was either too large or too small for "+n])]]):new m(1,[[r,new v(1,[n,i,"Value is not an integral value"])]])}else if(typeof o=="string"){let i,s=0;return i=[Tn(o,511,!0,32,new Qe(()=>s,l=>{s=l})),s],i[0]?new m(0,[i[1]]):new m(1,[[r,new v(0,[n,o])]])}else return new m(1,[[r,new v(0,[n,o])]])};function Yh(e,t){return typeof t=="boolean"?new m(0,[t]):new m(1,[[e,new v(0,["a boolean",t])]])}function e0(e,t){return typeof t=="number"?new m(0,[t]):new m(1,[[e,new v(0,["a float",t])]])}function t0(e,t){return typeof t=="number"?new m(0,[t]):new m(1,[[e,new v(0,["a float32",t])]])}function n0(e,t){if(typeof t=="string"){let n,r=Kf();return n=[$f(t,new Qe(()=>r,o=>{r=o})),r],n[0]?new m(0,[Xf(n[1])]):new m(1,[[e,new v(0,["a datetime",t])]])}else return new m(1,[[e,new v(0,["a datetime",t])]])}function r0(e,t){if(typeof t=="string"){let n,r=Ih();return n=[kh(t,new Qe(()=>r,o=>{r=o})),r],n[0]?new m(0,[n[1]]):new m(1,[[e,new v(0,["a datetimeoffset",t])]])}else return new m(1,[[e,new v(0,["a datetime",t])]])}function o0(e,t){if(typeof t=="string"){let n,r=0;return n=[Rh(t,new Qe(()=>r,o=>{r=o})),r],n[0]?new m(0,[n[1]]):new m(1,[[e,new v(0,["a timespan",t])]])}else return new m(1,[[e,new v(0,["a timespan",t])]])}function Ks(e,t,n,r){let o;const i=n+".["+Rt(e)+"]";if(Array.isArray(r)){const s=r;return e<s.length?t(i,s[e]):new m(1,[[i,new v(5,["a longer array. Need index `"+Rt(e)+"` but there are only `"+(o=s.length,Rt(o))+"` entries",r])]])}else return new m(1,[[i,new v(0,["an array",r])]])}function i0(e,t,n){return n==null?new m(0,[void 0]):It(be,e(t,n))}function Js(e,t,n){if(Array.isArray(n)){let r=-1;return It(_a,hi((o,i)=>{if(r=r+1|0,o.tag===0){const s=e(t+".["+Rt(r)+"]",i);return s.tag===0?new m(0,[Ne(s.fields[0],o.fields[0])]):new m(1,[s.fields[0]])}else return o},new m(0,[Pe()]),n))}else return new m(1,[[t,new v(0,["a list",n])]])}function $s(e,t,n){if(Array.isArray(n)){let r=-1;const o=n;return hi((i,s)=>{if(r=r+1|0,i.tag===0){const l=i.fields[0],u=e(t+".["+Rt(r)+"]",s);return u.tag===0?(l[r]=u.fields[0],new m(0,[l])):new m(1,[u.fields[0]])}else return i},new m(0,[pi(new Array(o.length),0,o.length,null)]),o)}else return new m(1,[[t,new v(0,["an array",n])]])}function s0(e,t,n){return((o,i)=>{e:for(;;){const s=o,l=i;if(N(s))return new m(1,[[t,new v(7,[l])]]);{const u=Ya(t,X(2,x(s)),n);if(u.tag===1){o=R(s),i=oo(l,Ee(u.fields[0]));continue e}else return new m(0,[u.fields[0]])}}})(e,Pe())}function l0(e,t,n){return new m(0,[e])}function Xs(e,t,n,r){const o=t(n,r);return o.tag===0?e(o.fields[0],n,r):new m(1,[o.fields[0]])}function a0(e,t,n,r){const o=t(n,r);return o.tag===1?new m(1,[o.fields[0]]):new m(0,[e(o.fields[0])])}function c0(e,t){let n;const r=e;return n=o=>i=>Ks(0,r,o,i),o=>i=>Xs(X(3,s=>{let l;const u=t;return l=c=>a=>Ks(1,u,c,a),c=>a=>Xs((d,f,p)=>l0([s,d]),X(2,l),c,a)}),X(2,n),o,i)}function u0(e){return Zp(e,{Compare:dt})}function f0(e){return Kh(e,{Compare:dt})}function d0(e,t,n){return n!==null&&Object.getPrototypeOf(n||!1)===Object.prototype?wd((r,o)=>{const i=r[0];return o.tag===0?It(s=>Ne(s,o.fields[0]),r[1](t+"."+i)(n[i])):o},e,new m(0,[Pe()])):new m(1,[[t,new v(0,["an object",n])]])}function p0(e,t,n,r){return r!==null&&Object.getPrototypeOf(r||!1)===Object.prototype?Sa((o,i)=>{if(o.tag===0){let s;if(s=kn(1,e,[n])(i),s.tag===0){const u=t(n+"."+i,r[i]);return u.tag===0?new m(0,[Ne([s.fields[0],u.fields[0]],o.fields[0])]):new m(1,[u.fields[0]])}else return new m(1,[s.fields[0]])}else return o},new m(0,[Pe()]),Object.keys(r)):new m(1,[[n,new v(0,["an object",r])]])}function ec(e,t,n,r){let o,i,s,l,u;return t.length!==r.length?new m(1,[[n,new v(6,[(o=t.length|0,i=r.length|0,s=On(on("Expected %i %s but got %i")),l=s(o),u=l(e),u(i))])]]):yd((c,a,d)=>d.tag===0?It(f=>Ne(f,d.fields[0]),a(n)(c)):d,r,t,new m(0,[Pe()]))}function qs(e,t,n,r,o,i){const s=hd(l=>ai(l)===r,Pf(n));if(s!=null){const l=s;return i.length===0?new m(0,[_s(l,[])]):It(u=>_s(l,ro(u)),ec("union fields",$t(u=>st(e,t,!1,u[1]),Uf(l),null),o,i))}else return new m(1,[[o,new v(6,["Cannot find case "+r+" in "+de(n)])]])}function Ys(e,t,n,r){let o,i;const s=new Qe(ft());let l;const u=de(r);l=Wp(u,s,e);let c;if(Vf(r)){const a=$t(d=>[Xp(t,ai(d)),st(l,t,!1,d[1])],Ur(r),null);c=d=>f=>It(p=>Lf(r,ro(p)),d0(a,d,f))}else if(jf(r))c=a=>d=>{if(typeof d=="string")return qs(l,t,r,d,a,[]);if(Array.isArray(d)){const f=d;return qs(l,t,r,f[0],a,f.slice(1,f.length))}else return new m(1,[[a,new v(0,["a string or array",d])]])};else if(n)c=a=>d=>new m(1,[[a,new v(2,["an extra coder for "+de(r),d])]]);else throw new Error((o=de(r),i=On(on("Cannot generate auto decoder for %s. Please pass an extra decoder.")),i(o)));return s.contents=c,c}function st(e,t,n,r){let o,i,s;const l=de(r),u=Gp(l,e);if(u==null)if(Tf(r)){const c=st(e,t,!1,to(r));return a=>d=>$s(X(2,c),a,d)}else if(sa(r)){const c=de(Of(r));if(c==="System.SByte")return a=>d=>{const f=r,p=a,g=d,_=Ls(p)(g);if(_.tag===1)return new m(1,[_.fields[0]]);{const w=_.fields[0]|0;return dn(w,un(f),{Equals:(b,F)=>b===F,GetHashCode:Xe})?new m(0,[fn(f,w.toString())]):new m(1,[[p,new v(1,[de(f),g,"Unkown value provided for the enum"])]])}};if(c==="System.Byte")return a=>d=>{const f=r,p=a,g=d,_=zs(p)(g);if(_.tag===1)return new m(1,[_.fields[0]]);{const w=_.fields[0];return dn(w,un(f),{Equals:(b,F)=>b===F,GetHashCode:Xe})?new m(0,[fn(f,w.toString())]):new m(1,[[p,new v(1,[de(f),g,"Unkown value provided for the enum"])]])}};if(c==="System.Int16")return a=>d=>{const f=r,p=a,g=d,_=Ws(p)(g);if(_.tag===1)return new m(1,[_.fields[0]]);{const w=_.fields[0]|0;return dn(w,un(f),{Equals:(b,F)=>b===F,GetHashCode:Xe})?new m(0,[fn(f,Eu(w))]):new m(1,[[p,new v(1,[de(f),g,"Unkown value provided for the enum"])]])}};if(c==="System.UInt16")return a=>d=>{const f=r,p=a,g=d,_=Gs(p)(g);if(_.tag===1)return new m(1,[_.fields[0]]);{const w=_.fields[0];return dn(w,un(f),{Equals:(b,F)=>b===F,GetHashCode:Xe})?new m(0,[fn(f,w.toString())]):new m(1,[[p,new v(1,[de(f),g,"Unkown value provided for the enum"])]])}};if(c==="System.Int32")return a=>d=>{const f=r,p=a,g=d,_=Qs(p)(g);if(_.tag===1)return new m(1,[_.fields[0]]);{const w=_.fields[0]|0;return dn(w,un(f),{Equals:(b,F)=>b===F,GetHashCode:Xe})?new m(0,[fn(f,Rt(w))]):new m(1,[[p,new v(1,[de(f),g,"Unkown value provided for the enum"])]])}};if(c==="System.UInt32")return a=>d=>{const f=r,p=a,g=d,_=Zs(p)(g);if(_.tag===1)return new m(1,[_.fields[0]]);{const w=_.fields[0];return dn(w,un(f),{Equals:(b,F)=>b===F,GetHashCode:Xe})?new m(0,[fn(f,w.toString())]):new m(1,[[p,new v(1,[de(f),g,"Unkown value provided for the enum"])]])}};{const a=de(r),f=td(on(`Cannot generate auto decoder for %s.
|
|
13
|
-
Thoth.Json.Net only support the folluwing enum types:
|
|
14
|
-
- sbyte
|
|
15
|
-
- byte
|
|
16
|
-
- int16
|
|
17
|
-
- uint16
|
|
18
|
-
- int
|
|
19
|
-
- uint32
|
|
20
|
-
If you can't use one of these types, please pass an extra decoder.
|
|
21
|
-
`))(a);return p=>f(p)}}else if(Rf(r))if(la(r)){const c=$t(a=>st(e,t,!1,a),Hf(r),null);return a=>d=>Array.isArray(d)?It(f=>zf(ro(f)),ec("tuple elements",c,a,d)):new m(1,[[a,new v(0,["an array",d])]])}else{const c=de(Nf(r));if(c==="Microsoft.FSharp.Core.FSharpOption`1[System.Object]")return o=st(e,t,!0,kt(r)[0]),a=>d=>i0(X(2,o),a,d);if(c==="Microsoft.FSharp.Collections.FSharpList`1[System.Object]")return i=st(e,t,!1,kt(r)[0]),a=>d=>Js(X(2,i),a,d);if(c==="Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"){const a=st(e,t,!1,kt(r)[0]),d=st(e,t,!1,kt(r)[1]);let f;const p=S([g=>_=>p0(X(2,a),X(2,d),g,_),(s=c0(X(2,a),X(2,d)),g=>_=>Js(X(2,s),g,_))]);return f=g=>_=>s0(p,g,_),g=>_=>a0(u0,X(2,f),g,_)}else if(c==="Microsoft.FSharp.Collections.FSharpSet`1[System.Object]"){const a=st(e,t,!1,kt(r)[0]);return d=>f=>{const p=$s(X(2,a),d,f);return p.tag===0?new m(0,[f0(p.fields[0])]):new m(1,[p.fields[0]])}}else return Ys(e,t,n,r)}else return l==="System.Boolean"?c=>a=>Yh(c,a):l==="Microsoft.FSharp.Core.Unit"?c=>a=>qh(c,a):l==="System.String"?c=>a=>$h(c,a):l==="System.SByte"?Ls:l==="System.Byte"?zs:l==="System.Int16"?Ws:l==="System.UInt16"?Gs:l==="System.Int32"?Qs:l==="System.UInt32"?Zs:l==="System.Double"?c=>a=>e0(c,a):l==="System.Single"?c=>a=>t0(c,a):l==="System.DateTime"?c=>a=>n0(c,a):l==="System.DateTimeOffset"?c=>a=>r0(c,a):l==="System.TimeSpan"?c=>a=>o0(c,a):l==="System.Guid"?c=>a=>Xh(c,a):l==="System.Object"?c=>a=>new m(0,[a]):Ys(e,t,n,r);else{const c=u;return a=>d=>c.contents(a)(d)}}function h0(e){return e!=null?Qp((t,n)=>new Qe(n[1]),e.Coders):Va({Compare:bn})}function lr(e,t,n){const r=ga(t,new Cn(0,[]));return st(h0(n),r,!1,e)}class el extends q{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Success","ImportError"]}}class m0{constructor(t,n,r){this.accessToken=r,this.baseUrl=`${t}/profiles/admin/accounts/${n}/imports`}}function g0(e,t,n){return new m0(e,t,n)}function tc(e,t){return yi(bi,()=>{let n,r,o,i;const s=Ci((n=xi(new lo(0,[]),vi(`${e.baseUrl}/${t}`)),r=Ai((o=On(on("Bearer %s")),o(e.accessToken))),Ei(r,n)));return i=I.Bind(s,l=>I.Return(new m(0,[l]))),I.Delay(()=>I.Bind(i,l=>{let u,c;const a=l;return a.tag===1?I.Return(new m(1,[a.fields[0]])):I.ReturnFrom((u=a.fields[0],u.statusCode===200?(c=sr(X(2,lr(dp(),new Cn(1,[]),void 0)),u.responseText),I.Return(c)):I.Return(new m(1,["Failed to fetch import"]))))}))})}function w0(e){return yi(bi,()=>{let t,n,r,o;const i=Ci((t=xi(new lo(0,[]),vi(e.baseUrl)),n=Ai((r=On(on("Bearer %s")),r(e.accessToken))),Ei(n,t)));return o=I.Bind(i,s=>I.Return(new m(0,[s]))),I.Delay(()=>I.Bind(o,s=>{let l,u;const c=s;return c.tag===1?I.Return(new m(1,[c.fields[0]])):I.ReturnFrom((l=c.fields[0],l.statusCode===200?(u=sr(X(2,lr(ka(),new Cn(1,[]),void 0)),l.responseText),I.Return(u)):I.Return(new m(1,["Failed to fetch account imports"]))))}))})}function _0(e,t){return yi(bi,()=>{let n,r,o,i;const s=Ci((n=$p(new Ta(3,[t]),xi(new lo(1,[]),vi(e.baseUrl))),r=Ai((o=On(on("Bearer %s")),o(e.accessToken))),Ei(r,n)));return i=I.Bind(s,l=>I.Return(new m(0,[l]))),I.Delay(()=>I.Bind(i,l=>{let u,c,a,d,f,p;const g=l;return g.tag===1?I.Return(new m(1,[g.fields[0]])):I.ReturnFrom((u=g.fields[0],c=u.statusCode|0,c===200?(a=(d=sr(X(2,lr(ka(),new Cn(1,[]),void 0)),u.responseText),I.Return(d)),I.Bind(a,_=>{const w=It(b=>new el(0,[b]),_);return I.Return(w)})):c===400?(f=(p=sr(X(2,lr(up(),new Cn(1,[]),void 0)),u.responseText),I.Return(p)),I.Bind(f,_=>{const w=It(b=>new el(1,[b]),_);return I.Return(w)})):I.Return(new m(1,["Failed to create account import"]))))}))})}class nc extends q{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["AccessRole"]}}function y0(e){return new nc(0,[e])}const b0=new nc(0,["BasicProfile.ImportData"]);function A0(e){if(Fd(b0,e,{Equals:et,GetHashCode:Fu}))return be(void 0)}class tl extends oe{constructor(t,n){super(),this.UserName=t,this.Roles=n}}function v0(e){let t;const n=ha(e==null?"":e,["."],void 0,0);if(!gd((r,o)=>r===o,n,ft())&&n.length===3){const r=n[1],o=atob(r);t=sr(X(2,lr(If(["Name",Ge],["Roles",kf(Ge)]),new Cn(1,[]),void 0)),o)}else t=new m(1,["Failed to identify the user"]);if(t.tag===1)return new tl(void 0,Pe());{const r=t.fields[0];return new tl(r.Name,S($t(y0,r.Roles,null)))}}class x0{constructor(t,n,r){this.OnNext=t,this.OnError=n||(o=>{}),this.OnCompleted=r||(()=>{})}}function E0(e,t){t.Subscribe(new x0(e))}class C0{constructor(){this.delegates=[]}Add(t){this._addHandler(t)}get Publish(){return this}Trigger(t,n){let r,o;n===void 0?(r=null,o=t):(r=t,o=n),this.delegates.forEach(i=>i.length===1?i(o):i(r,o))}AddHandler(t){this._addHandler(t)}RemoveHandler(t){this._removeHandler(t)}Subscribe(t){const n=typeof t=="function"?t:t.OnNext;return this._addHandler(n),{Dispose:()=>{this._removeHandler(n)}}}_addHandler(t){this.delegates.push(t)}_removeHandler(t){const n=this.delegates.indexOf(t);n>-1&&this.delegates.splice(n,1)}}class S0{constructor(t){this._enabled=!1,this._isDisposed=!1,this._intervalId=0,this._timeoutId=0,this.Interval=t&&t>0?t:100,this.AutoReset=!0,this._elapsed=new C0}Elapsed(){return this._elapsed}get Enabled(){return this._enabled}set Enabled(t){!this._isDisposed&&this._enabled!==t&&(this._enabled=t,this._enabled?this.AutoReset?this._intervalId=setInterval(()=>{this.AutoReset||(this.Enabled=!1),this._elapsed.Trigger(new Date)},this.Interval):this._timeoutId=setTimeout(()=>{this.Enabled=!1,this._timeoutId=0,this.AutoReset&&(this.Enabled=!0),this._elapsed.Trigger(new Date)},this.Interval):(this._timeoutId&&(clearTimeout(this._timeoutId),this._timeoutId=0),this._intervalId&&(clearInterval(this._intervalId),this._intervalId=0)))}Dispose(){this.Enabled=!1,this._isDisposed=!0}Close(){this.Dispose()}Start(){this.Enabled=!0}Stop(){this.Enabled=!1}}function D0(e,t){console.error(be(e),t)}function I0(e,t){let n,r=new S0(e);r.AutoReset=!1,n=r,E0(t,n.Elapsed()),n.Enabled=!0,n.Start()}function nl(e,t){ya(n=>{n(e)},t)}function en(){return Pe()}function Io(e){return ba(e)}function Mr(e){return Ee(t=>{t(e)})}function rc(e,t,n,r){return Ee(o=>{e(I.Delay(()=>I.Bind(bp(t(n)),i=>{const s=i;return s.tag===0&&o(r(s.fields[0])),I.Zero()})))})}function Zo(e){I0(0,t=>{Ma(e)})}function F0(e,t,n,r){const o=dt(e,n)|0;if(o===0)throw new Error("The step of a range cannot be zero");const i=o>0;return s=>{const l=dt(s,t)|0;return i&&l<=0||!i&&l>=0?[s,r(s,e)]:void 0}}function k0(e,t,n,r,o){const i=F0(t,n,r,o);return M(()=>Wd(i,e))}function M0(e,t,n){return k0(e,t,n,0,(r,o)=>r+o)}class wn extends q{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Writable","ReadWritable"]}}class T0{constructor(t){this.state=new wn(0,[pi(new Array(Po(bn,t,10)),0,Po(bn,t,10),null),0])}}function R0(e){return new T0(e)}function N0(e){const t=e.state;if(t.tag===1){const n=t.fields[1]|0,r=t.fields[2]|0,o=t.fields[0],i=(r+1)%o.length|0;return i===n?e.state=new wn(0,[o,n]):e.state=new wn(1,[o,n,i]),be(o[r])}else return}function O0(e,t){const n=e.state;if(n.tag===1){const r=n.fields[1]|0,o=n.fields[2]|0,i=n.fields[0];i[r]=t;const s=(r+1)%i.length|0;s===o?e.state=new wn(1,[B0(e,o,i),i.length,0]):e.state=new wn(1,[i,s,o])}else{const r=n.fields[1]|0,o=n.fields[0];o[r]=t;const i=(r+1)%o.length|0;e.state=new wn(1,[o,i,r])}}function B0(e,t,n){return Array.from(M(()=>le(Kd(t,n),M(()=>le(Jd(t,n),M(()=>Da(r=>k(ft()),M0(0,1,n.length))))))))}class oc extends oe{constructor(t,n,r,o,i,s,l){super(),this.init=t,this.update=n,this.subscribe=r,this.view=o,this.setState=i,this.onError=s,this.syncDispatch=l}}function P0(e,t,n){return new oc(e,t,r=>en(),n,X(2,r=>{const o=kn(1,n,[r]);return i=>{o(i)}}),r=>{D0(r[0],r[1])},X(2,r=>r))}function H0(e,t){return new oc(t.init,t.update,t.subscribe,t.view,e,t.onError,t.syncDispatch)}function j0(e,t){const n=t.init(e),r=n[0],o=R0(10);let i=!1,s=r;const l=c=>{let a;if(i)O0(o,c);else{i=!0;let d=be(c);for(;d!=null;){const f=$(d);try{const p=t.update(f,s),g=p[0];t.setState(g,u),nl(u,p[1]),s=g}catch(p){t.onError([(a=On(on("Unable to process the message: %A")),a(f)),p])}d=N0(o)}i=!1}},u=kn(1,t.syncDispatch,[l]);t.setState(r,u),nl(u,oo((()=>{try{return t.subscribe(r)}catch(c){return t.onError(["Unable to subscribe:",c]),en()}})(),n[1]))}const V0=(e,t)=>{gn(()=>{const n=e();return()=>{n.Dispose()}},t)},C=Zl,ic=V0;function Ii(e){return{Dispose(){e()}}}function rl(e){return C.useState(e)}function sc(e,t){ic(e,t)}function U0(e){const t=C.useRef(void 0),n=C.useRef(!1),r=C.useRef(!1);n.current&&(r.current=!0),sc(()=>{let o;return n.current?o=void 0:(n.current=!0,t.current=be(e()),o=r.current?t.current:void 0),{Dispose(){gi(i=>{J(i)},ud(o))}}},[])}function lc(e,t){ic(n=>(e(),Ii(()=>{})),t)}function ol(e){return C.useRef(e)}function Xn(e){return C.useState(e)}class L0{constructor(){this.hasDisposedOnce=!1,this.state=void 0,this.listener=void 0,this.dispatcher=void 0}}function z0(){return new L0}function W0(e){return e.state}function G0(e){return e.hasDisposedOnce}function Q0(e,t,n){e.state=be(t),e.dispatcher=n;const r=e.listener;r!=null&&r(t)}function Z0(e,t){const n=e.dispatcher;n!=null&&n(t)}function K0(e,t){e.listener==null&&(e.listener=t)}function J0(e){const t=e.state;if(t!=null){const n=$(t);Jl(n)&&J(n)}e.dispatcher=void 0,e.state=void 0,e.hasDisposedOnce=!0}function il(e,t,n,r){j0(t,H0((i,s)=>{Q0(n,i,s)},e()));const o=W0(n);if(o!=null)return $(o);throw new Error("Elmish program has not initialized")}function $0(e,t,n){const r=rl(z0)[0],o=rl(()=>il(e,t,r)),i=o[1];return sc(()=>(G0(r)&&i(il(e,t,r)),Ii(()=>{J0(r)})),ga(n,[])),K0(r,i),[o[0],s=>{Z0(r,s)}]}function X0(e,t){return $0(e,void 0,t)}function ac(e,t,n){return X0(()=>P0(()=>e,t,(r,o)=>{}),n)}class mn extends q{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["HasNotStartedYet","InProgress","Resolved","Failed"]}}function q0(e,t){const n=Xn(new mn(0,[])),r=n[1];let o;const i=ol(wp()),s=ol(i.current);U0(()=>Ii(()=>{_p(i.current)})),o=s;const l=I.Delay(()=>I.TryWith(I.Delay(()=>(r(new mn(1,[])),I.Bind(e,u=>(r(new mn(2,[u])),I.Zero())))),u=>(r(new mn(3,[u])),I.Zero())));return lc(()=>{Ma(l,o.current)},t),n[0]}class Et extends q{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Started","Finished"]}}class Qr extends q{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["ProfileImport","PastImports"]}}function sl(e){return e.tag===1?"Past Imports":"Profile Import"}class Ko extends oe{constructor(t,n){super(),this.CurrentTab=t,this.AccountImports=n}}class qn extends q{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SetCurrentTab","FetchImports"]}}const Y0=[new Ko(new Qr(0,[]),new mn(0,[])),Mr(new qn(1,[new Et(0,[void 0])]))];function em(e,t,n){return t.tag===1?t.fields[0].tag===1?[new Ko(n.CurrentTab,new mn(2,[t.fields[0].fields[0]])),en()]:[n,rc(r=>{Zo(r)},e,void 0,r=>new qn(1,[new Et(1,[r])]))]:[new Ko(t.fields[0],n.AccountImports),en()]}const tm=`*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-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";font-feature-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}[type=text],[type=email],[type=url],[type=password],[type=number],[type=date],[type=datetime-local],[type=month],[type=search],[type=tel],[type=time],[type=week],[multiple],textarea,select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#6b7280;border-width:1px;border-radius:0;padding:.5rem .75rem;font-size:1rem;line-height:1.5rem;--tw-shadow: 0 0 #0000}[type=text]:focus,[type=email]:focus,[type=url]:focus,[type=password]:focus,[type=number]:focus,[type=date]:focus,[type=datetime-local]:focus,[type=month]:focus,[type=search]:focus,[type=tel]:focus,[type=time]:focus,[type=week]:focus,[multiple]:focus,textarea:focus,select:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: #2563eb;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);border-color:#2563eb}input::-moz-placeholder,textarea::-moz-placeholder{color:#6b7280;opacity:1}input::placeholder,textarea::placeholder{color:#6b7280;opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em}::-webkit-datetime-edit,::-webkit-datetime-edit-year-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-meridiem-field{padding-top:0;padding-bottom:0}select{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem;-webkit-print-color-adjust:exact;print-color-adjust:exact}[multiple]{background-image:initial;background-position:initial;background-repeat:unset;background-size:initial;padding-right:.75rem;-webkit-print-color-adjust:unset;print-color-adjust:unset}[type=checkbox],[type=radio]{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;-webkit-print-color-adjust:exact;print-color-adjust:exact;display:inline-block;vertical-align:middle;background-origin:border-box;-webkit-user-select:none;-moz-user-select:none;user-select:none;flex-shrink:0;height:1rem;width:1rem;color:#2563eb;background-color:#fff;border-color:#6b7280;border-width:1px;--tw-shadow: 0 0 #0000}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 2px;--tw-ring-offset-color: #fff;--tw-ring-color: #2563eb;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}[type=checkbox]:checked,[type=radio]:checked{border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:center;background-repeat:no-repeat}[type=checkbox]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e")}[type=radio]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e")}[type=checkbox]:checked:hover,[type=checkbox]:checked:focus,[type=radio]:checked:hover,[type=radio]:checked:focus{border-color:transparent;background-color:currentColor}[type=checkbox]:indeterminate{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3e%3c/svg%3e");border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:center;background-repeat:no-repeat}[type=checkbox]:indeterminate:hover,[type=checkbox]:indeterminate:focus{border-color:transparent;background-color:currentColor}[type=file]{background:unset;border-color:inherit;border-width:0;border-radius:0;padding:0;font-size:unset;line-height:inherit}[type=file]:focus{outline:1px solid ButtonText;outline:1px auto -webkit-focus-ring-color}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::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: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.fixed{position:fixed}.relative{position:relative}.inset-0{top:0px;right:0px;bottom:0px;left:0px}.z-10{z-index:10}.-mx-4{margin-left:-1rem;margin-right:-1rem}.-my-2{margin-top:-.5rem;margin-bottom:-.5rem}.mx-auto{margin-left:auto;margin-right:auto}.-mb-px{margin-bottom:-1px}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-6{margin-bottom:1.5rem}.ml-6{margin-left:1.5rem}.mr-6{margin-right:1.5rem}.mt-10{margin-top:2.5rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.min-h-full{min-height:100%}.w-full{width:100%}.min-w-full{min-width:100%}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-pointer{cursor:pointer}.list-outside{list-style-position:outside}.list-disc{list-style-type:disc}.items-end{align-items:flex-end}.justify-center{justify-content:center}.space-x-8>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(2rem * var(--tw-space-x-reverse));margin-left:calc(2rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.divide-gray-200>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(229 231 235 / var(--tw-divide-opacity))}.divide-gray-300>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(209 213 219 / var(--tw-divide-opacity))}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:.25rem}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-b-2{border-bottom-width:2px}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.border-indigo-500{--tw-border-opacity: 1;border-color:rgb(99 102 241 / var(--tw-border-opacity))}.border-transparent{border-color:transparent}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.bg-gray-500{--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}.bg-indigo-600{--tw-bg-opacity: 1;background-color:rgb(79 70 229 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-opacity-75{--tw-bg-opacity: .75}.p-4{padding:1rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-3\\.5{padding-left:.875rem;padding-right:.875rem}.px-4{padding-left:1rem;padding-right:1rem}.px-8{padding-left:2rem;padding-right:2rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\\.5{padding-top:.625rem;padding-bottom:.625rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-3\\.5{padding-top:.875rem;padding-bottom:.875rem}.py-4{padding-top:1rem;padding-bottom:1rem}.pb-4{padding-bottom:1rem}.pl-4{padding-left:1rem}.pr-3{padding-right:.75rem}.pt-5{padding-top:1.25rem}.text-left{text-align:left}.text-center{text-align:center}.align-middle{vertical-align:middle}.text-sm{font-size:.875rem;line-height:1.25rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.text-indigo-600{--tw-text-opacity: 1;color:rgb(79 70 229 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.ring-1{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-inset{--tw-ring-inset: inset}.ring-black{--tw-ring-opacity: 1;--tw-ring-color: rgb(0 0 0 / var(--tw-ring-opacity))}.ring-gray-300{--tw-ring-opacity: 1;--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity))}.ring-opacity-5{--tw-ring-opacity: .05}.hover\\:border-gray-300:hover{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.hover\\:bg-gray-50:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.hover\\:bg-indigo-500:hover{--tw-bg-opacity: 1;background-color:rgb(99 102 241 / var(--tw-bg-opacity))}.hover\\:text-gray-700:hover{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.focus-visible\\:outline:focus-visible{outline-style:solid}.focus-visible\\:outline-2:focus-visible{outline-width:2px}.focus-visible\\:outline-offset-2:focus-visible{outline-offset:2px}.focus-visible\\:outline-indigo-600:focus-visible{outline-color:#4f46e5}@media (min-width: 640px){.sm\\:col-start-1{grid-column-start:1}.sm\\:col-start-2{grid-column-start:2}.sm\\:-mx-6{margin-left:-1.5rem;margin-right:-1.5rem}.sm\\:my-8{margin-top:2rem;margin-bottom:2rem}.sm\\:mt-0{margin-top:0}.sm\\:mt-5{margin-top:1.25rem}.sm\\:mt-6{margin-top:1.5rem}.sm\\:grid{display:grid}.sm\\:w-full{width:100%}.sm\\:max-w-lg{max-width:32rem}.sm\\:grid-flow-row-dense{grid-auto-flow:row dense}.sm\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\\:items-center{align-items:center}.sm\\:gap-3{gap:.75rem}.sm\\:rounded-lg{border-radius:.5rem}.sm\\:p-0{padding:0}.sm\\:p-6{padding:1.5rem}.sm\\:px-6{padding-left:1.5rem;padding-right:1.5rem}.sm\\:pl-6{padding-left:1.5rem}}@media (min-width: 1024px){.lg\\:-mx-8{margin-left:-2rem;margin-right:-2rem}.lg\\:px-8{padding-left:2rem;padding-right:2rem}}
|
|
22
|
-
`,ll=(()=>Se(tm))();function nm(e){let t,n;const r=e.setCurrentTab,o=e.currentTab;return h("div",L(S([["className","border-b border-gray-200"],(t=[h("nav",L(S([["className","-mb-px flex space-x-8"],(n=ct(M(()=>Oe(i=>h("a",{key:sl(i),className:Dt(" ",ct(M(()=>le(et(o,i)?k("border-indigo-500 text-indigo-600"):k("border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700 cursor-pointer"),M(()=>k("whitespace-nowrap border-b-2 py-4 px-1 text-sm font-medium")))))),onClick:s=>{r(i)},children:sl(i)}),[new Qr(0,[]),new Qr(1,[])]))),["children",C.Children.toArray(Array.from(n))])])))],["children",C.Children.toArray(Array.from(t))])])))}function ar(e){let t;return h("div",L(S([["className","text-center"],(t=[h("p",{children:["Oops, something went wrong."]}),h("p",{children:[`Error: ${e}.`]}),h("p",{children:["Please refresh the page and try again."]}),h("button",{className:"mt-4 rounded-md bg-indigo-600 px-3.5 py-2.5 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600",onClick:n=>{window.location.reload()},children:"Refresh"})],["children",C.Children.toArray(Array.from(t))])])))}function cc(e){let t;const n=e.onDone,r=e.fetchImport,o=e.importId,i=q0(r(o),[]);let s,l,u,c;switch(i.tag===1?s=0:i.tag===3?(s=1,l=i.fields[0]):i.tag===2?i.fields[0].tag===0?(s=3,c=i.fields[0].fields[0]):(s=2,u=i.fields[0].fields[0]):s=0,s){case 0:return ft();case 1:return ar(l.message);case 2:return ar(u);case 3:return h("div",L(S([["className","text-center"],(t=ct(M(()=>le(k(h("p",{children:[`Import ID: ${c.ImportId}`]})),M(()=>le(k(h("p",{children:[`Creator: ${c.User}`]})),M(()=>le(k(h("p",{children:[`Filename: ${c.Filename}`]})),M(()=>le(k(h("p",{children:[`Date started: ${Se(c.StartTime)}`]})),M(()=>{let a;return le((a=c.StopTime,a==null?k(ft()):k(h("p",{children:[`Date completed: ${Se(a)}`]}))),M(()=>le(k(h("p",{children:[`Total rows: ${c.TotalRecordCount}`]})),M(()=>le(k(h("p",{children:[`Succeeded rows: ${c.SucceededRecordCount}`]})),M(()=>le(k(h("p",{children:[`Failed rows: ${c.FailedRecordCount}`]})),M(()=>{let d;return le(c.FailedRecordCount>0?k(h("div",L(S([["className","mt-8"],(d=ct(M(()=>le(k(h("p",{children:["The following profiles could not be created"]})),M(()=>Oe(f=>h("li",{children:[`Row ${f.RowId}: ${f.Reason}`]}),c.FailedRecords))))),["children",C.Children.toArray(Array.from(d))])])))):Ca(),M(()=>k(h("button",{type:"button",children:"Done",className:"mt-8 rounded-md bg-indigo-600 px-3.5 py-2.5 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600",onClick:f=>{n()}}))))}))))))))})))))))))),["children",C.Children.toArray(Array.from(t))])])))}}class Fo extends q{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["HistoryTable","ImportSummary"]}}function rm(e){let t,n,r,o,i,s,l,u;const c=e.fetchImport,a=e.accountImports,d=Xn(new Fo(0,[])),f=d[0],p=d[1];return f.tag===0?h("div",L(S([["className","-mx-4 -my-2 overflow-x-auto sm:-mx-6 lg:-mx-8"],(t=[h("div",L(S([["className","inline-block min-w-full py-2 align-middle sm:px-6 lg:px-8"],(n=[h("div",L(S([["className","overflow-hidden shadow ring-1 ring-black ring-opacity-5 sm:rounded-lg"],(r=[h("table",L(S([["className","min-w-full divide-y divide-gray-300"],(o=[h("thead",L(S([["className","bg-gray-100"],(i=[(s=S([h("th",{scope:"col",className:"py-3.5 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 sm:pl-6",children:"Import ID"}),h("th",{scope:"col",className:"px-3 py-3.5 text-left text-sm font-semibold text-gray-900",children:"Date"}),h("th",{scope:"col",className:"px-3 py-3.5 text-left text-sm font-semibold text-gray-900",children:"User"}),h("th",{scope:"col",className:"px-3 py-3.5 text-left text-sm font-semibold text-gray-900",children:"# of Profiles"})]),h("tr",{children:C.Children.toArray(Array.from(s))}))],["children",C.Children.toArray(Array.from(i))])]))),h("tbody",L(S([["className","divide-y divide-gray-200 bg-white"],(l=ct(M(()=>Oe(g=>{let _;return h("tr",L(S([["key",g.ImportId],["className","cursor-pointer hover:bg-gray-50"],["onClick",w=>{p(new Fo(1,[g.ImportId]))}],(_=[h("td",{className:"whitespace-nowrap py-4 pl-4 pr-3 text-sm text-gray-500 sm:pl-6",children:g.ImportId}),h("td",{className:"whitespace-nowrap px-3 py-4 text-sm text-gray-500",children:Se(g.StartTime)}),h("td",{className:"whitespace-nowrap px-3 py-4 text-sm text-gray-500",children:g.User}),h("td",{className:"whitespace-nowrap px-3 py-4 text-sm text-gray-500",children:g.Succeeded})],["children",C.Children.toArray(Array.from(_))])])))},a.ImportHistory))),["children",C.Children.toArray(Array.from(l))])])))],["children",C.Children.toArray(Array.from(o))])])))],["children",C.Children.toArray(Array.from(r))])])))],["children",C.Children.toArray(Array.from(n))])])))],["children",C.Children.toArray(Array.from(t))])]))):h("div",L(S([["className","border border-gray-300 w-full py-12 rounded text-center bg-white"],(u=[h(cc,{importId:f.fields[0],fetchImport:c,onDone:()=>{p(new Fo(0,[]))}})],["children",C.Children.toArray(Array.from(u))])])))}const om="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEA8ADwAAD/4QAiRXhpZgAATU0AKgAAAAgAAQESAAMAAAABAAEAAAAAAAD/2wBDAAIBAQIBAQICAgICAgICAwUDAwMDAwYEBAMFBwYHBwcGBwcICQsJCAgKCAcHCg0KCgsMDAwMBwkODw0MDgsMDAz/2wBDAQICAgMDAwYDAwYMCAcIDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAz/wAARCAAxADcDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwDz/wCKH7XPxUvfiT4glb4keOYy+o3B2Ra5cxxr+8bhVVwFA9AMCsL/AIav+KX/AEUrx/8A+FDd/wDxyuY+In/JQNd/7CFx/wCjGrHr6WMY22PmXKV9z6y/4J2/8FK/GX7P/wC01o994w8XeIvEHhHVz/ZurQapqU12lvFIwxOgkZtrRsFbIxldw71+8Vlew6lZw3FvIk0FwgkjkQ5V1IyCD6EHNfy11754I/4Ki/Hz4c+ENN0HR/iTrFrpOj2yWlnA1vbTeREg2ogZ42YhVAAyTgADtXJisH7R80NDswuM9muWep/Q5RX8/H/D3j9o7/oqGq/+ANn/APGaP+HvH7R3/RUNV/8AAGz/APjNcv8AZ1Tujq/tGn2Z/QPRX4//APBLf/gpb8aPjF+2Hofhvxd4zuPEWh6ja3jTWtzaQIN0dvJIpDRopBDKO9FctahKnLlZ1Ua8akeZH5//ABE/5KBrv/YQuP8A0Y1Y9bHxE/5KBrv/AGELj/0Y1Y9fQx2PnQr74/b28C+G9A/4JT/s76xpvh/Q9P1jWIoftt/bWMUN1eFbYg+ZIqhn55+YnmvgevvX9vPUvtP/AASP/ZhXP3hcr/3wpWsK3xQ9f0Oij8M/T9UfBVFFFdBzn1D/AMEcv+T+/Cn/AF6ah/6SS0Uf8Ecv+T+/Cn/XpqH/AKSS0V5GO/ifI9fA/wAP5nzt8RP+Sga7/wBhC4/9GNWPXdftL/C7W/g38d/FXh/xBYXGn6jZ6lOSk0ZTzEMjFJF9VZcEEcEGuFr1Y7Hky0dmFe8fHf8AaX8RfEv9jv4S+BdQ8H3Wj6D4La8/s3W38zy9aLvlwu5AnyE4O1mx3xXg9enfE79rvxp8XfgV4N+HetXVlL4b8C7hpaR2qxzKCMAO45bA4H15zSlG7TKjKyZ5jRRRVkH1D/wRy/5P78Kf9emof+kktFdX/wAENvg3rvxC/bVsdbsbOY6L4bsbp9Rvdh8m3MsDxRoT03MzcDrhWPaivHx8l7T5HsYGL9n8z2z/AIOK/wDkevCX/YNT/wBHT1+Y9FFd+D/hI4cZ/FYUUUV0nKFFFFAH7r/8ERP+TJ7D/r7b/wBASiiivncR/El6n0WH/hx9D//Z",im="data:image/jpeg;base64,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",sm="data:image/jpeg;base64,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";var H={exports:{}},lm="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",am=lm,cm=am;function uc(){}function fc(){}fc.resetWarningCache=uc;var um=function(){function e(r,o,i,s,l,u){if(u!==cm){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:fc,resetWarningCache:uc};return n.PropTypes=n,n};H.exports=um();function jn(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function l(a){try{c(r.next(a))}catch(d){s(d)}}function u(a){try{c(r.throw(a))}catch(d){s(d)}}function c(a){a.done?i(a.value):o(a.value).then(l,u)}c((r=r.apply(e,t||[])).next())})}function Vn(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(c){return function(a){return u([c,a])}}function u(c){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,c[0]&&(n=0)),n;)try{if(r=1,o&&(i=c[0]&2?o.return:c[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,c[1])).done)return i;switch(o=0,i&&(c=[c[0]&2,i.value]),c[0]){case 0:case 1:i=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,o=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]<i[3])){n.label=c[1];break}if(c[0]===6&&n.label<i[1]){n.label=i[1],i=c;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(c);break}i[2]&&n.ops.pop(),n.trys.pop();continue}c=t.call(e,n)}catch(a){c=[6,a],o=0}finally{r=i=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function al(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(l){s={error:l}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i}function cl(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}var fm=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["heic","image/heic"],["heif","image/heif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function _r(e,t){var n=dm(e);if(typeof n.path!="string"){var r=e.webkitRelativePath;Object.defineProperty(n,"path",{value:typeof t=="string"?t:typeof r=="string"&&r.length>0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}function dm(e){var t=e.name,n=t&&t.lastIndexOf(".")!==-1;if(n&&!e.type){var r=t.split(".").pop().toLowerCase(),o=fm.get(r);o&&Object.defineProperty(e,"type",{value:o,writable:!1,configurable:!1,enumerable:!0})}return e}var pm=[".DS_Store","Thumbs.db"];function hm(e){return jn(this,void 0,void 0,function(){return Vn(this,function(t){return Zr(e)&&mm(e.dataTransfer)?[2,ym(e.dataTransfer,e.type)]:gm(e)?[2,wm(e)]:Array.isArray(e)&&e.every(function(n){return"getFile"in n&&typeof n.getFile=="function"})?[2,_m(e)]:[2,[]]})})}function mm(e){return Zr(e)}function gm(e){return Zr(e)&&Zr(e.target)}function Zr(e){return typeof e=="object"&&e!==null}function wm(e){return Jo(e.target.files).map(function(t){return _r(t)})}function _m(e){return jn(this,void 0,void 0,function(){var t;return Vn(this,function(n){switch(n.label){case 0:return[4,Promise.all(e.map(function(r){return r.getFile()}))];case 1:return t=n.sent(),[2,t.map(function(r){return _r(r)})]}})})}function ym(e,t){return jn(this,void 0,void 0,function(){var n,r;return Vn(this,function(o){switch(o.label){case 0:return e.items?(n=Jo(e.items).filter(function(i){return i.kind==="file"}),t!=="drop"?[2,n]:[4,Promise.all(n.map(bm))]):[3,2];case 1:return r=o.sent(),[2,ul(dc(r))];case 2:return[2,ul(Jo(e.files).map(function(i){return _r(i)}))]}})})}function ul(e){return e.filter(function(t){return pm.indexOf(t.name)===-1})}function Jo(e){if(e===null)return[];for(var t=[],n=0;n<e.length;n++){var r=e[n];t.push(r)}return t}function bm(e){if(typeof e.webkitGetAsEntry!="function")return fl(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?pc(t):fl(e)}function dc(e){return e.reduce(function(t,n){return cl(cl([],al(t),!1),al(Array.isArray(n)?dc(n):[n]),!1)},[])}function fl(e){var t=e.getAsFile();if(!t)return Promise.reject("".concat(e," is not a File"));var n=_r(t);return Promise.resolve(n)}function Am(e){return jn(this,void 0,void 0,function(){return Vn(this,function(t){return[2,e.isDirectory?pc(e):vm(e)]})})}function pc(e){var t=e.createReader();return new Promise(function(n,r){var o=[];function i(){var s=this;t.readEntries(function(l){return jn(s,void 0,void 0,function(){var u,c,a;return Vn(this,function(d){switch(d.label){case 0:if(l.length)return[3,5];d.label=1;case 1:return d.trys.push([1,3,,4]),[4,Promise.all(o)];case 2:return u=d.sent(),n(u),[3,4];case 3:return c=d.sent(),r(c),[3,4];case 4:return[3,6];case 5:a=Promise.all(l.map(Am)),o.push(a),i(),d.label=6;case 6:return[2]}})})},function(l){r(l)})}i()})}function vm(e){return jn(this,void 0,void 0,function(){return Vn(this,function(t){return[2,new Promise(function(n,r){e.file(function(o){var i=_r(o,e.fullPath);n(i)},function(o){r(o)})})]})})}var xm=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",o=(e.type||"").toLowerCase(),i=o.replace(/\/.*$/,"");return n.some(function(s){var l=s.trim().toLowerCase();return l.charAt(0)==="."?r.toLowerCase().endsWith(l):l.endsWith("/*")?i===l.replace(/\/.*$/,""):o===l})}return!0};function dl(e){return Sm(e)||Cm(e)||mc(e)||Em()}function Em(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
23
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Cm(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Sm(e){if(Array.isArray(e))return $o(e)}function pl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function hl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?pl(Object(n),!0).forEach(function(r){hc(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pl(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function hc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cr(e,t){return Fm(e)||Im(e,t)||mc(e,t)||Dm()}function Dm(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
24
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mc(e,t){if(!!e){if(typeof e=="string")return $o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return $o(e,t)}}function $o(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Im(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],o=!0,i=!1,s,l;try{for(n=n.call(e);!(o=(s=n.next()).done)&&(r.push(s.value),!(t&&r.length===t));o=!0);}catch(u){i=!0,l=u}finally{try{!o&&n.return!=null&&n.return()}finally{if(i)throw l}}return r}}function Fm(e){if(Array.isArray(e))return e}var km="file-invalid-type",Mm="file-too-large",Tm="file-too-small",Rm="too-many-files",Nm=function(t){t=Array.isArray(t)&&t.length===1?t[0]:t;var n=Array.isArray(t)?"one of ".concat(t.join(", ")):t;return{code:km,message:"File type must be ".concat(n)}},ml=function(t){return{code:Mm,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},gl=function(t){return{code:Tm,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},Om={code:Rm,message:"Too many files"};function gc(e,t){var n=e.type==="application/x-moz-file"||xm(e,t);return[n,n?null:Nm(t)]}function wc(e,t,n){if(Gt(e.size))if(Gt(t)&&Gt(n)){if(e.size>n)return[!1,ml(n)];if(e.size<t)return[!1,gl(t)]}else{if(Gt(t)&&e.size<t)return[!1,gl(t)];if(Gt(n)&&e.size>n)return[!1,ml(n)]}return[!0,null]}function Gt(e){return e!=null}function Bm(e){var t=e.files,n=e.accept,r=e.minSize,o=e.maxSize,i=e.multiple,s=e.maxFiles,l=e.validator;return!i&&t.length>1||i&&s>=1&&t.length>s?!1:t.every(function(u){var c=gc(u,n),a=cr(c,1),d=a[0],f=wc(u,r,o),p=cr(f,1),g=p[0],_=l?l(u):null;return d&&g&&!_})}function Kr(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function Cr(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(t){return t==="Files"||t==="application/x-moz-file"}):!!e.target&&!!e.target.files}function wl(e){e.preventDefault()}function Pm(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function Hm(e){return e.indexOf("Edge/")!==-1}function jm(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return Pm(e)||Hm(e)}function rt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){for(var o=arguments.length,i=new Array(o>1?o-1:0),s=1;s<o;s++)i[s-1]=arguments[s];return t.some(function(l){return!Kr(r)&&l&&l.apply(void 0,[r].concat(i)),Kr(r)})}}function Vm(){return"showOpenFilePicker"in window}function Um(e){if(Gt(e)){var t=Object.entries(e).filter(function(n){var r=cr(n,2),o=r[0],i=r[1],s=!0;return _c(o)||(console.warn('Skipped "'.concat(o,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),s=!1),(!Array.isArray(i)||!i.every(yc))&&(console.warn('Skipped "'.concat(o,'" because an invalid file extension was provided.')),s=!1),s}).reduce(function(n,r){var o=cr(r,2),i=o[0],s=o[1];return hl(hl({},n),{},hc({},i,s))},{});return[{description:"Files",accept:t}]}return e}function Lm(e){if(Gt(e))return Object.entries(e).reduce(function(t,n){var r=cr(n,2),o=r[0],i=r[1];return[].concat(dl(t),[o],dl(i))},[]).filter(function(t){return _c(t)||yc(t)}).join(",")}function zm(e){return e instanceof DOMException&&(e.name==="AbortError"||e.code===e.ABORT_ERR)}function Wm(e){return e instanceof DOMException&&(e.name==="SecurityError"||e.code===e.SECURITY_ERR)}function _c(e){return e==="audio/*"||e==="video/*"||e==="image/*"||e==="text/*"||/\w+\/[-+.\w]+/g.test(e)}function yc(e){return/^.*\.[\w]+$/.test(e)}var Gm=["children"],Qm=["open"],Zm=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],Km=["refKey","onChange","onClick"];function Jm(e){return qm(e)||Xm(e)||bc(e)||$m()}function $m(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
25
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Xm(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function qm(e){if(Array.isArray(e))return Xo(e)}function ko(e,t){return tg(e)||eg(e,t)||bc(e,t)||Ym()}function Ym(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
26
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bc(e,t){if(!!e){if(typeof e=="string")return Xo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Xo(e,t)}}function Xo(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function eg(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],o=!0,i=!1,s,l;try{for(n=n.call(e);!(o=(s=n.next()).done)&&(r.push(s.value),!(t&&r.length===t));o=!0);}catch(u){i=!0,l=u}finally{try{!o&&n.return!=null&&n.return()}finally{if(i)throw l}}return r}}function tg(e){if(Array.isArray(e))return e}function _l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function K(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?_l(Object(n),!0).forEach(function(r){qo(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_l(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function qo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Jr(e,t){if(e==null)return{};var n=ng(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(n[r]=e[r]))}return n}function ng(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var Fi=Vl(function(e,t){var n=e.children,r=Jr(e,Gm),o=vc(r),i=o.open,s=Jr(o,Qm);return Pl(t,function(){return{open:i}},[i]),Zl.createElement(Le,null,n(K(K({},s),{},{open:i})))});Fi.displayName="Dropzone";var Ac={disabled:!1,getFilesFromEvent:hm,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0,autoFocus:!1};Fi.defaultProps=Ac;Fi.propTypes={children:H.exports.func,accept:H.exports.objectOf(H.exports.arrayOf(H.exports.string)),multiple:H.exports.bool,preventDropOnDocument:H.exports.bool,noClick:H.exports.bool,noKeyboard:H.exports.bool,noDrag:H.exports.bool,noDragEventsBubbling:H.exports.bool,minSize:H.exports.number,maxSize:H.exports.number,maxFiles:H.exports.number,disabled:H.exports.bool,getFilesFromEvent:H.exports.func,onFileDialogCancel:H.exports.func,onFileDialogOpen:H.exports.func,useFsAccessApi:H.exports.bool,autoFocus:H.exports.bool,onDragEnter:H.exports.func,onDragLeave:H.exports.func,onDragOver:H.exports.func,onDrop:H.exports.func,onDropAccepted:H.exports.func,onDropRejected:H.exports.func,onError:H.exports.func,validator:H.exports.func};var Yo={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function vc(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=K(K({},Ac),e),n=t.accept,r=t.disabled,o=t.getFilesFromEvent,i=t.maxSize,s=t.minSize,l=t.multiple,u=t.maxFiles,c=t.onDragEnter,a=t.onDragLeave,d=t.onDragOver,f=t.onDrop,p=t.onDropAccepted,g=t.onDropRejected,_=t.onFileDialogCancel,w=t.onFileDialogOpen,b=t.useFsAccessApi,F=t.autoFocus,ne=t.preventDropOnDocument,ie=t.noClick,Q=t.noKeyboard,O=t.noDrag,ae=t.noDragEventsBubbling,P=t.onError,ce=t.validator,Ze=yt(function(){return Lm(n)},[n]),Ft=yt(function(){return Um(n)},[n]),Un=yt(function(){return typeof w=="function"?w:yl},[w]),Ut=yt(function(){return typeof _=="function"?_:yl},[_]),se=Gn(null),me=Gn(null),Sc=ri(rg,Yo),Mi=ko(Sc,2),ao=Mi[0],Fe=Mi[1],Dc=ao.isFocused,Ti=ao.isFileDialogActive,yr=Gn(typeof window<"u"&&window.isSecureContext&&b&&Vm()),Ri=function(){!yr.current&&Ti&&setTimeout(function(){if(me.current){var E=me.current.files;E.length||(Fe({type:"closeDialog"}),Ut())}},300)};gn(function(){return window.addEventListener("focus",Ri,!1),function(){window.removeEventListener("focus",Ri,!1)}},[me,Ti,Ut,yr]);var sn=Gn([]),Ni=function(E){se.current&&se.current.contains(E.target)||(E.preventDefault(),sn.current=[])};gn(function(){return ne&&(document.addEventListener("dragover",wl,!1),document.addEventListener("drop",Ni,!1)),function(){ne&&(document.removeEventListener("dragover",wl),document.removeEventListener("drop",Ni))}},[se,ne]),gn(function(){return!r&&F&&se.current&&se.current.focus(),function(){}},[se,F,r]);var Lt=De(function(y){P?P(y):console.error(y)},[P]),Oi=De(function(y){y.preventDefault(),y.persist(),xr(y),sn.current=[].concat(Jm(sn.current),[y.target]),Cr(y)&&Promise.resolve(o(y)).then(function(E){if(!(Kr(y)&&!ae)){var Y=E.length,ue=Y>0&&Bm({files:E,accept:Ze,minSize:s,maxSize:i,multiple:l,maxFiles:u,validator:ce}),ke=Y>0&&!ue;Fe({isDragAccept:ue,isDragReject:ke,isDragActive:!0,type:"setDraggedFiles"}),c&&c(y)}}).catch(function(E){return Lt(E)})},[o,c,Lt,ae,Ze,s,i,l,u,ce]),Bi=De(function(y){y.preventDefault(),y.persist(),xr(y);var E=Cr(y);if(E&&y.dataTransfer)try{y.dataTransfer.dropEffect="copy"}catch{}return E&&d&&d(y),!1},[d,ae]),Pi=De(function(y){y.preventDefault(),y.persist(),xr(y);var E=sn.current.filter(function(ue){return se.current&&se.current.contains(ue)}),Y=E.indexOf(y.target);Y!==-1&&E.splice(Y,1),sn.current=E,!(E.length>0)&&(Fe({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),Cr(y)&&a&&a(y))},[se,a,ae]),br=De(function(y,E){var Y=[],ue=[];y.forEach(function(ke){var Ln=gc(ke,Ze),cn=ko(Ln,2),uo=cn[0],fo=cn[1],po=wc(ke,s,i),Er=ko(po,2),ho=Er[0],mo=Er[1],go=ce?ce(ke):null;if(uo&&ho&&!go)Y.push(ke);else{var wo=[fo,mo];go&&(wo=wo.concat(go)),ue.push({file:ke,errors:wo.filter(function(Mc){return Mc})})}}),(!l&&Y.length>1||l&&u>=1&&Y.length>u)&&(Y.forEach(function(ke){ue.push({file:ke,errors:[Om]})}),Y.splice(0)),Fe({acceptedFiles:Y,fileRejections:ue,type:"setFiles"}),f&&f(Y,ue,E),ue.length>0&&g&&g(ue,E),Y.length>0&&p&&p(Y,E)},[Fe,l,Ze,s,i,u,f,p,g,ce]),Ar=De(function(y){y.preventDefault(),y.persist(),xr(y),sn.current=[],Cr(y)&&Promise.resolve(o(y)).then(function(E){Kr(y)&&!ae||br(E,y)}).catch(function(E){return Lt(E)}),Fe({type:"reset"})},[o,br,Lt,ae]),ln=De(function(){if(yr.current){Fe({type:"openDialog"}),Un();var y={multiple:l,types:Ft};window.showOpenFilePicker(y).then(function(E){return o(E)}).then(function(E){br(E,null),Fe({type:"closeDialog"})}).catch(function(E){zm(E)?(Ut(E),Fe({type:"closeDialog"})):Wm(E)?(yr.current=!1,me.current?(me.current.value=null,me.current.click()):Lt(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):Lt(E)});return}me.current&&(Fe({type:"openDialog"}),Un(),me.current.value=null,me.current.click())},[Fe,Un,Ut,b,br,Lt,Ft,l]),Hi=De(function(y){!se.current||!se.current.isEqualNode(y.target)||(y.key===" "||y.key==="Enter"||y.keyCode===32||y.keyCode===13)&&(y.preventDefault(),ln())},[se,ln]),ji=De(function(){Fe({type:"focus"})},[]),Vi=De(function(){Fe({type:"blur"})},[]),Ui=De(function(){ie||(jm()?setTimeout(ln,0):ln())},[ie,ln]),an=function(E){return r?null:E},co=function(E){return Q?null:an(E)},vr=function(E){return O?null:an(E)},xr=function(E){ae&&E.stopPropagation()},Ic=yt(function(){return function(){var y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},E=y.refKey,Y=E===void 0?"ref":E,ue=y.role,ke=y.onKeyDown,Ln=y.onFocus,cn=y.onBlur,uo=y.onClick,fo=y.onDragEnter,po=y.onDragOver,Er=y.onDragLeave,ho=y.onDrop,mo=Jr(y,Zm);return K(K(qo({onKeyDown:co(rt(ke,Hi)),onFocus:co(rt(Ln,ji)),onBlur:co(rt(cn,Vi)),onClick:an(rt(uo,Ui)),onDragEnter:vr(rt(fo,Oi)),onDragOver:vr(rt(po,Bi)),onDragLeave:vr(rt(Er,Pi)),onDrop:vr(rt(ho,Ar)),role:typeof ue=="string"&&ue!==""?ue:"presentation"},Y,se),!r&&!Q?{tabIndex:0}:{}),mo)}},[se,Hi,ji,Vi,Ui,Oi,Bi,Pi,Ar,Q,O,r]),Fc=De(function(y){y.stopPropagation()},[]),kc=yt(function(){return function(){var y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},E=y.refKey,Y=E===void 0?"ref":E,ue=y.onChange,ke=y.onClick,Ln=Jr(y,Km),cn=qo({accept:Ze,multiple:l,type:"file",style:{display:"none"},onChange:an(rt(ue,Ar)),onClick:an(rt(ke,Fc)),tabIndex:-1},Y,me);return K(K({},cn),Ln)}},[me,n,l,Ar,r]);return K(K({},ao),{},{isFocused:Dc&&!r,getRootProps:Ic,getInputProps:kc,rootRef:se,inputRef:me,open:an(ln)})}function rg(e,t){switch(t.type){case"focus":return K(K({},e),{},{isFocused:!0});case"blur":return K(K({},e),{},{isFocused:!1});case"openDialog":return K(K({},Yo),{},{isFileDialogActive:!0});case"closeDialog":return K(K({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return K(K({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return K(K({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return K({},Yo);default:return e}}function yl(){}const og="data:image/jpeg;base64,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",ig="data:image/jpeg;base64,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";var sg=0;function fe(e,t,n,r,o,i){var s,l,u={};for(l in t)l=="ref"?s=t[l]:u[l]=t[l];var c={type:e,props:u,key:n,ref:s,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--sg,__source:o,__self:i};if(typeof e=="function"&&(s=e.defaultProps))for(l in s)u[l]===void 0&&(u[l]=s[l]);return A.vnode&&A.vnode(c),c}function lg({onCancel:e,onSubmit:t,onFileDrop:n}){const r=De(d=>{const f=d[0];n(f,f.path)},[]),{getRootProps:o,getInputProps:i,open:s,acceptedFiles:l,fileRejections:u}=vc({onDrop:r,accept:{"text/csv":[".csv"]},maxFiles:1,noClick:!0,noKeyboard:!0,multiple:!1,maxSize:4e6}),c=l.map(d=>fe("p",{children:d.path},d.path)),a=u.map(({file:d,errors:f})=>fe("li",{children:[d.path," - ",d.size," bytes",fe("ul",{children:f.map(p=>fe("li",{children:p.message},p.code))})]},d.path));return fe("div",{...o(),children:[fe("input",{...i(),name:"file"}),fe("img",{src:c.length?ig:og,className:"mx-auto mb-2"}),u.length?fe("div",{className:"mb-2",children:[fe("div",{className:"mb-2 font-semibold",children:"Rejected files"}),fe("ul",{children:a})]}):fe(Le,{}),c.length?fe(Le,{children:[c,fe("button",{type:"reset",onClick:e,className:"mt-6 mr-6 rounded-md bg-white px-3.5 py-2.5 text-sm font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50",children:"Cancel"}),fe("button",{type:"button",onClick:t,className:"rounded-md bg-indigo-600 px-3.5 py-2.5 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600",children:"Import file"})]}):fe(Le,{children:[fe("p",{className:"mb-6 text-gray-500",children:"Drag a file to upload"}),fe("button",{type:"button",onClick:s,className:"rounded-md bg-indigo-600 px-3.5 py-2.5 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600",children:"Browse"})]})]})}class $e extends q{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["FileSelection","Validating","ValidationError","ImportInProgress","ImportComplete","UnexpectedError"]}}class xc extends oe{constructor(t){super(),this.View=t}}class ge extends q{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SetView","CreateImport","FetchImports"]}}function ag(){return[new xc(new $e(0,[])),en()]}function cg(e,t,n,r){let o,i,s;return n.tag===1?n.fields[0].tag===1?[r,Io(zr(Mr,n.fields[0].fields[0].tag===1?Ee(new ge(0,[new $e(5,[n.fields[0].fields[0].fields[0]])])):n.fields[0].fields[0].fields[0].tag===1?Ee(new ge(0,[new $e(2,[n.fields[0].fields[0].fields[0].fields[0]])])):n.fields[0].fields[0].fields[0].fields[0].ActiveImport==null?Ee(new ge(0,[new $e(5,["New import not active"])])):(o=n.fields[0].fields[0].fields[0].fields[0].ActiveImport,S([new ge(0,[new $e(3,[o])]),new ge(2,[new Et(0,[void 0])])]))))]:[r,Io(S([Mr(new ge(0,[new $e(1,[])])),rc(l=>{Zo(l)},l=>_0(t,l),n.fields[0].fields[0],l=>new ge(1,[new Et(1,[l])]))]))]:n.tag===2?n.fields[0].tag===1?[r,Io(zr(Mr,(i=r.View,i.tag===3?n.fields[0].fields[0].ActiveImport!=null?(s=n.fields[0].fields[0].ActiveImport,S([new ge(0,[new $e(3,[s])]),new ge(2,[new Et(0,[void 0])])])):Ee(new ge(0,[new $e(4,[Dd(l=>l.ImportId===i.fields[0].ImportId,n.fields[0].fields[0].ImportHistory)])])):n.fields[0].fields[0].ActiveImport!=null?(s=n.fields[0].fields[0].ActiveImport,S([new ge(0,[new $e(3,[s])]),new ge(2,[new Et(0,[void 0])])])):Ee(new ge(0,[new $e(0,[])])))))]:(Zo(I.Delay(()=>I.Bind(vp(1e4),()=>(e(),I.Zero())))),[r,en()]):[new xc(n.fields[0]),en()]}const Ec=om,bl=im,ug=sm;function fg(e){let t;const n=e.dispatch,r=Xn(!1),o=r[1],i=Xn(0),s=i[0]|0,l=Xn(new FormData),u=l[0];return h("form",L(S([["key",s],(t=ct(M(()=>le(k(h(lg,{onCancel:()=>{i[1](s+1),l[1](new FormData)},onSubmit:()=>{o(!0)},onFileDrop:(c,a)=>{u.set("file",c,a)}})),M(()=>{let c,a,d,f,p,g,_;return r[0]?k((c=S([h("div",{className:"fixed inset-0 bg-gray-500 bg-opacity-75"}),h("div",L(S([["className","fixed inset-0 z-10 overflow-y-auto"],(a=[h("div",L(S([["className","flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0"],(d=[h("div",L(S([["className","relative overflow-hidden rounded-lg bg-white px-4 pb-4 pt-5 text-left shadow-xl sm:my-8 sm:w-full sm:max-w-lg sm:p-6"],(f=[(p=S([h("div",L(S([["className","mt-3 text-center sm:mt-5 space-y-6"],(g=[h("img",{src:Ec,className:"mx-auto"}),h("p",{children:["Please check and confirm this file is being uploaded to the correct account."]}),h("p",{children:["Uploading files to the wrong account can cause a security breach."]})],["children",C.Children.toArray(Array.from(g))])]))),h("div",L(S([["className","mt-5 sm:mt-6 sm:grid sm:grid-flow-row-dense sm:grid-cols-2 sm:gap-3"],(_=[h("button",{type:"button",className:"inline-flex w-full justify-center rounded-md bg-indigo-600 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600 sm:col-start-2",children:"I confirm",onClick:w=>{n(new ge(1,[new Et(0,[u])]))}}),h("button",{type:"button",className:"mt-3 inline-flex w-full justify-center rounded-md bg-white px-3 py-2 text-sm font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50 sm:col-start-1 sm:mt-0",children:"Cancel",onClick:w=>{o(!1)}})],["children",C.Children.toArray(Array.from(_))])])))]),h("div",{children:C.Children.toArray(Array.from(p))}))],["children",C.Children.toArray(Array.from(f))])])))],["children",C.Children.toArray(Array.from(d))])])))],["children",C.Children.toArray(Array.from(a))])])))]),h("div",{children:C.Children.toArray(Array.from(c))}))):Ca()})))),["children",C.Children.toArray(Array.from(t))])])))}function dg(e){let t,n,r,o,i,s,l,u;const c=e.onDone,a=e.backendService,d=e.dispatchFetchImports,f=e.accountImports,p=e.accountId,g=ac(ag(),(b,F)=>cg(d,a,b,F)),_=g[1];lc(()=>{_(new ge(2,[new Et(1,[f])]))},[f]);const w=S([h("div",L(S([["className","space-y-6"],(t=[(n=S([`Upload a CSV file with required information (first name, last name, email) to create new partial profiles.
|
|
27
|
-
The file will be validated `,h("b",{children:["before"]}),` creating the profiles.
|
|
28
|
-
If validation fails, the file will be rejected, and no profiles created.
|
|
29
|
-
You'll get an error report to fix the information before re-uploading.`]),h("p",{children:C.Children.toArray(Array.from(n))})),h("p",{children:"This feature doesn't update existing profiles in the account."}),(r=S([h("span",{children:["Not sure how to get started?"]}),h("ul",L(S([["className","ml-6 list-disc list-outside"],(o=[(i=S([h("a",{className:"cursor-pointer font-bold",children:"Download",target:"_blank",rel:"noreferrer",href:"https://docs.google.com/spreadsheets/d/1BGRolDj6dBKf4ZyzACln60DhBY2dHxZdXdwtm0uxK2M"})," a blank CSV template"]),h("li",{children:C.Children.toArray(Array.from(i))})),(s=S([h("a",{className:"cursor-pointer font-bold",children:"Read the guide",target:"_blank",rel:"noreferrer",href:"https://coda.io/d/Network-Partners_duJlEDaJduS/How-to-import-existing-employees_suumX#_lu5Lq"})," to using the CSV importer"]),h("li",{children:C.Children.toArray(Array.from(s))}))],["children",C.Children.toArray(Array.from(o))])])))]),h("div",{children:C.Children.toArray(Array.from(r))}))],["children",C.Children.toArray(Array.from(t))])]))),h("div",L(S([["className","px-8 mt-10"],(l=[h("div",L(S([["className","border border-gray-300 w-full py-12 rounded text-center bg-white"],(u=ct(M(()=>{let b,F,ne,ie;const Q=g[0].View;switch(Q.tag){case 1:return k((b=S([h("img",{src:bl,className:"mx-auto animate-spin"}),h("p",{className:"mt-2",children:"Validating data"})]),h("div",{children:C.Children.toArray(Array.from(b))})));case 2:{const O=Q.fields[0];return k((F=ct(M(()=>{const ae=ce=>{let Ze,Ft;const Un=Dt(`\r
|
|
30
|
-
`,ba(oo(Ee(Ee("Row,Column,Error")),zr(Ut=>zr(se=>Dt(",",$t(me=>`"${me}"`,$t(me=>ld(me,'"','""'),[Rt(Ut.RowId),se.Column,se.Message],null),null)),Ut.FieldErrors),ce))));return h("p",L(S([["className","mt-6"],(Ze=["Download the full error report ",h("a",{className:"font-bold cursor-pointer",href:(Ft=new Blob([Un],{type:"text/csv;charset=utf-8;"}),window.URL.createObjectURL(Ft)),download:`${p}_validation_errors.csv`,children:"here"}),"."],["children",C.Children.toArray(Array.from(Ze))])])))};let P;if(O.tag===1)P=h("p",{children:["Invalid file name"]});else if(O.tag===2)P=h("p",{children:["CSV exceeds max row limit"]});else if(O.tag===3)P=h("p",{children:[O.fields[0]]});else if(O.tag===4)P=h("p",{children:["CSV does not contain any data"]});else if(O.tag===5)P=h("p",{children:["File not uploaded, ensure a file is selected"]});else if(O.tag===6)P=h("p",{children:["Only a single file is allowed"]});else if(O.tag===8)P=h("p",{children:["Unknown account"]});else if(O.tag===7)if(xd(O.fields[0])<=10){const ce=ct(M(()=>le(k(h("p",{className:"mb-3",children:"The file contains the following validation error(s)"})),M(()=>le(Da(Ze=>Oe(Ft=>h("li",{children:[`Row ${Ze.RowId}, Column ${Ft.Column}: ${Ft.Message}`]}),Ze.FieldErrors),O.fields[0]),M(()=>k(ae(O.fields[0]))))))));P=h("div",{children:C.Children.toArray(Array.from(ce))})}else{const ce=S([h("p",{children:["The file contains more than 10 validation errors"]}),ae(O.fields[0])]);P=h("div",{children:C.Children.toArray(Array.from(ce))})}else P=O.tag===9?h("p",{children:["An import is already in progress"]}):h("p",{children:["Invalid file type"]});return le(k(h("img",{src:Ec,className:"mx-auto"})),M(()=>le(k(h("div",{className:"mt-2",children:C.Children.toArray([P])})),M(()=>k(h("button",{type:"button",children:"Upload another file",className:"mt-8 rounded-md bg-indigo-600 px-3.5 py-2.5 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600",onClick:ce=>{_(new ge(0,[new $e(0,[])]))}}))))))})),h("div",{children:C.Children.toArray(Array.from(F))})))}case 3:{const O=Q.fields[0];return k((ne=S([h("img",{src:bl,className:"mx-auto animate-spin"}),h("p",{className:"mt-2 mb-6",children:"Creating profiles"}),h("p",{children:[`Creator: ${O.User}`]}),h("p",{children:[`Filename: ${O.Filename}`]}),h("p",{children:[`Rows processed: ${O.CompletedSuccessfully+O.CompletedFailed}`]}),h("p",{children:[`Total rows: ${O.NumberOfRecords}`]})]),h("div",{children:C.Children.toArray(Array.from(ne))})))}case 4:{const O=Q.fields[0];return k((ie=S([h("img",{src:ug,className:"mx-auto"}),h("p",{className:"mt-2 mb-6",children:`${O.Succeeded} Profiles successfully created`}),h(cc,{importId:O.ImportId,fetchImport:ae=>tc(a,ae),onDone:c})]),h("div",{children:C.Children.toArray(Array.from(ie))})))}case 5:return k(ar(Q.fields[0]));default:return k(h(fg,{dispatch:_}))}})),["children",C.Children.toArray(Array.from(u))])])))],["children",C.Children.toArray(Array.from(l))])])))]);return h("div",{children:C.Children.toArray(Array.from(w))})}function ki(){return(ki=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function pg(e){this.getChildContext=function(){return e.context};var t=e.children,n=function(r,o){if(r==null)return{};var i,s,l={},u=Object.keys(r);for(s=0;s<u.length;s++)o.indexOf(i=u[s])>=0||(l[i]=r[i]);return l}(e,["context","children"]);return ni(t,n)}function hg(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=h(pg,ki({},this._props,{context:e.detail.context}),function t(n,r){if(n.nodeType===3)return n.data;if(n.nodeType!==1)return null;var o=[],i={},s=0,l=n.attributes,u=n.childNodes;for(s=l.length;s--;)l[s].name!=="slot"&&(i[l[s].name]=l[s].value,i[Cc(l[s].name)]=l[s].value);for(s=u.length;s--;){var c=t(u[s],null),a=u[s].slot;a?i[a]=h(Al,{name:a},c):o[s]=c}var d=r?h(Al,null,o):o;return h(r||n.nodeName.toLowerCase(),i,d)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?ti:Nt)(this._vdom,this._root)}function Cc(e){return e.replace(/-(\w)/g,function(t,n){return n?n.toUpperCase():""})}function mg(e,t,n){if(this._vdom){var r={};r[e]=n=n==null?void 0:n,r[Cc(e)]=n,this._vdom=ni(this._vdom,r),Nt(this._vdom,this._root)}}function gg(){Nt(this._vdom=null,this._root)}function Al(e,t){var n=this;return h("slot",ki({},e,{ref:function(r){r?(n.ref=r,n._listener||(n._listener=function(o){o.stopPropagation(),o.detail.context=t},r.addEventListener("_preact",n._listener))):n.ref.removeEventListener("_preact",n._listener)}}))}function wg(e,t,n,r){function o(){var i=Reflect.construct(HTMLElement,[],o);return i._vdomComponent=e,i._root=r&&r.shadow?i.attachShadow({mode:"open"}):i,i}return(o.prototype=Object.create(HTMLElement.prototype)).constructor=o,o.prototype.connectedCallback=hg,o.prototype.attributeChangedCallback=mg,o.prototype.disconnectedCallback=gg,n=n||e.observedAttributes||Object.keys(e.propTypes||{}),o.observedAttributes=n,n.forEach(function(i){Object.defineProperty(o.prototype,i,{get:function(){return this._vdom.props[i]},set:function(s){this._vdom?this.attributeChangedCallback(i,null,s):(this._props||(this._props={}),this._props[i]=s,this.connectedCallback());var l=typeof s;s!=null&&l!=="string"&&l!=="boolean"&&l!=="number"||this.setAttribute(i,s)}})}),customElements.define(t||e.tagName||e.displayName||e.name,o)}function _g(e,t){wg(e,t,void 0,{shadow:!0})}function yg(e){let t;const n=g0(e.backendUrl,e.accountId,e.accessToken),r=v0(e.accessToken);if(A0(r.Roles)!=null){const o=ac(Y0,(u,c)=>em(()=>w0(n),u,c)),i=o[0],s=o[1],l=S([h("style",{children:[ll]}),h(nm,{currentTab:i.CurrentTab,setCurrentTab:u=>{s(new qn(0,[u]))}}),h("div",L(S([["className","mt-4"],(t=ct(M(()=>{const u=i.AccountImports;let c,a,d,f;switch(u.tag===1?c=0:u.tag===3?(c=1,a=u.fields[0]):u.tag===2?u.fields[0].tag===0?(c=3,f=u.fields[0].fields[0]):(c=2,d=u.fields[0].fields[0]):c=0,c){case 0:return k(h("div",{children:["Please wait..."]}));case 1:return k(ar(a.message));case 2:return k(ar(d));case 3:return i.CurrentTab.tag===1?k(h(rm,{accountImports:f,fetchImport:p=>tc(n,p)})):k(h(dg,{accountId:e.accountId,accountImports:f,dispatchFetchImports:()=>{s(new qn(1,[new Et(0,[void 0])]))},backendService:n,onDone:()=>{s(new qn(0,[new Qr(1,[])]))}}))}})),["children",C.Children.toArray(Array.from(t))])])))]);return h("div",{children:C.Children.toArray(Array.from(l))})}else{const o=S([h("style",{children:[ll]}),h("div",{children:"You do not have the appropriate permissions to view or do the imports."})]);return h("div",{children:C.Children.toArray(Array.from(o))})}}function bg(){_g(e=>h(yg,e),"superhero-profile-directory-app")}bg();
|